Please note that these functions are available globally, you do not need to import System to use these functions.
This function only exists on systems that have the chroot(2) system call. The second variant only works on systems that also have the fchroot(2) system call.
The returned array contains the same information as that returned by gethostbyname().
The array contains three elements:
The first element is the hostname.
The second element is an array(string) of IP numbers for the host.
The third element is an array(string) of aliases for the host.
If pid is specified, returns the process group ID of that process.
The ident argument specifies an identifier to tag all log entries with.
options is a bit field specifying the behavior of the message logging. Valid options are:
LOG_PID | Log the process ID with each message. |
LOG_CONS | Write messages to the console if they can't be sent to syslogd. |
LOG_NDELAY | Open the connection to syslogd now and not later. |
LOG_NOWAIT | Do not wait for subprocesses talking to syslogd. |
facility specifies what subsystem you want to log as. Valid facilities are:
LOG_AUTH | Authorization subsystem |
LOG_AUTHPRIV | |
LOG_CRON | Crontab subsystem |
LOG_DAEMON | System daemons |
LOG_KERN | Kernel subsystem (NOT USABLE) |
LOG_LOCAL | For local use |
LOG_LOCAL[1-7] | For local use |
LOG_LPR | Line printer spooling system |
LOG_MAIL | Mail subsystem |
LOG_NEWS | Network news subsystem |
LOG_SYSLOG | |
LOG_USER | |
LOG_UUCP | UUCP subsystem |
The mapping contains the following fields:
"sysname": | Operating system name | |
"nodename": "release": "version": "machine": | Host name Release of this OS Version number of this OS Machine architecture |