diff options
author | luther <luther@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-05-23 23:01:45 +0000 |
---|---|---|
committer | luther <luther@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-05-23 23:01:45 +0000 |
commit | 748498b3f7f338a86c498cc91fed84189701769f (patch) | |
tree | dfdfefe9b1d468e9f7539427113bad774848bfc0 /PACE/pace/sys | |
parent | 2a862ea6713ab9995655892e77571cf14a502eb3 (diff) | |
download | ATCD-748498b3f7f338a86c498cc91fed84189701769f.tar.gz |
Tue May 23 17:55:40 2000 Luther J Baker <luther@cs.wustl.edu>
Diffstat (limited to 'PACE/pace/sys')
-rw-r--r-- | PACE/pace/sys/mman.c | 22 | ||||
-rw-r--r-- | PACE/pace/sys/mman.h | 78 | ||||
-rw-r--r-- | PACE/pace/sys/mman.inl | 111 | ||||
-rw-r--r-- | PACE/pace/sys/socket.c | 21 | ||||
-rw-r--r-- | PACE/pace/sys/socket.h | 65 | ||||
-rw-r--r-- | PACE/pace/sys/socket.inl | 74 | ||||
-rw-r--r-- | PACE/pace/sys/stat.c | 22 | ||||
-rw-r--r-- | PACE/pace/sys/stat.h | 53 | ||||
-rw-r--r-- | PACE/pace/sys/stat.inl | 64 | ||||
-rw-r--r-- | PACE/pace/sys/termios.c | 22 | ||||
-rw-r--r-- | PACE/pace/sys/termios.h | 65 | ||||
-rw-r--r-- | PACE/pace/sys/termios.inl | 107 | ||||
-rw-r--r-- | PACE/pace/sys/times.c | 22 | ||||
-rw-r--r-- | PACE/pace/sys/times.h | 40 | ||||
-rw-r--r-- | PACE/pace/sys/times.inl | 22 | ||||
-rw-r--r-- | PACE/pace/sys/types.h | 60 | ||||
-rw-r--r-- | PACE/pace/sys/utsname.c | 22 | ||||
-rw-r--r-- | PACE/pace/sys/utsname.h | 40 | ||||
-rw-r--r-- | PACE/pace/sys/utsname.inl | 22 |
19 files changed, 932 insertions, 0 deletions
diff --git a/PACE/pace/sys/mman.c b/PACE/pace/sys/mman.c new file mode 100644 index 00000000000..aeffd95e65b --- /dev/null +++ b/PACE/pace/sys/mman.c @@ -0,0 +1,22 @@ +/* $Id$ + + * ============================================================================= + * + * = LIBRARY + * pace + * + * = FILENAME + * mman.c + * + * = AUTHOR + * Luther Baker + * + * ============================================================================= */ + + +#include "pace/sys/mman.h" + + +# if !defined (PACE_HAS_INLINE) +# include "pace/sys/mman.inl" +# endif /* !PACE_HAS_INLINE */ diff --git a/PACE/pace/sys/mman.h b/PACE/pace/sys/mman.h new file mode 100644 index 00000000000..dcd5df48c27 --- /dev/null +++ b/PACE/pace/sys/mman.h @@ -0,0 +1,78 @@ +/* $Id$ + + * ============================================================================ + * + * = LIBRARY + * pace + * + * = FILENAME + * mman.h + * + * = AUTHOR + * Luther Baker + * + * ============================================================================ */ + + +#ifndef PACE_SYS_MMAN_H +#define PACE_SYS_MMAN_H + + +#include "pace/defines.h" +#include <sys/mman.h> + +/* Linux wants to use sys/types.h to define off_t. + * Sun is happy with sys/mman.h. + */ +# if defined (linux) +#include "pace/sys/types.h" +# endif /* linux */ + + +# if defined (PACE_HAS_CPLUSPLUS) +extern "C" { +# endif /* PACE_HAS_CPLUSPLUS */ + + PACE_INLINE int pace_mlock (const void * addr, size_t len); + + PACE_INLINE int pace_mlockall (int flags); + + PACE_INLINE void * pace_mmap (void * addr, + size_t len, + int prot, + int flags, + int fildes, + off_t off); + + PACE_INLINE int pace_mprotect (const void * addr, + size_t len, + int prot); + + PACE_INLINE int pace_msync (void * addr, + size_t len, + int flags); + + PACE_INLINE int pace_munlock (const void * addr, size_t len); + + PACE_INLINE int pace_munlockall (); + + PACE_INLINE int pace_munmap (void *addr, size_t len); + + PACE_INLINE int pace_shm_open (const char * name, + int oflag, + mode_t mode); + /* Requires PACE_POSIX_C_SOURCE > 2. */ + + PACE_INLINE int pace_shm_unlink (const char * name); + /* Requires PACE_POSIX_C_SOURCE > 2. */ + +# if defined (PACE_HAS_CPLUSPLUS) +} +# endif /* PACE_HAS_CPLUSPLUS */ + +# if defined (PACE_HAS_INLINE) +# include "pace/sys/mman.inl" +# endif /* PACE_HAS_INLINE */ + + +#endif /* PACE_SYS_MMAN_H */ diff --git a/PACE/pace/sys/mman.inl b/PACE/pace/sys/mman.inl new file mode 100644 index 00000000000..bbd396427a1 --- /dev/null +++ b/PACE/pace/sys/mman.inl @@ -0,0 +1,111 @@ +/* $Id$ -*- C -*- + + * ============================================================================= + * + * = LIBRARY + * pace + * + * = FILENAME + * mman.inl + * + * = AUTHOR + * Luther Baker + * + * ============================================================================= */ + + +PACE_INLINE +int +pace_mlock (const void * addr, size_t len) +{ + return mlock (((char*)addr), len); +} + +PACE_INLINE +int +pace_mlockall (int flags) +{ + return mlockall (flags); +} + +PACE_INLINE +void * +pace_mmap (void * addr, + size_t len, + int prot, + int flags, + int fildes, + off_t off) +{ + return mmap ((char *) addr, len, prot, flags, fildes, off); +} + +PACE_INLINE +int +pace_munlock (const void * addr, size_t len) +{ + return munlock (((char*)addr), len); +} + +PACE_INLINE +int +pace_mprotect (const void * addr, + size_t len, + int prot) +{ + return PACE_mprotect (addr, len, prot); +} + +PACE_INLINE +int +pace_msync (void * addr, + size_t len, + int flags) +{ + return PACE_msync (addr, len, flags); +} + +PACE_INLINE +int +pace_munlockall () +{ + return munlockall (); +} + +PACE_INLINE +int +pace_munmap (void * addr, size_t len) +{ + return munmap ((char *) addr, len); +} + +PACE_INLINE +int +pace_shm_open (const char * name, + int oflag, + mode_t mode) +{ +# if (PACE_POSIX_C_SOURCE > 2) + return shm_open (name, oflag, mode); +# else /* !PACE_POSIX_C_SOURCE */ + PACE_RETURN_NO_SUPPORT (PACE_ERRNO_LACKS_POSIX_C_SOURCE); +# endif /* !PACE_POSIX_C_SOURCE */ +} + +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_RETURN_NO_SUPPORT (PACE_ERRNO_LACKS_POSIX_C_SOURCE); +# endif /* !PACE_POSIX_C_SOURCE */ +} + + + + + + + diff --git a/PACE/pace/sys/socket.c b/PACE/pace/sys/socket.c new file mode 100644 index 00000000000..e846bbe1c1b --- /dev/null +++ b/PACE/pace/sys/socket.c @@ -0,0 +1,21 @@ +/* $Id$ + + * ============================================================================= + * + * = LIBRARY + * pace + * + * = FILENAME + * socket.c + * + * = AUTHOR + * Luther Baker + * + * ============================================================================= */ + + +#include "pace/sys/socket.h" + +# if !defined (PACE_HAS_INLINE) +# include "pace/sys/socket.inl" +# endif /* !PACE_HAS_INLINE */ diff --git a/PACE/pace/sys/socket.h b/PACE/pace/sys/socket.h new file mode 100644 index 00000000000..03c945eb9e5 --- /dev/null +++ b/PACE/pace/sys/socket.h @@ -0,0 +1,65 @@ +/* $Id$ + + * ============================================================================ + * + * = LIBRARY + * pace + * + * = FILENAME + * socket.h + * + * = AUTHOR + * Luther Baker + * + * ============================================================================ */ + + +#ifndef PACE_SYS_SOCKET_H +#define PACE_SYS_SOCKET_H + + +#include "pace/defines.h" +#include "pace/sys/types.h" +#include <sys/socket.h> + + +# if defined (PACE_HAS_CPLUSPLUS) +extern "C" { +# endif /* PACE_HAS_CPLUSPLUS */ + + PACE_INLINE int pace_closesocket (PACE_HANDLE handle); + + PACE_INLINE int pace_getpeername (int s, + struct sockaddr * name, + socklen_t * namelen); + + PACE_INLINE int pace_getsockname (int s, + struct sockaddr * name, + socklen_t * namelen); + + PACE_INLINE int pace_getsockopt (int s, + int level, + int optname, + void * optval, + socklen_t * optlen); + + PACE_INLINE int pace_setsockopt (int s, + int level, + int optname, + const void * optval, + socklen_t optlen); + + PACE_INLINE int pace_socket (int domain, + int type, + int protocol); + +# if defined (PACE_HAS_CPLUSPLUS) +} +# endif /* PACE_HAS_CPLUSPLUS */ + +# if defined (PACE_HAS_INLINE) +# include "pace/sys/socket.inl" +# endif /* PACE_HAS_INLINE */ + + +#endif /* PACE_SYS_SOCKET_H */ diff --git a/PACE/pace/sys/socket.inl b/PACE/pace/sys/socket.inl new file mode 100644 index 00000000000..fff47b26bc2 --- /dev/null +++ b/PACE/pace/sys/socket.inl @@ -0,0 +1,74 @@ +/* $Id$ -*- C -*- + + * ============================================================================= + * + * = LIBRARY + * pace + * + * = FILENAME + * socket.inl + * + * = AUTHOR + * Luther Baker + * + * ============================================================================= */ + + +#include <unistd.h> + + +PACE_INLINE +int +pace_closesocket (PACE_HANDLE handle) +{ + return close (handle); +} + +PACE_INLINE +int +pace_getpeername (int s, + struct sockaddr * name, + socklen_t * namelen) +{ + return getpeername (s, name, namelen); +} + +PACE_INLINE +int +pace_getsockname (int s, + struct sockaddr * name, + socklen_t * namelen) +{ + return getsockname (s, name, namelen); +} + +PACE_INLINE +int +pace_getsockopt (int s, + int level, + int optname, + void * optval, + socklen_t * optlen) +{ + return getsockopt (s, level, optname, optval, optlen); +} + +PACE_INLINE +int +pace_setsockopt (int s, + int level, + int optname, + const void * optval, + socklen_t optlen) +{ + return setsockopt (s, level, optname, optval, optlen); +} + +PACE_INLINE +int +pace_socket (int domain, + int type, + int protocol) +{ + return socket (domain, type, protocol); +} diff --git a/PACE/pace/sys/stat.c b/PACE/pace/sys/stat.c new file mode 100644 index 00000000000..57ee25af135 --- /dev/null +++ b/PACE/pace/sys/stat.c @@ -0,0 +1,22 @@ +/* $Id$ + + * ============================================================================= + * + * = LIBRARY + * pace + * + * = FILENAME + * stat.c + * + * = AUTHOR + * Luther Baker + * + * ============================================================================= */ + + +#include "pace/sys/stat.h" + + +# if !defined (PACE_HAS_INLINE) +# include "pace/sys/stat.inl" +# endif /* !PACE_HAS_INLINE */ diff --git a/PACE/pace/sys/stat.h b/PACE/pace/sys/stat.h new file mode 100644 index 00000000000..652ced3917f --- /dev/null +++ b/PACE/pace/sys/stat.h @@ -0,0 +1,53 @@ +/* $Id$ + + * ============================================================================ + * + * = LIBRARY + * pace + * + * = FILENAME + * stat.h + * + * = AUTHOR + * Luther Baker + * + * ============================================================================ */ + + +#ifndef PACE_SYS_STAT_H +#define PACE_SYS_STAT_H + + +#include "pace/defines.h" +#include "pace/sys/types.h" +#include <sys/stat.h> + + +# if defined (PACE_HAS_CPLUSPLUS) +extern "C" { +# endif /* PACE_HAS_CPLUSPLUS */ + + PACE_INLINE int pace_chmod (const char * path, mode_t mode); + + PACE_INLINE int pace_fchmod (int fildes, mode_t mode); + + PACE_INLINE int pace_fstat (int fildes, struct stat * buf); + + PACE_INLINE int pace_mkdir (const char * path, mode_t mode); + + PACE_INLINE int pace_mkfifo (const char * path, mode_t mode); + + PACE_INLINE int pace_stat (const char * path, struct stat * buf); + + PACE_INLINE mode_t pace_umask (mode_t cmask); + +# if defined (PACE_HAS_CPLUSPLUS) +} +# endif /* PACE_HAS_CPLUSPLUS */ + +# if defined (PACE_HAS_INLINE) +# include "pace/sys/stat.inl" +# endif /* PACE_HAS_INLINE */ + + +#endif /* PACE_SYS_STAT_H */ diff --git a/PACE/pace/sys/stat.inl b/PACE/pace/sys/stat.inl new file mode 100644 index 00000000000..e44ceedda61 --- /dev/null +++ b/PACE/pace/sys/stat.inl @@ -0,0 +1,64 @@ +/* $Id$ -*- C -*- + + * ============================================================================= + * + * = LIBRARY + * pace + * + * = FILENAME + * stat.inl + * + * = AUTHOR + * Luther Baker + * + * ============================================================================= */ + + +PACE_INLINE +int +pace_chmod (const char * path, mode_t mode) +{ + return chmod (path, mode); +} + +PACE_INLINE +int +pace_fchmod (int fildes, mode_t mode) +{ + return fchmod (fildes, mode); +} + +PACE_INLINE +int +pace_fstat (int fildes, struct stat * buf) +{ + return fstat (fildes, buf); +} + +PACE_INLINE +int +pace_mkdir (const char * path, mode_t mode) +{ + return mkdir (path, mode); +} + +PACE_INLINE +int +pace_mkfifo (const char * path, mode_t mode) +{ + return mkfifo (path, mode); +} + +PACE_INLINE +int +pace_stat (const char * path, struct stat * buf) +{ + return stat (path, buf); +} + +PACE_INLINE +mode_t +pace_umask (mode_t cmask) +{ + return umask (cmask); +} diff --git a/PACE/pace/sys/termios.c b/PACE/pace/sys/termios.c new file mode 100644 index 00000000000..eaa7a268359 --- /dev/null +++ b/PACE/pace/sys/termios.c @@ -0,0 +1,22 @@ +/* $Id$ + + * ============================================================================= + * + * = LIBRARY + * pace + * + * = FILENAME + * termios.c + * + * = AUTHOR + * Luther Baker + * + * ============================================================================= */ + + +#include "pace/sys/termios.h" + + +# if !defined (PACE_HAS_INLINE) +# include "pace/sys/termios.inl" +# endif /* !PACE_HAS_INLINE */ diff --git a/PACE/pace/sys/termios.h b/PACE/pace/sys/termios.h new file mode 100644 index 00000000000..dc39999f216 --- /dev/null +++ b/PACE/pace/sys/termios.h @@ -0,0 +1,65 @@ +/* $Id$ + + * ============================================================================ + * + * = LIBRARY + * pace + * + * = FILENAME + * termios.h + * + * = AUTHOR + * Luther Baker + * + * ============================================================================ */ + + +#ifndef PACE_SYS_TERMIOS_H +#define PACE_SYS_TERMIOS_H + + +#include "pace/defines.h" +#include "pace/sys/types.h" +#include <termios.h> + + +# if defined (PACE_HAS_CPLUSPLUS) +extern "C" { +# endif /* PACE_HAS_CPLUSPLUS) */ + + PACE_INLINE speed_t pace_cfgetospeed (const struct termios * termiosp); + + PACE_INLINE int pace_cfsetospeed (struct termios * termios_p, speed_t speed); + + PACE_INLINE speed_t pace_cfgetispeed (const struct termios * termios_p); + + PACE_INLINE int pace_cfsetispeed (struct termios * termios_p, speed_t speed); + + PACE_INLINE int pace_tcdrain (int fildes); + + PACE_INLINE int pace_tcflow (int fildes, int action); + + PACE_INLINE int pace_tcflush (int fildes, int queue_selector); + + PACE_INLINE int pace_tcgetattr (int fildes, struct termios * termios_p); + + PACE_INLINE pid_t pace_tcgetpgrp (int fildes); + + PACE_INLINE int pace_tcsendbreak (int fildes, int duration); + + PACE_INLINE int pace_tcsetattr (int fildes, + int optional_actions, + const struct termios * termios_p); + + PACE_INLINE int pace_tcsetpgrp (int fildes, pid_t pgrp_id); + +# if defined (PACE_HAS_CPLUSPLUS) +} +# endif /* PACE_HAS_CPLUSPLUS */ + +# if defined (PACE_HAS_INLINE) +# include "pace/sys/termios.inl" +# endif /* PACE_HAS_INLINE */ + + +#endif /* PACE_SYS_TERMIOS_H */ diff --git a/PACE/pace/sys/termios.inl b/PACE/pace/sys/termios.inl new file mode 100644 index 00000000000..8df184f3540 --- /dev/null +++ b/PACE/pace/sys/termios.inl @@ -0,0 +1,107 @@ +/* $Id$ -*- C -*- + + * ============================================================================= + * + * = LIBRARY + * pace + * + * = FILENAME + * termios.inl + * + * = AUTHOR + * Luther Baker + * + * ============================================================================= */ + + +#include <unistd.h> + + +PACE_INLINE +speed_t +pace_cfgetospeed (const struct termios *termiosp) +{ + return cfgetospeed (termiosp); +} + +PACE_INLINE +int +pace_cfsetospeed (struct termios *termios_p, speed_t speed) +{ + return cfsetospeed (termios_p, speed); +} + +PACE_INLINE +speed_t +pace_cfgetispeed (const struct termios *termios_p) +{ + return cfgetispeed (termios_p); +} + +PACE_INLINE +int +pace_cfsetispeed (struct termios *termios_p, speed_t speed) +{ + return cfsetispeed (termios_p, speed); +} + +PACE_INLINE +int +pace_tcdrain (int fildes) +{ + return tcdrain (fildes); +} + +PACE_INLINE +int +pace_tcgetattr (int fildes, struct termios *termios_p) +{ + return tcgetattr (fildes, termios_p); +} + +PACE_INLINE +int +pace_tcflow (int fildes, int action) +{ + return tcflow (fildes, action); +} + +PACE_INLINE +int +pace_tcflush (int fildes, int queue_selector) +{ + return tcflush (fildes, queue_selector); +} + +PACE_INLINE +pid_t +pace_tcgetpgrp (int fildes) +{ + return tcgetpgrp (fildes); +} + +PACE_INLINE +int +pace_tcsendbreak (int fildes, int duration) +{ + return tcsendbreak (fildes, duration); +} + +PACE_INLINE +int +pace_tcsetattr (int fildes, + int optional_actions, + const struct termios *termios_p) +{ + return tcsetattr (fildes, optional_actions, termios_p); +} + +PACE_INLINE +int +pace_tcsetpgrp (int fildes, pid_t pgrp_id) +{ + return tcsetpgrp (fildes, pgrp_id); +} + + + diff --git a/PACE/pace/sys/times.c b/PACE/pace/sys/times.c new file mode 100644 index 00000000000..94919a6bc16 --- /dev/null +++ b/PACE/pace/sys/times.c @@ -0,0 +1,22 @@ +/* $Id$ + + * ============================================================================= + * + * = LIBRARY + * pace + * + * = FILENAME + * times.c + * + * = AUTHOR + * Luther Baker + * + * ============================================================================= */ + + +#include "pace/sys/times.h" + + +# if !defined (PACE_HAS_INLINE) +# include "pace/sys/times.inl" +# endif /* !PACE_HAS_INLINE */ diff --git a/PACE/pace/sys/times.h b/PACE/pace/sys/times.h new file mode 100644 index 00000000000..d7d54be9baf --- /dev/null +++ b/PACE/pace/sys/times.h @@ -0,0 +1,40 @@ +/* $Id$ + + * ============================================================================ + * + * = LIBRARY + * pace + * + * = FILENAME + * times.h + * + * = AUTHOR + * Luther Baker + * + * ============================================================================ */ + + +#ifndef PACE_SYS_TIMES_H +#define PACE_SYS_TIMES_H + + +#include "pace/defines.h" +#include <sys/times.h> + + +# if defined (PACE_HAS_CPLUSPLUS) +extern "C" { +# endif /* PACE_HAS_CPLUSPLUS */ + + PACE_INLINE clock_t pace_times (struct tms * buffer); + +# if defined (PACE_HAS_CPLUSPLUS) +} +# endif /* PACE_HAS_CPLUSPLUS */ + +# if defined (PACE_HAS_INLINE) +# include "pace/sys/times.inl" +# endif /* PACE_HAS_INLINE */ + + +#endif /* PACE_SYS_TIMES_H */ diff --git a/PACE/pace/sys/times.inl b/PACE/pace/sys/times.inl new file mode 100644 index 00000000000..f1e6761dd20 --- /dev/null +++ b/PACE/pace/sys/times.inl @@ -0,0 +1,22 @@ +/* $Id$ -*- C -*- + + * ============================================================================= + * + * = LIBRARY + * pace + * + * = FILENAME + * times.inl + * + * = AUTHOR + * Luther Baker + * + * ============================================================================= */ + + +PACE_INLINE +clock_t +pace_times (struct tms * buffer) +{ + return times (buffer); +} diff --git a/PACE/pace/sys/types.h b/PACE/pace/sys/types.h new file mode 100644 index 00000000000..fe48799e3b1 --- /dev/null +++ b/PACE/pace/sys/types.h @@ -0,0 +1,60 @@ +/* -*- C -*- + * $Id$ + + * ============================================================================ + * + * = LIBRARY + * pace + * + * = FILENAME + * types.h + * + * = AUTHOR + * Luther Baker + * + * ============================================================================ */ + + +#ifndef PACE_SYS_TYPES_H +#define PACE_SYS_TYPES_H + + +#include <sys/types.h> + +/* specific to SunOS 5.7 ace.cs <luther@cs.wustl.edu> */ +#include <inttypes.h> + + +/* Wrap a handle. */ +# define PACE_HANDLE int +# define PACE_INVALID_HANDLE -1 + +# if defined (PACE_PSOS_TM) +typedef long long longlong_t; +typedef long id_t; +# endif /* PACE_PSOS_TM */ + +# define PACE_UINT32 uint32_t +# define PACE_UINT16 uint16_t + +# if defined PACE_HAS_WCHAR +# if defined PACE_USES_WCHAR +# define PACE_TCHAR wchar +# define PACE_TEXT(X) X +# endif /* PACE_USES_WCHAR */ +# else /* !PACE_HAS_WCHAR */ +# define PACE_TCHAR char +# define PACE_TEXT(X) X +# endif /* PACE_HAS_WCHAR */ + +# if defined (PACE_HAS_CPLUSPLUS) +extern "C" { +# endif /* (PACE_HAS_CPLUSPLUS) */ + + +# if defined (PACE_HAS_CPLUSPLUS) +} +# endif /* PACE_HAS_CPLUSPLUS */ + + +#endif /* PACE_SYS_TYPES_H */ diff --git a/PACE/pace/sys/utsname.c b/PACE/pace/sys/utsname.c new file mode 100644 index 00000000000..7483d7ca22f --- /dev/null +++ b/PACE/pace/sys/utsname.c @@ -0,0 +1,22 @@ +/* $Id$ + + * ============================================================================= + * + * = LIBRARY + * pace + * + * = FILENAME + * utsname.c + * + * = AUTHOR + * Luther Baker + * + * ============================================================================= */ + + +#include "pace/sys/utsname.h" + + +# if !defined (PACE_HAS_INLINE) +# include "pace/sys/utsname.inl" +# endif /* PACE_HAS_INLINE */ diff --git a/PACE/pace/sys/utsname.h b/PACE/pace/sys/utsname.h new file mode 100644 index 00000000000..60a5de85886 --- /dev/null +++ b/PACE/pace/sys/utsname.h @@ -0,0 +1,40 @@ +/* $Id$ + + * ============================================================================ + * + * = LIBRARY + * pace + * + * = FILENAME + * utsname.h + * + * = AUTHOR + * Luther Baker + * + * ============================================================================ */ + + +#ifndef PACE_SYS_UTSNAME_H +#define PACE_SYS_UTSNAME_H + + +#include "pace/defines.h" +#include <sys/utsname.h> + + +# if defined (PACE_HAS_CPLUSPLUS) +extern "C" { +# endif /* PACE_HAS_CPLUSPLUS */ + + PACE_INLINE int pace_uname (struct utsname * name); + +# if defined (PACE_HAS_CPLUSPLUS) +} +# endif /* PACE_HAS_CPLUSPLUS */ + +# if defined (PACE_HAS_INLINE) +# include "pace/sys/utsname.inl" +# endif /* PACE_HAS_INLINE */ + + +#endif /* PACE_SYS_UTSNAME_H */ diff --git a/PACE/pace/sys/utsname.inl b/PACE/pace/sys/utsname.inl new file mode 100644 index 00000000000..0fe39f13276 --- /dev/null +++ b/PACE/pace/sys/utsname.inl @@ -0,0 +1,22 @@ +/* $Id$ -*- C -*- + + * ============================================================================= + * + * = LIBRARY + * pace + * + * = FILENAME + * utsname.inl + * + * = AUTHOR + * Luther Baker + * + * ============================================================================= */ + + +PACE_INLINE +int +pace_uname (struct utsname * name) +{ + return uname (name); +} |