acl/lib_acl/include/stdlib/acl_define_linux.h

77 lines
1.6 KiB
C
Raw Normal View History

#ifndef ACL_DEFINE_LINUX_INCLUDE_H
2014-11-19 00:25:21 +08:00
#define ACL_DEFINE_LINUX_INCLUDE_H
2017-02-12 21:39:38 +08:00
#if defined(ANDROID)
# ifndef ACL_ANDROID
# define ACL_ANDROID
# endif
#endif
2017-02-12 21:39:38 +08:00
#if defined(LINUX2) || defined(ACL_ANDROID) || defined(__linux__)
# ifndef ACL_LINUX
# define ACL_LINUX
# endif
# ifndef ACL_UNIX
# define ACL_UNIX
# endif
2014-11-19 00:25:21 +08:00
#include <stddef.h> /* just for size_t */
/* for O_LARGEFILE flag define */
2015-05-21 21:49:35 +08:00
#ifndef MINGW
2014-11-19 00:25:21 +08:00
# ifndef _GNU_SOURCE
# ifndef _LARGEFILE64_SOURCE
# define _LARGEFILE64_SOURCE
# endif
# ifndef _FILE_OFFSET_BITS
# define _FILE_OFFSET_BITS 64
# endif
# endif
2015-05-21 21:49:35 +08:00
#endif
2014-11-19 00:25:21 +08:00
/*
# include <sys/types.h>
# include <features.h>
# include <sys/stat.h>
# include <unistd.h>
*/
# define ACL_USE_PATHS_H
2015-05-21 21:49:35 +08:00
# ifndef MINGW
# define ACL_HAS_FLOCK_LOCK
2015-12-14 22:42:30 +08:00
/* # define ACL_HAS_SPINLOCK */
2015-05-21 21:49:35 +08:00
# endif
2015-06-14 02:47:59 +08:00
2014-11-19 00:25:21 +08:00
# define ACL_HAS_FCNTL_LOCK
# define ACL_INTERNAL_LOCK ACL_FLOCK_STYLE_FLOCK
# define ACL_ROOT_PATH "/bin:/usr/bin:/sbin:/usr/sbin"
# define ACL_PATH_MAILDIR "/var/mail"
# define ACL_PATH_BSHELL "/bin/sh"
# define ACL_PATH_DEFPATH "/usr/bin"
# define ACL_PATH_STDPATH "/usr/bin:/usr/sbin"
2017-07-20 10:59:28 +08:00
# if defined(ACL_HAVE_NO_STAT64) || defined(MINGW) || defined(ANDROID)
2014-11-19 00:25:21 +08:00
# define acl_stat stat
# define acl_fstat fstat
# else
# define acl_stat stat64
# define acl_fstat fstat64
# endif
2015-05-21 21:49:35 +08:00
# if defined(MINGW)
typedef long int ssize_t;
# endif
2014-11-19 00:25:21 +08:00
# ifndef ACL_WAIT_STATUS_T
2015-04-04 15:25:29 +08:00
typedef int ACL_WAIT_STATUS_T;
2015-10-20 21:07:23 +08:00
# define ACL_NORMAL_EXIT_STATUS(status) !(status)
2014-11-19 00:25:21 +08:00
# endif
# define ACL_FIONREAD_IN_TERMIOS_H
# define ACL_HAVE_NO_RWLOCK
#endif
#endif /* __ACL_DEFINE_LINUX_INCLUDE_H__ */