Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ hpib_parity(3I) — HP-UX 7.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

HPIB_PARITY_CTL(3I)  —  Series 300 Only

NAME

hpib_parity_ctl − enable/disable odd parity on ATN commands

SYNOPSIS

int hpib_parity_ctl (eid, flag);
int eid, flag;

DESCRIPTION

Hpib_parity_ctl  enables/disables the sending of odd parity for ATN command sequences depending  upon  the  value of flag.  Eid is an entity identifier of an open HP-IB raw bus device file obtained from an open(2), dup(2), fcntl(2), or creat(2) call.  Flag is an integer which, if non-zero, enables odd parity and otherwise disables it. 

Entity ids for the same device file obtained by separate open(2) requests have their own parity flags associated with them.  Entity ids for the same device file obtained by dup(2) or inherited by a fork(2) request share the same parity flag.  In the latter case, if one process changes the parity flag, the new parity flag is in effect for all such entity ids. 

RETURN VALUE

Hpib_parity_ctl  returns 0 (zero) if  successful,  or −1 if an error was encountered. 

ERRORS

Hpib_parity_ctl fails under the following circumstances, and sets errno (see errno(2)) to the value in square brackets:

­[EBADF] eid does not refer to an open file. 

­[ENOTTY] eid does not refer to an HP-IB raw bus device file. 

AUTHOR

Hpib_parity_ctl was developed by the Hewlett-Packard Company. 

Hewlett-Packard Company  —  HP-UX Release 7.0: Sept 1989

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