Subject: Re: misc/3132: lack of unistd.h
To: None <netbsd-bugs@NetBSD.ORG>
From: Christos Zoulas <christos@nyc.deshaw.com>
List: netbsd-bugs
Date: 01/22/1997 12:27:28
In article <199701220959.SAA19827@ifree.spa.is.uec.ac.jp> msaitoh@spa.is.uec.ac.jp writes:
> Apply following patch. The sbrk rerurns not caddr_t but char *
> (is this right?), this patch removes sys/types.h.
>
>--- brk.2.orig Sat Oct 14 09:54:15 1995
>+++ brk.2 Wed Jan 22 18:49:01 1997
>@@ -41,7 +41,7 @@
> .Nm sbrk
> .Nd change data segment size
> .Sh SYNOPSIS
>-.Fd #include <sys/types.h>
>+.Fd #include <unistd.h>
> .Ft int
> .Fn brk "const char *addr"
> .Ft char *
>
The patch is correct, but sbrk() and brk() should be:
void *sbrk(int incr);
int brk(void *endds);
christos