diff options
author | luther <luther@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-07-12 15:27:04 +0000 |
---|---|---|
committer | luther <luther@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-07-12 15:27:04 +0000 |
commit | 71d02ac00500b809c5faeff4ff41e6ee7ee1cb05 (patch) | |
tree | d92040c4efa5ba2c9a140cbd4b05a8fd93664c94 | |
parent | 068dc3a4aba1c71cff2b8d2d3e02315a2db2689f (diff) | |
download | ATCD-71d02ac00500b809c5faeff4ff41e6ee7ee1cb05.tar.gz |
Wed Jul 12 10:24:20 2000 Luther J Baker <luther@cs.wustl.edu>
30 files changed, 124 insertions, 2798 deletions
diff --git a/PACE/ChangeLog b/PACE/ChangeLog index d76ee7e6990..4ed85023d2b 100644 --- a/PACE/ChangeLog +++ b/PACE/ChangeLog @@ -1,3 +1,40 @@ +Wed Jul 12 10:24:20 2000 Luther J Baker <luther@cs.wustl.edu> + + * pace/win32/wait.h: + * pace/win32/utsname.h: + * pace/win32/utime.h: + * pace/win32/unistd.h: + * pace/win32/types.h: + * pace/win32/times.h: + * pace/win32/time.h: + * pace/win32/termios.h: + * pace/win32/string.h: + * pace/win32/stdlib.h: + * pace/win32/stdio.h: + * pace/win32/stat.h: + * pace/win32/signal.h: + * pace/win32/setjmp.h: + * pace/win32/semaphore.h: + * pace/win32/sched.h: + * pace/win32/pwd.h: + * pace/win32/pthread.h: + * pace/win32/mqueue.h: + * pace/win32/mman.h: + * pace/win32/math.h: + * pace/win32/locale.h: + * pace/win32/limits.h: + * pace/win32/grp.h: + * pace/win32/fcntl.h: + * pace/win32/dirent.h: + * pace/win32/ctype.h: + * pace/win32/assert.h: + * pace/win32/aio.h: + + Removed function prototypes. These were moved to the PACE/*.h files. + Removed #include *.inl files. These are inluded by the PACE/*.h files. + Postfixed the protective preprocessor guards with _WIN32 + (ie: PACE_CTYPE_H_WIN32). + Wed Jul 12 01:25:44 2000 John Heitmann <jwh1@cs.wustl.edu> * pace/emulation/time.c: diff --git a/PACE/pace/win32/aio.h b/PACE/pace/win32/aio.h index ab384ed67cd..764372de642 100644 --- a/PACE/pace/win32/aio.h +++ b/PACE/pace/win32/aio.h @@ -13,8 +13,8 @@ * * ============================================================================ */ -#ifndef PACE_AIO_H -#define PACE_AIO_H +#ifndef PACE_AIO_H_WIN32 +#define PACE_AIO_H_WIN32 #include "pace/time.h" #include "pace/signal.h" @@ -37,73 +37,8 @@ extern "C" { typedef struct aiocb pace_aiocb; #endif /* PACE_AIOCB */ - /** - PACE's implementation of the POSIX function aio_cancel. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), section 6.7.7. - */ - PACE_INLINE int pace_aio_cancel (int fildes, pace_aiocb * aiocb); - - /** - PACE's implementation of the POSIX function aio_error. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), section 6.7.5. - */ - PACE_INLINE int pace_aio_error (const pace_aiocb * aiocbp); - - /** - PACE's implementation of the POSIX function aio_fsync. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), section 6.7.9. - */ - PACE_INLINE int pace_aio_fsync (int op, pace_aiocb * aiocbp); - - /** - PACE's implementation of the POSIX function aio_read. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), section 6.7.2. - */ - PACE_INLINE int pace_aio_read (pace_aiocb * aiocbp); - - /** - PACE's implementation of the POSIX function aio_return. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), section 6.7.6. - */ - PACE_INLINE int pace_aio_return (pace_aiocb * aiocbp); - - /** - PACE's implementation of the POSIX function aio_suspend. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), section 6.7.8. - */ - PACE_INLINE int pace_aio_suspend (const pace_aiocb * const list[], - int nent, - const pace_timespec * timeout); - - /** - PACE's implementation of the POSIX function aio_write. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), section 6.7.3. - */ - PACE_INLINE int pace_aio_write (pace_aiocb * aiocbp); - - /** - PACE's implementation of the POSIX function lio_listio. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), section 6.7.4. - */ - PACE_INLINE int pace_lio_listio (int mode, - pace_aiocb * const list[], - int nent, - pace_sigevent * sig); - #if defined (PACE_HAS_CPLUSPLUS) } #endif /* PACE_HAS_CPLUSPLUS */ -#if defined (PACE_HAS_INLINE) -# include "pace/win32/aio.inl" -#endif /* PACE_HAS_INLINE */ - -#endif /* PACE_AIO_H */ +#endif /* PACE_AIO_H_WIN32 */ diff --git a/PACE/pace/win32/assert.h b/PACE/pace/win32/assert.h index 5cc1d3820e3..f190d090752 100644 --- a/PACE/pace/win32/assert.h +++ b/PACE/pace/win32/assert.h @@ -13,26 +13,15 @@ * * =========================================================================== */ -#ifndef PACE_ASSERT_H -#define PACE_ASSERT_H +#ifndef PACE_ASSERT_H_WIN32 +#define PACE_ASSERT_H_WIN32 #if defined (PACE_HAS_CPLUSPLUS) extern "C" { #endif /* PACE_HAS_CPLUSPLUS */ - /** - PACE's implementation of the POSIX macro assert. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE void pace_assert (int expression); - # if defined (PACE_HAS_CPLUSPLUS) } # endif /* PACE_HAS_CPLUSPLUS */ -#if defined (PACE_HAS_INLINE) -# include "pace/win32/assert.inl" -#endif /* PACE_HAS_INLINE */ - -#endif /* PACE_ASSERT_H */ +#endif /* PACE_ASSERT_H_WIN32 */ diff --git a/PACE/pace/win32/ctype.h b/PACE/pace/win32/ctype.h index ebe2462edd3..6744ab2a8b9 100644 --- a/PACE/pace/win32/ctype.h +++ b/PACE/pace/win32/ctype.h @@ -13,104 +13,13 @@ * * ============================================================================ */ -#ifndef PACE_CTYPE_H -#define PACE_CTYPE_H +#ifndef PACE_CTYPE_H_WIN32 +#define PACE_CTYPE_H_WIN32 #if defined (PACE_HAS_CPLUSPLUS) extern "C" { #endif /* PACE_HAS_CPLUSPLUS */ - /** - PACE's implementation of the POSIX function isalnum. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_isalnum (int c); - - /** - PACE's implementation of the POSIX function isalpha. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_isalpha (int c); - - /** - PACE's implementation of the POSIX function iscntrl. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_iscntrl (int c); - - /** - PACE's implementation of the POSIX function isdigit. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_isdigit (int c); - - /** - PACE's implementation of the POSIX function isgraph. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_isgraph (int c); - - /** - PACE's implementation of the POSIX function islower. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_islower (int c); - - /** - PACE's implementation of the POSIX function isprint. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_isprint (int c); - - /** - PACE's implementation of the POSIX function ispunct. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_ispunct (int c); - - /** - PACE's implementation of the POSIX function isspace. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_isspace (int c); - - /** - PACE's implementation of the POSIX function isupper. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_isupper (int c); - - /** - PACE's implementation of the POSIX function isxdigit. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_isxdigit (int c); - - /** - PACE's implementation of the POSIX function tolower. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_tolower (int c); - - /** - PACE's implementation of the POSIX function toupper. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_toupper (int c); - #if defined (PACE_HAS_CPLUSPLUS) } #endif /* PACE_HAS_CPLUSPLUS */ @@ -119,4 +28,4 @@ extern "C" { # include "pace/win32/ctype.inl" #endif /* PACE_HAS_INLINE */ -#endif /* PACE_CTYPE_H */ +#endif /* PACE_CTYPE_H_WIN32 */ diff --git a/PACE/pace/win32/dirent.h b/PACE/pace/win32/dirent.h index 5e2ba90debe..16acbdcaad1 100644 --- a/PACE/pace/win32/dirent.h +++ b/PACE/pace/win32/dirent.h @@ -13,8 +13,8 @@ * * ============================================================================ */ -#ifndef PACE_DIRENT_H -#define PACE_DIRENT_H +#ifndef PACE_DIRENT_H_WIN32 +#define PACE_DIRENT_H_WIN32 #include "pace/sys/types.h" #include <dirent.h> @@ -33,49 +33,8 @@ typedef DIR PACE_DIR; typedef struct dirent pace_dirent; #endif /* PACE_DIRENT */ - /** - PACE's implementation of the POSIX function opendir. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.1.2. - */ - PACE_INLINE DIR * pace_opendir (const char * dirname); - - /** - PACE's implementation of the POSIX function readdir. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.1.2. - */ - PACE_INLINE struct dirent * pace_readdir (PACE_DIR * dirp); - - /** - PACE's implementation of the POSIX function readdir_r. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.1.2. - */ - PACE_INLINE int pace_readdir_r (PACE_DIR * dirp, pace_dirent * entry, - pace_dirent ** result); - /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ - - /** - PACE's implementation of the POSIX function rewinddir. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.1.2. - */ - PACE_INLINE void pace_rewinddir (PACE_DIR * dirp); - - /** - PACE's implementation of the POSIX function closedir. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.1.2. - */ - PACE_INLINE int pace_closedir (PACE_DIR * dirp); - #if defined (PACE_HAS_CPLUSPLUS) } #endif /* PACE_HAS_CPLUSPLUS */ -#if defined (PACE_HAS_INLINE) -# include "pace/win32/dirent.inl" -#endif /* PACE_HAS_INLINE */ - -#endif /* PACE_DIRENT_H */ +#endif /* PACE_DIRENT_H_WIN32 */ diff --git a/PACE/pace/win32/fcntl.h b/PACE/pace/win32/fcntl.h index 40e6c0eb944..584e48d1282 100644 --- a/PACE/pace/win32/fcntl.h +++ b/PACE/pace/win32/fcntl.h @@ -13,8 +13,8 @@ * * ============================================================================ */ -#ifndef PACE_FCNTL_H -#define PACE_FCNTL_H +#ifndef PACE_FCNTL_H_WIN32 +#define PACE_FCNTL_H_WIN32 #include "pace/sys/types.h" #include "pace/unistd.h" @@ -56,45 +56,8 @@ extern "C" { typedef struct flock pace_flock; #endif /* PACE_FLOCK */ - /** - PACE's implementation of the POSIX function creat. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.3.2. - */ - PACE_INLINE int pace_creat (const char * path, pace_mode_t mode); - - /** - PACE's implementation of the POSIX function fcntl. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 6.5.2. - */ - # define pace_fcntl(X) fcntl X - /* int fcntl (int fildes, int cmd, *//* arg *//* ... ); - * - * PLEASE PAY SPECIAL ATTENTION HERE! - * This is a macro and requires an additional set of parenthesis - * surrounding the arguments. - */ - - /** - PACE's implementation of the POSIX function open. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.3.1. - */ - # define pace_open(X) open X - /* int open (const char *path, int oflag, *//* pace_mode_t mode *//* ... ); - * - * PLEASE PAY SPECIAL ATTENTION HERE! - * This is a macro and requires an additional set of parenthesis - * surrounding the arguments. - */ - #if defined (PACE_HAS_CPLUSPLUS) } #endif /* PACE_HAS_CPLUSPLUS */ -#if defined (PACE_HAS_INLINE) -# include "pace/win32/fcntl.inl" -#endif /* PACE_HAS_INLINE */ - -#endif /* PACE_FCNTL_H */ +#endif /* PACE_FCNTL_H_WIN32 */ diff --git a/PACE/pace/win32/grp.h b/PACE/pace/win32/grp.h index 4778ee1c652..0a864aff767 100644 --- a/PACE/pace/win32/grp.h +++ b/PACE/pace/win32/grp.h @@ -13,8 +13,8 @@ * * ============================================================================ */ -#ifndef PACE_GRP_H -#define PACE_GRP_H +#ifndef PACE_GRP_H_WIN32 +#define PACE_GRP_H_WIN32 #include <grp.h> @@ -27,50 +27,8 @@ extern "C" { typedef struct group pace_group; #endif /* PACE_GROUP */ - /** - PACE's implementation of the POSIX function getgrgid. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 9.2.1. - */ - PACE_INLINE pace_group * pace_getgrgid (pace_gid_t gid); - - /** - PACE's implementation of the POSIX function getgrgid_r. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 9.2.1. - */ - PACE_INLINE int pace_getgrgid_r (pace_gid_t gid, - pace_group * grp, - char * buffer, - size_t bufsize, - pace_group ** result); - /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ - - /** - PACE's implementation of the POSIX function getgrnam. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 9.2.1. - */ - PACE_INLINE pace_group * pace_getgrnam (const char * name); - - /** - PACE's implementation of the POSIX function getgrnam_r. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 9.2.1. - */ - PACE_INLINE int pace_getgrnam_r (const char * name, - pace_group * grp, - char * buffer, - size_t bufsize, - pace_group ** result); - /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ - # if defined (PACE_HAS_CPLUSPLUS) } # endif /* PACE_HAS_CPLUSPLUS */ -# if defined (PACE_HAS_INLINE) -# include "pace/win32/grp.inl" -# endif /* PACE_HAS_INLINE */ - -#endif /* PACE_GRP_H */ +#endif /* PACE_GRP_H_WIN32 */ diff --git a/PACE/pace/win32/limits.h b/PACE/pace/win32/limits.h index 5359460a149..0624528da7a 100644 --- a/PACE/pace/win32/limits.h +++ b/PACE/pace/win32/limits.h @@ -3,7 +3,7 @@ * ============================================================================ * * = LIBRARY - * pace () + * pace * * = FILENAME * pace/win32/limits.h @@ -13,8 +13,8 @@ * * ============================================================================ */ -#ifndef PACE_LIMITS_H -#define PACE_LIMITS_H +#ifndef PACE_LIMITS_H_WIN32 +#define PACE_LIMITS_H_WIN32 #include <limits.h> @@ -26,4 +26,4 @@ extern "C" { } # endif /* PACE_HAS_CPLUSPLUS */ -#endif /* PACE_LIMITS_H */ +#endif /* PACE_LIMITS_H_WIN32 */ diff --git a/PACE/pace/win32/locale.h b/PACE/pace/win32/locale.h index 435d8e38868..c56a9d9fec3 100644 --- a/PACE/pace/win32/locale.h +++ b/PACE/pace/win32/locale.h @@ -13,8 +13,8 @@ * * =========================================================================== */ -#ifndef PACE_LOCALE_H -#define PACE_LOCALE_H +#ifndef PACE_LOCALE_H_WIN32 +#define PACE_LOCALE_H_WIN32 #if defined (PACE_HAS_CPLUSPLUS) extern "C" { @@ -33,25 +33,8 @@ extern "C" { typedef struct lconv pace_lconv; #endif /* PACE_LCONV */ - /** - Fills in pace_lconv with values consistent with the - current locality. - */ - PACE_INLINE pace_lconv* pace_localeconv (void); - - /** - PACE's implementation of the POSIX function setlocale. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1.2. - */ - PACE_INLINE char * pace_setlocale (int category, const char * locale); - #if defined (PACE_HAS_CPLUSPLUS) } #endif /* PACE_HAS_CPLUSPLUS */ -#if defined (PACE_HAS_INLINE) -# include "pace/win32/locale.inl" -#endif /* PACE_HAS_INLINE */ - #endif /* PACE_LOCALE_H */ diff --git a/PACE/pace/win32/math.h b/PACE/pace/win32/math.h index ad55efa8158..e1658a72c12 100644 --- a/PACE/pace/win32/math.h +++ b/PACE/pace/win32/math.h @@ -13,8 +13,8 @@ * * ============================================================================ */ -#ifndef PACE_MATH_H -#define PACE_MATH_H +#ifndef PACE_MATH_H_WIN32 +#define PACE_MATH_H_WIN32 #if defined (PACE_HAS_CPLUSPLUS) extern "C" { @@ -22,166 +22,8 @@ extern "C" { #define PACE_HUGE_VAL HUGE_VAL - /** - PACE's implementation of the POSIX function acos. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE double pace_acos (double x); - - /** - PACE's implementation of the POSIX function asin. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE double pace_asin (double x); - - /** - PACE's implementation of the POSIX function atan. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE double pace_atan (double x); - - /** - PACE's implementation of the POSIX function atan2. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE double pace_atan2 (double x, double y); - - /** - PACE's implementation of the POSIX function cos. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE double pace_cos (double x); - - /** - PACE's implementation of the POSIX function sin. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE double pace_sin (double x); - - /** - PACE's implementation of the POSIX function tan. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE double pace_tan (double x); - - /** - PACE's implementation of the POSIX function cosh. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE double pace_cosh (double x); - - /** - PACE's implementation of the POSIX function sinh. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE double pace_sinh (double x); - - /** - PACE's implementation of the POSIX function tanh. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE double pace_tanh (double x); - - /** - PACE's implementation of the POSIX function exp. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE double pace_exp (double x); - - /** - PACE's implementation of the POSIX function frexp. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE double pace_frexp (double x, int * exp); - - /** - PACE's implementation of the POSIX function ldexp. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE double pace_ldexp (double x, int exp); - - /** - PACE's implementation of the POSIX function log. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE double pace_log (double x); - - /** - PACE's implementation of the POSIX function log10. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE double pace_log10 (double x); - - /** - PACE's implementation of the POSIX function modf. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE double pace_modf (double x, double * iptr); - - /** - PACE's implementation of the POSIX function pow. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE double pace_pow (double x, double y); - - /** - PACE's implementation of the POSIX function sqrt. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE double pace_sqrt (double x); - - /** - PACE's implementation of the POSIX function ceil. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE double pace_ceil (double x); - - /** - PACE's implementation of the POSIX function fabs. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE double pace_fabs (double x); - - /** - PACE's implementation of the POSIX function floor. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE double pace_floor (double x); - - /** - PACE's implementation of the POSIX function fmod. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE double pace_fmod (double x, double y); - #if defined (PACE_HAS_CPLUSPLUS) } #endif /* PACE_HAS_CPLUSPLUS */ -#if defined (PACE_HAS_INLINE) -# include "pace/win32/math.inl" -#endif /* PACE_HAS_INLINE */ - -#endif /* PACE_MATH_H */ +#endif /* PACE_MATH_H_WIN32 */ diff --git a/PACE/pace/win32/mman.h b/PACE/pace/win32/mman.h index 485cf22103c..0f9a6279ffd 100644 --- a/PACE/pace/win32/mman.h +++ b/PACE/pace/win32/mman.h @@ -13,8 +13,8 @@ * * ============================================================================ */ -#ifndef PACE_SYS_MMAN_H -#define PACE_SYS_MMAN_H +#ifndef PACE_SYS_MMAN_H_WIN32 +#define PACE_SYS_MMAN_H_WIN32 #include <sys/mman.h> @@ -35,95 +35,8 @@ extern "C" { #define PACE_PROT_READ PROT_READ #define PACE_PROT_WRITE PROT_WRITE - /** - PACE's implementation of the POSIX function mlock. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 12.1.2. - */ - PACE_INLINE int pace_mlock (const void * addr, size_t len); - - /** - PACE's implementation of the POSIX function mlockall. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 12.1.1. - */ - PACE_INLINE int pace_mlockall (int flags); - - /** - PACE's implementation of the POSIX function mmap. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 12.2.1. - */ - PACE_INLINE void * pace_mmap (void * addr, - size_t len, - int prot, - int flags, - int fildes, - off_t off); - - /** - PACE's implementation of the POSIX function mprotect. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 12.2.3. - */ - PACE_INLINE int pace_mprotect (void * addr, - size_t len, - int prot); - - /** - PACE's implementation of the POSIX function msync. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 12.2.4. - */ - PACE_INLINE int pace_msync (void * addr, - size_t len, - int flags); - - /** - PACE's implementation of the POSIX function munlock. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 12.1.2. - */ - PACE_INLINE int pace_munlock (const void * addr, size_t len); - - /** - PACE's implementation of the POSIX function munlockall. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 12.1.1. - */ - PACE_INLINE int pace_munlockall (); - - /** - PACE's implementation of the POSIX function munmap. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 12.2.2. - */ - PACE_INLINE int pace_munmap (void *addr, size_t len); - - /** - PACE's implementation of the POSIX function shm_open. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 12.3.1. - */ - PACE_INLINE int pace_shm_open (const char * name, - int oflag, - mode_t mode); - /* Requires PACE_POSIX_C_SOURCE > 2. */ - - /** - PACE's implementation of the POSIX function shm_open. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 12.3.2. - */ - PACE_INLINE int pace_shm_unlink (const char * name); - /* Requires PACE_POSIX_C_SOURCE > 2. */ - #if defined (PACE_HAS_CPLUSPLUS) } #endif /* PACE_HAS_CPLUSPLUS */ -#if defined (PACE_HAS_INLINE) -# include "pace/win32/mman.inl" -#endif /* PACE_HAS_INLINE */ - #endif /* PACE_SYS_MMAN_H */ diff --git a/PACE/pace/win32/mqueue.h b/PACE/pace/win32/mqueue.h index 006a2b3b2a1..1a7447722c9 100644 --- a/PACE/pace/win32/mqueue.h +++ b/PACE/pace/win32/mqueue.h @@ -13,8 +13,8 @@ * * ============================================================================ */ -#ifndef PACE_MQUEUE_H -#define PACE_MQUEUE_H +#ifndef PACE_MQUEUE_H_WIN32 +#define PACE_MQUEUE_H_WIN32 #include <mqueue.h> #include "pace/signal.h" @@ -33,84 +33,8 @@ typedef mqd_t pace_mqd_t; typedef struct mq_attr pace_mq_attr; #endif /* PACE_MQ_ATTR */ - /** - PACE's implementation of the POSIX function mq_close. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 15.2.2. - */ - PACE_INLINE int pace_mq_close (pace_mqd_t mqdes); - - /** - PACE's implementation of the POSIX function mq_getattr. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 15.2.8. - */ - PACE_INLINE int pace_mq_getattr (pace_mqd_t mqdes, - pace_mq_attr * mqstat); - - /** - PACE's implementation of the POSIX function mq_notify. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 15.2.6. - */ - PACE_INLINE int pace_mq_notify (pace_mqd_t mqdes, - const pace_sigevent * notification); - - /** - PACE's implementation of the POSIX function mq_open. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 15.2.1. - */ - # define pace_mq_open(X) mq_open X - /* mqd_t mq_open (const char *name, int oflag, (*//* args *//*) ... ); - * - * PLEASE PAY SPECIAL ATTENTION HERE! - * This is a macro and requires an additional set of parenthesis - * surrounding the arguments. - */ - - /** - PACE's implementation of the POSIX function mq_receive. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 15.2.5. - */ - PACE_INLINE ssize_t pace_mq_receive (pace_mqd_t mqdes, - char * msg_ptr, - size_t msg_len, - unsigned int * nmsg_prio); - - /** - PACE's implementation of the POSIX function mq_send. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 15.2.4. - */ - PACE_INLINE int pace_mq_send (pace_mqd_t mqdes, - const char * mst_ptr, - size_t msg_len, - unsigned int psg_prio); - - /** - PACE's implementation of the POSIX function mq_setattr. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 15.2.7. - */ - PACE_INLINE int pace_mq_setattr (pace_mqd_t mqdes, - const pace_mq_attr * mqstat, - pace_mq_attr * omqstat); - - /** - PACE's implementation of the POSIX function mq_unlink. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 15.2.3. - */ - PACE_INLINE int pace_mq_unlink (const char * name); - #if defined (PACE_HAS_CPLUSPLUS) } #endif /* PACE_HAS_CPLUSPLUS */ -#if defined (PACE_HAS_INLINE) -# include "pace/win32/mqueue.inl" -#endif /* PACE_HAS_INLINE */ - -#endif /* PACE_MQUEUE_H */ +#endif /* PACE_MQUEUE_H_WIN32 */ diff --git a/PACE/pace/win32/pthread.h b/PACE/pace/win32/pthread.h index 035bf5d6ae2..91c72b40ab6 100644 --- a/PACE/pace/win32/pthread.h +++ b/PACE/pace/win32/pthread.h @@ -13,14 +13,13 @@ * * ============================================================================ */ -#ifndef PACE_PTHREAD_H -#define PACE_PTHREAD_H +#ifndef PACE_PTHREAD_H_WIN32 +#define PACE_PTHREAD_H_WIN32 #include <pthread.h> #include "pace/sys/types.h" #include "pace/signal.h" - #if defined (PACE_HAS_CPLUSPLUS) extern "C" { #endif /* PACE_HAS_CPLUSPLUS */ @@ -45,507 +44,8 @@ extern "C" { #define PACE_PTHREAD_SCOPE_PROCESS PTHREAD_SCOPE_PROCESS #define PACE_PTHREAD_SCOPE_SYSTEM PTHREAD_SCOPE_SYSTEM - /** - PACE's implementation of the POSIX function pthread_atfork. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.1.3. - */ - PACE_INLINE int pace_pthread_atfork (void (*prepare) (), - void (*parent) (), - void (*child) ()); - - /** - PACE's implementation of the POSIX function pthread_attr_destroy. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.1. - */ - PACE_INLINE int pace_pthread_attr_destroy (pace_pthread_attr_t * attr); - - /** - PACE's implementation of the POSIX function pthread_attr_getdetachstate. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.1. - */ - PACE_INLINE int pace_pthread_attr_getdetachstate (const pace_pthread_attr_t * attr, - int * detachstate); - - /** - PACE's implementation of the POSIX function pthread_attr_getinheritsched. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.5.1. - */ - PACE_INLINE int pace_pthread_attr_getinheritsched (const pace_pthread_attr_t * attr, - int * inheritsched); - - /** - PACE's implementation of the POSIX function pthread_attr_getschedparam. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.5.1. - */ - PACE_INLINE int pace_pthread_attr_getschedparam (const pace_pthread_attr_t * attr, - struct sched_param * param); - - /** - PACE's implementation of the POSIX function pthread_attr_getschedpolicy. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.5.1. - */ - PACE_INLINE int pace_pthread_attr_getschedpolicy (const pace_pthread_attr_t * attr, - int * policy); - - /** - PACE's implementation of the POSIX function pthread_attr_getscope. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.5.1. - */ - PACE_INLINE int pace_pthread_attr_getscope (const pace_pthread_attr_t * attr, - int * contentionscope); - - /** - PACE's implementation of the POSIX function pthread_attr_getstackaddr. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.1. - */ - PACE_INLINE int pace_pthread_attr_getstackaddr (const pace_pthread_attr_t * attr, - void ** stackaddr); - - /** - PACE's implementation of the POSIX function pthread_attr_getstacksize. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.1. - */ - PACE_INLINE int pace_pthread_attr_getstacksize (const pace_pthread_attr_t * attr, - size_t * stacksize); - - /** - PACE's implementation of the POSIX function pthread_attr_init. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.1. - */ - PACE_INLINE int pace_pthread_attr_init (pace_pthread_attr_t * attr); - - /** - PACE's implementation of the POSIX function pthread_attr_setdetachstate. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.1. - */ - PACE_INLINE int pace_pthread_attr_setdetachstate (pace_pthread_attr_t * attr, - int detachstate); - - /** - PACE's implementation of the POSIX function pthread_attr_setinheritsched. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.5.1. - */ - PACE_INLINE int pace_pthread_attr_setinheritsched (pace_pthread_attr_t * attr, - int inheritsched); - - /** - PACE's implementation of the POSIX function pthread_attr_setschedparam. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.5.1. - */ - PACE_INLINE int pace_pthread_attr_setschedparam (pace_pthread_attr_t * attr, - const struct - sched_param * param); - - /** - PACE's implementation of the POSIX function pthread_attr_setschedpolicy. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.5.1. - */ - PACE_INLINE int pace_pthread_attr_setschedpolicy (pace_pthread_attr_t * attr, - int policy); - - /** - PACE's implementation of the POSIX function pthread_attr_setscope. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.5.1. - */ - PACE_INLINE int pace_pthread_attr_setscope (pace_pthread_attr_t * attr, - int contentionscope); - - /** - PACE's implementation of the POSIX function pthread_attr_setstackaddr. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.1. - */ - PACE_INLINE int pace_pthread_attr_setstackaddr (pace_pthread_attr_t * attr, - void * stackaddr); - - /** - PACE's implementation of the POSIX function pthread_attr_setstacksize. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.1. - */ - PACE_INLINE int pace_pthread_attr_setstacksize (pace_pthread_attr_t * attr, - size_t stacksize); - - /** - PACE's implementation of the POSIX function pthread_cancel. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 18.2.1. - */ - PACE_INLINE int pace_pthread_cancel (pace_pthread_t thread); - - /** - PACE's implementation of the POSIX function pthread_cleanup_push. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 18.2.3. - */ -# define pace_pthread_cleanup_push(routine, arg) \ - pthread_cleanup_push (routine, arg) - - /** - PACE's implementation of the POSIX function pthread_cleanup_pop. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 18.2.3. - */ -# define pace_pthread_cleanup_pop(execute) \ - pthread_cleanup_pop (execute) - -# define PACE_PTHREAD_COND_INITIALIZER PTHREAD_COND_INITIALIZER - - /** - PACE's implementation of the POSIX function pthread_cond_broadcast. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.4.3. - */ - PACE_INLINE int pace_pthread_cond_broadcast (pace_pthread_cond_t * cond); - - /** - PACE's implementation of the POSIX function pthread_cond_destroy. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.4.2. - */ - PACE_INLINE int pace_pthread_cond_destroy (pace_pthread_cond_t * cond); - - /** - PACE's implementation of the POSIX function pthread_cond_init. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.4.2. - */ - PACE_INLINE int pace_pthread_cond_init (pace_pthread_cond_t * cond, - const pace_pthread_condattr_t * attr); - - /** - PACE's implementation of the POSIX function pthread_cond_signal. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.4.3. - */ - PACE_INLINE int pace_pthread_cond_signal (pace_pthread_cond_t * cond); - - /** - PACE's implementation of the POSIX function pthread_cond_timedwait. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.4.4. - */ - PACE_INLINE int pace_pthread_cond_timedwait (pthread_cond_t * cond, - pace_pthread_mutex_t * mutex, - const struct timespec * abstime); - - /** - PACE's implementation of the POSIX function pthread_cond_wait. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.4.4. - */ - PACE_INLINE int pace_pthread_cond_wait (pace_pthread_cond_t * cond, - pace_pthread_mutex_t * mutex); - - /** - PACE's implementation of the POSIX function pthread_condattr_destroy. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.4.1. - */ - PACE_INLINE int pace_pthread_condattr_destroy (pace_pthread_condattr_t * attr); - - /** - PACE's implementation of the POSIX function pthread_condattr_getpshared. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.4.1. - */ - PACE_INLINE int pace_pthread_condattr_getpshared (const pace_pthread_condattr_t * attr, - int * pshared); - - /** - PACE's implementation of the POSIX function pthread_condattr_init. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.4.1. - */ - PACE_INLINE int pace_pthread_condattr_init (pace_pthread_condattr_t * attr); - - /** - PACE's implementation of the POSIX function pthread_condattr_setpshared. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.4.1. - */ - PACE_INLINE int pace_pthread_condattr_setpshared (pace_pthread_condattr_t * attr, - int pshared); - - /** - PACE's implementation of the POSIX function pthread_create. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.2. - */ - PACE_INLINE int pace_pthread_create (pace_pthread_t * thread, - const pace_pthread_attr_t * attr, - void * (*start_routine) (void*), - void * arg); - - /** - PACE's implementation of the POSIX function pthread_detach. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.4. - */ - PACE_INLINE int pace_pthread_detach (pace_pthread_t thread); - - /** - PACE's implementation of the POSIX function pthread_equal. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.7. - */ - PACE_INLINE int pace_pthread_equal (pace_pthread_t t1, pthread_t t2); - - /** - PACE's implementation of the POSIX function pthread_exit. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.5. - */ - PACE_INLINE void pace_pthread_exit (void * value_ptr); - - /** - PACE's implementation of the POSIX function pthread_getschedparam. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.2.5. - */ - PACE_INLINE int pace_pthread_getschedparam (pace_pthread_t thread, - int * policy, - struct sched_param * param); - - /** - PACE's implementation of the POSIX function pthread_getspecific. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 17.1.2. - */ - PACE_INLINE void * pace_pthread_getspecific (pace_pthread_key_t key); - - /** - PACE's implementation of the POSIX function pthread_join. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.3. - */ - PACE_INLINE int pace_pthread_join (pace_pthread_t thread, void ** value_ptr); - - /** - PACE's implementation of the POSIX function pthread_key_create. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 17.1.1. - */ - PACE_INLINE int pace_pthread_key_create (pace_pthread_key_t * key, - void (*destructor)(void*)); - - /** - PACE's implementation of the POSIX function pthread_key_delete. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 17.1.3. - */ - PACE_INLINE int pace_pthread_key_delete (pace_pthread_key_t key); - - /** - PACE's implementation of the POSIX function pthread_kill. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.10. - */ - PACE_INLINE int pace_pthread_kill (pace_pthread_t thread, int sig); - - # define PACE_PTHREAD_MUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER - - /** - PACE's implementation of the POSIX function pthread_mutex_destroy. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.3.2. - */ - PACE_INLINE int pace_pthread_mutex_destroy (pace_pthread_mutex_t * mutex); - - /** - PACE's implementation of the POSIX function pthread_mutex_getprioceiling. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.6.2. - */ - PACE_INLINE int pace_pthread_mutex_getprioceiling (pace_pthread_mutex_t * mutex, - int * prioceiling); - - /** - PACE's implementation of the POSIX function pthread_mutex_init. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.3.2. - */ - PACE_INLINE int pace_pthread_mutex_init (pace_pthread_mutex_t * mutex, - const pace_pthread_mutexattr_t * attr); - - /** - PACE's implementation of the POSIX function pthread_mutex_lock. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.3.3. - */ - PACE_INLINE int pace_pthread_mutex_lock (pace_pthread_mutex_t * mutex); - - /** - PACE's implementation of the POSIX function pthread_mutex_setprioceiling. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.6.2. - */ - PACE_INLINE int pace_pthread_mutex_setprioceiling (pace_pthread_mutex_t * mutex, - int prioceiling, - int * old_ceiling); - - /** - PACE's implementation of the POSIX function pthread_mutex_trylock. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.3.3. - */ - PACE_INLINE int pace_pthread_mutex_trylock (pthread_mutex_t * mutex); - - /** - PACE's implementation of the POSIX function pthread_mutex_unlock. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.3.3. - */ - PACE_INLINE int pace_pthread_mutex_unlock (pace_pthread_mutex_t * mutex); - - /** - PACE's implementation of the POSIX function pthread_mutexattr_destroy. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.3.1. - */ - PACE_INLINE int pace_pthread_mutexattr_destroy (pace_pthread_mutexattr_t * sttr); - - /** - PACE's implementation of the POSIX function - pthread_mutexattr_getprioceiling. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.6.1. - */ - PACE_INLINE int pace_pthread_mutexattr_getprioceiling (pace_pthread_mutexattr_t * attr, - int * prioceiling); - - /** - PACE's implementation of the POSIX function pthread_mutexattr_getprotocol. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.6.1. - */ - PACE_INLINE int pace_pthread_mutexattr_getprotocol - (const pace_pthread_mutexattr_t * attr, int * protocol); - - /** - PACE's implementation of the POSIX function - pthread_mutexattr_setprioceiling. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.6.1. - */ - PACE_INLINE int pace_pthread_mutexattr_setprioceiling (pace_pthread_mutexattr_t * attr, - int prioceiling); - - /** - PACE's implementation of the POSIX function pthread_mutexattr_setprotocol. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.6.1. - */ - PACE_INLINE int pace_pthread_mutexattr_setprotocol (pace_pthread_mutexattr_t * attr, - int protocol); - /** - PACE's implementation of the POSIX function pthread_mutexattr_getpshared. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.3.1. - */ - PACE_INLINE int - pace_pthread_mutexattr_getpshared (const pace_pthread_mutexattr_t * attr, - int * pshared); - - /** - PACE's implementation of the POSIX function pthread_mutexattr_init. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.3.1. - */ - PACE_INLINE int pace_pthread_mutexattr_init (pace_pthread_mutexattr_t * attr); - - /** - PACE's implementation of the POSIX function pthread_mutexattr_setpshared. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.3.1. - */ - PACE_INLINE int pace_pthread_mutexattr_setpshared (pace_pthread_mutexattr_t * attr, - int pshared); - - /** - PACE's implementation of the POSIX function pthread_once. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.8. - */ - PACE_INLINE int pace_pthread_once (pace_pthread_once_t * once_control, - void (*void_routine) ()); - -# define PACE_PTHREAD_ONCE_INIT PTHREAD_ONCE_INIT - - /** - PACE's implementation of the POSIX function pthread_self. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.6. - */ - PACE_INLINE pace_pthread_t pace_pthread_self (); - - /** - PACE's implementation of the POSIX function pthread_setcancelstate. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 18.2.2. - */ - PACE_INLINE int pace_pthread_setcancelstate (int state, int * oldstate); - - /** - PACE's implementation of the POSIX function pthread_setcanceltype. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 18.2.2. - */ - PACE_INLINE int pace_pthread_setcanceltype (int type, int * oldtype); - - /** - PACE's implementation of the POSIX function pthread_setschedparam. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.5.2. - */ - PACE_INLINE int pace_pthread_setschedparam (pace_pthread_t thread, - int policy, - const struct sched_param * param); - - /** - PACE's implementation of the POSIX function pthread_setspecific. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 17.1.2. - */ - PACE_INLINE int pace_pthread_setspecific (pace_pthread_key_t key, const void * value); - - /** - PACE's implementation of the POSIX function pthread_sigmask. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.5. - */ - PACE_INLINE int pace_pthread_sigmask (int how, - const sigset_t * set, - sigset_t * oset); - - /** - PACE's implementation of the POSIX function pthread_testcancel. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 18.2.2. - */ - PACE_INLINE void pace_pthread_testcancel (); - #if defined (PACE_HAS_CPLUSPLUS) } #endif /* PACE_HAS_CPLUSPLUS */ -#if defined (PACE_HAS_INLINE) -# include "pace/win32/pthread.inl" -#endif /* PACE_HAS_INLINE */ - -#endif /* PACE_PTHREAD_H */ +#endif /* PACE_PTHREAD_H_WIN32 */ diff --git a/PACE/pace/win32/pwd.h b/PACE/pace/win32/pwd.h index 46f78bb19b2..6274c771cb7 100644 --- a/PACE/pace/win32/pwd.h +++ b/PACE/pace/win32/pwd.h @@ -13,8 +13,8 @@ * * ============================================================================ */ -#ifndef PACE_PWD_H -#define PACE_PWD_H +#ifndef PACE_PWD_H_WIN32 +#define PACE_PWD_H_WIN32 #include <pwd.h> #include "pace/sys/types.h" @@ -28,50 +28,8 @@ extern "C" { typedef struct passwd pace_passwd; #endif /* PACE_PASSWD */ - /** - PACE's implementation of the POSIX function getpwuid. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 9.2.2. - */ - PACE_INLINE pace_passwd * pace_getpwuid (pace_uid_t uid); - - /** - PACE's implementation of the POSIX function getpwuid_r. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 9.2.2. - */ - PACE_INLINE int pace_getpwuid_r (pace_uid_t uid, - pace_passwd * pwd, - char * buffer, - pace_size_t bufsize, - pace_passwd ** result); - /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ - - /** - PACE's implementation of the POSIX function getpwnam. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 9.2.2. - */ - PACE_INLINE pace_passwd * pace_getpwnam (const char * name); - - /** - PACE's implementation of the POSIX function getpwnam_r. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 9.2.2. - */ - PACE_INLINE int pace_getpwnam_r (const char * name, - pace_passwd * pwd, - char * buffer, - pace_size_t bufsize, - pace_passwd ** result); - /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ - #if defined (PACE_HAS_CPLUSPLUS) } #endif /* PACE_HAS_CPLUSPLUS */ -#if defined (PACE_HAS_INLINE) -# include "pace/win32/pwd.inl" -#endif /* PACE_HAS_INLINE */ - -#endif /* PACE_PWD_H */ +#endif /* PACE_PWD_H_WIN32 */ diff --git a/PACE/pace/win32/sched.h b/PACE/pace/win32/sched.h index 50fdb833e1d..77798219999 100644 --- a/PACE/pace/win32/sched.h +++ b/PACE/pace/win32/sched.h @@ -13,8 +13,8 @@ * * ============================================================================ */ -#ifndef PACE_SCHED_H -#define PACE_SCHED_H +#ifndef PACE_SCHED_H_WIN32 +#define PACE_SCHED_H_WIN32 #include <sched.h> #include "pace/time.h" @@ -28,73 +28,8 @@ extern "C" { typedef struct sched_param pace_sched_param; - /** - PACE's implementation of the POSIX function sched_get_priority_max. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.3.6. - */ - PACE_INLINE int pace_sched_get_priority_max (int policy); - - /** - PACE's implementation of the POSIX function sched_get_priority_min. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.3.6. - */ - PACE_INLINE int pace_sched_get_priority_min (int policy); - - /** - PACE's implementation of the POSIX function sched_getparam. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.3.2. - */ - PACE_INLINE int pace_sched_getparam (pace_pid_t pid, - pace_sched_param * param); - - /** - PACE's implementation of the POSIX function sched_rr_get_interval. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.3.6. - */ - PACE_INLINE int pace_sched_rr_get_interval (pace_pid_t pid, - pace_timespec * interval); - - /** - PACE's implementation of the POSIX function sched_setparam. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.3.1. - */ - PACE_INLINE int pace_sched_setparam (pace_pid_t pid, - const pace_sched_param * param); - - /** - PACE's implementation of the POSIX function sched_getscheduler. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.3.4. - */ - PACE_INLINE int pace_sched_getscheduler (pace_pid_t pid); - - /** - PACE's implementation of the POSIX function sched_setscheduler. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.3.3. - */ - PACE_INLINE int pace_sched_setscheduler (pace_pid_t pid, - int policy, - const pace_sched_param * param); - - /** - PACE's implementation of the POSIX function sched_yield. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.3.5. - */ - PACE_INLINE int pace_sched_yield (); - #if defined (PACE_HAS_CPLUSPLUS) } #endif /* PACE_HAS_CPLUSPLUS */ -#if defined (PACE_HAS_INLINE) -# include "pace/win32/sched.inl" -#endif /* PACE_HAS_INLINE */ - -#endif /* PACE_SCHED_H */ +#endif /* PACE_SCHED_H_WIN32 */ diff --git a/PACE/pace/win32/semaphore.h b/PACE/pace/win32/semaphore.h index 688c8ea00f8..89d66ac45c3 100644 --- a/PACE/pace/win32/semaphore.h +++ b/PACE/pace/win32/semaphore.h @@ -13,8 +13,8 @@ * * ============================================================================ */ -#ifndef PACE_SEMAPHORE_H -#define PACE_SEMAPHORE_H +#ifndef PACE_SEMAPHORE_H_WIN32 +#define PACE_SEMAPHORE_H_WIN32 #include <semaphore.h> @@ -24,81 +24,8 @@ extern "C" { typedef sem_t pace_sem_t; - /** - PACE's implementation of the POSIX function sem_close. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.2.4. - */ - PACE_INLINE int pace_sem_close (pace_sem_t * sem); - - /** - PACE's implementation of the POSIX function sem_destroy. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.2.2. - */ - PACE_INLINE int pace_sem_destroy (pace_sem_t * sem); - - /** - PACE's implementation of the POSIX function sem_getvalue. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.2.8. - */ - PACE_INLINE int pace_sem_getvalue (pace_sem_t * sem, int * sval); - - /** - PACE's implementation of the POSIX function sem_init. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.2.1. - */ - PACE_INLINE int pace_sem_init (pace_sem_t * sem, int pshared, unsigned int value); - - /** - PACE's implementation of the POSIX function sem_open. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.2.3. - */ - # define pace_sem_open(X) sem_open X - /* int fprintf (FILE *stream, const char *format, (*//* args *//*) ... ); - * - * PLEASE PAY SPECIAL ATTENTION HERE! - * This is a macro and requires an additional set of parenthesis - * surrounding the arguments. - */ - - /** - PACE's implementation of the POSIX function sem_post. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.2.7. - */ - PACE_INLINE int pace_sem_post (pace_sem_t * sem); - - /** - PACE's implementation of the POSIX function sem_trywait. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.2.6. - */ - PACE_INLINE int pace_sem_trywait (pace_sem_t * sem); - - /** - PACE's implementation of the POSIX function sem_unlink. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.2.5. - */ - PACE_INLINE int pace_sem_unlink (const char * name); - - /** - PACE's implementation of the POSIX function sem_wait. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.2.6. - */ - PACE_INLINE int pace_sem_wait (pace_sem_t * sem); - #if defined (PACE_HAS_CPLUSPLUS) } #endif /* PACE_HAS_CPLUSPLUS */ -#if defined (PACE_HAS_INLINE) -# include "pace/win32/semaphore.inl" -#endif /* PACE_HAS_INLINE */ - -#endif /* PACE_SEMAPHORE_H */ +#endif /* PACE_SEMAPHORE_H_WIN32 */ diff --git a/PACE/pace/win32/setjmp.h b/PACE/pace/win32/setjmp.h index 8f5fef24757..91ba5009c2c 100644 --- a/PACE/pace/win32/setjmp.h +++ b/PACE/pace/win32/setjmp.h @@ -13,8 +13,8 @@ * * ============================================================================ */ -#ifndef PACE_SETJMP_H -#define PACE_SETJMP_H +#ifndef PACE_SETJMP_H_WIN32 +#define PACE_SETJMP_H_WIN32 #include <setjmp.h> @@ -25,40 +25,8 @@ extern "C" { typedef jmp_buf pace_jmp_buf; typedef sigjmp_buf pace_sigjmp_buf; - /** - PACE's implementation of the POSIX function setjmp. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.3.1. - */ - PACE_INLINE int pace_setjmp (pace_jmp_buf env); - - /** - PACE's implementation of the POSIX function sigsetjmp. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.3.1. - */ - PACE_INLINE int pace_sigsetjmp (pace_sigjmp_buf env, int savemask); - - /** - PACE's implementation of the POSIX function longjmp. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.3.1. - */ - PACE_INLINE void pace_longjmp (pace_jmp_buf env, int val); - - /** - PACE's implementation of the POSIX function siglongjmp. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.3.1. - */ - PACE_INLINE void pace_siglongjmp (pace_sigjmp_buf env, int val); - #if defined (PACE_HAS_CPLUSPLUS) } #endif /* PACE_HAS_CPLUSPLUS */ -#if defined (PACE_HAS_INLINE) -# include "pace/win32/setjmp.inl" -#endif /* PACE_HAS_INLINE */ - -#endif /* PACE_SETJMP_H */ +#endif /* PACE_SETJMP_H_WIN32 */ diff --git a/PACE/pace/win32/signal.h b/PACE/pace/win32/signal.h index c77879f4580..3eea8a60ec2 100644 --- a/PACE/pace/win32/signal.h +++ b/PACE/pace/win32/signal.h @@ -13,8 +13,8 @@ * * ============================================================================= */ -#ifndef PACE_SIGNAL_H -#define PACE_SIGNAL_H +#ifndef PACE_SIGNAL_H_WIN32 +#define PACE_SIGNAL_H_WIN32 #include "pace/sys/types.h" #include "pace/time.h" @@ -31,129 +31,8 @@ extern "C" { typedef struct sigevent pace_sigevent; typedef union sigval pace_sigval; - /** - PACE's implementation of the POSIX function kill. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.2. - */ - PACE_INLINE int pace_kill (pace_pid_t pid, int sig); - - /** - C std 7.14.2.1 - */ - PACE_INLINE int pace_raise (int sig); - - /** - PACE's implementation of the POSIX function sigaction. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.4. - */ - PACE_INLINE int pace_sigaction (int sig, - const pace_s_sigaction * act, - pace_s_sigaction * oact); - - /** - PACE's implementation of the POSIX function sigaddset. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.3. - */ - PACE_INLINE int pace_sigaddset (pace_sigset_t * set, int signo); - - /** - PACE's implementation of the POSIX function sigemptyset. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.3. - */ - PACE_INLINE int pace_sigemptyset (pace_sigset_t * set); - - /** - PACE's implementation of the POSIX function sigdelset. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.3. - */ - PACE_INLINE int pace_sigdelset (pace_sigset_t * set, int signo); - - /** - PACE's implementation of the POSIX function sigfillset. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.3. - */ - PACE_INLINE int pace_sigfillset (pace_sigset_t * set); - - /** - PACE's implementation of the POSIX function sigismember. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.3. - */ - PACE_INLINE int pace_sigismember (const pace_sigset_t * set, int signo); - - /** - C std 7.14.1.1 - */ - PACE_INLINE void (*pace_signal(int sig, void (*func)(int)))(int); - - /** - PACE's implementation of the POSIX function sigpending. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.6. - */ - PACE_INLINE int pace_sigpending (pace_sigset_t * set); - - /** - PACE's implementation of the POSIX function sigprocmask. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.5. - */ - PACE_INLINE int pace_sigprocmask (int how, - const pace_sigset_t * set, - pace_sigset_t * oset); - - /** - PACE's implementation of the POSIX function sigqueue. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.9. - */ - PACE_INLINE int pace_sigqueue (pace_pid_t pid, - int signo, - const pace_sigval value); - - /** - PACE's implementation of the POSIX function sigsuspend. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.7. - */ - PACE_INLINE int pace_sigsuspend (const pace_sigset_t * sigmask); - - /** - PACE's implementation of the POSIX function sigtimedwait. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.8. - */ - PACE_INLINE int pace_sigtimedwait (const pace_sigset_t * set, - pace_siginfo_t * info, - const pace_timespec * timeout); - - /** - PACE's implementation of the POSIX function sigwait. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.8. - */ - PACE_INLINE int pace_sigwait (const pace_sigset_t * set, int * sig); - /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ - - /** - PACE's implementation of the POSIX function sigwaitinfo. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.8. - */ - PACE_INLINE int pace_sigwaitinfo (const pace_sigset_t * set, pace_siginfo_t * info); - #if defined (PACE_HAS_CPLUSPLUS) } #endif /* PACE_HAS_CPLUSPLUS */ -#if defined (PACE_HAS_INLINE) -# include "pace/win32/signal.inl" -#endif /* PACE_HAS_INLINE */ - -#endif /* PACE_SIGNAL_H */ +#endif /* PACE_SIGNAL_H_WIN32 */ diff --git a/PACE/pace/win32/stat.h b/PACE/pace/win32/stat.h index 355974ccaca..431b016154b 100644 --- a/PACE/pace/win32/stat.h +++ b/PACE/pace/win32/stat.h @@ -13,8 +13,8 @@ * * ============================================================================ */ -#ifndef PACE_SYS_STAT_H -#define PACE_SYS_STAT_H +#ifndef PACE_SYS_STAT_H_WIN32 +#define PACE_SYS_STAT_H_WIN32 #include "pace/sys/types.h" #include <sys/stat.h> @@ -48,32 +48,13 @@ extern "C" { #define PACE_S_TYPEISSEM S_TYPEISSEM #define PACE_S_TYPEISSHM S_TYPEISSHM - #ifndef PACE_STAT #define PACE_STAT typedef struct stat pace_stat; #endif /* PACE_STAT */ - PACE_INLINE int pace_chmod (const char * path, pace_mode_t mode); - - PACE_INLINE int pace_fchmod (int fildes, pace_mode_t mode); - - PACE_INLINE int pace_fstat (int fildes, struct stat * buf); - - PACE_INLINE int pace_mkdir (const char * path, pace_mode_t mode); - - PACE_INLINE int pace_mkfifo (const char * path, pace_mode_t mode); - - PACE_INLINE int pace_stat (const char * path, struct stat * buf); - - PACE_INLINE mode_t pace_umask (pace_mode_t cmask); - #if defined (PACE_HAS_CPLUSPLUS) } #endif /* PACE_HAS_CPLUSPLUS */ -#if defined (PACE_HAS_INLINE) -# include "pace/win32/stat.inl" -#endif /* PACE_HAS_INLINE */ - -#endif /* PACE_SYS_STAT_H */ +#endif /* PACE_SYS_STAT_H_WIN32 */ diff --git a/PACE/pace/win32/stdio.h b/PACE/pace/win32/stdio.h index 5ed6681674d..c4c4190fdf0 100644 --- a/PACE/pace/win32/stdio.h +++ b/PACE/pace/win32/stdio.h @@ -1,4 +1,4 @@ -/* $Id$ -*- C -*- +/* $Id$ * ============================================================================ * @@ -13,8 +13,8 @@ * * ============================================================================ */ -#ifndef PACE_STDIO_H -#define PACE_STDIO_H +#ifndef PACE_STDIO_H_WIN32 +#define PACE_STDIO_H_WIN32 #include <stdio.h> #include <stdarg.h> @@ -46,389 +46,8 @@ typedef fpos_t pace_fpos_t; typedef FILE PACE_FILE; - /** - PACE's implementation of the POSIX function clearerr. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE void pace_clearerr (PACE_FILE * stream); - - /** - PACE's implementation of the POSIX function fclose. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_fclose (PACE_FILE * stream); - - /** - PACE's implementation of the POSIX function fdopen. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.2.2. - */ - PACE_INLINE PACE_FILE * pace_fdopen (int fildes, const char * type); - - /** - PACE's implementation of the POSIX function ferror. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_ferror (PACE_FILE * stream); - - /** - PACE's implementation of the POSIX function feof. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_feof (PACE_FILE * stream); - - /** - PACE's implementation of the POSIX function fflush. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_fflush (PACE_FILE * stream); - - /** - PACE's implementation of the POSIX function fileno. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.2.1. - */ - PACE_INLINE int pace_fileno (PACE_FILE * stream); - - /** - PACE's implementation of the POSIX function fgetc. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_fgetc (PACE_FILE * stream); - - /** - C std 7.19.9.1 - */ - PACE_INLINE int pace_fgetpos(PACE_FILE * stream, - pace_fpos_t * pos); - - /** - PACE's implementation of the POSIX function fgets. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE char * pace_fgets (char * s, int n, PACE_FILE * stream); - - /** - PACE's implementation of the POSIX function flockfile. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.2.6. - */ - PACE_INLINE void pace_flockfile (PACE_FILE * file); - /* Requires PACE_HAS_REENTRANT. */ - - /** - PACE's implementation of the POSIX function fopen. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE PACE_FILE * pace_fopen (const char * filename, const char * mode); - - /** - PACE's implementation of the POSIX function fprintf. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - int pace_fprintf (PACE_FILE *stream, const char *format, ...); - - /** - PACE's implementation of the POSIX function fputc. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_fputc (int c, PACE_FILE * stream); - - /** - PACE's implementation of the POSIX function fputs. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_fputs (const char * s, PACE_FILE * stream); - - /** - PACE's implementation of the POSIX function fread. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE pace_size_t pace_fread (void * ptr, - pace_size_t size, - pace_size_t number_of_items, - PACE_FILE * stream); - - /** - PACE's implementation of the POSIX function freopen. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE FILE * pace_freopen (const char * filename, - const char * mode, - PACE_FILE * stream); - - /** - PACE's implementation of the POSIX function fscanf. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - #define pace_fscanf (X) fscanf X - /* int pace_scanf (const char *format, ... ); - * - * PLEASE PAY SPECIAL ATTENTION HERE! - * This is a macro and requires an additional set of parenthesis - * surrounding the arguments. - */ - - /** - PACE's implementation of the POSIX function fseek. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_fseek (PACE_FILE * stream, long offset, int whence); - - /** - C std 7.19.9.3 - */ - PACE_INLINE int pace_fsetpos(PACE_FILE *stream, const pace_fpos_t *pos); - - /** - PACE's implementation of the POSIX function ftell. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE long pace_ftell (PACE_FILE * stream); - - /** - PACE's implementation of the POSIX function ftrylockfile. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.2.6. - */ - PACE_INLINE int pace_ftrylockfile (PACE_FILE * file); - /* Requires PACE_HAS_REENTRANT. */ - - /** - PACE's implementation of the POSIX function funlockfile. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.2.6. - */ - PACE_INLINE void pace_funlockfile (PACE_FILE * file); - /* Requires PACE_HAS_REENTRANT. */ - - /** - C std 7.19.8.2 - */ - PACE_INLINE pace_size_t pace_fwrite(const void * ptr, - pace_size_t size, pace_size_t nmemb, - PACE_FILE * stream); - - /** - PACE's implementation of the POSIX function getc. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_getc (PACE_FILE * stream); - - /** - PACE's implementation of the POSIX function getc_unlocked. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.2.7. - */ - PACE_INLINE int pace_getc_unlocked (PACE_FILE * stream); - /* Requires PACE_HAS_REENTRANT. */ - - /** - PACE's implementation of the POSIX function getchar. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_getchar (); - - /** - PACE's implementation of the POSIX function getchar_unlocked. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.2.7. - */ - PACE_INLINE int pace_getchar_unlocked (); - /* Requires PACE_HAS_REENTRANT. */ - - /** - PACE's implementation of the POSIX function gets. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE char *pace_gets (char * s); - - /** - PACE's implementation of the POSIX function perror. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE void pace_perror (const char * s); - - /** - PACE's implementation of the POSIX function printf. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - int pace_printf (const char* format, ...); - - /** - PACE's implementation of the POSIX function putc. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_putc (int c, PACE_FILE * stream); - - /** - PACE's implementation of the POSIX function putc_unlocked. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.2.7. - */ - PACE_INLINE int pace_putc_unlocked (int c, PACE_FILE * stream); - /* Requires PACE_HAS_REENTRANT. */ - - /** - PACE's implementation of the POSIX function putchar. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_putchar (int c); - - /** - PACE's implementation of the POSIX function putchar_unlocked. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.2.7. - */ - PACE_INLINE int pace_putchar_unlocked (int c); - /* Requires PACE_HAS_REENTRANT. */ - - /** - PACE's implementation of the POSIX function puts. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_puts (const char * s); - - /** - PACE's implementation of the POSIX function remove. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_remove (const char * path); - - /** - PACE's implementation of the POSIX function rename. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.5.3. - */ - PACE_INLINE int pace_rename (const char * old_name, - const char * new_name); - - /** - PACE's implementation of the POSIX function rewind. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE void pace_rewind (PACE_FILE * stream); - - /** - PACE's implementation of the POSIX function sprintf. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - int pace_sprintf (char* s, const char* format, ...); - - /** - PACE's implementation of the POSIX function scanf. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - #define pace_scanf (X) scanf X - /* int pace_scanf (const char *format, ... ); - * - * PLEASE PAY SPECIAL ATTENTION HERE! - * This is a macro and requires an additional set of parenthesis - * surrounding the arguments. - */ - - /** - PACE's implementation of the POSIX function setbuf. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE void pace_setbuf (PACE_FILE * stream, char * buf); - - - /** - C std 7.19.5.6 - */ - PACE_INLINE int pace_setvbuf(PACE_FILE * stream, - char * buf, - int mode, pace_size_t size); - /** - PACE's implementation of the POSIX function sscanf. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - #define pace_sscanf (X) sscanf X - /* int pace_sscanf (const char *s, const char *format, ... ); - * - * PLEASE PAY SPECIAL ATTENTION HERE! - * This is a macro and requires an additional set of parenthesis - * surrounding the arguments. - */ - - /** - PACE's implementation of the POSIX function sscanf. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE FILE * pace_tmpfile (); - - /** - PACE's implementation of the POSIX function tmpnam. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE char * pace_tmpnam (char * s); - - /** - PACE's implementation of the POSIX function ungetc. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_ungetc (int c, FILE * stream); - - /** - C std 7.19.6.8 - */ - PACE_INLINE int pace_vfprintf (PACE_FILE * stream, - const char * format, - va_list arg); - - /** - C std 7.19.6.10 - */ - PACE_INLINE int pace_vprintf (const char * format, - va_list arg); - - /** - C std 7.19.6.13 - */ - PACE_INLINE int pace_vsprintf (char * s, - const char * format, - va_list arg); - #if defined (PACE_HAS_CPLUSPLUS) } #endif /* PACE_HAS_CPLUSPLUS */ -#if defined (PACE_HAS_INLINE) -# include "pace/win32/stdio.inl" -#endif /* PACE_HAS_INLINE */ - -#endif /* PACE_STDIO_H */ +#endif /* PACE_STDIO_H_WIN32 */ diff --git a/PACE/pace/win32/stdlib.h b/PACE/pace/win32/stdlib.h index 3a7565e7c06..64d0f5314df 100644 --- a/PACE/pace/win32/stdlib.h +++ b/PACE/pace/win32/stdlib.h @@ -13,8 +13,8 @@ * * ============================================================================ */ -#ifndef PACE_STDLIB_H -#define PACE_STDLIB_H +#ifndef PACE_STDLIB_H_WIN32 +#define PACE_STDLIB_H_WIN32 #include <stdlib.h> #include "pace/unistd.h" @@ -42,128 +42,8 @@ typedef ldiv_t pace_ldiv_t; typedef wchar_t pace_wchar_t; #endif /* PACE_WCHAR_T */ - /** - C std 7.20.4.1 - */ - PACE_INLINE void pace_abort (void); - - /** - PACE's implementation of the POSIX function abs. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_abs (int val); - - /** - PACE's implementation of the POSIX function atof. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE double pace_atof (const char * str); - - /** - PACE's implementation of the POSIX function atoi. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_atoi (const char * str); - - /** - PACE's implementation of the POSIX function atol. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE long pace_atol (const char * str); - - /** - PACE's implementation of the POSIX function bsearch. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE void * pace_bsearch (const void *key, const void *base, - size_t nel, size_t size, - int (*compar)(const void *,const void *)); - - /** - PACE's implementation of the POSIX function exit. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE void pace_exit (int status); - - /** - PACE's implementation of the POSIX function getenv. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.6.1. - */ - PACE_INLINE char * pace_getenv (const char * name); - - /** - PACE's implementation of the POSIX function qsort. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE void pace_qsort (void * base, size_t nel, size_t width, - int (*compar)(const void *, const void *)); - - /** - PACE's implementation of the POSIX function rand. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_rand (); - - /** - PACE's implementation of the POSIX function srand. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE void pace_srand (unsigned int seed); - - /** - PACE's implementation of the POSIX function rand_r. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.3.8. - */ - PACE_INLINE int pace_rand_r (unsigned int * seed); - /* Requires PACE_HAS_REENTRANT. */ - - /* Memory Management */ - - /** - PACE's implementation of the POSIX function malloc. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE void * pace_malloc (size_t size); - - /** - PACE's implementation of the POSIX function calloc. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE void * pace_calloc (size_t nelem, size_t elsize); - - /** - PACE's implementation of the POSIX function free. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE void pace_free (void * ptr); - - /** - PACE's implementation of the POSIX function realloc. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE void * pace_realloc (void * ptr, size_t size); - #if defined (PACE_HAS_CPLUSPLUS) } #endif /* PACE_HAS_CPLUSPLUS */ -#if defined (PACE_HAS_INLINE) -# include "pace/win32/stdlib.inl" -#endif /* PACE_HAS_INLINE */ - -#endif /* PACE_STDLIB_H */ +#endif /* PACE_STDLIB_H_WIN32 */ diff --git a/PACE/pace/win32/string.h b/PACE/pace/win32/string.h index 283ed61d4c0..22d21a80e15 100644 --- a/PACE/pace/win32/string.h +++ b/PACE/pace/win32/string.h @@ -13,8 +13,8 @@ * * ============================================================================ */ -#ifndef PACE_STRING_H -#define PACE_STRING_H +#ifndef PACE_STRING_H_WIN32 +#define PACE_STRING_H_WIN32 #include "pace/unistd.h" @@ -31,121 +31,8 @@ extern "C" { typedef size_t pace_size_t; #endif /* PACE_SIZE_T */ - /** - PACE's implementation of the POSIX function strcat. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE char * pace_strcat (char * s1, const char * s2); - - /** - PACE's implementation of the POSIX function strncat. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE char * pace_strncat (char * s1, const char * s2, size_t n); - - /** - PACE's implementation of the POSIX function strchr. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE const char * pace_strchr (const char * s, int c); - - /** - PACE's implementation of the POSIX function strrchr. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE const char * pace_strrchr (const char * s, int c); - - /** - PACE's implementation of the POSIX function strcmp. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_strcmp (const char * s1, const char * s2); - - /** - PACE's implementation of the POSIX function strncmp. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE int pace_strncmp (const char * s1, const char * s2, size_t n); - - /** - PACE's implementation of the POSIX function strcpy. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE char * pace_strcpy (char * s1, const char * s2); - - /** - PACE's implementation of the POSIX function strncpy. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE char * pace_strncpy (char * s1, const char * s2, size_t n); - - /** - PACE's implementation of the POSIX function strcspn. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE size_t pace_strcspn (const char * s1, const char * s2); - - /** - PACE's implementation of the POSIX function strspn. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE size_t pace_strspn (const char * s1, const char * s2); - - /** - PACE's implementation of the POSIX function strlen. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE size_t pace_strlen (const char * s); - - /** - PACE's implementation of the POSIX function strpbrk. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE const char * pace_strpbrk (const char * s1, const char * s2); - - /** - PACE's implementation of the POSIX function strstr. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE const char * pace_strstr (const char * s1, const char * s2); - - /** - PACE's implementation of the POSIX function strtok. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE char * pace_strtok (char * s1, const char * s2); - - /** - PACE's implementation of the POSIX function strtok_r. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.3.3. - */ - PACE_INLINE char * pace_strtok_r (char * s, - const char * sep, - char ** lasts); - /* Requires PACE_HAS_REENTRANT. */ - - #if defined (PACE_HAS_CPLUSPLUS) } #endif /* PACE_HAS_CPLUSPLUS */ -#if defined (PACE_HAS_INLINE) -# include "pace/win32/string.inl" -#endif /* PACE_HAS_INLINE */ - -#endif /* PACE_STRING_H */ +#endif /* PACE_STRING_H_WIN32 */ diff --git a/PACE/pace/win32/termios.h b/PACE/pace/win32/termios.h index a2535fe7b0e..9e7e5056167 100644 --- a/PACE/pace/win32/termios.h +++ b/PACE/pace/win32/termios.h @@ -13,8 +13,8 @@ * * ============================================================================ */ -#ifndef PACE_SYS_TERMIOS_H -#define PACE_SYS_TERMIOS_H +#ifndef PACE_SYS_TERMIOS_H_WIN32 +#define PACE_SYS_TERMIOS_H_WIN32 #include "pace/sys/types.h" #include <termios.h> @@ -43,34 +43,8 @@ typedef tcflag_t pace_tcflag_t; typedef struct termios pace_termios; #endif /* PACE_TERMIOS */ - PACE_INLINE speed_t pace_cfgetospeed (const struct termios * termiosp); - - PACE_INLINE int pace_cfsetospeed (struct termios * termios_p, pace_speed_t speed); - - PACE_INLINE speed_t pace_cfgetispeed (const struct termios * termios_p); - - PACE_INLINE int pace_cfsetispeed (struct termios * termios_p, pace_speed_t speed); - - PACE_INLINE int pace_tcdrain (int fildes); - - PACE_INLINE int pace_tcflow (int fildes, int action); - - PACE_INLINE int pace_tcflush (int fildes, int queue_selector); - - PACE_INLINE int pace_tcgetattr (int fildes, struct termios * termios_p); - - PACE_INLINE int pace_tcsendbreak (int fildes, int duration); - - PACE_INLINE int pace_tcsetattr (int fildes, - int optional_actions, - const struct termios * termios_p); - #if defined (PACE_HAS_CPLUSPLUS) } #endif /* PACE_HAS_CPLUSPLUS */ -#if defined (PACE_HAS_INLINE) -# include "pace/win32/termios.inl" -#endif /* PACE_HAS_INLINE */ - -#endif /* PACE_SYS_TERMIOS_H */ +#endif /* PACE_SYS_TERMIOS_H_WIN32 */ diff --git a/PACE/pace/win32/time.h b/PACE/pace/win32/time.h index 81914235c40..5b829fe7cf2 100644 --- a/PACE/pace/win32/time.h +++ b/PACE/pace/win32/time.h @@ -13,8 +13,8 @@ * * ============================================================================ */ -#ifndef PACE_TIME_H -#define PACE_TIME_H +#ifndef PACE_TIME_H_WIN32 +#define PACE_TIME_H_WIN32 #include <time.h> @@ -68,189 +68,8 @@ extern "C" { typedef struct itimerspec pace_itimerspec; #endif /* PACE_ITIMERSPEC */ - /** - PACE's implementation of the POSIX function asctime. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE char * pace_asctime (const pace_tm * time); - - /** - PACE's implementation of the POSIX function asctime_r. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1.1. - */ - PACE_INLINE char * pace_asctime_r (const pace_tm * tm, char * buf); - /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ - - - /** - C std 7.23.2.1 - */ - PACE_INLINE pace_clock_t pace_clock (void); - - /** - C std 7.23.2.2 - */ - PACE_INLINE double pace_difftime (pace_time_t time1, pace_time_t time2); - - /** - PACE's implementation of the POSIX function clock_getres. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 14.2.1. - */ - PACE_INLINE int pace_clock_getres (pace_clockid_t clock_id, - pace_timespec * res); - - /** - PACE's implementation of the POSIX function clock_gettime. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 14.2.1. - */ - PACE_INLINE int pace_clock_gettime (pace_clockid_t clock_id, - pace_timespec * tp); - - /** - PACE's implementation of the POSIX function clock_settime. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 14.2.1. - */ - PACE_INLINE int pace_clock_settime (pace_clockid_t clock_id, - const pace_timespec * tp); - - /** - PACE's implementation of the POSIX function ctime. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE char * pace_ctime (const pace_time_t * clock); - - /** - PACE's implementation of the POSIX function ctime_r. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.3.5. - */ - PACE_INLINE char * pace_ctime_r (const pace_time_t * clock, char * buf); - /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ - - /** - PACE's implementation of the POSIX function gmtime. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE pace_tm * pace_gmtime (const pace_time_t * clock); - - /** - PACE's implementation of the POSIX function gmtime_r. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.3.6. - */ - PACE_INLINE pace_tm * pace_gmtime_r (const pace_time_t * clock, - pace_tm * result); - /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ - - /** - PACE's implementation of the POSIX function localtime. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE pace_tm * pace_localtime (const time_t * clock); - - /** - PACE's implementation of the POSIX function localtime_r. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.3.7. - */ - PACE_INLINE pace_tm * pace_localtime_r (const pace_time_t * clock, - pace_tm * result); - /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ - - /** - PACE's implementation of the POSIX function mktime. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE pace_time_t pace_mktime (pace_tm * timeptr); - - /** - PACE's implementation of the POSIX function nanosleep. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 14.2.5. - */ - PACE_INLINE int pace_nanosleep (const pace_timespec * rqtp, - pace_timespec * rmtp); - - /** - PACE's implementation of the POSIX function strftime. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ - PACE_INLINE pace_size_t pace_strftime (char *s, pace_size_t maxsize, - const char *format, - const pace_tm *timeptr); - - /** - PACE's implementation of the POSIX function time. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.5.1. - */ - PACE_INLINE pace_time_t pace_time (pace_time_t *tloc); - - /** - PACE's implementation of the POSIX function timer_create. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 14.2.2. - */ - PACE_INLINE int pace_timer_create (pace_clockid_t clock_id, - pace_sigevent * evp, - pace_timer_t * timerid); - - /** - PACE's implementation of the POSIX function timer_delete. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 14.2.3. - */ - PACE_INLINE int pace_timer_delete (pace_timer_t timerid); - - /** - PACE's implementation of the POSIX function timer_getoverrun. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 14.2.4. - */ - PACE_INLINE int pace_timer_getoverrun (pace_timer_t timerid); - - /** - PACE's implementation of the POSIX function timer_gettime. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 14.2.4. - */ - PACE_INLINE int pace_timer_gettime (pace_timer_t timerid, - pace_itimerspec * value); - - /** - PACE's implementation of the POSIX function timer_settime. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 14.2.4. - */ - PACE_INLINE int pace_timer_settime (pace_timer_t timerid, - int flags, - const pace_itimerspec * value, - pace_itimerspec * ovalue); - - /** - PACE's implementation of the POSIX function tzset. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.3.2. - */ - PACE_INLINE void pace_tzset (); - /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ - #if defined (PACE_HAS_CPLUSPLUS) } #endif /* PACE_HAS_CPLUSPLUS */ -#if defined (PACE_HAS_INLINE) -# include "pace/win32/time.inl" -#endif /* PACE_HAS_INLINE */ - -#endif /* PACE_TIME_H */ +#endif /* PACE_TIME_H_WIN32 */ diff --git a/PACE/pace/win32/times.h b/PACE/pace/win32/times.h index dbcab88c0fa..e9762afea1f 100644 --- a/PACE/pace/win32/times.h +++ b/PACE/pace/win32/times.h @@ -13,8 +13,8 @@ * * ============================================================================ */ -#ifndef PACE_SYS_TIMES_H -#define PACE_SYS_TIMES_H +#ifndef PACE_SYS_TIMES_H_WIN32 +#define PACE_SYS_TIMES_H_WIN32 #include <sys/times.h> @@ -32,14 +32,8 @@ typedef clock_t pace_clock_t; typedef struct tms pace_tms; #endif /* PACE_TMS */ - PACE_INLINE pace_clock_t pace_times (struct tms * buffer); - #if defined (PACE_HAS_CPLUSPLUS) } #endif /* PACE_HAS_CPLUSPLUS */ -#if defined (PACE_HAS_INLINE) -# include "pace/win32/times.inl" -#endif /* PACE_HAS_INLINE */ - -#endif /* PACE_SYS_TIMES_H */ +#endif /* PACE_SYS_TIMES_H_WIN32 */ diff --git a/PACE/pace/win32/types.h b/PACE/pace/win32/types.h index b68cda4fa47..2062a09abd2 100644 --- a/PACE/pace/win32/types.h +++ b/PACE/pace/win32/types.h @@ -15,8 +15,8 @@ #include <sys/types.h> -#ifndef PACE_SYS_TYPES_H -#define PACE_SYS_TYPES_H +#ifndef PACE_SYS_TYPES_H_WIN32 +#define PACE_SYS_TYPES_H_WIN32 #include <wtypes.h> @@ -136,8 +136,4 @@ extern "C" { } #endif /* PACE_HAS_CPLUSPLUS */ -#endif /* PACE_SYS_TYPES_H */ - - - - +#endif /* PACE_SYS_TYPES_H_WIN32 */ diff --git a/PACE/pace/win32/unistd.h b/PACE/pace/win32/unistd.h index 0c8d53e72ac..27c9788c95f 100644 --- a/PACE/pace/win32/unistd.h +++ b/PACE/pace/win32/unistd.h @@ -13,8 +13,8 @@ * * ============================================================================ */ -#ifndef PACE_UNISTD_H -#define PACE_UNISTD_H +#ifndef PACE_UNISTD_H_WIN32 +#define PACE_UNISTD_H_WIN32 #include "pace/sys/types.h" /*#include <stropts.h>*/ @@ -48,373 +48,8 @@ typedef size_t pace_size_t; typedef ssize_t pace_ssize_t; #endif /* PACE_SSIZE_T */ - /** - PACE's implementation of the POSIX function _exit. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.2.2. - */ - PACE_INLINE void pace__exit (int status); - - /** - PACE's implementation of the POSIX function alarm. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.4.1. - */ - PACE_INLINE unsigned int pace_alarm (unsigned int seconds); - - /** - PACE's implementation of the POSIX function access. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.6.3. - */ - PACE_INLINE int pace_access (const char * path, int amode); - - /** - PACE's implementation of the POSIX function chdir. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.2.1. - */ - PACE_INLINE int pace_chdir (const char * path); - - /** - PACE's implementation of the POSIX function chown. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.6.5. - */ - PACE_INLINE int pace_chown (const char * path, uid_t owner, pace_gid_t group); - - /** - PACE's implementation of the POSIX function close. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 6.3.1. - */ - PACE_INLINE int pace_close (int fildes); - - /** - PACE's implementation of the POSIX function ctermid. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.7.1. - */ - PACE_INLINE char * pace_ctermid (char * s); - - - /** - PACE's implementation of the POSIX function dup. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 6.2.1. - */ - PACE_INLINE int pace_dup (int fildes); - - /** - PACE's implementation of the POSIX function dup2. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 6.2.1. - */ - PACE_INLINE int pace_dup2 (int fildes, int fildes2); - - /** - PACE's implementation of the POSIX function execl. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.1.2. - */ - int pace_execl (const char* path, const char* arg, ...); - - /** - PACE's implementation of the POSIX function execle. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.1.2. - */ - int pace_execle (const char* path, const char* arg, ...); - - /** - PACE's implementation of the POSIX function execlp. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.1.2. - */ - int pace_execlp (const char* file, const char* arg, ...); - - /** - PACE's implementation of the POSIX function execv. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.1.2. - */ - PACE_INLINE int pace_execv (const char * path, char * const argv[]); - - /** - PACE's implementation of the POSIX function execve. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.1.2. - */ - PACE_INLINE int pace_execve (const char * path, char * const argv[], - char * const envp[]); - - /** - PACE's implementation of the POSIX function execvp. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.1.2. - */ - PACE_INLINE int pace_execvp (const char * file, char * const argv[]); - - /** - PACE's implementation of the POSIX function fdatasync. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 6.6.2. - */ - PACE_INLINE int pace_fdatasync (int fildes); - - /** - PACE's implementation of the POSIX function fork. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.1.1. - */ - PACE_INLINE pace_pid_t pace_fork (); - - /** - PACE's implementation of the POSIX function fpathconf. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.7.1. - */ - PACE_INLINE long pace_fpathconf (int fildes, int name); - - /** - PACE's implementation of the POSIX function fsync. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 6.6.1. - */ - PACE_INLINE int pace_fsync (int fildes); - - /** - PACE's implementation of the POSIX function ftruncate. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.6.7. - */ - PACE_INLINE int pace_ftruncate (int fildes, pace_off_t length); - - /** - PACE's implementation of the POSIX function getcwd. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.2.2. - */ - PACE_INLINE char * pace_getcwd (char * buf, size_t size); - - /** - PACE's implementation of the POSIX function getegid. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.2.1. - */ - PACE_INLINE uid_t pace_getegid (); - - /** - PACE's implementation of the POSIX function geteuid. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.2.1. - */ - PACE_INLINE uid_t pace_geteuid (); - - /** - PACE's implementation of the POSIX function getgid. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.2.1. - */ - PACE_INLINE uid_t pace_getgid (); - - /** - PACE's implementation of the POSIX function getgroups. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.2.3. - */ - PACE_INLINE int pace_getgroups (int gidsetsize, pace_gid_t grouplist[]); - - /** - PACE's implementation of the POSIX function getlogin. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.2.4. - */ - PACE_INLINE char * pace_getlogin (); - - /** - PACE's implementation of the POSIX function getlogin_r. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.2.4. - */ - PACE_INLINE int pace_getlogin_r (char * name, size_t namesize); - /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ - - /** - PACE's implementation of the POSIX function getpgrp. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.3.1. - */ - PACE_INLINE pace_pid_t pace_getpgrp (); - - /** - PACE's implementation of the POSIX function getpid. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.1.1. - */ - PACE_INLINE pace_pid_t pace_getpid (); - - /** - PACE's implementation of the POSIX function getppid. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.1.1. - */ - PACE_INLINE pace_pid_t pace_getppid (); - - /** - PACE's implementation of the POSIX function getuid. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.2.1. - */ - PACE_INLINE uid_t pace_getuid (); - - /** - PACE's implementation of the POSIX function isatty. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.7.2. - */ - PACE_INLINE int pace_isatty (int fildes); - - /** - PACE's implementation of the POSIX function link. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.3.4. - */ - PACE_INLINE int pace_link (const char * existing, const char * new_link); - - /** - PACE's implementation of the POSIX function lseek. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 6.5.3. - */ - PACE_INLINE pace_off_t pace_lseek (int fildes, off_t offset, int whence); - - /** - PACE's implementation of the POSIX function pathconf. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.7.1. - */ - PACE_INLINE long pace_pathconf (const char * path, int name); - - /** - PACE's implementation of the POSIX function pause. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.4.2. - */ - PACE_INLINE int pace_pause (); - - /** - PACE's implementation of the POSIX function pipe. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 6.1.1. - */ - PACE_INLINE int pace_pipe (int fildes[2]); - - /** - PACE's implementation of the POSIX function read. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 6.4.1. - */ - PACE_INLINE ssize_t pace_read (int fildes, void * buf, size_t nbyte); - - /** - PACE's implementation of the POSIX function rmdir. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.5.2. - */ - PACE_INLINE int pace_rmdir (const char * path); - - /** - PACE's implementation of the POSIX function setgid. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.2.2. - */ - PACE_INLINE int pace_setgid (pace_gid_t gid); - - /** - PACE's implementation of the POSIX function setpgid. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.3.3. - */ - PACE_INLINE int pace_setpgid (pace_pid_t pid, pid_t pgid); - - /** - PACE's implementation of the POSIX function setsid. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.3.2. - */ - PACE_INLINE pace_pid_t pace_setsid (); - - /** - PACE's implementation of the POSIX function setuid. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.2.2. - */ - PACE_INLINE int pace_setuid (uid_t uid); - - /** - PACE's implementation of the POSIX function sleep. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.4.3. - */ - PACE_INLINE unsigned pace_sleep (unsigned int seconds); - - /** - PACE's implementation of the POSIX function sysconf. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.8.1. - */ - PACE_INLINE long pace_sysconf (int name); - - /** - PACE's implementation of the POSIX function ttyname. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 7.2.3.1. - */ - PACE_INLINE pid_t pace_tcgetpgrp (int fildes); - - /** - PACE's implementation of the POSIX function ttyname. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 7.2.3.1. - */ - PACE_INLINE int pace_tcsetpgrp (int fildes, pid_t pgrp_id); - - /** - PACE's implementation of the POSIX function ttyname. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.7.2. - */ - PACE_INLINE char * pace_ttyname (int fildes); - - /** - PACE's implementation of the POSIX function ttyname_r. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.7.2. - */ - PACE_INLINE int pace_ttyname_r (int fildes, char * name, size_t namesize); - /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ - - /** - PACE's implementation of the POSIX function unlink. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.5.1. - */ - PACE_INLINE int pace_unlink (const char * path); - - /** - PACE's implementation of the POSIX function write. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 6.4.2. - */ - PACE_INLINE ssize_t pace_write (int fildes, const void * buf, size_t nbyte); - #if defined (PACE_HAS_CPLUSPLUS) } #endif /* PACE_HAS_CPLUSPLUS */ -#if defined (PACE_HAS_INLINE) -# include "pace/win32/unistd.inl" -#endif /* PACE_HAS_INLINE */ - -#endif /* PACE_UNISTD_H */ +#endif /* PACE_UNISTD_H_WIN32 */ diff --git a/PACE/pace/win32/utime.h b/PACE/pace/win32/utime.h index 853c273aff2..2e5efdb602b 100644 --- a/PACE/pace/win32/utime.h +++ b/PACE/pace/win32/utime.h @@ -13,8 +13,8 @@ * * ============================================================================ */ -#ifndef PACE_UTIME_H -#define PACE_UTIME_H +#ifndef PACE_UTIME_H_WIN32 +#define PACE_UTIME_H_WIN32 #include "pace/sys/types.h" #include <utime.h> @@ -28,20 +28,8 @@ extern "C" { typedef struct utimbuf pace_utimbuf; #endif /* PACE_UTIMBUF */ - /** - PACE's implementation of the POSIX function utime. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.6.6. - */ - PACE_INLINE int pace_utime (const char * path, - const pace_utimbuf * times); - #if defined (PACE_HAS_CPLUSPLUS) } #endif /* PACE_HAS_CPLUSPLUS */ -#if defined (PACE_HAS_INLINE) -# include "pace/win32/utime.inl" -#endif /* PACE_HAS_INLINE */ - -#endif /* PACE_UTIME_H */ +#endif /* PACE_UTIME_H_WIN32 */ diff --git a/PACE/pace/win32/utsname.h b/PACE/pace/win32/utsname.h index 0b07feb1966..4999a3850e7 100644 --- a/PACE/pace/win32/utsname.h +++ b/PACE/pace/win32/utsname.h @@ -13,8 +13,8 @@ * * ============================================================================ */ -#ifndef PACE_SYS_UTSNAME_H -#define PACE_SYS_UTSNAME_H +#ifndef PACE_SYS_UTSNAME_H_WIN32 +#define PACE_SYS_UTSNAME_H_WIN32 #include <sys/utsname.h> @@ -27,14 +27,8 @@ extern "C" { typedef struct utsname pace_utsname; #endif /* PACE_UTSNAME */ - PACE_INLINE int pace_uname (struct utsname * name); - #if defined (PACE_HAS_CPLUSPLUS) } #endif /* PACE_HAS_CPLUSPLUS */ -#if defined (PACE_HAS_INLINE) -# include "pace/win32/utsname.inl" -#endif /* PACE_HAS_INLINE */ - -#endif /* PACE_SYS_UTSNAME_H */ +#endif /* PACE_SYS_UTSNAME_H_WIN32 */ diff --git a/PACE/pace/win32/wait.h b/PACE/pace/win32/wait.h index 253f324157f..cf2b7007afa 100644 --- a/PACE/pace/win32/wait.h +++ b/PACE/pace/win32/wait.h @@ -13,8 +13,8 @@ * * ============================================================================ */ -#ifndef PACE_WAIT_H -#define PACE_WAIT_H +#ifndef PACE_WAIT_H_WIN32 +#define PACE_WAIT_H_WIN32 #include "pace/sys/types.h" @@ -31,28 +31,8 @@ extern "C" { #define PACE_WTERMSIG WTERMSIG #define PACE_WUNTRACED WUNTRACED - /** - PACE's implementation of the POSIX function wait. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.2.1. - */ - PACE_INLINE pid_t pace_wait (int * statloc); - - /** - PACE's implementation of the POSIX function waitpid. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.2.1. - */ - PACE_INLINE pid_t pace_waitpid (pid_t pid, - int * statloc, - int options); - #if defined (PACE_HAS_CPLUSPLUS) } #endif /* PACE_HAS_CPLUSPLUS */ -#if defined (PACE_HAS_INLINE) -# include "pace/win32/wait.inl" -#endif /* PACE_HAS_INLINE */ - -#endif /* PACE_WAIT_H */ +#endif /* PACE_WAIT_H_WIN32 */ |