aboutsummaryrefslogtreecommitdiff
path: root/exec/hashexec.c
Commit message (Collapse)AuthorAgeFilesLines
* 2002-05-29 Roland McGrath <roland@frob.com>Roland McGrath2002-05-291-9/+12
| | | | * hashexec.c (check_hashbang): Fix fs id port arg in io_identity call.
* 2000-07-20 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell2000-07-201-1/+1
| | | | | * hashexec.c (check_hashbang): Count characters in interp correctly. Fix from Kalle Olavi Niemitalo <tosi@stekt.oulu.fi>.
* 2000-03-17 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-03-171-5/+8
| | | | | * hashexec.c (check_hashbang): Use strpbrk directly instead of strsep. Fix up INTERP_LEN properly in the no-argument case.
* 2000-03-17 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell2000-03-171-0/+3
| | | | * main.c (S_exec_init): Don't use MOVE_SEND in Hurd RPC.
* 2000-03-13 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-03-131-11/+11
| | | | * hashexec.c (check_hashbang): Fix up multiple fencepost brainos.
* 2000-03-13 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-03-131-2/+2
| | | | * hashexec.c (check_hashbang): Fix fencepost error in last change.
* 2000-03-13 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-03-131-28/+35
| | | | | | | | | * exec.c (map): Made global. * priv.h: Declare it. (map_fsize, map_vsize): New macros for accessing state set up by map. * hashexec.c (check_hashbang): Use map and copying operations rather than stdio to extract the first line from the file. Move finish call to immediately after reading the line.
* 2000-02-27 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-02-281-8/+14
| | | | | | | | * hashexec.c (check_hashbang: user_fd): Add a user ref to DTABLE[FD] send right, because caller (hurd_file_name_lookup internals) will consume one. * hashexec.c (check_hashbang): When dealloc'ing DTABLE ports, optimize out syscall for null ports.
* 1999-07-06 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-07-111-5/+9
| | | | | | | | * exec.c (load_section): Use mmap instead of vm_allocate when allocating in mach_task_self (). (servercopy): Likewise. (do_exec): Likewise. * hashexec.c (check_hashbang): Likewise.
* 1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-07-031-8/+5
| | | | | | | | | | | | | | | * core.c (core_dump_task): Use munmap instead of vm_deallocate, when it's from our own task. * elfcore.c: Likewise. * exec.c (load_section): Likewise. (map): Likewise. (close_exec_stream): Likewise. (finish_mapping): Likewise. (load): Likewise. (do_exec): Likewise. (S_exec_setexecdata): Likewise. * hashexec.c (check_hashbang): Likewise. * main.c (deadboot): Likewise.
* 1999-05-16 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-05-161-3/+2
| | | | * hashexec.c (check_hashbang): Fix bug in last change.
* 1999-05-15 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-05-151-9/+19
| | | | | * hashexec.c (check_hashbang): Trim trailing blanks after interpreter argument.
* 1998-11-25 Mark Kettenis <kettenis@phys.uva.nl>Roland McGrath1998-11-291-1/+1
| | | | * hashexec.c (check_hashbang): Fix typo: interplen -> interp_len.
* 1998-10-26 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-11-071-6/+6
| | | | * hashexec.c: Use mach_* instead of __mach_*.
* Thu Nov 5 15:26:50 1998 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1998-11-051-8/+23
| | | | | | | * hashexec.c (check_hashbang): Keep INTERP_LEN with the correct value (bytes of memory holding INTERP) for later use. (check_hashbang: setup_args): Set argv[0] from the interpreter name, not copied from the existing command line.
* (check_hashbang):Miles Bader1997-02-051-3/+3
| | | | `preempter' -> `preemptor'.
* (hurd_file_name_path_lookup): Declaration removed.Miles Bader1996-06-191-12/+2
| | | | (check_hashbang): Pass 0 for new LOOKUP arg to hurd_file_name_lookup.
* (search_path): Don't make PATH or PFXED_NAME const.Miles Bader1996-05-101-2/+1
|
* (check_hashbang) [userport/reauthenticate]: Use newMichael I. Bushnell1996-05-101-2/+2
| | | | | auth_user_authenticate inerface. (check_hashbang) [setup_args/search_path]: Declare PATH to be `char const *'.
* (check_hashbang): Use io_identity instead of io_stat to compare files.Roland McGrath1996-05-071-13/+13
|
* (check_hashbang: user_port): Use default root port when secure.Roland McGrath1996-04-231-2/+8
|
* (check_hashbang): Pass open flags & mode args to hurd_file_name_path_lookup.Miles Bader1996-03-281-3/+12
|
* (check_hashbang): Correctly deal with interpreter lines having no argument.Miles Bader1996-02-261-4/+12
|
* (check_hashbang): Use hash_file_name_path_lookup() instead of doing the pathMiles Bader1996-01-301-49/+14
| | | | search ourselves, and get rid of LOOKUP_CWDIR & associated logic.
* (check_hashbang):Miles Bader1996-01-111-14/+21
| | | | | | When using executable name found on the path, don't return alloca()ed memory from search_path(); use malloc() instead. Use envz_get() to search the environment.
* (check_hashbang): Rearrange arg frobbing code somewhat to useRoland McGrath1996-01-041-82/+53
| | | | hurd_catch_signal instead of old preemption interface.
* (check_hashbang): Undo boneheaded last change.Roland McGrath1995-11-211-4/+4
|
* (check_hashbang): Actually declare FILE_NAME and FILE volatile, notMichael I. Bushnell1995-11-211-2/+2
| | | | the contents.
* (check_hashbang) [prepare_args]: Declare FILE_NAME, ERROR, and NAMEMichael I. Bushnell1995-11-211-3/+3
| | | | volatile.
* (user_port): Fixed port selection logic.Roland McGrath1995-11-161-13/+20
| | | | (check_hashbang): Fixed PATH searching in script name guessing.
* (check_hashbang: prepare_args): Enable and clean up code to guess the nameRoland McGrath1995-10-181-88/+87
| | | | of the script before resorting to /dev/fd.
* (check_hashbang): Copy passed args from the right place.Roland McGrath1995-10-181-1/+2
|
* Initial revisionRoland McGrath1995-10-181-0/+442