]> Zhao Yanbai Git Server - minix.git/log
minix.git
10 years agoAdapt the type used for adjtime_delta 21/921/2
Lionel Sambuc [Fri, 23 Aug 2013 18:27:27 +0000 (20:27 +0200)]
Adapt the type used for adjtime_delta

clock_t is currently a signed type, but in NetBSD this is not the
case. As we plan on aligning our types we have to change this as this
prevents negative delta from being correctly used.

Change-Id: I9bccdee2b41626b0262471dc1900de505a1991a7

10 years agofix sysroot clang 20/920/2
Lionel Sambuc [Wed, 17 Apr 2013 11:01:55 +0000 (13:01 +0200)]
fix sysroot clang

Change-Id: I63adf8460e7fdbe3d9d5ad6c828ae5758cb1643c

10 years agoBumping version to 3.3.0 19/919/2
Lionel Sambuc [Wed, 3 Apr 2013 08:45:55 +0000 (08:45 +0000)]
Bumping version to 3.3.0

Change-Id: I4c88bdd449daf6ad3fe4e93ee8fc35d4f38becc4

10 years agoVFS: use 64-bit file offsets in all requests 18/918/2
Thomas Veerman [Mon, 25 Mar 2013 16:08:04 +0000 (16:08 +0000)]
VFS: use 64-bit file offsets in all requests

Change-Id: I735c4068135474aff2c397f4bc9fb147a618b453

10 years agostat.h: remove some big_ types 17/917/2
Thomas Veerman [Thu, 7 Mar 2013 15:55:22 +0000 (15:55 +0000)]
stat.h: remove some big_ types

Change-Id: I84017db3d54edfb823cc52e02d0b07fccb003988

10 years agoDefine protocol version of {mode,ino,uid,gid}_t 16/916/2
Thomas Veerman [Thu, 7 Mar 2013 14:46:21 +0000 (14:46 +0000)]
Define protocol version of {mode,ino,uid,gid}_t

Change-Id: Ia2027749f2ce55a561d19eb895a5618505e9a2ac

10 years agoVFS-FS protocol: add versioning 15/915/2
Thomas Veerman [Mon, 25 Mar 2013 21:09:10 +0000 (21:09 +0000)]
VFS-FS protocol: add versioning

Change-Id: Ice6fbfd4b535b7435653fa08b27a3378d1cfdbf8

10 years agomined: fix dangling else 27/1427/1
Thomas Cort [Sun, 16 Feb 2014 20:08:20 +0000 (20:08 +0000)]
mined: fix dangling else

Add braces to avoid ambiguity. Resolves the following warning:
mined1.c:1355:5: warning: add explicit braces to avoid dangling else
[-Wdangling-else]

Change-Id: I64e2942835e45869010f0b8bbef2fe880d0852dc

10 years agozmodem: K&R -> ANSI C function declaration 08/1208/4
Melon [Mon, 27 Jan 2014 17:13:42 +0000 (18:13 +0100)]
zmodem: K&R -> ANSI C function declaration

Change-Id: Id3dbd2e39563cb399da9ad86bdd0024676f9d728

10 years agoarm-refactor:document ARM assembly code. 25/1425/1
Kees Jongenburger [Mon, 10 Feb 2014 12:12:21 +0000 (13:12 +0100)]
arm-refactor:document ARM assembly code.

Change-Id: I8540a09cdaf45431ad163954ce41d36f4b72cad5

10 years agoarm:replace ifdef's by runtime checks in the omap rtc driver. 24/1424/1
Kees Jongenburger [Mon, 10 Feb 2014 11:20:28 +0000 (12:20 +0100)]
arm:replace ifdef's by runtime checks in the omap rtc driver.

Change-Id: I038f0fcf88061ae60d6d029d86c84153bf0f0020

10 years agoarm:replace ifdef's by runtime checks in the lan8710a driver. 23/1423/1
Kees Jongenburger [Mon, 10 Feb 2014 11:19:33 +0000 (12:19 +0100)]
arm:replace ifdef's by runtime checks in the lan8710a driver.

Change-Id: I1f345240b88362658e987a85f1642324471119c3

10 years agoarm:create SoC specific bsp directory and move code to there. 22/1422/2
Kees Jongenburger [Fri, 7 Feb 2014 07:46:29 +0000 (08:46 +0100)]
arm:create SoC specific bsp directory and move code to there.

Created a new directory called bsp (board support package) to hold
board or system on chip specific code. The idea is the following.

Change-Id: Ica5886806940facae2fa5492fcc938b3c2b989be

10 years agoarm-refactor:use sysenv board to determine what driver to start. 07/1207/1
Kees Jongenburger [Fri, 10 Jan 2014 11:20:59 +0000 (12:20 +0100)]
arm-refactor:use sysenv board to determine what driver to start.

Change-Id: Ib2f273a4ff666a7417a13e39be0b89075f61c31b

