diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/HsUnix.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/HsUnix.h b/include/HsUnix.h index d460698..cb8d466 100644 --- a/include/HsUnix.h +++ b/include/HsUnix.h @@ -127,6 +127,37 @@ int __hsunix_lstat(const char *path, struct stat *buf); // lstat is a macro on some platforms, so we need a wrapper: int __hsunix_mknod(const char *pathname, mode_t mode, dev_t dev); +#ifdef HAVE_GETPWENT +// getpwent is a macro on some platforms, so we need a wrapper: +struct passwd *__hsunix_getpwent(void); +#endif + +#if HAVE_GETPWNAM_R +// getpwnam_r is a macro on some platforms, so we need a wrapper: +int __hsunix_getpwnam_r(const char *, struct passwd *, char *, size_t, + struct passwd **); +#endif + +#ifdef HAVE_GETPWUID_R +// getpwuid_r is a macro on some platforms, so we need a wrapper: +int __hsunix_getpwuid_r(uid_t, struct passwd *, char *, size_t, + struct passwd **); +#endif + +#ifdef HAVE_NANOSLEEP +// nanosleep is a macro on some platforms, so we need a wrapper: +int __hsunix_nanosleep(const struct timespec *, struct timespec *); +#endif + +// opendir is a macro on some platforms, so we need a wrapper: +DIR *__hsunix_opendir(const char *); + +// time is a macro on some platforms, so we need a wrapper: +time_t __hsunix_time(time_t *); + +// times is a macro on some platforms, so we need a wrapper: +clock_t __hsunix_times(struct tms *); + #ifdef HAVE_PTSNAME // I cannot figure out how to make the definitions of the following // functions visible in <stdlib.h> on Linux. But these definitions |