diff options
author | 2012-04-11 14:08:27 +0000 | |
---|---|---|
committer | 2012-04-11 14:08:27 +0000 | |
commit | a91ddabe038a89f14dcd50f59b53824bae31adc2 (patch) | |
tree | 3c4cc3a016dcb88d98cdcfc166b13eed1e6da5ea /lib/libc | |
parent | guenther and kettenis say THREAD_PID_OFFSET shouldn't be subtracted (diff) | |
download | wireguard-openbsd-a91ddabe038a89f14dcd50f59b53824bae31adc2.tar.xz wireguard-openbsd-a91ddabe038a89f14dcd50f59b53824bae31adc2.zip |
In sendmsg() permit at most 10% of maxfiles to be in-flight
during CMSG_DATA SCM_RIGHTS fd transfers. If this is exceeded,
return EMFILE.
ok claudio guenther gilles
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/sys/send.2 | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libc/sys/send.2 b/lib/libc/sys/send.2 index 35361ef5368..d58588f5c91 100644 --- a/lib/libc/sys/send.2 +++ b/lib/libc/sys/send.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: send.2,v 1.25 2011/12/24 08:46:48 jmc Exp $ +.\" $OpenBSD: send.2,v 1.26 2012/04/11 14:08:27 deraadt Exp $ .\" $NetBSD: send.2,v 1.6 1996/01/15 01:17:18 thorpej Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)send.2 8.2 (Berkeley) 2/21/94 .\" -.Dd $Mdocdate: December 24 2011 $ +.Dd $Mdocdate: April 11 2012 $ .Dt SEND 2 .Os .Sh NAME @@ -221,6 +221,11 @@ was less than 0 or larger than .Dv IOV_MAX . .It Bq Er EAFNOSUPPORT Addresses in the specified address family cannot be used with this socket. +.It Bq Er EMFILE +The message contains control information utilizing +.Xr CMSG_DATA 3 +to pass file descriptors, but too many file descriptors +are already in-flight. .El .Sh SEE ALSO .Xr fcntl 2 , |