United States-English |
|
|
HP-UX Reference > Ssecdef(3)HP-UX 11i Version 3: February 2007 |
|
NAMEsecdef: open_secdef(), close_secdef(), get_secdef_str(), get_secdef_int() — security defaults configuration file routines SYNOPSIS#include <prot.h> int open_secdef (void); int close_secdef (void); int get_secdef_str(char *parameter, char *value); int get_secdef_int(char *parameter, char *value); DESCRIPTIONopen_secdef opens the security configuration file /etc/default/security. This function must be called prior to calling get_secdef_str or get_secdef_int. close_secdef closes the security configuration file. get_secdef_str and get_secdef_int return the value of the specified parameter defined in the security configuration file. See the security(4) manpage. Programs using these routines must be compiled with -lsec. APPLICATION USAGEIn a multithreaded application, these interfaces are thread-safe, but not async-cancel-safe. A cancellation point may occur when a thread is executing any of these interfaces. RETURN VALUEopen_secdef returns a value of 0 if the open completed successfully. Otherwise, it returns -1 and leaves errno unchanged from the fstat call. get_secdef_str and get_secdef_int return the following:
|
Printable version | ||
|