summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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.
2011-12-20Fix e2os script posixnessSamuel Thibault
* sutils/e2os.sh (sbget, sbset): Use POSIX syntax for functions.
2011-12-06Fix error values on socket creationPino Toscano
On socket creation, return the correct errno values, EPROTOTYPE and EPROTONOSUPPORT, for invalid socket types and protocols. * pfinet/socket-ops.c (S_socket_create): Correctly return EPROTOTYPE and EPROTONOSUPPORT. * pflocal/pf.c (S_socket_create): Correctly return EPROTOTYPE.
2011-12-05Fix proc faultSamuel Thibault
* proc/info.c (get_vector): Set `scanned' relatively to `readaddr' instead of to `data'.
2011-11-28Fix select on pfinet tunnel and streamioSamuel Thibault
* pfinet/tunnel.c (trivfs_S_io_select): Do not return EINVAL on SELECT_URG. * trans/streamio.c (trivfs_S_io_select): Likewise.
2011-11-27Partially revert fa5e833aSamuel Thibault
libpipe/pipe.c (pipe_recv): Even if `source' is NULL and packet source exists, do not dereference it, as pq_dequeue already does it.
2011-11-27Fix two-way transmission for socketpair(SOCK_DGRAM)Samuel Thibault
* pflocal/socket.c (S_socket_connect2): For connection-less sockets, also connect `user2' to `user1'.
2011-11-27Fix source address reference accountingSamuel Thibault
* libpipe/pipe.c (pipe_recv): If `source' is NULL but packet source exists, dereference it. * pflocal/io.c (S_io_write): Only dereference the source on errors.
2011-11-27Fix pflocal.static linkSamuel Thibault
* pflocal/Makefile (HURDLIBS): Add iohelp
2011-11-24Merge remote-tracking branch 'darnassus/master'Thomas Schwinge
2011-11-24* configure: Regenerate.Thomas Schwinge
2011-11-24Further port sequence number cleanup.Thomas Schwinge
* libpager/priv.h (struct pager): Make seqno member of type mach_port_seqno_t. Change all users. * libpager/seqnos.c (_pager_stubs_update_seqno): Rename to _pager_update_seqno. Change all users. * libpager/demuxer.c (pager_demuxer): Make use of _pager_update_seqno. * libpager/notify-stubs.c: Remove unused attribute where no longer appropriate.
2011-11-24Don't forget to update port sequence numbers in stub functions.Sergio Lopez
* seqnos.c (_pager_stubs_update_seqno): New function. * priv.h (_pager_stubs_update_seqno): New function. * notify-stubs.c (_pager_do_seqnos_mach_notify_port_deleted): Call _pager_stubs_update_seqno to properly update seqno. (_pager_do_seqnos_mach_notify_msg_accepted): Likewise. (_pager_do_seqnos_mach_notify_port_destroyed): Likewise. (_pager_do_seqnos_mach_notify_send_once): Likewise. (_pager_do_seqnos_mach_notify_dead_name): Likewise. * stubs.c (_pager_seqnos_memory_object_copy): Likewise. (_pager_seqnos_memory_object_data_write): Likewise. (_pager_seqnos_memory_object_supply_completed): Likewise.
2011-11-20configure: Use modern `AC_INIT' invocation.Ludovic Courtès
* Makeconf (hurd-version): Move to... * config.make.in (hurd-version): ... here. Set to @PACKAGE_VERSION@. * configure.in: Change `AC_INIT' invocation to specify the package name, version number, and bug report address.
2011-11-20Fix symlink support in tmpfsBen Asselstine
* node.c (create_symlink_hook): Set NP->dn_stat.st_size to the length of TARGET. (create_symlink_hook): Set NP->dn->type to DT_LNK. (diskfs_truncate): Do NP->allocsize check after symlink check.