hpib_ppoll_resp_ctl(3I) — Series 300, 400, 800 Only
NAME
hpib_ppoll_resp_ctl() − define interface parallel poll response
SYNOPSIS
#include <dvio.h>
int hpib_ppoll_resp_ctl(int eid, int response);
DESCRIPTION
hpib_ppoll_resp_ctl() defines a response to be sent when an active controller performs a parallel poll on an HP-IB interface. eid is an entity identifier of an open HP-IB raw bus device file, obtained from an open(), dup(), fcntl(), or creat() call.
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 is 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() (see 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.
[EACCES] The interface associated with this eid is locked by another process and O_NDELAY is set for this eid (see io_lock(3I)).
AUTHOR
hpib_ppoll_resp_ctl() was developed by HP.
SEE ALSO
hpib_ppoll(3I), hpib_card_ppoll_resp(3I)
Hewlett-Packard Company — HP-UX Release 9.10: April 1995