10 years agoarm:fix GPIO revision check on DM37XX. 06/1206/1
Kees Jongenburger [Fri, 10 Jan 2014 11:00:13 +0000 (12:00 +0100)]
arm:fix GPIO revision check on DM37XX.

The GPIO revision check assumed the major and minor revision numbers where
located at same location in the register. This is not true.

Change-Id: Ieaff07ed8a19e6b4cf1d121a41d3290880b78a82

10 years agotest24: fix memory leak. 05/1205/1
Thomas Cort [Tue, 14 Jan 2014 03:22:25 +0000 (22:22 -0500)]
test24: fix memory leak.

Local variable 'name' was allocated but not freed. Add the free().

Change-Id: I3d16486fc17bd40d54619d80e5b1fdfe96f1be26

10 years agoVM bugfix & regression test 02/1202/4
Ben Gras [Wed, 8 Jan 2014 16:43:19 +0000 (17:43 +0100)]
VM bugfix & regression test

The bug in the offset correction code for the 'shrink region from
below' case can easily case an assert(foundregion->offset == offset)
to trigger (if the blocks are touched afterwards, e.g. on fork())
as the offsets become wrong. This commit is a fix & regression test.

Change-Id: I28ed403e3891362a2dea674a49e786d3450d2983

10 years agoarm:indenting 99/1199/4
Kees Jongenburger [Tue, 17 Dec 2013 15:20:37 +0000 (16:20 +0100)]
arm:indenting

Change-Id: I2f8f664fa4c66649db8981e58e6bb7a6f533df5a

10 years agoarm:disable filemmap. 98/1198/2
Kees Jongenburger [Tue, 17 Dec 2013 13:42:06 +0000 (14:42 +0100)]
arm:disable filemmap.

We currently have a few of the POSIX tests failing because filemmap
is enabled by default. The working assumption is that these program
pass a pointer to the file server that points to a not yet loaded
data segment. When the file server tries to access that data it
therefore generates a pagefault and a call to itself it can not
handle because it is unable to first return the current call.

Change-Id: Ic1a2d9cd0a542bd950e2b08accb61cfe2855c5a3

10 years agoarm:refactor move pagetable to the common directory. 97/1197/1
Kees Jongenburger [Tue, 17 Dec 2013 13:41:35 +0000 (14:41 +0100)]
arm:refactor move pagetable to the common directory.

Change-Id: Ic3178241f86156f729f016017f61017653ddbd23

10 years agoarm:make the kernel server and driver binaries identical. 94/1194/3
Kees Jongenburger [Fri, 13 Dec 2013 13:46:56 +0000 (14:46 +0100)]
arm:make the kernel server and driver binaries identical.

Make the kernel server and driver binaries indentical for the different
ARM platforms. We no longer need to define the AM335X or DM37XX flags
during compilation. The remaining differences are all located in u-boot.

Change-Id: I14ac60837dd2d7f116bc5fa56d3989b48d7c4fea

10 years agoarm:replace ifdef's by runtime checks in the i2c driver. 93/1193/3
Kees Jongenburger [Fri, 13 Dec 2013 13:16:29 +0000 (14:16 +0100)]
arm:replace ifdef's by runtime checks in the i2c driver.

Change-Id: I5cdff48d8be9bbe5a4734192b451dc45983fbef2

10 years agoarm:switch to dynamic configuration for the kernel. 92/1192/3
Kees Jongenburger [Fri, 13 Dec 2013 13:12:50 +0000 (14:12 +0100)]
arm:switch to dynamic configuration for the kernel.

During startup machine.board_id is now determined. The kernel can now
at runtime determine how to configure itself and does so.

Change-Id: I4f615af9bfa5add219e618b911a51af127591d6a

10 years agoarm:determine board_id using bootargs.board_name 91/1191/2
Kees Jongenburger [Fri, 13 Dec 2013 13:00:06 +0000 (14:00 +0100)]
arm:determine board_id using bootargs.board_name

On startup determine the board_id based on the board name
passed from u-boot. This code also export "board" for use
by  userland using sysenv.

Change-Id: I1064a49497c82b06f50d98650132bc0a7f543568

10 years agoarm:refactor replace cmdline.txt by bootargs passed to the kernel. 96/1196/1
Kees Jongenburger [Fri, 13 Dec 2013 10:18:02 +0000 (11:18 +0100)]
arm:refactor replace cmdline.txt by bootargs passed to the kernel.

Put the boot arguments in uEnv.txt and not in cmdline.txt to allow
a more dynamic configuration of the system. We now also pass the
u-boot board_name parameter to the kernel.

10 years agoarm:manage versioning of u-boot and upgrade u-boot 95/1195/1
Kees Jongenburger [Fri, 13 Dec 2013 12:36:47 +0000 (13:36 +0100)]
arm:manage versioning of u-boot and upgrade u-boot

