The effective UID of the calling process must match the owner of the file, or the process must be privileged(Linux: it must have the CAP_FOWNER capability).
Pause() causes the calling process(or thread) to sleep until a signal is delivered that either terminates the process or causes the invocation of a signal-catching function.
Upon return the calling process shall be the session leader of this new session, shall be the process group leader of a new process group, and shall have no controlling terminal.
The fhopen() system call opens the file referenced by fhp for reading and/or writing as specified by the argument flags and returns the file descriptor to the calling process.
If the calling process is not privileged(Linux: does not have the CAP_FSETID capability), and the group of the file does not match the effective group ID of the process or one of its supplementary group IDs, the S_ISGID bit will be turned off, but this will not cause an error to be returned.
If the set-user-ID bit is set on the program file pointed to by filename, and the underlying filesystem is not mounted nosuid(the MS_NOSUID flag for mount(2)), and the calling process is not being ptraced, then the effective user ID of the calling process is changed to that of the owner of the program file.
If the set-user-ID bit is set on the program file pointed to by filename, and the underlying file system is not mounted nosuid(the MS_NOSUID flag for mount(2)), and the calling process is not being ptraced, then the effective user ID of the calling process is changed to that of the owner of the program file.
Setsid() creates a new session if the calling process is not a process group leader. The calling process is the leader of the new session, the process group leader of the new process group, and has no controlling tty. The process group ID and session ID of the calling process are set to the PID of the calling process. The calling process will be the only process in this new process group and in this new session.
English
中文
عربى
Български
বাংলা
Český
Dansk
Deutsch
Ελληνικά
Español
Suomi
Français
עִברִית
हिंदी
Hrvatski
Magyar
Bahasa indonesia
Italiano
Қазақ
한국어
മലയാളം
मराठी
Bahasa malay
Nederlands
Norsk
Polski
Português
Română
Русский
Slovenský
Slovenski
Српски
Svenska
தமிழ்
తెలుగు
ไทย
Tagalog
Turkce
Українська
اردو
Tiếng việt