Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Thursday, June 13, 2019
 
 

libsendfile(3LIB)

Name

libsendfile - sendfile library

Synopsis

cc [ flag... ] file... –lsendfile [ library... ]
#include <sys/sendfile.h>

Description

Historically, this library provided routines that enable files to be sent over sockets, buffers to be sent over sockets, files to be copied to files, and buffers to be copied to files. This functionality now resides in libc(3LIB).

This library is maintained to provide backward compatibility for both runtime and compilation environments. The shared object is implemented as a filter on libc.so.1. New application development need not specify –lsendfile.

The functions in this library provide routines that enable files to be sent over sockets, buffers to be sent over sockets, files to be copied to files, and buffers to be copied to files.

INTERFACES

The shared object libsendfile.so.1 provides the public interfaces defined below. See intro(3) for additional information on shared object interfaces.

sendfile
sendfilev

The following interfaces are unique to the 32-bit version of this library:

sendfile64
sendfilev64

Files

/lib/libsendfile.so.1

shared object

/lib/64/libsendfile.so.1

64–bit shared object

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/library
Interface Stability
Committed
MT-Level
MT-Safe

See Also

pvs(1), sendfile(3C), sendfilev(3C), intro(3), attributes(7)