]> Zhao Yanbai Git Server - minix.git/log
minix.git
9 years agoVFS: do not make cloned devices setuid/setgid 47/2847/1
David van Moolenbroek [Mon, 29 Sep 2014 16:07:10 +0000 (16:07 +0000)]
VFS: do not make cloned devices setuid/setgid

Change-Id: Ifd97444dd54334ccbc8780df9473450998ab7489

9 years agoRemove obsolete MIOC(UN)MAP requests 46/2846/1
David van Moolenbroek [Mon, 29 Sep 2014 16:05:22 +0000 (16:05 +0000)]
Remove obsolete MIOC(UN)MAP requests

Change-Id: I915ac759bc80a50aad21c12f088ad6c345a42986

9 years agosys/ioccom.h: remove _MINIX_IOCTL_IORW 45/2845/1
David van Moolenbroek [Mon, 29 Sep 2014 16:02:32 +0000 (16:02 +0000)]
sys/ioccom.h: remove _MINIX_IOCTL_IORW

It is unused, and does not do what the context suggests it does.

Change-Id: Ic5df9c77e2566a7754e01a444126a6caad2850fc

9 years agosvrctl(2) update 44/2844/1
David van Moolenbroek [Mon, 29 Sep 2014 15:41:36 +0000 (15:41 +0000)]
svrctl(2) update

- synchronize request type with ioctl by making it unsigned long;
- unbreak VFS requests, as they were being sent to PM;
- use proper ioctl direction flags (and new numbers) for requests;
- remove some needless header inclusions;
- svrctl is in libc, make its message name reflect this;
- keep backward compatibility: svrctl is part of the userland ABI.

Change-Id: I44902e8d0d11b8ebc1ef3bda94d2202481743c9b

9 years agoVFS/FS: putnode count need not be 64-bit 43/2843/1
David van Moolenbroek [Mon, 29 Sep 2014 15:14:02 +0000 (15:14 +0000)]
VFS/FS: putnode count need not be 64-bit

Change-Id: I49e67438d3f316e0321ac711494e988bb6510679

9 years agoIOCTL requests are unsigned longs now 42/2842/1
David van Moolenbroek [Mon, 29 Sep 2014 15:11:01 +0000 (15:11 +0000)]
IOCTL requests are unsigned longs now

Issue reported by JD Begin.

Change-Id: I0306d9dc43c36107897c8b73ed340d86a8dcef27

9 years agoCreate new colemak minix keymap. 41/2841/1
AndrewEdwards [Sun, 28 Sep 2014 16:23:15 +0000 (16:23 +0000)]
Create new colemak minix keymap.

Change-Id: I3464e723bd6bb578f415dfe78540e60b2eefb8b7

9 years agobuild lua dynamically 40/2840/1
Ben Gras [Sun, 28 Sep 2014 14:31:54 +0000 (16:31 +0200)]
build lua dynamically

. allows modules to be loaded

Fix submitted by Marc Balmer <mbalmer@NetBSD.org>

Change-Id: I6b2d19c2c9b136f0d72d2f714027221c0b86b5ae

9 years agoImport NetBSD legal/COPYRIGHT. 39/2839/2
Ben Gras [Sun, 28 Sep 2014 12:00:54 +0000 (14:00 +0200)]
Import NetBSD legal/COPYRIGHT.

Change-Id: Ic23e5f1902ade92402faa968bb945b7d873aaf6b

9 years agoImport NetBSD games/fish command. 38/2838/1
Alexandre Beletti [Thu, 25 Sep 2014 00:03:28 +0000 (02:03 +0200)]
Import NetBSD games/fish command.

Change-Id: Ie3009121c768fa5e0c50c681b87cde344ae7cfe2

9 years agoPorting grep from NetBSD 37/2837/1
Sky Liu [Sat, 13 Sep 2014 14:59:14 +0000 (22:59 +0800)]
Porting grep from NetBSD

Change-Id: I6fa9e3c0a4edc4d3ff292dc5c96ac16b34d7c792

9 years agoImport NetBSD games/snake command. 36/2836/2
Alexandre Beletti [Tue, 23 Sep 2014 07:16:10 +0000 (04:16 -0300)]
Import NetBSD games/snake command.

Change-Id: Ie46c0acc09e5e8079f80301ae3a40172fcfb51dd

10 years agotests: reenable testisofs 34/2834/2
David van Moolenbroek [Mon, 8 Sep 2014 22:34:15 +0000 (22:34 +0000)]
tests: reenable testisofs

Change-Id: Ic0883f8b487390e34f1a27e324b033a8cbe2cfff

10 years agoClean up obsolete FS support routines 59/2759/4
David van Moolenbroek [Sun, 24 Aug 2014 11:53:52 +0000 (11:53 +0000)]
Clean up obsolete FS support routines

Change-Id: I56d0ab51f32064bb964051732de7e2465dc22b75

