]> Zhao Yanbai Git Server - minix.git/log
minix.git
10 years agoRearrange endpoint number layout
David van Moolenbroek [Tue, 25 Feb 2014 13:24:52 +0000 (14:24 +0100)]
Rearrange endpoint number layout

The constants ANY, NONE, and SELF are now a function of the way the
endpoint number is split between a generation number and a process
slot number, rather than the other way around.  This allows for the
use of bit masking and shifting instead of the previous (and more
expensive) multiplication and division.

Change-Id: Id890eea74435444128c75eb0c89816b948f43c0b

10 years agoPTY: split off from TTY
David van Moolenbroek [Mon, 24 Feb 2014 22:28:12 +0000 (23:28 +0100)]
PTY: split off from TTY

Requires recreation of /dev/tty[pq]*, /dev/pty[pq]* device nodes.

Change-Id: I0e5a28d82faa934497fd3b97d619e506bcb5f439

10 years agoInstall sources with MKSRC=yes
Ben Gras [Thu, 27 Feb 2014 09:27:28 +0000 (10:27 +0100)]
Install sources with MKSRC=yes

Change-Id: Iee433cfe6796af0ea292c7eadff365a32059a609

10 years agofix for ld.so @ bitcode build
Ben Gras [Sun, 4 May 2014 11:52:22 +0000 (13:52 +0200)]
fix for ld.so @ bitcode build

ld.so linked with gold didn't work - gold was not generating
the _DYNAMIC ptr in the first GOT entry, leaving it zero, causing
mayhem for ld.so.

  . patch for gold: always generate _DYNAMIC ptr. submitted upstream,
    more info here: https://sourceware.org/bugzilla/show_bug.cgi?id=16900
  . revert "REMOVE ME: Static tests for now" - we can link tests dynamically
    This reverts commit 3e0a3993deb831eb5abcd1c1a2cb1246b43f8d1d.

Change-Id: I4f2910ec2592c31bbd14a85d8a6045497fcaf4e3

10 years agobackport 2 binutils patches
Ben Gras [Thu, 13 Mar 2014 12:21:32 +0000 (13:21 +0100)]
backport 2 binutils patches

These 2 patches are from upstream binutils and together properly
detect whether -ldl is necessary and available to build ld and gold
in plugins mode, instead of hard-coding its usage always. This lets
us build ld and gold on *bsd and minix systems, which do not have
or need -ldl for dl*() functions.

Change-Id: Ie21d027f5d7c225edc9e6e0c6fa2e4b34f421415

10 years agoBinutils: Synchronization & Gold activation
Lionel Sambuc [Mon, 17 Feb 2014 15:55:07 +0000 (16:55 +0100)]
Binutils: Synchronization & Gold activation

Change-Id: I5235984746178ee30b5db18e7def0016d9a0e36f

10 years agolibsffs: return 64-bit value in st_size
Ben Gras [Mon, 24 Feb 2014 16:41:05 +0000 (17:41 +0100)]
libsffs: return 64-bit value in st_size

Change-Id: Ife7e590279e582a233f7cd95bf16ae2ac394d9c2

10 years ago64-bit CDEV_POS
Ben Gras [Mon, 24 Feb 2014 16:30:31 +0000 (17:30 +0100)]
64-bit CDEV_POS

Change-Id: Iecdadf3dd92cc14525961976f51a9eb16a996d62

10 years ago64-bit REQ_TRC_START, REQ_TRC_END
Ben Gras [Mon, 24 Feb 2014 16:28:29 +0000 (17:28 +0100)]
64-bit REQ_TRC_START, REQ_TRC_END

Change-Id: I567804209695b5ec0d83a453d93e36cbf8900f1a

10 years ago64-bit VFS_LSEEK_OFF
Ben Gras [Mon, 24 Feb 2014 16:16:17 +0000 (17:16 +0100)]
64-bit VFS_LSEEK_OFF

Change-Id: Ic0b6d65cbde1033462b909436efa92464094f1ec

10 years ago64-bit VFS_VMCALL_OFFSET
Ben Gras [Mon, 24 Feb 2014 16:14:07 +0000 (17:14 +0100)]
64-bit VFS_VMCALL_OFFSET

Change-Id: I29725365a199f850420cd0e4e3902cf70dffe9ad

10 years ago64-bit VFS_TRUNCATE_OFF
Ben Gras [Mon, 24 Feb 2014 16:12:30 +0000 (17:12 +0100)]
64-bit VFS_TRUNCATE_OFF

Change-Id: I4bd5cc57ddda2525b0bec6f044f35196a2c21f2e

