diff options
author | joeh <joeh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-08-08 22:14:55 +0000 |
---|---|---|
committer | joeh <joeh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-08-08 22:14:55 +0000 |
commit | a223b1f4a2b24a062c543f5b49f1a433de3daf4b (patch) | |
tree | 8c8247b44238d39e4d312b0ad786284638abec8b | |
parent | 97caf949f95aa609526e17e62526a8a442ba40af (diff) | |
download | ATCD-a223b1f4a2b24a062c543f5b49f1a433de3daf4b.tar.gz |
Tue Aug 08 17:09:38 2000 Joe Hoffert <joeh@cs.wustl.edu>
-rw-r--r-- | PACE/ChangeLog | 12 | ||||
-rw-r--r-- | PACE/pace/config/config.h | 26 | ||||
-rw-r--r-- | PACE/pace/posix/time.inl | 10 | ||||
-rw-r--r-- | PACE/pace/posix/unistd.inl | 2 |
4 files changed, 44 insertions, 6 deletions
diff --git a/PACE/ChangeLog b/PACE/ChangeLog index 05d2232e8fd..f2ea4c189d3 100644 --- a/PACE/ChangeLog +++ b/PACE/ChangeLog @@ -1,3 +1,15 @@ +Tue Aug 08 17:09:38 2000 Joe Hoffert <joeh@cs.wustl.edu> + + * pace/config/config.h: + Added comments explaining the PACE_HAS_*UOF* macros. + + * pace/posix/time.inl: + Fixed checking of return values for reentrant functions + on LynxOS. + + * pace/posix/unistd.inl: + Fixed erroneous comment about PACE_HAS_POSIX_UGR_UOF. + Thu Aug 03 10:23:04 2000 David L. Levine <levine@cs.wustl.edu> * VERSION: updated for next beta, manually. diff --git a/PACE/pace/config/config.h b/PACE/pace/config/config.h index 09bddf6eb7c..25e27e5313b 100644 --- a/PACE/pace/config/config.h +++ b/PACE/pace/config/config.h @@ -71,6 +71,32 @@ /* Adding appropriate macros for the different POSIX units of functionality that PACE supports. + These macros define which POSIX functions get included when + PACE is built. The functions are grouped according to POSIX + Units of Functionality per the POSIX document ?? pp. ??. + The following macros correspond to the following POSIX + Unit of Functionality: + + PACE_HAS_POSIX_SP_UOF -> POSIX Single Process UoF + PACE_HAS_POSIX_MP_UOF -> POSIX Multiple Process UoF + PACE_HAS_POSIX_SIG_UOF -> POSIX Signals UoF + PACE_HAS_POSIX_UG_UOF -> POSIX User Groups UoF + PACE_HAS_POSIX_FS_UOF -> POSIX File System UoF + PACE_HAS_POSIX_FA_UOF -> POSIX File Attributes UoF + PACE_HAS_POSIX_F_UOF -> POSIX FIFO UoF + PACE_HAS_POSIX_DI_UOF -> POSIX Device I/O UoF + PACE_HAS_POSIX_FM_UOF -> POSIX File Descriptor Management UoF + PACE_HAS_POSIX_P_UOF -> POSIX Pipe UoF + PACE_HAS_POSIX_DS_UOF -> POSIX Device Specific UoF + PACE_HAS_POSIX_SD_UOF -> POSIX System Database UoF + PACE_HAS_POSIX_CLS_UOF -> POSIX C Language Support UoF + PACE_HAS_POSIX_JC_UOF -> POSIX Job Control UoF + PACE_HAS_POSIX_UGR_UOF -> POSIX User Groups (Reentrant) UoF + PACE_HAS_POSIX_FL_UOF -> POSIX File Locking UoF + PACE_HAS_POSIX_CLSR_UOF -> POSIX C Language Support (Reentrant) UoF + PACE_HAS_POSIX_SDR_UOF -> POSIX System Database (Reentrant) UoF + PACE_HAS_POSIX_NONUOF_FUNCS -> Any POSIX function in PACE that is not in + one of the above units of functionality. */ #if PACE_HAS_ALL_POSIX_FUNCS # define PACE_HAS_POSIX_SP_UOF 1 diff --git a/PACE/pace/posix/time.inl b/PACE/pace/posix/time.inl index 2c8caadd847..415e728eb36 100644 --- a/PACE/pace/posix/time.inl +++ b/PACE/pace/posix/time.inl @@ -33,7 +33,7 @@ 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) /* ??? */ + if (asctime_r (time, buf, 26) != 0) return (char*) 0; return buf; #else @@ -149,9 +149,9 @@ 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) + if (gmtime_r (result, clock) != 0) return (pace_tm*)0; - return result; /* ????? */ + return result; #else return gmtime_r (clock, result); #endif /* PACE_LYNXOS */ @@ -174,9 +174,9 @@ 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) + if (localtime_r (result, clock) != 0) return (pace_tm*)0; - return result; /* ????? */ + return result; #else return localtime_r (clock, result); #endif /* PACE_LYNXOS */ diff --git a/PACE/pace/posix/unistd.inl b/PACE/pace/posix/unistd.inl index d06564e25d0..40acc02c753 100644 --- a/PACE/pace/posix/unistd.inl +++ b/PACE/pace/posix/unistd.inl @@ -202,7 +202,7 @@ pace_getgroups (int gidsetsize, pace_gid_t grouplist[]) { return getgroups (gidsetsize, grouplist); } -#endif /* PACE_HAS_POSIX_UGR_UOF */ +#endif /* PACE_HAS_POSIX_UG_UOF */ #if (PACE_HAS_POSIX_UG_UOF) PACE_INLINE |