summaryrefslogtreecommitdiff
path: root/utils
AgeCommit message (Collapse)Author
2003-10-26.Roland McGrath
2003-10-262003-10-26 Roland McGrath <roland@frob.com>Roland McGrath
* rpctrace.c (docs, args_doc): Make arrays, not pointers. (doc): Remove "\v.". Reported by Alfred M. Szmidt <ams@kemisten.nu>.
2003-08-032002-06-16 James A. Morrison <ja2morri@uwaterloo.ca>Marcus Brinkmann
* vmstat.c (vm_state_refresh): Use memset instead of bzero. (main): Likewise.
2002-09-172002-09-17 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* 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-10console/Marcus Brinkmann
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-09libcons/Marcus Brinkmann
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-08libcons/Marcus Brinkmann
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.
2002-08-292002-08-29 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* 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>.
2002-08-222002-08-22 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* 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.
2002-08-222002-08-22 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* 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.
2002-08-18.Roland McGrath
2002-08-182002-08-18 Roland McGrath <roland@frob.com>Roland McGrath
* fakeroot.sh: Dont use "exec" command, since the original script does not and some users use sh syntax here and not just commands.
2002-06-262002-06-25 Roland McGrath <roland@frob.com>Roland McGrath
* ping.c: File removed.
2002-06-26.Roland McGrath
2002-06-262002-06-25 Roland McGrath <roland@frob.com>Roland McGrath
* ping.c: File removed. * Makefile (targets, SRCS): Remove it. (ping-CPPFLAGS, INSTALL-ping-ops, ping): And all its little friends.
2002-06-25.Roland McGrath
2002-06-252002-06-14 Roland McGrath <roland@frob.com>Roland McGrath
* 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).
2002-06-252002-06-14 Roland McGrath <roland@frob.com>Roland McGrath
* 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).
2002-06-13.Roland McGrath
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* vminfo.c: Use `z' modifier format modifier for address/size values.
2002-06-11.Roland McGrath
2002-06-112002-06-08 Roland McGrath <roland@frob.com>Roland McGrath
* ftpdir.c (pdirent): Use %lld format for off_t value.
2002-05-28.Roland McGrath
2002-05-282002-05-28 Roland McGrath <roland@frob.com>Roland McGrath
* 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.
2002-05-282002-05-28 Roland McGrath <roland@frob.com>Roland McGrath
* 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.
2002-05-282002-05-28 Roland McGrath <roland@frob.com>Roland McGrath
* storeinfo.c (print_store): Use %z format.
2002-05-282002-05-28 Roland McGrath <roland@frob.com>Roland McGrath
* rpctrace.c (print_data): Use if instead of switch to handle FP type sizes, in case double == long double.
2002-05-212002-05-20 Ognyan Kulev <ogi@fmi.uni-sofia.bg>Marcus Brinkmann
* rpctrace.c (parse_msgid_list): Fixed the check that tests if we read exactly 3 fields from each line.
2002-05-132002-05-13 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* fakeauth.c (main): Register NEWTASK as a child with the proc server.
2002-05-132002-05-13 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* 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.
2002-05-12.Roland McGrath
2002-05-122002-05-12 Roland McGrath <roland@frob.com>Roland McGrath
* 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.
2002-05-12.Roland McGrath
2002-05-122002-05-12 Roland McGrath <roland@frob.com>Roland McGrath
* fakeauth.c (main): Don't use posix_spawnp. Use _hurd_exec instead.
2002-05-062002-05-06 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* settrans.c (main): Return 0 instead of using break (which only gets us out of the while loop).
2002-05-052002-05-05 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* fakeauth.c (main): Add ARGP_IN_ORDER to argp_parse invocation. (main: parse_opt): New function. (main): Set parser in ARGP to parse_opt.
2002-05-04.Roland McGrath
2002-05-042002-05-04 Roland McGrath <roland@frob.com>Roland McGrath
* fakeroot.sh: New file. * Makefile (targets, special-targets, SRCS): Add it.
2002-05-042002-05-04 Roland McGrath <roland@frob.com>Roland McGrath
* fakeauth.c (main): Update doc strings, clean up argp_parse call.
2002-05-04.Roland McGrath
2002-05-042002-05-04 Roland McGrath <roland@frob.com>Roland McGrath
* settrans.c (options): Add --chroot/-C option. (main_opt): Parse that option, take following args until "--" as a command to exec chroot'd to the translated node.
2002-05-042002-05-03 Roland McGrath <roland@frob.com>Roland McGrath
* vmstat.c (print_val): Use %lld printf format for val_t.
2002-05-042002-05-03 Roland McGrath <roland@frob.com>Roland McGrath
* msgport.c (str2flags): Add break after default: label.
2002-05-03.Roland McGrath
2002-05-032002-05-03 Roland McGrath <roland@frob.com>Roland McGrath
* fakeauth.c: New file. * Makefile (fakeauth): New target. (targets): Add it. (SRCS): Add fakeauth.c. (auth-MIGSFLAGS, fakeauth-CPPFLAGS, authServer-CPPFLAGS, auth_requestUser-CPPFLAGS): New variables.
2002-05-032002-05-03 Roland McGrath <roland@frob.com>Roland McGrath
* shd.c: Include <error.h> for `error' decl.
2002-05-032002-05-03 Roland McGrath <roland@frob.com>Roland McGrath
* fakeauth.c: New file. * Makefile (fakeauth): New target. (targets): Add it. (SRCS): Add fakeauth.c. (auth-MIGSFLAGS, fakeauth-CPPFLAGS, authServer-CPPFLAGS, auth_requestUser-CPPFLAGS): New variables. * Makefile (rpctrace): Put libthreads before libports.
2002-03-26*** empty log message ***Neal H. Walfield
2002-03-262002-03-23 James A. Morrison <ja2morri@uwaterloo.ca>Neal H. Walfield
* rpctrace.c (parse_msgid_list): Use ERR, not errno. * shd.c (reap): Use error, not perror. (command): Likewise. (main): Likewise. (run): Use error, not perror. Use ERR, not errno.
2002-01-30.Roland McGrath