10 years agoisofs: rename source directory to "isofs" 58/2758/4
David van Moolenbroek [Sun, 24 Aug 2014 11:52:43 +0000 (11:52 +0000)]
isofs: rename source directory to "isofs"

Change-Id: Ibe630f720b4399e7ebbbd850650036fbaa9cec7b

10 years agoisofs: basic improvements 57/2757/4
David van Moolenbroek [Sun, 24 Aug 2014 11:50:23 +0000 (11:50 +0000)]
isofs: basic improvements

- fix for "out of extents" panic;
- return ENOENT when a file name does not exist;
- inode count sanity check upon unmount.

Change-Id: Icb97dbaf7c8aec463438f06b341defca357094b2

10 years agoisofs: use libdriver 56/2756/4
David van Moolenbroek [Sun, 24 Aug 2014 10:37:12 +0000 (10:37 +0000)]
isofs: use libdriver

Change-Id: I5ced800eec92f651f31d9c77c3129fe837ca4614

10 years agoiso9660fs: rewrite ISO 9660 file system server 33/2833/2
Jean-Baptiste Boric [Sun, 3 Aug 2014 17:24:51 +0000 (19:24 +0200)]
iso9660fs: rewrite ISO 9660 file system server

iso9660fs has been cleaned up and debugged. It now supports:
 * ISO 9660 Level 3,
 * System Use Sharing Protocol (SUSP),
 * Rock Ridge Interchange Protocol (RRIP).

The following Rock Ridge features are supported:
 * POSIX file attributes (PX),
 * POSIX device number (PN),
 * Symbolic links (SL),
 * Alternate file name (NM),
 * Timestamps in 7-byte format (TF).

Change-Id: Ib227411bdda5bc10a957b27ad05fafdc95eca35f

10 years agoRevert "Temporarily disable the is9600 FS server" 35/2835/1
David van Moolenbroek [Thu, 18 Sep 2014 12:59:18 +0000 (12:59 +0000)]
Revert "Temporarily disable the is9600 FS server"

This reverts commit ab5c98ee5a2332a1f64b55fa3d056b675b2252ef.

10 years agowriteisofs: set file struct version field to one 55/2755/3
David van Moolenbroek [Sat, 23 Aug 2014 18:55:44 +0000 (18:55 +0000)]
writeisofs: set file struct version field to one

Dictated by the spec and correctly flagged by the new isofs code.

Change-Id: Ie155c30b6a53e40ec42066af0adbcdbf457e5620

10 years agoPFS: rewrite, restyle 54/2754/3
David van Moolenbroek [Sun, 24 Aug 2014 10:20:59 +0000 (10:20 +0000)]
PFS: rewrite, restyle

- remove the buffer pool, inode bitmap, and inode hash table, and
  simplify the code accordingly;
- use theoretically slightly more optimal buffer management;
- put the entire source in one file, instead of having many files
  with one or two functions each;
- convert the code to KNF style.

Change-Id: Ib8f6f0bd99fbc6eb9098fba718e71b8e560783d9

10 years agoPFS: use libfsdriver 53/2753/3
David van Moolenbroek [Sun, 24 Aug 2014 10:18:30 +0000 (10:18 +0000)]
PFS: use libfsdriver

In order to avoid creating libfsdriver exceptions, two changes to VFS
are necessary:

- the returned position field for reads/writes is no longer abused to
  return the new pipe size; VFS is perfectly capable of updating the
  size itself;
- during system startup, PFS is now sent a mount request, just like all
  other file systems.

In proper "two steps forward, one step back" fashion, the latter point
has the consequence that PFS can no longer drop its privileges at
startup.  This is probably best resolved with a more general solution
for all boot image system services.  The upside is that PFS no longer
needs to be linked with libc.

Change-Id: I92e2410cdb0d93d0e6107bae10bc08efc2dbb8b3

10 years agolibc: make socketpair(3) use the right device 52/2752/3
David van Moolenbroek [Sun, 24 Aug 2014 10:16:37 +0000 (10:16 +0000)]
libc: make socketpair(3) use the right device

UDS expects the device number of the actual socket, not the device on
which the socket happens to reside.  The code worked only because PFS
returned the same value in the st_dev stat field, which it will have
to continue doing for a while now.

Change-Id: I426d38a86a96307ff6e6ed8099d37dae02d6bf2b

10 years agoext2: use libfsdriver 51/2751/3
David van Moolenbroek [Sun, 24 Aug 2014 10:12:30 +0000 (10:12 +0000)]
ext2: use libfsdriver

- fix panic on truncating files with holes;
- remove block-based readahead, to match MFS.

Change-Id: I385552f8019e9c013a6cb937bcc8e4e7181a4a50

10 years agoMFS: use libfsdriver 50/2750/3
David van Moolenbroek [Sun, 24 Aug 2014 10:06:03 +0000 (10:06 +0000)]
MFS: use libfsdriver

