summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_sysent.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>1999-03-27 21:16:58 +0000
committeralc <alc@FreeBSD.org>1999-03-27 21:16:58 +0000
commitc9eccc7347cc4051a3db16f68f3a854908494917 (patch)
tree5921615b06b186f28e5d3133d7bc1b1a43ab944d /sys/kern/init_sysent.c
parent807da996a2d52fdc0c28d408fabc635bb3c681d4 (diff)
downloadFreeBSD-src-c9eccc7347cc4051a3db16f68f3a854908494917.zip
FreeBSD-src-c9eccc7347cc4051a3db16f68f3a854908494917.tar.gz
Added pread and pwrite. These functions are defined by the X/Open
Threads Extension. (Note: We use the same syscall numbers as NetBSD.) Submitted by: John Plevyak <jplevyak@inktomi.com>
Diffstat (limited to 'sys/kern/init_sysent.c')
-rw-r--r--sys/kern/init_sysent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/init_sysent.c b/sys/kern/init_sysent.c
index c31ed46..c258380 100644
--- a/sys/kern/init_sysent.c
+++ b/sys/kern/init_sysent.c
@@ -192,8 +192,8 @@ struct sysent sysent[] = {
{ 6, (sy_call_t *)msgsys }, /* 170 = msgsys */
{ 4, (sy_call_t *)shmsys }, /* 171 = shmsys */
{ 0, (sy_call_t *)nosys }, /* 172 = nosys */
- { 0, (sy_call_t *)nosys }, /* 173 = nosys */
- { 0, (sy_call_t *)nosys }, /* 174 = nosys */
+ { 5, (sy_call_t *)pread }, /* 173 = pread */
+ { 5, (sy_call_t *)pwrite }, /* 174 = pwrite */
{ 0, (sy_call_t *)nosys }, /* 175 = nosys */
{ 1, (sy_call_t *)ntp_adjtime }, /* 176 = ntp_adjtime */
{ 0, (sy_call_t *)nosys }, /* 177 = sfork */
OpenPOWER on IntegriCloud