]> Zhao Yanbai Git Server - minix.git/log
minix.git
12 years agofix compile of test23
Antoine LECA [Thu, 6 Oct 2011 18:46:07 +0000 (18:46 +0000)]
fix compile of test23

12 years agodec21140A driver warnings fix
Antoine LECA [Thu, 29 Sep 2011 17:37:05 +0000 (17:37 +0000)]
dec21140A driver warnings fix

12 years agomdocml/man: dummy cleandepend target
Ben Gras [Wed, 28 Sep 2011 15:36:24 +0000 (15:36 +0000)]
mdocml/man: dummy cleandepend target

12 years agoupdate/fix manpage support
Ben Gras [Mon, 26 Sep 2011 16:19:29 +0000 (16:19 +0000)]
update/fix manpage support

. add bsd-style MLINKS to minix man set, restoring aliases
  (e.g. man add64 -> int64)
. update daily cron script to run makewhatis and restore makewhatis
  in man Makefile (makedb), restores functionality of man -k
. netbsd imports of man, mdocml, makewhatis, libutil, apropos
. update man.conf with manpage locations, restoring man [-s] <section>
. throws out some obsolete manpages

12 years agoRevert to using flushtlb instead of invlpg
Thomas Veerman [Tue, 27 Sep 2011 15:15:51 +0000 (15:15 +0000)]
Revert to using flushtlb instead of invlpg

Somehow the usage of invlpg causes Minix to crash on Qemu. Reverting
temporarily until we have a proper fix.

13 years agoworldstone benchmark script
Ben Gras [Wed, 21 Sep 2011 19:16:34 +0000 (19:16 +0000)]
worldstone benchmark script

. also imports seq(1) to help it
. add -C option to time(1) to print tsc difference
. increase col width for ministat for tsc numbers

13 years agomfs: improve & simplify secondary cache logic
Ben Gras [Wed, 21 Sep 2011 17:52:45 +0000 (17:52 +0000)]
mfs: improve & simplify secondary cache logic

. fixes "!" errors when booting from cd

13 years agosef: build sef_debug_header only when needed
Arun Thomas [Mon, 19 Sep 2011 15:28:03 +0000 (17:28 +0200)]
sef: build sef_debug_header only when needed

13 years agovm: undo accidental JUNKFREE on
Ben Gras [Mon, 19 Sep 2011 15:36:21 +0000 (15:36 +0000)]
vm: undo accidental JUNKFREE on

13 years agokernel: Remove legacy boot vars from pre_init
Arun Thomas [Mon, 19 Sep 2011 14:37:48 +0000 (16:37 +0200)]
kernel: Remove legacy boot vars from pre_init

13 years agoboot e820 memory detection fixes
Ben Gras [Wed, 31 Aug 2011 22:01:59 +0000 (22:01 +0000)]
boot e820 memory detection fixes

13 years agoRemove legacy boot monitor vars
Arun Thomas [Fri, 16 Sep 2011 18:03:15 +0000 (20:03 +0200)]
Remove legacy boot monitor vars

13 years agoAdd MKBOOTPARAM option
Arun Thomas [Fri, 16 Sep 2011 15:31:07 +0000 (17:31 +0200)]
Add MKBOOTPARAM option

13 years agoMKSYSDEBUG: conditionally compile more debug code
Arun Thomas [Fri, 16 Sep 2011 12:57:49 +0000 (14:57 +0200)]
MKSYSDEBUG: conditionally compile more debug code

13 years agoCleanup more resources upon exit
Thomas Veerman [Thu, 15 Sep 2011 15:39:13 +0000 (15:39 +0000)]
Cleanup more resources upon exit

13 years agoRemove debug print
Thomas Veerman [Tue, 13 Sep 2011 16:00:39 +0000 (16:00 +0000)]
Remove debug print

13 years agoUnmap drivers upon exit
Thomas Veerman [Tue, 13 Sep 2011 13:02:47 +0000 (13:02 +0000)]
Unmap drivers upon exit