Replaced the wget download of u-boot by a versioned git checkout
this allows us to better manage the u-boot and MLO version we ship
while still allowing us to build ofline.

This changes replaces the BASE_URL setting by U_BOOT_BIN_DIR and
also updates to a newer build of u-boot.

10 years agokernel:export board to userland. 82/1182/4
Kees Jongenburger [Fri, 29 Nov 2013 13:31:31 +0000 (14:31 +0100)]
kernel:export board to userland.

Export the board variable to userland using sysenv. This
allows rc-scrips to perform device specific initialisation.

The board variable follows the following pattern

[ARCH]-[ARCHVARIANT]-[VENDOR]-[BOARD]-[BOARDVARIANT]

We currently we support the following boards:
X86-I586-GENERIC-GENERIC-GENERIC
ARM-ARMV7-TI-BBXM-GENERIC
ARM-ARMV7-TI-BB-WHITE
ARM-ARMV7-TI-BB-BLACK

Change-Id: I9e5f5f24f9a71cc9797cacb1aafb19499613f0be

10 years agoarm:replace ifdef's by runtime checks. 81/1181/4
Kees Jongenburger [Fri, 29 Nov 2013 13:27:03 +0000 (14:27 +0100)]
arm:replace ifdef's by runtime checks.

Change-Id: Iff966f2214e2d8bb6b72dd0a119085709f2d4a9c

10 years agoarm:add board_id to machine to enable runtime configuration. 80/1180/3
Kees Jongenburger [Fri, 29 Nov 2013 13:19:42 +0000 (14:19 +0100)]
arm:add board_id to machine to enable runtime configuration.

Modified the machine struct in include/minix/type.h to have an
additional field called board_id. This fields can be read out
by userland and drivers at runtime to enable automatic
configuration. The board_id field contains information about
the hardware architecture / board and such.

Change-Id: Ib12bc0d43fc9dbdb80ee0751c721ee516de1d2d6

10 years agocommands/crc: changed K&R to ANSI style 86/1186/1
Beletti [Wed, 20 Nov 2013 22:43:51 +0000 (22:43 +0000)]
commands/crc: changed K&R to ANSI style

Change-Id: Ia63ccbb76e00f18adea414296caef39a3fdf3a39

10 years agocommands/decomp16: changed K&R to ANSI style 85/1185/1
Beletti [Wed, 20 Nov 2013 21:55:11 +0000 (21:55 +0000)]
commands/decomp16: changed K&R to ANSI style

Change-Id: Ibefd50187bcc87a24d7c4c895524be9fa55f493a

10 years agocommands/devsize: changed K&R to ANSI style 84/1184/1
Beletti [Wed, 20 Nov 2013 21:48:20 +0000 (21:48 +0000)]
commands/devsize: changed K&R to ANSI style

Change-Id: Idc9eda4a9134c4d85870d502075398eb66c298f7

10 years agocommands/chown: changed to K&R to ANSI style 74/1174/4
Beletti [Tue, 19 Nov 2013 02:16:15 +0000 (02:16 +0000)]
commands/chown: changed to K&R to ANSI style

Change-Id: I6a956e6479b6ebedca74fdd96e44756f00633cc4

10 years agocommands/chmod: changed K&R to ANSI style 73/1173/4
Beletti [Tue, 19 Nov 2013 01:49:35 +0000 (01:49 +0000)]
commands/chmod: changed K&R to ANSI style

Change-Id: If22f201dec8b34c8773910448d75b6d8256ee6a4

10 years agocommands/at: changed K&R to ANSI style 72/1172/4
Beletti [Tue, 19 Nov 2013 01:30:55 +0000 (01:30 +0000)]
commands/at: changed K&R to ANSI style

Change-Id: Ifb12349bcf456ff303c15fdedda4ab853a148aff

10 years agocommands/synctree: changed K&R to ANSI style 71/1171/4
Beletti [Tue, 19 Nov 2013 00:48:58 +0000 (00:48 +0000)]
commands/synctree: changed K&R to ANSI style

Change-Id: I8667de0157ac3caa14e06f788daf62d6ed92b59c

10 years agoadd two missing files to flist 78/1178/3
Ben Gras [Mon, 25 Nov 2013 13:07:42 +0000 (13:07 +0000)]
add two missing files to flist

Change-Id: Ib5b62d603fbd57c4604f4613db1a2a5d485a8133

10 years agorun: allow scripts to be run as root 79/1179/2
Ben Gras [Thu, 28 Nov 2013 09:52:15 +0000 (09:52 +0000)]
run: allow scripts to be run as root

Forward-port of the run script change in the testvnd
commit on the 3.3.0 branch by David.

Needed to cleanly run the testisofs test as root in
the Jenkins environment.

'While here,' also fix messy which output in testsh2.

Change-Id: I6ec472e1386a54ae74b6e55394f01fa7c5ce53a9