Change-Id: Ib658c7dea47b81a417755b0554a75288117b431a

10 years agoMove clock_time into libsys 49/2749/3
David van Moolenbroek [Sun, 24 Aug 2014 10:00:06 +0000 (10:00 +0000)]
Move clock_time into libsys

Change-Id: Ibc5034617e6f6581de7c4a166ca075b3c357fa82

10 years agolibvtreefs: use libfsdriver 48/2748/3
David van Moolenbroek [Sun, 24 Aug 2014 09:55:05 +0000 (09:55 +0000)]
libvtreefs: use libfsdriver

Change-Id: I0e6446bd0ccc3b89edc237be441ebfd92585f352

10 years agolibpuffs: use libfsdriver 47/2747/3
David van Moolenbroek [Sun, 24 Aug 2014 09:51:35 +0000 (09:51 +0000)]
libpuffs: use libfsdriver

Change-Id: I26651578066e1098dc275a9cfbe5710870a13811

10 years agolibsffs: use libfsdriver 46/2746/3
David van Moolenbroek [Sun, 24 Aug 2014 09:47:41 +0000 (09:47 +0000)]
libsffs: use libfsdriver

Change-Id: Id8377873455771c614371e115643cd906d05f12c

10 years agolibminixfs: add block I/O routines 45/2745/3
David van Moolenbroek [Sun, 24 Aug 2014 09:40:52 +0000 (09:40 +0000)]
libminixfs: add block I/O routines

The new functionality aims to save each file system server from having
to implement its own block I/O routines just so that it can serve as a
root file system.  The new source file (bio.c) lists the requirements
that file system servers have to fulfill in order to use the routines.

Change-Id: Ia0190fd5c30e8c2097ed8f4b0e3ccde1827e0b92

10 years agolibminixfs: do not make fs_sync upcalls 44/2744/3
David van Moolenbroek [Sun, 24 Aug 2014 09:38:25 +0000 (09:38 +0000)]
libminixfs: do not make fs_sync upcalls

The file system may not be expecting these upcalls at arbitrary
moments, while they serve only as a performance optimization anyway.

Change-Id: I0748fd1f6c2645ddbb64466093ee36025aac45e0

10 years agotest72: fix mock bdev functions 43/2743/3
David van Moolenbroek [Sun, 24 Aug 2014 09:37:42 +0000 (09:37 +0000)]
test72: fix mock bdev functions

The minixfs library only ever submits vector elements (and reads) of
the system page size. The test implementation was expecting vector
elements (and reads) of the file system block size. The resulting
mismatch caused I/O to fail in various ways, even though this did not
have an effect on the actual test.

Change-Id: I02f4a3efcd4a32916435d82c7d5798e6b78f0a27

10 years agotest72: fix premature block size update 42/2742/3
David van Moolenbroek [Sun, 24 Aug 2014 09:37:10 +0000 (09:37 +0000)]
test72: fix premature block size update

Updating the current block size before flushing the cache, which still
contained blocks with the old block size, resulted in triggering an
assert on position alignment.

Change-Id: I7a83f3d3bc57bafc08aa6c8df64fbf978273bbfd

10 years agoAdd libfsdriver: a library to drive file systems 41/2741/3
David van Moolenbroek [Sun, 24 Aug 2014 09:27:54 +0000 (09:27 +0000)]
Add libfsdriver: a library to drive file systems

This library provides new abstractions for the upper (VFS) side of
file system services, and should be used for all file system service
implementations from now on.  It provides the following functionality:

  - a function call table abstraction, hiding the details of the
    VFS-FS protocol with simple parameters;
  - a (currently limited) number of per-function steps required for
    all file system implementations, such as copying in and out path
    names and result buffers;
  - a default implementation for multicomponent path lookups, such
    that the file system merely has to implement resolution of single
    components at a time;
  - an abstraction for copying data from and to the file system, which
    allows transparent intraprocess copying as required for the lookup
    implementation;
  - a set of functions to simplify getdents implementations.

The message loop provided by the library is currently for use by
single-threaded file system implementations only.  Multithreaded file
system services may use the more low-level message processing
functionality.

Protocol-level optimizations such as including names in protocol
messages may be hidden entirely in this library.  In addition, in the
future, the lookup implementation may be replaced by a single-
component lookup VFS/FS protocol request as part of a VFS name cache
implementation; this, too, can be hidden entirely in this library.

Change-Id: Ib34f0d0e021dfa3426ce8826efcf3eaa94d3ef3e

10 years agoVFS: provide correct root directory for lookups 40/2740/2
David van Moolenbroek [Sun, 24 Aug 2014 09:27:02 +0000 (09:27 +0000)]
VFS: provide correct root directory for lookups

This fixes a VFS panic and a chroot(2) security hole.

Change-Id: Ifd1923f886501cf3a73277aab89db974798c47dc

