Subject: brk() and sbrk() return-types and protos
To: None <apana-lists-os-netbsd-general@apana.org.au>
From: G C Wing <mason@werple.apana.org.au>
List: current-users
Date: 10/06/1994 03:24:01
I asked this about several months back. Can someone please fix the
declarations of brk() and sbrk() in unistd.h - it'll affect < 20 sources.
Currently declared as
char *brk __P((const char *));
char *sbrk __P((int));
brk is plainly wrong since it returns an int (of 0 or -1 for every system).
A replacement could be
int brk __P((const caddr_t));
caddr_t sbrk __P((int));
or my preference
int brk __P((void *));
void *sbrk __P((int));
Thanks.
--
Mason [G.C.W] mason@werple.apana.org.au Hurt...Agony...Pain...LOVE-IT