10 years ago64-bit RES_FILE_SIZE
Ben Gras [Mon, 24 Feb 2014 16:02:03 +0000 (17:02 +0100)]
64-bit RES_FILE_SIZE

Change-Id: Ia17b4b4722f87fb35142948b62d4a8392ded5f73

10 years ago64-bit RES_SEEK_POS
Ben Gras [Mon, 24 Feb 2014 15:54:37 +0000 (16:54 +0100)]
64-bit RES_SEEK_POS

Change-Id: Id13f06417f2f600db167bec7b33bc825742cae79

10 years ago64-bit REQ_SEEK_POS
Ben Gras [Mon, 24 Feb 2014 13:50:01 +0000 (14:50 +0100)]
64-bit REQ_SEEK_POS

Change-Id: I2e51a188b171af0f0a02349e4eccbe78e7cc2e0c

10 years ago64-bit bdev position
Ben Gras [Mon, 24 Feb 2014 13:22:04 +0000 (14:22 +0100)]
64-bit bdev position

Change-Id: I149693624610e04af0c5e4437b5efa484a33467d

10 years agoImport NetBSD sleep command
Zachary Storer [Mon, 24 Feb 2014 20:48:43 +0000 (13:48 -0700)]
Import NetBSD sleep command

Replaces the 'sleep' functionality provided by commands/sleep.

Change-Id: I8758bf027b26aaef7954848803d6da982c753bfa

10 years agoarm-refactor:remove dependency from memory.c to omap_timer.h.
Kees Jongenburger [Mon, 24 Feb 2014 08:47:13 +0000 (09:47 +0100)]
arm-refactor:remove dependency from memory.c to omap_timer.h.

Remove the dependency from memory.c to omap_timer.h.

Change-Id: I1f1a0e5436ac725e4b0db9d7d404194384794802

10 years agoarm-refactor:indent the omap bsp code.
Kees Jongenburger [Mon, 24 Feb 2014 08:40:30 +0000 (09:40 +0100)]
arm-refactor:indent the omap bsp code.

Indent the omap bsd code using indent with the following settings
in indent.pro.
-bap -br -ce -ci4 -cli0 -d0 -di0 -i8 -ip4 -l79 -nbc -ncdb -ndj
-nfc1 -nlp -npcs -psl -sc -sob -fca -l79 -lc79

Change-Id: I09e7de9ad4b33f78bff96e3de4470f1c5ba854ce

10 years agoGetting rid of "old-style-definition"
Lionel Sambuc [Mon, 24 Feb 2014 13:00:17 +0000 (14:00 +0100)]
Getting rid of "old-style-definition"

Patch submitted by hoefnix. Ref.
https://groups.google.com/d/msg/minix-dev/sHQDVJRyx1c/eJjrYOqk5bgJ

Change-Id: I2fcdf4cf119ef252ccc7df06849baf37ffd08440

10 years agox86_hdimage.sh: use nbstat from tooldir.
Thomas Cort [Sat, 22 Feb 2014 21:32:12 +0000 (16:32 -0500)]
x86_hdimage.sh: use nbstat from tooldir.

The syntax of the stat(1) command varies between Linux and FreeBSD.
This prevented `x86_hdimage.sh -i` from succeeding on FreeBSD 10.0.
The fix is to use the NetBSD stat from the tooldir for all systems.

Change-Id: I121e5fd36b0d4a944ba0109cf58095ab7d150847

10 years agoImport NetBSD true and false commands
Zachary Storer [Sat, 22 Feb 2014 20:20:45 +0000 (13:20 -0700)]
Import NetBSD true and false commands

Replaces the 'true' and 'false' functionality provided by commands/true
and commands/false.

Change-Id: I736efb9a650f3154eb21e442d676a0f5d2dee957

10 years agoupdating bsd patch, moving it back to usr.bin
Lionel Sambuc [Wed, 19 Feb 2014 16:10:34 +0000 (17:10 +0100)]
updating bsd patch, moving it back to usr.bin

Change-Id: Ibc356c932693729ebf86cc4cc51aeca65163af9b

10 years agoforce C++ executables to be dynamic
Ben Gras [Wed, 11 Jun 2014 15:06:15 +0000 (17:06 +0200)]
force C++ executables to be dynamic

. for C++ exceptions when built with llvm and using libunwind

Change-Id: I22fe6a1fd0b2af7323c7deecce919764e2354614

10 years agoExperimental pthread compatibility library
Lionel Sambuc [Tue, 14 Jan 2014 12:48:43 +0000 (13:48 +0100)]
Experimental pthread compatibility library

