193735 Commits

Author SHA1 Message Date
tron
1f5de17d4a Unlock the environment lock if __alocenv() fails. 2010-09-25 18:37:24 +00:00
tron
5cdca2e600 Remember memory used by allocated environment variables instead of
using a bitmap. This deals with the case where a variable is first
set via setenv(3) or putenv(3), then overwritten by changing
"environ" directory and afterwards overwritten with setenv(3) again.

This stops "zsh" from crashing under NetBSD-current.

Code reviewed by Christos Zoulas.
2010-09-25 18:11:40 +00:00
tsutsui
15ed98d439 Regen from usbdevs rev 1.562:
> Add support for I/O DATA ETX-US2.
2010-09-25 15:30:30 +00:00
tsutsui
50278ead3f Add support for I/O DATA ETX-US2.
Patch from PR kern/43040.
2010-09-25 15:29:40 +00:00
bad
712189440d Treat empty or missing fs_passno field like it has a value of 0 as fstab(5)
specifies.
Related to PR misc/43905 but does not fix the underlying issues.
2010-09-25 15:10:14 +00:00
tsutsui
38b1a5293d Remove obsolete message:
'If you are using a SUN type 4 keyboard, please enter "sun-type4".'
2010-09-25 14:30:34 +00:00
tsutsui
396e67e677 Use vt100 rather than sun for $TERM.
The latter one is not supported by the hardcoded libterminfo fallback
without external database.
2010-09-25 14:29:13 +00:00
tron
ac440cccfd Change last commit to Use "ptrdiff_t" instead of "intptr_t" because the
former is more appropriate in this case.
2010-09-25 14:00:30 +00:00
tron
abf0c843b2 Add explicit cast to fix lint error on 32bit platforms. 2010-09-25 13:45:11 +00:00
wiz
d94cfe4ad0 Mark /usr/share/doc/html/ntp/build.html as non-obsolete, since a build
installs it.
2010-09-25 10:35:59 +00:00
wiz
e65d0e5f60 sort -u. 2010-09-25 10:34:58 +00:00
wiz
9bdef74c0a Remove obsoleted directory /usr/share/doc/html/ntp/build/scripts 2010-09-25 10:34:13 +00:00
wiz
14087bca56 Remove trailing whitespace, merge error sections for same error, nits. 2010-09-25 09:44:08 +00:00
matt
19e6c76b2d Rename rb.h to rbtree.h, as it is more appropriate (c.f. ptree.h). Also
helps find code that hasn't been updated to use the new rbtree API.
2010-09-25 01:42:38 +00:00
uwe
46b35128cb Make groff happy. 2010-09-25 01:19:39 +00:00
rmind
57fb328f93 Add nbuf_advfetch() and simplify some code slightly. 2010-09-25 00:25:31 +00:00
rmind
879d5dfb5e Fixes/improvements to RB-tree implementation:
1. Fix inverted node order, so that negative value from comparison operator
   would represent lower (left) node, and positive - higher (right) node.
2. Add an argument (i.e. "context"), passed to comparison operators.
3. Change rb_tree_insert_node() to return a node - either inserted one or
   already existing one.
4. Amend the interface to manipulate the actual object, instead of the
   rb_node (in a similar way as Patricia-tree interface does).
5. Update all RB-tree users accordingly.

XXX: Perhaps rename rb.h to rbtree.h, since cleaning-up..

1-3 address the PR/43488 by Jeremy Huddleston.

Passes RB-tree regression tests.
Reviewed by: matt@, christos@
2010-09-24 22:51:50 +00:00
christos
0a37c83ff1 add fmemopen 2010-09-24 21:53:00 +00:00
christos
97fddff649 add man page as promised. 2010-09-24 21:50:56 +00:00
jakllsch
0485cc0e0b fix copy/paste/modify error in a diagnostic panic message 2010-09-24 20:55:19 +00:00
skrll
7720aabd25 libc minor was bumped. 2010-09-24 18:01:39 +00:00
matt
3edad85883 If not using O32 on mips, we need to read ELF64 symbols too. 2010-09-24 15:57:15 +00:00
matt
af56990d0c Make the GOT1_MASK 64-bit clean. 2010-09-24 15:20:52 +00:00
vanhu
1da0e31bfc fixed a fd leak, patch by getlaser (at) gmail.com 2010-09-24 15:09:29 +00:00
christos
da3a4052e4 protect the __allocenv call with the mutex; from Enami 2010-09-24 14:34:44 +00:00
christos
f6033a77ae Fix memory leaks; thanks Enami! 2010-09-24 14:31:15 +00:00
njoly
6795d62e0d Add support for envsys(4) version 2 ioctls. 2010-09-24 13:12:53 +00:00
skrll
8f77c5159b Comment reformat. 2010-09-24 12:00:10 +00:00
skrll
2c56298dd9 Wrap long line. 2010-09-24 11:59:28 +00:00
skrll
09601c884f Whitespace. 2010-09-24 11:57:11 +00:00
skrll
6229c56fea Wrap long lines
Reformat comments.
2010-09-24 11:41:46 +00:00
tnozaki
93b7363c93 add fmemopen(3) derrived from POSIX:2008.
libc minor bump.
2010-09-24 09:21:53 +00:00
gsutre
a9c0568376 Do not discard ACPI PCI addresses with function number 0xFFFF: the
ACPI specification allows them (ACPI 4.0a, p. 200).

