]> Zhao Yanbai Git Server - minix.git/log
minix.git
14 years agoeasprintf() and evasprintf()
Arun Thomas [Sat, 21 Aug 2010 13:07:25 +0000 (13:07 +0000)]
easprintf() and evasprintf()

14 years agoMinor malloc-debug fixes
Erik van der Kouwe [Fri, 20 Aug 2010 19:50:36 +0000 (19:50 +0000)]
Minor malloc-debug fixes

14 years agoAdd MALLOC_DEBUG env var to debug applications using malloc
Erik van der Kouwe [Fri, 20 Aug 2010 19:16:31 +0000 (19:16 +0000)]
Add MALLOC_DEBUG env var to debug applications using malloc

14 years agomove rrrrrrread_tsc from libsys to libc so anyone can use it
Erik van der Kouwe [Fri, 20 Aug 2010 18:43:56 +0000 (18:43 +0000)]
move rrrrrrread_tsc from libsys to libc        so anyone can        use it

14 years agoboot ramdisk slightly bigger for gcc-compiled binaries.
Ben Gras [Fri, 20 Aug 2010 12:59:55 +0000 (12:59 +0000)]
boot ramdisk slightly bigger for gcc-compiled binaries.

14 years agoProvide boot image process main functions with a full parameter list, so that bad...
Erik van der Kouwe [Fri, 20 Aug 2010 11:07:16 +0000 (11:07 +0000)]
Provide boot image process main functions with a full parameter list, so that bad things don't heppen when using getenv

14 years agoupdate MANPATH for gcc, X
Ben Gras [Thu, 19 Aug 2010 16:35:01 +0000 (16:35 +0000)]
update MANPATH for gcc, X

14 years agomk: use ar instead of gar for gcc/clang ar.
Ben Gras [Wed, 18 Aug 2010 16:08:10 +0000 (16:08 +0000)]
mk: use ar instead of gar for gcc/clang ar.

14 years agorc: add /sbin to $PATH for fsck.mfs
Ben Gras [Wed, 18 Aug 2010 16:07:54 +0000 (16:07 +0000)]
rc: add /sbin to $PATH for fsck.mfs

14 years agoMacros for symbols used in both ASM and C
Arun Thomas [Tue, 17 Aug 2010 16:44:07 +0000 (16:44 +0000)]
Macros for symbols used in both ASM and C

-The macros take care of prepending the leading underscore when
 necessary.

14 years ago- Make sure there's space left in the vmnt table for another mount point.
Thomas Veerman [Tue, 17 Aug 2010 10:02:50 +0000 (10:02 +0000)]
- Make sure there's space left in the vmnt table for another mount point.
- Increase mount point limit.

14 years agoAdd ftello function
Erik van der Kouwe [Mon, 16 Aug 2010 17:07:40 +0000 (17:07 +0000)]
Add ftello function

14 years agoAdd fseeko function
Erik van der Kouwe [Mon, 16 Aug 2010 17:06:08 +0000 (17:06 +0000)]
Add fseeko function

14 years agoAR=ar still needed for pkgsrc.
Ben Gras [Sat, 14 Aug 2010 20:28:32 +0000 (20:28 +0000)]
AR=ar still needed for pkgsrc.

14 years agopkgsrc: no more g* prefix for binutils.
Ben Gras [Fri, 13 Aug 2010 13:33:51 +0000 (13:33 +0000)]
pkgsrc: no more g* prefix for binutils.

14 years agodiskctl(8) into commands makefile
David van Moolenbroek [Thu, 12 Aug 2010 14:21:55 +0000 (14:21 +0000)]
diskctl(8) into commands makefile

14 years agodiskctl(8) tool
David van Moolenbroek [Thu, 12 Aug 2010 14:11:28 +0000 (14:11 +0000)]
diskctl(8) tool

14 years agoat_wini/ahci: write cache ioctls
David van Moolenbroek [Thu, 12 Aug 2010 14:09:34 +0000 (14:09 +0000)]
at_wini/ahci: write cache ioctls

