Browse Source

brk() and sbrk() should use void *, not char *. Note that sbrk()

should take intptr_t, not int, but we don't presently have intptr_t
available from unistd.h.  OK marco@
OPENBSD_3_9
millert 19 years ago
parent
commit
059ddb430d
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/include/unistd.h

+ 3
- 3
src/include/unistd.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: unistd.h,v 1.53 2005/05/27 17:45:56 millert Exp $ */
/* $OpenBSD: unistd.h,v 1.54 2005/11/20 02:24:59 millert Exp $ */
/* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */ /* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */
/*- /*-
@ -130,7 +130,7 @@ ssize_t pwrite(int, const void *, size_t, off_t);
#endif #endif
int acct(const char *); int acct(const char *);
char *brk(const char *);
void *brk(void *);
int chroot(const char *); int chroot(const char *);
#if !defined(_XOPEN_SOURCE) #if !defined(_XOPEN_SOURCE)
int closefrom(int); int closefrom(int);
@ -188,7 +188,7 @@ int rresvport(int *);
int rresvport_af(int *, int); int rresvport_af(int *, int);
int ruserok(const char *, int, const char *, const char *); int ruserok(const char *, int, const char *, const char *);
int quotactl(const char *, int, int, char *); int quotactl(const char *, int, int, char *);
char *sbrk(int);
void *sbrk(int);
#if !defined(_XOPEN_SOURCE) #if !defined(_XOPEN_SOURCE)
int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);


Loading…
Cancel
Save