summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-11-20Just destroy port rights in default_pagerSergio Lopez
* mach-defpager/default_pager.c (seqnos_memory_object_terminate): Simply call `mach_port_destroy' instead of managing rights through `mach_port_mod_refs'.
2011-11-20Fix defpager into using the correct control portMaksym Planeta
The reply_port is only the correct control port when RPCs are from the kernel, not from e.g. tmpfs, such as default_pager_object_set_size calls. * mach-defpager/default_pager.c (seqnos_memory_object_terminate, S_default_pager_object_set_size): Make default pager use its own memory object control ports for external objects, remove reply_to parameter. * trans/proxy-defpager.c (S_default_pager_object_set_size): Remove reply_to parameter. * hurd/default_pager.defs (default_pager_object_set_size): Remove unused parameter.
2011-11-20Work with memory object only after vm_map has been performedMaksym Planeta
* tmpfs/node.c (diskfs_get_filemap): Work with memory object only after vm_map has been performed.
2011-11-15Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/hurdSamuel Thibault
2011-11-15Add commentsSamuel Thibault
2011-11-15Keep at least one request handler thread.Diego Nieto Cid
* libports/manage-multithread.c: Startover when no other thread is listenening for requests.
2011-11-07Allow /hurd/init to be a symlink.Ludovic Courtès
* libdiskfs/boot-start.c (diskfs_start_bootstrap): Retry `dir_lookup' calls for INITNAME until either SYMLOOP_MAX is reached or the lookup process completes.
2011-11-05* configure: Regenerate.Thomas Schwinge
2011-11-05mach-defpager: Declare `__malloc_initialize_hook' as volatile.Ludovic Courtès
* mach-defpager/kalloc.c (__MALLOC_HOOK_VOLATILE): New macro.
2011-11-05Disable NFS translator and daemon compilation when Sun RPC is lacking.Ludovic Courtès
* Makefile (prog-subdirs): Make `nfs' and `nfsd' conditional on $(HAVE_SUN_RPC) = yes. * config.make.in (HAVE_SUN_RPC): New variable. * configure.in: Check for <rpc/types.h> and `clnt_create'. * README.CVS: Document dependency on a Sun RPC implementation.
2011-10-20Populate a [build]/lib directory with links to all shared libraries.Thomas Schwinge
* Makeconf (libs): Add dependency to create these links.
2011-10-20Merge branch 'tls/libthreads'Thomas Schwinge
Conflicts: libthreads/ChangeLog
2011-10-20TLS support for libthreads.Samuel Thibault
* libthreads/cprocs.c (cproc_create): Call into glibc to allocate static TLS block. * libthreads/cthread_internals.h (tcbhead_t): New structure; as in glibc. (cproc_setup): Take TCB parameter. (_dl_allocate_tls): Declare; from glibc. * libthreads/alpha/thread.c (cproc_setup): Compile-time warning for missing TLS support. * libthreads/i386/thread.c (cproc_setup): Imlement TLS support.
2011-10-19Fix building of nfs.static.Thomas Schwinge
* nfs/Makefile (HURDLIBS): Add ihash (for ports). * nfs/ops.c (netfs_set_translator): Don't define. It is the EOPNOTSUPP stub that is already being defined in libnetfs/set-get-trans.c.
2011-10-19libnetfs: handle _PC_PATH_MAX in pathconfPino Toscano
Explicitly return -1 also for _PC_PATH_MAX to indicate there is no limit for it, otherwise EINVAL is returned for it. * libnetfs/io-pathconf.c (netfs_S_io_pathconf): Handle _PC_PATH_MAX too.
2011-10-19libdiskfs: handle _PC_PATH_MAX in pathconfPino Toscano
Explicitly return -1 also for _PC_PATH_MAX to indicate there is no limit for it, otherwise EINVAL is returned for it. * libdiskfs/io-pathconf.c (diskfs_S_io_pathconf): Handle _PC_PATH_MAX too.
2011-10-19Add missing format strings for error, printk, problemPino Toscano
Some calls to `error', `printk', and `problem' lacked a format string, leading to build failure when compiling with stricter CFLAGS. * nfs/mount.c (mount_root): Add format string for `error' calls which lacked it. * pfinet/main.c (pfinet_bind): Likewise. * term/main.c (main): Likewise. * utils/shd.c (run): Likewise. * utils/storeinfo.c (main): Likewise. * pfinet/linux-src/include/net/tcp.h (tcp_clear_xmit_timer): Add format string for `printk' call which lacked it. (tcp_timer_is_set): Likewise. * ufs-fsck/utilities.c (punt): Add format string for `problem' call which lacked it.
2011-10-03Sync pager before clearing MAY_CACHE flagSergio López
Clearing MAY_CACHE flag on a pager initiates a memory object termination if this one is not referenced anymore. If the object has a significant number of dirty pages (i.e. a file recently created was unlinked before diskfs periodical sync) this operation generates a lot of stress on the translator. This is one of the most common sources for thread storms. Sync'ing the pager before clearing that flag ensures that there aren't dirty pages in the object before its termination. * ext2fs/pager.c (drop_pager_softrefs): Sync pager before clearing MAY_CACHE flag.
2011-08-22Fix 'make dist' in doc.Diego Nieto Cid
* doc/Makefile (DIST_FILES): Remove target files. (lndist): Depend on lndist-info-targets (lndist-info-targets): New target. Distribute target files.
2011-08-22* include/Makefile (lndist): copy files from $(srcdir).Diego Nieto Cid
2011-08-22Be less aggressive about switching to bigger unitsOlaf Buddenhagen
* utils/vmstat.c (print_val): Switch size unit at 10000 instead of 1024.
2011-08-20fix common misspellingsJonathan Neuschäfer
* Fix spelling with codespell[1] and manually review it. [1] http://git.profusion.mobi/cgit.cgi/lucas/codespell/
2011-08-20pfinet/linux-src: fix a memory leakJonathan Neuschäfer
* pfinet/linux-src/net/ipv4/ip_options.c (ip_options_get): calculate the size of opt only once, free opt before returning -EFAULT.
2011-08-20Fix localhost() after memory failureSamuel Thibault
* libshouldbeinlibc/localhost.c (localhost): Free and reset buf when reallocation failed.
2011-08-20fix a realloc-related memory leak in localhost()Jonathan Neuschäfer
* libshouldbeinlibc/localhost.c (localhost): assign the return value of realloc to a temporary variable to avoid losing the old value of buf in the case of realloc failing.
2011-08-11Fix spurious port deallocationSamuel Thibault
* proc/mgt.c (S_proc_exception_raise): On proc_exception_raise forwarding error, return MIG_NO_REPLY instead of 0, since the reply port may have been consumed, and the task is being terminated anyway.
2011-08-08Fix restoring from XorgSamuel Thibault
* console-client/vga.c (vga_display_restore_status): Use VGA_GFX_MISC_B8TOBF instead of VGA_GFX_MISC_A0TOAF.
2011-08-08Let GNU Mach messages appear under Hurd consoleSamuel Thibault
* console-client/vga-dynafont.c (dynafont_new): Force ASCII glyphs as being always trivially mapped. * console-client/vga-hw.h (VGA_VIDEO_MEM_BASE_ADDR): Set macro to 0x0b8000. * console-client/vga-support.c [!OSKIT_MACH]: Do not include <device/device.h> and <hurd.h>, remove VIDMMAP_BEGIN, VIDMMAP_SIZE and VIDMMAP_KDOFS macros. (vga_init): Remove code which maps video memory from the kd device. Use VGA_GFX_MISC_B8TOBF instead of VGA_GFX_MISC_A0TOAF or VGA_GFX_MISC_A0TOBF.
2011-08-08Fix typoSamuel Thibault
* console-client/vga-dynafont.c (dynafont_lookup_internal): Fix typo.
2011-07-04Fix one of the auth protocol racesSamuel Thibault
See http://lists.gnu.org/archive/html/bug-hurd/2010-07/msg00010.html * auth/auth.c (pending): Duplicate structure into... (pending_user, pending_server): ... new structure. (pending_users): Use pending_user structure. (pending_servers): Use pending_server structure. (S_auth_user_authenticate): Rework loops to wait for the server to have finished with sending uids. (S_auth_server_authenticate): Rework loops to notify the user when uids are sent.
2011-07-04Add Marcus' console ttys.Samuel Thibault
* config/ttys: Add tty[1-6].
2011-06-21Set default umask to 022Samuel Thibault
* daemons/runsystem.sh: Call umask 022.
2011-05-16Fix crash on fstab-existing mountSamuel Thibault
Fix crash when invoking mount with a pair of parameters which already exists in fstab * sutils/fstab.c (fstab_add_mntent): Do not free `mounted_fs' when it is the same as `fs'.
2011-05-16fstab_find: also try to call realpath()Samuel Thibault
For symlinks and non-absolute paths. * sutils/fstab.c (fstab_find): Also call `fstab_find_device' and `fstab_find_mount' on path returned by `realpath'.
2011-05-06Fix port leakSamuel Thibault
* libtrivfs/file-reparent.c (trivfs_S_file_reparent): Deallocate `parent' port when the trivfs_S_io_duplicate() call succeeds.
2011-04-16Print KeySymToUcs4 calls.Diego Nieto Cid
2011-04-16Find the absolute path to <X11/keysymdef.h>Diego Nieto Cid
Specifying the header file relative to $(includeir) won't work because it is defined in terms of prefix variable which is redefined during installation to the destination directory. And the dependency check will fail during 'make install' because the header might not be in the destination tree. * config.make.in (X11_KEYSYMDEF_H, SED): New variables. * configure.in: Check for sed. Find X11/keysymdef.h absolute location using the preprocessor and save it in X11_KEYSYMDEF_H variable. * console-client/Makefile (kstoucs_map.c): Use X11_KEYSYMDEF_H to depend on the header file.
2011-04-16Use locale's compose file by default.Diego Nieto Cid
* console-client/Makefile [HAVE_X11=yes](compose-CFLAGS): Define DATADIR. * console-client/pc-kbd.c (pc_kbd_init): Load compose file unconditionally. * console-client/xkb/compose.c: Include fcntl.h, unistd.h and locale.h (struct map_entry, enum callback_result, map_callback): New types. (map_iterate): New function. (struct matcher_context): New type. (match_left_set_right, match_right_set_left): New functions. (get_compose_file_for_locale): Likewise. (read_composefile): Use get_compose_file_for_locale result when argument composefn is NULL.
2011-04-16Disable XKB when either lex or yacc is missing.Diego Nieto Cid
2011-04-16Avoid redefinition of NoSymbol.Diego Nieto Cid
* console-client/xkb/xkb.c: Remove macro NoSymbol. * console-client/xkb/compose.c: Likewise.
2011-04-16Delete xkb/HACKING file.Diego Nieto Cid
2011-04-16Cleanup.Diego Nieto Cid
2011-04-16Deallocate memory on errors.Diego Nieto Cid
* console-client/xkb/parser.y(parse_xkbconfig): Free cwd.
2011-04-16Remove default keymap.Diego Nieto Cid
* console-client/xkb/default.xkb: Removed file. * console-client/xkb/makeconf.sh: Likewise. * console-client/xkb/xkbdefaults.c: Likewise. * console-client/xkb/parser.y(parse_xkbconfig): Don't use harcoded defaults, return error when no keymap file is given.
2011-04-16Delete Compose file.Diego Nieto Cid
2011-04-16Add missing dependency.Diego Nieto Cid
2011-04-16Reimplement KeySymToUcs4.Diego Nieto Cid
* console-client/Makefile (DIST_FILES): Add xkb/kstoucs_map.sh. (kstoucs_map.c): New target. * console-client/xkb/kstoucs.c: Reimplement KeySymToUcs4. * console-client/xkb/kstoucs_map.sh: New file.
2011-04-10Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/hurdSamuel Thibault
2011-04-10Fix magic link with goldSamuel Thibault
* trans/Makefile (magic): Link against libiohelp.
2011-04-08Depend on X11 for string to keysym mappings.Diego Nieto Cid
* config.make.in (HAVE_X11,X11_CFLAGS,X11_LIBS,XKB_BASE): New variables. * configure.in: Check for x11 module. * console-client/Makefile (PC_KBD_SO_SRCS): Move XKB sources... * console-client/Makefile (XKB_SRCS): ... here. New variable. * console-client/Makefile (SRCS): Add $(XKB_SRCS). * console-client/Makefile (LCLHDRS): Add xkb/xkb.h. * console-client/Makefile (XKB_DATA_DIR): Removed variable. * console-client/Makefile (pc_kbd.so.$(hurd-version)): Use patsubst. Depend on XKB objects when HAVE_X11 = yes. * console-client/Makefile (install): Depend on XKB datafiles when HAVE_X11 = yes. * console-client/Makefile (pc-kbd-CFLAGS): Set variable when HAVE_X11 = yes * console-client/Makefile ($(XKB_DATA_DIR),$(XKB_DATA_DIR)/%): Replaced by... * console-client/Makefile[HAVE_X11=yes]($(XKB_BASE),$(XKB_BASE)/%): ... this targets. * console-client/Makefile[HAVE_X11=yes](pc_kbd-LDLIBS): New variable. * console-client/xkb/keysymdef.h: Removed file. * console-client/xkb/ks_tables.h: Likewise. * console-client/xkb/symname.c: Likewise. * console-client/xkb/xkb.c: Include <X11/keysymdef.h>. * console-client/xkb/compose.c: Likewise. * console-client/xkb/xkb.h: Remove XStringToKeysym prototype. Include <X11/Xlib.h>.