aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/shutdown.2
Commit message (Collapse)AuthorAgeFilesLines
* libsys: relocate implementations and manpagesBrooks Davis2024-02-051-168/+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/
* 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
* Make shutdown() return ENOTCONN as required by POSIX, part deux.Ed Schouten2015-07-271-31/+11
| | | | | | | | | | | | | | | | | | | | | | | | | Summary: Back in 2005, maxim@ attempted to fix shutdown() to return ENOTCONN in case the socket was not connected (r150152). This had to be rolled back (r150155), as it broke some of the existing programs that depend on this behavior. I reapplied this change on my system and indeed, syslogd failed to start up. I fixed this back in February (279016) and MFC'ed it to the supported stable branches. Apart from that, things seem to work out all right. Since at least Linux and Mac OS X do the right thing, I'd like to go ahead and give this another try. To keep old copies of syslogd working, only start returning ENOTCONN for recent binaries. I took a look at the XNU sources and they seem to test against both SS_ISCONNECTED, SS_ISCONNECTING and SS_ISDISCONNECTING, instead of just SS_ISCONNECTED. That seams reasonable, so let's do the same. Test Plan: This issue was uncovered while writing tests for shutdown() in CloudABI: https://github.com/NuxiNL/cloudlibc/blob/master/src/libc/sys/socket/shutdown_test.c#L26 Reviewers: glebius, rwatson, #manpages, gnn, #network Reviewed By: gnn, #network Subscribers: bms, mjg, imp Differential Revision: https://reviews.freebsd.org/D3039 Notes: svn path=/head/; revision=285910
* use .Mt to mark up email addresses consistently (part4)Baptiste Daroussin2014-06-231-1/+1
| | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de> Notes: svn path=/head/; revision=267774
* Fix license. Clause 4 is still required (UCB materiel).Bruce M Simpson2007-03-071-6/+5
| | | | | | | | Submitted by: rwatson Pointy hat to: bms Notes: svn path=/head/; revision=167292
* use 2-clause BSD license as per hoskins strike-off july 22 1999.Bruce M Simpson2007-03-071-4/+6
| | | | | | | use wording of FreeBSD License. Notes: svn path=/head/; revision=167287
* Apply my patch properly.Ruslan Ermilov2007-03-051-1/+1
| | | | Notes: svn path=/head/; revision=167237
* Fix markup.Bruce M Simpson2007-03-051-22/+36
| | | | | | | | Submitted by: ru MFC after: 2 days Notes: svn path=/head/; revision=167235
* .Xr nit.Bruce M Simpson2007-03-051-2/+2
| | | | | | | Submitted by: brueffer Notes: svn path=/head/; revision=167231
* Update shutdown() manual page to reflect actual behaviour of code.Bruce M Simpson2007-03-051-10/+82
| | | | | | | | | | | Add IMPLEMENTATION NOTES section explaining in detail the effect this system call has in common use cases involving PF_INET and PF_INET6 sockets. PR: kern/84761 MFC after: 2 days Notes: svn path=/head/; revision=167228
* 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
* 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-2/+2
| | | | Notes: svn path=/head/; revision=84306
* mdoc(7) police: fixed the fatal.Ruslan Ermilov2001-08-171-1/+1
| | | | Notes: svn path=/head/; revision=81831
* .St -p1003.1g -> .St -p1003.1g-2000.Ruslan Ermilov2001-03-121-2/+2
| | | | Notes: svn path=/head/; revision=74173
* In soshutdown(), use SHUT_{RD,WR,RDWR} instead of FREAD and FWRITE.Ruslan Ermilov2001-02-271-23/+30
| | | | | | | Also, return EINVAL if `how' is invalid, as required by POSIX spec. Notes: svn path=/head/; revision=73153
* Remove blank lines.Chris Costello2000-06-231-1/+0
| | | | Notes: svn path=/head/; revision=62021
* 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
* Document the fact that shutdown(2) is expected to comply with Posix.1g,Garrett Wollman1998-09-121-3/+20
| | | | | | | when it happens. Notes: svn path=/head/; revision=39117
* Fixed missing const(s) or #include(s) in synopsis.Bruce Evans1997-04-111-0/+1
| | | | Notes: svn path=/head/; revision=24822
* Rename the DIAGNOSTICS sections in several man pagesMike Pritchard1997-01-121-1/+1
| | | | | | | to RETURN VALUES like they should be. Notes: svn path=/head/; revision=21573
* 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
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+81
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573