Age | Commit message (Collapse) | Author |
|
* ps.c (current_tty_name): Don't declare as static.
* rpctrace.c (print_contents): Don't use ?: as a lvalue.
(msgids_file_p): Don't declare as static.
|
|
* rpctrace.c: Include <fnmatch.h>, <sys/stat.h>, and <dirent.h>.
(main, options): Renamed the option `-I' to `-i', and
reimplemented `-I' to search a given directory for message ID
files.
(main): Variable `err' removed.
|
|
|
|
* fsysopts.c (doc): Changed `--remount' to `--update'.
|
|
|
|
* mount.c (argp_opts): Enabled never-enabled options and added
long versions: --verbose/-v, --remount/--update/-u,
--writable/-w, --readonly/-r and --options/-o. Reported by
Ben Asselstine.
* mount.c (parse_opt): For -u, use "update" instead of the deprecated
"remount" argument.
|
|
* login.c (main): Remove extern declaration and invocation of
_argp_unlock_xxx.
|
|
* storeread.c (main): Call argp_usage if store is not set at
ARGP_KEY_END.
|
|
2003-08-17 Marcus Brinkmann <marcus@gnu.org>
* auth.c: Include <stddef.h>.
(pending_users, pending_server): Change type to struct hurd_ihash,
initialize with HURD_IHASH_INITIALIZER.
(struct pending): Change type of member LOCP to hurd_ihash_locp_t.
(S_auth_user_authenticate): Use hurd_ihash_* functions instead
ihash_*.
(S_auth_server_authenticate): Likewise.
(main): Do not allocate the hash tables.
console-client/
2003-08-17 Marcus Brinkmann <marcus@gnu.org>
* vga-dynafont.c: Include <stddef.h>.
(struct mapped_character): Change type of LOCP to
hurd_ihash_locp_t.
(struct dynafont): Change type of CHARMAP to struct hurd_ihash.
(dynafont_new): Use hurd_ihash_init instead of ihash_create.
Remove variable ERR. Call hurd_ihash_add instead of ihash_add.
(dynafont_free): Call hurd_ihash_destroy, no ihash_free.
(dynafont_lookup_internal): Use hurd_ihash_find, not ihash_find.
(dynafont_lookup_internal): Call hurd_ihash_locp_remove instead
ihash_locp_remove, and hurd_ihash_add instead ihash_add.
(dynafont_change_font): Likewise. Clean out LOCP if character is
unmapped.
ftpfs/
2003-08-17 Marcus Brinkmann <marcus@gnu.org>
* ftpfs.h: Include <hurd/ihash.h>.
(struct ftpfs): Change type of INODE_MAPPINGS to struct
hurd_ihash.
(struct ftpfs_dir_entry): Change type of INODE_LOCP to
hurd_ihash_locp_t.
* node.c (ftpfs_create_node): Call hurd_ihash_add, not ihash_add.
(netfs_node_norefs): Call hurd_ihash_locp_remove, not
ihash_locp_remove.
* fs.c: Include <stddef.h>.
(ftpfs_create): Call hurd_ihash_init, not hurd_ihash_create.
Call hurd_ihash_destroy on error.
libihash/
2003-08-17 Marcus Brinkmann <marcus@gnu.org>
* ihash.c: Rewritten.
* ihash.h: Rewritten.
* Makefile (SRCS): Remove sizes.c.
(LCLHDRS): Remove priv.h.
* primes.c, sizes.c, priv.h: Files removed.
2003-08-17 Marcus Brinkmann <marcus@gnu.org>
* ports.h (struct port_bucket): Change type of HTABLE to struct
hurd_ihash.
(struct port_info): Change type of HENTRY to hurd_ihash_locp_t.
* lookup-port.c (ports_lookup_port): Use hurd_ihash_find instead
ihash_find.
* bucket-iterate.c (_ports_bucket_class_iterate): Use
HURD_IHASH_ITERATE instead ihash_iterate.
* inhibit-all-rpcs.c (ports_inhibit_all_rpcs): Likewise.
* inhibit-bucket-rpcs.c (ports_inhibit_bucket_rpcs): Likewise.
* create-internal.c (_ports_create_port_internal): Use
hurd_ihash_add instead ihash_add.
* import-port.c (ports_import_port): Likewise.
* reallocate-from-external.c (ports_reallocate_from_external):
Likewise.
* reallocate-port.c (ports_reallocate_port): Likewise.
* transfer-right.c (ports_transfer_right): Likewise.
* create-bucket.c: Include <stddef.h>.
(ports_create_bucket): Use hurd_ihash_init instead hurd_ihash_create.
* class-iterate.c: Do not include <hurd/ihash.h>.
* claim-right.c (ports_claim_right): Call hurd_ihash_locp_remove
instead ihash_locp_remove.
* complete-deallocate.c (_ports_complete_deallocate): Likewise.
* destroy-right.c (ports_destroy_right): Likewise.
* reallocate-from-external.c (ports_reallocate_from_external):
Likewise.
* reallocate-port.c (ports_reallocate_port): Likewise.
* transfer-right.c (ports_transfer_right): Likewise.
libps/
2003-08-17 Marcus Brinkmann <marcus@gnu.org>
* ps.h (struct ps_context): Change type of members procs, ttys,
ttys_by_cttyid and users to struct hurd_ihash.
* context.c (ps_context_create): Remove variables err_procs,
err_ttys, err_ttys_by_cttyid and err_users. Use hurd_ihash_init
instead of ihash_create. Call hurd_ihash_set_cleanup and the
hurd_ihash_cleanup_t type instead of ihash_set_cleanup.
(ps_context_free): Call hurd_ihash_destroy instead of ihash_free.
(lookup): Call hurd_ihash_find instead ihash_find, hurd_ihash_add
instead ihash_add.
(ps_context_find_proc_stat): Take pointer of hash object.
(ps_context_find_tty): Likewise.
(ps_context_find_tty_by_cttyid): Likewise.
(ps_context_find_user): Likewise.
libpthread/
2003-08-17 Marcus Brinkmann <marcus@gnu.org>
* sysdeps/hurd/pt-key.h (PTHREAD_KEY_MEMBERS): Change type of
THREAD_SPECIFICS to hurd_ihash_t.
* sysdeps/hurd/pt-setspecific.c (pthread_setspecific): Call
hurd_ihash_create instead ihash_create, and hurd_ihash_add instead
ihash_add.
* sysdeps/hurd/pt-getspecific.c (pthread_getspecific): Call
hurd_ihash_find instead of ihash_find.
* sysdeps/hurd/pt-destroy-specific.c (__pthread_destroy_specific):
Call hurd_ihash_find instead of ihash_find, hurd_ihash_remove
instead of ihash_remove, and hurd_ihash_free instead of
ihash_free.
proc/
2003-08-17 Marcus Brinkmann <marcus@gnu.org>
* proc.h: Include <hurd/ihash.h>.
(struct proc): Change type of members p_pidhashloc and
p_taskhashloc to hurd_ihash_locp_t.
(struct pgrp): Likewise for pg_hashloc.
(struct session): Likewise for s_hashloc.
* hash.c: Change type of pghash, pidhash, taskhash and sidhash to
struct hurd_ihash and initialize them with HURD_IHASH_INITIALIZER.
Include stddef.h.
(pid_find): Call hurd_ihash_find instead ihash_find.
(pid_find_allow_zombie): Likewise.
(task_find): Likewise.
(task_find_nocreate): Likewise.
(pgrp_find): Likewise.
(session_find): Likewise.
(add_proc_to_hash): Call hurd_ihash_add instead ihash_add.
(add_pgrp_to_hash): Likewise.
(add_session_to_hash): Likewise.
(remove_pgrp_from_hash): Call hurd_ihash_locp_remove instead
ihash_locp_remove, and provide hash table pointer.
(remove_proc_from_hash): Likewise.
(remove_session_from_hash): Likewise.
(prociterate): Use HURD_IHASH_ITERATE instead ihash_iterate.
trans/
2003-08-17 Marcus Brinkmann <marcus@gnu.org>
* fakeroot.c: Include <stddef.h>.
(struct netnode): Change type of member idport_locp
to hurd_ihash_locp_t.
(idport_ihash): Change type to struct hurd_ihash and initialize
with HURD_IHASH_INITIALIZER.
(new_node): Call hurd_ihash_add instead of ihash_add.
(netfs_node_norefs): Call hrd_ihash_locp_remove instead
ihash_locp_remove.
(netfs_S_dir_lookup): Call hurd_ihash_find instead ihash_find.
utils/
2003-08-17 Marcus Brinkmann <marcus@gnu.org>
* rpctrace.c: Include <stddef.h>.
(struct traced_info): Change type of LOCP to hurd_ihash_locp_t.
(msgid_ihash): Change type to struct hurd_ihash, and initialize
with HURD_IHASH_INITIALIZER, don't set cleanup here.
(traced_names): Likewise.
(main): Call hurd_ihash_set_cleanup for msgid_ihash. Don't create
traced_names.
(parse_msgid_list): Call hurd_ihash_add instead ihash_add.
(new_send_wrapper): Likewise.
(msgid_info): Likewise. Call hurd_ihash_find instead ihash_find.
(rewrite_right): Likewise.
(traced_dropweak): Call hurd_ihash_locp_remove instead
ihash_locp_remove.
|
|
|
|
* storeread.c (doc, arg_doc): Make arrays, not pointers; make const.
(doc): Add leading short description line before \v.
|
|
|
|
* rpctrace.c (docs, args_doc): Make arrays, not pointers.
(doc): Remove "\v.". Reported by Alfred M. Szmidt <ams@kemisten.nu>.
|
|
* vmstat.c (vm_state_refresh): Use memset instead of bzero.
(main): Likewise.
|
|
* Makefile (prog-subdirs): Add console-client.
sutils/
2002-09-17 Marcus Brinkmann <marcus@gnu.org>
* MAKEDEV.sh (mkdev: vcs): New console device.
(mkdev: tty[0-9a-f]|tty[0-9][0-9a-f]): Replaced with new rules for
tty[1-9][0-9].
utils/
2002-09-17 Marcus Brinkmann <marcus@gnu.org>
* console-ncurses.c: File removed (the ncursesw console client is
now a driver in the console-client).
* Makefile: Revert 2002-08-22 change:
Do not include`../config.make'.
(targets) [LIBNCURSES]: Removed.
(SRCS) [LIBNCURSES]: Likewise.
(HURDLIBS) [LIBNCURSES]: Likewise.
(console-ncurses): Target removed.
(console-ncurses-CPPFLAGS): Removed.
(console-ncurses-LDLIBS): Likewise.
console-client/
2002-09-17 Marcus Brinkmann <marcus@gnu.org>
* Makefile, bdf.c, bdf.h, bell.h, console.c, display.h, driver.c,
driver.h, generic-speaker.c, input.h, pc-kbd.c, timer.c, timer.h,
unicode.h, vga.c, vga-dynacolor.c, vga-dynacolor.h, vga-dynafont.c,
vga-dynafont.h, vga-hw.h, vga-support.c, vga-support.h: New file.
|
|
2002-09-10 Marcus Brinkmann <marcus@gnu.org>
* display.c (DISPLAY_CHANGE_FLAGS): New macro.
(struct changes): New member FLAGS.
(display_flush_filechange): Handle change of flags.
(display_output_some): Initialize DISPLAY->changes.flags.
(display_start_output): Clear CONS_FLAGS_SCROLL_LOCK in DISPLAY.
(display_stop_output): Set CONS_FLAGS_SCROLL_LOCK in DISPLAY.
hurd/
2002-09-10 Marcus Brinkmann <marcus@gnu.org>
* console.h (struct cons_display): New member FLAGS.
(union cons_change_t): Likewise for WHAT->flags.
libcons/
2002-09-10 Marcus Brinkmann <marcus@gnu.org>
* cons.h: New prototype for cons_vcons_set_scroll_lock.
(struct vcons): Add member FLAGS to state.
* file-changed.c (cons_S_file_changed): Handle change of flags.
* vcons-refresh.c (cons_vcons_refresh): Copy FLAGS field.
Call cons_vcons_set_scroll_lock.
* cons-switch.c (cons_switch): Initialize VCONS_ENTRY even if
DELTA is negative.
utils/
2002-09-09 Marcus Brinkmann <marcus@gnu.org>
* console-ncurses.c (cons_vcons_set_scroll_lock): New function.
|
|
2002-09-09 Marcus Brinkmann <marcus@gnu.org>
* Makefile (SRCS): Add vcons-scrollback.c.
* vcons-scrollback.c: New file.
* cons.h (struct vcons): Add SCROLLING member.
* file-changed.c: Include <assert.h>.
(cons_S_file_changed): Be careful to take VCONS->scrolling into
account when doing clipping and scrolling.
* cons-switch.c: Roll back to earlier version with vcons ->
vcons_entry adjustments. The user is now expected to hold a
reference to the VCONS.
* cons.h: Fix prototype, too.
* vcons-open.c (cons_vcons_open): Initialize VCONS->lock,
VCONS->input and VCONS->display.
utils/
2002-09-09 Marcus Brinkmann <marcus@gnu.org>
* console-ncurses.c (console_switch): Keep a reference to the port
instead refering to it by number.
|
|
2002-09-09 Marcus Brinkmann <marcus@gnu.org>
* vcons-remove.c: New file.
* Makefile (SRCS): Add vcons-destroy.c.
* cons.h: New type vcons_list_t.
(struct vcons_list): New structure.
(struct cons_notify): Remove VCONS member.
(struct vcons): Remove members NEXT, PREV and NOTIFY. Add the
notify structure to the top to make it possible to use a vcons as
a port. New member VCONS_ENTRY.
(struct cons): Change type of members vcons_list and vcons_last to
vcons_list_t. Remove member active.
(cons_vcons_add): Change prototype to match new definition.
(cons_vcons_remove): Likewise.
(cons_switch): Likewise.
(cons_lookup): Likewise.
(cons_vcons_open): Likewise.
(cons_vcons_destroy): New prototype.
* cons-lookup.c (cons_lookup): Change type of R_VCONS argument
vcons_list_t. Change type of previous_vcons and vcons variables
to vcons_list_t. Append _entry to all these variables.
Don't allocate and initialize a vcons_t, but a vcons_list_t.
After this has been added to the list, call cons_vcons_add.
* cons-switch.c: Do not include <error.h>
(cons_switch): Add arguments ACTIVE_ID and R_VCONS. New variable
ERR and VCONS_ENTRY. Remove variable ACTIVE. Do not keep track
of active console. Instead, look it up using ACTIVE_ID. Lock the
returned console. Call cons_vcons_open, not cons_vcons_activate.
* dir-changed.c (add_one): Change VCONS to VCONS_ENTRY and its
type from vcons_t to vcons_list_t to follow cons_lookup change.
(lookup_one): Likewise.
(cons_S_dir_changed): Likewise.
* file-changed.c (cons_S_file_changed): Cast NOTIFY to VCONS.
Check that NOTIFY->cons is not set instead that NOTIFY->vcons is.
* init-init.c (cons_init): Pass cons_vcons_destroy as
clean_routine to ports_create_class.
Don't initialize CONS->active, nor DIR_NOTIFY_PORT->vcons.
* vcons-add.c (cons_vcons_add): Change argument VCONS to CONS and
VCONS_ENTRY. Don't do anything here (the user must implement it
all).
* vcons-close.c: Don't include <errno.h>, <unistd.h>, <stdio.h>,
<sys/mman.h>, <sys/fcntl.h>, <mach.h>. Include <assert.h>,
<hurd/ports.h> and <cthreads.h>.
(cons_vcons_close): Clear VCONS->vcons_entry->vcons. Derefence
and destroy VCONS.
* vcons-open.c (cons_vcons_open): Change arguments from VCONS to
CONS, VCONS_ENTRY and R_VCONS. New variable VCONS. Set up VCONS
as a port, and request notification messages on that.
* vcons-remove.c: Do not include <errno.h>.
(cons_vcons_remove): Assert that VCONS_ENTRY does not have an open
VCONS.
utils/
2002-09-09 Marcus Brinkmann <marcus@gnu.org>
* console-ncurses.c: New global variable global_lock.
(main): Initialize global_lock.
(cons_vcons_activate): Removed.
(console_switch): New function.
(cons_vcons_add): New function.
(input_loop): Call console_switch, not cons_switch. Do not take
active_vcons lock but global_lock.
(cons_vcons_update): Take global lock.
(cons_vcons_set_cursor_pos): Likewise.
(cons_vcons_set_cursor_status): Likewise.
(cons_vcons_scroll): Likewise.
(cons_vcons_write): Likewise.
(cons_vcons_beep): Likewise.
(cons_vcons_flash): Likewise.
|
|
* console-ncurses.c (main): Call endwin () before bailing out
because of an error.
(cons_vcons_write): Use getyx and wmove on stdscr instead getsyx
and setsyx (which operate on newscr, and mess up the cursor
anyway, probably because we don't commit the change immediately).
Submitted by David Walter <dwalter@syr.edu>.
|
|
* aclocal.m4 (hurd_LIB_NCURSESW): New test, modified from GNU
inetutils 1.4.0.
* configure.in: Use hurd_LIB_NCURSESW.
* config.make.in (LIBNCURSESW): New variable, substituted by
configure.
(NCURSESW_INCLUDE): Likewise.
* Makefile (lib-subdirs): Add libcons.
(prog-subdirs): Add console.
console/
2002-08-22 Marcus Brinkmann <marcus@gnu.org>
* console.h: Move file to ../hurd/.
* Makefile (LCLHDRS): Remove console.h.
* display.c: Include <hurd/console.h> instead "console.h".
* console.c: Likewise.
hurd/
2002-08-22 Marcus Brinkmann <marcus@gnu.org>
* console.h: Move here from ../console/.
* Makefile (INSTHDRS): Add console.h.
utils/
2002-08-22 Marcus Brinkmann <marcus@gnu.org>
* Makefile: Include `../config.make' early on to get LIBNCURSESW
variable from configure before including Makeconf.
(targets) [LIBNCURSES]: Add console-ncurses.
(SRCS) [LIBNCURSES]: Add console-ncurses.c.
(HURDLIBS) [LIBNCURSES]: Add cons.
(console-ncurses): New target.
(console-ncurses-CPPFLAGS): New variable.
(console-ncurses-LDLIBS): Likewise.
|
|
* aclocal.m4 (hurd_LIB_NCURSESW): New test, modified from GNU
inetutils 1.4.0.
* configure.in: Use hurd_LIB_NCURSESW.
* config.make.in (LIBNCURSESW): New variable, substituted by
configure.
(NCURSESW_INCLUDE): Likewise.
* Makefile (lib-subdirs): Add libcons.
(prog-subdirs): Add console.
console/
2002-08-22 Marcus Brinkmann <marcus@gnu.org>
* console.h: Move file to ../hurd/.
* Makefile (LCLHDRS): Remove console.h.
* display.c: Include <hurd/console.h> instead "console.h".
* console.c: Likewise.
hurd/
2002-08-22 Marcus Brinkmann <marcus@gnu.org>
* console.h: Move here from ../console/.
* Makefile (INSTHDRS): Add console.h.
utils/
2002-08-22 Marcus Brinkmann <marcus@gnu.org>
* Makefile: Include `../config.make' early on to get LIBNCURSESW
variable from configure before including Makeconf.
(targets) [LIBNCURSES]: Add console-ncurses.
(SRCS) [LIBNCURSES]: Add console-ncurses.c.
(HURDLIBS) [LIBNCURSES]: Add cons.
(console-ncurses): New target.
(console-ncurses-CPPFLAGS): New variable.
(console-ncurses-LDLIBS): Likewise.
|
|
|
|
* fakeroot.sh: Dont use "exec" command, since the original script
does not and some users use sh syntax here and not just commands.
|
|
* ping.c: File removed.
|
|
|
|
* ping.c: File removed.
* Makefile (targets, SRCS): Remove it.
(ping-CPPFLAGS, INSTALL-ping-ops, ping): And all its little friends.
|
|
|
|
* Makefile (INSTALL-vminfo-ops): Variable removed (no setuid).
* vmstat.c (ensure_def_pager_info): If get_privileged_ports fails with
EPERM, try to open /servers/default-pager instead.
* Makefile (INSTALL-vmstat-ops): Variable removed (no setuid).
|
|
* vmstat.c (ensure_def_pager_info): If get_privileged_ports fails with
EPERM, try to open /servers/default-pager instead.
* Makefile (INSTALL-vmstat-ops): Variable removed (no setuid).
|
|
|
|
* vminfo.c: Use `z' modifier format modifier for address/size values.
|
|
|
|
* ftpdir.c (pdirent): Use %lld format for off_t value.
|
|
|
|
* fakeauth.c (idvec_copyout): Fix argument type.
* pids.c (add_fn_pids): unsigned -> size_t
* w.c (add_utmp_procs): Likewise.
* login.c (add_canonical_host): Likewise.
* ps.c (main): Likewise.
* login.c (add_entry, main): Likewise.
* settrans.c (main): int -> size_t
* showtrans.c (main): Likewise.
* fsysopts.c (main): Likewise.
* vmstat.c (main): Use int for FWIDTHS.
* ping.c (main): size_t -> socklen_t
* fakeauth.c (S_auth_getids, S_auth_makeauth,
S_auth_server_authenticate): u_int -> size_t
* showtrans.c (main): Cast field width/precision args to int.
|
|
* pids.c (add_fn_pids): unsigned -> size_t
* w.c (add_utmp_procs): Likewise.
* login.c (add_canonical_host): Likewise.
* ps.c (main): Likewise.
* login.c (add_entry, main): Likewise.
* settrans.c (main): int -> size_t
* showtrans.c (main): Likewise.
* fsysopts.c (main): Likewise.
* vmstat.c (main): Use int for FWIDTHS.
* ping.c (main): size_t -> socklen_t
* fakeauth.c (S_auth_getids, S_auth_makeauth,
S_auth_server_authenticate): u_int -> size_t
* showtrans.c (main): Cast field width/precision args to int.
|
|
* storeinfo.c (print_store): Use %z format.
|
|
* rpctrace.c (print_data): Use if instead of switch to handle FP type
sizes, in case double == long double.
|
|
* rpctrace.c (parse_msgid_list): Fixed the check that tests if we
read exactly 3 fields from each line.
|
|
* fakeauth.c (main): Register NEWTASK as a child with the proc
server.
|
|
* devprobe.c: Include <version.h>.
(argp_program_version): New variable.
* storecat.c: Include <version.h>.
(argp_program_version): New variable.
* storeread.c: Include <version.h>.
(argp_program_version): New variable.
* gcore.c: Include <version.h>.
(argp_program_version): New variable.
|
|
|
|
* fakeroot.sh: Inside the chroot'd fakeauth environment,
run a shell that chdir's to what was our original current
directory (by name) before exec'ing the user's command.
|
|
|
|
* fakeauth.c (main): Don't use posix_spawnp. Use _hurd_exec instead.
|
|
* settrans.c (main): Return 0 instead of using break (which only
gets us out of the while loop).
|
|
* fakeauth.c (main): Add ARGP_IN_ORDER to argp_parse invocation.
(main: parse_opt): New function.
(main): Set parser in ARGP to parse_opt.
|
|
|
|
* fakeroot.sh: New file.
* Makefile (targets, special-targets, SRCS): Add it.
|
|
* fakeauth.c (main): Update doc strings, clean up argp_parse call.
|