This patch adds pthread compatibility by using libmthread.

To use this with a program using pthreads, you have to replace
  #include <pthread>
with
  #define _MTHREADIFY_PTHREADS
  #include <minix/mthreads>

This also changes the initialization function to be a constructor, which
is implicitly called before the call to main. This allows for
conformance with pthreads, while not paying a high price by checking on
each mthread_* call whether the library has been initialized or not.

As mthread_init is now a constructor, it also has been set as static, and
relevent calls removed from programs using it.

Change-Id: I2aa375db557958d2bee9a70d285aabb990c88f00

10 years agoReplace wget with ftp as default in fetch scripts
Lionel Sambuc [Thu, 23 Jan 2014 10:38:26 +0000 (11:38 +0100)]
Replace wget with ftp as default in fetch scripts

This default is overriden by curl when it is available on the system.

This allows for the fetch script to work on MINIX systems without any
additions from PKGSRC, while requiring either a netbsd compatible ftp or
curl to be installed on other systems.

Change-Id: Id79f799e1ef0f5fde6bb1c0e570984b7579519fb

10 years agobuild:Remove the usage of sloppy file list. 00/1200/4
Kees Jongenburger [Mon, 25 Nov 2013 13:47:22 +0000 (14:47 +0100)]
build:Remove the usage of sloppy file list.

Remove the usage of sloppy files list in the build scripts to
get early errors when files are added.

Change-Id: Id89c1391da675c76d7511a973f7f2dcda8befbb2

10 years agodistrib:include "test63" and "mod" if MKPIC=yes 01/1201/3
Kees Jongenburger [Tue, 7 Jan 2014 15:18:16 +0000 (16:18 +0100)]
distrib:include "test63" and "mod" if MKPIC=yes

Only include the shared library test test63 and it's mod when building
using MKPIC=yes.

Change-Id: I75ecc5c73508de24ed85fd7cf9490ea3c5b64021

10 years agoSynchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC)
Lionel Sambuc [Fri, 6 Dec 2013 11:04:52 +0000 (12:04 +0100)]
Synchronize on NetBSD-CVS (2013/12/1 12:00:00 UTC)

 - Fix for possible unset uid/gid in toproto
 - Fix for default mtree style
 - Update libelf
 - Importing libexecinfo
 - Resynchronize GCC, mpc, gmp, mpfr
 - build.sh: Replace params with show-params.
     This has been done as the make target has been renamed in the same
     way, while a new target named params has been added. This new
     target generates a file containing all the parameters, instead of
     printing it on the console.
 - Update test48 with new etc/services (Fix by Ben Gras <ben@minix3.org)
     get getservbyport() out of the inner loop

Change-Id: Ie6ad5226fa2621ff9f0dee8782ea48f9443d2091

10 years agoi386 param.h
Ben Gras [Fri, 13 Dec 2013 18:55:06 +0000 (19:55 +0100)]
i386 param.h

Change-Id: I880dbe83ad611cc0736d2a76a9f67b133f2fc025

10 years agoKernel: fix register corruption on signal delivery
David van Moolenbroek [Thu, 27 Feb 2014 17:30:45 +0000 (18:30 +0100)]
Kernel: fix register corruption on signal delivery

This fixes problems with test79 and other programs.

Change-Id: I14de097a3b01114ec5dbd687ab5be9290ad13fc7

10 years ago<machine/signal.h>
Ben Gras [Tue, 10 Dec 2013 23:47:22 +0000 (00:47 +0100)]
<machine/signal.h>

. use netbsd sigframe, sigcontext struct
. netbsd sigframe *contains* sigcontext; use that directly
  in kernel sigsend
. drop two fields from minix x86 stackframe.h (process context)
  that were unused, retadr and st

use in-sigframe sigcontext

Change-Id: Ib59d699596dc3a78163dee59f19730482fdddf11

10 years agoi386 cpu.h
Ben Gras [Fri, 13 Dec 2013 12:58:47 +0000 (13:58 +0100)]
i386 cpu.h

Change-Id: Iae6d8727ba6e005a8b6e3bed4008f3f3282a1a81

10 years ago<sys/poll.h>
Ben Gras [Fri, 13 Dec 2013 10:58:44 +0000 (11:58 +0100)]
<sys/poll.h>

Change-Id: I8758d224115bdd1344cd00da6e636c529b1c191e

10 years ago<sys/ioccom.h>, <sys/ioctl.h>
Ben Gras [Thu, 12 Dec 2013 16:34:44 +0000 (17:34 +0100)]
<sys/ioccom.h>, <sys/ioctl.h>

