atsproc(3C)
atsproc_child, atsproc_parent, atsproc_pre - add sproc pre and post interception routines
As shipped in IRIX 6.5. First release of IRIX 6.5.
NAME atsproc_child, atsproc_parent, atsproc_pre - add sproc pre and post interception routines SYNOPSIS #include <unistd.h> int atsproc_child (void (*func)(void)); int atsproc_parent (void (*func)(int errno,int pid)); int atsproc_pre (void (*func)(unsigned int mask)); DESCRIPTION atsproc_child adds the function func to a list of functions to be called without arguments on entry of a child process created by sproc(2). At most 32 functions may be registered by atsproc_child; the functions will be called in the same order as their registration. atsproc_parent adds the function func to a list of functions to be called with two integer arguments after calling sproc(2). At most 32 functions may be registered by atsproc_parent; the functions will be called in the same order as their registration. atsproc_pre adds the function func to a list of functions to be called with one unsigned integer argument just preceeding a call to sproc(2). At most 32 functions may be registered by atsproc_child; the functions will be called in the reverse order as their registration. atsproc_child, atsproc_parent, and atsproc_pre all return 0 if the registration succeeds. Otherwise, a value of -1 is returned and errno is set to indicate the error. SEE ALSO sproc(2).