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

13 years agorelease.sh: jail install
Ben Gras [Wed, 13 Jul 2011 21:59:07 +0000 (23:59 +0200)]
release.sh: jail install

. Feature to do a 'release' into a permanent
  and usable FS hierarchy, usable with chroot
. Just like the temporary staging hierarchy really
. Useful to checking out and building the latest
  version of minix from a host minix; to
  (1) make an uptodate minix jail, and
  (2) make a sterile, reproducible jail environment, and
  (3) use as disposable environment in which moving /usr/pkg
      is ok
  (i.e. pkgsrc bulk builds)

13 years agoMove uid/gid<=>name functions into libcompat_minix
Thomas Cort [Thu, 7 Jul 2011 21:44:11 +0000 (21:44 +0000)]
Move uid/gid<=>name functions into libcompat_minix

13 years agogenerate sys_errlist without holes
Ben Gras [Wed, 13 Jul 2011 20:34:37 +0000 (22:34 +0200)]
generate sys_errlist without holes

. strerror() assumes this
. remove generated libminc/errlist.c
. errno's in <sys/errno.h> have to be in sorted order
. filtering out some errno.h in Makefile lets us use near-stock
  errlist.awk

13 years agocompat.S: add setlocale(3)
Thomas Cort [Wed, 13 Jul 2011 18:12:19 +0000 (18:12 +0000)]
compat.S: add setlocale(3)

13 years agoimport libcrypt
Ben Gras [Wed, 13 Jul 2011 16:19:27 +0000 (18:19 +0200)]
import libcrypt

. move crypt() from minix-specific to netbsd -lcrypt

13 years agodon't declare closefrom()
Ben Gras [Wed, 13 Jul 2011 12:37:48 +0000 (14:37 +0200)]
don't declare closefrom()
Please enter the commit message for your changes. Lines starting

13 years agoFix e1000 bug introduced in 123cf7
Erik van der Kouwe [Wed, 13 Jul 2011 09:36:10 +0000 (11:36 +0200)]
Fix e1000 bug introduced in 123cf7

13 years agomfs<->vfs stat fallback for old vfs
Ben Gras [Tue, 12 Jul 2011 16:09:52 +0000 (18:09 +0200)]
mfs<->vfs stat fallback for old vfs

13 years agoNew stat structure.
Evgeniy Ivanov [Fri, 1 Jul 2011 19:35:54 +0000 (23:35 +0400)]
New stat structure.

  * VFS and installed MFSes must be in sync before and after this change *

Use struct stat from NetBSD. It requires adding new STAT, FSTAT and LSTAT
syscalls. Libc modification is both backward and forward compatible.

Also new struct stat uses modern field sizes to avoid ABI
incompatibility, when we update uid_t, gid_t and company.
Exceptions are ino_t and off_t in old libc (though paddings added).

13 years agoUpdate minix-port.patch.
Evgeniy Ivanov [Tue, 12 Jul 2011 16:44:29 +0000 (16:44 +0000)]
Update minix-port.patch.

13 years agoSupport for 82801CAM PRO/100 VE
Arun Thomas [Mon, 11 Jul 2011 19:10:28 +0000 (21:10 +0200)]
Support for 82801CAM PRO/100 VE

Contributed by Jan Wieck

13 years agoMove minimal libc from libsys into separate lib.
Evgeniy Ivanov [Sat, 9 Jul 2011 13:17:12 +0000 (17:17 +0400)]
Move minimal libc from libsys into separate lib.

Now users can choose between libsys, libsys + libminc and
libsys + libc. E.g. PUFFS/FUSE servers need libsys + libc while
old servers can use libsys + libminc.

13 years agoprotect ioctl() with __BEGIN/__END_DECLS for C++
Ben Gras [Sat, 9 Jul 2011 14:07:53 +0000 (16:07 +0200)]
protect ioctl() with __BEGIN/__END_DECLS for C++

13 years agolibm: remove debug statements
Ben Gras [Sat, 9 Jul 2011 14:09:51 +0000 (16:09 +0200)]
libm: remove debug statements

13 years agoFix GCC image building
Arun Thomas [Sat, 9 Jul 2011 13:04:42 +0000 (15:04 +0200)]
Fix GCC image building

13 years agoE1000 - Intel 82571EB Gigabit Ethernet Controller
Tomas Hruby [Thu, 7 Jul 2011 17:29:22 +0000 (17:29 +0000)]
E1000 - Intel 82571EB Gigabit Ethernet Controller

13 years agoE1000 - pci probing
Tomas Hruby [Thu, 7 Jul 2011 17:26:39 +0000 (17:26 +0000)]
E1000 - pci probing

- once we know it is not an Intel device, it is not a match

