SCO OpenServer
fuword(D3oddi)
fuword --
get one 32-bit word from user data space
Synopsis
int fuword(unsigned int src);
Description
The fuword routine retrieves (fetches)
one 32-bit word from the user's data space.
Arguments
src-
address in user space from which the word is copied.
Return value
The value of the retrieved 32-bit word is returned.
If an error occurs, -1 is returned
and you should set u.u_error
to EFAULT.
Note that fuword can cause a page fault.
Usage
If any chance exists that a -1
may be contained in the data
that you are receiving from user space,
use
copyin(D3oddi)
instead of fubyte (or cpass).
A -1 in the data is usually interpreted as an error condition.
Context and synchronization
User
context.
Hardware applicability
All
Version applicability
oddi:
1, 2, 2mp, 3, 3mp, 4, 4mp, 5, 5mp, 6, 6mp
SVR5 DDI compatibility
DDI does not support this function.
Replace calls to
fuword( )
with calls to the
copyin(D3)
function.
References
copyin(D3oddi),
fubyte(D3oddi),
cpass(D3oddi)
``Data, copying'' in HDK Technical Reference
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 5 HDK - June 2005