ZCOM C I/F Library Routines
GETDEVICE (3X)
GETDEVICE (3X)
NAME | getdevice – Read ZCOM device definitions | ||
SYNOPSIS | #include | <zcom/zcomsys.h> | |
| #include | <zcom/zcomcall.h> /* if compiled with ANSI C | |
| (recommended) */ |
| |
| int getdevice (dfile, dpp) | ||
| char |
| *dfile; |
| zdev_type |
| **dpp; |
DESCRIPTION | Routine getdevice reads the ZCOM device file specified by the dfile | ||
| parameter and loads the device definition entries into a memory table. | ||
| The pointer to the device definition table is returned (see zdev type | ||
| definition below). |
| |
| If dfile is NULL, it uses the default /opt/acc/cfg/zcomdevice. The | ||
| ZCOM device file is a binary file created by the ZDGEN program, from a | ||
| |||
| Refer to the section on zdgen in the Multiprotocol ACC Utilities Reference | ||
| Guide for more details. | ||
| The libraries libzcom_c.a and libpthread.a must be linked into the calling | ||
| program by giving the options | ||
Threads | This routine may be called from a | ||
Considerations | POSIX (1003.1c) kernel threads API package. This routine has the | ||
| following characteristics when called by a | ||
| cancellation point | Thread cancellation can occur when a thread | |
|
|
| calls this routine. |
| |||
|
|
| PTHREAD_CANCEL_DEFERRED if |
|
|
| cancellation is enabled. |
| |||
| fork unsafe | It cannot be called by a child process after | |
|
|
| fork(2) but before exec(2). |
142 | Chapter 4 |