10 years agoVFS: do not call REQ_FLUSH on the root file system 39/2739/2
David van Moolenbroek [Sun, 24 Aug 2014 09:26:17 +0000 (09:26 +0000)]
VFS: do not call REQ_FLUSH on the root file system

Change-Id: I15d29a6f3d198e604ea7f7a9db600d6d18b6994b

10 years agoSet the motd to point to a wiki page. 32/2832/1 R3.3.0 v3.3.0
Ben Gras [Sat, 13 Sep 2014 21:56:00 +0000 (23:56 +0200)]
Set the motd to point to a wiki page.

Change-Id: I12bc9d07c4d3d0bcb17a27521a0f06ad5abb5fda

10 years agoset reasonable packages list 31/2831/1
Ben Gras [Sat, 13 Sep 2014 20:22:51 +0000 (22:22 +0200)]
set reasonable packages list

. clang, binutils and git and dependencies on CD
. don't bzip .iso

Change-Id: If43324b46289de5fd1ca7b64785f8ae6e97fd6b7

10 years agorestore pkgin_cd 30/2830/1
Ben Gras [Sat, 13 Sep 2014 14:50:30 +0000 (16:50 +0200)]
restore pkgin_cd

. make release.sh put packages on the cd
. make setup script produce a better rc.package file

Change-Id: Ia4b7588975c2ddf630fa1c510715d82755f67f1e

10 years agorestore single user mode 29/2829/1
Ben Gras [Fri, 12 Sep 2014 21:15:46 +0000 (23:15 +0200)]
restore single user mode

. the minix init started rc with the 'bootargs' variable.
  this can now be cleanly passed to rc by executing sysenv
  from the ramdisk rc script.

Change-Id: I68d0d2ab0be326b2ae30438a62dd7649b600c2d2

10 years agosmall arm image script changes 28/2828/1
Ben Gras [Fri, 12 Sep 2014 10:34:13 +0000 (12:34 +0200)]
small arm image script changes

. let you specify IMG as a block device directly. this minimizes
  i/o (only write used parts of the filesystem) and so turnaround
  time - while still allowing the big default FS size.

Change-Id: Ib738499464e0d350a474a706f688d3f10806207d

10 years agoTemporarily disable the is9600 FS server 27/2827/1
Lionel Sambuc [Fri, 12 Sep 2014 11:39:49 +0000 (13:39 +0200)]
Temporarily disable the is9600 FS server

It is currently too broken to be of any use anyway. Fixes are pending,
which is why this patch is intended to be reverted before those are
merged.

For the time being, the following tools can be used to access cdroms:
 - isodir
 - isoinfo
 - isoread
 - writeisofs

Change-Id: I681e8f1224bb464ba978f893dc18d46fa06a8208

10 years agousb/hcd: asserts should not have side effects 26/2826/1
Lionel Sambuc [Fri, 12 Sep 2014 11:20:40 +0000 (13:20 +0200)]
usb/hcd: asserts should not have side effects

They can be deactivated with -DNDEBUG, which is why they can't contain
code which should always be run.

It seems the local implementation of USB_ASSERT doesn't honor the
CPP flags NDEBUG, this will be corrected in a later patch.

Change-Id: Iac56b09fd563f1b8c4c7be15a468a05b9cc86a18

10 years agopkgin_sets: Fix python package name 25/2825/1
Lionel Sambuc [Fri, 12 Sep 2014 09:10:30 +0000 (11:10 +0200)]
pkgin_sets: Fix python package name

Change-Id: I09658a10f750b3d15867d6bd69d749c61831a00d

10 years ago/usr/Makefile: prevent pkgin from hanging 24/2824/1
Lionel Sambuc [Fri, 12 Sep 2014 09:07:33 +0000 (11:07 +0200)]
/usr/Makefile: prevent pkgin from hanging

Change-Id: Ida6086f3c2d3300609aaebb931d094fd779c73ea

10 years agoKernel: update copyright year 23/2823/1
David van Moolenbroek [Wed, 10 Sep 2014 13:01:45 +0000 (13:01 +0000)]
Kernel: update copyright year

Change-Id: I1776f1bc6402f264c7095c17a9ace087036cf010

10 years agorc: update (unused) default service directory 22/2822/2
David van Moolenbroek [Tue, 9 Sep 2014 11:50:48 +0000 (11:50 +0000)]
rc: update (unused) default service directory

Change-Id: I62f838a47ef92975ef88319fffd94f83814fef49

10 years agoblocktest: update test.sh for new shell 21/2821/2
David van Moolenbroek [Tue, 9 Sep 2014 11:49:27 +0000 (11:49 +0000)]
blocktest: update test.sh for new shell

Change-Id: I9c08139db972013a16f5794bd213b69bba0b5350

10 years agoPorting uuencode/uudecode from NetBSD 20/2820/2
Sky Liu [Sun, 7 Sep 2014 02:05:15 +0000 (10:05 +0800)]
Porting uuencode/uudecode from NetBSD