10 years agotestmfs, testisofs: MFS format, ISO functionality 64/1164/4
Ben Gras [Tue, 19 Nov 2013 16:01:23 +0000 (16:01 +0000)]
testmfs, testisofs: MFS format, ISO functionality

testmfs: catch MFS format changes

This test tests mkfs.mfs will generate the same FS image given the same
input files. mkproto creates a proto file (normalizing directory entry
order). The assumption is that a change in the output flags a tacit
change in FS format, and that a FS format change will cause the image
to change.

        . Changes to mkfs.mfs that innocently change the format can
          change the sha1 output in the script along with it.
        . The assumption is that corresponding versions of mkfs.mfs and
          MFS will always work together; otherwise a lot breaks (ramdisk etc.)
        . Therefore, as long as a generated FS image stays the same with the
          same input now, incompatible MFS changes will still be flagged,
          even if they work together with the current mkfs.mfs.

testisofs: test ISO filesystem

        . to test isofs: prepare an ISO FS image using writeisofs, copy it
          to a RAM device, mount it using the iso9660fs server, compare the
          SHA1 contents of the files on the ISO with the inputs.
        . use su to run certain commands in the script as root

run script: run shell script tests

. they are installed without .sh so should be
  searched for as such
. add diagnostic when tests are skipped

Change-Id: I30daff58e1e43903dacf3c99996a4a0e7d819b6b

10 years agolibminixfs: allow non-pagesize-multiple FSes 63/1163/3
Ben Gras [Tue, 19 Nov 2013 15:59:52 +0000 (15:59 +0000)]
libminixfs: allow non-pagesize-multiple FSes

The memory-mapped files implementation (mmap() etc.) is implemented with
the help of the filesystems using the in-VM FS cache. Filesystems tell it
about all cached blocks and their metadata. Metadata is: device offset and,
if any (and known), inode number and in-inode offset. VM can then map in
requested memory-mapped file blocks, and request them if necessary.

A limitation of this system is that filesystem block sizes that are not
a multiple of the VM system (and VM hardware) page size are not possible;
we can't map blocks in partially. (We can copy, but then the benefits of
mapping and sharing the physical pages is gone.) So until before this
commit various pieces of caching code assumed page size multiple
blocksizes. This isn't strictly necessary as long as mmap() needn't be
supported on that FS.

This change allows the in-FS cache code (libminixfs) to allocate any-sized
blocks, and will not interact with the VM cache for non-pagesize-multiple
blocks. In that case it will also signal requestors, by failing 'peek'
requests, that mmap() should not be supported on this FS. VM and VFS
will then gracefully fail all file-mapping mmap() calls, and exec() will
fall back to copying executable blocks instead of mmap()ping executables.

As a result, 3 diagnostics that signal file-mapped mmap()s failing
(hitherto an unusual occurence) are disabled, as ld.so does file-mapped
mmap()s to map in objects it needs. On FSes not supporting it this situation
is legitimate and shouldn't cause so much noise. ld.so will revert to its own
minix-specific allocate+copy style of starting executables if mmap()s fail.

Change-Id: Iecb1c8090f5e0be28da8f5181bb35084eb18f67b

10 years agoiso9660fs fix 62/1162/1
Ben Gras [Tue, 19 Nov 2013 15:59:33 +0000 (15:59 +0000)]
iso9660fs fix

Change-Id: Iea91c2932ff5b0141d5eeffc5bac17632ac6b94d

10 years agomkfs.mfs, mkproto: minor features 61/1161/1
Ben Gras [Tue, 19 Nov 2013 15:58:05 +0000 (15:58 +0000)]
mkfs.mfs, mkproto: minor features

. mkfs.mfs: -T option to set timestamp of files on FS
. mkproto: normalize (sort) order of directory entries
. mkproto bugfix: always print mode in 3 digits (%03o)

Change-Id: Ice06d5f05500cd2ac9b063156c340b8f78fe6441

10 years agoImporting usr.bin/colcrt 59/1159/1
Thomas Cort [Tue, 19 Nov 2013 11:46:36 +0000 (06:46 -0500)]
Importing usr.bin/colcrt

Replaces colcrt from commands/cawf.
No Minix-specific changes needed.

Change-Id: I0ec6452c879b9a844ad97e89759087d6c3e740a2

10 years agoImporting usr.bin/mkfifo 57/1157/2
Thomas Cort [Mon, 18 Nov 2013 21:40:55 +0000 (16:40 -0500)]
Importing usr.bin/mkfifo

Replaces commands/mkfifo. No Minix-specific changes needed.

Change-Id: Idb20430d4297c7011fb7e2ef6b0876ebb2776c1c

10 years agousr.bin/calendar: re-sync with upstream. 58/1158/1
Thomas Cort [Mon, 18 Nov 2013 23:00:57 +0000 (18:00 -0500)]
usr.bin/calendar: re-sync with upstream.

Jenkins was failing on usr.bin/calendar/calendar.c:386:6: with
"error: 'fd' may be used uninitialized in this function"
when the level of error checking was turned up.

