diff options
Diffstat (limited to 'PACE')
243 files changed, 0 insertions, 25370 deletions
diff --git a/PACE/ChangeLog b/PACE/ChangeLog deleted file mode 100644 index e4c77d4fd05..00000000000 --- a/PACE/ChangeLog +++ /dev/null @@ -1,2557 +0,0 @@ -Sat Jul 29 09:39:24 2000 David L. Levine <levine@cs.wustl.edu> - - * tests/mqueue_test.c: added RCS Id string. - -Sat Jul 29 09:31:59 2000 David L. Levine <levine@cs.wustl.edu> - - * tests/mqueue_test.c: got it to compile cleanly on OSF1, - by adding an unused arg to msg_handler, and commenting - the characters after an #endif. - -Sat Jul 29 09:19:01 2000 David L. Levine <levine@cs.wustl.edu> - - * include/makeinclude/rules.common.h (CFLAGS): on OSF1, added - -D_DEC_XPG, to pickup up _SC_AIO_LISTIO_MAX, et al., from - /usr/include/unistd.h. - -Sat Jul 29 09:08:15 2000 David L. Levine <levine@cs.wustl.edu> - - * pace/config/config.h,pace/posix/aio.inl (aio_suspend): - added PACE_AIO_SUSPEND_LIST_ARG_CAST, with special value - on OSF1 (DIGITAL_UNIX). - -Fri Jul 28 18:11:24 2000 David L. Levine <levine@cs.wustl.edu> - - * README: mention LynxOS' non-standard signal interface. - -Fri Jul 28 15:54:38 2000 Joe Hoffert <joeh@cs.wustl.edu> - - * tests/Makefile: - Modified to use ace_components rather than - pace_components. - - * pace/posix/signal.h: - Changed pace_sig_pf typedef to compile for LynxOS. Still - need to fix it to compile for ACE with PACE for LynxOS. - - * pace/posix/signal.inl: - Fixed sigwait and signal for LynxOS (at least for building - pace). - - * pace/posix/time.inl: - * pace/posix/pwd.inl: - * pace/posix/grp.inl: - * pace/posix/dirent.inl: - Changed LynxOS workarounds for the reentrant functions - and deleted the check for SUNOS since now it can use - the POSIX calls (with _POSIX_PTHREAD_SEMANTICS being - defined properly). - - * pace/config/config.h: - Deleted definition of _REENTRANT (and put it in - include/makeinclude/rules.common.GNU) and defined - the different POSIX UoF macros to be 0 if we're - not using all of them. - - * pace/Makefile: - Modified to use bin/ace_components rather than - bin/pace_components (which is going away). - - * include/makeinclude/rules.common.GNU: - Adding -D_POSIX_PTHREAD_SEMANTICS (if threads == 1) - and -D_REENTRANT for SunOS so they get defined before - any include files. - -Fri Jul 28 11:29:08 2000 David L. Levine <levine@cs.wustl.edu> - - * README: added brief discussion of how PACE helps - insulate applications from the OS. - -Fri Jul 28 06:28:26 2000 John Heitmann <jwh1@cs.wustl.edu> - - * pace/posix/dirent.inl - * pace/posix/grp.inl - * pace/posix/pwd.inl - * pace/posix/signal.inl - Got rid of PACE_HAS_PTHREAD_SEMANTICS not supported code - in favor of platform specific modifications. - -Thu Jul 27 15:02:53 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/config/utility.h: - - Clean up comments. - -Thu Jul 27 14:04:47 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/config/defines.h: - - Removed #include "temp.h". - -Thu Jul 27 13:50:48 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/config/constants.h: - - Moved contents of pace/config/temp.h to constants.h. - Some of this probably shouldn't be in contstants.h. - - * pace/config/temp.h: - - Removed. - -Thu Jul 27 13:03:29 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/config/constants.h (PACE_ONE_SECOND_IN_NSECS): - - Typo! - -Thu Jul 27 12:33:55 2000 David L. Levine <levine@cs.wustl.edu> - - * README, VERSION: updated in preparation for 1.0 release. - -Thu Jul 27 08:36:01 2000 John Heitmann <jwh1@cs.wustl.edu> - - * pace/fcntl.h - * pace/mqueue.h - * pace/semaphore.h - * pace/stdio.h - Added :: qualifier to macros, but of course these should - be defined by the user, so these will go away once - I update OS.*. - - * pace/config/config.h - Added _REENTRANT for solaris. - - * pace/posix/time.inl - * pace/posix/unistd.inl - Took away PACE_HAS_PTHREAD_SEMANTICS in favor of platform - specific code. It appears PAC_HAS_PTHREAD_SEMANTICS is now - superfluous. - - * ../ace/OS.i - Qualified two functions with pace_ as they should - have been originally. Paceified ACE_OS::gettimeofday. - -Wed Jul 26 17:13:51 2000 John Heitmann <jwh1@cs.wustl.edu> - - * pace/emulation/mqueue.c: - Removed print_queue(), qualified attrdefault - with pace_, fixed memory leaks, and fixed - the totally broken mq_unlink. - -Tue Jul 25 17:09:13 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/mman.c: - - Typo. - -Tue Jul 25 17:00:13 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/dirent.h: - * pace/win32/dirent.inl: - * pace/win32/dirent.c: - * pace/win32/fcntl.h: - * pace/win32/fcntl.inl: - * pace/win32/fcntl.c: - * pace/win32/mman.h: - * pace/win32/mman.inl: - * pace/win32/mman.c: - * pace/win32/semaphore.h: - * pace/win32/semaphore.inl: - * pace/win32/semaphore.c: - * pace/win32/signal.h: - * pace/win32/signal.inl: - * pace/win32/signal.c: - * pace/win32/stat.h: - * pace/win32/stat.inl: - * pace/win32/stat.c: - * pace/win32/unistd.h: - * pace/win32/unistd.inl: - * pace/win32/unistd.c: - * pace/win32/utime.h: - * pace/win32/utime.inl: - * pace/win32/utime.c: - * pace/win32/utsname.h: - * pace/win32/utsname.inl: - * pace/win32/utsname.c: - - Placed emulation prototype in the .h file. - Removed emulation code from the .inl file. - Moved emulation code to the .c file. - -Mon Jul 24 15:57:24 2000 John Heitmann <jwh1@cs.wustl.edu> - - * pace/posix/string.inl - Casted away const returns. - - * pace/posix/signal.h - Moved pace_sig_pf back inside the extern "C" {} - -Mon Jul 24 14:19:54 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/TODO: - - Updated. - -Mon Jul 24 14:02:54 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32: - - Updated pace.dsw. Re-arranged files and folders. - - * pace/win32/TODO: - - Updated. - -Sun Jul 23 20:36:54 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/TODO: - - Updated. - -Sun Jul 23 20:21:02 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/*: - - Cleaned up alot of implementation. - - Got rid of separate 'emulation' functions because only win32 - is in this directory (if we supported multiple platforms in - this directory, then the code would get messy so we would do - better to inline and call emulation funcs according to the - platform at hand). - - Inserted ACE style macros for WIN32 OS calls. Set errno - properly and adapts return values to POSIX compliance. - -Sun Jul 23 19:17:33 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/pthread.h: - - Added typedefs from pace/posix/pthread.h. - -Sun Jul 23 18:34:26 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/pthread.inl: - - Win32 doesn't support pthreads. These all need to be emulated. - - * pace/docs/PACE_POSIX_support.txt - - Updated. - -Sun Jul 23 17:32:44 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/pthread.h: - - Missing pace_* prefix on two sigset_t args. - Missing pace_* prefix on pthread_t arg. - - Became evident on NT because there are no definitions for - the native types. - -Sat Jul 22 09:24:34 2000 Ossama Othman <ossama@uci.edu> - - * pace/Makefile.am (DESTDIRS): - - Added missing line continuation backslash `\'. - - * pace/posix/Makefile.am (noinst_LTLIBRARIES): - - Rename libtool convenience library to `libPACE_POSIX.la' to - avoid name clash with the actual `libPACE.la' library. - -Fri Jul 21 20:41:04 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/unistd.inl: - * pace/posix/unistd.inl: - * pace/unistd.h: - - Typos. - -Fri Jul 21 20:35:38 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/wait.h: - * pace/win32/wait.inl: - - ACE implements waitpid with an additional argument (HANDLE). - Eliminated POSIX support here. - - * pace/docs/PACE_POSIX_support.txt - - Updated. - -Fri Jul 21 20:23:55 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/utsname.inl (pace_uname): - - Partial emulation made. But more work to be done! - - * pace/docs/PACE_POSIX_support.txt - - Updated. - -Fri Jul 21 19:49:19 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/utime.h (pace_utime): - * pace/win32/utime.inl (pace_utime): - - Implemented the "RIGHT ANSWER[TM]" but it doesn't work so - casted away and made the current func work. Left the - correct implementation -- "unimplemented" :-/ in the file. - - * pace/docs/PACE_POSIX_support.txt - - Updated. - -Fri Jul 21 19:22:28 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/string.inl: - - Fixed eror from adding new funcs (retval param was const). - -Fri Jul 21 18:43:07 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/unistd.inl: - - Emulated or removed implementation. - - * pace/docs/PACE_POSIX_support.txt - - Updated. - -Fri Jul 21 18:33:04 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/config/constants.h (PACE_ONE_SECOND_IN_MSECS): - - Added. - -Fri Jul 21 18:19:50 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/config/utility.h: - - Added PACE_SYSCALL_FAILED 0xFFFFFFFF - -Fri Jul 21 12:19:06 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/config/utility.h: - - Typo. ACE_ADAPT_RETVAL ... PACE_ADAPT_RETVAL. - -Thu Jul 20 22:58:16 2000 John Heitmann <jwh1@cs.wustl.edu> - - * pace/stdlib.h - * pace/posix/stdlib.inl - Added atexit, div, labs, ldiv, mblen, mbstowcs, mbtowc - strtod, strtol, strtoul, system, wcstombs, wctomb. - - * pace/string.h - * pace/posix/string.inl - Removed const return from strchr, strstr, strrchr, strpbrk. - - *../ace/OS_String.* - Paceified. - - *../ace/ThreadManager.cpp - Paceified. - - * docs/ACE_Integration.txt - Updated. - -Thu Jul 20 19:17:15 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/unistd.inl: - - Part of file fixed. Wanted to commit before I lose something. - -Thu Jul 20 19:19:28 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/unistd.h: - * pace/posix/unistd.h: - - _isatty, lseek are both implemented in win32 with - int fildes. Removed PACE_HANDLE here. - -Thu Jul 20 19:00:12 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/posix/unistd.inl (pace_fsync): - - Missing the wrapper? pace_fsync --> return fildes. - Changed to 'return fsync (fildes); :-) - -Thu Jul 20 18:55:39 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/unistd.h: - * pace/posix/unistd.inl: - - More PACE_HANDLE (dup, dup2) - -Thu Jul 20 14:47:20 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/config/utility.h: - - Better comments and changed syntax of PACE_OSCALL_RETURN. - -Thu Jul 20 14:42:26 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/config/utility.h (ACE_ADAPT_RETVAL): - - Typo. - -Thu Jul 20 14:12:44 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/posix/unistd.inl: - * pace/unistd.h: - - Lots of int file descriptors changed to PACE_HANDLE. - -Wed Jul 19 19:50:54 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/config/utility.h: - - Added some sorely needed macros for adapting return values. - Used extensively by ACE to emulate funcs on win32. - -Tue Jul 18 23:25:43 2000 John Heitmann <jwh1@cs.wustl.edu> - - * pace/posix/signal.h - * pace/posix/signal.inl - * pace/posix/stdio.h - * pace/posix/stdlib.h - * pace/posix/time.h - * pace/posix/unistd.h - - Added double definition protections around types, PACE_NULL - in particular. - - * pace/posix/signal* - - Changed signal's pointer to a functions to almost support - Lynx, but it is not quite working yet. - - * ../ace/ACE.cpp - * ../ace/OS_Memory.h - - Changed system calls to pace calls. - - * ../ace/OS.h - - Reverted part of my earlier changes to support Lynxos in - a cleaner way. - - * ../ace/OS.h - * ../ace/OS.i - - Many small changes including wrapping most calls with ACE_OSCALL - to handle EINTR correctly. - -Tue Jul 18 15:13:40 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/times.h: - * pace/win32/times.inl: - - Fixed type support. - Eliminated unsupported funcs (return -1 and set ernno). - - * docs/PACE_POSIX_support.txt: - - Updated. - -Tue Jul 18 15:09:09 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/time.inl: - - Eliminated and confirmed suport for funcs. - - * docs/PACE_POSIX_support.txt: - - Updated. - -Tue Jul 18 14:43:08 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/termios.h: - * pace/posix/termios.inl: - - PACE_HANDLE substituted in for file descriptors. - - * pace/win32/termios.h: - * pace/win32/termios.inl: - - Eliminated support for most funcs. Return -1 and set ernno - to ENOTSUP. - - * docs/PACE_POSIX_support.txt: - - Updated. - -Tue Jul 18 14:15:11 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/stdio.inl: - - Eliminated support for cterm. - Created support for v...print.. family of funcs. - - * docs/PACE_POSIX_support.txt: - - Updated. - -Tue Jul 18 13:52:13 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/stat.h: - * pace/win32/stat.inl: - - Eliminated, emulated and confirmed suport for funcs. - - * docs/PACE_POSIX_support.txt: - - Updated. - -Tue Jul 18 13:16:14 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/signal.h: - * pace/win32/signal.inl: - - Eliminated, emulated and confirmed suport for funcs. - - * docs/PACE_POSIX_support.txt: - - Updated. - -Tue Jul 18 11:33:16 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/setjmp.h: - * pace/win32/setjmp.inl: - - Eliminated support sig(setjmp/longjmp). - - * docs/PACE_POSIX_support.txt: - - Updated. - -Mon Jul 17 18:29:27 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/semaphore.h: - * pace/win32/semaphore.inl: - - Eliminated support for these functions. Started emulation. - - * pace/win32/types.h: - - Changed PACE_HANDLE to represent HANDLE (not void *). - - * docs/PACE_POSIX_support.txt: - - Updated. - -Mon Jul 17 16:37:16 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/sched.h: - * pace/win32/sched.inl: - - Eliminated support for these functions. - - * docs/PACE_POSIX_support.txt: - - Updated. - -Mon Jul 17 16:27:43 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/pwd.h: - * pace/win32/pwd.inl: - - Emulate some... return no support for others. - - * docs/PACE_POSIX_support.txt: - - Updated. - - * pace/win32/mqueue.h: - - Typo. - -Mon Jul 17 15:57:43 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/mqueue.h: - * pace/win32/mqueue.h: - - Fixed types to compile for win32. - Code was NOT emulated so types are dummy types and - PACE_ERRNO_NO_SUPPORT_RETURN (-1) was applied when applicable. - - * docs/PACE_POSIX_support.txt: - - Updated. - -Mon Jul 17 14:56:31 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/mman.inl: - - Emulate some... return no support for others. - - * docs/PACE_POSIX_support.txt: - - Updated. - -Mon Jul 17 14:00:35 2000 Andrew G. Gilpin <agg1@cs.wustl.edu> - - * pace/config/utility.h: - - Changed #if (PACE_WIN32 != 0) to #if (PACE_WIN32) to be - more consistent. - -Mon Jul 17 13:57:05 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/posix/mman.inl (pace_shm_open): - * pace/win32/mman.inl (pace_shm_open): - * pace/sys/mman.h (pace_shm_open): - - Return value changed to PACE_HANDLE. - - * pace/win32/mman.h: - - Added some sorely needed constant macro definitions. - - * pace/config/utility.h: - - Removed #define PACE_POSIX_ERROR_INT_RETVAL -1 - -Mon Jul 17 13:31:50 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/config/utility.h: - - Added #define PACE_POSIX_ERROR_INT_RETVAL -1 - -Mon Jul 17 13:07:50 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/aio.h (pace_aio_cancel): - * pace/posix/aio.inl (pace_aio_cancel): - * pace/win32/aio.inl (pace_aio_cancel): - * pace/mman.h: - * pace/posix/mman.inl: - * pace/win32/mman.inl: - - Substituted PACE_HANDLE for ints that were file descriptors. - -Mon Jul 17 12:49:17 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/types.h: - - PACE_HANDLE and PACE_INVALID_HANDLE get changed in WIN32 - to a void *. (In POSIX dir, we use an int as a file desc.) - - * docs/PACE_POSIX_support.txt: - - Updated. - - * pace/win32/dirent.inl - - Uses the new PACE_HANDLE. - -Mon Jul 17 12:27:47 2000 Andrew G. Gilpin <agg1@cs.wustl.edu> - - * pace/config/utility.h: - - Prevented windows.h from getting included on non Win32 platforms. :) - -Mon Jul 17 11:47:11 2000 Luther J Baker <luther@cs.wustl.edu> - - * docs/PACE_POSIX_support.txt: - - Added to specify native/emulation/not supported funcs. - - * pace/win32/fcntl.h: - - creat isn't quite exactly as ACE does it. Leave this out - until correctly finished! - -Sun Jul 16 16:21:16 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/grp.inl: - * pace/win32/grp.h: - - No WIN32 support. ACE does not emulate this family. - Build a group struct & return -1 and set ernno to - NO SUPPORT! - -Sun Jul 16 16:17:25 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/config/utility.h (PACE_FAIL_RETURN): - - Fixed to work with just PACE_WIN32 defined. - -Fri Jul 14 22:56:29 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/config/utility.h (PACE_FAIL_RETURN): - - Defined. - -Fri Jul 14 22:41:53 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/fcntl.h: - * pace/fcntl.inl: - - Some old changes didn't seem to take? - -Fri Jul 14 22:25:31 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/dirent.inl: - - Typo. - -Fri Jul 14 22:06:14 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/fcntl.inl: - - Type in comments for pace_win32_emulate_creat. - -Fri Jul 14 22:00:34 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/fcntl.inl (creat): - - WIN32 doesn't support integers as file handles. Note here, - we return -1 for failure and we cast a HANDLE to an int - for success. - - Also, emulated support for POSIX creat. The ACE_OS version - extensively uses thread protection. This is commented out and - may be added in later, when threads are implemented in PACE. - - * pace/fcntl.h (creat): - - Comments regarding return values == (int)*HANDLE for WIN32. - -Fri Jul 14 21:20:59 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/types.h: - - Added #include <windef.h> for common definitions and basic types. - -Fri Jul 14 20:49:46 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/config/utility.h: - - Added some neat :-) ACE_* macro utilities. - -Fri Jul 14 20:38:44 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/dirent.inl: - - Added (POSIX_HAS_POSIX_FS_UOF) protection to emulation funcs. - -Fri Jul 14 20:18:46 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/config/utility.h: - * pace/win32/errno.h: - - Moved win32 error definitions to pace/win32/errno.h. - - * pace/config/utility.h: - - Changed #include <errno.h> to #include "pace/errno.h". - -Fri Jul 14 20:05:33 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/pace_dll.dsp: - * pace/win32/pace_lib.dsp: - - Default the build to all POSIX units of functionality. - Defined PACE_HAS_ALL_POSIX_FUNCS in - Settings >> C/C++ >> Preprocessor - -Fri Jul 14 19:06:09 2000 John Heitmann <jwh1@cs.wustl.edu> - - * ../include/makeinclude/wrappermacros.GNU: - Added -DPACE_HAS_ALL_POSIX_FUNCS to flags. - - * pace/pthread.h: - * pace/unistd.h: - Removed a duplicate closing }. - - * pace/pthread.h: - Added (void) in arguments to pointers to functions - which were otherwise interpreted as (...) args. - -Fri Jul 14 18:50:07 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/unistd.h: - - Removed incompatible #include <unistd.h> for win32. - -Fri Jul 14 18:19:10 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/signal.h: - - Typo...(pace_s_sigaction becomes pace_sigaction_s). - -Fri Jul 14 18:05:09 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/dirent.h: - - Removed dir_init. - - * pace/win32/dirent.inl: - - win32 emulation functions finished. - closedir == pace_win32_emulate_closedir - opendir == pace_win32_emulate_opendir - readdir == pace_win32_emulate_readdir - -Fri Jul 14 17:46:56 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/dirent.h: - - Removed 'const' member of dirent struct. - Added dir_init to guarantee that 'started_reading_' is - initialized correctly! - - * pace/win32/types.h: - - Added support for win32 - PACE_WIN32_INVALID_HANDLE = (void*)0 - -Fri Jul 14 15:55:24 2000 Joe Hoffert <joeh@cs.wustl.edu> - - * pace/sys/mman.h: - * pace/sys/stat.h: - * pace/sys/times.h: - * pace/sys/utsname.h: - * pace/sys/wait.h: - move closing } for extern "C" to near end of file, after - .inl #includes. - - * pace/Makefile: - Added defining appropriate macros when subsetting PACE into - POSIX units of functionality. - - * pace/aio.h: - * pace/assert.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/stddef.h: - * pace/stdio.h: - * pace/stdlib.h: - * pace/string.h: - * pace/termios.h: - * pace/time.h: - * pace/unistd.h: - * pace/utime.h: - * pace/emulation/mqueue.c: - * pace/emulation/mqueue.h: - * pace/posix/aio.inl: - * pace/posix/ctype.inl: - * pace/posix/dirent.inl: - * pace/posix/fcntl.inl: - * pace/posix/grp.inl: - * pace/posix/locale.inl: - * pace/posix/math.inl: - * pace/posix/mman.inl: - * pace/posix/mqueue.inl: - * pace/posix/pthread.inl: - * pace/posix/pwd.inl: - * pace/posix/sched.inl: - * pace/posix/semaphore.inl: - * pace/posix/setjmp.inl: - * pace/posix/signal.inl: - * pace/posix/stat.inl: - * pace/posix/stdio.inl: - * pace/posix/stdlib.inl: - * pace/posix/string.inl: - * pace/posix/termios.inl: - * pace/posix/time.inl: - * pace/posix/times.inl: - * pace/posix/unistd.inl: - * pace/posix/utime.inl: - * pace/posix/utsname.inl: - * pace/posix/wait.inl: - * pace/win32/aio.inl: - * pace/win32/ctype.inl: - * pace/win32/dirent.inl: - * pace/win32/fcntl.inl: - * pace/win32/grp.inl: - * pace/win32/locale.inl: - * pace/win32/math.inl: - * pace/win32/mman.inl: - * pace/win32/mqueue.inl: - * pace/win32/pthread.inl: - * pace/win32/pwd.inl: - * pace/win32/sched.inl: - * pace/win32/semaphore.inl: - * pace/win32/setjmp.inl: - * pace/win32/signal.inl: - * pace/win32/stat.inl: - * pace/win32/stdio.inl: - * pace/win32/stdlib.inl: - * pace/win32/string.inl: - * pace/win32/termios.inl: - * pace/win32/time.inl: - * pace/win32/times.inl: - * pace/win32/unistd.inl: - * pace/win32/utime.inl: - * pace/win32/utsname.inl: - * pace/win32/wait.inl: - Wrapped each function with its corresponding POSIX unit of - functionality (or the catch-all PACE_HAS_POSIX_NONUOF_FUNCS). - - * pace/config/config.h: - Changed to define all the POSIX macros when - PACE_HAS_ALL_POSIX_FUNCS is defined. - - * tests/Makefile: - Adding default flag of PACE_HAS_ALL_POSIX_FUNCS. - - * tests/Stdio_Test.c: - change variable from FILE to PACE_FILE. - -Fri Jul 14 15:02:47 2000 Luther J Baker <luther@cs.wustl.edu> - - * PACE/pace/win32/dirent.h: - - pace_dir changed to PACE_DIR. - PACE_TCHAR changed to char. - -Fri Jul 14 14:34:43 2000 David L. Levine <levine@cs.wustl.edu> - - * pace/assert.h,pace/{posix,win32}/assert.{h,inl}: - changed pace_assert from an inline function to a macro. - That way, it will report the proper file/line number, - instead of those of the pace_assert inline function. - - Also, moved #include <assert.h> from .inl file to .h - file. Because we're now using a macro, client code - must #include <assert.h>. - -Fri Jul 14 09:26:36 2000 David L. Levine <levine@cs.wustl.edu> - - * include/makeinclude/rules.common.GNU: if debug is disabled, - add -DPACE_NDEBUG to CFLAGS or CCFLAGS. - - * pace/{posix,win32}/assert.inl: neuter if PACE_NDEBUG is - defined. Even though assert () won't do anything with - NDEBUG, data (__FILE__ and __LINE__, presumably) was stored - in the .o file without this change. - - We might want to consider making pace_assert a macro. - As an inline function, __FILE__ and __LINE__ won't be - very helpful. - -Fri Jul 14 08:17:59 2000 David L. Levine <levine@cs.wustl.edu> - - * pace/{aio.h,assert.h,ctype.h,dirent.h,fcntl.h,grp.h,locale.h, - math.h,mqueue.h,pthread.h,pwd.h,sched.h,semaphore.h,setjmp.h, - stdio.h,stdlib.h,string.h,termios.h,time.h,unistd.h,utime.h}: - move closing } for extern "C" to near end of file, after - .inl #includes. - -Fri Jul 14 00:30:38 2000 John Heitmann <jwh1@cs.wustl.edu> - - * ../ace/OS.i - Minor updates. Currently only LynxOS has a dirty build - of libACE, although libACE still can't be linked against - correctly. - - * pace/signal.h - * pace/posix/signal.* - * pace/stdlib.h - * pace/posix/stdlib.* - * pace/pthread.h - * pace/posix/pthread.* - - Added typedef of pointers to functions which forced - functions which take pointers to functions to accept - arguments of c++ linkage... I think. - -Thu Jul 13 16:37:33 2000 John Heitmann <jwh1@cs.wustl.edu> - - * ../include/makeinclude/wrapper_macros.GNU - - Added 'pace' flag to support compilation with PACE. - 'make pace=1' and behold the power of pace! - - * include/makeinclude/rules.common.GNU - - Removed netinet, arpa, and common form the VPATH - - * pace/1/ - * pace/arpa/ - * pace/netinet/ - * pace/common/ - - Removed. <Update: this didn't work, will have - to wait unil a later date> - -Thu Jul 13 14:57:53 2000 David L. Levine <levine@cs.wustl.edu> - - * pace/{posix,win32}/assert.inl (pace_assert): removed unnecessary - return statement at end of function. - -Thu Jul 13 10:53:06 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/dirent.h: - - Added structs for dirent and DIR. - -Thu Jul 13 00:46:37 2000 John Heitmann <jwh1@cs.wustl.edu> - - * pace/signal.h - * pace/posix/signal.h - * pace/posix/signal.inl - - Changed the typedef of pace_s_sigevent - to pace_sigevent_s to match up with pace_stat_s. The - problem with both of these is that the data type names - conflict with function names. - - * pace/stdio.h - * pace/posix/stdio.c - - Changed all '...' functions to defines. Now the library - should be totally empty on platforms without emulation code. - - * include/makeinclude/rules.common.GNU - * tests/Makefile - - Because the library can be empty again, don't include - the library by default. As a temporary kludge emulation=1 - is set in rules.common.GNU for Linux, which is the only - platform thus far which has a non-empty library. - - * pace/emulation/mqueue.c - * pace/emulation/mqueue.h - - Support for all functionality is now complete, cleaner, - and somewhat less buggy. - - * tests/mqueue_test.c - - Borrowed a test from Konstantin Knizhnik's web site, - will eventually have to make this a one-button test. - -Wed Jul 12 17:30:54 2000 John Heitmann <jwh1@cs.wustl.edu> - - * pace/posix/types.h - Fixed pace_tchar. - -Wed Jul 12 16:31:51 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/types.h: - - Fixed PACE_TCHAR. - -Wed Jul 12 16:10:39 2000 John Heitmann <jwh1@cs.wustl.edu> - - * pace/fcntl.h - * pace/mqueue.h - * pace/semaphore.h - * pace/stdio.h - * pace/unistd.h - * pace/unistd.inl - * pace/tests/mqueue_test.c - Updated all #define pace_func (X) macros to remove the need - for double paranthesis. - -Wed Jul 12 17:01:47 2000 Ossama Othman <ossama@uci.edu> - - * Makefile.am: - * pace/Makefile.am: - * pace/posix/Makefile.am: - * tests/Makefile.am: - - Preliminary Automake input files for PACE. They aren't working - yet, but do provide a good start. - -Wed Jul 12 15:27:27 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/posix/types.h (PACE_TCHAR): - * pace/win32/types.h (PACE_TCHAR): - - Added typedef char PACE_TCHAR; - Protected some of the typedefs. - -Wed Jul 12 14:26:10 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/aio.inl: - - PACE_ERRNO_NO_SUPPORT_RETURN (-1); - Emulate support for these latter. - -Wed Jul 12 14:15:10 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/signal.h: - * pace/win32/time.h: - - Added types to help win32 along. - -Wed Jul 12 12:10:55 2000 David L. Levine <levine@cs.wustl.edu> - - * pace/config/platform.h: added OSF1 support. - -Wed Jul 12 11:51:52 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/errno.h: - - Added to repository. - - * pace/win32/pace_dll.dsp: - * pace/win32/pace_lib.dsp: - - Modified to include the new file. - -Wed Jul 12 11:45:34 2000 David L. Levine <levine@cs.wustl.edu> - - * include/makeinclude/rules.commmon.GNU: added OSF1 support. - -Wed Jul 12 10:53:01 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/pace_lib.dsp: - * pace/win32/pace_dll.dsp: - - Added the PACE/pace/*.h files. These currently contain - the interface we need to compile into our code. Maybe - we can change the following, but we now have - PACE/pace/aio.h and PACE/pace/win32/aio.h - both showing up in the VC++ list as aio.h and aio.h. - The PACE/pace/win32 files always show up second :-) - -Wed Jul 12 10:24:20 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/wait.h: - * pace/win32/utsname.h: - * pace/win32/utime.h: - * pace/win32/unistd.h: - * pace/win32/types.h: - * pace/win32/times.h: - * pace/win32/time.h: - * pace/win32/termios.h: - * pace/win32/string.h: - * pace/win32/stdlib.h: - * pace/win32/stdio.h: - * pace/win32/stat.h: - * pace/win32/signal.h: - * pace/win32/setjmp.h: - * pace/win32/semaphore.h: - * pace/win32/sched.h: - * pace/win32/pwd.h: - * pace/win32/pthread.h: - * pace/win32/mqueue.h: - * pace/win32/mman.h: - * pace/win32/math.h: - * pace/win32/locale.h: - * pace/win32/limits.h: - * pace/win32/grp.h: - * pace/win32/fcntl.h: - * pace/win32/dirent.h: - * pace/win32/ctype.h: - * pace/win32/assert.h: - * pace/win32/aio.h: - - Removed function prototypes. These were moved to the PACE/*.h files. - Removed #include *.inl files. These are inluded by the PACE/*.h files. - Postfixed the protective preprocessor guards with _WIN32 - (ie: PACE_CTYPE_H_WIN32). - -Wed Jul 12 01:25:44 2000 John Heitmann <jwh1@cs.wustl.edu> - - * pace/emulation/time.c: - Removed since it is currently empty. - - * pace/emulation/time.h: - Minor changes to how this file is included in: - - * pace/posix/time.h: - Changed how emulation/time.h is included on Linux - - * pace/config/compiler.h - * pace/posix/string.inl - * pace/posix/unistd.inl - Changed to quell odd compiler warnings from gcc. Added - PACE_BROKEN_INLINE. - - * pace/emulation/mqueue.* - Improved and updated code, but it is still not complete. - - * pace/tests/mqueue_test.c - * pace/tests/Makefile - Added a very simple test to verify mqueue works. - -Tue Jul 11 21:05:58 2000 David L. Levine <levine@cs.wustl.edu> - - * pace/unistd.h,pace/posix/unistd.inl: - 1) pace_execl{,e,p} weren't declared/defined with - PACE_INLINE, so they were being put into each .o. - 2) Reordered some of the function definitions in - posix/unistd.inl, so that they appear before all uses. - -Tue Jul 11 19:31:13 2000 David L. Levine <levine@cs.wustl.edu> - - * pace/stdio.h: fixed copy+paste error in comment: - tmpfile instead of sscanf. - -Tue Jul 11 4:28:00 2000 Andrew G. Gilpin <agg1@cs.wustl.edu> - - * rules.common.GNU: - Added functionality so that PACE_SYSVER on Linux is in the - same format as LINUX_VERSION_CODE from the Linux source code. - For example, Linux version 2.2.12 -> 0x02020C == 131596 - -Tue Jul 11 10:24:03 2000 Joe Hoffert <joeh@cs.wustl.edu> - - * tests/Makefile: - Changed to always include the PACE library. This was causing - problems for functions that are never inlined when inlining - is enabled. - -Mon Jul 10 13:47:25 2000 John Heitmann <jwh1@cs.wustl.edu> - - * pace/stddef.h - * pace/stdio.h - * pace/string.h - * pace/unistd.h - Changed to new format, all functions should now be - declared in pace/ - - * pace/mqueue.h - * pace/emulation/mqueue* - Emulated mqueue for linux. Curently there is no support for - mq_notify, and there is a race condition if two procs try to - create the same queue at the same time. - - * pace/stdio.h - * pace/posix/stdio.inl - * pace/unistd.h - * pace/posix/unistd.inl - Moved ctermid back to where it should be (stdio). - - * pace/string.h - * pace/posix/string.inl - Added mem* functions (e.g. memset), since they are C std. - - * pace/time.h - * pace/posix/time.inl - ENOSYSed clock_* and timer_* functions for Linux, although - emulation may be possible. - - * pace/posix/pthread.inl - ENOSYSed many functions not supported on Linux. Linux should - build clean now for the moment. - -Mon Jul 10 08:50:37 2000 Joe Hoffert <joeh@cs.wustl.edu> - - * pace/posix/time.inl: - * pace/posix/pthread.inl: - * pace/posix/aio.inl: - Changed code to use PACE_NONCONST_ARG_CAST rather than - #idef'ing for LynxOS and doing the cast. - - * pace/config/defines.h: - Changed order of include so that platform.h (and - POSIX_HAS_* #defines) will be first. - - * pace/config/config.h: - Added PACE_NONCONST_ARG_CAST macro. Needed for LynxOS - when it doesn't use const args for POSIX functions - taking const args. - - * tests/Makefile: - * pace/Makefile: - Took out common rules and included - include/makeinclude/rules.common.GNU instead. - - * include/makeinclude/rules.common.GNU: - Added this file to take out common rules from the - different Makefiles. - - * tests/Posix_SP_Test.c: - Made test more robust (e.g., check for all specified POSIX - names for sysconf and for NULL and non-NULL arg to time) - Also, ifdefed out some sysconf names for LynxOS since those - names are supported. Sent email to LynuxWorks about this. - -Fri Jul 7 19:11:38 2000 John Heitmann <jwh1@cs.wustl.edu> - - * pace/sys/mman.h - * pace/sys/stat.h - * pace/sys/times.h - * pace/sys/types.h - * pace/sys/utsname.h - * pace/sys/wait.h - * pace/termios.h - * pace/time.h - * pace/unistd.h - * pace/utime.h - * pace/posix/mman.h - * pace/posix/stat.h - * pace/posix/termios.h - * pace/posix/time.h - * pace/posix/times.h - * pace/posix/types.h - * pace/posix/unistd.h - * pace/posix/utime.h - * pace/posix/utsname.h - * pace/posix/wait.h - - Continued changes: - - Changed the #if defined (PACE_HAS_POSIX) to #if - PACE_HAS_POSIX per our recent conversation regarding all macros being - assigned a value. - - Moved the prototype function signatures to the root - directory *.h file. - - Changed the form the *.inl file was included. - - -Fri Jul 7 17:24:33 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/fcntl.h: - - Missing extern "C" { }. - -Fri Jul 7 17:22:56 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/aio.h: - * pace/posix/aio.h: - * pace/assert.h: - * pace/posix/assert.h: - * pace/ctype.h: - * pace/posix/ctype.h: - * pace/dirent.h: - * pace/posix/dirent.h: - * pace/fcntl.h: - * pace/posix/fcntl.h: - * pace/grp.h: - * pace/posix/grp.h: - * pace/math.h: - * pace/posix/math.h: - * pace/mqueue.h: - * pace/posix/mqueue.h: - * pace/pthread.h: - * pace/posix/pthread.h: - * pace/pwd.h: - * pace/posix/pwd.h: - * pace/sched.h: - * pace/posix/sched.h: - * pace/semaphore.h: - * pace/posix/semaphore.h: - * pace/setjmp.h: - * pace/posix/setjmp.h: - * pace/signal.h: - * pace/posix/signal.h: - - Changed the protection includes. Eg: - ROOT directory PACE_ASSERT_H - POSIX directory PACE_ASSERT_H_POSIX. - - Changed the #if defined (PACE_HAS_POSIX) to #if PACE_HAS_POSIX - per our recent conversation regarding all macros being assigned a - value. - - Moved the prototype function signatures to the root directory *.h file. - - Changed the form the *.inl file was included. - -Fri Jul 7 16:23:57 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/errno.h: - * pace/posix/errno.h - - Altered to fit in current - -Fri Jul 7 16:04:30 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/config/platform: - - # define all unused macros so we can test them against '0' - in the source code. - -Fri Jul 7 15:24:57 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/config/compiler.h: - - # define PACE_HAS_CPLUSPLUS __cplusplus - -Fri Jul 07 14:41:51 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/types.h: - - Fixed some non-native type problems. Also, made some temporary - types (pthread_*) until we actually get to win32/pthread.h at - which point, we will correctly define these. - -Fri Jul 7 02:18:02 2000 John Heitmann <jwh1@cs.wustl.edu> - - * pace/posix/dirent.*: - * pace/posix/pthread.*: - * pace/posix/sched.h: - * pace/posix/signal.*: - * pace/posix/stat.*: - * pace/posix/time.*: - * pace/posix/utsname.inl: - Fixed a problem with certain typedefs not being - exposed in other .inl files due to an odd - interaction of the #pragma once style protections - present in the header files. A few structs were redefined - a second time outside of their header file. - - Also, pace_stat was changed to pace_stat_s to avoid a conflict - witht the pace_stat() function. - - * pace/win32/termios.*: - * pace/win32/wait.h: - * pace/win32/utsname.*: - * pace/win32/times.*: - * pace/win32/stat.*: - * pace/win32/mman.*: - Added changes made to /posix earlier. - - -Thu Jul 6 13:04:02 2000 Joe Hoffert <joeh@cs.wustl.edu> - - * tests/Posix_SP_Test.c: - Made tests more robust checking for all possible parameter - values. Also, changed check for failure. Just because a - function doesn't support a particular parameter value, does - not mean the function doesn't support that function. If - the PACE symbols can be used (i.e., the code compiles) then - the function is supported. - -Thu Jul 06 12:17:21 2000 David L. Levine <levine@cs.wustl.edu> - - * pace/posix/pthread.inl (pace_pthread_mutex_{get,set}prioceiling): - LynxOS does not have pthread_mutex_{get,set}prioceiling, so - don't call them with PACE_LYNXOS. - -Wed Jul 5 13:38:11 2000 John Heitmann <jwh1@cs.wustl.edu> - - * pace/types.h: - Added #include <pthread.h> to expose types on LynxOS. - - * pace/time.inl: - Casted away const for LynxOS. - - * pace/posix/termios.*: - Fixed a typedef and removed tc*pgrp which didn't seem to - take from the last commit. - - * ../ace/OS.i: - Updated corresponding functions to those newly added in PACE. - -Wed Jul 5 17:15:26 2000 John Heitmann <jwh1@cs.wustl.edu> - - * pace/Makefile: - Fixed error introduced by my earlier update. - - * pace/termios.*: - Added typedefs and changed function signatures appropriately. - Removed tcgetpgrp which was added to unistd earlier. - - * pace/sys/wait.h: - Added macros. - - * pace/sys/utsname.*: - * pace/sys/times.*: - * pace/sys/stat.*: - * pace/sys/mman.* - Added typedefs and changed function parameters appropriately. - - * pace/time.h: - Added #include "pace/signal.h" - - * pace/unistd.inl: - Changed spelling error. - - * pace/signal.*: - * pace/stat.*: - Typedefs of structs later used as pointers were broken - so I reverted back to the old way temporarily. - -Wed Jul 05 16:00:32 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/types.h: - - Removed redefinition of size_t. - -Wed Jul 05 14:54:16 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/types.h: - - Define native UNIX types to work on WIN32 types. - -Wed Jul 5 15:28:25 2000 John Heitmann <jwh1@cs.wustl.edu> - - * pace/Makefile: - Fixed paths that were invalidated when wait.h and termios.h - were moved. - -Wed Jul 05 14:46:38 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/aio.h: - - Removed #include <aio.h>. - -Wed Jul 05 13:41:00 2000 Luther J Baker <luther@cs.wustl.edu> - - * PACE/win32/types.h: - - Removed #include <inttypes.h>. - Moved -*- C -*- to same line as $-Id-$ - -Wed Jul 5 13:25:34 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/* - - Removed (posix ace) from files. - -Wed Jul 05 12:49:20 2000 Luther J Baker <luther@cs.wustl.edu> - - * PACE/config/platform.h - - WIN32 doesn't use the makefile. - #define PACE_WIN32 2000 - -Wed Jul 5 12:48:41 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32/*. - - Update files per PACE/posix changes. - -Mon Jul 3 19:30:39 2000 John Heitmann <jwh1@cs.wustl.edu> - - * pace/posix/time.*: - Added macros, typedefs, clock(), and difftime(). - - * pace/posix/unistd.*: - Added macros, typedefs, tcgetpgrp(), tcsetpgrp(). - - * pace/posix/utime.*: - Added macros and typedefs. - -Mon Jul 3 9:45:00 2000 John Heitmann <jwh1@cs.wustl.edu> - - * pace/config/types.h: - Removed. Functionality replaced by platform - specific pace/sys/types. - - * pace/config/defines.h: - Deleted reference to types.h. - -Mon Jul 3 00:25:44 2000 John Heitmann <jwh1@cs.wustl.edu> - - * pace/sys/termios.h: - Moved to pace/ - - * pace/posix/aio.*: - * pace/posix/direnet.*: - * pace/posix/fcntl.*: - * pace/posix/grp.*: - * pace/posix/locale.*: - * pace/posix/math.*: - * pace/posix/mqueue.*: - * pace/posix/pthread.*: - * pace/posix/pwd.*: - * pace/posix/sched.*: - * pace/posix/semaphore.*: - * pace/posix/setjmp.*: - * pace/posix/signal.*: - * pace/stddef.*: - * pace/posix/stdio.*: - * pace/posix/stdlib.*: - * pace/posix/string.*: - * pace/posix/types.*: - * pace/posix/time.*: - Added many missing typedefs and macros. A bug has been - added in also in types.h. It is harmless but causes a - compiler warning that I could not fix. Files lower in - the alphabet such as utime haven't been finished yet. - - * pace/posix/stdio.*: - Added in the missing functions fgetpos, fsetpos, fwrite, - setvbuf, vfprintf, vprintf, vsprintf. The last three - are empty until passing the macro va_list is resolved. - - * pace/posix/locale.*: - Added localeconv (). - - * pace/posix/signal.*: - Added raise () and signal (). - - * pace/posix/unistd.*: - * pace/posix/stdio.*: - Moved ctermid() from stdio to unistd. - - * pace/posix/stdlib.*: - Added abort (). - - * pace/: - Added stddef.h and errno.h - -Fri Jun 30 16:54:41 2000 John Heitmann <jwh1@cs.wustl.edu> - - * pace/wait.h: - Moved to sys/ - -Fri Jun 30 15:55:52 2000 Joe Hoffert <joeh@cs.wustl.edu> - - * pace/posix/time.h: - * pace/posix/time.inl: - * pace/win32/time.h: - * pace/win32/time.inl: - Corrected type for timeptr arg for pace_mktime function. - Corrected non-const arg for pace_strftime. (NOTE: The - Solaris man page incorrectly documents the constness - of the first argument.) - - * pace/posix/stdlib.inl: - * pace/win32/stdlib.inl: - Corrected void return value for srand. - -Fri Jun 30 15:05:08 2000 Joe Hoffert <joeh@cs.wustl.edu> - - * pace/posix/TODO: - Added testing with and without PACE_HAS_POSIX_PTHREAD_SEMANTICS - defined. - - * pace/win32/setjmp.h: - * pace/win32/setjmp.inl: - * pace/posix/setjmp.h: - * pace/posix/setjmp.inl: - Added pace_setjmp and pace_longjmp functions. - - * pace/posix/time.h: - * pace/posix/time.inl: - * pace/win32/time.h: - * pace/win32/time.inl: - Cleaned up comments and added functions pace_asctime, - pace_ctime, pace_gmtime, pace_localtime, pace_mktime, - and pace_strftime. - Removed unneeded PACE_HAS_POSIX_PTHREAD_SEMANTICS guards - in .inl files. - - * pace/win32/stdlib.h: - * pace/win32/stdlib.inl: - * pace/posix/stdlib.h: - * pace/posix/stdlib.inl: - Added functions pace_abs, pace_atof, pace_bsearch, pace_qsort, - pace_rand, and pace_srand. - Added "Requires PACE_HAS_REENTRANT" comment for pace_rand_r - in header files. - - * pace/Makefile: - Added all 18 POSIX Units of Functionality components to - be built as separate libaries as specified on the command - line (just like ACE). - -Fri Jun 30 10:10:53 2000 Joe Hoffert <joeh@cs.wustl.edu> - - * tests/Posix_SP_Test.c: - Fixed description. Fixed name value arg to sysconf to be - POSIX. Added more extensive checking and output of values - when a function succeeds. - - * pace/Makefile: - Removed extraneous #INCLDIRS comment. - - * pace/posix/pthread.inl: - * pace/posix/aio.inl: - Casted away const from certain functions for LynxOS when - their prototypes don't have const. - - * tests/Makefile: - Moved PACE_SYSNAME definition below wrapper_macros.GNU so - that cross-compiled platforms (e.g., LynxOS) can define - PACE_SYSNAME. - - * pace/config/platform.h: - Changed of PACE_HAS_POSIX for LynxOS from PACE_LYNX to - PACE_LYNXOS. - -Thu Jun 29 19:53:10 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/config/utility.h: - - (ENOTSUP) is not defined on win32. Added support. - -Thu Jun 29 19:22:46 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/win32 - Altered syntax (#include pace/posix/file.h) left over - from copying. - -Thu Jun 29 16:42:31 2000 John Heitmann <jwh1@cs.wustl.edu> - - * pace/posix/pthread.{h,inl}: - Changed pthead_condattr_init to pthread_condattr init - and pace_pace_pthread... to pace_pthread... - - -Thu Jun 29 15:04:42 2000 Joe Hoffert <joeh@cs.wustl.edu> - - * pace/man/Makefile (index.html): - Created PACE_DOC++ as executable to invoke and assigned - /project/doc/pkg/bin/doc++ to it. - - * pace/posix/assert.h: - Removed extraneous '.' in comment. - -Thu Jun 29 15:04:42 2000 Joe Hoffert <joeh@cs.wustl.edu> - - * pace/posix/aio.h: - * pace/posix/assert.h: - * pace/posix/ctype.h: - * pace/posix/dirent.h: - * pace/posix/fcntl.h: - * pace/posix/grp.h: - * pace/posix/locale.h: - * pace/posix/math.h: - * pace/posix/mman.h: - * pace/posix/mqueue.h: - * pace/posix/pthread.h: - * pace/posix/pwd.h: - * pace/posix/sched.h: - * pace/posix/semaphore.h: - * pace/posix/setjmp.h: - * pace/posix/signal.h: - * pace/posix/stdio.h: - * pace/posix/stdlib.h: - * pace/posix/string.h: - * pace/posix/time.h: - * pace/posix/unistd.h: - * pace/posix/utime.h: - * pace/posix/wait.h: - Adding doc++ html man comments. - - * pace/posix/stdio.{h,inl} (pace_printf): - Removed pace_snprintf and pace_vsprint functions since they - are not POSIX. - -Thu Jun 29 14:47:19 2000 Joe Hoffert <joeh@cs.wustl.edu> - - * pace/posix/stdio.inl (pace_printf): - - * pace/man/pace.jpg: - JPEG file of the PACE icon used in the html man pages. - - * pace/man/banner: - Created banner file that is inserted at the bottom of - the generated html man pages. This file contains the - PACE logo pointing to the PACE Web page. - - * pace/man/Makefile: - Created Makefile for the html man pages using doc++ - -Thu Jun 29 09:21:19 2000 Joe Hoffert <joeh@cs.wustl.edu> - - * pace/man/Makefile: - - * pace/config/config.h: - Changed C++ // comment to C /* */ comment. The compiler - (appropriately) choked on the former. - - * pace/Makefile: - Moved defining PACE_SYSNAME until after all the macro and rules - files are included. Otherwise, PACE_SYSNAME was not getting - defined for LynxOS. - - * pace/posix/types.h: - Put an #if defined (PACE_SUNOS) guard around inclusion of - inttypes.h since this file isn't found on Lynx. - -Thu Jun 29 02:38:52 2000 John Heitmann <jwh1@cs.wustl.edu> - - * pace/posix/mman.inl: - Added cast to char* from void* in param passing. - - * pace/posix/stdio.h: - * pace/posix/stdio.c: - Changed *printf from macros to functions. - - * pace/posix/unistd.c: - * pace/posix/unistd.h: - Changed the macros execl, execle, execlp to functions. - -Wed Jun 28 11:18:17 2000 Joe Hoffert <joeh@cs.wustl.edu> - - * pace/Makefile: - * tests/Makefile: - Modified to make PACE_ROOT $(ACE_ROOT)/PACE rather than the - previous value of $(ACE_ROOT)/pace. - -Wed Jun 28 09:32:29 2000 David L. Levine <levine@cs.wustl.edu> - - * pace/config/config.h: added platform-dependent determination - of PACE_HAS_REENTRANT. Also, wrapped all of the PACE_HAS... - #defines with a check to see if it had already been defined. - - * pace/posix/stdlib.inl (pace_rand_r): use PACE_HAS_REENTRANT, - now that the platform-dependent code is in pace/config/config.h. - -Wed Jun 28 09:21:07 2000 Joe Hoffert <joeh@cs.wustl.edu> - - * tests/Makefile: - * pace/Makefile: - Changed inlining to be the default. - -Tue Jun 27 23:09:34 2000 John Heitmann <jwh1@cs.wustl.edu> - - * pace/posix/unistd.h: - * pace/posix/termios.inl: - Added #includes of <unistd.h> and <termios.h> to preclude - undeclared token warnings without inlining enabled. - - * pace/posix/pwd.inl: - Added PACE_UNUSED_ARG where needed. - -Tue Jun 27 22:03:52 2000 David L. Levine <levine@cs.wustl.edu> - - * pace/posix/stdlib.inl (pace_rand_r): on Linux and - SunOS, rand_r isn't available if certains macros - aren't defined, so reflect that. rand_r doesn't - appear anywhere in the LynxOS 3.1.0 headers, so - NO_SUPPORT there as well. - -Tue Jun 27 16:35:20 2000 Joe Hoffert <joeh@cs.wustl.edu> - - * pace/posix/aio.h: - Removed copyrighted Solaris man text that accidentally get - committed to the repository and replaced it with text to - denote what really needs to go there. - -Tue Jun 27 14:32:40 2000 Joe Hoffert <joeh@cs.wustl.edu> - - * pace/posix/aio.h: - - * tests/Makefile (ACELIB): - Defining PACE_HAS_INLINE from the Makefile and adding the PACE - library if we are not inlining. - - * pace/posix/stdio.inl: - Removed function since it's now a macro in the header file. - - * pace/posix/stdio.h: - Changed pace_sprintf from a function to a macro because of - compilation warnings. Can be changed later. - - * pace/config/compiler.h (PACE_INLINE): - Changed definition of PACE_INLINE depending on if PACE_HAS_INLINE - is defined. - - * pace/config/features.h: - Removed PACE_HAS_INLINE from here since the Makefile now - defines it. - - * pace/Makefile: - Defining PACE_HAS_INLINE from the Makefile. - -Tue Jun 27 11:23:41 2000 David L. Levine <levine@cs.wustl.edu> - - * pace/posix/pthread.{h,inl} (pthread_cleanup_{push,pop}): - replaced these inline functions with macros. They're - supposed to be used in the same block; pthread_cleanup_pop - refers to a local object that pthread_cleanup_push declares. - I don't see how to implement that with inline functions. - -Tue Jun 27 10:11:00 2000 John Heitmann <jwh1@cs.wustl.edu> - - * pace/tests/Posix_SP_Test.c - * pace/tests/Stdio_Test.c - * pace/pace/posix/time.inl - Added more PACE_UNUSED_ARG - -Tue Jun 27 9:51:43 2000 John Heitmann <jwh1@cs.wustl.edu> - - * pace/tests/Makefile - Changed VLDLIBS := to += - - * pace/tests/Posix_SP_Test.c - Included pace/stdio.h - -Mon Jun 26 15:07:08 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/pace/win32/pace.dsw: - * pace/pace/win32/pace_dll.dsp: - * pace/pace/win32/pace_lib.dsp: - - Updated to link correctly. - -Mon Jun 26 13:27:02 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/pace/win32/pace.dsw: - * pace/pace/win32/pace_dll.dsp: - * pace/pace/win32/pace_lib.dsp: - - Added to repository. - -Mon Jun 26 12:24:36 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/pace/posix/TODO: - - Updated. - - * pace/pace/win32/*.[h,inl,cpp] README TODO: - - Added to repository. - -Mon Jun 26 11:03:00 2000 John Heitmann <jwh1@cs.wustl.edu> - - * pace/pace/posix/pwd.inl - * pace/pace/posix/string.inl - * pace/pace/posix/grp.inl - * pace/pace/posix/dirent.inl - - Added PACE_UNUSED_ARG where needed. - -Sat Jun 24 7:10 2000 <jwh1@cs.wustl.edu> - - * pace/pace/posix/unistd.inl - * pace/pace/posix/signal.inl - - Added PACE_UNUSED_ARG where needed. - -Wed Jun 21 18:50:04 2000 Luther J Baker <luther@cs.wustl.edu> - - * in.h, inet.h, netdb.h, socket.h, strings.h, thread.h - - Not part of POSIX spec. Removed from pace. - -Wed Jun 21 18:42:22 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/tests/Makefile: - - Copied changes Joe made to pace/pace/Makefile regarding - platform definitions. - - * pace/config/config.h (PACE_HAS_EXTENSIONS): - * pace/pace/posix/dirent.inl - * pace/pace/posix/grp.inl - * pace/pace/posix/mman.inl - * pace/pace/posix/pwd.inl - * pace/pace/posix/signal.inl - * pace/pace/posix/stdio.inl - * pace/pace/posix/stdlib.inl - * pace/pace/posix/string.inl - * pace/pace/posix/types.h - * pace/pace/config/utility.h - - Removed deprecated definitions and non-posix functions. - -Wed Jun 21 16:44:24 2000 Joe Hoffert <joeh@cs.wustl.edu> - - * pace/Makefile: - Changed to define the PACE_`platform' values - Change include directories to -I.. to resolve problems. - - * tests/Makefile: - Change include directories to -I.. to resolve problems. - - * pace/config/platform.h: - Modified platform #defines to PACE_`platform' (e.g., PACE_POSIX) - - * pace/posix/math.{h,inl}: - Fixed pace_pow arguments - - * pace/posix/mman.{h,inl}: - * pace/posix/aio.h: - * pace/posix/locale.h: - * pace/posix/pthread.{h,inl}: - * pace/posix/stdio.h: - Fixed syntax errors and typos - -Wed Jun 21 13:15:47 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/posix/stdio.inl (pace_setbuf): - - Altered return value and fixed typos. - -Tue Jun 20 15:39:26 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/config/compiler.h: - - Removed errant '\\' at end of lines and changed to '\'. - -Tue Jun 20 15:31:43 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/posix/mman.h: - * pace/posix/socket.h: - * pace/posix/stat.h: - * pace/posix/termios.h: - * pace/posix/times.h: - * pace/posix/types.h: - * pace/posix/utsname.h: - * pace/posix/in.h: - * pace/posix/inet.h: - * pace/posix/aio.h: - * pace/posix/assert.h: - * pace/posix/defines.h: - * pace/posix/dirent.h: - * pace/posix/fnctl.h: - * pace/posix/grp.h: - * pace/posix/limits.h: - * pace/posix/locale.h: - * pace/posix/mqueue.h: - * pace/posix/netdb.h: - * pace/posix/pthread.h: - * pace/posix/pwd.h: - * pace/posix/sched.h: - * pace/posix/semaphore.h: - * pace/posix/setjmp.h: - * pace/posix/signal.h: - * pace/posix/stdio.h: - * pace/posix/stdlib.h: - * pace/posix/string.h: - * pace/posix/strings.h: - * pace/posix/thread.h: - * pace/posix/time.h: - * pace/posix/unistd.h: - * pace/posix/utime.h: - * pace/posix/wait.h: - - Edited for consistency with previous entry. - - Removed #include "pace/defines.h". - -Tue Jun 20 15:14:44 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/sys/mman.h: - * pace/sys/socket.h: - * pace/sys/stat.h: - * pace/sys/termios.h: - * pace/sys/times.h: - * pace/sys/types.h: - * pace/sys/utsname.h: - * pace/netinet/in.h: - * pace/arpa/inet.h: - * pace/aio.h: - * pace/assert.h: - * pace/defines.h: - * pace/dirent.h: - * pace/fnctl.h: - * pace/grp.h: - * pace/limits.h: - * pace/locale.h: - * pace/mqueue.h: - * pace/netdb.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/strings.h: - * pace/thread.h: - * pace/time.h: - * pace/unistd.h: - * pace/utime.h: - * pace/wait.h: - - Inserted #include "pace/config/defines.h". - - * pace/config/defines.h: - - Removed from pace/ dir and placed in config dir. - -Tue Jun 20 14:53:12 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/defines.h: - - This file needs to be included first! It was calling #including - itself from the posix directory but was doing so off of macros - that itself defined. - -Mon Jun 19 05:03:53 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/posix/ctype.h - * pace/posix/ctype.inl - * pace/posix/math.h - * pace/posix/math.inl - - Correct functions added and implemented. _POSIX_C_LANG_SUPPORT. - -Mon Jun 19 04:34:34 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/sys/mman.h: - * pace/sys/socket.h: - * pace/sys/stat.h: - * pace/sys/termios.h: - * pace/sys/times.h: - * pace/sys/types.h: - * pace/sys/utsname.h: - * pace/netinet/in.h: - * pace/arpa/inet.h: - * pace/aio.h: - * pace/assert.h: - * pace/defines.h: - * pace/dirent.h: - * pace/fnctl.h: - * pace/grp.h: - * pace/limits.h: - * pace/locale.h: - * pace/mqueue.h: - * pace/netdb.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/strings.h: - * pace/thread.h: - * pace/time.h: - * pace/unistd.h: - * pace/utime.h: - * pace/wait.h: - - Altered these files #ifdef macro to PACE_FILE_H_INDIRECT so that the - implementation pace/posix/*.h files didn't conflict with the preprocessor - name space. - - Fully qualified all the includes in these files from #include "posix/file.h" - to #include "pace/posix/file.h" - -Mon Jun 19 03:57:37 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/ctype.h: - * pace/posix/ctype.h: - * pace/posix/ctype.inl: - * pace/posix/ctype.c: - - * pace/math.h: - * pace/posix/math.h: - * pace/posix/math.inl: - * pace/posix/math.c: - - Added to repository. - -Sat Jun 17 17:24:47 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/sys/mman.h: - * pace/sys/socket.h: - * pace/sys/stat.h: - * pace/sys/termios.h: - * pace/sys/times.h: - * pace/sys/types.h: - * pace/sys/utsname.h: - * pace/netinet/in.h: - * pace/arpa/inet.h: - - Altered these "root" files to include the correct - subdirectory/file. - -Sat Jun 17 16:46:39 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/aio.h: - * pace/assert.h: - * pace/defines.h: - * pace/dirent.h: - * pace/fnctl.h: - * pace/grp.h: - * pace/limits.h: - * pace/locale.h: - * pace/mqueue.h: - * pace/netdb.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/strings.h: - * pace/thread.h: - * pace/time.h: - * pace/unistd.h: - * pace/utime.h: - * pace/wait.h: - - Altered these "root" files to include the correct - subdirectory/file. - -Fri Jun 16 17:47:59 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/pace/config/features.h - - Added to the repository to isolate user defined features. - (ie: PACE_HAS_INLINE) - - * pace/pace/config/compiler.h - - Added *hack* to cover PACE_INLINE to static, inline - or (blank) expansion depending on the compiler. - - * pace/pace/config/platform.h - * pace/pace/config/config.h - * pace/pace/config/utility.h - - Cleaned up source. - - * pace/pace/common/README - * pace/pace/common - - Removed from the repository. Not used for anything. - - * pace/pace/*.h - - Started adding code to include the correct directory - here, but there seems to be a better way... :-) We will - wait and see. Do away with these .h files and simply - go to the correct directory via the makefile. - -Fri Jun 16 16:15:25 2000 Joe Hoffert <joeh@cs.wustl.edu> - - * pace/Makefile: - Added POSIX Units of Functionality targets for libraries. - - * pace/{assert,locale}.h: - * pace/posix/{assert,locale}.{h,inl,c}: - Added new POSIX APIs for assert and setlocale. - - * pace/posix/stdio.{h,inl}: - Added needed POSIX APIs. - - * pace/config/{compile,temp}.h: - Redefined PACE_UNUSED_ARG and moved from temp.h to compile.h. - - * pace/posix/aio.inl: - Made some formatting changes. - -Fri Jun 16 16:05:52 2000 Joe Hoffert <joeh@cs.wustl.edu> - - * tests/{Makefile,Stdio_Test,Posix_SP_Test.c}: - Updated the tests to more informational and adding uname -s - information for some different platforms. - -Fri Jun 16 14:11:44 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/posix/*.h - - Added all .h files to posix directory. The implementation - specific .h files are simply lumped together into one large - directory while the original interface files are still - found in the similarly names sunos directory. - - SunOS dirs (sys, netinet, arpa) ==> PACE implementation dir - - - - - - - - - - (pace/pace/sys/types.h ==> pace/pace/posix/types.h) - (pace/pace/unistd.h ==> pace/pace/posix/unistd.h) - -Thu Jun 15 13:49:14 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/config/defaults.h - - Removed superfluous defaults originally copied - from ACE_OS. - -Mon Jun 12 17:23:59 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/config/constants.h: - - Added POSIX minimum values in PACE format. - - * pace/config/platform.h (PACE_LINUX): - - Removed ACE code that shouldn't be included in PACE files. - Deprecated macro that did not follow our current pattern. - Added PACE_LINUX macro. - -Mon Jun 12 15:41:51 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/config/compiler.h: - - Deprecated PACE_HAS_CPLUSPLUS. - Current PACE_CPLUSPLUS - - We will save the 'HAS' for user defined feature macros. - Anytime we are renaming a current macro, we will just - prepend PACE_'xxx'. See the next ChangeLog entry. The - same motivation applies. Once I change the source code - to reflect this idea, I will remove the deprecated - macro names. - - Moved error stuff from 'codes.h' to compiler. - - * pace/config/codes.h" - - Removed from repository. - - * pace/defines.h: - - Removed #include "codes.h" from repository. - -Fri Jun 9 14:05:25 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/config/compiler.h: - * pace/config/config.h: - - Moved PACE_HAS_INLINE from compiler.h to config.h. - - Deprecated macros. Left in but I will removed the - deprecated macros once I change the code to use the - current macros. - -Fri Jun 9 13:02:26 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/*.h pace/posix/*.inl,c - - See config/types.h from previous ChangeLog. All these - types are altered in the source code. (ie: pthread_t - became pace_pthread_t). - - perl -pi -e `s/pid_t/pace_pid_t/` *.h posix/*.inl posix/*.c - -Fri Jun 9 12:20:23 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/config/types.h: - - These are posix types in pace wrappers. - They are macro definitions. The actual types are not - available until the appropriate file is included. - Thus, I didn't put them into pace/sys/types.h. - - * pace/pace/defines.h - - Added pace/config/types.h. - -Thu Jun 8 15:10:24 2000 Joe Hoffert <joeh@cs.wustl.edu> - - * pace/tests/{Makefile,Posix_SP_Test.c}: - Added new test for POSIX_SINGLE_PROCESS unit of functionality - and updated Makefile for changes to the PACE library directory - structure. - -Thu Jun 8 15:10:24 2000 Joe Hoffert <joeh@cs.wustl.edu> - - * pace/pace/*.h: - * pace/pace/arpa/*.h: - * pace/pace/netinet/*.h: - * pace/pace/sys/*.h: - Modifying .h files to remove any path in front of .inl files. - - * pace/pace/posix/*.c: - Modifying .c files to remove any path in front of .inl files. - - * pace/pace/posix/time.inl - Changed PACE_SETERNNO to PACE_SET_ERRNO - -Thu Jun 8 15:03:42 2000 Joe Hoffert <joeh@cs.wustl.edu> - - * pace/pace/Makefile: - Added support for PACE_SYSNAME to determine appropriate platform - subdirectory for VPATH and INCLDIRS. - -Thu Jun 8 14:44:39 2000 Luther J Baker <luther@cs.wustl.edu> - - * ../pace/linux/README - * ../pace/linux - * ../pace/sunos/README - * ../pace/sunos - * ../pace/emulation - - Removed from reposistory. - - * ../pace/linux/TODO - - Moved to ../pace/posix/TODO - - * ../pace/pace.dsw - - Moved to ../pace/win32/pace.dsw. - Hi Darrell. This takes all traces of win32 stuff out of - the main dir and although its slightly different than - ace or tao, we are using our directories a little - differently here. Nanbor thought that is might be ok so - I will try it here until it breaks? or someone has good - reason to move it back. - -Thu Jun 8 12:09:56 2000 Joe Hoffert <joeh@cs.wustl.edu> - - * pace/pace/sunos/*.{c,inl}: - Removed files and put them in the posix subdirectory. - * pace/pace/linux/*.{c,inl}: - Removed files and put them in the posix subdirectory. - * pace/pace/posix/*.{c,inl}: - Added files from the linux/sunos subdirectories. (The files - were identical from both directories aside from the $Id$ macro, - i.e., the person who checked them in.) - -Wed Jun 7 12:27:13 2000 Joe Hoffert <joeh@cs.wustl.edu> - - * Makefile: - Added Makefile for upper level pace directory. - * pace/Makefile: - Changed Makefile to fit in with the general makefile scheme in - ACE and TAO. - * config/compiler.h: - Defined PACE_HAS_INLINE even for C files so that the functions - will be directly added with the .h file. - * tests/{Makefile,Stdio_Test.c,Posix_SP_Test.c}: - Adding Makefile and tests to the tests directory. - -Mon Jun 5 17:43:07 2000 Luther J Baker <luther@cs.wustl.edu> - - * docs/todo.txt: - - Updated. You may go here to find current - responsibilities. - -Mon Jun 5 17:22:23 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/paces.dsp - * pace/pacesd.dsp - - Removed from the repository. - These files are generated (ie: paces.lib), - not project files. - -Mon Jun 5 17:19:30 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/THANKS: - - Added John Heitmann, Andrew Gilpin and Darrell Brunsch. - Note: names and email addresses are nicely accesible - from this alphabetical file. - -Mon Jun 5 17:04:36 2000 Andrew G. Gilpin <agg1@cs.wustl.edu> - - * [inl,c] - - Commited files to the repository in pace/linux - - * aio, dirent, fcntl, grp, in, inet, mman, mqueue, - netdb, pthread, pwd, sched, semaphore, setjmp, - signal, socket, stat, stdio, stdlib, string, - strings, termios, time, times, unistd, utime, - utsname, wait - -Mon Jun 5 16:47:32 2000 Luther J Baker <luther@cs.wustl.edu> - - * [inl,c] - - Moved files from root directory to pace/sunos. - - * aio, dirent, fcntl, grp, in, inet, mman, mqueue, - netdb, pthread, pwd, sched, semaphore, setjmp, - signal, socket, stat, stdio, stdlib, string, - strings, termios, time, times, unistd, utime, - utsname, wait - -Mon Jun 5 15:23:53 2000 Luther J Baker <luther@cs.wustl.edu> - - * /pace/linux - * /pace/linux/README - - Added to repository. - - * /pace/emulation - * /pace/emulation/README - - Removed from repository. - -Fri Jun 02 16:55:10 2000 <luther@cs.wustl.edu> - - * ACE_wrappers/pace/pace/paces.dsp - * ACE_wrappers/pace/pace/pacesd.dsp - - Added to repository. Naming consistency with other - ACE libraries. Also removed pre-compiled header - option as well as separate directories for debug - and release versions of software. - - * ACE_wrappers/pace/pace/pace_lib.dsp - - Removed from repository. Naming consistency. - -Thu Jun 1 17:41:04 2000 Luther J Baker <luther@cs.wustl.edu> - - * ACE_wrappers/pace/pace/emulation - * ACE_wrappers/pace/pace/common - * ACE_wrappers/pace/pace/emulation/README - * ACE_wrappers/pace/pace/common/README - - Added to repository. - - -Thu Jun 1 17:18:17 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/config/config_sunos5.7.h: - Removed from repository. - - * ACE_wrappers/pace/pace/posix/README - * ACE_wrappers/pace/pace/win32/README - * ACE_wrappers/pace/pace/vxworks/README - - Added to repository to keep the directories visible. - - -Thu Jun 01 16:50:48 2000 <luther@cs.wustl.edu> - - * ACE_wrappers/pace/pace/pace.dsw - * ACE_wrappers/pace/pace/pace_lib.dsp - - Added to the repository. - -Tue May 30 16:54:06 2000 Luther J Baker <luther@cs.wustl.edu> - - * THANKS: - Added key people to this file. - -Tue May 30 14:13:00 2000 Luther J Baker <luther@cs.wustl.edu> - - * ACE_wrappers/pace/pace/posix - * ACE_wrappers/pace/pace/win32 - * ACE_wrappers/pace/pace/vxworks - * ACE_wrappers/pace/THANKS - - Added to the repository to facilitate cross-platform work. - -Wed May 24 18:56:16 2000 Darrell Brunsch <brunsch@uci.edu> - - * docs/ACE_Integration.txt: (added) - - For the PACE crew, a file used to document our progress in - splitting of ACE_OS and the PACE integration. - -Wed May 24 14:40:41 2000 Luther J Baker <luther@cs.wustl.edu> - - * README/VERSION: - Added to repository. - -Tue May 23 18:22:48 2000 Luther J Baker <luther@cs.wustl.edu> - - * pace/pace/Makefile: - Added to repository. - - * 'touch' to force dirs to show up with cvs co -P - pace/docs/README - pace/examples/README - pace/pace/README - pace/pace++/README - pace/tests/README - -Tue May 23 17:59:06 2000 Luther J Baker <luther@cs.wustl.edu> - - * docs/todo.txt: - Currently, all .o files appear in the - ACE_wrappers/pace/pace directory (e.g.: nested - files such as pace/pace/sys/socket.c generate - pace/pace/socket.o. See pace/docs/todo.txt. - - * ACE_wrappers/pace/pace: - Source files added. diff --git a/PACE/Makefile b/PACE/Makefile deleted file mode 100644 index 0a9bd0cd01d..00000000000 --- a/PACE/Makefile +++ /dev/null @@ -1,37 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Makefile for the PACE directory -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -ifndef PACE_ROOT - PACE_ROOT = $(ACE_ROOT)/pace -endif # ! PACE_ROOT - -INFO = README - -DIRS = pace \ - tests - -# Add these DIRS later - keep it simple for now -# pace++ \ -# examples - -# Makefiles TBD: -# ttcp -# CORBA - - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nolocal.GNU diff --git a/PACE/Makefile.am b/PACE/Makefile.am deleted file mode 100644 index 4980da4cb5c..00000000000 --- a/PACE/Makefile.am +++ /dev/null @@ -1,30 +0,0 @@ -##--------------------------------------------------------------------------- -## $Id$ -## -## Top-level Makefile for the PACE toolkit libraries, tests, and -## applications -## -##--------------------------------------------------------------------------- - -## -## Process this file with automake to create Makefile.in -## - -## The number in AUTOMAKE_OPTIONS is the minimum required version automake -## needed to process this file. -AUTOMAKE_OPTIONS = 1.4 #check-news - -SUBDIRS = \ - pace \ - tests - -DESTDIRS = \ - docs \ - examples \ - pace++ - -## Clean up some additional files/directories possibly created during -## the configure script tests. -clean-local: - -rm -f *.bak *.rpo *.sym lib*.*_pure_* Makefile.old core - -rm -rf ptrepository Templates.DB gcctemp.c gcctemp so_locations diff --git a/PACE/README b/PACE/README deleted file mode 100644 index cc361881310..00000000000 --- a/PACE/README +++ /dev/null @@ -1,49 +0,0 @@ -# $Id$ - -Copyright (c) 2000 Center for Distributed Object Computing, -Washington University, St. Louis, Missouri, USA. - -This is POSIX ACE (PACE). It is based on ACE, the Adaptive -Communications Environment, developed by Doug Schmidt and the -Distributed Object Computing Group at Washington University and the -University of California, Irvine. Please see the ACE copyright -notice, available at -http://www.cs.wustl.edu/~schmidt/ACE_wrappers/COPYING. - -PACE is intended for lightweight and/or verified systems. It offers -these benefits: - -* A strict POSIX.1-like, low-level interface. Its interface is "POSIX - compatible"; by that we mean as close to POSIX.1 as it can be, given - that PACE is not an operating system. And, to avoid name conflicts - with OS APIs, all low-level PACE function names have the pace_ - prefix. - -* The low-level interface is partitioned into multiple files, one - per POSIX.1 section. - -* The low-level interface is written in C, so that it can be used in - both C and C++ programs. - -* PACE (on most platforms) does not require the use of multiple - inheritance, static objects, exception handling, or other C++ - language constructs that impair code size and/or run-time performance. - - -PACE also insulates applications from the personalities of operating -systems. For example: - -* SunOS 5.7's intro (3) man page states that _POSIX_PTHREAD_SEMANTICS - and _REENTRANT flags are automatically turned on by defining - _POSIX_C_SOURCE flag with a value greater than or equal to 199506L. - However, that doesn't appear to happen, so PACE does it. - -* On LynxOS 3.1.0 and Compaq Tru64, several POSIX functions prototypes - are missing const qualifiers. PACE provides the proper function - prototypes (and its implementation casts as necessary for - compatibility). - -* LynxOS 3.1.0 has a non-POSIX signal () interface; the handler function - prototype is not void (*) (int). PACE adapts its interface to the - POSIX standard interface. - diff --git a/PACE/THANKS b/PACE/THANKS deleted file mode 100644 index ee8a7aee07f..00000000000 --- a/PACE/THANKS +++ /dev/null @@ -1,16 +0,0 @@ -ACKNOWLEDGEMENTS - -Baker, Luther <luther@cs.wustl.edu> -Brunsch, Darrell <brunsch@ece.uci.edu> -Gilpin, Andrew <agg1@cs.wustl.edu> -Guallar, Gonzalo Diethelm <Gonzalo.Diethelm@sonda.com> -Heitmann, John <jwh1@cs.wustl.edu> -Hoefort, Joe <joeh@cs.wustl.edu> -Levine, David <levine@cs.wustl.edu> -Loftis, Bjorn <bl6394@momail.sbc.com> -Syyid, Umar <usyyid@hns.com> - <rbolourian@hns.com> - -Thanks, - - The PACE Development Team
\ No newline at end of file diff --git a/PACE/VERSION b/PACE/VERSION deleted file mode 100644 index 1759ef71b89..00000000000 --- a/PACE/VERSION +++ /dev/null @@ -1,5 +0,0 @@ -This is PACE version 1.0. - -PACE is developed by the Center for Distributed Object Computing, -Department of Computer Science, Washington University, St. Louis, -Missouri, USA. diff --git a/PACE/docs/ACE_Integration.txt b/PACE/docs/ACE_Integration.txt deleted file mode 100644 index 8265485564e..00000000000 --- a/PACE/docs/ACE_Integration.txt +++ /dev/null @@ -1,17 +0,0 @@ -$Id$ -These are the plans for splitting up ACE_OS and their status for both being -split up and being PACE enabled. - -Finished: ---------- -OS_Dirent -OS_String - -Planned: --------- -OS_Stdio -OS_Memory -OS_Process -OS_Synch -OS_Socket -OS_QoS diff --git a/PACE/docs/PACE_POSIX_support.txt b/PACE/docs/PACE_POSIX_support.txt deleted file mode 100644 index 0fb39052626..00000000000 --- a/PACE/docs/PACE_POSIX_support.txt +++ /dev/null @@ -1,370 +0,0 @@ -$Id$ - -LEGEND: (-N Native) (-E Emulated) (x Not Supported) - - -FILE linux lynxos sunos win32 -............................................................. -<aio.h> - aio_cancel() x - aio_error() x - aio_fsync() x - aio_read() x - aio_return() x - aio_suspend() x - aio_write() x - lio_listen() x -............................................................. -<assert.h> - assert() -N -............................................................. -<ctype.h> - isalnum() -N - isalpha() -N - iscntrl() -N - isdigit() -N - isgraph() -N - islower() -N - isprint() -N - ispunct() -N - isspace() -N - isupper() -N - isxdigit() -N - tolower() -N -............................................................. -<dirent.h> - closedir() -E - opendir() -E - readdir() -E - readdir_r() x - rewinddir() x -............................................................. -<fcntl.h> - creat() x -............................................................ -<grp.h> - getgrgid() x - getgrdid_r() x - getgrname() x - getgrname_r() x -............................................................. -<locale.h> - localeconv() -N - setlocale() -N -............................................................. -<math.h> - acos() -N - asin() -N - atan() -N - atan2() -N - cos() -N - sin() -N - tan() -N - cosh() -N - sinh() -N - tanh() -N - exp() -N - frexp() -N - ldexp() -N - log() -N - log10() -N - modf() -N - pow() -N - sqrt() -N - ceil() -N - fabs() -N - floor() -N - fmod() -N -............................................................. -<mman.h> - mlock() x - mlockall() x - mmap() -E - mprotect() -E - msync() -E - munlock() x - munlockall() x - munmap() -E - shm_open() x - shm_unlink() -E -............................................................. -<mqueue.h> - mq_close() x - mq_getattr() x - mq_notify() x - mq_open() x - mq_receive() x - mq_send() x - mq_setattr() x - mq_unlink() x -............................................................. -<pthread.h> - pthread_atfork() x - pthread_attr_destroy() x - pthread_attr_getdetachstate() x - pthread_attr_getinheritsched() x - pthread_attr_getschedparam() x - pthread_attr_getschedpolicy() x - pthread_attr_getscope() x - pthread_attr_getstackaddr() x - pthread_attr_getstacksize() x - pthread_attr_init() x - pthread_attr_setdetachstate() x - pthread_attr_setinheritsched() x - pthread_attr_setschedparam() x - pthread_attr_setschedpolicy() x - pthread_attr_setscope() x - pthread_attr_setstackaddr() x - pthread_attr_setstacksize() x - pthread_cancel() x - pthread_cleanup_push() x - pthread_cleanup_pop() x - pthread_cond_broadcast() x - pthread_cond_destroy() x - pthread_cond_init() x - pthread_cond_signal() x - pthread_cond_timedwait() x - pthread_cond_wait() x - pthread_condattr_destroy() x - pthread_condattr_getpshared() x - pthread_condattr_init() x - pthread_condattr_setpshared() x - pthread_create() x - pthread_detach() x - pthread_equal() x - pthread_exit() x - pthread_getschedparam() x - pthread_getspecific() x - pthread_join() x - pthread_key_create() x - pthread_key_delete() x - pthread_kill() x - pthread_mutex_destroy() x - pthread_mutex_getprioceiling() x - pthread_mutex_init() x - pthread_mutex_lock() x - pthread_mutex_setprioceiling() x - pthread_mutex_trylock() x - pthread_mutex_unlock() x - pthread_mutexattr_destroy() x - pthread_mutexattr_getprioceiling() x - pthread_mutexattr_getprotocol() x - pthread_mutexattr_setprioceiling() x - pthread_mutexattr_setprotocol() x - pthread_mutexattr_getpshared() x - pthread_mutexattr_init() x - pthread_mutexattr_setpshared() x - pthread_once() x - pthread_self() x - pthread_setcancelstate() x - pthread_setcanceltype() x - pthread_setschedparam() x - pthread_setspecific() x - pthread_sigmask() x - pthread_testcancel() x -............................................................. -<pwd.h> - getpwuid() x - getpwuid_r() x - getpwnam() x - getpwnam_r() x -............................................................ -<sched.h> - sched_get_priority_max() x - sched_get_priority_min() x - sched_getparam() x - sched_rr_get_interval() x - sched_setparam() x - sched_getscheduler x - sched_yield() x -............................................................. -<semaphore.h> - sem_close() x - sem_destroy() x - sem_getvalue() x - sem_init() x - sem_post() x - sem_trywait() x - sem_unlink() x - sem_wait() x -............................................................. -<setjmp.h> - setjmp() -N - longjmp() -N - sigsetjmp() x - siglongjmp() x -............................................................. -<signal.h> - kill() x - raise() x - sigaction() -E - sigaddset() x - sigemptyset() x - sigdelset() x - sigfillset() x - sigismember() x - signal() -N - sigpending() x - sigprocmask() x - sigqueue() x - sigsuspend() x - sigtimedwait() x - sigwait() x - sigwaitinfo() x -............................................................. -<stat.h> - chmod() x - fchmod() x - fstat() -N - mkdir() -E - mkfifo() x - stat() -N - umask() -N -............................................................. -<stdio.h> - clearerr() -N - fclose() -N - ctermid() x - fdopen() -N - ferror() -N - feof() -N - fflush() -N - fileno() -N - fgetc() -N - fgetpos() -N - fgets() -N - flockfile() -N - fopen() -N - fputc() -N - fputs() -N - fread() -N - freopen() -N - fseek() -N - fsetpos() -N - ftell() -N - ftrylockfile() -N - funlockfile() -N - fwrite() -N - getc() -N - getc_unlocked() -N - getchar() -N - getchar_unlocked() -N - gets() -N - perror() -N - putc() -N - putc_unlocked() -N - putchar() -N - putchar_unlocked() -N - puts() -N - remove() -N - rename() -N - rewind() -N - setbuf() -N - setvbuf() -N - tmpfile() -N - tmpnam() -N - ungetc() -N - vfprintf() -N - vprintf() -N - vsprintf() -N -............................................................. -<termios.h> - cfgetospeed() x - cfsetospeed() x - cfgetispeed() x - cfsetispeed() x - tcdrain() x - tcflow() x - tcflush() x - tcgetattr() x - tcsendbreak() x - tcsetattr() x -............................................................. -<timel.h> - asctime() -N - asctime_r() x - clock() -N - difftime() -N - clock_getres() x - clock_gettime() x - clock_settime() x - ctime() -N - ctimer_r() x - gmtime() -N - gmtime_r() x - localtime() -N - localtime_r() x - mktime() -N - nanosleep() x - strftime() -N - time() -N - timer_create() x - timer_delete() x - timer_getoverrun() x - timer_gettime() x - timer_settime() x - tzset() x -............................................................. -<times.h> - times() x -............................................................. -<unistd.h> - _exit() -N - access() -N - alarm() x - chdir() -N - chown() x - close() -E - dup() -E - dup2() x - execv() -N - execve() -N - execvp() -N - fdatasync() x - fork() x - fpathconf() x - fsync() x - ftruncate() -E - getcwd() -N - getegid() x - get_euid() x - getgroups() x - getgid() x - getlogin() x - getlogin_r() x - getpgrp() x - getpid() -E - getppid() x - getuid() x - isatty() -N - link() x - lseek() -E - pathconf() x - pause() x - pipe() x - read() x - rmdir() -N - setgid() x - setgid() x - setpgid() x - setsid() x - setuid() s - sleep() -N - sysconf() x - tcgetpgrp() x - tcsetpgrp() x - ttyname() x - ttyname_r() x - unlink() -N - write() -E -............................................................. -<utime.h> - utime() -E -............................................................. -<utsname.h> - uname() x -............................................................. -<wait.h> - wait() x - waitpid() x -.............................................................
\ No newline at end of file diff --git a/PACE/docs/README b/PACE/docs/README deleted file mode 100644 index e69de29bb2d..00000000000 --- a/PACE/docs/README +++ /dev/null diff --git a/PACE/docs/todo.txt b/PACE/docs/todo.txt deleted file mode 100644 index 40217b07bfd..00000000000 --- a/PACE/docs/todo.txt +++ /dev/null @@ -1,41 +0,0 @@ -Mon Jun 5 17:32:36 2000 Luther J Baker <luther@cs.wustl.edu> - - * Makefile/libraries: Joe - One place of [.h] files. The makefile needs to determine - the correct platform and include {-I} the correct path - for the appropriate platform directory. - - * PACE_OS (/vxworks/win32: Luther)(/linux/sunos) - - etc... These directories need to compile correctly under - the appropriate platform. For now, Andrew is porting - sunos and linux and I (Luther) am porting vxworks and - win32. We need to finish all the platforms quickly so - this should change daily. Especially once the Makefiles - work correctly. - - * ACE_OS: Darrell and St. Louis team. - Darrell is breaking ACE_OS up. Joe, myself and the St. - Louis team needs to start implementing ACE_OS in terms - of PACE. We can do this directly in OS.h/inl/cpp as - well as in the files that Darrell is subsetting ACE_OS - out into. - - * STL: - Eric and Bjorn are looking at the classes in ACE that use - the ACE containers. We are looking at the amount of work - and usefullness to be gained from changing the ACE - container interfaces to be consistent with the STL. - - * pace++: - Threads: Umar - IPC: Nortel - - -Tue May 23 17:55:40 2000 Luther J Baker <luther@cs.wustl.edu> - - * When compiling pace/pace/* files, all .o files all currently - appear in the pace/pace directory. E.G.: pace/pace/sys/socket.c - generates pace/pace/socket.o. This needs to be addressed - concurrently as we build the pacelib and link to the rest of - ace. diff --git a/PACE/examples/README b/PACE/examples/README deleted file mode 100644 index e69de29bb2d..00000000000 --- a/PACE/examples/README +++ /dev/null diff --git a/PACE/include/makeinclude/rules.common.GNU b/PACE/include/makeinclude/rules.common.GNU deleted file mode 100644 index 556f4a4e6c0..00000000000 --- a/PACE/include/makeinclude/rules.common.GNU +++ /dev/null @@ -1,91 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Common rules for building PACE targets -#---------------------------------------------------------------------------- - -ifndef PACE_ROOT - PACE_ROOT = $(ACE_ROOT)/PACE -endif # ! PACE_ROOT - -VPATH:=config:sys - -ifeq ($(PACE_SYSNAME),) - PACE_SYSNAME = $(shell uname -s) -endif # ! PACE_SYSNAME - -ifeq ($(PACE_SYSVER),) - PACE_SYSVER = $(shell uname -r) -endif # ! PACE_SYSVER - -ifeq ($(PACE_SYSNAME),Linux) - PACE_SYSVER := $(shell echo $(PACE_SYSVER) | \ - perl -ne 'printf "%lu\n", hex sprintf "%02X%02X%02x", split /\./') -else - PACE_SYSVER := $(shell echo $(PACE_SYSVER) | sed 's/\.//g') -endif # PACE_SYSNAME == Linux - -# List of platforms and uname -s values -# ===================================== -# Solaris SunOS -# NT "NT" (uname not supported) -# LynxOS LynxOS -# VxWorks "VxWorks" (strictly cross-compiled) -# Linux Linux -# pSOS "pSOS" (strictly cross-compiled) -# Chorus "Chorus" (strictly cross-compiled) -# QNX Neutrino "Neutrino" (strictly cross-compiled) -# OSF/1 OSF1 -# IRIX (64 bit) IRIX64 -# IRIX (32 bit) IRIX (unconfirmed) -# HPUX HP-UX - -ifeq ($(PACE_SYSNAME),SunOS) - # Hard code special cases for SunOS 5.6 and 5.7 since we - # need a 3 digit version number for comparison purposes. - ifeq ($(PACE_SYSVER),57) - PACE_SYSVER := $(PACE_SYSVER)0 - endif # PACE_SYSVER == 57 - ifeq ($(PACE_SYSVER),56) - PACE_SYSVER := $(PACE_SYSVER)0 - endif # PACE_SYSVER == 56 - VPATH :=.:posix:$(VPATH) - CFLAGS += -DPACE_SUNOS=$(PACE_SYSVER) -D_REENTRANT - ifeq ($(threads),1) - CFLAGS += -D_POSIX_PTHREAD_SEMANTICS - endif # ! ($(threads),0) -endif - -ifeq ($(PACE_SYSNAME),NT) - VPATH :=.:win32:$(VPATH) - CFLAGS += -DPACE_WIN32=$(PACE_SYSVER) -endif - -ifeq ($(PACE_SYSNAME),LynxOS) - VPATH :=.:posix:$(VPATH) - CFLAGS += -DPACE_LYNXOS=$(PACE_SYSVER) -endif - -ifeq ($(PACE_SYSNAME),OSF1) - VPATH :=.:posix:$(VPATH) - CFLAGS += -DPACE_OSF1=$(PACE_SYSVER) -D_DEC_XPG -endif - -ifeq ($(PACE_SYSNAME),VxWorks) - VPATH :=.:vxworks:$(VPATH) - CFLAGS += -DPACE_VXWORKS=$(PACE_SYSVER) -endif - -ifeq ($(PACE_SYSNAME),Linux) - VPATH :=.:posix:$(VPATH) - emulation=1 - CFLAGS += -DPACE_LINUX=$(PACE_SYSVER) -endif - -ifeq ($(debug),) - ifeq (,$(findstring $(CFLAGS),$(CCFLAGS))) - CCFLAGS += -DPACE_NDEBUG - else - CFLAGS += -DPACE_NDEBUG - endif -endif # debug diff --git a/PACE/pace++/README b/PACE/pace++/README deleted file mode 100644 index e69de29bb2d..00000000000 --- a/PACE/pace++/README +++ /dev/null diff --git a/PACE/pace/Makefile b/PACE/pace/Makefile deleted file mode 100644 index b871361105b..00000000000 --- a/PACE/pace/Makefile +++ /dev/null @@ -1,449 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Makefile for the PACE/pace C library release -#---------------------------------------------------------------------------- - -ifndef static_libs_only - ifndef shared_libs_only - static_libs_only = 1 - endif # ! shared_libs_only -endif # ! static_libs_only - -# If we are inlining the PACE functions then we need to define -# PACE_HAS_INLINE. Inlining is the default. -ifndef inline - CFLAGS += -DPACE_HAS_INLINE -endif # ! inline - -ifeq (1,$(inline)) - CFLAGS += -DPACE_HAS_INLINE -endif # inline - -MAKEFILE = Makefile -LIB = libPACE.a -SHLIB = libPACE.$(SOEXT) - -PACE_FILES = \ - aio \ - assert \ - ctype \ - dirent \ - fcntl \ - grp \ - locale \ - math \ - mqueue \ - pthread \ - pwd \ - sched \ - semaphore \ - setjmp \ - signal \ - stdio \ - stdlib \ - string \ - termios \ - time \ - unistd \ - utime -CONFIG_FILES = -SYS_FILES = \ - sys/mman \ - sys/stat \ - sys/times \ - sys/utsname \ - sys/wait -# POSIX_SINGLE_PROCESS Unit of Functionality (POSIX.1) -# pace_sysconf is in unistd.h; -# pace_time is in time.h; -# pace_uname is in sys/ustname.h -POSIX_SP_FILES = \ - unistd \ - time \ - sys/utsname -# POSIX_MULTI_PROCESS Unit of Functionality (POSIX.1) -# pace__exit is in unistd.h -# pace_assert is in assert.h -# pace_execl, pace_execle, pace_execlp, pace_execv, pace_execve, pace_execvp -# are in unistd.h; -# pace_exit is in stdlib.h; -# pace_fork is in unistd.h; -# pace_getenv is in stdlib.h; -# pace_getpid, pace_getppid are in unistd.h; -# pace_setlocale is in locale.h; -# pace_sleep is in unistd.h; -# pace_times is in sys/times.h; -# pace_wait, pace_waitpid are in wait.h; -POSIX_MP_FILES = \ - unistd \ - assert \ - stdlib \ - locale \ - sys/times \ - sys/wait -# POSIX_SIGNALS Unit of Functionality (POSIX.1) -# pace_abort is in stdlib.h; -# pace_alarm is in unistd.h; -# pace_kill is in signal.h; -# pace_pause is in unistd.h; -# pace_sigaction, pace_sigaddset, pace_sigdelset, pace_sigemptyset, -# pace_sigfillset, pace_sigismember are in signal.h; -# pace_siglongjmp is in setjmp.h; -# pace_sigpending, pace_sigprocmask are in signal.h; -# pace_sigsetjmp is in setjmp.h; -# pace_sigsuspend is in signal.h; -POSIX_SIG_FILES = \ - stdlib \ - unistd \ - signal \ - setjmp -# POSIX_USER_GROUPS Unit of Functionality (POSIX.1) -# pace_getegid, pace_geteuid, pace_getgid, pace_getgroups, pace_getlogin, -# pace_getpgrp, pace_getuid, pace_setgid, pace_setsid, pace_setuid are in -# unistd.h; -POSIX_UG_FILES = \ - unistd -# POSIX_FILE_SYSTEM Unit of Functionality (POSIX.1) -# pace_access, pace_chdir are in unistd.h; -# pace_closedir is in dirent.h; -# pace_creat is in fcntl.h; -# pace_fpathconf is in unistd.h; -# pace_fstat is in sys/stat.h -# pace_getcwd, pace_link are in unistd.h -# pace_mkdir is in sys/stat.h -# pace_opendir is in dirent.h; -# pace_pathconf is in unistd.h; -# pace_readdir is in dirent.h; -# pace_remove, pace_rename are in stdio.h; -# pace_rewinddir is in dirent.h; -# pace_rmdir is in unistd.h; -# pace_stat is in sys/stat.h; -# pace_tmpfile, pace_tmpnam are in stdio.h; -# pace_unlink is in unistd.h; -# pace_utime is in utime.h; -POSIX_FS_FILES = \ - unistd \ - dirent \ - fcntl \ - sys/stat \ - stdio \ - utime -# POSIX_FILE_ATTRIBUTES Unit of Functionality (POSIX.1) -# pace_chmod is in sys/stat.h; -# pace_chown is in unistd.h; -# pace_umask is in sys/stat.h; -POSIX_FA_FILES = \ - sys/stat \ - unistd -# POSIX_FIFO Unit of Functionality (POSIX.1) -# pace_mkfifo is in sys/stat.h; -POSIX_F_FILES = \ - sys/stat -# POSIX_DEVICE_IO Unit of Functionality (POSIX.1) -# pace_clearerr is in stdio.h; -# pace_close is in unistd.h; -# pace_fclose, pace_fdopen, pace_feof, pace_ferror are in stdio.h; -# pace_fflush, pace_fgetc, pace_fgets, pace_fileno are in stdio.h; -# pace_fopen, pace_fprintf, pace_fputc, pace_fputs, pace_fread, pace_freopen, -# pace_fscanf, pace_fwrite, pace_getc, pace_getchar, pace_gets are in stdio.h; -# pace_open is in fcntl.h; -# pace_perror, pace_printf, pace_putc, pace_putchar, pace_puts are in stdio.h; -# pace_read is in unistd.h; -# pace_scanf is in stdio.h; -# pace_setbuf, pace_sprintf, pace_sscanf, pace_ungetc are in stdio.h; -# pace_write are in unistd.h; -POSIX_DI_FILES = \ - stdio \ - unistd \ - fcntl -# POSIX_FD_MGMT Unit of Functionality (POSIX.1) -# pace_dup, pace_dup2 are in unistd.h; -# pace_fcntl is in fcntl.h; -# pace_fseek, pace_ftell are in stdio.h; -# pace_lseek in unistd.h; -# pace_rewind is in stdio.h; -POSIX_FM_FILES = \ - unistd \ - fcntl \ - stdio -# POSIX_PIPE Unit of Functionality (POSIX.1) -# pace_pipe is in unistd.h; -POSIX_P_FILES = \ - unistd -# POSIX_DEVICE_SPECIFIC Unit of Functionality (POSIX.1) -# pace_cfgetispeed, pace_cfgetospeed, pace_cfsetispeed, pace_cfsetospeed are -# in termios.h; -# pace_ctermid is in stdio.h; -# pace_isatty is in unistd.h; -# pace_tcdrain, pace_tcflow, pace_tcflush, pace_tcgetattr, pace_tcsendbreak, -# pace_tcsetattr are in termios.h; -# pace_ttyname is in unistd.h; -POSIX_DS_FILES = \ - termios \ - stdio \ - unistd -# POSIX_SYSTEM_DATABASE Unit of Functionality (POSIX.1) -# pace_getgrgid, pace_getgrnam, pace_getpwnam, pace_getpwuid are in grp.h; -POSIX_SD_FILES = \ - grp -# POSIX_C_LANG_SUPPORT Unit of Functionality (POSIX.1) -# Character handling functions (e.g., isalnum, toupper) are in ctype.h; -# Mathematics functions (e.g., acos, tanh) are in math.h; -# Non-local jump functions (i.e., longjmp, setjmp) are in setjmp.h; -# General utility functions (i.e., abs, srand) are in stdlib.h; -# String handling functions (i.e., strcat, strtok) are in string.h; -# Date and Time functions (i.e., asctime, tzset) are in time.h; -POSIX_CLS_FILES = \ - ctype \ - math \ - setjmp \ - stdlib \ - time -# _POSIX_JOB_CONTROL Unit of Functionality (POSIX.1) -# pace_setpgid is in unistd.h; -# pace_tcgetpgrp, pace_tcsetpgrp are in termios.h -_POSIX_JC_FILES = \ - unistd \ - termios -# POSIX_USER_GROUPS_R Unit of Functionality (POSIX.1) -# pace_getlogin_r is in unistd.h; -POSIX_UGR_FILES = \ - unistd -# POSIX_FILE_LOCKING Unit of Functionality (POSIX.1) -# pace_flockfile, pace_ftrylockfile, pace_funlockfile, pace_getc_unlocked, -# pace_getchar_unlocked, pace_putc_unlocked, pace_putchar_unlocked are in -# stdio.h; -POSIX_FL_FILES = \ - stdio -# POSIX_C_LANG_SUPPORT_R Unit of Functionality (POSIX.1) -# pace_asctime_r, pace_ctime_r, pace_gmtime_r, pace_localtime_r are in time.h; -# pace_rand_r is in stdlib.h; -# pace_strtok_r is in string.h; -# pace_readdir_r is in dirent.h; -POSIX_CLSR_FILES = \ - time \ - stdlib \ - string \ - dirent -# POSIX_SYSTEM_DATABASE_R Unit of Functionality (POSIX.1) -# pace_getgrgid_r, pace_getgrnam_r are in grp.h; -# pace_getpwnam_r, pace_getpwuid_r are in pwd.h; -POSIX_SDR_FILES = \ - grp \ - pwd - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU - -INCLDIRS += -I$(PACE_ROOT) - -#### -#### Build customization. -#### -ifndef PACE_COMPONENTS - #### Do we want PACE subsets as below? If so, we need to add the - #### documentation referenced below as well. - #### Please see docs/PACE-subsets.html for documentation. ?? - PACE_COMPONENTS = \ - Pace \ - Config \ - Sys - CFLAGS += -DPACE_HAS_ALL_POSIX_FUNCS -endif # PACE_COMPONENTS - -ifeq (FOR_ACE,$(PACE_COMPONENTS)) - #### These PACE components are necessary to support ACE. - override PACE_COMPONENTS = \ - Pace \ - Config \ - Sys - CFLAGS += -DPACE_HAS_ALL_POSIX_FUNCS -else # ! FOR_ACE - #### Is there anything in PACE that ACE doesn't need? Probably not -endif # ! FOR_ACE - -#### -#### PACE_COMPONENTS support. -#### -ifneq (,$(findstring Pace,$(PACE_COMPONENTS))) - FILES += $(PACE_FILES) -endif # Pace - -ifneq (,$(findstring Config,$(PACE_COMPONENTS))) - FILES += $(CONFIG_FILES) -endif # Config - -ifneq (,$(findstring Sys,$(PACE_COMPONENTS))) - FILES += $(SYS_FILES) -endif # Sys - -ifneq (,$(findstring Posix_sp,$(PACE_COMPONENTS))) - FILES = $(POSIX_SP_FILES) - LIB = libPACE_SP.a - SHLIB = libPACE_SP.$(SOEXT) - CFLAGS += -DPACE_HAS_POSIX_SP_UOF -endif # Single Process - -ifneq (,$(findstring Posix_mp,$(PACE_COMPONENTS))) - FILES = $(POSIX_MP_FILES) - LIB = libPACE_MP.a - SHLIB = libPACE_MP.$(SOEXT) - CFLAGS += -DPACE_HAS_POSIX_MP_UOF -endif # Multi Process - -ifneq (,$(findstring Posix_sig,$(PACE_COMPONENTS))) - FILES = $(POSIX_SIG_FILES) - LIB = libPACE_S.a - SHLIB = libPACE_S.$(SOEXT) - CFLAGS += -DPACE_HAS_POSIX_SIG_UOF -endif # Signals - -ifneq (,$(findstring Posix_usg,$(PACE_COMPONENTS))) - FILES = $(POSIX_UG_FILES) - LIB = libPACE_UG.a - SHLIB = libPACE_UG.$(SOEXT) - CFLAGS += -DPACE_HAS_POSIX_UG_UOF -endif # User Groups - -ifneq (,$(findstring Posix_fs,$(PACE_COMPONENTS))) - FILES = $(POSIX_FS_FILES) - LIB = libPACE_FS.a - SHLIB = libPACE_FS.$(SOEXT) - CFLAGS += -DPACE_HAS_POSIX_FS_UOF -endif # File System - -ifneq (,$(findstring Posix_fa,$(PACE_COMPONENTS))) - FILES = $(POSIX_FA_FILES) - LIB = libPACE_FA.a - SHLIB = libPACE_FA.$(SOEXT) - CFLAGS += -DPACE_HAS_POSIX_FA_UOF -endif # File Attributes - -ifneq (,$(findstring Posix_fif,$(PACE_COMPONENTS))) - FILES = $(POSIX_F_FILES) - LIB = libPACE_F.a - SHLIB = libPACE_F.$(SOEXT) - CFLAGS += -DPACE_HAS_POSIX_F_UOF -endif # Fifo - -ifneq (,$(findstring Posix_di,$(PACE_COMPONENTS))) - FILES = $(POSIX_DI_FILES) - LIB = libPACE_DI.a - SHLIB = libPACE_DI.$(SOEXT) - CFLAGS += -DPACE_HAS_POSIX_DI_UOF -endif # Device Input/Output - -ifneq (,$(findstring Posix_fm,$(PACE_COMPONENTS))) - FILES = $(POSIX_FM_FILES) - LIB = libPACE_FM.a - SHLIB = libPACE_FM.$(SOEXT) - CFLAGS += -DPACE_HAS_POSIX_FM_UOF -endif # File Descriptor Management - -ifneq (,$(findstring Posix_p,$(PACE_COMPONENTS))) - FILES = $(POSIX_P_FILES) - LIB = libPACE_P.a - SHLIB = libPACE_P.$(SOEXT) - CFLAGS += -DPACE_HAS_POSIX_P_UOF -endif # Pipe - -ifneq (,$(findstring Posix_ds,$(PACE_COMPONENTS))) - FILES = $(POSIX_DS_FILES) - LIB = libPACE_DS.a - SHLIB = libPACE_DS.$(SOEXT) - CFLAGS += -DPACE_HAS_POSIX_DS_UOF -endif # Device Specific - -ifneq (,$(findstring Posix_sd,$(PACE_COMPONENTS))) - FILES = $(POSIX_SD_FILES) - LIB = libPACE_SD.a - SHLIB = libPACE_SD.$(SOEXT) - CFLAGS += -DPACE_HAS_POSIX_SD_UOF -endif # System Database - -ifneq (,$(findstring Posix_cls,$(PACE_COMPONENTS))) - FILES = $(POSIX_CLS_FILES) - LIB = libPACE_CLS.a - SHLIB = libPACE_CLS.$(SOEXT) - CFLAGS += -DPACE_HAS_POSIX_CLS_UOF -endif # C Language Support - -ifneq (,$(findstring Posix_jc,$(PACE_COMPONENTS))) - FILES = $(_POSIX_JC_FILES) - LIB = libPACE_JC.a - SHLIB = libPACE_JC.$(SOEXT) - CFLAGS += -DPACE_HAS_POSIX_JC_UOF -endif # Job Control - -ifneq (,$(findstring Posix_ugr,$(PACE_COMPONENTS))) - FILES = $(POSIX_UGR_FILES) - LIB = libPACE_UGR.a - SHLIB = libPACE_UGR.$(SOEXT) - CFLAGS += -DPACE_HAS_POSIX_UGR_UOF -endif # User Groups - Reentrant - -ifneq (,$(findstring Posix_fl,$(PACE_COMPONENTS))) - FILES = $(POSIX_FL_FILES) - LIB = libPACE_FL.a - SHLIB = libPACE_FL.$(SOEXT) - CFLAGS += -DPACE_HAS_POSIX_FL_UOF -endif # File Locking - -ifneq (,$(findstring Posix_clr,$(PACE_COMPONENTS))) - FILES = $(POSIX_CLSR_FILES) - LIB = libPACE_CLSR.a - SHLIB = libPACE_CLSR.$(SOEXT) - CFLAGS += -DPACE_HAS_POSIX_CLSR_UOF -endif # C Language Support - Reentrant - -ifneq (,$(findstring Posix_sr,$(PACE_COMPONENTS))) - FILES = $(POSIX_SDR_FILES) - LIB = libPACE_SDR.a - SHLIB = libPACE_SDR.$(SOEXT) - CFLAGS += -DPACE_HAS_POSIX_SDR_UOF -endif # System Database - Reentrant - -LSRC = $(addsuffix .cpp,$(FILES)) - -BUILD += PACE_COMPONENTS - -#### Setting PACELIB to null allows it to be used for building shared -#### libraries, including libPACE.$(SOEXT,) on certain platforms. -PACELIB = - -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.lib.GNU -#### Disable installs in this ($(ACE_ROOT)/pace/pace) directory, because this -#### is the (default) destination of installs anyways. This line prevents -#### creation of a link from the PACE library to itself when the build of -#### the PACE library fails. -INSTALL = -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -include $(ACE_ROOT)/PACE/include/makeinclude/rules.common.GNU - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -.PHONY: PACE_COMPONENTS -PACE_COMPONENTS: - @sh $(ACE_ROOT)/bin/ace_components --pace --set ' $(PACE_COMPONENTS) ' - -realclean: - @sh $(ACE_ROOT)/bin/ace_components --pace --remove - -# AIX template compilation speedup hack -# Not added for PACE - can always be added later if needed - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. diff --git a/PACE/pace/Makefile.am b/PACE/pace/Makefile.am deleted file mode 100644 index 65d64169da5..00000000000 --- a/PACE/pace/Makefile.am +++ /dev/null @@ -1,64 +0,0 @@ -##--------------------------------------------------------------------------- -## $Id$ -## -## Makefile for the PACE C library -## -##--------------------------------------------------------------------------- - -## -## Process this file with automake to create Makefile.in -## - -## The number in AUTOMAKE_OPTIONS is the minimum required version automake -## needed to process this file. -AUTOMAKE_OPTIONS = 1.4 - -SUBDIRS = \ - @SUBDIRS@ - -DESTDIRS = \ - config \ - emulation \ - man \ - posix \ - sys \ - vxworks \ - win32 - -PACE_LIB = @PACE_LIB@ - -lib_LTLIBRARIES = libPACE.la -libPACE_la_LIBADD = $(PACE_LIB) - -pkginclude_HEADERS = \ - aio.h \ - assert.h \ - ctype.h \ - dirent.h \ - errno.h \ - fcntl.h \ - grp.h \ - limits.h \ - locale.h \ - math.h \ - mqueue.h \ - pthread.h \ - pwd.h \ - sched.h \ - semaphore.h \ - setjmp.h \ - signal.h \ - stddef.h \ - stdio.h \ - stdlib.h \ - string.h \ - termios.h \ - time.h \ - unistd.h \ - utime.h - -## Clean up some additional files/directories possibly created during -## the configure script tests. -clean-local: - -rm -f *.bak *.rpo *.sym lib*.*_pure_* Makefile.old core - -rm -rf ptrepository Templates.DB gcctemp.c gcctemp so_locations diff --git a/PACE/pace/aio.h b/PACE/pace/aio.h deleted file mode 100644 index c9c4b2a1c83..00000000000 --- a/PACE/pace/aio.h +++ /dev/null @@ -1,124 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/aio.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_AIO_H -#define PACE_AIO_H - -#include "pace/config/defines.h" - -#if (PACE_HAS_POSIX) -# include "pace/posix/aio.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/aio.h" -#elif (PACE_WIN32) -# include "pace/win32/aio.h" -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - - /** - PACE's implementation of the POSIX function aio_cancel. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), section 6.7.7. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_aio_cancel (PACE_HANDLE fildes, pace_aiocb * aiocb); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function aio_error. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), section 6.7.5. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_aio_error (const pace_aiocb * aiocbp); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function aio_fsync. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), section 6.7.9. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_aio_fsync (int op, pace_aiocb * aiocbp); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function aio_read. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), section 6.7.2. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_aio_read (pace_aiocb * aiocbp); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function aio_return. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), section 6.7.6. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_aio_return (pace_aiocb * aiocbp); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function aio_suspend. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), section 6.7.8. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_aio_suspend (const pace_aiocb * const list[], - int nent, - const pace_timespec * timeout); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function aio_write. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), section 6.7.3. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_aio_write (pace_aiocb * aiocbp); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function lio_listio. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), section 6.7.4. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - 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) -# if (PACE_HAS_POSIX) -# include "pace/posix/aio.inl" -# elif (PACE_VXWORKS) -# include "pace/vxworks/aio.inl" -# elif (PACE_WIN32) -# include "pace/win32/aio.inl" -# endif -#endif /* PACE_HAS_INLINE */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_AIO_H */ diff --git a/PACE/pace/assert.h b/PACE/pace/assert.h deleted file mode 100644 index 00c5dff1180..00000000000 --- a/PACE/pace/assert.h +++ /dev/null @@ -1,64 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/assert.h - * - * = AUTHOR - * Joe Hoffert - * - * =========================================================================== */ - -#ifndef PACE_ASSERT_H -#define PACE_ASSERT_H - -#include "pace/config/defines.h" - -#if (PACE_HAS_POSIX) -# include "pace/posix/assert.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/assert.h" -#elif (PACE_WIN32) -# include "pace/win32/assert.h" -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - - /** - PACE's implementation of the POSIX macro assert. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - - Use a macro because assert uses __FILE__ and __LINE__, which - would not be useful with an inline function. - */ - -#if (PACE_HAS_POSIX_MP_UOF) -#if defined (PACE_NDEBUG) -# define pace_assert(X) -#else /* ! PACE_NDEBUG */ -# define pace_assert(X) assert (X) -#endif /* ! PACE_NDEBUG */ -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if defined (PACE_HAS_INLINE) -# if (PACE_HAS_POSIX) -# include "pace/posix/assert.inl" -# elif (PACE_VXWORKS) -# include "pace/vxworks/assert.inl" -# elif (PACE_WIN32) -# include "pace/win32/assert.inl" -# endif -#endif /* PACE_HAS_INLINE */ - -# if defined (PACE_HAS_CPLUSPLUS) -} -# endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_ASSERT_H */ diff --git a/PACE/pace/config/compiler.h b/PACE/pace/config/compiler.h deleted file mode 100644 index 92e25c97a05..00000000000 --- a/PACE/pace/config/compiler.h +++ /dev/null @@ -1,69 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/config/compiler.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_CONFIG_COMPILER_H -#define PACE_CONFIG_COMPILER_H - -#if defined (__cplusplus) -# define PACE_HAS_CPLUSPLUS __cplusplus -# if defined (PACE_HAS_INLINE) -# define PACE_INLINE inline -# else -# define PACE_INLINE -# endif /* ! PACE_HAS_INLINE */ -#else /* ! __cplusplus */ -/* If PACE_HAS_INLINE is defined then we need the PACE functions to be - * static. Otherwise, we want PACE_INLINE to be defined as nothing. - */ -# if defined (PACE_HAS_INLINE) -# define PACE_INLINE static -# else -# define PACE_INLINE -# endif /* ! PACE_HAS_INLINE */ -#endif /* ! __cplusplus */ - -#if defined (PACE_HAS_INLINE) && defined (__GNUC__) && !(PACE_LYNXOS) -# define PACE_BROKEN_INLINE inline -#else -# define PACE_BROKEN_INLINE -#endif /* PACE_HAS_INLINE */ - -/* ============================================================================ - * Compiler Silencing macros - * - * Some compilers complain about parameters that are not used. This macro - * should keep them quiet. - * ============================================================================ - */ - -#if defined (ghs) || \ - defined (__GNUC__) || \ - defined (__hpux) || \ - defined (__sgi) || \ - defined (__DECCXX) || \ - defined (__KCC) || \ - defined (__rational__) \ - || (__USLC__) -/* Some compilers complain about "statement with no effect" with (a). - * This eliminates the warnings, and no code is generated for the null - * conditional statement. NOTE: that may only be true if -O is enabled, - * such as with GreenHills (ghs) 1.8.8. - */ -# define PACE_UNUSED_ARG(a) {if (&a) { /* null */ }} -#else /* ! ghs || __GNUC__ || ..... */ -# define PACE_UNUSED_ARG(a) (a) -#endif /* ! ghs || __GNUC__ || ..... */ - -#endif /* PACE_CONFIG_COMPILER_H */ diff --git a/PACE/pace/config/config.h b/PACE/pace/config/config.h deleted file mode 100644 index 09bddf6eb7c..00000000000 --- a/PACE/pace/config/config.h +++ /dev/null @@ -1,155 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/config/config.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_CONFIG_CONFIG_H -#define PACE_CONFIG_CONFIG_H - -#if !defined (PACE_HAS_POSIX_C_SOURCE) -# if defined (_POSIX_C_SOURCE) -# define PACE_HAS_POSIX_C_SOURCE _POSIX_C_SOURCE -# endif /* _POSIX_C_SOURCE */ -#endif /* ! PACE_HAS_POSIX_C_SOURCE */ - -#if !defined (PACE_HAS_EXTENSIONS) -# if defined (__EXTENSIONS__) -# define PACE_HAS_EXTENSIONS __EXTENSIONS__ -# endif /* __EXTENSIONS__ */ -#endif /* ! PACE_HAS_EXTENSIONS */ - -#if !defined (PACE_HAS_REENTRANT) -# if defined (PACE_LINUX) -# ifdef __USE_POSIX -# define PACE_HAS_REENTRANT 1 -# else /* ! __USE_POSIX */ -# endif /* ! __USE_POSIX */ -# elif defined (PACE_LYNXOS) -/* LynxOS uses _POSIX_REENTRANT_FUNCTIONS, but not _REENTRANT */ -# elif defined (PACE_SUNOS) -# if defined (__EXTENSIONS__) || defined (_REENTRANT) || \ - (_POSIX_C_SOURCE - 0 >= 199506L) -# define PACE_HAS_REENTRANT 1 -# else /* ! __EXTENSIONS__ && ! _REENTRANT && _POSIX_C_SOURCE < 199506L */ -# endif /* ! __EXTENSIONS__ && ! _REENTRANT && _POSIX_C_SOURCE < 199506L */ -# else /* other POSIX */ -# define PACE_HAS_REENTRANT 1 -# endif /* other POSIX */ -#endif /* ! PACE_HAS_REENTRANT */ - - -#if !defined (PACE_HAS_POSIX_PTHREAD_SEMANTICS) -# if defined (_POSIX_PTHREAD_SEMANTICS) -# define PACE_HAS_POSIX_PTHREAD_SEMANTICS _POSIX_PTHREAD_SEMANTICS -# endif /* _POSIX_PTHREAD_SEMANTICS */ -#endif /* ! PACE_HAS_POSIX_PTHREAD_SEMANTICS */ - - -#if PACE_HAS_POSIX == PACE_LYNXOS -# define PACE_NONCONST_ARG_CAST(TYPE) (TYPE) -# define PACE_VOIDSTARTSTAR_ARG_CAST(TYPE) (TYPE) -# define PACE_AIO_SUSPEND_LIST_ARG_CAST (struct aiocb **) -#elif PACE_HAS_POSIX == DIGITAL_UNIX -# define PACE_NONCONST_ARG_CAST(TYPE) (TYPE) -# define PACE_VOIDSTARTSTAR_ARG_CAST(TYPE) -# define PACE_AIO_SUSPEND_LIST_ARG_CAST (const struct aiocb **) -#else /* ! PACE_LYNXOS */ -# define PACE_NONCONST_ARG_CAST(TYPE) -# define PACE_VOIDSTARTSTAR_ARG_CAST(TYPE) -# define PACE_AIO_SUSPEND_LIST_ARG_CAST -#endif /* ! PACE_LYNXOS */ - -/* Adding appropriate macros for the different POSIX units of - functionality that PACE supports. - */ -#if PACE_HAS_ALL_POSIX_FUNCS -# define PACE_HAS_POSIX_SP_UOF 1 -# define PACE_HAS_POSIX_MP_UOF 1 -# define PACE_HAS_POSIX_SIG_UOF 1 -# define PACE_HAS_POSIX_UG_UOF 1 -# define PACE_HAS_POSIX_FS_UOF 1 -# define PACE_HAS_POSIX_FA_UOF 1 -# define PACE_HAS_POSIX_F_UOF 1 -# define PACE_HAS_POSIX_DI_UOF 1 -# define PACE_HAS_POSIX_FM_UOF 1 -# define PACE_HAS_POSIX_P_UOF 1 -# define PACE_HAS_POSIX_DS_UOF 1 -# define PACE_HAS_POSIX_SD_UOF 1 -# define PACE_HAS_POSIX_CLS_UOF 1 -# define PACE_HAS_POSIX_JC_UOF 1 -# define PACE_HAS_POSIX_UGR_UOF 1 -# define PACE_HAS_POSIX_FL_UOF 1 -# define PACE_HAS_POSIX_CLSR_UOF 1 -# define PACE_HAS_POSIX_SDR_UOF 1 -# define PACE_HAS_POSIX_NONUOF_FUNCS 1 -#else -# if !defined PACE_HAS_POSIX_SP_UOF -# define PACE_HAS_POSIX_SP_UOF 0 -# endif /* ! PACE_HAS_POSIX_SP_UOF */ -# if !defined PACE_HAS_POSIX_MP_UOF -# define PACE_HAS_POSIX_MP_UOF 0 -# endif /* ! PACE_HAS_POSIX_MP_UOF */ -# if !defined PACE_HAS_POSIX_SIG_UOF -# define PACE_HAS_POSIX_SIG_UOF 0 -# endif /* ! PACE_HAS_POSIX_SIG_UOF */ -# if !defined PACE_HAS_POSIX_UG_UOF -# define PACE_HAS_POSIX_UG_UOF 0 -# endif /* ! PACE_HAS_POSIX_UG_UOF */ -# if !defined PACE_HAS_POSIX_FS_UOF -# define PACE_HAS_POSIX_FS_UOF 0 -# endif /* ! PACE_HAS_POSIX_FS_UOF */ -# if !defined PACE_HAS_POSIX_FA_UOF -# define PACE_HAS_POSIX_FA_UOF 0 -# endif /* ! PACE_HAS_POSIX_FA_UOF */ -# if !defined PACE_HAS_POSIX_F_UOF -# define PACE_HAS_POSIX_F_UOF 0 -# endif /* ! PACE_HAS_POSIX_F_UOF */ -# if !defined PACE_HAS_POSIX_DI_UOF -# define PACE_HAS_POSIX_DI_UOF 0 -# endif /* ! PACE_HAS_POSIX_DI_UOF */ -# if !defined PACE_HAS_POSIX_FM_UOF -# define PACE_HAS_POSIX_FM_UOF 0 -# endif /* ! PACE_HAS_POSIX_FM_UOF */ -# if !defined PACE_HAS_POSIX_P_UOF -# define PACE_HAS_POSIX_P_UOF 0 -# endif /* ! PACE_HAS_POSIX_P_UOF */ -# if !defined PACE_HAS_POSIX_DS_UOF -# define PACE_HAS_POSIX_DS_UOF 0 -# endif /* ! PACE_HAS_POSIX_DS_UOF */ -# if !defined PACE_HAS_POSIX_SD_UOF -# define PACE_HAS_POSIX_SD_UOF 0 -# endif /* ! PACE_HAS_POSIX_SD_UOF */ -# if !defined PACE_HAS_POSIX_CLS_UOF -# define PACE_HAS_POSIX_CLS_UOF 0 -# endif /* ! PACE_HAS_POSIX_CLS_UOF */ -# if !defined PACE_HAS_POSIX_JC_UOF -# define PACE_HAS_POSIX_JC_UOF 0 -# endif /* ! PACE_HAS_POSIX_JC_UOF */ -# if !defined PACE_HAS_POSIX_UGR_UOF -# define PACE_HAS_POSIX_UGR_UOF 0 -# endif /* ! PACE_HAS_POSIX_UGR_UOF */ -# if !defined PACE_HAS_POSIX_FL_UOF -# define PACE_HAS_POSIX_FL_UOF 0 -# endif /* ! PACE_HAS_POSIX_FL_UOF */ -# if !defined PACE_HAS_POSIX_CLSR_UOF -# define PACE_HAS_POSIX_CLSR_UOF 0 -# endif /* ! PACE_HAS_POSIX_CLSR_UOF */ -# if !defined PACE_HAS_POSIX_SDR_UOF -# define PACE_HAS_POSIX_SDR_UOF 0 -# endif /* ! PACE_HAS_POSIX_SDR_UOF */ -# if !defined PACE_HAS_POSIX_NONUOF_FUNCS -# define PACE_HAS_POSIX_NONUOF_FUNCS 0 -# endif /* ! PACE_HAS_POSIX_NONUOF_FUNCS */ -#endif /* PACE_HAS_ALL_POSIX_FUNCS */ - -#endif /* PACE_CONFIG_CONFIG_H */ diff --git a/PACE/pace/config/constants.h b/PACE/pace/config/constants.h deleted file mode 100644 index df5c062775d..00000000000 --- a/PACE/pace/config/constants.h +++ /dev/null @@ -1,249 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * constants.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_CONFIG_CONSTANTS_H -#define PACE_CONFIG_CONSTANTS_H - -#define PACE_ONE_SECOND_IN_MSECS 1000L -#define PACE_ONE_SECOND_IN_USECS 1000000L -#define PACE_ONE_SECOND_IN_NSECS 1000000000L - -/* ============================================================================ - * Posix minimum values - * ============================================================================ */ - -/* The number of I/O operations that can be specified in a list I/O call. */ -# if defined (_POSIX_AIO_LISTIO_MAX) -# define PACE_POSIX_AIO_LISTIO_MAX _POSIX_AIO_LISTIO_MAX -# endif - -/* The number of outstanding asynchronous I/O operations. */ -# if defined (_POSIX_AIO_MAX) -# define PACE_POSIX_AIO_MAX _POSIX_AIO_MAX -# endif - -/* The length of the arguments for one of the exec functions, in bytes, - * excluding environment data. */ -# if defined (_POSIX_ARG_MAX) -# define PACE_POSIX_ARG_MAX _POSIX_ARG_MAX -# endif - -/* The number of simultaneous processes per real user ID. */ -# if defined (_POSIX_CHILD_MAX) -# define PACE_POSIX_CHILD_MAX _POSIX_CHILD_MAX -# endif - -/* The number of timer expiration overruns. */ -# if defined (_POSIX_DELAYTIMER_MAX) -# define PACE_POSIX_DELAYTIMER_MAX _POSIX_DELAYTIMER_MAX -# endif - -/* The value of a file's link count. */ -# if defined (_POSIX_LINK_MAX) -# define PACE_POSIX_LINK_MAX _POSIX_LINK_MAX -# endif - -/* The size of the storage required for a login name, in bytes, - * including the terminating NULL. */ -# if defined (_POSIX_LOGIN_NAME_MAX) -# define PACE_POSIX_LOGIN_NAME_MAX _POSIX_LOGIN_NAME_MAX -# endif - -/* The number of bytes in a terminal canonical input queue. */ -# if defined (_POSIX_MAX_CANON) -# define PACE_POSIX_MAX_CANON _POSIX_MAX_CANON -# endif - -/* The number of bytes for which space will be available in a - * terminal input queue. */ -# if defined (_POSIX_MAX_INPUT) -# define PACE_POSIX_MAX_INPUT _POSIX_MAX_INPUT -# endif - -/* The number of message queues that can be open for a single - * process. */ -# if defined (_POSIX_MQ_OPEN_MAX) -# define PACE_POSIX_MQ_OPEN_MAX _POSIX_MQ_OPEN_MAX -# endif - -/* The maximum number of message priorities supported by the - * implementation. */ -# if defined (_POSIX_MQ_PRIO_MAX) -# define PACE_POSIX_MQ_PRIO_MAX _POSIX_MQ_PRIO_MAX -# endif - -/* The number of bytes in a filename. */ -# if defined (_POSIX_NAME_MAX) -# define PACE_POSIX_NAME_MAX _POSIX_NAME_MAX -# endif - -/* The number of simultaneous supplementary group IDs per process. */ -# if defined (_POSIX_NGROUPS_MAX) -# define PACE_POSIX_NGROUPS_MAX _POSIX_NGROUPS_MAX -# endif - -/* The number of files that one process can have open at one time. */ -# if defined (_POSIX_OPEN_MAX) -# define PACE_POSIX_OPEN_MAX _POSIX_OPEN_MAX -# endif - -/* The number of bytes in a pathname. */ -# if defined (_POSIX_PATH_MAX) -# define PACE_POSIX_PATH_MAX _POSIX_PATH_MAX -# endif - -/* The number of bytes that can be written atomically when writing - * to a pipe. */ -# if defined (_POSIX_PIPE_BUF) -# define PACE_POSIX_PIPE_BUF _POSIX_PIPE_BUF -# endif - -/* The number of realtime signal numbers reserved for application use. */ -# if defined (_POSIX_RTSIG_MAX) -# define PACE_POSIX_RTSIG_MAX _POSIX_RTSIG_MAX -# endif - -/* The number of semaphores that a process may have. */ -# if defined (_POSIX_SEM_NSEMS_MAX) -# define PACE_POSIX_SEM_NSEMS_MAX _POSIX_SEM_NSEMS_MAX -# endif - -/* The maximum value a semaphore may have. */ -# if defined (_POSIX_SEM_VALUE_MAX) -# define PACE_POSIX_SEM_VALUE_MAX _POSIX_SEM_VALUE_MAX -# endif - -/* The number of queued signals that a process may send and have pending - * at the receiver(s) at any time. */ -# if defined (_POSIX_SIGQUEUE_MAX) -# define PACE_POSIX_SIGQUEUE_MAX _POSIX_SIGQUEUE_MAX -# endif - -/* The value that can be stored in an object of type ssize_t. */ -# if defined (_POSIX_SSIZE_MAX) -# define PACE_POSIX_SSIZE_MAX _POSIX_SSIZE_MAX -# endif - -/* The number of streams that one process can have open at one time. */ -# if defined (_POSIX_STREAM_MAX) -# define PACE_POSIX_STREAM_MAX _POSIX_STREAM_MAX -# endif - -/* The number of attempts made to destroy the thread-specific data - * values of a thread on thread exit. */ -# if defined (_POSIX_THREAD_DESTRUCTOR_ITERATIONS) -# define PACE_POSIX_THREAD_DESTRUCTOR_ITERATIONS _POSIX_THREAD_DESTRUCTORITERATIONS -# endif - -/* The number of data keys per process. */ -# if defined (_POSIX_THREAD_KEYS_MAX) -# define PACE_POSIX_THREAD_KEYS_MAX _POSIX_THREAD_KEYS_MAX -# endif - -/* The number of threads per process. */ -# if defined (_POSIX_THREAD_THREADS_MAX) -# define PACE_POSIX_THREAD_THREADS_MAX _POSIX_THREAD_THREADS_MAX -# endif - -/* The size of the storage required for a terminal device name, in bytes, - * including the terminating NULL. */ -# if defined (_POSIX_TTY_NAME_MAX) -# define PACE_POSIX_TTY_NAME_MAX _POSIX_TTY_NAME_MAX -# endif - -/* The per-process number of times. */ -# if defined (_POSIX_TIMER_MAX) -# define PACE_POSIX_TIMER_MAX _POSIX_TIMER_MAX -# endif - -/* The maximum number of bytes supported for the name of a time zone - * (not of the TZ variable). */ -# if defined (_POSIX_TZNAME_MAX) -# define PACE_POSIX_TZNAME_MAX _POSIX_TZNAME_MAX -# endif - - -/* ============================================================================ - * Temporary MACROS. Correct them later. - * ============================================================================ */ - -#include "pace/sys/types.h" - -/* Need for NT */ -# define PACE_Export -# 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 -# define PACE_END_DUMP - -/* Identification for PACE.h */ -# define PACE_RCSID(X,Y,Z) - -/* Hooks */ -/* Dummy values */ -# define PACE_ALLOC_HOOK_DECLARE int declare_hook -# define PACE_ALLOC_HOOK_DEFINE(X) - -/* Signals / ioctl / fcntl - dummy values */ -# define PACE_SIGURG 1 -# define PACE_NONBLOCK 2 -# define PACE_CLOEXEC 3 - -/* Flags */ -/* Will not be a macro, dummy values */ -# define PACE_set_flags(X,Y) 1 -# define PACE_clr_flags(X,Y) 1 - -/* Log Error */ -# define PACE_ERROR(X) - -/* Host Entries */ -# if defined (PACE_HAS_STRUCT_NETDB_DATA) -typedef char PACE_HOSTENT_DATA[sizeof(struct hostent_data)]; -typedef char PACE_SERVENT_DATA[sizeof(struct servent_data)]; -typedef char PACE_PROTOENT_DATA[sizeof(struct protoent_data)]; -# else -# if !defined PACE_HOSTENT_DATA_SIZE -# define PACE_HOSTENT_DATA_SIZE (4*1024) -# endif /* PACE_HOSTENT_DATA_SIZE */ -# if !defined PACE_SERVENT_DATA_SIZE -# define PACE_SERVENT_DATA_SIZE (4*1024) -# endif /*PACE_SERVENT_DATA_SIZE */ -# if !defined PACE_PROTOENT_DATA_SIZE -# define PACE_PROTOENT_DATA_SIZE (2*1024) -# endif /*PACE_PROTOENT_DATA_SIZE */ -typedef char PACE_HOSTENT_DATA[PACE_HOSTENT_DATA_SIZE]; -typedef char PACE_SERVENT_DATA[PACE_SERVENT_DATA_SIZE]; -typedef char PACE_PROTOENT_DATA[PACE_PROTOENT_DATA_SIZE]; -# endif /* PACE_HAS_STRUCT_NETDB_DATA */ - -/* PACE_HAS_SIN_LEN */ - -/* PACE_FREE */ -/* adjust later to use macros to decide how to free */ -# define PACE_FREE(X,Y) \ -X Y - -# define AF_ANY -1 - -/* PACE CATCHALL */ -/* FIONREAD is used in PACE_SOCK_IO::recvv */ -/* PACE_HAS_ALLOCA is used in PACE_SOCK_IO::recvv */ - -#endif /* PACE_CONFIG_CONSTANTS_H */ diff --git a/PACE/pace/config/defaults.h b/PACE/pace/config/defaults.h deleted file mode 100644 index deadb92b071..00000000000 --- a/PACE/pace/config/defaults.h +++ /dev/null @@ -1,26 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * defaults.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - - -#ifndef PACE_CONFIG_DEFAULTS_H -#define PACE_CONFIG_DEFAULTS_H - - -/* Define the default constants for PACE. Many of these are used for - * the PACE tests and applications. You can change these values by - * defining the macros in your config.h file. */ - - -#endif /* PACE_CONFIG_DEFAULTS_H */ diff --git a/PACE/pace/config/defines.h b/PACE/pace/config/defines.h deleted file mode 100644 index 0aabf77f21c..00000000000 --- a/PACE/pace/config/defines.h +++ /dev/null @@ -1,27 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/config/defines.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_CONFIG_DEFINES_H -#define PACE_CONFIG_DEFINES_H - -#include "pace/config/platform.h" -#include "pace/config/config.h" -#include "pace/config/compiler.h" -#include "pace/config/constants.h" -#include "pace/config/defaults.h" -#include "pace/config/utility.h" -#include "pace/config/features.h" - -#endif /* PACE_CONFIG_DEFINES_H */ diff --git a/PACE/pace/config/features.h b/PACE/pace/config/features.h deleted file mode 100644 index 6436618f3a0..00000000000 --- a/PACE/pace/config/features.h +++ /dev/null @@ -1,30 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/config/features.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_CONFIG_FEATURES_H -#define PACE_CONFIG_FEATURES_H - -/* Features: Can be customized by the developer. */ - -#endif /* PACE_CONFIG_FEATURES_H */ - - - - - - - - - diff --git a/PACE/pace/config/platform.h b/PACE/pace/config/platform.h deleted file mode 100644 index 1c9d406338d..00000000000 --- a/PACE/pace/config/platform.h +++ /dev/null @@ -1,68 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/config/platform.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_CONFIG_PLATFORM_H -#define PACE_CONFIG_PLATFORM_H - -/* Be careful not to define these macros 2x. */ -/* IE: makefile or other config file. */ -/* This could create compiler warnings. */ - -/* These platforms are POSIX compliant. */ - -#if defined (PACE_LINUX) -# define PACE_HAS_POSIX PACE_LINUX -# define PACE_LYNXOS 0 -# define PACE_SUNOS 0 -# define PACE_VXWORKS 0 -# define PACE_WIN32 0 -#elif defined (PACE_LYNXOS) -# define PACE_HAS_POSIX PACE_LYNXOS -# define PACE_LINUX 0 -# define PACE_SUNOS 0 -# define PACE_VXWORKS 0 -# define PACE_WIN32 0 -#elif defined (PACE_OSF1) -# define PACE_HAS_POSIX DIGITAL_UNIX -# define PACE_LINUX 0 -# define PACE_LYNXOS 0 -# define PACE_VXWORKS 0 -# define PACE_WIN32 0 -#elif defined (PACE_SUNOS) -# define PACE_HAS_POSIX PACE_SUNOS -# define PACE_LINUX 0 -# define PACE_LYNXOS 0 -# define PACE_VXWORKS 0 -# define PACE_WIN32 0 - -/* These platforms are NOT POSIX compliant. */ - -#elif defined (PACE_VXWORKS) -# define PACE_LACKS_POSIX PACE_VXWORKS -# define PACE_LINUX 0 -# define PACE_LYNXOS 0 -# define PACE_SUNOS 0 -# define PACE_WIN32 0 -/* Doesn't use the makefile! */ -#elif defined (WIN32) -# define PACE_WIN32 2000 -# define PACE_LACKS_POSIX PACE_WIN32 -# define PACE_LINUX 0 -# define PACE_LYNXOS 0 -# define PACE_SUNOS 0 -# define PACE_VXWORKS 0 -#endif - -#endif /* PACE_CONFIG_PLATFORM_H */ diff --git a/PACE/pace/config/utility.h b/PACE/pace/config/utility.h deleted file mode 100644 index 358c693f8d2..00000000000 --- a/PACE/pace/config/utility.h +++ /dev/null @@ -1,104 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/config/utility.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_CONFIG_UTILITY_H -#define PACE_CONFIG_UTILITY_H - -/* ---------------------------------------------------------------------- - * error control - * ---------------------------------------------------------------------- */ - -#include "pace/errno.h" -int errno; - -# define PACE_ERRNO_NO_SUPPORT_RETURN(FAILVALUE) \ -return ( (errno = ENOTSUP), FAILVALUE) - -# define PACE_ERRNO_NO_SUPPORT() errno=ENOTSUP - -/* ---------------------------------------------------------------------- - A couple useful inline functions for checking whether bits are - enabled or disabled. - * ---------------------------------------------------------------------- */ - -# define PACE_POW(X) (((X) == 0)?1:(X-=1,X|=X>>1,X|=X>>2,X|=X>>4,X|=X>>8,X|=X>>16,(++X))) -# define PACE_EVEN(NUM) (((NUM) & 1) == 0) -# define PACE_ODD(NUM) (((NUM) & 1) == 1) -# define PACE_BIT_ENABLED(WORD, BIT) (((WORD) & (BIT)) != 0) -# define PACE_BIT_DISABLED(WORD, BIT) (((WORD) & (BIT)) == 0) -# define PACE_BIT_CMP_MASK(WORD, BIT, MASK) (((WORD) & (BIT)) == MASK) -# define PACE_SET_BITS(WORD, BITS) (WORD |= (BITS)) -# define PACE_CLR_BITS(WORD, BITS) (WORD &= ~(BITS)) - -/* Turn a number into a string. */ -# define PACE_ITOA(X) #X - -/* Create a string of a server address with a "host:port" format. */ -# define PACE_SERVER_ADDRESS(H,P) H":"P - -/* ---------------------------------------------------------------------- - Specific for (PACE_WIN32) - * ---------------------------------------------------------------------- */ - -#if (PACE_WIN32) - -#include <windows.h> - -/* Perform a mapping of Win32 error numbers into POSIX errnos. */ -# define PACE_FAIL_RETURN(RESULT) do { \ - switch (GetLastError ()) { \ - case ERROR_NOT_ENOUGH_MEMORY: errno = ENOMEM; break; \ - case ERROR_FILE_EXISTS: errno = EEXIST; break; \ - case ERROR_SHARING_VIOLATION: errno = EACCES; break; \ - case ERROR_PATH_NOT_FOUND: errno = ENOENT; break; \ - } \ - return RESULT; } while (0) - -/* The "null" device on Win32. */ -# define PACE_DEV_NULL "nul" - -/* Define the pathname separator characters for Win32 (ugh). */ -# define PACE_DIRECTORY_SEPARATOR_STR "\\" -# define PACE_DIRECTORY_SEPARATOR_CHAR '\\' -# define PACE_LD_SEARCH_PATH "PATH" -# define PACE_LD_SEARCH_PATH_SEPARATOR_STR ";" -# define PACE_DLL_SUFFIX ".dll" -# define PACE_DLL_PREFIX "" - -# define PACE_SYSCALL_FAILED 0xFFFFFFFF - -/* Turns "FALSE" into -1 */ -# define PACE_ADAPT_RETVAL(OP,RESULT) \ - ((RESULT = (OP)) == FALSE ? -1 : 0) - -/* If failure, sets errno before returning */ -# define PACE_WIN32CALL_RETURN(X,TYPE,FAILVALUE) \ - do { \ - TYPE pace_result_; \ - pace_result_ = (TYPE) X; \ - if (pace_result_ == FAILVALUE) \ - { \ - errno = GetLastError (); \ - } \ - return pace_result_; \ - } while (0) - -/* Casts return value. */ -# define PACE_OSCALL_RETURN(X,TYPE,FAILVALUE) \ - return (TYPE) X; - -#endif /* PACE_WIN32 */ - -#endif /* PACE_CONFIG_UTILITY_H */ diff --git a/PACE/pace/ctype.h b/PACE/pace/ctype.h deleted file mode 100644 index ff8ca36b242..00000000000 --- a/PACE/pace/ctype.h +++ /dev/null @@ -1,164 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/ctype.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_CTYPE_H -#define PACE_CTYPE_H - -#include "pace/config/defines.h" - -#if (PACE_HAS_POSIX) -# include "pace/posix/ctype.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/ctype.h" -#elif (PACE_WIN32) -# include "pace/win32/ctype.h" -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - - /** - PACE's implementation of the POSIX function isalnum. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_isalnum (int c); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function isalpha. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_isalpha (int c); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function iscntrl. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_iscntrl (int c); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function isdigit. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_isdigit (int c); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function isgraph. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_isgraph (int c); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function islower. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_islower (int c); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function isprint. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_isprint (int c); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function ispunct. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_ispunct (int c); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function isspace. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_isspace (int c); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function isupper. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_isupper (int c); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function isxdigit. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_isxdigit (int c); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function tolower. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_tolower (int c); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function toupper. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_toupper (int c); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if defined (PACE_HAS_INLINE) -# if (PACE_HAS_POSIX) -# include "pace/posix/ctype.inl" -# elif (PACE_VXWORKS) -# include "pace/vxworks/ctype.inl" -# elif (PACE_WIN32) -# include "pace/win32/ctype.inl" -# endif -#endif /* PACE_HAS_INLINE */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_CTYPE_H */ diff --git a/PACE/pace/dirent.h b/PACE/pace/dirent.h deleted file mode 100644 index 3e9cd339e20..00000000000 --- a/PACE/pace/dirent.h +++ /dev/null @@ -1,94 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/dirent.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_DIRENT_H -#define PACE_DIRENT_H - -#include "pace/config/defines.h" - -#if (PACE_HAS_POSIX) -# include "pace/posix/dirent.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/dirent.h" -#elif (PACE_WIN32) -# include "pace/win32/dirent.h" -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - - /** - PACE's implementation of the POSIX function opendir. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.1.2. - */ -#if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE PACE_DIR * pace_opendir (const char * dirname); -#endif /* PACE_HAS_POSIX_FS_UOF */ - - /** - PACE's implementation of the POSIX function readdir. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.1.2. - */ -#if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE pace_dirent * pace_readdir (PACE_DIR * dirp); -#endif /* PACE_HAS_POSIX_FS_UOF */ - - /** - PACE's implementation of the POSIX function readdir_r. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.1.2. - */ -#if (PACE_HAS_POSIX_CLSR_UOF) - 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. */ - - /** - PACE's implementation of the POSIX function rewinddir. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.1.2. - */ -#if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE void pace_rewinddir (PACE_DIR * dirp); -#endif /* PACE_HAS_POSIX_FS_UOF */ - - /** - PACE's implementation of the POSIX function closedir. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.1.2. - */ -#if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE int pace_closedir (PACE_DIR * dirp); -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if defined (PACE_HAS_INLINE) -# if (PACE_HAS_POSIX) -# include "pace/posix/dirent.inl" -# elif (PACE_VXWORKS) -# include "pace/vxworks/dirent.inl" -# elif (PACE_WIN32) -# include "pace/win32/dirent.inl" -# endif -#endif /* PACE_HAS_INLINE */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_DIRENT_H */ diff --git a/PACE/pace/emulation/mqueue.c b/PACE/pace/emulation/mqueue.c deleted file mode 100644 index 36b74616f9e..00000000000 --- a/PACE/pace/emulation/mqueue.c +++ /dev/null @@ -1,571 +0,0 @@ -/* $Id$ -*- C -*- - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/emulation/mqueue.c - * - * = AUTHOR - * John Heitmann - * - * ============================================================================ */ - -#include "pace/sys/mman.h" -#include "pace/stdio.h" -#include "pace/fcntl.h" -#include "pace/string.h" -#include "pace/stdlib.h" -#include "pace/sys/types.h" -#include "pace/pthread.h" -#include "pace/sys/stat.h" -#include "pace/emulation/mqueue.h" - -typedef struct -{ - pace_mq_attr attr; - pace_size_t num_open; /* How many processes have a valid mqd_t to here */ - pace_size_t rec_wait; /* How many processes are blocked on mq_receive */ - pace_pid_t not_pid; /* Who is actually registered for notification */ - pace_sigevent notification; - pace_pthread_mutex_t mutex; - pace_pthread_cond_t cond; - pace_size_t head; - pace_size_t freelist; -} mqfile; - -typedef struct -{ - pace_size_t next; /* Index of next element */ - unsigned int priority; - pace_size_t length; -} message_header; - -static struct mq_attr pace_attrdefault = { 0, 32, 256, 0 }; -#define PACE_MQ_LOCKPOSTFIX "mqlock9587" -#define PACE_MQ_DATAPOSTFIX "mqdata2355" - -/* This remains mq_open due to the macro in pace/mqueue.h */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -pace_mqd_t mq_open (const char* name, - int oflag, - pace_mode_t mode, - pace_mq_attr* attr) -{ - int m_padding = sizeof (message_header); /* How much extra space per message do we need */ - int f_padding = sizeof (mqfile); /* How much fixed padding is needed */ - int mflags, mprot; - int fd; - int i; - pace_size_t mapsize; - char* mmaploc; - char* new_name; - char* lock_name; - int create_mmap = 0; /* 1 if the file has never be inited */ - message_header* temp = 0; /*Used in initialization of mqueue*/ - long index; /* index into the file */ - pace_mqd_t result = pace_malloc (sizeof (struct mqd)); - pace_stat_s statbuf; - -retry: - if (attr == 0) - { - attr = &pace_attrdefault; - } - else - { - if (attr->mq_maxmsg < 0 || attr->mq_msgsize < 0) - { - errno = EBADF; - return (pace_mqd_t)-1; - } - } - - /* Create a name that will go to /tmp with a unique name */ - new_name = malloc (256); - lock_name = malloc (256); - snprintf (new_name, 256, "/tmp%s%s", name, PACE_MQ_DATAPOSTFIX); - snprintf (lock_name, 256, "/tmp%s%s", name, PACE_MQ_LOCKPOSTFIX); - - /* Fix alignment */ - if (attr->mq_msgsize % sizeof (long) != 0) - { - attr->mq_msgsize += 8 - (attr->mq_msgsize % sizeof (long)); - } - - if (oflag & PACE_O_CREAT) - { - /* We need to protect access without the help of O_RDONLY in the fs */ - fd = pace_open (new_name, PACE_O_RDWR | PACE_O_CREAT | PACE_O_EXCL, mode); - - if (fd == -1 && errno != EEXIST) - { - /* An error other than EEXIST has occurred. */ - return (pace_mqd_t)-1; - } - else if (fd != -1) - { - /* If a new file was created successfully */ - create_mmap = 1; - } - else if (oflag & PACE_O_EXCL) - { - /* If the file exists and we don't want it */ - errno = EEXIST; - return (pace_mqd_t)-1; - } - else - { - /* We want the existing file */ - fd = pace_open (new_name, PACE_O_RDWR); - if (fd == -1 && errno == ENOENT) - { - /* Something odd is going on */ - goto retry; - } - else if (fd == -1) - { - return (pace_mqd_t)-1; - } - } - } - else - { - fd = pace_open (new_name, PACE_O_RDWR); - if (fd == -1) - { - return (pace_mqd_t)-1; - } - } - - /* - The following loop makes shure that we haven't entered a race condition. If a file - has been created but not initialized, its IXUSR will not be set (see above). - */ - while (create_mmap == 0) - { - if (stat (lock_name, &statbuf) == -1) - { - close (fd); - if (errno == ENOENT && (oflag & O_CREAT)) - { - goto retry; - } - return (pace_mqd_t)-1; - } - else - { - break; - } - pace_sleep (1); - } - - mapsize = f_padding + (attr->mq_msgsize + m_padding) * (attr->mq_maxmsg); - mprot = PACE_PROT_READ | PACE_PROT_WRITE; - mflags = PACE_MAP_SHARED; - - if (create_mmap) - { - /* Create and 0 out the file */ - if (pace_lseek (fd, mapsize, PACE_SEEK_SET) == -1) - { - pace_unlink (new_name); - return (pace_mqd_t)-1; - } - if (pace_write (fd, "", 1) != 1) - { - pace_unlink (new_name); - return (pace_mqd_t)-1; - } - - mmaploc = pace_mmap (0, mapsize, mprot, mflags, fd, 0); - pace_close (fd); - if (mmaploc == MAP_FAILED) - { - pace_unlink (new_name); - return (pace_mqd_t)-1; - } - - pace_memset (mmaploc, 0, mapsize); - - if ((errno = pace_pthread_mutex_init (&(((mqfile*)mmaploc)->mutex), 0)) != 0) - { - pace_unlink (new_name); - pace_munmap (mmaploc, mapsize); - return (pace_mqd_t)-1; - } - if ((errno = pace_pthread_mutex_lock (&(((mqfile*)mmaploc)->mutex))) != 0) - { - pace_unlink (new_name); - pace_munmap (mmaploc, mapsize); - return (pace_mqd_t)-1; - } - - if ((errno = pace_pthread_cond_init (&(((mqfile*)mmaploc)->cond), 0)) != 0) - { - pace_unlink (new_name); - pace_munmap (mmaploc, mapsize); - return (pace_mqd_t)-1; - } - - index = sizeof (mqfile); - ((mqfile*)mmaploc)->freelist = index; - ((mqfile*)mmaploc)->head = 0; - - for (i = 0; i < attr->mq_maxmsg; ++i) - { - temp = (message_header *) &mmaploc[index]; - index += sizeof (message_header) + attr->mq_msgsize; - temp->next = index; - } - temp->next = 0; - attr->mq_curmsgs = 0; - ((mqfile*)mmaploc)->attr = *attr; - - /* Create the lock file so that the file is known to be inited */ - if (pace_open (lock_name, O_CREAT | O_EXCL) == -1) - { - pace_unlink (new_name); - pace_munmap (mmaploc, mapsize); - return (pace_mqd_t)-1; - } - - } - else - { - /* Just open the existing map */ - mmaploc = pace_mmap (0, mapsize, mprot, mflags, fd, 0); - if (mmaploc == MAP_FAILED) - { - return (pace_mqd_t)-1; - } - pace_close (fd); - - /* ???? Test here for race */ - - if (pace_pthread_mutex_lock (&(((mqfile*)mmaploc)->mutex)) == -1) - { - pace_munmap (mmaploc, mapsize); - return (pace_mqd_t)-1; - } - ((mqfile*)mmaploc)->attr.mq_flags = attr->mq_flags; - } - - ((mqfile*)mmaploc)->num_open++; - - - if (pace_pthread_mutex_unlock (&(((mqfile*)mmaploc)->mutex)) == -1) - { - pace_munmap (mmaploc, mapsize); - return (pace_mqd_t)-1; - } - - result->mptr = mmaploc; - result->length = mapsize; - result->oflag = oflag; - - return result; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int mq_close (pace_mqd_t mqdes) -{ - if (pace_pthread_mutex_lock (&( ((mqfile*)mqdes->mptr)->mutex)) == -1) - { - errno = EBADF; - return -1; - } - ((mqfile*)mqdes->mptr)->num_open--; - if (pace_pthread_mutex_unlock (&(((mqfile*)mqdes->mptr)->mutex)) == -1) - { - errno = EBADF; - return -1; - } - if (munmap (mqdes->mptr, mqdes->length) == -1) - { - return -1; - } - free (mqdes); - return 0; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int mq_unlink (const char* name) -{ - int result1, result2; - char* new_name; - new_name = malloc (256); - snprintf (new_name, 256, "/tmp%s%s", name, PACE_MQ_DATAPOSTFIX); - result1 = pace_unlink (new_name); - snprintf (new_name, 256, "/tmp%s%s", name, PACE_MQ_LOCKPOSTFIX); - result2 = pace_unlink (new_name); - free (new_name); - return (result1 == -1 || result2 == -1 ? -1 : 0); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int mq_send (pace_mqd_t mqdes, - const char* ptr, - pace_size_t length, - unsigned int priority) -{ - mqfile* queue = ((mqfile*)mqdes->mptr); - long index, old_index; - if (mqdes->oflag & O_RDONLY) - { - /* Incorrect access priviledges */ - errno = EBADF; - return -1; - } - if (queue->attr.mq_msgsize < (int) length) - { - /* Message too long */ - errno = EMSGSIZE; - return -1; - } - if ((errno = pace_pthread_mutex_lock (&queue->mutex)) != 0) - { - return -1; - } - /* If the queue is full... */ - if (queue->attr.mq_curmsgs >= queue->attr.mq_maxmsg) - { - if (queue->attr.mq_flags & O_NONBLOCK) - { - errno = EAGAIN; - return -1; - } - while (queue->attr.mq_maxmsg <= queue->attr.mq_curmsgs) - { - pace_pthread_cond_wait (&queue->cond, &queue->mutex); - pace_printf ("Send Woke Up\n"); - } - } - - /* Fill in the fields of the header */ - ((message_header*)(&mqdes->mptr[queue->freelist]))->priority = priority; - ((message_header*)(&mqdes->mptr[queue->freelist]))->length = length; - pace_memcpy (((void*)(&mqdes->mptr[queue->freelist + sizeof (message_header)])), - ptr, length); - - /* Update the linked list */ - old_index = 0; - index = queue->head; - while (index != 0 && ((message_header*)(&mqdes->mptr[index]))->priority >= priority) - { - old_index = index; - index = ((message_header*)(&mqdes->mptr[index]))->next; - } - - /* If the msg goes at the head */ - if (old_index == 0) - { - queue->head = queue->freelist; - queue->freelist = ((message_header*)(&mqdes->mptr[queue->freelist]))->next; - ((message_header*)(&mqdes->mptr[queue->head]))->next = index; - } - else - { - ((message_header*)(&mqdes->mptr[old_index]))->next = queue->freelist; - old_index = queue->freelist; - queue->freelist = ((message_header*)(&mqdes->mptr[queue->freelist]))->next; - ((message_header*)(&mqdes->mptr[old_index]))->next = index; - } - - queue->attr.mq_curmsgs++; - - if ((errno = pace_pthread_mutex_unlock (&queue->mutex)) != 0) - { - return -1; - } - - if (queue->attr.mq_curmsgs == 1) - { - /* If there is no one waiting and blocked */ - if (queue->not_pid != 0 && queue->rec_wait == 0) - { - if (queue->notification.sigev_notify == SIGEV_SIGNAL) - { - sigqueue (queue->not_pid, - queue->notification.sigev_signo, - queue->notification.sigev_value); - } - queue->not_pid = 0; - } - else - { - pace_printf ("Send is Signalling\n"); - /* Let other waiting threads know there is food on the table */ - if ((errno = pace_pthread_cond_signal (&((mqfile*)mqdes->mptr)->cond)) != 0) - { - return -1; - } - } - } - return 0; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -pace_ssize_t mq_receive (pace_mqd_t mqdes, - char * msg_ptr, - pace_size_t msg_len, - unsigned int * nmsg_prio) -{ - mqfile* queue = ((mqfile*)mqdes->mptr); - pace_size_t temp; - - if (queue->attr.mq_msgsize > (long) msg_len) - { - errno = EMSGSIZE; - return -1; - } - - if ((errno = pace_pthread_mutex_lock (&queue->mutex)) != 0) - { - return -1; - } - - /* If the queue is empty... */ - if (queue->attr.mq_curmsgs <= 0) - { - if (queue->attr.mq_flags & O_NONBLOCK) - { - errno = EAGAIN; - return -1; - } - while (queue->attr.mq_curmsgs <= 0) - { - pace_printf ("Recv is going to sleep\n"); - queue->rec_wait++; - pace_pthread_cond_wait (&(queue->cond), &(queue->mutex)); - queue->rec_wait--; - pace_printf ("Recv is waking from sleep\n"); - } - } - - if (nmsg_prio != 0) - { - *nmsg_prio = ((message_header*)(&mqdes->mptr[queue->head]))->priority; - } - - pace_memcpy (msg_ptr, ((void*)(&mqdes->mptr[queue->head + sizeof (message_header)])), - ((message_header*)(&mqdes->mptr[queue->head]))->length); - temp = queue->head; - queue->head = ((message_header*)(&mqdes->mptr[queue->head]))->next; - ((message_header*)(&mqdes->mptr[temp]))->next = queue->freelist; - queue->freelist = temp; - - queue->attr.mq_curmsgs--; - - if (pace_pthread_mutex_unlock (&queue->mutex) == -1) - { - errno = EBADMSG; - return -1; - } - - if (queue->attr.mq_curmsgs == (queue->attr.mq_maxmsg-1)) - { - pace_printf ("Recv is signalling\n"); - /* Let other waiting threads know there is room available */ - if ((errno = pace_pthread_cond_signal (&((mqfile*)mqdes->mptr)->cond)) != 0) - { - return -1; - } - } - - return ((message_header*)(&mqdes->mptr[queue->head]))->length; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int mq_getattr (pace_mqd_t mqdes, pace_mq_attr * mqstat) -{ - mqfile* queue = ((mqfile*)mqdes->mptr); - - if ((errno = pace_pthread_mutex_lock (&queue->mutex)) != 0) - { - return -1; - } - - *mqstat = queue->attr; - - pace_pthread_mutex_unlock (&queue->mutex); - - return 0; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int mq_setattr(pace_mqd_t mqdes, - const pace_mq_attr * mqstat, - pace_mq_attr * omqstat) -{ - mqfile* queue = ((mqfile*)(mqdes->mptr)); - - if ((errno = pace_pthread_mutex_lock (&queue->mutex)) != 0) - { - return -1; - } - if (omqstat != 0) - { - *omqstat = ((mqfile*)mqdes->mptr)->attr; - } - if (mqstat == 0 || mqdes == 0) - { - /* You eediot*/ - errno = EFAULT; - pace_pthread_mutex_unlock (&queue->mutex); - return -1; - } - - ((mqfile*)mqdes->mptr)->attr.mq_flags = mqstat->mq_flags; - - pace_pthread_mutex_unlock (&queue->mutex); - return 0; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int mq_notify (pace_mqd_t mqd, const pace_sigevent* notification) -{ - mqfile* queue = ((mqfile*)(mqd->mptr)); - pace_pid_t pid = pace_getpid (); - - if ((errno = pace_pthread_mutex_lock (&queue->mutex)) != 0) - { - return -1; - } - - if (notification == 0) - { - /* Unregister if notification is null */ - if (queue->not_pid == pid) - { - queue->not_pid = 0; - } - } - else - { - if (queue->not_pid && pace_kill (queue->not_pid, 0)) - { - /* If another process is registered */ - if (errno != ESRCH) - { - pace_pthread_mutex_unlock (&queue->mutex); - return -1; - } - } - queue->not_pid = pid; - queue->notification = *notification; - } - - pthread_mutex_unlock (&queue->mutex); - - return 0; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/emulation/mqueue.h b/PACE/pace/emulation/mqueue.h deleted file mode 100644 index 539f0c19e90..00000000000 --- a/PACE/pace/emulation/mqueue.h +++ /dev/null @@ -1,95 +0,0 @@ -/* $Id$ - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/emulation/mqueue.h - * - * = AUTHOR - * John Heitmann - * - * = DESCRIPTION - * An implementation of POSIX message queues originally built for Linux, - * which lacks mqueue.h. Some ideas were taken from the W. Richard Stevens - * book Unix Network Programming Interprocess Communications Volume 2 - * Second Edition. - * Memory Mapped io is used to enable a quick but persistent queue. - * - * ============================================================================ */ - -#ifndef PACE_EMU_MQUEUE_H -#define PACE_EMU_MQUEUE_H - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_MQ_ATTR -typedef struct mq_attr -{ - long mq_flags; - long mq_maxmsg; - long mq_msgsize; - long mq_curmsgs; -} pace_mq_attr; - -struct mqd -{ - long length; - int oflag; - char* mptr; -}; - -#define PACE_MQD_T -typedef struct mqd* pace_mqd_t; - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -pace_mqd_t mq_open (const char* name, - int oflag, - pace_mode_t mode, - pace_mq_attr* attr); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int mq_close (pace_mqd_t mqdes); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int mq_unlink (const char* name); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int mq_send (pace_mqd_t mqdes, - const char* ptr, - pace_size_t length, - unsigned int priority); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -pace_ssize_t mq_receive (pace_mqd_t mqdes, - char * msg_ptr, - pace_size_t msg_len, - unsigned int * nmsg_prio); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int mq_getattr (pace_mqd_t mqdes, pace_mq_attr * mqstat); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int mq_setattr(pace_mqd_t mqdes, - const pace_mq_attr * mqstat, - pace_mq_attr * omqstat); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int mq_notify (pace_mqd_t mqd, const pace_sigevent* notification); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_EMU_MQUEUE_H */ diff --git a/PACE/pace/emulation/time.h b/PACE/pace/emulation/time.h deleted file mode 100644 index f4784190c81..00000000000 --- a/PACE/pace/emulation/time.h +++ /dev/null @@ -1,46 +0,0 @@ -/* $Id$ - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/emulation/time.h - * - * = AUTHOR - * John Heitmann - * - * ============================================================================ */ - -#ifndef PACE_EMU_TIME_H -#define PACE_EMU_TIME_H - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_EMU_CLOCKID_T -#define PACE_EMU_CLOCKID_T - typedef int pace_emu_clockid_t; -#endif /* PACE_EMU_CLOCKID_T */ - -#ifndef PACE_EMU_TIMER_T -#define PACE_EMU_TIMER_T - typedef int pace_emu_timer_t; -#endif /* PACE_EMU_TIMER_T */ - -#ifndef PACE_EMU_ITIMERSPEC -#define PACE_EMU_ITIMERSPEC - typedef struct emu_itimerspec {} pace_emu_itimerspec; -#endif /* PACE_EMU_ITIMERSPEC */ - -#ifndef PACE_EMU_TIMESPEC -#define PACE_EMU_TIMESPEC - typedef struct emu_timespec {} pace_emu_timespec; -#endif /* PACE_EMU_TIMESPEC */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_EMU_TIME_H */ diff --git a/PACE/pace/errno.h b/PACE/pace/errno.h deleted file mode 100644 index ae4f6bd4344..00000000000 --- a/PACE/pace/errno.h +++ /dev/null @@ -1,37 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/errno.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_ERRNO_H -#define PACE_ERRNO_H - -#include "pace/config/defines.h" - -#if (PACE_HAS_POSIX) -# include "pace/posix/errno.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/errno.h" -#elif (PACE_WIN32) -# include "pace/win32/errno.h" -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_ERRNO_H */ diff --git a/PACE/pace/fcntl.h b/PACE/pace/fcntl.h deleted file mode 100644 index b1e9afae442..00000000000 --- a/PACE/pace/fcntl.h +++ /dev/null @@ -1,88 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/fnctl.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_FCNTL_H -#define PACE_FCNTL_H - -#include "pace/config/defines.h" - -#if (PACE_HAS_POSIX) -# include "pace/posix/fcntl.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/fcntl.h" -#elif (PACE_WIN32) -# include "pace/win32/fcntl.h" -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - - /** - PACE's implementation of the POSIX function creat. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.3.2. - */ -#if (PACE_HAS_POSIX_FS_UOF) - 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. - */ -#endif /* PACE_HAS_POSIX_FS_UOF */ - - /** - PACE's implementation of the POSIX function fcntl. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 6.5.2. - */ -#if (PACE_HAS_POSIX_FM_UOF) -# if defined (PACE_HAS_CPLUSPLUS) -# define pace_fcntl ::fcntl -# else -# define pace_fcntl fcntl -# endif /* PACE_HAS_CPLUSPLUS */ -#endif /* PACE_HAS_POSIX_FM_UOF */ - /* int fcntl (int fildes, int cmd, *//* arg *//* ... ); */ - - /** - PACE's implementation of the POSIX function open. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.3.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) -# if defined (PACE_HAS_CPLUPLUS) -# define pace_open ::open -# else -# define pace_open open -# endif /* PACE_HAS_CPLUSPLUS */ -#endif /* PACE_HAS_POSIX_DI_UOF */ - /* int open (const char *path, int oflag, *//* pace_mode_t mode *//* ... );*/ - -#if defined (PACE_HAS_INLINE) -# if (PACE_HAS_POSIX) -# include "pace/posix/fcntl.inl" -# elif (PACE_VXWORKS) -# include "pace/vxworks/fcntl.inl" -# elif (PACE_WIN32) -# include "pace/win32/fcntl.inl" -# endif -#endif /* PACE_HAS_INLINE */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_FCNTL_H_INDIRECT */ diff --git a/PACE/pace/grp.h b/PACE/pace/grp.h deleted file mode 100644 index 5955679b5f6..00000000000 --- a/PACE/pace/grp.h +++ /dev/null @@ -1,93 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/grp.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_GRP_H -#define PACE_GRP_H - -#include "pace/config/defines.h" - -#if (PACE_HAS_POSIX) -# include "pace/posix/grp.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/grp.h" -#elif (PACE_WIN32) -# include "pace/win32/grp.h" -#endif - -# if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -# endif /* PACE_HAS_CPLUSPLUS */ - - /** - PACE's implementation of the POSIX function getgrgid. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 9.2.1. - */ -#if (PACE_HAS_POSIX_SD_UOF) - PACE_INLINE pace_group * pace_getgrgid (pace_gid_t gid); -#endif /* PACE_HAS_POSIX_SD_UOF */ - - /** - PACE's implementation of the POSIX function getgrgid_r. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 9.2.1. - */ -#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); -#endif /* PACE_HAS_POSIX_SDR_UOF */ - /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ - - /** - PACE's implementation of the POSIX function getgrnam. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 9.2.1. - */ -#if (PACE_HAS_POSIX_SD_UOF) - PACE_INLINE pace_group * pace_getgrnam (const char * name); -#endif /* PACE_HAS_POSIX_SD_UOF */ - - /** - PACE's implementation of the POSIX function getgrnam_r. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 9.2.1. - */ -#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); -#endif /* PACE_HAS_POSIX_SDR_UOF */ - /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ - -#if defined (PACE_HAS_INLINE) -# if (PACE_HAS_POSIX) -# include "pace/posix/grp.inl" -# elif (PACE_VXWORKS) -# include "pace/vxworks/grp.inl" -# elif (PACE_WIN32) -# include "pace/win32/grp.inl" -# endif -#endif /* PACE_HAS_INLINE */ - -# if defined (PACE_HAS_CPLUSPLUS) -} -# endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_GRP_H */ diff --git a/PACE/pace/limits.h b/PACE/pace/limits.h deleted file mode 100644 index 9e13488b1fa..00000000000 --- a/PACE/pace/limits.h +++ /dev/null @@ -1,29 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/limits.h - * - * = AUTHOR - * Joe Hoffert - * - * ============================================================================ */ - -#ifndef PACE_LIMITS_H_INDIRECT -#define PACE_LIMITS_H_INDIRECT - -#include "pace/config/defines.h" - -#if defined (PACE_HAS_POSIX) -# include "pace/posix/limits.h" -#elif defined (PACE_VXWORKS) -# include "pace/vxworks/limits.h" -#elif defined (PACE_WIN32) -# include "pace/win32/limits.h" -#endif - -#endif /* PACE_LIMITS_H_INDIRECT */ diff --git a/PACE/pace/locale.h b/PACE/pace/locale.h deleted file mode 100644 index 65b57de7fae..00000000000 --- a/PACE/pace/locale.h +++ /dev/null @@ -1,64 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/locale.h - * - * = AUTHOR - * Joe Hoffert - * - * =========================================================================== */ - -#ifndef PACE_LOCALE_H -#define PACE_LOCALE_H - -#include "pace/config/defines.h" - -#if (PACE_HAS_POSIX) -# include "pace/posix/locale.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/locale.h" -#elif (PACE_WIN32) -# include "pace/win32/locale.h" -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - - /** - Fills in pace_lconv with values consistent with the - current locality. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE pace_lconv* pace_localeconv (void); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function setlocale. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1.2. - */ -#if (PACE_HAS_POSIX_MP_UOF) - PACE_INLINE char * pace_setlocale (int category, const char * locale); -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if defined (PACE_HAS_INLINE) -# if (PACE_HAS_POSIX) -# include "pace/posix/locale.inl" -# elif (PACE_VXWORKS) -# include "pace/vxworks/locale.inl" -# elif (PACE_WIN32) -# include "pace/win32/locale.inl" -# endif -#endif /* PACE_HAS_INLINE */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_LOCALE_H */ diff --git a/PACE/pace/man/Makefile b/PACE/pace/man/Makefile deleted file mode 100644 index 154d4936b09..00000000000 --- a/PACE/pace/man/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -#---------------------------------------------------------------------------- -# $Id$ -# -# Makefile for the PACE html man pages -# The man pages are generated from the POSIX header files. -#---------------------------------------------------------------------------- - -PACE_DOC++ = /project/doc/pkg/bin/doc++ -index.html: - $(PACE_DOC++) -H -F -B banner ../posix/*.h - -clean: - $(RM) *.html *.gif *.class *.tex *.db .html diff --git a/PACE/pace/man/banner b/PACE/pace/man/banner deleted file mode 100644 index 668e1f5de5d..00000000000 --- a/PACE/pace/man/banner +++ /dev/null @@ -1,5 +0,0 @@ -<!-- $Id$ --> -<!-- This is the banner file that doc++ inserts at the bottom of the --> -<!-- generated html man pages. --> -<!-- Originally written by: Joe Hoffert --> -<A HREF="http://www.cs.wustl.edu/~luther/PACE/index.html"><IMG BORDER=0 ALIGN=RIGHT SRC=pace.jpg></A> diff --git a/PACE/pace/man/pace.jpg b/PACE/pace/man/pace.jpg Binary files differdeleted file mode 100644 index 62bc7130603..00000000000 --- a/PACE/pace/man/pace.jpg +++ /dev/null diff --git a/PACE/pace/math.h b/PACE/pace/math.h deleted file mode 100644 index c4fcdcfda38..00000000000 --- a/PACE/pace/math.h +++ /dev/null @@ -1,245 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = Filename - * pace/math.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_MATH_H -#define PACE_MATH_H - -#include "pace/config/defines.h" - -#if (PACE_HAS_POSIX) -# include "pace/posix/math.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/math.h" -#elif (PACE_WIN32) -# include "pace/win32/math.h" -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - - /** - PACE's implementation of the POSIX function acos. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_acos (double x); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function asin. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_asin (double x); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function atan. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_atan (double x); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function atan2. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_atan2 (double x, double y); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function cos. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_cos (double x); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function sin. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_sin (double x); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function tan. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_tan (double x); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function cosh. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_cosh (double x); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function sinh. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_sinh (double x); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function tanh. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_tanh (double x); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function exp. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_exp (double x); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function frexp. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_frexp (double x, int * exp); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function ldexp. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_ldexp (double x, int exp); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function log. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_log (double x); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function log10. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_log10 (double x); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function modf. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_modf (double x, double * iptr); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function pow. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_pow (double x, double y); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function sqrt. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_sqrt (double x); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function ceil. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_ceil (double x); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function fabs. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_fabs (double x); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function floor. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_floor (double x); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function fmod. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_fmod (double x, double y); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if defined (PACE_HAS_INLINE) -# if (PACE_HAS_POSIX) -# include "pace/posix/math.inl" -# elif (PACE_VXWORKS) -# include "pace/vxworks/math.inl" -# elif (PACE_WIN32) -# include "pace/win32/math.inl" -# endif -#endif /* PACE_HAS_INLINE */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_MATH_H */ diff --git a/PACE/pace/mqueue.h b/PACE/pace/mqueue.h deleted file mode 100644 index aaa3447ea91..00000000000 --- a/PACE/pace/mqueue.h +++ /dev/null @@ -1,135 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/mqueue.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_MQUEUE_H -#define PACE_MQUEUE_H - -#include "pace/config/defines.h" -#include "pace/signal.h" - -#if (PACE_HAS_POSIX) -# include "pace/posix/mqueue.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/mqueue.h" -#elif (PACE_WIN32) -# include "pace/win32/mqueue.h" -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - - /** - PACE's implementation of the POSIX function mq_close. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 15.2.2. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_mq_close (pace_mqd_t mqdes); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function mq_getattr. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 15.2.8. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_mq_getattr (pace_mqd_t mqdes, - pace_mq_attr * mqstat); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function mq_notify. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 15.2.6. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_mq_notify (pace_mqd_t mqdes, - const pace_sigevent * notification); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function mq_open. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 15.2.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -# if defined (PACE_HAS_CPLUSPLUS) -# define pace_mq_open ::mq_open -# else -# define pace_mq_open mq_open -# endif /* PACE_HAS_CPLUSPLUS */ -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - /* mqd_t mq_open (const char *name, int oflag, (*//* args *//*) ... ); */ - - /** - PACE's implementation of the POSIX function mq_receive. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 15.2.5. - */ -#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); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function mq_send. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 15.2.4. - */ -#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); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function mq_setattr. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 15.2.7. - */ -#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); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function mq_unlink. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 15.2.3. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_mq_unlink (const char * name); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if defined (PACE_HAS_INLINE) -# if (PACE_HAS_POSIX) -# include "pace/posix/mqueue.inl" -# elif (PACE_VXWORKS) -# include "pace/vxworks/mqueue.inl" -# elif (PACE_WIN32) -# include "pace/win32/mqueue.inl" -# endif -#endif /* PACE_HAS_INLINE */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_MQUEUE_H */ diff --git a/PACE/pace/posix/Makefile.am b/PACE/pace/posix/Makefile.am deleted file mode 100644 index d50c7d6885b..00000000000 --- a/PACE/pace/posix/Makefile.am +++ /dev/null @@ -1,113 +0,0 @@ -##--------------------------------------------------------------------------- -## $Id$ -## -## Makefile for the PACE C library -## -##--------------------------------------------------------------------------- - -## -## Process this file with automake to create Makefile.in -## - -## The number in AUTOMAKE_OPTIONS is the minimum required version automake -## needed to process this file. -AUTOMAKE_OPTIONS = 1.4 - -## Create a libtool convenience library that contains the contents of -## the POSIX-specific version of PACE. -noinst_LTLIBRARIES = libPACE_POSIX.la - -libPACE_POSIX_la_SOURCES = \ - aio.c \ - assert.c \ - ctype.c \ - dirent.c \ - fcntl.c \ - grp.c \ - locale.c \ - math.c \ - mman.c \ - mqueue.c \ - pthread.c \ - pwd.c \ - sched.c \ - semaphore.c \ - setjmp.c \ - signal.c \ - stat.c \ - stdio.c \ - stdlib.c \ - string.c \ - termios.c \ - time.c \ - times.c \ - unistd.c \ - utime.c \ - utsname.c \ - wait.c - -PACE_INLINE_FILES = \ - aio.inl \ - assert.inl \ - ctype.inl \ - dirent.inl \ - fcntl.inl \ - grp.inl \ - locale.inl \ - math.inl \ - mman.inl \ - mqueue.inl \ - pthread.inl \ - pwd.inl \ - sched.inl \ - semaphore.inl \ - setjmp.inl \ - signal.inl \ - stat.inl \ - stdio.inl \ - stdlib.inl \ - string.inl \ - termios.inl \ - time.inl \ - times.inl \ - unistd.inl \ - utime.inl \ - utsname.inl \ - wait.inl - -PACE_HEADER_FILES = \ - aio.h \ - assert.h \ - ctype.h \ - dirent.h \ - errno.h \ - fcntl.h \ - grp.h \ - limits.h \ - locale.h \ - math.h \ - mman.h \ - mqueue.h \ - pthread.h \ - pwd.h \ - sched.h \ - semaphore.h \ - setjmp.h \ - signal.h \ - stat.h \ - stdio.h \ - stdlib.h \ - string.h \ - termios.h \ - time.h \ - times.h \ - types.h \ - unistd.h \ - utime.h \ - utsname.h \ - wait.h - -pkgincludedir = $(includedir)/$(PACKAGE)/posix -pkginclude_HEADERS = \ - $(PACE_INLINE_FILES) \ - $(PACE_HEADER_FILES) diff --git a/PACE/pace/posix/README b/PACE/pace/posix/README deleted file mode 100644 index 0116632c065..00000000000 --- a/PACE/pace/posix/README +++ /dev/null @@ -1 +0,0 @@ -POSIX dir diff --git a/PACE/pace/posix/TODO b/PACE/pace/posix/TODO deleted file mode 100644 index 6141d90a333..00000000000 --- a/PACE/pace/posix/TODO +++ /dev/null @@ -1,7 +0,0 @@ -$ID$ - -Testing -======= -Test PACE libraries with and without PACE_HAS_POSIX_PTHREAD_SEMANTICS -defined. There are some functions (e.g., in time.h) that have been -changed because it looked like they didn't need this guard. diff --git a/PACE/pace/posix/aio.c b/PACE/pace/posix/aio.c deleted file mode 100644 index d2f62e92389..00000000000 --- a/PACE/pace/posix/aio.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/aio.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/aio.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/aio.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/aio.h b/PACE/pace/posix/aio.h deleted file mode 100644 index 75a11416cc7..00000000000 --- a/PACE/pace/posix/aio.h +++ /dev/null @@ -1,45 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/aio.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_AIO_H_POSIX -#define PACE_AIO_H_POSIX - -#include <aio.h> -#include "pace/time.h" -#include "pace/signal.h" - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_AIO_ALLDONE AIO_ALLDONE -#define PACE_AIO_CANCELED AIO_CANCELED -#define PACE_AIO_NOCANCELED AIO_NOTCANCELED -#define PACE_LIO_NOP LIO_NOP -#define PACE_LIO_NOWAIT LIO_NOWAIT -#define PACE_LIO_READ LIO_READ -#define PACE_LIO_WAIT LIO_WAIT -#define PACE_LIO_WRITE LIO_WRITE - -#ifndef PACE_AIOCB -#define PACE_AIOCB -typedef struct aiocb pace_aiocb; -#endif /* PACE_AIOCB */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_AIO_H_POSIX */ diff --git a/PACE/pace/posix/aio.inl b/PACE/pace/posix/aio.inl deleted file mode 100644 index d219c0cabf9..00000000000 --- a/PACE/pace/posix/aio.inl +++ /dev/null @@ -1,94 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/aio.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_aio_cancel (PACE_HANDLE fildes, pace_aiocb * aiocbp) -{ - return aio_cancel (fildes, aiocbp); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_aio_error (const pace_aiocb * aiocbp) -{ - return aio_error (PACE_NONCONST_ARG_CAST (struct aiocb *) aiocbp); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_aio_fsync (int op, pace_aiocb * aiocbp) -{ - return aio_fsync (op, aiocbp); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_aio_read (pace_aiocb * aiocbp) -{ - return aio_read (aiocbp); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_aio_return (pace_aiocb * aiocbp) -{ - return aio_return (aiocbp); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_aio_suspend (const pace_aiocb * const list[], - int nent, - const pace_timespec * timeout) -{ - return aio_suspend (PACE_AIO_SUSPEND_LIST_ARG_CAST list, - nent, - PACE_NONCONST_ARG_CAST (struct timespec *) timeout); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_aio_write (pace_aiocb * aiocbp) -{ - return aio_write (aiocbp); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_lio_listio (int mode, - pace_aiocb * const list[], - int nent, - pace_sigevent * sig) -{ - return lio_listio (mode, PACE_NONCONST_ARG_CAST (struct aiocb **) list, - nent, sig); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/posix/assert.c b/PACE/pace/posix/assert.c deleted file mode 100644 index 368fd0a62f6..00000000000 --- a/PACE/pace/posix/assert.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/assert.c - * - * = AUTHOR - * Joe Hoffert - * - * ============================================================================= */ - -#include "pace/assert.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/assert.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/assert.h b/PACE/pace/posix/assert.h deleted file mode 100644 index 08c8b075cea..00000000000 --- a/PACE/pace/posix/assert.h +++ /dev/null @@ -1,29 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/assert.h - * - * = AUTHOR - * Joe Hoffert - * - * =========================================================================== */ - -#ifndef PACE_ASSERT_H_POSIX -#define PACE_ASSERT_H_POSIX - -#include <assert.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -# if defined (PACE_HAS_CPLUSPLUS) -} -# endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_ASSERT_H_POSIX */ diff --git a/PACE/pace/posix/assert.inl b/PACE/pace/posix/assert.inl deleted file mode 100644 index cc7974093d0..00000000000 --- a/PACE/pace/posix/assert.inl +++ /dev/null @@ -1,14 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/assert.inl - * - * = AUTHOR - * Joe Hoffert - * - * ============================================================================= */ diff --git a/PACE/pace/posix/ctype.c b/PACE/pace/posix/ctype.c deleted file mode 100644 index 7bf7d34ae07..00000000000 --- a/PACE/pace/posix/ctype.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/ctype.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/ctype.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/ctype.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/ctype.h b/PACE/pace/posix/ctype.h deleted file mode 100644 index 88c47c8e8cb..00000000000 --- a/PACE/pace/posix/ctype.h +++ /dev/null @@ -1,27 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/ctype.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_CTYPE_H_POSIX -#define PACE_CTYPE_H_POSIX - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_CTYPE_H_POSIX */ diff --git a/PACE/pace/posix/ctype.inl b/PACE/pace/posix/ctype.inl deleted file mode 100644 index 538164bda4d..00000000000 --- a/PACE/pace/posix/ctype.inl +++ /dev/null @@ -1,133 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/ctype.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include <ctype.h> - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_isalnum (int c) -{ - return isalnum (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_isalpha (int c) -{ - return isalpha (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_iscntrl (int c) -{ - return iscntrl (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_isdigit (int c) -{ - return isdigit (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_isgraph (int c) -{ - return isgraph (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_islower (int c) -{ - return islower (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_isprint (int c) -{ - return isprint (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_ispunct (int c) -{ - return ispunct (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_isspace (int c) -{ - return isspace (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_isupper (int c) -{ - return isupper (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_isxdigit (int c) -{ - return isxdigit (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_tolower (int c) -{ - return tolower (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_toupper (int c) -{ - return toupper (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ diff --git a/PACE/pace/posix/dirent.c b/PACE/pace/posix/dirent.c deleted file mode 100644 index d04ea9c1ac9..00000000000 --- a/PACE/pace/posix/dirent.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/dirent.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/dirent.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/dirent.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/dirent.h b/PACE/pace/posix/dirent.h deleted file mode 100644 index 5662910233a..00000000000 --- a/PACE/pace/posix/dirent.h +++ /dev/null @@ -1,40 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/dirent.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_DIRENT_H_POSIX -#define PACE_DIRENT_H_POSIX - -#include "pace/sys/types.h" -#include <dirent.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_DIR_T -#define PACE_DIR_T -typedef DIR PACE_DIR; -#endif /* PACE_DIR_T */ - -#ifndef PACE_DIRENT -#define PACE_DIRENT -typedef struct dirent pace_dirent; -#endif /* PACE_DIRENT */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_DIRENT_H_POSIX */ diff --git a/PACE/pace/posix/dirent.inl b/PACE/pace/posix/dirent.inl deleted file mode 100644 index 084b43e591c..00000000000 --- a/PACE/pace/posix/dirent.inl +++ /dev/null @@ -1,68 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/dirent.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -PACE_DIR * -pace_opendir (const char * dirname) -{ - return opendir (dirname); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -pace_dirent * -pace_readdir (PACE_DIR * dirp) -{ - return readdir (dirp); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_CLSR_UOF) -PACE_INLINE -int -pace_readdir_r (PACE_DIR * dirp, pace_dirent * entry, - pace_dirent ** result) -{ -#if (PACE_LYNXOS) - *result = readdir_r (dirp, entry); - if (*result == 0) - return errno; - return 0; -#else - return readdir_r (dirp, entry, result); -#endif /* PACE_LYNXOS */ -} -#endif /* PACE_HAS_POSIX_CLSR_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -void -pace_rewinddir (PACE_DIR * dirp) -{ - rewinddir (dirp); - return; -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_closedir (PACE_DIR * dirp) -{ - return closedir (dirp); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ diff --git a/PACE/pace/posix/errno.h b/PACE/pace/posix/errno.h deleted file mode 100644 index 08595910435..00000000000 --- a/PACE/pace/posix/errno.h +++ /dev/null @@ -1,76 +0,0 @@ -/* $Id$ - -* ============================================================================ -* -* = LIBRARY -* pace -* -* = FILENAME -* pace/posix/errno.h -* -* = AUTHOR -* John Heitmann -* -* =========================================================================== *\ -/ - -#ifndef PACE_ERRNO_H_POSIX -#define PACE_ERRNO_H_POSIX - -#include <errno.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_E2BIG E2BIG -#define PACE_EACCES EACCES -#define PACE_EAGAIN EAGAIN -#define PACE_EBADF EBADF -#define PACE_EBADMSG -#define PACE_EBUSY EBUSY -#define PACE_ECANCELED ECANCELED -#define PACE_ECHILD ECHILD -#define PACE_EDEADLK EDEADLK -#define PACE_EDOM EDOM -#define PACE_EEXIST EEXIST -#define PACE_EFAULT EFAULT -#define PACE_EFBIG EFBIG -#define PACE_EINPROGRESS EINPROGRESS -#define PACE_EINTR EINTR -#define PACE_EINVAL EINVAL -#define PACE_EIO EIO -#define PACE_EISDIR EISDIR -#define PACE_EMFILE EMFILE -#define PACE_EMLINK EMLINK -#define PACE_EMSGSIZE EMSGSIZE -#define PACE_EENAMETOOLONG ENAMETOOLONG -#define PACE_ENFILE ENFILE -#define PACE_ENODEV ENODEV -#define PACE_ENOENT ENOENT -#define PACE_ENOEXEC ENOEXEC -#define PACE_ENOLCK ENOLCK -#define PACE_ENOMEM ENOMEM -#define PACE_ENOSPC ENOSPC -#define PACE_ENOSYS ENOSYS -#define PACE_ENOTDIR ENOTDIR -#define PACE_ENOTEMPTY ENOTEMPTY -#define PACE_ENOTSUP ENOTSUP -#define PACE_ENOTTY ENOTTY -#define PACE_ENXIO ENXIO -#define PACE_EPERM EPERM -#define PACE_EPIPE EPIPE -#define PACE_ERANGE ERANGE -#define PACE_EROFS EROFS -#define PACE_ESPIPE ESPIPE -#define PACE_ESRCH ESRCH -#define PACE_ETIMEDOUT ETIMEDOUT -#define PACE_EXDEV EXDEV - -#define pace_errno errno - -# if defined (PACE_HAS_CPLUSPLUS) -} -# endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_ERRNO_H_POSIX */ diff --git a/PACE/pace/posix/fcntl.c b/PACE/pace/posix/fcntl.c deleted file mode 100644 index 69183a1ba35..00000000000 --- a/PACE/pace/posix/fcntl.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/fcntl.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/fcntl.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/fcntl.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/fcntl.h b/PACE/pace/posix/fcntl.h deleted file mode 100644 index fc57bc098e3..00000000000 --- a/PACE/pace/posix/fcntl.h +++ /dev/null @@ -1,63 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/fnctl.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_FCNTL_H_POSIX -#define PACE_FCNTL_H_POSIX - -#include "pace/sys/types.h" -#include "pace/unistd.h" -#include "pace/sys/stat.h" -#include <fcntl.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_FD_CLOEXEC FD_CLOEXEC -#define PACE_F_DUPFD D_DUPFD -#define PACE_F_GETFD F_GETFD -#define PACE_F_GETFL F_GETFL -#define PACE_F_GETLK F_GETLK -#define PACE_F_RDLCK F_RDLCK -#define PACE_F_SETFD F_SETFD -#define PACE_F_SETFL F_SETFL -#define PACE_F_SETLK F_SETLK -#define PACE_F_SETLKW F_SETLKW -#define PACE_F_UNLCK F_UNLCK -#define PACE_F_WRLCK F_WRLCK -#define PACE_O_ACCMODE O_ACCMODE -#define PACE_O_APPEND O_APPEND -#define PACE_O_CREAT O_CREAT -#define PACE_O_DSYNC O_DSYNC -#define PACE_O_EXCL O_EXCL -#define PACE_O_NOCTTY O_NOCTTY -#define PACE_O_NONBLOCK O_NONBLOCK -#define PACE_O_RDONLY O_RDONLY -#define PACE_O_RDWR O_RDWR -#define PACE_O_RSYNC O_RSYNC -#define PACE_O_SYNC O_SYNC -#define PACE_O_TRUNC O_TRUNC -#define PACE_O_WRONLY O_WRONLY - -#ifndef PACE_FLOCK -#define PACE_FLOCK -typedef struct flock pace_flock; -#endif /* PACE_FLOCK */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_FCNTL_H_POSIX */ diff --git a/PACE/pace/posix/fcntl.inl b/PACE/pace/posix/fcntl.inl deleted file mode 100644 index 01a7e732294..00000000000 --- a/PACE/pace/posix/fcntl.inl +++ /dev/null @@ -1,23 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/fcntl.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_creat (const char * path, pace_mode_t mode) -{ - return creat (path, mode); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ diff --git a/PACE/pace/posix/grp.c b/PACE/pace/posix/grp.c deleted file mode 100644 index 59b11cbb739..00000000000 --- a/PACE/pace/posix/grp.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/grp.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/grp.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/grp.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/grp.h b/PACE/pace/posix/grp.h deleted file mode 100644 index 38be525562f..00000000000 --- a/PACE/pace/posix/grp.h +++ /dev/null @@ -1,34 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace (posix ace) - * - * = FILENAME - * pace/posix/grp.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_GRP_H_POSIX -#define PACE_GRP_H_POSIX - -#include <grp.h> - -# if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -# endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_GROUP -#define PACE_GROUP -typedef struct group pace_group; -#endif /* PACE_GROUP */ - -# if defined (PACE_HAS_CPLUSPLUS) -} -# endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_GRP_H_POSIX */ diff --git a/PACE/pace/posix/grp.inl b/PACE/pace/posix/grp.inl deleted file mode 100644 index fcac3d5f1fd..00000000000 --- a/PACE/pace/posix/grp.inl +++ /dev/null @@ -1,73 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/grp.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_SD_UOF) -PACE_INLINE -pace_group * -pace_getgrgid (pace_gid_t gid) -{ - return getgrgid (gid); -} -#endif /* PACE_HAS_POSIX_SD_UOF */ - -#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) -{ -#if (PACE_LYNXOS) - *result = getgrgid_r (grp, gid, buffer, bufsize); - if (*result == 0) - return errno; - return 0; -#else - return getgrgid_r (gid, grp, buffer, bufsize, result); -#endif /* ! PACE_LYNXOS */ -} -#endif /* PACE_HAS_POSIX_SDR_UOF */ - -#if (PACE_HAS_POSIX_SD_UOF) -PACE_INLINE -pace_group * -pace_getgrnam (const char * name) -{ - return getgrnam (name); -} -#endif /* PACE_HAS_POSIX_SD_UOF */ - -#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) -{ -#if (PACE_LYNXOS) - *result = getgrnam_r (grp, PACE_NONCONST_ARG_CAST (char *) name, - buffer, bufsize); - if (*result == 0) - return errno; - return 0; -#else - return getgrnam_r (name, grp, buffer, bufsize, result); -#endif /* ! PACE_LYNXOS */ -} -#endif /* PACE_HAS_POSIX_SDR_UOF */ diff --git a/PACE/pace/posix/limits.h b/PACE/pace/posix/limits.h deleted file mode 100644 index fb952113bbd..00000000000 --- a/PACE/pace/posix/limits.h +++ /dev/null @@ -1,29 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace (posix ace) - * - * = FILENAME - * pace/posix/limits.h - * - * = AUTHOR - * Joe Hoffert - * - * ============================================================================ */ - -#ifndef PACE_LIMITS_H -#define PACE_LIMITS_H - -#include <limits.h> - -# if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -# endif /* (PACE_HAS_CPLUSPLUS) */ - -# if defined (PACE_HAS_CPLUSPLUS) -} -# endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_LIMITS_H */ diff --git a/PACE/pace/posix/locale.c b/PACE/pace/posix/locale.c deleted file mode 100644 index 3f818716eda..00000000000 --- a/PACE/pace/posix/locale.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/locale.c - * - * = AUTHOR - * Joe Hoffert - * - * ============================================================================= */ - -#include "pace/locale.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/locale.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/locale.h b/PACE/pace/posix/locale.h deleted file mode 100644 index 704d23d3c96..00000000000 --- a/PACE/pace/posix/locale.h +++ /dev/null @@ -1,40 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/locale.h - * - * = AUTHOR - * Joe Hoffert - * - * =========================================================================== */ - -#ifndef PACE_LOCALE_H_POSIX -#define PACE_LOCALE_H_POSIX - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_LC_ALL LC_ALL -#define PACE_LC_COLLATE LC_COLLATE -#define PACE_LC_CTYPE LC_CTYPE -#define PACE_LC_MONETARY LC_MONETARY -#define PACE_LC_NUMERIC LC_NUMERIC -#define PACE_LC_TIME LC_TIME -#define PACE_NULL NULL - -#ifndef PACE_LCONV -#define PACE_LCONV -typedef struct lconv pace_lconv; -#endif /* PACE_LCONV */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_LOCALE_H_POSIX */ diff --git a/PACE/pace/posix/locale.inl b/PACE/pace/posix/locale.inl deleted file mode 100644 index ed0a94e319d..00000000000 --- a/PACE/pace/posix/locale.inl +++ /dev/null @@ -1,34 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/locale.inl - * - * = AUTHOR - * Joe Hoffert - * - * =========================================================================== */ - -#include <locale.h> - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -pace_lconv * -pace_localeconv (void) -{ - return localeconv (); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -char * -pace_setlocale (int category, const char * locale) -{ - return setlocale (category, locale); -} -#endif /* PACE_HAS_POSIX_MP_UOF */ diff --git a/PACE/pace/posix/math.c b/PACE/pace/posix/math.c deleted file mode 100644 index 8c2e32301fa..00000000000 --- a/PACE/pace/posix/math.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/math.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/math.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/math.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/math.h b/PACE/pace/posix/math.h deleted file mode 100644 index 34e68241bc7..00000000000 --- a/PACE/pace/posix/math.h +++ /dev/null @@ -1,29 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/math.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_MATH_H_POSIX -#define PACE_MATH_H_POSIX - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_HUGE_VAL HUGE_VAL - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_MATH_H_POSIX */ diff --git a/PACE/pace/posix/math.inl b/PACE/pace/posix/math.inl deleted file mode 100644 index 9f2b560291a..00000000000 --- a/PACE/pace/posix/math.inl +++ /dev/null @@ -1,214 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/math.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include <math.h> - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_acos (double x) -{ - return acos (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_asin (double x) -{ - return asin (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_atan (double x) -{ - return atan (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_atan2 (double x, double y) -{ - return atan2 (x, y); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_cos (double x) -{ - return cos (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_sin (double x) -{ - return sin (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_tan (double x) -{ - return tan (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_cosh (double x) -{ - return cosh (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_sinh (double x) -{ - return sinh (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_tanh (double x) -{ - return tanh (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_exp (double x) -{ - return exp (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_frexp (double x, int * exp) -{ - return frexp (x, exp); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_ldexp (double x, int exp) -{ - return ldexp (x, exp); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_log (double x) -{ - return log (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_log10 (double x) -{ - return log10 (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_modf (double x, double * iptr) -{ - return modf (x, iptr); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_pow (double x, double y) -{ - return pow (x, y); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_sqrt (double x) -{ - return sqrt (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_ceil (double x) -{ - return ceil (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_fabs (double x) -{ - return fabs (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_floor (double x) -{ - return floor (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_fmod (double x, double y) -{ - return fmod (x, y); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ diff --git a/PACE/pace/posix/mman.c b/PACE/pace/posix/mman.c deleted file mode 100644 index b68b87baa22..00000000000 --- a/PACE/pace/posix/mman.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/mman.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/sys/mman.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/mman.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/mman.h b/PACE/pace/posix/mman.h deleted file mode 100644 index f45efe48efa..00000000000 --- a/PACE/pace/posix/mman.h +++ /dev/null @@ -1,42 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/mman.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SYS_MMAN_H_POSIX -#define PACE_SYS_MMAN_H_POSIX - -#include <sys/mman.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_MAP_FAILED MAP_FAILED -#define PACE_MAP_FIXED MAP_FIXED -#define PACE_MAP_PRIVATE MAP_PRIVATE -#define PACE_MAP_SHARED MAP_SHARED -#define PACE_MCL_CURRENT MCL_CURRENT -#define PACE_MS_ASYNC MS_ASYNC -#define PACE_MS_INVALIDATE -#define PACE_MS_SYNC MS_SYNC -#define PACE_PROT_EXEC PROT_EXEC -#define PACE_PROT_NONE PROT_NONE -#define PACE_PROT_READ PROT_READ -#define PACE_PROT_WRITE PROT_WRITE - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SYS_MMAN_H_POSIX */ diff --git a/PACE/pace/posix/mman.inl b/PACE/pace/posix/mman.inl deleted file mode 100644 index a89782fa44e..00000000000 --- a/PACE/pace/posix/mman.inl +++ /dev/null @@ -1,127 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/mman.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mlock (const void * addr, pace_size_t len) -{ - return mlock (((char*)addr), len); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mlockall (int flags) -{ - return mlockall (flags); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#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) -{ - return mmap ((char *) addr, len, prot, flags, fildes, off); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_munlock (const void * addr, pace_size_t len) -{ - return munlock (((char*)addr), len); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mprotect (void * addr, - pace_size_t len, - int prot) -{ - return mprotect ((char*)addr, len, prot); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_msync (void * addr, - pace_size_t len, - int flags) -{ - return msync ((char*)addr, len, flags); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_munlockall () -{ - return munlockall (); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_munmap (void * addr, pace_size_t len) -{ - return munmap ((char *) addr, len); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -PACE_HANDLE -pace_shm_open (const char * name, - int oflag, - pace_mode_t mode) -{ -# if (PACE_POSIX_C_SOURCE > 2) - return shm_open (name, oflag, mode); -# else /* ! PACE_POSIX_C_SOURCE */ - PACE_UNUSED_ARG (name); - PACE_UNUSED_ARG (oflag); - PACE_UNUSED_ARG (mode); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -# endif /* ! PACE_POSIX_C_SOURCE */ -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_shm_unlink (const char * name) -{ -# if (PACE_POSIX_C_SOURCE > 2) - return shm_unlink (name); -# else /* ! PACE_POSIX_C_SOURCE */ - PACE_UNUSED_ARG (name); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -# endif /* ! PACE_POSIX_C_SOURCE */ -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/posix/mqueue.c b/PACE/pace/posix/mqueue.c deleted file mode 100644 index 596c75e3905..00000000000 --- a/PACE/pace/posix/mqueue.c +++ /dev/null @@ -1,24 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace (posix ace) - * - * = FILENAME - * pace/posix/mqueue.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/mqueue.h" - -#if PACE_LINUX -# include "pace/emulation/mqueue.c" -#endif /* PACE_LINUX */ - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/mqueue.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/mqueue.h b/PACE/pace/posix/mqueue.h deleted file mode 100644 index 66483f040cf..00000000000 --- a/PACE/pace/posix/mqueue.h +++ /dev/null @@ -1,43 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/mqueue.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_MQUEUE_H_POSIX -#define PACE_MQUEUE_H_POSIX - -#if PACE_LINUX -# include "pace/emulation/mqueue.h" -#else -# include <mqueue.h> -#endif /* PACE_LINUX */ - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_MQD_T -#define PACE_MQD_T - typedef mqd_t pace_mqd_t; -#endif /* PACE_MQD_T */ - -#ifndef PACE_MQ_ATTR -#define PACE_MQ_ATTR - typedef struct mq_attr pace_mq_attr; -#endif /* PACE_MQ_ATTR */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_MQUEUE_H_POSIX */ diff --git a/PACE/pace/posix/mqueue.inl b/PACE/pace/posix/mqueue.inl deleted file mode 100644 index 2459563e9b3..00000000000 --- a/PACE/pace/posix/mqueue.inl +++ /dev/null @@ -1,87 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/mqueue.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mq_close (pace_mqd_t mqdes) -{ - return mq_close (mqdes); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mq_getattr (pace_mqd_t mqdes, - pace_mq_attr * mqstat) -{ - return mq_getattr (mqdes, mqstat); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mq_notify (pace_mqd_t mqdes, - const pace_sigevent * notification) -{ - return mq_notify (mqdes, notification); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -ssize_t -pace_mq_receive (pace_mqd_t mqdes, - char * msg_ptr, - size_t msg_len, - unsigned int * msg_prio) -{ - return mq_receive (mqdes, msg_ptr, msg_len, msg_prio); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mq_send (pace_mqd_t mqdes, - const char * msg_ptr, - size_t msg_len, - unsigned int msg_prio) -{ - return mq_send (mqdes, msg_ptr, msg_len, msg_prio); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#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) -{ - return mq_setattr (mqdes, mqstat, omqstat); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mq_unlink (const char * name) -{ - return mq_unlink (name); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/posix/pthread.c b/PACE/pace/posix/pthread.c deleted file mode 100644 index 426c377c446..00000000000 --- a/PACE/pace/posix/pthread.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/pthread.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/pthread.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/pthread.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/pthread.h b/PACE/pace/posix/pthread.h deleted file mode 100644 index b998c50e7c1..00000000000 --- a/PACE/pace/posix/pthread.h +++ /dev/null @@ -1,81 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/pthread.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_PTHREAD_H_POSIX -#define PACE_PTHREAD_H_POSIX - -#include <pthread.h> -#include "pace/sys/types.h" -#include "pace/signal.h" - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_PTHREAD_CANCELED PTHREAD_CANCELED -#define PACE_PTHREAD_CANCEL_AYNCHRONOUS PTHREAD_CANCEL_ASYNCHRONOUS -#define PACE_PTHREAD_CANCEL_DEFERRED PTHREAD_CANCEL_DEFERRED -#define PACE_PTHREAD_CACEL_DISABLE PTHREAD_CANCEL_DISABLE -#define PACE_PTHREAD_CANCEL_ENABLE PTHREAD_CANCEL_ENABLE -#define PACE_PTHREAD_COND_INITIALIZER PTHREAD_COND_INITIALIZER -#define PACE_PTHREAD_CREATE_DETACHED PTHREAD_CREATE_DETACHED -#define PACE_PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_JOINABLE -#define PACE_PTHREAD_EXPLICIT_SCHED PTHREAD_EXPLICIT_SCHED -#define PACE_PTHREAD_INHERIT_SCHED PTHREAD_INHERIT_SCHED -#define PACE_PTHREAD_MUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER -#define PACE_PTHREAD_ONCE_INIT PTHREAD_ONCE_INIT -#define PACE_PTHREAD_PRIO_INHERIT PTHREAD_PRIO_INHERIT -#define PACE_PTHREAD_PRIO_NONE PTHREAD_PRIO_NONE -#define PACE_PTHREAD_PRIO_PROTECT PTHREAD_PRIO_PROTECT -#define PACE_PTHREAD_PROCESS_PRIVATE PTHREAD_PROCESS_PRIVATE -#define PACE_PTHREAD_PROCESS_SHARED PTHREAD_PROCESS_SHARED -#define PACE_PTHREAD_SCOPE_PROCESS PTHREAD_SCOPE_PROCESS -#define PACE_PTHREAD_SCOPE_SYSTEM PTHREAD_SCOPE_SYSTEM - -#ifndef PACE_SCHED_PARAM -#define PACE_SCHED_PARAM - typedef struct sched_param pace_sched_param; -#endif /* PACE_SCHED_PARAM */ - -#if defined (PACE_HAS_CPLUSPLUS) -# ifndef PACE_ATFORK_PF -# define PACE_ATFORK_PF - typedef void (*pace_atfork_pf) (void); -# endif /* PACE_ATFORK_PF */ - -# ifndef PACE_KEYCREATE_PF -# define PACE_KEYCREATE_PF - typedef void (*pace_keycreate_pf) (void*); -# endif /* PACE_KEYCREATE_PF */ - -# ifndef PACE_ONCE_PF -# define PACE_ONCE_PF - typedef void (*pace_once_pf) (void); -# endif /* PACE_ONCE_PF */ - -# ifndef PACE_CREATE_PF -# define PACE_CREATE_PF - typedef void* (*pace_create_pf) (void*); -# endif /* PACE_CREATE_PF */ - -#endif /* PACE_HAS_CPLUPLUS */ - - - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_PTHREAD_H_POSIX */ diff --git a/PACE/pace/posix/pthread.inl b/PACE/pace/posix/pthread.inl deleted file mode 100644 index 9ff8b41e3f6..00000000000 --- a/PACE/pace/posix/pthread.inl +++ /dev/null @@ -1,729 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/pthread.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/unistd.h" - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -# if defined (PACE_HAS_CPLUSPLUS) -PACE_INLINE -int -pace_pthread_atfork (pace_atfork_pf prepare, - pace_atfork_pf parent, - pace_atfork_pf child) -{ - return pthread_atfork (prepare, parent, child); -} -# else /* ! PACE_HAS_CPLUSPLUS */ -PACE_INLINE -int -pace_pthread_atfork (void (*prepare) (), - void (*parent) (), - void (*child) ()) -{ - return pthread_atfork (prepare, parent, child); -} -# endif /* PACE_HAS_CPLUSPLUS */ -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_destroy (pace_pthread_attr_t * attr) -{ - return pthread_attr_destroy (attr); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_getdetachstate (const pace_pthread_attr_t * attr, - int * detachstate) -{ - return pthread_attr_getdetachstate (attr, detachstate); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_getinheritsched (const pace_pthread_attr_t * attr, - int * inheritsched) -{ - return pthread_attr_getinheritsched (PACE_NONCONST_ARG_CAST (pace_pthread_attr_t *) attr, - inheritsched); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_getschedparam (const pace_pthread_attr_t * attr, - pace_sched_param * param) -{ - return pthread_attr_getschedparam (attr, param); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_getschedpolicy (const pace_pthread_attr_t * attr, - int * policy) -{ - return pthread_attr_getschedpolicy (attr, policy); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_getscope (const pace_pthread_attr_t * attr, - int * contentionscope) -{ - return pthread_attr_getscope (attr, contentionscope); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_getstackaddr (const pace_pthread_attr_t * attr, - void ** stackaddr) -{ - return pthread_attr_getstackaddr (attr, stackaddr); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_getstacksize (const pace_pthread_attr_t * attr, - size_t * stacksize) -{ - return pthread_attr_getstacksize (PACE_NONCONST_ARG_CAST (pace_pthread_attr_t *) attr, - stacksize); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_init (pace_pthread_attr_t * attr) -{ - return pthread_attr_init (attr); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_setdetachstate (pace_pthread_attr_t * attr, - int detachstate) -{ - return pthread_attr_setdetachstate (attr, detachstate); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_setinheritsched (pace_pthread_attr_t * attr, - int inheritsched) -{ - return pthread_attr_setinheritsched (attr, inheritsched); -} -#endif /* PACE_HAS_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) -{ - return pthread_attr_setschedparam (attr, param); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_setschedpolicy (pace_pthread_attr_t * attr, - int policy) -{ - return pthread_attr_setschedpolicy (attr, policy); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_setscope (pace_pthread_attr_t * attr, - int contentionscope) -{ - return pthread_attr_setscope (attr, contentionscope); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_setstackaddr (pace_pthread_attr_t * attr, - void * stackaddr) -{ - return pthread_attr_setstackaddr (attr, stackaddr); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_setstacksize (pace_pthread_attr_t * attr, - size_t stacksize) -{ - return pthread_attr_setstacksize (attr, stacksize); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_cancel (pace_pthread_t thread) -{ - return pthread_cancel (thread); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_cond_broadcast (pace_pthread_cond_t * cond) -{ - return pthread_cond_broadcast (cond); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_cond_destroy (pace_pthread_cond_t * cond) -{ - return pthread_cond_destroy (cond); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_cond_init (pace_pthread_cond_t * cond, - const pace_pthread_condattr_t * attr) -{ - return pthread_cond_init (cond, attr); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_cond_signal (pace_pthread_cond_t * cond) -{ - return pthread_cond_signal (cond); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_cond_timedwait (pthread_cond_t * cond, - pace_pthread_mutex_t * mutex, - const pace_timespec * abstime) -{ - return pthread_cond_timedwait (cond, mutex, PACE_NONCONST_ARG_CAST (struct timespec *) abstime); -} -#endif /* PACE_HAS_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) -{ - return pthread_cond_wait (cond, mutex); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_condattr_destroy (pace_pthread_condattr_t * attr) -{ - return pthread_condattr_destroy (attr); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_condattr_getpshared (const pace_pthread_condattr_t * attr, - int * pshared) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (pshared); - return -1; -#else - return pthread_condattr_getpshared (PACE_NONCONST_ARG_CAST (pace_pthread_condattr_t *) attr, pshared); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_condattr_init (pace_pthread_condattr_t * attr) -{ - return pthread_condattr_init (attr); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_condattr_setpshared (pace_pthread_condattr_t * attr, - int pshared) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (pshared); - return -1; -#else - return pthread_condattr_setpshared (attr, pshared); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -# if defined (PACE_HAS_CPLUSPLUS) -PACE_INLINE -int -pace_pthread_create (pace_pthread_t * thread, - const pace_pthread_attr_t * attr, - pace_create_pf start_routine, - void * arg) -{ - return pthread_create (thread, attr, start_routine, arg); -} -# else /* ! PACE_HAS_CPLUSPLUS */ -PACE_INLINE -int -pace_pthread_create (pace_pthread_t * thread, - const pace_pthread_attr_t * attr, - void * (*start_routine) (void*), - void * arg) -{ - return pthread_create (thread, attr, start_routine, arg); -} -# endif /*! PACE_HAS_CPLUSPLUS */ -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_detach (pace_pthread_t thread) -{ - return pthread_detach (thread); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_equal (pace_pthread_t t1, pthread_t t2) -{ - return pthread_equal (t1, t2); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -void -pace_pthread_exit (void * value_ptr) -{ - pthread_exit (value_ptr); - return; -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_getschedparam (pace_pthread_t thread, - int * policy, - pace_sched_param * param) -{ - return pthread_getschedparam (thread, policy, param); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -void * -pace_pthread_getspecific (pace_pthread_key_t key) -{ - return pthread_getspecific (key); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_join (pace_pthread_t thread, void ** value_ptr) -{ - return pthread_join (thread, value_ptr); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -# if defined (PACE_HAS_CPLUSPLUS) -PACE_INLINE -int -pace_pthread_key_create (pace_pthread_key_t * key, - pace_keycreate_pf destructor) -{ - return pthread_key_create (key, destructor); -} -#else /* ! PACE_HAS_CPLUSPLUS */ -PACE_INLINE -int -pace_pthread_key_create (pace_pthread_key_t * key, - void (*destructor)(void*)) -{ - return pthread_key_create (key, destructor); -} -# endif /* PACE_HAS_CPLUSPLUS */ -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_key_delete (pace_pthread_key_t key) -{ - return pthread_key_delete (key); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_kill (pace_pthread_t thread, int sig) -{ - return pthread_kill (thread, sig); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutex_destroy (pace_pthread_mutex_t * mutex) -{ - return pthread_mutex_destroy (mutex); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutex_getprioceiling (pace_pthread_mutex_t * mutex, - int * prioceiling) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (mutex); - PACE_UNUSED_ARG (prioceiling); - return -1; -#elif PACE_LYNXOS - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -#else /* ! PACE_LYNXOS */ - return pthread_mutex_getprioceiling (mutex, prioceiling); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_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) -{ - return pthread_mutex_init (mutex, attr); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutex_lock (pace_pthread_mutex_t * mutex) -{ - return pthread_mutex_lock (mutex); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutex_setprioceiling (pace_pthread_mutex_t * mutex, - int prioceiling, - int * old_ceiling) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (mutex); - PACE_UNUSED_ARG (prioceiling); - PACE_UNUSED_ARG (old_ceiling); - return -1; -#elif PACE_LYNXOS - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -#else /* ! PACE_LYNXOS */ - return pthread_mutex_setprioceiling (mutex, prioceiling, old_ceiling); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutex_trylock (pthread_mutex_t * mutex) -{ - return pthread_mutex_trylock (mutex); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutex_unlock (pace_pthread_mutex_t * mutex) -{ - return pthread_mutex_unlock (mutex); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutexattr_destroy (pace_pthread_mutexattr_t * attr) -{ - return pthread_mutexattr_destroy (attr); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutexattr_getprioceiling (pace_pthread_mutexattr_t * attr, - int * prioceiling) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (prioceiling); - return -1; -#else - return pthread_mutexattr_getprioceiling (attr, prioceiling); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutexattr_getprotocol (const pace_pthread_mutexattr_t * attr, - int * protocol) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (protocol); - return -1; -#else - return pthread_mutexattr_getprotocol (PACE_NONCONST_ARG_CAST (pace_pthread_mutexattr_t *) attr, protocol); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutexattr_setprioceiling (pace_pthread_mutexattr_t * attr, - int prioceiling) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (prioceiling); - return -1; -#else - return pthread_mutexattr_setprioceiling (attr, prioceiling); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutexattr_setprotocol (pace_pthread_mutexattr_t * attr, - int protocol) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (protocol); - return -1; -#else - return pthread_mutexattr_setprotocol (attr, protocol); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutexattr_getpshared (const pace_pthread_mutexattr_t * attr, - int * pshared) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (pshared); - return -1; -#else - return pthread_mutexattr_getpshared (PACE_NONCONST_ARG_CAST (pace_pthread_mutexattr_t *) attr, pshared); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutexattr_init (pace_pthread_mutexattr_t * attr) -{ - return pthread_mutexattr_init (attr); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutexattr_setpshared (pace_pthread_mutexattr_t * attr, - int pshared) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (pshared); - return -1; -#else - return pthread_mutexattr_setpshared (attr, pshared); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -# if defined (PACE_HAS_CPLUSPLUS) -PACE_INLINE -int -pace_pthread_once (pace_pthread_once_t * once_control, - pace_once_pf void_routine) -{ - return pthread_once (once_control, void_routine); -} -# else /* ! PACE_HAS_CPLUSPLUS */ -PACE_INLINE -int -pace_pthread_once (pace_pthread_once_t * once_control, - void (*void_routine) (void)) -{ - return pthread_once (once_control, void_routine); -} -# endif /* PACE_HAS_CPLUSPLUS */ -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -pace_pthread_t -pace_pthread_self () -{ - return pthread_self (); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_setcancelstate (int state, int * oldstate) -{ - return pthread_setcancelstate (state, oldstate); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_setcanceltype (int type, int * oldtype) -{ - return pthread_setcanceltype (type, oldtype); -} -#endif /* PACE_HAS_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) -{ - return pthread_setschedparam (thread, policy, param); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_setspecific (pace_pthread_key_t key, const void * value) -{ - return pthread_setspecific (key, PACE_NONCONST_ARG_CAST (void *) value); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_sigmask (int how, const sigset_t * set, - sigset_t * oset) -{ - return pthread_sigmask (how, set, oset); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -void -pace_pthread_testcancel () -{ - pthread_testcancel (); - return; -} -#endif /* PACE_HAS_NONUOF_FUNCS */ diff --git a/PACE/pace/posix/pwd.c b/PACE/pace/posix/pwd.c deleted file mode 100644 index 6284186cd66..00000000000 --- a/PACE/pace/posix/pwd.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/pwd.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/pwd.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/pwd.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/pwd.h b/PACE/pace/posix/pwd.h deleted file mode 100644 index 70398e0871c..00000000000 --- a/PACE/pace/posix/pwd.h +++ /dev/null @@ -1,35 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/pwd.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_PWD_H_POSIX -#define PACE_PWD_H_POSIX - -#include <pwd.h> -#include "pace/sys/types.h" - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_PASSWD -#define PACE_PASSWD - typedef struct passwd pace_passwd; -#endif /* PACE_PASSWD */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_PWD_H_POSIX */ diff --git a/PACE/pace/posix/pwd.inl b/PACE/pace/posix/pwd.inl deleted file mode 100644 index ee52fd2be0d..00000000000 --- a/PACE/pace/posix/pwd.inl +++ /dev/null @@ -1,81 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/pwd.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_SD_UOF) -PACE_INLINE -pace_passwd * -pace_getpwuid (pace_uid_t uid) -{ - return getpwuid (uid); -} -#endif /* PACE_HAS_POSIX_SD_UOF */ - -#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) -{ -#if (PACE_LYNXOS) - if (getpwuid_r (pwd, uid, buffer, bufsize) == 0) - /* Successful search */ - { - **result = *pwd; - return 0; - } - - return -1; -#else - return getpwuid_r (uid, pwd, buffer, bufsize, result); -#endif /* ! PACE_LYNXOS */ -} -#endif /* PACE_HAS_POSIX_SDR_UOF */ - -#if (PACE_HAS_POSIX_SD_UOF) -PACE_INLINE -pace_passwd * -pace_getpwnam (const char * name) -{ - return getpwnam (name); -} -#endif /* PACE_HAS_POSIX_SD_UOF */ - -#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) -{ -# if (PACE_LYNXOS) - if (getpwnam_r (pwd, PACE_NONCONST_ARG_CAST (char *) name, - buffer, bufsize) == 0) - /* Successful search */ - { - **result = *pwd; - return 0; - } - - return -1; -#else - return getpwnam_r (name, pwd, buffer, bufsize, result); -#endif /* ! PACE_LYNXOS */ -} -#endif /* PACE_HAS_POSIX_SDR_UOF */ diff --git a/PACE/pace/posix/sched.c b/PACE/pace/posix/sched.c deleted file mode 100644 index d78a66dbc7f..00000000000 --- a/PACE/pace/posix/sched.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/sched.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/sched.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/sched.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/sched.h b/PACE/pace/posix/sched.h deleted file mode 100644 index a3405d2bbd1..00000000000 --- a/PACE/pace/posix/sched.h +++ /dev/null @@ -1,38 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/sched.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SCHED_H_POSIX -#define PACE_SCHED_H_POSIX - -#include <sched.h> -#include "pace/time.h" - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_SCHED_FIFO SCHED_FIFO -#define PACE_SCHED_OTHER SCHED_RR - -#ifndef PACE_SCHED_PARAM -#define PACE_SCHED_PARAM - typedef struct sched_param pace_sched_param; -#endif /* PACE_SCHED_PARAM */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SCHED_H_POSIX */ diff --git a/PACE/pace/posix/sched.inl b/PACE/pace/posix/sched.inl deleted file mode 100644 index 36bed6ab5c9..00000000000 --- a/PACE/pace/posix/sched.inl +++ /dev/null @@ -1,91 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/sched.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sched_get_priority_max (int policy) -{ - return sched_get_priority_max (policy); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sched_get_priority_min (int policy) -{ - return sched_get_priority_min (policy); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sched_getparam (pace_pid_t pid, - pace_sched_param * param) -{ - return sched_getparam (pid, param); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sched_rr_get_interval (pace_pid_t pid, - pace_timespec * interval) -{ - return sched_rr_get_interval (pid, interval); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sched_setparam (pace_pid_t pid, - const pace_sched_param * param) -{ - return sched_setparam (pid, param); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sched_getscheduler (pace_pid_t pid) -{ - return sched_getscheduler (pid); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sched_setscheduler (pace_pid_t pid, - int policy, - const pace_sched_param * param) -{ - return sched_setscheduler (pid, policy, param); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sched_yield () -{ - return sched_yield (); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/posix/semaphore.c b/PACE/pace/posix/semaphore.c deleted file mode 100644 index 695190f4531..00000000000 --- a/PACE/pace/posix/semaphore.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/semaphore.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/semaphore.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/semaphore.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/semaphore.h b/PACE/pace/posix/semaphore.h deleted file mode 100644 index 4cdf0d3dd04..00000000000 --- a/PACE/pace/posix/semaphore.h +++ /dev/null @@ -1,31 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/semaphore.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SEMAPHORE_H_POSIX -#define PACE_SEMAPHORE_H_POSIX - -#include <semaphore.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -typedef sem_t pace_sem_t; - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SEMAPHORE_H_POSIX */ diff --git a/PACE/pace/posix/semaphore.inl b/PACE/pace/posix/semaphore.inl deleted file mode 100644 index b0d4fb21906..00000000000 --- a/PACE/pace/posix/semaphore.inl +++ /dev/null @@ -1,86 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/semaphore.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sem_close (pace_sem_t * sem) -{ - return sem_close (sem); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sem_destroy (pace_sem_t * sem) -{ - return sem_destroy (sem); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sem_getvalue (pace_sem_t * sem, int * sval) -{ - return sem_getvalue (sem, sval); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sem_init (pace_sem_t * sem, int pshared, unsigned int value) -{ - return sem_init (sem, pshared, value); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sem_post (pace_sem_t * sem) -{ - return sem_post (sem); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sem_trywait (pace_sem_t * sem) -{ - return sem_trywait (sem); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sem_unlink (const char * name) -{ - return sem_unlink (name); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sem_wait (pace_sem_t * sem) -{ - return sem_wait (sem); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/posix/setjmp.c b/PACE/pace/posix/setjmp.c deleted file mode 100644 index 00db5828a7c..00000000000 --- a/PACE/pace/posix/setjmp.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/setjmp.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/setjmp.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/setjmp.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/setjmp.h b/PACE/pace/posix/setjmp.h deleted file mode 100644 index 30221f2e74d..00000000000 --- a/PACE/pace/posix/setjmp.h +++ /dev/null @@ -1,32 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/setjmp.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SETJMP_H_POSIX -#define PACE_SETJMP_H_POSIX - -#include <setjmp.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - - typedef jmp_buf pace_jmp_buf; - typedef sigjmp_buf pace_sigjmp_buf; - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SETJMP_H_POSIX */ diff --git a/PACE/pace/posix/setjmp.inl b/PACE/pace/posix/setjmp.inl deleted file mode 100644 index 0e5ad69026c..00000000000 --- a/PACE/pace/posix/setjmp.inl +++ /dev/null @@ -1,52 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/setjmp.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_setjmp (pace_jmp_buf env) -{ - return setjmp (env); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigsetjmp (pace_sigjmp_buf env, int savemask) -{ - return sigsetjmp (env, savemask); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -void -pace_longjmp (pace_jmp_buf env, int val) -{ - longjmp (env, val); - return; -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -void -pace_siglongjmp (pace_sigjmp_buf env, int val) -{ - siglongjmp (env, val); - return; -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ diff --git a/PACE/pace/posix/signal.c b/PACE/pace/posix/signal.c deleted file mode 100644 index 46d96b76fb0..00000000000 --- a/PACE/pace/posix/signal.c +++ /dev/null @@ -1,28 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/signal.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/signal.h" - -#if (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/signal.inl" -#endif /* ! PACE_HAS_INLINE */ - -#if (PACE_HAS_CPLUSPLUS) -} -#endif diff --git a/PACE/pace/posix/signal.h b/PACE/pace/posix/signal.h deleted file mode 100644 index 6362595ae31..00000000000 --- a/PACE/pace/posix/signal.h +++ /dev/null @@ -1,71 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/signal.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#ifndef PACE_SIGNAL_H_POSIX -#define PACE_SIGNAL_H_POSIX - -#include <signal.h> -#include "pace/sys/types.h" -#include "pace/time.h" - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_SIG_PF -# define PACE_SIG_PF - typedef void (*pace_sig_pf)(int); -#endif /* PACE_SIG_PF */ - -#ifndef PACE_SIG_ATOMIC_T -#define PACE_SIG_ATOMIC_T - typedef sig_atomic_t pace_sig_atomic_t; -#endif /* PACE_SIG_ATOMIC_T */ - -#ifndef PACE_SIGSET_T -#define PACE_SIGSET_T - typedef sigset_t pace_sigset_t; -#endif /* PACE_SIGSET_T */ - -#ifndef PACE_SIGACTION_S -#define PACE_SIGACTION_S - typedef struct sigaction pace_sigaction_s; -#endif /* PACE_SIGACTION_S */ - -#ifndef PACE_SIGINFO_T -#define PACE_SIGINFO_T - typedef siginfo_t pace_siginfo_t; -#endif /* PACE_SIGINFO_T */ - -#ifndef PACE_SIGEVENT -#define PACE_SIGEVENT - typedef struct sigevent pace_sigevent; -#endif /* PACE_SIGEVENT */ - -#ifndef PACE_SIGVAL -#define PACE_SIGVAL - typedef union sigval pace_sigval; -#endif /* PACE_SIGVAL */ - -#ifndef PACE_TIMESPEC -#define PACE_TIMESPEC - typedef struct timespec pace_timespec; -#endif /* PACE_TIMESPEC */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SIGNAL_H_POSIX */ diff --git a/PACE/pace/posix/signal.inl b/PACE/pace/posix/signal.inl deleted file mode 100644 index ce591600baa..00000000000 --- a/PACE/pace/posix/signal.inl +++ /dev/null @@ -1,167 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/signal.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/pthread.h" -#include "pace/time.h" - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_kill (pace_pid_t pid, int sig) -{ - return kill (pid, sig); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_raise (int sig) -{ - /* Implementation from POSIX std 8.1:54 */ - return pthread_kill (pthread_self (), sig); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigaction (int sig, const pace_sigaction_s * act, - pace_sigaction_s * oact) -{ - return sigaction (sig, act, oact); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigaddset (pace_sigset_t * set, int signo) -{ - return sigaddset (set, signo); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigemptyset (pace_sigset_t * set) -{ - return sigemptyset (set); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigdelset (pace_sigset_t * set, int signo) -{ - return sigdelset (set, signo); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigfillset (pace_sigset_t * set) -{ - return sigfillset (set); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigismember (const pace_sigset_t * set, int signo) -{ - return sigismember (set, signo); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -pace_sig_pf -pace_signal (int sig, pace_sig_pf func) -{ - return signal (sig, func); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigpending (pace_sigset_t * set) -{ - return sigpending (set); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigprocmask (int how, const pace_sigset_t * set, - pace_sigset_t * oset) -{ - return sigprocmask (how, set, oset); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sigqueue (pace_pid_t pid, int signo, - const pace_sigval value) -{ - return sigqueue (pid, signo, value); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigsuspend (const pace_sigset_t * sigmask) -{ - return sigsuspend (sigmask); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sigtimedwait (const pace_sigset_t * set, pace_siginfo_t * info, - const pace_timespec * timeout) -{ - return sigtimedwait (set, info, timeout); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sigwait (const pace_sigset_t * set, int * sig) -{ - return sigwait (PACE_NONCONST_ARG_CAST (pace_sigset_t *) set, - PACE_VOIDSTARTSTAR_ARG_CAST (void**) sig); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sigwaitinfo (const pace_sigset_t *set, pace_siginfo_t *info) -{ - return sigwaitinfo (set, info); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/posix/stat.c b/PACE/pace/posix/stat.c deleted file mode 100644 index efd10b03f76..00000000000 --- a/PACE/pace/posix/stat.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/stat.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/sys/stat.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/stat.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/stat.h b/PACE/pace/posix/stat.h deleted file mode 100644 index 1fc9ca38e74..00000000000 --- a/PACE/pace/posix/stat.h +++ /dev/null @@ -1,58 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/stat.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SYS_STAT_H_POSIX -#define PACE_SYS_STAT_H_POSIX - -#include <sys/stat.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_S_IRGRP S_IRGRP -#define PACE_S_IROTH S_IROTH -#define PACE_S_IRUSR S_IRUSR -#define PACE_S_IRWXG S_IRWXG -#define PACE_S_IRWXO S_IRWXO -#define PACE_S_IRWXU S_IRWXU -#define PACE_S_ISBLK S_ISBLK -#define PACE_S_ISCHR S_ISCHR -#define PACE_S_ISDIR S_ISDIR -#define PACE_S_ISFIFO S_ISFIFO -#define PACE_S_ISGID S_SIGID -#define PACE_S_ISREG S_ISREG -#define PACE_S_ISUID S_ISUID -#define PACE_S_IWGRP S_IWGRP -#define PACE_S_IWOTH S_IWOTH -#define PACE_S_IWUSR S_IWUSR -#define PACE_S_IXGRP S_IXGRP -#define PACE_S_IXOTH S_IXOTH -#define PACE_S_IXUSR S_IXUSR -#define PACE_S_TYPEISMQ S_TYPEISMQ -#define PACE_S_TYPEISSEM S_TYPEISSEM -#define PACE_S_TYPEISSHM S_TYPEISSHM - -#ifndef PACE_STAT -#define PACE_STAT - /* Kludge since there is a func and a type of the same name */ - typedef struct stat pace_stat_s; -#endif /* PACE_STAT */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SYS_STAT_H_POSIX */ diff --git a/PACE/pace/posix/stat.inl b/PACE/pace/posix/stat.inl deleted file mode 100644 index 399d92158f6..00000000000 --- a/PACE/pace/posix/stat.inl +++ /dev/null @@ -1,77 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/stat.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_FA_UOF) -PACE_INLINE -int -pace_chmod (const char * path, pace_mode_t mode) -{ - return chmod (path, mode); -} -#endif /* PACE_HAS_POSIX_FA_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_fchmod (int fildes, pace_mode_t mode) -{ - return fchmod (fildes, mode); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_fstat (int fildes, pace_stat_s * buf) -{ - return fstat (fildes, 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) -{ - return mkdir (path, 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) -{ - return mkfifo (path, 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) -{ - return stat (path, buf); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FA_UOF) -PACE_INLINE -pace_mode_t -pace_umask (pace_mode_t cmask) -{ - return umask (cmask); -} -#endif /* PACE_HAS_POSIX_FA_UOF */ diff --git a/PACE/pace/posix/stdio.c b/PACE/pace/posix/stdio.c deleted file mode 100644 index 251d6da309d..00000000000 --- a/PACE/pace/posix/stdio.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/stdio.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/stdio.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/stdio.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/stdio.h b/PACE/pace/posix/stdio.h deleted file mode 100644 index bee28898ca0..00000000000 --- a/PACE/pace/posix/stdio.h +++ /dev/null @@ -1,58 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/stdio.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_STDIO_H_POSIX -#define PACE_STDIO_H_POSIX - -#include <stdio.h> -#include <stdarg.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_BUFSIZ BUFSIZ -#define PACE_EOF EOF -#define PACE_FILENAME_MAX FILENAME_MAX -#define PACE_L_ctermid L_ctermid -#define PACE_L_cuserid L_cuserid -#ifndef PACE_NULL -#define PACE_NULL NULL -#endif /* PACE_NULL */ -#define PACE_SEEK_CUR SEEK_CUR -#define PACE_SEEK_END SEEK_END -#define PACE_SEEK_SET SEEK_SET -#define PACE_TMP_MAX TMP_MAX -#define pace_stderr stderr -#define pace_stdout stdout -#define pace_stdin stdin - -#ifndef PACE_FPOS_T -#define PACE_FPOS_T -typedef fpos_t pace_fpos_t; -#endif /* PACE_FPOS_T */ - -#ifndef PACE_SIZE_T -#define PACE_SIZE_T - typedef size_t pace_size_t; -#endif /* PACE_SIZE_T */ - -typedef FILE PACE_FILE; - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_STDIO_H_POSIX */ diff --git a/PACE/pace/posix/stdio.inl b/PACE/pace/posix/stdio.inl deleted file mode 100644 index 009b9c32a33..00000000000 --- a/PACE/pace/posix/stdio.inl +++ /dev/null @@ -1,513 +0,0 @@ -/* $Id$ -*- C -*- - - * =========================================================================== - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/stdio.inl - * - * = AUTHOR - * Luther Baker - * - * =========================================================================== */ - -#include <stdarg.h> - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -void -pace_clearerr (FILE * stream) -{ - clearerr (stream); - return; -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -char * -pace_ctermid (char * s) -{ - return ctermid (s); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_fclose (FILE * stream) -{ - return fclose (stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -FILE * -pace_fdopen (int fildes, - const char * type) -{ - return fdopen (fildes, - type); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_ferror (FILE * stream) -{ - return ferror (stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_feof (FILE * stream) -{ - return feof (stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_fflush (FILE * stream) -{ - return fflush (stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_fileno (FILE * stream) -{ - return fileno (stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_fgetc (FILE * stream) -{ - return fgetc (stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_fgetpos(PACE_FILE * stream, - pace_fpos_t * pos) -{ - return fgetpos (stream, pos); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -char * -pace_fgets (char * s, - int n, - FILE * stream) -{ - return fgets (s, - n, - stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FL_UOF) -PACE_INLINE -void -pace_flockfile (FILE * file) -{ -#if defined (PACE_HAS_REENTRANT) - flockfile (file); -#else /* ! PACE_HAS_REENTRANT */ - PACE_UNUSED_ARG (file); - PACE_ERRNO_NO_SUPPORT (); -#endif /* ! PACE_HAS_REENTRANT */ - return; -} -#endif /* PACE_HAS_POSIX_FL_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -FILE * -pace_fopen (const char * filename, - const char * mode) -{ - return fopen (filename, - mode); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_fputc (int c, - FILE * stream) -{ - return fputc (c, - stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_fputs (const char * s, - FILE * stream) -{ - return fputs (s, - stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -size_t -pace_fread (void * ptr, - size_t size, - size_t number_of_items, - FILE * stream) -{ - return fread (ptr, - size, - number_of_items, - stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -FILE * -pace_freopen (const char * filename, - const char * mode, - FILE * stream) -{ - return freopen (filename, - mode, - stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FM_UOF) -PACE_INLINE -int -pace_fseek (FILE * stream, - long offset, - int whence) -{ - return fseek (stream, - offset, - whence); -} -#endif /* PACE_HAS_POSIX_FM_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_fsetpos(PACE_FILE *stream, const pace_fpos_t *pos) -{ - return fsetpos (stream, pos); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_FM_UOF) -PACE_INLINE -long -pace_ftell (FILE * stream) -{ - return ftell (stream); -} -#endif /* PACE_HAS_POSIX_FM_UOF */ - -#if (PACE_HAS_POSIX_FL_UOF) -PACE_INLINE -int -pace_ftrylockfile (FILE * file) -{ -#if defined (PACE_HAS_REENTRANT) - return ftrylockfile (file); -#else /* ! PACE_HAS_REENTRANT */ - PACE_UNUSED_ARG(file); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -#endif /* ! PACE_HAS_REENTRANT */ -} -#endif /* PACE_HAS_POSIX_FL_UOF */ - -#if (PACE_HAS_POSIX_FL_UOF) -PACE_INLINE -void -pace_funlockfile (FILE * file) -{ -#if defined (PACE_HAS_REENTRANT) - funlockfile (file); -#else /* ! PACE_HAS_REENTRANT */ - PACE_UNUSED_ARG(file); - PACE_ERRNO_NO_SUPPORT (); -#endif /* ! PACE_HAS_REENTRANT */ - return; -} -#endif /* PACE_HAS_POSIX_FL_UOF */ - -#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) -{ - return fwrite (ptr, size, nmemb, stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_getc (FILE * stream) -{ - return getc (stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FL_UOF) -PACE_INLINE -int -pace_getc_unlocked (FILE * stream) -{ -#if defined (PACE_HAS_REENTRANT) - return getc_unlocked (stream); -#else /* ! PACE_HAS_POSIX */ - PACE_UNUSED_ARG(stream); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -#endif /* ! PACE_HAS_POSIX */ -} -#endif /* PACE_HAS_POSIX_FL_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_getchar () -{ - return getchar (); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FL_UOF) -PACE_INLINE -int -pace_getchar_unlocked () -{ -#if defined (PACE_HAS_REENTRANT) - return getchar_unlocked (); -#else /* ! PACE_HAS_REENTRANT */ - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -#endif /* ! PACE_HAS_REENTRANT */ -} -#endif /* PACE_HAS_POSIX_FL_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -char * -pace_gets (char * s) -{ - return gets (s); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -void -pace_perror (const char * s) -{ - perror (s); - return; -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_putc (int c, - FILE * stream) -{ - return putc (c, stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FL_UOF) -PACE_INLINE -int -pace_putc_unlocked (int c, - FILE * stream) -{ -#if defined (PACE_HAS_REENTRANT) - return putc_unlocked (c, stream); -#else /* ! PACE_HAS_REENTRANT */ - PACE_UNUSED_ARG(c); - PACE_UNUSED_ARG(stream); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -#endif /* ! PACE_HAS_REENTRANT */ -} -#endif /* PACE_HAS_POSIX_FL_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_putchar (int c) -{ - return putchar (c); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FL_UOF) -PACE_INLINE -int -pace_putchar_unlocked (int c) -{ -#if defined (PACE_HAS_REENTRANT) - return putchar_unlocked (c); -#else /* ! PACE_HAS_REENTRANT */ - PACE_UNUSED_ARG(c); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -#endif /* ! PACE_HAS_REENTRANT */ -} -#endif /* PACE_HAS_POSIX_FL_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_puts (const char * s) -{ - return puts (s); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_remove (const char * path) -{ - return remove (path); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_rename (const char * old_name, - const char * new_name) -{ - return rename (old_name, - new_name); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FM_UOF) -PACE_INLINE -void -pace_rewind (FILE * stream) -{ - rewind (stream); - return; -} -#endif /* PACE_HAS_POSIX_FM_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -void -pace_setbuf (FILE * stream, char * buf) -{ - setbuf (stream, buf); - return; -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_setvbuf(PACE_FILE * stream, - char * buf, - int mode, pace_size_t size) -{ - return setvbuf (stream, buf, mode, size); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -FILE * -pace_tmpfile () -{ - return tmpfile (); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -char * -pace_tmpnam (char * s) -{ - return tmpnam (s); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_ungetc (int c, FILE * stream) -{ - return ungetc (c, stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_vfprintf (PACE_FILE * stream, - const char * format, - va_list arg) -{ - /* return vfprintf (stream, format, arg); */ - PACE_UNUSED_ARG (stream); - PACE_UNUSED_ARG (format); - PACE_UNUSED_ARG (arg); - return -1; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_vprintf (const char * format, - va_list arg) -{ - /* return vfprintf (format, arg); */ - PACE_UNUSED_ARG (format); - PACE_UNUSED_ARG (arg); - return -1; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_vsprintf (char * s, - const char * format, - va_list arg) -{ - /* return vsprintf (s, format, arg);*/ - PACE_UNUSED_ARG (s); - PACE_UNUSED_ARG (format); - PACE_UNUSED_ARG (arg); - return -1; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/posix/stdlib.c b/PACE/pace/posix/stdlib.c deleted file mode 100644 index 041a8bd0bbe..00000000000 --- a/PACE/pace/posix/stdlib.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/stdlib.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/stdlib.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/stdlib.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/stdlib.h b/PACE/pace/posix/stdlib.h deleted file mode 100644 index 5e9b762e77b..00000000000 --- a/PACE/pace/posix/stdlib.h +++ /dev/null @@ -1,64 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/stdlib.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_STDLIB_H_POSIX -#define PACE_STDLIB_H_POSIX - -#include <stdlib.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_EXIT_FAILURE EXIT_FAILURE -#define PACE_EXIT_SUCCESS EXIT_SUCCESS -#define PACE_MB_CUR_MAX MB_CUR_MAX -#ifndef PACE_NULL -# define PACE_NULL NULL -#endif /* PACE_NULL */ -#define PACE_RAND_MAX RAND_MAX - -#ifndef PACE_DIV_T -#define PACE_DIV_T - typedef div_t pace_div_t; -#endif /* PACE_DIV_T */ - -#ifndef PACE_LDIV_T -#define PACE_LDIV_T - typedef ldiv_t pace_ldiv_t; -#endif /* PACE_LDIV_T */ - -#ifndef PACE_SIZE_T -#define PACE_SIZE_T - typedef size_t pace_size_t; -#endif /* PACE_SIZE_T */ - -#ifndef PACE_WCHAR_T -#define PACE_WCHAR_T - typedef wchar_t pace_wchar_t; -#endif /* PACE_WCHAR_T */ - -#if defined (PACE_HAS_CPLUSPLUS) -# ifndef PACE_BSEARCH_PF -# define PACE_BSEARCH_PF - typedef int (*pace_bsearch_pf) (const void*, const void*); -# endif /* PACE_BSEARCH_PF */ -#endif /* PACE_HAS_CPLUSPLUS */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_STDLIB_H_POSIX */ diff --git a/PACE/pace/posix/stdlib.inl b/PACE/pace/posix/stdlib.inl deleted file mode 100644 index eb8e7f578a0..00000000000 --- a/PACE/pace/posix/stdlib.inl +++ /dev/null @@ -1,323 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/stdlib.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include <stdlib.h> - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -void -pace_abort (void) -{ - abort (); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_abs (int val) -{ - return abs (val); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_atexit (void (*func)(void)) -{ - return atexit (func); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_atof (const char * str) -{ - return atof (str); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_atoi (const char * str) -{ - return atoi (str); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -long -pace_atol (const char * str) -{ - return atol (str); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -# if defined (PACE_HAS_CPLUSPLUS) -PACE_INLINE -void * -pace_bsearch (const void *key, const void *base, - size_t nel, size_t size, - pace_bsearch_pf compar) -{ - return bsearch (key, base, nel, size, compar); -} -# else /* ! PACE_HAS_CPLUSPLUS */ -PACE_INLINE -void * -pace_bsearch (const void *key, const void *base, - size_t nel, size_t size, - int (*compar)(const void *,const void *)) -{ - return bsearch (key, base, nel, size, compar); -} -# endif /* PACE_HAS_CPLUSPLUS */ -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -pace_div_t -pace_div (int numer, int denom) -{ - return div (numer, denom); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -void -pace_exit (int status) -{ - exit (status); - return; -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -char * -pace_getenv (const char * name) -{ - return getenv (name); -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -long int -pace_labs (long int j) -{ - return labs (j); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -pace_ldiv_t -pace_ldiv (long int numer, long int denom) -{ - return ldiv (numer, denom); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mblen (const char* s, pace_size_t n) -{ - return mblen (s, n); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -pace_size_t -pace_mbstowcs (pace_wchar_t* pwcs, - const char* s, - pace_size_t n) -{ - return mbstowcs (pwcs, s, n); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mbtowc (pace_wchar_t* pwc, - const char* s, - pace_size_t n) -{ - return mbtowc (pwc, s, n); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_CLS_UOF) -# if (PACE_HAS_CPLUSPLUS) -PACE_INLINE -void -pace_qsort (void * base, size_t nel, size_t width, - pace_bsearch_pf compar) -{ - qsort (base, nel, width, compar); -} -# else /* ! PACE_HAS_CPLUSPLUS */ -PACE_INLINE -void -pace_qsort (void * base, size_t nel, size_t width, - int (*compar)(const void *,const void *)) -{ - qsort (base, nel, width, compar); -} -# endif /* PACE_HAS_CPLUSPLUS */ -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_rand () -{ - return rand (); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -void -pace_srand (unsigned int seed) -{ - srand (seed); - return; -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLSR_UOF) -PACE_INLINE -int -pace_rand_r (unsigned int *seed) -{ -#if defined (PACE_HAS_REENTRANT) - return rand_r (seed); -#else /* ! PACE_HAS_REENTRANT */ - PACE_UNUSED_ARG (seed); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -#endif /* ! PACE_HAS_REENTRANT */ -} -#endif /* PACE_HAS_POSIX_CLSR_UOF */ - - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -double -pace_strtod (const char* nptr, - char** endptr) -{ - return strtod (nptr, endptr); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_strtol (const char* nptr, - char** endptr, - int base) -{ - return strtol (nptr, endptr, base); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -unsigned long int -pace_strtoul (const char* nptr, - char** endptr, - int base) -{ - return strtoul (nptr, endptr, base); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_system (const char* string) -{ - return system (string); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -pace_size_t -pace_wcstombs (char* s, - const pace_wchar_t* pwcs, - pace_size_t n) -{ - return wcstombs (s, pwcs, n); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_wctomb (char* s, pace_wchar_t wchar) -{ - return wctomb (s, wchar); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -/* Memory Management. */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -void * -pace_malloc (size_t size) -{ - return malloc (size); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -void * -pace_calloc (size_t nelem, size_t elsize) -{ - return calloc (nelem, elsize); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -void -pace_free (void * ptr) -{ - free (ptr); - return; -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -void * -pace_realloc (void * ptr, size_t size) -{ - return realloc (ptr, size); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ diff --git a/PACE/pace/posix/string.c b/PACE/pace/posix/string.c deleted file mode 100644 index 4d06077a947..00000000000 --- a/PACE/pace/posix/string.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/string.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/string.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/string.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/string.h b/PACE/pace/posix/string.h deleted file mode 100644 index f25fd8b077e..00000000000 --- a/PACE/pace/posix/string.h +++ /dev/null @@ -1,36 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/string.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_STRING_H_POSIX -#define PACE_STRING_H_POSIX - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#if !defined (PACE_NULL) -# define PACE_NULL NULL -#endif /* NULL */ - -#ifndef PACE_SIZE_T -#define PACE_SIZE_T - typedef size_t pace_size_t; -#endif /* PACE_SIZE_T */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_STRING_H_POSIX */ diff --git a/PACE/pace/posix/string.inl b/PACE/pace/posix/string.inl deleted file mode 100644 index a09022bf59e..00000000000 --- a/PACE/pace/posix/string.inl +++ /dev/null @@ -1,206 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/string.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include <string.h> -#include "pace/string.h" - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -void * -pace_memchr (const void *s, int c, pace_size_t n) -{ - return (void*) memchr (s, c, n); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_memcmp (const void *s1, const void *s2, pace_size_t n) -{ - return memcmp (s1, s2, n); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -void * -pace_memcpy (void * s1, const void * s2, pace_size_t n) -{ - return memcpy (s1, s2, n); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -void * -pace_memmove (void *s1, const void *s2, pace_size_t n) -{ - return memmove (s1, s2, n); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_BROKEN_INLINE -void * -pace_memset (void *s, int c, pace_size_t n) -{ - return memset (s, c, n); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_strcat (char * s1, const char * s2) -{ - return strcat (s1, s2); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_strncat (char * s1, const char * s2, size_t n) -{ - return strncat (s1, s2, n); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_strchr (const char * s, int c) -{ - return (char*) strchr (s, c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_strrchr (const char * s, int c) -{ - return (char*) strrchr (s, c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_BROKEN_INLINE -int -pace_strcmp (const char * s1, const char * s2) -{ - return strcmp (s1, s2); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_BROKEN_INLINE -int -pace_strncmp (const char * s1, const char * s2, size_t n) -{ - return strncmp (s1, s2, n); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_BROKEN_INLINE -char * -pace_strcpy (char * s1, const char * s2) -{ - return strcpy (s1, s2); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_strncpy (char * s1, const char * s2, size_t n) -{ - return strncpy (s1, s2, n); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_BROKEN_INLINE -size_t -pace_strcspn (const char * s1, const char * s2) -{ - return strcspn (s1, s2); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -size_t -pace_strspn (const char * s1, const char * s2) -{ - return strspn (s1, s2); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -size_t -pace_strlen (const char * s) -{ - return strlen (s); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_BROKEN_INLINE -char * -pace_strpbrk (const char * s1, const char * s2) -{ - return (char*) strpbrk (s1, s2); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_strstr (const char * s1, const char * s2) -{ - return (char*) strstr (s1, s2); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_strtok (char * s1, const char * s2) -{ - return strtok (s1, s2); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLSR_UOF) -PACE_INLINE -char * -pace_strtok_r (char * s, const char * sep, char ** lasts) -{ -# if defined (PACE_HAS_REENTRANT) - return strtok_r (s, sep, lasts); -# else /* ! PACE_HAS_REENTRANT */ - PACE_UNUSED_ARG (s); - PACE_UNUSED_ARG (sep); - PACE_UNUSED_ARG (lasts); - PACE_ERRNO_NO_SUPPORT (); - return 0; -# endif /* ! PACE_HAS_REENTRANT */ -} -#endif /* PACE_HAS_POSIX_CLSR_UOF */ diff --git a/PACE/pace/posix/termios.c b/PACE/pace/posix/termios.c deleted file mode 100644 index e828411f160..00000000000 --- a/PACE/pace/posix/termios.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/termios.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/termios.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/termios.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/termios.h b/PACE/pace/posix/termios.h deleted file mode 100644 index e2fdb0d8af8..00000000000 --- a/PACE/pace/posix/termios.h +++ /dev/null @@ -1,50 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/termios.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SYS_TERMIOS_H_POSIX -#define PACE_SYS_TERMIOS_H_POSIX - -#include "pace/sys/types.h" -#include <termios.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS) */ - -#ifndef PACE_CC_T -#define PACE_CC_T -typedef cc_t pace_cc_t; -#endif /* PACE_CC_T */ - -#ifndef PACE_SPEED_T -#define PACE_SPEED_T -typedef speed_t pace_speed_t; -#endif /* PACE_SPEED_T */ - -#ifndef PACE_TCFLAG_T -#define PACE_TCFLAG_T -typedef tcflag_t pace_tcflag_t; -#endif /* PACE_TCFLAG_T */ - -#ifndef PACE_TERMIOS -#define PACE_TERMIOS -typedef struct termios pace_termios; -#endif /* PACE_TERMIOS */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SYS_TERMIOS_H_POSIX */ diff --git a/PACE/pace/posix/termios.inl b/PACE/pace/posix/termios.inl deleted file mode 100644 index df12227a79e..00000000000 --- a/PACE/pace/posix/termios.inl +++ /dev/null @@ -1,109 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/termios.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/unistd.h" -#include <termios.h> - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -pace_speed_t -pace_cfgetospeed (const pace_termios *termiosp) -{ - return cfgetospeed (termiosp); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -int -pace_cfsetospeed (pace_termios *termios_p, pace_speed_t speed) -{ - return cfsetospeed (termios_p, speed); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -pace_speed_t -pace_cfgetispeed (const pace_termios *termios_p) -{ - return cfgetispeed (termios_p); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -int -pace_cfsetispeed (pace_termios *termios_p, pace_speed_t speed) -{ - return cfsetispeed (termios_p, speed); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -int -pace_tcdrain (PACE_HANDLE fildes) -{ - return tcdrain (fildes); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -int -pace_tcgetattr (PACE_HANDLE fildes, pace_termios *termios_p) -{ - return tcgetattr (fildes, termios_p); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -int -pace_tcflow (PACE_HANDLE fildes, int action) -{ - return tcflow (fildes, action); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -int -pace_tcflush (PACE_HANDLE fildes, int queue_selector) -{ - return tcflush (fildes, queue_selector); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -int -pace_tcsendbreak (PACE_HANDLE fildes, int duration) -{ - return tcsendbreak (fildes, duration); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -int -pace_tcsetattr (PACE_HANDLE fildes, - int optional_actions, - const pace_termios *termios_p) -{ - return tcsetattr (fildes, optional_actions, termios_p); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ diff --git a/PACE/pace/posix/time.c b/PACE/pace/posix/time.c deleted file mode 100644 index 08f00379305..00000000000 --- a/PACE/pace/posix/time.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/time.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/time.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/time.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/time.h b/PACE/pace/posix/time.h deleted file mode 100644 index 8fb12b9f360..00000000000 --- a/PACE/pace/posix/time.h +++ /dev/null @@ -1,95 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/time.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_TIME_H_POSIX -#define PACE_TIME_H_POSIX - -#if PACE_LINUX -# include "pace/emulation/time.h" -#endif /* PACE_LINUX */ - -#include <time.h> -#include "pace/signal.h" - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_CLK_TCK CLK_TCK -#define PACE_CLOCKS_PER_SEC CLOCKS_PER_SEC -#define PACE_CLOCK_REALTIME CLOCK_REALTIME -#ifndef PACE_NULL -#define PACE_NULL NULL -#endif /* PACE_NULL */ -#define PACE_TIMER_ABSTIME TIMER_ABSTIME - -#ifndef PACE_CLOCKID_T -#define PACE_CLOCKID_T -# if defined PACE_EMU_CLOCKID_T - typedef pace_emu_clockid_t pace_clockid_t; -# else - typedef clockid_t pace_clockid_t; -# endif /* PACE_LINUX */ -#endif /* PACE_CLOCKID_T */ - -#ifndef PACE_CLOCK_T -#define PACE_CLOCK_T - typedef clock_t pace_clock_t; -#endif /* PACE_CLOCK_T */ - -#ifndef PACE_SIZE_T -#define PACE_SIZE_T - typedef size_t pace_size_t; -#endif /* PACE_SIZE_T */ - -#ifndef PACE_TIMER_T -#define PACE_TIMER_T -# if defined PACE_EMU_TIMER_T - typedef pace_emu_timer_t pace_timer_t; -# else - typedef timer_t pace_timer_t; -# endif /* PACE_LINUX */ -#endif /* PACE_TIMER_T */ - -#ifndef PACE_TIME_T -#define PACE_TIME_T - typedef time_t pace_time_t; -#endif /* PACE_TIME_T */ - -#ifndef PACE_TM -#define PACE_TM - typedef struct tm pace_tm; -#endif /* PACE_TM */ - -#ifndef PACE_TIMESPEC -#define PACE_TIMESPEC - typedef struct timespec pace_timespec; -#endif /* PACE_TIMESPEC */ - -#ifndef PACE_ITIMERSPEC -#define PACE_ITIMERSPEC - typedef struct itimerspec pace_itimerspec; -#endif /* PACE_ITIMERSPEC */ - -#ifndef PACE_SIGEVENT -#define PACE_SIGEVENT - typedef struct sigevent pace_sigevent; -#endif /* PACE_SIGEVENT */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_TIME_H_POSIX */ diff --git a/PACE/pace/posix/time.inl b/PACE/pace/posix/time.inl deleted file mode 100644 index 2c8caadd847..00000000000 --- a/PACE/pace/posix/time.inl +++ /dev/null @@ -1,324 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/time.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/errno.h" -#include "pace/signal.h" -extern int errno; - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_asctime (const pace_tm * time) -{ - return asctime (time); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLSR_UOF) -PACE_INLINE -char * -pace_asctime_r (const pace_tm * time, char * buf) -{ -#if (PACE_LYNXOS) - /*lynxos 3.1 has POSIX.4 Draft 9 versions of this */ - if (asctime_r (time, buf, 26) == -1) /* ??? */ - return (char*) 0; - return buf; -#else - return asctime_r (time, buf); -#endif /* PACE_LYNXOS */ -} -#endif /* PACE_HAS_POSIX_CLSR_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -pace_clock_t -pace_clock (void) -{ - return clock (); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -double -pace_difftime (pace_time_t time1, pace_time_t time2) -{ - return difftime (time1, time2); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_clock_getres (pace_clockid_t clock_id, - pace_timespec * res) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (clock_id); - PACE_UNUSED_ARG (res); - return -1; -#else - return clock_getres (clock_id, res); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_clock_gettime (pace_clockid_t clock_id, - pace_timespec * tp) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (clock_id); - PACE_UNUSED_ARG (tp); - return -1; -#else - return clock_gettime (clock_id, tp); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_clock_settime (pace_clockid_t clock_id, - const pace_timespec * tp) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (clock_id); - PACE_UNUSED_ARG (tp); - return -1; -#else - return clock_settime (clock_id, PACE_NONCONST_ARG_CAST (struct timespec *) tp); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_ctime (const pace_time_t * clock) -{ - return ctime (clock); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLSR_UOF) -PACE_INLINE -char * -pace_ctime_r (const pace_time_t * clock, char * buf) -{ -# if (PACE_LYNXOS) - return ctime_r (clock, buf, 26); -# else - return ctime_r (clock, buf); -# endif /* PACE_SUNOS */ -} -#endif /* PACE_HAS_POSIX_CLSR_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -pace_tm * -pace_gmtime (const pace_time_t * clock) -{ - return gmtime (clock); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLSR_UOF) -PACE_INLINE -pace_tm * -pace_gmtime_r (const pace_time_t * clock, pace_tm * result) -{ -#if (PACE_LYNXOS) - /*lynxos 3.1 has POSIX.4 Draft 9 versions of these */ - if (gmtime_r (result, clock) == 0) - return (pace_tm*)0; - return result; /* ????? */ -#else - return gmtime_r (clock, result); -#endif /* PACE_LYNXOS */ -} -#endif /* PACE_HAS_POSIX_CLSR_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -pace_tm * -pace_localtime (const pace_time_t * clock) -{ - return localtime (clock); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLSR_UOF) -PACE_INLINE -pace_tm * -pace_localtime_r (const pace_time_t * clock, pace_tm * result) -{ -#if (PACE_LYNXOS) - /*lynxos 3.1 has POSIX.4 Draft 9 versions of these */ - if (localtime_r (result, clock) == 0) - return (pace_tm*)0; - return result; /* ????? */ -#else - return localtime_r (clock, result); -#endif /* PACE_LYNXOS */ -} -#endif /* PACE_HAS_POSIX_CLSR_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -time_t -pace_mktime (pace_tm * timeptr) -{ - return mktime (timeptr); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_nanosleep (const pace_timespec * rqtp, - pace_timespec * rmtp) -{ - return nanosleep (PACE_NONCONST_ARG_CAST (struct timespec *) rqtp, rmtp); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -size_t -pace_strftime (char *s, pace_size_t maxsize, - const char *format, - const pace_tm *timeptr) -{ - return strftime (s, maxsize, format, timeptr); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -time_t -pace_time (pace_time_t * tloc) -{ - return time (tloc); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_timer_create (pace_clockid_t clock_id, - pace_sigevent * evp, - pace_timer_t *timerid) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (clock_id); - PACE_UNUSED_ARG (evp); - PACE_UNUSED_ARG (timerid); - return -1; -#else - return timer_create (clock_id, evp, timerid); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_timer_delete (pace_timer_t timerid) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (timerid); - return -1; -#else - return timer_delete (timerid); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_timer_getoverrun (pace_timer_t timerid) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (timerid); - return -1; -#else - return timer_getoverrun (timerid); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_timer_gettime (pace_timer_t timerid, - pace_itimerspec * value) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (timerid); - PACE_UNUSED_ARG (value); - return -1; -#else - return timer_gettime (timerid, value); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#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) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (timerid); - PACE_UNUSED_ARG (flags); - PACE_UNUSED_ARG (value); - PACE_UNUSED_ARG (ovalue); - return -1; -#else - return timer_settime (timerid, flags, PACE_NONCONST_ARG_CAST (struct itimerspec *) value, ovalue); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -void -pace_tzset () -{ -# if defined (PACE_HAS_POSIX_PTHREAD_SEMANTICS) - tzset (); -# else /* ! PACE_HAS_POSIX_PTHREAD_SEMANTICS */ - PACE_ERRNO_NO_SUPPORT (); -# endif /* ! PACE_HAS_POSIX_PTHREAD_SEMANTICS */ - return; -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ diff --git a/PACE/pace/posix/times.c b/PACE/pace/posix/times.c deleted file mode 100644 index 3e47e331020..00000000000 --- a/PACE/pace/posix/times.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/times.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/sys/times.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/times.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/times.h b/PACE/pace/posix/times.h deleted file mode 100644 index 1aeebd76a29..00000000000 --- a/PACE/pace/posix/times.h +++ /dev/null @@ -1,39 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/times.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SYS_TIMES_H_POSIX -#define PACE_SYS_TIMES_H_POSIX - -#include <sys/times.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_CLOCK_T -#define PACE_CLOCK_T -typedef clock_t pace_clock_t; -#endif /* PACE_CLOCK_T */ - -#ifndef PACE_TMS -#define PACE_TMS -typedef struct tms pace_tms; -#endif /* PACE_TMS */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SYS_TIMES_H_POSIX */ diff --git a/PACE/pace/posix/times.inl b/PACE/pace/posix/times.inl deleted file mode 100644 index 5c808d1a7d0..00000000000 --- a/PACE/pace/posix/times.inl +++ /dev/null @@ -1,23 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/times.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -pace_clock_t -pace_times (pace_tms * buffer) -{ - return times (buffer); -} -#endif /* PACE_HAS_POSIX_MP_UOF */ diff --git a/PACE/pace/posix/types.h b/PACE/pace/posix/types.h deleted file mode 100644 index 9ce4e5c2c85..00000000000 --- a/PACE/pace/posix/types.h +++ /dev/null @@ -1,134 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/types.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#include <sys/types.h> -#include <pthread.h> - -#ifndef PACE_SYS_TYPES_H_POSIX -#define PACE_SYS_TYPES_H_POSIX - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - - /* For future upgradeability to wchar */ -#ifndef PACE_TCHAR -#define PACE_TCHAR - typedef char pace_tchar; -#endif /* PACE_TCHAR */ - -#ifndef PACE_HANDLE - typedef int PACE_HANDLE; -#endif /* PACE_HANDLE */ - -#ifndef PACE_INVALID_HANDLE -#define PACE_INVALID_HANDLE -1 -#endif /* PACE_INVALID_HANDLE */ - -#ifndef PACE_DEV_T -#define PACE_DEV_T - typedef dev_t pace_dev_t; -#endif /* PACE_DEV_T */ - -#ifndef PACE_GID_T -#define PACE_GID_T - typedef gid_t pace_gid_t; -#endif /* PACE_GID_T */ - -#ifndef PACE_INO_T -#define PACE_INO_T - typedef ino_t pace_ino_t; -#endif /* PACE_INO_T */ - -#ifndef PACE_MODE_T -#define PACE_MODE_T - typedef mode_t pace_mode_t; -#endif /* PACE_MODE_T */ - -#ifndef PACE_NLINK_T -#define PACE_NLINK_T - typedef nlink_t pace_nlink_t; -#endif /* PACE_NLINK_T */ - -#ifndef PACE_OFF_T -#define PACE_OFF_T - typedef off_t pace_off_t; -#endif /* PACE_OFF_T */ - -#ifndef PACE_PID_T -#define PACE_PID_T - typedef pid_t pace_pid_t; -#endif /* PACE_PID_T */ - -#ifndef PACE_PTHREAD_ATTR_T -#define PACE_PTHREAD_ATTR_T - typedef pthread_attr_t pace_pthread_attr_t; -#endif /* PACE_PTHREAD_ATTR_T */ - -#ifndef PACE_PTHREAD_CONDATTR_T -#define PACE_PTHREAD_CONDATTR_T - typedef pthread_condattr_t pace_pthread_condattr_t; -#endif /* PACE_PTHREAD_CONDATTR_T */ - -#ifndef PACE_PTHREAD_COND_T -#define PACE_PTHREAD_COND_T - typedef pthread_cond_t pace_pthread_cond_t; -#endif /* PACE_PTHREAD_COND_T */ - -#ifndef PACE_PTHREAD_KEY_T -#define PACE_PTHREAD_KEY_T - typedef pthread_key_t pace_pthread_key_t; -#endif /* PACE_PTHREAD_KEY_T */ - -#ifndef PACE_PTHREAD_MUTEXATTR_T -#define PACE_PTHREAD_MUTEXATTR_T - typedef pthread_mutexattr_t pace_pthread_mutexattr_t; -#endif /* PACE_PTHREAD_MUTEXATTR_T */ - -#ifndef PACE_PTHREAD_MUTEX_T -#define PACE_PTHREAD_MUTEX_T - typedef pthread_mutex_t pace_pthread_mutex_t; -#endif /* PACE_PTHREAD_MUTEX_T */ - -#ifndef PACE_PTHREAD_ONCE_T -#define PACE_PTHREAD_ONCE_T - typedef pthread_once_t pace_pthread_once_t; -#endif /* PACE_PTHREAD_ONCE_T */ - -#ifndef PACE_PTHREAD_T -#define PACE_PTHREAD_T - typedef pthread_t pace_pthread_t; -#endif /* PACE_PTHREAD_T */ - -#ifndef PACE_SIZE_T -#define PACE_SIZE_T - typedef size_t pace_size_t; -#endif /* PACE_SIZE_T */ - -#ifndef PACE_SSIZE_T -#define PACE_SSIZE_T - typedef ssize_t pace_ssize_t; -#endif /* PACE_SSIZE_T */ - -#ifndef PACE_UID_T -#define PACE_UID_T - typedef uid_t pace_uid_t; -#endif /* PACE_UID_T */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SYS_TYPES_H_POSIX */ diff --git a/PACE/pace/posix/unistd.c b/PACE/pace/posix/unistd.c deleted file mode 100644 index f8e1e9a4676..00000000000 --- a/PACE/pace/posix/unistd.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/unistd.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/unistd.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/unistd.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/unistd.h b/PACE/pace/posix/unistd.h deleted file mode 100644 index 0b79b75b43b..00000000000 --- a/PACE/pace/posix/unistd.h +++ /dev/null @@ -1,56 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/unistd.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_UNISTD_H_POSIX -#define PACE_UNISTD_H_POSIX - -#include "pace/sys/types.h" -#include <unistd.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_F_OK F_OK -#ifndef PACE_NULL -# define PACE_NULL NULL -#endif /* PACE_NULL */ -#define PACE_R_OK R_OK -#define PACE_SEEK_CUR SEEK_CUR -#define PACE_SEEK_END SEEK_END -#define PACE_SEEK_SET SEEK_SET -#define PACE_STDERR_FILENO STDERR_FILENO -#define PACE_STDIN_FILENO STDIN_FILENO -#define PACE_STDOUT_FILENO STDOUT_FILENO -#define PACE_W_OK W_OK -#define PACE_X_OK X_OK - -/* _POSIX _PC _SC Macros need to go here */ - -#ifndef PACE_SIZE_T -#define PACE_SIZE_T -typedef size_t pace_size_t; -#endif /* PACE_SIZE_T */ - -#ifndef PACE_SSIZE_T -#define PACE_SSIZE_T -typedef ssize_t pace_ssize_t; -#endif /* PACE_SSIZE_T */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_UNISTD_H_POSIX */ diff --git a/PACE/pace/posix/unistd.inl b/PACE/pace/posix/unistd.inl deleted file mode 100644 index d06564e25d0..00000000000 --- a/PACE/pace/posix/unistd.inl +++ /dev/null @@ -1,462 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/unistd.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include <unistd.h> -#include <stdarg.h> - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -void -pace__exit (int status) -{ - _exit (status); - return; -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_access (const char * path, int amode) -{ - return access (path, amode); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -unsigned int -pace_alarm (unsigned int seconds) -{ - return alarm (seconds); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_chdir (const char * path) -{ - return chdir (path); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FA_UOF) -PACE_INLINE -int -pace_chown (const char * path, uid_t owner, pace_gid_t group) -{ - return chown (path, owner, group); -} -#endif /* PACE_HAS_POSIX_FA_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_close (PACE_HANDLE fildes) -{ - return close (fildes); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FM_UOF) -PACE_INLINE -PACE_HANDLE -pace_dup (PACE_HANDLE fildes) -{ - return dup (fildes); -} -#endif /* PACE_HAS_POSIX_FM_UOF */ - -#if (PACE_HAS_POSIX_FM_UOF) -PACE_INLINE -PACE_HANDLE -pace_dup2 (PACE_HANDLE fildes, PACE_HANDLE fildes2) -{ - return dup2 (fildes, fildes2); -} -#endif /* PACE_HAS_POSIX_FM_UOF */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -int -pace_execv (const char * path, - char * const argv[]) -{ - return execv (path, argv); - /* if successful, this operation does NOT return */ -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -int -pace_execve (const char * path, - char * const argv[], - char * const envp[]) -{ - return execve (path, argv, envp); - /* if successful, this operation does NOT return */ -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -int -pace_execvp (const char * file, - char * const argv[]) -{ - return execvp (file, argv); - /* if successful, this operation does NOT return */ -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_fdatasync (PACE_HANDLE fildes) -{ - return fdatasync (fildes); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -pid_t -pace_fork () -{ - return fork (); -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -long -pace_fpathconf (PACE_HANDLE fildes, int name) -{ - return fpathconf (fildes, name); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_fsync (PACE_HANDLE fildes) -{ - return fsync (fildes); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_ftruncate (PACE_HANDLE fildes, pace_off_t length) -{ - return ftruncate (fildes, length); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -char * -pace_getcwd (char * buf, size_t size) -{ - return getcwd (buf, size); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -uid_t -pace_getegid () -{ - return getegid (); -} -#endif /* PACE_HAS_POSIX_UGR_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -uid_t -pace_geteuid () -{ - return geteuid (); -} -#endif /* PACE_HAS_POSIX_UGR_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -int -pace_getgroups (int gidsetsize, pace_gid_t grouplist[]) -{ - return getgroups (gidsetsize, grouplist); -} -#endif /* PACE_HAS_POSIX_UGR_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -uid_t -pace_getgid () -{ - return getgid (); -} -#endif /* PACE_HAS_POSIX_UGR_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -char* -pace_getlogin () -{ - return getlogin (); -} -#endif /* PACE_HAS_POSIX_UGR_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -int -pace_getlogin_r (char * name, size_t namesize) -{ -#if (PACE_SUNOS) || (PACE_LYNXOS) - if (getlogin_r (name, (int) namesize) == 0) - return errno; - return 0; -#else - return getlogin_r (name, namesize); -#endif /* SUN_OS */ -} -#endif /* PACE_HAS_POSIX_UGR_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -pid_t -pace_getpgrp () -{ - return getpgrp (); -} -#endif /* PACE_HAS_POSIX_UG_UOF */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -pid_t -pace_getpid () -{ - return getpid (); -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -pid_t -pace_getppid () -{ - return getppid (); -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -uid_t -pace_getuid () -{ - return getuid (); -} -#endif /* PACE_HAS_POSIX_UG_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -int -pace_isatty (int fildes) -{ - return isatty (fildes); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_link (const char * existing, const char * new_link) -{ - return link (existing, new_link); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FM_UOF) -PACE_INLINE -pace_off_t -pace_lseek (PACE_HANDLE fildes, pace_off_t offset, int whence) -{ - return lseek (fildes, offset, whence); -} -#endif /* PACE_HAS_POSIX_FM_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -long -pace_pathconf (const char * path, int name) -{ - return pathconf (path, name); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_pause () -{ - return pause (); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_P_UOF) -PACE_INLINE -int -pace_pipe (PACE_HANDLE fildes[2]) -{ - return pipe (fildes); -} -#endif /* PACE_HAS_POSIX_P_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -ssize_t -pace_read (PACE_HANDLE fildes, void * buf, size_t nbyte) -{ - return read (fildes, buf, nbyte); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_rmdir (const char * path) -{ - return rmdir (path); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -int -pace_setgid (pace_gid_t gid) -{ - return setgid (gid); -} -#endif /* PACE_HAS_POSIX_UG_UOF */ - -#if (PACE_HAS_POSIX_JC_UOF) -PACE_INLINE -int -pace_setpgid (pid_t pid, pid_t pgid) -{ - return setpgid (pid, pgid); -} -#endif /* PACE_HAS_POSIX_JC_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -pid_t -pace_setsid () -{ - return setsid (); -} -#endif /* PACE_HAS_POSIX_UG_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -int -pace_setuid (uid_t uid) -{ - return setuid (uid); -} -#endif /* PACE_HAS_POSIX_UG_UOF */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -unsigned int -pace_sleep (unsigned int seconds) -{ - return sleep (seconds); -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_SP_UOF) -PACE_INLINE -long -pace_sysconf (int name) -{ - return sysconf (name); -} -#endif /* PACE_HAS_POSIX_SP_UOF */ - -#if (PACE_HAS_POSIX_JC_UOF) -PACE_INLINE -pid_t -pace_tcgetpgrp (PACE_HANDLE fildes) -{ - return tcgetpgrp (fildes); -} -#endif /* PACE_HAS_POSIX_JC_UOF */ - -#if (PACE_HAS_POSIX_JC_UOF) -PACE_INLINE -int -pace_tcsetpgrp (PACE_HANDLE fildes, pid_t pgrp_id) -{ - return tcsetpgrp (fildes, pgrp_id); -} -#endif /* PACE_HAS_POSIX_JC_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -char * -pace_ttyname (PACE_HANDLE fildes) -{ - return ttyname (fildes); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_ttyname_r (PACE_HANDLE fildes, - char * name, - size_t namesize) -{ -#if (PACE_SUNOS) || (PACE_LYNXOS) - if (ttyname_r (fildes, name, (int) namesize) == 0) - return errno; - return 0; -#else - return ttyname_r (fildes, name, namesize); -#endif /* PACE_SUNOS */ -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_unlink (const char * path) -{ - return unlink (path); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -ssize_t -pace_write (PACE_HANDLE fildes, const void * buf, size_t nbyte) -{ - return write (fildes, buf, nbyte); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ diff --git a/PACE/pace/posix/utime.c b/PACE/pace/posix/utime.c deleted file mode 100644 index 864e8d422b1..00000000000 --- a/PACE/pace/posix/utime.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/utime.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/utime.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/utime.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/utime.h b/PACE/pace/posix/utime.h deleted file mode 100644 index 00018e31751..00000000000 --- a/PACE/pace/posix/utime.h +++ /dev/null @@ -1,35 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/utime.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_UTIME_H_POSIX -#define PACE_UTIME_H_POSIX - -#include "pace/sys/types.h" -#include <utime.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_UTIMBUF -#define PACE_UTIMBUF -typedef struct utimbuf pace_utimbuf; -#endif /* PACE_UTIMBUF */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_UTIME_H_POSIX */ diff --git a/PACE/pace/posix/utime.inl b/PACE/pace/posix/utime.inl deleted file mode 100644 index 589229d3b38..00000000000 --- a/PACE/pace/posix/utime.inl +++ /dev/null @@ -1,24 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/utime.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_utime (const char * path, - const pace_utimbuf * times) -{ - return utime (path, times); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ diff --git a/PACE/pace/posix/utsname.c b/PACE/pace/posix/utsname.c deleted file mode 100644 index 1fa1461795e..00000000000 --- a/PACE/pace/posix/utsname.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/utsname.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/sys/utsname.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/utsname.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/utsname.h b/PACE/pace/posix/utsname.h deleted file mode 100644 index 0e7d58e6f95..00000000000 --- a/PACE/pace/posix/utsname.h +++ /dev/null @@ -1,34 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/utsname.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SYS_UTSNAME_H_POSIX -#define PACE_SYS_UTSNAME_H_POSIX - -#include <sys/utsname.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_UTSNAME -#define PACE_UTSNAME -typedef struct utsname pace_utsname; -#endif /* PACE_UTSNAME */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SYS_UTSNAME_H_POSIX */ diff --git a/PACE/pace/posix/utsname.inl b/PACE/pace/posix/utsname.inl deleted file mode 100644 index 84797fd519e..00000000000 --- a/PACE/pace/posix/utsname.inl +++ /dev/null @@ -1,23 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/utsname.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_SP_UOF) -PACE_INLINE -int -pace_uname (pace_utsname * name) -{ - return uname (name); -} -#endif /* PACE_HAS_POSIX_SP_UOF */ diff --git a/PACE/pace/posix/wait.c b/PACE/pace/posix/wait.c deleted file mode 100644 index 786b8e59fbd..00000000000 --- a/PACE/pace/posix/wait.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/wait.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/sys/wait.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/wait.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/wait.h b/PACE/pace/posix/wait.h deleted file mode 100644 index 4bc233da5b5..00000000000 --- a/PACE/pace/posix/wait.h +++ /dev/null @@ -1,38 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/wait.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_WAIT_H_POSIX -#define PACE_WAIT_H_POSIX - -#include "pace/sys/types.h" - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_WEXITSTATUS WEXITSTATUS -#define PACE_WIFEXITED WIFEXITED -#define PACE_WIFSIGNALED WISIGNALED -#define PACE_WIFSTOPPED WIFSTOPPED -#define PACE_WNOHANG WNOHANG -#define PACE_WSTOPSIG WSTOPSIG -#define PACE_WTERMSIG WTERMSIG -#define PACE_WUNTRACED WUNTRACED - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_WAIT_H */ diff --git a/PACE/pace/posix/wait.inl b/PACE/pace/posix/wait.inl deleted file mode 100644 index f1f98ad4d5e..00000000000 --- a/PACE/pace/posix/wait.inl +++ /dev/null @@ -1,34 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/wait.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include <sys/wait.h> - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -pid_t -pace_wait (int * statloc) -{ - return wait (statloc); -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -pid_t -pace_waitpid (pid_t pid, int * statloc, int options) -{ - return waitpid (pid, statloc, options); -} -#endif /* PACE_HAS_POSIX_MP_UOF */ diff --git a/PACE/pace/pthread.h b/PACE/pace/pthread.h deleted file mode 100644 index 50fded9d2ad..00000000000 --- a/PACE/pace/pthread.h +++ /dev/null @@ -1,670 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/pthread.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_PTHREAD_H -#define PACE_PTHREAD_H - -#include "pace/config/defines.h" - -#if (PACE_HAS_POSIX) -# include "pace/posix/pthread.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/pthread.h" -#elif (PACE_WIN32) -# include "pace/win32/pthread.h" -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - - /** - PACE's implementation of the POSIX function pthread_atfork. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.1.3. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_atfork (void (*prepare) (void), - void (*parent) (void), - void (*child) (void)); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_attr_destroy. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_destroy (pace_pthread_attr_t * attr); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_attr_getdetachstate. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_getdetachstate (const pace_pthread_attr_t * attr, - int * detachstate); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_attr_getinheritsched. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.5.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_getinheritsched (const pace_pthread_attr_t * attr, - int * inheritsched); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_attr_getschedparam. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.5.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_getschedparam (const pace_pthread_attr_t * attr, - pace_sched_param * param); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_attr_getschedpolicy. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.5.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_getschedpolicy (const pace_pthread_attr_t * attr, - int * policy); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_attr_getscope. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.5.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_getscope (const pace_pthread_attr_t * attr, - int * contentionscope); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_attr_getstackaddr. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_getstackaddr (const pace_pthread_attr_t * attr, - void ** stackaddr); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_attr_getstacksize. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_getstacksize (const pace_pthread_attr_t * attr, - size_t * stacksize); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_attr_init. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_init (pace_pthread_attr_t * attr); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_attr_setdetachstate. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_setdetachstate (pace_pthread_attr_t * attr, - int detachstate); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_attr_setinheritsched. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.5.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_setinheritsched (pace_pthread_attr_t * attr, - int inheritsched); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_attr_setschedparam. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.5.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_setschedparam (pace_pthread_attr_t * attr, - const - pace_sched_param * param); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_attr_setschedpolicy. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.5.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_setschedpolicy (pace_pthread_attr_t * attr, - int policy); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_attr_setscope. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.5.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_setscope (pace_pthread_attr_t * attr, - int contentionscope); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_attr_setstackaddr. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_setstackaddr (pace_pthread_attr_t * attr, - void * stackaddr); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_attr_setstacksize. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_attr_setstacksize (pace_pthread_attr_t * attr, - size_t stacksize); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_cancel. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 18.2.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_cancel (pace_pthread_t thread); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_cleanup_push. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 18.2.3. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -# define pace_pthread_cleanup_push(routine, arg) \ - pthread_cleanup_push (routine, arg) -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_cleanup_pop. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 18.2.3. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -# define pace_pthread_cleanup_pop(execute) \ - pthread_cleanup_pop (execute) -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -# define PACE_PTHREAD_COND_INITIALIZER PTHREAD_COND_INITIALIZER - - /** - PACE's implementation of the POSIX function pthread_cond_broadcast. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.4.3. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_cond_broadcast (pace_pthread_cond_t * cond); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_cond_destroy. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.4.2. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_cond_destroy (pace_pthread_cond_t * cond); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_cond_init. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.4.2. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_cond_init (pace_pthread_cond_t * cond, - const pace_pthread_condattr_t * attr); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_cond_signal. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.4.3. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_cond_signal (pace_pthread_cond_t * cond); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_cond_timedwait. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.4.4. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_cond_timedwait (pthread_cond_t * cond, - pace_pthread_mutex_t * mutex, - const pace_timespec * abstime); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_cond_wait. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.4.4. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_cond_wait (pace_pthread_cond_t * cond, - pace_pthread_mutex_t * mutex); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_condattr_destroy. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.4.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_condattr_destroy (pace_pthread_condattr_t * attr); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_condattr_getpshared. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.4.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_condattr_getpshared (const pace_pthread_condattr_t * attr, - int * pshared); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_condattr_init. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.4.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_condattr_init (pace_pthread_condattr_t * attr); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_condattr_setpshared. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.4.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_condattr_setpshared (pace_pthread_condattr_t * attr, - int pshared); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_create. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.2. - */ -#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); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_detach. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.4. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_detach (pace_pthread_t thread); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_equal. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.7. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_equal (pace_pthread_t t1, pace_pthread_t t2); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_exit. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.5. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE void pace_pthread_exit (void * value_ptr); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_getschedparam. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.2.5. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_getschedparam (pace_pthread_t thread, - int * policy, - pace_sched_param * param); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_getspecific. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 17.1.2. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE void * pace_pthread_getspecific (pace_pthread_key_t key); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_join. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.3. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_join (pace_pthread_t thread, void ** value_ptr); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_key_create. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 17.1.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_key_create (pace_pthread_key_t * key, - void (*destructor)(void*)); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_key_delete. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 17.1.3. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_key_delete (pace_pthread_key_t key); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_kill. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.10. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - 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 - - /** - PACE's implementation of the POSIX function pthread_mutex_destroy. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.3.2. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_mutex_destroy (pace_pthread_mutex_t * mutex); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_mutex_getprioceiling. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.6.2. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_mutex_getprioceiling (pace_pthread_mutex_t * mutex, - int * prioceiling); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_mutex_init. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.3.2. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_mutex_init (pace_pthread_mutex_t * mutex, - const pace_pthread_mutexattr_t * attr); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_mutex_lock. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.3.3. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_mutex_lock (pace_pthread_mutex_t * mutex); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_mutex_setprioceiling. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.6.2. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_mutex_setprioceiling (pace_pthread_mutex_t * mutex, - int prioceiling, - int * old_ceiling); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_mutex_trylock. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.3.3. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_mutex_trylock (pthread_mutex_t * mutex); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_mutex_unlock. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.3.3. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_mutex_unlock (pace_pthread_mutex_t * mutex); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_mutexattr_destroy. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.3.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_mutexattr_destroy (pace_pthread_mutexattr_t * sttr); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function - pthread_mutexattr_getprioceiling. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.6.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_mutexattr_getprioceiling (pace_pthread_mutexattr_t * attr, - int * prioceiling); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_mutexattr_getprotocol. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.6.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_mutexattr_getprotocol - (const pace_pthread_mutexattr_t * attr, int * protocol); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function - pthread_mutexattr_setprioceiling. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.6.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_mutexattr_setprioceiling (pace_pthread_mutexattr_t * attr, - int prioceiling); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_mutexattr_setprotocol. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.6.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_mutexattr_setprotocol (pace_pthread_mutexattr_t * attr, - int protocol); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_mutexattr_getpshared. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.3.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int - pace_pthread_mutexattr_getpshared (const pace_pthread_mutexattr_t * attr, - int * pshared); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_mutexattr_init. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.3.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_mutexattr_init (pace_pthread_mutexattr_t * attr); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_mutexattr_setpshared. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.3.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_mutexattr_setpshared (pace_pthread_mutexattr_t * attr, - int pshared); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_once. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.8. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_once (pace_pthread_once_t * once_control, - void (*void_routine) (void)); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -# define PACE_PTHREAD_ONCE_INIT PTHREAD_ONCE_INIT - - /** - PACE's implementation of the POSIX function pthread_self. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 16.2.6. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE pace_pthread_t pace_pthread_self (); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_setcancelstate. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 18.2.2. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_setcancelstate (int state, int * oldstate); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_setcanceltype. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 18.2.2. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_setcanceltype (int type, int * oldtype); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_setschedparam. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.5.2. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_setschedparam (pace_pthread_t thread, - int policy, - const pace_sched_param * param); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_setspecific. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 17.1.2. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_setspecific (pace_pthread_key_t key, const void * value); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_sigmask. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.5. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_pthread_sigmask (int how, - const pace_sigset_t * set, - pace_sigset_t * oset); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function pthread_testcancel. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 18.2.2. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE void pace_pthread_testcancel (); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - -#if defined (PACE_HAS_INLINE) -# if (PACE_HAS_POSIX) -# include "pace/posix/pthread.inl" -# elif (PACE_VXWORKS) -# include "pace/vxworks/pthread.inl" -# elif (PACE_WIN32) -# include "pace/win32/pthread.inl" -# endif -#endif /* PACE_HAS_INLINE */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_PTHREAD_H */ diff --git a/PACE/pace/pwd.h b/PACE/pace/pwd.h deleted file mode 100644 index ff7e3685b02..00000000000 --- a/PACE/pace/pwd.h +++ /dev/null @@ -1,93 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/pwd.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_PWD_H -#define PACE_PWD_H - -#include "pace/config/defines.h" - -#if (PACE_HAS_POSIX) -# include "pace/posix/pwd.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/pwd.h" -#elif (PACE_WIN32) -# include "pace/win32/pwd.h" -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - - /** - PACE's implementation of the POSIX function getpwuid. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 9.2.2. - */ -#if (PACE_HAS_POSIX_SD_UOF) - PACE_INLINE pace_passwd * pace_getpwuid (pace_uid_t uid); -#endif /* PACE_HAS_POSIX_SD_UOF */ - - /** - PACE's implementation of the POSIX function getpwuid_r. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 9.2.2. - */ -#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); -#endif /* PACE_HAS_POSIX_SDR_UOF */ - /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ - - /** - PACE's implementation of the POSIX function getpwnam. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 9.2.2. - */ -#if (PACE_HAS_POSIX_SD_UOF) - PACE_INLINE pace_passwd * pace_getpwnam (const char * name); -#endif /* PACE_HAS_POSIX_SD_UOF */ - - /** - PACE's implementation of the POSIX function getpwnam_r. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 9.2.2. - */ -#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); -#endif /* PACE_HAS_POSIX_SDR_UOF */ - /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ - -#if defined (PACE_HAS_INLINE) -# if (PACE_HAS_POSIX) -# include "pace/posix/pwd.inl" -# elif (PACE_VXWORKS) -# include "pace/vxworks/pwd.inl" -# elif (PACE_WIN32) -# include "pace/win32/pwd.inl" -# endif -#endif /* PACE_HAS_INLINE */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_PWD_H */ diff --git a/PACE/pace/sched.h b/PACE/pace/sched.h deleted file mode 100644 index 083e3a3f05d..00000000000 --- a/PACE/pace/sched.h +++ /dev/null @@ -1,124 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/sched.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SCHED_H -#define PACE_SCHED_H - -#include "pace/config/defines.h" - -#if (PACE_HAS_POSIX) -# include "pace/posix/sched.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/sched.h" -#elif (PACE_WIN32) -# include "pace/win32/sched.h" -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - - /** - PACE's implementation of the POSIX function sched_get_priority_max. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.3.6. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sched_get_priority_max (int policy); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function sched_get_priority_min. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.3.6. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sched_get_priority_min (int policy); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function sched_getparam. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.3.2. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sched_getparam (pace_pid_t pid, - pace_sched_param * param); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function sched_rr_get_interval. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.3.6. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sched_rr_get_interval (pace_pid_t pid, - pace_timespec * interval); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function sched_setparam. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.3.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sched_setparam (pace_pid_t pid, - const pace_sched_param * param); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function sched_getscheduler. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.3.4. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sched_getscheduler (pace_pid_t pid); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function sched_setscheduler. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.3.3. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sched_setscheduler (pace_pid_t pid, - int policy, - const pace_sched_param * param); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function sched_yield. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 13.3.5. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sched_yield (); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if defined (PACE_HAS_INLINE) -# if (PACE_HAS_POSIX) -# include "pace/posix/sched.inl" -# elif (PACE_VXWORKS) -# include "pace/vxworks/sched.inl" -# elif (PACE_WIN32) -# include "pace/win32/sched.inl" -# endif -#endif /* PACE_HAS_INLINE */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SCHED_H */ diff --git a/PACE/pace/semaphore.h b/PACE/pace/semaphore.h deleted file mode 100644 index fd4bc1fcebe..00000000000 --- a/PACE/pace/semaphore.h +++ /dev/null @@ -1,132 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/semaphore.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SEMAPHORE_H -#define PACE_SEMAPHORE_H - -#include "pace/config/defines.h" - -#if (PACE_HAS_POSIX) -# include "pace/posix/semaphore.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/semaphore.h" -#elif (PACE_WIN32) -# include "pace/win32/semaphore.h" -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - - /** - PACE's implementation of the POSIX function sem_close. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.2.4. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sem_close (pace_sem_t * sem); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function sem_destroy. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.2.2. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sem_destroy (pace_sem_t * sem); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function sem_getvalue. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.2.8. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sem_getvalue (pace_sem_t * sem, int * sval); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function sem_init. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.2.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sem_init (pace_sem_t * sem, int pshared, unsigned int value); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function sem_open. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.2.3. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -# if defined (PACE_HAS_CPLUSPLUS) -# define pace_sem_open ::sem_open -# else -# define pace_sem_open sem_open -# endif /* PACE_HAS_CPLUSPLUS */ -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function sem_post. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.2.7. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sem_post (pace_sem_t * sem); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function sem_trywait. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.2.6. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sem_trywait (pace_sem_t * sem); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function sem_unlink. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.2.5. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sem_unlink (const char * name); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function sem_wait. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 11.2.6. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sem_wait (pace_sem_t * sem); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if defined (PACE_HAS_INLINE) -# if (PACE_HAS_POSIX) -# include "pace/posix/semaphore.inl" -# elif (PACE_VXWORKS) -# include "pace/vxworks/semaphore.inl" -# elif (PACE_WIN32) -# include "pace/win32/semaphore.inl" -# endif -#endif /* PACE_HAS_INLINE */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SEMAPHORE_H */ diff --git a/PACE/pace/setjmp.h b/PACE/pace/setjmp.h deleted file mode 100644 index 2d65710600e..00000000000 --- a/PACE/pace/setjmp.h +++ /dev/null @@ -1,87 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/setjmp.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SETJMP_H -#define PACE_SETJMP_H - -#include "pace/config/defines.h" - -#if (PACE_HAS_POSIX) -# include "pace/posix/setjmp.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/setjmp.h" -#elif (PACE_WIN32) -# include "pace/win32/setjmp.h" -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - - /** - PACE's implementation of the POSIX function setjmp. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.3.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_setjmp (pace_jmp_buf env); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function sigsetjmp. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.3.1. - */ -#if (PACE_HAS_POSIX_SIG_UOF) - PACE_INLINE int pace_sigsetjmp (pace_sigjmp_buf env, int savemask); -#endif /* PACE_HAS_POSIX_SIG_UOF */ - - /** - PACE's implementation of the POSIX function longjmp. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.3.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE void pace_longjmp (pace_jmp_buf env, int val); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function siglongjmp. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.3.1. - */ -#if (PACE_HAS_POSIX_SIG_UOF) - PACE_INLINE void pace_siglongjmp (pace_sigjmp_buf env, int val); -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#if defined (PACE_HAS_INLINE) -# if (PACE_HAS_POSIX) -# include "pace/posix/setjmp.inl" -# elif (PACE_VXWORKS) -# include "pace/vxworks/setjmp.inl" -# elif (PACE_WIN32) -# include "pace/win32/setjmp.inl" -# endif -#endif /* PACE_HAS_INLINE */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SETJMP_H */ diff --git a/PACE/pace/signal.h b/PACE/pace/signal.h deleted file mode 100644 index c1637b4e25b..00000000000 --- a/PACE/pace/signal.h +++ /dev/null @@ -1,196 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/signal.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#ifndef PACE_SIGNAL_H -#define PACE_SIGNAL_H - -#include "pace/config/defines.h" - -#if (PACE_HAS_POSIX) -# include "pace/posix/signal.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/signal.h" -#elif (PACE_WIN32) -# include "pace/win32/signal.h" -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - - /** - PACE's implementation of the POSIX function kill. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.2. - */ -#if (PACE_HAS_POSIX_SIG_UOF) - 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); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function sigaction. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.4. - */ -#if (PACE_HAS_POSIX_SIG_UOF) - PACE_INLINE int pace_sigaction (int sig, - const pace_sigaction_s * act, - pace_sigaction_s * oact); -#endif /* PACE_HAS_POSIX_SIG_UOF */ - - /** - PACE's implementation of the POSIX function sigaddset. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.3. - */ -#if (PACE_HAS_POSIX_SIG_UOF) - PACE_INLINE int pace_sigaddset (pace_sigset_t * set, int signo); -#endif /* PACE_HAS_POSIX_SIG_UOF */ - - /** - PACE's implementation of the POSIX function sigemptyset. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.3. - */ -#if (PACE_HAS_POSIX_SIG_UOF) - PACE_INLINE int pace_sigemptyset (pace_sigset_t * set); -#endif /* PACE_HAS_POSIX_SIG_UOF */ - - /** - PACE's implementation of the POSIX function sigdelset. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.3. - */ -#if (PACE_HAS_POSIX_SIG_UOF) - PACE_INLINE int pace_sigdelset (pace_sigset_t * set, int signo); -#endif /* PACE_HAS_POSIX_SIG_UOF */ - - /** - PACE's implementation of the POSIX function sigfillset. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.3. - */ -#if (PACE_HAS_POSIX_SIG_UOF) - PACE_INLINE int pace_sigfillset (pace_sigset_t * set); -#endif /* PACE_HAS_POSIX_SIG_UOF */ - - /** - PACE's implementation of the POSIX function sigismember. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.3. - */ -#if (PACE_HAS_POSIX_SIG_UOF) - 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); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function sigpending. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.6. - */ -#if (PACE_HAS_POSIX_SIG_UOF) - PACE_INLINE int pace_sigpending (pace_sigset_t * set); -#endif /* PACE_HAS_POSIX_SIG_UOF */ - - /** - PACE's implementation of the POSIX function sigprocmask. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.5. - */ -#if (PACE_HAS_POSIX_SIG_UOF) - PACE_INLINE int pace_sigprocmask (int how, - const pace_sigset_t * set, - pace_sigset_t * oset); -#endif /* PACE_HAS_POSIX_SIG_UOF */ - - /** - PACE's implementation of the POSIX function sigqueue. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.9. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sigqueue (pace_pid_t pid, - int signo, - const pace_sigval value); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function sigsuspend. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.7. - */ -#if (PACE_HAS_POSIX_SIG_UOF) - PACE_INLINE int pace_sigsuspend (const pace_sigset_t * sigmask); -#endif /* PACE_HAS_POSIX_SIG_UOF */ - - /** - PACE's implementation of the POSIX function sigtimedwait. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.8. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sigtimedwait (const pace_sigset_t * set, - pace_siginfo_t * info, - const pace_timespec * timeout); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function sigwait. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.8. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_sigwait (const pace_sigset_t * set, int * sig); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ - - /** - PACE's implementation of the POSIX function sigwaitinfo. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.3.8. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - 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) -# if (PACE_HAS_POSIX) -# include "pace/posix/signal.inl" -# elif (PACE_VXWORKS) -# include "pace/vxworks/signal.inl" -# elif (PACE_WIN32) -# include "pace/win32/signal.inl" -# endif -#endif /* PACE_HAS_INLINE */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SIGNAL_H */ diff --git a/PACE/pace/stddef.h b/PACE/pace/stddef.h deleted file mode 100644 index 457dddcd50f..00000000000 --- a/PACE/pace/stddef.h +++ /dev/null @@ -1,53 +0,0 @@ -/* $Id$ - -* ============================================================================ -* -* = LIBRARY -* pace -* -* = FILENAME -* pace/stddef.h -* -* = AUTHOR -* John Heitmann -* -* =========================================================================== */ - -#ifndef PACE_STDDEF_H -#define PACE_STDDEF_H - -#include <stddef.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_NULL -#define PACE_NULL NULL; -#endif /* PACE_NULL */ - -#ifndef PACE_OFFSETOF -# define PACE_OFFSETOF -# define pace_offsetof offsetof; -#endif /* PACE_OFFSETOF */ - -#ifndef PACE_PTRDIFF_T -#define PACE_PTRDIFF_T -typedef ptrdiff_t pace_ptrdiff_t; -#endif /* PACE_PTRDIFF_T */ - -#ifndef PACE_SIZE_T -#define PACE_SIZE_T -typedef size_t pace_size_t; -#endif /* PACE_SIZE_T */ - -#ifndef PACE_WCHAR_T -#define PACE_WCHAR_T -typedef wchar_t pace_wchar_t; -#endif /* PACE_WCHAR_T */ - -# if defined (PACE_HAS_CPLUSPLUS) -} -# endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_STDDEF_H */ diff --git a/PACE/pace/stdio.h b/PACE/pace/stdio.h deleted file mode 100644 index a35c636c2b6..00000000000 --- a/PACE/pace/stdio.h +++ /dev/null @@ -1,525 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/stdio.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_STDIO_H -#define PACE_STDIO_H - -#include "pace/config/defines.h" - -#if (PACE_HAS_POSIX) -# include "pace/posix/stdio.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/stdio.h" -#elif (PACE_WIN32) -# include "pace/win32/stdio.h" -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - - /** - PACE's implementation of the POSIX function clearerr. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE void pace_clearerr (PACE_FILE * stream); -#endif /* PACE_HAS_POSIX_DI_UOF */ - - /** - PACE's implementation of the POSIX function ctermid. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.7.1. - */ -#if (PACE_HAS_POSIX_DS_UOF) - PACE_INLINE char * pace_ctermid (char * s); -#endif /* PACE_HAS_POSIX_DS_UOF */ - - /** - PACE's implementation of the POSIX function fclose. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE int pace_fclose (PACE_FILE * stream); -#endif /* PACE_HAS_POSIX_DI_UOF */ - - /** - PACE's implementation of the POSIX function fdopen. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.2.2. - */ -#if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE PACE_FILE * pace_fdopen (int fildes, const char * type); -#endif /* PACE_HAS_POSIX_DI_UOF */ - - /** - PACE's implementation of the POSIX function ferror. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE int pace_ferror (PACE_FILE * stream); -#endif /* PACE_HAS_POSIX_DI_UOF */ - - /** - PACE's implementation of the POSIX function feof. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE int pace_feof (PACE_FILE * stream); -#endif /* PACE_HAS_POSIX_DI_UOF */ - - /** - PACE's implementation of the POSIX function fflush. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE int pace_fflush (PACE_FILE * stream); -#endif /* PACE_HAS_POSIX_DI_UOF */ - - /** - PACE's implementation of the POSIX function fileno. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.2.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE int pace_fileno (PACE_FILE * stream); -#endif /* PACE_HAS_POSIX_DI_UOF */ - - /** - PACE's implementation of the POSIX function fgetc. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) - 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_fpos_t * pos); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function fgets. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE char * pace_fgets (char * s, int n, PACE_FILE * stream); -#endif /* PACE_HAS_POSIX_DI_UOF */ - - /** - PACE's implementation of the POSIX function flockfile. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.2.6. - */ -#if (PACE_HAS_POSIX_FL_UOF) - PACE_INLINE void pace_flockfile (PACE_FILE * file); -#endif /* PACE_HAS_POSIX_FL_UOF */ - /* Requires PACE_HAS_REENTRANT. */ - - /** - PACE's implementation of the POSIX function fopen. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE PACE_FILE * pace_fopen (const char * filename, const char * mode); -#endif /* PACE_HAS_POSIX_DI_UOF */ - - /** - PACE's implementation of the POSIX function fprintf. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) -# define pace_fprintf fprintf -#endif /* PACE_HAS_POSIX_DI_UOF */ - /* int pace_fprintf (PACE_FILE *stream, const char *format, ...);*/ - - /** - PACE's implementation of the POSIX function fputc. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE int pace_fputc (int c, PACE_FILE * stream); -#endif /* PACE_HAS_POSIX_DI_UOF */ - - /** - PACE's implementation of the POSIX function fputs. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE int pace_fputs (const char * s, PACE_FILE * stream); -#endif /* PACE_HAS_POSIX_DI_UOF */ - - /** - PACE's implementation of the POSIX function fread. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#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); -#endif /* PACE_HAS_POSIX_DI_UOF */ - - /** - PACE's implementation of the POSIX function freopen. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE FILE * pace_freopen (const char * filename, - const char * mode, - PACE_FILE * stream); -#endif /* PACE_HAS_POSIX_DI_UOF */ - - /** - PACE's implementation of the POSIX function fscanf. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) -# if defined (PACE_HAS_CPLUSPLUS) -# define pace_fscanf ::fscanf -# else -# define pace_fscanf fscanf -# endif /* PACE_HAS_CPLUSPLUS */ -#endif /* PACE_HAS_POSIX_DI_UOF */ - /* int pace_scanf (const char *format, ... ); */ - - /** - PACE's implementation of the POSIX function fseek. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_FM_UOF) - 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); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function ftell. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_FM_UOF) - PACE_INLINE long pace_ftell (PACE_FILE * stream); -#endif /* PACE_HAS_POSIX_FM_UOF */ - - /** - PACE's implementation of the POSIX function ftrylockfile. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.2.6. - */ -#if (PACE_HAS_POSIX_FL_UOF) - PACE_INLINE int pace_ftrylockfile (PACE_FILE * file); -#endif /* PACE_HAS_POSIX_FL_UOF */ - /* Requires PACE_HAS_REENTRANT. */ - - /** - PACE's implementation of the POSIX function funlockfile. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.2.6. - */ -#if (PACE_HAS_POSIX_FL_UOF) - PACE_INLINE void pace_funlockfile (PACE_FILE * file); -#endif /* PACE_HAS_POSIX_FL_UOF */ - /* Requires PACE_HAS_REENTRANT. */ - - /** - 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); -#endif /* PACE_HAS_POSIX_DI_UOF */ - - /** - PACE's implementation of the POSIX function getc. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE int pace_getc (PACE_FILE * stream); -#endif /* PACE_HAS_POSIX_DI_UOF */ - - /** - PACE's implementation of the POSIX function getc_unlocked. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.2.7. - */ -#if (PACE_HAS_POSIX_FL_UOF) - PACE_INLINE int pace_getc_unlocked (PACE_FILE * stream); -#endif /* PACE_HAS_POSIX_FL_UOF */ - /* Requires PACE_HAS_REENTRANT. */ - - /** - PACE's implementation of the POSIX function getchar. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE int pace_getchar (); -#endif /* PACE_HAS_POSIX_DI_UOF */ - - /** - PACE's implementation of the POSIX function getchar_unlocked. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.2.7. - */ -#if (PACE_HAS_POSIX_FL_UOF) - PACE_INLINE int pace_getchar_unlocked (); -#endif /* PACE_HAS_POSIX_FL_UOF */ - /* Requires PACE_HAS_REENTRANT. */ - - /** - PACE's implementation of the POSIX function gets. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE char *pace_gets (char * s); -#endif /* PACE_HAS_POSIX_DI_UOF */ - - /** - PACE's implementation of the POSIX function perror. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE void pace_perror (const char * s); -#endif /* PACE_HAS_POSIX_DI_UOF */ - - /** - PACE's implementation of the POSIX function printf. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) -# define pace_printf printf -#endif /* PACE_HAS_POSIX_DI_UOF */ - /* int pace_printf (const char* format, ...); */ - - /** - PACE's implementation of the POSIX function putc. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE int pace_putc (int c, PACE_FILE * stream); -#endif /* PACE_HAS_POSIX_DI_UOF */ - - /** - PACE's implementation of the POSIX function putc_unlocked. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.2.7. - */ -#if (PACE_HAS_POSIX_FL_UOF) - PACE_INLINE int pace_putc_unlocked (int c, PACE_FILE * stream); -#endif /* PACE_HAS_POSIX_FL_UOF */ - /* Requires PACE_HAS_REENTRANT. */ - - /** - PACE's implementation of the POSIX function putchar. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE int pace_putchar (int c); -#endif /* PACE_HAS_POSIX_DI_UOF */ - - /** - PACE's implementation of the POSIX function putchar_unlocked. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.2.7. - */ -#if (PACE_HAS_POSIX_FL_UOF) - PACE_INLINE int pace_putchar_unlocked (int c); -#endif /* PACE_HAS_POSIX_FL_UOF */ - /* Requires PACE_HAS_REENTRANT. */ - - /** - PACE's implementation of the POSIX function puts. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE int pace_puts (const char * s); -#endif /* PACE_HAS_POSIX_DI_UOF */ - - /** - PACE's implementation of the POSIX function remove. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE int pace_remove (const char * path); -#endif /* PACE_HAS_POSIX_FS_UOF */ - - /** - PACE's implementation of the POSIX function rename. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.5.3. - */ -#if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE int pace_rename (const char * old_name, - const char * new_name); -#endif /* PACE_HAS_POSIX_FS_UOF */ - - /** - PACE's implementation of the POSIX function rewind. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_FM_UOF) - PACE_INLINE void pace_rewind (PACE_FILE * stream); -#endif /* PACE_HAS_POSIX_FM_UOF */ - - /** - PACE's implementation of the POSIX function sprintf. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) -# define pace_sprintf sprintf -#endif /* PACE_HAS_POSIX_DI_UOF */ - /* int pace_sprintf (char* s, const char* format, ...); */ - - /** - PACE's implementation of the POSIX function scanf. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) -# define pace_scanf scanf -#endif /* PACE_HAS_POSIX_DI_UOF */ - /* int pace_scanf (const char *format, ... ); */ - - /** - PACE's implementation of the POSIX function setbuf. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE void pace_setbuf (PACE_FILE * stream, char * buf); -#endif /* PACE_HAS_POSIX_DI_UOF */ - - - /** - 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); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - /** - PACE's implementation of the POSIX function sscanf. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) -# define pace_sscanf sscanf -#endif /* PACE_HAS_POSIX_DI_UOF */ - /* int pace_sscanf (const char *s, const char *format, ... ); */ - - /** - PACE's implementation of the POSIX function tmpfile. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE FILE * pace_tmpfile (); -#endif /* PACE_HAS_POSIX_FS_UOF */ - - /** - PACE's implementation of the POSIX function tmpnam. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE char * pace_tmpnam (char * s); -#endif /* PACE_HAS_POSIX_FS_UOF */ - - /** - PACE's implementation of the POSIX function ungetc. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) - 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); -#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); -#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); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if defined (PACE_HAS_INLINE) -# if (PACE_HAS_POSIX) -# include "pace/posix/stdio.inl" -# elif (PACE_VXWORKS) -# include "pace/vxworks/stdio.inl" -# elif (PACE_WIN32) -# include "pace/win32/stdio.inl" -# endif -#endif /* PACE_HAS_INLINE */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_STDIO_H */ diff --git a/PACE/pace/stdlib.h b/PACE/pace/stdlib.h deleted file mode 100644 index c968d8aba03..00000000000 --- a/PACE/pace/stdlib.h +++ /dev/null @@ -1,299 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/stdlib.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_STDLIB_H -#define PACE_STDLIB_H - -#include "pace/config/defines.h" -#include "pace/unistd.h" - -#if (PACE_HAS_POSIX) -# include "pace/posix/stdlib.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/stdlib.h" -#elif (PACE_WIN32) -# include "pace/win32/stdlib.h" -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - - /** - C std 7.20.4.1 - */ -#if (PACE_HAS_POSIX_SIG_UOF) - PACE_INLINE void pace_abort (void); -#endif /* PACE_HAS_POSIX_SIG_UOF */ - - /** - PACE's implementation of the POSIX function abs. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - 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)); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function atof. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE double pace_atof (const char * str); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function atoi. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_atoi (const char * str); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function atol. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE long pace_atol (const char * str); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function bsearch. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#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 *)); -#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); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function exit. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_MP_UOF) - PACE_INLINE void pace_exit (int status); -#endif /* PACE_HAS_POSIX_MP_UOF */ - - /** - PACE's implementation of the POSIX function getenv. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.6.1. - */ -#if (PACE_HAS_POSIX_MP_UOF) - 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); -#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); -#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); -#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); -#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); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function qsort. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#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 *)); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function rand. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_rand (); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function srand. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE void pace_srand (unsigned int seed); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function rand_r. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.3.8. - */ -#if (PACE_HAS_POSIX_CLSR_UOF) - PACE_INLINE int pace_rand_r (unsigned int * seed); -#endif /* PACE_HAS_POSIX_CLSR_UOF */ - /* Requires PACE_HAS_REENTRANT. */ - - /** - C std ref. 7.20.1.3 - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - 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); -#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); -#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); -#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); -#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); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - - /* Memory Management */ - - /** - PACE's implementation of the POSIX function malloc. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE void * pace_malloc (size_t size); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function calloc. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE void * pace_calloc (size_t nelem, size_t elsize); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function free. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE void pace_free (void * ptr); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function realloc. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE void * pace_realloc (void * ptr, size_t size); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if defined (PACE_HAS_INLINE) -# if (PACE_HAS_POSIX) -# include "pace/posix/stdlib.inl" -# elif (PACE_VXWORKS) -# include "pace/vxworks/stdlib.inl" -# elif (PACE_WIN32) -# include "pace/win32/stdlib.inl" -# endif -#endif /* PACE_HAS_INLINE */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_STDLIB_H */ diff --git a/PACE/pace/string.h b/PACE/pace/string.h deleted file mode 100644 index 0d731611041..00000000000 --- a/PACE/pace/string.h +++ /dev/null @@ -1,222 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/string.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_STRING_H -#define PACE_STRING_H - -#include "pace/config/defines.h" -#include "pace/unistd.h" - -#if (PACE_HAS_POSIX) -# include "pace/posix/string.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/string.h" -#elif (PACE_WIN32) -# include "pace/win32/string.h" -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - - /** - 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); -#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); -#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); -#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); -#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); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function strcat. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE char * pace_strcat (char * s1, const char * s2); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function strncat. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE char * pace_strncat (char * s1, const char * s2, size_t n); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function strchr. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE char * pace_strchr (const char * s, int c); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function strrchr. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE char * pace_strrchr (const char * s, int c); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function strcmp. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_strcmp (const char * s1, const char * s2); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function strncmp. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE int pace_strncmp (const char * s1, const char * s2, size_t n); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function strcpy. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE char * pace_strcpy (char * s1, const char * s2); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function strncpy. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE char * pace_strncpy (char * s1, const char * s2, size_t n); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function strcspn. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE size_t pace_strcspn (const char * s1, const char * s2); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function strspn. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE size_t pace_strspn (const char * s1, const char * s2); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function strlen. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE size_t pace_strlen (const char * s); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function strpbrk. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE char * pace_strpbrk (const char * s1, const char * s2); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function strstr. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE char * pace_strstr (const char * s1, const char * s2); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function strtok. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE char * pace_strtok (char * s1, const char * s2); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function strtok_r. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.3.3. - */ -#if (PACE_HAS_POSIX_CLSR_UOF) - PACE_INLINE char * pace_strtok_r (char * s, - const char * sep, - char ** lasts); -#endif /* PACE_HAS_POSIX_CLSR_UOF */ - /* Requires PACE_HAS_REENTRANT. */ - - -#if defined (PACE_HAS_INLINE) -# if (PACE_HAS_POSIX) -# include "pace/posix/string.inl" -# elif (PACE_VXWORKS) -# include "pace/vxworks/string.inl" -# elif (PACE_WIN32) -# include "pace/win32/string.inl" -# endif -#endif /* PACE_HAS_INLINE */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_STRING_H */ diff --git a/PACE/pace/sys/mman.h b/PACE/pace/sys/mman.h deleted file mode 100644 index 955cb8df851..00000000000 --- a/PACE/pace/sys/mman.h +++ /dev/null @@ -1,150 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/sys/mman.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SYS_MMAN_H -#define PACE_SYS_MMAN_H - -#include "pace/config/defines.h" - -#if (PACE_HAS_POSIX) -# include "pace/posix/mman.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/mman.h" -#elif (PACE_WIN32) -# include "pace/win32/mman.h" -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - - /** - PACE's implementation of the POSIX function mlock. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 12.1.2. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_mlock (const void * addr, pace_size_t len); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function mlockall. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 12.1.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_mlockall (int flags); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function mmap. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 12.2.1. - */ -#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); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function mprotect. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 12.2.3. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_mprotect (void * addr, - pace_size_t len, - int prot); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function msync. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 12.2.4. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_msync (void * addr, - pace_size_t len, - int flags); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function munlock. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 12.1.2. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_munlock (const void * addr, pace_size_t len); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function munlockall. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 12.1.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_munlockall (); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function munmap. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 12.2.2. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_munmap (void * addr, pace_size_t len); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function shm_open. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 12.3.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - 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. */ - - /** - PACE's implementation of the POSIX function shm_open. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 12.3.2. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_shm_unlink (const char * name); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - /* Requires PACE_POSIX_C_SOURCE > 2. */ - -#if defined (PACE_HAS_INLINE) -# if (PACE_HAS_POSIX) -# include "pace/posix/mman.inl" -# elif (PACE_VXWORKS) -# include "pace/vxworks/mman.inl" -# elif (PACE_WIN32) -# include "pace/win32/mman.inl" -# endif -#endif /* PACE_HAS_INLINE */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SYS_MMAN_H */ diff --git a/PACE/pace/sys/stat.h b/PACE/pace/sys/stat.h deleted file mode 100644 index 68d638b5ef8..00000000000 --- a/PACE/pace/sys/stat.h +++ /dev/null @@ -1,77 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/sys/stat.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SYS_STAT_H -#define PACE_SYS_STAT_H - -#include "pace/config/defines.h" -#include "pace/sys/types.h" - - -#if (PACE_HAS_POSIX) -# include "pace/posix/stat.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/stat.h" -#elif (PACE_WIN32) -# include "pace/win32/stat.h" -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#if (PACE_HAS_POSIX_FA_UOF) - 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 (int fildes, pace_mode_t mode); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE int pace_fstat (int 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); -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_F_UOF) - 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); -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FA_UOF) - PACE_INLINE pace_mode_t pace_umask (pace_mode_t cmask); -#endif /* PACE_HAS_POSIX_FA_UOF */ - -#if defined (PACE_HAS_INLINE) -# if (PACE_HAS_POSIX) -# include "pace/posix/stat.inl" -# elif (PACE_VXWORKS) -# include "pace/vxworks/stat.inl" -# elif (PACE_WIN32) -# include "pace/win32/stat.inl" -# endif -#endif /* PACE_HAS_INLINE */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SYS_STAT_H */ diff --git a/PACE/pace/sys/times.h b/PACE/pace/sys/times.h deleted file mode 100644 index ea74055dc62..00000000000 --- a/PACE/pace/sys/times.h +++ /dev/null @@ -1,51 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/sys/times.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SYS_TIMES_H -#define PACE_SYS_TIMES_H - -#include "pace/config/defines.h" - -#if (PACE_HAS_POSIX) -# include "pace/posix/times.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/times.h" -#elif (PACE_WIN32) -# include "pace/win32/times.h" -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#if (PACE_HAS_POSIX_MP_UOF) - PACE_INLINE pace_clock_t pace_times (pace_tms * buffer); -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if defined (PACE_HAS_INLINE) -# if (PACE_HAS_POSIX) -# include "pace/posix/times.inl" -# elif (PACE_VXWORKS) -# include "pace/vxworks/times.inl" -# elif (PACE_WIN32) -# include "pace/win32/times.inl" -# endif -#endif /* PACE_HAS_INLINE */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SYS_TIMES_H */ diff --git a/PACE/pace/sys/types.h b/PACE/pace/sys/types.h deleted file mode 100644 index e668be409d7..00000000000 --- a/PACE/pace/sys/types.h +++ /dev/null @@ -1,37 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/sys/types.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SYS_TYPES_H -#define PACE_SYS_TYPES_H - -#include "pace/config/defines.h" - -#if (PACE_HAS_POSIX) -# include "pace/posix/types.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/types.h" -#elif (PACE_WIN32) -# include "pace/win32/types.h" -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SYS_TYPES_H */ diff --git a/PACE/pace/sys/utsname.h b/PACE/pace/sys/utsname.h deleted file mode 100644 index d85ff741223..00000000000 --- a/PACE/pace/sys/utsname.h +++ /dev/null @@ -1,51 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/sys/utsname.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SYS_UTSNAME_H -#define PACE_SYS_UTSNAME_H - -#include "pace/config/defines.h" - -#if (PACE_HAS_POSIX) -# include "pace/posix/utsname.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/utsname.h" -#elif (PACE_WIN32) -# include "pace/win32/utsname.h" -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#if (PACE_HAS_POSIX_SP_UOF) - PACE_INLINE int pace_uname (pace_utsname * name); -#endif /* PACE_HAS_POSIX_SP_UOF */ - -#if defined (PACE_HAS_INLINE) -# if (PACE_HAS_POSIX) -# include "pace/posix/utsname.inl" -# elif (PACE_VXWORKS) -# include "pace/vxworks/utsname.inl" -# elif (PACE_WIN32) -# include "pace/win32/utsname.inl" -# endif -#endif /* PACE_HAS_INLINE */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SYS_UTSNAME_H */ diff --git a/PACE/pace/sys/wait.h b/PACE/pace/sys/wait.h deleted file mode 100644 index 4a902ce3e93..00000000000 --- a/PACE/pace/sys/wait.h +++ /dev/null @@ -1,67 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/sys/wait.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_WAIT_H -#define PACE_WAIT_H - -#include "pace/config/defines.h" -#include "pace/sys/types.h" - -#if (PACE_HAS_POSIX) -# include "pace/posix/wait.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/wait.h" -#elif (PACE_WIN32) -# include "pace/win32/wait.h" -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - /** - PACE's implementation of the POSIX function wait. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.2.1. - */ -#if (PACE_HAS_POSIX_MP_UOF) - PACE_INLINE pid_t pace_wait (int * statloc); -#endif /* PACE_HAS_POSIX_MP_UOF */ - - /** - PACE's implementation of the POSIX function waitpid. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.2.1. - */ -#if (PACE_HAS_POSIX_MP_UOF) - PACE_INLINE pid_t pace_waitpid (pid_t pid, - int * statloc, - int options); -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if defined (PACE_HAS_INLINE) -# if (PACE_HAS_POSIX) -# include "pace/posix/wait.inl" -# elif (PACE_VXWORKS) -# include "pace/vxworks/wait.inl" -# elif (PACE_WIN32) -# include "pace/win32/wait.inl" -# endif -#endif /* PACE_HAS_INLINE */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_WAIT_H */ diff --git a/PACE/pace/termios.h b/PACE/pace/termios.h deleted file mode 100644 index 1986f3ded21..00000000000 --- a/PACE/pace/termios.h +++ /dev/null @@ -1,140 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/termios.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SYS_TERMIOS_H -#define PACE_SYS_TERMIOS_H - -#include "pace/config/defines.h" - -#if (PACE_HAS_POSIX) -# include "pace/posix/termios.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/termios.h" -#elif (PACE_WIN32) -# include "pace/win32/termios.h" -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - - /** - PACE's implementation of the POSIX function cfgetospeed. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - 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); -#endif /* PACE_HAS_POSIX_DS_UOF */ - - /** - PACE's implementation of the POSIX function cfsetospeed. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - 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); -#endif /* PACE_HAS_POSIX_DS_UOF */ - - /** - PACE's implementation of the POSIX function cfgetispeed. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - 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); -#endif /* PACE_HAS_POSIX_DS_UOF */ - - /** - PACE's implementation of the POSIX function cfsetispeed. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - 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); -#endif /* PACE_HAS_POSIX_DS_UOF */ - - /** - PACE's implementation of the POSIX function tcdrain. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 7.2.2. - */ -#if (PACE_HAS_POSIX_DS_UOF) - PACE_INLINE int pace_tcdrain (PACE_HANDLE fildes); -#endif /* PACE_HAS_POSIX_DS_UOF */ - - /** - PACE's implementation of the POSIX function tcflow. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - 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); -#endif /* PACE_HAS_POSIX_DS_UOF */ - - /** - PACE's implementation of the POSIX function tcflush. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - 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); -#endif /* PACE_HAS_POSIX_DS_UOF */ - - /** - PACE's implementation of the POSIX function tcgetattr. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - 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); -#endif /* PACE_HAS_POSIX_DS_UOF */ - - /** - PACE's implementation of the POSIX function tcsendbreak. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - 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); -#endif /* PACE_HAS_POSIX_DS_UOF */ - - /** - PACE's implementation of the POSIX function tcsetattr. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - 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); -#endif /* PACE_HAS_POSIX_DS_UOF */ - - -#if defined (PACE_HAS_INLINE) -# if (PACE_HAS_POSIX) -# include "pace/posix/termios.inl" -# elif (PACE_VXWORKS) -# include "pace/vxworks/termios.inl" -# elif (PACE_WIN32) -# include "pace/win32/termios.inl" -# endif -#endif /* PACE_HAS_INLINE */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SYS_TERMIOS_H */ diff --git a/PACE/pace/time.h b/PACE/pace/time.h deleted file mode 100644 index ede0b9c5b6b..00000000000 --- a/PACE/pace/time.h +++ /dev/null @@ -1,270 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/time.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_TIME_H -#define PACE_TIME_H - -#include "pace/config/defines.h" - -#if (PACE_HAS_POSIX) -# include "pace/posix/time.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/time.h" -#elif (PACE_WIN32) -# include "pace/win32/time.h" -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - - /** - PACE's implementation of the POSIX function asctime. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE char * pace_asctime (const pace_tm * time); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function asctime_r. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1.1. - */ -#if (PACE_HAS_POSIX_CLSR_UOF) - PACE_INLINE char * pace_asctime_r (const pace_tm * tm, char * buf); -#endif /* PACE_HAS_POSIX_CLSR_UOF */ - /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ - - - /** - C std 7.23.2.1 - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - 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); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function clock_getres. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 14.2.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_clock_getres (pace_clockid_t clock_id, - pace_timespec * res); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function clock_gettime. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 14.2.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_clock_gettime (pace_clockid_t clock_id, - pace_timespec * tp); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function clock_settime. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 14.2.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_clock_settime (pace_clockid_t clock_id, - const pace_timespec * tp); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function ctime. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE char * pace_ctime (const pace_time_t * clock); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function ctime_r. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.3.5. - */ -#if (PACE_HAS_POSIX_CLSR_UOF) - 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. */ - - /** - PACE's implementation of the POSIX function gmtime. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE pace_tm * pace_gmtime (const pace_time_t * clock); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function gmtime_r. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.3.6. - */ -#if (PACE_HAS_POSIX_CLSR_UOF) - 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. */ - - /** - PACE's implementation of the POSIX function localtime. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE pace_tm * pace_localtime (const time_t * clock); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function localtime_r. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.3.7. - */ -#if (PACE_HAS_POSIX_CLSR_UOF) - 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. */ - - /** - PACE's implementation of the POSIX function mktime. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE pace_time_t pace_mktime (pace_tm * timeptr); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function nanosleep. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 14.2.5. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_nanosleep (const pace_timespec * rqtp, - pace_timespec * rmtp); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function strftime. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.1. - */ -#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); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function time. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.5.1. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE pace_time_t pace_time (pace_time_t *tloc); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - /** - PACE's implementation of the POSIX function timer_create. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 14.2.2. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_timer_create (pace_clockid_t clock_id, - pace_sigevent * evp, - pace_timer_t * timerid); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function timer_delete. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 14.2.3. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_timer_delete (pace_timer_t timerid); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function timer_getoverrun. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 14.2.4. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_timer_getoverrun (pace_timer_t timerid); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function timer_gettime. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 14.2.4. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_timer_gettime (pace_timer_t timerid, - pace_itimerspec * value); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function timer_settime. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 14.2.4. - */ -#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); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function tzset. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 8.3.2. - */ -#if (PACE_HAS_POSIX_CLS_UOF) - PACE_INLINE void pace_tzset (); -#endif /* PACE_HAS_POSIX_CLS_UOF */ - /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ - -#if defined (PACE_HAS_INLINE) -# if (PACE_HAS_POSIX) -# include "pace/posix/time.inl" -# elif (PACE_VXWORKS) -# include "pace/vxworks/time.inl" -# elif (PACE_WIN32) -# include "pace/win32/time.inl" -# endif -#endif /* PACE_HAS_INLINE */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_TIME_H */ diff --git a/PACE/pace/unistd.h b/PACE/pace/unistd.h deleted file mode 100644 index 3ddfc355649..00000000000 --- a/PACE/pace/unistd.h +++ /dev/null @@ -1,505 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/unistd.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_UNISTD_H -#define PACE_UNISTD_H - -#include "pace/config/defines.h" - -#if (PACE_HAS_POSIX) -# include "pace/posix/unistd.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/unistd.h" -#elif (PACE_WIN32) -# include "pace/win32/unistd.h" -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - - /** - PACE's implementation of the POSIX function _exit. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.2.2. - */ -#if (PACE_HAS_POSIX_MP_UOF) - PACE_INLINE void pace__exit (int status); -#endif /* PACE_HAS_POSIX_MP_UOF */ - - /** - PACE's implementation of the POSIX function access. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.6.3. - */ -#if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE int pace_access (const char * path, int amode); -#endif /* PACE_HAS_POSIX_FS_UOF */ - - /** - PACE's implementation of the POSIX function alarm. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.4.1. - */ -#if (PACE_HAS_POSIX_SIG_UOF) - PACE_INLINE unsigned int pace_alarm (unsigned int seconds); -#endif /* PACE_HAS_POSIX_SIG_UOF */ - - /** - PACE's implementation of the POSIX function chdir. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.2.1. - */ -#if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE int pace_chdir (const char * path); -#endif /* PACE_HAS_POSIX_FS_UOF */ - - /** - PACE's implementation of the POSIX function chown. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.6.5. - */ -#if (PACE_HAS_POSIX_FA_UOF) - PACE_INLINE int pace_chown (const char * path, uid_t owner, - pace_gid_t group); -#endif /* PACE_HAS_POSIX_FA_UOF */ - - /** - PACE's implementation of the POSIX function close. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 6.3.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE int pace_close (PACE_HANDLE fildes); -#endif /* PACE_HAS_POSIX_DI_UOF */ - - /** - PACE's implementation of the POSIX function dup. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 6.2.1. - */ -#if (PACE_HAS_POSIX_FM_UOF) - PACE_INLINE PACE_HANDLE pace_dup (PACE_HANDLE fildes); -#endif /* PACE_HAS_POSIX_FM_UOF */ - - /** - PACE's implementation of the POSIX function dup2. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 6.2.1. - */ -#if (PACE_HAS_POSIX_FM_UOF) - PACE_INLINE PACE_HANDLE pace_dup2 (PACE_HANDLE fildes, PACE_HANDLE fildes2); -#endif /* PACE_HAS_POSIX_FM_UOF */ - - /** - PACE's implementation of the POSIX function execl. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.1.2. - */ -#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's implementation of the POSIX function execle. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.1.2. - */ -#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's implementation of the POSIX function execlp. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.1.2. - */ -#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's implementation of the POSIX function execv. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.1.2. - */ -#if (PACE_HAS_POSIX_MP_UOF) - PACE_INLINE int pace_execv (const char * path, char * const argv[]); -#endif /* PACE_HAS_POSIX_MP_UOF */ - - /** - PACE's implementation of the POSIX function execve. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.1.2. - */ -#if (PACE_HAS_POSIX_MP_UOF) - PACE_INLINE int pace_execve (const char * path, char * const argv[], - char * const envp[]); -#endif /* PACE_HAS_POSIX_MP_UOF */ - - /** - PACE's implementation of the POSIX function execvp. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.1.2. - */ -#if (PACE_HAS_POSIX_MP_UOF) - PACE_INLINE int pace_execvp (const char * file, char * const argv[]); -#endif /* PACE_HAS_POSIX_MP_UOF */ - - /** - PACE's implementation of the POSIX function fdatasync. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 6.6.2. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_fdatasync (PACE_HANDLE fildes); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function fork. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.1.1. - */ -#if (PACE_HAS_POSIX_MP_UOF) - PACE_INLINE pace_pid_t pace_fork (); -#endif /* PACE_HAS_POSIX_MP_UOF */ - - /** - PACE's implementation of the POSIX function fpathconf. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.7.1. - */ -#if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE long pace_fpathconf (PACE_HANDLE fildes, int name); -#endif /* PACE_HAS_POSIX_FS_UOF */ - - /** - PACE's implementation of the POSIX function fsync. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 6.6.1. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_fsync (PACE_HANDLE fildes); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function ftruncate. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.6.7. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - PACE_INLINE int pace_ftruncate (PACE_HANDLE fildes, pace_off_t length); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - /** - PACE's implementation of the POSIX function getcwd. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.2.2. - */ -#if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE char * pace_getcwd (char * buf, size_t size); -#endif /* PACE_HAS_POSIX_FS_UOF */ - - /** - PACE's implementation of the POSIX function getegid. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.2.1. - */ -#if (PACE_HAS_POSIX_UG_UOF) - PACE_INLINE uid_t pace_getegid (); -#endif /* PACE_HAS_POSIX_UG_UOF */ - - /** - PACE's implementation of the POSIX function geteuid. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.2.1. - */ -#if (PACE_HAS_POSIX_UG_UOF) - PACE_INLINE uid_t pace_geteuid (); -#endif /* PACE_HAS_POSIX_UG_UOF */ - - /** - PACE's implementation of the POSIX function getgid. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.2.1. - */ -#if (PACE_HAS_POSIX_UG_UOF) - PACE_INLINE uid_t pace_getgid (); -#endif /* PACE_HAS_POSIX_UG_UOF */ - - /** - PACE's implementation of the POSIX function getgroups. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.2.3. - */ -#if (PACE_HAS_POSIX_UG_UOF) - PACE_INLINE int pace_getgroups (int gidsetsize, pace_gid_t grouplist[]); -#endif /* PACE_HAS_POSIX_UG_UOF */ - - /** - PACE's implementation of the POSIX function getlogin. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.2.4. - */ -#if (PACE_HAS_POSIX_UG_UOF) - PACE_INLINE char * pace_getlogin (); -#endif /* PACE_HAS_POSIX_UG_UOF */ - - /** - PACE's implementation of the POSIX function getlogin_r. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.2.4. - */ -#if (PACE_HAS_POSIX_UGR_UOF) - PACE_INLINE int pace_getlogin_r (char * name, size_t namesize); -#endif /* PACE_HAS_POSIX_UGR_UOF */ - /* Requires PACE_HAS_POSIX_PTHREAD_SEMANTICS. */ - - /** - PACE's implementation of the POSIX function getpgrp. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.3.1. - */ -#if (PACE_HAS_POSIX_UG_UOF) - PACE_INLINE pace_pid_t pace_getpgrp (); -#endif /* PACE_HAS_POSIX_UG_UOF */ - - /** - PACE's implementation of the POSIX function getpid. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.1.1. - */ -#if (PACE_HAS_POSIX_MP_UOF) - PACE_INLINE pace_pid_t pace_getpid (); -#endif /* PACE_HAS_POSIX_MP_UOF */ - - /** - PACE's implementation of the POSIX function getppid. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.1.1. - */ -#if (PACE_HAS_POSIX_MP_UOF) - PACE_INLINE pace_pid_t pace_getppid (); -#endif /* PACE_HAS_POSIX_MP_UOF */ - - /** - PACE's implementation of the POSIX function getuid. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.2.1. - */ -#if (PACE_HAS_POSIX_UG_UOF) - PACE_INLINE uid_t pace_getuid (); -#endif /* PACE_HAS_POSIX_UG_UOF */ - - /** - PACE's implementation of the POSIX function isatty. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.7.2. - */ -#if (PACE_HAS_POSIX_DS_UOF) - PACE_INLINE int pace_isatty (int fildes); -#endif /* PACE_HAS_POSIX_DS_UOF */ - - /** - PACE's implementation of the POSIX function link. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.3.4. - */ -#if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE int pace_link (const char * existing, const char * new_link); -#endif /* PACE_HAS_POSIX_FS_UOF */ - - /** - PACE's implementation of the POSIX function lseek. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 6.5.3. - */ -#if (PACE_HAS_POSIX_FM_UOF) - PACE_INLINE pace_off_t pace_lseek (PACE_HANDLE fildes, - off_t offset, int whence); -#endif /* PACE_HAS_POSIX_FM_UOF */ - - /** - PACE's implementation of the POSIX function pathconf. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.7.1. - */ -#if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE long pace_pathconf (const char * path, int name); -#endif /* PACE_HAS_POSIX_FS_UOF */ - - /** - PACE's implementation of the POSIX function pause. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.4.2. - */ -#if (PACE_HAS_POSIX_SIG_UOF) - PACE_INLINE int pace_pause (); -#endif /* PACE_HAS_POSIX_SIG_UOF */ - - /** - PACE's implementation of the POSIX function pipe. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 6.1.1. - */ -#if (PACE_HAS_POSIX_P_UOF) - PACE_INLINE int pace_pipe (PACE_HANDLE fildes[2]); -#endif /* PACE_HAS_POSIX_P_UOF */ - - /** - PACE's implementation of the POSIX function read. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 6.4.1. - */ -#if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE ssize_t pace_read (PACE_HANDLE fildes, void * buf, size_t nbyte); -#endif /* PACE_HAS_POSIX_DI_UOF */ - - /** - PACE's implementation of the POSIX function rmdir. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.5.2. - */ -#if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE int pace_rmdir (const char * path); -#endif /* PACE_HAS_POSIX_FS_UOF */ - - /** - PACE's implementation of the POSIX function setgid. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.2.2. - */ -#if (PACE_HAS_POSIX_UG_UOF) - PACE_INLINE int pace_setgid (pace_gid_t gid); -#endif /* PACE_HAS_POSIX_UG_UOF */ - - /** - PACE's implementation of the POSIX function setpgid. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.3.3. - */ -#if (PACE_HAS_POSIX_JC_UOF) - PACE_INLINE int pace_setpgid (pace_pid_t pid, pid_t pgid); -#endif /* PACE_HAS_POSIX_JC_UOF */ - - /** - PACE's implementation of the POSIX function setsid. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.3.2. - */ -#if (PACE_HAS_POSIX_UG_UOF) - PACE_INLINE pace_pid_t pace_setsid (); -#endif /* PACE_HAS_POSIX_UG_UOF */ - - /** - PACE's implementation of the POSIX function setuid. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.2.2. - */ -#if (PACE_HAS_POSIX_UG_UOF) - PACE_INLINE int pace_setuid (uid_t uid); -#endif /* PACE_HAS_POSIX_UG_UOF */ - - /** - PACE's implementation of the POSIX function sleep. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 3.4.3. - */ -#if (PACE_HAS_POSIX_MP_UOF) - PACE_INLINE unsigned pace_sleep (unsigned int seconds); -#endif /* PACE_HAS_POSIX_MP_UOF */ - - /** - PACE's implementation of the POSIX function sysconf. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.8.1. - */ -#if (PACE_HAS_POSIX_SP_UOF) - PACE_INLINE long pace_sysconf (int name); -#endif /* PACE_HAS_POSIX_SP_UOF */ - - /** - PACE's implementation of the POSIX function ttyname. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 7.2.3.1. - */ -#if (PACE_HAS_POSIX_JC_UOF) - PACE_INLINE pid_t pace_tcgetpgrp (PACE_HANDLE fildes); -#endif /* PACE_HAS_POSIX_JC_UOF */ - - /** - PACE's implementation of the POSIX function ttyname. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 7.2.3.1. - */ -#if (PACE_HAS_POSIX_JC_UOF) - PACE_INLINE int pace_tcsetpgrp (PACE_HANDLE fildes, pid_t pgrp_id); -#endif /* PACE_HAS_POSIX_JC_UOF */ - - /** - PACE's implementation of the POSIX function ttyname. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.7.2. - */ -#if (PACE_HAS_POSIX_DS_UOF) - PACE_INLINE char * pace_ttyname (PACE_HANDLE fildes); -#endif /* PACE_HAS_POSIX_DS_UOF */ - - /** - PACE's implementation of the POSIX function ttyname_r. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 4.7.2. - */ -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - 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. */ - - /** - PACE's implementation of the POSIX function unlink. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.5.1. - */ -#if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE int pace_unlink (const char * path); -#endif /* PACE_HAS_POSIX_FS_UOF */ - - /** - PACE's implementation of the POSIX function write. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 6.4.2. - */ -#if (PACE_HAS_POSIX_DI_UOF) - PACE_INLINE ssize_t pace_write (PACE_HANDLE fildes, const void * buf, size_t nbyte); -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if defined (PACE_HAS_INLINE) -# if (PACE_HAS_POSIX) -# include "pace/posix/unistd.inl" -# elif (PACE_VXWORKS) -# include "pace/vxworks/unistd.inl" -# elif (PACE_WIN32) -# include "pace/win32/unistd.inl" -# endif -#endif /* PACE_HAS_INLINE */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_UNISTD_H */ diff --git a/PACE/pace/utime.h b/PACE/pace/utime.h deleted file mode 100644 index 9fdd37c6bf2..00000000000 --- a/PACE/pace/utime.h +++ /dev/null @@ -1,57 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/utime.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_UTIME_H -#define PACE_UTIME_H - -#include "pace/config/defines.h" - -#if (PACE_HAS_POSIX) -# include "pace/posix/utime.h" -#elif (PACE_VXWORKS) -# include "pace/vxworks/utime.h" -#elif (PACE_WIN32) -# include "pace/win32/utime.h" -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - - /** - PACE's implementation of the POSIX function utime. - See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; - IEEE Std 1003.1, 1996 Edition), Section 5.6.6. - */ -#if (PACE_HAS_POSIX_FS_UOF) - PACE_INLINE int pace_utime (const char * path, - const pace_utimbuf * times); -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if defined (PACE_HAS_INLINE) -# if (PACE_HAS_POSIX) -# include "pace/posix/utime.inl" -# elif (PACE_VXWORKS) -# include "pace/vxworks/utime.inl" -# elif (PACE_WIN32) -# include "pace/win32/utime.inl" -# endif -#endif /* PACE_HAS_INLINE */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_UTIME_H */ diff --git a/PACE/pace/vxworks/README b/PACE/pace/vxworks/README deleted file mode 100644 index 170f4b84920..00000000000 --- a/PACE/pace/vxworks/README +++ /dev/null @@ -1 +0,0 @@ -VXWORKS dir. diff --git a/PACE/pace/win32/README b/PACE/pace/win32/README deleted file mode 100644 index d46fa4c9dc3..00000000000 --- a/PACE/pace/win32/README +++ /dev/null @@ -1 +0,0 @@ -WIN32 dir diff --git a/PACE/pace/win32/TODO b/PACE/pace/win32/TODO deleted file mode 100644 index 2238c8ab5f2..00000000000 --- a/PACE/pace/win32/TODO +++ /dev/null @@ -1,27 +0,0 @@ -Mon Jul 24 14:19:54 2000 Luther J Baker <luther@cs.wustl.edu> - - * ACE_wrappers/PACE/docs/PACE_POSIX_support.txt: - - Please see this file. If a PACE file is not listed here, - it means the win32 funcs compile natively. The rest of - the files actually listed here describe whether native, - emulated or no supported exists for the funcs in the - file. - - 1. Please see the "not implemented" funcs and find a way - emulate them (or find native implementation). - - 2. Check that current emulation and native support is - correct via POSIX semantics (user feedback). - - * ACE_wrappers/PACE/tests/*: - - 3. Get these tests compiling and working on win32! - - * ACE_wrappers/PACE/Makefile - - 4. Get the makefile to build PACE on win32 - - * ACE_wrappers/ace - - 5. Get the ACE libs to build with PACE?? diff --git a/PACE/pace/win32/aio.c b/PACE/pace/win32/aio.c deleted file mode 100644 index 25c7427877e..00000000000 --- a/PACE/pace/win32/aio.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/aio.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/aio.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/win32/aio.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/win32/aio.h b/PACE/pace/win32/aio.h deleted file mode 100644 index 764372de642..00000000000 --- a/PACE/pace/win32/aio.h +++ /dev/null @@ -1,44 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/aio.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_AIO_H_WIN32 -#define PACE_AIO_H_WIN32 - -#include "pace/time.h" -#include "pace/signal.h" - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_AIO_ALLDONE AIO_ALLDONE -#define PACE_AIO_CANCELED AIO_CANCELED -#define PACE_AIO_NOCANCELED AIO_NOTCANCELED -#define PACE_LIO_NOP LIO_NOP -#define PACE_LIO_NOWAIT LIO_NOWAIT -#define PACE_LIO_READ LIO_READ -#define PACE_LIO_WAIT LIO_WAIT -#define PACE_LIO_WRITE LIO_WRITE - -#ifndef PACE_AIOCB -#define PACE_AIOCB -typedef struct aiocb pace_aiocb; -#endif /* PACE_AIOCB */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_AIO_H_WIN32 */ diff --git a/PACE/pace/win32/aio.inl b/PACE/pace/win32/aio.inl deleted file mode 100644 index 1c1335857f0..00000000000 --- a/PACE/pace/win32/aio.inl +++ /dev/null @@ -1,106 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/aio.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_aio_cancel (PACE_HANDLE fildes, pace_aiocb * aiocbp) -{ - PACE_UNUSED_ARG (fildes); - PACE_UNUSED_ARG (aiocbp); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_aio_error (const pace_aiocb * aiocbp) -{ - PACE_UNUSED_ARG (aiocbp); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_aio_fsync (int op, pace_aiocb * aiocbp) -{ - PACE_UNUSED_ARG (op); - PACE_UNUSED_ARG (aiocbp); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_aio_read (pace_aiocb * aiocbp) -{ - PACE_UNUSED_ARG (aiocbp); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_aio_return (pace_aiocb * aiocbp) -{ - PACE_UNUSED_ARG (aiocbp); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_aio_suspend (const pace_aiocb * const list[], - int nent, - const pace_timespec * timeout) -{ - PACE_UNUSED_ARG (list); - PACE_UNUSED_ARG (nent); - PACE_UNUSED_ARG (timeout); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_aio_write (pace_aiocb * aiocbp) -{ - PACE_UNUSED_ARG (aiocbp); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_lio_listio (int mode, - pace_aiocb * const list[], - int nent, - pace_sigevent * sig) -{ - PACE_UNUSED_ARG (mode); - PACE_UNUSED_ARG (list); - PACE_UNUSED_ARG (nent); - PACE_UNUSED_ARG (sig); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/win32/assert.c b/PACE/pace/win32/assert.c deleted file mode 100644 index 7620a619828..00000000000 --- a/PACE/pace/win32/assert.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/assert.c - * - * = AUTHOR - * Joe Hoffert - * - * ============================================================================= */ - -#include "pace/assert.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/win32/assert.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/win32/assert.h b/PACE/pace/win32/assert.h deleted file mode 100644 index af0c8dac758..00000000000 --- a/PACE/pace/win32/assert.h +++ /dev/null @@ -1,29 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/assert.h - * - * = AUTHOR - * Joe Hoffert - * - * =========================================================================== */ - -#ifndef PACE_ASSERT_H_WIN32 -#define PACE_ASSERT_H_WIN32 - -#include <assert.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -# if defined (PACE_HAS_CPLUSPLUS) -} -# endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_ASSERT_H_WIN32 */ diff --git a/PACE/pace/win32/assert.inl b/PACE/pace/win32/assert.inl deleted file mode 100644 index 00796cb2f26..00000000000 --- a/PACE/pace/win32/assert.inl +++ /dev/null @@ -1,14 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/assert.inl - * - * = AUTHOR - * Joe Hoffert - * - * ============================================================================= */ diff --git a/PACE/pace/win32/ctype.c b/PACE/pace/win32/ctype.c deleted file mode 100644 index dd3be4098b0..00000000000 --- a/PACE/pace/win32/ctype.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/ctype.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/ctype.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/win32/ctype.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/win32/ctype.h b/PACE/pace/win32/ctype.h deleted file mode 100644 index 6744ab2a8b9..00000000000 --- a/PACE/pace/win32/ctype.h +++ /dev/null @@ -1,31 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/ctype.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_CTYPE_H_WIN32 -#define PACE_CTYPE_H_WIN32 - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#if defined (PACE_HAS_INLINE) -# include "pace/win32/ctype.inl" -#endif /* PACE_HAS_INLINE */ - -#endif /* PACE_CTYPE_H_WIN32 */ diff --git a/PACE/pace/win32/ctype.inl b/PACE/pace/win32/ctype.inl deleted file mode 100644 index 60f692f2c12..00000000000 --- a/PACE/pace/win32/ctype.inl +++ /dev/null @@ -1,133 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/ctype.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include <ctype.h> - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_isalnum (int c) -{ - return isalnum (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_isalpha (int c) -{ - return isalpha (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_iscntrl (int c) -{ - return iscntrl (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_isdigit (int c) -{ - return isdigit (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_isgraph (int c) -{ - return isgraph (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_islower (int c) -{ - return islower (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_isprint (int c) -{ - return isprint (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_ispunct (int c) -{ - return ispunct (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_isspace (int c) -{ - return isspace (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_isupper (int c) -{ - return isupper (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_isxdigit (int c) -{ - return isxdigit (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_tolower (int c) -{ - return tolower (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_toupper (int c) -{ - return toupper (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ diff --git a/PACE/pace/win32/dirent.c b/PACE/pace/win32/dirent.c deleted file mode 100644 index b67213012f0..00000000000 --- a/PACE/pace/win32/dirent.c +++ /dev/null @@ -1,100 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/dirent.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/dirent.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/win32/dirent.inl" -#endif /* ! PACE_HAS_INLINE */ - -#if (PACE_HAS_POSIX_FS_UOF) -int -closedir (PACE_DIR * dirp) -{ - if (dirp->current_handle_ != (void*)0) - { - FindClose (dirp->current_handle_); - } - dirp->current_handle_ = (void*)0; - dirp->started_reading_ = 0; - return 1; -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_DIR * -opendir (const char * dirname) -{ - PACE_DIR * dirp = (PACE_DIR*) pace_malloc (sizeof (PACE_DIR)); - const pace_size_t dir_size = pace_strlen (dirname) + 1; - dirp->directory_name_ = (char*) pace_malloc (dir_size); - pace_strcpy (dirp->directory_name_, dirname); - dirp->current_handle_ = PACE_INVALID_HANDLE; - dirp->started_reading_ = 0; - return dirp; -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -pace_dirent * -readdir (PACE_DIR * dirp) -{ - if (dirp->started_reading_) - { - dirp->current_handle_ = FindFirstFile (dirp->directory_name_, - &(dirp->fdata_)); - if (dirp->current_handle_ != PACE_INVALID_HANDLE) - { - FindClose (dirp->current_handle_); - dirp->current_handle_ = PACE_INVALID_HANDLE; - } - else /* Skip "." and ".." */ - { - int retval = 1; - while (*(dirp->fdata_.cFileName) == '.' - && retval - && dirp->fdata_.dwFileAttributes == FILE_ATTRIBUTE_DIRECTORY) - { - retval = FindNextFile (dirp->current_handle_, - &(dirp->fdata_)); - } - if (retval == 0) - { - dirp->current_handle_ = PACE_INVALID_HANDLE; - } - } - dirp->started_reading_ = 1; - } - else - { - int retval = FindNextFile (dirp->current_handle_, - &(dirp->fdata_)); - if (retval == 0) - { - dirp->current_handle_ = PACE_INVALID_HANDLE; - } - } - - if (dirp->current_handle_ != PACE_INVALID_HANDLE) - { - dirp->dirent_.d_name = dirp->fdata_.cFileName; - return &(dirp->dirent_); - } - else - { - return (pace_dirent*)0; - } -} -#endif /* PACE_HAS_POSIX_FS_UOF */ diff --git a/PACE/pace/win32/dirent.h b/PACE/pace/win32/dirent.h deleted file mode 100644 index 81751543fca..00000000000 --- a/PACE/pace/win32/dirent.h +++ /dev/null @@ -1,74 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/dirent.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_DIRENT_H_WIN32 -#define PACE_DIRENT_H_WIN32 - -#include "pace/sys/types.h" -#include "windows.h" - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_DIRENT_T -#define PACE_DIRENT_T - - typedef struct dirent { - unsigned short d_ino; - unsigned short d_off; - unsigned short d_reclen; - char * d_name; - } pace_dirent; - -#endif /* PACE_DIRENT_T */ - -#ifndef PACE_DIR_T -#define PACE_DIR_T - - typedef WIN32_FIND_DATA PACE_TEXT_WIN32_FIND_DATA; - - typedef struct DIR { - char * directory_name_; - // The name of the directory we are looking into - HANDLE current_handle_; - // Remember the handle between calls. - pace_dirent dirent_; - // The struct for the results - PACE_TEXT_WIN32_FIND_DATA fdata_; - // The struct for intermediate results. - int started_reading_; - // A flag to remember if we started reading already. - } PACE_DIR; - -#endif /* PACE_DIR_T */ - -#if (PACE_HAS_POSIX_FS_UOF) - int closedir (PACE_DIR * dirp); -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) - PACE_DIR * opendir (const char * dirname); -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) - pace_dirent * readdir (PACE_DIR * dirp); -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_DIRENT_H_WIN32 */ diff --git a/PACE/pace/win32/dirent.inl b/PACE/pace/win32/dirent.inl deleted file mode 100644 index edf5071c55d..00000000000 --- a/PACE/pace/win32/dirent.inl +++ /dev/null @@ -1,68 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/dirent.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/string.h" -#include "pace/stdlib.h" - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_closedir (PACE_DIR * dirp) -{ - return closedir (dirp); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -PACE_DIR * -pace_opendir (const char * dirname) -{ - return opendir (dirname); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -pace_dirent * -pace_readdir (PACE_DIR * dirp) -{ - return readdir (dirp); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_CLSR_UOF) -PACE_INLINE -int -pace_readdir_r (PACE_DIR * dirp, - pace_dirent * entry, - pace_dirent ** result) -{ - PACE_UNUSED_ARG (dirp); - PACE_UNUSED_ARG (entry); - PACE_UNUSED_ARG (result); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_CLSR_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -void -pace_rewinddir (PACE_DIR * dirp) -{ - PACE_UNUSED_ARG (dirp); - PACE_ERRNO_NO_SUPPORT (); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ diff --git a/PACE/pace/win32/errno.h b/PACE/pace/win32/errno.h deleted file mode 100644 index 7e35b76b566..00000000000 --- a/PACE/pace/win32/errno.h +++ /dev/null @@ -1,84 +0,0 @@ -/* $Id$ - -* ============================================================================ -* -* = LIBRARY -* pace -* -* = FILENAME -* pace/win32/errno.h -* -* = AUTHOR -* John Heitmann -* -* =========================================================================== */ - - -#ifndef PACE_ERRNO_H_WIN32 -#define PACE_ERRNO_H_WIN32 - -#include <errno.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#if !defined (ENOSYS) -# define ENOSYS EFAULT /* Operation not supported or unknown error. */ -#endif /* !ENOSYS */ - -#if !defined (ENOTSUP) -# define ENOTSUP ENOSYS /* Operation not supported. */ -#endif /* !ENOTSUP */ - -#define PACE_E2BIG E2BIG -#define PACE_EACCES EACCES -#define PACE_EAGAIN EAGAIN -#define PACE_EBADF EBADF -#define PACE_EBADMSG -#define PACE_EBUSY EBUSY -#define PACE_ECANCELED ECANCELED -#define PACE_ECHILD ECHILD -#define PACE_EDEADLK EDEADLK -#define PACE_EDOM EDOM -#define PACE_EEXIST EEXIST -#define PACE_EFAULT EFAULT -#define PACE_EFBIG EFBIG -#define PACE_EINPROGRESS EINPROGRESS -#define PACE_EINTR EINTR -#define PACE_EINVAL EINVAL -#define PACE_EIO EIO -#define PACE_EISDIR EISDIR -#define PACE_EMFILE EMFILE -#define PACE_EMLINK EMLINK -#define PACE_EMSGSIZE EMSGSIZE -#define PACE_EENAMETOOLONG ENAMETOOLONG -#define PACE_ENFILE ENFILE -#define PACE_ENODEV ENODEV -#define PACE_ENOENT ENOENT -#define PACE_ENOEXEC ENOEXEC -#define PACE_ENOLCK ENOLCK -#define PACE_ENOMEM ENOMEM -#define PACE_ENOSPC ENOSPC -#define PACE_ENOSYS ENOSYS -#define PACE_ENOTDIR ENOTDIR -#define PACE_ENOTEMPTY ENOTEMPTY -#define PACE_ENOTSUP ENOTSUP -#define PACE_ENOTTY ENOTTY -#define PACE_ENXIO ENXIO -#define PACE_EPERM EPERM -#define PACE_EPIPE EPIPE -#define PACE_ERANGE ERANGE -#define PACE_EROFS EROFS -#define PACE_ESPIPE ESPIPE -#define PACE_ESRCH ESRCH -#define PACE_ETIMEDOUT ETIMEDOUT -#define PACE_EXDEV EXDEV - -#define pace_errno errno - -# if defined (PACE_HAS_CPLUSPLUS) -} -# endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_ERRNO_H_WIN32 */ diff --git a/PACE/pace/win32/fcntl.c b/PACE/pace/win32/fcntl.c deleted file mode 100644 index d7a91d4ffe4..00000000000 --- a/PACE/pace/win32/fcntl.c +++ /dev/null @@ -1,163 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/fcntl.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/fcntl.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/win32/fcntl.inl" -#endif /* ! PACE_HAS_INLINE */ - -#if (PACE_HAS_POSIX_FS_UOF) -#include <windows.h> -#include <wtypes.h> -int creat (const char * path, pace_mode_t mode) -{ - /* Emulation is still buggy! DO NOT YET USE! */ - - DWORD access = GENERIC_READ, - creation = OPEN_EXISTING, - flags = 0, - shared_mode = FILE_SHARE_READ | FILE_SHARE_WRITE; - - HANDLE h = (void*)0; - - if (PACE_BIT_ENABLED (mode, O_WRONLY)) - { - access = GENERIC_WRITE; - } - else if (PACE_BIT_ENABLED (mode, O_RDWR)) - { - access = GENERIC_READ | GENERIC_WRITE; - } - - if ((mode & (_O_CREAT | _O_EXCL)) == (_O_CREAT | _O_EXCL)) - { - creation = CREATE_NEW; - } - else if ((mode & (_O_CREAT | _O_TRUNC)) == (_O_CREAT | _O_TRUNC)) - { - creation = CREATE_ALWAYS; - } - else if (PACE_BIT_ENABLED (mode, _O_CREAT)) - { - creation = OPEN_ALWAYS; - } - else if (PACE_BIT_ENABLED (mode, _O_TRUNC)) - { - creation = TRUNCATE_EXISTING; - } - - if (PACE_BIT_ENABLED (mode, _O_TEMPORARY)) - { - flags |= FILE_FLAG_DELETE_ON_CLOSE | FILE_ATTRIBUTE_TEMPORARY; - } - - if (PACE_BIT_ENABLED (mode, FILE_FLAG_WRITE_THROUGH)) - { - flags |= FILE_FLAG_WRITE_THROUGH; - } - if (PACE_BIT_ENABLED (mode, FILE_FLAG_OVERLAPPED)) - { - flags |= FILE_FLAG_OVERLAPPED; - } - if (PACE_BIT_ENABLED (mode, FILE_FLAG_NO_BUFFERING)) - { - flags |= FILE_FLAG_NO_BUFFERING; - } - if (PACE_BIT_ENABLED (mode, FILE_FLAG_RANDOM_ACCESS)) - { - flags |= FILE_FLAG_RANDOM_ACCESS; - } - if (PACE_BIT_ENABLED (mode, FILE_FLAG_SEQUENTIAL_SCAN)) - { - flags |= FILE_FLAG_SEQUENTIAL_SCAN; - } - if (PACE_BIT_ENABLED (mode, FILE_FLAG_DELETE_ON_CLOSE)) - { - flags |= FILE_FLAG_DELETE_ON_CLOSE; - } - if (PACE_BIT_ENABLED (mode, FILE_FLAG_BACKUP_SEMANTICS)) - { - flags |= FILE_FLAG_BACKUP_SEMANTICS; - } - if (PACE_BIT_ENABLED (mode, FILE_FLAG_POSIX_SEMANTICS)) - { - flags |= FILE_FLAG_POSIX_SEMANTICS; - } - -#if 0 ////////////////////////////////////////////////////////////////////// - - /* Threads and version info that isn't implemented yet in PACE. - ACE_MT (ACE_thread_mutex_t *ace_os_monitor_lock = 0;) - */ - if (PACE_BIT_ENABLED (mode, _O_APPEND)) - { - ACE_MT - ( - ace_os_monitor_lock = (ACE_thread_mutex_t *) - ACE_OS_Object_Manager::preallocated_object[ - ACE_OS_Object_Manager::ACE_OS_MONITOR_LOCK]; - ACE_OS::thread_mutex_lock (ace_os_monitor_lock); - ) - } - -#if !defined (ACE_HAS_WINCE) /* CE doesn't have FILE_SHARE_DELETE */ - if (ACE_OS::get_win32_versioninfo().dwPlatformId == - VER_PLATFORM_WIN32_NT) - shared_mode |= FILE_SHARE_DELETE; -#endif /* ACE_HAS_WINCE */ - -//////////////////////////////////////////////////////////// -#endif /* 0 */ - - h = CreateFile (path, - access, - shared_mode, - 0, - creation, - flags, - 0); - - if (PACE_BIT_ENABLED (mode, _O_APPEND)) - { - if (h != PACE_INVALID_HANDLE) - { - SetFilePointer (h, 0, 0, FILE_END); - } - /* Threads and version info that isn't implemented yet in PACE. - ACE_MT (ACE_thread_mutex_t *ace_os_monitor_lock = 0;) - ACE_MT (ACE_OS::thread_mutex_unlock (ace_os_monitor_lock);) - */ - } - - if (h == PACE_INVALID_HANDLE) - { - /* Where is this in ACE? - ACE_FAIL_RETURN (h); - */ - return -1; - } - else - { - /* return h; - - POSIX returns lowest unused file descriptor but windows - doesn't handle files in the same manner. - We return -1 for failure and 1 for success. - */ - return 1; - } -} -#endif /* PACE_HAS_POSIX_FS_UOF */ diff --git a/PACE/pace/win32/fcntl.h b/PACE/pace/win32/fcntl.h deleted file mode 100644 index eda6cd3266d..00000000000 --- a/PACE/pace/win32/fcntl.h +++ /dev/null @@ -1,67 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/fnctl.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_FCNTL_H_WIN32 -#define PACE_FCNTL_H_WIN32 - -#include "pace/sys/types.h" -#include "pace/unistd.h" -#include "pace/sys/stat.h" -#include <fcntl.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_FD_CLOEXEC FD_CLOEXEC -#define PACE_F_DUPFD D_DUPFD -#define PACE_F_GETFD F_GETFD -#define PACE_F_GETFL F_GETFL -#define PACE_F_GETLK F_GETLK -#define PACE_F_RDLCK F_RDLCK -#define PACE_F_SETFD F_SETFD -#define PACE_F_SETFL F_SETFL -#define PACE_F_SETLK F_SETLK -#define PACE_F_SETLKW F_SETLKW -#define PACE_F_UNLCK F_UNLCK -#define PACE_F_WRLCK F_WRLCK -#define PACE_O_ACCMODE O_ACCMODE -#define PACE_O_APPEND O_APPEND -#define PACE_O_CREAT O_CREAT -#define PACE_O_DSYNC O_DSYNC -#define PACE_O_EXCL O_EXCL -#define PACE_O_NOCTTY O_NOCTTY -#define PACE_O_NONBLOCK O_NONBLOCK -#define PACE_O_RDONLY O_RDONLY -#define PACE_O_RDWR O_RDWR -#define PACE_O_RSYNC O_RSYNC -#define PACE_O_SYNC O_SYNC -#define PACE_O_TRUNC O_TRUNC -#define PACE_O_WRONLY O_WRONLY - -#ifndef PACE_FLOCK -#define PACE_FLOCK -typedef struct flock pace_flock; -#endif /* PACE_FLOCK */ - -#if (PACE_HAS_POSIX_FS_UOF) - int creat (const char * path, pace_mode_t mode); -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_FCNTL_H_WIN32 */ diff --git a/PACE/pace/win32/fcntl.inl b/PACE/pace/win32/fcntl.inl deleted file mode 100644 index 4ca9257ec8d..00000000000 --- a/PACE/pace/win32/fcntl.inl +++ /dev/null @@ -1,25 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/fcntl.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_creat (const char * path, pace_mode_t mode) -{ - /* Emulation is still buggy! creat (path, mode); */ - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - diff --git a/PACE/pace/win32/grp.c b/PACE/pace/win32/grp.c deleted file mode 100644 index 0bcfffa87d4..00000000000 --- a/PACE/pace/win32/grp.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/grp.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/grp.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/win32/grp.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/win32/grp.h b/PACE/pace/win32/grp.h deleted file mode 100644 index c800c8bc21e..00000000000 --- a/PACE/pace/win32/grp.h +++ /dev/null @@ -1,34 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace () - * - * = FILENAME - * pace/win32/grp.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_GRP_H_WIN32 -#define PACE_GRP_H_WIN32 - -# if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -# endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_GROUP -#define PACE_GROUP - typedef struct group { - int val_; - } pace_group; -#endif /* PACE_GROUP */ - -# if defined (PACE_HAS_CPLUSPLUS) -} -# endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_GRP_H_WIN32 */ diff --git a/PACE/pace/win32/grp.inl b/PACE/pace/win32/grp.inl deleted file mode 100644 index 905e9eadea3..00000000000 --- a/PACE/pace/win32/grp.inl +++ /dev/null @@ -1,72 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/grp.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_SD_UOF) -PACE_INLINE -pace_group * -pace_getgrgid (pace_gid_t gid) -{ - pace_group * retval = (pace_group*)0; - PACE_UNUSED_ARG (gid); - PACE_ERRNO_NO_SUPPORT_RETURN (retval); -} -#endif /* PACE_HAS_POSIX_SD_UOF */ - -#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_UNUSED_ARG (gid); - PACE_UNUSED_ARG (grp); - PACE_UNUSED_ARG (buffer); - PACE_UNUSED_ARG (bufsize); - PACE_UNUSED_ARG (result); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_SDR_UOF */ - -#if (PACE_HAS_POSIX_SD_UOF) -PACE_INLINE -pace_group * -pace_getgrnam (const char * name) -{ - pace_group * retval = (pace_group*)0; - PACE_UNUSED_ARG (name); - PACE_ERRNO_NO_SUPPORT_RETURN (retval); -} -#endif /* PACE_HAS_POSIX_SD_UOF */ - -#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_UNUSED_ARG (name); - PACE_UNUSED_ARG (grp); - PACE_UNUSED_ARG (buffer); - PACE_UNUSED_ARG (bufsize); - PACE_UNUSED_ARG (result); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_SDR_UOF */ diff --git a/PACE/pace/win32/limits.h b/PACE/pace/win32/limits.h deleted file mode 100644 index 0624528da7a..00000000000 --- a/PACE/pace/win32/limits.h +++ /dev/null @@ -1,29 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/limits.h - * - * = AUTHOR - * Joe Hoffert - * - * ============================================================================ */ - -#ifndef PACE_LIMITS_H_WIN32 -#define PACE_LIMITS_H_WIN32 - -#include <limits.h> - -# if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -# endif /* (PACE_HAS_CPLUSPLUS) */ - -# if defined (PACE_HAS_CPLUSPLUS) -} -# endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_LIMITS_H_WIN32 */ diff --git a/PACE/pace/win32/locale.c b/PACE/pace/win32/locale.c deleted file mode 100644 index 1d10f0e3b32..00000000000 --- a/PACE/pace/win32/locale.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/locale.c - * - * = AUTHOR - * Joe Hoffert - * - * ============================================================================= */ - -#include "pace/locale.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/win32/locale.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/win32/locale.h b/PACE/pace/win32/locale.h deleted file mode 100644 index c56a9d9fec3..00000000000 --- a/PACE/pace/win32/locale.h +++ /dev/null @@ -1,40 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/locale.h - * - * = AUTHOR - * Joe Hoffert - * - * =========================================================================== */ - -#ifndef PACE_LOCALE_H_WIN32 -#define PACE_LOCALE_H_WIN32 - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_LC_ALL LC_ALL -#define PACE_LC_COLLATE LC_COLLATE -#define PACE_LC_CTYPE LC_CTYPE -#define PACE_LC_MONETARY LC_MONETARY -#define PACE_LC_NUMERIC LC_NUMERIC -#define PACE_LC_TIME LC_TIME -#define PACE_NULL NULL - -#ifndef PACE_LCONV -#define PACE_LCONV -typedef struct lconv pace_lconv; -#endif /* PACE_LCONV */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_LOCALE_H */ diff --git a/PACE/pace/win32/locale.inl b/PACE/pace/win32/locale.inl deleted file mode 100644 index bdcf0ba226a..00000000000 --- a/PACE/pace/win32/locale.inl +++ /dev/null @@ -1,34 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/locale.inl - * - * = AUTHOR - * Joe Hoffert - * - * =========================================================================== */ - -#include <locale.h> - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -pace_lconv * -pace_localeconv (void) -{ - return localeconv (); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -char * -pace_setlocale (int category, const char * locale) -{ - return setlocale (category, locale); -} -#endif /* PACE_HAS_POSIX_MP_UOF */ diff --git a/PACE/pace/win32/math.c b/PACE/pace/win32/math.c deleted file mode 100644 index 01302f35ac5..00000000000 --- a/PACE/pace/win32/math.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/math.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/math.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/win32/math.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/win32/math.h b/PACE/pace/win32/math.h deleted file mode 100644 index e1658a72c12..00000000000 --- a/PACE/pace/win32/math.h +++ /dev/null @@ -1,29 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/math.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_MATH_H_WIN32 -#define PACE_MATH_H_WIN32 - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_HUGE_VAL HUGE_VAL - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_MATH_H_WIN32 */ diff --git a/PACE/pace/win32/math.inl b/PACE/pace/win32/math.inl deleted file mode 100644 index 3bc7dadb2ce..00000000000 --- a/PACE/pace/win32/math.inl +++ /dev/null @@ -1,214 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/math.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include <math.h> - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_acos (double x) -{ - return acos (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_asin (double x) -{ - return asin (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_atan (double x) -{ - return atan (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_atan2 (double x, double y) -{ - return atan2 (x, y); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_cos (double x) -{ - return cos (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_sin (double x) -{ - return sin (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_tan (double x) -{ - return tan (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_cosh (double x) -{ - return cosh (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_sinh (double x) -{ - return sinh (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_tanh (double x) -{ - return tanh (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_exp (double x) -{ - return exp (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_frexp (double x, int * exp) -{ - return frexp (x, exp); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_ldexp (double x, int exp) -{ - return ldexp (x, exp); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_log (double x) -{ - return log (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_log10 (double x) -{ - return log10 (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_modf (double x, double * iptr) -{ - return modf (x, iptr); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_pow (double x, double y) -{ - return pow (x, y); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_sqrt (double x) -{ - return sqrt (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_ceil (double x) -{ - return ceil (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_fabs (double x) -{ - return fabs (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_floor (double x) -{ - return floor (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_fmod (double x, double y) -{ - return fmod (x, y); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ diff --git a/PACE/pace/win32/mman.c b/PACE/pace/win32/mman.c deleted file mode 100644 index 2e2f0b32ad2..00000000000 --- a/PACE/pace/win32/mman.c +++ /dev/null @@ -1,127 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/mman.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/sys/mman.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/win32/mman.inl" -#endif /* ! PACE_HAS_INLINE */ - -#include <windows.h> -#include <stdio.h> - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -void * -mmap (void * addr, size_t len, int prot, int flags, - PACE_HANDLE fildes, pace_off_t off) -{ - void * addr_mapping = (void*)0; - int nt_flags = 0; - PACE_HANDLE local_handle = PACE_INVALID_HANDLE; - PACE_HANDLE * file_mapping = CreateFileMapping (fildes, - 0, - prot, - 0, - 0, - 0); - if (*file_mapping == 0) - { - PACE_FAIL_RETURN (MAP_FAILED); - } - - if (PACE_BIT_ENABLED (flags, MAP_PRIVATE)) - { - prot = PAGE_WRITECOPY; - nt_flags = FILE_MAP_COPY; - } - else if (PACE_BIT_ENABLED (flags, MAP_SHARED)) - { - if (PACE_BIT_ENABLED (prot, PAGE_READONLY)) - nt_flags = FILE_MAP_READ; - if (PACE_BIT_ENABLED (prot, PAGE_READWRITE)) - nt_flags = FILE_MAP_WRITE; - } - -# if !defined (PACE_HAS_WINCE) - addr_mapping = MapViewOfFileEx (*file_mapping, - nt_flags, - 0, - off, - len, - addr); -# else - /* WinCE doesn't allow specifying <addr>. */ - PACE_UNUSED_ARG (addr); - addr_mapping = MapViewOfFile (*file_mapping, - nt_flags, - 0, - off, - len); -# endif /* ! ACE_HAS_WINCE */ - - /* Only close this down if we used the temporary. */ - if (file_mapping == &local_handle) - { - CloseHandle (*file_mapping); - } - - if (addr_mapping == 0) - { - PACE_FAIL_RETURN (MAP_FAILED); - } - - else if (PACE_BIT_ENABLED (flags, MAP_FIXED) - && addr_mapping != addr) - { - errno = EINVAL; - return MAP_FAILED; - } - else - { - return addr_mapping; - } -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int -mprotect (void * addr, size_t len, int prot) -{ - DWORD dummy; /* Sigh! */ - return VirtualProtect(addr, len, prot, &dummy) ? 0 : -1; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int -msync (void * addr, size_t len, int flags) -{ - PACE_UNUSED_ARG (flags); - PACE_WIN32CALL_RETURN - (PACE_ADAPT_RETVAL - (FlushViewOfFile (addr, len), pace_result_), int, -1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int -munmap (void * addr, size_t len) -{ - PACE_UNUSED_ARG (len); - PACE_WIN32CALL_RETURN - (PACE_ADAPT_RETVAL - (UnmapViewOfFile (addr), pace_result_), int, -1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/win32/mman.h b/PACE/pace/win32/mman.h deleted file mode 100644 index 2a5621823d7..00000000000 --- a/PACE/pace/win32/mman.h +++ /dev/null @@ -1,65 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/mman.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SYS_MMAN_H_WIN32 -#define PACE_SYS_MMAN_H_WIN32 - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -# define MAP_PRIVATE 1 -# define MAP_SHARED 2 -# define MAP_FIXED 4 -# if !defined (MAP_FAILED) -# undef MAP_FAILED -# define MAP_FAILED ((void *) -1) -# endif - -# define PACE_MAP_FAILED MAP_FAILED -# define PACE_MAP_FIXED MAP_FIXED -# define PACE_MAP_PRIVATE MAP_PRIVATE -# define PACE_MAP_SHARED MAP_SHARED -# define PACE_MCL_CURRENT MCL_CURRENT -# define PACE_MS_ASYNC MS_ASYNC -# define PACE_MS_INVALIDATE -# define PACE_MS_SYNC MS_SYNC -# define PACE_PROT_EXEC PROT_EXEC -# define PACE_PROT_NONE PROT_NONE -# define PACE_PROT_READ PROT_READ -# define PACE_PROT_WRITE PROT_WRITE - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - void * mmap (void * addr, size_t len, int prot, int flags, - PACE_HANDLE fildes, pace_off_t off); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - int mprotect (void * addr, size_t len, int prot); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - int msync (void * addr, size_t len, int flags); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - int munmap (void * addr, size_t len); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SYS_MMAN_H */ diff --git a/PACE/pace/win32/mman.inl b/PACE/pace/win32/mman.inl deleted file mode 100644 index 1b0abb8ee1b..00000000000 --- a/PACE/pace/win32/mman.inl +++ /dev/null @@ -1,125 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/mman.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include <io.h> - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mlock (const void * addr, pace_size_t len) -{ - PACE_UNUSED_ARG (addr); - PACE_UNUSED_ARG (len); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mlockall (int flags) -{ - PACE_UNUSED_ARG (flags); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -void * -pace_mmap (void * addr, - size_t len, - int prot, - int flags, - PACE_HANDLE fildes, - pace_off_t off) -{ - return mmap (addr, len, prot, flags, fildes, off); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_munlock (const void * addr, size_t len) -{ - PACE_UNUSED_ARG (addr); - PACE_UNUSED_ARG (len); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mprotect (void * addr, size_t len, int prot) -{ - return mprotect (addr, len, prot); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_msync (void * addr, - size_t len, - int flags) -{ - return msync (addr, len, flags); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_munlockall () -{ - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_munmap (void * addr, size_t len) -{ - return munmap (addr, len); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -PACE_HANDLE -pace_shm_open (const char * name, int oflag, pace_mode_t mode) -{ - /* Would be similar to ACE_OS::open - which (currently uses threads and Object Manager). - */ - PACE_HANDLE retval = PACE_INVALID_HANDLE; - PACE_UNUSED_ARG (name); - PACE_UNUSED_ARG (oflag); - PACE_UNUSED_ARG (mode); - PACE_ERRNO_NO_SUPPORT_RETURN (retval); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_shm_unlink (const char * name) -{ - return _unlink (name); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/win32/mqueue.c b/PACE/pace/win32/mqueue.c deleted file mode 100644 index 2f08c3e979e..00000000000 --- a/PACE/pace/win32/mqueue.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace () - * - * = FILENAME - * pace/win32/mqueue.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/mqueue.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/win32/mqueue.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/win32/mqueue.h b/PACE/pace/win32/mqueue.h deleted file mode 100644 index 17110c5a740..00000000000 --- a/PACE/pace/win32/mqueue.h +++ /dev/null @@ -1,45 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/mqueue.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_MQUEUE_H_WIN32 -#define PACE_MQUEUE_H_WIN32 - -#include "pace/signal.h" - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_MQD_T -#define PACE_MQD_T - /* Temporary fix until we emulate these funcs. - typedef mqd_t pace_mqd_t; - */ - typedef int pace_mqd_t; -#endif /* PACE_MQD_T */ - -#ifndef PACE_MQ_ATTR -#define PACE_MQ_ATTR - /* Temporary fix until we emulate these funcs. - typedef struct mq_attr pace_mq_attr - */ - typedef struct mq_attr { int a_; } pace_mq_attr; -#endif /* PACE_MQ_ATTR */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_MQUEUE_H_WIN32 */ diff --git a/PACE/pace/win32/mqueue.inl b/PACE/pace/win32/mqueue.inl deleted file mode 100644 index ad23385c332..00000000000 --- a/PACE/pace/win32/mqueue.inl +++ /dev/null @@ -1,104 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/mqueue.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mq_close (pace_mqd_t mqdes) -{ - PACE_UNUSED_ARG (mqdes); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mq_getattr (pace_mqd_t mqdes, - pace_mq_attr * mqstat) -{ - PACE_UNUSED_ARG (mqdes); - PACE_UNUSED_ARG (mqstat); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mq_notify (pace_mqd_t mqdes, - const pace_sigevent * notification) -{ - PACE_UNUSED_ARG (mqdes); - PACE_UNUSED_ARG (notification); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -ssize_t -pace_mq_receive (pace_mqd_t mqdes, - char * msg_ptr, - size_t msg_len, - unsigned int * msg_prio) -{ - PACE_UNUSED_ARG (mqdes); - PACE_UNUSED_ARG (msg_ptr); - PACE_UNUSED_ARG (msg_len); - PACE_UNUSED_ARG (msg_prio); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mq_send (pace_mqd_t mqdes, - const char * msg_ptr, - size_t msg_len, - unsigned int msg_prio) -{ - PACE_UNUSED_ARG (mqdes); - PACE_UNUSED_ARG (msg_ptr); - PACE_UNUSED_ARG (msg_len); - PACE_UNUSED_ARG (msg_prio); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#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_UNUSED_ARG (mqdes); - PACE_UNUSED_ARG (mqstat); - PACE_UNUSED_ARG (omqstat); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mq_unlink (const char * name) -{ - PACE_UNUSED_ARG (name); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/win32/pace.dsw b/PACE/pace/win32/pace.dsw deleted file mode 100644 index d1deae4e284..00000000000 --- a/PACE/pace/win32/pace.dsw +++ /dev/null @@ -1,41 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "pace_dll"=.\pace_dll.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Project: "pace_lib"=.\pace_lib.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/PACE/pace/win32/pace_dll.dsp b/PACE/pace/win32/pace_dll.dsp deleted file mode 100644 index 5080fb34367..00000000000 --- a/PACE/pace/win32/pace_dll.dsp +++ /dev/null @@ -1,613 +0,0 @@ -# Microsoft Developer Studio Project File - Name="pace_dll" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
-
-CFG=pace_dll - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "pace_dll.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "pace_dll.mak" CFG="pace_dll - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "pace_dll - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE "pace_dll - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-MTL=midl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "pace_dll - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir ""
-# PROP Intermediate_Dir ""
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "PACE_DLL_EXPORTS" /YX /FD /c
-# ADD CPP /nologo /MT /W3 /GX /O2 /I "../.." /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "PACE_DLL_EXPORTS" /D "WIN32" /D "_MBCS" /D "PACE_HAS_ALL_POSIX_FUNCS" /FD /c
-# SUBTRACT CPP /YX
-# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 /out:"pace.dll"
-
-!ELSEIF "$(CFG)" == "pace_dll - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "pace_dll___Win32_Debug"
-# PROP BASE Intermediate_Dir "pace_dll___Win32_Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir ""
-# PROP Intermediate_Dir ""
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "PACE_DLL_EXPORTS" /YX /FD /c
-# ADD CPP /nologo /MTd /W3 /Gm /GX /Zi /Od /I "../.." /D "_DEBUG" /D "_WINDOWS" /D "_USRDLL" /D "PACE_DLL_EXPORTS" /D "WIN32" /D "_MBCS" /D "PACE_HAS_ALL_POSIX_FUNCS" /FD /c
-# SUBTRACT CPP /YX
-# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /out:"paced.dll" /pdbtype:sept
-
-!ENDIF
-
-# Begin Target
-
-# Name "pace_dll - Win32 Release"
-# Name "pace_dll - Win32 Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE=.\aio.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\assert.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ctype.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\dirent.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\fcntl.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\grp.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\locale.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\math.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\mman.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\mqueue.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\pthread.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\pwd.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\sched.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\semaphore.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\setjmp.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\signal.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\stat.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\stdio.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\stdlib.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\string.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\termios.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\time.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\times.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\unistd.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\utime.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\utsname.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\wait.c
-# End Source File
-# End Group
-# Begin Group "Header Files (Prototypes)"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# Begin Source File
-
-SOURCE=..\aio.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\assert.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\ctype.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\dirent.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\errno.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\fcntl.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\grp.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\limits.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\locale.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\math.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\sys\mman.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\mqueue.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\pthread.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\pwd.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\sched.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\semaphore.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\setjmp.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\signal.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\sys\stat.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\stddef.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\stdio.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\stdlib.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\string.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\termios.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\time.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\sys\times.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\sys\types.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\unistd.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\utime.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\sys\utsname.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\sys\wait.h
-# End Source File
-# End Group
-# Begin Group "Header Files (Win32 Specific)"
-
-# PROP Default_Filter "h"
-# Begin Source File
-
-SOURCE=.\aio.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\assert.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\ctype.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\dirent.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\errno.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\fcntl.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\grp.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\limits.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\locale.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\math.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\mman.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\mqueue.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\pthread.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\pwd.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\sched.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\semaphore.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\setjmp.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\signal.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\stat.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\stdio.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\stdlib.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\string.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\termios.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\time.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\times.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\types.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\unistd.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\utime.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\utsname.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\wait.h
-# End Source File
-# End Group
-# Begin Group "Inline Files"
-
-# PROP Default_Filter "inl"
-# Begin Source File
-
-SOURCE=.\aio.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\assert.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\ctype.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\dirent.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\fcntl.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\grp.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\locale.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\math.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\mman.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\mqueue.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\pthread.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\pwd.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\sched.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\semaphore.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\setjmp.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\signal.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\stat.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\stdio.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\stdlib.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\string.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\termios.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\time.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\times.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\unistd.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\utime.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\utsname.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\wait.inl
-# End Source File
-# End Group
-# Begin Group "Config Files"
-
-# PROP Default_Filter "c"
-# Begin Source File
-
-SOURCE=..\config\compiler.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\config\config.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\config\constants.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\config\defaults.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\config\defines.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\config\features.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\config\platform.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\config\temp.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\config\utility.h
-# End Source File
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
-# End Group
-# End Target
-# End Project
diff --git a/PACE/pace/win32/pace_lib.dsp b/PACE/pace/win32/pace_lib.dsp deleted file mode 100644 index 715b7865b52..00000000000 --- a/PACE/pace/win32/pace_lib.dsp +++ /dev/null @@ -1,602 +0,0 @@ -# Microsoft Developer Studio Project File - Name="pace_lib" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Static Library" 0x0104
-
-CFG=pace_lib - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "pace_lib.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "pace_lib.mak" CFG="pace_lib - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "pace_lib - Win32 Release" (based on "Win32 (x86) Static Library")
-!MESSAGE "pace_lib - Win32 Debug" (based on "Win32 (x86) Static Library")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "pace_lib - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir ""
-# PROP Intermediate_Dir ""
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
-# ADD CPP /nologo /W3 /GX /O2 /I "../.." /D "NDEBUG" /D "_LIB" /D "WIN32" /D "_MBCS" /D "PACE_HAS_ALL_POSIX_FUNCS" /FD /c
-# SUBTRACT CPP /YX
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LIB32=link.exe -lib
-# ADD BASE LIB32 /nologo
-# ADD LIB32 /nologo /out:"paces.lib"
-
-!ELSEIF "$(CFG)" == "pace_lib - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "pace_lib___Win32_Debug"
-# PROP BASE Intermediate_Dir "pace_lib___Win32_Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir ""
-# PROP Intermediate_Dir ""
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
-# ADD CPP /nologo /W3 /Gm /GX /Zi /Od /I "../.." /D "_DEBUG" /D "_LIB" /D "WIN32" /D "_MBCS" /D "PACE_HAS_ALL_POSIX_FUNCS" /FD /c
-# SUBTRACT CPP /YX
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LIB32=link.exe -lib
-# ADD BASE LIB32 /nologo
-# ADD LIB32 /nologo /out:".\pacesd.lib"
-
-!ENDIF
-
-# Begin Target
-
-# Name "pace_lib - Win32 Release"
-# Name "pace_lib - Win32 Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE=.\aio.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\assert.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\ctype.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\dirent.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\fcntl.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\grp.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\locale.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\math.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\mman.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\mqueue.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\pthread.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\pwd.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\sched.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\semaphore.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\setjmp.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\signal.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\stat.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\stdio.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\stdlib.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\string.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\termios.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\time.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\times.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\unistd.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\utime.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\utsname.c
-# End Source File
-# Begin Source File
-
-SOURCE=.\wait.c
-# End Source File
-# End Group
-# Begin Group "Header Files (Prototypes)"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# Begin Source File
-
-SOURCE=..\aio.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\assert.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\ctype.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\dirent.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\errno.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\fcntl.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\grp.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\limits.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\locale.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\math.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\sys\mman.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\mqueue.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\pthread.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\pwd.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\sched.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\semaphore.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\setjmp.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\signal.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\sys\stat.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\stddef.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\stdio.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\stdlib.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\string.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\termios.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\time.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\sys\times.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\sys\types.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\unistd.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\utime.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\sys\utsname.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\sys\wait.h
-# End Source File
-# End Group
-# Begin Group "Header Files (Win32 Specific)"
-
-# PROP Default_Filter ""
-# Begin Source File
-
-SOURCE=.\aio.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\assert.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\ctype.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\dirent.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\errno.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\fcntl.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\grp.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\limits.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\locale.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\math.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\mman.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\mqueue.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\pthread.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\pwd.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\sched.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\semaphore.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\setjmp.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\signal.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\stat.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\stdio.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\stdlib.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\string.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\termios.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\time.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\times.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\types.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\unistd.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\utime.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\utsname.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\wait.h
-# End Source File
-# End Group
-# Begin Group "Inline Files"
-
-# PROP Default_Filter "inl"
-# Begin Source File
-
-SOURCE=.\aio.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\assert.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\ctype.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\dirent.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\fcntl.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\grp.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\locale.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\math.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\mman.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\mqueue.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\pthread.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\pwd.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\sched.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\semaphore.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\setjmp.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\signal.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\stat.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\stdio.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\stdlib.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\string.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\termios.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\time.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\times.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\unistd.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\utime.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\utsname.inl
-# End Source File
-# Begin Source File
-
-SOURCE=.\wait.inl
-# End Source File
-# End Group
-# Begin Group "Config Files"
-
-# PROP Default_Filter ""
-# Begin Source File
-
-SOURCE=..\config\compiler.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\config\config.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\config\constants.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\config\defaults.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\config\defines.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\config\features.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\config\platform.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\config\temp.h
-# End Source File
-# Begin Source File
-
-SOURCE=..\config\utility.h
-# End Source File
-# End Group
-# End Target
-# End Project
diff --git a/PACE/pace/win32/pthread.c b/PACE/pace/win32/pthread.c deleted file mode 100644 index 45aeed44967..00000000000 --- a/PACE/pace/win32/pthread.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/pthread.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/pthread.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/win32/pthread.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/win32/pthread.h b/PACE/pace/win32/pthread.h deleted file mode 100644 index 91f84b50948..00000000000 --- a/PACE/pace/win32/pthread.h +++ /dev/null @@ -1,80 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/pthread.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_PTHREAD_H_WIN32 -#define PACE_PTHREAD_H_WIN32 - -#include "pace/sys/types.h" -#include "pace/signal.h" - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_PTHREAD_CANCELED PTHREAD_CANCELED -#define PACE_PTHREAD_CANCEL_AYNCHRONOUS PTHREAD_CANCEL_ASYNCHRONOUS -#define PACE_PTHREAD_CANCEL_DEFERRED PTHREAD_CANCEL_DEFERRED -#define PACE_PTHREAD_CACEL_DISABLE PTHREAD_CANCEL_DISABLE -#define PACE_PTHREAD_CANCEL_ENABLE PTHREAD_CANCEL_ENABLE -#define PACE_PTHREAD_COND_INITIALIZER PTHREAD_COND_INITIALIZER -#define PACE_PTHREAD_CREATE_DETACHED PTHREAD_CREATE_DETACHED -#define PACE_PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_JOINABLE -#define PACE_PTHREAD_EXPLICIT_SCHED PTHREAD_EXPLICIT_SCHED -#define PACE_PTHREAD_INHERIT_SCHED PTHREAD_INHERIT_SCHED -#define PACE_PTHREAD_MUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER -#define PACE_PTHREAD_ONCE_INIT PTHREAD_ONCE_INIT -#define PACE_PTHREAD_PRIO_INHERIT PTHREAD_PRIO_INHERIT -#define PACE_PTHREAD_PRIO_NONE PTHREAD_PRIO_NONE -#define PACE_PTHREAD_PRIO_PROTECT PTHREAD_PRIO_PROTECT -#define PACE_PTHREAD_PROCESS_PRIVATE PTHREAD_PROCESS_PRIVATE -#define PACE_PTHREAD_PROCESS_SHARED PTHREAD_PROCESS_SHARED -#define PACE_PTHREAD_SCOPE_PROCESS PTHREAD_SCOPE_PROCESS -#define PACE_PTHREAD_SCOPE_SYSTEM PTHREAD_SCOPE_SYSTEM - -#ifndef PACE_SCHED_PARAM -#define PACE_SCHED_PARAM - typedef struct sched_param pace_sched_param; -#endif /* PACE_SCHED_PARAM */ - -#if defined (PACE_HAS_CPLUSPLUS) - -# ifndef PACE_ATFORK_PF -# define PACE_ATFORK_PF - typedef void (*pace_atfork_pf) (void); -# endif /* PACE_ATFORK_PF */ - -# ifndef PACE_KEYCREATE_PF -# define PACE_KEYCREATE_PF - typedef void (*pace_keycreate_pf) (void*); -# endif /* PACE_KEYCREATE_PF */ - -# ifndef PACE_ONCE_PF -# define PACE_ONCE_PF - typedef void (*pace_once_pf) (void); -# endif /* PACE_ONCE_PF */ - -# ifndef PACE_CREATE_PF -# define PACE_CREATE_PF - typedef void* (*pace_create_pf) (void*); -# endif /* PACE_CREATE_PF */ - -#endif /* PACE_HAS_CPLUPLUS */ - - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_PTHREAD_H_WIN32 */ diff --git a/PACE/pace/win32/pthread.inl b/PACE/pace/win32/pthread.inl deleted file mode 100644 index 725b646e989..00000000000 --- a/PACE/pace/win32/pthread.inl +++ /dev/null @@ -1,720 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/pthread.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/unistd.h" - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_atfork (void (*prepare) (void), - void (*parent) (void), - void (*child) (void)) -{ - PACE_UNUSED_ARG (prepare); - PACE_UNUSED_ARG (parent); - PACE_UNUSED_ARG (child); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#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_UNUSED_ARG (attr); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_getdetachstate (const pace_pthread_attr_t * attr, - int * detachstate) -{ - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (detachstate); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_getinheritsched (const pace_pthread_attr_t * attr, - int * inheritsched) -{ - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (inheritsched); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_getschedparam (const pace_pthread_attr_t * attr, - pace_sched_param * param) -{ - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (param); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_getschedpolicy (const pace_pthread_attr_t * attr, - int * policy) -{ - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (policy); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_getscope (const pace_pthread_attr_t * attr, - int * contentionscope) -{ - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (contentionscope); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_getstackaddr (const pace_pthread_attr_t * attr, - void ** stackaddr) -{ - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (stackaddr); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_getstacksize (const pace_pthread_attr_t * attr, - size_t * stacksize) -{ - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (stacksize); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#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_UNUSED_ARG (attr); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#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_UNUSED_ARG (attr); - PACE_UNUSED_ARG (detachstate); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_setinheritsched (pace_pthread_attr_t * attr, - int inheritsched) -{ - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (inheritsched); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#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_UNUSED_ARG (attr); - PACE_UNUSED_ARG (param); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_setschedpolicy (pace_pthread_attr_t * attr, - int policy) -{ - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (policy); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_setscope (pace_pthread_attr_t * attr, - int contentionscope) -{ - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (contentionscope); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_setstackaddr (pace_pthread_attr_t * attr, - void * stackaddr) -{ - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (stackaddr); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_setstacksize (pace_pthread_attr_t * attr, - size_t stacksize) -{ - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (stacksize); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_cancel (pace_pthread_t thread) -{ - PACE_UNUSED_ARG (thread); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#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_UNUSED_ARG (cond); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#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_UNUSED_ARG (cond); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#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_UNUSED_ARG (cond); - PACE_UNUSED_ARG (attr); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#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_UNUSED_ARG (cond); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_cond_timedwait (pthread_cond_t * cond, - pace_pthread_mutex_t * mutex, - const struct timespec * abstime) -{ - PACE_UNUSED_ARG (cond); - PACE_UNUSED_ARG (mutex); - PACE_UNUSED_ARG (abstime); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#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_UNUSED_ARG (cond); - PACE_UNUSED_ARG (mutex); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#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_UNUSED_ARG (attr); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_condattr_getpshared (const pace_pthread_condattr_t * attr, - int * pshared) -{ - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (pshared); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#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_UNUSED_ARG (attr); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_condattr_setpshared (pace_pthread_condattr_t * attr, - int pshared) -{ - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (pshared); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#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_UNUSED_ARG (thread); - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (start_routine); - PACE_UNUSED_ARG (arg); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_detach (pace_pthread_t thread) -{ - PACE_UNUSED_ARG (thread); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#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_UNUSED_ARG (t1); - PACE_UNUSED_ARG (t2); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -void -pace_pthread_exit (void * value_ptr) -{ - PACE_UNUSED_ARG (value_ptr); - PACE_ERRNO_NO_SUPPORT (); - return; -} -#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_UNUSED_ARG (thread); - PACE_UNUSED_ARG (policy); - PACE_UNUSED_ARG (param); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -void * -pace_pthread_getspecific (pace_pthread_key_t key) -{ - void * retval = (void*)0; - PACE_UNUSED_ARG (key); - PACE_ERRNO_NO_SUPPORT_RETURN (retval); -} -#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_UNUSED_ARG (thread); - PACE_UNUSED_ARG (value_ptr); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#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_UNUSED_ARG (key); - PACE_UNUSED_ARG (destructor); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#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_UNUSED_ARG (key); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#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_UNUSED_ARG (thread); - PACE_UNUSED_ARG (sig); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#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_UNUSED_ARG (mutex); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutex_getprioceiling (pace_pthread_mutex_t * mutex, - int * prioceiling) -{ - PACE_UNUSED_ARG (mutex); - PACE_UNUSED_ARG (prioceiling); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#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_UNUSED_ARG (mutex); - PACE_UNUSED_ARG (attr); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#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_UNUSED_ARG (mutex); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutex_setprioceiling (pace_pthread_mutex_t * mutex, - int prioceiling, - int * old_ceiling) -{ - PACE_UNUSED_ARG (mutex); - PACE_UNUSED_ARG (prioceiling); - PACE_UNUSED_ARG (old_ceiling); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutex_trylock (pthread_mutex_t * mutex) -{ - PACE_UNUSED_ARG (mutex); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#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_UNUSED_ARG (mutex); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#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_UNUSED_ARG (attr); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutexattr_getprioceiling (pace_pthread_mutexattr_t * attr, - int * prioceiling) -{ - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (prioceiling); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutexattr_getprotocol (const pace_pthread_mutexattr_t * attr, - int * protocol) -{ - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (protocol); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutexattr_setprioceiling (pace_pthread_mutexattr_t * attr, - int prioceiling) -{ - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (prioceiling); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#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_UNUSED_ARG (attr); - PACE_UNUSED_ARG (protocol); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutexattr_getpshared (const pace_pthread_mutexattr_t * attr, - int * pshared) -{ - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (pshared); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#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_UNUSED_ARG (attr); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#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_UNUSED_ARG (attr); - PACE_UNUSED_ARG (pshared); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#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_UNUSED_ARG (once_control); - PACE_UNUSED_ARG (void_routine); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -pace_pthread_t -pace_pthread_self () -{ - pace_pthread_t retval = (pace_pthread_t)-1; - PACE_ERRNO_NO_SUPPORT_RETURN (retval); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_setcancelstate (int state, int * oldstate) -{ - PACE_UNUSED_ARG (state); - PACE_UNUSED_ARG (oldstate); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_setcanceltype (int type, int * oldtype) -{ - PACE_UNUSED_ARG (type); - PACE_UNUSED_ARG (oldtype); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#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_UNUSED_ARG (thread); - PACE_UNUSED_ARG (policy); - PACE_UNUSED_ARG (param); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#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_UNUSED_ARG (key); - PACE_UNUSED_ARG (value); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#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_UNUSED_ARG (how); - PACE_UNUSED_ARG (set); - PACE_UNUSED_ARG (oset); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -void -pace_pthread_testcancel () -{ - PACE_ERRNO_NO_SUPPORT (); - return; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/win32/pwd.c b/PACE/pace/win32/pwd.c deleted file mode 100644 index bb58fd5ce40..00000000000 --- a/PACE/pace/win32/pwd.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/pwd.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/pwd.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/win32/pwd.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/win32/pwd.h b/PACE/pace/win32/pwd.h deleted file mode 100644 index f66e326d96c..00000000000 --- a/PACE/pace/win32/pwd.h +++ /dev/null @@ -1,34 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/pwd.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_PWD_H_WIN32 -#define PACE_PWD_H_WIN32 - -#include "pace/sys/types.h" - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_PASSWD -#define PACE_PASSWD - typedef struct passwd { int a_; } pace_passwd; -#endif /* PACE_PASSWD */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_PWD_H_WIN32 */ diff --git a/PACE/pace/win32/pwd.inl b/PACE/pace/win32/pwd.inl deleted file mode 100644 index 24e9f7b1f10..00000000000 --- a/PACE/pace/win32/pwd.inl +++ /dev/null @@ -1,72 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/pwd.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_SD_UOF) -PACE_INLINE -pace_passwd * -pace_getpwuid (pace_uid_t uid) -{ - pace_passwd * retval = (pace_passwd*)0; - PACE_UNUSED_ARG (uid); - PACE_ERRNO_NO_SUPPORT_RETURN (retval); -} -#endif /* PACE_HAS_POSIX_SD_UOF */ - -#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_UNUSED_ARG (uid); - PACE_UNUSED_ARG (pwd); - PACE_UNUSED_ARG (buffer); - PACE_UNUSED_ARG (bufsize); - PACE_UNUSED_ARG (result); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_SDR_UOF */ - -#if (PACE_HAS_POSIX_SD_UOF) -PACE_INLINE -pace_passwd * -pace_getpwnam (const char * name) -{ - pace_passwd * retval = (pace_passwd*)0; - PACE_UNUSED_ARG (name); - PACE_ERRNO_NO_SUPPORT_RETURN (retval); -} -#endif /* PACE_HAS_POSIX_SD_UOF */ - -#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_UNUSED_ARG (name); - PACE_UNUSED_ARG (pwd); - PACE_UNUSED_ARG (buffer); - PACE_UNUSED_ARG (bufsize); - PACE_UNUSED_ARG (result); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_SDR_UOF */ diff --git a/PACE/pace/win32/sched.c b/PACE/pace/win32/sched.c deleted file mode 100644 index 9438ab245c5..00000000000 --- a/PACE/pace/win32/sched.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/sched.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/sched.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/win32/sched.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/win32/sched.h b/PACE/pace/win32/sched.h deleted file mode 100644 index 795fb73e39e..00000000000 --- a/PACE/pace/win32/sched.h +++ /dev/null @@ -1,37 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/sched.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SCHED_H_WIN32 -#define PACE_SCHED_H_WIN32 - -#include "pace/time.h" - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_SCHED_FIFO SCHED_FIFO -#define PACE_SCHED_OTHER SCHED_RR - -#ifndef PACE_SCHED_PARAM -#define PACE_SCHED_PARAM - typedef struct sched_param { int a_; } pace_sched_param; -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SCHED_H_WIN32 */ diff --git a/PACE/pace/win32/sched.inl b/PACE/pace/win32/sched.inl deleted file mode 100644 index 06577337db6..00000000000 --- a/PACE/pace/win32/sched.inl +++ /dev/null @@ -1,103 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/sched.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sched_get_priority_max (int policy) -{ - PACE_UNUSED_ARG (policy); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sched_get_priority_min (int policy) -{ - PACE_UNUSED_ARG (policy); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sched_getparam (pace_pid_t pid, - pace_sched_param * param) -{ - PACE_UNUSED_ARG (pid); - PACE_UNUSED_ARG (param); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sched_rr_get_interval (pace_pid_t pid, - pace_timespec * interval) -{ - PACE_UNUSED_ARG (pid); - PACE_UNUSED_ARG (interval); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sched_setparam (pace_pid_t pid, - const pace_sched_param * param) -{ - PACE_UNUSED_ARG (pid); - PACE_UNUSED_ARG (param); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sched_getscheduler (pace_pid_t pid) -{ - PACE_UNUSED_ARG (pid); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sched_setscheduler (pace_pid_t pid, - int policy, - const pace_sched_param * param) -{ - PACE_UNUSED_ARG (pid); - PACE_UNUSED_ARG (policy); - PACE_UNUSED_ARG (param); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sched_yield () -{ - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/win32/semaphore.c b/PACE/pace/win32/semaphore.c deleted file mode 100644 index 401ebddc5a5..00000000000 --- a/PACE/pace/win32/semaphore.c +++ /dev/null @@ -1,120 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/semaphore.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/semaphore.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/win32/semaphore.inl" -#endif /* ! PACE_HAS_INLINE */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -# include <stdio.h> -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int -sem_close (pace_sem_t * sem) -{ - PACE_WIN32CALL_RETURN - (PACE_ADAPT_RETVAL - (CloseHandle (sem), pace_result_), int, -1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int -sem_destroy (pace_sem_t * sem) -{ - PACE_WIN32CALL_RETURN - (PACE_ADAPT_RETVAL - (CloseHandle (sem), pace_result_), int, -1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int -sem_init (pace_sem_t * sem, int pshared, unsigned int value) -{ - /* Create the semaphore with its value initialized to <count> and - its maximum value initialized to <max>. - - How do we want to call CreateSemaphore? What about the char *? - */ - *sem = CreateSemaphore (0, value, 2147483647, "noname"); - - if (*sem == 0) - { - PACE_FAIL_RETURN (-1); - } - /* NOTREACHED */ - else - { - return 0; - } -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int -sem_post (pace_sem_t * sem) -{ - PACE_WIN32CALL_RETURN - (PACE_ADAPT_RETVAL - (ReleaseSemaphore (*sem, 1, 0), pace_result_), int, -1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int -sem_trywait (pace_sem_t * sem) -{ - int result = WaitForSingleObject (*sem, 0); - - if (result == WAIT_OBJECT_0) - { - return 0; - } - else - { - if (result == WAIT_TIMEOUT) - { - errno = EBUSY; - } - else - { - errno = GetLastError (); - } - /* This is a hack, we need to find an appropriate mapping... */ - return -1; - } -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int -sem_wait (pace_sem_t * sem) -{ - switch (WaitForSingleObject (*sem, INFINITE)) - { - case WAIT_OBJECT_0: - return 0; - default: - /* This is a hack, we need to find an appropriate mapping... */ - errno = GetLastError (); - return -1; - } -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - diff --git a/PACE/pace/win32/semaphore.h b/PACE/pace/win32/semaphore.h deleted file mode 100644 index c600bf7e068..00000000000 --- a/PACE/pace/win32/semaphore.h +++ /dev/null @@ -1,61 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/semaphore.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SEMAPHORE_H_WIN32 -#define PACE_SEMAPHORE_H_WIN32 - -#include <windows.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_SEM_T -#define PACE_SEM_T - /* Temporary fix until we emulate these funcs. - typedef mqd_t pace_mqd_t; - */ - typedef HANDLE pace_sem_t; -#endif /* PACE_SEM_T */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - int sem_close (pace_sem_t * sem); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - int sem_destroy (pace_sem_t * sem); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - int sem_init (pace_sem_t * sem, int pshared, unsigned int value); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - int sem_post (pace_sem_t * sem); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - int sem_trywait (pace_sem_t * sem); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - int sem_wait (pace_sem_t * sem); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SEMAPHORE_H_WIN32 */ diff --git a/PACE/pace/win32/semaphore.inl b/PACE/pace/win32/semaphore.inl deleted file mode 100644 index cdef7d7fe8a..00000000000 --- a/PACE/pace/win32/semaphore.inl +++ /dev/null @@ -1,93 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/semaphore.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include <io.h> - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sem_close (pace_sem_t * sem) -{ - return sem_close (sem); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sem_destroy (pace_sem_t * sem) -{ - return sem_destroy (sem); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sem_getvalue (pace_sem_t * sem, int * sval) -{ - PACE_UNUSED_ARG (sem); - PACE_UNUSED_ARG (sval); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sem_init (pace_sem_t * sem, - int pshared, - unsigned int value) -{ - return sem_init (sem, pshared, value); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sem_post (pace_sem_t * sem) -{ - return sem_post (sem); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sem_trywait (pace_sem_t * sem) -{ - return sem_trywait (sem); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sem_unlink (const char * name) -{ - return _unlink (name); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sem_wait (pace_sem_t * sem) -{ - return sem_wait (sem); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - diff --git a/PACE/pace/win32/setjmp.c b/PACE/pace/win32/setjmp.c deleted file mode 100644 index b245f6fe3c1..00000000000 --- a/PACE/pace/win32/setjmp.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/setjmp.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/setjmp.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/win32/setjmp.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/win32/setjmp.h b/PACE/pace/win32/setjmp.h deleted file mode 100644 index bd8b44ad1fd..00000000000 --- a/PACE/pace/win32/setjmp.h +++ /dev/null @@ -1,42 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/setjmp.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SETJMP_H_WIN32 -#define PACE_SETJMP_H_WIN32 - -#include <setjmp.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -# define PACE_SIGJLEN 128 - -# ifndef PACE_JMP_BUF -# define PACE_JMP_BUF - typedef jmp_buf pace_jmp_buf; -#endif /* PACE_JMP_BUF */ - -# ifndef PACE_SIGJMP_BUF -# define PACE_SIGJMP_BUF - typedef long sigjmp_buf[PACE_SIGJLEN]; - typedef sigjmp_buf pace_sigjmp_buf; -#endif /* PACE_SIGJMP_BUF */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SETJMP_H_WIN32 */ diff --git a/PACE/pace/win32/setjmp.inl b/PACE/pace/win32/setjmp.inl deleted file mode 100644 index 974cb96c141..00000000000 --- a/PACE/pace/win32/setjmp.inl +++ /dev/null @@ -1,56 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/setjmp.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_setjmp (pace_jmp_buf env) -{ - return setjmp (env); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigsetjmp (pace_sigjmp_buf env, int savemask) -{ - PACE_UNUSED_ARG (env); - PACE_UNUSED_ARG (savemask); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -void -pace_longjmp (pace_jmp_buf env, int val) -{ - longjmp (env, val); - return; -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -void -pace_siglongjmp (pace_sigjmp_buf env, int val) -{ - PACE_UNUSED_ARG (env); - PACE_UNUSED_ARG (val); - PACE_ERRNO_NO_SUPPORT (); - return; -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ diff --git a/PACE/pace/win32/signal.c b/PACE/pace/win32/signal.c deleted file mode 100644 index f0d1685971a..00000000000 --- a/PACE/pace/win32/signal.c +++ /dev/null @@ -1,45 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/signal.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/signal.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/win32/signal.inl" -#endif /* ! PACE_HAS_INLINE */ - -#if (PACE_HAS_POSIX_SIG_UOF) -int -sigaction (int sig, const pace_sigaction_s * act, - pace_sigaction_s * oact) -{ - pace_sigaction_s sa; - - if (oact == 0) - { - oact = &sa; - } - - if (act == 0) - { - oact->sa_handler = signal (sig, SIG_IGN); - signal (sig, oact->sa_handler); - } - else - { - oact->sa_handler = signal (sig, act->sa_handler); - } - return (oact->sa_handler == SIG_ERR ? -1 : 0); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ diff --git a/PACE/pace/win32/signal.h b/PACE/pace/win32/signal.h deleted file mode 100644 index b0ca85eeaf6..00000000000 --- a/PACE/pace/win32/signal.h +++ /dev/null @@ -1,81 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/signal.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - - -#ifndef PACE_SIGNAL_H_WIN32 -#define PACE_SIGNAL_H_WIN32 - -#include "pace/sys/types.h" -#include "pace/time.h" -#include <signal.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_SIGATOMIC_T -#define PACE_SIGATOMIC_T - typedef sig_atomic_t pace_sig_atomic_t; -#endif /* PACE_SIGATOMIC_T */ - -#ifndef PACE_SIGSET_T -#define PACE_SIGSET_T - typedef struct sigset_t - { - /* signal set type */ - unsigned int sigbits_[4]; - } pace_sigset_t; -#endif /* PACE_SIGSET_T */ - -#ifndef PACE_SIGACTION_S -#define PACE_SIGACTION_S - typedef void (__cdecl *pace_sig_pf)(int); - typedef struct sigaction { - int sa_flags; - pace_sig_pf sa_handler; - pace_sigset_t sa_mask; - } pace_sigaction_s; -#endif /* PACE_SIGACTION_S */ - -#ifndef PACE_SIGINFO_T -#define PACE_SIGINFO_T - typedef struct siginfo_t - { - PACE_HANDLE si_handle_; - // Win32 HANDLE that has become signaled. - - PACE_HANDLE *si_handles_; - // Array of Win32 HANDLEs all of which have become signaled. - } pace_siginfo_t; -# endif /* PACE_SIGINFO_T */ - -#ifndef PACE_SIGEVENT - typedef struct sigevent pace_sigevent; -#endif /* PACE_SIGEVENT */ - -#ifndef PACE_SIGVAL - typedef union sigval pace_sigval; -#endif /* PACE_SIGVAL */ - -#if (PACE_HAS_POSIX_SIG_UOF) - int sigaction (int sig, const pace_sigaction_s * act, - pace_sigaction_s * oact); -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SIGNAL_H_WIN32 */ diff --git a/PACE/pace/win32/signal.inl b/PACE/pace/win32/signal.inl deleted file mode 100644 index 45e842733e4..00000000000 --- a/PACE/pace/win32/signal.inl +++ /dev/null @@ -1,187 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/signal.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_kill (pace_pid_t pid, int sig) -{ - PACE_UNUSED_ARG (pid); - PACE_UNUSED_ARG (sig); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_raise (int sig) -{ - PACE_UNUSED_ARG (sig); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigaction (int sig, const pace_sigaction_s * act, - pace_sigaction_s * oact) -{ - return sigaction (sig, act, oact); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigaddset (pace_sigset_t * set, int signo) -{ - PACE_UNUSED_ARG (set); - PACE_UNUSED_ARG (signo); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigemptyset (pace_sigset_t * set) -{ - PACE_UNUSED_ARG (set); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigdelset (pace_sigset_t * set, int signo) -{ - PACE_UNUSED_ARG (set); - PACE_UNUSED_ARG (signo); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigfillset (pace_sigset_t * set) -{ - PACE_UNUSED_ARG (set); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigismember (const pace_sigset_t * set, int signo) -{ - PACE_UNUSED_ARG (set); - PACE_UNUSED_ARG (signo); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -void -(*pace_signal(int sig, void (*func)(int)))(int) -{ - return signal (sig, func); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigpending (pace_sigset_t * set) -{ - PACE_UNUSED_ARG (set); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigprocmask (int how, const pace_sigset_t * set, - pace_sigset_t * oset) -{ - PACE_UNUSED_ARG (how); - PACE_UNUSED_ARG (set); - PACE_UNUSED_ARG (oset); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sigqueue (pace_pid_t pid, int signo, - const pace_sigval value) -{ - PACE_UNUSED_ARG (pid); - PACE_UNUSED_ARG (signo); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigsuspend (const pace_sigset_t * sigmask) -{ - PACE_UNUSED_ARG (sigmask); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#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_UNUSED_ARG (set); - PACE_UNUSED_ARG (info); - PACE_UNUSED_ARG (timeout); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sigwait (const pace_sigset_t * set, int * sig) -{ - PACE_UNUSED_ARG (set); - PACE_UNUSED_ARG (sig); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sigwaitinfo (const pace_sigset_t * set, pace_siginfo_t * info) -{ - PACE_UNUSED_ARG (set); - PACE_UNUSED_ARG (info); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/win32/stat.c b/PACE/pace/win32/stat.c deleted file mode 100644 index 7d19234162e..00000000000 --- a/PACE/pace/win32/stat.c +++ /dev/null @@ -1,40 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/stat.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/sys/stat.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/win32/stat.inl" -#endif /* ! PACE_HAS_INLINE */ - -#include <windows.h> -#include <direct.h> - -#if (PACE_HAS_POSIX_FS_UOF) -int -win32_mkdir (const char * path, pace_mode_t mode) -{ - PACE_UNUSED_ARG (mode); -# if defined (__IBMCPP__) && (__IBMCPP__ >= 400) - PACE_OSCALL_RETURN (_mkdir ((char *) path), int, -1); -# elif defined (PACE_WINCE) - PACE_WIN32CALL_RETURN - (PACE_ADAPT_RETVAL - (CreateDirectory (path, NULL), pace_result_), int, -1); -# else - PACE_OSCALL_RETURN (_mkdir (path), int, -1); -# endif /* PACE_WIN32 */ -} -#endif /* PACE_HAS_POSIX_FS_UOF */ diff --git a/PACE/pace/win32/stat.h b/PACE/pace/win32/stat.h deleted file mode 100644 index 570f1110ab6..00000000000 --- a/PACE/pace/win32/stat.h +++ /dev/null @@ -1,65 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/stat.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SYS_STAT_H_WIN32 -#define PACE_SYS_STAT_H_WIN32 - -#include "pace/sys/types.h" -#include <sys/stat.h> -#include <io.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_S_IRGRP S_IRGRP -#define PACE_S_IROTH S_IROTH -#define PACE_S_IRUSR S_IRUSR -#define PACE_S_IRWXG S_IRWXG -#define PACE_S_IRWXO S_IRWXO -#define PACE_S_IRWXU S_IRWXU -#define PACE_S_ISBLK S_ISBLK -#define PACE_S_ISCHR S_ISCHR -#define PACE_S_ISDIR S_ISDIR -#define PACE_S_ISFIFO S_ISFIFO -#define PACE_S_ISGID S_SIGID -#define PACE_S_ISREG S_ISREG -#define PACE_S_ISUID S_ISUID -#define PACE_S_IWGRP S_IWGRP -#define PACE_S_IWOTH S_IWOTH -#define PACE_S_IWUSR S_IWUSR -#define PACE_S_IXGRP S_IXGRP -#define PACE_S_IXOTH S_IXOTH -#define PACE_S_IXUSR S_IXUSR -#define PACE_S_TYPEISMQ S_TYPEISMQ -#define PACE_S_TYPEISSEM S_TYPEISSEM -#define PACE_S_TYPEISMQ S_TYPEISMQ -#define PACE_S_TYPEISSEM S_TYPEISSEM -#define PACE_S_TYPEISSHM S_TYPEISSHM - -#ifndef PACE_STAT -#define PACE_STAT - typedef struct _stat pace_stat_s; -#endif /* PACE_STAT */ - -#if (PACE_HAS_POSIX_FS_UOF) - int win32_mkdir (const char * path, pace_mode_t mode); -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SYS_STAT_H_WIN32 */ diff --git a/PACE/pace/win32/stat.inl b/PACE/pace/win32/stat.inl deleted file mode 100644 index c6181afdcfc..00000000000 --- a/PACE/pace/win32/stat.inl +++ /dev/null @@ -1,83 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/stat.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_FA_UOF) -PACE_INLINE -int -pace_chmod (const char * path, pace_mode_t mode) -{ - PACE_UNUSED_ARG (path); - PACE_UNUSED_ARG (mode); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_FA_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_fchmod (int fildes, pace_mode_t mode) -{ - PACE_UNUSED_ARG (fildes); - PACE_UNUSED_ARG (mode); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_fstat (int fildes, pace_stat_s * buf) -{ - return _fstat (fildes, 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) -{ - return win32_mkdir (path, 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_UNUSED_ARG (path); - PACE_UNUSED_ARG (mode); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_F_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_stat (const char * path, pace_stat_s * buf) -{ - return _stat (path, buf); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FA_UOF) -PACE_INLINE -pace_mode_t -pace_umask (pace_mode_t cmask) -{ - return _umask (cmask); -} -#endif /* PACE_HAS_POSIX_FA_UOF */ diff --git a/PACE/pace/win32/stdio.c b/PACE/pace/win32/stdio.c deleted file mode 100644 index ff45c694a56..00000000000 --- a/PACE/pace/win32/stdio.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/stdio.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/stdio.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/win32/stdio.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/win32/stdio.h b/PACE/pace/win32/stdio.h deleted file mode 100644 index c4c4190fdf0..00000000000 --- a/PACE/pace/win32/stdio.h +++ /dev/null @@ -1,53 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/stdio.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_STDIO_H_WIN32 -#define PACE_STDIO_H_WIN32 - -#include <stdio.h> -#include <stdarg.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_BUFSIZ BUFSIZ -#define PACE_EOF EOF -#define PACE_FILENAME_MAX FILENAME_MAX -#define PACE_L_ctermid L_ctermid -#define PACE_L_cuserid L_cuserid -#define PACE_NULL NULL -#define PACE_SEEK_CUR SEEK_CUR -#define PACE_SEEK_END SEEK_END -#define PACE_SEEK_SET SEEK_SET -#define PACE_TMP_MAX TMP_MAX -#define pace_stderr stderr -#define pace_stdout stdout -#define pace_stdin stdin - -typedef fpos_t pace_fpos_t; - -#ifndef PACE_SIZE_T -#define PACE_SIZE_T - typedef size_t pace_size_t; -#endif /* PACE_SIZE_T */ - -typedef FILE PACE_FILE; - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_STDIO_H_WIN32 */ diff --git a/PACE/pace/win32/stdio.inl b/PACE/pace/win32/stdio.inl deleted file mode 100644 index fca3384d839..00000000000 --- a/PACE/pace/win32/stdio.inl +++ /dev/null @@ -1,460 +0,0 @@ -/* $Id$ -*- C -*- - - * =========================================================================== - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/stdio.inl - * - * = AUTHOR - * Luther Baker - * - * =========================================================================== */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -void -pace_clearerr (FILE * stream) -{ - clearerr (stream); - return; -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_fclose (FILE * stream) -{ - return fclose (stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -char * -pace_ctermid (char * s) -{ - char * retval = (char*)0; - PACE_UNUSED_ARG (s); - PACE_ERRNO_NO_SUPPORT_RETURN (retval); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -FILE * -pace_fdopen (int fildes, - const char * type) -{ - return fdopen (fildes, type); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_ferror (FILE * stream) -{ - return ferror (stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_feof (FILE * stream) -{ - return feof (stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_fflush (FILE * stream) -{ - return fflush (stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_fileno (FILE * stream) -{ - return fileno (stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_fgetc (FILE * stream) -{ - return fgetc (stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_fgetpos(PACE_FILE * stream, - pace_fpos_t * pos) -{ - return fgetpos (stream, pos); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -char * -pace_fgets (char * s, - int n, - FILE * stream) -{ - return fgets (s, n, stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FL_UOF) -PACE_INLINE -void -pace_flockfile (FILE * file) -{ - PACE_UNUSED_ARG (file); - PACE_ERRNO_NO_SUPPORT (); - return; -} -#endif /* PACE_HAS_POSIX_FL_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -FILE * -pace_fopen (const char * filename, - const char * mode) -{ - return fopen (filename, mode); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_fputc (int c, FILE * stream) -{ - return fputc (c, stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_fputs (const char * s, FILE * stream) -{ - return fputs (s, stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -size_t -pace_fread (void * ptr, - size_t size, - size_t number_of_items, - FILE * stream) -{ - return fread (ptr, - size, - number_of_items, - stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -FILE * -pace_freopen (const char * filename, - const char * mode, - FILE * stream) -{ - return freopen (filename, mode, stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FM_UOF) -PACE_INLINE -int -pace_fseek (FILE * stream, - long offset, - int whence) -{ - return fseek (stream, offset, whence); -} -#endif /* PACE_HAS_POSIX_FM_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_fsetpos(PACE_FILE * stream, const pace_fpos_t * pos) -{ - return fsetpos (stream, pos); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_FM_UOF) -PACE_INLINE -long -pace_ftell (FILE * stream) -{ - return ftell (stream); -} -#endif /* PACE_HAS_POSIX_FM_UOF */ - -#if (PACE_HAS_POSIX_FL_UOF) -PACE_INLINE -int -pace_ftrylockfile (FILE * file) -{ - PACE_UNUSED_ARG (file); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_FL_UOF */ - -#if (PACE_HAS_POSIX_FL_UOF) -PACE_INLINE -void -pace_funlockfile (FILE * file) -{ - PACE_UNUSED_ARG(file); - PACE_ERRNO_NO_SUPPORT (); - return; -} -#endif /* PACE_HAS_POSIX_FL_UOF */ - -#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) -{ - return fwrite (ptr, size, nmemb, stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_getc (FILE * stream) -{ - return getc (stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FL_UOF) -PACE_INLINE -int -pace_getc_unlocked (FILE * stream) -{ - PACE_UNUSED_ARG (stream); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_FL_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_getchar () -{ - return getchar (); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FL_UOF) -PACE_INLINE -int -pace_getchar_unlocked () -{ - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_FL_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -char * -pace_gets (char * s) -{ - return gets (s); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -void -pace_perror (const char * s) -{ - perror (s); - return; -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_putc (int c, FILE * stream) -{ - return putc (c, stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FL_UOF) -PACE_INLINE -int -pace_putc_unlocked (int c, - FILE * stream) -{ - PACE_UNUSED_ARG (c); - PACE_UNUSED_ARG (stream); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_FL_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_putchar (int c) -{ - return putchar (c); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FL_UOF) -PACE_INLINE -int -pace_putchar_unlocked (int c) -{ - PACE_UNUSED_ARG(c); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_FL_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_puts (const char * s) -{ - return puts (s); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_remove (const char * path) -{ - return remove (path); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_rename (const char * old_name, - const char * new_name) -{ - return rename (old_name, new_name); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FM_UOF) -PACE_INLINE -void -pace_rewind (FILE * stream) -{ - rewind (stream); - return; -} -#endif /* PACE_HAS_POSIX_FM_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -void -pace_setbuf (FILE * stream, char * buf) -{ - setbuf (stream, buf); - return; -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_setvbuf(PACE_FILE * stream, - char * buf, - int mode, pace_size_t size) -{ - return setvbuf (stream, buf, mode, size); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -FILE * -pace_tmpfile () -{ - return tmpfile (); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -char * -pace_tmpnam (char * s) -{ - return tmpnam (s); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_ungetc (int c, FILE * stream) -{ - return ungetc (c, stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_vfprintf (PACE_FILE * stream, - const char * format, - va_list arg) -{ - return vfprintf (stream, format, arg); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_vprintf (const char * format, - va_list arg) -{ - return vprintf (format, arg); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_vsprintf (char * s, - const char * format, - va_list arg) -{ - return vsprintf (s, format, arg); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/win32/stdlib.c b/PACE/pace/win32/stdlib.c deleted file mode 100644 index 2d6f593e75d..00000000000 --- a/PACE/pace/win32/stdlib.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/stdlib.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/stdlib.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/win32/stdlib.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/win32/stdlib.h b/PACE/pace/win32/stdlib.h deleted file mode 100644 index 64d0f5314df..00000000000 --- a/PACE/pace/win32/stdlib.h +++ /dev/null @@ -1,49 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/stdlib.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_STDLIB_H_WIN32 -#define PACE_STDLIB_H_WIN32 - -#include <stdlib.h> -#include "pace/unistd.h" - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_EXIT_FAILURE EXIT_FAILURE -#define PACE_EXIT_SUCCESS EXIT_SUCCESS -#define PACE_MB_CUR_MAX MB_CUR_MAX -#define PACE_NULL NULL -#define PACE_RAND_MAX RAND_MAX - -typedef div_t pace_div_t; -typedef ldiv_t pace_ldiv_t; - -#ifndef PACE_SIZE_T -#define PACE_SIZE_T - typedef size_t pace_size_t; -#endif /* PACE_SIZE_T */ - -#ifndef PACE_WCHAR_T -#define PACE_WCHAR_T - typedef wchar_t pace_wchar_t; -#endif /* PACE_WCHAR_T */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_STDLIB_H_WIN32 */ diff --git a/PACE/pace/win32/stdlib.inl b/PACE/pace/win32/stdlib.inl deleted file mode 100644 index 67a3656e815..00000000000 --- a/PACE/pace/win32/stdlib.inl +++ /dev/null @@ -1,173 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/stdlib.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include <stdlib.h> - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -void -pace_abort (void) -{ - abort (); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_abs (int val) -{ - return abs (val); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_atof (const char * str) -{ - return atof (str); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_atoi (const char * str) -{ - return atoi (str); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -long -pace_atol (const char * str) -{ - return atol (str); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#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 *)) -{ - return bsearch (key, base, nel, size, compar); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -void -pace_exit (int status) -{ - exit (status); - return; -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -char * -pace_getenv (const char * name) -{ - return getenv (name); -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#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 *)) -{ - qsort (base, nel, width, compar); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_rand () -{ - return rand (); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -void -pace_srand (unsigned int seed) -{ - srand (seed); - return; -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLSR_UOF) -PACE_INLINE -int -pace_rand_r (unsigned int *seed) -{ - PACE_UNUSED_ARG (seed); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_CLSR_UOF */ - -/* Memory Management. */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -void * -pace_malloc (size_t size) -{ - return malloc (size); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -void * -pace_calloc (size_t nelem, size_t elsize) -{ - return calloc (nelem, elsize); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -void -pace_free (void * ptr) -{ - free (ptr); - return; -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -void * -pace_realloc (void * ptr, size_t size) -{ - return realloc (ptr, size); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - - - - diff --git a/PACE/pace/win32/string.c b/PACE/pace/win32/string.c deleted file mode 100644 index 758fc63094c..00000000000 --- a/PACE/pace/win32/string.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/string.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/string.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/win32/string.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/win32/string.h b/PACE/pace/win32/string.h deleted file mode 100644 index 22d21a80e15..00000000000 --- a/PACE/pace/win32/string.h +++ /dev/null @@ -1,38 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/string.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_STRING_H_WIN32 -#define PACE_STRING_H_WIN32 - -#include "pace/unistd.h" - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#if !defined (PACE_NULL) -# define PACE_NULL NULL -#endif /* NULL */ - -#ifndef PACE_SIZE_T -#define PACE_SIZE_T - typedef size_t pace_size_t; -#endif /* PACE_SIZE_T */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_STRING_H_WIN32 */ diff --git a/PACE/pace/win32/string.inl b/PACE/pace/win32/string.inl deleted file mode 100644 index 1e157eae8ee..00000000000 --- a/PACE/pace/win32/string.inl +++ /dev/null @@ -1,202 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/string.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include <string.h> - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -void * -pace_memchr (const void *s, int c, pace_size_t n) -{ - return memchr (s, c, n); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_memcmp (const void *s1, const void *s2, pace_size_t n) -{ - return memcmp (s1, s2, n); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -void * -pace_memcpy (void * s1, const void * s2, pace_size_t n) -{ - return memcpy (s1, s2, n); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -void * -pace_memmove (void *s1, const void *s2, pace_size_t n) -{ - return memmove (s1, s2, n); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -void * -pace_memset (void *s, int c, pace_size_t n) -{ - return memset (s, c, n); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_strcat (char * s1, const char * s2) -{ - return strcat (s1, s2); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_strncat (char * s1, const char * s2, size_t n) -{ - return strncat (s1, s2, n); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_strchr (const char * s, int c) -{ - return strchr (s, c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_strrchr (const char * s, int c) -{ - return strrchr (s, c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_strcmp (const char * s1, const char * s2) -{ - return strcmp (s1, s2); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_strncmp (const char * s1, const char * s2, size_t n) -{ - return strncmp (s1, s2, n); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_strcpy (char * s1, const char * s2) -{ - return strcpy (s1, s2); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_strncpy (char * s1, const char * s2, size_t n) -{ - return strncpy (s1, s2, n); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -size_t -pace_strcspn (const char * s1, const char * s2) -{ - return strcspn (s1, s2); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -size_t -pace_strspn (const char * s1, const char * s2) -{ - return strspn (s1, s2); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -size_t -pace_strlen (const char * s) -{ - return strlen (s); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_strpbrk (const char * s1, const char * s2) -{ - return strpbrk (s1, s2); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_strstr (const char * s1, const char * s2) -{ - return strstr (s1, s2); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_strtok (char * s1, const char * s2) -{ - return strtok (s1, s2); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLSR_UOF) -PACE_INLINE -char * -pace_strtok_r (char * s, const char * sep, char ** lasts) -{ - PACE_UNUSED_ARG (s); - PACE_UNUSED_ARG (sep); - PACE_UNUSED_ARG (lasts); - PACE_ERRNO_NO_SUPPORT (); - return 0; -} -#endif /* PACE_HAS_POSIX_CLSR_UOF */ - - diff --git a/PACE/pace/win32/termios.c b/PACE/pace/win32/termios.c deleted file mode 100644 index d5d32ced9a6..00000000000 --- a/PACE/pace/win32/termios.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/termios.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/termios.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/win32/termios.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/win32/termios.h b/PACE/pace/win32/termios.h deleted file mode 100644 index 8d491f5f460..00000000000 --- a/PACE/pace/win32/termios.h +++ /dev/null @@ -1,56 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/termios.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SYS_TERMIOS_H_WIN32 -#define PACE_SYS_TERMIOS_H_WIN32 - -#include "pace/sys/types.h" - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS) */ - -#ifndef PACE_CC_T -#define PACE_CC_T - /* Temporary until we correctly emulate these funcs on WIN32. */ - typedef int cc_t; - typedef cc_t pace_cc_t; -#endif /* PACE_CC_T */ - -#ifndef PACE_SPEED_T -#define PACE_SPEED_T - /* Temporary until we correctly emulate these funcs on WIN32. */ - typedef int speed_t; - typedef speed_t pace_speed_t; -#endif /* PACE_SPEED_T */ - -#ifndef PACE_TCFLAG_T -#define PACE_TCFLAG_T - /* Temporary until we correctly emulate these funcs on WIN32. */ - typedef int tcflag_t; - typedef tcflag_t pace_tcflag_t; -#endif /* PACE_TCFLAG_T */ - -#ifndef PACE_TERMIOS -#define PACE_TERMIOS - /* Temporary until we correctly emulate these funcs on WIN32. */ - typedef struct termios { int a_; } pace_termios; -#endif /* PACE_TERMIOS */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SYS_TERMIOS_H_WIN32 */ diff --git a/PACE/pace/win32/termios.inl b/PACE/pace/win32/termios.inl deleted file mode 100644 index 4b9905bff62..00000000000 --- a/PACE/pace/win32/termios.inl +++ /dev/null @@ -1,124 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/termios.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -speed_t -pace_cfgetospeed (const pace_termios * termiosp) -{ - PACE_UNUSED_ARG (termiosp); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -int -pace_cfsetospeed (pace_termios * termios_p, pace_speed_t speed) -{ - PACE_UNUSED_ARG (termios_p); - PACE_UNUSED_ARG (speed); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -speed_t -pace_cfgetispeed (const pace_termios * termios_p) -{ - PACE_UNUSED_ARG (termios_p); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -int -pace_cfsetispeed (pace_termios * termios_p, pace_speed_t speed) -{ - PACE_UNUSED_ARG (termios_p); - PACE_UNUSED_ARG (speed); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -int -pace_tcdrain (PACE_HANDLE fildes) -{ - PACE_UNUSED_ARG (fildes); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -int -pace_tcgetattr (PACE_HANDLE fildes, pace_termios * termios_p) -{ - PACE_UNUSED_ARG (fildes); - PACE_UNUSED_ARG (termios_p); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -int -pace_tcflow (PACE_HANDLE fildes, int action) -{ - PACE_UNUSED_ARG (fildes); - PACE_UNUSED_ARG (action); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -int -pace_tcflush (PACE_HANDLE fildes, int queue_selector) -{ - PACE_UNUSED_ARG (fildes); - PACE_UNUSED_ARG (queue_selector); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -int -pace_tcsendbreak (PACE_HANDLE fildes, int duration) -{ - PACE_UNUSED_ARG (fildes); - PACE_UNUSED_ARG (duration); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -int -pace_tcsetattr (PACE_HANDLE fildes, - int optional_actions, - const pace_termios * termios_p) -{ - PACE_UNUSED_ARG (fildes); - PACE_UNUSED_ARG (optional_actions); - PACE_UNUSED_ARG (termios_p); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ diff --git a/PACE/pace/win32/time.c b/PACE/pace/win32/time.c deleted file mode 100644 index f5ed95f59fa..00000000000 --- a/PACE/pace/win32/time.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/time.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/time.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/win32/time.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/win32/time.h b/PACE/pace/win32/time.h deleted file mode 100644 index 5a5a12ad1d6..00000000000 --- a/PACE/pace/win32/time.h +++ /dev/null @@ -1,97 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/time.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_TIME_H_WIN32 -#define PACE_TIME_H_WIN32 - -#include <time.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_CLK_TCK CLK_TCK -#define PACE_CLOCKS_PER_SEC CLOCKS_PER_SEC -#define PACE_CLOCK_REALTIME CLOCK_REALTIME -#define PACE_NULL NULL -#define PACE_TIMER_ABSTIME TIMER_ABSTIME - -#ifndef PACE_CLOCKID_T -#define PACE_CLOCKID_T - typedef int clockid_t; - typedef clockid_t pace_clockid_t; -#endif /* PACE_CLOCKID_T */ - -#ifndef PACE_CLOCK_T -#define PACE_CLOCK_T - typedef clock_t pace_clock_t; -#endif /* PACE_CLOCK_T */ - -#ifndef PACE_SIZE_T -#define PACE_SIZE_T - typedef size_t pace_size_t; -#endif /* PACE_SIZE_T */ - -#ifndef PACE_TIMER_T -#define PACE_TIMER_T - typedef long timer_t; - typedef timer_t pace_timer_t; -#endif /* PACE_TIMER_T */ - -#ifndef PACE_TIME_T -#define PACE_TIME_T - typedef time_t pace_time_t; -#endif /* PACE_TIME_T */ - -#ifndef PACE_TM -#define PACE_TM - typedef struct tm pace_tm; -#endif /* PACE_TM */ - -#ifndef PACE_TIMESPEC -#define PACE_TIMESPEC - typedef struct timespec pace_timespec; -#endif /* PACE_TIMESPEC */ - -#ifndef PACE_ITIMERSPEC -#define PACE_ITIMERSPEC - typedef struct itimerspec pace_itimerspec; -#endif /* PACE_ITIMERSPEC */ - -#ifndef PACE_SIGVAL -#define PACE_SIGVAL - typedef union sigval { - int sival_int; /* integer value */ - void * sival_ptr; /* pointer value */ -} pace_sigval; -#endif /* PACE_SIGVAL */ - -#ifndef PACE_SIGEVENT -#define PACE_SIGEVENT - typedef struct sigevent { - int sigev_notify; /* notification mode */ - int sigev_signo; /* signal number */ - union sigval sigev_value; /* signal value */ - void (*sigev_notify_function)(union sigval); - pace_pthread_attr_t * sigev_notify_attributes; - int __sigev_pad2; - } pace_sigevent; -#endif /* PACE_SIGEVENT */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_TIME_H_WIN32 */ diff --git a/PACE/pace/win32/time.inl b/PACE/pace/win32/time.inl deleted file mode 100644 index 817e1ab7e4a..00000000000 --- a/PACE/pace/win32/time.inl +++ /dev/null @@ -1,268 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/time.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include <errno.h> -extern int errno; - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_asctime (const struct tm * time) -{ - return asctime (time); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLSR_UOF) -PACE_INLINE -char * -pace_asctime_r (const struct tm * time, char * buf) -{ - char * retval = (char*)0; - PACE_UNUSED_ARG (time); - PACE_UNUSED_ARG (buf); - PACE_ERRNO_NO_SUPPORT_RETURN (retval); -} -#endif /* PACE_HAS_POSIX_CLSR_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -pace_clock_t -pace_clock (void) -{ - return clock (); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -double -pace_difftime (pace_time_t time1, pace_time_t time2) -{ - return difftime (time1, time2); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_clock_getres (clockid_t clock_id, - struct timespec * res) -{ - PACE_UNUSED_ARG (clock_id); - PACE_UNUSED_ARG (res); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_clock_gettime (clockid_t clock_id, - struct timespec * tp) -{ - PACE_UNUSED_ARG (clock_id); - PACE_UNUSED_ARG (tp); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_clock_settime (clockid_t clock_id, - const struct timespec * tp) -{ - PACE_UNUSED_ARG (clock_id); - PACE_UNUSED_ARG (tp); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_ctime (const time_t * clock) -{ - return ctime (clock); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLSR_UOF) -PACE_INLINE -char * -pace_ctime_r (const time_t * clock, char * buf) -{ - char * retval = (char*)0; - PACE_UNUSED_ARG (clock); - PACE_UNUSED_ARG (buf); - PACE_ERRNO_NO_SUPPORT_RETURN (retval); -} -#endif /* PACE_HAS_POSIX_CLSR_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -struct tm * -pace_gmtime (const time_t * clock) -{ - return gmtime (clock); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLSR_UOF) -PACE_INLINE -struct tm * -pace_gmtime_r (const time_t * clock, struct tm * result) -{ - struct tm * retval = (struct tm*)0; - PACE_UNUSED_ARG (clock); - PACE_UNUSED_ARG (result); - PACE_ERRNO_NO_SUPPORT_RETURN (retval); -} -#endif /* PACE_HAS_POSIX_CLSR_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -struct tm * -pace_localtime (const time_t * clock) -{ - return localtime (clock); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLSR_UOF) -PACE_INLINE -struct tm * -pace_localtime_r (const time_t * clock, struct tm * result) -{ - struct tm * retval = (struct tm*)0; - PACE_UNUSED_ARG (clock); - PACE_UNUSED_ARG (result); - PACE_ERRNO_NO_SUPPORT_RETURN (retval); -} -#endif /* PACE_HAS_POSIX_CLSR_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -time_t -pace_mktime (struct tm * timeptr) -{ - return mktime (timeptr); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_nanosleep (const struct timespec * rqtp, - struct timespec * rmtp) -{ - PACE_UNUSED_ARG (rqtp); - PACE_UNUSED_ARG (rmtp); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -size_t -pace_strftime (char * s, size_t maxsize, - const char * format, - const struct tm * timeptr) -{ - return strftime (s, maxsize, format, timeptr); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -time_t -pace_time (time_t * tloc) -{ - return time (tloc); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_timer_create (clockid_t clock_id, - struct sigevent * evp, - pace_timer_t * timerid) -{ - PACE_UNUSED_ARG (clock_id); - PACE_UNUSED_ARG (evp); - PACE_UNUSED_ARG (timerid); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_timer_delete (pace_timer_t timerid) -{ - PACE_UNUSED_ARG (timerid); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_timer_getoverrun (pace_timer_t timerid) -{ - PACE_UNUSED_ARG (timerid); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_timer_gettime (pace_timer_t timerid, - pace_itimerspec * value) -{ - PACE_UNUSED_ARG (timerid); - PACE_UNUSED_ARG (value); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#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_UNUSED_ARG (timerid); - PACE_UNUSED_ARG (flags); - PACE_UNUSED_ARG (value); - PACE_UNUSED_ARG (ovalue); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -void -pace_tzset () -{ - PACE_ERRNO_NO_SUPPORT (); - return; -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ diff --git a/PACE/pace/win32/times.c b/PACE/pace/win32/times.c deleted file mode 100644 index d699c0edd36..00000000000 --- a/PACE/pace/win32/times.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/times.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/sys/times.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/win32/times.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/win32/times.h b/PACE/pace/win32/times.h deleted file mode 100644 index 26a500cbf76..00000000000 --- a/PACE/pace/win32/times.h +++ /dev/null @@ -1,40 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/times.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SYS_TIMES_H_WIN32 -#define PACE_SYS_TIMES_H_WIN32 - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_CLOCK_T -#define PACE_CLOCK_T - /* Temporary until we emulate this correctly. */ - typedef int clock_t; - typedef clock_t pace_clock_t; -#endif /* PACE_CLOCK_T */ - -#ifndef PACE_TMS -#define PACE_TMS - /* Temporary until we emulate this correctly. */ - typedef struct tms { int a_; } pace_tms; -#endif /* PACE_TMS */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SYS_TIMES_H_WIN32 */ diff --git a/PACE/pace/win32/times.inl b/PACE/pace/win32/times.inl deleted file mode 100644 index 1f4765882dc..00000000000 --- a/PACE/pace/win32/times.inl +++ /dev/null @@ -1,24 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/times.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -pace_clock_t -pace_times (struct tms * buffer) -{ - PACE_UNUSED_ARG (buffer); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_MP_UOF */ diff --git a/PACE/pace/win32/types.h b/PACE/pace/win32/types.h deleted file mode 100644 index 520a5db655e..00000000000 --- a/PACE/pace/win32/types.h +++ /dev/null @@ -1,148 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/types.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SYS_TYPES_H_WIN32 -#define PACE_SYS_TYPES_H_WIN32 - -#include <sys/types.h> -#include <wtypes.h> -#include <windef.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_TCHAR -#define PACE_TCHAR - typedef char pace_tchar; -#endif /* PACE_TCHAR */ - -#ifndef PACE_HANDLE - typedef HANDLE PACE_HANDLE; -#endif /* PACE_HANDLE */ - -#ifndef PACE_INVALID_HANDLE -#define PACE_INVALID_HANDLE (HANDLE)0 -#endif /* PACE_INVALID_HANDLE */ - -#ifndef PACE_DEV_T -#define PACE_DEV_T - typedef dev_t pace_dev_t; -#endif /* PACE_DEV_T */ - -#ifndef PACE_GID_T -#define PACE_GID_T - typedef int gid_t; - typedef gid_t pace_gid_t; -#endif /* PACE_GID_T */ - -#ifndef PACE_INO_T -#define PACE_INO_T - typedef ino_t pace_ino_t; -#endif /* PACE_INO_T */ - -#ifndef PACE_MODE_T -#define PACE_MODE_T - typedef int mode_t; - typedef mode_t pace_mode_t; -#endif /* PACE_MODE_T */ - -#ifndef PACE_NLINK_T -#define PACE_NLINK_T - typedef DWORD nlink_t; - typedef nlink_t pace_nlink_t; -#endif /* PACE_NLINK_T */ - -#ifndef PACE_OFF_T -#define PACE_OFF_T - typedef off_t pace_off_t; -#endif /* PACE_OFF_T */ - -#ifndef PACE_PID_T -#define PACE_PID_T - typedef long pid_t; - typedef pid_t pace_pid_t; -#endif /* PACE_PID_T */ - -#ifndef PACE_PTHREAD_ATTR_T -#define PACE_PTHREAD_ATTR_T - typedef int pthread_attr_t; /* temporary */ - typedef pthread_attr_t pace_pthread_attr_t; -#endif /* PACE_PTHREAD_ATTR_T */ - -#ifndef PACE_PTHREAD_CONDATTR_T -#define PACE_PTHREAD_CONDATTR_T - typedef int pthread_condattr_t; /* temporary */ - typedef pthread_condattr_t pace_pthread_condattr_t; -#endif /* PACE_PTHREAD_CONDATTR_T */ - -#ifndef PACE_PTHREAD_COND_T -#define PACE_PTHREAD_COND_T - typedef int pthread_cond_t; /* temporary */ - typedef pthread_cond_t pace_pthread_cond_t; -#endif /* PACE_PTHREAD_COND_T */ - -#ifndef PACE_PTHREAD_KEY_T -#define PACE_PTHREAD_KEY_T - typedef int pthread_key_t; /* temporary */ - typedef pthread_key_t pace_pthread_key_t; -#endif /* PACE_PTHREAD_KEY_T */ - -#ifndef PACE_PTHREAD_MUTEXATTR_T -#define PACE_PTHREAD_MUTEXATTR_T - typedef int pthread_mutexattr_t; /* temporary */ - typedef pthread_mutexattr_t pace_pthread_mutexattr_t; -#endif /* PACE_PTHREAD_MUTEXATTR_T */ - -#ifndef PACE_PTHREAD_MUTEX_T -#define PACE_PTHREAD_MUTEX_T - typedef int pthread_mutex_t; /* temporary */ - typedef pthread_mutex_t pace_pthread_mutex_t; -#endif /* PACE_PTHREAD_MUTEX_T */ - -#ifndef PACE_PTHREAD_ONCE_T -#define PACE_PTHREAD_ONCE_T - typedef int pthread_once_t; /* temporary */ - typedef pthread_once_t pace_pthread_once_t; -#endif /* PACE_PTHREAD_ONCE_T */ - -#ifndef PACE_PTHREAD_T -#define PACE_PTHREAD_T - typedef DWORD pace_pthread_t; - typedef HANDLE pace_hpthread_t; -#endif /* PACE_PTHREAD_T */ - -#ifndef PACE_SIZE_T -#define PACE_SIZE_T - typedef size_t pace_size_t; -#endif /* PACE_SIZE_T */ - -#ifndef PACE_SSIZE_T -#define PACE_SSIZE_T - typedef long ssize_t; - typedef ssize_t pace_ssize_t; -#endif /* PACE_SSIZE_T */ - -#ifndef PACE_UID_T -#define PACE_UID_T - typedef int uid_t; - typedef uid_t pace_uid_t; -#endif /* PACE_UID_T */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SYS_TYPES_H_WIN32 */ diff --git a/PACE/pace/win32/unistd.c b/PACE/pace/win32/unistd.c deleted file mode 100644 index 9c11f0159ce..00000000000 --- a/PACE/pace/win32/unistd.c +++ /dev/null @@ -1,129 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/unistd.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/unistd.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/win32/unistd.inl" -#endif /* ! PACE_HAS_INLINE */ - -#if (PACE_HAS_POSIX_DI_UOF) -int -win32_close (PACE_HANDLE fildes) -{ - PACE_WIN32CALL_RETURN - (PACE_ADAPT_RETVAL - (CloseHandle (fildes), pace_result_), int, -1); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FM_UOF) -PACE_HANDLE -win32_dup (PACE_HANDLE fildes) -{ - PACE_HANDLE new_fd; - if (DuplicateHandle(GetCurrentProcess (), - fildes, - GetCurrentProcess(), - &new_fd, - 0, - TRUE, - DUPLICATE_SAME_ACCESS)) - { - return new_fd; - } - else - { - PACE_FAIL_RETURN (PACE_INVALID_HANDLE); - } -} -#endif /* PACE_HAS_POSIX_FM_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int -win32_ftruncate (PACE_HANDLE fildes, pace_off_t length) -{ - if (SetFilePointer (fildes, length, NULL, FILE_BEGIN) != (unsigned) -1) - { - PACE_WIN32CALL_RETURN - (PACE_ADAPT_RETVAL - (SetEndOfFile (fildes), pace_result_), int, -1); - } - else - { - PACE_FAIL_RETURN (-1); - } -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_FM_UOF) -pace_off_t -win32_lseek (PACE_HANDLE fildes, pace_off_t offset, int whence) -{ -# if SEEK_SET != FILE_BEGIN \ - || SEEK_CUR != FILE_CURRENT \ - || SEEK_END != FILE_END - - /* #error Windows NT is evil AND rude! */ - switch (whence) { - - case SEEK_SET: { - whence = FILE_BEGIN; - break; - } - case SEEK_CUR: { - whence = FILE_CURRENT; - break; - } - case SEEK_END: { - whence = FILE_END; - break; - } - default: { - errno = EINVAL; - return (off_t)-1; // rather safe than sorry - } - } - PACE_OSCALL_RETURN (lseek (handle, offset, whence), off_t, -1); -# endif /* SEEK_SET != FILE_BEGIN || SEEK_CUR != FILE_CURRENT || SEEK_END != FILE_END */ - DWORD result = SetFilePointer (fildes, offset, NULL, whence); - if (result == PACE_SYSCALL_FAILED) - { - off_t retval = -1; - PACE_FAIL_RETURN (retval); - } - else - { - return result; - } -} -#endif /* PACE_HAS_POSIX_FM_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -ssize_t -win32_write (PACE_HANDLE fildes, const void * buf, size_t nbyte) -{ - DWORD bytes_written; /* This is set to 0 byte WriteFile. */ - - if (WriteFile (fildes, buf, nbyte, &bytes_written, 0)) - { - return (ssize_t) bytes_written; - } - else - { - PACE_FAIL_RETURN (-1); - } -} -#endif /* PACE_HAS_POSIX_DI_UOF */ diff --git a/PACE/pace/win32/unistd.h b/PACE/pace/win32/unistd.h deleted file mode 100644 index 9a12306aed6..00000000000 --- a/PACE/pace/win32/unistd.h +++ /dev/null @@ -1,81 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/unistd.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_UNISTD_H_WIN32 -#define PACE_UNISTD_H_WIN32 - -#include "pace/sys/types.h" - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_F_OK F_OK -#define PACE_NULL NULL -#define PACE_R_OK R_OK -#define PACE_SEEK_CUR SEEK_CUR -#define PACE_SEEK_END SEEK_END -#define PACE_SEEK_SET SEEK_SET -#define PACE_STDERR_FILENO STDERR_FILENO -#define PACE_STDIN_FILENO STDIN_FILENO -#define PACE_STDOUT_FILENO STDOUT_FILENO -#define PACE_W_OK W_OK -#define PACE_X_OK X_OK - -/* _POSIX _PC _SC Macros go here */ - -#ifndef PACE_SIZE_T -#define PACE_SIZE_T -typedef size_t pace_size_t; -#endif /* PACE_SIZE_T */ - -#ifndef PACE_SSIZE_T -#define PACE_SSIZE_T -typedef ssize_t pace_ssize_t; -#endif /* PACE_SSIZE_T */ - -#if (PACE_HAS_POSIX_DI_UOF) - int win32_close (PACE_HANDLE fildes); -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FM_UOF) - PACE_HANDLE win32_dup (PACE_HANDLE fildes); -#endif /* PACE_HAS_POSIX_FM_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - int win32_ftruncate (PACE_HANDLE fildes, pace_off_t length); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_FM_UOF) - pace_off_t win32_lseek (PACE_HANDLE fildes, - pace_off_t offset, - int whence); -#endif /* PACE_HAS_POSIX_FM_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) - ssize_t win32_write (PACE_HANDLE fildes, - const void * buf, - size_t nbyte); -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_UNISTD_H_WIN32 */ - - - - diff --git a/PACE/pace/win32/unistd.inl b/PACE/pace/win32/unistd.inl deleted file mode 100644 index c830e64c6cc..00000000000 --- a/PACE/pace/win32/unistd.inl +++ /dev/null @@ -1,495 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/unistd.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include <stdarg.h> -#include <io.h> -#include <stdio.h> -#include <direct.h> -#include <process.h> - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -void -pace__exit (int status) -{ - _exit (status); - return; -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_access (const char * path, int amode) -{ - return _access (path, amode); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -unsigned int -pace_alarm (unsigned int seconds) -{ - PACE_UNUSED_ARG (seconds); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_chdir (const char * path) -{ - return _chdir (path); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FA_UOF) -PACE_INLINE -int -pace_chown (const char * path, uid_t owner, pace_gid_t group) -{ - PACE_UNUSED_ARG (path); - PACE_UNUSED_ARG (owner); - PACE_UNUSED_ARG (group); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_FA_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_close (PACE_HANDLE fildes) -{ - return win32_close (fildes); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FM_UOF) -PACE_INLINE -PACE_HANDLE -pace_dup (PACE_HANDLE fildes) -{ - return win32_dup (fildes); -} -#endif /* PACE_HAS_POSIX_FM_UOF */ - -#if (PACE_HAS_POSIX_FM_UOF) -PACE_INLINE -PACE_HANDLE -pace_dup2 (PACE_HANDLE fildes, PACE_HANDLE fildes2) -{ - PACE_HANDLE retval = (void*)0; - PACE_UNUSED_ARG (fildes); - PACE_UNUSED_ARG (fildes2); - PACE_ERRNO_NO_SUPPORT_RETURN (retval); -} -#endif /* PACE_HAS_POSIX_FM_UOF */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -int -pace_execv (const char * path, - char * const argv[]) -{ - return _execv (path, (const char * const *) argv); - /* if successful, this operation does NOT return */ -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -int -pace_execve (const char * path, - char * const argv[], - char * const envp[]) -{ - return _execve (path, (const char *const *) argv, - (const char *const *) envp); - /* if successful, this operation does NOT return */ -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -int -pace_execvp (const char * file, - char * const argv[]) -{ - return _execvp (file, (const char *const *) argv); - /* if successful, this operation does NOT return */ -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_fdatasync (PACE_HANDLE fildes) -{ - PACE_UNUSED_ARG (fildes); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -pid_t -pace_fork () -{ - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -long -pace_fpathconf (PACE_HANDLE fildes, int name) -{ - PACE_UNUSED_ARG (fildes); - PACE_UNUSED_ARG (name); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_fsync (PACE_HANDLE fildes) -{ - PACE_UNUSED_ARG (fildes); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_ftruncate (PACE_HANDLE fildes, pace_off_t length) -{ - return win32_ftruncate (fildes, length); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -char * -pace_getcwd (char * buf, size_t size) -{ - return getcwd (buf, size); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -uid_t -pace_getegid () -{ - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_UG_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -uid_t -pace_geteuid () -{ - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_UG_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -int -pace_getgroups (int gidsetsize, pace_gid_t grouplist[]) -{ - PACE_UNUSED_ARG (gidsetsize); - PACE_UNUSED_ARG (grouplist); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_UG_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -uid_t -pace_getgid () -{ - uid_t retval = -1; - PACE_ERRNO_NO_SUPPORT_RETURN (retval); -} -#endif /* PACE_HAS_POSIX_UG_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -char * -pace_getlogin () -{ - char * retval = (char*)0; - PACE_ERRNO_NO_SUPPORT_RETURN (retval); -} -#endif /* PACE_HAS_POSIX_UG_UOF */ - -#if (PACE_HAS_POSIX_UGR_UOF) -PACE_INLINE -int -pace_getlogin_r (char * name, size_t namesize) -{ - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_UGR_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -pid_t -pace_getpgrp () -{ - pid_t retval = -1; - PACE_ERRNO_NO_SUPPORT_RETURN (retval); -} -#endif /* PACE_HAS_POSIX_UG_UOF */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -pid_t -pace_getpid () -{ - return GetCurrentProcessId (); -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -pid_t -pace_getppid () -{ - pid_t retval = -1; - PACE_ERRNO_NO_SUPPORT_RETURN (retval); -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -uid_t -pace_getuid () -{ - uid_t retval = -1; - PACE_ERRNO_NO_SUPPORT_RETURN (retval); -} -#endif /* PACE_HAS_POSIX_UG_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -int -pace_isatty (int fildes) -{ - return _isatty (fildes); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_link (const char * existing, const char * new_link) -{ - PACE_UNUSED_ARG (existing); - PACE_UNUSED_ARG (new_link); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FM_UOF) -PACE_INLINE -pace_off_t -pace_lseek (PACE_HANDLE fildes, pace_off_t offset, int whence) -{ - return win32_lseek (fildes, offset, whence); -} -#endif /* PACE_HAS_POSIX_FM_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -long -pace_pathconf (const char * path, int name) -{ - PACE_UNUSED_ARG (path); - PACE_UNUSED_ARG (name); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_pause () -{ - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_P_UOF) -PACE_INLINE -int -pace_pipe (PACE_HANDLE fildes[2]) -{ - PACE_UNUSED_ARG (fildes); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_P_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -ssize_t -pace_read (PACE_HANDLE fildes, void * buf, size_t nbyte) -{ - PACE_UNUSED_ARG (fildes); - PACE_UNUSED_ARG (buf); - PACE_UNUSED_ARG (nbyte); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_rmdir (const char * path) -{ - return rmdir (path); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -int -pace_setgid (pace_gid_t gid) -{ - PACE_UNUSED_ARG (gid); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_UG_UOF */ - -#if (PACE_HAS_POSIX_JC_UOF) -PACE_INLINE -int -pace_setpgid (pid_t pid, pid_t pgid) -{ - PACE_UNUSED_ARG (pid); - PACE_UNUSED_ARG (pgid); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_JC_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -pid_t -pace_setsid () -{ - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_UG_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -int -pace_setuid (uid_t uid) -{ - PACE_UNUSED_ARG (uid); - PACE_ERRNO_NO_SUPPORT_RETURN (uid); -} -#endif /* PACE_HAS_POSIX_UG_UOF */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -unsigned int -pace_sleep (unsigned int seconds) -{ - Sleep (seconds * PACE_ONE_SECOND_IN_MSECS); - return 0; -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_SP_UOF) -PACE_INLINE -long -pace_sysconf (int name) -{ - PACE_UNUSED_ARG (name); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_SP_UOF */ - -#if (PACE_HAS_POSIX_JC_UOF) -PACE_INLINE -pid_t -pace_tcgetpgrp (PACE_HANDLE fildes) -{ - pid_t retval = -1; - PACE_UNUSED_ARG (fildes); - PACE_ERRNO_NO_SUPPORT_RETURN (retval); -} -#endif /* PACE_HAS_POSIX_JC_UOF */ - -#if (PACE_HAS_POSIX_JC_UOF) -PACE_INLINE -int -pace_tcsetpgrp (PACE_HANDLE fildes, pid_t pgrp_id) -{ - PACE_UNUSED_ARG (fildes); - PACE_UNUSED_ARG (pgrp_id); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_JC_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -char * -pace_ttyname (PACE_HANDLE fildes) -{ - char * retval = (void*)0; - PACE_UNUSED_ARG (fildes); - PACE_ERRNO_NO_SUPPORT_RETURN (retval); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_ttyname_r (PACE_HANDLE fildes, - char * name, - size_t namesize) -{ - PACE_UNUSED_ARG (fildes); - PACE_UNUSED_ARG (name); - PACE_UNUSED_ARG (namesize); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_unlink (const char * path) -{ - return _unlink (path); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -ssize_t -pace_write (PACE_HANDLE fildes, const void * buf, size_t nbyte) -{ - return win32_write (fildes, buf, nbyte); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ diff --git a/PACE/pace/win32/utime.c b/PACE/pace/win32/utime.c deleted file mode 100644 index 1ee2542885b..00000000000 --- a/PACE/pace/win32/utime.c +++ /dev/null @@ -1,37 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/utime.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/utime.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/win32/utime.inl" -#endif /* ! PACE_HAS_INLINE */ - -#if (PACE_HAS_POSIX_FS_UOF) -int -win32_utime (const char * path, const pace_utimbuf * times) -{ - PACE_ERRNO_NO_SUPPORT_RETURN (-1); - - /* Not yet working - char * path2 = (char*) malloc (sizeof (path)); - pace_strcpy (path2, path); - - pace_utimbuf * times2 = (pace_utimbuf*) malloc (sizeof (pace_utimbuf); - memcpy (times2, times, sizeof times); - return _utime (path2, times2); - */ -} -#endif /* PACE_HAS_POSIX_FS_UOF */ diff --git a/PACE/pace/win32/utime.h b/PACE/pace/win32/utime.h deleted file mode 100644 index cfd7e5014ce..00000000000 --- a/PACE/pace/win32/utime.h +++ /dev/null @@ -1,39 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/utime.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_UTIME_H_WIN32 -#define PACE_UTIME_H_WIN32 - -#include "pace/sys/types.h" -#include <sys/utime.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_UTIMBUF -#define PACE_UTIMBUF - typedef struct _utimbuf pace_utimbuf; -#endif /* PACE_UTIMBUF */ - -#if (PACE_HAS_POSIX_FS_UOF) - int win32_utime (const char * path, const pace_utimbuf * times); -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_UTIME_H_WIN32 */ diff --git a/PACE/pace/win32/utime.inl b/PACE/pace/win32/utime.inl deleted file mode 100644 index 1154ebd29c4..00000000000 --- a/PACE/pace/win32/utime.inl +++ /dev/null @@ -1,29 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/utime.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/string.h" - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_utime (const char * path, - const pace_utimbuf * times) -{ - /* Emulation not yet finished! Not yet working! */ - - /* Not quite the perfect answer... win32 doesn't take const args. */ - return _utime ((char*)path, (struct _utimbuf*)times); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ diff --git a/PACE/pace/win32/utsname.c b/PACE/pace/win32/utsname.c deleted file mode 100644 index 208b3f2f142..00000000000 --- a/PACE/pace/win32/utsname.c +++ /dev/null @@ -1,180 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/utsname.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/sys/utsname.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/win32/utsname.inl" -#endif /* ! PACE_HAS_INLINE */ - -#if (PACE_HAS_POSIX_SP_UOF) -int -uname (pace_utsname * name) -{ - PACE_ERRNO_NO_SUPPORT_RETURN (-1); - -#if 0 /* Emulation: Not bug free! :-/ */ - - size_t maxnamelen = sizeof name->nodename; - pace_strcpy (name->sysname, "Win32"); - - OSVERSIONINFO vinfo; - vinfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); - ::GetVersionEx (&vinfo); - - SYSTEM_INFO sinfo; - GetSystemInfo(&sinfo); - pace_strcpy (name->sysname, "Win32"); - - if (vinfo.dwPlatformId == VER_PLATFORM_WIN32_NT) - { - /* Get information from the two structures */ - pace_sprintf (name->release, "Windows NT %d.%d", - vinfo.dwMajorVersion, - vinfo.dwMinorVersion); - pace_sprintf (name->version, - "Build %d %s", - vinfo.dwBuildNumber, - vinfo.szCSDVersion); - - /* We have to make sure that the size of (processor + subtype) is - not greater than the size of name->machine. So we give half - the space to the processor and half the space to subtype. The - -1 is necessary for because of the space between processor and - subtype in the machine name. - */ - const int bufsize = ((sizeof (name->machine) / sizeof (ACE_TCHAR)) / 2) - 1; - char processor[bufsize] = "Unknown"; - char subtype[bufsize] = "Unknown"; - - WORD arch = sinfo.wProcessorArchitecture; - - switch (arch) - { - - case PROCESSOR_ARCHITECTURE_INTEL: { - - pace_strcpy (processor, "Intel"); - if (sinfo.wProcessorLevel == 3) - { - pace_strcpy (subtype, "80386"); - } - else if (sinfo.wProcessorLevel == 4) - { - pace_strcpy (subtype, "80486"); - } - else if (sinfo.wProcessorLevel == 5) - { - pace_strcpy (subtype, "Pentium"); - } - else if (sinfo.wProcessorLevel == 6) - { - pace_strcpy (subtype, "Pentium Pro"); - } - else if (sinfo.wProcessorLevel == 7) /* guessing here */ - { - pace_strcpy (subtype, "Pentium II"); - } - break; - } - - case PROCESSOR_ARCHITECTURE_MIPS: { - pace_strcpy (processor, "MIPS"); - pace_strcpy (subtype, "R4000"); - break; - } - - case PROCESSOR_ARCHITECTURE_ALPHA: { - pace_strcpy (processor, "Alpha"); - pace_sprintf (subtype, "%d", sinfo.wProcessorLevel); - break; - } - - case PROCESSOR_ARCHITECTURE_PPC: { - pace_strcpy (processor, "PPC"); - if (sinfo.wProcessorLevel == 1) - { - pace_strcpy (subtype, "601"); - } - else if (sinfo.wProcessorLevel == 3) - { - pace_strcpy (subtype, "603"); - } - else if (sinfo.wProcessorLevel == 4) - { - pace_strcpy (subtype, "604"); - } - else if (sinfo.wProcessorLevel == 6) - { - pace_strcpy (subtype, "603+"); - } - else if (sinfo.wProcessorLevel == 9) - { - pace_strcpy (subtype, "804+"); - } - else if (sinfo.wProcessorLevel == 20) - { - pace_strcpy (subtype, "620"); - } - break; - } - - case PROCESSOR_ARCHITECTURE_UNKNOWN: { - - default: - { - /* @@ We could provide WinCE specific info here. But let's - defer that to some later point. - */ - pace_strcpy (processor, "Unknown"); - break; - } - } - } - pace_sprintf(name->machine, "%s %s", processor, subtype); - } - else if (vinfo.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS) - { - // Get Windows 95 Information - pace_strcpy (name->release, "Windows 95"); - pace_sprintf (name->version, "%d", LOWORD (vinfo.dwBuildNumber)); - if (sinfo.dwProcessorType == PROCESSOR_INTEL_386) - { - pace_strcpy (name->machine, "Intel 80386"); - } - else if (sinfo.dwProcessorType == PROCESSOR_INTEL_486) - { - pace_strcpy (name->machine, "Intel 80486"); - } - else if (sinfo.dwProcessorType == PROCESSOR_INTEL_PENTIUM) - { - pace_strcpy (name->machine, "Intel Pentium"); - } - } - else - { - /* We don't know what this is! */ - pace_strcpy (name->release, "???"); - pace_strcpy (name->version, "???"); - pace_strcpy (name->machine, "???"); - } - - /* ick */ - return ACE_OS::hostname (name->nodename, maxnamelen); - -#endif /* emulation */ - -} -#endif /* PACE_HAS_POSIX_SP_UOF */ diff --git a/PACE/pace/win32/utsname.h b/PACE/pace/win32/utsname.h deleted file mode 100644 index d7115856b92..00000000000 --- a/PACE/pace/win32/utsname.h +++ /dev/null @@ -1,43 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/utsname.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SYS_UTSNAME_H_WIN32 -#define PACE_SYS_UTSNAME_H_WIN32 - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -# ifndef PACE_UTSNAME -# define PACE_UTSNAME -# define PACE_SYS_NMLN 257 - typedef struct utsname { - char sysname[PACE_SYS_NMLN]; - char nodename[PACE_SYS_NMLN]; - char release[PACE_SYS_NMLN]; - char version[PACE_SYS_NMLN]; - char machine[PACE_SYS_NMLN]; -} pace_utsname; -# endif /* PACE_UTSNAME */ - -#if (PACE_HAS_POSIX_SP_UOF) - int uname (pace_utsname * name); -#endif /* PACE_HAS_POSIX_SP_UOF */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SYS_UTSNAME_H_WIN32 */ diff --git a/PACE/pace/win32/utsname.inl b/PACE/pace/win32/utsname.inl deleted file mode 100644 index e906fc1e131..00000000000 --- a/PACE/pace/win32/utsname.inl +++ /dev/null @@ -1,25 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/utsname.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/string.h" - -#if (PACE_HAS_POSIX_SP_UOF) -PACE_INLINE -int -pace_uname (pace_utsname * name) -{ - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_SP_UOF */ diff --git a/PACE/pace/win32/wait.c b/PACE/pace/win32/wait.c deleted file mode 100644 index 6a4308040af..00000000000 --- a/PACE/pace/win32/wait.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/wait.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/sys/wait.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/win32/wait.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/win32/wait.h b/PACE/pace/win32/wait.h deleted file mode 100644 index cf2b7007afa..00000000000 --- a/PACE/pace/win32/wait.h +++ /dev/null @@ -1,38 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/wait.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_WAIT_H_WIN32 -#define PACE_WAIT_H_WIN32 - -#include "pace/sys/types.h" - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_WEXITSTATUS WEXITSTATUS -#define PACE_WIFEXITED WIFEXITED -#define PACE_WIFSIGNALED WISIGNALED -#define PACE_WIFSTOPPED WIFSTOPPED -#define PACE_WNOHANG WNOHANG -#define PACE_WSTOPSIG WSTOPSIG -#define PACE_WTERMSIG WTERMSIG -#define PACE_WUNTRACED WUNTRACED - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_WAIT_H_WIN32 */ diff --git a/PACE/pace/win32/wait.inl b/PACE/pace/win32/wait.inl deleted file mode 100644 index 5dfa04f579f..00000000000 --- a/PACE/pace/win32/wait.inl +++ /dev/null @@ -1,35 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/wait.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -pid_t -pace_wait (int * statloc) -{ - pid_t retval = -1; - PACE_ERRNO_NO_SUPPORT_RETURN (retval); -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -pid_t -pace_waitpid (pid_t pid, int * statloc, int options) -{ - /* ACE version uses a HANDLE */ - pid_t retval = -1; - PACE_ERRNO_NO_SUPPORT_RETURN (retval); -} -#endif /* PACE_HAS_POSIX_MP_UOF */ diff --git a/PACE/tests/Makefile b/PACE/tests/Makefile deleted file mode 100644 index 65d3795d0ab..00000000000 --- a/PACE/tests/Makefile +++ /dev/null @@ -1,84 +0,0 @@ -#---------------------------------------------------------------------------- -# -# $Id$ -# -# Makefile for all the PACE tests -#---------------------------------------------------------------------------- - -ifndef static_libs_only - ifndef shared_libs_only - static_libs_only = 1 - endif # shared_libs_only -endif # static_libs_only - -# If we are inlining the PACE functions then we don't want to include -# the PACE library (and we need to define PACE_HAS_INLINE). If we're not -# inlining then we need to include the PACE library. Inlining is the default. - -ifndef inline - CFLAGS += -DPACE_HAS_INLINE -else - ifneq (0,$(inline)) - CFLAGS += -DPACE_HAS_INLINE - else - LIBS += -L$(ACE_ROOT)/PACE/pace -lPACE - endif # ! inline -endif # ! inline - -CFLAGS += -DPACE_HAS_ALL_POSIX_FUNCS - -#---------------------------------------------------------------------------- -# Local macros -#---------------------------------------------------------------------------- - -BIN = Stdio_Test \ - Posix_SP_Test \ - mqueue_test - -#### If the PACE library wasn't built with all components, don't -#### try to build certain tests. -PACE_BUILD_COMPONENTS := $(shell sh $(ACE_ROOT)/bin/ace_components --pace) - -PSRC=$(addsuffix .c,$(BIN)) - -#---------------------------------------------------------------------------- -# Include macros and targets -#---------------------------------------------------------------------------- - -include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU -ACELIB = -INCLDIRS += -I$(PACE_ROOT) -include $(ACE_ROOT)/include/makeinclude/macros.GNU -include $(ACE_ROOT)/include/makeinclude/rules.common.GNU -include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU -include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU - -ifndef SOEXT - SOEXT=so -endif - -include $(ACE_ROOT)/include/makeinclude/rules.local.GNU - -include $(ACE_ROOT)/PACE/include/makeinclude/rules.common.GNU - -# To compile in the PACE lib on platforms that compile c code -ifeq (1, $(emulation)) - LIBS += -L$(PACE_ROOT)/pace -lPACE -endif # emulation - -# To build multiple executables in the same directory on AIX, it works -# best to wipe out any previously-created tempinc directory. -# The compiler/linker isn't too smart about instantiating templates... -ifdef TEMPINCDIR -COMPILE.cc := $(RM) -rf tempinc; $(COMPILE.cc) -endif - -#---------------------------------------------------------------------------- -# Local targets -#---------------------------------------------------------------------------- - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- -# DO NOT DELETE THIS LINE -- g++dep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. diff --git a/PACE/tests/Makefile.am b/PACE/tests/Makefile.am deleted file mode 100644 index af6f453c2af..00000000000 --- a/PACE/tests/Makefile.am +++ /dev/null @@ -1,54 +0,0 @@ -##---------------------------------------------------------------------------- -## $Id$ -## -## Makefile.am for all the PACE ``one-button'' tests -##---------------------------------------------------------------------------- - -## -## Process this file with automake to create Makefile.in -## - -## The number in AUTOMAKE_OPTIONS is the minimum required version automake -## needed to process this file. -AUTOMAKE_OPTIONS = 1.4 - -INCLUDES = -I$(top_builddir) -I$(top_srcdir) - -## LDFLAGS = -## Libtool will automatically link against the "proper" library. -## Do not change the "libACE.la." It is not a typographical error! -## -## We override the "LIBS" variable provided by the configure script since -## we should only need to link against the ACE library for these tests. -LDADD = $(top_builddir)/pace/libPACE.la -##LIBS = $(top_builddir)/pace/libPACE.la - -## Build the following test programs when a `make check' is -## issued by the user. -check_PROGRAMS = \ - Posix_SP_Test \ - Stdio_Test - -Posix_SP_Test_SOURCES = Posix_SP_Test.c - -Stdio_Test_SOURCES = Stdio_Test.c - -## The tests we want to run are all of the test programs we are going to build. -## Do not run them if they are cross-compiled. -if PACE_CROSS_COMPILED -TESTS = -else -TESTS = $(check_PROGRAMS) -endif - -## Set up the test environment -##TESTS_ENVIRONMENT = - -## Clean up template repositories, etc. -clean-local: - -rm -f *.bak *.rpo *.sym lib*.*_pure_* Makefile.old core - -rm -rf ptrepository Templates.DB gcctemp.c gcctemp so_locations - -## Clean up `log' directory , etc. -distclean-local: - -rm -rf log diff --git a/PACE/tests/Posix_SP_Test.c b/PACE/tests/Posix_SP_Test.c deleted file mode 100644 index 12d8ff5b89a..00000000000 --- a/PACE/tests/Posix_SP_Test.c +++ /dev/null @@ -1,238 +0,0 @@ -/* $Id$ -*- C -*- */ - -/* ===================================================================== - * - * = FILENAME - * Posix_SP_Test.c - * - * = DESCRIPTION - * Testing the platform for POSIX_SINGLE_PROCESS unit of - * functionality. This consists of calls to sysconf, time, and - * uname. - * This is not meant to be an exhaustive test at this point but more - * a sanity check that PACE works (at least somewhat). - * - * = AUTHOR - * Joe Hoffert <joeh@cs.wustl.edu> - * - * ===================================================================== - */ - -#include "pace/stdio.h" -#include "pace/unistd.h" -#include "pace/time.h" -#include "pace/sys/utsname.h" - -const char * success = "SUCCEEDED"; -const char * failure = "***FAILED***"; - -void -check_sysconf () -{ - long retval; - int index; -#if PACE_HAS_POSIX == PACE_LYNXOS - const int confnamessize = 30; -#else - const int confnamessize = 38; -#endif /* PACE_HAS_POSIX != PACE_LYNXOS */ - - int confnames[] = {_SC_AIO_LISTIO_MAX, - _SC_AIO_MAX, - _SC_AIO_PRIO_DELTA_MAX, - _SC_ARG_MAX, - _SC_CHILD_MAX, - _SC_CLK_TCK, - _SC_DELAYTIMER_MAX, -#if PACE_HAS_POSIX != PACE_LYNXOS - _SC_GETGR_R_SIZE_MAX, - _SC_GETPW_R_SIZE_MAX, - _SC_LOGIN_NAME_MAX, -#endif /* PACE_HAS_POSIX != PACE_LYNXOS */ - _SC_MQ_OPEN_MAX, - _SC_MQ_PRIO_MAX, - _SC_NGROUPS_MAX, - _SC_OPEN_MAX, - _SC_PAGESIZE, - _SC_RTSIG_MAX, - _SC_SEM_NSEMS_MAX, - _SC_SEM_VALUE_MAX, - _SC_SIGQUEUE_MAX, - _SC_STREAM_MAX, -#if PACE_HAS_POSIX != PACE_LYNXOS - _SC_THREAD_DESTRUCTOR_ITERATIONS, - _SC_THREAD_KEYS_MAX, - _SC_THREAD_STACK_MIN, - _SC_THREAD_THREADS_MAX, -#endif /* PACE_HAS_POSIX != PACE_LYNXOS */ - _SC_TIMER_MAX, -#if PACE_HAS_POSIX != PACE_LYNXOS - _SC_TTY_NAME_MAX, -#endif /* PACE_HAS_POSIX != PACE_LYNXOS */ - _SC_TZNAME_MAX, - _SC_ASYNCHRONOUS_IO, - _SC_FSYNC, - _SC_JOB_CONTROL, - _SC_MAPPED_FILES, - _SC_MEMLOCK, - _SC_MEMLOCK_RANGE, - _SC_MEMORY_PROTECTION, - _SC_MESSAGE_PASSING, - _SC_PRIORITIZED_IO, - _SC_PRIORITY_SCHEDULING, - _SC_REALTIME_SIGNALS}; - char * confstrs[] = {"_SC_AIO_LISTIO_MAX", - "_SC_AIO_MAX", - "_SC_AIO_PRIO_DELTA_MAX", - "_SC_ARG_MAX", - "_SC_CHILD_MAX", - "_SC_CLK_TCK", - "_SC_DELAYTIMER_MAX", -#if PACE_HAS_POSIX != PACE_LYNXOS - "_SC_GETGR_R_SIZE_MAX", - "_SC_GETPW_R_SIZE_MAX", - "_SC_LOGIN_NAME_MAX", -#endif /* PACE_HAS_POSIX != PACE_LYNXOS */ - "_SC_MQ_OPEN_MAX", - "_SC_MQ_PRIO_MAX", - "_SC_NGROUPS_MAX", - "_SC_OPEN_MAX", - "_SC_PAGESIZE", - "_SC_RTSIG_MAX", - "_SC_SEM_NSEMS_MAX", - "_SC_SEM_VALUE_MAX", - "_SC_SIGQUEUE_MAX", - "_SC_STREAM_MAX", -#if PACE_HAS_POSIX != PACE_LYNXOS - "_SC_THREAD_DESTRUCTOR_ITERATIONS", - "_SC_THREAD_KEYS_MAX", - "_SC_THREAD_STACK_MIN", - "_SC_THREAD_THREADS_MAX", -#endif /* PACE_HAS_POSIX != PACE_LYNXOS */ - "_SC_TIMER_MAX", -#if PACE_HAS_POSIX != PACE_LYNXOS - "_SC_TTY_NAME_MAX", -#endif /* PACE_HAS_POSIX != PACE_LYNXOS */ - "_SC_TZNAME_MAX", - "_SC_ASYNCHRONOUS_IO", - "_SC_FSYNC", - "_SC_JOB_CONTROL", - "_SC_MAPPED_FILES", - "_SC_MEMLOCK", - "_SC_MEMLOCK_RANGE", - "_SC_MEMORY_PROTECTION", - "_SC_MESSAGE_PASSING", - "_SC_PRIORITIZED_IO", - "_SC_PRIORITY_SCHEDULING", - "_SC_REALTIME_SIGNALS"}; - - printf("pace_sysconf %s\n", success); - for (index = 0; index < confnamessize; index++) - { - /* Call pace_sysconf() */ - errno = 0; - retval = pace_sysconf(confnames[index]); - - /* Return value of -1 indicates an invalid name or no support - for the functionality associated with the name. POSIX- - conformant platforms may not support all the names. However, - using the names above should not cause compilation errors. - */ - printf("pace_sysconf: name == %s\n", confstrs[index]); - if (retval == -1) - { - printf("retval == %ld\n", retval); - if (errno == 0) - { - printf("Unsupported name [errno did not change]\n"); - } - else - { - printf("invalid name [errno did not change]\n"); - } - } - else - { - printf("pace_sysconf: value == %ld\n", retval); - } - } - - printf("\n"); -} - -void -check_time () -{ - long retval; - time_t local_time; - - /* Call pace_time() with time_t * arg */ - local_time = 0; - errno = 0; - retval = pace_time(&local_time); - - printf("pace_time %s\n", success); - if (retval == -1) - { - printf("errno == %d\n", errno); - } - else - { - printf("pace_time (with time_t* arg) == %ld\n", local_time); - } - - /* Call pace_time() with NULL arg */ - errno = 0; - retval = pace_time(0); - - if (retval == -1) - { - printf("errno == %d\n", errno); - } - else - { - printf("pace_time (with NULL arg) == %ld\n\n", retval); - } -} - -void -check_uname () -{ - long retval; - struct utsname name; - - /* Call pace_uname() */ - errno = 0; - retval = pace_uname(&name); - printf("pace_uname %s\n", success); - - if (retval < 0) - { - printf("pace_uname error: %d\n", errno); - } - else - { - printf("pace_uname: uname.sysname == %s\n", name.sysname); - printf("pace_uname: uname.nodename == %s\n", name.nodename); - printf("pace_uname: uname.release == %s\n", name.release); - printf("pace_uname: uname.version == %s\n", name.version); - printf("pace_uname: uname.machine == %s\n", name.machine); - } -} - -int -main (int argc, char **argv) -{ - /* Check the PACE calls to the sysconf POSIX function. */ - check_sysconf(); - - /* Check the PACE calls to the time POSIX function. */ - check_time(); - - /* Check the PACE calls to the uname POSIX function. */ - check_uname(); - - PACE_UNUSED_ARG (argc); - PACE_UNUSED_ARG (argv); - return 0; -} diff --git a/PACE/tests/README b/PACE/tests/README deleted file mode 100644 index e69de29bb2d..00000000000 --- a/PACE/tests/README +++ /dev/null diff --git a/PACE/tests/Stdio_Test.c b/PACE/tests/Stdio_Test.c deleted file mode 100644 index 65054786616..00000000000 --- a/PACE/tests/Stdio_Test.c +++ /dev/null @@ -1,116 +0,0 @@ -/* $Id$ -*- C -*- */ - -/* ===================================================================== */ -/* */ -/* = FILENAME */ -/* Stdio_Test.c */ -/* */ -/* = DESCRIPTION */ -/* Testing the platform for POSIX standard I/O. This is not meant */ -/* to be an exhaustive test at this point but more a sanity check */ -/* that PACE works (at least somewhat) as advertised. */ -/* This program creates/opens a temporary file, writes to the file, */ -/* reads from the file to make sure it's what was written, and */ -/* then closes/deletes the file. */ -/* */ -/* = AUTHOR */ -/* Joe Hoffert <joeh@cs.wustl.edu> */ -/* */ -/* ===================================================================== */ - -#include "pace/stdio.h" - -const char * filename = "temp"; -const char * mode = "w+"; -const char * string1 = "line 1\n"; -const char * success = "SUCCEEDED"; -const char * failure = "***FAILED***"; - -int -main (int argc, char **argv) -{ - /* Test creating/opening a file. */ - PACE_FILE *file; - int retval; - char* retval2; - char buffer[256]; - - file = pace_fopen (filename, - mode); - if (file == 0) - { - printf("pace_fopen %s\n", failure); - return -1; - } - - printf("pace_fopen %s\n", success); - - /* Test writing to a file. */ - retval = pace_fputs (string1, - file); - if (retval == EOF) - { - printf("pace_fputs %s\n", failure); - return -1; - } - - printf("pace_fputs %s\n", success); - - /* Test flushing a file. */ - retval = pace_fflush (file); - if (retval != 0) - { - printf("pace_fflush %s\n", failure); - return -1; - } - - printf("pace_fflush %s\n", success); - - /* Test seeking in a file. */ - retval = pace_fseek (file, - 0, - 0); - if (retval != 0) - { - printf("pace_fseek %s\n", failure); - return -1; - } - - printf("pace_fseek %s\n", success); - - /* Test reading from a file. */ - retval2 = pace_fgets (buffer, - sizeof(buffer), - file); - if (retval2 == 0) - { - printf("pace_fgets %s\n", failure); - return -1; - } - - printf("pace_fgets %s\n", success); - - if (strcmp(buffer, - string1) != 0) - { - printf("strcmp of pace_fgets %s\n", failure); - return -1; - } - - printf("strcmp of pace_fgets %s\n", success); - - /* Test closing a file. */ - retval = pace_fclose (file); - if (retval != 0) - { - printf("pace_fclose %s\n", failure); - return -1; - } - - printf("pace_fclose %s\n", success); - - - PACE_UNUSED_ARG (argc); - PACE_UNUSED_ARG (argv); - return 0; -} diff --git a/PACE/tests/mqueue_test.c b/PACE/tests/mqueue_test.c deleted file mode 100644 index f7cf87b093b..00000000000 --- a/PACE/tests/mqueue_test.c +++ /dev/null @@ -1,122 +0,0 @@ -/* $Id$ */ - -#include "pace/stdio.h" -#include "pace/fcntl.h" -#include "pace/mqueue.h" -#include "pace/stdlib.h" -#include "pace/signal.h" -#include "pace/string.h" - -/* Most of this code is borowed from Konstantin Knizhnik <http://www.ispras.ru/~knizhnik/posix1b/> */ - -pace_mqd_t mqdes; - -void -msg_handler (int handler_arg) -{ - char buf[1024]; - unsigned int priority; - int len = pace_mq_receive(mqdes, buf, sizeof buf, &priority); - - PACE_UNUSED_ARG (handler_arg); - - if (len < 0) - { - perror("mq_receive"); - } - pace_printf("\nReceive message with priority %d: %s\n", priority, buf); -} - -#define QUEUE_NAME "/testmsg1" - -int -main (int argc, char** argv) -{ -#if PACE_LYNXOS - pace_printf ("No errors, have occurred. On the other hand no operations have been performed either. Take what you can get I guess.\n"); - PACE_UNUSED_ARG (argc); - PACE_UNUSED_ARG (argv); - return EXIT_SUCCESS; -#else /* ! PACE_LYNXOS */ - char buf[1024]; - int choice, len; - unsigned int priority; - pace_sigevent notification; - static pace_sigaction_s sa; - int one = 1; - - mqdes = pace_mq_open(QUEUE_NAME, O_CREAT | O_RDWR, 0777, 0); - if (mqdes == (pace_mqd_t)-1) - { - perror("mq_open"); - return EXIT_FAILURE; - } - - notification.sigev_notify = SIGEV_SIGNAL; - notification.sigev_signo = SIGUSR1; - - sa.sa_handler = msg_handler; - sa.sa_flags = SA_RESTART; - pace_sigaction(SIGUSR1, &sa, NULL); - - while (one) - { - printf("\t1. Send\n" - "\t2. Asynchronouse receive\n" - "\t3. Synchronouse receive\n" - "\t4. Close queue and exit\n" - "\t5. Remove queue and exit\n" - "> "); - if (!pace_fgets(buf, sizeof buf, stdin)) - { - return EXIT_FAILURE; - } - if (pace_sscanf(buf, "%d", &choice) != 1) - { - pace_printf("Please select 1..5\n"); - continue; - } - switch (choice) - { - case 1: - do - { - pace_printf("Message priority: "); - pace_fgets(buf, sizeof buf, stdin); - } while (pace_sscanf(buf, "%d", &priority) != 1); - pace_printf("Message to send: "); - pace_fgets(buf, sizeof buf, stdin); - if (pace_mq_send(mqdes, buf, pace_strlen(buf)+1, priority) == -1) - { - perror("mq_send"); - return EXIT_FAILURE; - } - break; - case 2: - pace_mq_notify(mqdes, ¬ification); - pace_printf("Waiting for notifications...\n"); - break; - case 3: - len = pace_mq_receive(mqdes, buf, sizeof buf, &priority); - if (len < 0) - { - perror("mq_receive"); - } - pace_printf("Receive message with priority %d: %s\n", priority, buf); - break; - case 4: - pace_mq_close(mqdes); - return EXIT_SUCCESS; - case 5: - pace_mq_close(mqdes); - pace_mq_unlink(QUEUE_NAME); - return EXIT_SUCCESS; - default: - pace_printf("Please select 1..5\n"); - } - } - PACE_UNUSED_ARG (argc); - PACE_UNUSED_ARG (argv); - return EXIT_SUCCESS; -#endif /* ! PACE_LYNXOS */ -} |