1. Trang chủ
  2. » Công Nghệ Thông Tin

PHP Developer''''s Dictionary- P76 potx

5 224 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 5
Dung lượng 425,23 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

The posix_getegid function returns the numeric effective group ID GID of the current process.. posix_setuid Syntax bool posix_setuidint uid; Description The posix_setuid function set

Trang 1

The posix_getegid() function returns the numeric effective group ID (GID) of the current process This function returns false, 0, if the function is not successful

posix_setuid()

Syntax

bool posix_setuid(int uid);

Description

The posix_setuid() function sets the real user ID (UID) of the current process This function returns false, 0, if the function is not successful

Note

This function requires sufficient rights to complete successfully These privileges usually require root access to the system

posix_setgid()

Syntax

bool posix_setgid(int gid);

Description

The posix_setgid() function sets the real group ID (GID) of the current process This function returns false, 0, if the function is not successful

Note

This function requires sufficient rights to complete successfully These privileges usually require root access to the system

posix_getgroups()

Trang 2

array posix_getgroups(void);

Description

The posix_getgroups() function returns an array of integers containing the numeric group IDs of the current process This function returns false, 0, if the function is not successful

posix_getlogin()

Syntax

string posix_getlogin(void);

Description

The posix_getlogin() function returns the login name of the user owning the current process This function returns false, 0, if the function is not successful

posix_getpgrp()

Syntax

int posix_getpgrp(void);

Description

The posix_getpgrp() function returns the process group identifier of the current process This function returns false, 0, if the function is not successful

posix_setsid()

Syntax

int posix_setsid(void);

Trang 3

The posix_setsid() function makes the current process a session leader This function returns the session ID or false, 0, if the function is not successful

posix_setpgid()

Syntax

int posix_setpgid(int pid, int pgid);

Description

The posix_setpgid() function allows the process pid to join the process group

pgid This function returns false, 0, if the function is not successful

posix_getpgid()

Syntax

int posix_getpgid(int pid);

Description

The posix_getpgid() function returns the process group identifier of the process

pid This is not an official POSIX function If your system does not support this

function, it will always return false, 0

posix_setsid()

Syntax

int posix_getsid(int pid);

Description

The posix_setsid() function returns the SID of the process pid If the pid is 0,

the SID of the current process is returned This is not an official POSIX function If your system does not support this function, it will always return false, 0.

Trang 4

array posix_uname(void);

Description

The posix_uname() function returns an associative array containing a hash of strings with information about the system The items in the array are listed in Table 9.12

Table 9.12 List of Indices Returned by posix_uname()

sysname The operating system name

nodename The system name

release The operating system release

version The operating system version

machine The machine architecture

posix_times()

Syntax

array posix_times(void);

Description

The posix_times() function returns an associative array containing information about the current process CPU usage The items in the array are listed in Table 9.13

Table 9.13 List of Items Returned by posix_uname()

ticks The number of clock ticks since the system was rebooted

utime The user time of the current process

stime The system time of the current process

cutime The user time of the current process and child processes

cstime The system time of the current process and child processes

posix_ctermid()

Syntax

string posix_ctermid(void);

Trang 5

The posix_ctermid() function retrieves the pathname of controlling terminal

posix_ttyname()

Syntax

string posix_ttyname(int fd);

Description

The posix_ttyname() function retrieves the terminal device name associated with the file descriptor, fd

posix_isatty()

Syntax

bool posix_isatty(int fd);

Description

The posix_isatty() function determines whether the file descriptor, fd , is an

interactive terminal

posix_getcwd()

Syntax

string posix_getcwd(void);

Description

The posix_getcwd() function returns the pathname of current working directory

posix_mkfifo()

Syntax

Ngày đăng: 07/07/2014, 05:20

TỪ KHÓA LIÊN QUAN