Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/sys/getsockopt.2
Show All 22 Lines | |||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" @(#)getsockopt.2 8.4 (Berkeley) 5/2/95 | .\" @(#)getsockopt.2 8.4 (Berkeley) 5/2/95 | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd February 10, 2019 | .Dd Septemter 11, 2019 | ||||
yuripv: Typo: September. | |||||
.Dt GETSOCKOPT 2 | .Dt GETSOCKOPT 2 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm getsockopt , | .Nm getsockopt , | ||||
.Nm setsockopt | .Nm setsockopt | ||||
.Nd get and set options on sockets | .Nd get and set options on sockets | ||||
.Sh LIBRARY | .Sh LIBRARY | ||||
.Lb libc | .Lb libc | ||||
▲ Show 20 Lines • Show All 386 Lines • ▼ Show 20 Lines | |||||
If the | If the | ||||
.Dv SO_TIMESTAMP | .Dv SO_TIMESTAMP | ||||
or | or | ||||
.Dv SO_BINTIME | .Dv SO_BINTIME | ||||
option is enabled on a | option is enabled on a | ||||
.Dv SOCK_DGRAM | .Dv SOCK_DGRAM | ||||
socket, the | socket, the | ||||
.Xr recvmsg 2 | .Xr recvmsg 2 | ||||
call will return a timestamp corresponding to when the datagram was received. | call may return a timestamp corresponding to when the datagram was received. | ||||
However, it may not, for example due to a resource shortage. | |||||
The | The | ||||
.Va msg_control | .Va msg_control | ||||
field in the | field in the | ||||
.Vt msghdr | .Vt msghdr | ||||
structure points to a buffer that contains a | structure points to a buffer that contains a | ||||
.Vt cmsghdr | .Vt cmsghdr | ||||
structure followed by a | structure followed by a | ||||
.Vt "struct timeval" | .Vt "struct timeval" | ||||
▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines |
Typo: September.