]> Zhao Yanbai Git Server - minix.git/log
minix.git
11 years agoSubsecond timestamps support for FS
Antoine Leca [Wed, 21 Dec 2011 22:29:29 +0000 (23:29 +0100)]
Subsecond timestamps support for FS

Expand REQ_UTIME to include tv_nsec members
(as in struct timespec) in addition to tv_sec==time_t

Designed with help from David van Moolenbroek

11 years agoLibpuffs: use struct timespec instead of time_t
Antoine Leca [Sun, 7 Apr 2013 08:42:26 +0000 (10:42 +0200)]
Libpuffs: use struct timespec instead of time_t

11 years agosys/stat.h: better align with NetBSD-current
Antoine Leca [Fri, 5 Apr 2013 22:10:35 +0000 (00:10 +0200)]
sys/stat.h: better align with NetBSD-current

11 years agomake minix lwip make explicit use of 'int' 91/491/1
Michael W. Bombardieri [Thu, 11 Apr 2013 20:37:30 +0000 (22:37 +0200)]
make minix lwip make explicit use of 'int'

makes lwip use "unsigned int" instead of "unsigned" since this is
more obvious (i.e. type is not implied).

Change-Id: I852eb80484516e1235241d55be3e15174fa24109

11 years agoDowngrading to netbsd zlib version 80/480/2
Lionel Sambuc [Sat, 6 Apr 2013 16:45:48 +0000 (18:45 +0200)]
Downgrading to netbsd zlib version

Change-Id: I83cf73d8357ea34ab5e49fe15bd4c45ce54cac01

11 years agoRemoving include/minix/limits.h 79/479/2
Lionel Sambuc [Mon, 8 Apr 2013 14:54:49 +0000 (16:54 +0200)]
Removing include/minix/limits.h

This files defines two constants which are only used through
sys/syslimits. So they where moved there instead of including the file
and it was removed.

Change-Id: Iba3d220144dddf5d6411a6c66e2f223a1aafb50f

11 years agoAdding missing dependency on libraries for hdboot 73/473/2
Lionel Sambuc [Fri, 5 Apr 2013 12:22:46 +0000 (14:22 +0200)]
Adding missing dependency on libraries for hdboot

 * Also cleanup a bit the makefile.
 * Also removing small inconsistency for arm builds where log would be
   skipped if doing a make hdboot, but not when cross-compiling.

Change-Id: Ic9e20655234a667ea8a967d05589d4df46c2d521

11 years agotests/run: add test69 to setuids.
Thomas Cort [Sat, 6 Apr 2013 22:46:56 +0000 (22:46 +0000)]
tests/run: add test69 to setuids.

test69 requires superuser powers to adjust the time. This caused
the test to fail when run as a normal user. The patch adds test69
to the setuid list which will allow regular users to execute it.

Patch contributed by Antoine Leca.

11 years agoImporting usr.sbin/rdate 76/476/2
Thomas Cort [Sat, 6 Apr 2013 12:47:10 +0000 (12:47 +0000)]
Importing usr.sbin/rdate

Import the NetBSD rdate command and remove the Minix rdate command.
The default behaviour for both is the same. The NetBSD version adds
options to just display the time, adjust the time using adjtime(),
and set the time without printing the time.

Porting Notes:
 - Compiles cleanly out of the box without any warnings
 - Path changes from /usr/bin/rdate to /usr/sbin/rdate
 - checked pkgsrc for any usages of rdate (none found)
 - checked src for any usages of rdate (none found)

Testing:
 - all command line options work (tested with time.nist.gov server)
 - Native and cross build OK

Change-Id: I613449763891a896527f337999c006a970c3924c

11 years agoetcfiles: Improve the "install" message 77/477/1
Antoine Leca [Sat, 6 Apr 2013 22:22:07 +0000 (22:22 +0000)]
etcfiles: Improve the "install" message

11 years agoImporting usr.bin/ftp 75/475/1
Thomas Cort [Fri, 5 Apr 2013 19:02:06 +0000 (19:02 +0000)]
Importing usr.bin/ftp

11 years agotop: a few fixes 74/474/1
Ben Gras [Fri, 5 Apr 2013 15:24:47 +0000 (15:24 +0000)]
top: a few fixes

. fixed overflow in ticks compare function, causing
  occasionally esp. the kernel to be mis-ordered by cpu
  time
. fixed some const string related warnings
. fixed some variable name shadowing warnings

Change-Id: I02c177b1579bce164372f9b03f6b472537cc9e3e

