elad
145a8382e1
Don't leak handle.
2006-10-27 22:17:09 +00:00
elad
28e2a804c9
For now, also mark "file" entries as "indirect".
2006-10-27 22:14:17 +00:00
uwe
5dd5d540a6
Simplify the __attribute__ ifdef mess now that __used does the right
...
thing for older gccs.
2006-10-27 22:14:13 +00:00
uwe
b05d0f4d20
Define __used as __unused for gcc's that don't grok __attribute__((__used__))
...
Those older versions of gcc don't eliminate unused functions/vars
anyway, so it's enough just to suppress the warning.
2006-10-27 22:10:56 +00:00
christos
e1ae6bce13
- don't allocate huge arrays on the stack
...
- no bogus ; after }; in block statements!
2006-10-27 21:58:59 +00:00
dsl
72c6703a09
Rename 'struct Lst' to 'struct List' and 'struct LstNode' to 'struct 'ListNode'
...
in lst.d remove a small barrowload of casts from the lst.lib bloatset.
2006-10-27 21:37:25 +00:00
christos
5c60f22be5
need to negate before masking; from abp.
2006-10-27 21:36:50 +00:00
christos
d029b25938
restruct the include files to look like the other hash functions.
2006-10-27 21:25:21 +00:00
christos
a3fadcee99
this moved to common/lib/libc/hash
2006-10-27 21:24:35 +00:00
christos
77c9e41904
this is shared with the kernel now.
2006-10-27 21:23:15 +00:00
christos
31a62606ea
Merge kernel and userland rmd160 and sha2 implementation.
...
XXX: We still install rmd160.h and sha2.h in /usr/include/crypto, unlike
the other hash functions which get installed in /usr/include for compatibility.
2006-10-27 21:20:48 +00:00
dsl
16c8499ed2
Since 'ClientData' is 'void *', nuke almost all the (ClientData) casts.
2006-10-27 21:00:18 +00:00
garbled
3dc1c33272
Add the crypto swcrypto and veriexec psuedo devices. Also add FILEASSOC
...
and VERIEXEC, following elad's lead.
2006-10-27 20:37:17 +00:00
elad
52bab3d8ab
Don't allocate MAXPATHLEN on the stack.
...
Prompted by and initial diff okay yamt@
2006-10-27 20:16:10 +00:00
christos
c259a653fb
add the _ss versions of syslog(3) functions.
2006-10-27 20:05:27 +00:00
christos
1e468fbf99
- flags should be unsigned short instead of short.
...
- add __SAFE flag, to indicate that we want async-signal-safe functionality
only.
- add snprintf_ss, and vsnprintf_ss; these are undocumented on purpose.
2006-10-27 20:03:21 +00:00
christos
7dae219b5b
add syslog_ss, vsyslog_ss.
2006-10-27 20:01:33 +00:00
christos
d15d9f8a71
add async-signal-safe versions: syslog_ss and vsyslog_ss
...
multithread-safe syslog_r and vsyslog_r are not async-signal-safe.
2006-10-27 20:00:55 +00:00
christos
abca035cf3
Add signal-safe versions of snprintf and vsnprintf
2006-10-27 19:59:58 +00:00
pooka
eb6da7fc35
fix checkalias true branch: don't unlock or lock twice
2006-10-27 19:54:34 +00:00
garbled
e5bff3e418
A few changes so pnpbus devices can do isadma. Note that isadma still
...
does not seem to work properly on prep.
2006-10-27 19:52:51 +00:00
drochner
65b9988ba4
gently add some "const", and avoid some casts
...
compiles with WARNS=4 now (on i386 and alpha)
2006-10-27 19:39:11 +00:00
garbled
8685914d8f
Change an instance of curaddr to PHYS_TO_BUS_MEM(t, curaddr) in
...
_bus_dmamap_load_buffer, otherwise when attempting to DMA a buffer larger
than PAGE_SIZE on an arch where PHYS != BUS it will allways fail.
2006-10-27 19:36:15 +00:00
pooka
0035113cf8
Use spec_fsync for specops vop_fsync: it knows about vflushbuf(), which
...
is more than what puffs currently knows. makes e.g. ffs unmount for a
puffs-based device node work.
2006-10-27 19:01:48 +00:00
dogcow
6cb622186f
Sync up with rtk 'common macro' changes.
2006-10-27 18:47:07 +00:00
drochner
50ea67a5eb
As discussed back in June, remove hmac_sha1 and hmac_md5 from libc, to
...
reduce bloat and namespace trouble. (both were never public; hmac_sha1
is moved to libcrypt now because it is used locally there)
2006-10-27 18:29:21 +00:00
drochner
d16ceb033e
As discussed back in June, move the implementation of hmac_sha1 here
...
because this is not a public function and crypt-sha1.c is the only
place where it is used (It must have been that way formerly, because
there was a stale prototype in crypt.h all the time.)
Being here, do some RCSID and prototype cleanup, and add as much "const"
as needed to compile these files with WARNS=3.
2006-10-27 18:22:56 +00:00
perry
360359b671
fix a bit of trailing whitespace, and do the space tab dance for a
...
couple of options so that they work well when commented out
2006-10-27 17:37:44 +00:00
christos
26bb1685bd
don't allocate large buffers on the stack.
2006-10-27 16:49:01 +00:00
christos
78a48d28a3
Use strncpy to copy out interface names so that the trailing part of the
...
buffer is zeroed, and check for overflow.
2006-10-27 15:33:11 +00:00
tnozaki
0c4c29f46b
add missing locale syspkg stuffs.
2006-10-27 15:09:46 +00:00
yamt
b89279d039
revert malloc -> kmem_alloc part of uvm_swap.c rev.1.110 because
...
the current implementation of kmem_free can sleep.
2006-10-27 15:06:04 +00:00
yamt
17685f3fdc
vmem: use correct function names for ASSERT_SLEEPABLE.
2006-10-27 15:05:16 +00:00
tnozaki
1a00f7afa4
don't pass through surrogate character(0xD800 - 0xDFFF).
2006-10-27 14:13:55 +00:00
pooka
8fdf9afc13
update appropriate timestamps after each operation. cvs works much
...
better now with dtfs /tmp
2006-10-27 14:03:52 +00:00
tsutsui
dee13e6f7d
Remove redundant byteswap ops.
2006-10-27 13:26:34 +00:00
pooka
9638ee1464
relax typechecks so that all file types work (they were already supported)
2006-10-27 12:26:25 +00:00
pooka
30a851c1d1
support fifos
2006-10-27 12:25:16 +00:00
tsutsui
5ee73a035c
Use common macro rather than local one.
2006-10-27 09:57:26 +00:00
bouyer
f91ce46f20
Add SATA native registers support for VIA SATA controllers, so that
...
drives are probed using the SATA way (from FreeBSD). While here add the
VT8237A SATA Controller to the tables, should fix PR kern/34927.
Thanks to the César Catrián Carreño and paul (at) whooppee.com for
tests.
2006-10-27 08:22:31 +00:00
macallan
4022a1c7d3
fix a typo in chipsfb_bitblt()
2006-10-27 06:14:17 +00:00
uwe
921ce8b2e0
Add prop_dictionary_{get,set}_bool.[03] (hi, potr).
2006-10-27 01:34:35 +00:00
uwe
575dae7120
Add prop_dictionary_all_keys.3 link (hi, potr).
2006-10-27 01:29:37 +00:00
lukem
5b87c223c9
Use "see" instead of "c.f.".
...
Per feedback from Valeriy E. Ushakov.
2006-10-27 01:29:17 +00:00
uwe
0d5d31b4ff
Add back setlogmask.3 (hi, christos).
2006-10-27 01:25:58 +00:00
uwe
b0f3335e9a
Add syslog_r.3 link (hi christos).
2006-10-27 01:24:26 +00:00
elad
0c57382297
oops - passing wrong integer.
2006-10-27 00:11:44 +00:00
uwe
523122cd3e
Nuke GPROF cargo-cult I've been cut-n-pasting around in my drivers.
2006-10-27 00:08:32 +00:00
uwe
2909b42808
Fix __mcount to use bsrf to call _mcount. We know it's in the same
...
module (in the same file even), so we know the offset at link time and
don't need a reloc. This kills the last text relocation in the sh3
libc.so.
While here, tweak the code slightly to put delay slots into use.
2006-10-26 23:54:28 +00:00
simonb
c7f58e7f3e
Make mcount static.
...
Same problem as described in port-alpha/10582 by ITOH Yasufumi.
pc532 problem pointed out by Valeriy Ushakov.
2006-10-26 23:53:27 +00:00