acl/lib_acl/include/stdlib/acl_define_bsd.h

40 lines
993 B
C
Raw Normal View History

2014-11-19 00:25:21 +08:00
#ifndef ACL_DEFINE_BSD_INCLUDE_H
#define ACL_DEFINE_BSD_INCLUDE_H
2017-03-25 23:34:54 +08:00
#if defined(FREEBSD) || defined(__FreeBSD__)
2014-11-19 00:25:21 +08:00
# define ACL_UNIX
# define ACL_FREEBSD
# include <sys/types.h>
# define ACL_USE_PATHS_H
# define ACL_HAS_FLOCK_LOCK
# 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:/usr/bsd"
# define ACL_PATH_STDPATH "/usr/bin:/usr/sbin:/usr/bsd"
2015-06-14 02:47:59 +08:00
# define ACL_HAVE_NO_STAT64
2014-11-19 00:25:21 +08:00
# ifdef ACL_HAVE_NO_STAT64
2015-06-14 02:47:59 +08:00
# define acl_stat stat
# define acl_fstat fstat
2014-11-19 00:25:21 +08:00
# else
2015-06-14 02:47:59 +08:00
# define acl_stat stat64
# define acl_fstat fstat64
2014-11-19 00:25:21 +08:00
# endif
# ifndef ACL_WAIT_STATUS_T
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_BSD_INCLUDE_H__ */