Ben Gras
c63a0cfddc
protect ioctl() with __BEGIN/__END_DECLS for C++
2011-07-09 16:12:40 +02:00
Ben Gras
898d9f97f6
libm: remove debug statements
2011-07-09 16:12:14 +02:00
Arun Thomas
b956c8735e
Fix GCC image building
2011-07-09 15:04:42 +02:00
Tomas Hruby
a97a80178e
E1000 - Intel 82571EB Gigabit Ethernet Controller
2011-07-08 20:31:21 +02:00
Tomas Hruby
6dea092dec
E1000 - pci probing
...
- once we know it is not an Intel device, it is not a match
2011-07-08 20:31:21 +02:00
Tomas Hruby
123cf7fe37
E1000 - reading EEPROM
...
- once the DONE bit is set, we already have the data
2011-07-08 20:31:21 +02:00
Tomas Hruby
48a4ff2307
E1000 - fixed reading MAC from EEPROM
...
- makes case which is correct according to Intel docs the default
2011-07-08 20:31:21 +02:00
Antoine Leca
e582fc2a6f
Force SPROFILE=1 while compiling profile command
2011-07-08 20:31:21 +02:00
Tomas Hruby
d75138be00
E1000 - fixed reading/writing device registers
...
- the pointers must be flagged as volatile because otherwise they
might be "optimized" by a compiler. It is a common good
practice to access the registers this way, the keyword is in C
for a reason.
- for instance, in eeprom_eerd() when polling a register the
compiler, under certain conditions, may decide upon the first
read and if it does not break the loop it assumes that the
value is not going to change and thus stays in an infinite
loop.
2011-07-08 20:31:21 +02:00
Arun Thomas
170457b73f
profile.h: Don't hide structs and macros
2011-07-08 18:10:56 +02:00
Arun Thomas
084f96981b
Disable sprofile by default
...
-Reduces kernel memory usage
2011-07-08 17:28:58 +02:00
Ben Gras
9aa4fb0dc6
update nbsd port patch files
2011-07-08 16:51:20 +02:00
Ben Gras
a4ac03c188
libm: add i387/ dir, fix test51 compilation
...
. if $MACHINE_ARCH is unknown, use $MACHINE like in libc
. fixes test51 compilation for gcc/clang (with other compile
and link fixes)
2011-07-08 16:34:40 +02:00
Ben Gras
cf7f7d0ef1
nbsd libc: global constructors run sanity check
2011-07-08 16:34:40 +02:00
Thomas Veerman
b61266eb51
Fix compiler warnings and mutex deadlock
2011-07-08 13:59:07 +00:00
Ben Gras
25bd2bd8fa
world: add servers install target
...
. previously happened for install in tools/
. reported by Evgeniy Ivanov
2011-07-07 23:06:00 +02:00
Thomas Cort
f66e550c80
namespace.h: add entry for shutdown(2)
2011-07-07 18:47:06 +02:00
Ben Gras
545ac12f3d
nbsd libc: no alias for getpw* minix compat symbols
2011-07-06 19:02:17 +02:00
Ben Gras
9fdd167da4
nbsd libc: disable i386 exec*() optimisation
2011-07-06 11:36:24 +02:00
Ben Gras
afc8f3defa
compat.S: succincter and without mktemp
2011-07-05 16:17:29 +02:00
Ben Gras
434119ab89
stopgap measure to define originals of __RENAMEd symbols
2011-07-05 15:07:59 +02:00
Ben Gras
a9d15dd3e4
pm, vfs: don't print something for bogus calls
2011-07-05 13:21:48 +02:00
Vivek Prakash
97c7d358ea
Replace indent with NetBSD version
...
- minix-port.patch is empty as it compiles unchanged
2011-07-05 12:37:57 +02:00
Ben Gras
4e37b49261
descr: add -I to mask forget /usr/include for ack
2011-07-04 16:16:10 +02:00
Ben Gras
f3d5a9dc61
Reduce compiler/libraries/headers cases to only two
...
1. ack, a.out, minix headers (moved to /usr/include.ack),
minix libc
2. gcc/clang, elf, netbsd headers (moved to /usr/include),
netbsd libc (moved to /usr/lib)
So this obsoletes the /usr/netbsd hierarchy.
No special invocation for netbsd libc necessary - it's always used
for gcc/clang.
2011-07-04 04:09:52 +02:00
Ben Gras
a0e986b1f9
new mtree script
...
. skip /proc (allow make etcfiles without unmounting /proc)
. bit more readable
2011-07-04 03:04:52 +02:00
Ben Gras
9c01ceb576
introduce sqrt_approx() in -lsys
...
. use this to avoid -lm dependency in mfs
2011-07-04 02:51:12 +02:00
Ben Gras
cf3b75c687
tools/Makefile: don't install servers (workaround)
...
. if the build target is invoked again for the install target, the
stack sizes aren't set properly. A workaround is to only build
and not install the servers. (Installing them doesn't really make
sense anyway.)
2011-07-03 15:01:18 +02:00
Ben Gras
86a226680b
vfs: don't SUSPEND for unknown calls
...
. returning ENOSYS helps for implementing
new calls with forwards compatability
2011-07-02 17:19:13 +02:00
Arun Thomas
03ff167d4d
Add bin/ hierarchy
2011-07-01 18:43:15 +02:00
Arun Thomas
49a93d54be
Update minix-port.patch
2011-07-01 17:53:12 +02:00
Arun Thomas
db0be09803
release.sh: Add /bin/rm to bootstrap
2011-06-30 14:00:24 +02:00
Arun Thomas
35305f8f7c
release.sh: install(1) should go in /bin
2011-06-30 13:42:43 +02:00
Thomas Cort
66b369c62c
opendir(3): on success, don't clobber errno
...
The opendir(3) function was setting errno to ENOTDIR even
when the directory existed and was opened successfully. This
caused git to falsely detect an error.
This change moves the errno assignment into the failure code
block. It also adds a test to test24 to check for errno
changing when opendir(3) returns success.
2011-06-29 19:58:41 +02:00
Ben Gras
82932c0d6b
new gcc mkheaders location
...
. Try to be flexible about it this time
2011-06-29 19:35:23 +02:00
Ben Gras
83b3a3df74
release.sh: add /usr/pkg/bin to $PATH for clang
2011-06-29 19:24:50 +02:00
Arun Thomas
881431bf7e
Remove obsolete m4 Makefile
2011-06-29 17:45:24 +02:00
Arun Thomas
5971d0532c
GCC build option for elf libs and usr.bin
2011-06-29 10:32:37 +02:00
Arun Thomas
ecb1c96fc5
Build libelf and mkimage in world
2011-06-29 09:33:40 +02:00
Arun Thomas
2e8d1eda1b
Replace m4 with NetBSD version
...
-Create usr.bin hierarchy
-Update minix-port.patch to include m4
2011-06-29 09:33:30 +02:00
Vivek Prakash
ef60bcc0a6
Updated hier(7) man page to conform 3.1.8
2011-06-28 22:53:36 +02:00
Arun Thomas
cf04da3ebe
Restore stripping of elf binaries in ramdisk
2011-06-28 17:49:45 +02:00
Arun Thomas
9902a435cd
Simplify ELF library build logic
...
-Remove obsolete clang-libraries and gnu-libraries targets
-Buildworld now builds elf-libraries as well
2011-06-28 17:27:50 +02:00
Ben Gras
d0d7b43342
minix.libc.mk: simpler netbsd libc invocation
...
. startup files being mentioned explicitly confuses libtool
2011-06-28 17:17:44 +02:00
Arun Thomas
daa14edc0d
kernel: make clang-buildable
2011-06-28 15:34:19 +02:00
Arun Thomas
08c8ee9f52
docs/UPDATING: use date of push for newest entry
2011-06-28 12:03:11 +02:00
Arun Thomas
e8777fd906
docs/UPDATING: revise date in newest entry
2011-06-28 11:59:35 +02:00
Thomas Cort
55c7e24c74
use ${PKGPATH} instead of ${CATEGORIES}/${PKGBASE}
...
Some packages are in multiple categories (one example is
devel/libgetopt). This broke the IF statement because
${CATEGORIES} got expanded to "cat1 cat2". The proper
variable to use is PKGPATH.
2011-06-27 21:18:47 +02:00
Thomas Cort
69bf8e4f71
add pkgsrc hooks for building pkgs w/nbsd_libc
...
Add two makefiles to manage compiling packages with NetBSD libc.
* minix.libc.mk contains the proper CFLAGS/LDFLAGS
* pkgsrchooks.mk contains the logic for setting the flags.
* update bmake
Several pkg-config files were added to help pkgsrc learn about
the c, minlib, and compat_minix libraries.
2011-06-27 15:10:34 +02:00
Ben Gras
ec84a2cfa5
.gitignore: add obj-elfbase-nbsd
2011-06-25 18:05:01 +02:00