13 years agoE1000 - reading EEPROM
Tomas Hruby [Thu, 7 Jul 2011 17:24:26 +0000 (17:24 +0000)]
E1000 - reading EEPROM

- once the DONE bit is set, we already have the data

13 years agoE1000 - fixed reading MAC from EEPROM
Tomas Hruby [Thu, 7 Jul 2011 17:20:15 +0000 (17:20 +0000)]
E1000 - fixed reading MAC from EEPROM

- makes case which is correct according to Intel docs the default

13 years agoForce SPROFILE=1 while compiling profile command
Antoine Leca [Wed, 8 Jun 2011 19:20:35 +0000 (21:20 +0200)]
Force SPROFILE=1 while compiling profile command

13 years agoE1000 - fixed reading/writing device registers
Tomas Hruby [Mon, 4 Jul 2011 08:46:51 +0000 (10:46 +0200)]
E1000 - fixed reading/writing device registers

- the pointers must be flagged as volatile because otherwise they
  might be "optimized" by a compiler. It is a common good
  practice to access the registers this way, the keyword is in C
  for a reason.

- for instance, in eeprom_eerd() when polling a register the
  compiler, under certain conditions, may decide upon the first
  read and if it does not break the loop it assumes that the
  value is not going to change and thus stays in an infinite
  loop.

13 years agoprofile.h: Don't hide structs and macros
Arun Thomas [Fri, 8 Jul 2011 16:10:56 +0000 (18:10 +0200)]
profile.h: Don't hide structs and macros

13 years agoDisable sprofile by default
Arun Thomas [Fri, 8 Jul 2011 15:21:43 +0000 (17:21 +0200)]
Disable sprofile by default

-Reduces kernel memory usage

13 years agoupdate nbsd port patch files
Ben Gras [Fri, 8 Jul 2011 14:51:20 +0000 (16:51 +0200)]
update nbsd port patch files

13 years agolibm: add i387/ dir, fix test51 compilation
Ben Gras [Fri, 8 Jul 2011 14:21:00 +0000 (16:21 +0200)]
libm: add i387/ dir, fix test51 compilation

. if $MACHINE_ARCH is unknown, use $MACHINE like in libc
. fixes test51 compilation for gcc/clang (with other compile
  and link fixes)

13 years agonbsd libc: global constructors run sanity check
Ben Gras [Fri, 8 Jul 2011 12:24:57 +0000 (14:24 +0200)]
nbsd libc: global constructors run sanity check

13 years agoFix compiler warnings and mutex deadlock
Thomas Veerman [Fri, 8 Jul 2011 13:59:07 +0000 (13:59 +0000)]
Fix compiler warnings and mutex deadlock

13 years agoworld: add servers install target
Ben Gras [Thu, 7 Jul 2011 21:04:32 +0000 (23:04 +0200)]
world: add servers install target

  . previously happened for install in tools/
  . reported by Evgeniy Ivanov

13 years agonamespace.h: add entry for shutdown(2)
Thomas Cort [Thu, 7 Jul 2011 15:47:34 +0000 (15:47 +0000)]
namespace.h: add entry for shutdown(2)

13 years agonbsd libc: no alias for getpw* minix compat symbols
Ben Gras [Wed, 6 Jul 2011 17:02:17 +0000 (19:02 +0200)]
nbsd libc: no alias for getpw* minix compat symbols

13 years agonbsd libc: disable i386 exec*() optimisation
Ben Gras [Wed, 6 Jul 2011 09:34:03 +0000 (11:34 +0200)]
nbsd libc: disable i386 exec*() optimisation

13 years agocompat.S: succincter and without mktemp
Ben Gras [Tue, 5 Jul 2011 14:17:29 +0000 (16:17 +0200)]
compat.S: succincter and without mktemp

13 years agostopgap measure to define originals of __RENAMEd symbols
Ben Gras [Tue, 5 Jul 2011 12:31:06 +0000 (14:31 +0200)]
stopgap measure to define originals of __RENAMEd symbols

13 years agopm, vfs: don't print something for bogus calls
Ben Gras [Mon, 4 Jul 2011 14:18:14 +0000 (16:18 +0200)]
pm, vfs: don't print something for bogus calls

13 years agoReplace indent with NetBSD version
Vivek Prakash [Sat, 2 Jul 2011 23:26:53 +0000 (23:26 +0000)]
Replace indent with NetBSD version

- minix-port.patch is empty as it compiles unchanged

13 years agodescr: add -I to mask forget /usr/include for ack
Ben Gras [Mon, 4 Jul 2011 14:16:10 +0000 (16:16 +0200)]
descr: add -I to mask forget /usr/include for ack

