diff options
Diffstat (limited to 'PACE/pace/posix')
87 files changed, 0 insertions, 6346 deletions
diff --git a/PACE/pace/posix/Makefile.am b/PACE/pace/posix/Makefile.am deleted file mode 100644 index d50c7d6885b..00000000000 --- a/PACE/pace/posix/Makefile.am +++ /dev/null @@ -1,113 +0,0 @@ -##--------------------------------------------------------------------------- -## $Id$ -## -## Makefile for the PACE C library -## -##--------------------------------------------------------------------------- - -## -## Process this file with automake to create Makefile.in -## - -## The number in AUTOMAKE_OPTIONS is the minimum required version automake -## needed to process this file. -AUTOMAKE_OPTIONS = 1.4 - -## Create a libtool convenience library that contains the contents of -## the POSIX-specific version of PACE. -noinst_LTLIBRARIES = libPACE_POSIX.la - -libPACE_POSIX_la_SOURCES = \ - aio.c \ - assert.c \ - ctype.c \ - dirent.c \ - fcntl.c \ - grp.c \ - locale.c \ - math.c \ - mman.c \ - mqueue.c \ - pthread.c \ - pwd.c \ - sched.c \ - semaphore.c \ - setjmp.c \ - signal.c \ - stat.c \ - stdio.c \ - stdlib.c \ - string.c \ - termios.c \ - time.c \ - times.c \ - unistd.c \ - utime.c \ - utsname.c \ - wait.c - -PACE_INLINE_FILES = \ - aio.inl \ - assert.inl \ - ctype.inl \ - dirent.inl \ - fcntl.inl \ - grp.inl \ - locale.inl \ - math.inl \ - mman.inl \ - mqueue.inl \ - pthread.inl \ - pwd.inl \ - sched.inl \ - semaphore.inl \ - setjmp.inl \ - signal.inl \ - stat.inl \ - stdio.inl \ - stdlib.inl \ - string.inl \ - termios.inl \ - time.inl \ - times.inl \ - unistd.inl \ - utime.inl \ - utsname.inl \ - wait.inl - -PACE_HEADER_FILES = \ - aio.h \ - assert.h \ - ctype.h \ - dirent.h \ - errno.h \ - fcntl.h \ - grp.h \ - limits.h \ - locale.h \ - math.h \ - mman.h \ - mqueue.h \ - pthread.h \ - pwd.h \ - sched.h \ - semaphore.h \ - setjmp.h \ - signal.h \ - stat.h \ - stdio.h \ - stdlib.h \ - string.h \ - termios.h \ - time.h \ - times.h \ - types.h \ - unistd.h \ - utime.h \ - utsname.h \ - wait.h - -pkgincludedir = $(includedir)/$(PACKAGE)/posix -pkginclude_HEADERS = \ - $(PACE_INLINE_FILES) \ - $(PACE_HEADER_FILES) diff --git a/PACE/pace/posix/README b/PACE/pace/posix/README deleted file mode 100644 index 0116632c065..00000000000 --- a/PACE/pace/posix/README +++ /dev/null @@ -1 +0,0 @@ -POSIX dir diff --git a/PACE/pace/posix/TODO b/PACE/pace/posix/TODO deleted file mode 100644 index 6141d90a333..00000000000 --- a/PACE/pace/posix/TODO +++ /dev/null @@ -1,7 +0,0 @@ -$ID$ - -Testing -======= -Test PACE libraries with and without PACE_HAS_POSIX_PTHREAD_SEMANTICS -defined. There are some functions (e.g., in time.h) that have been -changed because it looked like they didn't need this guard. diff --git a/PACE/pace/posix/aio.c b/PACE/pace/posix/aio.c deleted file mode 100644 index d2f62e92389..00000000000 --- a/PACE/pace/posix/aio.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/aio.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/aio.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/aio.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/aio.h b/PACE/pace/posix/aio.h deleted file mode 100644 index 75a11416cc7..00000000000 --- a/PACE/pace/posix/aio.h +++ /dev/null @@ -1,45 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/aio.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_AIO_H_POSIX -#define PACE_AIO_H_POSIX - -#include <aio.h> -#include "pace/time.h" -#include "pace/signal.h" - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_AIO_ALLDONE AIO_ALLDONE -#define PACE_AIO_CANCELED AIO_CANCELED -#define PACE_AIO_NOCANCELED AIO_NOTCANCELED -#define PACE_LIO_NOP LIO_NOP -#define PACE_LIO_NOWAIT LIO_NOWAIT -#define PACE_LIO_READ LIO_READ -#define PACE_LIO_WAIT LIO_WAIT -#define PACE_LIO_WRITE LIO_WRITE - -#ifndef PACE_AIOCB -#define PACE_AIOCB -typedef struct aiocb pace_aiocb; -#endif /* PACE_AIOCB */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_AIO_H_POSIX */ diff --git a/PACE/pace/posix/aio.inl b/PACE/pace/posix/aio.inl deleted file mode 100644 index d219c0cabf9..00000000000 --- a/PACE/pace/posix/aio.inl +++ /dev/null @@ -1,94 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/aio.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_aio_cancel (PACE_HANDLE fildes, pace_aiocb * aiocbp) -{ - return aio_cancel (fildes, aiocbp); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_aio_error (const pace_aiocb * aiocbp) -{ - return aio_error (PACE_NONCONST_ARG_CAST (struct aiocb *) aiocbp); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_aio_fsync (int op, pace_aiocb * aiocbp) -{ - return aio_fsync (op, aiocbp); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_aio_read (pace_aiocb * aiocbp) -{ - return aio_read (aiocbp); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_aio_return (pace_aiocb * aiocbp) -{ - return aio_return (aiocbp); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_aio_suspend (const pace_aiocb * const list[], - int nent, - const pace_timespec * timeout) -{ - return aio_suspend (PACE_AIO_SUSPEND_LIST_ARG_CAST list, - nent, - PACE_NONCONST_ARG_CAST (struct timespec *) timeout); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_aio_write (pace_aiocb * aiocbp) -{ - return aio_write (aiocbp); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_lio_listio (int mode, - pace_aiocb * const list[], - int nent, - pace_sigevent * sig) -{ - return lio_listio (mode, PACE_NONCONST_ARG_CAST (struct aiocb **) list, - nent, sig); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/posix/assert.c b/PACE/pace/posix/assert.c deleted file mode 100644 index 368fd0a62f6..00000000000 --- a/PACE/pace/posix/assert.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/assert.c - * - * = AUTHOR - * Joe Hoffert - * - * ============================================================================= */ - -#include "pace/assert.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/assert.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/assert.h b/PACE/pace/posix/assert.h deleted file mode 100644 index 08c8b075cea..00000000000 --- a/PACE/pace/posix/assert.h +++ /dev/null @@ -1,29 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/assert.h - * - * = AUTHOR - * Joe Hoffert - * - * =========================================================================== */ - -#ifndef PACE_ASSERT_H_POSIX -#define PACE_ASSERT_H_POSIX - -#include <assert.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -# if defined (PACE_HAS_CPLUSPLUS) -} -# endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_ASSERT_H_POSIX */ diff --git a/PACE/pace/posix/assert.inl b/PACE/pace/posix/assert.inl deleted file mode 100644 index cc7974093d0..00000000000 --- a/PACE/pace/posix/assert.inl +++ /dev/null @@ -1,14 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/assert.inl - * - * = AUTHOR - * Joe Hoffert - * - * ============================================================================= */ diff --git a/PACE/pace/posix/ctype.c b/PACE/pace/posix/ctype.c deleted file mode 100644 index 7bf7d34ae07..00000000000 --- a/PACE/pace/posix/ctype.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/ctype.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/ctype.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/ctype.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/ctype.h b/PACE/pace/posix/ctype.h deleted file mode 100644 index 88c47c8e8cb..00000000000 --- a/PACE/pace/posix/ctype.h +++ /dev/null @@ -1,27 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/ctype.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_CTYPE_H_POSIX -#define PACE_CTYPE_H_POSIX - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_CTYPE_H_POSIX */ diff --git a/PACE/pace/posix/ctype.inl b/PACE/pace/posix/ctype.inl deleted file mode 100644 index 538164bda4d..00000000000 --- a/PACE/pace/posix/ctype.inl +++ /dev/null @@ -1,133 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/ctype.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include <ctype.h> - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_isalnum (int c) -{ - return isalnum (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_isalpha (int c) -{ - return isalpha (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_iscntrl (int c) -{ - return iscntrl (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_isdigit (int c) -{ - return isdigit (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_isgraph (int c) -{ - return isgraph (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_islower (int c) -{ - return islower (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_isprint (int c) -{ - return isprint (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_ispunct (int c) -{ - return ispunct (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_isspace (int c) -{ - return isspace (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_isupper (int c) -{ - return isupper (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_isxdigit (int c) -{ - return isxdigit (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_tolower (int c) -{ - return tolower (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_toupper (int c) -{ - return toupper (c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ diff --git a/PACE/pace/posix/dirent.c b/PACE/pace/posix/dirent.c deleted file mode 100644 index d04ea9c1ac9..00000000000 --- a/PACE/pace/posix/dirent.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/dirent.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/dirent.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/dirent.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/dirent.h b/PACE/pace/posix/dirent.h deleted file mode 100644 index 5662910233a..00000000000 --- a/PACE/pace/posix/dirent.h +++ /dev/null @@ -1,40 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/dirent.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_DIRENT_H_POSIX -#define PACE_DIRENT_H_POSIX - -#include "pace/sys/types.h" -#include <dirent.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_DIR_T -#define PACE_DIR_T -typedef DIR PACE_DIR; -#endif /* PACE_DIR_T */ - -#ifndef PACE_DIRENT -#define PACE_DIRENT -typedef struct dirent pace_dirent; -#endif /* PACE_DIRENT */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_DIRENT_H_POSIX */ diff --git a/PACE/pace/posix/dirent.inl b/PACE/pace/posix/dirent.inl deleted file mode 100644 index 084b43e591c..00000000000 --- a/PACE/pace/posix/dirent.inl +++ /dev/null @@ -1,68 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/dirent.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -PACE_DIR * -pace_opendir (const char * dirname) -{ - return opendir (dirname); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -pace_dirent * -pace_readdir (PACE_DIR * dirp) -{ - return readdir (dirp); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_CLSR_UOF) -PACE_INLINE -int -pace_readdir_r (PACE_DIR * dirp, pace_dirent * entry, - pace_dirent ** result) -{ -#if (PACE_LYNXOS) - *result = readdir_r (dirp, entry); - if (*result == 0) - return errno; - return 0; -#else - return readdir_r (dirp, entry, result); -#endif /* PACE_LYNXOS */ -} -#endif /* PACE_HAS_POSIX_CLSR_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -void -pace_rewinddir (PACE_DIR * dirp) -{ - rewinddir (dirp); - return; -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_closedir (PACE_DIR * dirp) -{ - return closedir (dirp); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ diff --git a/PACE/pace/posix/errno.h b/PACE/pace/posix/errno.h deleted file mode 100644 index 08595910435..00000000000 --- a/PACE/pace/posix/errno.h +++ /dev/null @@ -1,76 +0,0 @@ -/* $Id$ - -* ============================================================================ -* -* = LIBRARY -* pace -* -* = FILENAME -* pace/posix/errno.h -* -* = AUTHOR -* John Heitmann -* -* =========================================================================== *\ -/ - -#ifndef PACE_ERRNO_H_POSIX -#define PACE_ERRNO_H_POSIX - -#include <errno.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_E2BIG E2BIG -#define PACE_EACCES EACCES -#define PACE_EAGAIN EAGAIN -#define PACE_EBADF EBADF -#define PACE_EBADMSG -#define PACE_EBUSY EBUSY -#define PACE_ECANCELED ECANCELED -#define PACE_ECHILD ECHILD -#define PACE_EDEADLK EDEADLK -#define PACE_EDOM EDOM -#define PACE_EEXIST EEXIST -#define PACE_EFAULT EFAULT -#define PACE_EFBIG EFBIG -#define PACE_EINPROGRESS EINPROGRESS -#define PACE_EINTR EINTR -#define PACE_EINVAL EINVAL -#define PACE_EIO EIO -#define PACE_EISDIR EISDIR -#define PACE_EMFILE EMFILE -#define PACE_EMLINK EMLINK -#define PACE_EMSGSIZE EMSGSIZE -#define PACE_EENAMETOOLONG ENAMETOOLONG -#define PACE_ENFILE ENFILE -#define PACE_ENODEV ENODEV -#define PACE_ENOENT ENOENT -#define PACE_ENOEXEC ENOEXEC -#define PACE_ENOLCK ENOLCK -#define PACE_ENOMEM ENOMEM -#define PACE_ENOSPC ENOSPC -#define PACE_ENOSYS ENOSYS -#define PACE_ENOTDIR ENOTDIR -#define PACE_ENOTEMPTY ENOTEMPTY -#define PACE_ENOTSUP ENOTSUP -#define PACE_ENOTTY ENOTTY -#define PACE_ENXIO ENXIO -#define PACE_EPERM EPERM -#define PACE_EPIPE EPIPE -#define PACE_ERANGE ERANGE -#define PACE_EROFS EROFS -#define PACE_ESPIPE ESPIPE -#define PACE_ESRCH ESRCH -#define PACE_ETIMEDOUT ETIMEDOUT -#define PACE_EXDEV EXDEV - -#define pace_errno errno - -# if defined (PACE_HAS_CPLUSPLUS) -} -# endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_ERRNO_H_POSIX */ diff --git a/PACE/pace/posix/fcntl.c b/PACE/pace/posix/fcntl.c deleted file mode 100644 index 69183a1ba35..00000000000 --- a/PACE/pace/posix/fcntl.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/fcntl.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/fcntl.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/fcntl.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/fcntl.h b/PACE/pace/posix/fcntl.h deleted file mode 100644 index fc57bc098e3..00000000000 --- a/PACE/pace/posix/fcntl.h +++ /dev/null @@ -1,63 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/fnctl.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_FCNTL_H_POSIX -#define PACE_FCNTL_H_POSIX - -#include "pace/sys/types.h" -#include "pace/unistd.h" -#include "pace/sys/stat.h" -#include <fcntl.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_FD_CLOEXEC FD_CLOEXEC -#define PACE_F_DUPFD D_DUPFD -#define PACE_F_GETFD F_GETFD -#define PACE_F_GETFL F_GETFL -#define PACE_F_GETLK F_GETLK -#define PACE_F_RDLCK F_RDLCK -#define PACE_F_SETFD F_SETFD -#define PACE_F_SETFL F_SETFL -#define PACE_F_SETLK F_SETLK -#define PACE_F_SETLKW F_SETLKW -#define PACE_F_UNLCK F_UNLCK -#define PACE_F_WRLCK F_WRLCK -#define PACE_O_ACCMODE O_ACCMODE -#define PACE_O_APPEND O_APPEND -#define PACE_O_CREAT O_CREAT -#define PACE_O_DSYNC O_DSYNC -#define PACE_O_EXCL O_EXCL -#define PACE_O_NOCTTY O_NOCTTY -#define PACE_O_NONBLOCK O_NONBLOCK -#define PACE_O_RDONLY O_RDONLY -#define PACE_O_RDWR O_RDWR -#define PACE_O_RSYNC O_RSYNC -#define PACE_O_SYNC O_SYNC -#define PACE_O_TRUNC O_TRUNC -#define PACE_O_WRONLY O_WRONLY - -#ifndef PACE_FLOCK -#define PACE_FLOCK -typedef struct flock pace_flock; -#endif /* PACE_FLOCK */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_FCNTL_H_POSIX */ diff --git a/PACE/pace/posix/fcntl.inl b/PACE/pace/posix/fcntl.inl deleted file mode 100644 index 01a7e732294..00000000000 --- a/PACE/pace/posix/fcntl.inl +++ /dev/null @@ -1,23 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/fcntl.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_creat (const char * path, pace_mode_t mode) -{ - return creat (path, mode); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ diff --git a/PACE/pace/posix/grp.c b/PACE/pace/posix/grp.c deleted file mode 100644 index 59b11cbb739..00000000000 --- a/PACE/pace/posix/grp.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/grp.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/grp.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/grp.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/grp.h b/PACE/pace/posix/grp.h deleted file mode 100644 index 38be525562f..00000000000 --- a/PACE/pace/posix/grp.h +++ /dev/null @@ -1,34 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace (posix ace) - * - * = FILENAME - * pace/posix/grp.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_GRP_H_POSIX -#define PACE_GRP_H_POSIX - -#include <grp.h> - -# if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -# endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_GROUP -#define PACE_GROUP -typedef struct group pace_group; -#endif /* PACE_GROUP */ - -# if defined (PACE_HAS_CPLUSPLUS) -} -# endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_GRP_H_POSIX */ diff --git a/PACE/pace/posix/grp.inl b/PACE/pace/posix/grp.inl deleted file mode 100644 index fcac3d5f1fd..00000000000 --- a/PACE/pace/posix/grp.inl +++ /dev/null @@ -1,73 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/grp.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_SD_UOF) -PACE_INLINE -pace_group * -pace_getgrgid (pace_gid_t gid) -{ - return getgrgid (gid); -} -#endif /* PACE_HAS_POSIX_SD_UOF */ - -#if (PACE_HAS_POSIX_SDR_UOF) -PACE_INLINE -int -pace_getgrgid_r (pace_gid_t gid, - pace_group * grp, - char * buffer, - size_t bufsize, - pace_group ** result) -{ -#if (PACE_LYNXOS) - *result = getgrgid_r (grp, gid, buffer, bufsize); - if (*result == 0) - return errno; - return 0; -#else - return getgrgid_r (gid, grp, buffer, bufsize, result); -#endif /* ! PACE_LYNXOS */ -} -#endif /* PACE_HAS_POSIX_SDR_UOF */ - -#if (PACE_HAS_POSIX_SD_UOF) -PACE_INLINE -pace_group * -pace_getgrnam (const char * name) -{ - return getgrnam (name); -} -#endif /* PACE_HAS_POSIX_SD_UOF */ - -#if (PACE_HAS_POSIX_SDR_UOF) -PACE_INLINE -int -pace_getgrnam_r (const char * name, - pace_group * grp, - char * buffer, - size_t bufsize, - pace_group ** result) -{ -#if (PACE_LYNXOS) - *result = getgrnam_r (grp, PACE_NONCONST_ARG_CAST (char *) name, - buffer, bufsize); - if (*result == 0) - return errno; - return 0; -#else - return getgrnam_r (name, grp, buffer, bufsize, result); -#endif /* ! PACE_LYNXOS */ -} -#endif /* PACE_HAS_POSIX_SDR_UOF */ diff --git a/PACE/pace/posix/limits.h b/PACE/pace/posix/limits.h deleted file mode 100644 index fb952113bbd..00000000000 --- a/PACE/pace/posix/limits.h +++ /dev/null @@ -1,29 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace (posix ace) - * - * = FILENAME - * pace/posix/limits.h - * - * = AUTHOR - * Joe Hoffert - * - * ============================================================================ */ - -#ifndef PACE_LIMITS_H -#define PACE_LIMITS_H - -#include <limits.h> - -# if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -# endif /* (PACE_HAS_CPLUSPLUS) */ - -# if defined (PACE_HAS_CPLUSPLUS) -} -# endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_LIMITS_H */ diff --git a/PACE/pace/posix/locale.c b/PACE/pace/posix/locale.c deleted file mode 100644 index 3f818716eda..00000000000 --- a/PACE/pace/posix/locale.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/locale.c - * - * = AUTHOR - * Joe Hoffert - * - * ============================================================================= */ - -#include "pace/locale.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/locale.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/locale.h b/PACE/pace/posix/locale.h deleted file mode 100644 index 704d23d3c96..00000000000 --- a/PACE/pace/posix/locale.h +++ /dev/null @@ -1,40 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/locale.h - * - * = AUTHOR - * Joe Hoffert - * - * =========================================================================== */ - -#ifndef PACE_LOCALE_H_POSIX -#define PACE_LOCALE_H_POSIX - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_LC_ALL LC_ALL -#define PACE_LC_COLLATE LC_COLLATE -#define PACE_LC_CTYPE LC_CTYPE -#define PACE_LC_MONETARY LC_MONETARY -#define PACE_LC_NUMERIC LC_NUMERIC -#define PACE_LC_TIME LC_TIME -#define PACE_NULL NULL - -#ifndef PACE_LCONV -#define PACE_LCONV -typedef struct lconv pace_lconv; -#endif /* PACE_LCONV */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_LOCALE_H_POSIX */ diff --git a/PACE/pace/posix/locale.inl b/PACE/pace/posix/locale.inl deleted file mode 100644 index ed0a94e319d..00000000000 --- a/PACE/pace/posix/locale.inl +++ /dev/null @@ -1,34 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/locale.inl - * - * = AUTHOR - * Joe Hoffert - * - * =========================================================================== */ - -#include <locale.h> - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -pace_lconv * -pace_localeconv (void) -{ - return localeconv (); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -char * -pace_setlocale (int category, const char * locale) -{ - return setlocale (category, locale); -} -#endif /* PACE_HAS_POSIX_MP_UOF */ diff --git a/PACE/pace/posix/math.c b/PACE/pace/posix/math.c deleted file mode 100644 index 8c2e32301fa..00000000000 --- a/PACE/pace/posix/math.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/math.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/math.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/math.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/math.h b/PACE/pace/posix/math.h deleted file mode 100644 index 34e68241bc7..00000000000 --- a/PACE/pace/posix/math.h +++ /dev/null @@ -1,29 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/math.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_MATH_H_POSIX -#define PACE_MATH_H_POSIX - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_HUGE_VAL HUGE_VAL - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_MATH_H_POSIX */ diff --git a/PACE/pace/posix/math.inl b/PACE/pace/posix/math.inl deleted file mode 100644 index 9f2b560291a..00000000000 --- a/PACE/pace/posix/math.inl +++ /dev/null @@ -1,214 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/math.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include <math.h> - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_acos (double x) -{ - return acos (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_asin (double x) -{ - return asin (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_atan (double x) -{ - return atan (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_atan2 (double x, double y) -{ - return atan2 (x, y); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_cos (double x) -{ - return cos (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_sin (double x) -{ - return sin (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_tan (double x) -{ - return tan (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_cosh (double x) -{ - return cosh (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_sinh (double x) -{ - return sinh (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_tanh (double x) -{ - return tanh (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_exp (double x) -{ - return exp (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_frexp (double x, int * exp) -{ - return frexp (x, exp); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_ldexp (double x, int exp) -{ - return ldexp (x, exp); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_log (double x) -{ - return log (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_log10 (double x) -{ - return log10 (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_modf (double x, double * iptr) -{ - return modf (x, iptr); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_pow (double x, double y) -{ - return pow (x, y); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_sqrt (double x) -{ - return sqrt (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_ceil (double x) -{ - return ceil (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_fabs (double x) -{ - return fabs (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_floor (double x) -{ - return floor (x); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_fmod (double x, double y) -{ - return fmod (x, y); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ diff --git a/PACE/pace/posix/mman.c b/PACE/pace/posix/mman.c deleted file mode 100644 index b68b87baa22..00000000000 --- a/PACE/pace/posix/mman.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/mman.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/sys/mman.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/mman.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/mman.h b/PACE/pace/posix/mman.h deleted file mode 100644 index f45efe48efa..00000000000 --- a/PACE/pace/posix/mman.h +++ /dev/null @@ -1,42 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/mman.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SYS_MMAN_H_POSIX -#define PACE_SYS_MMAN_H_POSIX - -#include <sys/mman.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_MAP_FAILED MAP_FAILED -#define PACE_MAP_FIXED MAP_FIXED -#define PACE_MAP_PRIVATE MAP_PRIVATE -#define PACE_MAP_SHARED MAP_SHARED -#define PACE_MCL_CURRENT MCL_CURRENT -#define PACE_MS_ASYNC MS_ASYNC -#define PACE_MS_INVALIDATE -#define PACE_MS_SYNC MS_SYNC -#define PACE_PROT_EXEC PROT_EXEC -#define PACE_PROT_NONE PROT_NONE -#define PACE_PROT_READ PROT_READ -#define PACE_PROT_WRITE PROT_WRITE - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SYS_MMAN_H_POSIX */ diff --git a/PACE/pace/posix/mman.inl b/PACE/pace/posix/mman.inl deleted file mode 100644 index a89782fa44e..00000000000 --- a/PACE/pace/posix/mman.inl +++ /dev/null @@ -1,127 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/mman.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mlock (const void * addr, pace_size_t len) -{ - return mlock (((char*)addr), len); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mlockall (int flags) -{ - return mlockall (flags); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -void * -pace_mmap (void * addr, - pace_size_t len, - int prot, - int flags, - PACE_HANDLE fildes, - pace_off_t off) -{ - return mmap ((char *) addr, len, prot, flags, fildes, off); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_munlock (const void * addr, pace_size_t len) -{ - return munlock (((char*)addr), len); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mprotect (void * addr, - pace_size_t len, - int prot) -{ - return mprotect ((char*)addr, len, prot); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_msync (void * addr, - pace_size_t len, - int flags) -{ - return msync ((char*)addr, len, flags); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_munlockall () -{ - return munlockall (); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_munmap (void * addr, pace_size_t len) -{ - return munmap ((char *) addr, len); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -PACE_HANDLE -pace_shm_open (const char * name, - int oflag, - pace_mode_t mode) -{ -# if (PACE_POSIX_C_SOURCE > 2) - return shm_open (name, oflag, mode); -# else /* ! PACE_POSIX_C_SOURCE */ - PACE_UNUSED_ARG (name); - PACE_UNUSED_ARG (oflag); - PACE_UNUSED_ARG (mode); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -# endif /* ! PACE_POSIX_C_SOURCE */ -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_shm_unlink (const char * name) -{ -# if (PACE_POSIX_C_SOURCE > 2) - return shm_unlink (name); -# else /* ! PACE_POSIX_C_SOURCE */ - PACE_UNUSED_ARG (name); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -# endif /* ! PACE_POSIX_C_SOURCE */ -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/posix/mqueue.c b/PACE/pace/posix/mqueue.c deleted file mode 100644 index 596c75e3905..00000000000 --- a/PACE/pace/posix/mqueue.c +++ /dev/null @@ -1,24 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace (posix ace) - * - * = FILENAME - * pace/posix/mqueue.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/mqueue.h" - -#if PACE_LINUX -# include "pace/emulation/mqueue.c" -#endif /* PACE_LINUX */ - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/mqueue.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/mqueue.h b/PACE/pace/posix/mqueue.h deleted file mode 100644 index 66483f040cf..00000000000 --- a/PACE/pace/posix/mqueue.h +++ /dev/null @@ -1,43 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/mqueue.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_MQUEUE_H_POSIX -#define PACE_MQUEUE_H_POSIX - -#if PACE_LINUX -# include "pace/emulation/mqueue.h" -#else -# include <mqueue.h> -#endif /* PACE_LINUX */ - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_MQD_T -#define PACE_MQD_T - typedef mqd_t pace_mqd_t; -#endif /* PACE_MQD_T */ - -#ifndef PACE_MQ_ATTR -#define PACE_MQ_ATTR - typedef struct mq_attr pace_mq_attr; -#endif /* PACE_MQ_ATTR */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_MQUEUE_H_POSIX */ diff --git a/PACE/pace/posix/mqueue.inl b/PACE/pace/posix/mqueue.inl deleted file mode 100644 index 2459563e9b3..00000000000 --- a/PACE/pace/posix/mqueue.inl +++ /dev/null @@ -1,87 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/mqueue.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mq_close (pace_mqd_t mqdes) -{ - return mq_close (mqdes); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mq_getattr (pace_mqd_t mqdes, - pace_mq_attr * mqstat) -{ - return mq_getattr (mqdes, mqstat); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mq_notify (pace_mqd_t mqdes, - const pace_sigevent * notification) -{ - return mq_notify (mqdes, notification); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -ssize_t -pace_mq_receive (pace_mqd_t mqdes, - char * msg_ptr, - size_t msg_len, - unsigned int * msg_prio) -{ - return mq_receive (mqdes, msg_ptr, msg_len, msg_prio); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mq_send (pace_mqd_t mqdes, - const char * msg_ptr, - size_t msg_len, - unsigned int msg_prio) -{ - return mq_send (mqdes, msg_ptr, msg_len, msg_prio); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mq_setattr (pace_mqd_t mqdes, - const pace_mq_attr * mqstat, - pace_mq_attr * omqstat) -{ - return mq_setattr (mqdes, mqstat, omqstat); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mq_unlink (const char * name) -{ - return mq_unlink (name); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/posix/pthread.c b/PACE/pace/posix/pthread.c deleted file mode 100644 index 426c377c446..00000000000 --- a/PACE/pace/posix/pthread.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/pthread.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/pthread.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/pthread.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/pthread.h b/PACE/pace/posix/pthread.h deleted file mode 100644 index b998c50e7c1..00000000000 --- a/PACE/pace/posix/pthread.h +++ /dev/null @@ -1,81 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/pthread.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_PTHREAD_H_POSIX -#define PACE_PTHREAD_H_POSIX - -#include <pthread.h> -#include "pace/sys/types.h" -#include "pace/signal.h" - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_PTHREAD_CANCELED PTHREAD_CANCELED -#define PACE_PTHREAD_CANCEL_AYNCHRONOUS PTHREAD_CANCEL_ASYNCHRONOUS -#define PACE_PTHREAD_CANCEL_DEFERRED PTHREAD_CANCEL_DEFERRED -#define PACE_PTHREAD_CACEL_DISABLE PTHREAD_CANCEL_DISABLE -#define PACE_PTHREAD_CANCEL_ENABLE PTHREAD_CANCEL_ENABLE -#define PACE_PTHREAD_COND_INITIALIZER PTHREAD_COND_INITIALIZER -#define PACE_PTHREAD_CREATE_DETACHED PTHREAD_CREATE_DETACHED -#define PACE_PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_JOINABLE -#define PACE_PTHREAD_EXPLICIT_SCHED PTHREAD_EXPLICIT_SCHED -#define PACE_PTHREAD_INHERIT_SCHED PTHREAD_INHERIT_SCHED -#define PACE_PTHREAD_MUTEX_INITIALIZER PTHREAD_MUTEX_INITIALIZER -#define PACE_PTHREAD_ONCE_INIT PTHREAD_ONCE_INIT -#define PACE_PTHREAD_PRIO_INHERIT PTHREAD_PRIO_INHERIT -#define PACE_PTHREAD_PRIO_NONE PTHREAD_PRIO_NONE -#define PACE_PTHREAD_PRIO_PROTECT PTHREAD_PRIO_PROTECT -#define PACE_PTHREAD_PROCESS_PRIVATE PTHREAD_PROCESS_PRIVATE -#define PACE_PTHREAD_PROCESS_SHARED PTHREAD_PROCESS_SHARED -#define PACE_PTHREAD_SCOPE_PROCESS PTHREAD_SCOPE_PROCESS -#define PACE_PTHREAD_SCOPE_SYSTEM PTHREAD_SCOPE_SYSTEM - -#ifndef PACE_SCHED_PARAM -#define PACE_SCHED_PARAM - typedef struct sched_param pace_sched_param; -#endif /* PACE_SCHED_PARAM */ - -#if defined (PACE_HAS_CPLUSPLUS) -# ifndef PACE_ATFORK_PF -# define PACE_ATFORK_PF - typedef void (*pace_atfork_pf) (void); -# endif /* PACE_ATFORK_PF */ - -# ifndef PACE_KEYCREATE_PF -# define PACE_KEYCREATE_PF - typedef void (*pace_keycreate_pf) (void*); -# endif /* PACE_KEYCREATE_PF */ - -# ifndef PACE_ONCE_PF -# define PACE_ONCE_PF - typedef void (*pace_once_pf) (void); -# endif /* PACE_ONCE_PF */ - -# ifndef PACE_CREATE_PF -# define PACE_CREATE_PF - typedef void* (*pace_create_pf) (void*); -# endif /* PACE_CREATE_PF */ - -#endif /* PACE_HAS_CPLUPLUS */ - - - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_PTHREAD_H_POSIX */ diff --git a/PACE/pace/posix/pthread.inl b/PACE/pace/posix/pthread.inl deleted file mode 100644 index 9ff8b41e3f6..00000000000 --- a/PACE/pace/posix/pthread.inl +++ /dev/null @@ -1,729 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/pthread.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/unistd.h" - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -# if defined (PACE_HAS_CPLUSPLUS) -PACE_INLINE -int -pace_pthread_atfork (pace_atfork_pf prepare, - pace_atfork_pf parent, - pace_atfork_pf child) -{ - return pthread_atfork (prepare, parent, child); -} -# else /* ! PACE_HAS_CPLUSPLUS */ -PACE_INLINE -int -pace_pthread_atfork (void (*prepare) (), - void (*parent) (), - void (*child) ()) -{ - return pthread_atfork (prepare, parent, child); -} -# endif /* PACE_HAS_CPLUSPLUS */ -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_destroy (pace_pthread_attr_t * attr) -{ - return pthread_attr_destroy (attr); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_getdetachstate (const pace_pthread_attr_t * attr, - int * detachstate) -{ - return pthread_attr_getdetachstate (attr, detachstate); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_getinheritsched (const pace_pthread_attr_t * attr, - int * inheritsched) -{ - return pthread_attr_getinheritsched (PACE_NONCONST_ARG_CAST (pace_pthread_attr_t *) attr, - inheritsched); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_getschedparam (const pace_pthread_attr_t * attr, - pace_sched_param * param) -{ - return pthread_attr_getschedparam (attr, param); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_getschedpolicy (const pace_pthread_attr_t * attr, - int * policy) -{ - return pthread_attr_getschedpolicy (attr, policy); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_getscope (const pace_pthread_attr_t * attr, - int * contentionscope) -{ - return pthread_attr_getscope (attr, contentionscope); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_getstackaddr (const pace_pthread_attr_t * attr, - void ** stackaddr) -{ - return pthread_attr_getstackaddr (attr, stackaddr); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_getstacksize (const pace_pthread_attr_t * attr, - size_t * stacksize) -{ - return pthread_attr_getstacksize (PACE_NONCONST_ARG_CAST (pace_pthread_attr_t *) attr, - stacksize); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_init (pace_pthread_attr_t * attr) -{ - return pthread_attr_init (attr); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_setdetachstate (pace_pthread_attr_t * attr, - int detachstate) -{ - return pthread_attr_setdetachstate (attr, detachstate); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_setinheritsched (pace_pthread_attr_t * attr, - int inheritsched) -{ - return pthread_attr_setinheritsched (attr, inheritsched); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_setschedparam (pace_pthread_attr_t * attr, - const pace_sched_param * param) -{ - return pthread_attr_setschedparam (attr, param); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_setschedpolicy (pace_pthread_attr_t * attr, - int policy) -{ - return pthread_attr_setschedpolicy (attr, policy); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_setscope (pace_pthread_attr_t * attr, - int contentionscope) -{ - return pthread_attr_setscope (attr, contentionscope); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_setstackaddr (pace_pthread_attr_t * attr, - void * stackaddr) -{ - return pthread_attr_setstackaddr (attr, stackaddr); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_attr_setstacksize (pace_pthread_attr_t * attr, - size_t stacksize) -{ - return pthread_attr_setstacksize (attr, stacksize); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_cancel (pace_pthread_t thread) -{ - return pthread_cancel (thread); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_cond_broadcast (pace_pthread_cond_t * cond) -{ - return pthread_cond_broadcast (cond); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_cond_destroy (pace_pthread_cond_t * cond) -{ - return pthread_cond_destroy (cond); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_cond_init (pace_pthread_cond_t * cond, - const pace_pthread_condattr_t * attr) -{ - return pthread_cond_init (cond, attr); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_cond_signal (pace_pthread_cond_t * cond) -{ - return pthread_cond_signal (cond); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_cond_timedwait (pthread_cond_t * cond, - pace_pthread_mutex_t * mutex, - const pace_timespec * abstime) -{ - return pthread_cond_timedwait (cond, mutex, PACE_NONCONST_ARG_CAST (struct timespec *) abstime); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_cond_wait (pace_pthread_cond_t * cond, - pace_pthread_mutex_t * mutex) -{ - return pthread_cond_wait (cond, mutex); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_condattr_destroy (pace_pthread_condattr_t * attr) -{ - return pthread_condattr_destroy (attr); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_condattr_getpshared (const pace_pthread_condattr_t * attr, - int * pshared) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (pshared); - return -1; -#else - return pthread_condattr_getpshared (PACE_NONCONST_ARG_CAST (pace_pthread_condattr_t *) attr, pshared); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_condattr_init (pace_pthread_condattr_t * attr) -{ - return pthread_condattr_init (attr); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_condattr_setpshared (pace_pthread_condattr_t * attr, - int pshared) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (pshared); - return -1; -#else - return pthread_condattr_setpshared (attr, pshared); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -# if defined (PACE_HAS_CPLUSPLUS) -PACE_INLINE -int -pace_pthread_create (pace_pthread_t * thread, - const pace_pthread_attr_t * attr, - pace_create_pf start_routine, - void * arg) -{ - return pthread_create (thread, attr, start_routine, arg); -} -# else /* ! PACE_HAS_CPLUSPLUS */ -PACE_INLINE -int -pace_pthread_create (pace_pthread_t * thread, - const pace_pthread_attr_t * attr, - void * (*start_routine) (void*), - void * arg) -{ - return pthread_create (thread, attr, start_routine, arg); -} -# endif /*! PACE_HAS_CPLUSPLUS */ -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_detach (pace_pthread_t thread) -{ - return pthread_detach (thread); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_equal (pace_pthread_t t1, pthread_t t2) -{ - return pthread_equal (t1, t2); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -void -pace_pthread_exit (void * value_ptr) -{ - pthread_exit (value_ptr); - return; -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_getschedparam (pace_pthread_t thread, - int * policy, - pace_sched_param * param) -{ - return pthread_getschedparam (thread, policy, param); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -void * -pace_pthread_getspecific (pace_pthread_key_t key) -{ - return pthread_getspecific (key); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_join (pace_pthread_t thread, void ** value_ptr) -{ - return pthread_join (thread, value_ptr); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -# if defined (PACE_HAS_CPLUSPLUS) -PACE_INLINE -int -pace_pthread_key_create (pace_pthread_key_t * key, - pace_keycreate_pf destructor) -{ - return pthread_key_create (key, destructor); -} -#else /* ! PACE_HAS_CPLUSPLUS */ -PACE_INLINE -int -pace_pthread_key_create (pace_pthread_key_t * key, - void (*destructor)(void*)) -{ - return pthread_key_create (key, destructor); -} -# endif /* PACE_HAS_CPLUSPLUS */ -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_key_delete (pace_pthread_key_t key) -{ - return pthread_key_delete (key); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_kill (pace_pthread_t thread, int sig) -{ - return pthread_kill (thread, sig); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutex_destroy (pace_pthread_mutex_t * mutex) -{ - return pthread_mutex_destroy (mutex); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutex_getprioceiling (pace_pthread_mutex_t * mutex, - int * prioceiling) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (mutex); - PACE_UNUSED_ARG (prioceiling); - return -1; -#elif PACE_LYNXOS - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -#else /* ! PACE_LYNXOS */ - return pthread_mutex_getprioceiling (mutex, prioceiling); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutex_init (pace_pthread_mutex_t * mutex, - const pace_pthread_mutexattr_t * attr) -{ - return pthread_mutex_init (mutex, attr); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutex_lock (pace_pthread_mutex_t * mutex) -{ - return pthread_mutex_lock (mutex); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutex_setprioceiling (pace_pthread_mutex_t * mutex, - int prioceiling, - int * old_ceiling) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (mutex); - PACE_UNUSED_ARG (prioceiling); - PACE_UNUSED_ARG (old_ceiling); - return -1; -#elif PACE_LYNXOS - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -#else /* ! PACE_LYNXOS */ - return pthread_mutex_setprioceiling (mutex, prioceiling, old_ceiling); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutex_trylock (pthread_mutex_t * mutex) -{ - return pthread_mutex_trylock (mutex); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutex_unlock (pace_pthread_mutex_t * mutex) -{ - return pthread_mutex_unlock (mutex); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutexattr_destroy (pace_pthread_mutexattr_t * attr) -{ - return pthread_mutexattr_destroy (attr); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutexattr_getprioceiling (pace_pthread_mutexattr_t * attr, - int * prioceiling) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (prioceiling); - return -1; -#else - return pthread_mutexattr_getprioceiling (attr, prioceiling); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutexattr_getprotocol (const pace_pthread_mutexattr_t * attr, - int * protocol) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (protocol); - return -1; -#else - return pthread_mutexattr_getprotocol (PACE_NONCONST_ARG_CAST (pace_pthread_mutexattr_t *) attr, protocol); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutexattr_setprioceiling (pace_pthread_mutexattr_t * attr, - int prioceiling) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (prioceiling); - return -1; -#else - return pthread_mutexattr_setprioceiling (attr, prioceiling); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutexattr_setprotocol (pace_pthread_mutexattr_t * attr, - int protocol) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (protocol); - return -1; -#else - return pthread_mutexattr_setprotocol (attr, protocol); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutexattr_getpshared (const pace_pthread_mutexattr_t * attr, - int * pshared) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (pshared); - return -1; -#else - return pthread_mutexattr_getpshared (PACE_NONCONST_ARG_CAST (pace_pthread_mutexattr_t *) attr, pshared); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutexattr_init (pace_pthread_mutexattr_t * attr) -{ - return pthread_mutexattr_init (attr); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_mutexattr_setpshared (pace_pthread_mutexattr_t * attr, - int pshared) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (attr); - PACE_UNUSED_ARG (pshared); - return -1; -#else - return pthread_mutexattr_setpshared (attr, pshared); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -# if defined (PACE_HAS_CPLUSPLUS) -PACE_INLINE -int -pace_pthread_once (pace_pthread_once_t * once_control, - pace_once_pf void_routine) -{ - return pthread_once (once_control, void_routine); -} -# else /* ! PACE_HAS_CPLUSPLUS */ -PACE_INLINE -int -pace_pthread_once (pace_pthread_once_t * once_control, - void (*void_routine) (void)) -{ - return pthread_once (once_control, void_routine); -} -# endif /* PACE_HAS_CPLUSPLUS */ -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -pace_pthread_t -pace_pthread_self () -{ - return pthread_self (); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_setcancelstate (int state, int * oldstate) -{ - return pthread_setcancelstate (state, oldstate); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_setcanceltype (int type, int * oldtype) -{ - return pthread_setcanceltype (type, oldtype); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_setschedparam (pace_pthread_t thread, - int policy, - const pace_sched_param * param) -{ - return pthread_setschedparam (thread, policy, param); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_setspecific (pace_pthread_key_t key, const void * value) -{ - return pthread_setspecific (key, PACE_NONCONST_ARG_CAST (void *) value); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_pthread_sigmask (int how, const sigset_t * set, - sigset_t * oset) -{ - return pthread_sigmask (how, set, oset); -} -#endif /* PACE_HAS_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -void -pace_pthread_testcancel () -{ - pthread_testcancel (); - return; -} -#endif /* PACE_HAS_NONUOF_FUNCS */ diff --git a/PACE/pace/posix/pwd.c b/PACE/pace/posix/pwd.c deleted file mode 100644 index 6284186cd66..00000000000 --- a/PACE/pace/posix/pwd.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/pwd.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/pwd.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/pwd.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/pwd.h b/PACE/pace/posix/pwd.h deleted file mode 100644 index 70398e0871c..00000000000 --- a/PACE/pace/posix/pwd.h +++ /dev/null @@ -1,35 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/pwd.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_PWD_H_POSIX -#define PACE_PWD_H_POSIX - -#include <pwd.h> -#include "pace/sys/types.h" - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_PASSWD -#define PACE_PASSWD - typedef struct passwd pace_passwd; -#endif /* PACE_PASSWD */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_PWD_H_POSIX */ diff --git a/PACE/pace/posix/pwd.inl b/PACE/pace/posix/pwd.inl deleted file mode 100644 index ee52fd2be0d..00000000000 --- a/PACE/pace/posix/pwd.inl +++ /dev/null @@ -1,81 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/pwd.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_SD_UOF) -PACE_INLINE -pace_passwd * -pace_getpwuid (pace_uid_t uid) -{ - return getpwuid (uid); -} -#endif /* PACE_HAS_POSIX_SD_UOF */ - -#if (PACE_HAS_POSIX_SDR_UOF) -PACE_INLINE -int -pace_getpwuid_r (pace_uid_t uid, - pace_passwd * pwd, - char * buffer, - pace_size_t bufsize, - pace_passwd ** result) -{ -#if (PACE_LYNXOS) - if (getpwuid_r (pwd, uid, buffer, bufsize) == 0) - /* Successful search */ - { - **result = *pwd; - return 0; - } - - return -1; -#else - return getpwuid_r (uid, pwd, buffer, bufsize, result); -#endif /* ! PACE_LYNXOS */ -} -#endif /* PACE_HAS_POSIX_SDR_UOF */ - -#if (PACE_HAS_POSIX_SD_UOF) -PACE_INLINE -pace_passwd * -pace_getpwnam (const char * name) -{ - return getpwnam (name); -} -#endif /* PACE_HAS_POSIX_SD_UOF */ - -#if (PACE_HAS_POSIX_SDR_UOF) -PACE_INLINE -int -pace_getpwnam_r (const char * name, - pace_passwd * pwd, - char * buffer, - pace_size_t bufsize, - pace_passwd ** result) -{ -# if (PACE_LYNXOS) - if (getpwnam_r (pwd, PACE_NONCONST_ARG_CAST (char *) name, - buffer, bufsize) == 0) - /* Successful search */ - { - **result = *pwd; - return 0; - } - - return -1; -#else - return getpwnam_r (name, pwd, buffer, bufsize, result); -#endif /* ! PACE_LYNXOS */ -} -#endif /* PACE_HAS_POSIX_SDR_UOF */ diff --git a/PACE/pace/posix/sched.c b/PACE/pace/posix/sched.c deleted file mode 100644 index d78a66dbc7f..00000000000 --- a/PACE/pace/posix/sched.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/sched.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/sched.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/sched.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/sched.h b/PACE/pace/posix/sched.h deleted file mode 100644 index a3405d2bbd1..00000000000 --- a/PACE/pace/posix/sched.h +++ /dev/null @@ -1,38 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/sched.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SCHED_H_POSIX -#define PACE_SCHED_H_POSIX - -#include <sched.h> -#include "pace/time.h" - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_SCHED_FIFO SCHED_FIFO -#define PACE_SCHED_OTHER SCHED_RR - -#ifndef PACE_SCHED_PARAM -#define PACE_SCHED_PARAM - typedef struct sched_param pace_sched_param; -#endif /* PACE_SCHED_PARAM */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SCHED_H_POSIX */ diff --git a/PACE/pace/posix/sched.inl b/PACE/pace/posix/sched.inl deleted file mode 100644 index 36bed6ab5c9..00000000000 --- a/PACE/pace/posix/sched.inl +++ /dev/null @@ -1,91 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/sched.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sched_get_priority_max (int policy) -{ - return sched_get_priority_max (policy); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sched_get_priority_min (int policy) -{ - return sched_get_priority_min (policy); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sched_getparam (pace_pid_t pid, - pace_sched_param * param) -{ - return sched_getparam (pid, param); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sched_rr_get_interval (pace_pid_t pid, - pace_timespec * interval) -{ - return sched_rr_get_interval (pid, interval); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sched_setparam (pace_pid_t pid, - const pace_sched_param * param) -{ - return sched_setparam (pid, param); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sched_getscheduler (pace_pid_t pid) -{ - return sched_getscheduler (pid); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sched_setscheduler (pace_pid_t pid, - int policy, - const pace_sched_param * param) -{ - return sched_setscheduler (pid, policy, param); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sched_yield () -{ - return sched_yield (); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/posix/semaphore.c b/PACE/pace/posix/semaphore.c deleted file mode 100644 index 695190f4531..00000000000 --- a/PACE/pace/posix/semaphore.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/semaphore.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/semaphore.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/semaphore.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/semaphore.h b/PACE/pace/posix/semaphore.h deleted file mode 100644 index 4cdf0d3dd04..00000000000 --- a/PACE/pace/posix/semaphore.h +++ /dev/null @@ -1,31 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/semaphore.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SEMAPHORE_H_POSIX -#define PACE_SEMAPHORE_H_POSIX - -#include <semaphore.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -typedef sem_t pace_sem_t; - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SEMAPHORE_H_POSIX */ diff --git a/PACE/pace/posix/semaphore.inl b/PACE/pace/posix/semaphore.inl deleted file mode 100644 index b0d4fb21906..00000000000 --- a/PACE/pace/posix/semaphore.inl +++ /dev/null @@ -1,86 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/semaphore.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sem_close (pace_sem_t * sem) -{ - return sem_close (sem); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sem_destroy (pace_sem_t * sem) -{ - return sem_destroy (sem); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sem_getvalue (pace_sem_t * sem, int * sval) -{ - return sem_getvalue (sem, sval); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sem_init (pace_sem_t * sem, int pshared, unsigned int value) -{ - return sem_init (sem, pshared, value); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sem_post (pace_sem_t * sem) -{ - return sem_post (sem); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sem_trywait (pace_sem_t * sem) -{ - return sem_trywait (sem); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sem_unlink (const char * name) -{ - return sem_unlink (name); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sem_wait (pace_sem_t * sem) -{ - return sem_wait (sem); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/posix/setjmp.c b/PACE/pace/posix/setjmp.c deleted file mode 100644 index 00db5828a7c..00000000000 --- a/PACE/pace/posix/setjmp.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/setjmp.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/setjmp.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/setjmp.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/setjmp.h b/PACE/pace/posix/setjmp.h deleted file mode 100644 index 30221f2e74d..00000000000 --- a/PACE/pace/posix/setjmp.h +++ /dev/null @@ -1,32 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/setjmp.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SETJMP_H_POSIX -#define PACE_SETJMP_H_POSIX - -#include <setjmp.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - - typedef jmp_buf pace_jmp_buf; - typedef sigjmp_buf pace_sigjmp_buf; - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SETJMP_H_POSIX */ diff --git a/PACE/pace/posix/setjmp.inl b/PACE/pace/posix/setjmp.inl deleted file mode 100644 index 0e5ad69026c..00000000000 --- a/PACE/pace/posix/setjmp.inl +++ /dev/null @@ -1,52 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/setjmp.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_setjmp (pace_jmp_buf env) -{ - return setjmp (env); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigsetjmp (pace_sigjmp_buf env, int savemask) -{ - return sigsetjmp (env, savemask); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -void -pace_longjmp (pace_jmp_buf env, int val) -{ - longjmp (env, val); - return; -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -void -pace_siglongjmp (pace_sigjmp_buf env, int val) -{ - siglongjmp (env, val); - return; -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ diff --git a/PACE/pace/posix/signal.c b/PACE/pace/posix/signal.c deleted file mode 100644 index 46d96b76fb0..00000000000 --- a/PACE/pace/posix/signal.c +++ /dev/null @@ -1,28 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/signal.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/signal.h" - -#if (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/signal.inl" -#endif /* ! PACE_HAS_INLINE */ - -#if (PACE_HAS_CPLUSPLUS) -} -#endif diff --git a/PACE/pace/posix/signal.h b/PACE/pace/posix/signal.h deleted file mode 100644 index 6362595ae31..00000000000 --- a/PACE/pace/posix/signal.h +++ /dev/null @@ -1,71 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/signal.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#ifndef PACE_SIGNAL_H_POSIX -#define PACE_SIGNAL_H_POSIX - -#include <signal.h> -#include "pace/sys/types.h" -#include "pace/time.h" - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_SIG_PF -# define PACE_SIG_PF - typedef void (*pace_sig_pf)(int); -#endif /* PACE_SIG_PF */ - -#ifndef PACE_SIG_ATOMIC_T -#define PACE_SIG_ATOMIC_T - typedef sig_atomic_t pace_sig_atomic_t; -#endif /* PACE_SIG_ATOMIC_T */ - -#ifndef PACE_SIGSET_T -#define PACE_SIGSET_T - typedef sigset_t pace_sigset_t; -#endif /* PACE_SIGSET_T */ - -#ifndef PACE_SIGACTION_S -#define PACE_SIGACTION_S - typedef struct sigaction pace_sigaction_s; -#endif /* PACE_SIGACTION_S */ - -#ifndef PACE_SIGINFO_T -#define PACE_SIGINFO_T - typedef siginfo_t pace_siginfo_t; -#endif /* PACE_SIGINFO_T */ - -#ifndef PACE_SIGEVENT -#define PACE_SIGEVENT - typedef struct sigevent pace_sigevent; -#endif /* PACE_SIGEVENT */ - -#ifndef PACE_SIGVAL -#define PACE_SIGVAL - typedef union sigval pace_sigval; -#endif /* PACE_SIGVAL */ - -#ifndef PACE_TIMESPEC -#define PACE_TIMESPEC - typedef struct timespec pace_timespec; -#endif /* PACE_TIMESPEC */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SIGNAL_H_POSIX */ diff --git a/PACE/pace/posix/signal.inl b/PACE/pace/posix/signal.inl deleted file mode 100644 index ce591600baa..00000000000 --- a/PACE/pace/posix/signal.inl +++ /dev/null @@ -1,167 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/signal.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/pthread.h" -#include "pace/time.h" - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_kill (pace_pid_t pid, int sig) -{ - return kill (pid, sig); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_raise (int sig) -{ - /* Implementation from POSIX std 8.1:54 */ - return pthread_kill (pthread_self (), sig); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigaction (int sig, const pace_sigaction_s * act, - pace_sigaction_s * oact) -{ - return sigaction (sig, act, oact); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigaddset (pace_sigset_t * set, int signo) -{ - return sigaddset (set, signo); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigemptyset (pace_sigset_t * set) -{ - return sigemptyset (set); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigdelset (pace_sigset_t * set, int signo) -{ - return sigdelset (set, signo); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigfillset (pace_sigset_t * set) -{ - return sigfillset (set); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigismember (const pace_sigset_t * set, int signo) -{ - return sigismember (set, signo); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -pace_sig_pf -pace_signal (int sig, pace_sig_pf func) -{ - return signal (sig, func); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigpending (pace_sigset_t * set) -{ - return sigpending (set); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigprocmask (int how, const pace_sigset_t * set, - pace_sigset_t * oset) -{ - return sigprocmask (how, set, oset); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sigqueue (pace_pid_t pid, int signo, - const pace_sigval value) -{ - return sigqueue (pid, signo, value); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_sigsuspend (const pace_sigset_t * sigmask) -{ - return sigsuspend (sigmask); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sigtimedwait (const pace_sigset_t * set, pace_siginfo_t * info, - const pace_timespec * timeout) -{ - return sigtimedwait (set, info, timeout); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sigwait (const pace_sigset_t * set, int * sig) -{ - return sigwait (PACE_NONCONST_ARG_CAST (pace_sigset_t *) set, - PACE_VOIDSTARTSTAR_ARG_CAST (void**) sig); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_sigwaitinfo (const pace_sigset_t *set, pace_siginfo_t *info) -{ - return sigwaitinfo (set, info); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/posix/stat.c b/PACE/pace/posix/stat.c deleted file mode 100644 index efd10b03f76..00000000000 --- a/PACE/pace/posix/stat.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/stat.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/sys/stat.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/stat.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/stat.h b/PACE/pace/posix/stat.h deleted file mode 100644 index 1fc9ca38e74..00000000000 --- a/PACE/pace/posix/stat.h +++ /dev/null @@ -1,58 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/stat.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SYS_STAT_H_POSIX -#define PACE_SYS_STAT_H_POSIX - -#include <sys/stat.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_S_IRGRP S_IRGRP -#define PACE_S_IROTH S_IROTH -#define PACE_S_IRUSR S_IRUSR -#define PACE_S_IRWXG S_IRWXG -#define PACE_S_IRWXO S_IRWXO -#define PACE_S_IRWXU S_IRWXU -#define PACE_S_ISBLK S_ISBLK -#define PACE_S_ISCHR S_ISCHR -#define PACE_S_ISDIR S_ISDIR -#define PACE_S_ISFIFO S_ISFIFO -#define PACE_S_ISGID S_SIGID -#define PACE_S_ISREG S_ISREG -#define PACE_S_ISUID S_ISUID -#define PACE_S_IWGRP S_IWGRP -#define PACE_S_IWOTH S_IWOTH -#define PACE_S_IWUSR S_IWUSR -#define PACE_S_IXGRP S_IXGRP -#define PACE_S_IXOTH S_IXOTH -#define PACE_S_IXUSR S_IXUSR -#define PACE_S_TYPEISMQ S_TYPEISMQ -#define PACE_S_TYPEISSEM S_TYPEISSEM -#define PACE_S_TYPEISSHM S_TYPEISSHM - -#ifndef PACE_STAT -#define PACE_STAT - /* Kludge since there is a func and a type of the same name */ - typedef struct stat pace_stat_s; -#endif /* PACE_STAT */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SYS_STAT_H_POSIX */ diff --git a/PACE/pace/posix/stat.inl b/PACE/pace/posix/stat.inl deleted file mode 100644 index 399d92158f6..00000000000 --- a/PACE/pace/posix/stat.inl +++ /dev/null @@ -1,77 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/stat.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_FA_UOF) -PACE_INLINE -int -pace_chmod (const char * path, pace_mode_t mode) -{ - return chmod (path, mode); -} -#endif /* PACE_HAS_POSIX_FA_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_fchmod (int fildes, pace_mode_t mode) -{ - return fchmod (fildes, mode); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_fstat (int fildes, pace_stat_s * buf) -{ - return fstat (fildes, buf); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_mkdir (const char * path, pace_mode_t mode) -{ - return mkdir (path, mode); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_F_UOF) -PACE_INLINE -int -pace_mkfifo (const char * path, pace_mode_t mode) -{ - return mkfifo (path, mode); -} -#endif /* PACE_HAS_POSIX_F_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_stat (const char * path, pace_stat_s * buf) -{ - return stat (path, buf); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FA_UOF) -PACE_INLINE -pace_mode_t -pace_umask (pace_mode_t cmask) -{ - return umask (cmask); -} -#endif /* PACE_HAS_POSIX_FA_UOF */ diff --git a/PACE/pace/posix/stdio.c b/PACE/pace/posix/stdio.c deleted file mode 100644 index 251d6da309d..00000000000 --- a/PACE/pace/posix/stdio.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/stdio.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/stdio.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/stdio.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/stdio.h b/PACE/pace/posix/stdio.h deleted file mode 100644 index bee28898ca0..00000000000 --- a/PACE/pace/posix/stdio.h +++ /dev/null @@ -1,58 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/stdio.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_STDIO_H_POSIX -#define PACE_STDIO_H_POSIX - -#include <stdio.h> -#include <stdarg.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_BUFSIZ BUFSIZ -#define PACE_EOF EOF -#define PACE_FILENAME_MAX FILENAME_MAX -#define PACE_L_ctermid L_ctermid -#define PACE_L_cuserid L_cuserid -#ifndef PACE_NULL -#define PACE_NULL NULL -#endif /* PACE_NULL */ -#define PACE_SEEK_CUR SEEK_CUR -#define PACE_SEEK_END SEEK_END -#define PACE_SEEK_SET SEEK_SET -#define PACE_TMP_MAX TMP_MAX -#define pace_stderr stderr -#define pace_stdout stdout -#define pace_stdin stdin - -#ifndef PACE_FPOS_T -#define PACE_FPOS_T -typedef fpos_t pace_fpos_t; -#endif /* PACE_FPOS_T */ - -#ifndef PACE_SIZE_T -#define PACE_SIZE_T - typedef size_t pace_size_t; -#endif /* PACE_SIZE_T */ - -typedef FILE PACE_FILE; - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_STDIO_H_POSIX */ diff --git a/PACE/pace/posix/stdio.inl b/PACE/pace/posix/stdio.inl deleted file mode 100644 index 009b9c32a33..00000000000 --- a/PACE/pace/posix/stdio.inl +++ /dev/null @@ -1,513 +0,0 @@ -/* $Id$ -*- C -*- - - * =========================================================================== - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/stdio.inl - * - * = AUTHOR - * Luther Baker - * - * =========================================================================== */ - -#include <stdarg.h> - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -void -pace_clearerr (FILE * stream) -{ - clearerr (stream); - return; -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -char * -pace_ctermid (char * s) -{ - return ctermid (s); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_fclose (FILE * stream) -{ - return fclose (stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -FILE * -pace_fdopen (int fildes, - const char * type) -{ - return fdopen (fildes, - type); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_ferror (FILE * stream) -{ - return ferror (stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_feof (FILE * stream) -{ - return feof (stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_fflush (FILE * stream) -{ - return fflush (stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_fileno (FILE * stream) -{ - return fileno (stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_fgetc (FILE * stream) -{ - return fgetc (stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_fgetpos(PACE_FILE * stream, - pace_fpos_t * pos) -{ - return fgetpos (stream, pos); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -char * -pace_fgets (char * s, - int n, - FILE * stream) -{ - return fgets (s, - n, - stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FL_UOF) -PACE_INLINE -void -pace_flockfile (FILE * file) -{ -#if defined (PACE_HAS_REENTRANT) - flockfile (file); -#else /* ! PACE_HAS_REENTRANT */ - PACE_UNUSED_ARG (file); - PACE_ERRNO_NO_SUPPORT (); -#endif /* ! PACE_HAS_REENTRANT */ - return; -} -#endif /* PACE_HAS_POSIX_FL_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -FILE * -pace_fopen (const char * filename, - const char * mode) -{ - return fopen (filename, - mode); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_fputc (int c, - FILE * stream) -{ - return fputc (c, - stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_fputs (const char * s, - FILE * stream) -{ - return fputs (s, - stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -size_t -pace_fread (void * ptr, - size_t size, - size_t number_of_items, - FILE * stream) -{ - return fread (ptr, - size, - number_of_items, - stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -FILE * -pace_freopen (const char * filename, - const char * mode, - FILE * stream) -{ - return freopen (filename, - mode, - stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FM_UOF) -PACE_INLINE -int -pace_fseek (FILE * stream, - long offset, - int whence) -{ - return fseek (stream, - offset, - whence); -} -#endif /* PACE_HAS_POSIX_FM_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_fsetpos(PACE_FILE *stream, const pace_fpos_t *pos) -{ - return fsetpos (stream, pos); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_FM_UOF) -PACE_INLINE -long -pace_ftell (FILE * stream) -{ - return ftell (stream); -} -#endif /* PACE_HAS_POSIX_FM_UOF */ - -#if (PACE_HAS_POSIX_FL_UOF) -PACE_INLINE -int -pace_ftrylockfile (FILE * file) -{ -#if defined (PACE_HAS_REENTRANT) - return ftrylockfile (file); -#else /* ! PACE_HAS_REENTRANT */ - PACE_UNUSED_ARG(file); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -#endif /* ! PACE_HAS_REENTRANT */ -} -#endif /* PACE_HAS_POSIX_FL_UOF */ - -#if (PACE_HAS_POSIX_FL_UOF) -PACE_INLINE -void -pace_funlockfile (FILE * file) -{ -#if defined (PACE_HAS_REENTRANT) - funlockfile (file); -#else /* ! PACE_HAS_REENTRANT */ - PACE_UNUSED_ARG(file); - PACE_ERRNO_NO_SUPPORT (); -#endif /* ! PACE_HAS_REENTRANT */ - return; -} -#endif /* PACE_HAS_POSIX_FL_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -pace_size_t -pace_fwrite(const void * ptr, - pace_size_t size, pace_size_t nmemb, - PACE_FILE * stream) -{ - return fwrite (ptr, size, nmemb, stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_getc (FILE * stream) -{ - return getc (stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FL_UOF) -PACE_INLINE -int -pace_getc_unlocked (FILE * stream) -{ -#if defined (PACE_HAS_REENTRANT) - return getc_unlocked (stream); -#else /* ! PACE_HAS_POSIX */ - PACE_UNUSED_ARG(stream); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -#endif /* ! PACE_HAS_POSIX */ -} -#endif /* PACE_HAS_POSIX_FL_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_getchar () -{ - return getchar (); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FL_UOF) -PACE_INLINE -int -pace_getchar_unlocked () -{ -#if defined (PACE_HAS_REENTRANT) - return getchar_unlocked (); -#else /* ! PACE_HAS_REENTRANT */ - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -#endif /* ! PACE_HAS_REENTRANT */ -} -#endif /* PACE_HAS_POSIX_FL_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -char * -pace_gets (char * s) -{ - return gets (s); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -void -pace_perror (const char * s) -{ - perror (s); - return; -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_putc (int c, - FILE * stream) -{ - return putc (c, stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FL_UOF) -PACE_INLINE -int -pace_putc_unlocked (int c, - FILE * stream) -{ -#if defined (PACE_HAS_REENTRANT) - return putc_unlocked (c, stream); -#else /* ! PACE_HAS_REENTRANT */ - PACE_UNUSED_ARG(c); - PACE_UNUSED_ARG(stream); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -#endif /* ! PACE_HAS_REENTRANT */ -} -#endif /* PACE_HAS_POSIX_FL_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_putchar (int c) -{ - return putchar (c); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FL_UOF) -PACE_INLINE -int -pace_putchar_unlocked (int c) -{ -#if defined (PACE_HAS_REENTRANT) - return putchar_unlocked (c); -#else /* ! PACE_HAS_REENTRANT */ - PACE_UNUSED_ARG(c); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -#endif /* ! PACE_HAS_REENTRANT */ -} -#endif /* PACE_HAS_POSIX_FL_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_puts (const char * s) -{ - return puts (s); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_remove (const char * path) -{ - return remove (path); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_rename (const char * old_name, - const char * new_name) -{ - return rename (old_name, - new_name); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FM_UOF) -PACE_INLINE -void -pace_rewind (FILE * stream) -{ - rewind (stream); - return; -} -#endif /* PACE_HAS_POSIX_FM_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -void -pace_setbuf (FILE * stream, char * buf) -{ - setbuf (stream, buf); - return; -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_setvbuf(PACE_FILE * stream, - char * buf, - int mode, pace_size_t size) -{ - return setvbuf (stream, buf, mode, size); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -FILE * -pace_tmpfile () -{ - return tmpfile (); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -char * -pace_tmpnam (char * s) -{ - return tmpnam (s); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_ungetc (int c, FILE * stream) -{ - return ungetc (c, stream); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_vfprintf (PACE_FILE * stream, - const char * format, - va_list arg) -{ - /* return vfprintf (stream, format, arg); */ - PACE_UNUSED_ARG (stream); - PACE_UNUSED_ARG (format); - PACE_UNUSED_ARG (arg); - return -1; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_vprintf (const char * format, - va_list arg) -{ - /* return vfprintf (format, arg); */ - PACE_UNUSED_ARG (format); - PACE_UNUSED_ARG (arg); - return -1; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_vsprintf (char * s, - const char * format, - va_list arg) -{ - /* return vsprintf (s, format, arg);*/ - PACE_UNUSED_ARG (s); - PACE_UNUSED_ARG (format); - PACE_UNUSED_ARG (arg); - return -1; -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ diff --git a/PACE/pace/posix/stdlib.c b/PACE/pace/posix/stdlib.c deleted file mode 100644 index 041a8bd0bbe..00000000000 --- a/PACE/pace/posix/stdlib.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/stdlib.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/stdlib.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/stdlib.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/stdlib.h b/PACE/pace/posix/stdlib.h deleted file mode 100644 index 5e9b762e77b..00000000000 --- a/PACE/pace/posix/stdlib.h +++ /dev/null @@ -1,64 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/stdlib.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_STDLIB_H_POSIX -#define PACE_STDLIB_H_POSIX - -#include <stdlib.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_EXIT_FAILURE EXIT_FAILURE -#define PACE_EXIT_SUCCESS EXIT_SUCCESS -#define PACE_MB_CUR_MAX MB_CUR_MAX -#ifndef PACE_NULL -# define PACE_NULL NULL -#endif /* PACE_NULL */ -#define PACE_RAND_MAX RAND_MAX - -#ifndef PACE_DIV_T -#define PACE_DIV_T - typedef div_t pace_div_t; -#endif /* PACE_DIV_T */ - -#ifndef PACE_LDIV_T -#define PACE_LDIV_T - typedef ldiv_t pace_ldiv_t; -#endif /* PACE_LDIV_T */ - -#ifndef PACE_SIZE_T -#define PACE_SIZE_T - typedef size_t pace_size_t; -#endif /* PACE_SIZE_T */ - -#ifndef PACE_WCHAR_T -#define PACE_WCHAR_T - typedef wchar_t pace_wchar_t; -#endif /* PACE_WCHAR_T */ - -#if defined (PACE_HAS_CPLUSPLUS) -# ifndef PACE_BSEARCH_PF -# define PACE_BSEARCH_PF - typedef int (*pace_bsearch_pf) (const void*, const void*); -# endif /* PACE_BSEARCH_PF */ -#endif /* PACE_HAS_CPLUSPLUS */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_STDLIB_H_POSIX */ diff --git a/PACE/pace/posix/stdlib.inl b/PACE/pace/posix/stdlib.inl deleted file mode 100644 index eb8e7f578a0..00000000000 --- a/PACE/pace/posix/stdlib.inl +++ /dev/null @@ -1,323 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/stdlib.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include <stdlib.h> - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -void -pace_abort (void) -{ - abort (); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_abs (int val) -{ - return abs (val); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_atexit (void (*func)(void)) -{ - return atexit (func); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -double -pace_atof (const char * str) -{ - return atof (str); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_atoi (const char * str) -{ - return atoi (str); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -long -pace_atol (const char * str) -{ - return atol (str); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -# if defined (PACE_HAS_CPLUSPLUS) -PACE_INLINE -void * -pace_bsearch (const void *key, const void *base, - size_t nel, size_t size, - pace_bsearch_pf compar) -{ - return bsearch (key, base, nel, size, compar); -} -# else /* ! PACE_HAS_CPLUSPLUS */ -PACE_INLINE -void * -pace_bsearch (const void *key, const void *base, - size_t nel, size_t size, - int (*compar)(const void *,const void *)) -{ - return bsearch (key, base, nel, size, compar); -} -# endif /* PACE_HAS_CPLUSPLUS */ -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -pace_div_t -pace_div (int numer, int denom) -{ - return div (numer, denom); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -void -pace_exit (int status) -{ - exit (status); - return; -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -char * -pace_getenv (const char * name) -{ - return getenv (name); -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -long int -pace_labs (long int j) -{ - return labs (j); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -pace_ldiv_t -pace_ldiv (long int numer, long int denom) -{ - return ldiv (numer, denom); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mblen (const char* s, pace_size_t n) -{ - return mblen (s, n); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -pace_size_t -pace_mbstowcs (pace_wchar_t* pwcs, - const char* s, - pace_size_t n) -{ - return mbstowcs (pwcs, s, n); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_mbtowc (pace_wchar_t* pwc, - const char* s, - pace_size_t n) -{ - return mbtowc (pwc, s, n); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_CLS_UOF) -# if (PACE_HAS_CPLUSPLUS) -PACE_INLINE -void -pace_qsort (void * base, size_t nel, size_t width, - pace_bsearch_pf compar) -{ - qsort (base, nel, width, compar); -} -# else /* ! PACE_HAS_CPLUSPLUS */ -PACE_INLINE -void -pace_qsort (void * base, size_t nel, size_t width, - int (*compar)(const void *,const void *)) -{ - qsort (base, nel, width, compar); -} -# endif /* PACE_HAS_CPLUSPLUS */ -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -int -pace_rand () -{ - return rand (); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -void -pace_srand (unsigned int seed) -{ - srand (seed); - return; -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLSR_UOF) -PACE_INLINE -int -pace_rand_r (unsigned int *seed) -{ -#if defined (PACE_HAS_REENTRANT) - return rand_r (seed); -#else /* ! PACE_HAS_REENTRANT */ - PACE_UNUSED_ARG (seed); - PACE_ERRNO_NO_SUPPORT_RETURN (-1); -#endif /* ! PACE_HAS_REENTRANT */ -} -#endif /* PACE_HAS_POSIX_CLSR_UOF */ - - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -double -pace_strtod (const char* nptr, - char** endptr) -{ - return strtod (nptr, endptr); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_strtol (const char* nptr, - char** endptr, - int base) -{ - return strtol (nptr, endptr, base); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -unsigned long int -pace_strtoul (const char* nptr, - char** endptr, - int base) -{ - return strtoul (nptr, endptr, base); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_system (const char* string) -{ - return system (string); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -pace_size_t -pace_wcstombs (char* s, - const pace_wchar_t* pwcs, - pace_size_t n) -{ - return wcstombs (s, pwcs, n); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_wctomb (char* s, pace_wchar_t wchar) -{ - return wctomb (s, wchar); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -/* Memory Management. */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -void * -pace_malloc (size_t size) -{ - return malloc (size); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -void * -pace_calloc (size_t nelem, size_t elsize) -{ - return calloc (nelem, elsize); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -void -pace_free (void * ptr) -{ - free (ptr); - return; -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -void * -pace_realloc (void * ptr, size_t size) -{ - return realloc (ptr, size); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ diff --git a/PACE/pace/posix/string.c b/PACE/pace/posix/string.c deleted file mode 100644 index 4d06077a947..00000000000 --- a/PACE/pace/posix/string.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/string.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/string.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/string.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/string.h b/PACE/pace/posix/string.h deleted file mode 100644 index f25fd8b077e..00000000000 --- a/PACE/pace/posix/string.h +++ /dev/null @@ -1,36 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/string.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_STRING_H_POSIX -#define PACE_STRING_H_POSIX - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#if !defined (PACE_NULL) -# define PACE_NULL NULL -#endif /* NULL */ - -#ifndef PACE_SIZE_T -#define PACE_SIZE_T - typedef size_t pace_size_t; -#endif /* PACE_SIZE_T */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_STRING_H_POSIX */ diff --git a/PACE/pace/posix/string.inl b/PACE/pace/posix/string.inl deleted file mode 100644 index a09022bf59e..00000000000 --- a/PACE/pace/posix/string.inl +++ /dev/null @@ -1,206 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/string.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include <string.h> -#include "pace/string.h" - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -void * -pace_memchr (const void *s, int c, pace_size_t n) -{ - return (void*) memchr (s, c, n); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_memcmp (const void *s1, const void *s2, pace_size_t n) -{ - return memcmp (s1, s2, n); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -void * -pace_memcpy (void * s1, const void * s2, pace_size_t n) -{ - return memcpy (s1, s2, n); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -void * -pace_memmove (void *s1, const void *s2, pace_size_t n) -{ - return memmove (s1, s2, n); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_BROKEN_INLINE -void * -pace_memset (void *s, int c, pace_size_t n) -{ - return memset (s, c, n); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_strcat (char * s1, const char * s2) -{ - return strcat (s1, s2); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_strncat (char * s1, const char * s2, size_t n) -{ - return strncat (s1, s2, n); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_strchr (const char * s, int c) -{ - return (char*) strchr (s, c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_strrchr (const char * s, int c) -{ - return (char*) strrchr (s, c); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_BROKEN_INLINE -int -pace_strcmp (const char * s1, const char * s2) -{ - return strcmp (s1, s2); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_BROKEN_INLINE -int -pace_strncmp (const char * s1, const char * s2, size_t n) -{ - return strncmp (s1, s2, n); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_BROKEN_INLINE -char * -pace_strcpy (char * s1, const char * s2) -{ - return strcpy (s1, s2); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_strncpy (char * s1, const char * s2, size_t n) -{ - return strncpy (s1, s2, n); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_BROKEN_INLINE -size_t -pace_strcspn (const char * s1, const char * s2) -{ - return strcspn (s1, s2); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -size_t -pace_strspn (const char * s1, const char * s2) -{ - return strspn (s1, s2); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -size_t -pace_strlen (const char * s) -{ - return strlen (s); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_BROKEN_INLINE -char * -pace_strpbrk (const char * s1, const char * s2) -{ - return (char*) strpbrk (s1, s2); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_strstr (const char * s1, const char * s2) -{ - return (char*) strstr (s1, s2); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_strtok (char * s1, const char * s2) -{ - return strtok (s1, s2); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLSR_UOF) -PACE_INLINE -char * -pace_strtok_r (char * s, const char * sep, char ** lasts) -{ -# if defined (PACE_HAS_REENTRANT) - return strtok_r (s, sep, lasts); -# else /* ! PACE_HAS_REENTRANT */ - PACE_UNUSED_ARG (s); - PACE_UNUSED_ARG (sep); - PACE_UNUSED_ARG (lasts); - PACE_ERRNO_NO_SUPPORT (); - return 0; -# endif /* ! PACE_HAS_REENTRANT */ -} -#endif /* PACE_HAS_POSIX_CLSR_UOF */ diff --git a/PACE/pace/posix/termios.c b/PACE/pace/posix/termios.c deleted file mode 100644 index e828411f160..00000000000 --- a/PACE/pace/posix/termios.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/termios.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/termios.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/termios.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/termios.h b/PACE/pace/posix/termios.h deleted file mode 100644 index e2fdb0d8af8..00000000000 --- a/PACE/pace/posix/termios.h +++ /dev/null @@ -1,50 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/termios.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SYS_TERMIOS_H_POSIX -#define PACE_SYS_TERMIOS_H_POSIX - -#include "pace/sys/types.h" -#include <termios.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS) */ - -#ifndef PACE_CC_T -#define PACE_CC_T -typedef cc_t pace_cc_t; -#endif /* PACE_CC_T */ - -#ifndef PACE_SPEED_T -#define PACE_SPEED_T -typedef speed_t pace_speed_t; -#endif /* PACE_SPEED_T */ - -#ifndef PACE_TCFLAG_T -#define PACE_TCFLAG_T -typedef tcflag_t pace_tcflag_t; -#endif /* PACE_TCFLAG_T */ - -#ifndef PACE_TERMIOS -#define PACE_TERMIOS -typedef struct termios pace_termios; -#endif /* PACE_TERMIOS */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SYS_TERMIOS_H_POSIX */ diff --git a/PACE/pace/posix/termios.inl b/PACE/pace/posix/termios.inl deleted file mode 100644 index df12227a79e..00000000000 --- a/PACE/pace/posix/termios.inl +++ /dev/null @@ -1,109 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/termios.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/unistd.h" -#include <termios.h> - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -pace_speed_t -pace_cfgetospeed (const pace_termios *termiosp) -{ - return cfgetospeed (termiosp); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -int -pace_cfsetospeed (pace_termios *termios_p, pace_speed_t speed) -{ - return cfsetospeed (termios_p, speed); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -pace_speed_t -pace_cfgetispeed (const pace_termios *termios_p) -{ - return cfgetispeed (termios_p); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -int -pace_cfsetispeed (pace_termios *termios_p, pace_speed_t speed) -{ - return cfsetispeed (termios_p, speed); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -int -pace_tcdrain (PACE_HANDLE fildes) -{ - return tcdrain (fildes); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -int -pace_tcgetattr (PACE_HANDLE fildes, pace_termios *termios_p) -{ - return tcgetattr (fildes, termios_p); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -int -pace_tcflow (PACE_HANDLE fildes, int action) -{ - return tcflow (fildes, action); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -int -pace_tcflush (PACE_HANDLE fildes, int queue_selector) -{ - return tcflush (fildes, queue_selector); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -int -pace_tcsendbreak (PACE_HANDLE fildes, int duration) -{ - return tcsendbreak (fildes, duration); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -int -pace_tcsetattr (PACE_HANDLE fildes, - int optional_actions, - const pace_termios *termios_p) -{ - return tcsetattr (fildes, optional_actions, termios_p); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ diff --git a/PACE/pace/posix/time.c b/PACE/pace/posix/time.c deleted file mode 100644 index 08f00379305..00000000000 --- a/PACE/pace/posix/time.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/time.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/time.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/time.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/time.h b/PACE/pace/posix/time.h deleted file mode 100644 index 8fb12b9f360..00000000000 --- a/PACE/pace/posix/time.h +++ /dev/null @@ -1,95 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/time.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_TIME_H_POSIX -#define PACE_TIME_H_POSIX - -#if PACE_LINUX -# include "pace/emulation/time.h" -#endif /* PACE_LINUX */ - -#include <time.h> -#include "pace/signal.h" - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_CLK_TCK CLK_TCK -#define PACE_CLOCKS_PER_SEC CLOCKS_PER_SEC -#define PACE_CLOCK_REALTIME CLOCK_REALTIME -#ifndef PACE_NULL -#define PACE_NULL NULL -#endif /* PACE_NULL */ -#define PACE_TIMER_ABSTIME TIMER_ABSTIME - -#ifndef PACE_CLOCKID_T -#define PACE_CLOCKID_T -# if defined PACE_EMU_CLOCKID_T - typedef pace_emu_clockid_t pace_clockid_t; -# else - typedef clockid_t pace_clockid_t; -# endif /* PACE_LINUX */ -#endif /* PACE_CLOCKID_T */ - -#ifndef PACE_CLOCK_T -#define PACE_CLOCK_T - typedef clock_t pace_clock_t; -#endif /* PACE_CLOCK_T */ - -#ifndef PACE_SIZE_T -#define PACE_SIZE_T - typedef size_t pace_size_t; -#endif /* PACE_SIZE_T */ - -#ifndef PACE_TIMER_T -#define PACE_TIMER_T -# if defined PACE_EMU_TIMER_T - typedef pace_emu_timer_t pace_timer_t; -# else - typedef timer_t pace_timer_t; -# endif /* PACE_LINUX */ -#endif /* PACE_TIMER_T */ - -#ifndef PACE_TIME_T -#define PACE_TIME_T - typedef time_t pace_time_t; -#endif /* PACE_TIME_T */ - -#ifndef PACE_TM -#define PACE_TM - typedef struct tm pace_tm; -#endif /* PACE_TM */ - -#ifndef PACE_TIMESPEC -#define PACE_TIMESPEC - typedef struct timespec pace_timespec; -#endif /* PACE_TIMESPEC */ - -#ifndef PACE_ITIMERSPEC -#define PACE_ITIMERSPEC - typedef struct itimerspec pace_itimerspec; -#endif /* PACE_ITIMERSPEC */ - -#ifndef PACE_SIGEVENT -#define PACE_SIGEVENT - typedef struct sigevent pace_sigevent; -#endif /* PACE_SIGEVENT */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_TIME_H_POSIX */ diff --git a/PACE/pace/posix/time.inl b/PACE/pace/posix/time.inl deleted file mode 100644 index 2c8caadd847..00000000000 --- a/PACE/pace/posix/time.inl +++ /dev/null @@ -1,324 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/time.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/errno.h" -#include "pace/signal.h" -extern int errno; - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_asctime (const pace_tm * time) -{ - return asctime (time); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLSR_UOF) -PACE_INLINE -char * -pace_asctime_r (const pace_tm * time, char * buf) -{ -#if (PACE_LYNXOS) - /*lynxos 3.1 has POSIX.4 Draft 9 versions of this */ - if (asctime_r (time, buf, 26) == -1) /* ??? */ - return (char*) 0; - return buf; -#else - return asctime_r (time, buf); -#endif /* PACE_LYNXOS */ -} -#endif /* PACE_HAS_POSIX_CLSR_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -pace_clock_t -pace_clock (void) -{ - return clock (); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -double -pace_difftime (pace_time_t time1, pace_time_t time2) -{ - return difftime (time1, time2); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_clock_getres (pace_clockid_t clock_id, - pace_timespec * res) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (clock_id); - PACE_UNUSED_ARG (res); - return -1; -#else - return clock_getres (clock_id, res); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_clock_gettime (pace_clockid_t clock_id, - pace_timespec * tp) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (clock_id); - PACE_UNUSED_ARG (tp); - return -1; -#else - return clock_gettime (clock_id, tp); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_clock_settime (pace_clockid_t clock_id, - const pace_timespec * tp) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (clock_id); - PACE_UNUSED_ARG (tp); - return -1; -#else - return clock_settime (clock_id, PACE_NONCONST_ARG_CAST (struct timespec *) tp); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -char * -pace_ctime (const pace_time_t * clock) -{ - return ctime (clock); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLSR_UOF) -PACE_INLINE -char * -pace_ctime_r (const pace_time_t * clock, char * buf) -{ -# if (PACE_LYNXOS) - return ctime_r (clock, buf, 26); -# else - return ctime_r (clock, buf); -# endif /* PACE_SUNOS */ -} -#endif /* PACE_HAS_POSIX_CLSR_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -pace_tm * -pace_gmtime (const pace_time_t * clock) -{ - return gmtime (clock); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLSR_UOF) -PACE_INLINE -pace_tm * -pace_gmtime_r (const pace_time_t * clock, pace_tm * result) -{ -#if (PACE_LYNXOS) - /*lynxos 3.1 has POSIX.4 Draft 9 versions of these */ - if (gmtime_r (result, clock) == 0) - return (pace_tm*)0; - return result; /* ????? */ -#else - return gmtime_r (clock, result); -#endif /* PACE_LYNXOS */ -} -#endif /* PACE_HAS_POSIX_CLSR_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -pace_tm * -pace_localtime (const pace_time_t * clock) -{ - return localtime (clock); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLSR_UOF) -PACE_INLINE -pace_tm * -pace_localtime_r (const pace_time_t * clock, pace_tm * result) -{ -#if (PACE_LYNXOS) - /*lynxos 3.1 has POSIX.4 Draft 9 versions of these */ - if (localtime_r (result, clock) == 0) - return (pace_tm*)0; - return result; /* ????? */ -#else - return localtime_r (clock, result); -#endif /* PACE_LYNXOS */ -} -#endif /* PACE_HAS_POSIX_CLSR_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -time_t -pace_mktime (pace_tm * timeptr) -{ - return mktime (timeptr); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_nanosleep (const pace_timespec * rqtp, - pace_timespec * rmtp) -{ - return nanosleep (PACE_NONCONST_ARG_CAST (struct timespec *) rqtp, rmtp); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -size_t -pace_strftime (char *s, pace_size_t maxsize, - const char *format, - const pace_tm *timeptr) -{ - return strftime (s, maxsize, format, timeptr); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -time_t -pace_time (pace_time_t * tloc) -{ - return time (tloc); -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_timer_create (pace_clockid_t clock_id, - pace_sigevent * evp, - pace_timer_t *timerid) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (clock_id); - PACE_UNUSED_ARG (evp); - PACE_UNUSED_ARG (timerid); - return -1; -#else - return timer_create (clock_id, evp, timerid); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_timer_delete (pace_timer_t timerid) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (timerid); - return -1; -#else - return timer_delete (timerid); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_timer_getoverrun (pace_timer_t timerid) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (timerid); - return -1; -#else - return timer_getoverrun (timerid); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_timer_gettime (pace_timer_t timerid, - pace_itimerspec * value) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (timerid); - PACE_UNUSED_ARG (value); - return -1; -#else - return timer_gettime (timerid, value); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_timer_settime (pace_timer_t timerid, - int flags, - const pace_itimerspec * value, - pace_itimerspec * ovalue) -{ -#if PACE_LINUX - errno = ENOSYS; - PACE_UNUSED_ARG (timerid); - PACE_UNUSED_ARG (flags); - PACE_UNUSED_ARG (value); - PACE_UNUSED_ARG (ovalue); - return -1; -#else - return timer_settime (timerid, flags, PACE_NONCONST_ARG_CAST (struct itimerspec *) value, ovalue); -#endif /* PACE_LINUX */ -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_CLS_UOF) -PACE_INLINE -void -pace_tzset () -{ -# if defined (PACE_HAS_POSIX_PTHREAD_SEMANTICS) - tzset (); -# else /* ! PACE_HAS_POSIX_PTHREAD_SEMANTICS */ - PACE_ERRNO_NO_SUPPORT (); -# endif /* ! PACE_HAS_POSIX_PTHREAD_SEMANTICS */ - return; -} -#endif /* PACE_HAS_POSIX_CLS_UOF */ diff --git a/PACE/pace/posix/times.c b/PACE/pace/posix/times.c deleted file mode 100644 index 3e47e331020..00000000000 --- a/PACE/pace/posix/times.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/times.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/sys/times.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/times.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/times.h b/PACE/pace/posix/times.h deleted file mode 100644 index 1aeebd76a29..00000000000 --- a/PACE/pace/posix/times.h +++ /dev/null @@ -1,39 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/times.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SYS_TIMES_H_POSIX -#define PACE_SYS_TIMES_H_POSIX - -#include <sys/times.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_CLOCK_T -#define PACE_CLOCK_T -typedef clock_t pace_clock_t; -#endif /* PACE_CLOCK_T */ - -#ifndef PACE_TMS -#define PACE_TMS -typedef struct tms pace_tms; -#endif /* PACE_TMS */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SYS_TIMES_H_POSIX */ diff --git a/PACE/pace/posix/times.inl b/PACE/pace/posix/times.inl deleted file mode 100644 index 5c808d1a7d0..00000000000 --- a/PACE/pace/posix/times.inl +++ /dev/null @@ -1,23 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/times.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -pace_clock_t -pace_times (pace_tms * buffer) -{ - return times (buffer); -} -#endif /* PACE_HAS_POSIX_MP_UOF */ diff --git a/PACE/pace/posix/types.h b/PACE/pace/posix/types.h deleted file mode 100644 index 9ce4e5c2c85..00000000000 --- a/PACE/pace/posix/types.h +++ /dev/null @@ -1,134 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/types.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#include <sys/types.h> -#include <pthread.h> - -#ifndef PACE_SYS_TYPES_H_POSIX -#define PACE_SYS_TYPES_H_POSIX - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - - /* For future upgradeability to wchar */ -#ifndef PACE_TCHAR -#define PACE_TCHAR - typedef char pace_tchar; -#endif /* PACE_TCHAR */ - -#ifndef PACE_HANDLE - typedef int PACE_HANDLE; -#endif /* PACE_HANDLE */ - -#ifndef PACE_INVALID_HANDLE -#define PACE_INVALID_HANDLE -1 -#endif /* PACE_INVALID_HANDLE */ - -#ifndef PACE_DEV_T -#define PACE_DEV_T - typedef dev_t pace_dev_t; -#endif /* PACE_DEV_T */ - -#ifndef PACE_GID_T -#define PACE_GID_T - typedef gid_t pace_gid_t; -#endif /* PACE_GID_T */ - -#ifndef PACE_INO_T -#define PACE_INO_T - typedef ino_t pace_ino_t; -#endif /* PACE_INO_T */ - -#ifndef PACE_MODE_T -#define PACE_MODE_T - typedef mode_t pace_mode_t; -#endif /* PACE_MODE_T */ - -#ifndef PACE_NLINK_T -#define PACE_NLINK_T - typedef nlink_t pace_nlink_t; -#endif /* PACE_NLINK_T */ - -#ifndef PACE_OFF_T -#define PACE_OFF_T - typedef off_t pace_off_t; -#endif /* PACE_OFF_T */ - -#ifndef PACE_PID_T -#define PACE_PID_T - typedef pid_t pace_pid_t; -#endif /* PACE_PID_T */ - -#ifndef PACE_PTHREAD_ATTR_T -#define PACE_PTHREAD_ATTR_T - typedef pthread_attr_t pace_pthread_attr_t; -#endif /* PACE_PTHREAD_ATTR_T */ - -#ifndef PACE_PTHREAD_CONDATTR_T -#define PACE_PTHREAD_CONDATTR_T - typedef pthread_condattr_t pace_pthread_condattr_t; -#endif /* PACE_PTHREAD_CONDATTR_T */ - -#ifndef PACE_PTHREAD_COND_T -#define PACE_PTHREAD_COND_T - typedef pthread_cond_t pace_pthread_cond_t; -#endif /* PACE_PTHREAD_COND_T */ - -#ifndef PACE_PTHREAD_KEY_T -#define PACE_PTHREAD_KEY_T - typedef pthread_key_t pace_pthread_key_t; -#endif /* PACE_PTHREAD_KEY_T */ - -#ifndef PACE_PTHREAD_MUTEXATTR_T -#define PACE_PTHREAD_MUTEXATTR_T - typedef pthread_mutexattr_t pace_pthread_mutexattr_t; -#endif /* PACE_PTHREAD_MUTEXATTR_T */ - -#ifndef PACE_PTHREAD_MUTEX_T -#define PACE_PTHREAD_MUTEX_T - typedef pthread_mutex_t pace_pthread_mutex_t; -#endif /* PACE_PTHREAD_MUTEX_T */ - -#ifndef PACE_PTHREAD_ONCE_T -#define PACE_PTHREAD_ONCE_T - typedef pthread_once_t pace_pthread_once_t; -#endif /* PACE_PTHREAD_ONCE_T */ - -#ifndef PACE_PTHREAD_T -#define PACE_PTHREAD_T - typedef pthread_t pace_pthread_t; -#endif /* PACE_PTHREAD_T */ - -#ifndef PACE_SIZE_T -#define PACE_SIZE_T - typedef size_t pace_size_t; -#endif /* PACE_SIZE_T */ - -#ifndef PACE_SSIZE_T -#define PACE_SSIZE_T - typedef ssize_t pace_ssize_t; -#endif /* PACE_SSIZE_T */ - -#ifndef PACE_UID_T -#define PACE_UID_T - typedef uid_t pace_uid_t; -#endif /* PACE_UID_T */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SYS_TYPES_H_POSIX */ diff --git a/PACE/pace/posix/unistd.c b/PACE/pace/posix/unistd.c deleted file mode 100644 index f8e1e9a4676..00000000000 --- a/PACE/pace/posix/unistd.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/unistd.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/unistd.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/unistd.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/unistd.h b/PACE/pace/posix/unistd.h deleted file mode 100644 index 0b79b75b43b..00000000000 --- a/PACE/pace/posix/unistd.h +++ /dev/null @@ -1,56 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/unistd.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_UNISTD_H_POSIX -#define PACE_UNISTD_H_POSIX - -#include "pace/sys/types.h" -#include <unistd.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_F_OK F_OK -#ifndef PACE_NULL -# define PACE_NULL NULL -#endif /* PACE_NULL */ -#define PACE_R_OK R_OK -#define PACE_SEEK_CUR SEEK_CUR -#define PACE_SEEK_END SEEK_END -#define PACE_SEEK_SET SEEK_SET -#define PACE_STDERR_FILENO STDERR_FILENO -#define PACE_STDIN_FILENO STDIN_FILENO -#define PACE_STDOUT_FILENO STDOUT_FILENO -#define PACE_W_OK W_OK -#define PACE_X_OK X_OK - -/* _POSIX _PC _SC Macros need to go here */ - -#ifndef PACE_SIZE_T -#define PACE_SIZE_T -typedef size_t pace_size_t; -#endif /* PACE_SIZE_T */ - -#ifndef PACE_SSIZE_T -#define PACE_SSIZE_T -typedef ssize_t pace_ssize_t; -#endif /* PACE_SSIZE_T */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_UNISTD_H_POSIX */ diff --git a/PACE/pace/posix/unistd.inl b/PACE/pace/posix/unistd.inl deleted file mode 100644 index d06564e25d0..00000000000 --- a/PACE/pace/posix/unistd.inl +++ /dev/null @@ -1,462 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/unistd.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include <unistd.h> -#include <stdarg.h> - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -void -pace__exit (int status) -{ - _exit (status); - return; -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_access (const char * path, int amode) -{ - return access (path, amode); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -unsigned int -pace_alarm (unsigned int seconds) -{ - return alarm (seconds); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_chdir (const char * path) -{ - return chdir (path); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FA_UOF) -PACE_INLINE -int -pace_chown (const char * path, uid_t owner, pace_gid_t group) -{ - return chown (path, owner, group); -} -#endif /* PACE_HAS_POSIX_FA_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -int -pace_close (PACE_HANDLE fildes) -{ - return close (fildes); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FM_UOF) -PACE_INLINE -PACE_HANDLE -pace_dup (PACE_HANDLE fildes) -{ - return dup (fildes); -} -#endif /* PACE_HAS_POSIX_FM_UOF */ - -#if (PACE_HAS_POSIX_FM_UOF) -PACE_INLINE -PACE_HANDLE -pace_dup2 (PACE_HANDLE fildes, PACE_HANDLE fildes2) -{ - return dup2 (fildes, fildes2); -} -#endif /* PACE_HAS_POSIX_FM_UOF */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -int -pace_execv (const char * path, - char * const argv[]) -{ - return execv (path, argv); - /* if successful, this operation does NOT return */ -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -int -pace_execve (const char * path, - char * const argv[], - char * const envp[]) -{ - return execve (path, argv, envp); - /* if successful, this operation does NOT return */ -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -int -pace_execvp (const char * file, - char * const argv[]) -{ - return execvp (file, argv); - /* if successful, this operation does NOT return */ -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_fdatasync (PACE_HANDLE fildes) -{ - return fdatasync (fildes); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -pid_t -pace_fork () -{ - return fork (); -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -long -pace_fpathconf (PACE_HANDLE fildes, int name) -{ - return fpathconf (fildes, name); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_fsync (PACE_HANDLE fildes) -{ - return fsync (fildes); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_ftruncate (PACE_HANDLE fildes, pace_off_t length) -{ - return ftruncate (fildes, length); -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -char * -pace_getcwd (char * buf, size_t size) -{ - return getcwd (buf, size); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -uid_t -pace_getegid () -{ - return getegid (); -} -#endif /* PACE_HAS_POSIX_UGR_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -uid_t -pace_geteuid () -{ - return geteuid (); -} -#endif /* PACE_HAS_POSIX_UGR_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -int -pace_getgroups (int gidsetsize, pace_gid_t grouplist[]) -{ - return getgroups (gidsetsize, grouplist); -} -#endif /* PACE_HAS_POSIX_UGR_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -uid_t -pace_getgid () -{ - return getgid (); -} -#endif /* PACE_HAS_POSIX_UGR_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -char* -pace_getlogin () -{ - return getlogin (); -} -#endif /* PACE_HAS_POSIX_UGR_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -int -pace_getlogin_r (char * name, size_t namesize) -{ -#if (PACE_SUNOS) || (PACE_LYNXOS) - if (getlogin_r (name, (int) namesize) == 0) - return errno; - return 0; -#else - return getlogin_r (name, namesize); -#endif /* SUN_OS */ -} -#endif /* PACE_HAS_POSIX_UGR_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -pid_t -pace_getpgrp () -{ - return getpgrp (); -} -#endif /* PACE_HAS_POSIX_UG_UOF */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -pid_t -pace_getpid () -{ - return getpid (); -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -pid_t -pace_getppid () -{ - return getppid (); -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -uid_t -pace_getuid () -{ - return getuid (); -} -#endif /* PACE_HAS_POSIX_UG_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -int -pace_isatty (int fildes) -{ - return isatty (fildes); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_link (const char * existing, const char * new_link) -{ - return link (existing, new_link); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_FM_UOF) -PACE_INLINE -pace_off_t -pace_lseek (PACE_HANDLE fildes, pace_off_t offset, int whence) -{ - return lseek (fildes, offset, whence); -} -#endif /* PACE_HAS_POSIX_FM_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -long -pace_pathconf (const char * path, int name) -{ - return pathconf (path, name); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_SIG_UOF) -PACE_INLINE -int -pace_pause () -{ - return pause (); -} -#endif /* PACE_HAS_POSIX_SIG_UOF */ - -#if (PACE_HAS_POSIX_P_UOF) -PACE_INLINE -int -pace_pipe (PACE_HANDLE fildes[2]) -{ - return pipe (fildes); -} -#endif /* PACE_HAS_POSIX_P_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -ssize_t -pace_read (PACE_HANDLE fildes, void * buf, size_t nbyte) -{ - return read (fildes, buf, nbyte); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_rmdir (const char * path) -{ - return rmdir (path); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -int -pace_setgid (pace_gid_t gid) -{ - return setgid (gid); -} -#endif /* PACE_HAS_POSIX_UG_UOF */ - -#if (PACE_HAS_POSIX_JC_UOF) -PACE_INLINE -int -pace_setpgid (pid_t pid, pid_t pgid) -{ - return setpgid (pid, pgid); -} -#endif /* PACE_HAS_POSIX_JC_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -pid_t -pace_setsid () -{ - return setsid (); -} -#endif /* PACE_HAS_POSIX_UG_UOF */ - -#if (PACE_HAS_POSIX_UG_UOF) -PACE_INLINE -int -pace_setuid (uid_t uid) -{ - return setuid (uid); -} -#endif /* PACE_HAS_POSIX_UG_UOF */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -unsigned int -pace_sleep (unsigned int seconds) -{ - return sleep (seconds); -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_SP_UOF) -PACE_INLINE -long -pace_sysconf (int name) -{ - return sysconf (name); -} -#endif /* PACE_HAS_POSIX_SP_UOF */ - -#if (PACE_HAS_POSIX_JC_UOF) -PACE_INLINE -pid_t -pace_tcgetpgrp (PACE_HANDLE fildes) -{ - return tcgetpgrp (fildes); -} -#endif /* PACE_HAS_POSIX_JC_UOF */ - -#if (PACE_HAS_POSIX_JC_UOF) -PACE_INLINE -int -pace_tcsetpgrp (PACE_HANDLE fildes, pid_t pgrp_id) -{ - return tcsetpgrp (fildes, pgrp_id); -} -#endif /* PACE_HAS_POSIX_JC_UOF */ - -#if (PACE_HAS_POSIX_DS_UOF) -PACE_INLINE -char * -pace_ttyname (PACE_HANDLE fildes) -{ - return ttyname (fildes); -} -#endif /* PACE_HAS_POSIX_DS_UOF */ - -#if (PACE_HAS_POSIX_NONUOF_FUNCS) -PACE_INLINE -int -pace_ttyname_r (PACE_HANDLE fildes, - char * name, - size_t namesize) -{ -#if (PACE_SUNOS) || (PACE_LYNXOS) - if (ttyname_r (fildes, name, (int) namesize) == 0) - return errno; - return 0; -#else - return ttyname_r (fildes, name, namesize); -#endif /* PACE_SUNOS */ -} -#endif /* PACE_HAS_POSIX_NONUOF_FUNCS */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_unlink (const char * path) -{ - return unlink (path); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ - -#if (PACE_HAS_POSIX_DI_UOF) -PACE_INLINE -ssize_t -pace_write (PACE_HANDLE fildes, const void * buf, size_t nbyte) -{ - return write (fildes, buf, nbyte); -} -#endif /* PACE_HAS_POSIX_DI_UOF */ diff --git a/PACE/pace/posix/utime.c b/PACE/pace/posix/utime.c deleted file mode 100644 index 864e8d422b1..00000000000 --- a/PACE/pace/posix/utime.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/utime.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/utime.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/utime.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/utime.h b/PACE/pace/posix/utime.h deleted file mode 100644 index 00018e31751..00000000000 --- a/PACE/pace/posix/utime.h +++ /dev/null @@ -1,35 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/utime.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_UTIME_H_POSIX -#define PACE_UTIME_H_POSIX - -#include "pace/sys/types.h" -#include <utime.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_UTIMBUF -#define PACE_UTIMBUF -typedef struct utimbuf pace_utimbuf; -#endif /* PACE_UTIMBUF */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_UTIME_H_POSIX */ diff --git a/PACE/pace/posix/utime.inl b/PACE/pace/posix/utime.inl deleted file mode 100644 index 589229d3b38..00000000000 --- a/PACE/pace/posix/utime.inl +++ /dev/null @@ -1,24 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/utime.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_FS_UOF) -PACE_INLINE -int -pace_utime (const char * path, - const pace_utimbuf * times) -{ - return utime (path, times); -} -#endif /* PACE_HAS_POSIX_FS_UOF */ diff --git a/PACE/pace/posix/utsname.c b/PACE/pace/posix/utsname.c deleted file mode 100644 index 1fa1461795e..00000000000 --- a/PACE/pace/posix/utsname.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/utsname.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/sys/utsname.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/utsname.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/utsname.h b/PACE/pace/posix/utsname.h deleted file mode 100644 index 0e7d58e6f95..00000000000 --- a/PACE/pace/posix/utsname.h +++ /dev/null @@ -1,34 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/utsname.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_SYS_UTSNAME_H_POSIX -#define PACE_SYS_UTSNAME_H_POSIX - -#include <sys/utsname.h> - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#ifndef PACE_UTSNAME -#define PACE_UTSNAME -typedef struct utsname pace_utsname; -#endif /* PACE_UTSNAME */ - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_SYS_UTSNAME_H_POSIX */ diff --git a/PACE/pace/posix/utsname.inl b/PACE/pace/posix/utsname.inl deleted file mode 100644 index 84797fd519e..00000000000 --- a/PACE/pace/posix/utsname.inl +++ /dev/null @@ -1,23 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/utsname.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#if (PACE_HAS_POSIX_SP_UOF) -PACE_INLINE -int -pace_uname (pace_utsname * name) -{ - return uname (name); -} -#endif /* PACE_HAS_POSIX_SP_UOF */ diff --git a/PACE/pace/posix/wait.c b/PACE/pace/posix/wait.c deleted file mode 100644 index 786b8e59fbd..00000000000 --- a/PACE/pace/posix/wait.c +++ /dev/null @@ -1,20 +0,0 @@ -/* $Id$ - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/wait.c - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include "pace/sys/wait.h" - -#if !defined (PACE_HAS_INLINE) -# include "pace/posix/wait.inl" -#endif /* ! PACE_HAS_INLINE */ diff --git a/PACE/pace/posix/wait.h b/PACE/pace/posix/wait.h deleted file mode 100644 index 4bc233da5b5..00000000000 --- a/PACE/pace/posix/wait.h +++ /dev/null @@ -1,38 +0,0 @@ -/* $Id$ - - * ============================================================================ - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/wait.h - * - * = AUTHOR - * Luther Baker - * - * ============================================================================ */ - -#ifndef PACE_WAIT_H_POSIX -#define PACE_WAIT_H_POSIX - -#include "pace/sys/types.h" - -#if defined (PACE_HAS_CPLUSPLUS) -extern "C" { -#endif /* PACE_HAS_CPLUSPLUS */ - -#define PACE_WEXITSTATUS WEXITSTATUS -#define PACE_WIFEXITED WIFEXITED -#define PACE_WIFSIGNALED WISIGNALED -#define PACE_WIFSTOPPED WIFSTOPPED -#define PACE_WNOHANG WNOHANG -#define PACE_WSTOPSIG WSTOPSIG -#define PACE_WTERMSIG WTERMSIG -#define PACE_WUNTRACED WUNTRACED - -#if defined (PACE_HAS_CPLUSPLUS) -} -#endif /* PACE_HAS_CPLUSPLUS */ - -#endif /* PACE_WAIT_H */ diff --git a/PACE/pace/posix/wait.inl b/PACE/pace/posix/wait.inl deleted file mode 100644 index f1f98ad4d5e..00000000000 --- a/PACE/pace/posix/wait.inl +++ /dev/null @@ -1,34 +0,0 @@ -/* $Id$ -*- C -*- - - * ============================================================================= - * - * = LIBRARY - * pace - * - * = FILENAME - * pace/posix/wait.inl - * - * = AUTHOR - * Luther Baker - * - * ============================================================================= */ - -#include <sys/wait.h> - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -pid_t -pace_wait (int * statloc) -{ - return wait (statloc); -} -#endif /* PACE_HAS_POSIX_MP_UOF */ - -#if (PACE_HAS_POSIX_MP_UOF) -PACE_INLINE -pid_t -pace_waitpid (pid_t pid, int * statloc, int options) -{ - return waitpid (pid, statloc, options); -} -#endif /* PACE_HAS_POSIX_MP_UOF */ |