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

13 years agoAdd vfork() system call
Arun Thomas [Fri, 22 Jul 2011 08:55:30 +0000 (10:55 +0200)]
Add vfork() system call

-Same semantics as fork() as it's really just a stub
-Eases porting of BSD utilities

13 years agoUse 'strip -s' for ELF image
Arun Thomas [Fri, 22 Jul 2011 05:51:57 +0000 (07:51 +0200)]
Use 'strip -s' for ELF image

13 years agoRemove strings(1)
Arun Thomas [Thu, 21 Jul 2011 17:06:06 +0000 (19:06 +0200)]
Remove strings(1)

13 years agorename size to acksize
Ben Gras [Thu, 21 Jul 2011 12:27:47 +0000 (14:27 +0200)]
rename size to acksize

.  in keeping with the pattern: elf/binutils tools have
   regular names, ack tools have 'exceptional' names

13 years agoRS: fix bug that overflows r_argv[]
Ben Gras [Wed, 20 Jul 2011 15:36:21 +0000 (17:36 +0200)]
RS: fix bug that overflows r_argv[]

. reported and debugged by Arne Welzel
. problem is if there are too many args
. there is a check, but then unconditional NULL termination

13 years agocleanup of libterminfo introduction
Ben Gras [Wed, 20 Jul 2011 13:44:59 +0000 (15:44 +0200)]
cleanup of libterminfo introduction

. don't install minix <termcap.h> as libterminfo
  has its own (but still install it in /usr/include.ack)
. forget minix termcap functions in -lcompat_minix
. make commands use -lterminfo in netbsd libc compile mode

13 years agorelease.sh: USB build fix
Arun Thomas [Wed, 20 Jul 2011 14:57:51 +0000 (16:57 +0200)]
release.sh: USB build fix

-Update stat syntax

13 years agorelease.sh: add missing bootstrap util
Arun Thomas [Wed, 20 Jul 2011 14:01:45 +0000 (16:01 +0200)]
release.sh: add missing bootstrap util

13 years agoimport netbsd sed
Ben Gras [Wed, 20 Jul 2011 12:51:58 +0000 (14:51 +0200)]
import netbsd sed

. speeds up mkdep (i.e. world builds) significantly
. have to keep minix /bin/sed for a while because previous
  usr/etc/rc depends on it
. force mkdep to use /usr/bin/sed for speedup

13 years agorelease.sh: Add date to image name
Arun Thomas [Wed, 20 Jul 2011 09:47:09 +0000 (11:47 +0200)]
release.sh: Add date to image name

13 years agoFix ISO building
Arun Thomas [Wed, 20 Jul 2011 08:19:28 +0000 (10:19 +0200)]
Fix ISO building

-Update release.sh to use new stat syntax
-Add missing utils to release bootstrap dirs
-Remove needless dependency in ramdisk Makefile

13 years agoMK option to build only system image programs
Arun Thomas [Wed, 20 Jul 2011 07:57:08 +0000 (09:57 +0200)]
MK option to build only system image programs

13 years agoshare/mk: use original stat -qf
Antoine LECA [Tue, 19 Jul 2011 16:38:06 +0000 (18:38 +0200)]
share/mk: use original stat -qf

13 years agobuildsystem: use dependall target
Arun Thomas [Tue, 19 Jul 2011 13:26:25 +0000 (15:26 +0200)]
buildsystem: use dependall target

Improves cache locality by grouping together dependency generation
with building for each program instead of doing a whole-tree dep
generation phase followed by a whole-tree build phase

13 years agoSanity checks prevent VM panic for mmap, vm_remap and map_phys
Erik van der Kouwe [Tue, 19 Jul 2011 06:58:01 +0000 (08:58 +0200)]
Sanity checks prevent VM panic for mmap, vm_remap and map_phys

13 years agokernel: fix GCC warnings
Arun Thomas [Mon, 18 Jul 2011 17:44:17 +0000 (19:44 +0200)]
kernel: fix GCC warnings

13 years agoimport libterminfo, terminfo.db and stat command
Vivek Prakash [Mon, 18 Jul 2011 13:53:57 +0000 (15:53 +0200)]
import libterminfo, terminfo.db and stat command

13 years agoimport NetBSD stat
Vivek Prakash [Mon, 18 Jul 2011 13:49:37 +0000 (15:49 +0200)]
import NetBSD stat

13 years agovm: munmap fix leftover
Ben Gras [Mon, 18 Jul 2011 10:03:58 +0000 (12:03 +0200)]
vm: munmap fix leftover

13 years agoimport ministat utility from freebsd
Ben Gras [Sat, 16 Jul 2011 15:20:53 +0000 (17:20 +0200)]
import ministat utility from freebsd

13 years agommap rename fix for netbsd libc
Ben Gras [Sat, 16 Jul 2011 14:52:21 +0000 (16:52 +0200)]
mmap rename fix for netbsd libc

13 years agorename mmap() and munmap()
Ben Gras [Sat, 16 Jul 2011 01:11:10 +0000 (03:11 +0200)]
rename mmap() and munmap()

. it's a good extra interface to have but doesn't
  meet standardised functionality
. applications (in pkgsrc) find it and expect
  full functionality the minix mmap doesn't offter
. on the whole probably better to hide these functions
  (mmap and friends) until they are grown up; the base system
  can use the new minix_* names

13 years agocompat.S: add shmctl(2)
Thomas Cort [Fri, 15 Jul 2011 18:51:11 +0000 (18:51 +0000)]
compat.S: add shmctl(2)

13 years agorename mmap MAP_SHARED to MAP_IPC_SHARED
Ben Gras [Fri, 15 Jul 2011 16:10:50 +0000 (18:10 +0200)]
rename mmap MAP_SHARED to MAP_IPC_SHARED

. MAP_SHARED was used to implement sysv shared memory
. used to signal shareable memory region to VM
. assumptions about this situation break when processes
  use MAP_SHARED for its normal, standardised meaning

13 years agoFix time modification on truncate()
Evgeniy Ivanov [Fri, 15 Jul 2011 14:21:05 +0000 (14:21 +0000)]
Fix time modification on truncate()

POSIX truncate specification says "Upon successful completion, if
the *file size is changed*, this function shall mark for update the
st_ctime and st_mtime fields of the file." This patch prevents
changing of the date fields when the size stays the same.

13 years agoDon't panic if owner has vanished before reply
Thomas Veerman [Fri, 15 Jul 2011 14:11:34 +0000 (14:11 +0000)]
Don't panic if owner has vanished before reply

13 years agotop: larger size field
Ben Gras [Fri, 15 Jul 2011 12:15:15 +0000 (14:15 +0200)]
top: larger size field

13 years agorelease.sh: jail precaution
Ben Gras [Thu, 14 Jul 2011 16:36:40 +0000 (18:36 +0200)]
release.sh: jail precaution