summaryrefslogtreecommitdiff
path: root/exec/hashexec.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1998-11-07 21:01:16 +0000
committerRoland McGrath <roland@gnu.org>1998-11-07 21:01:16 +0000
commit95d72b554e38b11e27bcc372f8a69d071beec836 (patch)
tree12507a77686cd690b6548d1bda098aeed0d80b97 /exec/hashexec.c
parenteb76578ec4c9177c600f1d512611b0ef518f6348 (diff)
1998-10-26 Roland McGrath <roland@baalperazim.frob.com>
* hashexec.c: Use mach_* instead of __mach_*.
Diffstat (limited to 'exec/hashexec.c')
-rw-r--r--exec/hashexec.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/exec/hashexec.c b/exec/hashexec.c
index e430b454..eabd74d7 100644
--- a/exec/hashexec.c
+++ b/exec/hashexec.c
@@ -1,5 +1,5 @@
/* GNU Hurd standard exec server, #! script execution support.
- Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1995, 96, 97, 98 Free Software Foundation, Inc.
Written by Roland McGrath.
This file is part of the GNU Hurd.
@@ -257,7 +257,7 @@ check_hashbang (struct execdata *e,
dev_t dev;
ino_t ino;
error = io_identity (name_file, &id, &dev, &ino);
- __mach_port_deallocate (__mach_task_self (), id);
+ mach_port_deallocate (mach_task_self (), id);
if (!error && id == fileid)
{
file_name = name;
@@ -265,10 +265,10 @@ check_hashbang (struct execdata *e,
}
else if (free_name)
free (name);
- __mach_port_deallocate (__mach_task_self (), name_file);
+ mach_port_deallocate (mach_task_self (), name_file);
}
- __mach_port_deallocate (__mach_task_self (), fileid);
+ mach_port_deallocate (mach_task_self (), fileid);
}
if (file_name == NULL)
@@ -306,7 +306,7 @@ check_hashbang (struct execdata *e,
namelen = strlen (file_name) + 1;
new_argvlen
- = (argvlen - strlen (argv) - 1) /* existing args - old argv[0] */
+ = (argvlen - strlen (argv) - 1) /* existing args - old argv[0] */
+ interplen + len + namelen; /* New args */
e->error = vm_allocate (mach_task_self (),
@@ -318,7 +318,7 @@ check_hashbang (struct execdata *e,
if (! setjmp (args_faulted))
{
char *other_args;
-
+
p = new_argv;
/* INTERP */