diff options
author | David Malone <dwmalone@FreeBSD.org> | 2002-01-24 12:11:31 +0000 |
---|---|---|
committer | David Malone <dwmalone@FreeBSD.org> | 2002-01-24 12:11:31 +0000 |
commit | 98d1592458f5ead3e8cd52ca7d8185977d7fdef8 (patch) | |
tree | b31855c8a65a23be32e28129e6ef6b841a1500fe /include/unistd.h | |
parent | e4e61f78536cea5cf9c73cf4b2dab9565ee993be (diff) | |
download | src-98d1592458f5ead3e8cd52ca7d8185977d7fdef8.tar.gz src-98d1592458f5ead3e8cd52ca7d8185977d7fdef8.zip |
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
Notes
Notes:
svn path=/head/; revision=89732
Diffstat (limited to 'include/unistd.h')
-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 37dab6712019..56e9de329dc8 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)); |