diff options
Diffstat (limited to 'PACE/pace/win32')
94 files changed, 0 insertions, 9247 deletions
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 659d8656d19..00000000000 --- a/PACE/pace/win32/TODO +++ /dev/null @@ -1,29 +0,0 @@ ----------------------------------------------------------------------- - - * Emulation: - - pthreads - - dirent - - * ACE_wrappers/PACE/docs/PACE_POSIX_support.txt: - - Update this file as emulation occurs. - - * Build ACE with ACE_HAS_PACE - ----------------------------------------------------------------------- - - * pthreads: Do we need to define this for win32? - - OS.cpp:2769 => PACE_PTHREAD_STACK_MIN - OS.cpp:2798 => PACE_PTHREAD_CREATE_JOINABLE - OS.cpp:2801 => PACE_PTHREAD_CREATE_DETACHED - ----------------------------------------------------------------------- - - * get rid of the temp macros / junk in config/constants.h - ----------------------------------------------------------------------- - - * add MFC support to pthread.c - ----------------------------------------------------------------------- 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 9025f3de909..00000000000 --- a/PACE/pace/win32/ctype.h +++ /dev/null @@ -1,27 +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 */ - -#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 9a379a35a12..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 5fe6e12bfb0..00000000000 --- a/PACE/pace/win32/fcntl.c +++ /dev/null @@ -1,164 +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 -pace_win32_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 7cb57a52cb0..00000000000 --- a/PACE/pace/win32/fcntl.h +++ /dev/null @@ -1,71 +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 */ - -#if defined (__BORLANDC__) -#define _O_TEMPORARY 0x08 -#endif /* __BORLANDC__ */ - -#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 pace_win32_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 b821d7bbfc9..00000000000 --- a/PACE/pace/win32/fcntl.inl +++ /dev/null @@ -1,38 +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_UNUSED_ARG (path); - PACE_UNUSED_ARG (mode); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_fcntl (PACE_HANDLE fildes, int cmd, /* arg */ ... ) -{ - PACE_UNUSED_ARG (fildes); - PACE_UNUSED_ARG (cmd); - 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 47112cebda3..00000000000 --- a/PACE/pace/win32/math.inl +++ /dev/null @@ -1,215 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/math.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -/* FUZZ: disable check_for_math_include */ -#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 7c08f8f6e0f..00000000000 --- a/PACE/pace/win32/mman.c +++ /dev/null @@ -1,123 +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 = 0; - int nt_flags = 0; - PACE_HANDLE file_mapping = PACE_INVALID_HANDLE; - - 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; - } - - file_mapping = CreateFileMapping (fildes, - 0, - prot, - 0, - 0, - 0); - if (file_mapping == 0) - PACE_FAIL_RETURN (MAP_FAILED); - -# if defined (PACE_OS_EXTRA_MMAP_FLAGS) - nt_flags |= PACE_OS_EXTRA_MMAP_FLAGS; -# endif /* PACE_OS_EXTRA_MMAP_FLAGS */ - -# if !defined (PACE_HAS_WINCE) - addr_mapping = MapViewOfFileEx (file_mapping, - nt_flags, - 0, - off, - len, - addr); -# else - ACE_UNUSED_ARG (addr); /* WinCE does not allow specifying <addr>.*/ - addr_mapping = MapViewOfFile (file_mapping, - nt_flags, - 0, - off, - len); -# endif /* ! PACE_HAS_WINCE */ - - /* Only close this down if we used the temporary. */ - if (file_mapping == PACE_INVALID_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 c324089991b..00000000000 --- a/PACE/pace/win32/mman.inl +++ /dev/null @@ -1,129 +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) -{ -#if defined (__BORLANDC__) - return unlink (name); -#else /* __BORLANDC__ */ - return _unlink (name); -#endif /* __BORLANDC__ */ -} -#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 956ddaf7be2..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 -pace_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 8fca3ae3eb9..00000000000 --- a/PACE/pace/win32/pace_dll.dsp +++ /dev/null @@ -1,623 +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 "DLL\Release"
-# 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 /MD /W3 /GX /O2 /I "../../" /D "NDEBUG" /D "_WINDOWS" /D "PACE_BUILD_DLL" /D "WIN32" /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:"../../../bin/pace.dll"
-# SUBTRACT LINK32 /profile
-
-!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 "DLL\Debug"
-# 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 /MDd /W3 /Gm /GX /Zi /Od /I "../../" /D "_DEBUG" /D "_WINDOWS" /D "PACE_BUILD_DLL" /D "WIN32" /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:"../../../bin/paced.dll" /pdbtype:sept
-# SUBTRACT LINK32 /nodefaultlib
-
-!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=.\pthreadtypes.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=.\schedtypes.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 0a41c79bf03..00000000000 --- a/PACE/pace/win32/pace_lib.dsp +++ /dev/null @@ -1,609 +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 Static 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 Static Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "PACE LIB - Win32 Static Release" (based on "Win32 (x86) Static Library")
-!MESSAGE "PACE LIB - Win32 Static 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 Static 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 "LIB\Release"
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
-# ADD CPP /nologo /MD /W3 /GX /O2 /I "../../" /D "NDEBUG" /D "PACE_AS_STATIC_LIBS" /D "WIN32" /D "PACE_HAS_ALL_POSIX_FUNCS" /V"ERBOSE:LIB" /FD /c
-# 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 Static 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 "LIB\Debug"
-# 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 /MDd /W3 /Gm /GX /Zi /Od /I "../../" /D "_DEBUG" /D "WIN32" /D "PACE_HAS_ALL_POSIX_FUNCS" /D "PACE_AS_STATIC_LIBS" /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 Static Release"
-# Name "PACE LIB - Win32 Static 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=.\pthreadtypes.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=.\schedtypes.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 b53dab9396c..00000000000 --- a/PACE/pace/win32/pthread.c +++ /dev/null @@ -1,359 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/pthread.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/pthread.h" -#include <process.h> - -#if !defined (PACE_HAS_INLINE) -# include "pace/win32/pthread.inl" -#endif /* ! PACE_HAS_INLINE */ - -////////////////////////////////////////////////////////////////////// -// pthread_t -////////////////////////////////////////////////////////////////////// - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int -pthread_create (pace_pthread_t * thread, - const pace_pthread_attr_t * attr, - void * (*start_routine) (void*), - void * arg) -{ - /* Get around a gcc bug. */ - typedef unsigned (__stdcall *bthrexr)(void*); - - unsigned flags = 0x0, thr_addr = 0x0; - if (attr->sparam_.sched_priority != THREAD_PRIORITY_NORMAL) - { - // CREATE_SUSPENDED is the only flag win32 currently supports - flags = CREATE_SUSPENDED; - } - - thread = (pace_pthread_t) - _beginthreadex (0, - attr->stack_size_, - (bthrexr) start_routine, - arg, - flags, - &thr_addr); - - if (flags == CREATE_SUSPENDED && thread != 0) - { - SetThreadPriority (thread, attr->sparam_.sched_priority); - ResumeThread (thread); - } - - if (thread == 0) - { - return 0; - } - else - { - PACE_FAIL_RETURN (-1); - } - -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -pace_pthread_t -pthread_self () -{ - return GetCurrentThread (); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int -pthread_getschedparam (pace_pthread_t thread, - int * policy, - pace_sched_param * param) -{ - PACE_UNUSED_ARG (policy); - if (param != (pace_sched_param*)0) - { - param->sched_priority = GetThreadPriority (thread); - return 0; - } - /* Invalid pointer to pace_sched_param. */ - return -1; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - int pthread_setschedparam (pace_pthread_t thread, - int policy, - const pace_sched_param * param) -{ - PACE_UNUSED_ARG(policy); - - if (SetThreadPriority (thread, param->sched_priority)) - { - return 0; - } - /* ERROR: with return value of SetThreadPriority. */ - return -1; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -////////////////////////////////////////////////////////////////////// -// pthread_attr_t -////////////////////////////////////////////////////////////////////// - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int -pthread_attr_init (pace_pthread_attr_t * attr) -{ - /* These need to be the platform defaults! - * Since I made this, I need to maintain this invariant! - * Eventually, #define 'words' would be better than - * constants here! */ - - attr->init_ = 1; - attr->detach_state_ = 0; - attr->policy_ = 0; - attr->sparam_.sched_priority = 0; - attr->inherit_sched_ = 0; - attr->contention_scope_ = 0; - attr->guard_size_ = 0; - attr->stackaddr_set_ = 0; - attr->stack_addr_ = (void*)0; - attr->stack_size_ = 0; - - return 0; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int -pthread_attr_destroy (pace_pthread_attr_t * attr) -{ - if (attr->init_ == 1) - { - attr->init_ = 0; - return 0; - } - /* ERROR: not initilalized properly! */ - return -1; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int -pthread_attr_getdetachstate (const pace_pthread_attr_t * attr, - int * detachstate) -{ - if (attr->init_ == 1) - { - *detachstate = attr->detach_state_; - return 0; - } - /* ERROR: not initilalized properly! */ - return -1; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int -pthread_attr_setdetachstate (pace_pthread_attr_t * attr, - int detachstate) -{ - if (attr->init_ == 1) - { - attr->detach_state_ = detachstate; - return 0; - } - /* ERROR: not initilalized properly! */ - return -1; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int -pthread_attr_getinheritsched (const pace_pthread_attr_t * attr, - int * inheritsched) -{ - if (attr->init_ == 1) - { - *inheritsched = attr->inherit_sched_; - return 0; - } - /* ERROR: not initilalized properly! */ - return -1; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int -pthread_attr_setinheritsched (pace_pthread_attr_t * attr, - int inheritsched) -{ - if (attr->init_ == 1) - { - attr->inherit_sched_ = inheritsched; - return 0; - } - /* ERROR: not initilalized properly! */ - return -1; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int -pthread_attr_getschedparam (const pace_pthread_attr_t * attr, - pace_sched_param * param) -{ - if (attr->init_ == 1) - { - param->sched_priority = attr->sparam_.sched_priority; - return 0; - } - /* ERROR: not initilalized properly! */ - return -1; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int -pthread_attr_setschedparam (pace_pthread_attr_t * attr, - const pace_sched_param * param) -{ - if (attr->init_ == 1) - { - attr->sparam_.sched_priority = param->sched_priority; - return 0; - } - /* ERROR: not initilalized properly! */ - return -1; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int pthread_attr_getschedpolicy (const pace_pthread_attr_t * attr, - int * policy) -{ - if (attr->init_ == 1) - { - *policy = attr->policy_; - return 0; - } - /* ERROR: not initilalized properly! */ - return -1; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int pthread_attr_setschedpolicy (pace_pthread_attr_t * attr, - int policy) -{ - if (attr->init_ == 1) - { - attr->policy_ = policy; - return 0; - } - /* ERROR: not initilalized properly! */ - return -1; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int -pthread_attr_getscope (const pace_pthread_attr_t * attr, - int * contentionscope) -{ - if (attr->init_ == 1) - { - *contentionscope = attr->contention_scope_; - return 0; - } - /* ERROR: not initialized properly! */ - return -1; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int -pthread_attr_setscope (pace_pthread_attr_t * attr, - int contentionscope) -{ - if (attr->init_ == 1) - { - attr->contention_scope_ = contentionscope; - return 0; - } - /* ERROR: not initialized properly! */ - return -1; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int -pthread_attr_getstackaddr (const pace_pthread_attr_t * attr, - void ** stackaddr) -{ - if (attr->init_ == 1) - { - *stackaddr = attr->stack_addr_; - return 0; - } - /* ERROR: not initilalized properly! */ - return -1; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int -pthread_attr_setstackaddr (pace_pthread_attr_t * attr, - void * stackaddr) -{ - if (attr->init_ == 1) - { - attr->stack_addr_ = stackaddr; - return 0; - } - /* ERROR: not initilalized properly! */ - return -1; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int -pthread_attr_getstacksize (const pace_pthread_attr_t * attr, - size_t * stacksize) -{ - if (attr->init_ == 1) - { - *stacksize = attr->stack_size_; - return 0; - } - /* ERROR: not initilalized properly! */ - return -1; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -int -pthread_attr_setstacksize (pace_pthread_attr_t * attr, - size_t stacksize) -{ - if (attr->init_ == 1) - { - attr->stack_size_ = stacksize; - return 0; - } - /* ERROR: not initilalized properly! */ - return -1; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/win32/pthread.h b/PACE/pace/win32/pthread.h deleted file mode 100644 index 582b89c2ab1..00000000000 --- a/PACE/pace/win32/pthread.h +++ /dev/null @@ -1,178 +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 - -#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 (PACE_HAS_POSIX_NONUOF_FUNCS) - int pthread_create (pace_pthread_t * thread, - const pace_pthread_attr_t * attr, - void * (*start_routine) (void*), - void * arg); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - pace_pthread_t pthread_self (); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - /* Returns -1 if invalid pointer to param is passed in! */ - int pthread_getschedparam (pace_pthread_t thread, - int * policy, - pace_sched_param * param); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - int pthread_setschedparam (pace_pthread_t thread, - int policy, - const pace_sched_param * param); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - /* Returns -1 if attr is already valid! */ - int pthread_attr_init (pace_pthread_attr_t * attr); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - /* Returns -1 if attr is invalid! */ - int pthread_attr_destroy (pace_pthread_attr_t * attr); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - int pthread_attr_getdetachstate (const pace_pthread_attr_t * attr, - int * detachstate); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - int pthread_attr_setdetachstate (pace_pthread_attr_t * attr, - int detachstate); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - int pthread_attr_getinheritsched (const pace_pthread_attr_t * attr, - int * inheritsched); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - int pthread_attr_setinheritsched (pace_pthread_attr_t * attr, - int inheritsched); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - int pthread_attr_getschedparam (const pace_pthread_attr_t * attr, - pace_sched_param * param); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - int pthread_attr_setschedparam (pace_pthread_attr_t * attr, - const pace_sched_param * param); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - int pthread_attr_getschedpolicy (const pace_pthread_attr_t * attr, - int * policy); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - int pthread_attr_setschedpolicy (pace_pthread_attr_t * attr, - int policy); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - int pthread_attr_getscope (const pace_pthread_attr_t * attr, - int * contentionscope); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - int pthread_attr_setscope (pace_pthread_attr_t * attr, - int contentionscope); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - int pthread_attr_getstackaddr (const pace_pthread_attr_t * attr, - void ** stackaddr); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - int pthread_attr_setstackaddr (pace_pthread_attr_t * attr, - void * stackaddr); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - int pthread_attr_getstacksize (const pace_pthread_attr_t * attr, - size_t * stacksize); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - int pthread_attr_setstacksize (pace_pthread_attr_t * attr, - size_t stacksize); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#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 3fea1729342..00000000000 --- a/PACE/pace/win32/pthread.inl +++ /dev/null @@ -1,682 +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_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 -pace_pthread_t -pace_pthread_self () -{ - return pthread_self (); -} -#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) -{ - return pthread_getschedparam (thread, policy, param); -} -#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) -{ - return pthread_setschedparam (thread, policy, param); -} -#endif /* PACE_HAS_POSIX_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_POSIX_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_POSIX_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_POSIX_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_POSIX_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 (attr, inheritsched); -} -#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) -{ - return pthread_attr_setinheritsched (attr, inheritsched); -} -#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) -{ - return pthread_attr_getschedparam (attr, param); -} -#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) -{ - return pthread_attr_setschedparam (attr, param); -} -#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) -{ - return pthread_attr_getschedpolicy (attr, policy); -} -#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) -{ - return pthread_attr_setschedpolicy (attr, policy); -} -#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) -{ - return pthread_attr_getscope (attr, contentionscope); -} -#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) -{ - return pthread_attr_setscope (attr, contentionscope); -} -#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) -{ - return pthread_attr_getstackaddr (attr, stackaddr); -} -#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) -{ - return pthread_attr_setstackaddr (attr, stackaddr); -} -#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) -{ - return pthread_attr_getstacksize (attr, stacksize); -} -#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) -{ - return pthread_attr_setstacksize (attr, stacksize); -} -#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 (pace_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_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) -{ - return t1 == t2; -} -#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 -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 (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_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 -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_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/pthreadtypes.h b/PACE/pace/win32/pthreadtypes.h deleted file mode 100644 index 9d578a56801..00000000000 --- a/PACE/pace/win32/pthreadtypes.h +++ /dev/null @@ -1,132 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/pthreadtypes.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -/* Keep pthread types defined here as they just clutter up sys/types.h - - * Do NOT include this file directly!! Please include "sys/types.h". */ - -#ifndef PACE_SYS_PTHREADTYPES_H_WIN32 -#define PACE_SYS_PTHREADTYPES_H_WIN32 - -#include "pace/win32/schedtypes.h" - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_PTHREAD_ATTR_T -#define PACE_PTHREAD_ATTR_T 1 - typedef struct pthread_attr_t - { - int init_; - int detach_state_; - int policy_; - pace_sched_param sparam_; - int inherit_sched_; - int contention_scope_; - pace_size_t guard_size_; - int stackaddr_set_ ; - void * stack_addr_; - pace_size_t stack_size_; - } pace_pthread_attr_t; -#endif /* PACE_PTHREAD_ATTR_T */ - -#ifndef PACE_PTHREAD_COND_T -#define PACE_PTHREAD_COND_T 1 - typedef struct pthread_cond_t - { -#if 0 - /* Concurrent access protection. */ - struct _pthread_fastlock __c_lock; - - /* Pool of threads waiting. */ - _pthread_descr __c_waiting; -#endif - int a; - - } pace_pthread_cond_t; - -#endif /* PACE_PTHREAD_COND_T */ - -#ifndef PACE_PTHREAD_CONDATTR_T -#define PACE_PTHREAD_CONDATTR_T 1 - typedef struct pthread_condattr_t - { - int not_used_; - } pace_pthread_condattr_t; -#endif /* PACE_PTHREAD_CONDATTR_T */ - -#ifndef PACE_PTHREAD_KEY_T -#define PACE_PTHREAD_KEY_T 1 - typedef unsigned int pthread_key_t; - typedef pthread_key_t pace_pthread_key_t; -#endif /* PACE_PTHREAD_KEY_T */ - -#ifndef PACE_PTHREAD_MUTEX_T -#define PACE_PTHREAD_MUTEX_T 1 - typedef struct pthread_mutex_t - { - /* Depth of recursive locking */ - int recursive_count_; - -#if 0 - /* Owner thread (if recursive or errcheck) */ - _pthread_descr __m_owner; -#endif - - /* Mutex kind: fast, recursive or errcheck */ - int type_; - - union - { - HANDLE proc_mutex_; - CRITICAL_SECTION thr_mutex_; - }; - -#if 0 - /* Underlying fast lock */ - struct _pthread_fastlock __m_lock; -#endif - - } pace_pthread_mutex_t; -#endif /* PACE_PTHREAD_MUTEX_T */ - -#ifndef PACE_PTHREAD_MUTEXATTR_T -#define PACE_PTHREAD_MUTEXATTR_T - typedef struct pthread_mutexattr_t - { - int mutex_kind_; - } pace_pthread_mutexattr_t; -#endif /* PACE_PTHREAD_MUTEXATTR_T */ - -#ifndef PACE_PTHREAD_ONCE -#define PACE_PTHREAD_ONCE - - typedef int pthread_once_t; - typedef pthread_once_t pace_pthread_once_t; - -#endif /* PACE_PTHREAD_ONCE */ - -#ifndef PACE_PTHREAD_T -#define PACE_PTHREAD_T - typedef HANDLE pace_pthread_t; - typedef DWORD pace_idpthread_t; -#endif /* PACE_PTHREAD_T */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SYS_PTHREADTYPES_H_WIN32 */ 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 6c04ae6b995..00000000000 --- a/PACE/pace/win32/sched.h +++ /dev/null @@ -1,34 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/sched.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SCHED_H_WIN32 -#define PACE_SCHED_H_WIN32 - - /* These definitions are used in other files. - * Separate the declarations from the definitions to avoid circular - * inclusion. ie: some other funcs just need the typedefs and structs. */ - -#include "pace/win32/schedtypes.h" -#include "pace/time.h" - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#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/schedtypes.h b/PACE/pace/win32/schedtypes.h deleted file mode 100644 index b3358e0c5db..00000000000 --- a/PACE/pace/win32/schedtypes.h +++ /dev/null @@ -1,67 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/schedtypes.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -/* Keep sched types defined here as they need to be in more than one - * file and otherwise cause circular dependencies. - - * Do NOT include this file directly!! Please include "pace/sched.h". */ - -#ifndef PACE_SYS_SCHEDTYPES_H_WIN32 -#define PACE_SYS_SCHEDTYPES_H_WIN32 - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - - /* These are defined via POSIX, but win32 is not POSIX compliant! - * So please forgive me for these (non pace prefix) sins! */ - -#ifndef SCHED_OTHER -#define SCHED_OTHER 0 -#endif /* SCHED_RR */ - -#ifndef SCHED_FIFO -#define SCHED_FIFO 1 -#endif /* SCHED_FIFO */ - -#ifndef SCHED_RR -#define SCHED_RR 2 -#endif /* SCHED_RR */ - -#ifndef PACE_SCHED_OTHER -#define PACE_SCHED_OTHER SCHED_OTHER -#endif /* PACE_SCHED_OTHER */ - -#ifndef PACE_SCHED_FIFO -#define PACE_SCHED_FIFO SCHED_FIFO -#endif /* PACE_SCHED_FIFO */ - -#ifndef PACE_SCHED_RR -#define PACE_SCHED_RR SCHED_RR -#endif /* PACE_SCHED_RR */ - -#ifndef PACE_SCHED_PARAM -#define PACE_SCHED_PARAM 1 - typedef struct sched_param - { - int sched_priority; - } pace_sched_param; -#endif - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SYS_SCHEDTYPES_H_WIN32 */ diff --git a/PACE/pace/win32/semaphore.c b/PACE/pace/win32/semaphore.c deleted file mode 100644 index 23728df5c29..00000000000 --- a/PACE/pace/win32/semaphore.c +++ /dev/null @@ -1,122 +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) -{ - PACE_UNUSED_ARG (pshared); - - /* 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 7abd89211f0..00000000000 --- a/PACE/pace/win32/semaphore.h +++ /dev/null @@ -1,62 +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 - 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) - PACE_INLINE pace_sem_t * sem_open (const char * name, int oflag, ...); -#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 dea94013317..00000000000 --- a/PACE/pace/win32/semaphore.inl +++ /dev/null @@ -1,108 +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 -pace_sem_t * -pace_sem_open (const char * name, int oflag, ...) -{ - PACE_UNUSED_ARG (name); - PACE_UNUSED_ARG (oflag); - return (pace_sem_t)NULL; -} -#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) -{ -#if defined (__BORLANDC__) - return unlink (name); -#else /* __BORLANDC__ */ - return _unlink (name); -#endif /* __BORLANDC__ */ -} -#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 d3be714dfd4..00000000000 --- a/PACE/pace/win32/setjmp.inl +++ /dev/null @@ -1,36 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/setjmp.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#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 8795f8726b6..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 - enum { PACE_SIG_BITS = 4 }; - typedef struct /* sigset_t */ { - /* signal set type */ - unsigned int sigbits_[PACE_SIG_BITS]; - } 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 437d609f926..00000000000 --- a/PACE/pace/win32/signal.inl +++ /dev/null @@ -1,193 +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_SIG_BITS is an enum defined in PACE/pace/win32/signal.inl */ - int i = 0; - for ( ; i < PACE_SIG_BITS; ++i) - { - set->sigbits_[i] = ~(unsigned int)0; - } - return 0; -} -#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_UNUSED_ARG (value); - 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/socket.c b/PACE/pace/win32/socket.c deleted file mode 100644 index 682a843fe1b..00000000000 --- a/PACE/pace/win32/socket.c +++ /dev/null @@ -1,9 +0,0 @@ -/* - * $Id$ - */ - -#include "pace/sys/socket.h" - -/* - * Empty for win32. - */ diff --git a/PACE/pace/win32/socket.h b/PACE/pace/win32/socket.h deleted file mode 100644 index bfaaaab9953..00000000000 --- a/PACE/pace/win32/socket.h +++ /dev/null @@ -1,5 +0,0 @@ -/* - * $Id$ - * - * Empty for win32. - */ diff --git a/PACE/pace/win32/socket.inl b/PACE/pace/win32/socket.inl deleted file mode 100644 index 62d778da847..00000000000 --- a/PACE/pace/win32/socket.inl +++ /dev/null @@ -1,7 +0,0 @@ -/* - * $Id$ - */ - -/* - * Empty for win32. - */ diff --git a/PACE/pace/win32/stat.c b/PACE/pace/win32/stat.c deleted file mode 100644 index 1f2bb2fabe5..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 -pace_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 e05363468ad..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 pace_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 4ebc17eed86..00000000000 --- a/PACE/pace/win32/stat.inl +++ /dev/null @@ -1,99 +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 (PACE_HANDLE 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 (PACE_HANDLE fildes, pace_stat_s * buf) -{ - /* There are two impl in ACE. This is the simpler. But requires - * you to close the temporary file desc. */ - int retval = -1; - int fd = _open_osfhandle ((long) fildes, 0); - if (fd != -1) - { - retval = _fstat (fd, (struct _stat *) buf); - } - - _close (fd); - - /* Remember to close the file handle. */ - return retval; -} -#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 pace_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, (struct _stat *)buf); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FA_UOF) -PACE_INLINE -pace_mode_t -pace_umask (pace_mode_t cmask) -{ -#if defined (__BORLANDC__) - return umask (cmask); -#else /* __BORLANDC__ */ - return _umask (cmask); -#endif /* __BORLANDC__ */ -} -#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 3aae70d32ca..00000000000 --- a/PACE/pace/win32/stdio.c +++ /dev/null @@ -1,51 +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 */ - - -#if (PACE_HAS_POSIX_FM_UOF) -int -pace_win32_fseek (FILE * stream, long 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 -1; // rather safe than sorry - } -# endif /* SEEK_SET != FILE_BEGIN - || SEEK_CUR != FILE_CURRENT - || SEEK_END != FILE_END */ - PACE_OSCALL_RETURN (fseek (stream, offset, whence), int, -1); -} -#endif /* PACE_HAS_POSIX_FM_UOF */ diff --git a/PACE/pace/win32/stdio.h b/PACE/pace/win32/stdio.h deleted file mode 100644 index f765305c77c..00000000000 --- a/PACE/pace/win32/stdio.h +++ /dev/null @@ -1,90 +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 */ - - typedef FILE PACE_FILE; - typedef fpos_t pace_fpos_t; - -# ifndef PACE_BUSIZ -# define PACE_BUFSIZ BUFSIZ -# endif /* PACE_BUFSIZ */ - -# ifndef PACE_EOF -# define PACE_EOF EOF -# endif /* PACE_EOF */ - -# ifndef PACE_FILENAME_MAX -# define PACE_FILENAME_MAX FILENAME_MAX -# endif /* PACE_FILENAME_MAX */ - -# ifndef PACE_L_ctermid -# define PACE_L_ctermid L_ctermid -# endif /* PACE_L_ctermid */ - -# ifndef PACE_L_cuserid -# define PACE_L_cuserid L_cuserid -# endif /* PACE_L_cuserid */ - -# ifndef PACE_NULL -# define PACE_NULL NULL -# endif /* PACE_NULL */ - -# ifndef PACE_SEEK_CUR -# define PACE_SEEK_CUR SEEK_CUR -# endif /* PACE_SEEK_CUR */ - -# ifndef PACE_SEEK_END -# define PACE_SEEK_END SEEK_END -# endif /* PACE_SEEK_END */ - -# ifndef PACE_SEEK_SET -# define PACE_SEEK_SET SEEK_SET -# endif /* PACE_SEEK_SET */ - -# ifndef PACE_TMP_MAX -# define PACE_TMP_MAX TMP_MAX -# endif /* PACE_TMP_MAX */ - -# ifndef pace_stderr -# define pace_stderr stderr -# endif /* pace_stderr */ - -# ifndef pace_stdout -# define pace_stdout stdout -# endif /* pace_stdout */ - -# ifndef pace_stdin -# define pace_stdin stdin -# endif - -#ifndef PACE_SIZE_T -#define PACE_SIZE_T 1 - typedef size_t pace_size_t; -#endif /* PACE_SIZE_T */ - -#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 180140149b9..00000000000 --- a/PACE/pace/win32/stdio.inl +++ /dev/null @@ -1,464 +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) -{ -#if defined (__BORLANDC__) - return fdopen (fildes, (char *)type); -#else /* __BORLANDC__ */ - return fdopen (fildes, type); -#endif /* __BORLANDC__ */ -} -#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 01a93eded34..00000000000 --- a/PACE/pace/win32/stdlib.h +++ /dev/null @@ -1,63 +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 */ - - typedef div_t pace_div_t; - typedef ldiv_t pace_ldiv_t; - -# ifndef PACE_EXIT_FAILURE -# define PACE_EXIT_FAILURE EXIT_FAILURE -# endif /* PACE_EXIT_FAILURE */ - -# ifndef PACE_EXIT_SUCCESS -# define PACE_EXIT_SUCCESS EXIT_SUCCESS -# endif /* PACE_EXIT_SUCCESS */ - -# ifndef PACE_MB_CUR_MAX -# define PACE_MB_CUR_MAX MB_CUR_MAX -# endif /* PACE_MB_CUR_MAX */ - -# ifndef PACE_NULL -# define PACE_NULL NULL -# endif /* PACE_NULL */ - -# ifndef PACE_RAND_MAX -# define PACE_RAND_MAX RAND_MAX -# endif /* PACE_RAND_MAX */ - -#ifndef PACE_SIZE_T -#define PACE_SIZE_T 1 - typedef size_t pace_size_t; -#endif /* PACE_SIZE_T */ - -#ifndef PACE_WCHAR_T -#define PACE_WCHAR_T 1 - 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 3597e1954dc..00000000000 --- a/PACE/pace/win32/stdlib.inl +++ /dev/null @@ -1,303 +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_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) -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_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) -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 */ - -#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) -{ - PACE_UNUSED_ARG (string); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} - -#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/win32/string.c b/PACE/pace/win32/string.c deleted file mode 100644 index f7f79cc7fab..00000000000 --- a/PACE/pace/win32/string.c +++ /dev/null @@ -1,42 +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 */ - -#if (PACE_HAS_POSIX_CLSR_UOF) -char * -strtok_r (char * s, const char * sep, char ** lasts) -{ - int l_org; - int l_sub; - - if (s == 0) - s = *lasts; - else - *lasts = s; - if (*s == 0) // We have reached the end - return 0; - l_org = pace_strlen (s); - l_sub = pace_strlen (s = pace_strtok (s, sep)); - *lasts = s + l_sub; - if (l_sub != l_org) - *lasts += 1; - return s ; -} -#endif /* PACE_HAS_POSIX_CLSR_UOF */ diff --git a/PACE/pace/win32/string.h b/PACE/pace/win32/string.h deleted file mode 100644 index fdc5be5ab96..00000000000 --- a/PACE/pace/win32/string.h +++ /dev/null @@ -1,42 +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 (PACE_HAS_POSIX_CLSR_UOF) -char * strtok_r (char * s, const char * sep, char ** lasts); -#endif /* PACE_HAS_POSIX_CLSR_UOF */ - -#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 be669a7048c..00000000000 --- a/PACE/pace/win32/string.inl +++ /dev/null @@ -1,198 +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) -{ - return strtok_r (s, sep, lasts); -} -#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 aeaf12e0771..00000000000 --- a/PACE/pace/win32/time.h +++ /dev/null @@ -1,107 +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> -#include "pace/sys/types.h" - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -# ifndef PACE_CLK_TCK -# define PACE_CLK_TCK CLK_TCK -# endif /* PACE_CLK_TCK */ - -# ifndef PACE_CLOCKS_PER_SEC -# define PACE_CLOCKS_PER_SEC CLOCKS_PER_SEC -# endif /* PACE_CLOCKS_PER_SEC */ - -# ifndef PACE_CLOCK_REALTIME -# define PACE_CLOCK_REALTIME CLOCK_REALTIME -# endif /* PACE_CLOCK_REALTIME */ - -# ifndef PACE_NULL -# define PACE_NULL NULL -# endif /* PACE_NULL */ - -# ifndef PACE_TIMER_ABSTIME -# define PACE_TIMER_ABSTIME TIMER_ABSTIME -# endif /* PACE_TIMER_ABSTIME */ - -#ifndef PACE_CLOCKID_T -#define PACE_CLOCKID_T 1 - typedef int clockid_t; - typedef clockid_t pace_clockid_t; -#endif /* PACE_CLOCKID_T */ - -#ifndef PACE_CLOCK_T -#define PACE_CLOCK_T 1 - typedef clock_t pace_clock_t; -#endif /* PACE_CLOCK_T */ - -#ifndef PACE_TIMER_T -#define PACE_TIMER_T 1 - typedef long timer_t; - typedef timer_t pace_timer_t; -#endif /* PACE_TIMER_T */ - -#ifndef PACE_TIME_T -#define PACE_TIME_T 1 - typedef time_t pace_time_t; -#endif /* PACE_TIME_T */ - -#ifndef PACE_TM -#define PACE_TM 1 - typedef struct tm pace_tm; -#endif /* PACE_TM */ - -#ifndef PACE_TIMESPEC -#define PACE_TIMESPEC 1 - typedef struct timespec pace_timespec; -#endif /* PACE_TIMESPEC */ - -#ifndef PACE_ITIMERSPEC -#define PACE_ITIMERSPEC 1 - typedef struct itimerspec pace_itimerspec; -#endif /* PACE_ITIMERSPEC */ - -#ifndef PACE_SIGVAL -#define PACE_SIGVAL 1 - typedef union sigval { - int sival_int; /* integer value */ - void * sival_ptr; /* pointer value */ -} pace_sigval; -#endif /* PACE_SIGVAL */ - -#ifndef PACE_SIGEVENT -#define PACE_SIGEVENT 1 - 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 7550ef274ad..00000000000 --- a/PACE/pace/win32/time.inl +++ /dev/null @@ -1,265 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/time.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#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 () -{ - _tzset (); - 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 cd6a7b10cd8..00000000000 --- a/PACE/pace/win32/types.h +++ /dev/null @@ -1,100 +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> -#if defined (__BORLANDC__) -# include <windows.h> -#else /* __BORLANDC__ */ -# include <wtypes.h> -# include <windef.h> -#endif /* __BORLANDC__ */ - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_TCHAR -#define PACE_TCHAR 1 - typedef char pace_tchar; -#endif /* PACE_TCHAR */ - -#ifndef PACE_HANDLE -#define PACE_HANDLE HANDLE -#endif /* PACE_HANDLE */ - -#ifndef PACE_INVALID_HANDLE -#define PACE_INVALID_HANDLE (HANDLE)-1 -#endif /* PACE_INVALID_HANDLE */ - -#ifndef PACE_DEV_T -#define PACE_DEV_T 1 - typedef dev_t pace_dev_t; -#endif /* PACE_DEV_T */ - -#ifndef PACE_GID_T -#define PACE_GID_T 1 - typedef int pace_gid_t; -#endif /* PACE_GID_T */ - -#ifndef PACE_INO_T -#define PACE_INO_T 1 - typedef ino_t pace_ino_t; -#endif /* PACE_INO_T */ - -#ifndef PACE_MODE_T -#define PACE_MODE_T 1 - typedef int pace_mode_t; -#endif /* PACE_MODE_T */ - -#ifndef PACE_NLINK_T -#define PACE_NLINK_T 1 - typedef DWORD pace_nlink_t; -#endif /* PACE_NLINK_T */ - -#ifndef PACE_OFF_T -#define PACE_OFF_T 1 - typedef off_t pace_off_t; -#endif /* PACE_OFF_T */ - -#ifndef PACE_PID_T -#define PACE_PID_T 1 - typedef long pace_pid_t; -#endif /* PACE_PID_T */ - -#ifndef PACE_SIZE_T -#define PACE_SIZE_T 1 - typedef size_t pace_size_t; -#endif /* PACE_SIZE_T */ - -#ifndef PACE_SSIZE_T -#define PACE_SSIZE_T 1 - typedef long pace_ssize_t; -#endif /* PACE_SSIZE_T */ - -#ifndef PACE_UID_T -#define PACE_UID_T 1 - typedef int pace_uid_t; -#endif /* PACE_UID_T */ - -#include "pace/win32/pthreadtypes.h" - -#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 1eda995d323..00000000000 --- a/PACE/pace/win32/unistd.c +++ /dev/null @@ -1,146 +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 -pace_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 -pace_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 -pace_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 -pace_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) -pace_ssize_t -pace_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 (pace_ssize_t) bytes_written; - } - else - { - PACE_FAIL_RETURN (-1); - } -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -pace_ssize_t -pace_win32_read (PACE_HANDLE fildes, void * buf, size_t nbyte) -{ - DWORD ok_len; - - if (ReadFile (fildes, buf, nbyte, &ok_len, 0)) - { - return (pace_ssize_t) ok_len; - } - 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 1292cea5bd9..00000000000 --- a/PACE/pace/win32/unistd.h +++ /dev/null @@ -1,119 +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 */ - -# ifndef PACE_F_OK -# define PACE_F_OK F_OK -# endif /* PACE_F_OK */ - -# ifndef PACE_NULL -# define PACE_NULL NULL -# endif /* PACE_NULL */ - -# ifndef PACE_R_OK -# define PACE_R_OK R_OK -# endif /* PACE_R_OK */ - -# ifndef PACE_SEEK_CUR -# define PACE_SEEK_CUR SEEK_CUR -# endif /* PACE_SEEK_CUR */ - -# ifndef PACE_SEEK_END -# define PACE_SEEK_END SEEK_END -# endif /* PACE_SEEK_END */ - -# ifndef PACE_SEEK_SET -# define PACE_SEEK_SET SEEK_SET -# endif /* PACE_SEEK_SET */ - -# ifndef PACE_STDERR_FILENO -# define PACE_STDERR_FILENO STDERR_FILENO -# endif /* PACE_STDERR_FILENO */ - -# ifndef PACE_STDIN_FILENO -# define PACE_STDIN_FILENO STDIN_FILENO -# endif /* PACE_STDIN_FILENO */ - -# ifndef PACE_STDOUT_FILENO -# define PACE_STDOUT_FILENO STDOUT_FILENO -# endif /* PACE_STDOUT_FILENO */ - -# ifndef PACE_W_OK -# define PACE_W_OK W_OK -# endif /* PACE_W_OK */ - -# ifndef PACE_X_OK -# define PACE_X_OK X_OK -# endif /* PACE_X_OK */ - -/* _POSIX _PC _SC Macros go here */ - -#ifndef PACE_SIZE_T -#define PACE_SIZE_T 1 -typedef size_t pace_size_t; -#endif /* PACE_SIZE_T */ - -#ifndef PACE_SSIZE_T -#define PACE_SSIZE_T 1 -typedef ssize_t pace_ssize_t; -#endif /* PACE_SSIZE_T */ - -#if (PACE_HAS_POSIX_DI_UOF) - int pace_win32_close (PACE_HANDLE fildes); -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FM_UOF) - PACE_HANDLE pace_win32_dup (PACE_HANDLE fildes); -#endif /* PACE_HAS_POSIX_FM_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) - int pace_win32_ftruncate (PACE_HANDLE fildes, pace_off_t length); -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_FM_UOF) - pace_off_t pace_win32_lseek (PACE_HANDLE fildes, - pace_off_t offset, - int whence); -#endif /* PACE_HAS_POSIX_FM_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) - pace_ssize_t pace_win32_write (PACE_HANDLE fildes, - const void * buf, - pace_size_t nbyte); -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) - pace_ssize_t pace_win32_read (PACE_HANDLE fildes, - void * buf, - pace_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 83f3f2a9e14..00000000000 --- a/PACE/pace/win32/unistd.inl +++ /dev/null @@ -1,514 +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) -{ -#if defined (__BORLANDC__) - return chdir (path); -#else /* __BORLANDC__ */ - return _chdir (path); -#endif /* __BORLANDC__ */ -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FA_UOF) -PACE_INLINE -int -pace_chown (const char * path, pace_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 pace_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 pace_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[]) -{ -#if defined (__BORLANDC__) || defined(__MINGW32__) - return execv (path, argv); -#else /* __BORLANDC__ || __MINGW32__ */ - return _execv (path, (const char * const *) argv); -#endif /* __BORLANDC__ || __MINGW32__ */ - /* 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[]) -{ -#if defined (__BORLANDC__) || defined (__MINGW32__) - return execve (path, argv, envp); -#else /* __BORLANDC__ || __MINGW32__ */ - return _execve (path, (const char *const *) argv, - (const char *const *) envp); -#endif /* __BORLANDC__ || __MINGW32__ */ - /* 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[]) -{ -#if defined (__BORLANDC__) || defined (__MINGW32__) - return execvp (file, argv); -#else /* __BORLANDC__ || __MINGW32__ */ - return _execvp (file, (const char *const *) argv); -#endif /* __BORLANDC__ || __MINGW32__ */ - /* 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 -pace_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 pace_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 -pace_uid_t -pace_getegid () -{ - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_UG_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -pace_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 -pace_uid_t -pace_getgid () -{ - pace_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_UNUSED_ARG (name); - PACE_UNUSED_ARG (namesize); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -} -#endif /* PACE_HAS_POSIX_UGR_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -pace_pid_t -pace_getpgrp () -{ - pace_pid_t retval = -1; - PACE_ERRNO_NO_SUPPORT_RETURN (retval); -} -#endif /* PACE_HAS_POSIX_UG_UOF */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -pace_pid_t -pace_getpid () -{ - return GetCurrentProcessId (); -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -pace_pid_t -pace_getppid () -{ - pace_pid_t retval = -1; - PACE_ERRNO_NO_SUPPORT_RETURN (retval); -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -pace_uid_t -pace_getuid () -{ - pace_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) -{ -#if defined (__BORLANDC__) || defined (__MINGW32__) - return isatty (fildes); -#else /* __BORLANDC__ || __MINGW32__ */ - return _isatty (fildes); -#endif /* __BORLANDC__ || __MINGW32__ */ -} -#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 pace_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 -pace_ssize_t -pace_read (PACE_HANDLE fildes, void * buf, pace_size_t nbyte) -{ - return pace_win32_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) -{ - 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 (pace_pid_t pid, pace_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 -pace_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 (pace_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 -pace_pid_t -pace_tcgetpgrp (PACE_HANDLE fildes) -{ - pace_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, pace_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 = (char*) 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 -pace_ssize_t -pace_write (PACE_HANDLE fildes, const void * buf, size_t nbyte) -{ - return pace_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 cafec0eb6cb..00000000000 --- a/PACE/pace/win32/utime.c +++ /dev/null @@ -1,41 +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_UNUSED_ARG (path); - PACE_UNUSED_ARG (times); - - PACE_ERRNO_NO_SUPPORT_RETURN (-1); - -#if 0 - /* 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 -} -#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 5b90db1bd70..00000000000 --- a/PACE/pace/win32/utime.h +++ /dev/null @@ -1,43 +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" -#if defined (__BORLANDC__) -#include <utime.h> -#else -#include <sys/utime.h> -#endif /* __BORLANDC__ */ - -#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 4a83d7713e0..00000000000 --- a/PACE/pace/win32/utime.inl +++ /dev/null @@ -1,33 +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! */ - -#if defined (__BORLANDC__) - return utime (path, (const struct utimbuf*)times); -#else /* __BORLANDC__ */ - /* Not quite the perfect answer... win32 doesn't take const args. */ - return _utime ((char*)path, (struct _utimbuf*)times); -#endif /* __BORLANDC__ */ -} -#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 9963f1ff624..00000000000 --- a/PACE/pace/win32/utsname.c +++ /dev/null @@ -1,181 +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_UNUSED_ARG (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 c603b6b2c31..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 bc79bb80db4..00000000000 --- a/PACE/pace/win32/utsname.inl +++ /dev/null @@ -1,26 +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_UNUSED_ARG (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 166a0936d10..00000000000 --- a/PACE/pace/win32/wait.inl +++ /dev/null @@ -1,45 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/win32/wait.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -pace_pid_t -pace_wait (int * statloc) -{ - PACE_UNUSED_ARG (statloc); - - { - pace_pid_t retval = -1; - PACE_ERRNO_NO_SUPPORT_RETURN (retval); - } -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -pace_pid_t -pace_waitpid (pace_pid_t pid, int * statloc, int options) -{ - PACE_UNUSED_ARG (pid); - PACE_UNUSED_ARG (statloc); - PACE_UNUSED_ARG (options); - - /* ACE version uses a HANDLE */ - { - pace_pid_t retval = -1; - PACE_ERRNO_NO_SUPPORT_RETURN (retval); - } -} -#endif /* PACE_HAS_POSIX_MP_UOF */ |