13 years agoFix off-by-one errors and increase PATH_MAX to 1024
Thomas Veerman [Mon, 12 Sep 2011 09:00:24 +0000 (09:00 +0000)]
Fix off-by-one errors and increase PATH_MAX to 1024

In some places it was assumed that PATH_MAX does not include a
terminating null character.

Increases PATH_MAX to 1024 to get in sync with NetBSD. Required some
rewriting in AVFS to keep memory usage low (the stack in use by a thread
is very small).

13 years agoext2: replace debug printf by assert
Ben Gras [Fri, 9 Sep 2011 16:32:13 +0000 (16:32 +0000)]
ext2: replace debug printf by assert

13 years agoadd -lminixfs with fs support routines
Ben Gras [Thu, 8 Sep 2011 16:49:54 +0000 (16:49 +0000)]
add -lminixfs with fs support routines

. move cache size heuristic from mfs there
  so mfs and ext2 can share it
. add vfs credentials retrieving function, with
  backwards compatability from previous struct
  format, to be used by both ext2 and mfs
. fix for ext2 - STATICINIT was fed no.
  of bytes instead of no. of elements, overallocating
  memory by a megabyte or two for the superblock

13 years agoFix off-by-one error
Thomas Veerman [Thu, 8 Sep 2011 15:09:41 +0000 (15:09 +0000)]
Fix off-by-one error

13 years agoCleanup servers to make GCC/Clang a little happier
Thomas Veerman [Thu, 8 Sep 2011 13:57:03 +0000 (13:57 +0000)]
Cleanup servers to make GCC/Clang a little happier

13 years agoCheck group range for sanity
Thomas Veerman [Thu, 8 Sep 2011 12:23:03 +0000 (12:23 +0000)]
Check group range for sanity

13 years agoAdd MKTRACE
Arun Thomas [Wed, 7 Sep 2011 15:52:48 +0000 (17:52 +0200)]
Add MKTRACE

13 years agoBackwards compatibility fixup for GCC/Clang
Thomas Veerman [Tue, 6 Sep 2011 12:35:48 +0000 (12:35 +0000)]
Backwards compatibility fixup for GCC/Clang

13 years agoMake AVFS resilient against failing back calls
Thomas Veerman [Tue, 6 Sep 2011 10:11:18 +0000 (10:11 +0000)]
Make AVFS resilient against failing back calls

13 years agoIncrease gid_t and uid_t to 32 bits
Thomas Veerman [Mon, 5 Sep 2011 13:56:14 +0000 (13:56 +0000)]
Increase gid_t and uid_t to 32 bits

Increase gid_t and uid_t to 32 bits and provide backwards compatibility
where needed.

13 years agoMake dev_t 32-bits and provide backwards compatibility
Thomas Veerman [Wed, 31 Aug 2011 13:38:28 +0000 (13:38 +0000)]
Make dev_t 32-bits and provide backwards compatibility

13 years agoadd /etc/rc.subr and /etc/rc.conf
Ben Gras [Thu, 1 Sep 2011 14:41:57 +0000 (14:41 +0000)]
add /etc/rc.subr and /etc/rc.conf

13 years agoAdd MKLIVEUPDATE and MKSTATECTL
Arun Thomas [Fri, 2 Sep 2011 14:57:22 +0000 (16:57 +0200)]
Add MKLIVEUPDATE and MKSTATECTL

13 years agoget rid of leftover _DIRENT_NAME_LEN=61
Ben Gras [Thu, 1 Sep 2011 16:27:28 +0000 (16:27 +0000)]
get rid of leftover _DIRENT_NAME_LEN=61

13 years agosort is not a nbsd port (yet)
Ben Gras [Thu, 1 Sep 2011 16:14:04 +0000 (16:14 +0000)]
sort is not a nbsd port (yet)

13 years agonbsd_fetch: force cvs to use ssh
Ben Gras [Thu, 1 Sep 2011 15:05:12 +0000 (15:05 +0000)]
nbsd_fetch: force cvs to use ssh

