diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-07-12 02:08:18 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-07-12 02:08:18 +0000 |
commit | b53b6c69b9c8a4fe4cdd47b704ce984fd8df16fa (patch) | |
tree | e35c0e9559de05547954ba2705777eaddb788371 | |
parent | d416f67ccecd450757bcff84ea1e6b5c16418381 (diff) | |
download | ATCD-b53b6c69b9c8a4fe4cdd47b704ce984fd8df16fa.tar.gz |
ChangeLogTag: Tue Jul 11 21:05:58 2000 David L. Levine <levine@cs.wustl.edu>
-rw-r--r-- | PACE/ChangeLog | 8 | ||||
-rw-r--r-- | PACE/pace/posix/unistd.inl | 39 | ||||
-rw-r--r-- | PACE/pace/unistd.h | 6 |
3 files changed, 32 insertions, 21 deletions
diff --git a/PACE/ChangeLog b/PACE/ChangeLog index 46b9d7bb0cc..64190d55d81 100644 --- a/PACE/ChangeLog +++ b/PACE/ChangeLog @@ -1,3 +1,11 @@ +Tue Jul 11 21:05:58 2000 David L. Levine <levine@cs.wustl.edu> + + * pace/unistd.h,pace/posix/unistd.inl: + 1) pace_execl{,e,p} weren't declared/defined with + PACE_INLINE, so they were being put into each .o. + 2) Reordered some of the function definitions in + posix/unistd.inl, so that they appear before all uses. + Tue Jul 11 19:31:13 2000 David L. Levine <levine@cs.wustl.edu> * pace/stdio.h: fixed copy+paste error in comment: diff --git a/PACE/pace/posix/unistd.inl b/PACE/pace/posix/unistd.inl index 055a94c8069..9a0cc9f607f 100644 --- a/PACE/pace/posix/unistd.inl +++ b/PACE/pace/posix/unistd.inl @@ -73,6 +73,7 @@ pace_dup2 (int fildes, int fildes2) return dup2 (fildes, fildes2); } +PACE_INLINE int pace_execl (const char* path, const char* arg, ...) { @@ -84,6 +85,16 @@ pace_execl (const char* path, const char* arg, ...) return result; } +PACE_INLINE +int +pace_execv (const char * path, + char * const argv[]) +{ + return execv (path, argv); + /* if successful, this operation does NOT return */ +} + +PACE_INLINE int pace_execle (const char* path, const char* arg, ...) { @@ -95,6 +106,16 @@ pace_execle (const char* path, const char* arg, ...) return result; } +PACE_INLINE +int +pace_execvp (const char * file, + char * const argv[]) +{ + return execvp (file, argv); + /* if successful, this operation does NOT return */ +} + +PACE_INLINE int pace_execlp (const char* file, const char* arg, ...) { @@ -108,15 +129,6 @@ pace_execlp (const char* file, const char* arg, ...) PACE_INLINE int -pace_execv (const char * path, - char * const argv[]) -{ - return execv (path, argv); - /* if successful, this operation does NOT return */ -} - -PACE_INLINE -int pace_execve (const char * path, char * const argv[], char * const envp[]) @@ -127,15 +139,6 @@ pace_execve (const char * path, PACE_INLINE int -pace_execvp (const char * file, - char * const argv[]) -{ - return execvp (file, argv); - /* if successful, this operation does NOT return */ -} - -PACE_INLINE -int pace_fdatasync (int fildes) { return fdatasync (fildes); diff --git a/PACE/pace/unistd.h b/PACE/pace/unistd.h index 49e6da63589..1f8ef02a4bb 100644 --- a/PACE/pace/unistd.h +++ b/PACE/pace/unistd.h @@ -92,21 +92,21 @@ extern "C" { See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; IEEE Std 1003.1, 1996 Edition), Section 3.1.2. */ - int pace_execl (const char* path, const char* arg, ...); + PACE_INLINE int pace_execl (const char* path, const char* arg, ...); /** PACE's implementation of the POSIX function execle. See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; IEEE Std 1003.1, 1996 Edition), Section 3.1.2. */ - int pace_execle (const char* path, const char* arg, ...); + PACE_INLINE int pace_execle (const char* path, const char* arg, ...); /** PACE's implementation of the POSIX function execlp. See POSIX standard (Internation Standard ISO/IEC 9945-1:1996; IEEE Std 1003.1, 1996 Edition), Section 3.1.2. */ - int pace_execlp (const char* file, const char* arg, ...); + PACE_INLINE int pace_execlp (const char* file, const char* arg, ...); /** PACE's implementation of the POSIX function execv. |