From owner-freebsd-current Wed Jul 29 12:08:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA04615 for freebsd-current-outgoing; Wed, 29 Jul 1998 12:08:09 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA04504 for ; Wed, 29 Jul 1998 12:07:57 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from herring.nlsystems.com (herring.nlsystems.com [10.0.0.2]) by nlsystems.com (8.8.8/8.8.5) with SMTP id UAA14174 for ; Wed, 29 Jul 1998 20:09:12 +0100 (BST) Date: Wed, 29 Jul 1998 20:09:12 +0100 (BST) From: Doug Rabson To: current@FreeBSD.ORG Subject: Proposed syscall changes for 64bit platforms Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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