optoverhead(3N)
NAME
optoverhead() − return number of bytes needed by a NetIPC option
SYNOPSIS
#include <sys/ns_ipc.h>
int optoverhead(short eventualentries, short ∗result);
DESCRIPTION
optoverhead returns the number of bytes needed by the opt parameter, excluding the data area.
PARAMETERS
eventualentries (input parameter) The number of option entries that will be placed in the opt parameter.
result (output parameter) The result code returned. See "Diagnostics" below for more information.
RETURN VALUE
Upon successful completion, optoverhead() returns a 16-bit integer value indicating the number of bytes requires for the opt parameter, not including the data portion of the parameter.
ERRORS
[NSR_NO_ERROR] The call was successful.
[NSR_OPT_TOTAL] The num_entries parameter is negative.
AUTHOR
optoverhead was developed by HP.
SEE ALSO
ipcconnect(2), ipccontrol(2), ipccreate(2), ipcdest(2), ipcgetnodename(2), ipclookup(2), ipcname(2), ipcnamerase(2), ipcrecv(2), ipcrecvcn(2), ipcselect(2), ipcsend(2), ipcsetnodename(2), ipcshutdown(2), addopt(3N), initopt(3N), ipcerrmsg(3N), readopt(3N).
Hewlett-Packard Company — HP-UX Release 9.10: April 1995