. use <sys/ioccom.h> to make ioctls
. use netbsd <sys/ioctl.h>, include minix ioctls
. convert to varargs ioctl() like netbsd

Change-Id: Id5165780df48172b28bf0003603516d30d7c1abb

10 years ago<sys/syslimits.h>
Ben Gras [Thu, 12 Dec 2013 13:27:56 +0000 (14:27 +0100)]
<sys/syslimits.h>

reduces differences, raise NAME_MAX

Change-Id: I2e5f6296e6539162c52fdf13fb1fd27a56587e0c

10 years ago<sys/siginfo.h>
Ben Gras [Thu, 12 Dec 2013 13:07:22 +0000 (14:07 +0100)]
<sys/siginfo.h>

Change-Id: I1fcfd04308639c5340cd0a5c2e8a926d7edc5abf

10 years ago<sys/fcntl.h>, remove O_REOPEN
Ben Gras [Thu, 12 Dec 2013 12:50:23 +0000 (13:50 +0100)]
<sys/fcntl.h>, remove O_REOPEN

Change-Id: Id6493f30bb0fec7460d01f357ada9b2c2a4f5eb7

10 years ago<sys/resource.h>
Ben Gras [Tue, 10 Dec 2013 23:27:32 +0000 (00:27 +0100)]
<sys/resource.h>

Change-Id: I5858e1b56e65fc9cf480120d96c68770d3a11dd2

10 years ago<sys/endian.h>
Ben Gras [Tue, 10 Dec 2013 23:27:26 +0000 (00:27 +0100)]
<sys/endian.h>

Change-Id: I0148722ecd96f88e4bc5c08b23c7997166ddb976

10 years agoimport / small alignment of many arm includes
Ben Gras [Tue, 10 Dec 2013 22:34:27 +0000 (23:34 +0100)]
import / small alignment of many arm includes

Change-Id: I4a7631409190474546c0ba03312c23454c99d62a

10 years agox86 multiboot.h
Ben Gras [Tue, 10 Dec 2013 21:47:53 +0000 (22:47 +0100)]
x86 multiboot.h

Change-Id: I245564a98fb9e2572b88f8feb7411ad6800a543c

10 years ago<sys/mount.h>, <sys/statvfs.h>
Ben Gras [Tue, 10 Dec 2013 20:21:49 +0000 (21:21 +0100)]
<sys/mount.h>, <sys/statvfs.h>

Change-Id: I98d4f90b6ca74d3898db158d95faf98605c7c1af

10 years ago<sys/mtio.h>
Ben Gras [Tue, 10 Dec 2013 20:06:43 +0000 (21:06 +0100)]
<sys/mtio.h>

Change-Id: I8629f90393c555f15208833d2b3f9fb6efc541c3

10 years ago<sys/{ipc,sem,shm}.h>
Ben Gras [Tue, 10 Dec 2013 19:19:45 +0000 (20:19 +0100)]
<sys/{ipc,sem,shm}.h>

Change-Id: I0cf021813cb73a01b1c9f9a1b302bde1a2b4ff7e

10 years ago<sys/ttydefaults.h>
Ben Gras [Tue, 10 Dec 2013 19:04:02 +0000 (20:04 +0100)]
<sys/ttydefaults.h>

Change-Id: I237e141e2a6409c7100db4adb14a90fbb46294b4

10 years ago<net/if_ether.h>
Ben Gras [Tue, 10 Dec 2013 18:34:19 +0000 (19:34 +0100)]
<net/if_ether.h>

Change-Id: I7425aae72ab43e3fcec8373f7c589273d36f7fcb

10 years ago<sys/param.h>
Ben Gras [Tue, 10 Dec 2013 17:49:14 +0000 (18:49 +0100)]
<sys/param.h>

Change-Id: I53d0ca207789f27e3a01acdd184ade24630d9a00

10 years ago<sys/ptrace.h>
Ben Gras [Tue, 10 Dec 2013 17:18:13 +0000 (18:18 +0100)]
<sys/ptrace.h>

Change-Id: Ib930c661c1e6de05b2e0d5fce4ffc1ae2269fc6a

10 years agoalign ARM cpu.h importing & using armreg.h
Ben Gras [Tue, 10 Dec 2013 18:51:07 +0000 (19:51 +0100)]
align ARM cpu.h importing & using armreg.h

Change-Id: I4793517d936f71b0bb7088fbfe67e73a65fafb11

10 years ago<vmparam.h>
Ben Gras [Tue, 10 Dec 2013 15:37:00 +0000 (16:37 +0100)]
<vmparam.h>