Lionel: I fixed small mistakes in the mi file, typos, missing keywords,
        and whitespace fixes.

Change-Id: If0c04b923af328838f2d0950e189bf28995bc0f0

10 years agoDrop minix-malloc & friends 19/2819/2
Lionel Sambuc [Wed, 3 Sep 2014 14:53:25 +0000 (16:53 +0200)]
Drop minix-malloc & friends

Known limitations:
 - comment for now testisofs, as iso9660fs is known to be broken.

Benefits:
 - near 3x speed improvement on C++ code compilation, bringing down
   make build to from 44min down to 21min.

 - Allows for X applications to work properly, which should be available
   in near-term future through pkgsrc for 3.3.0.

Change-Id: I8f4179a7ea925ed381642add32cfd8c5822217e4

10 years agoAllow elf_unpack to withstand invalid ELF headers 18/2818/2
Lionel Sambuc [Mon, 8 Sep 2014 08:16:41 +0000 (10:16 +0200)]
Allow elf_unpack to withstand invalid ELF headers

Change-Id: I10a0f3111176b9614b8531d6736e2e860eb95ce4

10 years agoSet uts.machine to i386 on intel 32bit platforms. 17/2817/1
Lionel Sambuc [Fri, 5 Sep 2014 13:35:17 +0000 (15:35 +0200)]
Set uts.machine to i386 on intel 32bit platforms.

Change-Id: Ic0833843f0d3e3df50fcbde11b453b846f0d4f33

10 years agocommands/setup: fixes for new sh & renamed fsck 16/2816/1
Lionel Sambuc [Fri, 5 Sep 2014 08:01:18 +0000 (10:01 +0200)]
commands/setup: fixes for new sh & renamed fsck

 - adapt an arithmetic expression for the new sh
 - update the fsck call to use the main fsck wrapper instead of a
   specific fsck version.

Change-Id: I7e25bf6e54b5c9f564082459e78b9ce5c39254cf

10 years agoRemove SETS.* from the CD. 15/2815/1
Lionel Sambuc [Thu, 4 Sep 2014 13:45:59 +0000 (15:45 +0200)]
Remove SETS.* from the CD.

Change-Id: I06385c51d7d24b4e0e6af037c5953ef11695c923

10 years agoset LD_LIBRARY_PATH 14/2814/1
Lionel Sambuc [Thu, 4 Sep 2014 13:37:27 +0000 (15:37 +0200)]
set LD_LIBRARY_PATH

Change-Id: I959043857b381df561ce156b7388444628c81afb

10 years agotps65950: allow 0 as id for qemu beaglexm 13/2813/1
Ben Gras [Thu, 4 Sep 2014 11:46:02 +0000 (13:46 +0200)]
tps65950: allow 0 as id for qemu beaglexm

makes booting on qemu beaglexm a lot prettier.

Change-Id: I45d0383abbf0d21227a95f538ed78ca6c1ed7871

10 years agodevmand: skip unconfigured script invocations 12/2812/1
Ben Gras [Thu, 4 Sep 2014 11:31:37 +0000 (13:31 +0200)]
devmand: skip unconfigured script invocations

. if a up/down script isn't specified, devmand
  would try to execute a command line with (null)
  in it, causing messy messages on startup
. skip script at a higher level when missing,
  and add asserts for expected strings at the lower level

Change-Id: Ia0d772076f3781caa5879ea4e64b53fa6c6e8478

10 years agoretire unstack & datasizes in favour of addr2line 11/2811/1
Ben Gras [Wed, 3 Sep 2014 16:40:27 +0000 (18:40 +0200)]
retire unstack & datasizes in favour of addr2line

Change-Id: Ibf5db75f3358c3c0bf81ca211a6602b333af0473

10 years agoincrease root FS size to 128MB 10/2810/1
Ben Gras [Wed, 3 Sep 2014 16:36:11 +0000 (18:36 +0200)]
increase root FS size to 128MB

Change-Id: Ibccc32d672b138fd267641e5e5a6e06bfa8502e9

10 years agoVM: mem_shared: allow re-pagefault 08/2808/1
Ben Gras [Wed, 3 Sep 2014 11:42:30 +0000 (13:42 +0200)]
VM: mem_shared: allow re-pagefault

Change-Id: Iffd0e265c03f064545c9689ac204c58335d32c9a

10 years agoAHCI: remove obsolete free_contig calls 07/2807/1
David van Moolenbroek [Tue, 2 Sep 2014 15:51:16 +0000 (15:51 +0000)]
AHCI: remove obsolete free_contig calls

The memory used to be in its own memory region, but is now a part of
a larger memory region which is already being freed anyway.

Change-Id: Ice3174cec76e07112a1997b969dc3f47f573514c

