diff options
author | Roland McGrath <roland@gnu.org> | 1999-07-11 01:39:03 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1999-07-11 01:39:03 +0000 |
commit | dafd420fc9ee9c76bdbb015068713700b2a16cc4 (patch) | |
tree | 9afaffb64c3f8b6485b62780c2f6c0511fd15b56 /utils | |
parent | 7bb59f74a2ffedd6bf2037ffe83070841055fc21 (diff) |
1999-07-10 Roland McGrath <roland@baalperazim.frob.com>
* pids.c: Add #include <sys/mman.h> for munmap decl.
* showtrans.c: Likewise.
* login.c: Likewise.
* storeread.c: Likewise.
* msgport.c: Likewise.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/login.c | 1 | ||||
-rw-r--r-- | utils/msgport.c | 5 | ||||
-rw-r--r-- | utils/pids.c | 1 | ||||
-rw-r--r-- | utils/showtrans.c | 1 | ||||
-rw-r--r-- | utils/storeread.c | 1 |
5 files changed, 7 insertions, 2 deletions
diff --git a/utils/login.c b/utils/login.c index d107a425..e3d7c4bc 100644 --- a/utils/login.c +++ b/utils/login.c @@ -32,6 +32,7 @@ #include <time.h> #include <assert.h> #include <version.h> +#include <sys/mman.h> #include <netinet/in.h> #include <arpa/inet.h> diff --git a/utils/msgport.c b/utils/msgport.c index 5f494e1c..59362d87 100644 --- a/utils/msgport.c +++ b/utils/msgport.c @@ -31,6 +31,7 @@ #include <error.h> #include <version.h> #include "pids.h" +#include <sys/mman.h> /* From libc (not in hurd.h) */ char * @@ -428,7 +429,7 @@ cmd_umask (pid_t pid, mach_port_t msgport, int argc, char *argv[]) umask = strtol(argv[0], 0, 8); err = msg_set_init_int (msgport, task, INIT_UMASK, umask); } - else + else { err = msg_get_init_int (msgport, task, INIT_UMASK, &umask); if (!err) @@ -492,7 +493,7 @@ static const struct argp_option cmd_options[] = command line (probably the first argument for this command). STATE is the argp parser state as used in parse_cmd_opt. */ static error_t -add_cmd (cmd_func_t func, size_t minargs, size_t maxargs, +add_cmd (cmd_func_t func, size_t minargs, size_t maxargs, char *arg, struct argp_state *state) { cmd_t *cmd; diff --git a/utils/pids.c b/utils/pids.c index 5e80a767..1f3ae316 100644 --- a/utils/pids.c +++ b/utils/pids.c @@ -25,6 +25,7 @@ #include <hurd.h> #include <hurd/process.h> #include <mach.h> +#include <sys/mman.h> #include "parse.h" #include "pids.h" diff --git a/utils/showtrans.c b/utils/showtrans.c index d990b6c9..dbbada75 100644 --- a/utils/showtrans.c +++ b/utils/showtrans.c @@ -26,6 +26,7 @@ #include <fcntl.h> #include <unistd.h> #include <version.h> +#include <sys/mman.h> #include <error.h> #include <argz.h> diff --git a/utils/storeread.c b/utils/storeread.c index faae7225..80c36466 100644 --- a/utils/storeread.c +++ b/utils/storeread.c @@ -23,6 +23,7 @@ #include <unistd.h> #include <hurd.h> #include <sys/fcntl.h> +#include <sys/mman.h> #include <hurd/store.h> |