Age | Commit message (Collapse) | Author |
|
|
|
* exec.c [! EXECDATA_STREAM] (prepare_stream): Replace no-op with real
function to initialize map_* members to zero.
|
|
* 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.
|
|
|
|
* 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.
|
|
|
|
* hashexec.c (check_hashbang): Fix up multiple fencepost brainos.
|
|
|
|
* hashexec.c (check_hashbang): Fix fencepost error in last change.
|
|
|
|
* 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): 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.
|
|
|
|
* 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.
|
|
|
|
* mgt.c (allocate_proc): Don't do mach_port_request_notification here.
(proc_death_notify): New function, do it here instead.
(complete_proc): Call proc_death_notify.
* main.c (main): Call proc_death_notify on STARTUP_PROC after
we have set its task port.
* proc.h: Declare proc_death_notify.
|
|
|
|
* balloc.c (ext2_free_blocks, ext2_new_block): Fix formats to avoid
-Wformat warnings.
* getblk.c (ext2_alloc_block, inode_getblk, ext2_getblk): Likewise.
* ialloc.c (ext2_count_free_inodes): Likewise.
* truncate.c (trunc_direct): Likewise.
* pager.c (pending_blocks_write, diskfs_grow): Likewise.
|
|
|
|
* hostarch.c (elf_machine_matches_host): Don't recognize EM_486,
since newer <elf.h>'s don't define it any more.
|
|
|
|
|
|
|
|
* i386/csw.S: #undef __ELF__ before defining it, since
it is usually predefined.
|
|
* boot.c (ds_device_get_status): Accept *STATUSLEN greater than needed.
|
|
|
|
* dir.c (diskfs_get_directs): Don't allocate buffer for *DATA until
after scanning for ENTRY and possibly returning EOF.
|
|
|
|
* file-exec.c (diskfs_S_file_exec): Give the new peropen for the exec
server O_EXEC permission as well as O_READ.
|
|
* 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.
|
|
|
|
* main.c (main): Call configure_device on loopback_dev.
* linux-src/net/ipv4/devinet.c (configure_device): Call
dev_change_flags with IFF_UP flag.
|
|
|
|
* context.c (ps_context_find_tty_by_cttyid): Use the ttys_by_cttyid
hash table, not the ttys hash table.
|
|
Remove the su utility, which is incompatible with traditional su
as provided by sh-utils and used by some portable shell scripts.
The Hurdish su functionality is available as `setauth --save'.
* su.c: File removed.
* Makefile (targets): Remove su.
(SRCS): Remove su.c.
(su): Target removed from various dependency rules.
(su-LDLIBS): Variable removed.
* unsu.c (doc): Refer to setauth --save rather than su.
|
|
|
|
* socket.c (make_sock_user): Take new argument CONSUME.
* pfinet.h: Update decl.
* io-ops.c (S_io_reauthenticate, S_io_restrict_auth, S_io_duplicate):
Callers changed, these all pass false.
* socket-ops.c (S_socket_create, S_socket_accept): Callers changed,
these ones pass true.
|
|
* glue-include/linux/socket.h (memcpy_fromiovec): Update *IOV to
consume bytes copied from the available buffer.
(memcpy_tokerneliovec): Likewise.
(memcpy_toiovec): Just call memcpy_tokerneliovec.
|
|
|
|
* Makefile: Move include ../Makeconf earlier, since it sets srcdir.
|
|
|
|
* linux-src (many files): Merge Linux 2.2.13 and 2.2.14 code.
* glue-include/linux/mm.h (PAGE_SIZE, num_physpages): New macros.
(__get_free_pages): New inline function.
|
|
|
|
Import of Linux 2.2.14 subset (ipv4 stack and related)
|
|
|
|
|
|
|
|
Import of Linux 2.2.13 subset (ipv4 stack and related)
|
|
|
|
* ext2_fs.h: Update from Linux 2.3.42 version (ext2_fs_i.h unchanged).
* inode.c (check_high_bits): In accordance with Linux 2.3.42 behavior,
permit 32-bit uids on non-hurd filesystems unless i_dtime is zero
(which indicates an extra old Linux ext2 implementation I guess).
|