The error was recently fixed upstream. This commit updates
calendar.c to upstream rev 1.50, updates calendar files too.

Change-Id: Ibe0695bf5d0315972f2a4fb1175219dd12cbfa5a

10 years agoImporting usr.bin/soelim 56/1156/1
Thomas Cort [Mon, 18 Nov 2013 13:49:16 +0000 (08:49 -0500)]
Importing usr.bin/soelim

No Minix-specific changes needed.

Change-Id: Ie313f3a4ade21c9f5edabd55726fa6af5f468e5d

10 years agocommands/backup: changed K&R to ANSI style 53/1153/2
Beletti [Sat, 16 Nov 2013 19:11:06 +0000 (19:11 +0000)]
commands/backup: changed K&R to ANSI style

Change-Id: I6ec2eebc0ad575125f2fa9df5bee232151eaf0eb

10 years agosetup: correction for file/kb counting 54/1154/1
Ben Gras [Mon, 18 Nov 2013 10:25:30 +0000 (10:25 +0000)]
setup: correction for file/kb counting

Change-Id: I74cadcf681fdda105a85535a208251b09981e383

10 years agocommands/fix: change K&R to ANSI style. 52/1152/2
Beletti [Sat, 16 Nov 2013 02:52:10 +0000 (02:52 +0000)]
commands/fix: change K&R to ANSI style.

Change-Id: I0a6d7e39e95a157a80567aeea90f8fa4a188ee7d

10 years agoImporting usr.bin/checknr 50/1150/1
Thomas Cort [Thu, 14 Nov 2013 12:33:51 +0000 (07:33 -0500)]
Importing usr.bin/checknr

No Minix-specific changes needed.

Change-Id: I22fc8fdee158b00bf93c5455b2b2409d7cff4e05

10 years agoImporting usr.bin/ul 49/1149/1
Thomas Cort [Wed, 13 Nov 2013 12:42:20 +0000 (07:42 -0500)]
Importing usr.bin/ul

No Minix-specific changes needed.

Change-Id: I7b8f970b8b2bbdeb5cf88ab5163d1a80c4279c4b

10 years agoReplaced add64, add64u and add64ul with operators. 40/1140/2
Gerard [Mon, 11 Nov 2013 18:17:03 +0000 (19:17 +0100)]
Replaced add64, add64u and add64ul with operators.

Change-Id: Ia537f83e15cb686f1b81b34d73596f4298b0a924

10 years agoImporting usr.bin/deroff 47/1147/1
Thomas Cort [Wed, 13 Nov 2013 00:03:55 +0000 (19:03 -0500)]
Importing usr.bin/deroff

No Minix-specific changes needed.

Change-Id: I87c3629238b7bfdbff3b64682fcdb245a7ce740c

10 years agoarm_sdimage.sh: use insert-fs feature 39/1139/4
Ben Gras [Mon, 11 Nov 2013 15:32:35 +0000 (16:32 +0100)]
arm_sdimage.sh: use insert-fs feature

Change-Id: Ie8bcbca26d5f530e03dbcb7e55771c5cd29d29f3

10 years agoImporting usr.bin/fpr 46/1146/1
Thomas Cort [Tue, 12 Nov 2013 19:11:32 +0000 (14:11 -0500)]
Importing usr.bin/fpr

No Minix-specific changes needed.

Change-Id: I2169284c68309de78d89d9f3c678f340ff066c7e

10 years agoImporting usr.bin/id 45/1145/1
Thomas Cort [Tue, 12 Nov 2013 13:40:59 +0000 (08:40 -0500)]
Importing usr.bin/id

Replaces commands/id. No Minix-specific changes needed.

Change-Id: I307ae0fa3f41ade398ee9be12c1b4d78e8b59e95

10 years agoImporting lib/libform 44/1144/1
Thomas Cort [Tue, 12 Nov 2013 12:56:07 +0000 (07:56 -0500)]
Importing lib/libform

No Minix-specific changes needed.

Change-Id: Ia8ddbdb57ac04dfb42d79c374b9e25b189f9dc3b

10 years agoImporting lib/libmenu 43/1143/1
Thomas Cort [Tue, 12 Nov 2013 12:39:59 +0000 (07:39 -0500)]
Importing lib/libmenu

No Minix-specific changes needed.

Change-Id: Ifab9a44bd401aebf99ab019697937620d88d47de

10 years agoImporting usr.bin/calendar 41/1141/1
Thomas Cort [Mon, 11 Nov 2013 15:52:51 +0000 (10:52 -0500)]
Importing usr.bin/calendar

No Minix-specific changes needed.

Change-Id: I9e68983104efb20ab8e946df3bce189d99ab2deb

11 years agoeepromread: support for reading from /dev/eeprom 38/1138/1
Thomas Cort [Sun, 10 Nov 2013 17:06:27 +0000 (12:06 -0500)]
eepromread: support for reading from /dev/eeprom

