fix usage of pid_t instead of gid_t

This commit is contained in:
Florian Fischer
2024-01-19 15:36:12 +01:00
parent b149807ccc
commit dba41a3719
3 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -108,17 +108,17 @@ int setpgid(pid_t pid, pid_t pgid);
///@brief returns the real group ID of the calling process.
///@return GID of the current process
extern pid_t getgid(void);
extern gid_t getgid(void);
///@brief returns the effective group ID of the calling process.
///@return GID of the current process
extern gid_t getegid(void);
///@brief sets the group IDs of the calling process.
///@param pid process identifier to
///@param gid the Group ID to set
///@return On success, zero is returned.
/// Otherwise returns -1 with errno set to :EINVAL or EPERM
extern int setgid(pid_t pid);
extern int setgid(gid_t gid);
///@brief sets the real and effective group IDs of the calling process.
///@param rgid the new real Group ID.