8447 uts: acpica_check_bios_date() instead of bios-free, use efi-systab
[unleashed.git] / bin / pax / compat.h
blobd085da5f45b917652f3c93f13277b76bed8cc587
1 #ifndef _COMPAT_H
2 #define _COMPAT_H
4 typedef uint32_t u_int32_t;
5 typedef uint16_t u_int16_t;
7 char *group_from_gid(gid_t, int);
8 char *user_from_uid(uid_t, int);
10 #include <utmpx.h>
11 #define UT_NAMESIZE (sizeof (((struct utmpx *)0)->ut_name))
12 #define _PW_NAME_LEN (UT_NAMESIZE - 1)
13 #include <nss_dbdefs.h>
14 #define _PW_BUF_LEN NSS_BUFLEN_PASSWD
15 /* XXX: sysconf(_SC_GETGR_R_SIZE_MAX) actually returns this value instead of
16 * NSS_BUFLEN_GROUP; see NSS_BUFLEN_PRACTICAL in libc nss_common.c. */
17 #define _GR_BUF_LEN (512*1024)
19 #define _PATH_DEFTAPE "/dev/rmt/0"
21 #define setpassent(x) setpwent()
22 #define setgroupent(x) setgrent()
24 #define timespeccmp(tsp, usp, cmp) \
25 (((tsp)->tv_sec == (usp)->tv_sec) ? \
26 ((tsp)->tv_nsec cmp (usp)->tv_nsec) : \
27 ((tsp)->tv_sec cmp (usp)->tv_sec))
28 #endif