2019-07-28 10:31:56 +08:00
|
|
|
|
#ifndef ACL_SET_EUGID_INCLUDE_H
|
2014-11-19 00:25:21 +08:00
|
|
|
|
#define ACL_SET_EUGID_INCLUDE_H
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include "../acl_define.h"
|
|
|
|
|
#ifdef ACL_UNIX
|
|
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
|
|
/**
|
2019-07-28 10:31:56 +08:00
|
|
|
|
* <EFBFBD><EFBFBD><EFBFBD>ó<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ч<EFBFBD>û<EFBFBD> ID <EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ч<EFBFBD><EFBFBD> ID
|
|
|
|
|
* @param euid {uid_t} <EFBFBD><EFBFBD>Ч<EFBFBD>û<EFBFBD> ID
|
|
|
|
|
* @param egid {gid_t} <EFBFBD><EFBFBD>Ч<EFBFBD><EFBFBD> ID
|
|
|
|
|
* @return {int} 0 <EFBFBD><EFBFBD>ʾ<EFBFBD><EFBFBD><EFBFBD>óɹ<EFBFBD><EFBFBD><EFBFBD>-1 <EFBFBD><EFBFBD>ʾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><EFBFBD>
|
2014-11-19 00:25:21 +08:00
|
|
|
|
*/
|
|
|
|
|
int acl_set_eugid(uid_t euid, gid_t egid);
|
|
|
|
|
|
|
|
|
|
#endif /* ACL_UNIX */
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|