diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-10-11 01:39:19 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-10-11 01:39:19 +0200 |
commit | e0bf716a74ae377ee5a700cb464a64f861a8e6aa (patch) | |
tree | 309e6d5b36d39e47cf78477f1377bdc61f135b52 | |
parent | add exec functions (diff) | |
download | slibc-e0bf716a74ae377ee5a700cb464a64f861a8e6aa.tar.gz slibc-e0bf716a74ae377ee5a700cb464a64f861a8e6aa.tar.bz2 slibc-e0bf716a74ae377ee5a700cb464a64f861a8e6aa.tar.xz |
m doc: exec will use . and default PATH if PATH is not set
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r-- | include/unistd.h | 16 | ||||
-rw-r--r-- | src/unistd/exec.c | 16 |
2 files changed, 24 insertions, 8 deletions
diff --git a/include/unistd.h b/include/unistd.h index f85c1ae..a783f57 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -165,7 +165,9 @@ int execl(const char*, ... /*, NULL */) * * @param file The pathname of the file to execute, * or the filename of a file in $PATH, - * to execute. + * to execute. If $PATH is not set, the current + * working directory (yes, you read that right,) + * and a default value for $PATH will be used. * @param ... The arguments with which to execute the file. * The arguments should have the type `const char*`. * As a slibc extension, it can be empty. @@ -208,7 +210,9 @@ int execle(const char*, ... /*, NULL, char* const[] */) * * @param file The pathname of the file to execute, * or the filename of a file in $PATH, - * to execute. + * to execute. If $PATH is not set, the current + * working directory (yes, you read that right,) + * and a default value for $PATH will be used. * @param ... The arguments with which to execute the file. * The arguments should have the type `const char*`. * As a slibc extension, it can be empty. @@ -253,7 +257,9 @@ int execv(const char*, char* const[]) * * @param file The pathname of the file to execute, * or the filename of a file in $PATH, - * to execute. + * to execute. If $PATH is not set, the current + * working directory (yes, you read that right,) + * and a default value for $PATH will be used. * @param argv The arguments with which to execute the file. * This parameter should really have the type * `const char* const[]`, but that probably not @@ -304,7 +310,9 @@ int execve(const char*, char* const[], char* const[]) * * @param file The pathname of the file to execute, * or the filename of a file in $PATH, - * to execute. + * to execute. If $PATH is not set, the current + * working directory (yes, you read that right,) + * and a default value for $PATH will be used. * @param argv The arguments with which to execute the file. * This parameter should really have the type * `const char* const[]`, but that probably not diff --git a/src/unistd/exec.c b/src/unistd/exec.c index 5c3584c..5ee3345 100644 --- a/src/unistd/exec.c +++ b/src/unistd/exec.c @@ -96,7 +96,9 @@ int execl(const char* path, ... /*, NULL */) * * @param file The pathname of the file to execute, * or the filename of a file in $PATH, - * to execute. + * to execute. If $PATH is not set, the current + * working directory (yes, you read that right,) + * and a default value for $PATH will be used. * @param ... The arguments with which to execute the file. * The arguments should have the type `const char*`. * As a slibc extension, it can be empty. @@ -156,7 +158,9 @@ int execle(const char* path, ... /*, NULL, char* const envp[] */) * * @param file The pathname of the file to execute, * or the filename of a file in $PATH, - * to execute. + * to execute. If $PATH is not set, the current + * working directory (yes, you read that right,) + * and a default value for $PATH will be used. * @param ... The arguments with which to execute the file. * The arguments should have the type `const char*`. * As a slibc extension, it can be empty. @@ -212,7 +216,9 @@ int execv(const char* path, char* const argv[]) * * @param file The pathname of the file to execute, * or the filename of a file in $PATH, - * to execute. + * to execute. If $PATH is not set, the current + * working directory (yes, you read that right,) + * and a default value for $PATH will be used. * @param argv The arguments with which to execute the file. * This parameter should really have the type * `const char* const[]`, but that probably not @@ -270,7 +276,9 @@ int execve(const char* path, char* const argv[], char* const envp[]) * * @param file The pathname of the file to execute, * or the filename of a file in $PATH, - * to execute. + * to execute. If $PATH is not set, the current + * working directory (yes, you read that right,) + * and a default value for $PATH will be used. * @param argv The arguments with which to execute the file. * This parameter should really have the type * `const char* const[]`, but that probably not |