]> Zhao Yanbai Git Server - minix.git/log
minix.git
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

13 years agoAdd MKMCONTEXT option
Arun Thomas [Tue, 2 Aug 2011 11:57:31 +0000 (13:57 +0200)]
Add MKMCONTEXT option

13 years agorename -lutil to -lminixutil
Ben Gras [Wed, 27 Jul 2011 10:34:50 +0000 (12:34 +0200)]
rename -lutil to -lminixutil

  . in preparation for netbsd -lutil

13 years agodon't define _POSIX_TIMERS
Ben Gras [Mon, 1 Aug 2011 11:17:47 +0000 (13:17 +0200)]
don't define _POSIX_TIMERS

13 years agoMKEMBED is now MKSMALL
Arun Thomas [Mon, 1 Aug 2011 09:05:17 +0000 (11:05 +0200)]
MKEMBED is now MKSMALL

13 years agoAdd MKAPIC and MKACPI options
Arun Thomas [Sun, 31 Jul 2011 14:20:34 +0000 (16:20 +0200)]
Add MKAPIC and MKACPI options

13 years agoramdisk: For MKEMBED, skip ext2, achi, and acpi
Arun Thomas [Sat, 30 Jul 2011 11:14:00 +0000 (13:14 +0200)]
ramdisk: For MKEMBED, skip ext2, achi, and acpi

13 years agoAdd MKWATCHDOG option
Arun Thomas [Fri, 29 Jul 2011 18:36:42 +0000 (20:36 +0200)]
Add MKWATCHDOG option

13 years agoadd /var/tmp/ for groff
Ben Gras [Thu, 28 Jul 2011 15:12:57 +0000 (17:12 +0200)]
add /var/tmp/ for groff

13 years agolibvassert: vmware VAssert support.
Ben Gras [Wed, 22 Jun 2011 15:22:57 +0000 (17:22 +0200)]
libvassert: vmware VAssert support.

- BSD-licensed Code gratefully taken from the project at
  http://en.sourceforge.jp/projects/sfnet_vassertlinuxsdk/

- For more information on vmware VAssert, a powerful debugging
  facility usable under vmware, see:
  www.vmware.com/pdf/ws65_vassert_programming.pdf

13 years agomk: single mk fragment for new libc
Ben Gras [Wed, 27 Jul 2011 16:01:44 +0000 (18:01 +0200)]
mk: single mk fragment for new libc

. allow commands to use it by setting NEED_NBSDLIBC
. also add mkfiles to clean and cleandepend so they
  don't break on missing new mkfiles

13 years agoRemove legacy swapfs utility
Arun Thomas [Wed, 27 Jul 2011 15:13:56 +0000 (17:13 +0200)]
Remove legacy swapfs utility

13 years agoAdd support for VFS-FS transaction IDs
Thomas Veerman [Wed, 27 Jul 2011 15:49:42 +0000 (15:49 +0000)]
Add support for VFS-FS transaction IDs

13 years agoAdd DEV_CLONE_A dev type
Thomas Veerman [Wed, 27 Jul 2011 12:23:03 +0000 (12:23 +0000)]
Add DEV_CLONE_A dev type

13 years agoClean up mthread
Thomas Veerman [Wed, 27 Jul 2011 09:30:26 +0000 (09:30 +0000)]
Clean up mthread

13 years agoash: don't rely on libc signal names
Antoine Leca [Tue, 26 Jul 2011 11:49:20 +0000 (13:49 +0200)]
ash: don't rely on libc signal names

The bsd signal names are out-of-order compared to the minix ones.

I found out (the hard way) that the (MINIX-descending) ordered list of
signals in <sys/signal.h> does not match the (BSD-descending) ordered
list of signals in usr/src/lib/libc/nbsd_libc/gen/sig{name,list}.c

Beyond being unfortunate, it prevents the trap command of ash to handle
correctly a named signal; a funny test case is
        #!/bin/sh
        trap 'echo trapping signal BUS' BUS
        trap 'echo trapping signal 10 (USR1)' 10
        trap # show me what is currently trapped

As a quick workaround, I disabled the use of the libc-provided
sys_sig{name,list} arrays for ash, and reverted to the hand-made array
which is used by the less capable MINIX libc. It allowed me to use
pkgsrc.

13 years agoadd /etc/resolv.conf pointing to minix nonamed
Ben Gras [Tue, 26 Jul 2011 15:59:57 +0000 (17:59 +0200)]
add /etc/resolv.conf pointing to minix nonamed

. needed for netbsd libc dns resolution
. points to minix nonamed
. /etc/resolv.conf should have the real info
  (written by netconf / dhcp client)
. nonamed should be phased out but will probably
  be around for the 'old' libc

13 years agotest: define NETBSD_SOURCE for gcc/clang
Arun Thomas [Tue, 26 Jul 2011 14:52:43 +0000 (16:52 +0200)]
test: define NETBSD_SOURCE for gcc/clang

13 years agovfs/rs: for ELF, sep_id should be 0
Arun Thomas [Tue, 26 Jul 2011 13:21:07 +0000 (15:21 +0200)]
vfs/rs: for ELF, sep_id should be 0

