pread/pwrite and ix86

Andreas Jaeger (aj@arthur.rhein-neckar.de)
Sun, 30 Nov 1997 23:49:50 +0100 (CET)


AFAIK at the moment only the alpha platform supports the pread/pwrite
syscalls from user level programs. What's necessary for the other
platforms? Are the appended patches (against 2.1.67) sufficient for
i386 or do I need to add more to use pread/pwrite?

Thanks,
Andreas

--- arch/i386/kernel/entry.S.~1~ Wed Nov 26 12:10:10 1997
+++ arch/i386/kernel/entry.S Sun Nov 30 23:42:50 1997
@@ -529,6 +529,8 @@
.long SYMBOL_NAME(sys_setresgid) /* 170 */
.long SYMBOL_NAME(sys_getresgid)
.long SYMBOL_NAME(sys_prctl)
- .rept NR_syscalls-172
+ .long SYMBOL_NAME(sys_pread)
+ .long SYMBOL_NAME(sys_pwrite)
+ .rept NR_syscalls-174
.long SYMBOL_NAME(sys_ni_syscall)
.endr
--- include/asm-i386/unistd.h.~1~ Sun Nov 30 22:43:17 1997
+++ include/asm-i386/unistd.h Sun Nov 30 23:39:48 1997
@@ -178,6 +178,8 @@
#define __NR_setresgid 170
#define __NR_getresgid 171
#define __NR_prctl 172
+#define __NR_pread 173
+#define __NR_pwrite 174

/* user-visible error numbers are in the range -1 - -122: see <asm-i386/errno.h> */

-- 
 Andreas Jaeger   aj@arthur.rhein-neckar.de    jaeger@informatik.uni-kl.de
  for pgp-key finger ajaeger@alma.student.uni-kl.de
    http://www.student.uni-kl.de/~ajaeger/