13 years agodefine MSG_*
Ben Gras [Thu, 1 Sep 2011 13:03:15 +0000 (13:03 +0000)]
define MSG_*

. these are not actually supported at runtime
. will allow packages to compile easier, and still work
  in some cases (e.g. glib2)

13 years agorelease.sh: undo tarup add
Ben Gras [Wed, 31 Aug 2011 22:00:42 +0000 (22:00 +0000)]
release.sh: undo tarup add

13 years agoRange-check values building mbdev in boot monitor
Antoine Leca [Wed, 31 Aug 2011 11:54:31 +0000 (13:54 +0200)]
Range-check values building mbdev in boot monitor

13 years agolibsys: don't pull in strerror
Arun Thomas [Tue, 30 Aug 2011 19:10:34 +0000 (21:10 +0200)]
libsys: don't pull in strerror

13 years agoFix ext2 symlink bug.
Evgeniy Ivanov [Mon, 29 Aug 2011 19:36:48 +0000 (23:36 +0400)]
Fix ext2 symlink bug.

rip->i_size is a target length without trailing '\0'.

Reported by Ben Gras.

13 years agoUnverbose mount
Thomas Veerman [Fri, 26 Aug 2011 15:43:30 +0000 (15:43 +0000)]
Unverbose mount

13 years agoLet FSes exit themselves upon system shutdown
Thomas Veerman [Fri, 26 Aug 2011 15:14:55 +0000 (15:14 +0000)]
Let FSes exit themselves upon system shutdown

During shutdown all processes are semi-exited and FSes are unmounted.
This semi-exit causes trouble for FUSE mounts as they still need access
to file descriptors and working directory in order to unmount.

13 years agoClean up tests and do runtime test for max name length
Thomas Veerman [Fri, 26 Aug 2011 13:16:16 +0000 (13:16 +0000)]
Clean up tests and do runtime test for max name length

- Remove unused code
- Use standard functions declared in common.c
- Change tests to do a runtime test for the max name length of a path
  component (aka NAME_MAX). The actual value might differ from the hard
  coded NAME_MAX depending on the file system used.

13 years agoTell VFS how many requests an FS can handle concurrently
Thomas Veerman [Mon, 22 Aug 2011 15:02:13 +0000 (15:02 +0000)]
Tell VFS how many requests an FS can handle concurrently

13 years agoStore and use max concurrent requests
Thomas Veerman [Mon, 22 Aug 2011 16:24:29 +0000 (16:24 +0000)]
Store and use max concurrent requests

13 years agoimport NetBSD mkdir
Vivek Prakash [Sun, 14 Aug 2011 14:49:39 +0000 (14:49 +0000)]
import NetBSD mkdir

. add symlink from old location /usr/bin/mkdir for
  for compatability

13 years agoIncrease max number of arguments
Thomas Veerman [Mon, 22 Aug 2011 13:44:24 +0000 (13:44 +0000)]
Increase max number of arguments

13 years agoTurn off block read debugs and turn on mount debugs
Thomas Veerman [Mon, 22 Aug 2011 13:24:35 +0000 (13:24 +0000)]
Turn off block read debugs and turn on mount debugs

13 years agoReport error instead panicing
Thomas Veerman [Mon, 22 Aug 2011 13:08:38 +0000 (13:08 +0000)]
Report error instead panicing

13 years agoRemove verbosity
Thomas Veerman [Mon, 22 Aug 2011 13:08:03 +0000 (13:08 +0000)]
Remove verbosity

13 years agoReduce block special file (thread) lock scope
Thomas Veerman [Mon, 22 Aug 2011 11:48:16 +0000 (11:48 +0000)]
Reduce block special file (thread) lock scope

13 years agoAllow block special files to be file locked
Thomas Veerman [Mon, 22 Aug 2011 11:46:58 +0000 (11:46 +0000)]
Allow block special files to be file locked

13 years agoAdd entry for ntfs-3g
Thomas Veerman [Mon, 22 Aug 2011 10:10:03 +0000 (10:10 +0000)]
Add entry for ntfs-3g

