aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/brk.2
Commit message (Collapse)AuthorAgeFilesLines
* libsys: relocate implementations and manpagesBrooks Davis2024-02-051-187/+0
| | | | | | | | | Remove core system call implementations and documentation to lib/libsys and lib/libsys/<arch> from lib/libc/sys and lib/libc/<arch>/<sys>. Update paths to allow libc to find them in their new home. Reviewed by: kib, emaste, imp Pull Request: https://github.com/freebsd/freebsd-src/pull/908
* lib: Remove ancient SCCS tags.Warner Losh2023-11-271-2/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/
* Reimplement brk() and sbrk() to avoid the use of _end.Mark Johnston2018-06-041-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | Previously, libc.so would initialize its notion of the break address using _end, a special symbol emitted by the static linker following the bss section. Compatibility issues between lld and ld.bfd could cause the wrong definition of _end (libc.so's definition rather than that of the executable) to be used, breaking the brk()/sbrk() interface. Avoid this problem and future interoperability issues by simply not relying on _end. Instead, modify the break() system call to return the kernel's view of the current break address, and have libc initialize its state using an extra syscall upon the first use of the interface. As a side effect, this appears to fix brk()/sbrk() usage in executables run with rtld direct exec, since the kernel and libc.so no longer maintain separate views of the process' break address. PR: 228574 Reviewed by: kib (previous version) MFC after: 2 months Differential Revision: https://reviews.freebsd.org/D15663 Notes: svn path=/head/; revision=334626
* Indicate the brk/sbrk are deprecated and not portable.Brooks Davis2018-05-241-1/+16
| | | | | | | | | | | | | | | | More firmly suggest mmap(2) instead. Include the history of arm64 and riscv shipping without brk/sbrk. Mention that sbrk(0) produces unreliable results. Reviewed by: emaste, Marcin Cieślak MFC after: 3 days Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D15535 Notes: svn path=/head/; revision=334176
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Remove sys/types.h due to STANDARDS and unistd.h also includes sys/types.h.Kevin Lo2015-12-151-2/+1
| | | | Notes: svn path=/head/; revision=292268
* Per Regents of the University of Calfornia letter, remove advertisingWarner Losh2007-01-091-4/+0
| | | | | | | | | clause. # If I've done so improperly on a file, please let me know. Notes: svn path=/head/; revision=165903
* Sort sections.Ruslan Ermilov2005-01-201-5/+5
| | | | Notes: svn path=/head/; revision=140505
* mdoc(7) police: Tidy up the syscall language.Ruslan Ermilov2002-12-181-3/+5
| | | | | | | | | | | | | Stop calling system calls "function calls". Use "The .Fn system call" a-la "The .Nm utility". When referring to a non-BSD implementation in the HISTORY section, call syscall a function, to be safe. Notes: svn path=/head/; revision=108028
* Change brk's prototype from char *brk(const char *) to int brk(const void *)David Malone2002-01-241-15/+7
| | | | | | | | | | | | | | | | | | and sbrk's prototype from char *sbrk(int) to void *sbrk(intptr_t). This makes us more consistant with NetBSD and standards which include these functions. Bruce pointed out that ptrdiff_t would probably have been better than intptr_t, but this doesn't match other implimentations. Also remove local declarations of sbrk and unnecessary casting. PR: 32296 Tested by: Harti Brandt <brandt@fokus.gmd.de> MFC after: 1 month Notes: svn path=/head/; revision=89732
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-011-1/+1
| | | | Notes: svn path=/head/; revision=84306
* Fix all the ambiguous or erroneous statements of the brk(2)Yaroslav Tykhiy2001-09-061-55/+87
| | | | | | | | | | | manpage by taking its text from NetBSD and editing it further. This also improves the page's mdoc(7) markup style. Reviewed by: ru Obtained from: NetBSD Notes: svn path=/head/; revision=83148
* Use ``.Rv -std'' wherever possible.Ruslan Ermilov2001-08-311-7/+4
| | | | | | | Submitted by: yar Notes: svn path=/head/; revision=82642
* Remove whitespace at EOL.Dima Dorfman2001-07-151-2/+2
| | | | Notes: svn path=/head/; revision=79754
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79531
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-011-2/+2
| | | | Notes: svn path=/head/; revision=71895
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-291-2/+2
| | | | Notes: svn path=/head/; revision=70481
* Use `Er' variable to define first column width in ERRORS section. It wasAlexey Zelkin2000-05-041-1/+1
| | | | | | | initially suggested by mdoc(7) style, but was broken over the years Notes: svn path=/head/; revision=59954
* Introduce ".Lb" macro to libc manpages.Alexey Zelkin2000-04-211-0/+2
| | | | | | | More libraries manpages updates following. Notes: svn path=/head/; revision=59460
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48794
* Fixed synopsis (the #include was bogus and the return type for brk() wasBruce Evans1997-04-111-2/+2
| | | | | | | wrong). Notes: svn path=/head/; revision=24821
* Fixed synopsis (put all of the function (return) type info in .Ft andBruce Evans1997-03-191-1/+1
| | | | | | | none in .Fn). Notes: svn path=/head/; revision=24004
* Merge from Lite2 onto mainline -Peter Wemm1997-03-111-4/+6
| | | | | | | | - add undelete() and undelete.2 (requires libc minor bump some time) - man page updates Notes: svn path=/head/; revision=23660
* Sort cross references.Wolfram Schneider1997-01-201-2/+2
| | | | Notes: svn path=/head/; revision=21907
* Don't use malloc, pessimize to use sbrk.Poul-Henning Kamp1996-09-271-1/+1
| | | | | | | fix sbrk manpage while we're at it. Notes: svn path=/head/; revision=18516
* Correctly use .Fn instead of .Nm to reference function namesMike Pritchard1996-08-221-1/+2
| | | | | | | | | | | in a bunch of man pages. Use the correct .Bx (BSD UNIX) or .At (AT&T UNIX) macros instead of explicitly specifying the version in the text in a bunch of man pages. Notes: svn path=/head/; revision=17782
* Update a bunch of man pages to use .Fn insteadMike Pritchard1996-08-221-3/+3
| | | | | | | of .Nm when referencing funciton names. Notes: svn path=/head/; revision=17780
* Fixed various problems: typos, grammer, missing include filesMike Pritchard1996-05-231-1/+1
| | | | | | | | wrong function type declarations, and wrong argument type declarations. Notes: svn path=/head/; revision=15874
* Added missing section numbers to a bunch of .Xr macros, orMike Pritchard1996-03-271-3/+3
| | | | | | | | converted them into .Fn macros where appropriate. Also fixed up some minor formatting problems. Notes: svn path=/head/; revision=14855
* bkr() returns an int, and not a pointer. Document this.Joerg Wunsch1995-07-231-3/+3
| | | | | | | | | | | Closes PR #pending/630. Pointed out by: phk Obtained from: Notes: svn path=/head/; revision=9665
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+146
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573