summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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.
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* Makefile (mig-sheader-prefix): New variable. (installhdrs): Add trivfs_*_S.h for fs, io, fsys (server stub headers). ($(MIGSTUBS:%Server.o=%.sdefsi)): Give dep $(srcdir)/fsmutations.h.
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* Makeconf (%_S.h %Server.c): Prepend $(mig-sheader-prefix) to stub header file name. (INSTALLED_LOCAL_HEADERS): Put them in the build directory, not the source. Make files with #include rather than symlinks. (../$(dir)/%: %): New dummy pattern rule. (INCLUDES): New variable broken out of CPPFLAGS. Add -I$(..)include. Include ..-relative dirs only if [$(dir) != .]. (CPPFLAGS): Use that.
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-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* fsck.h (struct dirinfo): Revert i_isize to using u_int.
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* boot.c (ds_device_write): int -> size_t in store_write call. (ds_device_write_inband): Likewise.
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* dir.c (diskfs_lookup_hard): int -> ino_t
2002-06-13(S_tioctl_tiocspgrp): revert unintentional checkinRoland McGrath
2002-06-13.Roland McGrath
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* ptyio.c (pty_io_readable): int -> size_t in argument type. * term.h: Update decl. * users.c (trivfs_S_io_write): int -> size_t in AMT argument type. (trivfs_S_io_readable): Likewise. (trivfs_S_io_read): Likewise. Also u_int -> size_t, off_t -> loff_t. (trivfs_S_io_write): Likewise. (trivfs_S_io_map): Add reply port args.
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* linux-src/include/net/ip_fib.h: Fix obsolescent #endif syntax.
2002-06-13.Roland McGrath
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* file-exec.c (trivfs_S_file_exec): Add reply port args.
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* io-version.c (trivfs_S_io_server_version): Fix receiver arg type.
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* dir-readdir.c (trivfs_S_dir_readdir): Revert last change.
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* dir-readdir.c (netfs_S_dir_readdir): Revert last change.
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* dir-readdir.c (diskfs_S_dir_readdir): Revert last change.
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* fs.defs (dir_readdir): Revert AMOUNT type to int, since it's a count of entries and not a byte count.
2002-06-132002-06-13 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* Makefile (DIST_FILES): New target. (MIGSTUBS): Likewise. (OBJS): Add $(MIGSTUBS). * ourfs_notify.defs: New file. * console.c: Diddle order of typedefs. (netfs_attempt_read): Clip AMT to bytes left to read before calling display_read. (netfs_S_file_notice_changes): New function. * console.h: Include <stdint.h>, not <sys/types.h>. Change all types from u_int32_t to uint32_t. * display.c: Include <stddef.h> and "outfs_notify_U.h". Change all u_int_32 types to uint32_t. (struct modreq): New structure. (struct display): New member filemod_reqs. (free_modreqs): New function. (display_notice_changes): Likewise. (display_notice_filechange): Likewise. (display_destroy): Free filemod_reqs member of DISPLAY. (MATRIX_POS): Macro removed. (screen_fill): Rewritten. (screen_shift_left): New function. (screen_shift_right): Likewise. (screen_scroll_up): Function removed. (screen_scroll_down): Likewise. (screen_scroll_left): Likewise. (screen_scroll_right): Likewise. (handle_esc_bracket): Use new screen_* functions. (display_output_one): Store old cursor and screen attributes, and if they have been changed, send file change notifications. * display.h: New prototype for display_notice_changes.
2002-06-122002-06-12 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* console.c: Include <argz.h>. Do not include "console.h", but inline it. New macro DEFAULT_ENCODING. (struct cons): De-const-ify member ENCODING. (mycons, cons): Remove global variables. (vcons_lookup): Use default encoding if CONS->encoding is not set. (new_node): Access CONS through VCONS. Adjust size of display node. (netfs_attempt_read): Truncate length to read before reading. (netfs_S_io_map): New function. (options): New global variable. (parse_opt): New function. (netfs_append_args): New function. (main): New variable CONS to hold console structure. Rediddle initialization to allocate memory for it, parse arguments, and create the root node in correct order. Also call display_init. * console.h: Rewritten with new meaning. It now describes the public interface of the console. * display.c: Include <assert.h>, <error.h>, <hurd.h>, <hurd/pager.h> and "console.h". (struct screen): Removed. (struct cursor): Remove members X, Y and status. (struct user_pager_info): New struct. (struct display): Remove member SCREEN, add new members USER, UPI, MEMOBJ and MEMOBJ_SIZE. (pager_bucket): New global variable. (display_get_filemap): New function. (pager_clear_user_data): Likewise. (pager_read_page): Likewise. (pager_write_page): Likewise. (pager_unlock_page): Likewise. (pager_report_extent): Likewise. (pager_dropweak): Likewise. (service_paging_requests): Likewise. (screen_init): Renamed to ... (user_create): ... this new function and changed to allocate memory object and map it for USER data in display structure. (screen_deinit): Renamed to ... (user_destroy): ... this new function and rewrote it. (MATRIX_POS): New macro. (screen_fill): Take DISPLAY argument instead SCREEN. Use MATRIX_POS. (screen_scroll_up): Likewise. (screen_scroll_down): Likewise. (screen_scroll_left): Likewise. (screen_scroll_right): Likewise. (handle_esc_bracket_hl): Take DISPLAY argument instead CURSOR. (handle_esc_bracket): Access screen and cursor fields correctly. (display_output_one): Likewise. (display_getsize): Likewise. (display_init): New function. (display_create): New variables width, height, lines. Call user_create, not screen_init. Call user_destroy, not screen_deinit. (display_destroy): Call user_destroy, not screen_deinit. (display_read): Reimplement using memory mapping. * display.h: New prototypes for display_init and display_get_filemap.
2002-06-11.Roland McGrath
2002-06-112002-06-11 Roland McGrath <roland@frob.com>Roland McGrath
* Makeconf (CPPFLAGS): Add -D_FILE_OFFSET_BITS=64. (hurd-version): Update to 0.3 so as to change sonames.
2002-06-11.Roland McGrath
2002-06-112002-06-08 Roland McGrath <roland@frob.com>Roland McGrath
* mkfs.c (iput): Use %Ld format for ino_t values.
2002-06-112002-06-08 Roland McGrath <roland@frob.com>Roland McGrath
* dir.c, pass1.c, pass1b.c, pass2.c: Use %Ld for ino_t values. * utilities.c: Likewise.
2002-06-112002-06-08 Roland McGrath <roland@frob.com>Roland McGrath
* Makeconf (CPPFLAGS): Add -D_FILE_OFFSET_BITS=64.
2002-06-112002-06-07 Roland McGrath <roland@frob.com>Roland McGrath
* libtreefs/treefs.h: Use io_statbuf_t in place of struct stat throughout.
2002-06-112002-06-08 Roland McGrath <roland@frob.com>Roland McGrath
* ftpdir.c (pdirent): Use %lld format for off_t value.
2002-06-112002-06-08 Roland McGrath <roland@frob.com>Roland McGrath
* fsck.h: Use ino_t for lfdir. * setup.c: Likewise.
2002-06-112002-06-08 Roland McGrath <roland@frob.com>Roland McGrath
* fsck.h: Use ino_t for lfdir. * setup.c: Likewise. * fsck.h (struct dirinfo): Use size_t for i_isize.
2002-06-112002-06-08 Roland McGrath <roland@frob.com>Roland McGrath
* dir.c, pass1.c, pass2.c, utilities.c: Use %Ld for ino_t values.
2002-06-112002-06-08 Roland McGrath <roland@frob.com>Roland McGrath
* inode.c (diskfs_cached_lookup): Use ino_t for argument.
2002-06-112002-06-08 Roland McGrath <roland@frob.com>Roland McGrath
* alloc.c, dir.c: Use %Ld format for ino_t values. * alloc.c (diskfs_alloc_node): Use %Ld format for blkcnt_t values.
2002-06-112002-06-08 Roland McGrath <roland@frob.com>Roland McGrath
* dir.c (diskfs_direnter_hard): Use size_t for OLDSIZE. Fail with EOVERFLOW when it would exceed that width. * alloc.c, dir.c: Use %Ld format for ino_t values. * alloc.c (diskfs_alloc_node): Use %Ld format for blkcnt_t values.