aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/write.2
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-231-1/+0
| | | | | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/ Similar commit in main: (cherry picked from commit b2c76c41be32)
* pwrite(2): add a BUGS sectionGuangyuan Yang2021-02-251-1/+15
| | | | | | | | | | Add a BUGS section about using pwrite(2) when O_APPEND is set on the fd. Submitted by: Ka Ho Ng <khng300@gmail.com> Reviewed by: gbe, yuripv Differential Revision: https://reviews.freebsd.org/D28372 (cherry picked from commit 504e64af32ba6c62fdcc894a3b1da76061c64796)
* update write(2)'s iovec limit w/ info about the iosize_max_clamp sysctl...John-Mark Gurney2020-10-261-4/+8
| | | | Notes: svn path=/head/; revision=367048
* Document EINTEGRITY errors for many system calls.John Baldwin2020-03-301-1/+7
| | | | | | | | | | | | | | | | | | | EINTEGRITY was previously documented as a UFS-specific error for mount(2). This documents EINTEGRITY as a filesystem-independent error that may be reported by the backing store of a filesystem. While here, document EIO as a filesystem-independent error for both mount(2) and posix_fadvise(2). EIO was previously only documented for UFS for mount(2). Reviewed by: mckusick Suggested by: mckusick MFC after: 2 weeks Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D24168 Notes: svn path=/head/; revision=359465
* Mark all the system calls that were in 1st Edition Unix as such in theWarner Losh2017-12-011-2/+2
| | | | | | | | | | HISTORY section. Note: Any system calls that were added prior to v7, but after v1 weren't changed. Obtained from: http://www.tuhs.org/cgi-bin/utree.pl?file=V1/man/man2 Notes: svn path=/head/; revision=326435
* write.2: correct maximum nbytes size for EINVAL errorEd Maste2017-10-171-2/+7
| | | | | | | | | | | | | | In FreeBSD 11 and later debug.iosize_max_clamp defaults to 0, and the maximum nbytes count for write(2) is SSIZE_MAX. Update the man page to document this, and mention the sysctl that can be set to obtain the previous behaviour. PR: 196666 MFC after: 1 week Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=324683
* 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
* Consistently reference file descriptors as "fd". 55 other manpagesBryan Drewery2013-09-121-9/+9
| | | | | | | | | | | used "fd", while these used "d" and "filedes". MFC after: 1 week Approved by: gjb Approved by: re (delphij) Notes: svn path=/head/; revision=255486
* The sys/uio.h header is needed only for readv(2), preadv(2), writev(2) andPawel Jakub Dawidek2012-01-221-2/+2
| | | | | | | | | | pwritev(2). Document it more precisely. Reviewed by: jilles MFC after: 3 days Notes: svn path=/head/; revision=230456
* 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
* Minor markup fix: A comma should be seperated by space from macroSimon L. B. Nielsen2006-10-211-1/+1
| | | | | | | | | | argument. This resulted in "pwritev,()" instead of the intended "pwritev()," in the output. MFC after: 3 days Notes: svn path=/head/; revision=163592
* List pwritev in the NAME section.Ruslan Ermilov2006-04-141-1/+2
| | | | Notes: svn path=/head/; revision=157762
* -mdoc sweep.Ruslan Ermilov2005-11-171-1/+1
| | | | Notes: svn path=/head/; revision=152551
* - Add two new system calls: preadv() and pwritev() which are like readv()John Baldwin2005-07-071-6/+21
| | | | | | | | | | | | | | | | | | | | and writev() except that they take an additional offset argument and do not change the current file position. In SAT speak: preadv:readv::pread:read and pwritev:writev::pwrite:write. - Try to reduce code duplication some by merging most of the old kern_foov() and dofilefoo() functions into new dofilefoo() functions that are called by kern_foov() and kern_pfoov(). The non-v functions now all generate a simple uio on the stack from the passed in arguments and then call kern_foov(). For example, read() now just builds a uio and calls kern_readv() and pwrite() just builds a uio and calls kern_pwritev(). PR: kern/80362 Submitted by: Marc Olzheim marcolz at stack dot nl (1) Approved by: re (scottl) MFC after: 1 week Notes: svn path=/head/; revision=147813
* read(), pread(), write(), and pwrite() return EINVAL if they are askedColin Percival2005-02-101-0/+5
| | | | | | | for more than INT_MAX bytes. Notes: svn path=/head/; revision=141663
* Reword the last change a bit, add mdoc(7) markup.Yaroslav Tykhiy2004-10-251-1/+3
| | | | | | | Discussed with: bde Notes: svn path=/head/; revision=136948
* Explain it is a negative offset that EINVAL may indicate.Yaroslav Tykhiy2004-10-161-2/+2
| | | | | | | | | | Now readers won't get an impression that pointing to beyond the current end of file will result in EINVAL. MFC after: 1 week Notes: svn path=/head/; revision=136591
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-2/+4
| | | | Notes: svn path=/head/; revision=131504
* Changed EINVAL constant reference from UIO_MAXIOV to IOV_MAX.Diomidis Spinellis2003-10-111-1/+1
| | | | | | | | The former is a kernel-only visible constant, the latter the POSIX-specified userland constant defined by including limits.h. Notes: svn path=/head/; revision=121011
* Fix struct iovec documentation to match reality.Mike Barcroft2003-01-121-1/+1
| | | | | | | Submitted by: Craig Rodrigues <rodrigc@attbi.com> Notes: svn path=/head/; revision=109140
* mdoc(7) police: "The .Fa argument.".Ruslan Ermilov2002-12-191-2/+6
| | | | Notes: svn path=/head/; revision=108087
* mdoc(7) police: Tidy up the syscall language.Ruslan Ermilov2002-12-181-14/+22
| | | | | | | | | | | | | 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
* Document that write(2) et al can return EROFS for attempts to write theJens Schweikhardt2002-10-101-0/+7
| | | | | | | | | | | disk label area. PR: 43891 Submitted by: Diomidis D. Spinellis <dds@istlab.dmst.aueb.gr> MFC after: 3 days Notes: svn path=/head/; revision=104813
* Remove the internal implementation details of wrapping syscalls,Ruslan Ermilov2001-10-261-48/+0
| | | | | | | | | which do not match the reality anyway. Approved by: deischen, bde Notes: svn path=/head/; revision=85555
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-011-3/+3
| | | | Notes: svn path=/head/; revision=84306
* Remove whitespace at EOL.Dima Dorfman2001-07-151-6/+6
| | | | 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: remove extraneous .Pp before and/or after .Sh.Dima Dorfman2001-07-091-1/+0
| | | | Notes: svn path=/head/; revision=79454
* Document the EINTR error.Jason Evans2001-02-261-0/+2
| | | | Notes: svn path=/head/; revision=73084
* Replace .Va, .Ar and .Nm with .Fa or .Va where necessary, examples:Chris Costello2000-06-231-4/+4
| | | | | | | | | ``.Ar errno'' -> ``.Va errno'' ``.Nm ops'' -> ``.Fa ops'' ``.Va fd'' -> ``.Fa fd'' Notes: svn path=/head/; revision=61988
* 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-2/+4
| | | | | | | | 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
* Document that writev(2) can fail with ENOBUFS.Nik Clayton1999-07-301-1/+3
| | | | | | | | | | | Text is a compromise based on messages from Wes Peters, Ville-Pertti Keinonen, and Matt Dillon. PR: docs/10512 Submitted by: Howard Goldstein <hgoldst@mpcs.com> Notes: svn path=/head/; revision=49298
* 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
* writev(2) can return EDESTADDRREQ when attempting to write to aGuy Helmer1999-05-041-0/+6
| | | | | | | | | | UNIX domain socket on which connect(2) had been used to set a destination address and the destination goes away. PR: docs/10451 Notes: svn path=/head/; revision=46441
* Document pread() and pwrite().Dmitrij Tejblum1999-04-111-3/+31
| | | | | | | Obtained from: NetBSD (mostly) Notes: svn path=/head/; revision=45607
* Update to reflect current include files.Mike Pritchard1997-01-301-2/+2
| | | | Notes: svn path=/head/; revision=22134
* upgrade STANDARDS from POSIX 1003.1-88 to 1003.1-90 using .St macroWolfram Schneider1996-12-021-3/+4
| | | | | | | | | use ``is expected to conform to'' phrase, not ``conforms to'' Pointed out by: Bruce->NIST-PCTS Notes: svn path=/head/; revision=20097
* .DV -> .Dv (SOCK_STREAM was invisible).Bruce Evans1996-09-281-1/+1
| | | | Notes: svn path=/head/; revision=18534
* Correctly use .Fn instead of .Nm to reference function namesMike Pritchard1996-08-221-4/+3
| | | | | | | | | | | 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
* Reviewed by: julian and (hsu?)Julian Elischer1996-01-221-0/+47
| | | | | | | | | Submitted by: John Birrel(L?) changes for threadsafe operations Notes: svn path=/head/; revision=13545
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+205
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573