14 years agoAHCI driver: miscellaneous changes
David van Moolenbroek [Thu, 12 Aug 2010 14:08:23 +0000 (14:08 +0000)]
AHCI driver: miscellaneous changes
- check the DF status flag after each command
- increase I/O timeout from 15 to 30 seconds
- share some code between ATA and ATAPI after all
- produce more accurate errors on DIOCEJECT
- rename AHCI_ID_SIZE to the more appropriate ATA_ID_SIZE
- rearrange ahci.h in a now more sensible way

14 years agoBoot monitor shouldn't report memory after 4GB; the addresses are wrong and VM can...
Erik van der Kouwe [Thu, 12 Aug 2010 13:44:47 +0000 (13:44 +0000)]
Boot monitor shouldn't report memory after 4GB; the addresses are wrong and VM can't deal with it anyways

14 years agoramdisk: actually add ahci to the image, too
David van Moolenbroek [Wed, 11 Aug 2010 11:30:08 +0000 (11:30 +0000)]
ramdisk: actually add ahci to the image, too

14 years agoramdisk: add preliminary support for ahci
David van Moolenbroek [Wed, 11 Aug 2010 11:16:44 +0000 (11:16 +0000)]
ramdisk: add preliminary support for ahci

14 years agosmall fix in hgfs.8 manpage
David van Moolenbroek [Wed, 11 Aug 2010 10:01:34 +0000 (10:01 +0000)]
small fix in hgfs.8 manpage

14 years agofix ptrace.2 man page
David van Moolenbroek [Wed, 11 Aug 2010 08:57:48 +0000 (08:57 +0000)]
fix ptrace.2 man page

14 years agoVTreeFS library
David van Moolenbroek [Tue, 10 Aug 2010 20:05:51 +0000 (20:05 +0000)]
VTreeFS library

14 years agoMake it possible again to compile the tests without installing GCC first
Erik van der Kouwe [Mon, 9 Aug 2010 05:51:01 +0000 (05:51 +0000)]
Make it possible again to compile the tests without installing GCC first

14 years agohgfs comment fix: inode status, not statistics
David van Moolenbroek [Sat, 7 Aug 2010 11:50:15 +0000 (11:50 +0000)]
hgfs comment fix: inode status, not statistics

14 years agoFixed warning noreturn function returns in arch_system.c
Tomas Hruby [Fri, 6 Aug 2010 12:48:26 +0000 (12:48 +0000)]
Fixed warning noreturn function returns in arch_system.c

14 years agoboth ack and gcc can compile klib16.S
Tomas Hruby [Fri, 6 Aug 2010 12:46:44 +0000 (12:46 +0000)]
both ack and gcc can compile klib16.S

14 years agogas2ack filters out .code16
Tomas Hruby [Fri, 6 Aug 2010 12:46:01 +0000 (12:46 +0000)]
gas2ack filters out .code16

- .code16 tells gnu as to generate 16bit assembly ack requires -mi86 switch

14 years agoFix tests when run as root; use bin account but current directory
Erik van der Kouwe [Fri, 6 Aug 2010 12:33:32 +0000 (12:33 +0000)]
Fix tests when run as root; use bin account but current directory

14 years agoMissing prototype in pre_init.c
Tomas Hruby [Fri, 6 Aug 2010 12:26:26 +0000 (12:26 +0000)]
Missing prototype in pre_init.c

- gcc does not like it

14 years agoReverted __packed for ACK
Tomas Hruby [Fri, 6 Aug 2010 10:28:40 +0000 (10:28 +0000)]
Reverted __packed for ACK

- ack does not produce packed structures

14 years ago__packed defined for ACK
Tomas Hruby [Fri, 6 Aug 2010 09:53:53 +0000 (09:53 +0000)]
__packed defined for ACK

14 years agoFix ar error in testsh1.sh (ar was previously renamed to aal)
Erik van der Kouwe [Fri, 6 Aug 2010 09:28:26 +0000 (09:28 +0000)]
Fix ar error in testsh1.sh (ar was previously renamed to aal)

14 years agoFix cdiff error in testsh1.sh
Erik van der Kouwe [Fri, 6 Aug 2010 09:27:49 +0000 (09:27 +0000)]
Fix cdiff error in testsh1.sh

