From 196980f5117c8d38f10d64bf67eeb0924651675f Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 6 Dec 1995 00:14:32 +0000 Subject: Updated from ../gpl2lgpl.sed /home/gd/gnu/lib/error.c --- posix/unistd.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'posix/unistd.h') diff --git a/posix/unistd.h b/posix/unistd.h index 02dcf750e0..55d66a6d27 100644 --- a/posix/unistd.h +++ b/posix/unistd.h @@ -640,6 +640,22 @@ extern char *mktemp __P ((char *__template)); extern int mkstemp __P ((char *__template)); +/* Set the end of accessible data space (aka "the break") to ADDR. + Returns zero on success and -1 for errors (with errno set). */ +extern int __brk __P ((__ptr_t __addr)); +extern int brk __P ((__ptr_t __addr)); + +#define __need_ptrdiff_t +#include + +/* Increase or decrease the end of accessible data space by DELTA bytes. + If successful, returns the address the previous end of data space + (i.e. the beginning of the new space, if DELTA > 0); + returns (void *) -1 for errors (with errno set). */ +extern __ptr_t __sbrk __P ((ptrdiff_t __delta)); +extern __ptr_t sbrk __P ((ptrdiff_t __delta)); + + /* Invoke `system call' number SYSNO, passing it the remaining arguments. This is completely system-dependent, and not often useful. -- cgit v1.2.3