Change-Id: I941ea3111703ed089bfdaf87d26158ab8697a80d

10 years ago<machine/mcontext.h>
Ben Gras [Tue, 10 Dec 2013 13:55:46 +0000 (14:55 +0100)]
<machine/mcontext.h>

Change-Id: I2ad64018f3f402e7ccc5c4dc037dd0a3fe56a929

10 years agoalign <sys/ucontext.h> <sys/uio.h> <sys/un.h>
Ben Gras [Tue, 10 Dec 2013 08:57:38 +0000 (09:57 +0100)]
align <sys/ucontext.h> <sys/uio.h> <sys/un.h>

Change-Id: I70adf01fddf931a3a6931083adaa4bbe647ea6a3

10 years ago<sys/socket.h>, <netinet/{in,tcp,udp,udp_var}.h>
Ben Gras [Fri, 6 Dec 2013 14:56:45 +0000 (15:56 +0100)]
<sys/socket.h>, <netinet/{in,tcp,udp,udp_var}.h>

. add sa_len to sockaddr, sin_len to sockaddr_in
. rename SCM_CREDENTIALS to SCM_CREDS
. retire PF_FILE (same as PF_UNIX)

Change-Id: Id3ec63fe2556fc7ceb48de8ad4e80736df3ddfc7

10 years agodrop the minix_ prefixes for mmap and munmap
Ben Gras [Fri, 22 Nov 2013 15:38:29 +0000 (16:38 +0100)]
drop the minix_ prefixes for mmap and munmap

also cleanup of various minix-specific changes, cleanup of
mmap-related testing.

Change-Id: I289a4fc50cf8a13df4a6082038d860853a4bd024

10 years agoinclude/sched.h: merged
Lionel Sambuc [Tue, 3 Dec 2013 16:19:46 +0000 (17:19 +0100)]
include/sched.h: merged

Change-Id: Icb38da694db516279a1f45579a593e5369d064bb

10 years agoreduced diff in include/signal.h
Lionel Sambuc [Tue, 3 Dec 2013 12:56:34 +0000 (13:56 +0100)]
reduced diff in include/signal.h

Change-Id: I8df2199e6ac5a429f61079ca8c01fe58bd44ff36

10 years agoinclude/limits.h: merged
Lionel Sambuc [Tue, 3 Dec 2013 12:55:11 +0000 (13:55 +0100)]
include/limits.h: merged

Replacing SYMLOOP_MAX, SYMLINK_MAX, by _POSIX_SYMLOOP_MAX,
_POSIX_SYMLINK_MAX respectively.

Change-Id: I020c20b0dbf6d44e777879d786a20811f23d1561

10 years agoinclude/time.h: merged
Lionel Sambuc [Tue, 3 Dec 2013 10:51:21 +0000 (11:51 +0100)]
include/time.h: merged

 - Defining CLOCKS_PER_SEC = 100, instead of 60.
   This define is here for legacy reasons, use sysconf(_SC_CLK_TCK) to
   retrieve the actual number of clock tick per second of the system in
   new code.

 - Moving stime prototype to minix/sysutil.h

Change-Id: I76a73cd53ac2361845f2917f62af4125adfc615d

10 years agoImporting external/bsd/less
Lionel Sambuc [Tue, 3 Dec 2013 10:35:03 +0000 (11:35 +0100)]
Importing external/bsd/less

Change-Id: I7999b23fbef86a9a5d8d6fe4e80b9bd23d5b9d87

10 years agoadding include/spawn.h, removing include/sa.h
Lionel Sambuc [Mon, 2 Dec 2013 21:07:54 +0000 (22:07 +0100)]
adding include/spawn.h, removing include/sa.h

Change-Id: Ieff4f5e51f98ef5105307e6b8c6ba1dd6f3c844a

10 years agoinclude/unistd.h: merged
Lionel Sambuc [Mon, 2 Dec 2013 19:03:35 +0000 (20:03 +0100)]
include/unistd.h: merged

Also removing lseek64, pread64, pwrite64.

Those functions have lost their "raison d'ĂȘtre", when off_t switched to
64bits.

Change-Id: I5aea35f01d6d10e3d6578a70323da7be5eca315a

10 years agoinclude/a.out.h: merged
Lionel Sambuc [Mon, 2 Dec 2013 17:45:21 +0000 (18:45 +0100)]
include/a.out.h: merged

Change-Id: I1216faaab1f283e1253155fda9e0fe5b821f09f6

10 years agoinclude/netdb.h: merged
Lionel Sambuc [Mon, 2 Dec 2013 17:17:49 +0000 (18:17 +0100)]
include/netdb.h: merged