eepromread could only read EEPROMs through the /dev/i2c interface.
Once the cat24c256 driver is started and claims/reserves the
device, it can no longer be read through the /dev/i2c interface.

This patch adds support for reading from EEPROMs through the
/dev/eeprom interface. For example, to read the on-board eeprom
on the BBB, one would do `eepromread -f /dev/eepromb1s50 -i`.

Change-Id: If08ce37231e593982eeb109bdd6d5458ad271108

11 years agoImporting usr.sbin/unlink 27/1127/4
Thomas Cort [Thu, 7 Nov 2013 03:08:33 +0000 (22:08 -0500)]
Importing usr.sbin/unlink

No Minix-specific changes needed

Change-Id: Iab2345f6a661e1c1f21f8ae1a414b88762de26fc

11 years agoImporting usr.sbin/link 26/1126/4
Thomas Cort [Thu, 7 Nov 2013 03:06:17 +0000 (22:06 -0500)]
Importing usr.sbin/link

No Minix-specific changes needed

Change-Id: If202c617d5fa72b1c4ad5515637cdc0ee6f2d6ca

11 years agomkfs.mfs -I: insert fs at offset feature 25/1125/7
Ben Gras [Thu, 7 Nov 2013 07:33:39 +0000 (08:33 +0100)]
mkfs.mfs -I: insert fs at offset feature

. use it in x86_hdimage.sh:
  avoid copying big FS images into iso & hd images each time

Change-Id: I0775f43cd1821ea7be2fec5b96d107a68afb96d6

11 years agox86_hdimage.sh -i: crossbuild x86 release CD 07/1107/7
Ben Gras [Tue, 5 Nov 2013 14:43:44 +0000 (15:43 +0100)]
x86_hdimage.sh -i: crossbuild x86 release CD

        . build writeisofs as a native tool too for it
        . also mkfs.mfs: make missing file in proto nonlethal
        . make setup script a little more self-sufficient
        . hdboot: use INSTALL_FILE instead of INSTALL so that the
          results get added to the METALOG

Change-Id: Id233e4c861f81046bf6c4be0510b8a3bf39ff9be

11 years agolibminixfs: fix buf leak 06/1106/6
Ben Gras [Tue, 5 Nov 2013 14:43:27 +0000 (15:43 +0100)]
libminixfs: fix buf leak

. mfs: add asserts to catch similar problems in the future

Change-Id: I939230b8d63f100ac071696425b35496b2169bc4

11 years agoImporting usr.bin/jot 23/1123/1
Thomas Cort [Wed, 6 Nov 2013 22:23:38 +0000 (17:23 -0500)]
Importing usr.bin/jot

No Minix-specific changes needed.

Change-Id: I0f45ea7f45d6a254de9383fc4f9ff5e35a013d6b

11 years agoImporting usr.bin/msgc 22/1122/1
Thomas Cort [Wed, 6 Nov 2013 15:52:33 +0000 (10:52 -0500)]
Importing usr.bin/msgc

Minix-specific changes were needed in msg_sys.def:

 * use minix_mmap()/minix_munmap() since mmap()/munmap() aren't
   defined on Minix.

 * use MAP_PRIVATE flag since MAP_SHARED isn't defined on Minix.

Tested with usr.bin/menuc/testm.

Change-Id: I1c463e7b0623036050adb6a9079c6747e1c1e084

11 years agoImporting usr.bin/menuc 21/1121/1
Thomas Cort [Wed, 6 Nov 2013 15:44:51 +0000 (10:44 -0500)]
Importing usr.bin/menuc

No Minix-specific changes needed.

Change-Id: Ie663e08a515a393efaaeecacea15ef807aa8ecfb

11 years agoarm:mmc driver refactor (use structs) 03/1103/2
Kees Jongenburger [Wed, 16 Oct 2013 07:23:00 +0000 (09:23 +0200)]
arm:mmc driver refactor (use structs)

Defined register offsets and device configurations in structs to
allow more flexibility. This change will allow to support multiple
instances of a driver using a different bus. This is needed for the
BeagleBone Black.

Change-Id: I24e16faeea338c9a847941a846e6d4e49432525e

11 years agoImporting usr.bin/colrm 95/1095/1
Thomas Cort [Wed, 30 Oct 2013 17:02:09 +0000 (13:02 -0400)]
Importing usr.bin/colrm

No Minix-specific changes needed.

Change-Id: I3e1b8fd433ab976e1041575e9e654a5205277a29

11 years agoImporting usr.bin/what 94/1094/1
Thomas Cort [Wed, 30 Oct 2013 16:40:47 +0000 (12:40 -0400)]
Importing usr.bin/what

No Minix-specific changes needed.

Change-Id: I08ee48e2ebcdf5c87b557b44a5046b7382b120e5

