aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix the build system to handle part storesJeremie Koenig2010-08-183-19/+30
| | | | | | | | | | | | | Part stores are used for debian-installer, and they're considered more elegant than kernel partition devices. This patch makes sure they're included in the build unless the user disables them explicitely. * Makeconf: add $(PARTED_LIBS) to static binaries which use libstore_part.a. * configure.in: look for libparted again (see also 7c7a04eb). * libstore/Makefile (store-types): include the 'part' store type when appropriate, remove the previous attempt. Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org>
* Partially revert 8451b436 to fix halt/rebootSamuel Thibault2010-08-021-10/+2
| | | | | | init/init.c (S_msg_sig_post_untraced): Ignore result of msg_sig_post_untraced_reply. (S_msg_sig_post): Likewise.
* pfinet: check return value of mmap() in S_io_read() and S_socket_recv()Olaf Buddenhagen2010-08-012-0/+10
| | | | | * pfinet/io-ops.c (S_io_read): Check return value. * pfinet/socket-ops.c (S_socket_recv): Likewise.
* Fix "make dist" in `sutils'.Ludovic Courtès2010-08-011-2/+2
| | | | * sutils/Makefile (SRCS): Add `clookup.c', `fstab.c', and `update.c'.
* Fix "make dist" in `libthreads'.Ludovic Courtès2010-08-011-1/+6
| | | | | * libthreads/Makefile (lndist, lndist-map-file): New targets. Link `libthreads.map' to the distribution directory.
* Fix "make dist" in `libcons'.Ludovic Courtès2010-08-011-2/+2
| | | | * libcons/Makefile (LCLHDRS): Add `$(installhdrs)'.
* Fix "make dist" in `include'.Ludovic Courtès2010-08-011-1/+4
| | | | | * include/Makefile (lndist): New target. Copy `Makefile' and `$(installhdrs)' to the distribution directory.
* Fix "make dist" in `exec'.Ludovic Courtès2010-08-011-4/+8
| | | | | | | * exec/Makefile (SRCS): Refer to `$(gzip-sources)' and `$(bzip2-sources)' instead of listing files individually. (gzip-sources, bzip2-sources): New variable. (gzip-objects, bzip2-objects): Derive from the above variables.
* Fix "make dist" in `daemons'.Ludovic Courtès2010-08-011-2/+2
| | | | * daemons/Makefile (SRCS): Add `runsystem.sh'.
* Fix "make dist" in `console-client'.Ludovic Courtès2010-08-011-6/+7
| | | | | | | | | | | This patch updates the list of headers to be included in the distribution, and makes it so that `kdioctlServer.c' isn't built and distributed by "make dist". * console-client/Makefile (PC_KBD_SO_SRCS): Remove `kdioctlServer.c'. (LCLHDRS): Remove `vga.h', add `vga-support.h' and `trans.h'. (OBJS): Add `kdioctlServer.o'. (pc_kbd.so.$(hurd-version)): Add dependency on `kdioctlServer_pic.o'.
* Fix copyrightsSamuel Thibault2010-08-015-5/+5
|
* Add wide character support to the Hurd consoleJeremie Koenig2010-08-014-34/+60
| | | | | | | | | | | | | | | | | | | | * hurd/console.h (CONS_WCHAR_MASK, CONS_WCHAR_CONTINUED): New macros. * console/console.c: Include <locale.h> (main): Call setlocale. * console/display.c (display_output_one): Call wcwidth() to know the width of the character to be displayed. Iterate over this with to insert characters with the additional CONS_WCHAR_CONTINUED flag. Update screen_shift_right and display_record_filechange calls accordingly. * console-client/vga-dynafont.c (WCHAR_BOLD, WCHAR_ITALIC, WCHAR_MASK): Change macro values. (dynafont_new): Use glyph->bbox.{width,height} instead of df->font->bbox.{width,height}. (dynafont_change_font): Likewise. (dynafont_lookup_internal): Likewise. Mask out CONS_WCHAR_CONTINUED before calling bdf_find_glyph, but test it for the second position of a double-width glyph. (dynafont_activate): Enable 9-bit width only when font width is not dividable by 8.
* Simplify error exit pathSamuel Thibault2010-08-011-3/+1
| | | | | * libpager/data-request.c (_pager_seqnos_memory_object_data_request): Use allow_release_out label instead of re-doing unlocks by hand.
* Fix swap on large devicesJeremie Koenig2010-08-011-9/+9
| | | | | | | | DEV_GET_SIZE values overflow with large devices, rather use DEV_GET_RECORDS. * mach-defpager/setup.c (S_default_pager_paging_storage): Use DEV_GET_RECORDS instead of DEV_GET_SIZE.
* Implement file_replarent in libtrivfsJeremie Koenig2010-08-011-2/+3
| | | | | * libtrivfs/file-reparent.c (trivfs_S_file_reparent): Call trivfs_S_io_duplicate.
* Fix libdiskfs bootstrap race conditionJeremie Koenig2010-08-011-4/+4
| | | | | | | | exec_exec() probably triggers a call to file_exec(), so the exec server port needs to be cached earlier. * libdiskfs/boot-start.c: Move caching the exec server port to just after initializing it.
* Fix -g/-m console vga driver optionsSamuel Thibault2010-07-271-2/+2
| | | | | * console-client/vga.c (parse_opt): Reverse -g and -m option effect to match documentation.
* Implement getsockopt (fd, SOL_SOCKET, SO_TYPE)Emilio Pozuelo Monfort2010-07-171-5/+44
| | | | | * pflocal/socket.c (S_socket_getopt): Add SO_TYPE support. (S_socket_setopt): Fix return value.
* Revert "Call device_close on store closure"Samuel Thibault2010-06-301-1/+0
| | | | | | | | This reverts commit 1bb5a381a2e2f345beb1ca8d019b6174b13bb125. storeio can actually pass the device port to other processes, through file_get_storage_info for instance, these may then want to use it, even after storeio has closed its port.
* Fix memory leak on receive errorSamuel Thibault2010-06-281-1/+5
| | | | | * pfinet/io-ops.c (S_io_read): On error, free data array if it was allocated.
* Fix memory leak on schedule_timeoutSamuel Thibault2010-06-281-1/+2
| | | | | * pfinet/glue-include/linux/sched.h (schedule_timeout): Make the automatically-allocated wait_queue pointer static instead of dynamic (and lost).
* Call device_close on store closureSamuel Thibault2010-06-251-0/+1
| | | | | * libstore/device.c (dclose): Call device_close before deallocating the device port.
* Ignore the "defaults" mount optionJeremie Koenig2010-06-231-1/+1
| | | | * utils/mount.c (do_mount): Ignore the "defaults" option.
* Build part only when parted support is enabledSamuel Thibault2010-06-181-1/+5
| | | | | | * libstore/Makefile (store-types): Remove part. [HAVE_PARTED] (store-types): Add part. [HAVE_PARTED] (libstore.so-LDLIBS): Add -lparted.
* Fix parted supportSamuel Thibault2010-06-182-2/+6
| | | | | | | * libstore/Makefile (store-types): Add part. * libstore/part.c: Do not include <parted/device_gnu.h> (PED_SECTOR_SIZE): Define to PED_SECTOR_SIZE_DEFAULT if undefined. (store_part_create): Do not check value returned by ped_disk_destroy.
* Fix --version in scriptsCarl Fredrik Hammar2010-05-261-2/+2
| | | | * Makeconf (%): Don't depend on removed files. Remove excess backslashes.
* Fix allowing termination on some error pathSamuel Thibault2010-03-211-1/+3
| | | | | | | * libpager/data-request.c (_pager_seqnos_memory_object_data_request): when _pager_pagemap_resize returns an error, instead of goto release_out, goto new label allow_release_out thats calls _pager_allow_termination before proceeding with release_out.
* Fix ext2fs mount with sparse storeSamuel Thibault2010-02-071-11/+8
| | | | | | | 2010-02-06 Carl Fredrik Hammar <hammy.lite@gmail.com> * ext2fs/storeinfo.c (diskfs_S_file_get_storage_info): Return EOPNOTSUPP instead of store if file contains holes.
* Fix ps segfault when given empty format stringSamuel Thibault2010-02-071-18/+22
| | | | | | | 2010-02-02 Carl Fredrik Hammar <hammy.lite@gmail.com> * utils/ps.c (main): Move format parsing to parse_opt() and pass state to parse_enum().
* Fix tmpfs assertionSamuel Thibault2010-01-111-0/+1
| | | | | * tmpfs/tmpfs.h (tmpfs_dirent): Add padding field to push the name field after its position in struct dirent.
* Make MAKEDEV bash-freeSamuel Thibault2010-01-111-6/+6
| | | | | | * sutils/MAKEDEV.sh (cmd, st, lose, mkdev): Remove function, add (). (mkdev): Use ${I#???} instead of ${I:3}.
* Fix duplicate port deallocation on errorSamuel Thibault2009-12-281-1/+2
| | | | | * proc/info.c (S_proc_register_version): Do not deallocate port `credential' when err != 0.
* Fix exec shell check for really small filesSamuel Thibault2009-12-261-2/+6
| | | | | | * exec/hashexec.c (check_hashbang): Set `e->error' to 0 before calling map(). On error, check `e->error' instead of `errno', and default `e->error' to ENOEXEC.
* Fix duplicate port deallocationSamuel Thibault2009-12-221-3/+2
| | | | | * proc/notify.c (do_mach_notify_dead_name): Do not call mach_port_deallocate on `deadport' on failure.
* Fix duplicate oldtask port deallocationSamuel Thibault2009-12-211-2/+0
| | | | | | * exec/exec.c (do_exec): Do not deallocate oldtask when newtask != oldtask before the `out:' label since it is done again after it.
* Fix spurious newport deallocationSamuel Thibault2009-12-211-3/+2
| | | | | | | * auth/auth.c (S_auth_server_authenticate): On MIG stub failure, deallocate the reply port by hand instead of letting the main message loop do it, since the latter would deallocate newport too, which we passed to the user.
* Fix spurious authenticate EINTRSamuel Thibault2009-12-201-2/+4
| | | | | | | | * auth/auth.c (S_auth_user_authenticate): Do not return EINTR if user is not pending any more, i.e. server actually already answered. (S_auth_server_authenticate): Do not return EINTR if server is not pending any more, i.e. user actually already answered.
* Fix port leak when directly calling MIG stubsSamuel Thibault2009-12-202-8/+20
| | | | | | | | * auth/auth.c (S_auth_server_authenticate): Check result of auth_server_authenticate_reply stub. * init/init.c (S_msg_sig_post_untraced): Check result of msg_sig_post_untraced_reply (S_msg_sig_post): Check result of msg_sig_post_reply.
* Fix setgid behaviorSamuel Thibault2009-12-131-1/+1
| | | | | * libfshelp/exec-reauth.c (fshelp_exec_reauth): Set gid in eff_gids and avail_gids instead of in eff_uids, and avail_uids.
* Fix ps -o command and such hangSamuel Thibault2009-11-171-1/+3
| | | | | * libps/fmt.c (_fmt_create): Put NUL terminator only when there is room for it. When there is not it is there already anyway.
* Fix current_vcs driver loadSamuel Thibault2009-10-251-7/+7
| | | | | | | | | * console-client/current-vcs.c (vcs_repeat_init): Rename function into... (current_vcs_init): ... this. (vcs_repeat_start): Rename function into... (current_vcs_start): ... this. (vcs_repeat_fini): Rename function into... (current_vcs_fini): ... this.
* Merge branch 'master-rpctrace'Thomas Schwinge2009-10-131-2/+2
|\
| * Fix bug #20612: rpctrace: heisenbug.Zheng Da2009-10-121-2/+2
| | | | | | | | | | * utils/rpctrace.c (print_contents): Check the number of elements in the port array.
* | Make rename("something", "something/.") not hangSamuel Thibault2009-10-121-0/+5
| | | | | | | | | | | | * libdiskfs/dir-rename.c: Include <string.h> (diskfs_S_dir_rename): If source or destination ends with "." or "..", return EINVAL as required by POSIX.
* | Use #!/bin/bash instead of #!/bin/shSamuel Thibault2009-09-271-1/+1
| | | | | | | | The script makes big use of bashisms.
* | Add memory clobbers to assembly snippetsSamuel Thibault2009-09-261-2/+4
| | | | | | | | | | | | * pfinet/linux-src/include/asm-i386/checksum.h (ip_fast_csum): Add memory clobber to assembly snippet. (csum_ipv6_magic): Likewise.
* | Fix assignment from incompatible pointer typeSamuel Thibault2009-09-221-1/+1
| | | | | | | | | | * pfinet/linux-src/net/ipv4/tcp_ipv4.c (tcp_v4_connect): xchg &rt->u.dst instead of just rt with sk->dst_cache.
* | Fixes long-standing random hang of exec.Samuel Thibault2009-08-231-2/+5
| | | | | | | | | | * exec.c (finish): Set FILE_DATA and MAP_BUFFER members of E to NULL after freeing them.
* | Fix root access to non-regular filesSamuel Thibault2009-08-231-1/+1
|/ | | | | * libfshelp/perms-access.c (fshelp_access): Only check the x permission for root on regular files.
* libpthread is now a stand-alone library and kept in a separate repository.Thomas Schwinge2009-07-271-3/+2
| | | | * Makefile (lib-subdirs): Remove libpthread.