ZCOM C I/F Library Routines
MAKEZLUNAME (3X)
|
| TTY | Returned | Comment | |
|
| Name | Name | ||
|
|
| |||
|
|
|
|
| |
|
| console | MYnsole | Trailing part of TTY name is used. | |
|
| 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). | |
|
| See the WARNING section below for more information on using this | |||
|
| routine in a |
| ||
PARAMETERS |
|
|
|
|
|
|
| name Name to be merged with TTY suffix. |
| ||
RETURN VALUE |
| Routine makezluname returns a | |||
|
| which consists of the | |||
|
| TTY name suffix. |
|
| |
|
| If two different programs call this routine with the same name | |||
WARNING |
| ||||
|
| parameter and from the same TTY, the same ZLU name will be | |||
|
| returned.This implies that if multiple copies of a program are |
run from the same TTY, they will all get the same ZLU name. If they are run from different terminals, different ZLU names will be returned.
160 | Chapter 4 |