aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/pipe.2
Commit message (Collapse)AuthorAgeFilesLines
* libsys: relocate implementations and manpagesBrooks Davis2024-02-051-175/+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/
* Correct history for Unix 2nd Edition through 6th Edition for theWarner Losh2017-12-011-1/+1
| | | | | | | | | | | system calls. Man pages are missing for v2 and v5, so any entries for those versions were inferred by new implementations of these functions in libc. Obtained from: http://www.tuhs.org/cgi-bin/utree.pl Notes: svn path=/head/; revision=326437
* 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
* Change wording to use function rather than system call in the descriptionNiclas Zeising2016-07-201-1/+1
| | | | | | | | | | as well. Reviewed by: brooks MFC after: 5 days Notes: svn path=/head/; revision=303106
* Update to reflect the fact that pipe() is a wrapper around the pipe2()Brooks Davis2016-07-201-1/+20
| | | | | | | | | | | | system call. Reviewed by: jhb, wblock MFC after: 5 days Sponsored by: DAPRA, AFRL Differential Revision: https://reviews.freebsd.org/D6948 Notes: svn path=/head/; revision=303104
* Replace use of the pipe(2) system call with pipe2(2) with a zero flagsBrooks Davis2016-06-221-1/+4
| | | | | | | | | | | | | | | | | | | value. This eliminates the need for machine dependant assembly wrappers for pipe(2). It also make passing an invalid address to pipe(2) return EFAULT rather than triggering a segfault. Document this behavior (which was already true for pipe2(2), but undocumented). Reviewed by: andrew Approved by: re (gjb) Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D6815 Notes: svn path=/head/; revision=302092
* Add some missing .Nm for newer syscalls in existing man pages.Jilles Tjoelker2014-01-111-1/+2
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=260556
* accept(2), pipe(2): Fix .Dd.Jilles Tjoelker2013-05-011-1/+1
| | | | Notes: svn path=/head/; revision=250161
* Add pipe2() system call.Jilles Tjoelker2013-05-011-2/+44
| | | | | | | | | | | | | | | | The pipe2() function is similar to pipe() but allows setting FD_CLOEXEC and O_NONBLOCK (on both sides) as part of the function. If p points to two writable ints, pipe2(p, 0) is equivalent to pipe(p). If the pointer is not valid, behaviour differs: pipe2() writes into the array from the kernel like socketpair() does, while pipe() writes into the array from an architecture-specific assembler wrapper. Reviewed by: kan, kib Notes: svn path=/head/; revision=250159
* Several cleanups related to pipe(2).Ed Schouten2008-11-111-6/+1
| | | | | | | | | | | | | | | | | | | | | - Use `fildes[2]' instead of `*fildes' to make more clear that pipe(2) fills an array with two descriptors. - Remove EFAULT from the manual page. Because of the current calling convention, pipe(2) raises a segmentation fault when an invalid address is passed. - Introduce kern_pipe() to make it easier for binary emulations to implement pipe(2). - Make Linux binary emulation use kern_pipe(), which means we don't have to recover td_retval after calling the FreeBSD system call. Approved by: rdivacky Discussed on: arch Notes: svn path=/head/; revision=184849
* 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
* - In pipe() return the error returned by pipe_create(), rather thenGleb Smirnoff2006-01-301-1/+3
| | | | | | | | | | | hardcoded ENFILES, which is incorrect. pipe_create() can fail due to ENOMEM. - Update manual page, describing ENOMEM return code. Reviewed by: arch Notes: svn path=/head/; revision=155035
* Eliminate double whitespace.Ruslan Ermilov2004-07-031-1/+1
| | | | Notes: svn path=/head/; revision=131539
* mdoc(7) police: Tidy up the syscall language.Ruslan Ermilov2002-12-181-4/+4
| | | | | | | | | | | | | 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
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-011-1/+1
| | | | Notes: svn path=/head/; revision=84306
* Use the ``.Rv -std'' mdoc(7) macro in appropriate cases.Yaroslav Tykhiy2001-08-091-6/+1
| | | | | | | Reviewed by: ru Notes: svn path=/head/; revision=81352
* Remove whitespace at EOL.Dima Dorfman2001-07-151-1/+1
| | | | 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
* 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
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-021-1/+2
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57686
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Removed a duplicate reference to System V.4.Bruce Evans1999-07-311-2/+1
| | | | Notes: svn path=/head/; revision=49335
* Use the .At macro when referencing versions of AT&T UNIX.Mike Pritchard1999-07-301-2/+4
| | | | | | | | | Note: you need to install the current groff tmac macros for these man pages to format correctly. Specifically, rev 1.21 of contrib_groff/tmac/doc-syms in -current, or rev 1.17.24 for 3.2-stable Notes: svn path=/head/; revision=49266
* Mdoc cleanup.Mike Pritchard1999-07-301-2/+3
| | | | Notes: svn path=/head/; revision=49246
* 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
* Sort cross references.Wolfram Schneider1997-01-201-3/+3
| | | | Notes: svn path=/head/; revision=21907
* Correctly use .Fn instead of .Nm to reference function namesMike Pritchard1996-08-221-1/+1
| | | | | | | | | | | 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
* A pipe function call appeared in Version *3* AT&T UNIX, notWolfram Schneider1996-08-181-1/+1
| | | | | | | | | Version 6. Close PR #1490 Obtained from: Peter H. Saulus in `A Quarter Century of UNIX', page 50 Notes: svn path=/head/; revision=17646
* Remove outdated (and never quite correct anyway) reference to thePeter Wemm1996-04-031-4/+0
| | | | | | | "fact" that pipes were implemented as calls to socketpair(). Notes: svn path=/head/; revision=15017
* Fix even more spelling errors in some more man pages.Mike Pritchard1996-01-301-1/+1
| | | | Notes: svn path=/head/; revision=13750
* Document the change that I made to pipe(2)Peter Wemm1996-01-011-4/+12
| | | | Notes: svn path=/head/; revision=13151
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+115
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573