diff options
author | bde <bde@FreeBSD.org> | 2000-05-09 08:31:06 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2000-05-09 08:31:06 +0000 |
commit | 7bd103c8fba264ecfac801d8c9273878096b3792 (patch) | |
tree | 07916dabb5064be24382c6c83f35552b002f68e8 /sys | |
parent | e2d76028f00824c540a603bfb0fcb53716aa36d4 (diff) | |
download | FreeBSD-src-7bd103c8fba264ecfac801d8c9273878096b3792.zip FreeBSD-src-7bd103c8fba264ecfac801d8c9273878096b3792.tar.gz |
Fixed the declaration of mmap(). The crufty padding arg had the wrong
type. This gave an inconsistent amount of crufty padding on i386's with
64-bit longs (8 bytes instead of 4). On alphas it gives a consistent
amount of crufty padding (8 bytes) in addition to the 4 bytes of normal
padding caused by passing int args as register_t's.
Fixed the args struct tag for the NOPROTO syscalls (netbsd_lchown() and
netbsd_msync()). The tag is currently unused for NOPROTO syscalls, so
the bug has no effect, but it will be used even in the NOPROTO case to
calculate sy_nargs correctly.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/syscalls.master | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index 0c866e0..e1ae745 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -302,7 +302,7 @@ 196 STD BSD { int getdirentries(int fd, char *buf, u_int count, \ long *basep); } 197 STD BSD { caddr_t mmap(caddr_t addr, size_t len, int prot, \ - int flags, int fd, long pad, off_t pos); } + int flags, int fd, int pad, off_t pos); } 198 STD NOHIDE { int nosys(void); } __syscall __syscall_args int 199 STD POSIX { off_t lseek(int fd, int pad, off_t offset, \ int whence); } @@ -407,9 +407,9 @@ 272 STD BSD { int getdents(int fd, char *buf, size_t count); } 273 UNIMPL NOHIDE nosys 274 STD BSD { int lchmod(char *path, mode_t mode); } -275 NOPROTO BSD { int lchown(char *path, uid_t uid, gid_t gid); } netbsd_lchown netbsd_lchown int +275 NOPROTO BSD { int lchown(char *path, uid_t uid, gid_t gid); } netbsd_lchown lchown_args int 276 STD BSD { int lutimes(char *path, struct timeval *tptr); } -277 NOPROTO BSD { int msync(void *addr, size_t len, int flags); } netbsd_msync netbsd_msync int +277 NOPROTO BSD { int msync(void *addr, size_t len, int flags); } netbsd_msync msync_args int 278 STD BSD { int nstat(char *path, struct nstat *ub); } 279 STD BSD { int nfstat(int fd, struct nstat *sb); } 280 STD BSD { int nlstat(char *path, struct nstat *ub); } |