[][src]Module libuv::misc::os

Structs

SystemInfo

Data type for operating system name and version information.

User

Data type for user information.

Functions

get_passwd

Gets a subset of the password file entry for the current effective uid (not the real uid). The populated data includes the username, euid, gid, shell, and home directory. On non-Windows systems, all data comes from getpwuid_r(3). On Windows, uid, gid, and shell are all set to None.

gethostname

Returns the hostname

getpid

Returns the current process ID.

getppid

Returns the parent process ID.

getpriority

Retrieves the scheduling priority of the process specified by pid. The returned value of priority is between -20 (high priority) and 19 (low priority).

setpriority

Sets the scheduling priority of the process specified by pid. The priority value range is between -20 (high priority) and 19 (low priority). The constants UV_PRIORITY_LOW, UV_PRIORITY_BELOW_NORMAL, UV_PRIORITY_NORMAL, UV_PRIORITY_ABOVE_NORMAL, UV_PRIORITY_HIGH, and UV_PRIORITY_HIGHEST are also provided for convenience in libuv_sys2.

uname

Retrieves system information in buffer. The populated data includes the operating system name, release, version, and machine. On non-Windows systems, uv_os_uname() is a thin wrapper around uname(2).

Type Definitions

Pid

Cross platform representation of a pid_t.