10 years agoSome more NDEBUG fixes 06/2806/1
Lionel Sambuc [Tue, 2 Sep 2014 14:57:50 +0000 (16:57 +0200)]
Some more NDEBUG fixes

 - replace a stray assert(0) with abort()
 - remove unrequired copy-pasted #undef NDEBUG
 - replace some #if NDEBUG by #if DEBUG as they protect debug printf()s.

Change-Id: Iff4c0331b06e860d32d91ce6b1d6c765ed065c8b

10 years agoFix -DNEDUG builds 05/2805/1
Lionel Sambuc [Tue, 2 Sep 2014 13:22:15 +0000 (15:22 +0200)]
Fix -DNEDUG builds

 - assert() is macro which is defined as empty, while panic is always
   present. I added an explicit abort() after the macro to make sure the
   function never returns in case of wrong flags.

 - Fixed gcc build with -NDEBUG, -Os for ARM.
   * A few 'may be used uninitialized' messages
   * A few new missing support library functions where added in libminc.

Change-Id: I69fcda2cd3888390b7ddeff4c0cd849105ce86ff

10 years agoMake the kernel less chatty 04/2804/1
Lionel Sambuc [Mon, 1 Sep 2014 14:17:18 +0000 (16:17 +0200)]
Make the kernel less chatty

Change some messages from always printed to varying level of the "verbose"
argument.

Change-Id: I6899268aa895c66e72806ca4d02bb53a0e4ea785

10 years agovm: allow split of mem_anon_contig region 03/2803/1
Ben Gras [Mon, 1 Sep 2014 13:02:08 +0000 (15:02 +0200)]
vm: allow split of mem_anon_contig region

. so that memory of such regions can be deallocated in any order

Change-Id: I34013d6085cf19a482412cf9bed6b7f96e60e1e6

10 years agotools/llvm: Do not build with symbols 02/2802/1
Lionel Sambuc [Mon, 1 Sep 2014 09:11:32 +0000 (11:11 +0200)]
tools/llvm: Do not build with symbols

Do not build clang and llvm libraries with debug symbols, when built as
a cross-compilation tool.

This saves a lot of space (about 4G), and hopefully also some
compilation time.

Change-Id: Ifeb91d6932d667fa901a8efe1a95a922e6f6ba98

10 years agoVFS: convert EINTR to EAGAIN for nonblocking I/O 01/2801/1
David van Moolenbroek [Sun, 31 Aug 2014 17:12:45 +0000 (17:12 +0000)]
VFS: convert EINTR to EAGAIN for nonblocking I/O

The conversion was never properly implemented for asynchronous
character drivers, and got lost during the removal of the
synchronous character protocol.

Change-Id: Ib858806859aa7a52d6b391d4c6c521a2be361fdd

10 years agorelease.sh changes & fixes 00/2800/2
Ben Gras [Sun, 31 Aug 2014 14:21:05 +0000 (16:21 +0200)]
release.sh changes & fixes

. source release.functions with explicit path
. make xargs touch not fail (due to too long invocations
  and spaces in paths)

Change-Id: I448b96cebd641bf2c7b86ecbb3d1f1cb568e4f70

10 years agoKernel: fix sys_trace 99/2799/1
David van Moolenbroek [Sat, 30 Aug 2014 19:10:12 +0000 (19:10 +0000)]
Kernel: fix sys_trace

Change-Id: I44bdd3b1d79bf751923581b75c3d44f011d2a5e0

10 years agoFix bitcode support for kernel 98/2798/2
Lionel Sambuc [Thu, 21 Aug 2014 11:35:45 +0000 (13:35 +0200)]
Fix bitcode support for kernel

10 years agominix/llvm/passes/Makefile.inc: Fix 97/2797/2
Lionel Sambuc [Wed, 20 Aug 2014 11:28:30 +0000 (13:28 +0200)]
minix/llvm/passes/Makefile.inc: Fix

This fixes and documents a mistake made during the sources move.

10 years agoAdd /usr/lib/bc/libgcc_s.a to the file list 96/2796/2
Erik van der Kouwe [Sun, 10 Aug 2014 08:54:06 +0000 (10:54 +0200)]
Add /usr/lib/bc/libgcc_s.a to the file list

Add /usr/lib/bc/libgcc_s.a in distrib/sets/lists/minix/mi.

10 years agoSkip modules that don't work on x86 95/2795/2
Erik van der Kouwe [Sun, 10 Aug 2014 20:19:20 +0000 (22:19 +0200)]
Skip modules that don't work on x86

Skip the following modules in relink.llvm/build.llvm:
 - i2c
 - gpio
 - cat24c256
 - tsl2550

10 years agoAdjust LLVM MINIX scripts for new source layout 94/2794/2
Erik van der Kouwe [Fri, 8 Aug 2014 19:43:24 +0000 (21:43 +0200)]
Adjust LLVM MINIX scripts for new source layout

Adjust to the fact that drivers and servers have moved into the minix
subdir.