Change-Id: I899e6ac611b671a78d6abd83a73eed484aa49595

10 years agoinclude/paths.h: merged
Lionel Sambuc [Mon, 2 Dec 2013 17:34:30 +0000 (18:34 +0100)]
include/paths.h: merged

Change-Id: I5e2aa0bc99a596f82ef4224f22623bcb83cb98b5

10 years agoalign include/paths: MAILDIR
Lionel Sambuc [Mon, 2 Dec 2013 17:09:47 +0000 (18:09 +0100)]
align include/paths: MAILDIR

Change-Id: Ieb50549f8f27af957f67fcb0757690db88fecc8b

10 years agoinclude/login_cap.h: merged
Lionel Sambuc [Mon, 2 Dec 2013 16:40:57 +0000 (17:40 +0100)]
include/login_cap.h: merged

Change-Id: Ic1e5189a89a1dae2a06b182a4af6a65a75c7e2ce

10 years agoinclude/stdlib.h: merged
Lionel Sambuc [Mon, 2 Dec 2013 15:49:00 +0000 (16:49 +0100)]
include/stdlib.h: merged

Change-Id: I26b032566d1d7a816df56254c5f9e6dc82626a70

10 years agoinclude/stdio.h: merged
Lionel Sambuc [Mon, 2 Dec 2013 15:25:06 +0000 (16:25 +0100)]
include/stdio.h: merged

Change-Id: I7d5869ce25dfe9f2944ceef86464829d08830d24

10 years agoremove special handling of rename()
Lionel Sambuc [Mon, 2 Dec 2013 15:24:13 +0000 (16:24 +0100)]
remove special handling of rename()

Change-Id: I69694e155250dc5f527dacbaf3f0ecbdc4873989

10 years agoinclude/arpa/nameser_compat.h: merged
Lionel Sambuc [Mon, 2 Dec 2013 15:03:29 +0000 (16:03 +0100)]
include/arpa/nameser_compat.h: merged

Removing compatibility macros, and updating the two tools still using
them.

Change-Id: I636f045d76a8f92440ebe1503f52f7e5d704a316

10 years agosys/sys/ctype_inline.h: merged
Lionel Sambuc [Mon, 2 Dec 2013 14:31:33 +0000 (15:31 +0100)]
sys/sys/ctype_inline.h: merged

Change-Id: I0a04b7729b2226ce601cadceebfb6878302c64d1

10 years agosys/arch/{arm,i386}/include: merges
Lionel Sambuc [Thu, 28 Nov 2013 16:38:55 +0000 (17:38 +0100)]
sys/arch/{arm,i386}/include: merges

The follwoing file have been merged as far as reasonably possible:

 * sys/arch/arm/include/:
   - ansi.h
   - asm.h

 * sys/arch/arm/include/:
   - ansi.h
   - asm.h
   - cdef.h

Unlike on NetBSD, the definition of size_t, ssize_t and ptrdiff_t are
the same as the ones on intel.

Change-Id: I3b52e9c03991e575450ca42567877cd4fd14976a

10 years agoRemoving VFS_UTIMENS_* field macros.
Lionel Sambuc [Thu, 28 Nov 2013 18:33:53 +0000 (19:33 +0100)]
Removing VFS_UTIMENS_* field macros.

Change-Id: I3be1acfbb77b6e229d784d8dbc3ceec1b26abf90

10 years agoRemoving SYS_SIG_* field macros.
Lionel Sambuc [Thu, 28 Nov 2013 18:22:37 +0000 (19:22 +0100)]
Removing SYS_SIG_* field macros.

Change-Id: Ib4f1b48268d4539ae6d4502ad647ecb73ea87f79

10 years agoRenamed m_vm_vfs to m_vm_vfs_mmap.
Lionel Sambuc [Thu, 28 Nov 2013 17:59:46 +0000 (18:59 +0100)]
Renamed m_vm_vfs to m_vm_vfs_mmap.

Stay coherent with the naming scheme of the messages.

Change-Id: Icc0e13a88ec29263502166c0e6eec81cdb974663

10 years agoRemoving NOTIFY_* field macros.
Lionel Sambuc [Thu, 28 Nov 2013 17:37:06 +0000 (18:37 +0100)]
Removing NOTIFY_* field macros.

Change-Id: Idc8604dac9630ee2343476b906b45a115a89994e

10 years agoChanging the message union to anonymous.
Lionel Sambuc [Thu, 28 Nov 2013 17:17:38 +0000 (18:17 +0100)]
Changing the message union to anonymous.