13 years agoFix locking issues with back calls from FSes
Thomas Veerman [Fri, 19 Aug 2011 14:12:07 +0000 (14:12 +0000)]
Fix locking issues with back calls from FSes

13 years agomalloc build fixes
Ben Gras [Thu, 18 Aug 2011 22:30:51 +0000 (22:30 +0000)]
malloc build fixes

13 years agouse minix malloc
Ben Gras [Thu, 18 Aug 2011 00:08:38 +0000 (00:08 +0000)]
use minix malloc

. default jemalloc is not too easy to compile without threads
  libraries/types
. non-default malloc has odd virtual address space binge problem
. switch to ack/minix malloc in old libc for now

13 years agotools/Makefile: tweak AVFS/APFS logic
Arun Thomas [Thu, 18 Aug 2011 16:06:24 +0000 (18:06 +0200)]
tools/Makefile: tweak AVFS/APFS logic

-Fixes GCC/clang build issue

13 years agomake time functions pass PCTS test
Ben Gras [Thu, 18 Aug 2011 13:45:10 +0000 (13:45 +0000)]
make time functions pass PCTS test

. fixes a problem in building gawk wanting to provide
  its own mktime otherwise

13 years agoCleaner MKSYSDEBUG option
Arun Thomas [Thu, 18 Aug 2011 12:56:34 +0000 (14:56 +0200)]
Cleaner MKSYSDEBUG option

13 years agomtree: skip all major-0 devices, not just (0,1)
Ben Gras [Thu, 18 Aug 2011 13:05:27 +0000 (13:05 +0000)]
mtree: skip all major-0 devices, not just (0,1)

13 years agois: stopgap for broken _USEVFS check
Ben Gras [Wed, 17 Aug 2011 16:27:46 +0000 (16:27 +0000)]
is: stopgap for broken _USEVFS check

13 years agoincrease system-wide filename limit to 255
Ben Gras [Thu, 4 Aug 2011 23:15:16 +0000 (23:15 +0000)]
increase system-wide filename limit to 255

. move mfs-specific struct, constants to mfs/, so
  mfs-specific, on-disk format structs and consts are
  fully isolated from generic structs and functions
. removes de and readfs utils

13 years agoUpdate UPDATING document on how to build AVFS
Thomas Veerman [Wed, 17 Aug 2011 13:53:22 +0000 (13:53 +0000)]
Update UPDATING document on how to build AVFS

13 years agoRange fix from PFS
Thomas Veerman [Wed, 17 Aug 2011 13:42:38 +0000 (13:42 +0000)]
Range fix from PFS

13 years agoMerge AVFS and APFS
Thomas Veerman [Wed, 17 Aug 2011 13:23:45 +0000 (13:23 +0000)]
Merge AVFS and APFS

13 years agopfs: fix range check
Ben Gras [Fri, 5 Aug 2011 16:13:33 +0000 (16:13 +0000)]
pfs: fix range check

. debugged and fixed by Jan Wieck

13 years agoadd mail group
Ben Gras [Wed, 17 Aug 2011 11:38:41 +0000 (11:38 +0000)]
add mail group

13 years agoadd postfix, postgresql users
Ben Gras [Mon, 15 Aug 2011 17:33:11 +0000 (17:33 +0000)]
add postfix, postgresql users

13 years agoMFS: optimize dentry acllocation.
Evgeniy Ivanov [Thu, 11 Aug 2011 15:12:07 +0000 (19:12 +0400)]
MFS: optimize dentry acllocation.

When search for free slot always cache position of last allocated slot,
so next time when need to allocate new slot, we can search from that
position.

13 years agoinstall: correct error message
Ben Gras [Tue, 16 Aug 2011 20:40:52 +0000 (20:40 +0000)]
install: correct error message

13 years agoRename MKDEBUG to MKSYSDEBUG
Arun Thomas [Tue, 16 Aug 2011 19:48:03 +0000 (21:48 +0200)]
Rename MKDEBUG to MKSYSDEBUG

