Date: Wed, 29 Jul 1998 20:09:12 +0100 (BST) From: Doug Rabson <dfr@nlsystems.com> To: current@FreeBSD.ORG Subject: Proposed syscall changes for 64bit platforms Message-ID: <Pine.BSF.4.01.9807292007030.13755-100000@herring.nlsystems.com>
next in thread | raw e-mail | index | archive | help
I want to make the following changes to syscall arguments to support 64bit
platforms. The changes are just to convert some u_int arguments to size_t
and should be cosmetic for i386. Does anyone have any
objections/comments?
Index: syscalls.master
===================================================================
RCS file: /home/ncvs/src/sys/kern/syscalls.master,v
retrieving revision 1.52
diff -u -r1.52 syscalls.master
--- syscalls.master 1998/06/07 17:11:40 1.52
+++ syscalls.master 1998/07/20 12:36:40
@@ -37,8 +37,8 @@
0 STD NOHIDE { int nosys(void); } syscall nosys_args int
1 STD NOHIDE { void exit(int rval); } exit rexit_args void
2 STD POSIX { int fork(void); }
-3 STD POSIX { int read(int fd, char *buf, u_int nbyte); }
-4 STD POSIX { int write(int fd, char *buf, u_int nbyte); }
+3 STD POSIX { int read(int fd, char *buf, size_t nbyte); }
+4 STD POSIX { int write(int fd, char *buf, size_t nbyte); }
5 STD POSIX { int open(char *path, int flags, int mode); }
; XXX should be { int open(const char *path, int flags, ...); }
; but we're not ready for `const' or varargs.
@@ -88,8 +88,8 @@
41 STD POSIX { int dup(u_int fd); }
42 STD POSIX { int pipe(void); }
43 STD POSIX { gid_t getegid(void); }
-44 STD BSD { int profil(caddr_t samples, u_int size, \
- u_int offset, u_int scale); }
+44 STD BSD { int profil(caddr_t samples, size_t size, \
+ size_t offset, u_int scale); }
45 STD BSD { int ktrace(char *fname, int ops, int facs, \
int pid); }
46 STD POSIX { int sigaction(int signum, struct sigaction *nsa, \
@@ -114,7 +114,7 @@
60 STD POSIX { int umask(int newmask); } umask umask_args int
61 STD BSD { int chroot(char *path); }
62 COMPAT POSIX { int fstat(int fd, struct ostat *sb); }
-63 COMPAT BSD { int getkerninfo(int op, char *where, int *size, \
+63 COMPAT BSD { int getkerninfo(int op, char *where, size_t *size, \
int arg); } getkerninfo getkerninfo_args int
64 COMPAT BSD { int getpagesize(void); } \
getpagesize getpagesize_args int
@@ -143,9 +143,9 @@
84 COMPAT BSD { int wait(void); }
85 STD BSD { int swapon(char *name); }
86 STD BSD { int getitimer(u_int which, struct itimerval *itv); }
-87 COMPAT BSD { int gethostname(char *hostname, u_int len); } \
+87 COMPAT BSD { int gethostname(char *hostname, size_t len); } \
gethostname gethostname_args int
-88 COMPAT BSD { int sethostname(char *hostname, u_int len); } \
+88 COMPAT BSD { int sethostname(char *hostname, size_t len); } \
sethostname sethostname_args int
89 STD BSD { int getdtablesize(void); }
90 STD POSIX { int dup2(u_int from, u_int to); }
--
Doug Rabson Mail: dfr@nlsystems.com
Nonlinear Systems Ltd. Phone: +44 181 951 1891
Fax: +44 181 381 1039
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.01.9807292007030.13755-100000>