This allows us to write things like this:
  message m;
  m.m_notify.interrupts = new_value;

or
  message *mp;
  mp->m_notify.interrupts = new_value;

The shorthands macro have been adapted for the new scheme, and will be
kept as long as we have generic messages being used.

Change-Id: Icfd02b5f126892b1d5d2cebe8c8fb02b180000f7

10 years agoPM_TIME_SEC into 64bit
Lionel Sambuc [Wed, 27 Nov 2013 11:01:26 +0000 (12:01 +0100)]
PM_TIME_SEC into 64bit

Change-Id: I609ee8cac7aae8af2c0c0381710433a5df0caebd

10 years agoUpdating usr.sbin/user
Lionel Sambuc [Fri, 20 Sep 2013 17:47:48 +0000 (19:47 +0200)]
Updating usr.sbin/user

Change-Id: I5968d25f0a0efd590e6d664d3a2d182a87755e3d

10 years agoExtending time_t to 64bits.
Lionel Sambuc [Fri, 20 Sep 2013 17:47:18 +0000 (19:47 +0200)]
Extending time_t to 64bits.

Change-Id: Ia96b8bfba19cb8179a0237a7d2122d415c24d73f

10 years agoFix genmap, always use headers from the sources.
Lionel Sambuc [Thu, 28 Nov 2013 18:42:38 +0000 (19:42 +0100)]
Fix genmap, always use headers from the sources.

This fixes the compilation failure when building on MINIX.

Change-Id: Iaa2ac5d73ce5f4a8219cacbe726e1398bcdb5740

10 years agoUse netbsd <sys/mman.h>
Ben Gras [Thu, 28 Nov 2013 16:51:21 +0000 (17:51 +0100)]
Use netbsd <sys/mman.h>

Change-Id: I80e9cffc80140383a6faf692248573c64d282b4a

10 years ago<sys/stat.h>
Ben Gras [Fri, 22 Nov 2013 15:24:28 +0000 (16:24 +0100)]
<sys/stat.h>

current version of <sys/stat.h> from netbsd repo is older than the minix
one; will be corrected on next netbsd re-import.

Change-Id: Ifc696581ef476cfecd9695a9f6e74b844131e584

10 years ago<sys/unistd.h>, <time.h>
Ben Gras [Fri, 22 Nov 2013 15:20:09 +0000 (16:20 +0100)]
<sys/unistd.h>, <time.h>

Change-Id: If0d0cd9115dec33d27e8e5644c0020021d8816b8

10 years ago<sys/wait.h>
Ben Gras [Fri, 22 Nov 2013 15:03:53 +0000 (16:03 +0100)]
<sys/wait.h>

Change-Id: I24605df209d012e99333065428a3ed2752799321

10 years agoReplaced common u64.h functions with operators.
Gerard [Thu, 21 Nov 2013 11:09:58 +0000 (12:09 +0100)]
Replaced common u64.h functions with operators.

Change-Id: I71b7b4879209eeff89ce5748d67102afebf871dc

10 years agoFix devman boot crash when using image scripts 77/1177/3
Lionel Sambuc [Fri, 22 Nov 2013 12:54:02 +0000 (13:54 +0100)]
Fix devman boot crash when using image scripts

This was caused by a missing line in the generated fstab.

Change-Id: If0590a27706bbb62e53d72f224ccb332e31421f6

10 years agoAligning dev_t to 64bits. 69/1169/5
Lionel Sambuc [Fri, 15 Nov 2013 18:01:25 +0000 (19:01 +0100)]
Aligning dev_t to 64bits.

Change-Id: I630f72f8530dd4aaf05c35ca23683ae12c9f8328

10 years agolibc/sys-minix/mount.c: fix overflow 68/1168/4
Lionel Sambuc [Tue, 19 Nov 2013 14:26:47 +0000 (15:26 +0100)]
libc/sys-minix/mount.c: fix overflow

Fix a bug where a filesystem label could overflow the reserved buffer.
This was already possible with 32 bits values, but is more proeminent
with dev_t being 64 bits.

Change-Id: Idc04ed355d1dd92b7a8ce4699de832661a5c4ccd

10 years agoAligning makedev macros, dev_t still 32bits 67/1167/4
Lionel Sambuc [Fri, 25 Oct 2013 14:59:54 +0000 (16:59 +0200)]
Aligning makedev macros, dev_t still 32bits

Change-Id: Ib343d9b459ff0eeac70c4e54c23fe2e82a137100

