diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2019-12-30 20:31:24 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2019-12-30 20:31:24 +0000 |
commit | 72dd49d7dd07ba4cae13ee1249fd58550991c188 (patch) | |
tree | e85f546a63dcdd99e806071ea88b83282341d82a /src | |
parent | d9b6a5820f195ef681d7cd15d70a184265b37a94 (diff) | |
download | execline-72dd49d7dd07ba4cae13ee1249fd58550991c188.tar.xz |
Rename cd/umask to execline-cd/execline-umask, make symlinks, etc.
Diffstat (limited to 'src')
-rw-r--r-- | src/execline/deps-exe/execline-cd (renamed from src/execline/deps-exe/cd) | 0 | ||||
-rw-r--r-- | src/execline/deps-exe/execline-umask (renamed from src/execline/deps-exe/umask) | 0 | ||||
-rw-r--r-- | src/execline/execline-cd.c (renamed from src/execline/cd.c) | 2 | ||||
-rw-r--r-- | src/execline/execline-umask.c (renamed from src/execline/umask.c) | 2 | ||||
-rw-r--r-- | src/execline/wait.c | 10 |
5 files changed, 12 insertions, 2 deletions
diff --git a/src/execline/deps-exe/cd b/src/execline/deps-exe/execline-cd index e7187fe..e7187fe 100644 --- a/src/execline/deps-exe/cd +++ b/src/execline/deps-exe/execline-cd diff --git a/src/execline/deps-exe/umask b/src/execline/deps-exe/execline-umask index e7187fe..e7187fe 100644 --- a/src/execline/deps-exe/umask +++ b/src/execline/deps-exe/execline-umask diff --git a/src/execline/cd.c b/src/execline/execline-cd.c index 62b877c..8f308f3 100644 --- a/src/execline/cd.c +++ b/src/execline/execline-cd.c @@ -8,7 +8,7 @@ int main (int argc, char const *const *argv, char const *const *envp) { - PROG = "cd" ; + PROG = "execline-cd" ; if (argc < 3) strerr_dieusage(100, USAGE) ; if (chdir(argv[1]) == -1) strerr_diefu2sys(111, "chdir to ", argv[1]) ; diff --git a/src/execline/umask.c b/src/execline/execline-umask.c index f74f845..a7888a6 100644 --- a/src/execline/umask.c +++ b/src/execline/execline-umask.c @@ -10,7 +10,7 @@ int main (int argc, char const *const *argv, char const *const *envp) { unsigned int m ; - PROG = "umask" ; + PROG = "execline-umask" ; if (argc < 3) strerr_dieusage(100, USAGE) ; if (!uint_oscan(argv[1], &m)) strerr_dieusage(100, USAGE) ; umask(m) ; diff --git a/src/execline/wait.c b/src/execline/wait.c index 2a2ead2..726cd52 100644 --- a/src/execline/wait.c +++ b/src/execline/wait.c @@ -1,7 +1,13 @@ /* ISC license. */ +#include <execline/config.h> + #include <sys/wait.h> #include <errno.h> +#ifdef EXECLINE_PEDANTIC_POSIX +#include <locale.h> +#endif + #include <skalibs/types.h> #include <skalibs/sgetopt.h> #include <skalibs/strerr2.h> @@ -9,6 +15,7 @@ #include <skalibs/djbunix.h> #include <skalibs/selfpipe.h> #include <skalibs/iopause.h> + #include <execline/execline.h> #define USAGE "wait [ -I | -i ] [ -r | -t timeout ] { pids... }" @@ -109,6 +116,9 @@ int main (int argc, char const **argv, char const *const *envp) int r ; int hasblock ; PROG = "wait" ; +#ifdef EXECLINE_PEDANTIC_POSIX + setlocale(LC_ALL, "") ; /* but of course, dear POSIX */ +#endif { subgetopt_t l = SUBGETOPT_ZERO ; unsigned int t = 0 ; |