i cut'n'pasted them out of unistd.h in 2.6.7. appears to compile fine now. thanks
That's a rather odd thing to do, as it's not like there's a generic
EXPORT_SYMBOL'ed way to e.g. open a file. I can't imagine why they'd
have removed all wrappers except execve.
Easiest workaround is just to roll your own wrappers around the
syscalls using the _syscall* macros.
> Speaking of compiling, iscsi-init doesn't seem to compile for me under 22.214.171.124. It tells me this:
> make -C /lib/modules/126.96.36.199-xenU/build SUBDIRS=/usr/src/iscsi-init-4.0.1 modules
> make: Entering directory `/usr/src/xeno-unstable.bk/linux-188.8.131.52-xenU'
> Building modules, stage 2.
> *** Warning: "close" [/usr/src/iscsi-init-4.0.1/iscsi_init.ko] undefined!
> *** Warning: "read" [/usr/src/iscsi-init-4.0.1/iscsi_init.ko] undefined!
> *** Warning: "open" [/usr/src/iscsi-init-4.0.1/iscsi_init.ko] undefined!
> make: Leaving directory `/usr/src/xeno-unstable.bk/linux-184.108.40.206-xenU'
> and then of course close, read, and open are missing symbols.
> it looks like the definitions from <asm/unistd.h> have been taken away between 2.6.7 and 2.6.8. Any idea's what should replace them? What should kernel code use for opening, reading, and closing files?