14 years agoAHCI driver
David van Moolenbroek [Thu, 5 Aug 2010 16:37:58 +0000 (16:37 +0000)]
AHCI driver

14 years agofsck and mkfs have been moved to /sbin
Thomas Veerman [Thu, 5 Aug 2010 15:11:10 +0000 (15:11 +0000)]
fsck and mkfs have been moved to /sbin

14 years agopkg_install: DESTDIR support.
Ben Gras [Thu, 5 Aug 2010 14:51:46 +0000 (14:51 +0000)]
pkg_install: DESTDIR support.

14 years agomerge datasizes and unstack
Ben Gras [Thu, 5 Aug 2010 14:09:06 +0000 (14:09 +0000)]
merge datasizes and unstack

14 years agorelease.sh - let some packages come pre-installed (right now just pkgin)
Ben Gras [Thu, 5 Aug 2010 13:56:51 +0000 (13:56 +0000)]
release.sh - let some packages come pre-installed (right now just pkgin)

14 years agoRemove spurious space
Erik van der Kouwe [Thu, 5 Aug 2010 13:35:41 +0000 (13:35 +0000)]
Remove spurious space

14 years agoRename mkfs to mkfs.mfs and fsck to fsck.mfs. Add /sbin to root's PATH.
Thomas Veerman [Thu, 5 Aug 2010 12:35:00 +0000 (12:35 +0000)]
Rename mkfs to mkfs.mfs and fsck to fsck.mfs. Add /sbin to root's PATH.

14 years agoIncrease NR_INODES in the FS servers to match NR_VNODES in VFS
Erik van der Kouwe [Thu, 5 Aug 2010 11:37:37 +0000 (11:37 +0000)]
Increase NR_INODES in the FS servers to match NR_VNODES in VFS

14 years agoReturn ENOSPC when out of inodes
Erik van der Kouwe [Thu, 5 Aug 2010 11:37:06 +0000 (11:37 +0000)]
Return ENOSPC when out of inodes