13 years agoFix test2.sh
Arun Thomas [Tue, 26 Jul 2011 11:50:57 +0000 (13:50 +0200)]
Fix test2.sh

-strings is now found in /usr/pkg/bin

13 years agoRemove bigmake, binsizes, packman
Arun Thomas [Tue, 26 Jul 2011 11:33:41 +0000 (13:33 +0200)]
Remove bigmake, binsizes, packman

13 years agoRemove advent and ttt
Arun Thomas [Tue, 26 Jul 2011 09:37:18 +0000 (11:37 +0200)]
Remove advent and ttt

13 years agosys.mk: Check that MKEMBED is defined
Arun Thomas [Tue, 26 Jul 2011 09:26:26 +0000 (11:26 +0200)]
sys.mk: Check that MKEMBED is defined

13 years agoAdd MKEMBED option
Arun Thomas [Tue, 26 Jul 2011 06:54:32 +0000 (08:54 +0200)]
Add MKEMBED option

13 years agousr.bin/Makefile: cosmetic change
Arun Thomas [Mon, 25 Jul 2011 09:48:30 +0000 (11:48 +0200)]
usr.bin/Makefile: cosmetic change

-Move mkimage to list of MINIX commands

13 years agoAdd sort to nbsd_ports list
Arun Thomas [Mon, 25 Jul 2011 09:43:44 +0000 (11:43 +0200)]
Add sort to nbsd_ports list

13 years agoimport elf-only -lcurses
Ben Gras [Thu, 21 Jul 2011 14:29:08 +0000 (16:29 +0200)]
import elf-only -lcurses

. abandons mixer, gomoku, talk, talkd, top from base system
. compile top with clang so no ack-compiled program
  needs -lcurses any more

13 years agoReplace uniq with NetBSD version
Vivek Prakash [Sun, 3 Jul 2011 21:20:43 +0000 (21:20 +0000)]
Replace uniq with NetBSD version

13 years agoSkip ACK libs building with GCC/clang
Arun Thomas [Sun, 24 Jul 2011 16:46:51 +0000 (18:46 +0200)]
Skip ACK libs building with GCC/clang

13 years agorelease.sh: jail building adjustments
Ben Gras [Fri, 22 Jul 2011 20:10:21 +0000 (22:10 +0200)]
release.sh: jail building adjustments

13 years agobsd.prog.mk: include minix.gcov.mk
Arun Thomas [Fri, 22 Jul 2011 15:59:15 +0000 (17:59 +0200)]
bsd.prog.mk: include minix.gcov.mk

13 years agoImport NetBSD mkdep
Arun Thomas [Fri, 22 Jul 2011 15:28:27 +0000 (17:28 +0200)]
Import NetBSD mkdep

13 years agokernel: add prototype for inkernel_disaster
Ben Gras [Fri, 22 Jul 2011 13:19:40 +0000 (15:19 +0200)]
kernel: add prototype for inkernel_disaster

13 years agoRevert "print kernel stacktrace for exceptions in kernel"
Ben Gras [Fri, 22 Jul 2011 13:01:44 +0000 (15:01 +0200)]
Revert "print kernel stacktrace for exceptions in kernel"

This reverts commit eff1369cab8fc04802c43231ec8ac2445d0a29da.

This was in a working branch and I only intended to commit
exception.c. But I committed the exact inverse. Sorry.

13 years agoworld: add etcfiles
Ben Gras [Fri, 22 Jul 2011 12:57:55 +0000 (14:57 +0200)]
world: add etcfiles

. avoids future UPDATING entries (for hierarchy extensions
  necessary for make world to work)

13 years agoadd vfork to namespace.h
Arun Thomas [Fri, 22 Jul 2011 12:07:04 +0000 (14:07 +0200)]
add vfork to namespace.h

13 years agoAlso compile the kernel as i586 (instead of i386)
Erik van der Kouwe [Fri, 22 Jul 2011 11:15:59 +0000 (13:15 +0200)]
Also compile the kernel as i586 (instead of i386)

13 years agoprint kernel stacktrace for exceptions in kernel
Ben Gras [Wed, 20 Jul 2011 22:48:35 +0000 (00:48 +0200)]
print kernel stacktrace for exceptions in kernel

fpu alignment check feature, checksum feature

13 years agokernel: improve exception debug printing
Ben Gras [Fri, 22 Jul 2011 10:55:04 +0000 (10:55 +0000)]
kernel: improve exception debug printing

. fold 2 exception-in-kernel cases (pagefault and rest)
  into 1
. for exceptions that occur in kernel, don't just print
  kernel stacktrace (typically that is just the exception
  handler) but also the stacktrace of when the exception
  happened

13 years agoAvoid MMX and SSE instructions in the MINIX programs and libraries
Erik van der Kouwe [Fri, 22 Jul 2011 09:59:31 +0000 (11:59 +0200)]
Avoid MMX and SSE instructions in the MINIX programs and libraries

13 years agoForgot to rename mmap to minix_mmap
Thomas Veerman [Fri, 22 Jul 2011 10:15:42 +0000 (10:15 +0000)]
Forgot to rename mmap to minix_mmap