Subject: misc/3132: lack of unistd.h
To: None <gnats-bugs@gnats.netbsd.org>
From: None <msaitoh@spa.is.uec.ac.jp>
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
>Last-Modified:
>Originator:     SAITOH Masanobu
>Organization:
>Release:        lstest -current
>Environment:
System: NetBSD ifree.spa.is.uec.ac.jp 1.2B NetBSD 1.2B (IFREE) #29: Wed Jan 15 15:58:05 JST 1997 msaitoh@ifree.spa.is.uec.ac.jp:/var/sources/src/sys/arch/i386/compile/IFREE i386


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

>How-To-Repeat:
	man sbrk
>Fix:
	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 *

>Audit-Trail:
>Unformatted: