Commit Graph

193797 Commits

Author SHA1 Message Date
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
kiyohara
0e8c021dd8 Move 'include files.sdmmc' to files.evbarm. 2010-09-23 07:08:57 +00:00
kiyohara
2453452fa8 Remove #ifdef NPRCM. Always include omap2_prcm.h. 2010-09-23 07:01:41 +00:00
kiyohara
22896d279d If GUMSTIX_NETBSD_ARGS_CONSOLE is defined, argument 'console=ttyS0,<speed>'
that u-boot passes Linux will be interpreted.
2010-09-23 06:54:46 +00:00
kiyohara
fefe19edbb Remove #if !defined(OVERO) - #endif. Overo can call delay(). 2010-09-23 06:43:32 +00:00
wiz
23f45c39ba Punctuation improvement, bump date for FAST_IPSEC description. 2010-09-22 17:59:35 +00:00
wiz
98890d79a7 Bump date for O_DIRECTORY, more markup, merge two error sections. 2010-09-22 17:58:09 +00:00
jakllsch
4e26f773f2 Avoid fault if acpi_softc is NULL at attempted power-off.
XXX at least some of this should be factored off into arch/x86.
2010-09-22 16:16:51 +00:00
christos
3b2862d165 fix typo. From Anon Ymous 2010-09-22 14:37:08 +00:00
vanhu
23e038ba26 get the correct length of username when processing ADMIN_LOGOUT_USER, patch by rweikusat (at) mssgmbh.com 2010-09-22 13:37:35 +00:00
vanhu
40e858e050 fixed a typo in macros, reported by marisp (at) mt.lv 2010-09-22 07:34:51 +00:00
roy
215c5976aa Our API just uses typedefs, so don't use the struct symbol which will avoid
any potential conflicts with userland.
2010-09-22 06:10:51 +00:00
kiyohara
e02699bf8c Back out previous change. "automagically" is NOT a typo. 2010-09-22 04:32:53 +00:00
pgoyette
c5da67f0a2 1. Don't try to call the driver's get_limits routine if it doesn't have
one.  Fixes a panic reported by njoly@ in private Email

2. Acquire the device before checking whether or not the get_limits
   routine exists.

XXX There's still a bug in here somewhere that prevents setting of
XXX limit values after using 'envstat -S'
2010-09-22 00:13:55 +00:00
chs
38b9dc3505 implement O_DIRECTORY as standardized in POSIX-2008,
for both native and linux emulations.
this fixes the rest of PR 43695.
2010-09-21 19:26:18 +00:00
degroote
b76f3dc775 Mentions that IPSEC_DEBUG works with FAST_IPSEC implementation 2010-09-21 13:47:41 +00:00
degroote
4a785c3a1c Mentions the FAST_IPSEC options 2010-09-21 13:46:41 +00:00
degroote
cd96000382 Fix ipcomp input counter
Reported Wolfgang Stukenbrock in pr/43250.
2010-09-21 13:41:18 +00:00
vanhu
a4e6ec9d93 moved from utmp.h to utmpx.h (patch provided by marcin.cieslak (at) gmail.com) 2010-09-21 13:14:17 +00:00
soda
3392edf8b0 O2W is "off to work", from mrg@ and spz@. 2010-09-21 07:14:20 +00:00
wiz
8d65c98f7a Fix typo. 2010-09-21 07:05:28 +00:00
mrg
aa347197eb note bozohttpd 20100920 2010-09-21 06:26:56 +00:00
kiyohara
dc47a44e6b + Add macro SMC_CAPS_8BIT_MODE for 8bit mode support.
+ Typo.  s/automagically/automatically/.
2010-09-21 04:57:44 +00:00
kiyohara
7e29ca4012 Fix build failure.
A new variable width and value had been forgotten since r1.7.
2010-09-21 04:53:53 +00:00
macallan
42092a5f99 add separate flags for putchar() based copycols() and copyrows() methods
for hw that can accelerate one but not the other, like Sun's Creator series
VCONS_DONT_READ does the same as before
2010-09-21 03:33:14 +00:00
macallan
9912ffbb92 * implement hw acceleration for putchar()
* use VCONS for copycols()
* don't map the framebuffer now that we don't access it anymore
* make a bunch of drawing engine syncs optional
2010-09-21 03:31:04 +00:00
macallan
9e776daf49 defflag some flags for the ffb driver 2010-09-21 03:26:20 +00:00
rmind
380cb143e5 _cpuset_create: initialize size argument for sysctl call.
From PR/43837 by Sandy Snaman.
2010-09-21 02:03:29 +00:00
jym
16e58e269b Promote paddr_t to 64 bits for i386 userland (non PAE and PAE).
paddr_t has limited interest in userland, and should only be used by specific
code like kvm(3) (for VA => PA translations). To support non PAE and PAE
kernels simultaneously in kvm(3), promote paddr_t to 64 bits.

No objection on current-users@. See also:

http://mail-index.netbsd.org/current-users/2010/09/07/msg014249.html

Kernel remains untouched by this change. In-kernel 64 bits for paddr_t is for
a future commit (Yes, I do not forget about that :) )
2010-09-21 00:18:05 +00:00
jym
962a341df6 Change kvm_pa2off() and kvm_kvatop() prototypes (private to kvm(3)):
-int     _kvm_kvatop(kvm_t *, u_long, u_long *);
-off_t   _kvm_pa2off(kvm_t *, u_long);
+int     _kvm_kvatop(kvm_t *, vaddr_t, paddr_t *);
+off_t   _kvm_pa2off(kvm_t *, paddr_t);

Basically, use vaddr_t for VA and paddr_t for PA. In addition, for variables
representing addresses, use paddr_t or vaddr_t, depending on the context.

For most arches, vaddr_t and paddr_t are equivalent to unsigned long. However,
the change was needed for exotic situations, like i386 PAE, were unsigned long
is not suitable for PA which are 64 bits long. As this required a complete
change of the function prototypes, all arches had to be adapted accordingly.

Core files from before this commit should still work with the new code; I did
not see any direct dependency between core's structure and kvatop/pa2off.

The change was compile tested for all arches, as it impacts all of them.

See also:

http://mail-index.netbsd.org/current-users/2010/09/07/msg014249.html
2010-09-20 23:23:16 +00:00
mrg
df5be5736c merge bozohttpd 20100920 2010-09-20 23:11:38 +00:00
mrg
729c374954 initial import of bozohttpd 20100920. the only change missing in here is:
o  fix dynamic CGI content maps, from rudolf
2010-09-20 23:07:21 +00:00
mrg
44128f48a9 fix an error in the previous. 2010-09-20 22:18:22 +00:00
mrg
109d4102cc fix a serious error in virtual hosting support, noticed by seanb@netbsd,
and disallow ".." as a virtual host name!  also ".".

patch from sean.
2010-09-20 21:58:43 +00:00
christos
8fb564818f avoid integer overflow that can lead to buffer overflow 2010-09-20 19:39:20 +00:00
christos
fda2d7ca9f deal with infinity on the vax. 2010-09-20 17:51:38 +00:00
christos
c80a34bc23 no more ieee ifdefs 2010-09-20 16:55:20 +00:00
christos
0a9ef41cbe get rid of ieee dependencies. 2010-09-20 16:53:30 +00:00
christos
1a7202d2d0 cargo cult the x86 changes. 2010-09-20 16:13:35 +00:00