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

PHP Developer''''s Dictionary- P76 potx

5 224 0

Đ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

Nội dung

PHP Developer’s Dictionary IT-SC book 375 Description 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() PHP Developer’s Dictionary IT-SC book 376 Syntax 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); PHP Developer’s Dictionary IT-SC book 377 Description 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. posix_uname() PHP Developer’s Dictionary IT-SC book 378 Syntax 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() Name Description 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() Name Description 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); PHP Developer’s Dictionary IT-SC book 379 Description 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 . PHP Developer’s Dictionary IT-SC book 375 Description The posix_getegid() function returns the. successfully. These privileges usually require root access to the system. posix_getgroups() PHP Developer’s Dictionary IT-SC book 376 Syntax array posix_getgroups(void); Description. 0, if the function is not successful. posix_setsid() Syntax int posix_setsid(void); PHP Developer’s Dictionary IT-SC book 377 Description The posix_setsid() function makes the current

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

TỪ KHÓA LIÊN QUAN