-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1999-07-03 Thomas Bushnell, BSG <[email protected]>
* 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.
- Loading branch information
Thomas Bushnell
committed
Jul 3, 1999
1 parent
5798491
commit 84c0546
Showing
6 changed files
with
21 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
1999-07-03 Thomas Bushnell, BSG <[email protected]> | ||
|
||
* 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. | ||
|
||
1999-07-01 Mark Kettenis <[email protected]> | ||
|
||
* Makefile (INSTALL-addauth-ops, INSTALL-setauth-ops, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* Send messages to selected processes | ||
Copyright (C) 1998 Free Software Foundation, Inc. | ||
Copyright (C) 1998, 1999 Free Software Foundation, Inc. | ||
Written by Jose M. Moya <[email protected]> | ||
|
@@ -125,7 +125,7 @@ cmd_getenv (pid_t pid, mach_port_t msgport, int argc, char *argv[]) | |
printf ("%d: %s\n", pid, p); | ||
} | ||
if (data != buf) | ||
vm_deallocate (mach_task_self (), (vm_address_t)data, len); | ||
munmap (data, len); | ||
return err; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* Pid parsing/frobbing | ||
Copyright (C) 1997 Free Software Foundation, Inc. | ||
Copyright (C) 1997, 1999 Free Software Foundation, Inc. | ||
Written by Miles Bader <[email protected]> | ||
|
@@ -65,8 +65,7 @@ add_fn_pids (pid_t **pids, size_t *num_pids, unsigned id, | |
else | ||
err = ENOMEM; | ||
if (new_pids != _new_pids) | ||
vm_deallocate (mach_task_self (), (vm_address_t)new_pids, | ||
num_new_pids * sizeof (pid_t)); | ||
munmap (new_pids, num_new_pids * sizeof (pid_t)); | ||
} | ||
|
||
return err; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* Show files' passive translators. | ||
Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. | ||
Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc. | ||
Written by Miles Bader <[email protected]> | ||
|
@@ -85,8 +85,7 @@ main (int argc, char *argv[]) | |
} | ||
|
||
if (trans != buf) | ||
vm_deallocate (mach_task_self (), | ||
(vm_address_t)trans, trans_len); | ||
munmap (trans, trans_len); | ||
|
||
status = 0; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* Write portions of a store to stdout | ||
Copyright (C) 1996, 1997 Free Software Foundation, Inc. | ||
Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc. | ||
Written by Miles Bader <[email protected]> | ||
This file is part of the GNU Hurd. | ||
|
@@ -54,7 +54,7 @@ main (int argc, char **argv) | |
if (write (1, data, data_len) < 0) | ||
error (6, errno, "stdout"); | ||
if (data != buf) | ||
vm_deallocate (mach_task_self (), (vm_address_t)data, data_len); | ||
munmap (data, data_len); | ||
} | ||
|
||
error_t parse_opt (int key, char *arg, struct argp_state *state) | ||
|