]> Zhao Yanbai Git Server - minix.git/commit
Various fixes for NBSD include.
authorGianluca Guida <gianluca@minix3.org>
Fri, 4 Mar 2011 23:15:48 +0000 (23:15 +0000)
committerGianluca Guida <gianluca@minix3.org>
Fri, 4 Mar 2011 23:15:48 +0000 (23:15 +0000)
commitf19a4bf1c4268b5fdd695fe1acbfa7e10d401ed6
treeef28980eb43d3cdd3333cb1b3c691ed415ef0ff6
parent693842c8558cfa4a4e6ff057347992bf3c435e7e
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.
19 files changed:
nbsd_include/arch/i386/include/param.h
nbsd_include/dirent.h
nbsd_include/limits.h
nbsd_include/minix-port.patch
nbsd_include/minix/Makefile
nbsd_include/minix/dirent.h [new file with mode: 0644]
nbsd_include/minix/paths.h
nbsd_include/minix/types.h
nbsd_include/stdlib.h
nbsd_include/sys/Makefile
nbsd_include/sys/cdefs.h
nbsd_include/sys/dir.h [new file with mode: 0644]
nbsd_include/sys/dirent.h
nbsd_include/sys/fd_set.h
nbsd_include/sys/param.h
nbsd_include/sys/select.h
nbsd_include/time.h
nbsd_include/unistd.h
nbsd_include/utmp.h