ok jruoho@
2010-09-24 07:48:59 +00:00
wiz
f89f025c02 GNU grep-2.7 out. 2010-09-23 21:34:14 +00:00
christos
14032335ad prevent integer oveflow. From Maksymilian Arciemowicz 2010-09-23 21:16:42 +00:00
christos
9c3a68b910 new environment test 2010-09-23 17:40:23 +00:00
christos
1db2d29e54 unit test for environment. Grr, someone should make fixing the sets easier
otherwise people are not going to want to write unit-tests.
2010-09-23 17:38:08 +00:00
christos
7db74b9a82 Use a bit array to keep track of malloced environment entries so we can
free them.
2010-09-23 17:30:49 +00:00
christos
e957123b85 PR/43899: Nicolas Joly: setenv(3)/unsetenv(3) memory leak.
Partial fix: Don't allocate a new string if the length is equal to the
old length, because presumably the old string was also nul terminated
so it has the extra byte needed.
The real fix is to keep an adjunct array of bits, one for each environment
variable and keep track if the entry was allocated or not so that we can
free it in unsetenv.
2010-09-23 16:02:41 +00:00
manu
bcf6f2f32a == file close operations ==
- use PUFFS_KFLAG_WTCACHE to puffs_init so that all writes are
immediatly send to the filesystem, and we do not have anymore write
after inactive. As a consequence, we can close files at inactive
stage, and there is not any concern left with files opened at
create time. We also do not have anymore to open ourselves in readdir and
fsync.

- Fsync on close (inactive stage). That makes sure we will not need to
do these operations once the file is closed (FUSE want an open file).
short sircuit the request that come after the close, bu not fsinc'ing
closed files,

- Use PUFFS_KFLAG_IAONDEMAND to get less inactive calls

== Removed nodes ==
- more ENOENT retunred for operations on removed node (but there
are probably some still missing): getattr, ooen, setattr, fsync

- set PND_REMOVE before sending the UNLINK/RMDIR operations so that we avoid
races during UNLINK completion. Also set PND_REMOVED on node we overwirte
in rename

== Filehandle fixes ==
- queue open operation to avoid getting two fh for one file

- set FH in getattr, if the file is open

- Just requires a read FH for fsyncdir, as we always opendir in read
mode. Ok, this is misleading :-)

== Misc ==
- do not set FUSE_FATTR_ATIME_NOW in setattr, as we provide the time

- short circuit nilpotent operations in setattr

- add a filename diagnostic flag to dump file names
2010-09-23 16:02:34 +00:00
joerg
11fdf81f84 Avoid casting from d_val to plttype of different signedness.
Just two booleans for the same purpose.
2010-09-23 13:03:35 +00:00
njoly
abdcf63ade Add empty line in ERRORS section. 2010-09-23 12:49:31 +00:00
kiyohara
c9cd553838 Add Marvell Secure Digital Input/Output (SDIO) Interface Driver. 2010-09-23 12:36:01 +00:00
kiyohara
014c324421 Print bus width and clock for feature(High speed support). 2010-09-23 12:03:27 +00:00
he
2689152df6 Move shared library bits of the tests out to shl.mi, so that sun2,
which only does static linking, can complete the build.
2010-09-23 09:42:17 +00:00
he
44b7889673 Don't depend on shared library dependencies; we also need -lpuffs here.
This allows us to link statically.
2010-09-23 09:40:23 +00:00
he
0549224c7a Reorder the library specifications, so that we don't depend on the
library dependencies recorded in shared libraries, allowing these
to be linked statically as well.
2010-09-23 09:39:14 +00:00
he
16b74f200d Do symbol renaming for these bits as well, so that we don't get
link-time errors caused by conflicts with normal user-space libraries
when we link statically.

The tests still pass for i386 after this set of changes, and this now
builds for sun2 (after a few more changes).
2010-09-23 09:38:14 +00:00
kiyohara
5ff72fda21 Replace some whitespaces to Tab. 2010-09-23 07:31:10 +00:00
kiyohara
402e9ccf0a + Remove crypto, swcrypto. No need.
+ Enable tap.  It needs Bluetooth PAN.
+ Enable bridge for PAN/netDUO.
+ Enable dmoverio.
2010-09-23 07:21:05 +00:00