summaryrefslogtreecommitdiff
path: root/utils/msgport.c
AgeCommit message (Collapse)Author
2023-12-29Use mach_msg_type_number_t whenever required to avoid warningsFlavio Cruz
Message-ID: <20231229212105.858759-3-flaviocruz@gmail.com>
2023-04-18utils/msgport.c: Add cmd_report_waitSergey Bugaev
This exposes msg_report_wait. For example: $ msgport --report-wait --pid $$ 26997: 2 threads 26997: thread 0: proc_wait_request [init#3] 26997: thread 1: msgport Message-Id: <20230418104915.12301-1-bugaevc@gmail.com>
2022-02-12Fix warningSamuel Thibault
* utils/msgport.c (cmd_umask): Use int instead of mode_t for umask, since msg_get_init_int takes an int*.
2018-03-05Fix warningsSamuel Thibault
* libdiskfs/boot-start.c (diskfs_start_bootstrap): Fix printf format. * libfshelp/delegate.c: Include <alloca.h> and <stdlib.h>. * libfshelp/start-translator-long.c: Include <stdlib.h>. * libshouldbeinlibc/ugids-verify-auth.c (server_verify_make_auth): Fix prototypes for password_check_group and password_check_user. * libstore/argp.c: Include <stdlib.h>. * libstore/task.c: Include <stdlib.h>. * exec/exec.c: Include <mach/vm_param.h>. * libbpf/bpf_impl.c: Include <stdlib.h>. * proc/info.c (S_proc_getloginpids): Remove local variables leader_task and leader_sub. * proc/main.c (main): Remove local variable original_argv. * boot/boot.c (task_died, S_mach_notify_new_task): Fix printf format. * exec/elfcore.c: Include <alloca.h> and <mach/vm_param.h>. * trans/crash.c: Include <hurd/msg.h>. * trans/random.c: Include <signal.h>. * utils/login.c: Include <signal.h>. * utils/id.c: Include <hurd/msg.h>. * utils/devprobe.c: Include <stdlib.h>. * utils/addauth.c: Include <hurd/msg.h>. * utils/frobauth-mod.c: Include <hurd/msg.h>. * utils/storeread.c: Include <stdlib.h>. * utils/msgport.c: Include <hurd/msg.h>. * sutils/clookup.c (file_name_lookup_carefully): Fix lookup function prototype, make head and tail const. * utils/rpcscan.c: Include <stdlib.h>. * sutils/bless.c: Include <stdlib.h>. * fstests/fstests.c: Include <stdlib.h>. * startup/startup.c (argz_task_insert_right): Fix printf format. * init/init.c: Include <stdlib.h>.
2002-05-042002-05-03 Roland McGrath <roland@frob.com>Roland McGrath
* msgport.c (str2flags): Add break after default: label.
2002-01-052002-01-04 Roland McGrath <roland@frob.com>Roland McGrath
* msgport.c (str2flags): Use const in argument type; make static. Set O_CREAT for "w" mode. Grok "a" to set O_APPEND. (cmd_setfd): Always call str2flags, giving it a default string. (cmd_stdin, cmd_stdout, cmd_stderr): Likewise. (cmd_options): Update doc strings.
2000-03-172000-03-17 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* frobauth-mod.c (frobauth_modify): Don't use MOVE_SEND in Hurd RPC. * msgport.c (do_setfd, cmd_chcwdir, cmd_cdroot, cmd_chcrdir): Likewise.
1999-07-111999-07-10 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* pids.c: Add #include <sys/mman.h> for munmap decl. * showtrans.c: Likewise. * login.c: Likewise. * storeread.c: Likewise. * msgport.c: Likewise.
1999-07-031999-07-03 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* login.c (cat): Use munmap instead of vm_deallocate. (check_owned): Likewise. (kill_login): Likewise. * storeread.c (main): Likewise. * showtrans.c (main): Likewise. * pids.c (add_fn_pids): Likewise. * msgport.c (cmd_getenv): Likewise.
1998-08-25Fri Aug 21 19:25:12 1998 Jose M. Moya <josem@gnu.org>Roland McGrath
* msgport.c: Comments added. (add_cmd): cmd_add renamed to add_cmd. (parse_cmd_opt): cmd_parse_opt renamed to parse_cmd_opt.
1998-07-251998-07-25 Jose M. Moya <josem@gnu.org>Roland McGrath
* msgport.c: Fixed to deallocate ports.
1998-07-241998-07-24 Jose M. Moya <josem@gnu.org>Roland McGrath
* msgport.c: New file. * Makefile (targets): Add `msgport'. (SRCS): Add `msgport.c'. (msgport): Add dependencies on parse.o and pids.o.