10 years agobuild.llvm fix to allow pass arguments 93/2793/2
Erik van der Kouwe [Wed, 6 Aug 2014 13:18:41 +0000 (15:18 +0200)]
build.llvm fix to allow pass arguments

This allows pass arguments to be specified (written by Cristiano)

10 years agoImporting bin/sh 92/2792/2
Lionel Sambuc [Sun, 3 Aug 2014 21:10:41 +0000 (23:10 +0200)]
Importing bin/sh

/etc/profile enables by default tabcompletion, as well as emacs mode,
in order to keep the old MINIX ash behavior.

Note: The shell now refuses to source a script without a relative or
      absolute path.
      This means:
        - '. myscript.sh' fails, while
        - '. ./myscript.sh' succeeds

Change-Id: I0be89b0747bd005e4c05cadb937af86883627dc6

10 years agoMuch USB code for ARM USB support 91/2791/3
Wojciech Zajac [Thu, 26 Jun 2014 12:05:41 +0000 (14:05 +0200)]
Much USB code for ARM USB support

Written by JP Embedded.

Host controller (HCD), mass storage, and hub drivers.

Change-Id: I4237cf7aeb4a1c0205a1876593a9cc67ef3d577e

10 years agomerge libminlib with libc 90/2790/1
Ben Gras [Thu, 28 Aug 2014 15:35:17 +0000 (17:35 +0200)]
merge libminlib with libc

Change-Id: I79cc4ea90c378a1da3dac16487b53034953827a7

10 years agoremove libcompat_minix as library 89/2789/1
Ben Gras [Sun, 24 Aug 2014 22:19:51 +0000 (00:19 +0200)]
remove libcompat_minix as library

. get rid of includes in libcompat_minix:
  . move configfile.h to minix/include/
  . all others are unneeded as they point to other files
. merge the .c files with libc

Change-Id: I5e840c66fb9bc484f377926aa9d66473bbd16259

10 years agosome small changes 88/2788/1
Ben Gras [Sun, 24 Aug 2014 22:19:25 +0000 (00:19 +0200)]
some small changes

. add /sbin to tests $PATH for ping
. take disable file mmap item from default boot menu
. ask for feedback in motd
. fix ext2fs on arm (the memory alloced with STATICINIT is flaky on arm)

Change-Id: I7525207074d62abc47ed3891139f6ef7ef6025be

10 years agoVFS: unbreak select on /dev/tty 87/2787/1
David van Moolenbroek [Tue, 26 Aug 2014 22:28:58 +0000 (22:28 +0000)]
VFS: unbreak select on /dev/tty

The remapping from /dev/tty to the real controlling terminal in the
device code was confusing the select code.  The latter is now aware
of this case and should handle it properly, at the cost of one extra
field in the filp structure.

There is a nasty, hopefully sufficiently rare case of /dev/tty being
kept open while controlling terminals are changing, that we are still
not handling.  Doing so would require more than just a few changes,
but the code should at least detect and cleanly fail on this case.

Test77 now has a basic test set for selecting on /dev/tty.

Change-Id: Iaedea449cdb728d0e66a9de8faacdfd9638dfe92

10 years agoPTY: let closed master cause EOF on slave 86/2786/1
David van Moolenbroek [Wed, 27 Aug 2014 14:23:52 +0000 (14:23 +0000)]
PTY: let closed master cause EOF on slave

This puts PTY on par with e.g. rs232 as well as behavior documented
for other OSes.  It is not a fix for an issue in userland, though.

- add a (minimal) test case to test77;
- fix a few other minor issues in test77.

Change-Id: I89c000921ee69dd9f5713665349c1ab1ad1dc2cc

10 years agoVFS: complete the devmajor_t/devminor_t switch 85/2785/1
David van Moolenbroek [Tue, 26 Aug 2014 16:39:02 +0000 (16:39 +0000)]
VFS: complete the devmajor_t/devminor_t switch

Change-Id: I9f809283f19d577cf7e02705fdbb2310ae2b6cba

10 years agotty/pty: unbreak stty(1) 84/2784/1
David van Moolenbroek [Mon, 25 Aug 2014 19:34:39 +0000 (19:34 +0000)]
tty/pty: unbreak stty(1)

Change-Id: I3f857dcbb89e18c7db3a72f4bd6809beb7904bc0

10 years agotty/pty: change back default CERASE to ^H 83/2783/1
David van Moolenbroek [Mon, 25 Aug 2014 19:33:27 +0000 (19:33 +0000)]
tty/pty: change back default CERASE to ^H

Alternatives should be considered (such as changing our keymaps to
better match NetBSD) in due time, but for now, the current default
is incredibly annoying!

Change-Id: I4cab5d6a9f39983ee8aa80362768fdb9cf3db948

10 years agouptime(1): also report uptime 82/2782/1
David van Moolenbroek [Thu, 28 Aug 2014 11:40:55 +0000 (11:40 +0000)]
uptime(1): also report uptime

