aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/send.2
Commit message (Collapse)AuthorAgeFilesLines
* Add implementations of sendmmsg(3) and recvmmsg(3) functions whichKonstantin Belousov2016-01-291-10/+48
| | | | | | | | | | | | | | | | | | | | | wraps sendmsg(2) and recvmsg(2) into batch send and receive operation. The goal of this implementation is only to provide API compatibility with Linux. The cancellation behaviour of the functions is not quite right, but due to relative rare use of cancellation it is considered acceptable comparing with the complexity of the correct implementation. If functions are reimplemented as syscalls, the fix would come almost trivial. The direct use of the syscall trampolines instead of libc wrappers for sendmsg(2) and recvmsg(2) is to avoid data loss on cancellation. Submitted by: Boris Astardzhiev <boris.astardzhiev@gmail.com> Discussed with: jilles (cancellation behaviour) MFC after: 1 month Notes: svn path=/head/; revision=295039
* Standardize the various prison_foo_ip[46] functions and prison_if toJamie Gritton2009-02-051-2/+2
| | | | | | | | | | | | | | | | | | return zero on success and an error code otherwise. The possible errors are EADDRNOTAVAIL if an address being checked for doesn't match the prison, and EAFNOSUPPORT if the prison doesn't have any addresses in that address family. For most callers of these functions, use the returned error code instead of e.g. a hard-coded EADDRNOTAVAIL or EINVAL. Always include a jailed() check in these functions, where a non-jailed cred always returns success (and makes no changes). Remove the explicit jailed() checks that preceded many of the function calls. Approved by: bz (mentor) Notes: svn path=/head/; revision=188144
* Remove the MSG_PEEK flag from the documentation of the send(2) syscall -Peter Pentchev2007-04-271-1/+0
| | | | | | | | | | | it is only relevant to receiving data from sockets, not to sending. PR: 109667 Submitted by: Jari Kirma <kirma@cs.hut.fi> Approved by: wollman Notes: svn path=/head/; revision=169066
* 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
* Remove reference to T/TCP.Joel Dahl2006-09-131-5/+2
| | | | | | | Reviewed by: andre Notes: svn path=/head/; revision=162291
* Assorted markup fixes.Ruslan Ermilov2005-06-151-1/+3
| | | | | | | Approved by: re Notes: svn path=/head/; revision=147402
* Make MSG_NOSIGNAL available to native programs.Alfred Perlstein2005-03-091-5/+9
| | | | | | | | | Bump FreeBSD_version to note this change. Reviewed by: sobomax Notes: svn path=/head/; revision=143308
* Expand *n't contractions.Ruslan Ermilov2005-02-131-1/+1
| | | | Notes: svn path=/head/; revision=141846
* EISCONN may be returned by sendto() if an attempt is made to specify theGiorgos Keramidas2005-01-241-0/+2
| | | | | | | | | | | destination address to a datagram socket that is already connected. Submitted by: Rudolf Cejka <cejkar@fit.vutbr.cz> PR: docs/76399 MFC after: 1 week Notes: svn path=/head/; revision=140765
* Sort sections.Ruslan Ermilov2005-01-201-12/+12
| | | | Notes: svn path=/head/; revision=140505
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-2/+4
| | | | Notes: svn path=/head/; revision=131504
* Markup, grammar, and spelling fixes.Ruslan Ermilov2004-06-301-4/+8
| | | | Notes: svn path=/head/; revision=131365
* s/SS_CANTSENDMORE/SBS_CANTSENDMORE/Roman Kurakin2004-06-241-1/+1
| | | | Notes: svn path=/head/; revision=131047
* Spelling fixes.Mike Pritchard2004-06-211-1/+1
| | | | Notes: svn path=/head/; revision=130865
* Document the fact that in a jailed environment, sendto(2) could failChristian S.J. Peron2004-05-111-0/+4
| | | | | | | | | | returning EPERM if the source address specified in the IP header did not match the address bound to the prison. Approved by: bmilekic (mentor) Notes: svn path=/head/; revision=129120
* Document the fact that send(2) can return EPIPE (like when a socket is notOllivier Robert2003-09-101-0/+4
| | | | | | | | | | | connected). PR: docs/56683 Submitted by: Chris S.J. Peron <maneo@bsdpro.com> MFC after: 3 days Notes: svn path=/head/; revision=119963
* mdoc(7) police: "The .Fa argument.".Ruslan Ermilov2002-12-191-2/+2
| | | | Notes: svn path=/head/; revision=108087
* mdoc(7) police: Tidy up the syscall language.Ruslan Ermilov2002-12-181-7/+16
| | | | | | | | | | | | | 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 ENETDOWN.Dima Dorfman2001-11-051-0/+2
| | | | | | | | PR: 31436 Submitted by: Milon Papezik <milon.papezik@oskarmobil.cz> Notes: svn path=/head/; revision=86065
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-011-2/+2
| | | | Notes: svn path=/head/; revision=84306
* mdoc(7) police: protect trailing full stops of abbreviationsRuslan Ermilov2001-08-101-1/+1
| | | | | | | with a trailing zero-width space: `e.g.\&'. Notes: svn path=/head/; revision=81449
* mdoc(7) police:Ruslan Ermilov2001-08-071-1/+2
| | | | | | | | | | Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text. Not only this slows down the mdoc(7) processing significantly, but it also has an undesired (in this case) effect of disabling hyphenation within the entire enclosed block. Notes: svn path=/head/; revision=81251
* Remove whitespace at EOL.Dima Dorfman2001-07-151-5/+5
| | | | 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
* Document ECONNREFUSED.Archie Cobbs2001-05-201-0/+4
| | | | | | | Submitted by: Richard Hodges <rh@matriplex.com> Notes: svn path=/head/; revision=76864
* Document EHOSTDOWN error.Ben Smithurst2001-01-171-0/+2
| | | | | | | | PR: 24410 Submitted by: Martin Horcicka <horcicka@vol.cz> Notes: svn path=/head/; revision=71193
* Introduce ".Lb" macro to libc manpages.Alexey Zelkin2000-04-211-0/+2
| | | | | | | More libraries manpages updates following. Notes: svn path=/head/; revision=59460
* General clean-up of socket.h and associated sources to synchronise upPoul-Henning Kamp1999-11-241-1/+1
| | | | | | | | | | | | | | | with NetBSD and the Single Unix Specification v2. This updates some structures with other, almost equivalent types and effort is under way to get the whole more consistent. Also removes a double definition of INET6 and some other clean-ups. Reviewed by: green, bde, phk Some part obtained from: NetBSD, SUSv2 specification Notes: svn path=/head/; revision=53678
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Add a BUGS section and describe a problem I've been having forBrian Somers1998-05-091-1/+14
| | | | | | | a few weeks now. Notes: svn path=/head/; revision=35897
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22993
* Document a couple of additional errno's.Mike Pritchard1997-01-261-1/+7
| | | | | | | | Submitted by: Steinar Haug and Heiko W. Rupp Obtained from: NetBSD-bugs & FreeBSD-current mailing lists Notes: svn path=/head/; revision=22014
* Sort cross references.Wolfram Schneider1997-01-201-1/+1
| | | | Notes: svn path=/head/; revision=21907
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Correctly use .Fn instead of .Nm to reference function namesMike Pritchard1996-08-221-2/+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
* Document Transaction TCP extensions to generic system calls.Garrett Wollman1995-02-151-4/+22
| | | | Notes: svn path=/head/; revision=6471
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+161
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573