Subject: misc/3132: lack of unistd.h
To: None <>
From: None <>
List: netbsd-bugs
Date: 01/22/1997 18:59:54
>Number:         3132
>Category:       misc
>Synopsis:       lack of unistd.h
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 22 02:05:02 1997
>Originator:     SAITOH Masanobu
>Release:        lstest -current
System: NetBSD 1.2B NetBSD 1.2B (IFREE) #29: Wed Jan 15 15:58:05 JST 1997 i386

	The prototypes for brk(2) and sbrk(2) are in unistd.h.

	man sbrk
	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
-.Fd #include <sys/types.h>
+.Fd #include <unistd.h>
 .Ft int
 .Fn brk "const char *addr"
 .Ft char *