diff options
author | joeh <joeh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-08-22 14:21:54 +0000 |
---|---|---|
committer | joeh <joeh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-08-22 14:21:54 +0000 |
commit | f2a6348c802b0abb65fb768a2a12c850fe9290d6 (patch) | |
tree | 6ed3b6dbca5d22492bbf598c9a14a928461dcdf1 /PACE | |
parent | 46b3110920a0bd1cb7d5ee0ac4c95357e5ce3845 (diff) | |
download | ATCD-f2a6348c802b0abb65fb768a2a12c850fe9290d6.tar.gz |
ChangeLogTag: Wed Aug 22 09:04:28 2001 Joe Hoffert <joeh@cs.wustl.edu>
Diffstat (limited to 'PACE')
70 files changed, 2285 insertions, 908 deletions
diff --git a/PACE/ChangeLog b/PACE/ChangeLog index 67b9f20ca36..34e28863103 100644 --- a/PACE/ChangeLog +++ b/PACE/ChangeLog @@ -1,3 +1,132 @@ +Wed Aug 22 09:04:28 2001 Joe Hoffert <joeh@cs.wustl.edu> + + * Makefile: + Took away restriction for VxWorks since we now support + that OS. + + * include/makeinclude/rules.common.GNU: + Added check for pace_tracing set to 1 and included the + appropriate -DPACE_TRACING if set. + + * pace/Makefile: + Changed absolute path of $(ACE_ROOT)/PACE to $(PACE_ROOT) + to include rules.common.GNU and defined PACE_ROOT to be + $(ACE_ROOT)/PACE if not already defined. This is needed + for the DII COE work since there the PACE files are not + necessarily underneath the ACE files. + + * pace/aio.h: + * pace/ctype.h: + * pace/dirent.h: + * pace/fcntl.h: + * pace/grp.h: + * pace/locale.h: + * pace/math.h: + * pace/mqueue.h: + * pace/pthread.h: + * pace/pwd.h: + * pace/sched.h: + * pace/semaphore.h: + * pace/setjmp.h: + * pace/signal.h: + * pace/stdio.h: + * pace/stdlib.h: + * pace/string.h: + * pace/termios.h: + * pace/time.h: + * pace/unistd.h: + * pace/utime.h: + * pace/sys/mman.h: + * pace/sys/socket.h: + * pace/sys/stat.h: + * pace/sys/times.h: + * pace/sys/utsname.h: + * pace/sys/wait.h: + Added PACE_Export to all function declarations - + for Windows DLL builds. + + * pace/config/config.h: + Added PACE_Export #define to go away for non-Windows + platforms and to be appropriate for a DLL - using dllexport + - or for an application or DLL that including these functions + - using dllimport. + + * pace/config/constants.h: + Moved PACE_TRACE define to utility.h. + + * pace/config/features.h: + Removed extraneous lines at end of file. + + * pace/config/utility.h: + Moved PACE_TRACE define from constants.h to here - + and made it to be turned on or off by setting pace_tracing + to 1. + + * pace/vxworks/pthread.c: + Added PACE_TRACE tracing and renamed pace_pthread* + functions to pthread* functions. This will allow + the compiler to flag us - with an error - when these + functions are implemented and we can then remove + our emulation code. + + * pace/vxworks/pthread.h: + Added declarations for all the POSIX Pthread + functions that VxWorks doesn't support - and + which we emulate in pthread.c. + + * pace/vxworks/pthread.inl: + Added PACE_TRACE tracing and added calls to POSIX + routines which get emulated in pthread.c. + + * pace/vxworks/aio.inl: + * pace/vxworks/ctype.inl: + * pace/vxworks/dirent.inl: + * pace/vxworks/fcntl.inl: + * pace/vxworks/grp.inl: + * pace/vxworks/locale.inl: + * pace/vxworks/math.inl: + * pace/vxworks/mman.inl: + * pace/vxworks/mqueue.inl: + * pace/vxworks/pwd.inl: + * pace/vxworks/sched.inl: + * pace/vxworks/semaphore.inl: + * pace/vxworks/setjmp.inl: + * pace/vxworks/signal.inl: + * pace/vxworks/socket.inl: + * pace/vxworks/stat.inl: + * pace/vxworks/stdio.inl: + * pace/vxworks/stdlib.inl: + * pace/vxworks/string.inl: + * pace/vxworks/termios.inl: + * pace/vxworks/time.inl: + * pace/vxworks/times.inl: + * pace/vxworks/unistd.inl: + * pace/vxworks/utime.inl: + * pace/vxworks/wait.inl: + Added PACE_TRACE tracing. + + * pace/vxworks/utsname.inl: + Added PACE_TRACE tracing and added OS version for + release name. + + * tests/Makefile: + Cleaned up a dangling continuation line and added comment + about building Posix_SP_Test last since it may not even + compile ( which is actually the tests). + + * tests/Posix_SP_Test.c: + * tests/Pthreads_Test.c: + * tests/mqueue_test.c: + Included vxworks_stub.c file to build for VxWorks. + + * tests/Stdio_Test.c: + Included vxworks_stub.c file to build for VxWorks and + unlinked temporary file when done. + + * tests/vxworks_stub.c: + Added this file to encapsulate the machinations needed + to get the tests to build for VxWorks. + Fri Jul 20 15:53:56 2001 Joe Hoffert <joeh@cs.wustl.edu> * pace/win32/string.c (strtok_r): diff --git a/PACE/Makefile b/PACE/Makefile index c03b072da28..88088fe2333 100644 --- a/PACE/Makefile +++ b/PACE/Makefile @@ -32,18 +32,12 @@ DIRS = pace \ include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU include $(ACE_ROOT)/include/makeinclude/macros.GNU -ifdef VXWORKS +ifdef CHORUS DIRS = all clean realclean: - @echo PACE won\'t run or build for VxWorks. -else - ifdef CHORUS - DIRS = - all clean realclean: @echo PACE won\'t run or build for Chorus. - else +else include $(ACE_ROOT)/include/makeinclude/rules.common.GNU include $(ACE_ROOT)/include/makeinclude/rules.nested.GNU include $(ACE_ROOT)/include/makeinclude/rules.nolocal.GNU - endif # CHORUS endif # VXWORKS diff --git a/PACE/include/makeinclude/rules.common.GNU b/PACE/include/makeinclude/rules.common.GNU index 49b89db279e..464d476ea79 100644 --- a/PACE/include/makeinclude/rules.common.GNU +++ b/PACE/include/makeinclude/rules.common.GNU @@ -111,3 +111,11 @@ ifeq ($(debug),) CFLAGS += -DPACE_NDEBUG endif endif # debug + +ifeq ($(pace_tracing),1) + ifeq (,$(findstring $(CFLAGS),$(CCFLAGS))) + CCFLAGS += -DPACE_TRACING + else + CFLAGS += -DPACE_TRACING + endif +endif # debug diff --git a/PACE/pace/Makefile b/PACE/pace/Makefile index 7261a3db69b..c29a22d1cdc 100644 --- a/PACE/pace/Makefile +++ b/PACE/pace/Makefile @@ -451,7 +451,11 @@ include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU INSTALL = include $(ACE_ROOT)/include/makeinclude/rules.local.GNU -include $(ACE_ROOT)/PACE/include/makeinclude/rules.common.GNU +ifndef PACE_ROOT + PACE_ROOT = $(ACE_ROOT)/PACE +endif # ! PACE_ROOT + +include $(PACE_ROOT)/include/makeinclude/rules.common.GNU ifndef static_libs_only ifndef shared_libs_only diff --git a/PACE/pace/aio.h b/PACE/pace/aio.h index c9c4b2a1c83..f9d8be32a3c 100644 --- a/PACE/pace/aio.h +++ b/PACE/pace/aio.h @@ -36,7 +36,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), section 6.7.7. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_aio_cancel (PACE_HANDLE fildes, pace_aiocb * aiocb); + PACE_Export PACE_INLINE int pace_aio_cancel (PACE_HANDLE fildes, + pace_aiocb * aiocb); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -45,7 +46,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), section 6.7.5. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_aio_error (const pace_aiocb * aiocbp); + PACE_Export PACE_INLINE int pace_aio_error (const pace_aiocb * aiocbp); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -54,7 +55,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), section 6.7.9. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_aio_fsync (int op, pace_aiocb * aiocbp); + PACE_Export PACE_INLINE int pace_aio_fsync (int op, pace_aiocb * aiocbp); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -63,7 +64,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), section 6.7.2. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_aio_read (pace_aiocb * aiocbp); + PACE_Export PACE_INLINE int pace_aio_read (pace_aiocb * aiocbp); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -72,7 +73,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), section 6.7.6. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_aio_return (pace_aiocb * aiocbp); + PACE_Export PACE_INLINE int pace_aio_return (pace_aiocb * aiocbp); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -81,9 +82,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), section 6.7.8. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_aio_suspend (const pace_aiocb * const list[], - int nent, - const pace_timespec * timeout); + PACE_Export PACE_INLINE int pace_aio_suspend(const pace_aiocb * const list[], + int nent, + const pace_timespec * timeout); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -92,7 +93,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), section 6.7.3. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_aio_write (pace_aiocb * aiocbp); + PACE_Export PACE_INLINE int pace_aio_write (pace_aiocb * aiocbp); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -101,10 +102,10 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), section 6.7.4. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_lio_listio (int mode, - pace_aiocb * const list[], - int nent, - pace_sigevent * sig); + PACE_Export PACE_INLINE int pace_lio_listio (int mode, + pace_aiocb * const list[], + int nent, + pace_sigevent * sig); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if defined (PACE_HAS_INLINE) diff --git a/PACE/pace/config/config.h b/PACE/pace/config/config.h index 6a14a84250d..fb0d0b4c760 100644 --- a/PACE/pace/config/config.h +++ b/PACE/pace/config/config.h @@ -191,4 +191,31 @@ # endif /* ! PACE_HAS_POSIX_NONUOF_FUNCS */ #endif /* PACE_HAS_ALL_POSIX_FUNCS */ +#if (PACE_WIN32) + +# if defined (PACE_AS_STATIC_LIBS) +# if !defined (PACE_HAS_DLL) +# define PACE_HAS_DLL 0 +# endif /* ! PACE_HAS_DLL */ +# else +# if !defined (PACE_HAS_DLL) +# define PACE_HAS_DLL 1 +# endif /* ! PACE_HAS_DLL */ +# endif /* PACE_AS_STATIC_LIBS */ + +#define PACE_Proper_Export_Flag __declspec (dllexport) +#define PACE_Proper_Import_Flag __declspec (dllimport) + +#endif /* PACE_WIN32 */ + +#if defined (PACE_HAS_DLL) && (PACE_HAS_DLL == 1) +# if defined (PACE_BUILD_DLL) +# define PACE_Export PACE_Proper_Export_Flag +# else /* PACE_BUILD_DLL */ +# define PACE_Export PACE_Proper_Import_Flag +# endif /* PACE_BUILD_DLL */ +#else /* PACE_HAS_DLL != 1 */ +# define PACE_Export +#endif /* PACE_HAS_DLL != 1 */ + #endif /* PACE_CONFIG_CONFIG_H */ diff --git a/PACE/pace/config/constants.h b/PACE/pace/config/constants.h index df5c062775d..b2cb512a567 100644 --- a/PACE/pace/config/constants.h +++ b/PACE/pace/config/constants.h @@ -186,7 +186,6 @@ # define PACE_BUILD_DLL /* Tracing */ -# define PACE_TRACE(X) fprintf (stderr, X) # define PACE_DEBUG(X) # define PACE_LM_DEBUG PACE_stderr # define PACE_BEGIN_DUMP diff --git a/PACE/pace/config/features.h b/PACE/pace/config/features.h index 21819d51b76..14ea1e86607 100644 --- a/PACE/pace/config/features.h +++ b/PACE/pace/config/features.h @@ -47,12 +47,3 @@ #endif /* WIN32 */ #endif /* PACE_CONFIG_FEATURES_H */ - - - - - - - - - diff --git a/PACE/pace/config/utility.h b/PACE/pace/config/utility.h index 6138f717106..79b13e4755f 100644 --- a/PACE/pace/config/utility.h +++ b/PACE/pace/config/utility.h @@ -20,6 +20,10 @@ * error control * ---------------------------------------------------------------------- */ +#if defined (PACE_TRACING) && PACE_TRACING == 1 +# include <stdio.h> +#endif + #include "pace/errno.h" # define PACE_ERRNO_NO_SUPPORT_RETURN(FAILVALUE) \ @@ -100,4 +104,15 @@ return ( (errno = ENOTSUP), FAILVALUE) #endif /* PACE_WIN32 */ +/* ---------------------------------------------------------------------- + * debug tracing + * ---------------------------------------------------------------------- */ + +#if defined (PACE_TRACING) && PACE_TRACING == 1 +# define PACE_TRACE(MODULE) \ +fprintf(stderr, "PACE_TRACE %s, %d, %s\n", (MODULE), __LINE__, __FILE__) +#else +# define PACE_TRACE(MODULE) +#endif /* TRACING */ + #endif /* PACE_CONFIG_UTILITY_H */ diff --git a/PACE/pace/ctype.h b/PACE/pace/ctype.h index ff8ca36b242..cbca084d280 100644 --- a/PACE/pace/ctype.h +++ b/PACE/pace/ctype.h @@ -36,7 +36,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_isalnum (int c); + PACE_Export PACE_INLINE int pace_isalnum (int c); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -45,7 +45,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_isalpha (int c); + PACE_Export PACE_INLINE int pace_isalpha (int c); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -54,7 +54,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_iscntrl (int c); + PACE_Export PACE_INLINE int pace_iscntrl (int c); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -63,7 +63,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_isdigit (int c); + PACE_Export PACE_INLINE int pace_isdigit (int c); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -72,7 +72,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_isgraph (int c); + PACE_Export PACE_INLINE int pace_isgraph (int c); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -81,7 +81,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_islower (int c); + PACE_Export PACE_INLINE int pace_islower (int c); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -90,7 +90,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_isprint (int c); + PACE_Export PACE_INLINE int pace_isprint (int c); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -99,7 +99,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_ispunct (int c); + PACE_Export PACE_INLINE int pace_ispunct (int c); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -108,7 +108,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_isspace (int c); + PACE_Export PACE_INLINE int pace_isspace (int c); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -117,7 +117,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_isupper (int c); + PACE_Export PACE_INLINE int pace_isupper (int c); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -126,7 +126,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_isxdigit (int c); + PACE_Export PACE_INLINE int pace_isxdigit (int c); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -135,7 +135,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_tolower (int c); + PACE_Export PACE_INLINE int pace_tolower (int c); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -144,7 +144,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_toupper (int c); + PACE_Export PACE_INLINE int pace_toupper (int c); #endif /* PACE_HAS_POSIX_CLS_UOF */ #if defined (PACE_HAS_INLINE) diff --git a/PACE/pace/dirent.h b/PACE/pace/dirent.h index 3e9cd339e20..55ab381a49d 100644 --- a/PACE/pace/dirent.h +++ b/PACE/pace/dirent.h @@ -36,7 +36,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 5.1.2. */ #if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE PACE_DIR * pace_opendir (const char * dirname); + PACE_Export PACE_INLINE PACE_DIR * pace_opendir (const char * dirname); #endif /* PACE_HAS_POSIX_FS_UOF */ /** @@ -45,7 +45,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 5.1.2. */ #if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE pace_dirent * pace_readdir (PACE_DIR * dirp); + PACE_Export PACE_INLINE pace_dirent * pace_readdir (PACE_DIR * dirp); #endif /* PACE_HAS_POSIX_FS_UOF */ /** @@ -54,8 +54,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 5.1.2. */ #if (PACE_HAS_POSIX_CLSR_UOF) - PACE_INLINE int pace_readdir_r (PACE_DIR * dirp, pace_dirent * entry, - pace_dirent ** result); + PACE_Export PACE_INLINE int pace_readdir_r (PACE_DIR * dirp, + pace_dirent * entry, + pace_dirent ** result); #endif /* PACE_HAS_POSIX_CLSR_UOF */ /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ @@ -65,7 +66,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 5.1.2. */ #if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE void pace_rewinddir (PACE_DIR * dirp); + PACE_Export PACE_INLINE void pace_rewinddir (PACE_DIR * dirp); #endif /* PACE_HAS_POSIX_FS_UOF */ /** @@ -74,7 +75,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 5.1.2. */ #if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE int pace_closedir (PACE_DIR * dirp); + PACE_Export PACE_INLINE int pace_closedir (PACE_DIR * dirp); #endif /* PACE_HAS_POSIX_FS_UOF */ #if defined (PACE_HAS_INLINE) diff --git a/PACE/pace/fcntl.h b/PACE/pace/fcntl.h index e6a28b9a36b..43d85574b26 100644 --- a/PACE/pace/fcntl.h +++ b/PACE/pace/fcntl.h @@ -36,7 +36,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 5.3.2. */ #if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE int pace_creat (const char * path, pace_mode_t mode); + PACE_Export PACE_INLINE int pace_creat (const char * path, pace_mode_t mode); /* WIN32 doesn't correctly return a file desciptor. WIN32 doesn't use integers to represent file handles. Instead, we return 1 for success and -1 for failure. @@ -55,7 +55,9 @@ extern "C" { # endif /* PACE_WIN32 */ # if defined (PACE_VXWORKS) && PACE_VXWORKS - PACE_INLINE int pace_fcntl(PACE_HANDLE fildes, int cmd, long arg) { PACE_ERRNO_NO_SUPPORT_RETURN (-1); } + PACE_Export PACE_INLINE int pace_fcntl(PACE_HANDLE fildes, + int cmd, + long arg); # else # define pace_fcntl fcntl # endif /* ! PACE_VXWORKS */ diff --git a/PACE/pace/grp.h b/PACE/pace/grp.h index 5955679b5f6..eab5aba2b7c 100644 --- a/PACE/pace/grp.h +++ b/PACE/pace/grp.h @@ -36,7 +36,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 9.2.1. */ #if (PACE_HAS_POSIX_SD_UOF) - PACE_INLINE pace_group * pace_getgrgid (pace_gid_t gid); + PACE_Export PACE_INLINE pace_group * pace_getgrgid (pace_gid_t gid); #endif /* PACE_HAS_POSIX_SD_UOF */ /** @@ -45,11 +45,11 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 9.2.1. */ #if (PACE_HAS_POSIX_SDR_UOF) - PACE_INLINE int pace_getgrgid_r (pace_gid_t gid, - pace_group * grp, - char * buffer, - size_t bufsize, - pace_group ** result); + PACE_Export PACE_INLINE int pace_getgrgid_r (pace_gid_t gid, + pace_group * grp, + char * buffer, + size_t bufsize, + pace_group ** result); #endif /* PACE_HAS_POSIX_SDR_UOF */ /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ @@ -59,7 +59,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 9.2.1. */ #if (PACE_HAS_POSIX_SD_UOF) - PACE_INLINE pace_group * pace_getgrnam (const char * name); + PACE_Export PACE_INLINE pace_group * pace_getgrnam (const char * name); #endif /* PACE_HAS_POSIX_SD_UOF */ /** @@ -68,11 +68,11 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 9.2.1. */ #if (PACE_HAS_POSIX_SDR_UOF) - PACE_INLINE int pace_getgrnam_r (const char * name, - pace_group * grp, - char * buffer, - size_t bufsize, - pace_group ** result); + PACE_Export PACE_INLINE int pace_getgrnam_r (const char * name, + pace_group * grp, + char * buffer, + size_t bufsize, + pace_group ** result); #endif /* PACE_HAS_POSIX_SDR_UOF */ /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ diff --git a/PACE/pace/locale.h b/PACE/pace/locale.h index 65b57de7fae..0435a4a7370 100644 --- a/PACE/pace/locale.h +++ b/PACE/pace/locale.h @@ -35,7 +35,7 @@ extern "C" { current locality. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE pace_lconv* pace_localeconv (void); + PACE_Export PACE_INLINE pace_lconv* pace_localeconv (void); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -44,7 +44,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1.2. */ #if (PACE_HAS_POSIX_MP_UOF) - PACE_INLINE char * pace_setlocale (int category, const char * locale); + PACE_Export PACE_INLINE char * pace_setlocale (int category, + const char * locale); #endif /* PACE_HAS_POSIX_MP_UOF */ #if defined (PACE_HAS_INLINE) diff --git a/PACE/pace/math.h b/PACE/pace/math.h index c4fcdcfda38..44e23ee09e2 100644 --- a/PACE/pace/math.h +++ b/PACE/pace/math.h @@ -36,7 +36,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_acos (double x); + PACE_Export PACE_INLINE double pace_acos (double x); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -45,7 +45,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_asin (double x); + PACE_Export PACE_INLINE double pace_asin (double x); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -54,7 +54,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_atan (double x); + PACE_Export PACE_INLINE double pace_atan (double x); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -63,7 +63,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_atan2 (double x, double y); + PACE_Export PACE_INLINE double pace_atan2 (double x, double y); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -72,7 +72,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_cos (double x); + PACE_Export PACE_INLINE double pace_cos (double x); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -81,7 +81,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_sin (double x); + PACE_Export PACE_INLINE double pace_sin (double x); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -90,7 +90,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_tan (double x); + PACE_Export PACE_INLINE double pace_tan (double x); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -99,7 +99,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_cosh (double x); + PACE_Export PACE_INLINE double pace_cosh (double x); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -108,7 +108,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_sinh (double x); + PACE_Export PACE_INLINE double pace_sinh (double x); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -117,7 +117,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_tanh (double x); + PACE_Export PACE_INLINE double pace_tanh (double x); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -126,7 +126,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_exp (double x); + PACE_Export PACE_INLINE double pace_exp (double x); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -135,7 +135,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_frexp (double x, int * exp); + PACE_Export PACE_INLINE double pace_frexp (double x, int * exp); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -144,7 +144,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_ldexp (double x, int exp); + PACE_Export PACE_INLINE double pace_ldexp (double x, int exp); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -153,7 +153,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_log (double x); + PACE_Export PACE_INLINE double pace_log (double x); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -162,7 +162,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_log10 (double x); + PACE_Export PACE_INLINE double pace_log10 (double x); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -171,7 +171,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_modf (double x, double * iptr); + PACE_Export PACE_INLINE double pace_modf (double x, double * iptr); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -180,7 +180,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_pow (double x, double y); + PACE_Export PACE_INLINE double pace_pow (double x, double y); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -189,7 +189,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_sqrt (double x); + PACE_Export PACE_INLINE double pace_sqrt (double x); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -198,7 +198,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_ceil (double x); + PACE_Export PACE_INLINE double pace_ceil (double x); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -207,7 +207,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_fabs (double x); + PACE_Export PACE_INLINE double pace_fabs (double x); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -216,7 +216,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_floor (double x); + PACE_Export PACE_INLINE double pace_floor (double x); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -225,7 +225,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_fmod (double x, double y); + PACE_Export PACE_INLINE double pace_fmod (double x, double y); #endif /* PACE_HAS_POSIX_CLS_UOF */ #if defined (PACE_HAS_INLINE) diff --git a/PACE/pace/mqueue.h b/PACE/pace/mqueue.h index ca406c24d0c..c799567c968 100644 --- a/PACE/pace/mqueue.h +++ b/PACE/pace/mqueue.h @@ -37,7 +37,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 15.2.2. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_mq_close (pace_mqd_t mqdes); + PACE_Export PACE_INLINE int pace_mq_close (pace_mqd_t mqdes); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -46,8 +46,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 15.2.8. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_mq_getattr (pace_mqd_t mqdes, - pace_mq_attr * mqstat); + PACE_Export PACE_INLINE int pace_mq_getattr (pace_mqd_t mqdes, + pace_mq_attr * mqstat); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -56,8 +56,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 15.2.6. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_mq_notify (pace_mqd_t mqdes, - const pace_sigevent * notification); + PACE_Export PACE_INLINE int pace_mq_notify (pace_mqd_t mqdes, + const pace_sigevent * notification); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -76,10 +76,10 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 15.2.5. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE pace_ssize_t pace_mq_receive (pace_mqd_t mqdes, - char * msg_ptr, - pace_size_t msg_len, - unsigned int * nmsg_prio); + PACE_Export PACE_INLINE pace_ssize_t pace_mq_receive (pace_mqd_t mqdes, + char * msg_ptr, + pace_size_t msg_len, + unsigned int * nmsg_prio); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -88,10 +88,10 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 15.2.4. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_mq_send (pace_mqd_t mqdes, - const char * mst_ptr, - pace_size_t msg_len, - unsigned int psg_prio); + PACE_Export PACE_INLINE int pace_mq_send (pace_mqd_t mqdes, + const char * mst_ptr, + pace_size_t msg_len, + unsigned int psg_prio); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -100,9 +100,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 15.2.7. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_mq_setattr (pace_mqd_t mqdes, - const pace_mq_attr * mqstat, - pace_mq_attr * omqstat); + PACE_Export PACE_INLINE int pace_mq_setattr (pace_mqd_t mqdes, + const pace_mq_attr * mqstat, + pace_mq_attr * omqstat); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -111,7 +111,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 15.2.3. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_mq_unlink (const char * name); + PACE_Export PACE_INLINE int pace_mq_unlink (const char * name); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if defined (PACE_HAS_INLINE) diff --git a/PACE/pace/pthread.h b/PACE/pace/pthread.h index 8b68658ef23..3e522a2dc19 100644 --- a/PACE/pace/pthread.h +++ b/PACE/pace/pthread.h @@ -36,9 +36,10 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 3.1.3. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_atfork (void (*prepare) (void), - void (*parent) (void), - void (*child) (void)); + PACE_Export PACE_INLINE + int pace_pthread_atfork (void (*prepare) (void), + void (*parent) (void), + void (*child) (void)); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -47,7 +48,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 16.2.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_destroy (pace_pthread_attr_t * attr); + PACE_Export PACE_INLINE + int pace_pthread_attr_destroy (pace_pthread_attr_t * attr); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -56,8 +58,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 16.2.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_getdetachstate (const pace_pthread_attr_t * attr, - int * detachstate); + PACE_Export PACE_INLINE + int pace_pthread_attr_getdetachstate (const pace_pthread_attr_t * attr, + int * detachstate); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -66,8 +69,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 13.5.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_getinheritsched (const pace_pthread_attr_t * attr, - int * inheritsched); + PACE_Export PACE_INLINE + int pace_pthread_attr_getinheritsched (const pace_pthread_attr_t * attr, + int * inheritsched); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -76,8 +80,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 13.5.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_getschedparam (const pace_pthread_attr_t * attr, - pace_sched_param * param); + PACE_Export PACE_INLINE + int pace_pthread_attr_getschedparam (const pace_pthread_attr_t * attr, + pace_sched_param * param); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -86,8 +91,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 13.5.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_getschedpolicy (const pace_pthread_attr_t * attr, - int * policy); + PACE_Export PACE_INLINE + int pace_pthread_attr_getschedpolicy (const pace_pthread_attr_t * attr, + int * policy); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -96,8 +102,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 13.5.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_getscope (const pace_pthread_attr_t * attr, - int * contentionscope); + PACE_Export PACE_INLINE + int pace_pthread_attr_getscope (const pace_pthread_attr_t * attr, + int * contentionscope); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -106,8 +113,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 16.2.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_getstackaddr (const pace_pthread_attr_t * attr, - void ** stackaddr); + PACE_Export PACE_INLINE + int pace_pthread_attr_getstackaddr (const pace_pthread_attr_t * attr, + void ** stackaddr); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -116,8 +124,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 16.2.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_getstacksize (const pace_pthread_attr_t * attr, - size_t * stacksize); + PACE_Export PACE_INLINE + int pace_pthread_attr_getstacksize (const pace_pthread_attr_t * attr, + size_t * stacksize); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -126,9 +135,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 16.2.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) -#if !(PACE_VXWORKS) - PACE_INLINE -#endif + PACE_Export PACE_INLINE int pace_pthread_attr_init (pace_pthread_attr_t * attr); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -138,9 +145,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 16.2.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) -#if !(PACE_VXWORKS) - PACE_INLINE -#endif + PACE_Export PACE_INLINE int pace_pthread_attr_setdetachstate (pace_pthread_attr_t * attr, int detachstate); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -151,8 +156,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 13.5.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_setinheritsched (pace_pthread_attr_t * attr, - int inheritsched); + PACE_Export PACE_INLINE + int pace_pthread_attr_setinheritsched (pace_pthread_attr_t * attr, + int inheritsched); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -161,12 +167,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 13.5.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) -#if !(PACE_VXWORKS) - PACE_INLINE -#endif + PACE_Export PACE_INLINE int pace_pthread_attr_setschedparam (pace_pthread_attr_t * attr, - const - pace_sched_param * param); + const pace_sched_param * param); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -175,8 +178,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 13.5.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_setschedpolicy (pace_pthread_attr_t * attr, - int policy); + PACE_Export PACE_INLINE + int pace_pthread_attr_setschedpolicy (pace_pthread_attr_t * attr, + int policy); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -185,8 +189,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 13.5.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_setscope (pace_pthread_attr_t * attr, - int contentionscope); + PACE_Export PACE_INLINE + int pace_pthread_attr_setscope (pace_pthread_attr_t * attr, + int contentionscope); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -195,8 +200,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 16.2.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_setstackaddr (pace_pthread_attr_t * attr, - void * stackaddr); + PACE_Export PACE_INLINE + int pace_pthread_attr_setstackaddr (pace_pthread_attr_t * attr, + void * stackaddr); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -205,8 +211,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 16.2.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_setstacksize (pace_pthread_attr_t * attr, - size_t stacksize); + PACE_Export PACE_INLINE + int pace_pthread_attr_setstacksize (pace_pthread_attr_t * attr, + size_t stacksize); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -215,9 +222,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 18.2.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) -#if !(PACE_VXWORKS) - PACE_INLINE -#endif + PACE_Export PACE_INLINE int pace_pthread_cancel (pace_pthread_t thread); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -249,7 +254,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 11.4.3. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_cond_broadcast (pace_pthread_cond_t * cond); + PACE_Export PACE_INLINE + int pace_pthread_cond_broadcast (pace_pthread_cond_t * cond); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -258,7 +264,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 11.4.2. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_cond_destroy (pace_pthread_cond_t * cond); + PACE_Export PACE_INLINE + int pace_pthread_cond_destroy (pace_pthread_cond_t * cond); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -267,8 +274,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 11.4.2. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_cond_init (pace_pthread_cond_t * cond, - const pace_pthread_condattr_t * attr); + PACE_Export PACE_INLINE + int pace_pthread_cond_init (pace_pthread_cond_t * cond, + const pace_pthread_condattr_t * attr); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -277,7 +285,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 11.4.3. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_cond_signal (pace_pthread_cond_t * cond); + PACE_Export PACE_INLINE + int pace_pthread_cond_signal (pace_pthread_cond_t * cond); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -286,9 +295,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 11.4.4. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) -#if !(PACE_VXWORKS) - PACE_INLINE -#endif + PACE_Export PACE_INLINE int pace_pthread_cond_timedwait (pace_pthread_cond_t * cond, pace_pthread_mutex_t * mutex, const pace_timespec * abstime); @@ -300,9 +307,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 11.4.4. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) -#if !(PACE_VXWORKS) - PACE_INLINE -#endif + PACE_Export PACE_INLINE int pace_pthread_cond_wait (pace_pthread_cond_t * cond, pace_pthread_mutex_t * mutex); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -313,7 +318,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 11.4.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_condattr_destroy (pace_pthread_condattr_t * attr); + PACE_Export PACE_INLINE + int pace_pthread_condattr_destroy (pace_pthread_condattr_t * attr); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -322,8 +328,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 11.4.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_condattr_getpshared (const pace_pthread_condattr_t * attr, - int * pshared); + PACE_Export PACE_INLINE + int pace_pthread_condattr_getpshared (const pace_pthread_condattr_t * attr, + int * pshared); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -332,7 +339,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 11.4.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_condattr_init (pace_pthread_condattr_t * attr); + PACE_Export PACE_INLINE + int pace_pthread_condattr_init (pace_pthread_condattr_t * attr); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -341,8 +349,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 11.4.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_condattr_setpshared (pace_pthread_condattr_t * attr, - int pshared); + PACE_Export PACE_INLINE + int pace_pthread_condattr_setpshared (pace_pthread_condattr_t * attr, + int pshared); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -351,9 +360,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 16.2.2. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) -#if !(PACE_VXWORKS) - PACE_INLINE -#endif + PACE_Export PACE_INLINE int pace_pthread_create (pace_pthread_t * thread, const pace_pthread_attr_t * attr, void * (*start_routine) (void*), @@ -366,9 +373,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 16.2.4. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) -#if !(PACE_VXWORKS) - PACE_INLINE -#endif + PACE_Export PACE_INLINE int pace_pthread_detach (pace_pthread_t thread); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -378,7 +383,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 16.2.7. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_equal (pace_pthread_t t1, pace_pthread_t t2); + PACE_Export PACE_INLINE + int pace_pthread_equal (pace_pthread_t t1, + pace_pthread_t t2); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -387,7 +394,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 16.2.5. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE void pace_pthread_exit (void * value_ptr); + PACE_Export PACE_INLINE + void pace_pthread_exit (void * value_ptr); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -396,9 +404,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 13.2.5. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) -#if !(PACE_VXWORKS) - PACE_INLINE -#endif + PACE_Export PACE_INLINE int pace_pthread_getschedparam (pace_pthread_t thread, int * policy, pace_sched_param * param); @@ -410,9 +416,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 17.1.2. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) -#if !(PACE_VXWORKS) - PACE_INLINE -#endif + PACE_Export PACE_INLINE void * pace_pthread_getspecific (pace_pthread_key_t key); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -422,10 +426,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 16.2.3. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) -#if !(PACE_VXWORKS) - PACE_INLINE -#endif - int pace_pthread_join (pace_pthread_t thread, void ** value_ptr); + PACE_Export PACE_INLINE + int pace_pthread_join (pace_pthread_t thread, + void ** value_ptr); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -434,9 +437,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 17.1.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) -#if !(PACE_VXWORKS) - PACE_INLINE -#endif + PACE_Export PACE_INLINE int pace_pthread_key_create (pace_pthread_key_t * key, void (*destructor)(void*)); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -447,9 +448,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 17.1.3. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) -#if !(PACE_VXWORKS) - PACE_INLINE -#endif + PACE_Export PACE_INLINE int pace_pthread_key_delete (pace_pthread_key_t key); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -459,7 +458,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 3.3.10. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_kill (pace_pthread_t thread, int sig); + PACE_Export PACE_INLINE + int pace_pthread_kill (pace_pthread_t thread, + int sig); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ # define PACE_PTHREAD_MUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER @@ -470,7 +471,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 11.3.2. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_mutex_destroy (pace_pthread_mutex_t * mutex); + PACE_Export PACE_INLINE + int pace_pthread_mutex_destroy (pace_pthread_mutex_t * mutex); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -479,8 +481,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 13.6.2. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_mutex_getprioceiling (pace_pthread_mutex_t * mutex, - int * prioceiling); + PACE_Export PACE_INLINE + int pace_pthread_mutex_getprioceiling (pace_pthread_mutex_t * mutex, + int * prioceiling); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -489,9 +492,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 11.3.2. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) -#if !(PACE_VXWORKS) - PACE_INLINE -#endif + PACE_Export PACE_INLINE int pace_pthread_mutex_init (pace_pthread_mutex_t * mutex, const pace_pthread_mutexattr_t * attr); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -502,9 +503,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 11.3.3. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) -#if !(PACE_VXWORKS) - PACE_INLINE -#endif + PACE_Export PACE_INLINE int pace_pthread_mutex_lock (pace_pthread_mutex_t * mutex); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -514,9 +513,10 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 13.6.2. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_mutex_setprioceiling (pace_pthread_mutex_t * mutex, - int prioceiling, - int * old_ceiling); + PACE_Export PACE_INLINE + int pace_pthread_mutex_setprioceiling (pace_pthread_mutex_t * mutex, + int prioceiling, + int * old_ceiling); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -525,9 +525,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 11.3.3. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) -#if !(PACE_VXWORKS) - PACE_INLINE -#endif + PACE_Export PACE_INLINE int pace_pthread_mutex_trylock (pace_pthread_mutex_t * mutex); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -537,9 +535,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 11.3.3. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) -#if !(PACE_VXWORKS) - PACE_INLINE -#endif + PACE_Export PACE_INLINE int pace_pthread_mutex_unlock (pace_pthread_mutex_t * mutex); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -549,7 +545,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 11.3.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_mutexattr_destroy (pace_pthread_mutexattr_t * sttr); + PACE_Export PACE_INLINE + int pace_pthread_mutexattr_destroy (pace_pthread_mutexattr_t * sttr); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -559,8 +556,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 13.6.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_mutexattr_getprioceiling (pace_pthread_mutexattr_t * attr, - int * prioceiling); + PACE_Export PACE_INLINE + int pace_pthread_mutexattr_getprioceiling (pace_pthread_mutexattr_t * attr, + int * prioceiling); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -569,8 +567,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 13.6.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_mutexattr_getprotocol - (const pace_pthread_mutexattr_t * attr, int * protocol); + PACE_Export PACE_INLINE + int pace_pthread_mutexattr_getprotocol (const pace_pthread_mutexattr_t * attr, + int * protocol); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -580,8 +579,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 13.6.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_mutexattr_setprioceiling (pace_pthread_mutexattr_t * attr, - int prioceiling); + PACE_Export PACE_INLINE + int pace_pthread_mutexattr_setprioceiling (pace_pthread_mutexattr_t * attr, + int prioceiling); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -590,9 +590,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 13.6.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) -#if !(PACE_VXWORKS) - PACE_INLINE -#endif + PACE_Export PACE_INLINE int pace_pthread_mutexattr_setprotocol (pace_pthread_mutexattr_t * attr, int protocol); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -603,9 +601,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 11.3.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int - pace_pthread_mutexattr_getpshared (const pace_pthread_mutexattr_t * attr, - int * pshared); + PACE_Export PACE_INLINE + int pace_pthread_mutexattr_getpshared (const pace_pthread_mutexattr_t * attr, + int * pshared); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -614,9 +612,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 11.3.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) -#if !(PACE_VXWORKS) - PACE_INLINE -#endif + PACE_Export PACE_INLINE int pace_pthread_mutexattr_init (pace_pthread_mutexattr_t * attr); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -626,9 +622,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 11.3.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) -#if !(PACE_VXWORKS) - PACE_INLINE -#endif + PACE_Export PACE_INLINE int pace_pthread_mutexattr_setpshared (pace_pthread_mutexattr_t * attr, int pshared); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -639,9 +633,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 16.2.8. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) -#if !(PACE_VXWORKS) - PACE_INLINE -#endif + PACE_Export PACE_INLINE int pace_pthread_once (pace_pthread_once_t * once_control, void (*void_routine) (void)); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -654,7 +646,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 16.2.6. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE pace_pthread_t pace_pthread_self (); + PACE_Export PACE_INLINE + pace_pthread_t pace_pthread_self (); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -663,10 +656,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 18.2.2. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) -#if !(PACE_VXWORKS) - PACE_INLINE -#endif - int pace_pthread_setcancelstate (int state, int * oldstate); + PACE_Export PACE_INLINE + int pace_pthread_setcancelstate (int state, + int * oldstate); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -675,10 +667,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 18.2.2. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) -#if !(PACE_VXWORKS) - PACE_INLINE -#endif - int pace_pthread_setcanceltype (int type, int * oldtype); + PACE_Export PACE_INLINE + int pace_pthread_setcanceltype (int type, + int * oldtype); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -687,9 +678,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 13.5.2. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) -#if !(PACE_VXWORKS) - PACE_INLINE -#endif + PACE_Export PACE_INLINE int pace_pthread_setschedparam (pace_pthread_t thread, int policy, const pace_sched_param * param); @@ -701,10 +690,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 17.1.2. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) -#if !(PACE_VXWORKS) - PACE_INLINE -#endif - int pace_pthread_setspecific (pace_pthread_key_t key, const void * value); + PACE_Export PACE_INLINE + int pace_pthread_setspecific (pace_pthread_key_t key, + const void * value); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -713,9 +701,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 3.3.5. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) -#if !(PACE_VXWORKS) - PACE_INLINE -#endif + PACE_Export PACE_INLINE int pace_pthread_sigmask (int how, const pace_sigset_t * set, pace_sigset_t * oset); @@ -727,7 +713,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 18.2.2. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE void pace_pthread_testcancel (); + PACE_Export PACE_INLINE + void pace_pthread_testcancel (); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/pwd.h b/PACE/pace/pwd.h index ff7e3685b02..e4e9cf0bac5 100644 --- a/PACE/pace/pwd.h +++ b/PACE/pace/pwd.h @@ -36,7 +36,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 9.2.2. */ #if (PACE_HAS_POSIX_SD_UOF) - PACE_INLINE pace_passwd * pace_getpwuid (pace_uid_t uid); + PACE_Export PACE_INLINE pace_passwd * pace_getpwuid (pace_uid_t uid); #endif /* PACE_HAS_POSIX_SD_UOF */ /** @@ -45,11 +45,11 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 9.2.2. */ #if (PACE_HAS_POSIX_SDR_UOF) - PACE_INLINE int pace_getpwuid_r (pace_uid_t uid, - pace_passwd * pwd, - char * buffer, - pace_size_t bufsize, - pace_passwd ** result); + PACE_Export PACE_INLINE int pace_getpwuid_r (pace_uid_t uid, + pace_passwd * pwd, + char * buffer, + pace_size_t bufsize, + pace_passwd ** result); #endif /* PACE_HAS_POSIX_SDR_UOF */ /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ @@ -59,7 +59,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 9.2.2. */ #if (PACE_HAS_POSIX_SD_UOF) - PACE_INLINE pace_passwd * pace_getpwnam (const char * name); + PACE_Export PACE_INLINE pace_passwd * pace_getpwnam (const char * name); #endif /* PACE_HAS_POSIX_SD_UOF */ /** @@ -68,11 +68,11 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 9.2.2. */ #if (PACE_HAS_POSIX_SDR_UOF) - PACE_INLINE int pace_getpwnam_r (const char * name, - pace_passwd * pwd, - char * buffer, - pace_size_t bufsize, - pace_passwd ** result); + PACE_Export PACE_INLINE int pace_getpwnam_r (const char * name, + pace_passwd * pwd, + char * buffer, + pace_size_t bufsize, + pace_passwd ** result); #endif /* PACE_HAS_POSIX_SDR_UOF */ /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ diff --git a/PACE/pace/sched.h b/PACE/pace/sched.h index 083e3a3f05d..20c9dc50ca5 100644 --- a/PACE/pace/sched.h +++ b/PACE/pace/sched.h @@ -36,7 +36,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 13.3.6. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sched_get_priority_max (int policy); + PACE_Export PACE_INLINE int pace_sched_get_priority_max (int policy); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -45,7 +45,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 13.3.6. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sched_get_priority_min (int policy); + PACE_Export PACE_INLINE int pace_sched_get_priority_min (int policy); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -54,8 +54,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 13.3.2. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sched_getparam (pace_pid_t pid, - pace_sched_param * param); + PACE_Export PACE_INLINE int pace_sched_getparam (pace_pid_t pid, + pace_sched_param * param); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -64,8 +64,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 13.3.6. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sched_rr_get_interval (pace_pid_t pid, - pace_timespec * interval); + PACE_Export PACE_INLINE int pace_sched_rr_get_interval (pace_pid_t pid, + pace_timespec * interval); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -74,8 +74,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 13.3.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sched_setparam (pace_pid_t pid, - const pace_sched_param * param); + PACE_Export PACE_INLINE int pace_sched_setparam (pace_pid_t pid, + const pace_sched_param * param); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -84,7 +84,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 13.3.4. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sched_getscheduler (pace_pid_t pid); + PACE_Export PACE_INLINE int pace_sched_getscheduler (pace_pid_t pid); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -93,9 +93,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 13.3.3. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sched_setscheduler (pace_pid_t pid, - int policy, - const pace_sched_param * param); + PACE_Export PACE_INLINE int pace_sched_setscheduler (pace_pid_t pid, + int policy, + const pace_sched_param * param); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -104,7 +104,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 13.3.5. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sched_yield (); + PACE_Export PACE_INLINE int pace_sched_yield (); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if defined (PACE_HAS_INLINE) diff --git a/PACE/pace/semaphore.h b/PACE/pace/semaphore.h index db4dd2cc582..9c2a34824aa 100644 --- a/PACE/pace/semaphore.h +++ b/PACE/pace/semaphore.h @@ -36,7 +36,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 11.2.4. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sem_close (pace_sem_t * sem); + PACE_Export PACE_INLINE int pace_sem_close (pace_sem_t * sem); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -45,7 +45,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 11.2.2. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sem_destroy (pace_sem_t * sem); + PACE_Export PACE_INLINE int pace_sem_destroy (pace_sem_t * sem); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -54,7 +54,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 11.2.8. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sem_getvalue (pace_sem_t * sem, int * sval); + PACE_Export PACE_INLINE int pace_sem_getvalue (pace_sem_t * sem, int * sval); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -63,7 +63,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 11.2.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sem_init (pace_sem_t * sem, int pshared, unsigned int value); + PACE_Export PACE_INLINE int pace_sem_init (pace_sem_t * sem, + int pshared, + unsigned int value); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -81,7 +83,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 11.2.7. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sem_post (pace_sem_t * sem); + PACE_Export PACE_INLINE int pace_sem_post (pace_sem_t * sem); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -90,7 +92,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 11.2.6. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sem_trywait (pace_sem_t * sem); + PACE_Export PACE_INLINE int pace_sem_trywait (pace_sem_t * sem); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -99,7 +101,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 11.2.5. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sem_unlink (const char * name); + PACE_Export PACE_INLINE int pace_sem_unlink (const char * name); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -108,7 +110,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 11.2.6. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sem_wait (pace_sem_t * sem); + PACE_Export PACE_INLINE int pace_sem_wait (pace_sem_t * sem); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if defined (PACE_HAS_INLINE) diff --git a/PACE/pace/setjmp.h b/PACE/pace/setjmp.h index 17cd17fb9a2..99a6651982f 100644 --- a/PACE/pace/setjmp.h +++ b/PACE/pace/setjmp.h @@ -56,7 +56,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.3.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE void pace_longjmp (pace_jmp_buf env, int val); + PACE_Export PACE_INLINE void pace_longjmp (pace_jmp_buf env, int val); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -65,7 +65,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.3.1. */ #if (PACE_HAS_POSIX_SIG_UOF) - PACE_INLINE void pace_siglongjmp (pace_sigjmp_buf env, int val); + PACE_Export PACE_INLINE void pace_siglongjmp (pace_sigjmp_buf env, int val); #endif /* PACE_HAS_POSIX_SIG_UOF */ #if defined (PACE_HAS_INLINE) diff --git a/PACE/pace/signal.h b/PACE/pace/signal.h index c1637b4e25b..6ca0a0f200c 100644 --- a/PACE/pace/signal.h +++ b/PACE/pace/signal.h @@ -36,14 +36,14 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 3.3.2. */ #if (PACE_HAS_POSIX_SIG_UOF) - PACE_INLINE int pace_kill (pace_pid_t pid, int sig); + PACE_Export PACE_INLINE int pace_kill (pace_pid_t pid, int sig); #endif /* PACE_HAS_POSIX_SIG_UOF */ /** C std 7.14.2.1 */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_raise (int sig); + PACE_Export PACE_INLINE int pace_raise (int sig); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -52,9 +52,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 3.3.4. */ #if (PACE_HAS_POSIX_SIG_UOF) - PACE_INLINE int pace_sigaction (int sig, - const pace_sigaction_s * act, - pace_sigaction_s * oact); + PACE_Export PACE_INLINE int pace_sigaction (int sig, + const pace_sigaction_s * act, + pace_sigaction_s * oact); #endif /* PACE_HAS_POSIX_SIG_UOF */ /** @@ -63,7 +63,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 3.3.3. */ #if (PACE_HAS_POSIX_SIG_UOF) - PACE_INLINE int pace_sigaddset (pace_sigset_t * set, int signo); + PACE_Export PACE_INLINE int pace_sigaddset (pace_sigset_t * set, int signo); #endif /* PACE_HAS_POSIX_SIG_UOF */ /** @@ -72,7 +72,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 3.3.3. */ #if (PACE_HAS_POSIX_SIG_UOF) - PACE_INLINE int pace_sigemptyset (pace_sigset_t * set); + PACE_Export PACE_INLINE int pace_sigemptyset (pace_sigset_t * set); #endif /* PACE_HAS_POSIX_SIG_UOF */ /** @@ -81,7 +81,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 3.3.3. */ #if (PACE_HAS_POSIX_SIG_UOF) - PACE_INLINE int pace_sigdelset (pace_sigset_t * set, int signo); + PACE_Export PACE_INLINE int pace_sigdelset (pace_sigset_t * set, int signo); #endif /* PACE_HAS_POSIX_SIG_UOF */ /** @@ -90,7 +90,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 3.3.3. */ #if (PACE_HAS_POSIX_SIG_UOF) - PACE_INLINE int pace_sigfillset (pace_sigset_t * set); + PACE_Export PACE_INLINE int pace_sigfillset (pace_sigset_t * set); #endif /* PACE_HAS_POSIX_SIG_UOF */ /** @@ -99,14 +99,15 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 3.3.3. */ #if (PACE_HAS_POSIX_SIG_UOF) - PACE_INLINE int pace_sigismember (const pace_sigset_t * set, int signo); + PACE_Export PACE_INLINE int pace_sigismember (const pace_sigset_t * set, + int signo); #endif /* PACE_HAS_POSIX_SIG_UOF */ /** C std 7.14.1.1 */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE pace_sig_pf pace_signal(int sig, pace_sig_pf func); + PACE_Export PACE_INLINE pace_sig_pf pace_signal(int sig, pace_sig_pf func); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -115,7 +116,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 3.3.6. */ #if (PACE_HAS_POSIX_SIG_UOF) - PACE_INLINE int pace_sigpending (pace_sigset_t * set); + PACE_Export PACE_INLINE int pace_sigpending (pace_sigset_t * set); #endif /* PACE_HAS_POSIX_SIG_UOF */ /** @@ -124,9 +125,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 3.3.5. */ #if (PACE_HAS_POSIX_SIG_UOF) - PACE_INLINE int pace_sigprocmask (int how, - const pace_sigset_t * set, - pace_sigset_t * oset); + PACE_Export PACE_INLINE int pace_sigprocmask (int how, + const pace_sigset_t * set, + pace_sigset_t * oset); #endif /* PACE_HAS_POSIX_SIG_UOF */ /** @@ -135,9 +136,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 3.3.9. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sigqueue (pace_pid_t pid, - int signo, - const pace_sigval value); + PACE_Export PACE_INLINE int pace_sigqueue (pace_pid_t pid, + int signo, + const pace_sigval value); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -146,7 +147,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 3.3.7. */ #if (PACE_HAS_POSIX_SIG_UOF) - PACE_INLINE int pace_sigsuspend (const pace_sigset_t * sigmask); + PACE_Export PACE_INLINE int pace_sigsuspend (const pace_sigset_t * sigmask); #endif /* PACE_HAS_POSIX_SIG_UOF */ /** @@ -155,9 +156,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 3.3.8. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sigtimedwait (const pace_sigset_t * set, - pace_siginfo_t * info, - const pace_timespec * timeout); + PACE_Export PACE_INLINE int pace_sigtimedwait (const pace_sigset_t * set, + pace_siginfo_t * info, + const pace_timespec * timeout); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -166,7 +167,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 3.3.8. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sigwait (const pace_sigset_t * set, int * sig); + PACE_Export PACE_INLINE int pace_sigwait (const pace_sigset_t * set, + int * sig); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ @@ -176,7 +178,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 3.3.8. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sigwaitinfo (const pace_sigset_t * set, pace_siginfo_t * info); + PACE_Export PACE_INLINE int pace_sigwaitinfo (const pace_sigset_t * set, + pace_siginfo_t * info); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if defined (PACE_HAS_INLINE) diff --git a/PACE/pace/stdio.h b/PACE/pace/stdio.h index c36c285a00f..29cb3444e35 100644 --- a/PACE/pace/stdio.h +++ b/PACE/pace/stdio.h @@ -36,7 +36,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE void pace_clearerr (PACE_FILE * stream); + PACE_Export PACE_INLINE void pace_clearerr (PACE_FILE * stream); #endif /* PACE_HAS_POSIX_DI_UOF */ /** @@ -45,7 +45,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 4.7.1. */ #if (PACE_HAS_POSIX_DS_UOF) - PACE_INLINE char * pace_ctermid (char * s); + PACE_Export PACE_INLINE char * pace_ctermid (char * s); #endif /* PACE_HAS_POSIX_DS_UOF */ /** @@ -54,7 +54,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE int pace_fclose (PACE_FILE * stream); + PACE_Export PACE_INLINE int pace_fclose (PACE_FILE * stream); #endif /* PACE_HAS_POSIX_DI_UOF */ /** @@ -63,7 +63,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.2.2. */ #if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE PACE_FILE * pace_fdopen (int fildes, const char * type); + PACE_Export PACE_INLINE PACE_FILE * pace_fdopen (int fildes, + const char * type); #endif /* PACE_HAS_POSIX_DI_UOF */ /** @@ -72,7 +73,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE int pace_ferror (PACE_FILE * stream); + PACE_Export PACE_INLINE int pace_ferror (PACE_FILE * stream); #endif /* PACE_HAS_POSIX_DI_UOF */ /** @@ -81,7 +82,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE int pace_feof (PACE_FILE * stream); + PACE_Export PACE_INLINE int pace_feof (PACE_FILE * stream); #endif /* PACE_HAS_POSIX_DI_UOF */ /** @@ -90,7 +91,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE int pace_fflush (PACE_FILE * stream); + PACE_Export PACE_INLINE int pace_fflush (PACE_FILE * stream); #endif /* PACE_HAS_POSIX_DI_UOF */ /** @@ -99,7 +100,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.2.1. */ #if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE int pace_fileno (PACE_FILE * stream); + PACE_Export PACE_INLINE int pace_fileno (PACE_FILE * stream); #endif /* PACE_HAS_POSIX_DI_UOF */ /** @@ -108,14 +109,14 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE int pace_fgetc (PACE_FILE * stream); + PACE_Export PACE_INLINE int pace_fgetc (PACE_FILE * stream); #endif /* PACE_HAS_POSIX_DI_UOF */ /** C std 7.19.9.1 */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_fgetpos(PACE_FILE * stream, + PACE_Export PACE_INLINE int pace_fgetpos(PACE_FILE * stream, pace_fpos_t * pos); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -125,7 +126,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE char * pace_fgets (char * s, int n, PACE_FILE * stream); + PACE_Export PACE_INLINE char * pace_fgets (char * s, int n, + PACE_FILE * stream); #endif /* PACE_HAS_POSIX_DI_UOF */ /** @@ -134,7 +136,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.2.6. */ #if (PACE_HAS_POSIX_FL_UOF) - PACE_INLINE void pace_flockfile (PACE_FILE * file); + PACE_Export PACE_INLINE void pace_flockfile (PACE_FILE * file); #endif /* PACE_HAS_POSIX_FL_UOF */ /* Requires PACE_HAS_REENTRANT. */ @@ -144,7 +146,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE PACE_FILE * pace_fopen (const char * filename, const char * mode); + PACE_Export PACE_INLINE PACE_FILE * pace_fopen (const char * filename, + const char * mode); #endif /* PACE_HAS_POSIX_DI_UOF */ /** @@ -163,7 +166,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE int pace_fputc (int c, PACE_FILE * stream); + PACE_Export PACE_INLINE int pace_fputc (int c, PACE_FILE * stream); #endif /* PACE_HAS_POSIX_DI_UOF */ /** @@ -172,7 +175,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE int pace_fputs (const char * s, PACE_FILE * stream); + PACE_Export PACE_INLINE int pace_fputs (const char * s, PACE_FILE * stream); #endif /* PACE_HAS_POSIX_DI_UOF */ /** @@ -181,10 +184,10 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE pace_size_t pace_fread (void * ptr, - pace_size_t size, - pace_size_t number_of_items, - PACE_FILE * stream); + PACE_Export PACE_INLINE pace_size_t pace_fread (void * ptr, + pace_size_t size, + pace_size_t number_of_items, + PACE_FILE * stream); #endif /* PACE_HAS_POSIX_DI_UOF */ /** @@ -193,9 +196,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE FILE * pace_freopen (const char * filename, - const char * mode, - PACE_FILE * stream); + PACE_Export PACE_INLINE FILE * pace_freopen (const char * filename, + const char * mode, + PACE_FILE * stream); #endif /* PACE_HAS_POSIX_DI_UOF */ /** @@ -214,14 +217,17 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_FM_UOF) - PACE_INLINE int pace_fseek (PACE_FILE * stream, long offset, int whence); + PACE_Export PACE_INLINE int pace_fseek (PACE_FILE * stream, + long offset, + int whence); #endif /* PACE_HAS_POSIX_FM_UOF */ /** C std 7.19.9.3 */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_fsetpos(PACE_FILE *stream, const pace_fpos_t *pos); + PACE_Export PACE_INLINE int pace_fsetpos(PACE_FILE *stream, + const pace_fpos_t *pos); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -230,7 +236,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_FM_UOF) - PACE_INLINE long pace_ftell (PACE_FILE * stream); + PACE_Export PACE_INLINE long pace_ftell (PACE_FILE * stream); #endif /* PACE_HAS_POSIX_FM_UOF */ /** @@ -239,7 +245,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.2.6. */ #if (PACE_HAS_POSIX_FL_UOF) - PACE_INLINE int pace_ftrylockfile (PACE_FILE * file); + PACE_Export PACE_INLINE int pace_ftrylockfile (PACE_FILE * file); #endif /* PACE_HAS_POSIX_FL_UOF */ /* Requires PACE_HAS_REENTRANT. */ @@ -249,7 +255,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.2.6. */ #if (PACE_HAS_POSIX_FL_UOF) - PACE_INLINE void pace_funlockfile (PACE_FILE * file); + PACE_Export PACE_INLINE void pace_funlockfile (PACE_FILE * file); #endif /* PACE_HAS_POSIX_FL_UOF */ /* Requires PACE_HAS_REENTRANT. */ @@ -257,9 +263,10 @@ extern "C" { C std 7.19.8.2 */ #if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE pace_size_t pace_fwrite(const void * ptr, - pace_size_t size, pace_size_t nmemb, - PACE_FILE * stream); + PACE_Export PACE_INLINE pace_size_t pace_fwrite(const void * ptr, + pace_size_t size, + pace_size_t nmemb, + PACE_FILE * stream); #endif /* PACE_HAS_POSIX_DI_UOF */ /** @@ -268,7 +275,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE int pace_getc (PACE_FILE * stream); + PACE_Export PACE_INLINE int pace_getc (PACE_FILE * stream); #endif /* PACE_HAS_POSIX_DI_UOF */ /** @@ -277,7 +284,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.2.7. */ #if (PACE_HAS_POSIX_FL_UOF) - PACE_INLINE int pace_getc_unlocked (PACE_FILE * stream); + PACE_Export PACE_INLINE int pace_getc_unlocked (PACE_FILE * stream); #endif /* PACE_HAS_POSIX_FL_UOF */ /* Requires PACE_HAS_REENTRANT. */ @@ -287,7 +294,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE int pace_getchar (); + PACE_Export PACE_INLINE int pace_getchar (); #endif /* PACE_HAS_POSIX_DI_UOF */ /** @@ -296,7 +303,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.2.7. */ #if (PACE_HAS_POSIX_FL_UOF) - PACE_INLINE int pace_getchar_unlocked (); + PACE_Export PACE_INLINE int pace_getchar_unlocked (); #endif /* PACE_HAS_POSIX_FL_UOF */ /* Requires PACE_HAS_REENTRANT. */ @@ -306,7 +313,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE char *pace_gets (char * s); + PACE_Export PACE_INLINE char *pace_gets (char * s); #endif /* PACE_HAS_POSIX_DI_UOF */ /** @@ -315,7 +322,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE void pace_perror (const char * s); + PACE_Export PACE_INLINE void pace_perror (const char * s); #endif /* PACE_HAS_POSIX_DI_UOF */ /** @@ -334,7 +341,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE int pace_putc (int c, PACE_FILE * stream); + PACE_Export PACE_INLINE int pace_putc (int c, PACE_FILE * stream); #endif /* PACE_HAS_POSIX_DI_UOF */ /** @@ -343,7 +350,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.2.7. */ #if (PACE_HAS_POSIX_FL_UOF) - PACE_INLINE int pace_putc_unlocked (int c, PACE_FILE * stream); + PACE_Export PACE_INLINE int pace_putc_unlocked (int c, PACE_FILE * stream); #endif /* PACE_HAS_POSIX_FL_UOF */ /* Requires PACE_HAS_REENTRANT. */ @@ -353,7 +360,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE int pace_putchar (int c); + PACE_Export PACE_INLINE int pace_putchar (int c); #endif /* PACE_HAS_POSIX_DI_UOF */ /** @@ -362,7 +369,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.2.7. */ #if (PACE_HAS_POSIX_FL_UOF) - PACE_INLINE int pace_putchar_unlocked (int c); + PACE_Export PACE_INLINE int pace_putchar_unlocked (int c); #endif /* PACE_HAS_POSIX_FL_UOF */ /* Requires PACE_HAS_REENTRANT. */ @@ -372,7 +379,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE int pace_puts (const char * s); + PACE_Export PACE_INLINE int pace_puts (const char * s); #endif /* PACE_HAS_POSIX_DI_UOF */ /** @@ -381,7 +388,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE int pace_remove (const char * path); + PACE_Export PACE_INLINE int pace_remove (const char * path); #endif /* PACE_HAS_POSIX_FS_UOF */ /** @@ -390,8 +397,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 5.5.3. */ #if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE int pace_rename (const char * old_name, - const char * new_name); + PACE_Export PACE_INLINE int pace_rename (const char * old_name, + const char * new_name); #endif /* PACE_HAS_POSIX_FS_UOF */ /** @@ -400,7 +407,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_FM_UOF) - PACE_INLINE void pace_rewind (PACE_FILE * stream); + PACE_Export PACE_INLINE void pace_rewind (PACE_FILE * stream); #endif /* PACE_HAS_POSIX_FM_UOF */ /** @@ -429,7 +436,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE void pace_setbuf (PACE_FILE * stream, char * buf); + PACE_Export PACE_INLINE void pace_setbuf (PACE_FILE * stream, char * buf); #endif /* PACE_HAS_POSIX_DI_UOF */ @@ -437,9 +444,9 @@ extern "C" { C std 7.19.5.6 */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_setvbuf(PACE_FILE * stream, - char * buf, - int mode, pace_size_t size); + PACE_Export PACE_INLINE int pace_setvbuf(PACE_FILE * stream, + char * buf, + int mode, pace_size_t size); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** PACE's implementation of the POSIX function sscanf. @@ -457,7 +464,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE FILE * pace_tmpfile (); + PACE_Export PACE_INLINE FILE * pace_tmpfile (); #endif /* PACE_HAS_POSIX_FS_UOF */ /** @@ -466,7 +473,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE char * pace_tmpnam (char * s); + PACE_Export PACE_INLINE char * pace_tmpnam (char * s); #endif /* PACE_HAS_POSIX_FS_UOF */ /** @@ -475,33 +482,33 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE int pace_ungetc (int c, FILE * stream); + PACE_Export PACE_INLINE int pace_ungetc (int c, FILE * stream); #endif /* PACE_HAS_POSIX_DI_UOF */ /** C std 7.19.6.8 */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_vfprintf (PACE_FILE * stream, - const char * format, - va_list arg); + PACE_Export PACE_INLINE int pace_vfprintf (PACE_FILE * stream, + const char * format, + va_list arg); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** C std 7.19.6.10 */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_vprintf (const char * format, - va_list arg); + PACE_Export PACE_INLINE int pace_vprintf (const char * format, + va_list arg); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** C std 7.19.6.13 */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_vsprintf (char * s, - const char * format, - va_list arg); + PACE_Export PACE_INLINE int pace_vsprintf (char * s, + const char * format, + va_list arg); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if defined (PACE_HAS_INLINE) diff --git a/PACE/pace/stdlib.h b/PACE/pace/stdlib.h index c968d8aba03..60c7ea203d1 100644 --- a/PACE/pace/stdlib.h +++ b/PACE/pace/stdlib.h @@ -35,7 +35,7 @@ extern "C" { C std 7.20.4.1 */ #if (PACE_HAS_POSIX_SIG_UOF) - PACE_INLINE void pace_abort (void); + PACE_Export PACE_INLINE void pace_abort (void); #endif /* PACE_HAS_POSIX_SIG_UOF */ /** @@ -44,14 +44,14 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_abs (int val); + PACE_Export PACE_INLINE int pace_abs (int val); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** C std ref. 7.20.4.2 */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_atexit (void (*func)(void)); + PACE_Export PACE_INLINE int pace_atexit (void (*func)(void)); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -60,7 +60,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_atof (const char * str); + PACE_Export PACE_INLINE double pace_atof (const char * str); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -69,7 +69,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_atoi (const char * str); + PACE_Export PACE_INLINE int pace_atoi (const char * str); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -78,7 +78,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE long pace_atol (const char * str); + PACE_Export PACE_INLINE long pace_atol (const char * str); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -87,16 +87,18 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE void * pace_bsearch (const void *key, const void *base, - size_t nel, size_t size, - int (*compar)(const void *,const void *)); + PACE_Export PACE_INLINE void * pace_bsearch (const void *key, + const void *base, + size_t nel, size_t size, + int (*compar)(const void *, + const void *)); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** C std ref. 7.20.6.2 */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE pace_div_t pace_div (int numer, int denom); + PACE_Export PACE_INLINE pace_div_t pace_div (int numer, int denom); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -105,7 +107,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_MP_UOF) - PACE_INLINE void pace_exit (int status); + PACE_Export PACE_INLINE void pace_exit (int status); #endif /* PACE_HAS_POSIX_MP_UOF */ /** @@ -114,46 +116,47 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 4.6.1. */ #if (PACE_HAS_POSIX_MP_UOF) - PACE_INLINE char * pace_getenv (const char * name); + PACE_Export PACE_INLINE char * pace_getenv (const char * name); #endif /* PACE_HAS_POSIX_MP_UOF */ /** C std ref. 7.20.6.1 */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE long int pace_labs (long int j); + PACE_Export PACE_INLINE long int pace_labs (long int j); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** C std ref. 7.20.6.2 */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE pace_ldiv_t pace_ldiv (long int numer, long int denom); + PACE_Export PACE_INLINE pace_ldiv_t pace_ldiv (long int numer, + long int denom); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** C std ref. 7.20.7.1 */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_mblen (const char* s, pace_size_t n); + PACE_Export PACE_INLINE int pace_mblen (const char* s, pace_size_t n); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** C std ref. 7.20.8.1 */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE pace_size_t pace_mbstowcs (pace_wchar_t* pwcs, - const char* s, - pace_size_t n); + PACE_Export PACE_INLINE pace_size_t pace_mbstowcs (pace_wchar_t* pwcs, + const char* s, + pace_size_t n); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** C std ref. 7.20.7.2 */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_mbtowc (pace_wchar_t* pwc, - const char* s, - pace_size_t n); + PACE_Export PACE_INLINE int pace_mbtowc (pace_wchar_t* pwc, + const char* s, + pace_size_t n); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -162,8 +165,11 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE void pace_qsort (void * base, size_t nel, size_t width, - int (*compar)(const void *, const void *)); + PACE_Export PACE_INLINE void pace_qsort (void * base, + size_t nel, + size_t width, + int (*compar)(const void *, + const void *)); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -172,7 +178,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_rand (); + PACE_Export PACE_INLINE int pace_rand (); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -181,7 +187,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE void pace_srand (unsigned int seed); + PACE_Export PACE_INLINE void pace_srand (unsigned int seed); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -190,7 +196,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.3.8. */ #if (PACE_HAS_POSIX_CLSR_UOF) - PACE_INLINE int pace_rand_r (unsigned int * seed); + PACE_Export PACE_INLINE int pace_rand_r (unsigned int * seed); #endif /* PACE_HAS_POSIX_CLSR_UOF */ /* Requires PACE_HAS_REENTRANT. */ @@ -198,49 +204,49 @@ extern "C" { C std ref. 7.20.1.3 */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE double pace_strtod (const char* nptr, - char** endptr); + PACE_Export PACE_INLINE double pace_strtod (const char* nptr, + char** endptr); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** C std ref. 7.20.1.4 */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_strtol (const char* nptr, - char** endptr, - int base); + PACE_Export PACE_INLINE int pace_strtol (const char* nptr, + char** endptr, + int base); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** C std ref. 7.20.7.2 */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE unsigned long int pace_strtoul (const char* nptr, - char** endptr, - int base); + PACE_Export PACE_INLINE unsigned long int pace_strtoul (const char* nptr, + char** endptr, + int base); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** C std ref. 7.20.4.5 */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_system (const char* string); + PACE_Export PACE_INLINE int pace_system (const char* string); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** C std ref. 7.20.8.2 */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE pace_size_t pace_wcstombs (char* s, - const pace_wchar_t* pwcs, - pace_size_t n); + PACE_Export PACE_INLINE pace_size_t pace_wcstombs (char* s, + const pace_wchar_t* pwcs, + pace_size_t n); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** C std ref. 7.20.7.3 */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_wctomb (char* s, pace_wchar_t wchar); + PACE_Export PACE_INLINE int pace_wctomb (char* s, pace_wchar_t wchar); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -252,7 +258,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE void * pace_malloc (size_t size); + PACE_Export PACE_INLINE void * pace_malloc (size_t size); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -261,7 +267,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE void * pace_calloc (size_t nelem, size_t elsize); + PACE_Export PACE_INLINE void * pace_calloc (size_t nelem, size_t elsize); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -270,7 +276,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE void pace_free (void * ptr); + PACE_Export PACE_INLINE void pace_free (void * ptr); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -279,7 +285,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE void * pace_realloc (void * ptr, size_t size); + PACE_Export PACE_INLINE void * pace_realloc (void * ptr, size_t size); #endif /* PACE_HAS_POSIX_CLS_UOF */ #if defined (PACE_HAS_INLINE) diff --git a/PACE/pace/string.h b/PACE/pace/string.h index 0d731611041..5160715c601 100644 --- a/PACE/pace/string.h +++ b/PACE/pace/string.h @@ -35,35 +35,43 @@ extern "C" { pace_memchr function, C std ref. 7.21.5.1 */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE void * pace_memchr(const void *s, int c, pace_size_t n); + PACE_Export PACE_INLINE void * pace_memchr(const void *s, + int c, + pace_size_t n); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** pace_memcmp function, C std ref. 7.21.4.1 */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_memcmp(const void *s1, const void *s2, pace_size_t n); + PACE_Export PACE_INLINE int pace_memcmp(const void *s1, + const void *s2, + pace_size_t n); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** pace_memcpy function, C std ref. 7.21.2.1 */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE void *pace_memcpy(void * s1, const void * s2, pace_size_t n); + PACE_Export PACE_INLINE void *pace_memcpy(void * s1, + const void * s2, + pace_size_t n); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** pace_memmove function, C std ref.7.21.2.2 */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE void *pace_memmove(void *s1, const void *s2, pace_size_t n); + PACE_Export PACE_INLINE void *pace_memmove(void *s1, + const void *s2, + pace_size_t n); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** pace_memset function, C std ref. 7.21.6.1 */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE void *pace_memset(void *s, int c, pace_size_t n); + PACE_Export PACE_INLINE void *pace_memset(void *s, int c, pace_size_t n); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -72,7 +80,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE char * pace_strcat (char * s1, const char * s2); + PACE_Export PACE_INLINE char * pace_strcat (char * s1, const char * s2); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -81,7 +89,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE char * pace_strncat (char * s1, const char * s2, size_t n); + PACE_Export PACE_INLINE char * pace_strncat (char * s1, + const char * s2, + size_t n); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -90,7 +100,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE char * pace_strchr (const char * s, int c); + PACE_Export PACE_INLINE char * pace_strchr (const char * s, int c); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -99,7 +109,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE char * pace_strrchr (const char * s, int c); + PACE_Export PACE_INLINE char * pace_strrchr (const char * s, int c); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -108,7 +118,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_strcmp (const char * s1, const char * s2); + PACE_Export PACE_INLINE int pace_strcmp (const char * s1, const char * s2); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -117,7 +127,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_strncmp (const char * s1, const char * s2, size_t n); + PACE_Export PACE_INLINE int pace_strncmp (const char * s1, + const char * s2, + size_t n); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -126,7 +138,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE char * pace_strcpy (char * s1, const char * s2); + PACE_Export PACE_INLINE char * pace_strcpy (char * s1, const char * s2); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -135,7 +147,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE char * pace_strncpy (char * s1, const char * s2, size_t n); + PACE_Export PACE_INLINE char * pace_strncpy (char * s1, + const char * s2, + size_t n); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -144,7 +158,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE size_t pace_strcspn (const char * s1, const char * s2); + PACE_Export PACE_INLINE size_t pace_strcspn (const char * s1, + const char * s2); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -153,7 +168,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE size_t pace_strspn (const char * s1, const char * s2); + PACE_Export PACE_INLINE size_t pace_strspn (const char * s1, + const char * s2); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -162,7 +178,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE size_t pace_strlen (const char * s); + PACE_Export PACE_INLINE size_t pace_strlen (const char * s); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -171,7 +187,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE char * pace_strpbrk (const char * s1, const char * s2); + PACE_Export PACE_INLINE char * pace_strpbrk (const char * s1, + const char * s2); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -180,7 +197,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE char * pace_strstr (const char * s1, const char * s2); + PACE_Export PACE_INLINE char * pace_strstr (const char * s1, + const char * s2); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -189,7 +207,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE char * pace_strtok (char * s1, const char * s2); + PACE_Export PACE_INLINE char * pace_strtok (char * s1, const char * s2); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -198,9 +216,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.3.3. */ #if (PACE_HAS_POSIX_CLSR_UOF) - PACE_INLINE char * pace_strtok_r (char * s, - const char * sep, - char ** lasts); + PACE_Export PACE_INLINE char * pace_strtok_r (char * s, + const char * sep, + char ** lasts); #endif /* PACE_HAS_POSIX_CLSR_UOF */ /* Requires PACE_HAS_REENTRANT. */ diff --git a/PACE/pace/sys/mman.h b/PACE/pace/sys/mman.h index 955cb8df851..28d11481391 100644 --- a/PACE/pace/sys/mman.h +++ b/PACE/pace/sys/mman.h @@ -36,7 +36,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 12.1.2. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_mlock (const void * addr, pace_size_t len); + PACE_Export PACE_INLINE int pace_mlock (const void * addr, pace_size_t len); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -45,7 +45,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 12.1.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_mlockall (int flags); + PACE_Export PACE_INLINE int pace_mlockall (int flags); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -54,12 +54,12 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 12.2.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE void * pace_mmap (void * addr, - pace_size_t len, - int prot, - int flags, - PACE_HANDLE fildes, - pace_off_t off); + PACE_Export PACE_INLINE void * pace_mmap (void * addr, + pace_size_t len, + int prot, + int flags, + PACE_HANDLE fildes, + pace_off_t off); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -68,9 +68,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 12.2.3. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_mprotect (void * addr, - pace_size_t len, - int prot); + PACE_Export PACE_INLINE int pace_mprotect (void * addr, + pace_size_t len, + int prot); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -79,9 +79,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 12.2.4. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_msync (void * addr, - pace_size_t len, - int flags); + PACE_Export PACE_INLINE int pace_msync (void * addr, + pace_size_t len, + int flags); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -90,7 +90,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 12.1.2. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_munlock (const void * addr, pace_size_t len); + PACE_Export PACE_INLINE int pace_munlock (const void * addr, + pace_size_t len); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -99,7 +100,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 12.1.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_munlockall (); + PACE_Export PACE_INLINE int pace_munlockall (); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -108,7 +109,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 12.2.2. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_munmap (void * addr, pace_size_t len); + PACE_Export PACE_INLINE int pace_munmap (void * addr, pace_size_t len); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -117,9 +118,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 12.3.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE PACE_HANDLE pace_shm_open (const char * name, - int oflag, - pace_mode_t mode); + PACE_Export PACE_INLINE PACE_HANDLE pace_shm_open (const char * name, + int oflag, + pace_mode_t mode); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /* Requires PACE_POSIX_C_SOURCE > 2. */ @@ -129,7 +130,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 12.3.2. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_shm_unlink (const char * name); + PACE_Export PACE_INLINE int pace_shm_unlink (const char * name); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /* Requires PACE_POSIX_C_SOURCE > 2. */ diff --git a/PACE/pace/sys/socket.h b/PACE/pace/sys/socket.h index 4c06359460e..52b407cfeff 100644 --- a/PACE/pace/sys/socket.h +++ b/PACE/pace/sys/socket.h @@ -36,9 +36,9 @@ extern "C" { (IEEE Std P1003.1g, D6.6, March 1997 Edition) */ #if (PACE_HAS_POSIX_SOCK_UOF) - PACE_INLINE int pace_accept (int s, - pace_sockaddr * socketaddress, - pace_socklen_t * addresslen); + PACE_Export PACE_INLINE int pace_accept (int s, + pace_sockaddr * socketaddress, + pace_socklen_t * addresslen); #endif /* PACE_HAS_POSIX_SOCK_UOF */ /** @@ -47,9 +47,9 @@ extern "C" { (IEEE Std P1003.1g, D6.6, March 1997 Edition) */ #if (PACE_HAS_POSIX_SOCK_UOF) - PACE_INLINE int pace_bind (int s, - const pace_sockaddr * socketaddress, - pace_socklen_t addresslen); + PACE_Export PACE_INLINE int pace_bind (int s, + const pace_sockaddr * socketaddress, + pace_socklen_t addresslen); #endif /* PACE_HAS_POSIX_SOCK_UOF */ /** @@ -58,9 +58,9 @@ extern "C" { (IEEE Std P1003.1g, D6.6, March 1997 Edition) */ #if (PACE_HAS_POSIX_SOCK_UOF) - PACE_INLINE int pace_connect (int s, - const pace_sockaddr * socketaddress, - pace_socklen_t addresslen); + PACE_Export PACE_INLINE int pace_connect (int s, + const pace_sockaddr * socketaddress, + pace_socklen_t addresslen); #endif /* PACE_HAS_POSIX_SOCK_UOF */ /** @@ -69,9 +69,9 @@ extern "C" { (IEEE Std P1003.1g, D6.6, March 1997 Edition) */ #if (PACE_HAS_POSIX_SOCK_UOF) - PACE_INLINE int pace_getpeername (int s, - pace_sockaddr * socketaddress, - pace_socklen_t * addresslen); + PACE_Export PACE_INLINE int pace_getpeername (int s, + pace_sockaddr * socketaddress, + pace_socklen_t * addresslen); #endif /* PACE_HAS_POSIX_SOCK_UOF */ /** @@ -80,9 +80,9 @@ extern "C" { (IEEE Std P1003.1g, D6.6, March 1997 Edition) */ #if (PACE_HAS_POSIX_SOCK_UOF) - PACE_INLINE int pace_getsockname (int s, - pace_sockaddr * socketaddress, - pace_socklen_t * addresslen); + PACE_Export PACE_INLINE int pace_getsockname (int s, + pace_sockaddr * socketaddress, + pace_socklen_t * addresslen); #endif /* PACE_HAS_POSIX_SOCK_UOF */ /** @@ -91,11 +91,11 @@ extern "C" { (IEEE Std P1003.1g, D6.6, March 1997 Edition) */ #if (PACE_HAS_POSIX_SOCK_UOF) - PACE_INLINE int pace_getsockopt (int s, - int level, - int optname, - void * optval, - pace_socklen_t optlen); + PACE_Export PACE_INLINE int pace_getsockopt (int s, + int level, + int optname, + void * optval, + pace_socklen_t optlen); #endif /* PACE_HAS_POSIX_SOCK_UOF */ /** @@ -104,10 +104,10 @@ extern "C" { (IEEE Std P1003.1g, D6.6, March 1997 Edition) */ #if (PACE_HAS_POSIX_SOCK_UOF) - PACE_INLINE int pace_setsockopt (int s, - int level, - int optname, - const * optval); + PACE_Export PACE_INLINE int pace_setsockopt (int s, + int level, + int optname, + const * optval); #endif /* PACE_HAS_POSIX_SOCK_UOF */ /** @@ -116,7 +116,7 @@ extern "C" { (IEEE Std P1003.1g, D6.6, March 1997 Edition) */ #if (PACE_HAS_POSIX_SOCK_UOF) - PACE_INLINE int pace_isfdtype (int fildes, int fdtype); + PACE_Export PACE_INLINE int pace_isfdtype (int fildes, int fdtype); #endif /* PACE_HAS_POSIX_SOCK_UOF */ /** @@ -125,7 +125,7 @@ extern "C" { (IEEE Std P1003.1g, D6.6, March 1997 Edition) */ #if (PACE_HAS_POSIX_SOCK_UOF) - PACE_INLINE int pace_listen (int s, int backlog); + PACE_Export PACE_INLINE int pace_listen (int s, int backlog); #endif /* PACE_HAS_POSIX_SOCK_UOF */ /** @@ -134,10 +134,10 @@ extern "C" { (IEEE Std P1003.1g, D6.6, March 1997 Edition) */ #if (PACE_HAS_POSIX_SOCK_UOF) - PACE_INLINE pace_ssize_t pace_recv (int s, - void * buf, - pace_size_t len, - int flags); + PACE_Export PACE_INLINE pace_ssize_t pace_recv (int s, + void * buf, + pace_size_t len, + int flags); #endif /* PACE_HAS_POSIX_SOCK_UOF */ /** @@ -146,12 +146,12 @@ extern "C" { (IEEE Std P1003.1g, D6.6, March 1997 Edition) */ #if (PACE_HAS_POSIX_SOCK_UOF) - PACE_INLINE pace_ssize_t pace_recvfrom (int s, - void * buf, - pace_size_t len, - int flags, - pace_sockaddr * from, - pace_socklen_t * fromlen); + PACE_Export PACE_INLINE pace_ssize_t pace_recvfrom (int s, + void * buf, + pace_size_t len, + int flags, + pace_sockaddr * from, + pace_socklen_t * fromlen); #endif /* PACE_HAS_POSIX_SOCK_UOF */ /** @@ -160,9 +160,9 @@ extern "C" { (IEEE Std P1003.1g, D6.6, March 1997 Edition) */ #if (PACE_HAS_POSIX_SOCK_UOF) - PACE_INLINE pace_ssize_t pace_rcvmsg (int s, - pace_msghdr * msg, - int flags); + PACE_Export PACE_INLINE pace_ssize_t pace_rcvmsg (int s, + pace_msghdr * msg, + int flags); #endif /* PACE_HAS_POSIX_SOCK_UOF */ /** @@ -171,10 +171,10 @@ extern "C" { (IEEE Std P1003.1g, D6.6, March 1997 Edition) */ #if (PACE_HAS_POSIX_SOCK_UOF) - PACE_INLINE pace_ssize_t pace_send (int s, - const void * buf, - pace_size_t len, - int flags); + PACE_Export PACE_INLINE pace_ssize_t pace_send (int s, + const void * buf, + pace_size_t len, + int flags); #endif /* PACE_HAS_POSIX_SOCK_UOF */ /** @@ -183,12 +183,12 @@ extern "C" { (IEEE Std P1003.1g, D6.6, March 1997 Edition) */ #if (PACE_HAS_POSIX_SOCK_UOF) - PACE_INLINE pace_ssize_t pace_sendto (int s, - const void * buf, - pace_size_t len, - int flags, - const pace_sockaddr * to, - pace_socklen_t * tolen); + PACE_Export PACE_INLINE pace_ssize_t pace_sendto (int s, + const void * buf, + pace_size_t len, + int flags, + const pace_sockaddr * to, + pace_socklen_t * tolen); #endif /* PACE_HAS_POSIX_SOCK_UOF */ /** @@ -197,9 +197,9 @@ extern "C" { (IEEE Std P1003.1g, D6.6, March 1997 Edition) */ #if (PACE_HAS_POSIX_SOCK_UOF) - PACE_INLINE pace_ssize_t pace_sendmsg (int s, - const pace_msghdr * msg, - int flags); + PACE_Export PACE_INLINE pace_ssize_t pace_sendmsg (int s, + const pace_msghdr * msg, + int flags); #endif /* PACE_HAS_POSIX_SOCK_UOF */ /** @@ -208,7 +208,7 @@ extern "C" { (IEEE Std P1003.1g, D6.6, March 1997 Edition) */ #if (PACE_HAS_POSIX_SOCK_UOF) - PACE_INLINE int pace_shutdown (int s, int how); + PACE_Export PACE_INLINE int pace_shutdown (int s, int how); #endif /* PACE_HAS_POSIX_SOCK_UOF */ /** @@ -217,7 +217,9 @@ extern "C" { (IEEE Std P1003.1g, D6.6, March 1997 Edition) */ #if (PACE_HAS_POSIX_SOCK_UOF) - PACE_INLINE int pace_socket (int protofamily, int type, int protocol); + PACE_Export PACE_INLINE int pace_socket (int protofamily, + int type, + int protocol); #endif /* PACE_HAS_POSIX_SOCK_UOF */ /** @@ -226,10 +228,10 @@ extern "C" { (IEEE Std P1003.1g, D6.6, March 1997 Edition) */ #if (PACE_HAS_POSIX_SOCK_UOF) - PACE_INLINE int pace_socketpair (int protofamily, - int type, - int protocol, - int sv[2]); + PACE_Export PACE_INLINE int pace_socketpair (int protofamily, + int type, + int protocol, + int sv[2]); #endif /* PACE_HAS_POSIX_SOCK_UOF */ #if defined (PACE_HAS_INLINE) diff --git a/PACE/pace/sys/stat.h b/PACE/pace/sys/stat.h index 0cdf982d04a..f1ab6a98dc0 100644 --- a/PACE/pace/sys/stat.h +++ b/PACE/pace/sys/stat.h @@ -33,31 +33,34 @@ extern "C" { #endif /* PACE_HAS_CPLUSPLUS */ #if (PACE_HAS_POSIX_FA_UOF) - PACE_INLINE int pace_chmod (const char * path, pace_mode_t mode); + PACE_Export PACE_INLINE int pace_chmod (const char * path, pace_mode_t mode); #endif /* PACE_HAS_POSIX_FA_UOF */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_fchmod (PACE_HANDLE fildes, pace_mode_t mode); + PACE_Export PACE_INLINE int pace_fchmod (PACE_HANDLE fildes, + pace_mode_t mode); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE int pace_fstat (PACE_HANDLE fildes, pace_stat_s * buf); + PACE_Export PACE_INLINE int pace_fstat (PACE_HANDLE fildes, +pace_stat_s * buf); #endif /* PACE_HAS_POSIX_FS_UOF */ #if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE int pace_mkdir (const char * path, pace_mode_t mode); + PACE_Export PACE_INLINE int pace_mkdir (const char * path, pace_mode_t mode); #endif /* PACE_HAS_POSIX_FS_UOF */ #if (PACE_HAS_POSIX_F_UOF) - PACE_INLINE int pace_mkfifo (const char * path, pace_mode_t mode); + PACE_Export PACE_INLINE int pace_mkfifo (const char * path, + pace_mode_t mode); #endif /* PACE_HAS_POSIX_F_UOF */ #if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE int pace_stat (const char * path, pace_stat_s * buf); + PACE_Export PACE_INLINE int pace_stat (const char * path, pace_stat_s * buf); #endif /* PACE_HAS_POSIX_FS_UOF */ #if (PACE_HAS_POSIX_FA_UOF) - PACE_INLINE pace_mode_t pace_umask (pace_mode_t cmask); + PACE_Export PACE_INLINE pace_mode_t pace_umask (pace_mode_t cmask); #endif /* PACE_HAS_POSIX_FA_UOF */ #if defined (PACE_HAS_INLINE) diff --git a/PACE/pace/sys/times.h b/PACE/pace/sys/times.h index ea74055dc62..2f3db177f5c 100644 --- a/PACE/pace/sys/times.h +++ b/PACE/pace/sys/times.h @@ -31,7 +31,7 @@ extern "C" { #endif /* PACE_HAS_CPLUSPLUS */ #if (PACE_HAS_POSIX_MP_UOF) - PACE_INLINE pace_clock_t pace_times (pace_tms * buffer); + PACE_Export PACE_INLINE pace_clock_t pace_times (pace_tms * buffer); #endif /* PACE_HAS_POSIX_MP_UOF */ #if defined (PACE_HAS_INLINE) diff --git a/PACE/pace/sys/utsname.h b/PACE/pace/sys/utsname.h index d85ff741223..1f50d58ea18 100644 --- a/PACE/pace/sys/utsname.h +++ b/PACE/pace/sys/utsname.h @@ -31,7 +31,7 @@ extern "C" { #endif /* PACE_HAS_CPLUSPLUS */ #if (PACE_HAS_POSIX_SP_UOF) - PACE_INLINE int pace_uname (pace_utsname * name); + PACE_Export PACE_INLINE int pace_uname (pace_utsname * name); #endif /* PACE_HAS_POSIX_SP_UOF */ #if defined (PACE_HAS_INLINE) diff --git a/PACE/pace/sys/wait.h b/PACE/pace/sys/wait.h index e83769217ea..8fc12e00bd8 100644 --- a/PACE/pace/sys/wait.h +++ b/PACE/pace/sys/wait.h @@ -36,7 +36,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 3.2.1. */ #if (PACE_HAS_POSIX_MP_UOF) - PACE_INLINE pace_pid_t pace_wait (int * statloc); + PACE_Export PACE_INLINE pace_pid_t pace_wait (int * statloc); #endif /* PACE_HAS_POSIX_MP_UOF */ /** @@ -45,9 +45,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 3.2.1. */ #if (PACE_HAS_POSIX_MP_UOF) - PACE_INLINE pace_pid_t pace_waitpid (pace_pid_t pid, - int * statloc, - int options); + PACE_Export PACE_INLINE pace_pid_t pace_waitpid (pace_pid_t pid, + int * statloc, + int options); #endif /* PACE_HAS_POSIX_MP_UOF */ #if defined (PACE_HAS_INLINE) diff --git a/PACE/pace/termios.h b/PACE/pace/termios.h index 1986f3ded21..2a3d855259d 100644 --- a/PACE/pace/termios.h +++ b/PACE/pace/termios.h @@ -36,7 +36,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 7.1.3. */ #if (PACE_HAS_POSIX_DS_UOF) - PACE_INLINE pace_speed_t pace_cfgetospeed (const pace_termios * termiosp); + PACE_Export PACE_INLINE pace_speed_t pace_cfgetospeed (const pace_termios * termiosp); #endif /* PACE_HAS_POSIX_DS_UOF */ /** @@ -45,7 +45,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 7.1.3. */ #if (PACE_HAS_POSIX_DS_UOF) - PACE_INLINE int pace_cfsetospeed (pace_termios * termios_p, pace_speed_t speed); + PACE_Export PACE_INLINE int pace_cfsetospeed (pace_termios * termios_p, + pace_speed_t speed); #endif /* PACE_HAS_POSIX_DS_UOF */ /** @@ -54,7 +55,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 7.1.3. */ #if (PACE_HAS_POSIX_DS_UOF) - PACE_INLINE pace_speed_t pace_cfgetispeed (const pace_termios * termios_p); + PACE_Export PACE_INLINE pace_speed_t pace_cfgetispeed (const pace_termios * termios_p); #endif /* PACE_HAS_POSIX_DS_UOF */ /** @@ -63,7 +64,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 7.1.3. */ #if (PACE_HAS_POSIX_DS_UOF) - PACE_INLINE int pace_cfsetispeed (pace_termios * termios_p, pace_speed_t speed); + PACE_Export PACE_INLINE int pace_cfsetispeed (pace_termios * termios_p, + pace_speed_t speed); #endif /* PACE_HAS_POSIX_DS_UOF */ /** @@ -72,7 +74,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 7.2.2. */ #if (PACE_HAS_POSIX_DS_UOF) - PACE_INLINE int pace_tcdrain (PACE_HANDLE fildes); + PACE_Export PACE_INLINE int pace_tcdrain (PACE_HANDLE fildes); #endif /* PACE_HAS_POSIX_DS_UOF */ /** @@ -81,7 +83,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 7.2.2. */ #if (PACE_HAS_POSIX_DS_UOF) - PACE_INLINE int pace_tcflow (PACE_HANDLE fildes, int action); + PACE_Export PACE_INLINE int pace_tcflow (PACE_HANDLE fildes, int action); #endif /* PACE_HAS_POSIX_DS_UOF */ /** @@ -90,7 +92,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 7.2.2. */ #if (PACE_HAS_POSIX_DS_UOF) - PACE_INLINE int pace_tcflush (PACE_HANDLE fildes, int queue_selector); + PACE_Export PACE_INLINE int pace_tcflush (PACE_HANDLE fildes, + int queue_selector); #endif /* PACE_HAS_POSIX_DS_UOF */ /** @@ -99,7 +102,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 7.2.1. */ #if (PACE_HAS_POSIX_DS_UOF) - PACE_INLINE int pace_tcgetattr (PACE_HANDLE fildes, pace_termios * termios_p); + PACE_Export PACE_INLINE int pace_tcgetattr (PACE_HANDLE fildes, + pace_termios * termios_p); #endif /* PACE_HAS_POSIX_DS_UOF */ /** @@ -108,7 +112,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 7.2.2. */ #if (PACE_HAS_POSIX_DS_UOF) - PACE_INLINE int pace_tcsendbreak (PACE_HANDLE fildes, int duration); + PACE_Export PACE_INLINE int pace_tcsendbreak (PACE_HANDLE fildes, + int duration); #endif /* PACE_HAS_POSIX_DS_UOF */ /** @@ -117,9 +122,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 7.2.1. */ #if (PACE_HAS_POSIX_DS_UOF) - PACE_INLINE int pace_tcsetattr (PACE_HANDLE fildes, - int optional_actions, - const pace_termios * termios_p); + PACE_Export PACE_INLINE int pace_tcsetattr (PACE_HANDLE fildes, + int optional_actions, + const pace_termios * termios_p); #endif /* PACE_HAS_POSIX_DS_UOF */ diff --git a/PACE/pace/time.h b/PACE/pace/time.h index ede0b9c5b6b..688eac0ddf6 100644 --- a/PACE/pace/time.h +++ b/PACE/pace/time.h @@ -36,7 +36,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE char * pace_asctime (const pace_tm * time); + PACE_Export PACE_INLINE char * pace_asctime (const pace_tm * time); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -45,7 +45,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1.1. */ #if (PACE_HAS_POSIX_CLSR_UOF) - PACE_INLINE char * pace_asctime_r (const pace_tm * tm, char * buf); + PACE_Export PACE_INLINE char * pace_asctime_r (const pace_tm * tm, + char * buf); #endif /* PACE_HAS_POSIX_CLSR_UOF */ /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ @@ -54,14 +55,15 @@ extern "C" { C std 7.23.2.1 */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE pace_clock_t pace_clock (void); + PACE_Export PACE_INLINE pace_clock_t pace_clock (void); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** C std 7.23.2.2 */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE double pace_difftime (pace_time_t time1, pace_time_t time2); + PACE_Export PACE_INLINE double pace_difftime (pace_time_t time1, + pace_time_t time2); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -70,8 +72,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 14.2.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_clock_getres (pace_clockid_t clock_id, - pace_timespec * res); + PACE_Export PACE_INLINE int pace_clock_getres (pace_clockid_t clock_id, + pace_timespec * res); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -80,8 +82,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 14.2.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_clock_gettime (pace_clockid_t clock_id, - pace_timespec * tp); + PACE_Export PACE_INLINE int pace_clock_gettime (pace_clockid_t clock_id, + pace_timespec * tp); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -90,8 +92,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 14.2.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_clock_settime (pace_clockid_t clock_id, - const pace_timespec * tp); + PACE_Export PACE_INLINE int pace_clock_settime (pace_clockid_t clock_id, + const pace_timespec * tp); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -100,7 +102,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE char * pace_ctime (const pace_time_t * clock); + PACE_Export PACE_INLINE char * pace_ctime (const pace_time_t * clock); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -109,7 +111,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.3.5. */ #if (PACE_HAS_POSIX_CLSR_UOF) - PACE_INLINE char * pace_ctime_r (const pace_time_t * clock, char * buf); + PACE_Export PACE_INLINE char * pace_ctime_r (const pace_time_t * clock, + char * buf); #endif /* PACE_HAS_POSIX_CLSR_UOF */ /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ @@ -119,7 +122,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE pace_tm * pace_gmtime (const pace_time_t * clock); + PACE_Export PACE_INLINE pace_tm * pace_gmtime (const pace_time_t * clock); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -128,8 +131,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.3.6. */ #if (PACE_HAS_POSIX_CLSR_UOF) - PACE_INLINE pace_tm * pace_gmtime_r (const pace_time_t * clock, - pace_tm * result); + PACE_Export PACE_INLINE pace_tm * pace_gmtime_r (const pace_time_t * clock, + pace_tm * result); #endif /* PACE_HAS_POSIX_CLSR_UOF */ /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ @@ -139,7 +142,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE pace_tm * pace_localtime (const time_t * clock); + PACE_Export PACE_INLINE pace_tm * pace_localtime (const time_t * clock); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -148,8 +151,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.3.7. */ #if (PACE_HAS_POSIX_CLSR_UOF) - PACE_INLINE pace_tm * pace_localtime_r (const pace_time_t * clock, - pace_tm * result); + PACE_Export PACE_INLINE pace_tm * pace_localtime_r (const pace_time_t * clock, + pace_tm * result); #endif /* PACE_HAS_POSIX_CLSR_UOF */ /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ @@ -159,7 +162,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE pace_time_t pace_mktime (pace_tm * timeptr); + PACE_Export PACE_INLINE pace_time_t pace_mktime (pace_tm * timeptr); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -168,8 +171,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 14.2.5. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_nanosleep (const pace_timespec * rqtp, - pace_timespec * rmtp); + PACE_Export PACE_INLINE int pace_nanosleep (const pace_timespec * rqtp, + pace_timespec * rmtp); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -178,9 +181,10 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE pace_size_t pace_strftime (char *s, pace_size_t maxsize, - const char *format, - const pace_tm *timeptr); + PACE_Export PACE_INLINE pace_size_t pace_strftime (char *s, + pace_size_t maxsize, + const char *format, + const pace_tm *timeptr); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -189,7 +193,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 4.5.1. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE pace_time_t pace_time (pace_time_t *tloc); + PACE_Export PACE_INLINE pace_time_t pace_time (pace_time_t *tloc); #endif /* PACE_HAS_POSIX_CLS_UOF */ /** @@ -198,9 +202,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 14.2.2. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_timer_create (pace_clockid_t clock_id, - pace_sigevent * evp, - pace_timer_t * timerid); + PACE_Export PACE_INLINE int pace_timer_create (pace_clockid_t clock_id, + pace_sigevent * evp, + pace_timer_t * timerid); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -209,7 +213,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 14.2.3. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_timer_delete (pace_timer_t timerid); + PACE_Export PACE_INLINE int pace_timer_delete (pace_timer_t timerid); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -218,7 +222,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 14.2.4. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_timer_getoverrun (pace_timer_t timerid); + PACE_Export PACE_INLINE int pace_timer_getoverrun (pace_timer_t timerid); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -227,8 +231,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 14.2.4. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_timer_gettime (pace_timer_t timerid, - pace_itimerspec * value); + PACE_Export PACE_INLINE int pace_timer_gettime (pace_timer_t timerid, + pace_itimerspec * value); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -237,10 +241,10 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 14.2.4. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_timer_settime (pace_timer_t timerid, - int flags, - const pace_itimerspec * value, - pace_itimerspec * ovalue); + PACE_Export PACE_INLINE int pace_timer_settime (pace_timer_t timerid, + int flags, + const pace_itimerspec * value, + pace_itimerspec * ovalue); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -249,7 +253,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 8.3.2. */ #if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE void pace_tzset (); + PACE_Export PACE_INLINE void pace_tzset (); #endif /* PACE_HAS_POSIX_CLS_UOF */ /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ diff --git a/PACE/pace/unistd.h b/PACE/pace/unistd.h index 5cb2632009a..3b6b99f545a 100644 --- a/PACE/pace/unistd.h +++ b/PACE/pace/unistd.h @@ -36,7 +36,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 3.2.2. */ #if (PACE_HAS_POSIX_MP_UOF) - PACE_INLINE void pace__exit (int status); + PACE_Export PACE_INLINE void pace__exit (int status); #endif /* PACE_HAS_POSIX_MP_UOF */ /** @@ -45,7 +45,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 5.6.3. */ #if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE int pace_access (const char * path, int amode); + PACE_Export PACE_INLINE int pace_access (const char * path, int amode); #endif /* PACE_HAS_POSIX_FS_UOF */ /** @@ -54,7 +54,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 3.4.1. */ #if (PACE_HAS_POSIX_SIG_UOF) - PACE_INLINE unsigned int pace_alarm (unsigned int seconds); + PACE_Export PACE_INLINE unsigned int pace_alarm (unsigned int seconds); #endif /* PACE_HAS_POSIX_SIG_UOF */ /** @@ -63,7 +63,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 5.2.1. */ #if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE int pace_chdir (const char * path); + PACE_Export PACE_INLINE int pace_chdir (const char * path); #endif /* PACE_HAS_POSIX_FS_UOF */ /** @@ -72,8 +72,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 5.6.5. */ #if (PACE_HAS_POSIX_FA_UOF) - PACE_INLINE int pace_chown (const char * path, pace_uid_t owner, - pace_gid_t group); + PACE_Export PACE_INLINE int pace_chown (const char * path, + pace_uid_t owner, + pace_gid_t group); #endif /* PACE_HAS_POSIX_FA_UOF */ /** @@ -82,7 +83,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 6.3.1. */ #if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE int pace_close (PACE_HANDLE fildes); + PACE_Export PACE_INLINE int pace_close (PACE_HANDLE fildes); #endif /* PACE_HAS_POSIX_DI_UOF */ /** @@ -91,7 +92,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 6.2.1. */ #if (PACE_HAS_POSIX_FM_UOF) - PACE_INLINE PACE_HANDLE pace_dup (PACE_HANDLE fildes); + PACE_Export PACE_INLINE PACE_HANDLE pace_dup (PACE_HANDLE fildes); #endif /* PACE_HAS_POSIX_FM_UOF */ /** @@ -100,7 +101,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 6.2.1. */ #if (PACE_HAS_POSIX_FM_UOF) - PACE_INLINE PACE_HANDLE pace_dup2 (PACE_HANDLE fildes, PACE_HANDLE fildes2); + PACE_Export PACE_INLINE PACE_HANDLE pace_dup2 (PACE_HANDLE fildes, + PACE_HANDLE fildes2); #endif /* PACE_HAS_POSIX_FM_UOF */ /** @@ -111,7 +113,8 @@ extern "C" { #if (PACE_HAS_POSIX_MP_UOF) # define pace_execl execl #endif /* PACE_HAS_POSIX_MP_UOF */ - /* PACE_INLINE int pace_execl (const char* path, const char* arg, ...); */ + /* PACE_Export PACE_INLINE int pace_execl (const char* path, + const char* arg, ...); */ /** PACE's implementation of the POSIX function execle. @@ -121,7 +124,8 @@ extern "C" { #if (PACE_HAS_POSIX_MP_UOF) # define pace_execle execle #endif /* PACE_HAS_POSIX_MP_UOF */ - /* PACE_INLINE int pace_execle (const char* path, const char* arg, ...);*/ + /* PACE_Export PACE_INLINE int pace_execle (const char* path, + const char* arg, ...);*/ /** PACE's implementation of the POSIX function execlp. @@ -131,7 +135,8 @@ extern "C" { #if (PACE_HAS_POSIX_MP_UOF) # define pace_execlp execlp #endif /* PACE_HAS_POSIX_MP_UOF */ - /* PACE_INLINE int pace_execlp (const char* file, const char* arg, ...);*/ + /* PACE_Export PACE_INLINE int pace_execlp (const char* file, + const char* arg, ...);*/ /** PACE's implementation of the POSIX function execv. @@ -139,7 +144,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 3.1.2. */ #if (PACE_HAS_POSIX_MP_UOF) - PACE_INLINE int pace_execv (const char * path, char * const argv[]); + PACE_Export PACE_INLINE int pace_execv (const char * path, + char * const argv[]); #endif /* PACE_HAS_POSIX_MP_UOF */ /** @@ -148,8 +154,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 3.1.2. */ #if (PACE_HAS_POSIX_MP_UOF) - PACE_INLINE int pace_execve (const char * path, char * const argv[], - char * const envp[]); + PACE_Export PACE_INLINE int pace_execve (const char * path, + char * const argv[], + char * const envp[]); #endif /* PACE_HAS_POSIX_MP_UOF */ /** @@ -158,7 +165,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 3.1.2. */ #if (PACE_HAS_POSIX_MP_UOF) - PACE_INLINE int pace_execvp (const char * file, char * const argv[]); + PACE_Export PACE_INLINE int pace_execvp (const char * file, + char * const argv[]); #endif /* PACE_HAS_POSIX_MP_UOF */ /** @@ -167,7 +175,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 6.6.2. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_fdatasync (PACE_HANDLE fildes); + PACE_Export PACE_INLINE int pace_fdatasync (PACE_HANDLE fildes); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -176,7 +184,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 3.1.1. */ #if (PACE_HAS_POSIX_MP_UOF) - PACE_INLINE pace_pid_t pace_fork (); + PACE_Export PACE_INLINE pace_pid_t pace_fork (); #endif /* PACE_HAS_POSIX_MP_UOF */ /** @@ -185,7 +193,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 5.7.1. */ #if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE long pace_fpathconf (PACE_HANDLE fildes, int name); + PACE_Export PACE_INLINE long pace_fpathconf (PACE_HANDLE fildes, int name); #endif /* PACE_HAS_POSIX_FS_UOF */ /** @@ -194,7 +202,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 6.6.1. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_fsync (PACE_HANDLE fildes); + PACE_Export PACE_INLINE int pace_fsync (PACE_HANDLE fildes); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -203,7 +211,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 5.6.7. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_ftruncate (PACE_HANDLE fildes, pace_off_t length); + PACE_Export PACE_INLINE int pace_ftruncate (PACE_HANDLE fildes, + pace_off_t length); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /** @@ -212,7 +221,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 5.2.2. */ #if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE char * pace_getcwd (char * buf, size_t size); + PACE_Export PACE_INLINE char * pace_getcwd (char * buf, size_t size); #endif /* PACE_HAS_POSIX_FS_UOF */ /** @@ -221,7 +230,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 4.2.1. */ #if (PACE_HAS_POSIX_UG_UOF) - PACE_INLINE pace_uid_t pace_getegid (); + PACE_Export PACE_INLINE pace_uid_t pace_getegid (); #endif /* PACE_HAS_POSIX_UG_UOF */ /** @@ -230,7 +239,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 4.2.1. */ #if (PACE_HAS_POSIX_UG_UOF) - PACE_INLINE pace_uid_t pace_geteuid (); + PACE_Export PACE_INLINE pace_uid_t pace_geteuid (); #endif /* PACE_HAS_POSIX_UG_UOF */ /** @@ -239,7 +248,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 4.2.1. */ #if (PACE_HAS_POSIX_UG_UOF) - PACE_INLINE pace_uid_t pace_getgid (); + PACE_Export PACE_INLINE pace_uid_t pace_getgid (); #endif /* PACE_HAS_POSIX_UG_UOF */ /** @@ -248,7 +257,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 4.2.3. */ #if (PACE_HAS_POSIX_UG_UOF) - PACE_INLINE int pace_getgroups (int gidsetsize, pace_gid_t grouplist[]); + PACE_Export PACE_INLINE int pace_getgroups (int gidsetsize, + pace_gid_t grouplist[]); #endif /* PACE_HAS_POSIX_UG_UOF */ /** @@ -257,7 +267,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 4.2.4. */ #if (PACE_HAS_POSIX_UG_UOF) - PACE_INLINE char * pace_getlogin (); + PACE_Export PACE_INLINE char * pace_getlogin (); #endif /* PACE_HAS_POSIX_UG_UOF */ /** @@ -266,7 +276,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 4.2.4. */ #if (PACE_HAS_POSIX_UGR_UOF) - PACE_INLINE int pace_getlogin_r (char * name, size_t namesize); + PACE_Export PACE_INLINE int pace_getlogin_r (char * name, size_t namesize); #endif /* PACE_HAS_POSIX_UGR_UOF */ /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ @@ -276,7 +286,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 4.3.1. */ #if (PACE_HAS_POSIX_UG_UOF) - PACE_INLINE pace_pid_t pace_getpgrp (); + PACE_Export PACE_INLINE pace_pid_t pace_getpgrp (); #endif /* PACE_HAS_POSIX_UG_UOF */ /** @@ -285,7 +295,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 4.1.1. */ #if (PACE_HAS_POSIX_MP_UOF) - PACE_INLINE pace_pid_t pace_getpid (); + PACE_Export PACE_INLINE pace_pid_t pace_getpid (); #endif /* PACE_HAS_POSIX_MP_UOF */ /** @@ -294,7 +304,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 4.1.1. */ #if (PACE_HAS_POSIX_MP_UOF) - PACE_INLINE pace_pid_t pace_getppid (); + PACE_Export PACE_INLINE pace_pid_t pace_getppid (); #endif /* PACE_HAS_POSIX_MP_UOF */ /** @@ -303,7 +313,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 4.2.1. */ #if (PACE_HAS_POSIX_UG_UOF) - PACE_INLINE pace_uid_t pace_getuid (); + PACE_Export PACE_INLINE pace_uid_t pace_getuid (); #endif /* PACE_HAS_POSIX_UG_UOF */ /** @@ -312,7 +322,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 4.7.2. */ #if (PACE_HAS_POSIX_DS_UOF) - PACE_INLINE int pace_isatty (int fildes); + PACE_Export PACE_INLINE int pace_isatty (int fildes); #endif /* PACE_HAS_POSIX_DS_UOF */ /** @@ -321,7 +331,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 5.3.4. */ #if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE int pace_link (const char * existing, const char * new_link); + PACE_Export PACE_INLINE int pace_link (const char * existing, + const char * new_link); #endif /* PACE_HAS_POSIX_FS_UOF */ /** @@ -330,8 +341,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 6.5.3. */ #if (PACE_HAS_POSIX_FM_UOF) - PACE_INLINE pace_off_t pace_lseek (PACE_HANDLE fildes, - off_t offset, int whence); + PACE_Export PACE_INLINE pace_off_t pace_lseek (PACE_HANDLE fildes, + off_t offset, + int whence); #endif /* PACE_HAS_POSIX_FM_UOF */ /** @@ -340,7 +352,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 5.7.1. */ #if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE long pace_pathconf (const char * path, int name); + PACE_Export PACE_INLINE long pace_pathconf (const char * path, int name); #endif /* PACE_HAS_POSIX_FS_UOF */ /** @@ -349,7 +361,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 3.4.2. */ #if (PACE_HAS_POSIX_SIG_UOF) - PACE_INLINE int pace_pause (); + PACE_Export PACE_INLINE int pace_pause (); #endif /* PACE_HAS_POSIX_SIG_UOF */ /** @@ -358,7 +370,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 6.1.1. */ #if (PACE_HAS_POSIX_P_UOF) - PACE_INLINE int pace_pipe (PACE_HANDLE fildes[2]); + PACE_Export PACE_INLINE int pace_pipe (PACE_HANDLE fildes[2]); #endif /* PACE_HAS_POSIX_P_UOF */ /** @@ -367,7 +379,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 6.4.1. */ #if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE pace_ssize_t pace_read (PACE_HANDLE fildes, void * buf, size_t nbyte); + PACE_Export PACE_INLINE pace_ssize_t pace_read (PACE_HANDLE fildes, + void * buf, + size_t nbyte); #endif /* PACE_HAS_POSIX_DI_UOF */ /** @@ -376,7 +390,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 5.5.2. */ #if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE int pace_rmdir (const char * path); + PACE_Export PACE_INLINE int pace_rmdir (const char * path); #endif /* PACE_HAS_POSIX_FS_UOF */ /** @@ -385,7 +399,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 4.2.2. */ #if (PACE_HAS_POSIX_UG_UOF) - PACE_INLINE int pace_setgid (pace_gid_t gid); + PACE_Export PACE_INLINE int pace_setgid (pace_gid_t gid); #endif /* PACE_HAS_POSIX_UG_UOF */ /** @@ -394,7 +408,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 4.3.3. */ #if (PACE_HAS_POSIX_JC_UOF) - PACE_INLINE int pace_setpgid (pace_pid_t pid, pace_pid_t pgid); + PACE_Export PACE_INLINE int pace_setpgid (pace_pid_t pid, pace_pid_t pgid); #endif /* PACE_HAS_POSIX_JC_UOF */ /** @@ -403,7 +417,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 4.3.2. */ #if (PACE_HAS_POSIX_UG_UOF) - PACE_INLINE pace_pid_t pace_setsid (); + PACE_Export PACE_INLINE pace_pid_t pace_setsid (); #endif /* PACE_HAS_POSIX_UG_UOF */ /** @@ -412,7 +426,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 4.2.2. */ #if (PACE_HAS_POSIX_UG_UOF) - PACE_INLINE int pace_setuid (pace_uid_t uid); + PACE_Export PACE_INLINE int pace_setuid (pace_uid_t uid); #endif /* PACE_HAS_POSIX_UG_UOF */ /** @@ -421,7 +435,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 3.4.3. */ #if (PACE_HAS_POSIX_MP_UOF) - PACE_INLINE unsigned pace_sleep (unsigned int seconds); + PACE_Export PACE_INLINE unsigned pace_sleep (unsigned int seconds); #endif /* PACE_HAS_POSIX_MP_UOF */ /** @@ -430,7 +444,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 4.8.1. */ #if (PACE_HAS_POSIX_SP_UOF) - PACE_INLINE long pace_sysconf (int name); + PACE_Export PACE_INLINE long pace_sysconf (int name); #endif /* PACE_HAS_POSIX_SP_UOF */ /** @@ -439,7 +453,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 7.2.3.1. */ #if (PACE_HAS_POSIX_JC_UOF) - PACE_INLINE pace_pid_t pace_tcgetpgrp (PACE_HANDLE fildes); + PACE_Export PACE_INLINE pace_pid_t pace_tcgetpgrp (PACE_HANDLE fildes); #endif /* PACE_HAS_POSIX_JC_UOF */ /** @@ -448,7 +462,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 7.2.3.1. */ #if (PACE_HAS_POSIX_JC_UOF) - PACE_INLINE int pace_tcsetpgrp (PACE_HANDLE fildes, pace_pid_t pgrp_id); + PACE_Export PACE_INLINE int pace_tcsetpgrp (PACE_HANDLE fildes, + pace_pid_t pgrp_id); #endif /* PACE_HAS_POSIX_JC_UOF */ /** @@ -457,7 +472,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 4.7.2. */ #if (PACE_HAS_POSIX_DS_UOF) - PACE_INLINE char * pace_ttyname (PACE_HANDLE fildes); + PACE_Export PACE_INLINE char * pace_ttyname (PACE_HANDLE fildes); #endif /* PACE_HAS_POSIX_DS_UOF */ /** @@ -466,7 +481,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 4.7.2. */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_ttyname_r (PACE_HANDLE fildes, char * name, size_t namesize); + PACE_Export PACE_INLINE int pace_ttyname_r (PACE_HANDLE fildes, + char * name, + size_t namesize); #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ @@ -476,7 +493,7 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 5.5.1. */ #if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE int pace_unlink (const char * path); + PACE_Export PACE_INLINE int pace_unlink (const char * path); #endif /* PACE_HAS_POSIX_FS_UOF */ /** @@ -485,7 +502,9 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 6.4.2. */ #if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE pace_ssize_t pace_write (PACE_HANDLE fildes, const void * buf, size_t nbyte); + PACE_Export PACE_INLINE pace_ssize_t pace_write (PACE_HANDLE fildes, + const void * buf, + size_t nbyte); #endif /* PACE_HAS_POSIX_DI_UOF */ #if defined (PACE_HAS_INLINE) diff --git a/PACE/pace/utime.h b/PACE/pace/utime.h index 9fdd37c6bf2..90a5cfa1a22 100644 --- a/PACE/pace/utime.h +++ b/PACE/pace/utime.h @@ -36,8 +36,8 @@ extern "C" { IEEE Std 1003.1, 1996 Edition), Section 5.6.6. */ #if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE int pace_utime (const char * path, - const pace_utimbuf * times); + PACE_Export PACE_INLINE int pace_utime (const char * path, + const pace_utimbuf * times); #endif /* PACE_HAS_POSIX_FS_UOF */ #if defined (PACE_HAS_INLINE) diff --git a/PACE/pace/vxworks/aio.inl b/PACE/pace/vxworks/aio.inl index 05e62e2b9ae..f79a7573c4b 100644 --- a/PACE/pace/vxworks/aio.inl +++ b/PACE/pace/vxworks/aio.inl @@ -18,6 +18,8 @@ PACE_INLINE int pace_aio_cancel (PACE_HANDLE fildes, pace_aiocb * aiocbp) { + PACE_TRACE("pace_aio_cancel"); + return aio_cancel (fildes, aiocbp); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -27,6 +29,8 @@ PACE_INLINE int pace_aio_error (const pace_aiocb * aiocbp) { + PACE_TRACE("pace_aio_error"); + return aio_error (PACE_NONCONST_ARG_CAST (struct aiocb *) aiocbp); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -36,6 +40,8 @@ PACE_INLINE int pace_aio_fsync (int op, pace_aiocb * aiocbp) { + PACE_TRACE("pace_aio_fsync"); + PACE_UNUSED_ARG (op); PACE_UNUSED_ARG (aiocbp); PACE_ERRNO_NO_SUPPORT_RETURN (-1); @@ -47,6 +53,8 @@ PACE_INLINE int pace_aio_read (pace_aiocb * aiocbp) { + PACE_TRACE("pace_aio_read"); + return aio_read (aiocbp); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -56,6 +64,8 @@ PACE_INLINE int pace_aio_return (pace_aiocb * aiocbp) { + PACE_TRACE("pace_aio_return"); + return aio_return (aiocbp); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -67,6 +77,8 @@ pace_aio_suspend (const pace_aiocb * const list[], int nent, const pace_timespec * timeout) { + PACE_TRACE("pace_aio_suspend"); + return aio_suspend (PACE_AIO_SUSPEND_LIST_ARG_CAST list, nent, PACE_NONCONST_ARG_CAST (struct timespec *) timeout); @@ -78,6 +90,8 @@ PACE_INLINE int pace_aio_write (pace_aiocb * aiocbp) { + PACE_TRACE("pace_aio_write"); + return aio_write (aiocbp); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -90,6 +104,8 @@ pace_lio_listio (int mode, int nent, pace_sigevent * sig) { + PACE_TRACE("pace_lio_listio"); + return lio_listio (mode, PACE_NONCONST_ARG_CAST (struct aiocb **) list, nent, sig); } diff --git a/PACE/pace/vxworks/ctype.inl b/PACE/pace/vxworks/ctype.inl index 21aca11b729..df9afc8dd76 100644 --- a/PACE/pace/vxworks/ctype.inl +++ b/PACE/pace/vxworks/ctype.inl @@ -20,6 +20,8 @@ PACE_INLINE int pace_isalnum (int c) { + PACE_TRACE("pace_isalnum"); + return isalnum (c); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -29,6 +31,8 @@ PACE_INLINE int pace_isalpha (int c) { + PACE_TRACE("pace_isalpha"); + return isalpha (c); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -38,6 +42,8 @@ PACE_INLINE int pace_iscntrl (int c) { + PACE_TRACE("pace_iscntrl"); + return iscntrl (c); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -47,6 +53,8 @@ PACE_INLINE int pace_isdigit (int c) { + PACE_TRACE("pace_isdigit"); + return isdigit (c); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -56,6 +64,8 @@ PACE_INLINE int pace_isgraph (int c) { + PACE_TRACE("pace_isgraph"); + return isgraph (c); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -65,6 +75,8 @@ PACE_INLINE int pace_islower (int c) { + PACE_TRACE("pace_islower"); + return islower (c); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -74,6 +86,8 @@ PACE_INLINE int pace_isprint (int c) { + PACE_TRACE("pace_isprint"); + return isprint (c); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -83,6 +97,8 @@ PACE_INLINE int pace_ispunct (int c) { + PACE_TRACE("pace_ispunct"); + return ispunct (c); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -92,6 +108,8 @@ PACE_INLINE int pace_isspace (int c) { + PACE_TRACE("pace_isspace"); + return isspace (c); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -101,6 +119,8 @@ PACE_INLINE int pace_isupper (int c) { + PACE_TRACE("pace_isupper"); + return isupper (c); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -110,6 +130,8 @@ PACE_INLINE int pace_isxdigit (int c) { + PACE_TRACE("pace_isxdigit"); + return isxdigit (c); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -119,6 +141,8 @@ PACE_INLINE int pace_tolower (int c) { + PACE_TRACE("pace_tolower"); + return tolower (c); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -128,6 +152,8 @@ PACE_INLINE int pace_toupper (int c) { + PACE_TRACE("pace_toupper"); + return toupper (c); } #endif /* PACE_HAS_POSIX_CLS_UOF */ diff --git a/PACE/pace/vxworks/dirent.inl b/PACE/pace/vxworks/dirent.inl index 5c6c6cd9b14..71d68023212 100644 --- a/PACE/pace/vxworks/dirent.inl +++ b/PACE/pace/vxworks/dirent.inl @@ -18,6 +18,8 @@ PACE_INLINE PACE_DIR * pace_opendir (const char * dirname) { + PACE_TRACE("pace_opendir"); + return opendir (PACE_NONCONST_ARG_CAST(char *) dirname); } #endif /* PACE_HAS_POSIX_FS_UOF */ @@ -27,6 +29,8 @@ PACE_INLINE pace_dirent * pace_readdir (PACE_DIR * dirp) { + PACE_TRACE("pace_readdir"); + return readdir (dirp); } #endif /* PACE_HAS_POSIX_FS_UOF */ @@ -37,6 +41,8 @@ int pace_readdir_r (PACE_DIR * dirp, pace_dirent * entry, pace_dirent ** result) { + PACE_TRACE("pace_readdir_r"); + PACE_UNUSED_ARG (entry); /* <result> has better not be 0! */ *result = pace_readdir (dirp); @@ -49,6 +55,8 @@ PACE_INLINE void pace_rewinddir (PACE_DIR * dirp) { + PACE_TRACE("pace_rewinddir"); + rewinddir (dirp); return; } @@ -59,6 +67,8 @@ PACE_INLINE int pace_closedir (PACE_DIR * dirp) { + PACE_TRACE("pace_closedir"); + return closedir (dirp); } #endif /* PACE_HAS_POSIX_FS_UOF */ diff --git a/PACE/pace/vxworks/fcntl.inl b/PACE/pace/vxworks/fcntl.inl index f4dc5fd8dfe..23308b8fe22 100644 --- a/PACE/pace/vxworks/fcntl.inl +++ b/PACE/pace/vxworks/fcntl.inl @@ -18,6 +18,22 @@ PACE_INLINE int pace_creat (const char * path, pace_mode_t mode) { + PACE_TRACE("pace_creat"); + return creat (path, mode); } #endif /* PACE_HAS_POSIX_FS_UOF */ + +#if (PACE_HAS_POSIX_FM_UOF) +PACE_INLINE +int +pace_fcntl (PACE_HANDLE fildes, int cmd, long arg) +{ + PACE_TRACE("pace_fcntl"); + + PACE_UNUSED_ARG(fildes); + PACE_UNUSED_ARG(cmd); + PACE_UNUSED_ARG(arg); + PACE_ERRNO_NO_SUPPORT_RETURN (-1); +} +#endif /* PACE_HAS_POSIX_FS_UOF */ diff --git a/PACE/pace/vxworks/grp.inl b/PACE/pace/vxworks/grp.inl index db0a124ec14..428ac7364e5 100644 --- a/PACE/pace/vxworks/grp.inl +++ b/PACE/pace/vxworks/grp.inl @@ -18,6 +18,8 @@ PACE_INLINE pace_group * pace_getgrgid (pace_gid_t gid) { + PACE_TRACE("pace_getgrgid"); + /* getgrgid() is not supported: just one user anyways */ PACE_UNUSED_ARG (gid); return 0; @@ -33,6 +35,8 @@ pace_getgrgid_r (pace_gid_t gid, size_t bufsize, pace_group ** result) { + PACE_TRACE("pace_getgrgid_r"); + /* getgrgid_r() is not supported: just one user anyways */ PACE_UNUSED_ARG (gid); PACE_UNUSED_ARG (grp); @@ -48,6 +52,8 @@ PACE_INLINE pace_group * pace_getgrnam (const char * name) { + PACE_TRACE("pace_getgrnam"); + /* getgrnam() is not supported: just one user anyways */ PACE_UNUSED_ARG (name); return 0; @@ -63,6 +69,8 @@ pace_getgrnam_r (const char * name, size_t bufsize, pace_group ** result) { + PACE_TRACE("pace_getgrnam_r"); + /* getgrnam_r() is not supported: just one user anyways */ PACE_UNUSED_ARG (name); PACE_UNUSED_ARG (grp); diff --git a/PACE/pace/vxworks/locale.inl b/PACE/pace/vxworks/locale.inl index 2ab01a32dce..5ce0566e9c3 100644 --- a/PACE/pace/vxworks/locale.inl +++ b/PACE/pace/vxworks/locale.inl @@ -20,6 +20,8 @@ PACE_INLINE pace_lconv * pace_localeconv (void) { + PACE_TRACE("pace_localeconv"); + return localeconv (); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -29,6 +31,8 @@ PACE_INLINE char * pace_setlocale (int category, const char * locale) { + PACE_TRACE("pace_setlocale"); + return setlocale (category, locale); } #endif /* PACE_HAS_POSIX_MP_UOF */ diff --git a/PACE/pace/vxworks/math.inl b/PACE/pace/vxworks/math.inl index 05feb58dbee..81bd1bc19e2 100644 --- a/PACE/pace/vxworks/math.inl +++ b/PACE/pace/vxworks/math.inl @@ -21,6 +21,8 @@ PACE_INLINE double pace_acos (double x) { + PACE_TRACE("pace_acos"); + return acos (x); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -30,6 +32,8 @@ PACE_INLINE double pace_asin (double x) { + PACE_TRACE("pace_asin"); + return asin (x); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -39,6 +43,8 @@ PACE_INLINE double pace_atan (double x) { + PACE_TRACE("pace_atan"); + return atan (x); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -48,6 +54,8 @@ PACE_INLINE double pace_atan2 (double x, double y) { + PACE_TRACE("pace_atan2"); + return atan2 (x, y); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -57,6 +65,8 @@ PACE_INLINE double pace_cos (double x) { + PACE_TRACE("pace_cos"); + return cos (x); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -66,6 +76,8 @@ PACE_INLINE double pace_sin (double x) { + PACE_TRACE("pace_sin"); + return sin (x); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -75,6 +87,8 @@ PACE_INLINE double pace_tan (double x) { + PACE_TRACE("pace_tan"); + return tan (x); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -84,6 +98,8 @@ PACE_INLINE double pace_cosh (double x) { + PACE_TRACE("pace_cosh"); + return cosh (x); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -93,6 +109,8 @@ PACE_INLINE double pace_sinh (double x) { + PACE_TRACE("pace_sinh"); + return sinh (x); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -102,6 +120,8 @@ PACE_INLINE double pace_tanh (double x) { + PACE_TRACE("pace_tanh"); + return tanh (x); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -111,6 +131,8 @@ PACE_INLINE double pace_exp (double x) { + PACE_TRACE("pace_exp"); + return exp (x); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -120,6 +142,8 @@ PACE_INLINE double pace_frexp (double x, int * exp) { + PACE_TRACE("pace_frexp"); + return frexp (x, exp); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -129,6 +153,8 @@ PACE_INLINE double pace_ldexp (double x, int exp) { + PACE_TRACE("pace_ldexp"); + return ldexp (x, exp); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -138,6 +164,8 @@ PACE_INLINE double pace_log (double x) { + PACE_TRACE("pace_log"); + return log (x); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -147,6 +175,8 @@ PACE_INLINE double pace_log10 (double x) { + PACE_TRACE("pace_log10"); + return log10 (x); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -156,6 +186,8 @@ PACE_INLINE double pace_modf (double x, double * iptr) { + PACE_TRACE("pace_modf"); + return modf (x, iptr); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -165,6 +197,8 @@ PACE_INLINE double pace_pow (double x, double y) { + PACE_TRACE("pace_pow"); + return pow (x, y); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -174,6 +208,8 @@ PACE_INLINE double pace_sqrt (double x) { + PACE_TRACE("pace_sqrt"); + return sqrt (x); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -183,6 +219,8 @@ PACE_INLINE double pace_ceil (double x) { + PACE_TRACE("pace_ceil"); + return ceil (x); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -192,6 +230,8 @@ PACE_INLINE double pace_fabs (double x) { + PACE_TRACE("pace_fabs"); + return fabs (x); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -201,6 +241,8 @@ PACE_INLINE double pace_floor (double x) { + PACE_TRACE("pace_floor"); + return floor (x); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -210,6 +252,8 @@ PACE_INLINE double pace_fmod (double x, double y) { + PACE_TRACE("pace_fmod"); + return fmod (x, y); } #endif /* PACE_HAS_POSIX_CLS_UOF */ diff --git a/PACE/pace/vxworks/mman.inl b/PACE/pace/vxworks/mman.inl index 5ec4f55a781..79e07ea78c0 100644 --- a/PACE/pace/vxworks/mman.inl +++ b/PACE/pace/vxworks/mman.inl @@ -20,6 +20,8 @@ PACE_INLINE int pace_mlock (const void * addr, pace_size_t len) { + PACE_TRACE("pace_mlock"); + return mlock (((char*)addr), len); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -29,6 +31,8 @@ PACE_INLINE int pace_mlockall (int flags) { + PACE_TRACE("pace_mlockall"); + return mlockall (flags); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -43,6 +47,8 @@ pace_mmap (void * addr, PACE_HANDLE fildes, pace_off_t off) { + PACE_TRACE("pace_mmap"); + PACE_UNUSED_ARG(addr); PACE_UNUSED_ARG(len); PACE_UNUSED_ARG(prot); @@ -58,6 +64,8 @@ PACE_INLINE int pace_munlock (const void * addr, pace_size_t len) { + PACE_TRACE("pace_munlock"); + return munlock (((char*)addr), len); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -69,6 +77,8 @@ pace_mprotect (void * addr, pace_size_t len, int prot) { + PACE_TRACE("pace_mprotect"); + PACE_UNUSED_ARG(addr); PACE_UNUSED_ARG(len); PACE_UNUSED_ARG(prot); @@ -83,6 +93,8 @@ pace_msync (void * addr, pace_size_t len, int flags) { + PACE_TRACE("pace_msync"); + PACE_UNUSED_ARG(addr); PACE_UNUSED_ARG(len); PACE_UNUSED_ARG(flags); @@ -95,6 +107,8 @@ PACE_INLINE int pace_munlockall () { + PACE_TRACE("pace_munlockall"); + return munlockall (); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -104,6 +118,8 @@ PACE_INLINE int pace_munmap (void * addr, pace_size_t len) { + PACE_TRACE("pace_munmap"); + PACE_UNUSED_ARG(addr); PACE_UNUSED_ARG(len); PACE_ERRNO_NO_SUPPORT_RETURN (-1); @@ -117,6 +133,8 @@ pace_shm_open (const char * name, int oflag, pace_mode_t mode) { + PACE_TRACE("pace_shm_open"); + /* Just use open per ACE. */ return pace_open (name, oflag, mode); } @@ -127,6 +145,8 @@ PACE_INLINE int pace_shm_unlink (const char * name) { + PACE_TRACE("pace_shm_unlink"); + /* Just use unlink per ACE. */ return pace_unlink (name); } diff --git a/PACE/pace/vxworks/mqueue.inl b/PACE/pace/vxworks/mqueue.inl index 2459563e9b3..78b983e5e66 100644 --- a/PACE/pace/vxworks/mqueue.inl +++ b/PACE/pace/vxworks/mqueue.inl @@ -18,6 +18,8 @@ PACE_INLINE int pace_mq_close (pace_mqd_t mqdes) { + PACE_TRACE("pace_mq_close"); + return mq_close (mqdes); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -28,6 +30,8 @@ int pace_mq_getattr (pace_mqd_t mqdes, pace_mq_attr * mqstat) { + PACE_TRACE("pace_mq_getattr"); + return mq_getattr (mqdes, mqstat); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -38,6 +42,8 @@ int pace_mq_notify (pace_mqd_t mqdes, const pace_sigevent * notification) { + PACE_TRACE("pace_mq_notify"); + return mq_notify (mqdes, notification); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -50,6 +56,8 @@ pace_mq_receive (pace_mqd_t mqdes, size_t msg_len, unsigned int * msg_prio) { + PACE_TRACE("pace_mq_receive"); + return mq_receive (mqdes, msg_ptr, msg_len, msg_prio); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -62,6 +70,8 @@ pace_mq_send (pace_mqd_t mqdes, size_t msg_len, unsigned int msg_prio) { + PACE_TRACE("pace_mq_send"); + return mq_send (mqdes, msg_ptr, msg_len, msg_prio); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -73,6 +83,8 @@ pace_mq_setattr (pace_mqd_t mqdes, const pace_mq_attr * mqstat, pace_mq_attr * omqstat) { + PACE_TRACE("pace_mq_setattr"); + return mq_setattr (mqdes, mqstat, omqstat); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -82,6 +94,8 @@ PACE_INLINE int pace_mq_unlink (const char * name) { + PACE_TRACE("pace_mq_unlink"); + return mq_unlink (name); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/vxworks/pthread.c b/PACE/pace/vxworks/pthread.c index e8c980ba639..27e88480dcf 100644 --- a/PACE/pace/vxworks/pthread.c +++ b/PACE/pace/vxworks/pthread.c @@ -59,6 +59,9 @@ pthread_q_entry * pacevx_pthread_queue_get_entry() { int i; + + PACE_TRACE("pacevx_pthread_queue_get_entry"); + for (i = 0; i<PTHEAD_QUEUE_MAX_LEN; i++) { if (pthread_queue[i].status == FALSE) @@ -77,6 +80,8 @@ pacevx_pthread_queue_get_entry() void pacevx_pthread_destructor_key(pace_pthread_key_t key, void * arg) { + PACE_TRACE("pacevx_pthread_destructor_key"); + if (pacevx_pthread_key_validate(key)) { if (keyList[key].destructor != NULL) @@ -100,6 +105,8 @@ pacevx_pthread_destructor_thread(pace_pthread_t pthread) { int i; + PACE_TRACE("pacevx_pthread_destructor_thread"); + for (i = 0; i < PTHREAD_KEYS_MAX; i ++) { if (pthread->keyvaluelist[i] != NULL) @@ -118,13 +125,15 @@ pacevx_pthread_proc_exit(pace_pthread_t pthread, void *value_ptr) int key; int needgive = 0; + PACE_TRACE("pacevx_pthread_proc_exit"); + pacevx_pthread_cleanup_popall(pthread); /* thread storage data cleanup is automatically*/ pacevx_pthread_destructor_thread(pthread); /* joinable or detached */ - if(pthread->detachflag == PTHREAD_CREATE_DETACHED) + if (pthread->detachflag == PTHREAD_CREATE_DETACHED) { free(pthread); } @@ -135,7 +144,7 @@ pacevx_pthread_proc_exit(pace_pthread_t pthread, void *value_ptr) /* pass the value */ pthread->joinvalue = value_ptr; - switch(pthread->joinstate) + switch (pthread->joinstate) { case JOIN_PENDING: pthread->joinstate = JOIN_TERMINATED; @@ -149,7 +158,7 @@ pacevx_pthread_proc_exit(pace_pthread_t pthread, void *value_ptr) intUnlock(key); /* unblock the calling thread */ - if(needgive) + if (needgive) semGive(((pace_pthread_t)(pthread->jointhread))->joinSem); } } @@ -162,6 +171,8 @@ pacevx_pthread_verify(pace_pthread_t pthread) int key; pthread_q_entry * entry; + PACE_TRACE("pacevx_pthread_verify"); + key = intLock(); /* if queue is empty */ @@ -199,6 +210,8 @@ pacevx_pthread_run_cleanup (WIND_TCB *pTcb) { pace_pthread_t pthread; + PACE_TRACE("pacevx_pthread_run_cleanup"); + /* free thread tcb only*/ if (pTcb->_USER_SPARE4 != 0) { @@ -219,6 +232,8 @@ pacevx_pthread_queue_add(pace_pthread_t pthread) int key; pthread_q_entry * entry; + PACE_TRACE("pacevx_pthread_queue_add"); + key = intLock(); if ((entry = pacevx_pthread_queue_get_entry()) != NULL) @@ -257,6 +272,8 @@ pacevx_pthread_queue_remove(pace_pthread_t pthread) pthread_q_entry * entry1; pthread_q_entry * entry2; + PACE_TRACE("pacevx_pthread_queue_remove"); + key = intLock(); if (first == NULL) @@ -325,6 +342,8 @@ pacevx_pthread_cleanup_popall(pace_pthread_t thread) int count; int i; + PACE_TRACE("pacevx_pthread_cleanup_popall"); + count = thread->rtnCount - 1; for (i = count; i > 0 ; i--) { @@ -343,6 +362,8 @@ pacevx_pthread_key_validate(pace_pthread_key_t key) { int intkey; + PACE_TRACE("pacevx_pthread_key_validate"); + intkey = intLock(); if (keyList[key].valid) @@ -366,14 +387,16 @@ pacevx_pthread_key_validate(pace_pthread_key_t key) #if (PACE_HAS_POSIX_NONUOF_FUNCS) int -pace_pthread_cond_timedwait (pace_pthread_cond_t * cond, - pace_pthread_mutex_t * mutex, - const pace_timespec * abstime) +pthread_cond_timedwait (pace_pthread_cond_t * cond, + pace_pthread_mutex_t * mutex, + const pace_timespec * abstime) { STATUS status; int timeval = 0; int errornumber, returnval = 0; + PACE_TRACE("pthread_cond_timedwait"); + if (pace_pthread_mutex_unlock(mutex) != OK) return ERROR; /* convert the abstime to timeval */ @@ -399,13 +422,15 @@ pace_pthread_cond_timedwait (pace_pthread_cond_t * cond, #if (PACE_HAS_POSIX_NONUOF_FUNCS) int -pace_pthread_cond_wait (pace_pthread_cond_t * cond, - pace_pthread_mutex_t * mutex) +pthread_cond_wait (pace_pthread_cond_t * cond, + pace_pthread_mutex_t * mutex) { STATUS status; int errornumber; int returnval = 0; + PACE_TRACE("pthread_cond_wait"); + if (pace_pthread_mutex_unlock(mutex) != OK) return ERROR; @@ -429,11 +454,13 @@ pace_pthread_cond_wait (pace_pthread_cond_t * cond, #if (PACE_HAS_POSIX_NONUOF_FUNCS) # if defined (PACE_HAS_CPLUSPLUS) int -pace_pthread_create (pace_pthread_t * thread, - const pace_pthread_attr_t * attr, - pace_create_pf start_routine, - void * arg) +pthread_create (pace_pthread_t * thread, + const pace_pthread_attr_t * attr, + pace_create_pf start_routine, + void * arg) { + PACE_TRACE("pthread_create"); + pace_pthread_attr_t pattr; char * pname; int taskid; @@ -457,6 +484,7 @@ pace_pthread_create (pace_pthread_t * thread, (SCHED_FIFO_HIGH_PRI - pattr->schedule.sched_priority), VX_FP_TASK, pattr->stacksize, (FUNCPTR)start_routine, (int)arg, 0,0,0,0,0,0,0,0,0); + if (taskid == ERROR) return ERROR; @@ -504,10 +532,10 @@ pace_pthread_create (pace_pthread_t * thread, } # else /* ! PACE_HAS_CPLUSPLUS */ int -pace_pthread_create (pace_pthread_t * thread, - const pace_pthread_attr_t * attr, - void * (*start_routine) (void*), - void * arg) +pthread_create (pace_pthread_t * thread, + const pace_pthread_attr_t * attr, + void * (*start_routine) (void*), + void * arg) { pace_pthread_attr_t pattr; char * pname; @@ -515,13 +543,15 @@ pace_pthread_create (pace_pthread_t * thread, pace_pthread_t pthread; WIND_TCB * pTcb; + PACE_TRACE("pthread_create"); + if (attr == 0) pattr = pthread_attr_default; else if (*attr == 0) - pattr = pthread_attr_default; + pattr = pthread_attr_default; else - pattr = *attr; + pattr = *attr; if (pattr->name[0] != '\0') /* name is provided */ pname = pattr->name; @@ -532,6 +562,7 @@ pace_pthread_create (pace_pthread_t * thread, (SCHED_FIFO_HIGH_PRI - pattr->schedule.sched_priority), VX_FP_TASK, pattr->stacksize, (FUNCPTR)start_routine, (int)arg, 0,0,0,0,0,0,0,0,0); + if (taskid == ERROR) return ERROR; @@ -582,12 +613,14 @@ pace_pthread_create (pace_pthread_t * thread, #if (PACE_HAS_POSIX_NONUOF_FUNCS) int -pace_pthread_detach (pace_pthread_t thread) +pthread_detach (pace_pthread_t thread) { int key; int needfree; needfree = 0; + PACE_TRACE("pthread_detach"); + if (!pacevx_pthread_verify(thread)) return EINVAL; @@ -624,7 +657,7 @@ pace_pthread_detach (pace_pthread_t thread) #if (PACE_HAS_POSIX_NONUOF_FUNCS) int -pace_pthread_join (pace_pthread_t thread, void ** value_ptr) +pthread_join (pace_pthread_t thread, void ** value_ptr) { /* * The pthread_join() function suspends execution of the calling @@ -638,6 +671,8 @@ pace_pthread_join (pace_pthread_t thread, void ** value_ptr) int needfree; int key; + PACE_TRACE("pthread_join"); + if (!pacevx_pthread_verify(thread)) return ERROR; @@ -689,9 +724,11 @@ pace_pthread_join (pace_pthread_t thread, void ** value_ptr) #if (PACE_HAS_POSIX_NONUOF_FUNCS) # if defined (PACE_HAS_CPLUSPLUS) int -pace_pthread_key_create (pace_pthread_key_t * key, - pace_keycreate_pf destructor) +pthread_key_create (pace_pthread_key_t * key, + pace_keycreate_pf destructor) { + PACE_TRACE("pthread_key_create"); + /* * Create a thread-specific data key. Also initialize the * data structure if it is called first time. @@ -732,8 +769,8 @@ pace_pthread_key_create (pace_pthread_key_t * key, } #else /* ! PACE_HAS_CPLUSPLUS */ int -pace_pthread_key_create (pace_pthread_key_t * key, - void (*destructor)(void*)) +pthread_key_create (pace_pthread_key_t * key, + void (*destructor)(void*)) { /* * Create a thread-specific data key. Also initialize the @@ -742,6 +779,8 @@ pace_pthread_key_create (pace_pthread_key_t * key, int i; int intkey; + PACE_TRACE("pthread_key_create"); + /* do the initialization if it is the first time */ if (initialized == 0) { @@ -778,10 +817,12 @@ pace_pthread_key_create (pace_pthread_key_t * key, #if (PACE_HAS_POSIX_NONUOF_FUNCS) int -pace_pthread_key_delete (pace_pthread_key_t key) +pthread_key_delete (pace_pthread_key_t key) { int intkey; + PACE_TRACE("pthread_key_delete"); + if ((key < 0) || (key >= PTHREAD_KEYS_MAX)) return ERROR; @@ -799,9 +840,11 @@ pace_pthread_key_delete (pace_pthread_key_t key) #if (PACE_HAS_POSIX_NONUOF_FUNCS) # if defined (PACE_HAS_CPLUSPLUS) int -pace_pthread_once (pace_pthread_once_t * once_control, - pace_once_pf void_routine) +pthread_once (pace_pthread_once_t * once_control, + pace_once_pf void_routine) { + PACE_TRACE("pthread_once"); + /* * Once function allows the function to be executed exact only once * Subsequent calls of pthread_once() with the same once_control will @@ -838,8 +881,8 @@ pace_pthread_once (pace_pthread_once_t * once_control, } # else /* ! PACE_HAS_CPLUSPLUS */ int -pace_pthread_once (pace_pthread_once_t * once_control, - void (*void_routine) (void)) +pthread_once (pace_pthread_once_t * once_control, + void (*void_routine) (void)) { /* * Once function allows the function to be executed exact only once @@ -850,6 +893,8 @@ pace_pthread_once (pace_pthread_once_t * once_control, int key; pace_pthread_t pthread; + PACE_TRACE("pthread_once"); + if ((pthread = pace_pthread_self()) == NULL) return ERROR; @@ -881,8 +926,10 @@ pace_pthread_once (pace_pthread_once_t * once_control, #if (PACE_HAS_POSIX_NONUOF_FUNCS) int -pace_pthread_attr_init (pace_pthread_attr_t * attr) +pthread_attr_init (pace_pthread_attr_t * attr) { + PACE_TRACE("pthread_attr_init"); + /* * Attempt to allocate memory for the attributes object. */ @@ -906,9 +953,11 @@ pace_pthread_attr_init (pace_pthread_attr_t * attr) #if (PACE_HAS_POSIX_NONUOF_FUNCS) int -pace_pthread_attr_setdetachstate (pace_pthread_attr_t * attr, - int detachstate) +pthread_attr_setdetachstate (pace_pthread_attr_t * attr, + int detachstate) { + PACE_TRACE("pthread_attr_setdetachstate"); + if ((detachstate != PTHREAD_CREATE_DETACHED) || (detachstate != PTHREAD_CREATE_JOINABLE)) { @@ -924,9 +973,11 @@ pace_pthread_attr_setdetachstate (pace_pthread_attr_t * attr, #if (PACE_HAS_POSIX_NONUOF_FUNCS) int -pace_pthread_attr_setschedparam (pace_pthread_attr_t * attr, - const pace_sched_param * param) +pthread_attr_setschedparam (pace_pthread_attr_t * attr, + const pace_sched_param * param) { + PACE_TRACE("pthread_attr_setschedparam"); + /* range check */ if (param->sched_priority > SCHED_RR_HIGH_PRI || param->sched_priority < SCHED_RR_LOW_PRI ) @@ -941,8 +992,10 @@ pace_pthread_attr_setschedparam (pace_pthread_attr_t * attr, #if (PACE_HAS_POSIX_NONUOF_FUNCS) int -pace_pthread_cancel (pace_pthread_t thread) +pthread_cancel (pace_pthread_t thread) { + PACE_TRACE("pthread_cancel"); + /* * In VxWorks, to cancel a thread is to delete a task. */ @@ -961,10 +1014,12 @@ pace_pthread_cancel (pace_pthread_t thread) #if (PACE_HAS_POSIX_NONUOF_FUNCS) int -pace_pthread_getschedparam (pace_pthread_t thread, - int * policy, - pace_sched_param * param) +pthread_getschedparam (pace_pthread_t thread, + int * policy, + pace_sched_param * param) { + PACE_TRACE("pthread_getschedparam"); + if (thread == 0) return ERROR; @@ -983,10 +1038,12 @@ pace_pthread_getschedparam (pace_pthread_t thread, #if (PACE_HAS_POSIX_NONUOF_FUNCS) void * -pace_pthread_getspecific (pace_pthread_key_t key) +pthread_getspecific (pace_pthread_key_t key) { pace_pthread_t pthread; + PACE_TRACE("pthread_getspecific"); + if (!pacevx_pthread_key_validate(key)) return NULL; @@ -1001,8 +1058,8 @@ pace_pthread_getspecific (pace_pthread_key_t key) #if (PACE_HAS_POSIX_NONUOF_FUNCS) int -pace_pthread_mutex_init (pace_pthread_mutex_t * mutex, - const pace_pthread_mutexattr_t * attr) +pthread_mutex_init (pace_pthread_mutex_t * mutex, + const pace_pthread_mutexattr_t * attr) { /* * Initialises the mutex referenced by mutex with attributes @@ -1015,6 +1072,8 @@ pace_pthread_mutex_init (pace_pthread_mutex_t * mutex, */ int options = SEM_Q_FIFO; + PACE_TRACE("pthread_mutex_init"); + if (attr != NULL) { switch ((*attr)->protocol) @@ -1056,11 +1115,13 @@ pace_pthread_mutex_init (pace_pthread_mutex_t * mutex, #if (PACE_HAS_POSIX_NONUOF_FUNCS) int -pace_pthread_mutex_lock (pace_pthread_mutex_t * mutex) +pthread_mutex_lock (pace_pthread_mutex_t * mutex) { STATUS status; int errornumber; + PACE_TRACE("pthread_mutex_lock"); + status = semTake(*mutex, WAIT_FOREVER); if (status == OK) return OK; @@ -1077,11 +1138,13 @@ pace_pthread_mutex_lock (pace_pthread_mutex_t * mutex) #if (PACE_HAS_POSIX_NONUOF_FUNCS) int -pace_pthread_mutex_trylock (pace_pthread_mutex_t * mutex) +pthread_mutex_trylock (pace_pthread_mutex_t * mutex) { STATUS status; int errornumber; + PACE_TRACE("pthread_mutex_trylock"); + status = semTake(*mutex, NO_WAIT); if (status == OK) return OK; @@ -1100,11 +1163,13 @@ pace_pthread_mutex_trylock (pace_pthread_mutex_t * mutex) #if (PACE_HAS_POSIX_NONUOF_FUNCS) int -pace_pthread_mutex_unlock (pace_pthread_mutex_t * mutex) +pthread_mutex_unlock (pace_pthread_mutex_t * mutex) { STATUS status; int errornumber; + PACE_TRACE("pthread_mutex_unlock"); + status = semGive(*mutex); if (status == OK) return OK; @@ -1121,9 +1186,11 @@ pace_pthread_mutex_unlock (pace_pthread_mutex_t * mutex) #if (PACE_HAS_POSIX_NONUOF_FUNCS) int -pace_pthread_mutexattr_setprotocol (pace_pthread_mutexattr_t * attr, - int protocol) +pthread_mutexattr_setprotocol (pace_pthread_mutexattr_t * attr, + int protocol) { + PACE_TRACE("pthread_mutexattr_setprotocol"); + /* * Does not support PTHREAD_PRIO_PROTECT for VxWorks */ @@ -1140,13 +1207,16 @@ pace_pthread_mutexattr_setprotocol (pace_pthread_mutexattr_t * attr, #if (PACE_HAS_POSIX_NONUOF_FUNCS) int -pace_pthread_mutexattr_init (pace_pthread_mutexattr_t * attr) +pthread_mutexattr_init (pace_pthread_mutexattr_t * attr) { /* * Initializes a mutex attributes object attr with the * default value for all of the attributes */ pace_pthread_mutexattr_t pattr; + + PACE_TRACE("pthread_mutexattr_init"); + pattr = (pace_pthread_mutexattr_t) malloc(sizeof(struct _PTHREAD_MUX_ATTR)); if (pattr == NULL) return ERROR; @@ -1168,9 +1238,11 @@ pace_pthread_mutexattr_init (pace_pthread_mutexattr_t * attr) #if (PACE_HAS_POSIX_NONUOF_FUNCS) int -pace_pthread_mutexattr_setpshared (pace_pthread_mutexattr_t * attr, - int pshared) +pthread_mutexattr_setpshared (pace_pthread_mutexattr_t * attr, + int pshared) { + PACE_TRACE("pthread_mutexattr_setpshared"); + /* * Only supports PTHREAD_PROCESS_SHARED */ @@ -1185,11 +1257,13 @@ pace_pthread_mutexattr_setpshared (pace_pthread_mutexattr_t * attr, #if (PACE_HAS_POSIX_NONUOF_FUNCS) int -pace_pthread_setcancelstate (int state, int * oldstate) +pthread_setcancelstate (int state, int * oldstate) { int key; pace_pthread_t pthread; + PACE_TRACE("pthread_setcancelstate"); + if ((state != PTHREAD_CANCEL_ENABLE) && (state != PTHREAD_CANCEL_DISABLE)) { @@ -1210,13 +1284,15 @@ pace_pthread_setcancelstate (int state, int * oldstate) #if (PACE_HAS_POSIX_NONUOF_FUNCS) int -pace_pthread_setcanceltype (int type, int * oldtype) +pthread_setcanceltype (int type, int * oldtype) { /* * Only asychronouse type is supported */ pace_pthread_t pthread; + PACE_TRACE("pthread_setcanceltype"); + if (type != PTHREAD_CANCEL_ASYNCHRONOUS) return ERROR; @@ -1231,15 +1307,17 @@ pace_pthread_setcanceltype (int type, int * oldtype) #if (PACE_HAS_POSIX_NONUOF_FUNCS) int -pace_pthread_setschedparam (pace_pthread_t thread, - int policy, - const pace_sched_param * param) +pthread_setschedparam (pace_pthread_t thread, + int policy, + const pace_sched_param * param) { /* * Only priority can be changed. */ struct sched_param sparam; + PACE_TRACE("pthread_setschedparam"); + if (thread == 0) return ERROR; @@ -1255,10 +1333,12 @@ pace_pthread_setschedparam (pace_pthread_t thread, #if (PACE_HAS_POSIX_NONUOF_FUNCS) int -pace_pthread_setspecific (pace_pthread_key_t key, const void * value) +pthread_setspecific (pace_pthread_key_t key, const void * value) { pace_pthread_t pthread; + PACE_TRACE("pthread_setspecific"); + if (!pacevx_pthread_key_validate(key)) return ERROR; @@ -1274,9 +1354,12 @@ pace_pthread_setspecific (pace_pthread_key_t key, const void * value) #if (PACE_HAS_POSIX_NONUOF_FUNCS) int -pace_pthread_sigmask (int how, const sigset_t * set, - sigset_t * oset) +pthread_sigmask (int how, + const sigset_t * set, + sigset_t * oset) { + PACE_TRACE("pthread_sigmask"); + switch (how) { case SIG_BLOCK: diff --git a/PACE/pace/vxworks/pthread.h b/PACE/pace/vxworks/pthread.h index a2b7d009613..1dd51b75472 100644 --- a/PACE/pace/vxworks/pthread.h +++ b/PACE/pace/vxworks/pthread.h @@ -91,6 +91,65 @@ extern "C" { void pacevx_pthread_destructor_thread(pace_pthread_t pthread); int pacevx_pthread_key_validate(pace_pthread_key_t key); void pacevx_pthread_destructor_key(pace_pthread_key_t key, void * arg); + + int pthread_cond_timedwait (pace_pthread_cond_t * cond, + pace_pthread_mutex_t * mutex, + const pace_timespec * abstime); + int pthread_cond_wait (pace_pthread_cond_t * cond, + pace_pthread_mutex_t * mutex); +# if defined (PACE_HAS_CPLUSPLUS) + int pthread_create (pace_pthread_t * thread, + const pace_pthread_attr_t * attr, + pace_create_pf start_routine, + void * arg); + int pthread_key_create (pace_pthread_key_t * key, + pace_keycreate_pf destructor); + int pthread_once (pace_pthread_once_t * once_control, + pace_once_pf void_routine); +# else /* ! PACE_HAS_CPLUSPLUS */ + int pthread_create (pace_pthread_t * thread, + const pace_pthread_attr_t * attr, + void * (*start_routine) (void*), + void * arg); + int pthread_key_create (pace_pthread_key_t * key, + void (*destructor)(void*)); + int pthread_once (pace_pthread_once_t * once_control, + void (*void_routine) (void)); +# endif /*! PACE_HAS_CPLUSPLUS */ + int pthread_detach (pace_pthread_t thread); + int pthread_join (pace_pthread_t thread, void ** value_ptr); + int pthread_key_delete (pace_pthread_key_t key); + int pthread_attr_init (pace_pthread_attr_t * attr); + int pthread_attr_setdetachstate (pace_pthread_attr_t * attr, + int detachstate); + int pthread_attr_setschedparam (pace_pthread_attr_t * attr, + const pace_sched_param * param); + int pthread_cancel (pace_pthread_t thread); + int pthread_getschedparam (pace_pthread_t thread, + int * policy, + pace_sched_param * param); + void * pthread_getspecific (pace_pthread_key_t key); + int pthread_mutex_init (pace_pthread_mutex_t * mutex, + const pace_pthread_mutexattr_t * attr); + int pthread_mutex_lock (pace_pthread_mutex_t * mutex); + int pthread_mutex_trylock (pace_pthread_mutex_t * mutex); + int pthread_mutex_unlock (pace_pthread_mutex_t * mutex); + int pthread_mutexattr_setprotocol (pace_pthread_mutexattr_t * attr, + int protocol); + int pthread_mutexattr_init (pace_pthread_mutexattr_t * attr); + int pthread_mutexattr_setpshared (pace_pthread_mutexattr_t * attr, + int pshared); + int pthread_setcancelstate (int state, int * oldstate); + int pthread_setcanceltype (int type, int * oldtype); + int pthread_setschedparam (pace_pthread_t thread, + int policy, + const pace_sched_param * param); + int pthread_setspecific (pace_pthread_key_t key, + const void * value); + int pthread_sigmask (int how, + const sigset_t * set, + sigset_t * oset); + #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if defined (PACE_HAS_CPLUSPLUS) diff --git a/PACE/pace/vxworks/pthread.inl b/PACE/pace/vxworks/pthread.inl index abed12fb392..7e0442463f3 100644 --- a/PACE/pace/vxworks/pthread.inl +++ b/PACE/pace/vxworks/pthread.inl @@ -32,6 +32,7 @@ pace_pthread_atfork (pace_atfork_pf prepare, pace_atfork_pf parent, pace_atfork_pf child) { + PACE_TRACE("pace_pthread_atfork"); /* * In VxWorks, there is only one process. */ @@ -44,19 +45,21 @@ pace_pthread_atfork (void (*prepare) (), void (*parent) (), void (*child) ()) { + PACE_TRACE("pace_pthread_atfork"); /* * In VxWorks, there is only one process. */ PACE_ERRNO_NO_SUPPORT_RETURN (-1); } # endif /* PACE_HAS_CPLUSPLUS */ -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE int pace_pthread_attr_destroy (pace_pthread_attr_t * attr) { + PACE_TRACE("pace_pthread_attr_destroy"); /* * Free memory allocated to the attributes object. */ @@ -66,7 +69,7 @@ pace_pthread_attr_destroy (pace_pthread_attr_t * attr) free ((char *) *attr); return OK; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE @@ -74,10 +77,12 @@ int pace_pthread_attr_getdetachstate (const pace_pthread_attr_t * attr, int * detachstate) { + PACE_TRACE("pace_pthread_attr_getdetachstate"); + *detachstate = (*attr)->dstate; return OK; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE @@ -85,6 +90,8 @@ int pace_pthread_attr_getinheritsched (const pace_pthread_attr_t * attr, int * inheritsched) { + PACE_TRACE("pace_pthread_attr_getinheritsched"); + /* * Get the priority inheritence of the thread attribute structure. * Only PTHREAD_EXPLICIT_SCHED is returned. @@ -92,7 +99,7 @@ pace_pthread_attr_getinheritsched (const pace_pthread_attr_t * attr, *inheritsched = PTHREAD_EXPLICIT_SCHED; return OK; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE @@ -100,10 +107,12 @@ int pace_pthread_attr_getschedparam (const pace_pthread_attr_t * attr, pace_sched_param * param) { + PACE_TRACE("pace_pthread_attr_getschedparam"); + param->sched_priority = (*attr)->schedule.sched_priority; return OK; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE @@ -111,6 +120,8 @@ int pace_pthread_attr_getschedpolicy (const pace_pthread_attr_t * attr, int * policy) { + PACE_TRACE("pace_pthread_attr_getschedpolicy"); + /* * VxWorks only supports SCHED_FIFO. */ @@ -118,7 +129,7 @@ pace_pthread_attr_getschedpolicy (const pace_pthread_attr_t * attr, *policy = SCHED_FIFO; return OK; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE @@ -126,6 +137,8 @@ int pace_pthread_attr_getscope (const pace_pthread_attr_t * attr, int * contentionscope) { + PACE_TRACE("pace_pthread_attr_getscope"); + /* * Since all VxWorks tasks are system wide scope, * no support for the scope except for PTHREAD_SCOPE_SYSTEM @@ -134,7 +147,7 @@ pace_pthread_attr_getscope (const pace_pthread_attr_t * attr, *contentionscope = PTHREAD_SCOPE_SYSTEM; return OK; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE @@ -142,13 +155,15 @@ int pace_pthread_attr_getstackaddr (const pace_pthread_attr_t * attr, void ** stackaddr) { + PACE_TRACE("pace_pthread_attr_getstackaddr"); + /* * VxWorks has no support for stack address getting */ return ERROR; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE @@ -156,13 +171,38 @@ int pace_pthread_attr_getstacksize (const pace_pthread_attr_t * attr, size_t * stacksize) { + PACE_TRACE("pace_pthread_attr_getstacksize"); + if (*attr == 0) return ERROR; *stacksize = (*attr)->stacksize; return OK; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +PACE_INLINE +int +pace_pthread_attr_init (pace_pthread_attr_t * attr) +{ + PACE_TRACE("pace_pthread_attr_init"); + + return pthread_attr_init(attr); +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +PACE_INLINE +int +pace_pthread_attr_setdetachstate (pace_pthread_attr_t * attr, + int detachstate) +{ + PACE_TRACE("pace_pthread_attr_setdetachstate"); + + return pthread_attr_setdetachstate (attr, detachstate); +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE @@ -170,6 +210,8 @@ int pace_pthread_attr_setinheritsched (pace_pthread_attr_t * attr, int inheritsched) { + PACE_TRACE("pace_pthread_attr_setinheritsched"); + /* * For VxWorks, no inheritance of priority between the spawning task * and the spawned task. Only PTHREAD_EXPLICIT_SCHED is supported. @@ -181,7 +223,19 @@ pace_pthread_attr_setinheritsched (pace_pthread_attr_t * attr, return ERROR; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +PACE_INLINE +int +pace_pthread_attr_setschedparam (pace_pthread_attr_t * attr, + const pace_sched_param * param) +{ + PACE_TRACE("pace_pthread_attr_setschedparam"); + + return pthread_attr_setschedparam (attr, param); +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE @@ -189,6 +243,8 @@ int pace_pthread_attr_setschedpolicy (pace_pthread_attr_t * attr, int policy) { + PACE_TRACE("pace_pthread_attr_setschedpolicy"); + /* * In VxWorks, the schedule policy is set in system scope, * the whole system is running with one single scheduler, and @@ -203,7 +259,7 @@ pace_pthread_attr_setschedpolicy (pace_pthread_attr_t * attr, else return OK; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE @@ -211,6 +267,8 @@ int pace_pthread_attr_setscope (pace_pthread_attr_t * attr, int contentionscope) { + PACE_TRACE("pace_pthread_attr_setscope"); + /* * Since all VxWorks tasks are system wide scope, * no support for the scope except for PTHREAD_SCOPE_SYSTEM @@ -220,7 +278,7 @@ pace_pthread_attr_setscope (pace_pthread_attr_t * attr, else return OK; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE @@ -228,12 +286,14 @@ int pace_pthread_attr_setstackaddr (pace_pthread_attr_t * attr, void * stackaddr) { + PACE_TRACE("pace_pthread_attr_setstackaddr"); + /* * VxWorks does not support stack address setting. */ return ERROR; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE @@ -241,6 +301,8 @@ int pace_pthread_attr_setstacksize (pace_pthread_attr_t * attr, size_t stacksize) { + PACE_TRACE("pace_pthread_attr_setstacksize"); + /* * Default size will be assigned if the stacksize is 0 */ @@ -253,32 +315,47 @@ pace_pthread_attr_setstacksize (pace_pthread_attr_t * attr, return OK; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +PACE_INLINE +int +pace_pthread_cancel (pace_pthread_t thread) +{ + PACE_TRACE("pace_pthread_cancel"); + + return pthread_cancel (thread); +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE int pace_pthread_cond_broadcast (pace_pthread_cond_t * cond) { + PACE_TRACE("pace_pthread_cond_broadcast"); + /* * This call unblocks all the threads that are blocked * on the specified condition variable cond. */ return semFlush(*cond); } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE int pace_pthread_cond_destroy (pace_pthread_cond_t * cond) { + PACE_TRACE("pace_pthread_cond_destroy"); + if (*cond != NULL) return semDelete(*cond); return EINVAL; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE @@ -286,31 +363,65 @@ int pace_pthread_cond_init (pace_pthread_cond_t * cond, const pace_pthread_condattr_t * attr) { + PACE_TRACE("pace_pthread_cond_init"); + *cond = semBCreate(SEM_Q_PRIORITY, SEM_FULL); if (*cond == NULL) return ERROR; return OK; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE int pace_pthread_cond_signal (pace_pthread_cond_t * cond) { + PACE_TRACE("pace_pthread_cond_signal"); + return semGive(*cond); } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +PACE_INLINE +int +pace_pthread_cond_timedwait (pace_pthread_cond_t * cond, + pace_pthread_mutex_t * mutex, + const pace_timespec * abstime) +{ + PACE_TRACE("pace_pthread_cond_timedwait"); + + return pthread_cond_timedwait(cond, + mutex, + abstime); +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +PACE_INLINE +int +pace_pthread_cond_wait (pace_pthread_cond_t * cond, + pace_pthread_mutex_t * mutex) +{ + PACE_TRACE("pace_pthread_cond_wait"); + + return pthread_cond_wait(cond, + mutex); +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE int pace_pthread_condattr_destroy (pace_pthread_condattr_t * attr) { + PACE_TRACE("pace_pthread_condattr_destroy"); + return OK; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE @@ -318,22 +429,26 @@ int pace_pthread_condattr_getpshared (const pace_pthread_condattr_t * attr, int * pshared) { + PACE_TRACE("pace_pthread_condattr_getpshared"); + /* * All the resources in present VxWorks are shared system wide. */ *pshared = PTHREAD_PROCESS_SHARED; return OK; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE int pace_pthread_condattr_init (pace_pthread_condattr_t * attr) { + PACE_TRACE("pace_pthread_condattr_init"); + return OK; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE @@ -341,6 +456,8 @@ int pace_pthread_condattr_setpshared (pace_pthread_condattr_t * attr, int pshared) { + PACE_TRACE("pace_pthread_condattr_setpshared"); + /* * All the resources in present VxWorks are shared system wide. */ @@ -349,13 +466,43 @@ pace_pthread_condattr_setpshared (pace_pthread_condattr_t * attr, return OK; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +PACE_INLINE +int +pace_pthread_create (pace_pthread_t * thread, + const pace_pthread_attr_t * attr, + void * (*start_routine) (void*), + void * arg) +{ + PACE_TRACE("pace_pthread_create"); + + return pthread_create (thread, + attr, + start_routine, + arg); +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +PACE_INLINE +int +pace_pthread_detach (pace_pthread_t thread) +{ + PACE_TRACE("pace_pthread_detach"); + + return pthread_detach (thread); +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE int pace_pthread_equal (pace_pthread_t t1, pace_pthread_t t2) { + PACE_TRACE("pace_pthread_equal"); + if (pacevx_pthread_verify(t1) && pacevx_pthread_verify(t2)) { if (t1->tid != t2->tid) @@ -364,7 +511,7 @@ pace_pthread_equal (pace_pthread_t t1, pace_pthread_t t2) return 1; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE @@ -377,6 +524,8 @@ pace_pthread_exit (void * value_ptr) */ pace_pthread_t pthread; + PACE_TRACE("pace_pthread_exit"); + if ((pthread = pace_pthread_self()) != NULL) { pacevx_pthread_proc_exit(pthread, value_ptr); @@ -385,31 +534,97 @@ pace_pthread_exit (void * value_ptr) } exit(-1); } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +PACE_INLINE +int +pace_pthread_getschedparam (pace_pthread_t thread, + int * policy, + pace_sched_param * param) +{ + PACE_TRACE("pace_pthread_getschedparam"); + + return pthread_getschedparam (thread, + policy, + param); +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +PACE_INLINE +void * +pace_pthread_getspecific (pace_pthread_key_t key) +{ + PACE_TRACE("pace_pthread_getspecific"); + + return pthread_getspecific (key); +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +PACE_INLINE +int +pace_pthread_join (pace_pthread_t thread, void ** value_ptr) +{ + PACE_TRACE("pace_pthread_join"); + + return pthread_join (thread, + value_ptr); +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +PACE_INLINE +int +pace_pthread_key_create (pace_pthread_key_t * key, + void (*destructor)(void*)) +{ + PACE_TRACE("pace_pthread_key_create"); + + return pthread_key_create (key, + destructor); +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +PACE_INLINE +int +pace_pthread_key_delete (pace_pthread_key_t key) +{ + PACE_TRACE("pace_pthread_key_delete"); + + return pthread_key_delete (key); +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE int pace_pthread_kill (pace_pthread_t thread, int sig) { + PACE_TRACE("pace_pthread_kill"); + if (pacevx_pthread_verify(thread)) return kill(thread->tid, sig); else return EINVAL; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE int pace_pthread_mutex_destroy (pace_pthread_mutex_t * mutex) { + PACE_TRACE("pace_pthread_mutex_destroy"); + if (*mutex != NULL) return semDelete(*mutex); return EINVAL; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE @@ -417,6 +632,8 @@ int pace_pthread_mutex_getprioceiling (pace_pthread_mutex_t * mutex, int * prioceiling) { + PACE_TRACE("pace_pthread_mutex_getprioceiling"); + /* * Mutex priority is not supported in VxWorks; * it depends on the thread using it and has the same priority @@ -425,7 +642,31 @@ pace_pthread_mutex_getprioceiling (pace_pthread_mutex_t * mutex, *prioceiling = SCHED_RR_HIGH_PRI; return OK; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +PACE_INLINE +int +pace_pthread_mutex_init (pace_pthread_mutex_t * mutex, + const pace_pthread_mutexattr_t * attr) +{ + PACE_TRACE("pace_pthread_mutex_init"); + + return pthread_mutex_init (mutex, + attr); +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +PACE_INLINE +int +pace_pthread_mutex_lock (pace_pthread_mutex_t * mutex) +{ + PACE_TRACE("pace_pthread_mutex_lock"); + + return pthread_mutex_lock (mutex); +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE @@ -434,6 +675,8 @@ pace_pthread_mutex_setprioceiling (pace_pthread_mutex_t * mutex, int prioceiling, int * old_ceiling) { + PACE_TRACE("pace_pthread_mutex_setprioceiling"); + /* * Mutex priority is not supported in VxWorks; * it depends on the thread using it and has the same priority @@ -446,17 +689,41 @@ pace_pthread_mutex_setprioceiling (pace_pthread_mutex_t * mutex, return OK; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +PACE_INLINE +int +pace_pthread_mutex_trylock (pace_pthread_mutex_t * mutex) +{ + PACE_TRACE("pace_pthread_mutex_trylock"); + + return pthread_mutex_trylock (mutex); +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +PACE_INLINE +int +pace_pthread_mutex_unlock (pace_pthread_mutex_t * mutex) +{ + PACE_TRACE("pace_pthread_mutex_unlock"); + + return pthread_mutex_unlock (mutex); +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE int pace_pthread_mutexattr_destroy (pace_pthread_mutexattr_t * attr) { + PACE_TRACE("pace_pthread_mutexattr_destroy"); + free(*attr); return OK; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE @@ -464,6 +731,8 @@ int pace_pthread_mutexattr_getprioceiling (pace_pthread_mutexattr_t * attr, int * prioceiling) { + PACE_TRACE("pace_pthread_mutexattr_getprioceiling"); + /* * Mutex priority is not supported in VxWorks, * it depends the thread using it and has the same priority @@ -472,7 +741,7 @@ pace_pthread_mutexattr_getprioceiling (pace_pthread_mutexattr_t * attr, *prioceiling = SCHED_RR_HIGH_PRI; return OK; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE @@ -480,6 +749,8 @@ int pace_pthread_mutexattr_getprotocol (const pace_pthread_mutexattr_t * attr, int * protocol) { + PACE_TRACE("pace_pthread_mutexattr_getprotocol"); + /* * Does not support PTHREAD_PRIO_PROTECT for VxWorks */ @@ -489,7 +760,7 @@ pace_pthread_mutexattr_getprotocol (const pace_pthread_mutexattr_t * attr, *protocol = (*attr)->protocol; return OK; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE @@ -497,6 +768,8 @@ int pace_pthread_mutexattr_setprioceiling (pace_pthread_mutexattr_t * attr, int prioceiling) { + PACE_TRACE("pace_pthread_mutexattr_setprioceiling"); + /* * Mutex priority is not supported in VxWorks; * it depends on the thread using it and has the same priority @@ -507,7 +780,20 @@ pace_pthread_mutexattr_setprioceiling (pace_pthread_mutexattr_t * attr, else return ERROR; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +PACE_INLINE +int +pace_pthread_mutexattr_setprotocol (pace_pthread_mutexattr_t * attr, + int protocol) +{ + PACE_TRACE("pace_pthread_mutexattr_setprotocol"); + + return pthread_mutexattr_setprotocol (attr, + protocol); +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE @@ -515,13 +801,52 @@ int pace_pthread_mutexattr_getpshared (const pace_pthread_mutexattr_t * attr, int * pshared) { + PACE_TRACE("pace_pthread_mutexattr_getpshared"); + /* * Only supports PTHREAD_PROCESS_SHARED */ *pshared = PTHREAD_PROCESS_SHARED; return OK; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +PACE_INLINE +int +pace_pthread_mutexattr_init (pace_pthread_mutexattr_t * attr) +{ + PACE_TRACE("pace_pthread_mutexattr_init"); + + return pthread_mutexattr_init (attr); +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +PACE_INLINE +int +pace_pthread_mutexattr_setpshared (pace_pthread_mutexattr_t * attr, + int pshared) +{ + PACE_TRACE("pace_pthread_mutexattr_setpshared"); + + return pthread_mutexattr_setpshared (attr, + pshared); +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +PACE_INLINE +int +pace_pthread_once (pace_pthread_once_t * once_control, + void (*void_routine) (void)) +{ + PACE_TRACE("pace_pthread_once"); + + return pthread_once (once_control, + void_routine); +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE @@ -530,19 +855,92 @@ pace_pthread_self () { WIND_TCB *pTcb; + PACE_TRACE("pace_pthread_self"); + if ((pTcb = taskTcb(taskIdSelf())) == NULL) return (pace_pthread_t)NULL; return (pace_pthread_t)(pTcb->_USER_SPARE4); } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +PACE_INLINE +int +pace_pthread_setcancelstate (int state, + int * oldstate) +{ + PACE_TRACE("pace_pthread_setcancelstate"); + + return pthread_setcancelstate (state, + oldstate); +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +PACE_INLINE +int +pace_pthread_setcanceltype (int type, + int * oldtype) +{ + PACE_TRACE("pace_pthread_setcanceltype"); + + return pthread_setcanceltype (type, + oldtype); +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +PACE_INLINE +int +pace_pthread_setschedparam (pace_pthread_t thread, + int policy, + const pace_sched_param * param) +{ + PACE_TRACE("pace_pthread_setschedparam"); + + return pthread_setschedparam (thread, + policy, + param); +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +PACE_INLINE +int +pace_pthread_setspecific (pace_pthread_key_t key, + const void * value) +{ + PACE_TRACE("pace_pthread_setspecific"); + + return pthread_setspecific (key, + value); +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ + +#if (PACE_HAS_POSIX_NONUOF_FUNCS) +PACE_INLINE +int +pace_pthread_sigmask (int how, + const pace_sigset_t * set, + pace_sigset_t * oset) +{ + PACE_TRACE("pace_pthread_sigmask"); + + return pthread_sigmask (how, + set, + oset); +} +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ #if (PACE_HAS_POSIX_NONUOF_FUNCS) PACE_INLINE void pace_pthread_testcancel () { + PACE_TRACE("pace_pthread_testcancel"); + /* Do nothing per ACE (i.e., ACE_OS::thr_testcancel). */ return; } -#endif /* PACE_HAS_NONUOF_FUNCS */ +#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/vxworks/pwd.inl b/PACE/pace/vxworks/pwd.inl index ef3e26e5dbf..1e4aab00715 100644 --- a/PACE/pace/vxworks/pwd.inl +++ b/PACE/pace/vxworks/pwd.inl @@ -18,6 +18,8 @@ PACE_INLINE pace_passwd * pace_getpwuid (pace_uid_t uid) { + PACE_TRACE("pace_getpwuid"); + /* getpwuid() is not supported: just one user anyways */ PACE_UNUSED_ARG (uid); return 0; @@ -33,6 +35,8 @@ pace_getpwuid_r (pace_uid_t uid, pace_size_t bufsize, pace_passwd ** result) { + PACE_TRACE("pace_getpwuid_r"); + /* getpwuid_r() is not supported: just one user anyways */ PACE_UNUSED_ARG (uid); PACE_UNUSED_ARG (pwd); @@ -48,6 +52,8 @@ PACE_INLINE pace_passwd * pace_getpwnam (const char * name) { + PACE_TRACE("pace_getpwnam"); + /* getpwuid() is not supported: just one user anyways */ PACE_UNUSED_ARG (name); return 0; @@ -63,6 +69,8 @@ pace_getpwnam_r (const char * name, pace_size_t bufsize, pace_passwd ** result) { + PACE_TRACE("pace_getpwnam_r"); + /* getpwuid_r() is not supported: just one user anyways */ PACE_UNUSED_ARG (name); PACE_UNUSED_ARG (pwd); diff --git a/PACE/pace/vxworks/sched.inl b/PACE/pace/vxworks/sched.inl index 0db7d7620f5..1d6a11bcdf3 100644 --- a/PACE/pace/vxworks/sched.inl +++ b/PACE/pace/vxworks/sched.inl @@ -18,6 +18,8 @@ PACE_INLINE int pace_sched_get_priority_max (int policy) { + PACE_TRACE("pace_sched_get_priority_max"); + return sched_get_priority_max (policy); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -27,6 +29,8 @@ PACE_INLINE int pace_sched_get_priority_min (int policy) { + PACE_TRACE("pace_sched_get_priority_min"); + return sched_get_priority_min (policy); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -37,6 +41,8 @@ int pace_sched_getparam (pace_pid_t pid, pace_sched_param * param) { + PACE_TRACE("pace_sched_getparam"); + return sched_getparam (pid, param); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -47,6 +53,8 @@ int pace_sched_rr_get_interval (pace_pid_t pid, pace_timespec * interval) { + PACE_TRACE("pace_sched_rr_get_interval"); + return sched_rr_get_interval (pid, interval); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -57,6 +65,8 @@ int pace_sched_setparam (pace_pid_t pid, const pace_sched_param * param) { + PACE_TRACE("pace_sched_setparam"); + return sched_setparam (pid, param); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -66,6 +76,8 @@ PACE_INLINE int pace_sched_getscheduler (pace_pid_t pid) { + PACE_TRACE("pace_sched_getscheduler"); + return sched_getscheduler (pid); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -77,6 +89,8 @@ pace_sched_setscheduler (pace_pid_t pid, int policy, const pace_sched_param * param) { + PACE_TRACE("pace_sched_setscheduler"); + return sched_setscheduler (pid, policy, param); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -86,6 +100,8 @@ PACE_INLINE int pace_sched_yield () { + PACE_TRACE("pace_sched_yield"); + return sched_yield (); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/vxworks/semaphore.inl b/PACE/pace/vxworks/semaphore.inl index beb5328d1aa..edf2e95eea4 100644 --- a/PACE/pace/vxworks/semaphore.inl +++ b/PACE/pace/vxworks/semaphore.inl @@ -18,6 +18,8 @@ PACE_INLINE int pace_sem_close (pace_sem_t * sem) { + PACE_TRACE("pace_sem_close"); + return sem_close (sem); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -27,6 +29,8 @@ PACE_INLINE int pace_sem_destroy (pace_sem_t * sem) { + PACE_TRACE("pace_sem_destroy"); + return sem_destroy (sem); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -36,6 +40,8 @@ PACE_INLINE int pace_sem_getvalue (pace_sem_t * sem, int * sval) { + PACE_TRACE("pace_sem_getvalue"); + return sem_getvalue (sem, sval); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -45,6 +51,8 @@ PACE_INLINE int pace_sem_init (pace_sem_t * sem, int pshared, unsigned int value) { + PACE_TRACE("pace_sem_init"); + return sem_init (sem, pshared, value); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -54,6 +62,8 @@ PACE_INLINE int pace_sem_post (pace_sem_t * sem) { + PACE_TRACE("pace_sem_post"); + return sem_post (sem); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -63,6 +73,8 @@ PACE_INLINE int pace_sem_trywait (pace_sem_t * sem) { + PACE_TRACE("pace_sem_trywait"); + return sem_trywait (sem); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -72,6 +84,8 @@ PACE_INLINE int pace_sem_unlink (const char * name) { + PACE_TRACE("pace_sem_unlink"); + return sem_unlink (name); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -81,6 +95,8 @@ PACE_INLINE int pace_sem_wait (pace_sem_t * sem) { + PACE_TRACE("pace_sem_wait"); + return sem_wait (sem); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/vxworks/setjmp.inl b/PACE/pace/vxworks/setjmp.inl index cd86befa688..b302dc91f55 100644 --- a/PACE/pace/vxworks/setjmp.inl +++ b/PACE/pace/vxworks/setjmp.inl @@ -18,6 +18,8 @@ PACE_INLINE void pace_longjmp (pace_jmp_buf env, int val) { + PACE_TRACE("pace_longjmp"); + longjmp (env, val); return; } @@ -28,6 +30,8 @@ PACE_INLINE void pace_siglongjmp (pace_sigjmp_buf env, int val) { + PACE_TRACE("pace_siglongjmp"); + siglongjmp (env, val); return; } diff --git a/PACE/pace/vxworks/signal.inl b/PACE/pace/vxworks/signal.inl index 76b34e90df4..b5c94f61d4b 100644 --- a/PACE/pace/vxworks/signal.inl +++ b/PACE/pace/vxworks/signal.inl @@ -18,6 +18,8 @@ PACE_INLINE int pace_kill (pace_pid_t pid, int sig) { + PACE_TRACE("pace_kill"); + return kill (pid, sig); } #endif /* PACE_HAS_POSIX_SIG_UOF */ @@ -27,6 +29,8 @@ PACE_INLINE int pace_raise (int sig) { + PACE_TRACE("pace_raise"); + return raise (sig); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -37,6 +41,8 @@ int pace_sigaction (int sig, const pace_sigaction_s * act, pace_sigaction_s * oact) { + PACE_TRACE("pace_sigaction"); + return sigaction (sig, act, oact); } #endif /* PACE_HAS_POSIX_SIG_UOF */ @@ -46,6 +52,8 @@ PACE_INLINE int pace_sigaddset (pace_sigset_t * set, int signo) { + PACE_TRACE("pace_sigaddset"); + return sigaddset (set, signo); } #endif /* PACE_HAS_POSIX_SIG_UOF */ @@ -55,6 +63,8 @@ PACE_INLINE int pace_sigemptyset (pace_sigset_t * set) { + PACE_TRACE("pace_sigemptyset"); + return sigemptyset (set); } #endif /* PACE_HAS_POSIX_SIG_UOF */ @@ -64,6 +74,8 @@ PACE_INLINE int pace_sigdelset (pace_sigset_t * set, int signo) { + PACE_TRACE("pace_sigdelset"); + return sigdelset (set, signo); } #endif /* PACE_HAS_POSIX_SIG_UOF */ @@ -73,6 +85,8 @@ PACE_INLINE int pace_sigfillset (pace_sigset_t * set) { + PACE_TRACE("pace_sigfillset"); + return sigfillset (set); } #endif /* PACE_HAS_POSIX_SIG_UOF */ @@ -82,6 +96,8 @@ PACE_INLINE int pace_sigismember (const pace_sigset_t * set, int signo) { + PACE_TRACE("pace_sigismember"); + return sigismember (set, signo); } #endif /* PACE_HAS_POSIX_SIG_UOF */ @@ -91,6 +107,8 @@ PACE_INLINE pace_sig_pf pace_signal (int sig, pace_sig_pf func) { + PACE_TRACE("pace_signal"); + return signal (sig, func); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -100,6 +118,8 @@ PACE_INLINE int pace_sigpending (pace_sigset_t * set) { + PACE_TRACE("pace_sigpending"); + return sigpending (set); } #endif /* PACE_HAS_POSIX_SIG_UOF */ @@ -110,6 +130,8 @@ int pace_sigprocmask (int how, const pace_sigset_t * set, pace_sigset_t * oset) { + PACE_TRACE("pace_sigprocmask"); + return sigprocmask (how, set, oset); } #endif /* PACE_HAS_POSIX_SIG_UOF */ @@ -120,6 +142,8 @@ int pace_sigqueue (pace_pid_t pid, int signo, const pace_sigval value) { + PACE_TRACE("pace_sigqueue"); + return sigqueue (pid, signo, value); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -129,6 +153,8 @@ PACE_INLINE int pace_sigsuspend (const pace_sigset_t * sigmask) { + PACE_TRACE("pace_sigsuspend"); + return sigsuspend (sigmask); } #endif /* PACE_HAS_POSIX_SIG_UOF */ @@ -139,6 +165,8 @@ int pace_sigtimedwait (const pace_sigset_t * set, pace_siginfo_t * info, const pace_timespec * timeout) { + PACE_TRACE("pace_sigtimedwait"); + return sigtimedwait (set, info, timeout); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -148,6 +176,8 @@ PACE_INLINE int pace_sigwait (const pace_sigset_t * set, int * sig) { + PACE_TRACE("pace_sigwait"); + /* It appears that sigwait is not supported for 5.3.1 or 5.4. * ACE uses sigtimedwait instead. (The code below is directly * from ACE_OS. @@ -170,6 +200,8 @@ PACE_INLINE int pace_sigwaitinfo (const pace_sigset_t *set, pace_siginfo_t *info) { + PACE_TRACE("pace_sigwaitinfo"); + return sigwaitinfo (set, info); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/vxworks/socket.inl b/PACE/pace/vxworks/socket.inl index 908ba4e62b4..440254fd0da 100644 --- a/PACE/pace/vxworks/socket.inl +++ b/PACE/pace/vxworks/socket.inl @@ -23,7 +23,9 @@ pace_accept (int s, pace_sockaddr * socketaddress, pace_socklen_t * addresslen) { - accept (s, socketaddress, addresslen); + PACE_TRACE("pace_accept"); + + accept (s, socketaddress, addresslen); } #endif /* PACE_HAS_POSIX_SOCK_UOF */ @@ -34,7 +36,9 @@ pace_bind (int s, const pace_sockaddr * socketaddress, pace_socklen_t addresslen) { - bind (s, socketaddress, addresslen); + PACE_TRACE("pace_bind"); + + bind (s, socketaddress, addresslen); } #endif /* PACE_HAS_POSIX_SOCK_UOF */ @@ -45,7 +49,9 @@ pace_connect (int s, const pace_sockaddr * socketaddress, pace_socklen_t addresslen) { - connect (s, socketaddress, addresslen); + PACE_TRACE("pace_connect"); + + connect (s, socketaddress, addresslen); } #endif /* PACE_HAS_POSIX_SOCK_UOF */ @@ -56,7 +62,9 @@ pace_getpeername (int s, pace_sockaddr * socketaddress, pace_socklen_t * addresslen) { - getpeername (s, socketaddress, addresslen); + PACE_TRACE("pace_getpeername"); + + getpeername (s, socketaddress, addresslen); } #endif /* PACE_HAS_POSIX_SOCK_UOF */ @@ -67,7 +75,9 @@ pace_getsockname (int s, pace_sockaddr * socketaddress, pace_socklen_t * addresslen) { - getsockname (s, socketaddress, addresslen); + PACE_TRACE("pace_getsockname"); + + getsockname (s, socketaddress, addresslen); } #endif /* PACE_HAS_POSIX_SOCK_UOF */ @@ -80,7 +90,9 @@ pace_getsockopt (int s, void * optval, pace_socklen_t optlen) { - getsockopt (s, level, optname, optval, optlen); + PACE_TRACE("pace_getsockopt"); + + getsockopt (s, level, optname, optval, optlen); } #endif /* PACE_HAS_POSIX_SOCK_UOF */ @@ -92,7 +104,9 @@ pace_setsockopt (int s, int optname, const * optval) { - setsockopt (s, level, optname, optval); + PACE_TRACE("pace_setsockopt"); + + setsockopt (s, level, optname, optval); } #endif /* PACE_HAS_POSIX_SOCK_UOF */ @@ -104,7 +118,9 @@ pace_setsockopt (int s, int optname, const * optval) { - setsockopt (s, level, optname, optval); + PACE_TRACE("pace_setsockopt"); + + setsockopt (s, level, optname, optval); } #endif /* PACE_HAS_POSIX_SOCK_UOF */ @@ -113,7 +129,9 @@ PACE_INLINE int pace_isfdtype (int fildes, int fdtype) { - isfdtype (fildes, fdtype); + PACE_TRACE("pace_isfdtype"); + + isfdtype (fildes, fdtype); } #endif /* PACE_HAS_POSIX_SOCK_UOF */ @@ -122,7 +140,9 @@ PACE_INLINE int pace_listen (int s, int backlog) { - listen (s, backlog); + PACE_TRACE("pace_listen"); + + listen (s, backlog); } #endif /* PACE_HAS_POSIX_SOCK_UOF */ @@ -134,7 +154,9 @@ pace_recv (int s, pace_size_t len, int flags) { - recv (s, buf, len, flags); + PACE_TRACE("pace_recv"); + + recv (s, buf, len, flags); } #endif /* PACE_HAS_POSIX_SOCK_UOF */ @@ -148,7 +170,9 @@ pace_recvfrom (int s, pace_sockaddr * from, pace_socklen_t * fromlen) { - recvfrom (s, buf, len, flags, from, fromlen); + PACE_TRACE("pace_recvfrom"); + + recvfrom (s, buf, len, flags, from, fromlen); } #endif /* PACE_HAS_POSIX_SOCK_UOF */ @@ -159,7 +183,9 @@ pace_rcvmsg (int s, pace_msghdr * msg, int flags) { - rcvmsg (s, msg, flags); + PACE_TRACE("pace_rcvmsg"); + + rcvmsg (s, msg, flags); } #endif /* PACE_HAS_POSIX_SOCK_UOF */ @@ -171,7 +197,9 @@ pace_send (int s, pace_size_t len, int flags) { - send (s, buf, len, flags); + PACE_TRACE("pace_send"); + + send (s, buf, len, flags); } #endif /* PACE_HAS_POSIX_SOCK_UOF */ @@ -185,7 +213,9 @@ pace_sendto (int s, const pace_sockaddr * to, pace_socklen_t * tolen) { - sendto (s, buf, len, flags, to, tolen); + PACE_TRACE("pace_sendto"); + + sendto (s, buf, len, flags, to, tolen); } #endif /* PACE_HAS_POSIX_SOCK_UOF */ @@ -196,7 +226,9 @@ pace_sendmsg (int s, const pace_msghdr * msg, int flags) { - sendmsg (s, msg, flags); + PACE_TRACE("pace_sendmsg"); + + sendmsg (s, msg, flags); } #endif /* PACE_HAS_POSIX_SOCK_UOF */ @@ -205,7 +237,9 @@ PACE_INLINE int pace_shutdown (int s, int how) { - shutdown (s, how); + PACE_TRACE("pace_shutdown"); + + shutdown (s, how); } #endif /* PACE_HAS_POSIX_SOCK_UOF */ @@ -214,7 +248,9 @@ PACE_INLINE int pace_socket (int protofamily, int type, int protocol) { - socket (protofamily, type, protocol); + PACE_TRACE("pace_socket"); + + socket (protofamily, type, protocol); } #endif /* PACE_HAS_POSIX_SOCK_UOF */ @@ -226,7 +262,9 @@ pace_socketpair (int protofamily, int protocol, int sv[2]) { - socketpair (protofamily, type, protocol, sy); + PACE_TRACE("pace_socketpair"); + + socketpair (protofamily, type, protocol, sy); } #endif /* PACE_HAS_POSIX_SOCK_UOF */ diff --git a/PACE/pace/vxworks/stat.inl b/PACE/pace/vxworks/stat.inl index 0f12e277d20..56359e690a0 100644 --- a/PACE/pace/vxworks/stat.inl +++ b/PACE/pace/vxworks/stat.inl @@ -18,6 +18,8 @@ PACE_INLINE int pace_chmod (const char * path, pace_mode_t mode) { + PACE_TRACE("pace_chmod"); + PACE_UNUSED_ARG(path); PACE_UNUSED_ARG(mode); PACE_ERRNO_NO_SUPPORT_RETURN (-1); @@ -29,6 +31,8 @@ PACE_INLINE int pace_fchmod (PACE_HANDLE fildes, pace_mode_t mode) { + PACE_TRACE("pace_fchmod"); + PACE_UNUSED_ARG(fildes); PACE_UNUSED_ARG(mode); PACE_ERRNO_NO_SUPPORT_RETURN (-1); @@ -40,6 +44,8 @@ PACE_INLINE int pace_fstat (PACE_HANDLE fildes, pace_stat_s * buf) { + PACE_TRACE("pace_fstat"); + return fstat (fildes, buf); } #endif /* PACE_HAS_POSIX_FS_UOF */ @@ -49,6 +55,8 @@ PACE_INLINE int pace_mkdir (const char * path, pace_mode_t mode) { + PACE_TRACE("pace_mkdir"); + PACE_UNUSED_ARG (mode); return mkdir (PACE_NONCONST_ARG_CAST (char *) path); } @@ -59,6 +67,8 @@ PACE_INLINE int pace_mkfifo (const char * path, pace_mode_t mode) { + PACE_TRACE("pace_mkfifo"); + PACE_UNUSED_ARG(path); PACE_UNUSED_ARG(mode); PACE_ERRNO_NO_SUPPORT_RETURN (-1); @@ -70,6 +80,8 @@ PACE_INLINE int pace_stat (const char * path, pace_stat_s * buf) { + PACE_TRACE("pace_stat"); + return stat (PACE_NONCONST_ARG_CAST (char *) path, buf); } #endif /* PACE_HAS_POSIX_FS_UOF */ @@ -79,6 +91,8 @@ PACE_INLINE pace_mode_t pace_umask (pace_mode_t cmask) { + PACE_TRACE("pace_umask"); + PACE_UNUSED_ARG(cmask); PACE_ERRNO_NO_SUPPORT_RETURN (-1); } diff --git a/PACE/pace/vxworks/stdio.inl b/PACE/pace/vxworks/stdio.inl index 6feb0f3372e..8a1cd7202f3 100644 --- a/PACE/pace/vxworks/stdio.inl +++ b/PACE/pace/vxworks/stdio.inl @@ -20,6 +20,8 @@ PACE_INLINE void pace_clearerr (FILE * stream) { + PACE_TRACE("pace_clearerr"); + clearerr (stream); return; } @@ -30,6 +32,8 @@ PACE_INLINE char * pace_ctermid (char * s) { + PACE_TRACE("pace_ctermid"); + PACE_UNUSED_ARG(s); PACE_ERRNO_NO_SUPPORT_RETURN ((char *) 0); } @@ -40,6 +44,8 @@ PACE_INLINE int pace_fclose (FILE * stream) { + PACE_TRACE("pace_fclose"); + return fclose (stream); } #endif /* PACE_HAS_POSIX_DI_UOF */ @@ -50,6 +56,8 @@ FILE * pace_fdopen (int fildes, const char * type) { + PACE_TRACE("pace_fdopen"); + return fdopen (fildes, type); } @@ -60,6 +68,8 @@ PACE_INLINE int pace_ferror (FILE * stream) { + PACE_TRACE("pace_ferror"); + return ferror (stream); } #endif /* PACE_HAS_POSIX_DI_UOF */ @@ -69,6 +79,8 @@ PACE_INLINE int pace_feof (FILE * stream) { + PACE_TRACE("pace_feof"); + return feof (stream); } #endif /* PACE_HAS_POSIX_DI_UOF */ @@ -78,6 +90,8 @@ PACE_INLINE int pace_fflush (FILE * stream) { + PACE_TRACE("pace_fflush"); + return fflush (stream); } #endif /* PACE_HAS_POSIX_DI_UOF */ @@ -87,6 +101,8 @@ PACE_INLINE int pace_fileno (FILE * stream) { + PACE_TRACE("pace_fileno"); + return fileno (stream); } #endif /* PACE_HAS_POSIX_DI_UOF */ @@ -96,6 +112,8 @@ PACE_INLINE int pace_fgetc (FILE * stream) { + PACE_TRACE("pace_fgetc"); + return fgetc (stream); } #endif /* PACE_HAS_POSIX_DI_UOF */ @@ -106,6 +124,8 @@ int pace_fgetpos(PACE_FILE * stream, pace_fpos_t * pos) { + PACE_TRACE("pace_fgetpos"); + return fgetpos (stream, pos); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -117,6 +137,8 @@ pace_fgets (char * s, int n, FILE * stream) { + PACE_TRACE("pace_fgets"); + return fgets (s, n, stream); @@ -128,6 +150,8 @@ PACE_INLINE void pace_flockfile (FILE * file) { + PACE_TRACE("pace_flockfile"); + PACE_UNUSED_ARG (file); PACE_ERRNO_NO_SUPPORT (); return; @@ -140,6 +164,8 @@ FILE * pace_fopen (const char * filename, const char * mode) { + PACE_TRACE("pace_fopen"); + return fopen (filename, mode); } @@ -151,6 +177,8 @@ int pace_fputc (int c, FILE * stream) { + PACE_TRACE("pace_fputc"); + return fputc (c, stream); } @@ -162,6 +190,8 @@ int pace_fputs (const char * s, FILE * stream) { + PACE_TRACE("pace_fputs"); + return fputs (s, stream); } @@ -175,6 +205,8 @@ pace_fread (void * ptr, size_t number_of_items, FILE * stream) { + PACE_TRACE("pace_fread"); + return fread (ptr, size, number_of_items, @@ -189,6 +221,8 @@ pace_freopen (const char * filename, const char * mode, FILE * stream) { + PACE_TRACE("pace_freopen"); + return freopen (filename, mode, stream); @@ -202,6 +236,8 @@ pace_fseek (FILE * stream, long offset, int whence) { + PACE_TRACE("pace_fseek"); + return fseek (stream, offset, whence); @@ -213,6 +249,8 @@ PACE_INLINE int pace_fsetpos(PACE_FILE *stream, const pace_fpos_t *pos) { + PACE_TRACE("pace_fsetpos"); + return fsetpos (stream, pos); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -222,6 +260,8 @@ PACE_INLINE long pace_ftell (FILE * stream) { + PACE_TRACE("pace_ftell"); + return ftell (stream); } #endif /* PACE_HAS_POSIX_FM_UOF */ @@ -231,6 +271,8 @@ PACE_INLINE int pace_ftrylockfile (FILE * file) { + PACE_TRACE("pace_ftrylockfile"); + PACE_UNUSED_ARG(file); PACE_ERRNO_NO_SUPPORT_RETURN (-1); } @@ -241,6 +283,8 @@ PACE_INLINE void pace_funlockfile (FILE * file) { + PACE_TRACE("pace_funlockfile"); + PACE_UNUSED_ARG(file); PACE_ERRNO_NO_SUPPORT (); return; @@ -254,6 +298,8 @@ pace_fwrite(const void * ptr, pace_size_t size, pace_size_t nmemb, PACE_FILE * stream) { + PACE_TRACE("pace_fwrite"); + return fwrite (ptr, size, nmemb, stream); } #endif /* PACE_HAS_POSIX_DI_UOF */ @@ -263,6 +309,8 @@ PACE_INLINE int pace_getc (FILE * stream) { + PACE_TRACE("pace_getc"); + return getc (stream); } #endif /* PACE_HAS_POSIX_DI_UOF */ @@ -272,6 +320,8 @@ PACE_INLINE int pace_getc_unlocked (FILE * stream) { + PACE_TRACE("pace_getc_unlocked"); + PACE_UNUSED_ARG(stream); PACE_ERRNO_NO_SUPPORT_RETURN (-1); } @@ -282,6 +332,8 @@ PACE_INLINE int pace_getchar () { + PACE_TRACE("pace_getchar"); + return getchar (); } #endif /* PACE_HAS_POSIX_DI_UOF */ @@ -291,6 +343,8 @@ PACE_INLINE int pace_getchar_unlocked () { + PACE_TRACE("pace_getchar_unlocked"); + PACE_ERRNO_NO_SUPPORT_RETURN (-1); } #endif /* PACE_HAS_POSIX_FL_UOF */ @@ -300,6 +354,8 @@ PACE_INLINE char * pace_gets (char * s) { + PACE_TRACE("pace_gets"); + return gets (s); } #endif /* PACE_HAS_POSIX_DI_UOF */ @@ -309,6 +365,8 @@ PACE_INLINE void pace_perror (const char * s) { + PACE_TRACE("pace_perror"); + perror (s); return; } @@ -320,6 +378,8 @@ int pace_putc (int c, FILE * stream) { + PACE_TRACE("pace_putc"); + return putc (c, stream); } #endif /* PACE_HAS_POSIX_DI_UOF */ @@ -330,6 +390,8 @@ int pace_putc_unlocked (int c, FILE * stream) { + PACE_TRACE("pace_putc_unlocked"); + PACE_UNUSED_ARG(c); PACE_UNUSED_ARG(stream); PACE_ERRNO_NO_SUPPORT_RETURN (-1); @@ -341,6 +403,8 @@ PACE_INLINE int pace_putchar (int c) { + PACE_TRACE("pace_putchar"); + return putchar (c); } #endif /* PACE_HAS_POSIX_DI_UOF */ @@ -350,6 +414,8 @@ PACE_INLINE int pace_putchar_unlocked (int c) { + PACE_TRACE("pace_putchar_unlocked"); + PACE_UNUSED_ARG(c); PACE_ERRNO_NO_SUPPORT_RETURN (-1); } @@ -360,6 +426,8 @@ PACE_INLINE int pace_puts (const char * s) { + PACE_TRACE("pace_puts"); + return puts (s); } #endif /* PACE_HAS_POSIX_DI_UOF */ @@ -369,6 +437,8 @@ PACE_INLINE int pace_remove (const char * path) { + PACE_TRACE("pace_remove"); + return remove (path); } #endif /* PACE_HAS_POSIX_FS_UOF */ @@ -379,6 +449,8 @@ int pace_rename (const char * old_name, const char * new_name) { + PACE_TRACE("pace_rename"); + return rename (old_name, new_name); } @@ -389,6 +461,8 @@ PACE_INLINE void pace_rewind (FILE * stream) { + PACE_TRACE("pace_rewind"); + rewind (stream); return; } @@ -399,6 +473,8 @@ PACE_INLINE void pace_setbuf (FILE * stream, char * buf) { + PACE_TRACE("pace_setbuf"); + setbuf (stream, buf); return; } @@ -411,6 +487,8 @@ pace_setvbuf(PACE_FILE * stream, char * buf, int mode, pace_size_t size) { + PACE_TRACE("pace_setvbuf"); + return setvbuf (stream, buf, mode, size); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -420,7 +498,9 @@ PACE_INLINE FILE * pace_tmpfile () { - return tmpfile (); + PACE_TRACE("pace_tmpfile"); + + return tmpfile (); } #endif /* PACE_HAS_POSIX_FS_UOF */ @@ -429,7 +509,9 @@ PACE_INLINE char * pace_tmpnam (char * s) { - return tmpnam (s); + PACE_TRACE("pace_tmpnam"); + + return tmpnam (s); } #endif /* PACE_HAS_POSIX_FS_UOF */ @@ -438,7 +520,9 @@ PACE_INLINE int pace_ungetc (int c, FILE * stream) { - return ungetc (c, stream); + PACE_TRACE("pace_ungetc"); + + return ungetc (c, stream); } #endif /* PACE_HAS_POSIX_DI_UOF */ @@ -449,6 +533,8 @@ pace_vfprintf (PACE_FILE * stream, const char * format, va_list arg) { + PACE_TRACE("pace_vfprintf"); + return vfprintf (stream, format, arg); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -459,6 +545,8 @@ int pace_vprintf (const char * format, va_list arg) { + PACE_TRACE("pace_vprintf"); + return vprintf (format, arg); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -470,6 +558,8 @@ pace_vsprintf (char * s, const char * format, va_list arg) { + PACE_TRACE("pace_vsprintf"); + return vsprintf (s, format, arg); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/vxworks/stdlib.inl b/PACE/pace/vxworks/stdlib.inl index 080fa46434b..56569bb52bd 100644 --- a/PACE/pace/vxworks/stdlib.inl +++ b/PACE/pace/vxworks/stdlib.inl @@ -20,6 +20,8 @@ PACE_INLINE void pace_abort (void) { + PACE_TRACE("pace_abort"); + abort (); } #endif /* PACE_HAS_POSIX_SIG_UOF */ @@ -29,6 +31,8 @@ PACE_INLINE int pace_abs (int val) { + PACE_TRACE("pace_abs"); + return abs (val); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -38,6 +42,8 @@ PACE_INLINE int pace_atexit (void (*func)(void)) { + PACE_TRACE("pace_atexit"); + return atexit (func); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -47,6 +53,8 @@ PACE_INLINE double pace_atof (const char * str) { + PACE_TRACE("pace_atof"); + return atof (str); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -56,6 +64,8 @@ PACE_INLINE int pace_atoi (const char * str) { + PACE_TRACE("pace_atoi"); + return atoi (str); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -65,6 +75,8 @@ PACE_INLINE long pace_atol (const char * str) { + PACE_TRACE("pace_atol"); + return atol (str); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -77,6 +89,8 @@ pace_bsearch (const void *key, const void *base, size_t nel, size_t size, pace_bsearch_pf compar) { + PACE_TRACE("pace_bsearch"); + return bsearch (key, base, nel, size, compar); } # else /* ! PACE_HAS_CPLUSPLUS */ @@ -86,6 +100,8 @@ pace_bsearch (const void *key, const void *base, size_t nel, size_t size, int (*compar)(const void *,const void *)) { + PACE_TRACE("pace_bsearch"); + return bsearch (key, base, nel, size, compar); } # endif /* PACE_HAS_CPLUSPLUS */ @@ -96,6 +112,8 @@ PACE_INLINE pace_div_t pace_div (int numer, int denom) { + PACE_TRACE("pace_div"); + return div (numer, denom); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -105,6 +123,8 @@ PACE_INLINE void pace_exit (int status) { + PACE_TRACE("pace_exit"); + exit (status); return; } @@ -115,6 +135,8 @@ PACE_INLINE char * pace_getenv (const char * name) { + PACE_TRACE("pace_getenv"); + return getenv (name); } #endif /* PACE_HAS_POSIX_MP_UOF */ @@ -124,6 +146,8 @@ PACE_INLINE long int pace_labs (long int j) { + PACE_TRACE("pace_labs"); + return labs (j); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -133,6 +157,8 @@ PACE_INLINE pace_ldiv_t pace_ldiv (long int numer, long int denom) { + PACE_TRACE("pace_ldiv"); + return ldiv (numer, denom); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -142,6 +168,8 @@ PACE_INLINE int pace_mblen (const char* s, pace_size_t n) { + PACE_TRACE("pace_mblen"); + return mblen (s, n); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -153,6 +181,8 @@ pace_mbstowcs (pace_wchar_t* pwcs, const char* s, pace_size_t n) { + PACE_TRACE("pace_mbstowcs"); + return mbstowcs (pwcs, s, n); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -164,6 +194,8 @@ pace_mbtowc (pace_wchar_t* pwc, const char* s, pace_size_t n) { + PACE_TRACE("pace_mbtowc"); + return mbtowc (pwc, s, n); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -175,6 +207,8 @@ void pace_qsort (void * base, size_t nel, size_t width, pace_bsearch_pf compar) { + PACE_TRACE("pace_qsort"); + qsort (base, nel, width, compar); } # else /* ! PACE_HAS_CPLUSPLUS */ @@ -183,6 +217,8 @@ void pace_qsort (void * base, size_t nel, size_t width, int (*compar)(const void *,const void *)) { + PACE_TRACE("pace_qsort"); + qsort (base, nel, width, compar); } # endif /* PACE_HAS_CPLUSPLUS */ @@ -193,6 +229,8 @@ PACE_INLINE int pace_rand () { + PACE_TRACE("pace_rand"); + return rand (); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -202,6 +240,8 @@ PACE_INLINE void pace_srand (unsigned int seed) { + PACE_TRACE("pace_srand"); + srand (seed); return; } @@ -212,6 +252,8 @@ PACE_INLINE int pace_rand_r (unsigned int *seed) { + PACE_TRACE("pace_rand_r"); + PACE_UNUSED_ARG (seed); PACE_ERRNO_NO_SUPPORT_RETURN (-1); } @@ -224,6 +266,8 @@ double pace_strtod (const char* nptr, char** endptr) { + PACE_TRACE("pace_strtod"); + return strtod (nptr, endptr); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -235,6 +279,8 @@ pace_strtol (const char* nptr, char** endptr, int base) { + PACE_TRACE("pace_strtol"); + return strtol (nptr, endptr, base); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -246,6 +292,8 @@ pace_strtoul (const char* nptr, char** endptr, int base) { + PACE_TRACE("pace_strtoul"); + return strtoul (nptr, endptr, base); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -255,6 +303,8 @@ PACE_INLINE int pace_system (const char* string) { + PACE_TRACE("pace_system"); + return system (string); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -266,6 +316,8 @@ pace_wcstombs (char* s, const pace_wchar_t* pwcs, pace_size_t n) { + PACE_TRACE("pace_wcstombs"); + return wcstombs (s, pwcs, n); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -275,6 +327,8 @@ PACE_INLINE int pace_wctomb (char* s, pace_wchar_t wchar) { + PACE_TRACE("pace_wctomb"); + return wctomb (s, wchar); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -286,6 +340,8 @@ PACE_INLINE void * pace_malloc (size_t size) { + PACE_TRACE("pace_malloc"); + return malloc (size); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -295,6 +351,8 @@ PACE_INLINE void * pace_calloc (size_t nelem, size_t elsize) { + PACE_TRACE("pace_calloc"); + return calloc (nelem, elsize); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -304,6 +362,8 @@ PACE_INLINE void pace_free (void * ptr) { + PACE_TRACE("pace_free"); + free (ptr); return; } @@ -314,6 +374,8 @@ PACE_INLINE void * pace_realloc (void * ptr, size_t size) { + PACE_TRACE("pace_realloc"); + return realloc (ptr, size); } #endif /* PACE_HAS_POSIX_CLS_UOF */ diff --git a/PACE/pace/vxworks/string.inl b/PACE/pace/vxworks/string.inl index de0a0bbc1fa..65c2701b606 100644 --- a/PACE/pace/vxworks/string.inl +++ b/PACE/pace/vxworks/string.inl @@ -21,6 +21,8 @@ PACE_INLINE void * pace_memchr (const void *s, int c, pace_size_t n) { + PACE_TRACE("pace_memchr"); + return (void*) memchr (s, c, n); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -30,6 +32,8 @@ PACE_INLINE int pace_memcmp (const void *s1, const void *s2, pace_size_t n) { + PACE_TRACE("pace_memcmp"); + return memcmp (s1, s2, n); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -39,6 +43,8 @@ PACE_INLINE void * pace_memcpy (void * s1, const void * s2, pace_size_t n) { + PACE_TRACE("pace_memcpy"); + return memcpy (s1, s2, n); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -48,6 +54,8 @@ PACE_INLINE void * pace_memmove (void *s1, const void *s2, pace_size_t n) { + PACE_TRACE("pace_memmove"); + return memmove (s1, s2, n); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -57,6 +65,8 @@ PACE_BROKEN_INLINE void * pace_memset (void *s, int c, pace_size_t n) { + PACE_TRACE("pace_memset"); + return memset (s, c, n); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -67,6 +77,8 @@ PACE_INLINE char * pace_strcat (char * s1, const char * s2) { + PACE_TRACE("pace_strcat"); + return strcat (s1, s2); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -76,6 +88,8 @@ PACE_INLINE char * pace_strncat (char * s1, const char * s2, size_t n) { + PACE_TRACE("pace_strncat"); + return strncat (s1, s2, n); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -85,6 +99,8 @@ PACE_INLINE char * pace_strchr (const char * s, int c) { + PACE_TRACE("pace_strchr"); + return (char*) strchr (s, c); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -94,6 +110,8 @@ PACE_INLINE char * pace_strrchr (const char * s, int c) { + PACE_TRACE("pace_strrchr"); + return (char*) strrchr (s, c); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -103,6 +121,8 @@ PACE_BROKEN_INLINE int pace_strcmp (const char * s1, const char * s2) { + PACE_TRACE("pace_strcmp"); + return strcmp (s1, s2); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -112,6 +132,8 @@ PACE_BROKEN_INLINE int pace_strncmp (const char * s1, const char * s2, size_t n) { + PACE_TRACE("pace_strncmp"); + return strncmp (s1, s2, n); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -121,6 +143,8 @@ PACE_BROKEN_INLINE char * pace_strcpy (char * s1, const char * s2) { + PACE_TRACE("pace_strcpy"); + return strcpy (s1, s2); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -130,6 +154,8 @@ PACE_INLINE char * pace_strncpy (char * s1, const char * s2, size_t n) { + PACE_TRACE("pace_strncpy"); + return strncpy (s1, s2, n); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -139,6 +165,8 @@ PACE_BROKEN_INLINE size_t pace_strcspn (const char * s1, const char * s2) { + PACE_TRACE("pace_strcspn"); + return strcspn (s1, s2); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -148,6 +176,8 @@ PACE_INLINE size_t pace_strspn (const char * s1, const char * s2) { + PACE_TRACE("pace_strspn"); + return strspn (s1, s2); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -157,6 +187,8 @@ PACE_INLINE size_t pace_strlen (const char * s) { + PACE_TRACE("pace_strlen"); + return strlen (s); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -166,6 +198,8 @@ PACE_BROKEN_INLINE char * pace_strpbrk (const char * s1, const char * s2) { + PACE_TRACE("pace_strpbrk"); + return (char*) strpbrk (s1, s2); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -175,6 +209,8 @@ PACE_INLINE char * pace_strstr (const char * s1, const char * s2) { + PACE_TRACE("pace_strstr"); + return (char*) strstr (s1, s2); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -184,6 +220,8 @@ PACE_INLINE char * pace_strtok (char * s1, const char * s2) { + PACE_TRACE("pace_strtok"); + return strtok (s1, s2); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -193,6 +231,8 @@ PACE_INLINE char * pace_strtok_r (char * s, const char * sep, char ** lasts) { + PACE_TRACE("pace_strtok_r"); + return strtok_r (s, sep, lasts); } #endif /* PACE_HAS_POSIX_CLSR_UOF */ diff --git a/PACE/pace/vxworks/termios.inl b/PACE/pace/vxworks/termios.inl index 06c344a7d5c..30c778371f3 100644 --- a/PACE/pace/vxworks/termios.inl +++ b/PACE/pace/vxworks/termios.inl @@ -19,6 +19,8 @@ PACE_INLINE pace_speed_t pace_cfgetospeed (const pace_termios *termiosp) { + PACE_TRACE("pace_cfgetospeed"); + PACE_UNUSED_ARG(termiosp); PACE_ERRNO_NO_SUPPORT_RETURN (-1); } @@ -29,6 +31,8 @@ PACE_INLINE int pace_cfsetospeed (pace_termios *termios_p, pace_speed_t speed) { + PACE_TRACE("pace_cfsetospeed"); + PACE_UNUSED_ARG(termios_p); PACE_UNUSED_ARG(speed); PACE_ERRNO_NO_SUPPORT_RETURN (-1); @@ -40,6 +44,8 @@ PACE_INLINE pace_speed_t pace_cfgetispeed (const pace_termios *termios_p) { + PACE_TRACE("pace_cfgetispeed"); + PACE_UNUSED_ARG(termios_p); PACE_ERRNO_NO_SUPPORT_RETURN (-1); } @@ -50,6 +56,8 @@ PACE_INLINE int pace_cfsetispeed (pace_termios *termios_p, pace_speed_t speed) { + PACE_TRACE("pace_cfsetispeed"); + PACE_UNUSED_ARG(termios_p); PACE_UNUSED_ARG(speed); PACE_ERRNO_NO_SUPPORT_RETURN (-1); @@ -61,6 +69,8 @@ PACE_INLINE int pace_tcdrain (PACE_HANDLE fildes) { + PACE_TRACE("pace_tcdrain"); + PACE_UNUSED_ARG(fildes); PACE_ERRNO_NO_SUPPORT_RETURN (-1); } @@ -71,6 +81,8 @@ PACE_INLINE int pace_tcgetattr (PACE_HANDLE fildes, pace_termios *termios_p) { + PACE_TRACE("pace_tcgetattr"); + PACE_UNUSED_ARG(fildes); PACE_UNUSED_ARG(termios_p); PACE_ERRNO_NO_SUPPORT_RETURN (-1); @@ -82,6 +94,8 @@ PACE_INLINE int pace_tcflow (PACE_HANDLE fildes, int action) { + PACE_TRACE("pace_tcflow"); + PACE_UNUSED_ARG(fildes); PACE_UNUSED_ARG(action); PACE_ERRNO_NO_SUPPORT_RETURN (-1); @@ -93,6 +107,8 @@ PACE_INLINE int pace_tcflush (PACE_HANDLE fildes, int queue_selector) { + PACE_TRACE("pace_tcflush"); + PACE_UNUSED_ARG(fildes); PACE_UNUSED_ARG(queue_selector); PACE_ERRNO_NO_SUPPORT_RETURN (-1); @@ -104,6 +120,8 @@ PACE_INLINE int pace_tcsendbreak (PACE_HANDLE fildes, int duration) { + PACE_TRACE("pace_tcsendbreak"); + PACE_UNUSED_ARG(fildes); PACE_UNUSED_ARG(duration); PACE_ERRNO_NO_SUPPORT_RETURN (-1); @@ -117,6 +135,8 @@ pace_tcsetattr (PACE_HANDLE fildes, int optional_actions, const pace_termios *termios_p) { + PACE_TRACE("pace_tcsetattr"); + PACE_UNUSED_ARG(fildes); PACE_UNUSED_ARG(optional_actions); PACE_UNUSED_ARG(termios_p); diff --git a/PACE/pace/vxworks/time.inl b/PACE/pace/vxworks/time.inl index b5f988eca4f..a2ed9715823 100644 --- a/PACE/pace/vxworks/time.inl +++ b/PACE/pace/vxworks/time.inl @@ -21,6 +21,8 @@ PACE_INLINE char * pace_asctime (const pace_tm * time) { + PACE_TRACE("pace_asctime"); + return asctime (time); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -32,6 +34,9 @@ pace_asctime_r (const pace_tm * time, char * buf) { /*VxWorks 5.3 seems to have POSIX.4 Draft 9 versions of this as well */ size_t buflen = 26; + + PACE_TRACE("pace_asctime_r"); + if (asctime_r (time, buf, & buflen) != 0) return (char*) 0; return buf; @@ -43,6 +48,8 @@ PACE_INLINE pace_clock_t pace_clock (void) { + PACE_TRACE("pace_clock"); + return clock (); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -52,6 +59,8 @@ PACE_INLINE double pace_difftime (pace_time_t time1, pace_time_t time2) { + PACE_TRACE("pace_difftime"); + return difftime (time1, time2); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -62,6 +71,8 @@ int pace_clock_getres (pace_clockid_t clock_id, pace_timespec * res) { + PACE_TRACE("pace_clock_getres"); + return clock_getres (clock_id, res); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -72,6 +83,8 @@ int pace_clock_gettime (pace_clockid_t clock_id, pace_timespec * tp) { + PACE_TRACE("pace_clock_gettime"); + return clock_gettime (clock_id, tp); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -82,6 +95,8 @@ int pace_clock_settime (pace_clockid_t clock_id, const pace_timespec * tp) { + PACE_TRACE("pace_clock_settime"); + return clock_settime (clock_id, PACE_NONCONST_ARG_CAST (struct timespec *) tp); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -91,6 +106,8 @@ PACE_INLINE char * pace_ctime (const pace_time_t * clock) { + PACE_TRACE("pace_ctime"); + return ctime (clock); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -101,6 +118,9 @@ char * pace_ctime_r (const pace_time_t * clock, char * buf) { size_t buflen = 26; + + PACE_TRACE("pace_ctime_r"); + return ctime_r (clock, buf, & buflen); } #endif /* PACE_HAS_POSIX_CLSR_UOF */ @@ -110,6 +130,8 @@ PACE_INLINE pace_tm * pace_gmtime (const pace_time_t * clock) { + PACE_TRACE("pace_gmtime"); + return gmtime (clock); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -119,6 +141,8 @@ PACE_INLINE pace_tm * pace_gmtime_r (const pace_time_t * clock, pace_tm * result) { + PACE_TRACE("pace_gmtime_r"); + /* VxWorks 5.3 apparently has POSIX.4 Draft 9 versions of these */ if (gmtime_r (clock, result) != 0) return (pace_tm*)0; @@ -131,6 +155,8 @@ PACE_INLINE pace_tm * pace_localtime (const pace_time_t * clock) { + PACE_TRACE("pace_localtime"); + return localtime (clock); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -140,6 +166,8 @@ PACE_INLINE pace_tm * pace_localtime_r (const pace_time_t * clock, pace_tm * result) { + PACE_TRACE("pace_localtime_r"); + /* VxWorks 5.3 apparently has POSIX.4 Draft 9 versions of these */ if (localtime_r (clock, result) != 0) return (pace_tm*)0; @@ -152,6 +180,8 @@ PACE_INLINE time_t pace_mktime (pace_tm * timeptr) { + PACE_TRACE("pace_mktime"); + return mktime (timeptr); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -162,6 +192,8 @@ int pace_nanosleep (const pace_timespec * rqtp, pace_timespec * rmtp) { + PACE_TRACE("pace_nanosleep"); + return nanosleep (PACE_NONCONST_ARG_CAST (struct timespec *) rqtp, rmtp); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -173,6 +205,8 @@ pace_strftime (char *s, pace_size_t maxsize, const char *format, const pace_tm *timeptr) { + PACE_TRACE("pace_strftime"); + return strftime (s, maxsize, format, timeptr); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -182,6 +216,8 @@ PACE_INLINE time_t pace_time (pace_time_t * tloc) { + PACE_TRACE("pace_time"); + return time (tloc); } #endif /* PACE_HAS_POSIX_CLS_UOF */ @@ -193,6 +229,8 @@ pace_timer_create (pace_clockid_t clock_id, pace_sigevent * evp, pace_timer_t *timerid) { + PACE_TRACE("pace_timer_create"); + return timer_create (clock_id, evp, timerid); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -202,6 +240,8 @@ PACE_INLINE int pace_timer_delete (pace_timer_t timerid) { + PACE_TRACE("pace_timer_delete"); + return timer_delete (timerid); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -211,6 +251,8 @@ PACE_INLINE int pace_timer_getoverrun (pace_timer_t timerid) { + PACE_TRACE("pace_timer_getoverrun"); + return timer_getoverrun (timerid); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -221,6 +263,8 @@ int pace_timer_gettime (pace_timer_t timerid, pace_itimerspec * value) { + PACE_TRACE("pace_timer_gettime"); + return timer_gettime (timerid, value); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -233,6 +277,8 @@ pace_timer_settime (pace_timer_t timerid, const pace_itimerspec * value, pace_itimerspec * ovalue) { + PACE_TRACE("pace_timer_settime"); + return timer_settime (timerid, flags, PACE_NONCONST_ARG_CAST (struct itimerspec *) value, ovalue); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -242,6 +288,8 @@ PACE_INLINE void pace_tzset () { + PACE_TRACE("pace_tzset"); + PACE_ERRNO_NO_SUPPORT (); return; } diff --git a/PACE/pace/vxworks/times.inl b/PACE/pace/vxworks/times.inl index 26fd11605e9..c571dd8a2de 100644 --- a/PACE/pace/vxworks/times.inl +++ b/PACE/pace/vxworks/times.inl @@ -18,6 +18,8 @@ PACE_INLINE pace_clock_t pace_times (pace_tms * buffer) { + PACE_TRACE("pace_times"); + PACE_UNUSED_ARG(buffer); PACE_ERRNO_NO_SUPPORT_RETURN (-1); } diff --git a/PACE/pace/vxworks/unistd.inl b/PACE/pace/vxworks/unistd.inl index aefa66f0b5c..eb4c1ac675f 100644 --- a/PACE/pace/vxworks/unistd.inl +++ b/PACE/pace/vxworks/unistd.inl @@ -24,6 +24,8 @@ PACE_INLINE void pace__exit (int status) { + PACE_TRACE("pace__exit"); + exit (status); return; } @@ -34,6 +36,8 @@ PACE_INLINE int pace_access (const char * path, int amode) { + PACE_TRACE("pace_access"); + PACE_UNUSED_ARG(path); PACE_UNUSED_ARG(amode); PACE_ERRNO_NO_SUPPORT_RETURN (-1); @@ -45,6 +49,8 @@ PACE_INLINE unsigned int pace_alarm (unsigned int seconds) { + PACE_TRACE("pace_alarm"); + PACE_UNUSED_ARG(seconds); PACE_ERRNO_NO_SUPPORT_RETURN (-1); } @@ -55,6 +61,8 @@ PACE_INLINE int pace_chdir (const char * path) { + PACE_TRACE("pace_chdir"); + return chdir (PACE_NONCONST_ARG_CAST (char *) path); } #endif /* PACE_HAS_POSIX_FS_UOF */ @@ -64,6 +72,8 @@ PACE_INLINE int pace_chown (const char * path, uid_t owner, pace_gid_t group) { + PACE_TRACE("pace_chown"); + PACE_UNUSED_ARG(path); PACE_UNUSED_ARG(owner); PACE_UNUSED_ARG(group); @@ -76,6 +86,8 @@ PACE_INLINE int pace_close (PACE_HANDLE fildes) { + PACE_TRACE("pace_close"); + return close (fildes); } #endif /* PACE_HAS_POSIX_DI_UOF */ @@ -85,6 +97,8 @@ PACE_INLINE PACE_HANDLE pace_dup (PACE_HANDLE fildes) { + PACE_TRACE("pace_dup"); + PACE_UNUSED_ARG(fildes); PACE_ERRNO_NO_SUPPORT_RETURN (-1); } @@ -95,6 +109,8 @@ PACE_INLINE PACE_HANDLE pace_dup2 (PACE_HANDLE fildes, PACE_HANDLE fildes2) { + PACE_TRACE("pace_dup2"); + PACE_UNUSED_ARG(fildes); PACE_UNUSED_ARG(fildes2); PACE_ERRNO_NO_SUPPORT_RETURN (-1); @@ -107,6 +123,8 @@ int pace_execv (const char * path, char * const argv[]) { + PACE_TRACE("pace_execv"); + PACE_UNUSED_ARG(path); PACE_UNUSED_ARG(argv); PACE_ERRNO_NO_SUPPORT_RETURN (-1); @@ -121,6 +139,8 @@ pace_execve (const char * path, char * const argv[], char * const envp[]) { + PACE_TRACE("pace_execve"); + PACE_UNUSED_ARG(path); PACE_UNUSED_ARG(argv); PACE_UNUSED_ARG(envp); @@ -135,6 +155,8 @@ int pace_execvp (const char * file, char * const argv[]) { + PACE_TRACE("pace_execvp"); + PACE_UNUSED_ARG(file); PACE_UNUSED_ARG(argv); PACE_ERRNO_NO_SUPPORT_RETURN (-1); @@ -147,6 +169,8 @@ PACE_INLINE int pace_fdatasync (PACE_HANDLE fildes) { + PACE_TRACE("pace_fdatasync"); + PACE_UNUSED_ARG(fildes); PACE_ERRNO_NO_SUPPORT_RETURN (-1); } @@ -157,6 +181,8 @@ PACE_INLINE pid_t pace_fork () { + PACE_TRACE("pace_fork"); + PACE_ERRNO_NO_SUPPORT_RETURN (-1); } #endif /* PACE_HAS_POSIX_MP_UOF */ @@ -166,6 +192,8 @@ PACE_INLINE long pace_fpathconf (PACE_HANDLE fildes, int name) { + PACE_TRACE("pace_fpathconf"); + PACE_UNUSED_ARG(fildes); PACE_UNUSED_ARG(name); PACE_ERRNO_NO_SUPPORT_RETURN (-1); @@ -177,6 +205,8 @@ PACE_INLINE int pace_fsync (PACE_HANDLE fildes) { + PACE_TRACE("pace_fsync"); + PACE_UNUSED_ARG(fildes); PACE_ERRNO_NO_SUPPORT_RETURN (-1); } @@ -187,6 +217,8 @@ PACE_INLINE int pace_ftruncate (PACE_HANDLE fildes, pace_off_t length) { + PACE_TRACE("pace_ftruncate"); + return ftruncate (fildes, length); } #endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ @@ -196,6 +228,8 @@ PACE_INLINE char * pace_getcwd (char * buf, size_t size) { + PACE_TRACE("pace_getcwd"); + return getcwd (buf, size); } #endif /* PACE_HAS_POSIX_FS_UOF */ @@ -205,6 +239,8 @@ PACE_INLINE uid_t pace_getegid () { + PACE_TRACE("pace_getegid"); + /* getegid() is not supported: just one user anyway */ return 0; } @@ -215,6 +251,8 @@ PACE_INLINE uid_t pace_geteuid () { + PACE_TRACE("pace_geteuid"); + /* geteuid() is not supported: just one user anyway */ return 0; } @@ -225,6 +263,8 @@ PACE_INLINE int pace_getgroups (int gidsetsize, pace_gid_t grouplist[]) { + PACE_TRACE("pace_getgroups"); + /* getgroups() is not supported: just one user anyway */ PACE_UNUSED_ARG(gidsetsize); PACE_UNUSED_ARG(grouplist); @@ -237,6 +277,8 @@ PACE_INLINE uid_t pace_getgid () { + PACE_TRACE("pace_getgid"); + /* getgid() is not supported: just one user anyway */ return 0; } @@ -247,6 +289,8 @@ PACE_INLINE char* pace_getlogin () { + PACE_TRACE("pace_getlogin"); + PACE_ERRNO_NO_SUPPORT_RETURN ((char *) 0); } #endif /* PACE_HAS_POSIX_UGR_UOF */ @@ -256,6 +300,8 @@ PACE_INLINE int pace_getlogin_r (char * name, size_t namesize) { + PACE_TRACE("pace_getlogin_r"); + PACE_UNUSED_ARG(name); PACE_UNUSED_ARG(namesize); PACE_ERRNO_NO_SUPPORT_RETURN (-1); @@ -267,6 +313,8 @@ PACE_INLINE pid_t pace_getpgrp () { + PACE_TRACE("pace_getpgrp"); + /* getpgrp() is not supported: just one user anyway */ return 0; } @@ -277,6 +325,8 @@ PACE_INLINE pid_t pace_getpid () { + PACE_TRACE("pace_getpid"); + /* getpid() is not supported: just one user anyway */ return 0; } @@ -287,6 +337,8 @@ PACE_INLINE pid_t pace_getppid () { + PACE_TRACE("pace_getppid"); + /* getppid() is not supported: just one user anyway */ return 0; } @@ -297,6 +349,8 @@ PACE_INLINE uid_t pace_getuid () { + PACE_TRACE("pace_getuid"); + /* getuid() is not supported: just one user anyways */ return 0; } @@ -307,6 +361,8 @@ PACE_INLINE int pace_isatty (int fildes) { + PACE_TRACE("pace_isatty"); + return isatty (fildes); } #endif /* PACE_HAS_POSIX_DS_UOF */ @@ -316,6 +372,8 @@ PACE_INLINE int pace_link (const char * existing, const char * new_link) { + PACE_TRACE("pace_link"); + PACE_UNUSED_ARG(existing); PACE_UNUSED_ARG(new_link); PACE_ERRNO_NO_SUPPORT_RETURN (-1); @@ -327,6 +385,8 @@ PACE_INLINE pace_off_t pace_lseek (PACE_HANDLE fildes, pace_off_t offset, int whence) { + PACE_TRACE("pace_lseek"); + return lseek (fildes, offset, whence); } #endif /* PACE_HAS_POSIX_FM_UOF */ @@ -336,6 +396,8 @@ PACE_INLINE long pace_pathconf (const char * path, int name) { + PACE_TRACE("pace_pathconf"); + PACE_UNUSED_ARG(path); PACE_UNUSED_ARG(name); PACE_ERRNO_NO_SUPPORT_RETURN (-1); @@ -347,6 +409,8 @@ PACE_INLINE int pace_pause () { + PACE_TRACE("pace_pause"); + return pause (); } #endif /* PACE_HAS_POSIX_SIG_UOF */ @@ -356,6 +420,8 @@ PACE_INLINE int pace_pipe (PACE_HANDLE fildes[2]) { + PACE_TRACE("pace_pipe"); + PACE_UNUSED_ARG(fildes); PACE_ERRNO_NO_SUPPORT_RETURN (-1); } @@ -366,6 +432,8 @@ PACE_INLINE ssize_t pace_read (PACE_HANDLE fildes, void * buf, size_t nbyte) { + PACE_TRACE("pace_read"); + return read (fildes, PACE_NONCONST_ARG_CAST (char *) buf, nbyte); } #endif /* PACE_HAS_POSIX_DI_UOF */ @@ -375,6 +443,8 @@ PACE_INLINE int pace_rmdir (const char * path) { + PACE_TRACE("pace_rmdir"); + return rmdir (PACE_NONCONST_ARG_CAST (char *) path); } #endif /* PACE_HAS_POSIX_FS_UOF */ @@ -384,6 +454,8 @@ PACE_INLINE int pace_setgid (pace_gid_t gid) { + PACE_TRACE("pace_setgid"); + /* setuid() is not supported: just one user anyways */ return 0; } @@ -394,6 +466,8 @@ PACE_INLINE int pace_setpgid (pid_t pid, pid_t pgid) { + PACE_TRACE("pace_setpgid"); + /* setpgid() is not supported: just one user anyways */ return 0; } @@ -404,6 +478,8 @@ PACE_INLINE pid_t pace_setsid () { + PACE_TRACE("pace_setsid"); + /* setsid() is not supported: just one user anyways */ return 0; } @@ -414,6 +490,8 @@ PACE_INLINE int pace_setuid (uid_t uid) { + PACE_TRACE("pace_setuid"); + /* setuid() is not supported: just one user anyways */ return 0; } @@ -426,6 +504,9 @@ pace_sleep (unsigned int seconds) { struct timespec rqtp; /* Initializer doesn't work with Green Hills 1.8.7 */ + + PACE_TRACE("pace_sleep"); + rqtp.tv_sec = seconds; rqtp.tv_nsec = 0L; return nanosleep (&rqtp, 0); @@ -437,6 +518,8 @@ PACE_INLINE long pace_sysconf (int name) { + PACE_TRACE("pace_sysconf"); + PACE_UNUSED_ARG(name); PACE_ERRNO_NO_SUPPORT_RETURN (-1); } @@ -447,6 +530,8 @@ PACE_INLINE pid_t pace_tcgetpgrp (PACE_HANDLE fildes) { + PACE_TRACE("pace_tcgetpgrp"); + PACE_UNUSED_ARG(fildes); PACE_ERRNO_NO_SUPPORT_RETURN (-1); } @@ -457,6 +542,8 @@ PACE_INLINE int pace_tcsetpgrp (PACE_HANDLE fildes, pid_t pgrp_id) { + PACE_TRACE("pace_tcsetpgrp"); + PACE_UNUSED_ARG(fildes); PACE_UNUSED_ARG(pgrp_id); PACE_ERRNO_NO_SUPPORT_RETURN (-1); @@ -468,6 +555,8 @@ PACE_INLINE char * pace_ttyname (PACE_HANDLE fildes) { + PACE_TRACE("pace_ttyname"); + PACE_UNUSED_ARG(fildes); PACE_ERRNO_NO_SUPPORT_RETURN ((char *) 0); } @@ -480,6 +569,8 @@ pace_ttyname_r (PACE_HANDLE fildes, char * name, size_t namesize) { + PACE_TRACE("pace_ttyname_r"); + PACE_UNUSED_ARG(fildes); PACE_UNUSED_ARG(name); PACE_UNUSED_ARG(namesize); @@ -492,6 +583,8 @@ PACE_INLINE int pace_unlink (const char * path) { + PACE_TRACE("pace_unlink"); + return unlink (PACE_NONCONST_ARG_CAST (char *) path); } #endif /* PACE_HAS_POSIX_FS_UOF */ @@ -501,6 +594,8 @@ PACE_INLINE ssize_t pace_write (PACE_HANDLE fildes, const void * buf, size_t nbyte) { + PACE_TRACE("pace_write"); + return write (fildes, PACE_NONCONST_ARG_CAST (char *) buf, nbyte); } #endif /* PACE_HAS_POSIX_DI_UOF */ diff --git a/PACE/pace/vxworks/utime.inl b/PACE/pace/vxworks/utime.inl index 8a9be4793f8..28c38097d68 100644 --- a/PACE/pace/vxworks/utime.inl +++ b/PACE/pace/vxworks/utime.inl @@ -19,6 +19,8 @@ int pace_utime (const char * path, const pace_utimbuf * times) { + PACE_TRACE("pace_utime"); + return utime (PACE_NONCONST_ARG_CAST (char *) path, PACE_NONCONST_ARG_CAST (pace_utimbuf *) times); } diff --git a/PACE/pace/vxworks/utsname.inl b/PACE/pace/vxworks/utsname.inl index fb0052108d2..0925ebfef1f 100644 --- a/PACE/pace/vxworks/utsname.inl +++ b/PACE/pace/vxworks/utsname.inl @@ -23,8 +23,15 @@ int pace_uname (pace_utsname * name) { size_t maxnamelen = sizeof name->nodename; + + PACE_TRACE("pace_uname"); + pace_strcpy (name->sysname, "VxWorks"); - pace_strcpy (name->release, "???"); +#if (PACE_VXWORKS == 531) + pace_strcpy (name->release, "5.3.1"); +#elif (PACE_VXWORKS == 540) + pace_strcpy (name->release, "5.4.0"); +#endif /* PACE_VXWORKS != 531 */ pace_strcpy (name->version, sysBspRev ()); pace_strcpy (name->machine, sysModel ()); diff --git a/PACE/pace/vxworks/wait.inl b/PACE/pace/vxworks/wait.inl index 33e8c2bee4f..1aee5137b7f 100644 --- a/PACE/pace/vxworks/wait.inl +++ b/PACE/pace/vxworks/wait.inl @@ -20,6 +20,8 @@ PACE_INLINE pid_t pace_wait (int * statloc) { + PACE_TRACE("pace_wait"); + PACE_UNUSED_ARG (statloc); PACE_ERRNO_NO_SUPPORT_RETURN (0); } @@ -30,6 +32,8 @@ PACE_INLINE pid_t pace_waitpid (pid_t pid, int * statloc, int options) { + PACE_TRACE("pace_waitpid"); + PACE_UNUSED_ARG (pid); PACE_UNUSED_ARG (statloc); PACE_UNUSED_ARG (options); diff --git a/PACE/tests/Makefile b/PACE/tests/Makefile index c428dada18a..5acfd985f6e 100644 --- a/PACE/tests/Makefile +++ b/PACE/tests/Makefile @@ -11,10 +11,13 @@ CFLAGS += -DPACE_HAS_ALL_POSIX_FUNCS # Local macros #---------------------------------------------------------------------------- +# Ensure that POSIX_SP_Test is the last test built. For some platforms, +# it doesn't build (which is actually the test). This is currently the +# only file like this (i.e., which may not compile). BIN = Stdio_Test \ Pthreads_Test \ mqueue_test \ - Posix_SP_Test \ + Posix_SP_Test #### If the PACE library wasn't built with all components, don't #### try to build certain tests. diff --git a/PACE/tests/Posix_SP_Test.c b/PACE/tests/Posix_SP_Test.c index ded757111c0..f7612f1905a 100644 --- a/PACE/tests/Posix_SP_Test.c +++ b/PACE/tests/Posix_SP_Test.c @@ -27,6 +27,10 @@ const char * success = "SUCCEEDED"; const char * failure = "***FAILED***"; +#if defined (PACE_VXWORKS) && PACE_VXWORKS != 0 +#include "vxworks_stub.c" +#endif /* VXWORKS */ + void check_sysconf () { diff --git a/PACE/tests/Pthreads_Test.c b/PACE/tests/Pthreads_Test.c index 6ed8d88c2c5..04d70ae05c7 100644 --- a/PACE/tests/Pthreads_Test.c +++ b/PACE/tests/Pthreads_Test.c @@ -21,84 +21,7 @@ #include "pace/pthread.h" #if defined (PACE_VXWORKS) && PACE_VXWORKS != 0 - -# define main ace_main -# define PACE_NEEDS_HUGE_THREAD_STACKSIZE 64000 -# include /**/ <usrLib.h> /* for ::sp() */ - -/* This global function can be used from the VxWorks shell to pass - * arguments to a C main () function. - * - * usage: -> spa main, "arg1", "arg2" - * - * All arguments must be quoted, even numbers. - */ -int -spa (FUNCPTR entry, ...) -{ - const unsigned int MAX_ARGS = 10; - char *argv[MAX_ARGS]; - va_list pvar; - unsigned int argc; - int ret; - - /* Hardcode a program name because the real one isn't available - * through the VxWorks shell. - */ - argv[0] = "ace_main"; - - /* Peel off arguments to spa () and put into argv. va_arg () isn't - * necessarily supposed to return 0 when done, though since the - * VxWorks shell uses a fixed number (10) of arguments, it might 0 - * the unused ones. This function could be used to increase that - * limit, but then it couldn't depend on the trailing 0. So, the - * number of arguments would have to be passed. - */ - va_start (pvar, entry); - - for (argc = 1; argc <= MAX_ARGS; ++argc) - { - argv[argc] = va_arg (pvar, char *); - - if (argv[argc] == 0) - break; - } - - if (argc > MAX_ARGS && argv[argc-1] != 0) - { - /* try to read another arg, and warn user if the limit was exceeded */ - if (va_arg (pvar, char *) != 0) - pace_fprintf (stderr, "spa(): number of arguments limited to %d\n", - MAX_ARGS); - } - else - { - /* fill unused argv slots with 0 to get rid of leftovers - * from previous invocations - */ - unsigned int i; - for (i = argc; i <= MAX_ARGS; ++i) - argv[i] = 0; - } - - /* The hard-coded options are what ::sp () uses, except for the - * larger stack size (instead of ::sp ()'s 20000). - */ - ret = taskSpawn (argv[0], /* task name */ - 100, /* task priority */ - VX_FP_TASK, /* task options */ - PACE_NEEDS_HUGE_THREAD_STACKSIZE, /* stack size */ - entry, /* entry point */ - argc, /* first argument to main () */ - (int) argv, /* second argument to main () */ - 0, 0, 0, 0, 0, 0, 0, 0); - va_end (pvar); - - /* taskSpawn () returns the taskID on success: return 0 instead if - * successful - */ - return ret > 0 ? 0 : ret; -} +#include "vxworks_stub.c" #endif /* VXWORKS */ void diff --git a/PACE/tests/Stdio_Test.c b/PACE/tests/Stdio_Test.c index ed0e152a44a..469b4f433a8 100644 --- a/PACE/tests/Stdio_Test.c +++ b/PACE/tests/Stdio_Test.c @@ -29,84 +29,7 @@ const char * success = "SUCCEEDED"; const char * failure = "***FAILED***"; #if defined (PACE_VXWORKS) && PACE_VXWORKS != 0 - -# define main ace_main -# define PACE_NEEDS_HUGE_THREAD_STACKSIZE 64000 -# include /**/ <usrLib.h> /* for ::sp() */ - -/* This global function can be used from the VxWorks shell to pass - * arguments to a C main () function. - * - * usage: -> spa main, "arg1", "arg2" - * - * All arguments must be quoted, even numbers. - */ -int -spa (FUNCPTR entry, ...) -{ - const unsigned int MAX_ARGS = 10; - char *argv[MAX_ARGS]; - va_list pvar; - unsigned int argc; - int ret; - - /* Hardcode a program name because the real one isn't available - * through the VxWorks shell. - */ - argv[0] = "ace_main"; - - /* Peel off arguments to spa () and put into argv. va_arg () isn't - * necessarily supposed to return 0 when done, though since the - * VxWorks shell uses a fixed number (10) of arguments, it might 0 - * the unused ones. This function could be used to increase that - * limit, but then it couldn't depend on the trailing 0. So, the - * number of arguments would have to be passed. - */ - va_start (pvar, entry); - - for (argc = 1; argc <= MAX_ARGS; ++argc) - { - argv[argc] = va_arg (pvar, char *); - - if (argv[argc] == 0) - break; - } - - if (argc > MAX_ARGS && argv[argc-1] != 0) - { - /* try to read another arg, and warn user if the limit was exceeded */ - if (va_arg (pvar, char *) != 0) - pace_fprintf (stderr, "spa(): number of arguments limited to %d\n", - MAX_ARGS); - } - else - { - /* fill unused argv slots with 0 to get rid of leftovers - * from previous invocations - */ - unsigned int i; - for (i = argc; i <= MAX_ARGS; ++i) - argv[i] = 0; - } - - /* The hard-coded options are what ::sp () uses, except for the - * larger stack size (instead of ::sp ()'s 20000). - */ - ret = taskSpawn (argv[0], /* task name */ - 100, /* task priority */ - VX_FP_TASK, /* task options */ - PACE_NEEDS_HUGE_THREAD_STACKSIZE, /* stack size */ - entry, /* entry point */ - argc, /* first argument to main () */ - (int) argv, /* second argument to main () */ - 0, 0, 0, 0, 0, 0, 0, 0); - va_end (pvar); - - /* taskSpawn () returns the taskID on success: return 0 instead if - * successful - */ - return ret > 0 ? 0 : ret; -} +#include "vxworks_stub.c" #endif /* VXWORKS */ @@ -179,12 +102,13 @@ main (int argc, char **argv) return -1; } - - /* uncomment this line to pause the program to test the size - * of the exe Cntr-Alt-Del and then look at the task manager to - * find the size - pace_sleep (20); - */ + /* Test removing a file. */ + retval = pace_unlink (filename); + if (retval != 0) + { + printf("pace_unlink %s\n", failure); + return -1; + } PACE_UNUSED_ARG (argc); PACE_UNUSED_ARG (argv); diff --git a/PACE/tests/mqueue_test.c b/PACE/tests/mqueue_test.c index 3874564b1a9..2a1c20cfda8 100644 --- a/PACE/tests/mqueue_test.c +++ b/PACE/tests/mqueue_test.c @@ -8,6 +8,10 @@ #include "pace/signal.h" #include "pace/string.h" +#if defined (PACE_VXWORKS) && PACE_VXWORKS != 0 +#include "vxworks_stub.c" +#endif /* VXWORKS */ + /* Most of this code is borowed from Konstantin Knizhnik <http://www.ispras.ru/~knizhnik/posix1b/> */ pace_mqd_t mqdes; diff --git a/PACE/tests/vxworks_stub.c b/PACE/tests/vxworks_stub.c new file mode 100644 index 00000000000..920c4c4051f --- /dev/null +++ b/PACE/tests/vxworks_stub.c @@ -0,0 +1,94 @@ +/* $Id$ -*- C -*- */ + +/* ===================================================================== */ +/* */ +/* = FILENAME */ +/* vxworks_stub.c */ +/* */ +/* = DESCRIPTION */ +/* The file includes the special machinations that are needed to */ +/* kick off a C program in VxWorks. Every test run on VxWorks needs */ +/* to have this so it is put into this common file. */ +/* */ +/* = AUTHOR */ +/* Joe Hoffert <joeh@cs.wustl.edu> */ +/* */ +/* ===================================================================== */ + +# define main pace_main +# define PACE_NEEDS_HUGE_THREAD_STACKSIZE 64000 +# include /**/ <usrLib.h> /* for ::sp() */ + +/* This global function can be used from the VxWorks shell to pass + * arguments to a C main () function. + * + * usage: -> spa main, "arg1", "arg2" + * + * All arguments must be quoted, even numbers. + */ +int +spa (FUNCPTR entry, ...) +{ + const unsigned int MAX_ARGS = 10; + char *argv[MAX_ARGS]; + va_list pvar; + unsigned int argc; + int ret; + + /* Hardcode a program name because the real one isn't available + * through the VxWorks shell. + */ + argv[0] = "pace_main"; + + /* Peel off arguments to spa () and put into argv. va_arg () isn't + * necessarily supposed to return 0 when done, though since the + * VxWorks shell uses a fixed number (10) of arguments, it might 0 + * the unused ones. This function could be used to increase that + * limit, but then it couldn't depend on the trailing 0. So, the + * number of arguments would have to be passed. + */ + va_start (pvar, entry); + + for (argc = 1; argc <= MAX_ARGS; ++argc) + { + argv[argc] = va_arg (pvar, char *); + + if (argv[argc] == 0) + break; + } + + if (argc > MAX_ARGS && argv[argc-1] != 0) + { + /* try to read another arg, and warn user if the limit was exceeded */ + if (va_arg (pvar, char *) != 0) + pace_fprintf (stderr, "spa(): number of arguments limited to %d\n", + MAX_ARGS); + } + else + { + /* fill unused argv slots with 0 to get rid of leftovers + * from previous invocations + */ + unsigned int i; + for (i = argc; i <= MAX_ARGS; ++i) + argv[i] = 0; + } + + /* The hard-coded options are what ::sp () uses, except for the + * larger stack size (instead of ::sp ()'s 20000). + */ + ret = taskSpawn (argv[0], /* task name */ + 100, /* task priority */ + VX_FP_TASK, /* task options */ + PACE_NEEDS_HUGE_THREAD_STACKSIZE, /* stack size */ + entry, /* entry point */ + argc, /* first argument to main () */ + (int) argv, /* second argument to main () */ + 0, 0, 0, 0, 0, 0, 0, 0); + va_end (pvar); + + /* taskSpawn () returns the taskID on success: return 0 instead if + * successful + */ + return ret > 0 ? 0 : ret; +} |