diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2002-01-24 12:11:31 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2002-01-24 12:11:31 +0000 |
commit | 33776f88dc7a21766cda77b39d94c1b57a18ddc2 (patch) | |
tree | b31855c8a65a23be32e28129e6ef6b841a1500fe /include | |
parent | 3d5a7ba605c55d5a349fd48ea3ce463a951502fc (diff) | |
download | FreeBSD-src-33776f88dc7a21766cda77b39d94c1b57a18ddc2.zip FreeBSD-src-33776f88dc7a21766cda77b39d94c1b57a18ddc2.tar.gz |
Change brk's prototype from char *brk(const char *) to int brk(const void *)
and sbrk's prototype from char *sbrk(int) to void *sbrk(intptr_t).
This makes us more consistant with NetBSD and standards which include
these functions. Bruce pointed out that ptrdiff_t would probably
have been better than intptr_t, but this doesn't match other
implimentations.
Also remove local declarations of sbrk and unnecessary casting.
PR: 32296
Tested by: Harti Brandt <brandt@fokus.gmd.de>
MFC after: 1 month
Diffstat (limited to 'include')
-rw-r--r-- | include/unistd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/unistd.h b/include/unistd.h index 37dab67..56e9de3 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -118,7 +118,7 @@ struct timeval; /* select(2) */ #endif int acct __P((const char *)); int async_daemon __P((void)); -char *brk __P((const char *)); +int brk __P((const void *)); int chroot __P((const char *)); size_t confstr __P((int, char *, size_t)); char *crypt __P((const char *, const char *)); @@ -187,7 +187,7 @@ pid_t rfork_thread __P((int, void *, int (*)(void *), void *)); int rresvport __P((int *)); int rresvport_af __P((int *, int)); int ruserok __P((const char *, int, const char *, const char *)); -char *sbrk __P((int)); +void *sbrk __P((intptr_t)); int select __P((int, fd_set *, fd_set *, fd_set *, struct timeval *)); int setdomainname __P((const char *, int)); int setegid __P((gid_t)); |