HPIB_PPOLL_RESP_CTL(3I) — HP-UX
NAME
hpib_ppoll_resp_ctl − Define interface parallel poll response
SYNOPSIS
int hpib_ppoll_resp_ctl (eid, response)
int eid, response;
DESCRIPTION
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.
Hpib_ppoll_resp_ctl defines a response to be sent when an active controller performs a parallel poll on an HP-IB interface. The value of response indicates whether this computer does or does not need service. A non-zero response value indicates that service is required. This statement only sets up a potential response; no actual response if generated when the statement is executed. The sense of the response and the line number to respond on are set by hpib_card_ppoll_resp(3I) or by the active controller.
RETURN VALUE
Hpib_ppoll_resp_ctl returns 0 if the response is successfully set, or -1 if an error has occured.
ERRORS
Hpib_ppoll_resp_ctl fails under the following situations, 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 a raw HP-IB device file.
AUTHOR
Hpib_ppoll_resp_ctl was developed by the Hewlett-Packard Company.
SEE ALSO
hpib_ppoll(3I), hpib_card_ppoll_resp(3I)
Hewlett-Packard Company — Version B.1, May 11, 2021