Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ optoverhead(2) — HP-UX 6.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

initopt(2)

addopt(2)

readopt(2)

OPTOVERHEAD(2)

Series 300 and 800 Only

NAME

optoverhead() − returns the number of bytes of overhead needed for the opt parameter in a subsequent NetIPC call

SYNOPSIS

#include <sys/ns_ipc.h>

int optoverhead (eventualentries, error);
short int *error, eventualentries;

DESCRIPTION

The optoverhead call returns the number of bytes needed for the opt parameter, excluding the data area.  Refer to the NetIPC programmer’s manual for your system for a complete description of the opt parameter. 
 
This routine can be linked into a program by giving the -lnsipc option to cc(1) or ld(1). 

PARAMETERS

eventualentries (input parameter) The number of option entries that will be placed in the opt parameter. 

error (output parameter) The error code returned; zero or NSR_NO_ERROR if no error.  See "Diagnostics" below for more information. 

RETURNS

Upon successful completion, a 16-bit integer value is returned that indicates the number of bytes requires for the opt parameter, not including the data portion of the parameter. 

AUTHOR

HP. 

SEE ALSO

initopt(2), addopt(2), readopt(2). 

DIAGNOSTICS

[NSR_NO_ERROR] The call was successful. 

[NSR_xxxx] Refer to the errors listed in the NetIPC programmer’s manual for your system. 

Hewlett-Packard Company  —  May 11, 2021

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026