acl/lib_acl/include/stdlib/unix/acl_safe_open.h

38 lines
581 B
C
Raw Normal View History

2014-11-19 00:25:21 +08:00
#ifndef ACL_SAFE_OPEN_H_INCLUDE_H
#define ACL_SAFE_OPEN_H_INCLUDE_H
#ifdef __cplusplus
extern "C" {
#endif
#include "../acl_define.h"
#ifdef ACL_UNIX
/*
* System library.
*/
#include <sys/stat.h>
#include <fcntl.h>
/*
* Utility library.
*/
#include "../acl_vstream.h"
#include "../acl_vstring.h"
/*
* External interface.
*/
extern ACL_VSTREAM *acl_safe_open(const char *path, int flags, int mode,
struct stat * st, uid_t user, gid_t group, ACL_VSTRING *why);
#endif /* ACL_UNIX */
#ifdef __cplusplus
}
#endif
#endif