summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2002-06-252002-06-25 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* term.h (struct bottomhalf): New member GWINSZ. * devio.c (devio_bottom): Add new member. * ptyio.c (ptyio_bottom): Likewise. * hurdio.c (hurdio_bottom): Likewise. (hurdio_gwinsz): New function. (tioc_caps): Change type to unsigned int. (TIOC_CAP_GWINSZ): New symbol. * users.c (open_hook): Call GWINSZ of bottom layer after establishing the carrier.
2002-06-25.Roland McGrath
2002-06-252002-06-14 Roland McGrath <roland@frob.com>Roland McGrath
* swapon.c (swaponoff): If get_privileged_ports fails with EPERM, try to open /servers/default-pager instead.
2002-06-252002-06-14 Roland McGrath <roland@frob.com>Roland McGrath
* tmpfs.c (main): If get_privileged_ports fails with EPERM, try to open /servers/default-pager instead.
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-252002-06-14 Roland McGrath <roland@frob.com>Roland McGrath
* proxy-defpager.c: New file. * Makefile (targets, SRCS): Add it. (proxy-defpager): New target. (OBJS): Add default_pagerServer.o here.
2002-06-252002-06-14 Roland McGrath <roland@frob.com>Roland McGrath
* paths.h (_SERVERS_DEFPAGER): New macro.
2002-06-252002-06-25 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* Makefile (HURDLIBS): Add pager, reported by Alfred M. Szmidt.
2002-06-242002-06-25 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* Makefile (LCLHDRS): Add priv.h and mutations.h. (MIGSTUBS): Add tioctlServer.o * console.c: Include <hurd/ioctl-types.h>. (new_node): Bump up st_size for display node. (S_tioctl_tiocflush, S_tioctl_tiocgwinsz, S_tioctl_tiocstart, S_tioctl_tiocstop, S_tioctl_tiocoutq, S_tioctl_tiocspgrp, S_tioctl_tiocgpgrp): New functions. (S_tioctl_tiocmodg, S_tioctl_tiocmods, S_tioctl_tiocexcl, S_tioctl_tiocnxcl, S_tioctl_tiocgeta, S_tioctl_tiocseta, S_tioctl_tiocsetaw, S_tioctl_tiocsetaf, S_tioctl_tiocgetd, S_tioctl_tiocsetd, S_tioctl_tiocdrain, S_tioctl_tiocmget, S_tioctl_tiocmset, S_tioctl_tiocsig, S_tioctl_tiocext, S_tioctl_tiocswinsz, S_tioctl_tiocremote, S_tioctl_tiocmbic, S_tioctl_tiocmbis, S_tioctl_tiocpkt, S_tioctl_tiocsti, S_tioctl_tioccdtr, S_tioctl_tiocsdtr, S_tioctl_tioccbrk, S_tioctl_tiocsbrk): New stubs. (console_demuxer): New function. (main): Don't call netfs_server_loop, but call ports_manage_port_operations_multithread, so we can use our own demuxer. * mutations.h: Use intran and outtran for netfs. * priv.h: Likewise. * console.h (cons_change_t): Add bits for bell_audible and bell_visible. (struct cons_display): Add member BELL. * display.c (struct changes): Add new members bell_audible and bell_visible. Add bit flag macro names for those. (display_flush_filechange): Start with first index in buffer. Signal bell events. (display_record_filechange): Set DISPLAY_CHANGE_MATRIX bit in the disjoint case after flushing the update. (display_output_one): Recognize '\a' as audible bell and '\Eg' as visible bell. (display_output_some): Handle bell updates.
2002-06-242002-06-24 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* console.h (cons_color_t): New enum type replacing color macros. (CONS_COLOR_MAX): New macro. (cons_change_t): New type. (struct cons_display): New member CHANGES. * console.c: Include "console.h". (DEFAULT_FOREGROUND, DEFAULT_FOREGROUND_NAME, DEFAULT_BACKGROUND, DEFAULT_BACKGROUND_NAME): New macros. (struct cons): New members foreground and background. (vcons_lookup): Pass colors to display_create invocation. (new_node): Fix st_size for display node. (color_names): New array. (options): Add options to set default foreground and background color. (parse_color): New function. (parse_opt): Implement new options. (netfs_append_args): Add new options to output. (main): Set default colors. * Makefile (DIST_FILES): Remove target. (MIGSTUBS): Remove ourfs_notifyUser.o and add notifyServer.o. * display.c: Do not include "ourfs_notify_U.h". (struct modreq): New member PENDING. (struct notify): New structure. (struct display): New members FILEMOD_REQS_PENDING and NOTIFY_PORT. (pager_read_page): Hand out previously returned pages. (pager_unlock_page): Assert that this is not called. (notify_class, notify_bucket): New port class and bucket global variables. (nowait_file_changed): New function, modified from mig output. (do_mach_notify_port_deleted): New stub function. (do_mach_notify_port_destroyed): New stub function. (do_mach_notify_no_senders): New stub function. (do_mach_notify_dead_name): New stub function. (do_mach_notify_send_once): New stub function. (do_mach_notify_msg_accepted): New function. (service_notifications): New function. (display_notice_changes): Call nowait_file_changed with new argument. Initialize REQ->pending. (display_notice_filechange): Remove arguments except DISPLAY. Set PENDING flags in pending filemod requests. Call nowait_file_changed with new notify argument. If notification will be sent, move modreq structure to pending list. (display_flush_filechange): Rewritten to use ring buffer to store changes. (user_create): Initialize new members of struct cons_display. (display_init): Initialize notify_class and notify_bucket. (display_create): Accept new arguments for default colors. Initialize new members of struct display. (display_destroy): Remove pending filemod requests and destroy the notification port. Do not free the display structure memory. (display_destroy_complete): New function. * display.h: Add new arguments to prototype of display_create.
2002-06-23.Roland McGrath
2002-06-232002-06-22 Roland McGrath <roland@frob.com>Roland McGrath
* elf-load.c (exec_load) [__alpha__]: Grok Elf64_* headers and check for EM_ALPHA. * exec.c (set_regs) [__alpha__]: Alpha implementation snarfed from CMU file bootstrap/alpha/exec.c in MK83a.
2002-06-232002-06-22 Roland McGrath <roland@frob.com>Roland McGrath
* load.c (boot_script_exec_cmd): Twiddle decls of serverboot_bunzip2 and serverboot_gunzip. * load.c (boot_script_exec_cmd): Cast int to intptr_t before char *.
2002-06-22.Roland McGrath
2002-06-222002-06-22 Roland McGrath <roland@frob.com>Roland McGrath
* storeio.c (parse_opt): Fix fencepost error in -n arg parsing. Reported by Nicola Girardi <nicola@g-n-u.de>.
2002-06-21.Roland McGrath
2002-06-212002-06-21 Roland McGrath <roland@frob.com>Roland McGrath
* streamio.c (parse_opt): Fix fencepost error in -n arg parsing. Reported by Nicola Girardi <nicola@g-n-u.de>.
2002-06-20.Roland McGrath
2002-06-202002-06-20 Roland McGrath <roland@frob.com>Roland McGrath
* firmlink.c (trivfs_S_io_read): Fix pointer arithmetic. Reported by Nicola Girardi <nicola@g-n-u.de>.
2002-06-18Fix small typo in comment.Marcus Brinkmann
2002-06-182002-06-18 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* console.h: Update all CONS_KEY_* macros to match other terminfo definitions (like "linux", "screen", "gnome"). Add CONS_CHAR_* macros for terminal graphic characters. * display.c (struct attr): New member ALTCHAR to flag usage of alternate character set. (display_notice_filechange): Make static. (handle_escape_bracket_m): Set ALTCHAR to 0 when resetting. Support new modes 10 and 11 to disable and enable ALTCHAR. (limit_cursor): New function, moved to global scope from ... (handle_escape_bracket): ... here. (linefeed): New function, moved to global scope from ... (display_output_one): ... here. (horizontal_tab): New function. (handle_escape_bracket): Add alias \E[' to \E[G for VT100 compatibility. Add capability \E[a (horizontal cursor position relative) for ECMA-48 compatibility. Add capabilities \E[I (horizontal tab) and \E[Z (backward tabulation) for ECMA-48 compatibility. Move capabilities \E[s and \E[u to ... (display_output_one): ... here as \E7 and \E8 for VT100 compatibility. (altchar_to_ucs4): New function. (display_output_one): Use altchar_to_ucs4 when in altchar mode. Add \EM (reset) capability.
2002-06-17Fix typo.Marcus Brinkmann
2002-06-172002-06-17 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* console.c (new_node): Adjust size of display node. * console.h: Add macros for color names. Add macros for intensity names. Add new types conchar_t and conchar_attr_t, which represent a console matrix cell and the attribute of one such cell, resp. Add macros for keycodes. (struct cons_display): Change type of _matrix member to conchar_t. * display.c (struct attr): Rewrite, usiong cons_attr_t to hold the attributes. (handle_escape_bracket_m): Use new members of ATTR. (display_flush_filechange): Send notification for changed matrix before the notification for new cur_line. Fix types in length calculation. (conchar_memset): New function. (user_create): Accept CHR and ATTR arguments. Fix calculation of NPAGES. Use conchar_memset instead of wmemset. (screen_fill): Fix type of ATTR argument. Use conchar_memset instead of wmemset. (screen_shift_left): Fix type of ATTR argument. Set attribute of empty cells. Fix length calculation. (screen_shift_right): Likewise. (handle_escape_bracket): Set default parameter for HUP. Be more ECMA-48 conform. (display_output_one): Fix arguments in screen_fill invocation. Set attribute for character output. Add <NEL> from ECMA-48. (display_create): Use 50 lines for now. Set default colors, and add new arguments to user_create invocation. CVSi: ----------------------------------------------------------------------
2002-06-16.Roland McGrath
2002-06-162002-06-15 Roland McGrath <roland@frob.com>Roland McGrath
* socket-ops.c (S_socket_getopt): Use a local int for result param of getsockopt hook function.
2002-06-162002-06-15 Roland McGrath <roland@frob.com>Roland McGrath
* forks.c (main): Fix cast of sbrk result.
2002-06-162002-06-15 Roland McGrath <roland@frob.com>Roland McGrath
* setup.c (page_write_file_direct): Use proper type for result param of device_write.
2002-06-15.Roland McGrath
2002-06-152002-06-15 Roland McGrath <roland@frob.com>Roland McGrath
* magic.c (trivfs_S_dir_readdir): u_int -> size_t
2002-06-152002-06-15 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* display.c (struct changes): Change type of WHICH from int to unsigned int. (display_flush_filechanges): Likewise for argument TYPE. Fix a zillion bugs. (display_record_filechange): Fix half a zillion bugs. (screen_shift_left): Fix order of arguments. Just flag a normal write change for the whole region, instead trying to be clever. (screen_shift_right): Likewise.
2002-06-14.Roland McGrath
2002-06-142002-06-14 Roland McGrath <roland@frob.com>Roland McGrath
* default_pager.c: #include "default_pager_S.h"
2002-06-14.Roland McGrath
2002-06-142002-06-14 Roland McGrath <roland@frob.com>Roland McGrath
* Makeconf (cleantarg): Add $(libname).so.$(hurd-version). * Makeconf ($(patsubst %.o,%.d,$(filter %.o,$(OBJS)))): Give these dep files a dependency on $(INSTALLED_LOCAL_HEADERS).
2002-06-132002-06-14 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* display.c (struct changes): New structure to temporarily hold changes to the display. (struct display): New member CHANGES. (display_flush_filechange): New function. (display_record_filechange): Likewise. (screen_fill): Use display_record_filechange instead display_notice_filechange. (display_output_one): Likewise. (screen_shift_left): Flush pending filechanges before scrolling. (screen_shift_right): Likewise. (display_output_one): Don't notice changes here ... (display_output_some): ... but here. * display.c (struct user_pager_info): Add members MEMOBJ_NPAGES and MEMOBJ_PAGES to hold the allocated and returned pages. (struct display): Remove member MEMOBJ_SIZE. (pager_clear_user_data): Deallocate returned pages for this pager object. (pager_read_page): Add an assertion to check that we don't create new pages for already allocated and returned pages. (pager_write_page): Implement by just holding to the page and storing its address in the pager object for later deallocation. (pager_report_extent): Implement using new member MEMOBJ_NPAGES rather than MEMOBJ_SIZE. (user_create): Allocate extra storage for the returned pages in UPI.
2002-06-13.Roland McGrath
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* io.c (trivfs_S_io_read, trivfs_S_io_write): off_t -> loff_t. Fix DATA argument type. (trivfs_S_file_sync): Add missing last arg.
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* dir.c (diskfs_lookup_hard): Cast int to intptr_t before ino_t.
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* new-fifo.c (trivfs_S_io_map): Add reply port args. (trivfs_S_io_select): Remove bogus last arg.
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* firmlink.c (trivfs_S_io_read): Fix type of DATA argument. * streamio.c (trivfs_S_io_read): Likewise. (trivfs_S_io_write): Likewise. * hello.c (trivfs_S_io_read): Likewise. * hello-mt.c (trivfs_S_io_read): Likewise. * null.c (trivfs_S_io_read): Likewise. (trivfs_S_io_write): Likewise. (trivfs_S_file_set_size): Add reply port args. * hello.c (trivfs_S_io_read): off_t -> loff_t * hello-mt.c (trivfs_S_io_read): Likewise. * streamio.c (trivfs_S_io_read, trivfs_S_io_write): Likewise. (trivfs_S_file_sync): Add missing arg.
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* firmlink.c (trivfs_S_io_read): Fix type of DATA argument. * streamio.c (trivfs_S_io_read): Likewise. (trivfs_S_io_write): Likewise. * hello.c (trivfs_S_io_read): Likewise. * hello-mt.c (trivfs_S_io_read): Likewise. * null.c (trivfs_S_io_read): Likewise. (trivfs_S_io_write): Likewise. (trivfs_S_file_set_size): Add reply port args. * firmlink.c (trivfs_S_io_read): off_t -> loff_t (trivfs_S_io_select): Remove bogus last arg.
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* fifo.c (trivfs_S_io_map): Add reply port args. (trivfs_S_io_select): Remove bogus last arg.
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* firmlink.c (trivfs_S_io_read): Fix type of DATA argument. * streamio.c (trivfs_S_io_read): Likewise. (trivfs_S_io_write): Likewise. * hello.c (trivfs_S_io_read): Likewise. * hello-mt.c (trivfs_S_io_read): Likewise. * null.c (trivfs_S_io_read): Likewise. (trivfs_S_io_write): Likewise. (trivfs_S_file_set_size): Add reply port args. * null.c (trivfs_S_io_map): Add reply port args. (trivfs_S_io_read, trivfs_S_io_write): off_t -> loff_t (trivfs_S_file_set_size): Likewise. (trivfs_S_io_select): Remove bogus last arg.
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* dir-chg.c: Don't include stub header, trivfs.h now gets those decls. * dir-link.c: Likewise. * dir-lookup.c: Likewise. * dir-mkdir.c: Likewise. * dir-mkfile.c: Likewise. * dir-readdir.c: Likewise. * dir-rename.c: Likewise. * dir-rmdir.c: Likewise. * dir-unlink.c: Likewise. * file-access.c: Likewise. * file-chauthor.c: Likewise. * file-chflags.c: Likewise. * file-chg.c: Likewise. * file-chmod.c: Likewise. * file-chown.c: Likewise. * file-get-fs-options.c: Likewise. * file-get-storage-info.c: Likewise. * file-get-trans.c: Likewise. * file-get-transcntl.c: Likewise. * file-getcontrol.c: Likewise. * file-getfh.c: Likewise. * file-getlinknode.c: Likewise. * file-lock.c: Likewise. * file-reparent.c: Likewise. * file-set-size.c: Likewise. * file-set-trans.c: Likewise. * file-statfs.c: Likewise. * file-sync.c: Likewise. * file-syncfs.c: Likewise. * file-utimes.c: Likewise. * fsys-forward.c: Likewise. * fsys-get-options.c: Likewise. * fsys-getroot.c: Likewise. * fsys-goaway.c: Likewise. * fsys-set-options.c: Likewise. * fsys-stubs.c: Likewise. * fsys-syncfs.c: Likewise. * io-async-icky.c: Likewise. * io-async.c: Likewise. * io-duplicate.c: Likewise. * io-identity.c: Likewise. * io-map.c: Likewise. * io-modes-get.c: Likewise. * io-modes-off.c: Likewise. * io-modes-on.c: Likewise. * io-owner-get.c: Likewise. * io-owner-mod.c: Likewise. * io-pathconf.c: Likewise. * io-read.c: Likewise. * io-readable.c: Likewise. * io-reauthenticate.c: Likewise. * io-restrict-auth.c: Likewise. * io-revoke.c: Likewise. * io-seek.c: Likewise. * io-select.c: Likewise. * io-stat.c: Likewise. * io-stubs.c: Likewise. * io-write.c: Likewise.
2002-06-13.Roland McGrath
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* priv.h (trivfs_protid_t): Type removed (now in trivfs.h).
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* tunnel.c (trivfs_S_io_read): off_t -> loff_t (trivfs_S_io_map): Add reply port args. (trivfs_S_io_read): Fix argument types. Check mmap for failure.
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* pfinet.h (trivfs_protid_t): Type removed (now in trivfs.h).
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* priv.h: All declarations moved to ... * trivfs.h: ... here. #include those server stub headers. * fsmutations.h (FILE_IMPORTS, IO_IMPORTS, FSYS_IMPORTS): Use <hurd/trivfs.h> instead of "priv.h" here.