aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Keep at least one request handler thread.Diego Nieto Cid2011-11-151-0/+5
| | | | | * libports/manage-multithread.c: Startover when no other thread is listenening for requests.
* * configure: Regenerate.Thomas Schwinge2011-11-051-0/+70
|
* mach-defpager: Declare `__malloc_initialize_hook' as volatile.Ludovic Courtès2011-11-051-1/+7
| | | | * mach-defpager/kalloc.c (__MALLOC_HOOK_VOLATILE): New macro.
* Disable NFS translator and daemon compilation when Sun RPC is lacking.Ludovic Courtès2011-11-054-3/+22
| | | | | | | | | * 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.
* Populate a [build]/lib directory with links to all shared libraries.Thomas Schwinge2011-10-201-0/+9
| | | | * Makeconf (libs): Add dependency to create these links.
* Merge branch 'tls/libthreads'Thomas Schwinge2011-10-204-5/+48
|\ | | | | | | | | Conflicts: libthreads/ChangeLog
| * TLS support for libthreads.Samuel Thibault2011-10-205-5/+62
| | | | | | | | | | | | | | | | | | | | | | * 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.
* | Fix building of nfs.static.Thomas Schwinge2011-10-192-15/+4
| | | | | | | | | | | | * 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.
* | libnetfs: handle _PC_PATH_MAX in pathconfPino Toscano2011-10-191-0/+1
| | | | | | | | | | | | | | | | 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.
* | libdiskfs: handle _PC_PATH_MAX in pathconfPino Toscano2011-10-191-0/+1
| | | | | | | | | | | | | | | | 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.
* | Add missing format strings for error, printk, problemPino Toscano2011-10-197-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Sync pager before clearing MAY_CACHE flagSergio López2011-10-031-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Fix 'make dist' in doc.Diego Nieto Cid2011-08-221-2/+8
| | | | | | | | | | | | * doc/Makefile (DIST_FILES): Remove target files. (lndist): Depend on lndist-info-targets (lndist-info-targets): New target. Distribute target files.
* | * include/Makefile (lndist): copy files from $(srcdir).Diego Nieto Cid2011-08-221-1/+1
| |
* | Be less aggressive about switching to bigger unitsOlaf Buddenhagen2011-08-221-1/+1
| | | | | | | | * utils/vmstat.c (print_val): Switch size unit at 10000 instead of 1024.
* | fix common misspellingsJonathan Neuschäfer2011-08-20127-191/+191
| | | | | | | | | | | | * Fix spelling with codespell[1] and manually review it. [1] http://git.profusion.mobi/cgit.cgi/lucas/codespell/
* | pfinet/linux-src: fix a memory leakJonathan Neuschäfer2011-08-201-3/+6
| | | | | | | | | | * pfinet/linux-src/net/ipv4/ip_options.c (ip_options_get): calculate the size of opt only once, free opt before returning -EFAULT.
* | Fix localhost() after memory failureSamuel Thibault2011-08-201-0/+2
| | | | | | | | | | * libshouldbeinlibc/localhost.c (localhost): Free and reset buf when reallocation failed.
* | fix a realloc-related memory leak in localhost()Jonathan Neuschäfer2011-08-201-7/+14
| | | | | | | | | | | | * 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.
* | Fix spurious port deallocationSamuel Thibault2011-08-111-1/+1
| | | | | | | | | | | | * 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.
* | Fix restoring from XorgSamuel Thibault2011-08-081-1/+1
| | | | | | | | | | * console-client/vga.c (vga_display_restore_status): Use VGA_GFX_MISC_B8TOBF instead of VGA_GFX_MISC_A0TOAF.
* | Let GNU Mach messages appear under Hurd consoleSamuel Thibault2011-08-083-53/+28
| | | | | | | | | | | | | | | | | | | | | | * 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.
* | Fix typoSamuel Thibault2011-08-081-1/+1
| | | | | | | | * console-client/vga-dynafont.c (dynafont_lookup_internal): Fix typo.
* | Fix one of the auth protocol racesSamuel Thibault2011-07-041-100/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Add Marcus' console ttys.Samuel Thibault2011-07-041-0/+6
| | | | | | | | * config/ttys: Add tty[1-6].
* | Set default umask to 022Samuel Thibault2011-06-211-0/+2
| | | | | | | | * daemons/runsystem.sh: Call umask 022.
* | Fix crash on fstab-existing mountSamuel Thibault2011-05-161-1/+1
| | | | | | | | | | | | | | | | 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'.
* | fstab_find: also try to call realpath()Samuel Thibault2011-05-161-1/+23
| | | | | | | | | | | | | | 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'.
* | Fix port leakSamuel Thibault2011-05-061-1/+4
| | | | | | | | | | * libtrivfs/file-reparent.c (trivfs_S_file_reparent): Deallocate `parent' port when the trivfs_S_io_duplicate() call succeeds.
* | Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/hurdSamuel Thibault2011-04-1040-6870/+86
|\ \
| * | Fix pfinet build from make dist-generated tarballSamuel Thibault2011-04-031-23/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * pfinet/Makefile (ARCHS): New variable. (LINUXSRCS): Move arch files to... (ARCHSRCS): here. (LINUXHDRS): Update. (LINUXNETHDRS): New variable. (ARCHHDRS): New variable. (FROBBEDLINUXHEADERS): Update. (ASMHEADERS): Update. (lndist-linux-inet-files, lndist-linux-files, lndist-asm-files): Remove targets. (lndist-linux-src-net-core-files, lndist-linux-src-net-ethernet-files, lndist-linux-src-net-ipv4-files, lndist-linux-src-net-ipv6-files, lndist-linux-src-asm-files, lndist-linux-src-include-asm-files, lndist-linux-src-include-linux-files, lndist-linux-src-include-net-files, lndist-glue-include-linux-files, lndist-glue-include-asm-files): New targets. (linux-src, linux-src/arch, linux-src/arch/%/lib, linux-src/include, linux-src/include/%, linux-src/net, linux-src/net/core, linux-src/net/ethernet, linux-src/net/ipv4, linux-src/net/ipv6, glue-include, glue-include/asm, glue-include/linux): New hurd-snap directory build targets. (lndist): Update target dependencies.
| * | Remove reference to inexistent fatfs/EXTENSIONSSamuel Thibault2011-04-031-1/+0
| | | | | | | | | | | | * fatfs/Makefile (DIST_FILES): Remove.
| * | Ship only the root ChangeLogSamuel Thibault2011-04-032-2/+2
| | | | | | | | | | | | | | | * Makeconf (distfiles): Remove ChangeLog. * Makefile (DIST_FILES): Add ChangeLog.
| * | Remove `serverboot'; fix "make dist" in `mach-defpager'.Ludovic Courtès2011-04-0336-6844/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * serverboot/default_pager.c, serverboot/kalloc.c, serverboot/queue.h, serverboot/wiring.c, serverboot/wiring.h: Move to `mach-defpager/'. * serverboot/Makefile, serverboot/assert.h, serverboot/bootstrap.c, serverboot/bunzip2.c, serverboot/def_pager_setup.c, serverboot/defs.h, serverboot/dir.h, serverboot/disk_inode.h, serverboot/disk_inode_ffs.h, serverboot/elf-load.c, serverboot/exec.c, serverboot/ext2_file_io.c, serverboot/ffs_compat.c, serverboot/ffs_compat.h, serverboot/ffs_file_io.c, serverboot/file_io.c, serverboot/file_io.h, serverboot/fs.h, serverboot/gets.c, serverboot/gunzip.c, serverboot/load.c, serverboot/mach-exec.h, serverboot/minix_ffs_compat.c, serverboot/minix_ffs_compat.h, serverboot/minix_file_io.c, serverboot/minix_fs.h, serverboot/minix_super.h, serverboot/panic.c, serverboot/strfcns.c: Remove. * mach-defpager/Makefile (LCLHDRS): New variable. (vpath): Remove. (CPPFLAGS): Remove `-I$(srcdir)/../serverboot'. * mach-defpager/setup.c (page_aligned): Make public.
* | | Fix magic link with goldSamuel Thibault2011-04-101-0/+1
|/ / | | | | | | * trans/Makefile (magic): Link against libiohelp.
* | Fix auto-margin supportSamuel Thibault2011-03-061-5/+14
| | | | | | | | | | * console/display.c (display_output_one): Allow user->cursor.col to become equal to width, add linefeed on next character insertion in such case.
* | Use macro instead of hardcoded valueSamuel Thibault2011-03-061-1/+1
| | | | | | | | | | * console/display.c (user_create): Use CONS_VERSION_MAJ_SHIFT macro instead of hardcoded value 16.
* | Deallocate thread ports on errorSamuel Thibault2011-03-031-1/+5
| | | | | | | | | | * proc/info.c (S_proc_getprocinfo): Deallocate ports obtained from task_threads() call when an allocation error will be returned.
* | Drop duplicate port deallocationSamuel Thibault2011-03-031-1/+1
| | | | | | | | | | * libdiskfs/io-reauthenticate.c (diskfs_S_io_reauthenticate): Do not deallocate parameter port `rend_port' whan an error will be returned.
* | Fix duplicate port deallocationSamuel Thibault2011-03-031-2/+1
| | | | | | | | | | * libdiskfs/fsys-getroot.c (diskfs_S_fsys_getroot): Do not deallocate `dotdot' parameter port when an error will be returned.
* | Drop duplicate assignmentSamuel Thibault2011-03-031-1/+0
| | | | | | | | | | * libdiskfs/dir-renamed.c (checkpath): Drop duplicate np = target assignment.
* | Fix S_pfinet_siocgifconf given -1 as amountSamuel Thibault2011-02-222-2/+2
| | | | | | | | | | | | | | * hurd/pfinet.defs (pfinet_siocgifconf): Document that -1 is used for "all interfaces". * pfinet/pfinet-ops.c (S_pfinet_siocgifconf): Compare amount with `(vm_size_t) -1' instead of '< 0' (which can never happen).
* | Reference TRANSLATOR in `-a' help message.Samuel Thibault2011-02-211-1/+1
| | | | | | | | * utils/settrans.c (options): Reference TRANSLATOR in `-a' help message.
* | Rephrase settrans' --helpSamuel Thibault2011-02-171-2/+2
| | | | | | | | * utils/settrans.c (options): Rephrase -a and -p help to be more precise.
* | Add comment about finish being called several timesSamuel Thibault2011-02-141-1/+3
| |
* | Document that -p is the default option in settrans --helpSamuel Thibault2011-02-121-1/+1
| | | | | | | | | | * utils/settrans.c (options): Document that -p is the default option for settrans.
* | Add -s option to rpctraceSamuel Thibault2011-01-231-1/+10
| | | | | | | | | | | | | | * utils/rpctrace.c (strsize): New variable, defaults to 80. (options): Add 's' option. (main): Store 's' option value into `strsize'. (print_data): Limit the amount of printed characters to strsize.
* | Fix child lookups relative to new homedirSamuel Thibault2011-01-161-6/+5
| | | | | | | | | | | | * utils/login.c (main): Update `ports[INIT_PORT_CWDIR]' as soon as new cwd is determined according to HOME, since child lookups need to be relative to new homedir (e.g. for .hushlogin).
* | Fix comment typoSamuel Thibault2011-01-161-1/+1
| | | | | | | | * utils/login.c (main): Fix comment typo.
* | Strictly adhere to the VGA register conventionSamuel Thibault2011-01-021-0/+1
| | | | | | | | | | | | | | | | Not writing a value to the "enable display" register works for tested cards, but Linux writes a 0, and you can never know what manufacturers think. * console-client/vga-support.c (vga_exchange_palette_attributes): Write a 0 value to the "enable display" register.