11 years agoRemove obsolete warning in sys/sys/sysctl header 72/472/2
Lionel Sambuc [Fri, 5 Apr 2013 09:50:32 +0000 (11:50 +0200)]
Remove obsolete warning in sys/sys/sysctl header

Change-Id: Idb9b10922d00d4b3886c8247f352cc4ec5fe17b4

11 years agoinet: silence message about exceptions
Thomas Cort [Tue, 2 Apr 2013 02:06:54 +0000 (02:06 +0000)]
inet: silence message about exceptions

. inet: silence message about exceptions not being implemented
  for select(UDP)

This message generates a lot of noise with openntpd. Hide it unless DEBUG is
turned on.

Change-Id: I1527a9ca2583601d6087456062b4f675c80dd711

11 years agolibc: add adjtime() system call. 70/470/1
Thomas Cort [Sun, 31 Mar 2013 01:24:24 +0000 (01:24 +0000)]
libc: add adjtime() system call.

Implement the adjtime() system call and add a test for it to test69.
Additionally, install the adjtime.2 and clock_*.2 man pages.

11 years agolibc: add clock_settime() system call. 69/469/1
Thomas Cort [Sat, 30 Mar 2013 16:59:21 +0000 (16:59 +0000)]
libc: add clock_settime() system call.

This also adds the sys_settime() kernel call which allows for the adjusting
of the clock named realtime in the kernel. The existing sys_stime()
function is still needed for a separate job (setting the boottime). The
boottime is set in the readclock driver. The sys_settime() interface is
meant to be flexible and will support both clock_settime() and adjtime()
when adjtime() is implemented later.

settimeofday() was adjusted to use the clock_settime() interface.