13 years agopre-install pkg_tarup
Ben Gras [Tue, 16 Aug 2011 15:22:48 +0000 (15:22 +0000)]
pre-install pkg_tarup

13 years agoOptionally disable kernel debug code
Arun Thomas [Tue, 16 Aug 2011 15:18:55 +0000 (17:18 +0200)]
Optionally disable kernel debug code

13 years agorelease.sh: generic package names
Ben Gras [Mon, 15 Aug 2011 21:46:23 +0000 (21:46 +0000)]
release.sh: generic package names

13 years agorelease.sh: minor -L fix
Ben Gras [Mon, 15 Aug 2011 21:40:14 +0000 (21:40 +0000)]
release.sh: minor -L fix

13 years agoFix ext2 dentry allocation glitch.
Evgeniy Ivanov [Thu, 11 Aug 2011 18:48:26 +0000 (22:48 +0400)]
Fix ext2 dentry allocation glitch.

When remove dentry, check if cached position is greater than removed
one.

13 years agoAdd missing put_inode().
Evgeniy Ivanov [Fri, 12 Aug 2011 17:40:52 +0000 (21:40 +0400)]
Add missing put_inode().

Fixes bug from a9a45cddc.

13 years agotest set build fixes for clang/gcc
Ben Gras [Sun, 14 Aug 2011 12:35:55 +0000 (12:35 +0000)]
test set build fixes for clang/gcc

13 years agomkdir: allow 'mkdir -p' with trailing '/'
Thomas Cort [Sun, 14 Aug 2011 12:41:39 +0000 (12:41 +0000)]
mkdir: allow 'mkdir -p' with trailing '/'

Let's suppose that /usr/tmp exists and one wants /usr/tmp/a/b
If one runs "mkdir -p /usr/tmp/a/b/" (the '/' at the end is
important), then a "File exists" error comes up. Example:

$ rm -rf /usr/tmp/a
$ mkdir -p /usr/tmp/a/b/
/usr/tmp/a/b/: File exists

This breaks gcc47 installation when C++ is enabled, and this
isn't the behaviour of mkdir on NetBSD nor Linix.

This patch fixes the above issue by dropping the trailing '/'.

13 years agokernel: don't use -ffreestanding
Ben Gras [Fri, 12 Aug 2011 20:59:23 +0000 (20:59 +0000)]
kernel: don't use -ffreestanding

. workaround for clang's stdint.h __STDC_HOSTED__ test
  that causes the host stdint.h to be ignored for -ffreestanding,
  causing a type to be double-defined in the kernel

13 years agokernel: show segment-adjusted pagefault addr
Ben Gras [Fri, 12 Aug 2011 14:14:48 +0000 (14:14 +0000)]
kernel: show segment-adjusted pagefault addr

13 years agominlib: Add vm_query_exit
Arun Thomas [Fri, 12 Aug 2011 15:05:08 +0000 (17:05 +0200)]
minlib: Add vm_query_exit

13 years agokernel: invlpg facility
Ben Gras [Mon, 1 Aug 2011 13:35:34 +0000 (15:35 +0200)]
kernel: invlpg facility

. only use for single-page invalidations initially
. shows tiny but statistically significant performance
  improvement; will be more helpful in certain VM debug
  modes

13 years agoFix bugs in ext2 found by clang static analyzer
Evgeniy Ivanov [Wed, 10 Aug 2011 20:56:44 +0000 (20:56 +0000)]
Fix bugs in ext2 found by clang static analyzer

13 years agopm: remove dead function
Arun Thomas [Thu, 11 Aug 2011 15:45:20 +0000 (17:45 +0200)]
pm: remove dead function

13 years agoFix bugs found in MFS by clang static analyzer.
Evgeniy Ivanov [Wed, 10 Aug 2011 20:46:33 +0000 (20:46 +0000)]
Fix bugs found in MFS by clang static analyzer.

13 years agodon't keep minix-port.patch files in repo
Ben Gras [Wed, 10 Aug 2011 13:37:20 +0000 (13:37 +0000)]
don't keep minix-port.patch files in repo