11 years agoImporting usr.bin/lam 93/1093/1
Thomas Cort [Wed, 30 Oct 2013 16:09:54 +0000 (12:09 -0400)]
Importing usr.bin/lam

No Minix-specific changes needed.

Change-Id: Ib3b0f922be8e170153660d308b541036507c0251

11 years agoImporting usr.bin/sdiff 92/1092/1
Thomas Cort [Wed, 30 Oct 2013 14:11:02 +0000 (10:11 -0400)]
Importing usr.bin/sdiff

No Minix-specific changes needed.

Change-Id: Idbe7dcab6024d616022951f7942287fddecc3719

11 years agoImporting usr.bin/shlock 91/1091/1
Thomas Cort [Wed, 30 Oct 2013 12:24:41 +0000 (08:24 -0400)]
Importing usr.bin/shlock

No Minix-specific changes needed.

Change-Id: I34fb2911de21f91b0c02387e57c3d6fd4502cd43

11 years agoImporting usr.bin/unifdef 90/1090/1
Thomas Cort [Tue, 29 Oct 2013 20:48:19 +0000 (16:48 -0400)]
Importing usr.bin/unifdef

No Minix-specific changes needed.

Change-Id: Icb828fb19f5f3a411a3f2e9dde35c2da30a04342

11 years agoImporting usr.bin/hexdump 89/1089/1
Thomas Cort [Tue, 29 Oct 2013 18:48:38 +0000 (14:48 -0400)]
Importing usr.bin/hexdump

Replaces commands/hexdump as well as commands/od.
No Minix-specific changes were needed.

test/testsh2.sh was modified to match the spacing
used in the output of the NetBSD od command.

Change-Id: I65ee1d30e8cdd546097462df7c38c2d38f3e891d

11 years agoImporting usr.bin/mkstr 88/1088/1
Thomas Cort [Tue, 29 Oct 2013 15:02:13 +0000 (11:02 -0400)]
Importing usr.bin/mkstr

No Minix-specific changes needed.

Change-Id: I58a8e61dc300d9f54588526613dbc7aa54bf627b

11 years agoImporting usr.bin/xstr 87/1087/1
Thomas Cort [Tue, 29 Oct 2013 14:58:48 +0000 (10:58 -0400)]
Importing usr.bin/xstr

No Minix-specific changes needed.

Change-Id: I1aa24aa9293ce56c732bff94b17faeb0f7c232a0

11 years agoImporting usr.bin/fold 86/1086/1
Thomas Cort [Tue, 29 Oct 2013 13:24:41 +0000 (09:24 -0400)]
Importing usr.bin/fold

Replaces commands/fold. No Minix-specific changes needed.

Change-Id: Iefa9a082f900bb8c3a9f2f9f827ccbbd97c935f5

11 years agoImporting usr.bin/tty 85/1085/1
Thomas Cort [Mon, 28 Oct 2013 16:22:56 +0000 (12:22 -0400)]
Importing usr.bin/tty

Replaces commands/tty. No Minix-specific changes needed.

Change-Id: I7ed8589a8cfb0f4fedab6eb760e321876db73502

11 years agoImporting usr.bin/pathchk 84/1084/1
Thomas Cort [Mon, 28 Oct 2013 13:22:29 +0000 (09:22 -0400)]
Importing usr.bin/pathchk

No Minix-specific changes needed.

Change-Id: Ieff3f98a35f93f3e2fa613802327c37ce4878b86

11 years agoImporting usr.bin/unvis 83/1083/1
Thomas Cort [Mon, 28 Oct 2013 01:15:39 +0000 (21:15 -0400)]
Importing usr.bin/unvis

No Minix-specific changes needed.

Change-Id: I4308c729e1b392ab7d061d15fb901cbba60c6dd0

11 years agoImporting usr.bin/vis 82/1082/1
Thomas Cort [Mon, 28 Oct 2013 01:12:56 +0000 (21:12 -0400)]
Importing usr.bin/vis

No Minix-specific changes needed.

Change-Id: I52e7a0b15553b6f067d82d568f3793c5b6ac2a77

11 years agoImporting usr.bin/paste 81/1081/1
Thomas Cort [Sun, 27 Oct 2013 23:43:02 +0000 (19:43 -0400)]
Importing usr.bin/paste

Replaces commands/paste. No Minix-specific changes needed.

Change-Id: I92a6813502d552ad005ba6e856ce573508fc9f24

11 years agoImporting usr.bin/lock 80/1080/1
Thomas Cort [Sat, 26 Oct 2013 01:05:31 +0000 (21:05 -0400)]
Importing usr.bin/lock

No Minix-specific changes needed.

Change-Id: Ib1582e594ce6928b0725f41b51f8bca678d4b11b

11 years agoImporting usr.bin/fsplit 79/1079/1
Thomas Cort [Sun, 27 Oct 2013 17:33:50 +0000 (13:33 -0400)]
Importing usr.bin/fsplit

