xref: /titanic_44/usr/src/man/man9f/ureadc.9f (revision bde3d612a7c090234c60e6e4578821237a5db135)
te
Copyright 1989 AT&T
Copyright (c) 2006, Sun Microsystems, Inc., All Rights Reserved
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]
UREADC 9F "Jan 16, 2006"
NAME
ureadc - add character to a uio structure
SYNOPSIS

#include <sys/uio.h>
#include <sys/types.h>



int ureadc(int c, uio_t *uio_p);
INTERFACE LEVEL

Architecture independent level 1 (DDI/DKI).

PARAMETERS
c

The character added to the uio(9S) structure.

uio_p

Pointer to the uio(9S) structure.

DESCRIPTION

The ureadc() function transfers the character c into the address space of the uio(9S) structure pointed to by uio_p, and updates the uio structure as for uiomove(9F).

RETURN VALUES

0 is returned on success and EFAULT on failure.

CONTEXT

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

SEE ALSO

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

Writing Device Drivers