Date: Thu, 30 Jul 1998 09:04:19 +0100 (BST) From: Doug Rabson <dfr@nlsystems.com> To: Bruce Evans <bde@zeta.org.au> Cc: current@FreeBSD.ORG Subject: Re: Proposed syscall changes for 64bit platforms Message-ID: <Pine.BSF.4.01.9807300859320.13755-100000@herring.nlsystems.com> In-Reply-To: <199807300742.RAA02646@godzilla.zeta.org.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 30 Jul 1998, Bruce Evans wrote:
> >-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); }
>
> See if you can change these to `ssize_t ... void *buf ...' so that they
> actually match their application interface. Changing the return type
> seems to be hard - it seems to require changing all syscalls to return
> (signed) register_t.
I'll try. The return type shouldn't be a problem due to the way that
return values are handled for syscalls.
>
> >-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
>
> Probably shouldn't be supported on new arches.
Ok.
>
> >-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
>
> Certainly shouldn't be supported on new arches (were superseded by sysctls).
These last two ones don't matter practically. I will backout that part.
Actually the only one which really needed to change was sysctl since that
passes a pointer to a length variable.
--
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.9807300859320.13755-100000>