One side note discovered during testing: uptime(1) (part of the last(1)),
uses wtmp to determine boottime (not Minix's times(2)). This leads `uptime`
to report odd results when you set the time to a time prior to boottime.
This isn't a new bug introduced by my changes. It's been there for a while.

11 years agotest69: add clock_getres() and clock_gettime() tests. 68/468/1
Thomas Cort [Sat, 30 Mar 2013 01:45:02 +0000 (01:45 +0000)]
test69: add clock_getres() and clock_gettime() tests.

11 years agolibc: add clock_getres()/clock_gettime() system calls. 67/467/1
Thomas Cort [Fri, 29 Mar 2013 21:48:22 +0000 (21:48 +0000)]
libc: add clock_getres()/clock_gettime() system calls.

In order to make it more clear that ticks should be used for timers
and realtime should be used for timestamps / displaying the date/time,
getuptime() was renamed to getticks() and getuptime2() was renamed to
getuptime().

Servers, drivers, libraries, tests, etc that use getuptime()/getuptime2()
have been updated. In instances where a realtime was calculated, the
calculation was changed to use realtime.

System calls clock_getres() and clock_gettime() were added to PM/libc.

11 years agokernel: rename realtime to monotonic, add realtime 66/466/1
Thomas Cort [Fri, 29 Mar 2013 19:34:29 +0000 (19:34 +0000)]
kernel: rename realtime to monotonic, add realtime

Old realtime was used for both timers (where an accurate count of
all ticks is needed) and the system time. In order to implement
adjtime(2), these duties must be separated as changing the time
of day by a small amount shouldn't affect timers in any way nor
should it change the boot time.

Following the naming of the clocks used by clock_gettime(2). The
clock named 'realtime' will represent the best guess at the
current wall clock time, and the clock named 'monotonic' will
represent the absolute time the system has been running.
Use monotonic for timers in kernel and in drivers. Use realtime
for determining time of day, dates, etc.

This commit simply renames realtime to monotonic and adds a new
tick counter named realtime. There are no functional changes in
this commit. It just lays the foundation for future work.

11 years agosome etc fixes 54/454/5
Ben Gras [Tue, 2 Apr 2013 22:42:17 +0000 (22:42 +0000)]
some etc fixes

. split user-editable and system-owned files in etc/Makefile
. mtab is a symlink, not a file now; remove it
. force-install of certain system-controlled /etc files from
  top Makefile
. rename /etc/make.conf to /etc/mk.conf; and don't set $ARCH;
  reduce difference in bsd.own.mk

Change-Id: I9f4bbb8d37ba80cba7dcfcf1a9a89e934910f579

11 years agomkfs.mfs fixup 65/465/1
Lionel Sambuc [Tue, 26 Feb 2013 15:18:28 +0000 (15:18 +0000)]
mkfs.mfs fixup

 For the special case of crossbuilding minix on minix.

11 years agoetc: force system.conf install 48/448/2
Ben Gras [Fri, 29 Mar 2013 22:07:19 +0000 (22:07 +0000)]
etc: force system.conf install

Change-Id: I5f88b108248fb3cee457de8a2f2baa2f30b0a335

11 years agolwip (inet's alternative) is compiled by default
Tomas Hruby [Wed, 6 Feb 2013 10:43:02 +0000 (10:43 +0000)]
lwip (inet's alternative) is compiled by default

11 years agocore is not cleaned in libraries
Tomas Hruby [Wed, 6 Feb 2013 16:11:03 +0000 (16:11 +0000)]
core is not cleaned in libraries

- according to Lionel, no such files are generated

- it conflicts with the core subdirectory in liblwip

11 years agoLWIP - avoid an assert when a driver restarts
Tomas Hruby [Thu, 7 Feb 2013 09:50:58 +0000 (09:50 +0000)]
LWIP - avoid an assert when a driver restarts

11 years agoLWIP - avoid crash when an unknown driver come up
Tomas Hruby [Thu, 7 Feb 2013 09:49:52 +0000 (09:49 +0000)]
LWIP - avoid crash when an unknown driver come up

11 years agoLWIP - fixed TCP panic when shutting down
Tomas Hruby [Sun, 14 Oct 2012 20:18:12 +0000 (20:18 +0000)]
LWIP - fixed TCP panic when shutting down

- listening sockets do not handle some callbacks

11 years agoLIBLWIP - ARP fix
Tomas Hruby [Sat, 13 Oct 2012 21:05:25 +0000 (21:05 +0000)]
LIBLWIP - ARP fix

- does not crash KVM anymore

11 years agoLWIP - fixed makefiles
Ambarisha B [Thu, 21 Mar 2013 20:14:51 +0000 (21:14 +0100)]
LWIP - fixed makefiles

- Modified libnetsock/Makefile and servers/lwip/Makefile to
  include ipvX headers

Signed-off-by: Tomas Hruby <tom@minix3.org>
11 years agoLIBLWIP - updated to LwIP trunk
Ambarisha B [Wed, 4 Jul 2012 23:32:06 +0000 (05:02 +0530)]
LIBLWIP - updated to LwIP trunk

commit a4a41b9023ef5b3a7c4a1cd82fb167fc63e706df
Author: goldsimon <goldsimon@gmx.de>
Date:   Wed Sep 26 21:50:42 2012 +0200

- This also brings in LwIP's IPv6 codebase

Signed-off-by: Tomas Hruby <tom@minix3.org>
11 years agoLIBLWIP - fixed clang warnings
Tomas Hruby [Thu, 11 Oct 2012 10:23:44 +0000 (10:23 +0000)]
LIBLWIP - fixed clang warnings

11 years agoImporting usr.bin/from 41/441/1
Thomas Cort [Fri, 22 Mar 2013 20:05:41 +0000 (20:05 +0000)]
Importing usr.bin/from

11 years agoImporting usr.bin/whatis 40/440/1
Thomas Cort [Fri, 22 Mar 2013 19:03:20 +0000 (19:03 +0000)]
Importing usr.bin/whatis

- LSC: fixed missing entry in minix/mi

Change-Id: I5766dd72819e3b15ef24ab49c5ee3a5aa42049c4

11 years agoImporting usr.bin/head 38/438/1
Thomas Cort [Mon, 18 Mar 2013 22:56:28 +0000 (22:56 +0000)]
Importing usr.bin/head

11 years agoinclude/paths.h: correct _PATH_MAILDIR
Thomas Cort [Fri, 22 Mar 2013 20:07:37 +0000 (20:07 +0000)]
include/paths.h: correct _PATH_MAILDIR

11 years agoImporting NetBSD banner
David Höppner [Mon, 24 Dec 2012 19:00:31 +0000 (19:00 +0000)]
Importing NetBSD banner

11 years agoVFS: wikify README
Thomas Veerman [Thu, 21 Mar 2013 15:20:34 +0000 (15:20 +0000)]
VFS: wikify README

Change-Id: I746f7c8ddabd1e047b8d536df14586c5b1594d55

11 years agovfs: coredump fix: write zeroes for missing memory
Ben Gras [Sat, 16 Mar 2013 04:13:02 +0000 (04:13 +0000)]
vfs: coredump fix: write zeroes for missing memory

11 years agoMove MINIX reboot definitions into minix/reboot.h 12/412/2
David van Moolenbroek [Wed, 20 Mar 2013 15:29:03 +0000 (15:29 +0000)]
Move MINIX reboot definitions into minix/reboot.h

Also fix a buffer overflow in commands/reboot/sh_wall.c.

Change-Id: I3a61057c4f0221d1700e14d44520b4ad17f1dbe1

11 years agoRename "struct partition" to "struct part_geom"
David van Moolenbroek [Fri, 8 Mar 2013 13:52:24 +0000 (13:52 +0000)]
Rename "struct partition" to "struct part_geom"

Change-Id: Ifaf9795ba70f5b933599b2a6ec9415e6bd13200c

11 years agorelease.sh: pkg_install should be installed 1st
Thomas Cort [Sun, 17 Mar 2013 23:54:20 +0000 (19:54 -0400)]
release.sh: pkg_install should be installed 1st

pkgin now depends on pkg_install. If pkg_install appears after pkgin
in PREINSTALLED_PACKAGES, there will be an error because pkg_install
was installed as a dependency for pkgin.

11 years agopackages.install: remove obsolete minix-all pkg.
Thomas Cort [Sun, 17 Mar 2013 23:59:35 +0000 (19:59 -0400)]
packages.install: remove obsolete minix-all pkg.

The minix-all package was placed by the pkgin_all command.

11 years agoImporting usr.bin/cal 11/411/1
Thomas Cort [Fri, 15 Mar 2013 23:52:39 +0000 (23:52 +0000)]
Importing usr.bin/cal

11 years agoImporting usr.bin/yes 10/410/1
Thomas Cort [Fri, 15 Mar 2013 23:29:53 +0000 (23:29 +0000)]
Importing usr.bin/yes

Change-Id: Ia76d7ce9c6b2bf7523d2ecbc6470e3e1e7ab5ee5

11 years agoImporting usr.bin/who 09/409/1
Thomas Cort [Fri, 15 Mar 2013 23:43:44 +0000 (23:43 +0000)]
Importing usr.bin/who

11 years agoVM: ARM/I386 PDE/PTE macro unification 85/385/2
Ben Gras [Wed, 6 Mar 2013 12:17:07 +0000 (12:17 +0000)]
VM: ARM/I386 PDE/PTE macro unification

. further reduces special cases in pagetable.c

Change-Id: Ifd7dd9ee10ca618a47bb4a372467205fbe6da90e

11 years agoImporting bin/ksh
Thomas Cort [Wed, 13 Mar 2013 03:41:18 +0000 (03:41 +0000)]
Importing bin/ksh

11 years agoChange the group of ast to users instead of others 99/399/2
Lionel Sambuc [Wed, 13 Mar 2013 10:37:13 +0000 (11:37 +0100)]
Change the group of ast to users instead of others

Change-Id: I3c92554f209fa39597e55a6b407dddd447111f2f

11 years agoAdapt ARM print macro to match used types 98/398/2
Lionel Sambuc [Sun, 3 Feb 2013 21:27:36 +0000 (22:27 +0100)]
Adapt ARM print macro to match used types

Change-Id: I987c669dce30d97ff67e33a50106a07163f7d7f1

11 years agoVM: pagetable.c: harmonize x86/ARM findhole() code 84/384/3
Ben Gras [Sun, 24 Feb 2013 21:00:52 +0000 (22:00 +0100)]
VM: pagetable.c: harmonize x86/ARM findhole() code

ARM needs to be able to find N consecutive free slots; use same
code for x86.

Change-Id: Ic79677961c8adfca2aeb5385962942ae0d76867c

11 years agoVM: pagequeue data structure 83/383/3
Ben Gras [Sat, 29 Dec 2012 00:16:33 +0000 (00:16 +0000)]
VM: pagequeue data structure

. data structure that automatically keeps a set
  of pages in reserve, to replace sparepages and
  possibly re-used in the future for similar situations,
  e.g. if in-filesystem-cache block eviction is
  implemented and FS asks for a new block

Change-Id: I149d46c14b9c8e75df16cb94e08907f008c339a6

11 years agoInstall default users directly 96/396/3
Lionel Sambuc [Fri, 8 Mar 2013 18:18:09 +0000 (19:18 +0100)]
Install default users directly

Install /home/ast and /home/bin as part of the system build procedure,
as the setup script is not ran on the arm image.

/home/bin is needed for successful completion of our test suite.

This patch does not change the setup script, as it is not bothered by
those files/directiories being already there, and may be useful during
reinstallation on intel systems.

Change-Id: I358c881df09223c343442673aa0822937f9ea33c

11 years agoInstalling posix tests in /usr/tests/minix-posix 95/395/3
Lionel Sambuc [Fri, 8 Mar 2013 16:02:27 +0000 (17:02 +0100)]
Installing posix tests in /usr/tests/minix-posix

The goal is to enable anyone to simply run our current test suite.

Change-Id: I27d8856cb82a4be2baa5dc5273526383b7f4fc2c

11 years agoImporting usr.bin/getopt
Thomas Cort [Sat, 9 Mar 2013 19:22:06 +0000 (19:22 +0000)]
Importing usr.bin/getopt

11 years agotest56: unlink proper test file
Thomas Veerman [Fri, 8 Mar 2013 15:45:53 +0000 (15:45 +0000)]
test56: unlink proper test file

Change-Id: I215f0d00b8e077930c4e93d192553eaf0d2a353f

11 years agoUDS: terminate canonical path string 92/392/2
Thomas Veerman [Fri, 8 Mar 2013 14:17:13 +0000 (14:17 +0000)]
UDS: terminate canonical path string

When you provided a string with junk after the terminating nul to a
UNIX domain socket and used bind(2), the canonical path function would
not properly terminate the new string. This caused VFS to return
ENAMETOOLONG on an otherwise valid path name.

Test case is added to test56.

Change-Id: I883b6be23d9e4ea13c3cee28cbb3726343df037f

11 years agopax: Replace bsdtar.1 by a symlink to tar.1 89/389/3
Lionel Sambuc [Wed, 6 Mar 2013 17:52:14 +0000 (18:52 +0100)]
pax: Replace bsdtar.1 by a symlink to tar.1

Change-Id: I4b80080e9420e89525c73f03ed68717fb59c1e40

11 years agobuild:small fixes to arm_sdimage. 91/391/2
Kees Jongenburger [Fri, 8 Mar 2013 08:42:32 +0000 (09:42 +0100)]
build:small fixes to arm_sdimage.

* Use the same output directory as was previously the standard.
* Add copying of uEnv and cmdline to the obj directory to allow booting from tftp.
* No longer start qemu at the end of the process.
* Use sudo if the script was called as non root user.

Change-Id: I53143b1ce6633e764d173c3eb883c2efa3e6a5b7

11 years agoLet the build system manage compilation flags 74/374/3
Lionel Sambuc [Wed, 27 Feb 2013 16:53:12 +0000 (17:53 +0100)]
Let the build system manage compilation flags

Do not hardcode warning and optimisation flags, otherwise the
main options (i.e. DBG, CPPFLAGS) will not work as expected.

You can still provide specific default by using DBG?=<value>.

Doing so leaves the opportunity to override the setting from the
commandline, while the default value from the build system is
then ignored for that particular package.

When crosscompiling, and using build.sh, adding -V DBG=<value> has
this same effect as make DBG=<value>.

Change-Id: Ic610e4d33b945acad64571e1431f1814291e2d84

11 years agoReduce differences in libgcc Makefiles for ARM 90/390/2
Lionel Sambuc [Thu, 7 Mar 2013 13:31:13 +0000 (14:31 +0100)]
Reduce differences in libgcc Makefiles for ARM

Change-Id: I1b6b18bce063550907aa6e9ea2061e12b0855de4

11 years agoASH: Fix clean target. 88/388/2
Lionel Sambuc [Wed, 6 Mar 2013 12:38:10 +0000 (13:38 +0100)]
ASH: Fix clean target.

Also include code generators in the cleaning targets.

Change-Id: Ic1eeece5152f2b13a0357363d5e902b182022fdf

11 years agokernel, ramdisk: some boot unification 81/381/3
Ben Gras [Wed, 6 Mar 2013 18:27:47 +0000 (19:27 +0100)]
kernel, ramdisk: some boot unification

To use the new SD building script, Linux has to be configured with
loop.max_part=15 on the command line (or set at module load time)
to make the loopback device see the partitions.

This commit removes a lot of differences between the ARM and x86
boot ramdisk and rc scripts. It changes the ARM build from running
from ramdisk to requiring a full filesystem on the SD image and
booting into it.

. ramdisk: remove some arm-only utilities only used for running
  from the shell
. remove ARM-only rc.arm, proto.arm.small, ttys and mylogin.sh
  boot-time ramdisk files
. change kernel to add "arch" variable so userland knows what
  we're running on from sysenv
. make ARM use the regular ramdisk rc file, changed to distinguish
  i386-only and ARM-only drivers; requires rootdevname to be set
. change /etc/rc and /usr/etc/rc to start i386-only drivers only on
  i386 systems
. change the kernel/arm to have a special case for the memory
  driver to load it higher so it can be bigger
. add uEnv.txt, cmdline.txt and a for now highly linux-dependent
  SD preparation script arm_sdimage.sh to the git repository in
  releasetools/

Change-Id: I68910ba4e96ee80f7a12b65e48b5d39b43ca6397

11 years agoFix signal handling for services on abort/exit 76/376/2
Lionel Sambuc [Thu, 28 Feb 2013 14:41:39 +0000 (15:41 +0100)]
Fix signal handling for services on abort/exit

Change-Id: I970a25ae0dd52f0d928fda376296e7b39e3e17eb

11 years agoVFS, FSes: add REQ_PEEK request type 82/382/2
Ben Gras [Sun, 13 Jan 2013 21:44:38 +0000 (21:44 +0000)]
VFS, FSes: add REQ_PEEK request type

REQ_PEEK behaves just like REQ_READ except that it does not copy
data anywhere, just obtains the blocks from the FS into the cache.

To be used by the future mmap implementation.

Change-Id: I1b56de304f0a7152b69a72c8962d04258adb44f9

11 years agoUDS: check connection state better 79/379/4
Thomas Veerman [Tue, 5 Mar 2013 10:10:41 +0000 (10:10 +0000)]
UDS: check connection state better

Select(2)ing on UNIX domain sockets was not working properly because
connection state wasn't properly checked/propagated. So selecting for
a read descriptor and closing the write descriptor on the other end
didn't cause select to return. Similarly, read(2) kept blocking while
it should return an error when the other end closed the socket.

Change-Id: I3f5bb52af1a6b03313d508bf915fc838357ba450

11 years agoVM: shared memory pagefault fix 86/386/2
Ben Gras [Tue, 5 Mar 2013 16:17:21 +0000 (17:17 +0100)]
VM: shared memory pagefault fix

. if there is no memory there, it's not writable; this
  check bug by the shared memory's writable() method causes
  pagefaults not to be handled  at all in certain situations,
  triggering an assert() in pt_writemap()
. added some assert()s to catch this and similar situations
  in the future

Change-Id: Ife89bfab4f9a3aa7bf4e33dfb0b13b89dcd5bb94

11 years agoSpanish keymap with tilde
Antoine Leca [Mon, 23 Jan 2012 20:41:11 +0000 (21:41 +0100)]
Spanish keymap with tilde

and several small changes in keymaps, like cleaner
support for extended keypresses (those preceded with E0)

11 years agomake etcfiles: small fix in Makefile
Antoine Leca [Wed, 23 Jan 2013 16:54:41 +0000 (16:54 +0000)]
make etcfiles: small fix in Makefile

Keep the MKUNPRIVED=yes stuff with the installation
of master.passwd, i.e. away from make etcfiles

11 years agoCleanup: Remove minix.bootprog.mk 75/375/2
Lionel Sambuc [Thu, 28 Feb 2013 10:06:24 +0000 (11:06 +0100)]
Cleanup: Remove minix.bootprog.mk

The build system distinction between "bootprog" and "service" is
meaningless as boot programs are standard services.

As minix.service.mk simply imports minix.bootprog.mk, reduce confusion
by removing minix.bootprog.mk and placing the rules in minix.service.mk.

Change-Id: I4056b1e574bed59a8c890239b41b1a7c7cad63e8

11 years agoKernel: remove compile warnings
Thomas Veerman [Wed, 6 Mar 2013 09:20:00 +0000 (09:20 +0000)]
Kernel: remove compile warnings

11 years agoSpring cleanup 78/378/2
Thomas Veerman [Thu, 28 Feb 2013 14:44:23 +0000 (14:44 +0000)]
Spring cleanup

Remove old versions of system calls and system calls that don't have
a libc api interface anymore (dup, dup2, creat).

VFS still contains support for old system call numbers for the new stat
system calls (i.e., 65, 66, 67) to keep supporting old binaries built for
MINIX 3.2.1 (prior to the release).

Change-Id: I721779b58a50c7eeae20669de24658d55d69b25b

11 years agoImporting usr.bin/col
Thomas Cort [Fri, 1 Mar 2013 03:47:59 +0000 (03:47 +0000)]
Importing usr.bin/col

11 years agoKernel: make shutdown more verbose 77/377/2
Thomas Veerman [Thu, 28 Feb 2013 17:04:15 +0000 (17:04 +0000)]
Kernel: make shutdown more verbose

Change-Id: Iab5fed4cb617a9dbce164ff81c7dedf408e9fd98

11 years agotest68: test pipe2 functionality 73/373/2
Thomas Veerman [Wed, 27 Feb 2013 15:40:54 +0000 (15:40 +0000)]
test68: test pipe2 functionality

Change-Id: Idb15ec83983d0b052232c9533f89d637229d19df

11 years agotest67: test opening files and sockets with O_CLOEXEC 65/365/4
Thomas Veerman [Tue, 26 Feb 2013 11:30:44 +0000 (11:30 +0000)]
test67: test opening files and sockets with O_CLOEXEC

Change-Id: If71e61f830c6d3b5154368e189baa4f70bd73850

11 years agolibc: drop Minix popen and use NetBSD's 72/372/2
Thomas Veerman [Wed, 27 Feb 2013 16:50:04 +0000 (16:50 +0000)]
libc: drop Minix popen and use NetBSD's

Change-Id: I56f253d855671a6e1c8d53c7383107565164ab8d

11 years agoVFS: implement pipe2 58/358/7
Thomas Veerman [Mon, 25 Feb 2013 14:45:22 +0000 (14:45 +0000)]
VFS: implement pipe2

Change-Id: Iedc8042dd73a903456b25ba665d12577f5589ca2

11 years agosocket: implement SOCK_CLOEXEC and SOCK_NONBLOCK 57/357/4
Thomas Veerman [Mon, 25 Feb 2013 11:36:29 +0000 (11:36 +0000)]
socket: implement SOCK_CLOEXEC and SOCK_NONBLOCK

Change-Id: I3fa36fa999c82a192d402cb4d913bd397e106e53

11 years agoVFS: add ability to open files O_CLOEXEC 56/356/3
Thomas Veerman [Thu, 10 Jan 2013 15:31:30 +0000 (15:31 +0000)]
VFS: add ability to open files O_CLOEXEC

.adjust libc to make use of it (undo __minix diff)

Change-Id: I90a1aa219fcd1b12b6bc60e72176f326eac8184a

11 years agosprofalyze: fix profile data parsing
David van Moolenbroek [Wed, 27 Feb 2013 17:53:27 +0000 (17:53 +0000)]
sprofalyze: fix profile data parsing

11 years agoFix permissions for term(1) 69/369/2
Antoine Leca [Fri, 18 Jan 2013 19:52:00 +0000 (19:52 +0000)]
Fix permissions for term(1)

LSC: Small correction, using the group name is not secure in cross-build
     setups, replaced by the numerical gid to ensure proper operation.

Change-Id: I7657b77f29eaa513fe24d8c4e2eb6de9afd53950

11 years agoSimplification in drivers/ramdisk 67/367/2
Lionel Sambuc [Tue, 26 Feb 2013 15:49:27 +0000 (16:49 +0100)]
Simplification in drivers/ramdisk

Periods are allowed in Make variable names, which let us simplify
a bit the Makefile.

Based on a proposition by Antoine LECA

Change-Id: I759d7dc7721905a4775e8ab28e0371e48a443f25

11 years agoRemoving forgotten, useless, renegade defines 66/366/2
Lionel Sambuc [Tue, 26 Feb 2013 12:34:13 +0000 (13:34 +0100)]
Removing forgotten, useless, renegade defines

Change-Id: I3ff12b42e2815c8f3d72bb577a58552f3a0dc662

11 years agoCompatibility check for autotools 63/363/3
Lionel Sambuc [Mon, 25 Feb 2013 10:48:38 +0000 (11:48 +0100)]
Compatibility check for autotools

This add an explicit test on the obsolete _MINIX define, unset it and
replace it with _NETBSD_SOURCE.

This should help compile a lot of packages relying on autotools in pkgsrc.

Change-Id: Ie7da4ed5172f1b9f1f89e7a5d788ec2aed4d2563

11 years agoRemoving obsolete _NBSD_LIBC define 62/362/3
Lionel Sambuc [Mon, 25 Feb 2013 20:06:20 +0000 (21:06 +0100)]
Removing obsolete _NBSD_LIBC define

Change-Id: Ia6ce84ccdf36cf6f64540b990baaa7d85c53533d

11 years agoRemoving obsolete _MINIX_COMPAT define 61/361/3
Lionel Sambuc [Mon, 25 Feb 2013 16:36:35 +0000 (17:36 +0100)]
Removing obsolete _MINIX_COMPAT define

Change-Id: If1f5901a53bbc454c04ee33ebb469a58f0566df7

11 years agoRemoving obsolete _MINIX_SOURCE define 60/360/3
Lionel Sambuc [Mon, 25 Feb 2013 11:48:26 +0000 (12:48 +0100)]
Removing obsolete _MINIX_SOURCE define

Change-Id: I924d5af294cd5daf17c73f71803f060cea3c3d8b

11 years agoRemoving obsolete _MINIX define 59/359/3
Lionel Sambuc [Mon, 25 Feb 2013 11:43:15 +0000 (12:43 +0100)]
Removing obsolete _MINIX define

Change-Id: Id33ac7e973d1c0e249b690fe44a597474fac6076

11 years agogetdirs.awk: restore regexp to original
Ben Gras [Sun, 24 Feb 2013 12:50:53 +0000 (13:50 +0100)]
getdirs.awk: restore regexp to original

Change-Id: I7f9714e1b0e079299c87b036dea8e91ffc701342

11 years agoRS: refresh service upon init failure 55/355/2
Thomas Veerman [Fri, 22 Feb 2013 13:57:00 +0000 (13:57 +0000)]
RS: refresh service upon init failure

When a service fails to initialize, RS exits the service. When injecting
faults this is undesired behavior. With this patch, we're going to assume
that when starting services with the -b flag (no binary exponential
offset), we don't want to exit the service but simply restart the
initialization.

Change-Id: Ie8b9c89e16fe4df8a89ec30ec678a216b4ec5fd0

11 years agoRemove unintentionally commited file
Thomas Veerman [Fri, 22 Feb 2013 13:56:25 +0000 (13:56 +0000)]
Remove unintentionally commited file

Change-Id: I2e0f66f5d8033e98c4e9e20d60773548af9e8c35

11 years agofb: use timeout instead of microdelay for restart logo 53/353/2
Thomas Veerman [Thu, 21 Feb 2013 16:03:30 +0000 (17:03 +0100)]
fb: use timeout instead of microdelay for restart logo

Change-Id: I1cb192aae502ed917e757cf17f67a9a355d0059a

11 years agolibsys: refactor frclock api 52/352/2
Thomas Veerman [Thu, 21 Feb 2013 16:02:42 +0000 (17:02 +0100)]
libsys: refactor frclock api

Make the frclock functions similar to the tsc utility functions. This
way, we can call frclock functions from the framebuffer driver which
will use frclock on ARM and tsc on X86.

Also, frclock_64_to_micros computed seconds, not microseconds

Change-Id: I6718ae0fb7db050794f6f032205923e1a32dc1ac

11 years agocompile & install the unixbenchmark netbsd style 54/354/3
Ben Gras [Sat, 16 Feb 2013 23:22:48 +0000 (00:22 +0100)]
compile & install the unixbenchmark netbsd style

for convenient crosscompiling & running.

Change-Id: I7dfcea109c00e1457f9de9b2e6437fe6cf925ba7

11 years agotest set: use clear
Thomas Veerman [Fri, 15 Feb 2013 12:18:47 +0000 (13:18 +0100)]
test set: use clear

11 years agoVFS: don't garbage collect if file is already closed
Thomas Veerman [Fri, 15 Feb 2013 15:09:24 +0000 (16:09 +0100)]
VFS: don't garbage collect if file is already closed

11 years agoVFS: prevent unmapping drivers that don't support reopening
Thomas Veerman [Fri, 15 Feb 2013 15:00:21 +0000 (16:00 +0100)]
VFS: prevent unmapping drivers that don't support reopening

libchardriver does not support DEV_REOPEN and will return ERESTART
when you do try it. This made VFS unhappy and concluded erroneously
that the driver was EDEADEPT.

11 years agofb: introduce framebuffer support to Minix
Thomas Veerman [Fri, 1 Feb 2013 12:13:19 +0000 (13:13 +0100)]
fb: introduce framebuffer support to Minix

This patch introduces a framebuffer to Minix. It's written for the ARM
port of Minix, but has an architectural split that separates the
hardware dependent part from the non-hardware dependent part. Futhermore,
this driver was developed using a screen that has a native resolution of
1024x600 pixels and having lack of support for obtaining EDID from the
screen. Consequently, it uses a hardcoded resolution of 1024x600.

The driver uses an interface based on the Linux ioctl API, but supports
only a very limited subset.

11 years agoARM: kernel: fix sanity check for copying 51/351/1
Ben Gras [Wed, 20 Feb 2013 19:29:09 +0000 (20:29 +0100)]
ARM: kernel: fix sanity check for copying

. phys_copy() (taken from memcpy) can legitimately
  cause pagefaults below the source/dest address due
  to word-alignment

Change-Id: Ibee8f069781d16caea671246c021fb17a2a892b1

11 years agotest66: float smoke test, floating point fixes (arm) 42/342/2
Ben Gras [Tue, 19 Feb 2013 18:54:29 +0000 (18:54 +0000)]
test66: float smoke test, floating point fixes (arm)

Change-Id: Idd209ab6f341fbfb6b2dca77290ff440695bc2c1