Commit Graph

11273 Commits

Author SHA1 Message Date
thorpej
1aea07a325 Add prop_array_t support to prop_kern. 2006-10-26 18:51:21 +00:00
wiz
d8f71c6e09 Various fixes. 2006-10-26 13:08:17 +00:00
wiz
89d6e88da7 Bump date for previous. 2006-10-26 12:56:11 +00:00
christos
64c9721228 don't use strerror_r in the re-entrant case. 2006-10-26 10:00:38 +00:00
thorpej
26d4f90430 - Add prop_dictionary_all_keys(). Takes a snapshot of a dictionary's
keys and returns them in an array.  This effectively allows a caller
  to mutate a dictionary while iterating over it (really, you iterate
  over the array of keys instead of the dictionary itself).
- Add a slew of utility functions that make it more convenient (in some
  circumstances, anyway) to get/set values in a dictionary.
2006-10-26 05:02:12 +00:00
christos
77f9f63fa2 add _r functions for syslog from OpenBSD 2006-10-25 23:49:31 +00:00
uwe
87cd2874b2 G/c check() macro, b/c it's used only twice and the off < 0 test is
useless in the first case (off is 0), and causes error with new gcc
(comparison of unsigned expression < 0 is always false) in the
second.

While here fix a typo in a comment and use less indent to make BAD and
BADUNMAP definitions fit 80 columns.

XXX: The second check should probably be more elaborate to protect
against bogus/malicious COFF files.
2006-10-25 20:43:49 +00:00
pooka
bda8cd7266 handle PUFFS_VN_INACTIVE 2006-10-25 18:15:50 +00:00
mlelstv
999ac788ac don't segfault on NULL pointer if number of rounds is
not specified in passwd.conf.
2006-10-24 22:49:19 +00:00
pooka
c643be45eb dump correct name for vfs operations 2006-10-23 16:53:17 +00:00
he
b98baf7a62 Avoid "unsigned < 0" comparison by open-coding the remaining part
of the check() macro.
2006-10-23 15:27:41 +00:00
rillig
5968766094 open(2) can fail with EPERM. 2006-10-23 14:04:05 +00:00
mrg
6bb0c03185 use casts to properly truncate some assignments. (sparc64 gcc complained.) 2006-10-23 03:18:30 +00:00
christos
d6a795f6a8 put back the comparison in a lint friendly way to appease pooka. 2006-10-23 03:13:13 +00:00
dogcow
acba3dfe4b comment out comparison of unsigned expression to >= 0 2006-10-23 03:11:53 +00:00
christos
7ef97c92be use portable prints 2006-10-23 03:10:09 +00:00
pooka
718426155f still check for array bounds, fix off-by-one 2006-10-23 01:36:13 +00:00
christos
bc7a8f1f3d fix a lint warning. 2006-10-23 01:23:42 +00:00
christos
b6f6a56052 pass lint; fix install. 2006-10-23 00:22:24 +00:00
dogcow
8f7efdd62a add the .include <bsd.own.mk>, so .d and .o files don't end up in the CWD.
remove INCDIR=/usr/include, as my leenooks system doesn't have puffs .h files.
2006-10-22 23:51:37 +00:00
pooka
1635cf06bc add libpuffs - the userspace programming interface for puffs
This work was initially started and completed for Google SoC 2005
and tweaked to work a bit better in the past few weeks.  While
being far from complete, it is functional enough to be able and
stable to host a fairly general-purpose in-memory file system in
userspace.  Even so, puffs should be considered experimental and
no binary compatibility for interfaces or crash-freedom or zero
security implications should be relied upon just yet.

The GSoC project was mentored by William Studenmund and the final
review for the code was done by Christos.
2006-10-22 22:52:21 +00:00
mrg
d257e1e9bd __weakref__ attribute can not be applied to anything when inside function
scope, so, move the extern of get_alias_text outside vi_alias().