. causes git noise, and unnecessary conflicts
. are easily generated with 'make nbsd_diff' in tools/

13 years agorecognize ccc-analyzer as gnu-style compiler
Ben Gras [Wed, 10 Aug 2011 10:39:45 +0000 (10:39 +0000)]
recognize ccc-analyzer as gnu-style compiler

. for clang static analysis

13 years agotty: handle REVIVE case on console device
Ben Gras [Tue, 9 Aug 2011 16:59:01 +0000 (16:59 +0000)]
tty: handle REVIVE case on console device

. can happen on e.g. ^S
. reported by Stephen Hatton

13 years agoBuild gcov code only if MKCOVERAGE is yes
Arun Thomas [Tue, 9 Aug 2011 08:39:33 +0000 (10:39 +0200)]
Build gcov code only if MKCOVERAGE is yes

13 years agobsd.prog.mk: skip 'install -S' rule for GCC/clang
Arun Thomas [Mon, 8 Aug 2011 12:04:58 +0000 (14:04 +0200)]
bsd.prog.mk: skip 'install -S' rule for GCC/clang

13 years agoallow bind() with addr len >= sizeof(sockaddr_in)
Ben Gras [Fri, 5 Aug 2011 20:55:57 +0000 (20:55 +0000)]
allow bind() with addr len >= sizeof(sockaddr_in)

. specifically, if it's struct sockaddr, which is
  1 byte larger than sockaddr_in
. unbreaks some applications
. debugged and solved by Jan Wieck

13 years agovm/ipc: only report signals when it matters to ipc
Ben Gras [Thu, 4 Aug 2011 23:52:03 +0000 (23:52 +0000)]
vm/ipc: only report signals when it matters to ipc

. ipc wants to know about processes that get
  signals, so that it can break blocking ipc operations
. doing it for every single signal is wasteful
  and causes the annoying 'no slot for signals' message
. this fix tells vm on a per-process basis it (ipc)
  wants to be notified, i.e. only when it does any ipc calls
. move ipc config to separate config file while we're at it

13 years agominix.ack.mk: use CPPFLAGS for ACK asm files
Arun Thomas [Fri, 5 Aug 2011 11:59:44 +0000 (13:59 +0200)]
minix.ack.mk: use CPPFLAGS for ACK asm files

13 years agounbreak oxpcie in kernel
Ben Gras [Wed, 13 Jul 2011 18:14:19 +0000 (20:14 +0200)]
unbreak oxpcie in kernel

13 years agoremove info after #undef _POSIX_TIMERS
Ben Gras [Thu, 4 Aug 2011 16:11:16 +0000 (18:11 +0200)]
remove info after #undef _POSIX_TIMERS

13 years agoterminfo fixes
Ben Gras [Thu, 4 Aug 2011 01:02:02 +0000 (01:02 +0000)]
terminfo fixes

. add TERM=minix to builtin terms
. regenerate compiled-in compile_terms.c
. fix terminfo db path
. update termcap command
. By Antoine Leca

13 years agorelease.sh: fix -l, add -L option for local packages
Ben Gras [Wed, 3 Aug 2011 10:53:01 +0000 (12:53 +0200)]
release.sh: fix -l, add -L option for local packages

. by Jan Wieck

13 years agoadded missing m_closefrom.c
Ben Gras [Wed, 3 Aug 2011 10:51:28 +0000 (12:51 +0200)]
added missing m_closefrom.c

13 years agogetsid() implementation
Ben Gras [Tue, 2 Aug 2011 17:22:08 +0000 (19:22 +0200)]
getsid() implementation

13 years agoclosefrom() as library call
Ben Gras [Tue, 2 Aug 2011 17:21:29 +0000 (19:21 +0200)]
closefrom() as library call

13 years agokernel: don't build cprofile code by default
Arun Thomas [Tue, 2 Aug 2011 13:24:47 +0000 (15:24 +0200)]
kernel: don't build cprofile code by default