diff options
author | Kurt Miller <kurt@cvs.openbsd.org> | 2008-04-24 20:43:21 +0000 |
---|---|---|
committer | Kurt Miller <kurt@cvs.openbsd.org> | 2008-04-24 20:43:21 +0000 |
commit | 90521bd510f411f928908926bb1bbda3ad580a78 (patch) | |
tree | 48270e8de032e1c47a53409f9fa11806bf184f38 /include | |
parent | 4f9e1ab3a6ccc4582120bd25ea39d4401bd852bb (diff) |
- correct brk(2) prototype and man page to match implementation and POSIX.
brk(2) returns an int value not a void *. brk(2) returns 0 upon success not
a pointer to the new end of memory. okay millert@, kettenis@, deraadt@
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 b093a5a7215..0dbe24f6e42 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: unistd.h,v 1.59 2006/12/20 08:12:00 espie Exp $ */ +/* $OpenBSD: unistd.h,v 1.60 2008/04/24 20:43:20 kurt Exp $ */ /* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */ /*- @@ -176,7 +176,7 @@ int ttyname_r(int, char *, size_t) #if __BSD_VISIBLE || __XPG_VISIBLE <= 500 /* Interfaces withdrawn by X/Open Issue 5 Version 0 */ -void *brk(void *); +int brk(void *); int chroot(const char *); int getdtablesize(void); int getpagesize(void); |