14 years agoIncrease max number of open files to 255 (more should be possible but does not seem...
Erik van der Kouwe [Wed, 4 Aug 2010 13:35:19 +0000 (13:35 +0000)]
Increase max number of open files to 255 (more should be possible but does not seem necessary for now)

14 years agoAlso run test56, please
Thomas Veerman [Wed, 4 Aug 2010 10:03:50 +0000 (10:03 +0000)]
Also run test56, please

14 years agotest57: test that state isn't corrupted after a signal handler being executed.
Ben Gras [Wed, 4 Aug 2010 09:00:58 +0000 (09:00 +0000)]
test57: test that state isn't corrupted after a signal handler being executed.

14 years agoThis patch copies the ext2 server onto the initial ramdisk, the final
Erik van der Kouwe [Wed, 4 Aug 2010 05:18:03 +0000 (05:18 +0000)]
This patch copies the ext2 server onto the initial ramdisk, the final
patch to allow MINIX to boot from ext2.

To create a setup with MINIX on ext2, follow these steps:

- Assumptions:
  - there exists a primary partition c0dApB with a MINIX installation
    with GRUB support (/boot/image_latest exists on /dev/c0dApB)
  - there exists a free primary partition c0dCpD

- Create an ext2 filesystem on c0dApB (from Linux, until Tthom
  has ported mke2fs)

- Follow these steps (from a MINIX CD with ext2 support, another MINIX
  installation (not c0dApB) or Linux >= 2.6.35):

  mkdir /mnt/mfs /mnt/ext2
  mount /dev/c0dApBs0 /mnt/mfs
  mount /dev/c0dApBs1 /mnt/mfs/home
  mount /dev/c0dApBs2 /mnt/mfs/usr
  mount /dev/c0dCpD /mnt/ext2
  synctree  -f /mnt/mfs /mnt/ext2
  echo root=/dev/c0dCpD > /mnt/ext2/etc/fstab

  (note: no subpartitions used because that would confuse an unmodified
  bootloader)

- Add the new MINIX installation to GRUB according to steps 7&8 in
  http://wiki.minix3.org/en/SummerOfCode2010/MultiBoot/HowTo

14 years agoSilence newroot
Erik van der Kouwe [Tue, 3 Aug 2010 13:58:36 +0000 (13:58 +0000)]
Silence newroot

14 years agoDon't write to /etc/mtab in newroot, may be an issue on read-only filesystems
Erik van der Kouwe [Tue, 3 Aug 2010 13:57:58 +0000 (13:57 +0000)]
Don't write to /etc/mtab in newroot, may be an issue on read-only filesystems

14 years agomount: don't always autodetect
David van Moolenbroek [Tue, 3 Aug 2010 13:46:00 +0000 (13:46 +0000)]
mount: don't always autodetect

14 years agolib: when building clang/gcc libraries: add /usr/pkg/bin to $PATH
Ben Gras [Tue, 3 Aug 2010 11:21:25 +0000 (11:21 +0000)]
lib: when building clang/gcc libraries: add /usr/pkg/bin to $PATH

14 years agotest Makefile: use any gcc in path
Ben Gras [Tue, 3 Aug 2010 11:20:31 +0000 (11:20 +0000)]
test Makefile: use any gcc in path

14 years agomtree: drop /usr/local, add some pkgsrc dirs; /usr/etc/rc: pkgsrc rc.d
Ben Gras [Tue, 3 Aug 2010 11:18:18 +0000 (11:18 +0000)]
mtree: drop /usr/local, add some pkgsrc dirs; /usr/etc/rc: pkgsrc rc.d

14 years agoSome PCI config space registers have to be accessed in with there actual
Dirk Vogt [Tue, 3 Aug 2010 10:03:40 +0000 (10:03 +0000)]
Some PCI config space registers have to be accessed in with there actual
width. Without this patch DDELinux is not able to read the PCI BARs
correctly.

14 years agoAuto-detect ext2 partitions in mount
Erik van der Kouwe [Tue, 3 Aug 2010 06:28:58 +0000 (06:28 +0000)]
Auto-detect ext2 partitions in mount

14 years agorename nm and strip to acknm and ackstrip
Ben Gras [Mon, 2 Aug 2010 16:09:19 +0000 (16:09 +0000)]
rename nm and strip to acknm and ackstrip

this is to force invocations of these utils for ack to be
explicitly named such, so in the future binutils can be installed
in /usr/pkg without the g- prefix.

14 years agoOops
Erik van der Kouwe [Mon, 2 Aug 2010 14:49:35 +0000 (14:49 +0000)]
Oops

14 years agoDeal all shutdown cases with multiboot as either reset or poweroff depending on their...
Erik van der Kouwe [Mon, 2 Aug 2010 14:41:45 +0000 (14:41 +0000)]
Deal all shutdown cases with multiboot as either reset or poweroff depending on their type (contributed by Feiran 'Fam' Zheng)

14 years agoDisplay fallback message in case poweroff fails (contributed by Feiran 'Fam' Zheng)
Erik van der Kouwe [Mon, 2 Aug 2010 14:40:26 +0000 (14:40 +0000)]
Display fallback message in case poweroff fails (contributed by Feiran 'Fam' Zheng)

14 years agoReplace newroot with a call to mount, will make type autodetect easier
Erik van der Kouwe [Mon, 2 Aug 2010 14:15:48 +0000 (14:15 +0000)]
Replace newroot with a call to mount, will make type autodetect easier

14 years agominor pkgsrc tweaks; allow pkgsrc to install rc scripts in /usr/pkg/etc/rc.d
Ben Gras [Mon, 2 Aug 2010 12:28:24 +0000 (12:28 +0000)]
minor pkgsrc tweaks; allow pkgsrc to install rc scripts in /usr/pkg/etc/rc.d

14 years agoAdd support for the ext2 file system. Contributed by Evgeniy Ivanov.
Thomas Veerman [Mon, 2 Aug 2010 11:44:45 +0000 (11:44 +0000)]
Add support for the ext2 file system. Contributed by Evgeniy Ivanov.

14 years ago- Add support for ST_NOTRUNC to struct statvfs.
Thomas Veerman [Mon, 2 Aug 2010 11:16:32 +0000 (11:16 +0000)]
- Add support for ST_NOTRUNC to struct statvfs.
- Let tests that test for long file names check for that flag, so that they can
  verify the results properly.

14 years agolibdriver: allow driver to break out of message loop
David van Moolenbroek [Sun, 1 Aug 2010 22:07:46 +0000 (22:07 +0000)]
libdriver: allow driver to break out of message loop

14 years agoput env_arg[cv] declaration in minix/sysutil.h
David van Moolenbroek [Thu, 29 Jul 2010 21:16:23 +0000 (21:16 +0000)]
put env_arg[cv] declaration in minix/sysutil.h

14 years agodriver.h - missing guardian
Tomas Hruby [Thu, 29 Jul 2010 10:53:50 +0000 (10:53 +0000)]
driver.h - missing guardian

14 years agoadd the sshd group
Ben Gras [Thu, 29 Jul 2010 09:54:34 +0000 (09:54 +0000)]
add the sshd group

14 years agorename nameserv.h
Ben Gras [Thu, 29 Jul 2010 08:41:22 +0000 (08:41 +0000)]
rename nameserv.h

14 years agorename nemserv
Ben Gras [Thu, 29 Jul 2010 08:39:49 +0000 (08:39 +0000)]
rename nemserv

14 years agoBIOS function 0xE820 for memory map detection
Tomas Hruby [Thu, 29 Jul 2010 07:21:11 +0000 (07:21 +0000)]
BIOS function 0xE820 for memory map detection

- this function returns a ritcher description of available memory

- is ACPI compliant, ACPI data structures are excluded from free
  memory list

- available memory exported to Minix in a backwards compatible manner

- fallback to the old method if this function not available (old
  hardware)

14 years agoextra includes to make porting cleaner
Ben Gras [Wed, 28 Jul 2010 16:32:45 +0000 (16:32 +0000)]
extra includes to make porting cleaner

14 years agonew EPFNOSUPPORT errno
Ben Gras [Wed, 28 Jul 2010 16:32:21 +0000 (16:32 +0000)]
new EPFNOSUPPORT errno

14 years agokernel: deadlock test with endpoints instead of slot numbers, slightly cleaner
Ben Gras [Wed, 28 Jul 2010 14:14:06 +0000 (14:14 +0000)]
kernel: deadlock test with endpoints instead of slot numbers, slightly cleaner

14 years agopkg_install: move db dir
Ben Gras [Wed, 28 Jul 2010 09:59:00 +0000 (09:59 +0000)]
pkg_install: move db dir

14 years agopkgsrc: minor changes to paths, options.
Ben Gras [Wed, 28 Jul 2010 09:41:15 +0000 (09:41 +0000)]
pkgsrc: minor changes to paths, options.

14 years agoShorter reporting of contiguous identical blocks for the IS VM dump (F8) to avoid...
Erik van der Kouwe [Tue, 27 Jul 2010 18:46:08 +0000 (18:46 +0000)]
Shorter reporting of contiguous identical blocks for the IS VM dump (F8) to avoid MFS frrom filling many screens

14 years agoAdd poll.h
Arun Thomas [Tue, 27 Jul 2010 09:21:56 +0000 (09:21 +0000)]
Add poll.h

Open Group requires this. Reported by Thomas Cort.

14 years agoImport poll() from NetBSD's libnbcompat
Arun Thomas [Mon, 26 Jul 2010 20:46:04 +0000 (20:46 +0000)]
Import poll() from NetBSD's libnbcompat

14 years agoinet_pton(), patched by Thomas Cort.
Ben Gras [Mon, 26 Jul 2010 14:47:10 +0000 (14:47 +0000)]
inet_pton(), patched by Thomas Cort.

14 years agostdio.h - define P_tmpdir
Ben Gras [Mon, 26 Jul 2010 14:46:35 +0000 (14:46 +0000)]
stdio.h - define P_tmpdir

14 years agopkg_install - bpm - changes to work with minix ftp client by Gautam Tirumala.
Ben Gras [Mon, 26 Jul 2010 14:02:05 +0000 (14:02 +0000)]
pkg_install - bpm - changes to work with minix ftp client by Gautam Tirumala.

14 years agogcc headers: look at pkgsrc-installed gcc too
Ben Gras [Mon, 26 Jul 2010 12:48:48 +0000 (12:48 +0000)]
gcc headers: look at pkgsrc-installed gcc too

14 years agolibarchive: sanitize out-of-range uids/gids
Ben Gras [Mon, 26 Jul 2010 12:44:48 +0000 (12:44 +0000)]
libarchive: sanitize out-of-range uids/gids

14 years ago<sys/resource.h> - define RLIM_NLIMITS
Ben Gras [Mon, 26 Jul 2010 10:04:45 +0000 (10:04 +0000)]
<sys/resource.h> - define RLIM_NLIMITS

14 years agolib - sanity check for group_from_gid etc.
Ben Gras [Sat, 24 Jul 2010 10:40:55 +0000 (10:40 +0000)]
lib - sanity check for group_from_gid etc.

14 years agoMultiboot support (contributed by Feiran "Fam" Zheng);
Erik van der Kouwe [Fri, 23 Jul 2010 14:24:34 +0000 (14:24 +0000)]
Multiboot support (contributed by Feiran "Fam" Zheng);
keep in mind that GRUB needs to be patched to read MFS for now;
use /boot/image_latest to boot the last compiled image in GRUB

14 years agoAdd padtext utility (needed for Multiboot)
Erik van der Kouwe [Fri, 23 Jul 2010 14:22:49 +0000 (14:22 +0000)]
Add padtext utility (needed for Multiboot)

14 years agoAllow vm to split blocks in memory map (needed for multiboot, contributed by Feiran...
Erik van der Kouwe [Fri, 23 Jul 2010 14:22:13 +0000 (14:22 +0000)]
Allow vm to split blocks in memory map (needed for multiboot, contributed by Feiran "Fam" Zheng

14 years agopkg_install: forget about OS_RELEASE, just a properly formatted OS_VERSION.
Ben Gras [Fri, 23 Jul 2010 14:10:23 +0000 (14:10 +0000)]
pkg_install: forget about OS_RELEASE, just a properly formatted OS_VERSION.

14 years agoinet_ntop, contributed by Thomas Cort.
Ben Gras [Fri, 23 Jul 2010 09:54:47 +0000 (09:54 +0000)]
inet_ntop, contributed by Thomas Cort.

14 years agoIO port is always 16 bit, even for inl
Erik van der Kouwe [Fri, 23 Jul 2010 07:25:21 +0000 (07:25 +0000)]
IO port is always 16 bit, even for inl

14 years ago{in,out}s[bwl] deleted in previous commit, also delete their headers
Erik van der Kouwe [Fri, 23 Jul 2010 07:24:34 +0000 (07:24 +0000)]
{in,out}s[bwl] deleted in previous commit, also delete their headers

14 years agoMove sensitive instructions from libc into kernel
Erik van der Kouwe [Fri, 23 Jul 2010 07:12:47 +0000 (07:12 +0000)]
Move sensitive instructions from libc into kernel

14 years agoThrow out ins[bwl] and out[bwl] from libc as they are not used
Erik van der Kouwe [Fri, 23 Jul 2010 07:10:47 +0000 (07:10 +0000)]
Throw out ins[bwl] and out[bwl] from libc as they are not used

14 years agovsprintf: fix special yet useful case for vsprintf where n < 1.
Ben Gras [Thu, 22 Jul 2010 22:35:44 +0000 (22:35 +0000)]
vsprintf: fix special yet useful case for vsprintf where n < 1.

reported by jaldhar.

14 years agolibfp: use ${CC} instead of cc, reported by Antoine Leca.
Ben Gras [Thu, 22 Jul 2010 22:24:08 +0000 (22:24 +0000)]
libfp: use ${CC} instead of cc, reported by Antoine Leca.

14 years agoMake kernel ipc log scripts work for separate ${.OBJDIR}.
Ben Gras [Thu, 22 Jul 2010 22:04:37 +0000 (22:04 +0000)]
Make kernel ipc log scripts work for separate ${.OBJDIR}.

contributed by Antoine Leca.

14 years agovfs - split fp_fd field into fd + callnr fields
Ben Gras [Thu, 22 Jul 2010 14:55:28 +0000 (14:55 +0000)]
vfs - split fp_fd field into fd + callnr fields