It might be more useful this way.  *cough*

Change-Id: I318169fef8bf7737dc46eebf5c5332ce42a9076a

10 years agoINIT died problem / build system robustness 77/2777/2
Ben Gras [Mon, 25 Aug 2014 16:35:59 +0000 (18:35 +0200)]
INIT died problem / build system robustness

Changes provoked by debugging / making 'PM: INIT died' error debuggable.

This was caused (in one instance) by a missing /dev/console (and everything
else) on the boot time ramdisk.

. sanity-check against this case by checking for console
. PM: print init stacktrace and exit status when init dies
. eliminate some explicitly invoked ${MAKE}s and a rm -rf in
  Makefiles, causing race conditions; use explicit ordering (.WAIT)
  instead, moving some of the burden of dependencies of partial builds
  to the user. On the plus side, generate ramdisk just once.
. make mkfs.mfs fail as soon as it sees an error missing file in
  the proto file. - except for EACCES on minix native for the mfs
  test. also fix some fmt warnings.
. init: include debug info in executable

Change-Id: I8eea4986a4f64ecaf223aff5da321d8b4f4a3fa4

10 years agoImport NetBSD w(1) and uptime(1) 68/2768/4
David van Moolenbroek [Tue, 26 Aug 2014 16:03:05 +0000 (16:03 +0000)]
Import NetBSD w(1) and uptime(1)

Change-Id: Id6cc36f4befbce4be3a471ae920d75972a44bef1

10 years agoFixes for -O3 with GCC 35/2735/3
Lionel Sambuc [Sat, 23 Aug 2014 07:41:54 +0000 (09:41 +0200)]
Fixes for -O3 with GCC

Change-Id: I8d8e267cc7996581729df4be0d8e21646ff9e1d2

10 years agops: fix reported run time 37/2737/1
David van Moolenbroek [Fri, 22 Aug 2014 14:35:55 +0000 (14:35 +0000)]
ps: fix reported run time

10 years agotest59: fix status type for mthread_join call 36/2736/1
David van Moolenbroek [Thu, 21 Aug 2014 15:22:24 +0000 (15:22 +0000)]
test59: fix status type for mthread_join call

Integer and pointer sizes may not be the same.

10 years agoFix -DNDEBUG support 28/2728/1
Lionel Sambuc [Fri, 22 Aug 2014 17:11:59 +0000 (19:11 +0200)]
Fix -DNDEBUG support

Change-Id: Ib64cef83a646bce2b0afa72b607fb9e5c306e859

10 years agoarm am335x: disable watchdog timer on bootup 27/2727/3
Ben Gras [Fri, 22 Aug 2014 12:06:57 +0000 (14:06 +0200)]
arm am335x: disable watchdog timer on bootup

. for new uboot (specifically beaglebone black rev c) compliance

Change-Id: I28fd0ca15f5365e14bf2bb9407f266e3e570b6d9

10 years agofix test48 - minix3.org.xyz resolves now 26/2726/1
Ben Gras [Fri, 22 Aug 2014 10:34:33 +0000 (12:34 +0200)]
fix test48 - minix3.org.xyz resolves now

Change-Id: I40b86b7c8cbfcbac0c976c2477200081c2cfc8f7

10 years agoRemoval of commands fix: Keep builtin man pages. 25/2725/1
Lionel Sambuc [Fri, 22 Aug 2014 10:17:04 +0000 (12:17 +0200)]
Removal of commands fix: Keep builtin man pages.

Change-Id: I5cff0f987ed637677406e90faeecb8104f6551bc

10 years agocommands/test: removed 24/2724/1
Lionel Sambuc [Sun, 3 Aug 2014 12:39:09 +0000 (14:39 +0200)]
commands/test: removed

Change-Id: I5557eb2116d23c466ce82f1c8c9d18590316a0d0

10 years agocommands/expr: removed 23/2723/1
Lionel Sambuc [Sun, 3 Aug 2014 12:37:13 +0000 (14:37 +0200)]
commands/expr: removed

Change-Id: I374f162959c6e0d708c7b1bd66f2c7a4346c097a

10 years agocommands/command: removed 22/2722/1
Lionel Sambuc [Sun, 3 Aug 2014 11:45:53 +0000 (13:45 +0200)]
commands/command: removed

Change-Id: I90d57681e7bcabebff323f27af57bab108fa6d4d

10 years agocommands/wait: removed 21/2721/1
Lionel Sambuc [Sun, 3 Aug 2014 11:27:57 +0000 (13:27 +0200)]
commands/wait: removed

Change-Id: Ie712ec86ef9bbdeffb2fafb51b64600bd118d1e2

10 years agocommands/read: removed 20/2720/1
Lionel Sambuc [Sun, 3 Aug 2014 10:53:12 +0000 (12:53 +0200)]
commands/read: removed

Change-Id: Iaa24bb634b31932f793f02c4df10b48030ab70a0