13 years agoReduce compiler/libraries/headers cases to only two
Ben Gras [Fri, 1 Jul 2011 13:57:43 +0000 (15:57 +0200)]
Reduce compiler/libraries/headers cases to only two

1. ack, a.out, minix headers (moved to /usr/include.ack),
   minix libc
2. gcc/clang, elf, netbsd headers (moved to /usr/include),
   netbsd libc (moved to /usr/lib)

So this obsoletes the /usr/netbsd hierarchy.

No special invocation for netbsd libc necessary - it's always used
for gcc/clang.

13 years agonew mtree script
Ben Gras [Sun, 3 Jul 2011 13:30:54 +0000 (15:30 +0200)]
new mtree script

  . skip /proc (allow make etcfiles without unmounting /proc)
  . bit more readable

13 years agointroduce sqrt_approx() in -lsys
Ben Gras [Mon, 4 Jul 2011 00:51:12 +0000 (02:51 +0200)]
introduce sqrt_approx() in -lsys

  . use this to avoid -lm dependency in mfs

13 years agotools/Makefile: don't install servers (workaround)
Ben Gras [Sun, 3 Jul 2011 13:01:18 +0000 (15:01 +0200)]
tools/Makefile: don't install servers (workaround)

   . if the build target is invoked again for the install target, the
     stack sizes aren't set properly. A workaround is to only build
     and not install the servers. (Installing them doesn't really make
     sense anyway.)

13 years agovfs: don't SUSPEND for unknown calls
Ben Gras [Sat, 2 Jul 2011 15:15:20 +0000 (17:15 +0200)]
vfs: don't SUSPEND for unknown calls

. returning ENOSYS helps for implementing
  new calls with forwards compatability

13 years agoAdd bin/ hierarchy
Arun Thomas [Fri, 1 Jul 2011 16:43:15 +0000 (18:43 +0200)]
Add bin/ hierarchy

13 years agoUpdate minix-port.patch
Arun Thomas [Fri, 1 Jul 2011 15:53:12 +0000 (17:53 +0200)]
Update minix-port.patch

13 years agorelease.sh: Add /bin/rm to bootstrap
Arun Thomas [Thu, 30 Jun 2011 12:00:24 +0000 (14:00 +0200)]
release.sh: Add /bin/rm to bootstrap

13 years agorelease.sh: install(1) should go in /bin
Arun Thomas [Thu, 30 Jun 2011 11:42:43 +0000 (13:42 +0200)]
release.sh: install(1) should go in /bin

13 years agoopendir(3): on success, don't clobber errno
Thomas Cort [Wed, 29 Jun 2011 14:45:47 +0000 (14:45 +0000)]
opendir(3): on success, don't clobber errno

The opendir(3) function was setting errno to ENOTDIR even
when the directory existed and was opened successfully. This
caused git to falsely detect an error.

This change moves the errno assignment into the failure code
block. It also adds a test to test24 to check for errno
changing when opendir(3) returns success.

13 years agonew gcc mkheaders location
Ben Gras [Wed, 29 Jun 2011 16:24:16 +0000 (18:24 +0200)]
new gcc mkheaders location

  . Try to be flexible about it this time

13 years agorelease.sh: add /usr/pkg/bin to $PATH for clang
Ben Gras [Wed, 29 Jun 2011 17:23:49 +0000 (19:23 +0200)]
release.sh: add /usr/pkg/bin to $PATH for clang

13 years agoRemove obsolete m4 Makefile
Arun Thomas [Wed, 29 Jun 2011 15:44:07 +0000 (17:44 +0200)]
Remove obsolete m4 Makefile

13 years agoGCC build option for elf libs and usr.bin
Arun Thomas [Wed, 29 Jun 2011 08:32:37 +0000 (10:32 +0200)]
GCC build option for elf libs and usr.bin

13 years agoBuild libelf and mkimage in world
Arun Thomas [Tue, 28 Jun 2011 22:17:35 +0000 (00:17 +0200)]
Build libelf and mkimage in world

13 years agoReplace m4 with NetBSD version
Arun Thomas [Tue, 28 Jun 2011 22:15:19 +0000 (00:15 +0200)]
Replace m4 with NetBSD version

-Create usr.bin hierarchy
-Update minix-port.patch to include m4

13 years agoUpdated hier(7) man page to conform 3.1.8
Vivek Prakash [Mon, 27 Jun 2011 15:32:54 +0000 (15:32 +0000)]
Updated hier(7) man page to conform 3.1.8

13 years agoRestore stripping of elf binaries in ramdisk
Arun Thomas [Tue, 28 Jun 2011 15:49:45 +0000 (17:49 +0200)]
Restore stripping of elf binaries in ramdisk