Hackfut Security File Manager
Current Path:
/usr/include/linux
usr
/
include
/
linux
/
📁
..
📄
a.out.h
(7.15 KB)
📄
acct.h
(3.41 KB)
📄
adb.h
(1.05 KB)
📄
adfs_fs.h
(856 B)
📄
affs_hardblocks.h
(1.45 KB)
📄
agpgart.h
(3.83 KB)
📄
aio_abi.h
(3.04 KB)
📄
apm_bios.h
(3.46 KB)
📄
arcfb.h
(150 B)
📄
atalk.h
(927 B)
📄
atm.h
(7.62 KB)
📄
atm_eni.h
(585 B)
📄
atm_he.h
(343 B)
📄
atm_idt77105.h
(892 B)
📄
atm_nicstar.h
(1.19 KB)
📄
atm_tcp.h
(1.5 KB)
📄
atm_zatm.h
(1.57 KB)
📄
atmapi.h
(889 B)
📄
atmarp.h
(1.2 KB)
📄
atmbr2684.h
(3.13 KB)
📄
atmclip.h
(513 B)
📄
atmdev.h
(7.42 KB)
📄
atmioc.h
(1.55 KB)
📄
atmlec.h
(2.5 KB)
📄
atmmpc.h
(4.07 KB)
📄
atmppp.h
(576 B)
📄
atmsap.h
(4.79 KB)
📄
atmsvc.h
(1.75 KB)
📄
audit.h
(15.51 KB)
📄
auto_fs.h
(2.29 KB)
📄
auto_fs4.h
(4.03 KB)
📄
auxvec.h
(1.35 KB)
📄
ax25.h
(2.69 KB)
📄
b1lli.h
(1.62 KB)
📄
baycom.h
(820 B)
📄
bfs_fs.h
(1.79 KB)
📄
binfmts.h
(565 B)
📄
blk_types.h
(6.94 KB)
📄
blkpg.h
(1.56 KB)
📄
blktrace_api.h
(4.37 KB)
📄
bpqether.h
(952 B)
📄
bsg.h
(2.33 KB)
📁
byteorder
📁
can
📄
can.h
(3.25 KB)
📄
capability.h
(10.34 KB)
📄
capi.h
(2.99 KB)
📄
cciss_ioctl.h
(5.69 KB)
📄
cdk.h
(12.47 KB)
📄
cdrom.h
(27.47 KB)
📄
cgroupstats.h
(2.1 KB)
📄
chio.h
(5.16 KB)
📄
cm4000_cs.h
(1.68 KB)
📄
cn_proc.h
(2.65 KB)
📄
coda.h
(17.08 KB)
📄
coda_psdev.h
(679 B)
📄
coff.h
(12.12 KB)
📄
comstats.h
(3.05 KB)
📄
connector.h
(2.08 KB)
📄
const.h
(682 B)
📄
cramfs_fs.h
(2.86 KB)
📄
cuda.h
(769 B)
📄
cyclades.h
(16.65 KB)
📄
cycx_cfm.h
(2.86 KB)
📄
dcbnl.h
(21.6 KB)
📄
dccp.h
(5.66 KB)
📄
dlm.h
(2.47 KB)
📄
dlm_device.h
(2.42 KB)
📄
dlm_netlink.h
(1.04 KB)
📄
dlm_plock.h
(806 B)
📄
dlmconstants.h
(4.9 KB)
📄
dm-ioctl.h
(10.42 KB)
📄
dm-log-userspace.h
(14.82 KB)
📄
dn.h
(4.42 KB)
📄
dqblk_xfs.h
(6.79 KB)
📁
dvb
📄
edd.h
(5.41 KB)
📄
efs_fs_sb.h
(2.11 KB)
📄
elf-em.h
(1.79 KB)
📄
elf-fdpic.h
(2.5 KB)
📄
elf.h
(10.97 KB)
📄
elfcore.h
(2.86 KB)
📄
errno.h
(79 B)
📄
errqueue.h
(443 B)
📄
ethtool.h
(33.37 KB)
📄
eventpoll.h
(1.32 KB)
📄
ext2_fs.h
(18.36 KB)
📄
fadvise.h
(855 B)
📄
falloc.h
(293 B)
📄
fb.h
(15.64 KB)
📄
fcntl.h
(1.57 KB)
📄
fd.h
(11.29 KB)
📄
fdreg.h
(5.23 KB)
📄
fib_rules.h
(1.42 KB)
📄
fiemap.h
(2.49 KB)
📄
filter.h
(3.45 KB)
📄
firewire-cdev.h
(24.47 KB)
📄
firewire-constants.h
(1.93 KB)
📄
flat.h
(2.04 KB)
📄
fs.h
(18.47 KB)
📄
fuse.h
(11.17 KB)
📄
futex.h
(4.79 KB)
📄
gameport.h
(816 B)
📄
gen_stats.h
(1.27 KB)
📄
generic_serial.h
(895 B)
📄
genetlink.h
(1.64 KB)
📄
gfs2_ondisk.h
(11.54 KB)
📄
gigaset_dev.h
(981 B)
📄
hayesesp.h
(230 B)
📁
hdlc
📄
hdlc.h
(574 B)
📄
hdlcdrv.h
(2.78 KB)
📄
hdreg.h
(22.11 KB)
📄
hid.h
(1.78 KB)
📄
hiddev.h
(6.12 KB)
📄
hidraw.h
(1.19 KB)
📄
hpet.h
(686 B)
📄
hysdn_if.h
(1.29 KB)
📄
i2c-dev.h
(2.35 KB)
📄
i2c.h
(6.48 KB)
📄
i2o-dev.h
(11.22 KB)
📄
i8k.h
(1.4 KB)
📄
icmp.h
(2.82 KB)
📄
icmpv6.h
(3.74 KB)
📄
if.h
(8.47 KB)
📄
if_addr.h
(1.42 KB)
📄
if_addrlabel.h
(658 B)
📄
if_arcnet.h
(3.63 KB)
📄
if_arp.h
(5.97 KB)
📄
if_bonding.h
(3.98 KB)
📄
if_bridge.h
(3.72 KB)
📄
if_cablemodem.h
(910 B)
📄
if_ec.h
(901 B)
📄
if_eql.h
(1.25 KB)
📄
if_ether.h
(6.39 KB)
📄
if_fc.h
(1.63 KB)
📄
if_fddi.h
(3.61 KB)
📄
if_frad.h
(2.87 KB)
📄
if_hippi.h
(4.08 KB)
📄
if_infiniband.h
(1.12 KB)
📄
if_link.h
(11.79 KB)
📄
if_ltalk.h
(125 B)
📄
if_packet.h
(3.45 KB)
📄
if_phonet.h
(337 B)
📄
if_plip.h
(596 B)
📄
if_ppp.h
(6.78 KB)
📄
if_pppol2tp.h
(1.94 KB)
📄
if_pppox.h
(3.68 KB)
📄
if_slip.h
(809 B)
📄
if_strip.h
(700 B)
📄
if_tr.h
(3.12 KB)
📄
if_tun.h
(2.94 KB)
📄
if_tunnel.h
(1.42 KB)
📄
if_vlan.h
(1.67 KB)
📄
igmp.h
(2.86 KB)
📄
in.h
(8.99 KB)
📄
in6.h
(7.32 KB)
📄
in_route.h
(873 B)
📄
inet_diag.h
(2.4 KB)
📄
inotify.h
(2.77 KB)
📄
input.h
(26.95 KB)
📄
ioctl.h
(100 B)
📄
ip.h
(3.47 KB)
📄
ip6_tunnel.h
(1.05 KB)
📄
ip_vs.h
(12.29 KB)
📄
ipc.h
(1.99 KB)
📄
ipmi.h
(16.16 KB)
📄
ipmi_msgdefs.h
(4.37 KB)
📄
ipsec.h
(884 B)
📄
ipv6.h
(2.82 KB)
📄
ipv6_route.h
(1.58 KB)
📄
ipx.h
(1.78 KB)
📄
irda.h
(7.47 KB)
📄
irqnr.h
(93 B)
📁
isdn
📄
isdn.h
(5.55 KB)
📄
isdn_divertif.h
(1.01 KB)
📄
isdn_ppp.h
(1.82 KB)
📄
isdnif.h
(2.25 KB)
📄
iso_fs.h
(6.29 KB)
📄
ivtv.h
(2.66 KB)
📄
ivtvfb.h
(1.12 KB)
📄
ixjuser.h
(24.53 KB)
📄
jffs2.h
(6.79 KB)
📄
joystick.h
(3.5 KB)
📄
kd.h
(6.02 KB)
📄
kdev_t.h
(298 B)
📄
kernel.h
(2.4 KB)
📄
kernelcapi.h
(959 B)
📄
keyboard.h
(12.4 KB)
📄
keyctl.h
(2.91 KB)
📄
kvm.h
(20.2 KB)
📄
kvm_para.h
(564 B)
📄
libc-compat.h
(3.46 KB)
📄
limits.h
(874 B)
📄
llc.h
(2.77 KB)
📄
loop.h
(2.14 KB)
📄
lp.h
(3.71 KB)
📄
magic.h
(2.24 KB)
📄
major.h
(4.55 KB)
📄
map_to_7segment.h
(7.02 KB)
📄
matroxfb.h
(1.4 KB)
📄
mempolicy.h
(2 KB)
📄
meye.h
(2.48 KB)
📄
mii.h
(7.76 KB)
📄
minix_fs.h
(2.01 KB)
📄
mman.h
(230 B)
📄
mmtimer.h
(2.01 KB)
📄
mqueue.h
(2.01 KB)
📄
mroute.h
(3.72 KB)
📄
mroute6.h
(3.9 KB)
📄
msdos_fs.h
(5.7 KB)
📄
msg.h
(2.48 KB)
📄
mtio.h
(7.89 KB)
📄
n_r3964.h
(2.29 KB)
📄
nbd.h
(1.91 KB)
📄
ncp.h
(4.94 KB)
📄
ncp_fs.h
(3.28 KB)
📄
ncp_mount.h
(2.06 KB)
📄
ncp_no.h
(651 B)
📄
neighbour.h
(3.96 KB)
📄
net.h
(1.97 KB)
📄
net_dropmon.h
(1.07 KB)
📄
net_tstamp.h
(3.39 KB)
📄
netdevice.h
(1.73 KB)
📁
netfilter
📄
netfilter.h
(1.51 KB)
📁
netfilter_arp
📄
netfilter_arp.h
(380 B)
📁
netfilter_bridge
📄
netfilter_bridge.h
(735 B)
📄
netfilter_decnet.h
(1.83 KB)
📁
netfilter_ipv4
📄
netfilter_ipv4.h
(1.98 KB)
📁
netfilter_ipv6
📄
netfilter_ipv6.h
(2 KB)
📄
netlink.h
(4.85 KB)
📄
netrom.h
(719 B)
📄
nfs.h
(4.25 KB)
📄
nfs2.h
(1.37 KB)
📄
nfs3.h
(2.16 KB)
📄
nfs4.h
(5.63 KB)
📄
nfs4_mount.h
(1.83 KB)
📄
nfs_fs.h
(1.52 KB)
📄
nfs_idmap.h
(2.19 KB)
📄
nfs_mount.h
(3.13 KB)
📄
nfsacl.h
(577 B)
📁
nfsd
📄
nl80211.h
(187.85 KB)
📄
nubus.h
(8.17 KB)
📄
nvram.h
(470 B)
📄
oom.h
(456 B)
📄
param.h
(78 B)
📄
parport.h
(3.56 KB)
📄
patchkey.h
(831 B)
📄
pci.h
(1.45 KB)
📄
pci_regs.h
(37.08 KB)
📄
perf_event.h
(21.34 KB)
📄
personality.h
(1.95 KB)
📄
pfkeyv2.h
(9.91 KB)
📄
pg.h
(2.23 KB)
📄
phantom.h
(1.55 KB)
📄
phonet.h
(4.25 KB)
📄
pkt_cls.h
(9.08 KB)
📄
pkt_sched.h
(10.63 KB)
📄
pktcdvd.h
(2.56 KB)
📄
pmu.h
(5.07 KB)
📄
poll.h
(96 B)
📄
posix_types.h
(1.24 KB)
📄
ppdev.h
(3.07 KB)
📄
ppp-comp.h
(6.36 KB)
📄
ppp_defs.h
(6.31 KB)
📄
pps.h
(3.85 KB)
📄
prctl.h
(4.86 KB)
📄
ptp_clock.h
(3.41 KB)
📄
ptrace.h
(2.24 KB)
📄
qnx4_fs.h
(2.21 KB)
📄
qnxtypes.h
(561 B)
📄
quota.h
(5.59 KB)
📄
radeonfb.h
(297 B)
📁
raid
📄
random.h
(1.06 KB)
📄
raw.h
(302 B)
📄
reboot.h
(1.25 KB)
📄
reiserfs_fs.h
(907 B)
📄
reiserfs_xattr.h
(465 B)
📄
resource.h
(2.04 KB)
📄
rfkill.h
(3.3 KB)
📄
romfs_fs.h
(1.1 KB)
📄
rose.h
(2.05 KB)
📄
route.h
(2.22 KB)
📄
rtc.h
(3.61 KB)
📄
rtnetlink.h
(14.98 KB)
📄
scc.h
(4.44 KB)
📄
sched.h
(2.05 KB)
📄
screen_info.h
(2.15 KB)
📄
sdla.h
(2.77 KB)
📄
selinux_netlink.h
(1.11 KB)
📄
sem.h
(3.58 KB)
📄
serial.h
(6.62 KB)
📄
serial_core.h
(3.93 KB)
📄
serial_reg.h
(12.93 KB)
📄
serio.h
(1.65 KB)
📄
shm.h
(2.14 KB)
📄
signal.h
(129 B)
📄
signalfd.h
(1.07 KB)
📄
smb.h
(1.18 KB)
📄
smb_fs.h
(535 B)
📄
smb_mount.h
(468 B)
📄
smbno.h
(14.18 KB)
📄
snmp.h
(10.9 KB)
📄
socket.h
(738 B)
📄
sockios.h
(5.83 KB)
📄
som.h
(5.35 KB)
📄
sonet.h
(2.16 KB)
📄
sonypi.h
(5.02 KB)
📄
sound.h
(1.07 KB)
📄
soundcard.h
(44.94 KB)
📁
spi
📄
stat.h
(1005 B)
📄
stddef.h
(633 B)
📄
string.h
(175 B)
📁
sunrpc
📄
suspend_ioctls.h
(1.34 KB)
📄
swab.h
(6.14 KB)
📄
synclink.h
(8.49 KB)
📄
sysctl.h
(25.87 KB)
📄
taskstats.h
(6.78 KB)
📁
tc_act
📁
tc_ematch
📄
tcp.h
(5.08 KB)
📄
telephony.h
(8.84 KB)
📄
termios.h
(544 B)
📄
time.h
(1.7 KB)
📄
times.h
(215 B)
📄
timex.h
(6.08 KB)
📄
tiocl.h
(1.63 KB)
📄
tipc.h
(5.77 KB)
📄
tipc_config.h
(15.01 KB)
📄
toshiba.h
(1.25 KB)
📄
tty.h
(128 B)
📄
types.h
(991 B)
📄
udf_fs_i.h
(634 B)
📄
udp.h
(1.14 KB)
📄
uinput.h
(5 KB)
📄
uio.h
(648 B)
📄
ultrasound.h
(4.39 KB)
📄
un.h
(203 B)
📄
unistd.h
(157 B)
📁
usb
📄
usbdevice_fs.h
(5.21 KB)
📄
utime.h
(152 B)
📄
utsname.h
(606 B)
📄
uuid.h
(1.73 KB)
📄
version.h
(281 B)
📄
veth.h
(474 B)
📄
vhost.h
(4.46 KB)
📄
videodev.h
(10.27 KB)
📄
videodev2.h
(64.52 KB)
📄
videotext.h
(4.14 KB)
📄
virtio_9p.h
(351 B)
📄
virtio_balloon.h
(1.23 KB)
📄
virtio_blk.h
(2.91 KB)
📄
virtio_config.h
(1.25 KB)
📄
virtio_console.h
(1.37 KB)
📄
virtio_ids.h
(545 B)
📄
virtio_net.h
(6.86 KB)
📄
virtio_pci.h
(2.21 KB)
📄
virtio_ring.h
(4.38 KB)
📄
virtio_rng.h
(265 B)
📄
vt.h
(3 KB)
📄
wait.h
(580 B)
📄
wanrouter.h
(17.42 KB)
📄
watchdog.h
(2.34 KB)
📁
wimax
📄
wimax.h
(8.17 KB)
📄
wireless.h
(41.65 KB)
📄
x25.h
(3.34 KB)
📄
xattr.h
(646 B)
📄
xfrm.h
(10.31 KB)
Editing: smbno.h
#ifndef _SMBNO_H_ #define _SMBNO_H_ /* these define the attribute byte as seen by DOS */ #define aRONLY (1L<<0) #define aHIDDEN (1L<<1) #define aSYSTEM (1L<<2) #define aVOLID (1L<<3) #define aDIR (1L<<4) #define aARCH (1L<<5) /* error classes */ #define SUCCESS 0 /* The request was successful. */ #define ERRDOS 0x01 /* Error is from the core DOS operating system set. */ #define ERRSRV 0x02 /* Error is generated by the server network file manager.*/ #define ERRHRD 0x03 /* Error is an hardware error. */ #define ERRCMD 0xFF /* Command was not in the "SMB" format. */ /* SMB X/Open error codes for the ERRdos error class */ #define ERRbadfunc 1 /* Invalid function (or system call) */ #define ERRbadfile 2 /* File not found (pathname error) */ #define ERRbadpath 3 /* Directory not found */ #define ERRnofids 4 /* Too many open files */ #define ERRnoaccess 5 /* Access denied */ #define ERRbadfid 6 /* Invalid fid */ #define ERRbadmcb 7 /* Memory control blocks destroyed */ #define ERRnomem 8 /* Out of memory */ #define ERRbadmem 9 /* Invalid memory block address */ #define ERRbadenv 10 /* Invalid environment */ #define ERRbadformat 11 /* Invalid format */ #define ERRbadaccess 12 /* Invalid open mode */ #define ERRbaddata 13 /* Invalid data (only from ioctl call) */ #define ERRres 14 /* reserved */ #define ERRbaddrive 15 /* Invalid drive */ #define ERRremcd 16 /* Attempt to delete current directory */ #define ERRdiffdevice 17 /* rename/move across different filesystems */ #define ERRnofiles 18 /* no more files found in file search */ #define ERRbadshare 32 /* Share mode on file conflict with open mode */ #define ERRlock 33 /* Lock request conflicts with existing lock */ #define ERRfilexists 80 /* File in operation already exists */ #define ERRbadpipe 230 /* Named pipe invalid */ #define ERRpipebusy 231 /* All instances of pipe are busy */ #define ERRpipeclosing 232 /* named pipe close in progress */ #define ERRnotconnected 233 /* No process on other end of named pipe */ #define ERRmoredata 234 /* More data to be returned */ #define ERROR_INVALID_PARAMETER 87 #define ERROR_DISK_FULL 112 #define ERROR_INVALID_NAME 123 #define ERROR_DIR_NOT_EMPTY 145 #define ERROR_NOT_LOCKED 158 #define ERROR_ALREADY_EXISTS 183 /* see also 80 ? */ #define ERROR_EAS_DIDNT_FIT 275 /* Extended attributes didn't fit */ #define ERROR_EAS_NOT_SUPPORTED 282 /* Extended attributes not supported */ /* Error codes for the ERRSRV class */ #define ERRerror 1 /* Non specific error code */ #define ERRbadpw 2 /* Bad password */ #define ERRbadtype 3 /* reserved */ #define ERRaccess 4 /* No permissions to do the requested operation */ #define ERRinvnid 5 /* tid invalid */ #define ERRinvnetname 6 /* Invalid servername */ #define ERRinvdevice 7 /* Invalid device */ #define ERRqfull 49 /* Print queue full */ #define ERRqtoobig 50 /* Queued item too big */ #define ERRinvpfid 52 /* Invalid print file in smb_fid */ #define ERRsmbcmd 64 /* Unrecognised command */ #define ERRsrverror 65 /* smb server internal error */ #define ERRfilespecs 67 /* fid and pathname invalid combination */ #define ERRbadlink 68 /* reserved */ #define ERRbadpermits 69 /* Access specified for a file is not valid */ #define ERRbadpid 70 /* reserved */ #define ERRsetattrmode 71 /* attribute mode invalid */ #define ERRpaused 81 /* Message server paused */ #define ERRmsgoff 82 /* Not receiving messages */ #define ERRnoroom 83 /* No room for message */ #define ERRrmuns 87 /* too many remote usernames */ #define ERRtimeout 88 /* operation timed out */ #define ERRnoresource 89 /* No resources currently available for request. */ #define ERRtoomanyuids 90 /* too many userids */ #define ERRbaduid 91 /* bad userid */ #define ERRuseMPX 250 /* temporarily unable to use raw mode, use MPX mode */ #define ERRuseSTD 251 /* temporarily unable to use raw mode, use std.mode */ #define ERRcontMPX 252 /* resume MPX mode */ #define ERRbadPW /* reserved */ #define ERRnosupport 0xFFFF /* Error codes for the ERRHRD class */ #define ERRnowrite 19 /* read only media */ #define ERRbadunit 20 /* Unknown device */ #define ERRnotready 21 /* Drive not ready */ #define ERRbadcmd 22 /* Unknown command */ #define ERRdata 23 /* Data (CRC) error */ #define ERRbadreq 24 /* Bad request structure length */ #define ERRseek 25 #define ERRbadmedia 26 #define ERRbadsector 27 #define ERRnopaper 28 #define ERRwrite 29 /* write fault */ #define ERRread 30 /* read fault */ #define ERRgeneral 31 /* General hardware failure */ #define ERRwrongdisk 34 #define ERRFCBunavail 35 #define ERRsharebufexc 36 /* share buffer exceeded */ #define ERRdiskfull 39 /* * Access modes when opening a file */ #define SMB_ACCMASK 0x0003 #define SMB_O_RDONLY 0x0000 #define SMB_O_WRONLY 0x0001 #define SMB_O_RDWR 0x0002 /* offsets into message for common items */ #define smb_com 8 #define smb_rcls 9 #define smb_reh 10 #define smb_err 11 #define smb_flg 13 #define smb_flg2 14 #define smb_reb 13 #define smb_tid 28 #define smb_pid 30 #define smb_uid 32 #define smb_mid 34 #define smb_wct 36 #define smb_vwv 37 #define smb_vwv0 37 #define smb_vwv1 39 #define smb_vwv2 41 #define smb_vwv3 43 #define smb_vwv4 45 #define smb_vwv5 47 #define smb_vwv6 49 #define smb_vwv7 51 #define smb_vwv8 53 #define smb_vwv9 55 #define smb_vwv10 57 #define smb_vwv11 59 #define smb_vwv12 61 #define smb_vwv13 63 #define smb_vwv14 65 /* these are the trans2 sub fields for primary requests */ #define smb_tpscnt smb_vwv0 #define smb_tdscnt smb_vwv1 #define smb_mprcnt smb_vwv2 #define smb_mdrcnt smb_vwv3 #define smb_msrcnt smb_vwv4 #define smb_flags smb_vwv5 #define smb_timeout smb_vwv6 #define smb_pscnt smb_vwv9 #define smb_psoff smb_vwv10 #define smb_dscnt smb_vwv11 #define smb_dsoff smb_vwv12 #define smb_suwcnt smb_vwv13 #define smb_setup smb_vwv14 #define smb_setup0 smb_setup #define smb_setup1 (smb_setup+2) #define smb_setup2 (smb_setup+4) /* these are for the secondary requests */ #define smb_spscnt smb_vwv2 #define smb_spsoff smb_vwv3 #define smb_spsdisp smb_vwv4 #define smb_sdscnt smb_vwv5 #define smb_sdsoff smb_vwv6 #define smb_sdsdisp smb_vwv7 #define smb_sfid smb_vwv8 /* and these for responses */ #define smb_tprcnt smb_vwv0 #define smb_tdrcnt smb_vwv1 #define smb_prcnt smb_vwv3 #define smb_proff smb_vwv4 #define smb_prdisp smb_vwv5 #define smb_drcnt smb_vwv6 #define smb_droff smb_vwv7 #define smb_drdisp smb_vwv8 /* the complete */ #define SMBmkdir 0x00 /* create directory */ #define SMBrmdir 0x01 /* delete directory */ #define SMBopen 0x02 /* open file */ #define SMBcreate 0x03 /* create file */ #define SMBclose 0x04 /* close file */ #define SMBflush 0x05 /* flush file */ #define SMBunlink 0x06 /* delete file */ #define SMBmv 0x07 /* rename file */ #define SMBgetatr 0x08 /* get file attributes */ #define SMBsetatr 0x09 /* set file attributes */ #define SMBread 0x0A /* read from file */ #define SMBwrite 0x0B /* write to file */ #define SMBlock 0x0C /* lock byte range */ #define SMBunlock 0x0D /* unlock byte range */ #define SMBctemp 0x0E /* create temporary file */ #define SMBmknew 0x0F /* make new file */ #define SMBchkpth 0x10 /* check directory path */ #define SMBexit 0x11 /* process exit */ #define SMBlseek 0x12 /* seek */ #define SMBtcon 0x70 /* tree connect */ #define SMBtconX 0x75 /* tree connect and X*/ #define SMBtdis 0x71 /* tree disconnect */ #define SMBnegprot 0x72 /* negotiate protocol */ #define SMBdskattr 0x80 /* get disk attributes */ #define SMBsearch 0x81 /* search directory */ #define SMBsplopen 0xC0 /* open print spool file */ #define SMBsplwr 0xC1 /* write to print spool file */ #define SMBsplclose 0xC2 /* close print spool file */ #define SMBsplretq 0xC3 /* return print queue */ #define SMBsends 0xD0 /* send single block message */ #define SMBsendb 0xD1 /* send broadcast message */ #define SMBfwdname 0xD2 /* forward user name */ #define SMBcancelf 0xD3 /* cancel forward */ #define SMBgetmac 0xD4 /* get machine name */ #define SMBsendstrt 0xD5 /* send start of multi-block message */ #define SMBsendend 0xD6 /* send end of multi-block message */ #define SMBsendtxt 0xD7 /* send text of multi-block message */ /* Core+ protocol */ #define SMBlockread 0x13 /* Lock a range and read */ #define SMBwriteunlock 0x14 /* Unlock a range then write */ #define SMBreadbraw 0x1a /* read a block of data with no smb header */ #define SMBwritebraw 0x1d /* write a block of data with no smb header */ #define SMBwritec 0x20 /* secondary write request */ #define SMBwriteclose 0x2c /* write a file then close it */ /* dos extended protocol */ #define SMBreadBraw 0x1A /* read block raw */ #define SMBreadBmpx 0x1B /* read block multiplexed */ #define SMBreadBs 0x1C /* read block (secondary response) */ #define SMBwriteBraw 0x1D /* write block raw */ #define SMBwriteBmpx 0x1E /* write block multiplexed */ #define SMBwriteBs 0x1F /* write block (secondary request) */ #define SMBwriteC 0x20 /* write complete response */ #define SMBsetattrE 0x22 /* set file attributes expanded */ #define SMBgetattrE 0x23 /* get file attributes expanded */ #define SMBlockingX 0x24 /* lock/unlock byte ranges and X */ #define SMBtrans 0x25 /* transaction - name, bytes in/out */ #define SMBtranss 0x26 /* transaction (secondary request/response) */ #define SMBioctl 0x27 /* IOCTL */ #define SMBioctls 0x28 /* IOCTL (secondary request/response) */ #define SMBcopy 0x29 /* copy */ #define SMBmove 0x2A /* move */ #define SMBecho 0x2B /* echo */ #define SMBopenX 0x2D /* open and X */ #define SMBreadX 0x2E /* read and X */ #define SMBwriteX 0x2F /* write and X */ #define SMBsesssetupX 0x73 /* Session Set Up & X (including User Logon) */ #define SMBtconX 0x75 /* tree connect and X */ #define SMBffirst 0x82 /* find first */ #define SMBfunique 0x83 /* find unique */ #define SMBfclose 0x84 /* find close */ #define SMBinvalid 0xFE /* invalid command */ /* Extended 2.0 protocol */ #define SMBtrans2 0x32 /* TRANS2 protocol set */ #define SMBtranss2 0x33 /* TRANS2 protocol set, secondary command */ #define SMBfindclose 0x34 /* Terminate a TRANSACT2_FINDFIRST */ #define SMBfindnclose 0x35 /* Terminate a TRANSACT2_FINDNOTIFYFIRST */ #define SMBulogoffX 0x74 /* user logoff */ /* these are the TRANS2 sub commands */ #define TRANSACT2_OPEN 0 #define TRANSACT2_FINDFIRST 1 #define TRANSACT2_FINDNEXT 2 #define TRANSACT2_QFSINFO 3 #define TRANSACT2_SETFSINFO 4 #define TRANSACT2_QPATHINFO 5 #define TRANSACT2_SETPATHINFO 6 #define TRANSACT2_QFILEINFO 7 #define TRANSACT2_SETFILEINFO 8 #define TRANSACT2_FSCTL 9 #define TRANSACT2_IOCTL 10 #define TRANSACT2_FINDNOTIFYFIRST 11 #define TRANSACT2_FINDNOTIFYNEXT 12 #define TRANSACT2_MKDIR 13 /* Information Levels - Shared? */ #define SMB_INFO_STANDARD 1 #define SMB_INFO_QUERY_EA_SIZE 2 #define SMB_INFO_QUERY_EAS_FROM_LIST 3 #define SMB_INFO_QUERY_ALL_EAS 4 #define SMB_INFO_IS_NAME_VALID 6 /* Information Levels - TRANSACT2_FINDFIRST */ #define SMB_FIND_FILE_DIRECTORY_INFO 0x101 #define SMB_FIND_FILE_FULL_DIRECTORY_INFO 0x102 #define SMB_FIND_FILE_NAMES_INFO 0x103 #define SMB_FIND_FILE_BOTH_DIRECTORY_INFO 0x104 /* Information Levels - TRANSACT2_QPATHINFO */ #define SMB_QUERY_FILE_BASIC_INFO 0x101 #define SMB_QUERY_FILE_STANDARD_INFO 0x102 #define SMB_QUERY_FILE_EA_INFO 0x103 #define SMB_QUERY_FILE_NAME_INFO 0x104 #define SMB_QUERY_FILE_ALL_INFO 0x107 #define SMB_QUERY_FILE_ALT_NAME_INFO 0x108 #define SMB_QUERY_FILE_STREAM_INFO 0x109 #define SMB_QUERY_FILE_COMPRESSION_INFO 0x10b /* Information Levels - TRANSACT2_SETFILEINFO */ #define SMB_SET_FILE_BASIC_INFO 0x101 #define SMB_SET_FILE_DISPOSITION_INFO 0x102 #define SMB_SET_FILE_ALLOCATION_INFO 0x103 #define SMB_SET_FILE_END_OF_FILE_INFO 0x104 /* smb_flg field flags */ #define SMB_FLAGS_SUPPORT_LOCKREAD 0x01 #define SMB_FLAGS_CLIENT_BUF_AVAIL 0x02 #define SMB_FLAGS_RESERVED 0x04 #define SMB_FLAGS_CASELESS_PATHNAMES 0x08 #define SMB_FLAGS_CANONICAL_PATHNAMES 0x10 #define SMB_FLAGS_REQUEST_OPLOCK 0x20 #define SMB_FLAGS_REQUEST_BATCH_OPLOCK 0x40 #define SMB_FLAGS_REPLY 0x80 /* smb_flg2 field flags (samba-2.2.0/source/include/smb.h) */ #define SMB_FLAGS2_LONG_PATH_COMPONENTS 0x0001 #define SMB_FLAGS2_EXTENDED_ATTRIBUTES 0x0002 #define SMB_FLAGS2_DFS_PATHNAMES 0x1000 #define SMB_FLAGS2_READ_PERMIT_NO_EXECUTE 0x2000 #define SMB_FLAGS2_32_BIT_ERROR_CODES 0x4000 #define SMB_FLAGS2_UNICODE_STRINGS 0x8000 /* * UNIX stuff (from samba trans2.h) */ #define MIN_UNIX_INFO_LEVEL 0x200 #define MAX_UNIX_INFO_LEVEL 0x2FF #define SMB_FIND_FILE_UNIX 0x202 #define SMB_QUERY_FILE_UNIX_BASIC 0x200 #define SMB_QUERY_FILE_UNIX_LINK 0x201 #define SMB_QUERY_FILE_UNIX_HLINK 0x202 #define SMB_SET_FILE_UNIX_BASIC 0x200 #define SMB_SET_FILE_UNIX_LINK 0x201 #define SMB_SET_FILE_UNIX_HLINK 0x203 #define SMB_QUERY_CIFS_UNIX_INFO 0x200 /* values which means "don't change it" */ #define SMB_MODE_NO_CHANGE 0xFFFFFFFF #define SMB_UID_NO_CHANGE 0xFFFFFFFF #define SMB_GID_NO_CHANGE 0xFFFFFFFF #define SMB_TIME_NO_CHANGE 0xFFFFFFFFFFFFFFFFULL #define SMB_SIZE_NO_CHANGE 0xFFFFFFFFFFFFFFFFULL /* UNIX filetype mappings. */ #define UNIX_TYPE_FILE 0 #define UNIX_TYPE_DIR 1 #define UNIX_TYPE_SYMLINK 2 #define UNIX_TYPE_CHARDEV 3 #define UNIX_TYPE_BLKDEV 4 #define UNIX_TYPE_FIFO 5 #define UNIX_TYPE_SOCKET 6 #define UNIX_TYPE_UNKNOWN 0xFFFFFFFF #endif /* _SMBNO_H_ */
Upload File
Create Folder