Changeset View
Changeset View
Standalone View
Standalone View
head/stand/libsa/libsa.3
Show All 18 Lines | |||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||||
.\" 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. | ||||
.\" | .\" | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd February 1, 2018 | .Dd February 22, 2018 | ||||
.Dt LIBSTAND 3 | .Dt LIBSA 3 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm libstand | .Nm libsa | ||||
.Nd support library for standalone executables | .Nd support library for standalone executables | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.In stand.h | .In stand.h | ||||
.Sh DESCRIPTION | .Sh DESCRIPTION | ||||
The | The | ||||
.Nm | .Nm | ||||
library provides a set of supporting functions for standalone | library provides a set of supporting functions for standalone | ||||
applications, mimicking where possible the standard | applications, mimicking where possible the standard | ||||
▲ Show 20 Lines • Show All 357 Lines • ▼ Show 20 Lines | |||||
.Xc | .Xc | ||||
.Pp | .Pp | ||||
Similar to the behaviour as specified in | Similar to the behaviour as specified in | ||||
.Xr open 2 , | .Xr open 2 , | ||||
except that file creation is not supported, so the mode parameter is not | except that file creation is not supported, so the mode parameter is not | ||||
required. | required. | ||||
The | The | ||||
.Fa flags | .Fa flags | ||||
argument may be one of O_RDONLY, O_WRONLY and O_RDWR (although no file systems | argument may be one of O_RDONLY, O_WRONLY and O_RDWR. | ||||
currently support writing). | Only UFS currently supports writing. | ||||
.It Xo | .It Xo | ||||
.Ft int | .Ft int | ||||
.Fn close "int fd" | .Fn close "int fd" | ||||
.Xc | .Xc | ||||
.It Xo | .It Xo | ||||
.Ft void | .Ft void | ||||
.Fn closeall void | .Fn closeall void | ||||
.Xc | .Xc | ||||
▲ Show 20 Lines • Show All 302 Lines • Show Last 20 Lines |