fixes build problems with GCC 4.1-20061021.
2006-10-22 07:48:13 +00:00
rillig
ced22230a0 Added a cross reference to stat(2), since that's the way how the current
flags can be determined.
2006-10-21 18:26:08 +00:00
christos
8c97c569de include ecalloc() from our anonymous user. 2006-10-20 17:40:39 +00:00
christos
284c960b4d typo from our anonymous user. 2006-10-20 17:40:18 +00:00
skrll
7e68cfaa21 powerpc MD_DO_NOT_NEED_FALLTHRU.
OK'ed by Matt Thomas.
2006-10-19 18:59:30 +00:00
skrll
e99b876999 Alpha MD_DO_NOT_NEED_FALLTHRU
Ok'd by Matt Thomas.
2006-10-19 16:47:38 +00:00
yamt
355bbc5cdf document tcp.abc. 2006-10-19 11:48:02 +00:00
martin
799bddf8fa MD_DO_NOT_NEED_FALLTHRU for sparc and sparc64, from Nick Hudson. 2006-10-19 08:37:46 +00:00
tnozaki
2e2fc44e22 add new iconv module libJOHAB,
this supports S.Korean character encoding scheme ``JOHAB''.
2006-10-18 17:54:54 +00:00
martin
82fe1a885a Re-enable lint warnings as errors, now that the source seems to lint
fine on non-i386 arches.
2006-10-18 14:50:58 +00:00
martin
ed11f023c9 Backout previous - this library is not ready for linting 2006-10-17 20:34:15 +00:00
christos
51739e272e Only retry if we were able to clean up some descriptors, otherwise we get
into an infinite loop.
2006-10-17 17:44:34 +00:00
uwe
e7b566fa33 Switch to MD_DO_NOT_NEED_FALLTHRU.
While here: Factor out .section/.previous wrapper into a separate macro.
Provide frame pointer.  Add the comment to MD_CALL_STATIC_FUNCTION to
explain why it needs semicolon and why we actually don't use that macro.
2006-10-17 01:10:26 +00:00
wiz
fef6221a07 Hyphenate nul-terminate. 2006-10-16 09:10:40 +00:00
wiz
d65511ddb3 Mark up NULL. 2006-10-16 09:10:29 +00:00
wiz
1a64d82da5 nul/null/NULL cleanup:
when talking about characters/bytes, use "nul" and "nul-terminate"
when talking about pointers, use "null pointer" or ".Dv NULL"
2006-10-16 08:48:45 +00:00
wiz
aba3ac5c73 kleink reminded me in a friendly way that "NULL" is the C API
synonyme for a "null pointer" and that there is no "NULL pointer".
2006-10-16 08:42:16 +00:00
christos
40c48e4f33 prevent empty else. 2006-10-15 19:34:51 +00:00
christos
ebed6f0b8c add volatile to prevent gcc clobbering. 2006-10-15 19:33:52 +00:00
christos
2979ced6e8 - Instead of wondering if to syslog an error, do so, but in the called
function.
- use snprintf instead of sprintf.
2006-10-15 19:33:03 +00:00
christos
56ec5c798d die on lint errors. 2006-10-15 19:07:38 +00:00
christos
ce2c90c7c1 fix incomplete initializers 2006-10-15 16:14:46 +00:00
christos
a8756e84f2 prevent empty else. 2006-10-15 16:14:08 +00:00
christos
6b9a17545b comment out dead code. 2006-10-15 16:13:12 +00:00
christos
3b77d4bc25 instead of using the (void)&foo kludge to avoid longjmp clobbering of variables
make the variables volatile as needed.
2006-10-15 16:12:02 +00:00
christos
b24124a73d static before const. 2006-10-15 16:11:04 +00:00
perry
35a6eb4807 Make the declarations of wday_name and mon_name less eccentric. I
suppose they were legal before, but lint was unhappy about them. It
was probably unhappy for the wrong reasons, but I think it certainly
wasn't something one would want anyway. Declaring a string of length
three to have storage of length three without room for the nul is
asking for trouble even if it does work in context, and there was no
reason not to state how many days there are in a week or months in a
year -- they aren't onerous and aren't going to change.

NOTE: If this code isn't being synced with the central TZCODE stuff,
it probably should be KNFed etc. It is full of K&R declarations,
register, lots of eccentricities, etc.
2006-10-15 15:32:42 +00:00
martin
a5cb9c8ff7 PR lib/34801 from David A. Holland: "static" comes first in declaration. 2006-10-15 10:55:01 +00:00
uebayasi
008312679d A missing period.
Reviewed By:	wiz
2006-10-15 01:53:41 +00:00