No Minix-specific changes needed.

Change-Id: I78021e6485b40a5b9f98b5d0e5ce0dc82b1ae46a

11 years agoImporting usr.bin/csplit 78/1078/1
Thomas Cort [Sun, 27 Oct 2013 17:31:12 +0000 (13:31 -0400)]
Importing usr.bin/csplit

No Minix-specific changes needed.

Change-Id: Id5d5deb380208ba9fccf404eab5128f8d892c255

11 years agoImporting usr.bin/split 77/1077/1
Thomas Cort [Sun, 27 Oct 2013 17:28:00 +0000 (13:28 -0400)]
Importing usr.bin/split

Replaces commands/split. No Minix-specific changes needed.

Change-Id: I3c6551cf52d4c43eea0e8005b9cae83e17271f2d

11 years agoImporting usr.bin/whois 76/1076/1
Thomas Cort [Sun, 27 Oct 2013 16:29:18 +0000 (12:29 -0400)]
Importing usr.bin/whois

No Minix-specific changes needed.

Change-Id: Ia255774b1389a838714dc67be808b31258bab050

11 years agoImporting usr.bin/comm 75/1075/2
Thomas Cort [Sun, 27 Oct 2013 01:19:33 +0000 (21:19 -0400)]
Importing usr.bin/comm

Replaces commands/comm. No Minix-specific changes needed.

Change-Id: Ifa37c86b09f958ca0d729f3a8030d0162819a080

11 years agoPM: fix clock_gettime() nanosecond overflow 71/1071/2
David van Moolenbroek [Sat, 26 Oct 2013 12:40:21 +0000 (14:40 +0200)]
PM: fix clock_gettime() nanosecond overflow

Change-Id: I969b30862cb671200a26b55afe3d523b6cfd2a7c

11 years agoImporting usr.bin/asa 74/1074/2
Thomas Cort [Sat, 26 Oct 2013 00:00:29 +0000 (20:00 -0400)]
Importing usr.bin/asa

No Minix-specific changes needed

Change-Id: Ib83606334a487ab2e35c475dd591e29d0ebef7a5

11 years agoAdd UDP support to getsockname(2) and getpeername(2). 73/1073/1
Jan Wieck [Sat, 26 Oct 2013 11:53:00 +0000 (11:53 +0000)]
Add UDP support to getsockname(2) and getpeername(2).

Change-Id: Ic035b961fb21a6fae75d3af87d714008ecedb874

11 years agoImporting usr.bin/renice 70/1070/1
Thomas Cort [Fri, 25 Oct 2013 22:38:50 +0000 (18:38 -0400)]
Importing usr.bin/renice

No Minix-specific changes needed.

Change-Id: Ib698cef1dfa6b386cf658b6026409e0336a8b1c4

11 years agoImporting usr.bin/write 69/1069/1
Thomas Cort [Fri, 25 Oct 2013 19:25:55 +0000 (15:25 -0400)]
Importing usr.bin/write

Replaces commands/write. No Minix-specific changes needed.

The NetBSD version lacks a few features that were present
in the Minix version: cbreak mode, verbose, and shell escapes,
but the main write(1) functionality is there and working.

Change-Id: I87b9589c54d3595d26247d221bb3d1f613feeb8c

11 years agoImporting usr.bin/mesg 68/1068/1
Thomas Cort [Fri, 25 Oct 2013 16:14:32 +0000 (12:14 -0400)]
Importing usr.bin/mesg

Replaces commands/mesg. No Minix-specific changes needed.

Change-Id: Ief22ad7f050f8083d0b43a4ea90b348c504d99a2

11 years agoImporting usr.bin/pwhash 67/1067/1
Thomas Cort [Thu, 24 Oct 2013 17:41:19 +0000 (13:41 -0400)]
Importing usr.bin/pwhash

No Minix-specific changes needed.

Change-Id: I7de666c3e010fef710805942c79b5674fea1d63c

11 years agoImporting usr.bin/pr 66/1066/1
Thomas Cort [Thu, 24 Oct 2013 16:39:25 +0000 (12:39 -0400)]
Importing usr.bin/pr

Replaces commands/pr. No Minix-specific changes needed.

Change-Id: I3c4c03b38fc8c654e7c54c3a8af0e07a0dfc9f67

11 years agoImporting usr.bin/uuidgen 61/1061/1
Thomas Cort [Thu, 24 Oct 2013 00:15:02 +0000 (20:15 -0400)]
Importing usr.bin/uuidgen

No Minix-specific changes needed.

Change-Id: I8ab26f911ff9af2a41c3866badd66c16ed82b509

11 years agoImporting usr.bin/units 60/1060/1
Thomas Cort [Wed, 23 Oct 2013 23:24:43 +0000 (19:24 -0400)]
Importing usr.bin/units

No Minix-specific changes needed.

Change-Id: I2a3411bf78d5e31875d577dcd6df68f76da98137