From owner-freebsd-current Thu Jul 30 00:42:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA22218 for freebsd-current-outgoing; Thu, 30 Jul 1998 00:42:07 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.15.68.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA22199 for ; Thu, 30 Jul 1998 00:42:04 -0700 (PDT) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id RAA02646; Thu, 30 Jul 1998 17:42:00 +1000 Date: Thu, 30 Jul 1998 17:42:00 +1000 From: Bruce Evans Message-Id: <199807300742.RAA02646@godzilla.zeta.org.au> To: current@FreeBSD.ORG, dfr@nlsystems.com Subject: Re: Proposed syscall changes for 64bit platforms Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >-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