summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-04-08Replace fragile manual »make dist« system with one based on »git archive«.Thomas Schwinge
* Makeconf (lndist): Remove target. (dist-hook, dist.tar): New targets. * Makefile (dist): Rewrite this target's as well as accompanying rules. (%-lndist, cp-linked-files, $(lf-inst)): Remove targets. (%.bz2, %.gz, %/dist-hook): New targets. (DISTFILES): Set. * doc/Makefile (DISTFILES): Set. * doc/Makefile (lndist, lndist-info-targets): Remove targets. * include/Makefile (lndist): Remove target. * libthreads/Makefile (lndist, lndist-i386-files, lndist-map-file): Remove targets. * pfinet/Makefile (lndist, 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-linux-files, lndist-linux-src-include-net-files) (lndist-linux-src-include-asm-files, lndist-glue-include-linux-files) (lndist-glue-include-asm-files): Remove targets. * auth/Makefile (LCLHDRS): Don't set. * boot/Makefile (LCLHDRS, DIST_FILES): Likewise. * bsdfsck/Makefile (LCLHDRS): Likewise. * config/Makefile (DIST_FILES): Likewise. * console-client/Makefile (LCLHDRS): Likewise. * console/Makefile (LCLHDRS, DIST_FILES): Likewise. * doc/Makefile (DIST_FILES): Likewise. * exec/Makefile (LCLHDRS, DIST_FILES): Likewise. * ext2fs/Makefile (LCLHDRS): Likewise. * fatfs/Makefile (LCLHDRS): Likewise. * ftpfs/Makefile (LCLHDRS): Likewise. * hostmux/Makefile (LCLHDRS): Likewise. * hurd/Makefile (DIST_FILES): Likewise. * include/Makefile (LCLHDRS): Likewise. * isofs/Makefile (LCLHDRS, DIST_FILES): Likewise. * libcons/Makefile (LCLHDRS): Likewise. * libdirmgt/Makefile (LCLHDRS): Likewise. * libdiskfs/Makefile (LCLHDRS): Likewise. * libfshelp/Makefile (LCLHDRS): Likewise. * libftpconn/Makefile (LCLHDRS): Likewise. * libihash/Makefile (LCLHDRS): Likewise. * libiohelp/Makefile (LCLHDRS): Likewise. * libnetfs/Makefile (LCLHDRS): Likewise. * libpager/Makefile (LCLHDRS): Likewise. * libpipe/Makefile (LCLHDRS): Likewise. * libports/Makefile (LCLHDRS): Likewise. * libps/Makefile (LCLHDRS): Likewise. * libshouldbeinlibc/Makefile (LCLHDRS): Likewise. * libstore/Makefile (LCLHDRS, DIST_FILES): Likewise. * libthreads/Makefile (LCLHDRS): Likewise. * libtreefs/Makefile (LCLHDRS): Likewise. * libtrivfs/Makefile (LCLHDRS): Likewise. * mach-defpager/Makefile (LCLHDRS): Likewise. * nfs/Makefile (LCLHDRS): Likewise. * nfsd/Makefile (LCLHDRS): Likewise. * pfinet/Makefile (LCLHDRS): Likewise. * pflocal/Makefile (LCLHDRS): Likewise. * proc/Makefile (LCLHDRS, DIST_FILES): Likewise. * release/Makefile (DIST_FILES): Likewise. * storeio/Makefile (LCLHDRS): Likewise. * sutils/Makefile (LCLHDRS): Likewise. * term/Makefile (LCLHDRS, DIST_FILES): Likewise. * tmpfs/Makefile (LCLHDRS): Likewise. * ufs-fsck/Makefile (LCLHDRS): Likewise. * ufs/Makefile (LCLHDRS): Likewise. * usermux/Makefile (LCLHDRS): Likewise. * utils/Makefile (LCLHDRS): Likewise.
2012-04-08Remove generated files.Thomas Schwinge
* configure: Remove file. * .gitignore: Update. * doc/version.texi: Remove file. * doc/.gitignore: Update.
2012-04-08Rules for build system targets.Thomas Schwinge
* Makefile (configure, config.status, config.make): New targets.
2012-04-08* Makefile (clean): Recurse into all subdirs.Thomas Schwinge
2012-04-08Automatically regenerate files that depend on $(hurd-version).Thomas Schwinge
Follow-up to 05f5cc229323a61799388fbb52da84ca8cb502c9 (»configure: Use modern `AC_INIT' invocation.«). * Makeconf (%: %.sh): Depend on config.make. * Makefile (version.h): Use a stamp file. (stamp-version): Depend on config.make. * doc/Makefile (stamp-version): Likewise. * Makeconf (make-deps): Take additional target-specific dependencies, $*-DEPS. * console-client/Makefile (driver-DEPS): Depend on config.make. * libstore/Makefile (module-DEPS): Likewise.
2012-04-08Remove hurd/install-headers.Thomas Schwinge
* hurd/configure: Remove file. * hurd/configure.ac: Likewise. * hurd/install-headers.in: Likewise.
2012-04-08Avoid recreating the include/* files needlessly.Thomas Schwinge
* Makeconf ($(INSTALLED_LOCAL_HEADERS)): Just depend on the Makefile. The include/ hierarchy does not depend on anything but the local Makefile; especially it does not depend on how the package has been configured, which is what config.make records.
2012-04-08* Makeconf: Add copyright/licensing header.Thomas Schwinge
2012-04-08.gitignore: New file.Thomas Schwinge
2012-04-08Update '..' link for directory when moving it.Maksym Planeta
* tmpfs/dir.c (struct dirstat): New field. (diskfs_lookup_hard): Record whether type is SPEC_DOTDOT in dotdot field of ds. (diskfs_dirrewrite_hard): If ds->dotdot is true, set dp->dn->u.dir.dotdot insteead of (ds->prevp)->dn.
2012-04-08Allocate pager's map on demand.Maksym Planeta
* mach-defpager/default_pager.c (pager_get_direct_map): New function. (pager_alloc): Initialize map field to NULL. (pager_allocated, pager_pages, pager_extend, pager_write_offset): Use pager_get_direct_map to access to pager's map.
2012-04-08Delete fragile hack.Maksym Planeta
* mach-defpager/default_pager.c (pager_truncate): Do not optimize by using partial kfree.
2012-04-08Fix bugs in truncation of memory map.Maksym Planeta
* mach-defpager/default_pager.c (pager_truncate): Use new_size instead of old_size in memcpy.
2012-04-08Prevent repeated freeing of pager's mapMaksym Planeta
* mach-defpager/default_pager.c (pager_truncate): Do not set old_size to PAGEMAP_ENTRIES, to avoid freeing again just below.
2012-04-08Add appropriate checks to take into account that pager's memory map could be ↵Maksym Planeta
sparse. * mach-defpager/default_pager.c (pager_truncate, pager_read_offset, pager_release_offset, pager_dealloc, pager_realloc): Add checks for map field being NULL. (pager_dealloc): Set map pointer to zero.
2012-04-08Set size of object, when it is created.Maksym Planeta
* mach-defpager/default_pager.c (S_default_pager_object_create): Set pager limit to the given size.
2012-04-08Add support for objects that are not bounded to page size.Maksym Planeta
* mach-defpager/default_pager.c (struct dpager): Add new field. (seqnos_memory_object_data_write): If pager is not bounded to page size, than round it up. (seqnos_memory_object_lock_completed): Function is not in use anymore. (S_default_pager_object_set_size): Proceed object with any size correctly.
2012-04-08Add support for empty memory objects.Maksym Planeta
* mach-defpager/default_pager.c (pager_extend): When old_size is 0, use 1 to compute power of two above it. (pager_truncate): Do not avoid new_size being 0.
2012-04-08Add support for new pageout interface for defpager.Maksym Planeta
* mach-defpager/default_pager.c: (seqnos_memory_object_init, seqnos_memory_object_data_request): Use new interface. (seqnos_memory_object_data_return): Proceed request correctly.
2012-04-08Update debugging macros definitions and remove debugging macros when it becomesMaksym Planeta
hard to read the code. * mach-defpager/default_pager.c (dprintf, ddprintf): Change macros to make them more easy to use. (pager_port_lock, pager_port_unlock, seqnos_memory_object_data_write, pager_write_offset): Remove debugging messages (that are not shown at the moment) when it becomes hard to read the code.
2012-04-08Set console default encoding to UTF-8Michael Banck
* console.c (DEFAULT_ENCODING): Set to UTF-8.
2012-04-08Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/hurdSamuel Thibault
2012-04-08console-run: Create and settrans /dev/console when not already done.Ludovic Courtès
This patch makes sure /libexec/console-run creates and installs /dev/console on the first run without considering it a failure if it didn't exist already. * daemons/console-run.c (TERMINAL_FIRST_TRY): Change node to `/dev/console'. (TERMINAL_SECOND_TRY): Change node to `/tmp/console'. (open_console): Clear FALLBACK when TRY == 1 and the `file_set_translator' call suceeded.
2012-04-07Merge tag 'hurd-release-0-2' into releasesThomas Schwinge
Reconstructed from the hurd-release-0-2 CVS tag.
2012-04-07Merge tag 'release-0-0' into releasesThomas Schwinge
Reconstructed from the release-0-0 CVS tag.
2012-04-07Revert "MAKEDEV now lives in /sbin, so get it from there."Thomas Schwinge
This reverts commit 5361e64713eb4a4eac58f6a41e2dae5ff72bca25.
2012-04-07Revert "The real version is release/SETUP"Thomas Schwinge
This reverts commit c40e79fc85df4399c45c83c3b4ddd20c13e5f6ce.
2012-04-07Revert "Initial checkin."Thomas Schwinge
This reverts commit 5f847427cf40ec910614bb676031cd600f731775.
2012-04-07.Miles Bader
(cherry picked from commit b719aa377034997390f8edd528468fb51dad80d9)
2012-04-02Update comments.Maksym Planeta
* mach-defpager/default_pager.c (seqnos_memory_object_data_return): Add comment.
2012-04-02Prevent auto-terminating of tmpfs due to idle.Maksym Planeta
* tmpfs/tmpfs.c (diskfs_thread_function): New function. (main): Manually detach diskfs demuxer.
2012-04-02Correct handling of object size.Maksym Planeta
* tmpfs/node.c (diskfs_truncate): Pass the original (non-rounded) size to default_pager_object_set_size. (diskfs_grow): Likewise. (diskfs_get_filemap): Do not set object size, as default_pager_object_create already sets it.
2012-03-27Fix hard links accounting in tmpfs.Maksym Planeta
* tmpfs/dir.c (diskfs_init_dir, diskfs_clear_directory): Fix hard link accounting in tmpfs for directories.
2012-03-26Correct function calling.Maksym Planeta
* mach-defpager/default_pager.c (S_default_pager_object_set_size, seqnos_memory_object_lock_completed): Correct calling of function pager_port_unlock.
2012-03-26Add lock in pager_truncate.Maksym Planeta
* mach-defpager/default_pager.c (pager_truncate): Add mutex lock.
2012-03-26Correct available space check.Maksym Planeta
*tmpfs/node.c (diskfs_grow): Parameter size denotes new size, not delta. So available space check should take that into account.
2012-03-26Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/hurdSamuel Thibault
2012-03-26Remove warnings during compilation.Maksym Planeta
* mach-defpager/kalloc.c: Added missing prototypes, headers, types. * mach-defpager/wiring.c: Likewise. * mach-defpager/default_pager.c: Likewise. * mach-defpager/main.c: Likewise. * mach-defpager/setup.c: Likewise. (S_default_pager_paging_storage): Fix wrong calling of kfree. * mach-defpager/kalloc.h: New file with prototypes from kalloc.c. * mach-defpager/default_pager.h: New file with prototypes from default_pager.c. * mach-defpager/Makefile (LCLHDRS): Add new header files.
2012-03-25Fix extern inline useSamuel Thibault
* ext2fs/Makefile (SRCS): Add xinl.c * libtreefs/Makefile (OTHERSRCS): Likewise. * term/Makefile (SRCS): Likewise. * ufs/Makefile (SRCS): Likewise. * hostmux/hostmux-xinl.c: Define HOSTMUX_DEFINE_EI instead of HOSTMUX_EI. * libdiskfs/extern-inline.c: Define DISKFS_DEFINE_EXTERN_INLINE instead of DISKFS_EXTERN_INLINE. * libftpconn/xinl.c: Define FTP_CONN_DEFINE_EI instead of FTP_CONN_EI. * libpipe/pipe-funcs.c: Define PIPE_DEFINE_EI instead of PIPE_EI. * libpipe/pq-funcs.c: Define PQ_DEFINE_EI instead of PQ_EI. * libshouldbeinlibc/idvec-funcs.c: Define IDVEC_DEFINE_EI instead of IDVEC_EI. * libshouldbeinlibc/maptime-funcs.c: Define MAPTIME_DEFINE_EI instead of MAPTIME_EI. * libshouldbeinlibc/ugids-xinl.c: Define UGIDS_DEFINE_EI instead of UGIDS_EI. * libstore/xinl.c: Define STORE_DEFINE_EI instead of STORE_EI. * libthreads/rwlock.c: Define RWLOCK_DEFINE_EI instead of RWLOCK_EI. * ext2fs/xinl.c: New file, define EXT2FS_DEFINE_EI and include "ext2fs.h" * libtreefs/xinl.c: New file, define TREEFS_DEFINE_EI and include "treefs.h" and "mig-decls.h". * term/xinl.c: New file, define TERM_DEFINE_EI and include "term.h". * ufs/xinl.c: New file, define UFS_DEFINE_EI and include "ufs.h" * ext2fs/ext2fs.h: Include <features.h>, define EXT2FS_EI to __extern_inline instead of "extern inline", define it to empty when EXT2FS_DEFINE_EI is defined. Always declare extern inline prototypes, and define extern inlines content only if __USE_EXTERN_INLINES or EXT2FS_DEFINE_EI is defined. * libdiskfs/diskfs.h: Likewise with DISKFS_EXTERN_INLINE and DISKFS_DEFINE_EXTERN_INLINE. * libftpconn/ftpconn.h: Likewise with FTP_CONN_EI and FTP_CONN_DEFINE_EI. * libftpconn/priv.h: Likewise. * libpipe/pipe.h: Likewise with PIPE_EI and PIPE_DEFINE_EI. * libpipe/pq.h: Likewise with PQ_EI and PQ_DEFINE_EI. * libshouldbeinlibc/idvec.h: Likewise with IDVEC_EI and IDVEC_DEFINE_EI. * libshouldbeinlibc/maptime.h: Likewise with MAPTIME_EI and MAPTIME_DEFINE_EI. * libshouldbeinlibc/ugids.h: Likewise with UGIDS_EI and UGIDS_DEFINE_EI. * libstore/store.h: Likewise with STORE_EI and STORE_DEFINE_EI. * libthreads/rwlock.h: Likewise with RWLOCK_EI and RWLOCK_DEFINE_EI. * term/term.h: Likewise with TERM_EI and TERM_DEFINE_EI. * ufs/ufs.h: Likewise with UFS_EI and UFS_DEFINE_EI. * libtreefs/treefs.h: Include <features.h>, define TREE_FS_EI to __extern_inline, or to empty when TREEFS_DEFINE_EI is defined. Use TREEFS_EI instead of "extern inline". * libtreefs/mig-decls.h: Use TREEFS_EI instead of "extern inline".
2012-02-21Add `console/motd.UTF8' to the distribution.Ludovic Courtès
* console/Makefile (DIST_FILES): Add `motd.UTF8'.
2012-02-19Fix pfinet device_open errno reportingSamuel Thibault
* pfinet/ethernet.c (ethernet_open): Use value saved in `file_errno', not `errno'.
2012-02-19Make pfinet use BPF filter when using a devnodeSamuel Thibault
* pfinet/ethernet.c (bpf_ether_filter, bpf_ether_filter_len): New variables. (ethernet_open): Use bpf_ether_filter and bpf_ether_filter_len for device_set_filter call in the devnode case.
2012-02-19More helpful messagesSamuel Thibault
2012-02-19Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/hurdSamuel Thibault
2012-02-19Fix pfinet compilationSamuel Thibault
* pfinet/ethernet.c (_HACK_ERRNO_H): Define to avoid inclusion of glue-include/linux/errno.h which undefines errno. Include <fcntl.h>.
2012-02-19Make pfinet try both a filepath and kernel deviceSamuel Thibault
pfinet/ethernet.c (ethernet_open): Try to file_name_lookup() the device as filepath before opening the Mach device.
2012-01-31Use TERM=mach-gnu-color instead of mach-colorSamuel Thibault
mach-gnu-color was added to upstream ncurses as the GNU variant of the Mach kernel console. * config/ttys (console): Set type to mach-gnu-color.
2011-12-29Upgrade pager-memcpy parametersSamuel Thibault
* libpager/pager-memcpy.c (VMCOPY_BETTER_THAN_MEMCPY): Increase to 8 pages. (VMCOPY_WINDOW_DEFAULT_SIZE, MEMCPY_WINDOW_DEFAULT_SIZE): Increase to 32 pages.
2011-12-28Do not inherit all ext2fs flagsSamuel Thibault
* ext2fs/ext2_fs.h (EXT2_FL_INHERITED, EXT2_REG_FLMASK, EXT2_OTHER_FLMASK): New macros. (ext2_mask_flags): New inline function. * ext2fs/ialloc.c (diskfs_alloc_node): Use EXT2_FL_INHERITED and call ext2_mask_flags.
2011-12-27Fix 0-length reads from ttySamuel Thibault
* term/users.c (trivfs_S_io_read): Immediately return 0 also when `amount' is 0.