about summary refs log tree commit diff
path: root/posix/unistd.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-12-06 00:14:32 +0000
committerRoland McGrath <roland@gnu.org>1995-12-06 00:14:32 +0000
commit196980f5117c8d38f10d64bf67eeb0924651675f (patch)
tree4e2a731a1f766ee63e1038d7f38bee3db8c78a2c /posix/unistd.h
parent77a58cad3fa0a286bd2581187a2463a762d711ba (diff)
downloadglibc-196980f5117c8d38f10d64bf67eeb0924651675f.tar.gz
glibc-196980f5117c8d38f10d64bf67eeb0924651675f.tar.xz
glibc-196980f5117c8d38f10d64bf67eeb0924651675f.zip
Updated from ../gpl2lgpl.sed /home/gd/gnu/lib/error.c
Diffstat (limited to 'posix/unistd.h')
-rw-r--r--posix/unistd.h16
1 files changed, 16 insertions, 0 deletions
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 <stddef.h>
+
+/* 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.