Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Jul 1998 17:42:00 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        current@FreeBSD.ORG, dfr@nlsystems.com
Subject:   Re: Proposed syscall changes for 64bit platforms
Message-ID:  <199807300742.RAA02646@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>-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.

>-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.

>-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).

Bruce

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?199807300742.RAA02646>