]> Zhao Yanbai Git Server - minix.git/log
minix.git
13 years agoProperly overwrite LIBDIR in mk scripts.
Gianluca Guida [Tue, 3 May 2011 21:22:25 +0000 (21:22 +0000)]
Properly overwrite LIBDIR in mk scripts.

13 years agoprepare for netbsd libc/headers
Ben Gras [Tue, 7 Jun 2011 15:23:23 +0000 (15:23 +0000)]
prepare for netbsd libc/headers

  . mtree entries for /usr/netbsd
  . install(1) fix for relative symlinks by Antoine Leca

13 years agochanges for detecting and building for clang/binutils elf
Ben Gras [Tue, 7 Jun 2011 12:48:31 +0000 (14:48 +0200)]
changes for detecting and building for clang/binutils elf

and minor fixes:
 . add ack/clean target to lib, 'unify' clean target
 . add includes as library dependency
 . mk: exclude warning options clang doesn't have in non-gcc
 . set -e in lib/*.sh build files
 . clang compile error circumvention (disable NOASSERTS for release builds)

13 years ago/etc/group: add 'games' group
Thomas Cort [Tue, 7 Jun 2011 12:46:18 +0000 (12:46 +0000)]
/etc/group: add 'games' group

Several pkgsrc packages under the games category won't install
without a games group. This change adds the group with gid 13,
the default games gid on NetBSD.

13 years agorelease.sh, tell_config: variables from /usr/src
Ben Gras [Tue, 7 Jun 2011 12:34:14 +0000 (14:34 +0200)]
release.sh, tell_config: variables from /usr/src

13 years agolibarchive: fix bad timestamp bug caused by bit shift.
Thomas Cort [Mon, 6 Jun 2011 14:31:20 +0000 (14:31 +0000)]
libarchive: fix bad timestamp bug caused by bit shift.

The file timestamps in archives created by libarchive all had
dates in the year 2038. It was caused by a bit shift in
archive_write_set_format_ustar which shifted 1 instead of 1ull.

13 years ago<timers.h> - add feature to time a code block
Ben Gras [Sun, 15 May 2011 03:38:27 +0000 (05:38 +0200)]
<timers.h> - add feature to time a code block

  . also minor compile fixes for it

13 years agorelease.sh fixes, updates, improvements for git, usb, readability
Ben Gras [Sat, 30 Apr 2011 19:25:05 +0000 (21:25 +0200)]
release.sh fixes, updates, improvements for git, usb, readability

13 years agoboot/cdbootblock: use AFLAGS instead of CPPFLAGS
Ben Gras [Wed, 1 Jun 2011 20:53:00 +0000 (22:53 +0200)]
boot/cdbootblock: use AFLAGS instead of CPPFLAGS

  . this unbreaks building the .iso

13 years agoFix VM -Wall warnings and enable -Werror
Erik van der Kouwe [Wed, 1 Jun 2011 09:30:58 +0000 (11:30 +0200)]
Fix VM -Wall warnings and enable -Werror

13 years agoAdd chmod o-w /usr
Thomas Cort [Wed, 25 May 2011 20:39:14 +0000 (20:39 +0000)]
Add chmod o-w /usr

After the default install, /usr was world writable. perl refused to
install itself into /usr with that permission. This fixes the permissions.

13 years agoFix for SPROFILE == 0
Tomas Hruby [Wed, 25 May 2011 07:42:11 +0000 (09:42 +0200)]
Fix for SPROFILE == 0

- contributed by Antoine Leca

13 years agoLWIP - removed __unused where inappropriate
Tomas Hruby [Wed, 25 May 2011 07:41:19 +0000 (09:41 +0200)]
LWIP - removed __unused where inappropriate

13 years agolibcompat: Add net/gen stub headers.
Gianluca Guida [Wed, 27 Apr 2011 13:23:10 +0000 (13:23 +0000)]
libcompat: Add net/gen stub headers.

This helps reducing patching when compiling legacy minix net utils.

13 years agoImport libelf from elftoolchain r1525
Arun Thomas [Sat, 21 May 2011 17:11:59 +0000 (19:11 +0200)]
Import libelf from elftoolchain r1525

13 years agofix clang warnings in servers/
Ben Gras [Thu, 12 May 2011 20:23:02 +0000 (22:23 +0200)]
fix clang warnings in servers/

13 years agolarger i/o buffer for exec()
Ben Gras [Thu, 12 May 2011 17:04:55 +0000 (19:04 +0200)]
larger i/o buffer for exec()

  . makes exec() for large executables (e.g. clang, gcc)
    significantly faster

Thanks to Antoine Leca.

13 years agoAPIC timer needs rearming before halting the cpu
Tomas Hruby [Wed, 11 May 2011 09:54:23 +0000 (11:54 +0200)]
APIC timer needs rearming before halting the cpu

- time stops if there is no activity and the timer expired before
  we halted the cpu

- restart_local_timer() checks if the timer has expired and if so it
  restarts it

- we do the same when switching back to userspace

13 years agoPCI - do not panic when ACPI cannot map bridges
Tomas Hruby [Fri, 6 May 2011 15:41:14 +0000 (17:41 +0200)]
PCI - do not panic when ACPI cannot map bridges

- when ACPI does not find mappings for pci brdiges, do no panic,
  only report a warning and continue to a fallback which uses
  only the root bus IRQ routing table. Fail only if that is not
  present.

13 years agoELF multiboot support
Arun Thomas [Wed, 4 May 2011 16:51:43 +0000 (18:51 +0200)]
ELF multiboot support

13 years agomade boot/ into hierarchy of programs
Ben Gras [Mon, 25 Apr 2011 13:10:57 +0000 (15:10 +0200)]
made boot/ into hierarchy of programs

work of Antoine Leca

13 years agoRemote unused segctl kernel call
Erik van der Kouwe [Tue, 26 Apr 2011 21:28:23 +0000 (23:28 +0200)]
Remote unused segctl kernel call

13 years agoOBJDIR-clean generating of .gitignore
Ben Gras [Mon, 25 Apr 2011 12:18:36 +0000 (14:18 +0200)]
OBJDIR-clean generating of .gitignore

By Antoine Leca

13 years agofix missing return statement in nonamed causing network failure after 300s when compi...
Erik van der Kouwe [Thu, 21 Apr 2011 19:14:25 +0000 (19:14 +0000)]
fix missing return statement in nonamed causing network failure after 300s when compiling with GCC

13 years agoGenerate .gitignore file for tools directory
Thomas Veerman [Thu, 21 Apr 2011 13:20:55 +0000 (13:20 +0000)]
Generate .gitignore file for tools directory

13 years agoEnable generation of .gitignore file for the test dir
Thomas Veerman [Thu, 21 Apr 2011 13:20:13 +0000 (13:20 +0000)]
Enable generation of .gitignore file for the test dir

13 years agoMake test40 behave
Thomas Veerman [Thu, 21 Apr 2011 13:18:00 +0000 (13:18 +0000)]
Make test40 behave

Make test40 behave better. It should create its own subdirectory to
conduct its tests and should not write to /tmp. Also, the master-slave
terminal pair it tries to open might be in use; it should try to obtain
another pair. These changes allow the test to be run multiple times
simultaneously from different paths (to test select() more intensively).

13 years agosprofalyze.pl: fix for forked-nonexeced processes
David van Moolenbroek [Wed, 20 Apr 2011 21:39:13 +0000 (21:39 +0000)]
sprofalyze.pl: fix for forked-nonexeced processes

13 years agokernel: fix logic error in the case vm_lookup fails
Ben Gras [Wed, 20 Apr 2011 10:17:08 +0000 (10:17 +0000)]
kernel: fix logic error in the case vm_lookup fails

13 years agoKernel: try_async/try_one fixes
David van Moolenbroek [Mon, 18 Apr 2011 22:56:34 +0000 (22:56 +0000)]
Kernel: try_async/try_one fixes
- skip processes that are not asynsending to the target
- do not clear whole asynsend table upon IPC permission error
- be more accepting when one table entry is bogus later on

13 years agodhcpd: fix newly introduced ACK warnings
David van Moolenbroek [Sat, 16 Apr 2011 11:13:31 +0000 (11:13 +0000)]
dhcpd: fix newly introduced ACK warnings

13 years agolibmthread: support for thread-local storage (keys/specifics)
David van Moolenbroek [Thu, 14 Apr 2011 11:54:43 +0000 (11:54 +0000)]
libmthread: support for thread-local storage (keys/specifics)

13 years agoSMP - INIT IPI deasserting fix
Tomas Hruby [Wed, 13 Apr 2011 16:57:43 +0000 (16:57 +0000)]
SMP - INIT IPI deasserting fix

When deasserting the INIT IPI the DM field must be zero

13 years agoReturn errors directly instead of using errno
Thomas Veerman [Wed, 13 Apr 2011 14:01:13 +0000 (14:01 +0000)]
Return errors directly instead of using errno

13 years agoClean up and fix multiple bugs in select:
Thomas Veerman [Wed, 13 Apr 2011 13:25:34 +0000 (13:25 +0000)]
Clean up and fix multiple bugs in select:
 - Remove redundant code.
 - Always wait for the initial reply from an asynchronous select request,
   even if the select has been satisfied on another file descriptor or
   was canceled due to a serious error.
 - Restart asynchronous selects if upon reply from the driver turns out
   that there are deferred operations (and do not forget we're still
   interested in the results of the deferred operations).
 - Do not hang a non-blocking select when another blocking select on
   the same filp is still blocking.
 - Split blocking operations in read, write, and exceptions (i.e.,
   blocking on read does not imply the write will block as well).
 - Some loops would iterate over OPEN_MAX file descriptors instead of
   the "highest" file descriptor.
 - Use proper internal error return values.
 - A secondary reply from a synchronous driver is essentially the same
   as from an asynchronous driver (the only difference being how the
   answer is received). Merge.
 - Return proper error code after a driver failure.
 - Auto-detect whether a driver is synchronous or asynchronous.
 - Remove some code duplication.
 - Clean up code (coding style, add missing comments, put all select
   related code together).

13 years agoDo not print an error message when a binary is corrupt
Thomas Veerman [Tue, 12 Apr 2011 13:09:19 +0000 (13:09 +0000)]
Do not print an error message when a binary is corrupt

13 years agoServer/driver protocols: no longer allow third-party copies.
David van Moolenbroek [Mon, 11 Apr 2011 17:35:05 +0000 (17:35 +0000)]
Server/driver protocols: no longer allow third-party copies.

Before safecopies, the IO_ENDPT and DL_ENDPT message fields were needed
to know which actual process to copy data from/to, as that process may
not always be the caller. Now that we have full safecopy support, these
fields have become useless for that purpose: the owner of the grant is
*always* the caller. Allowing the caller to supply another endpoint is
in fact dangerous, because the callee may then end up using a grant
from a third party. One could call this a variant of the confused
deputy problem.

From now on, safecopy calls should always use the caller's endpoint as
grant owner. This fully obsoletes the DL_ENDPT field in the
inet/ethernet protocol. IO_ENDPT has other uses besides identifying the
grant owner though. This patch renames IO_ENDPT to USER_ENDPT, not only
because that is a more fitting name (it should never be used for I/O
after all), but also in order to intentionally break any old system
source code outside the base system. If this patch breaks your code,
fixing it is fairly simple:

- DL_ENDPT should be replaced with m_source;
- IO_ENDPT should be replaced with m_source when used for safecopies;
- IO_ENDPT should be replaced with USER_ENDPT for any other use, e.g.
  when setting REP_ENDPT, matching requests in CANCEL calls, getting
  DEV_SELECT flags, and retrieving of the real user process's endpoint
  in DEV_OPEN.

The changes in this patch are binary backward compatible.

13 years agoMove back resolv.h, nameser.h and netdb.h as they conflict with NetBSD headers and...
Gianluca Guida [Fri, 8 Apr 2011 18:50:58 +0000 (18:50 +0000)]
Move back resolv.h, nameser.h and netdb.h as they conflict with NetBSD headers and libc.

13 years agolibsys: fix micro_delay()
David van Moolenbroek [Fri, 8 Apr 2011 16:57:44 +0000 (16:57 +0000)]
libsys: fix micro_delay()

13 years agoEnable a process to find out what the error code was when delivery of an
Thomas Veerman [Fri, 8 Apr 2011 15:23:12 +0000 (15:23 +0000)]
Enable a process to find out what the error code was when delivery of an
asynchronous message resulted in an error.

The model here is that:
 - Iff a sender wishes to be notified, the sender MUST check for errors
   BEFORE sending another asynchronous message.

The reason is that in order to remember the error code, we can't clean up
the message table and hence we risk running out of table space. This is
less of a problem when the sender enables notifications only for errors.

13 years agoEnable sending a notification when sending of an asynchronous message was
Thomas Veerman [Fri, 8 Apr 2011 15:14:48 +0000 (15:14 +0000)]
Enable sending a notification when sending of an asynchronous message was
completed (successfully or not). AMF_NOTIFY_ERR can be used if the sender
only wishes to be notified in case of an error (e.g., EDEADSRCDST). A new
endpoint ASYNCM will be the sender of the notification.

13 years agoUse a bitmap for pending asynchronous messages instead of a global flag.
Thomas Veerman [Fri, 8 Apr 2011 15:03:33 +0000 (15:03 +0000)]
Use a bitmap for pending asynchronous messages instead of a global flag.
That way it works similar to pending notifications.

13 years agoReduce the number of copies done by the kernel when handling retrieval and
Thomas Veerman [Fri, 8 Apr 2011 14:53:55 +0000 (14:53 +0000)]
Reduce the number of copies done by the kernel when handling retrieval and
delivery of asynchronous messages.

13 years agoFixed smp compilation
Tomas Hruby [Fri, 8 Apr 2011 11:52:30 +0000 (11:52 +0000)]
Fixed smp compilation

- missing u64.h include after 64bit routines for gcc got inlined

13 years agolibexec: return physaddr info from ELF headers
Arun Thomas [Thu, 7 Apr 2011 12:22:36 +0000 (12:22 +0000)]
libexec: return physaddr info from ELF headers

13 years agoLWIP - Fix for dhcpd broadcast to work after boot
Tomas Hruby [Thu, 7 Apr 2011 07:44:27 +0000 (07:44 +0000)]
LWIP - Fix for dhcpd broadcast to work after boot

Dhcp only works if devices are configured with a broadcast source
address at the begining as it currently uses raw ip sockets and the
sockets sets the source address. It is a quick hack and proper hdcpd
fix is preferable

13 years agoLWIP - scripts
Tomas Hruby [Thu, 7 Apr 2011 07:44:23 +0000 (07:44 +0000)]
LWIP - scripts

This changes to the boot scripts allow switching to lwip simply by
setting lwip=yes  in the boot monitor.

13 years agoLWIP - dhcpd --lwip
Tomas Hruby [Thu, 7 Apr 2011 07:44:17 +0000 (07:44 +0000)]
LWIP - dhcpd --lwip

A sort of quick hack for dhcpd to work as a client with lwip server.

- The functionality is not changed unless --lwip switch is supplied.
  dhcpd does not use broadcast udp sockets but some sort of raw
  sockets and changes their behavior during their life by ioctls.

- I thought there is no need to polute lwip just to make dhcp client
  work. Instead I decided to twist the client a little bit.

- It is so far the only big collision I found between inet and lwip.

13 years agoLWIP - the lwip server
Tomas Hruby [Thu, 7 Apr 2011 07:44:11 +0000 (07:44 +0000)]
LWIP - the lwip server

The server implements inet-like interface to vfs and drivers. The core
functionality is contained in the liblwip.

13 years agoLWIP - liblwip
Tomas Hruby [Thu, 7 Apr 2011 07:43:36 +0000 (07:43 +0000)]
LWIP - liblwip

lwip-1.4.0-rc1 imported as liblwip

13 years agoLWIP - udp_io_hdr.h
Tomas Hruby [Thu, 7 Apr 2011 07:43:03 +0000 (07:43 +0000)]
LWIP - udp_io_hdr.h

lwip server needs to include struct udp_io_hdr but must not include
struct udp-hdr as it conflicts with its internal type. So it is split
into to files now.

13 years ago[NBSD libc] Various fixes.
Gianluca Guida [Wed, 6 Apr 2011 15:59:10 +0000 (15:59 +0000)]
[NBSD libc] Various fixes.

13 years agomkfs.mfs: use bitchunk_t (reported by Maurizio Lombardi)
David van Moolenbroek [Tue, 5 Apr 2011 19:42:08 +0000 (19:42 +0000)]
mkfs.mfs: use bitchunk_t (reported by Maurizio Lombardi)

13 years agolibvtreefs: return OK from REQ_INHIBREAD (this unbreaks grep on /proc)
David van Moolenbroek [Thu, 31 Mar 2011 16:23:00 +0000 (16:23 +0000)]
libvtreefs: return OK from REQ_INHIBREAD (this unbreaks grep on /proc)

13 years agotail(1): write partial last line also with -f
David van Moolenbroek [Fri, 25 Mar 2011 10:59:48 +0000 (10:59 +0000)]
tail(1): write partial last line also with -f

13 years agoVFS: bugfixes for handling block-special files:
David van Moolenbroek [Fri, 25 Mar 2011 10:56:43 +0000 (10:56 +0000)]
VFS: bugfixes for handling block-special files:
- on driver restarts, reopen devices on a per-file basis, not per-mount
- do not assume that there is just one vnode per block-special device
- update block-special files in the uncommon mounting success paths, too
- upon mount, sync but also invalidate affected buffers on the root FS
- upon unmount, check whether a vnode is in use before updating it

13 years agoPFS: UDS code cleanup:
David van Moolenbroek [Fri, 25 Mar 2011 10:52:53 +0000 (10:52 +0000)]
PFS: UDS code cleanup:
- coalesce lots of duplicate code
- avoid using errno as much as possible
- fix bugs in some error handling cases

13 years agodrivers/sb16: delete altogether; the latest copy is in drivers/audio/sb16
David van Moolenbroek [Fri, 25 Mar 2011 10:48:16 +0000 (10:48 +0000)]
drivers/sb16: delete altogether; the latest copy is in drivers/audio/sb16

13 years agomisc drivers: remove more non-safecopy support
David van Moolenbroek [Fri, 25 Mar 2011 10:45:57 +0000 (10:45 +0000)]
misc drivers: remove more non-safecopy support

13 years agoTTY/LOG driver cleanup:
David van Moolenbroek [Fri, 25 Mar 2011 10:43:24 +0000 (10:43 +0000)]
TTY/LOG driver cleanup:
- remove non-safecopy support from TTY
- make TTY warning-free with gcc -Wall
- remove obsolete diagnostics support

13 years agoAdd libasyn, asynchio support for netbsd libc.
Gianluca Guida [Wed, 23 Mar 2011 15:28:22 +0000 (15:28 +0000)]
Add libasyn, asynchio support for netbsd libc.

13 years agoNBSD includes: Include sys/reboot.h in unistd.h
Gianluca Guida [Tue, 22 Mar 2011 14:54:38 +0000 (14:54 +0000)]
NBSD includes: Include sys/reboot.h in unistd.h

Minix expect RBT_* ops to be defined in unistd.h.

13 years agoAdd libminlib for NBSD libc compilation.
Gianluca Guida [Tue, 22 Mar 2011 13:47:35 +0000 (13:47 +0000)]
Add libminlib for NBSD libc compilation.

This library includes various random and minix-specific functions
included in the Minix libc. Most of them should be part of libsys,
and in general it would be nice to extinguish this library over
time.

13 years agoAdd libcompat_minix for NBSD libc
Gianluca Guida [Fri, 18 Mar 2011 16:08:26 +0000 (16:08 +0000)]
Add libcompat_minix for NBSD libc

libcompat_minix is a compatibility layer meant to let existing commands to work
with the new libc.

13 years agoImport unmodified NetBSD's libm for compiling with new libc.
Gianluca Guida [Fri, 18 Mar 2011 15:52:16 +0000 (15:52 +0000)]
Import unmodified NetBSD's libm for compiling with new libc.

As the current libc includes a libm implementation, with the new libc
this is needed. Unneeded (for the moment) archs have been removed.

13 years agoMove elf headers in common/include and libexec.h in lib/libexec.
Gianluca Guida [Fri, 18 Mar 2011 15:13:05 +0000 (15:13 +0000)]
Move elf headers in common/include and libexec.h in lib/libexec.

It also fixes elf headers for NBSD compilation.

13 years ago- Refactor mthread structure fields to prevent name clashes
Thomas Veerman [Fri, 18 Mar 2011 10:29:54 +0000 (10:29 +0000)]
- Refactor mthread structure fields to prevent name clashes
- Remove sanity checks for initialized mutexes and condition variables. This
  significantly boosts performance. The checks can be turned back on by
  compiling libmthread with MTHREAD_STRICT. According to POSIX operations on
  uninitialized variables are a MAY fail if, therefore allowing this
  optimization.
- Test59 has to be accommodated to the lack of sanity checks on uninitialized
  variables in the library. It specifically tests for them and will run into
  segfaults when the checks are absent in the library.
- Fix a few bugs related to the scheduler
- Do some general code cleanups

13 years agoAdd cttybaud boot monitor variable to control speed of serial console (combine with...
Erik van der Kouwe [Wed, 16 Mar 2011 12:25:10 +0000 (12:25 +0000)]
Add cttybaud boot monitor variable to control speed of serial console (combine with ctty 0)

13 years agoremove some debugging output from vm/region.c
Ben Gras [Wed, 16 Mar 2011 11:57:35 +0000 (11:57 +0000)]
remove some debugging output from vm/region.c

 - don't print verbose process map when legitimate errors occur

13 years agoAdd support for the 82567LM flavor of e1000
Thomas Veerman [Tue, 15 Mar 2011 10:04:35 +0000 (10:04 +0000)]
Add support for the 82567LM flavor of e1000

13 years agoFix compilation error. Does not need ansi.h header.
Thomas Veerman [Thu, 10 Mar 2011 14:10:16 +0000 (14:10 +0000)]
Fix compilation error. Does not need ansi.h header.

13 years agorelease.sh: explicitly use the pkgin pkg_install pkg_add
Ben Gras [Thu, 10 Mar 2011 12:54:58 +0000 (12:54 +0000)]
release.sh: explicitly use the pkgin pkg_install pkg_add

  . when switching from the base pkg_install to the pkgin pkg_install,
    the version number changed, causing a compatability problem if the
    old base system binary was inadvertently left behind.

  . this change checks for that situation by specifically invoking
    the pkgin instance of pkg_install and telling the user to install
    it if it doesn't exist.

13 years agoCleaning up Makefiles (thx antoine)
Dirk Vogt [Mon, 7 Mar 2011 13:54:17 +0000 (13:54 +0000)]
Cleaning up Makefiles (thx antoine)

13 years agoSmall fix, implemented getvid/did
Dirk Vogt [Mon, 7 Mar 2011 13:31:48 +0000 (13:31 +0000)]
Small fix, implemented getvid/did

13 years agoVarious fixes for NBSD include.
Gianluca Guida [Fri, 4 Mar 2011 23:15:48 +0000 (23:15 +0000)]
Various fixes for NBSD include.

This patch include various fixes to NBSD includes.

- unistd.h: Avoid different linkages on non-_NETBSD_SOURCE
 compilation;
- stdlib.h: remove devname declaration.
- sys/select.h: Add _MINIX specific flags.
- limits.h: Add SYMLOOP_MAX and SYMLINK_MAX
- time.h: Fix CLOCKS_PER_SEC and remove BSD's timer_t, as it
  confuses minix own specific timers.
- utmp.h: Set Minix-specific paths and use Minix utmp format.
- param.h: Do not set BSD4_4, as this mostly means sa_len in
  struct sock_addr.
- arch/i386/include/param.h: include <machine/vmparam.h> to
  add PAGE_SIZE and related macros, defined round_page() and
  trunc_page() for minix compatibility.

- dirent.h: remove DIRBLKSIZ and fix d_ino/d_fileno.
- sys/dir.h: ADD from existing includes and edit include
  conditions.
- sys/dirent.h: include <minix/dirent.h>, fix d_ino/d_fileno.

- sys/fd_set.h: set default FD_SETSIZE at __MINIX_OPENMAX, as
  the default NetBSD value is too big and cause vfs to return
  an error.
- sys/cdefs.h: Always include <minix/ansi.h>

- minix/paths.h: Add Minix-specific paths.
- minix/dirent.h: ADD, keep only "direct" and "flex"definitions.
- minix/types.h: include <minix/ansi.h>

- sys/Makefile: add sys/dirent.h and statfs.h (forgot!)
- minix/Makefile: add minix/dirent.h

   nbsd_include/minix-port.patch updated accordingly.

13 years agoSync NBSD libc errno.h with minix errno.h
Gianluca Guida [Fri, 4 Mar 2011 22:37:43 +0000 (22:37 +0000)]
Sync NBSD libc errno.h with minix errno.h

This patch fixes some wrong error code number in nbsd libc's sys/errno.h
and adds new ones.

As in NetBSD the errno.h is used to automatically generate errlist.c array,
EBADCPU set to 1000 to be a bit too large, so we instruct the awk script
to stop at EDEADEPT (ELAST).

13 years agoFix stat, add fstat and other NBSD libc fixes.
Gianluca Guida [Fri, 4 Mar 2011 22:31:31 +0000 (22:31 +0000)]
Fix stat, add fstat and other NBSD libc fixes.

This patch changes the NBSD libc stat implemenation and adds
fstat (and headers), taken from current libc.
It also adds weaks alias to functions in the resolver that
were removed from public use in NetBSD but that are still
used by Minix, and fixes a NetBSD non-REENTRANT bug in
in gen/initdir.c.

13 years agoNBSD libc: fix forgot weak_alias
Gianluca Guida [Thu, 3 Mar 2011 16:44:18 +0000 (16:44 +0000)]
NBSD libc: fix forgot weak_alias

This patch add a few weak_alias forgotten, so that non-internal
symbols are defined to be used from application.

Modifying only the minix-specific part, this patch needs no update
to minix-port.patch.

13 years agomk scripts: add flag for compiling with nbsd libc.
Gianluca Guida [Thu, 3 Mar 2011 16:41:19 +0000 (16:41 +0000)]
mk scripts: add flag for compiling with nbsd libc.

This patch changes the system mk scripts to enable compilation
of programs using the BSD make system to compile with the new
libc.

In details, it does the following:

- it always defines the __MINIX make variable. This can be used,
 in porting applications, to specialize Makefiles for Minix.

 - If the environment variable NBSD is set to something different
  than 'no' and if the compiler is not ack, set NBSD_LIBC to 'yes'.
  This will set the destination lib directory to '/usr/netbsd/lib'
  and set up CPPFLAGS and LDFLAGS to use new libc's includes and
  library directory.

13 years agoMove even more includes to common/include.
Gianluca Guida [Thu, 3 Mar 2011 16:39:02 +0000 (16:39 +0000)]
Move even more includes to common/include.

This patch moves more includes (most of them, to tell the truth) to
common/include directory. This completes the list of includes needed
to compile current trunk with the new libc (but to do that you need
more patches in queue).

This patch also contains some modification (for compilation with new
headers) to the common includes under __NBSD_LIBC, the define used
in mk script to specialize compilation with new includes.

13 years agorename aligned() macro to _minix_aligned
Ben Gras [Wed, 2 Mar 2011 16:05:59 +0000 (16:05 +0000)]
rename aligned() macro to _minix_aligned

13 years agoauto-tune mfs cache size based on FS usage and remaining system memory
Ben Gras [Mon, 28 Feb 2011 14:19:19 +0000 (14:19 +0000)]
auto-tune mfs cache size based on FS usage and remaining system memory

13 years agoonly declare builtin prototypes in C mode
Ben Gras [Mon, 28 Feb 2011 11:01:31 +0000 (11:01 +0000)]
only declare builtin prototypes in C mode

13 years agominor fix for clang - do_unbind() becomes void
Ben Gras [Sun, 27 Feb 2011 00:10:33 +0000 (00:10 +0000)]
minor fix for clang - do_unbind() becomes void

13 years agoUpdate docs/UPDATING
Arun Thomas [Sat, 26 Feb 2011 23:01:27 +0000 (23:01 +0000)]
Update docs/UPDATING

13 years agoVM and kernel support for ELF
Arun Thomas [Sat, 26 Feb 2011 23:00:55 +0000 (23:00 +0000)]
VM and kernel support for ELF

13 years agobuild fix
Ben Gras [Sat, 26 Feb 2011 11:42:25 +0000 (11:42 +0000)]
build fix

13 years agodon't define CHIP at all any more, just use the namespace-trained name
Ben Gras [Sat, 26 Feb 2011 10:28:48 +0000 (10:28 +0000)]
don't define CHIP at all any more, just use the namespace-trained name

13 years agoKernel: small comment fix (Bug#562, reported by Ryan Riley)
David van Moolenbroek [Fri, 25 Feb 2011 16:46:30 +0000 (16:46 +0000)]
Kernel: small comment fix (Bug#562, reported by Ryan Riley)

13 years agofix rs/service data structures (add devman_id)
Dirk Vogt [Fri, 25 Feb 2011 16:15:54 +0000 (16:15 +0000)]
fix rs/service data structures (add devman_id)

13 years agoadd /usr/include/ddekit dirs
Ben Gras [Fri, 25 Feb 2011 15:42:53 +0000 (15:42 +0000)]
add /usr/include/ddekit dirs

13 years agoadded libddekit
Dirk Vogt [Fri, 25 Feb 2011 12:40:31 +0000 (12:40 +0000)]
added libddekit

13 years agoadded DDEkit headers
Dirk Vogt [Fri, 25 Feb 2011 12:31:20 +0000 (12:31 +0000)]
added DDEkit headers

13 years agolibdevman: IPC wrapper for devman
Dirk Vogt [Fri, 25 Feb 2011 12:28:07 +0000 (12:28 +0000)]
libdevman: IPC wrapper for devman

13 years agoincoporate davman into server/rs
Dirk Vogt [Fri, 25 Feb 2011 12:25:03 +0000 (12:25 +0000)]
incoporate davman into server/rs

13 years agoforgot to add devman to system.conf
Dirk Vogt [Wed, 23 Feb 2011 14:50:31 +0000 (14:50 +0000)]
forgot to add devman to system.conf

13 years agofix for elf2aout
Ben Gras [Wed, 23 Feb 2011 14:24:17 +0000 (14:24 +0000)]
fix for elf2aout

introduced while making the diff with the original prettier :/

13 years agoAdded Device Manager (USB hotplug support)
Dirk Vogt [Wed, 23 Feb 2011 13:48:03 +0000 (13:48 +0000)]
Added Device Manager (USB hotplug support)

13 years agoramdisk: Add procfs to ramdisk
Arun Thomas [Wed, 23 Feb 2011 13:05:28 +0000 (13:05 +0000)]
ramdisk: Add procfs to ramdisk

-Prevents kernel/procfs mismatches
-Also, strip ELF binaries in ramdisk

13 years agoservice: Improve failure message
Arun Thomas [Wed, 23 Feb 2011 12:55:10 +0000 (12:55 +0000)]
service: Improve failure message