aboutsummaryrefslogtreecommitdiff
path: root/exec
Commit message (Collapse)AuthorAgeFilesLines
...
* 2000-03-13 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-03-131-2/+0
| | | | | | | | | * priv.h (EXECDATA_STREAM): Define this only #ifdef BFD. The non-BFD exec server is now completely independent of stdio magic; it uses only those interfaces documented in the C library manual, which are provided both by old GNU stdio and by GNU libio. Resurrecting the BFD exec server will require using magic again, for which libio-specific magic needs to be written.
* .Roland McGrath2000-03-131-0/+17
|
* 2000-03-13 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-03-132-34/+168
| | | | | | | | | | | | | | | | | | | * priv.h (EXECDATA_STREAM): New macro, always defined for now. (struct execdata) [! EXECDATA_STREAM]: Add members map_buffer, map_bsize, map_fsize, map_filepos in place of stream. (map_buffer, map_filepos, map_set_fsize): New macros for accessing those or stream. [! EXECDATA_STREAM] (map_fsize, map_vsize): Define using new members. * exec.c (map): Rewritten purely using those accessor macros. (input_room): Set the __target, __bufp, __error, and __eof members, which are no longer set by map. [! EXECDATA_STREAM] (prepare_stream, prepare_in_memory): Make no-ops. (input_room, close_exec_stream, fake_seek, prepare_stream, prepare_in_memory): Conditionalize these defns on [EXECDATA_STREAM]. (load_section): Always use map instead of stdio. Replace bcopy with memcpy. (check_gzip: zipread): Rewrite using map instead of stdio. (check_bzip2: zipread): Likewise.
* .Roland McGrath2000-03-131-0/+2
|
* 2000-03-13 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-03-131-11/+11
| | | | * hashexec.c (check_hashbang): Fix up multiple fencepost brainos.
* .Roland McGrath2000-03-131-0/+2
|
* 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.
* .Roland McGrath2000-03-131-0/+13
|
* 2000-03-13 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-03-132-30/+50
| | | | | | | | | * 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-03-13 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-03-131-8/+29
| | | | | | | | | | | | | | * 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. * exec.c (map): If E->file_data is set, diagnose EOF before going to direct io_read. (prepare_in_memory): New function, broken out of check_gzip before last change. (check_gzip, check_bzip2): Use it.
* .Roland McGrath2000-03-131-0/+12
|
* 2000-03-13 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-03-131-32/+39
| | | | | | | | | | | | * exec.c (prepare_stream): New function, broken out of prepare. (prepare): Call it. [_STDIO_USES_IOSTREAM]: Do #error if this is defined. (map, input_room, close_exec_stream, fake_seek, prepare_stream): Conditionalize all these definitions on [! _STDIO_USES_IOSTREAM]. Only map and prepare_stream are called from elsewhere in the code. (check_gzip): Don't reinitialize E->stream, since it will in fact not be used again. (check_bzip2): Likewise.
* .Roland McGrath2000-03-101-0/+5
|
* 2000-03-09 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-03-101-3/+2
| | | | | * hostarch.c (elf_machine_matches_host): Don't recognize EM_486, since newer <elf.h>'s don't define it any more.
* .Roland McGrath2000-02-281-0/+9
|
* 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.
* .Roland McGrath1999-11-081-0/+6
|
* 1999-11-08 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-11-081-3/+1
| | | | | | * exectrans.c (trivfs_support_write, trivfs_support_exec): Variables removed. (trivfs_allow_open): Set to just O_READ.
* ChangeLogRoland McGrath1999-09-131-0/+4
|
* 1999-09-09 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-09-131-3/+1
| | | | * Makefile (exec.static-LDFLAGS): Variable removed.
* .Roland McGrath1999-07-181-0/+4
|
* 1999-07-17 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-07-181-2/+1
| | | | * exec.c (servercopy): Removed unused variable.
* .Roland McGrath1999-07-111-8/+12
|
* 1999-07-11 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-07-111-1/+2
| | | | * exec.c (load_section): Fix typos in last change.
* 1999-07-06 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-07-113-22/+35
| | | | | | | | * 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.
* .Roland McGrath1999-07-111-0/+6
|
* 1999-07-10 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-07-111-26/+41
| | | | | | | | | | | | | | | | * hostarch.c (mach_host_elf_machine): Replaced with ... (elf_machine_matches_host): New function. Instead of returning an ELF EM_* code, take one and check if it matches the host; operate only on mach_host_self(), cache results, Grok CPU_TYPE_{I486,PENTIUM,PENTIUMPRO} to accept EM_386 or EM_486. Grok POWERPC, ALPHA, HPPA types. * exec.c (check_elf): Call elf_machine_matches_host instead of comparing against elf_machine. (load_section): #if 0 out no-op code that uses elf_machine. * priv.h (elf_machine_matches_host): Declare it. (elf_machine, mach_host_elf_machine): Remove decls. * main.c (main) [!BFD]: Don't call mach_host_elf_machine. (elf_machine): Variable removed.
* .Roland McGrath1999-07-101-0/+14
|
* 1999-07-10 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-07-101-2/+6
| | | | | | | | | | | * exec.c (check_elf): Call elf_machine_matches_host instead of comparing against elf_machine. (load_section): #if 0 out no-op code that uses elf_machine. * priv.h (elf_machine_matches_host): Declare it. (elf_machine, mach_host_elf_machine): Remove decls. * main.c (main) [!BFD]: Don't call mach_host_elf_machine. (elf_machine): Variable removed. * exec.c (map): Don't cast arg to munmap to vm_address_t.
* 1999-07-10 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-07-101-5/+1
| | | | | | | | | | * exec.c (check_elf): Call elf_machine_matches_host instead of comparing against elf_machine. (load_section): #if 0 out no-op code that uses elf_machine. * priv.h (elf_machine_matches_host): Declare it. (elf_machine, mach_host_elf_machine): Remove decls. * main.c (main) [!BFD]: Don't call mach_host_elf_machine. (elf_machine): Variable removed.
* 1999-07-10 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-07-101-5/+4
| | | | | | | | | | | * exec.c (check_elf): Call elf_machine_matches_host instead of comparing against elf_machine. (load_section): #if 0 out no-op code that uses elf_machine. * priv.h (elf_machine_matches_host): Declare it. (elf_machine, mach_host_elf_machine): Remove decls. * main.c (main) [!BFD]: Don't call mach_host_elf_machine. (elf_machine): Variable removed. * priv.h: Add #include <sys/mman.h> for munmap decl.
* 1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-07-036-54/+46
| | | | | | | | | | | | | | | * 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.
* .Roland McGrath1999-06-041-0/+5
|
* 1999-06-04 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-06-041-2/+2
| | | | | * exec.c (map): Fix mapping calls to use F->__offset consistently instead of F->__target.
* .Roland McGrath1999-05-161-0/+4
|
* 1999-05-16 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-05-161-3/+2
| | | | * hashexec.c (check_hashbang): Fix bug in last change.
* .Roland McGrath1999-05-151-1/+6
|
* 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-09-05 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>Thomas Bushnell1999-04-304-2/+1875
| | | | | | | | | * do-bunzip2.c: New file. * exec.c (check_bzip2): New function. (BZIP2): New cpp symbol. If defined, bunzip2 engine is enabled. * Makefile (bzip2-objects): New variable. (OBJS): Add bzip2-objects. (CPPFLAGS): Add -DBZIP2.
* .Roland McGrath1999-04-271-0/+4
|
* 1999-04-27 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-04-271-2/+26
| | | | * exec.c (do_exec): Implement EXEC_SIGTRAP flag.
* .Roland McGrath1998-12-301-0/+4
|
* 1998-12-27 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-12-301-0/+1
| | | | * main.c (S_exec_init): Deallocate PROCSERVER port when finished.
* .Roland McGrath1998-12-271-0/+21
|
* 1998-12-21 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-12-271-4/+8
| | | | * Makefile (HURDLIBS): Add missing implied library deps.
* 1998-12-27 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-12-271-48/+19
| | | | | | | | | | | * main.c (S_exec_init): Remove variable DEV_MASTER; pass null instead since we don't need it. Use assert_perror on getting the host-priv port and on startup_essential_task, since init will hang until we've done made that RPC. 1998-12-21 Roland McGrath <roland@baalperazim.frob.com> * main.c (S_exec_init): Don't call set_active_trans. (set_active_trans): Function removed.
* 1998-12-26 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-12-271-1/+1
| | | | | | | * exec.c (do_exec): Fix conditional for cleaning up INTERP, from nonnull E.interp.section to nonnull INTERP.file. If we failed to open the interpreter file, INTERP.file will be null and the rest of INTERP will be uninitialized.
* .Roland McGrath1998-11-291-0/+7
|
* 1998-11-25 Mark Kettenis <kettenis@phys.uva.nl>Roland McGrath1998-11-291-2/+2
| | | | | * main.c (S_exec_init): Call _hurd_proc_init with new args set to zero.
* 1998-11-25 Mark Kettenis <kettenis@phys.uva.nl>Roland McGrath1998-11-291-1/+1
| | | | * hashexec.c (check_hashbang): Fix typo: interplen -> interp_len.