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.
This commit is contained in:
parent
123b196a08
commit
aa4b7eae22
@ -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); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user