xref: /illumos-gate/usr/src/man/man9f/uwritec.9f (revision ddb365bfc9e868ad24ccdcb0dc91af18b10df082)
te
Copyright (c) 2006, Sun Microsystems, Inc., All Rights Reserved.
Copyright 1989 AT&T
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
UWRITEC 9F "Jan 16, 2006"
NAME
uwritec - remove a character from a uio structure
SYNOPSIS

#include <sys/uio.h>



int uwritec(uio_t *uio_p);
INTERFACE LEVEL

Architecture independent level 1 (DDI/DKI)

PARAMETERS
uio_p

Pointer to the uio(9S) structure

DESCRIPTION

The uwritec() function returns a character from the uio structure pointed to by uio_p and updates the uio structure. See uiomove(9F).

RETURN VALUES

The next character for processing is returned on success, and -1 is returned if uio is empty or if there is an error.

CONTEXT

The uwritec() function can be called from user, interrupt, or kernel context.

SEE ALSO

uiomove (9F), ureadc (9F), iovec (9S), uio (9S)

Writing Device Drivers