10 years agoAdd a compile-time check for IPC messages size 66/1166/4
Lionel Sambuc [Mon, 18 Nov 2013 14:18:18 +0000 (15:18 +0100)]
Add a compile-time check for IPC messages size

This patch adds compile-time check for each message type to ensure the
size is within the IPC assumptions.

This will allow messages specific to a protocol to use from now on the
proper types for each fields, while preventing from any unsuspected
side effect when updating type definitions.

Change-Id: Iad64f81a6b6726321fbc492ac37ceeaaa57aa6cd

10 years agoRemove sys/stdlib.h
Lionel Sambuc [Tue, 12 Nov 2013 15:07:41 +0000 (16:07 +0100)]
Remove sys/stdlib.h

This file was copied over to allow for the compilation of some
of the arch/i386 code, due to a bug in lib/libc/compat/Makefile.inc.

This patch fixes the situation, and removes the now useless header, as
well as remove a patch in lib/libc/stdlib/putenv.c

Change-Id: Ic5e4c4bb967f58f6e874c091788e1dd5ecaebe5e

10 years agouse netbsd <sys/signal.h> and sigset_t
Ben Gras [Tue, 22 Oct 2013 15:08:15 +0000 (17:08 +0200)]
use netbsd <sys/signal.h> and sigset_t

. create signals-related struct message type to store sigset_t
  directly
. create notify-specific message types, so the generic NOTIFY_ARG
  doesn't exist anymore
. various related test expansions, improvements, fixes
. add a few error-checks to sigismember() calls
. rename kernel call specific signals fields to SYS_*

Change-Id: I53c18999b5eaf0cfa0cb25f5330bee9e7ad2b478

10 years agoswitch to netbsd <sys/errno.h>
Ben Gras [Fri, 6 Sep 2013 10:07:47 +0000 (12:07 +0200)]
switch to netbsd <sys/errno.h>

not entirely clean; _SIGN hack remains for now.  also leave in
minix-specific stuff like minix-specific errno's and OK.

Change-Id: I035efc52e27b92f58ae0d88dab19dec263edb6e3

10 years agobigger message
Ben Gras [Thu, 31 Oct 2013 16:29:05 +0000 (17:29 +0100)]
bigger message

Change-Id: Ie770140c55799bdc3bb8f0ad6994d59938155a1a

10 years agodrop <minix/termios.h>, use clean <sys/termios.h>
Ben Gras [Tue, 10 Sep 2013 21:36:48 +0000 (21:36 +0000)]
drop <minix/termios.h>, use clean <sys/termios.h>

. also implement some netbsd-style tty ioctls
. also implement SIGINFO
. also import netbsd stty
. rename keymap minix CMIN (for ctrl+minus on numeric keypad)
  to CNMIN; to keep unchanged control character default CMIN in
  new <sys/ttydefaults.h>
. convert CS[5678] logic in rs232 driver to explicit setting of LC
  bits

Change-Id: I9b7d2963fe9aec00fb6e7535ef565b3191fc1c1d

10 years agobig <utmp.h>-inspired netbsd switch
Ben Gras [Mon, 9 Sep 2013 13:20:18 +0000 (13:20 +0000)]
big <utmp.h>-inspired netbsd switch

import/switch of:
init, getty, reboot, halt, shutdown, wall, last

changes:
. change reboot() call to netbsd prototype and args
. allows pristine <utmp.h>
. use clean <sys/reboot.h> instead of <minix/reboot.h>
. implement TIOCSCTTY for use by getty so getty can get
  controlling terminal from init's child(ren)
. allow NULL envp for exec

Change-Id: I5ca02cb4230857140c08794bbfeba7df982c58a3

10 years agoFix testsh2 for OD on arm.
Lionel Sambuc [Wed, 6 Nov 2013 15:25:23 +0000 (16:25 +0100)]
Fix testsh2 for OD on arm.

Change-Id: I4bbed3b6dcb62e85e75887b9522734abae7307e4

10 years agoAdding ipc_ prefix to ipc primitives
Lionel Sambuc [Fri, 1 Nov 2013 12:34:14 +0000 (13:34 +0100)]
Adding ipc_ prefix to ipc primitives

 * Also change _orig to _intr for clarity
 * Cleaned up {IPC,KER}VEC
 * Renamed _minix_kernel_info_struct to get_minix_kerninfo
 * Merged _senda.S into _ipc.S
 * Moved into separate files get_minix_kerninfo and _do_kernel_call
 * Adapted do_kernel_call to follow same _ convention as ipc functions
 * Drop patches in libc/net/send.c and libc/include/namespace.h

Change-Id: If4ea21ecb65435170d7d87de6c826328e84c18d0