wiz
2dda5775d9
Sort sections.
2013-01-16 06:44:27 +00:00
christos
d035981822
add some things to add next time we modify the function
2013-01-15 22:42:14 +00:00
dsl
c672e5424a
Don't rely on something including sys/ioctl.h for us.
2013-01-01 18:32:17 +00:00
dholland
cd3306d1ba
Fix failure message for ecalloc.
2012-12-30 17:37:13 +00:00
dholland
1e653dd9c8
If malloc, calloc, or realloc returns NULL when a size of 0 was
...
requested, which is allowed by pertinent standards, honor it instead
of bombing.
Do not do this for calloc(x, y) where x != 0 && y != 0 but x*y == 0;
in that case bomb.
2012-12-30 17:36:00 +00:00
christos
82ad575716
don't include things you don't need
2012-11-04 13:08:56 +00:00
wiz
cd3709ae09
Fix string_to_flags prototype. From Brooks Davis in PR 46986.
...
Bump date.
2012-09-19 23:22:56 +00:00
joerg
ed602fb487
Don't use const foo const as type, one const is enough.
2012-09-13 21:44:49 +00:00
christos
7dab8608fa
mention PATH_MAX instead of 16.
2012-07-27 21:33:46 +00:00
wiz
b713a39753
Remove trailing whitespace.
2012-07-27 18:22:04 +00:00
christos
eb537b13b6
Mention how big the name can be.
2012-07-23 02:21:14 +00:00
abs
9e66e6d75e
Update old-style definitions to ANSI, remove a couple of register
...
definitions along the way. Fixed gcc 4.1 build (thank you vax)
2012-06-25 22:32:43 +00:00
christos
ca7e8bb03f
Fix compat code, so if we failed to make raw, return the regular path.
2012-04-08 20:56:12 +00:00
wiz
9a7b574b58
End sentence with dot.
2012-04-08 16:06:23 +00:00
christos
f3cbb49f84
Add and enable COMPAT_DKWEDGE which let's us autoconfigure wedges and boot
...
with a non-wedge aware fstab.
2012-04-07 17:10:02 +00:00
christos
1e9ca58635
- add getdiskrawname.
...
- exit on error for lint.
2012-04-07 16:44:39 +00:00
christos
8f3dcf00a8
fix typo
2012-04-07 16:22:42 +00:00
christos
4a87bdacc7
read returns ssize_t, and err is a function name.
2012-04-07 16:17:17 +00:00
christos
920e381419
- pass correct types.
...
- use sizeof(var) instead of sizeof(type)
2012-04-07 16:16:34 +00:00
wiz
98dbe2d32a
Remove trailing whitespace, add dot.
2012-04-07 10:43:38 +00:00
christos
29484ab26f
add getfsspecname
2012-04-07 04:04:21 +00:00
wiz
711cb78a48
Fix capitalization and typo, from Bug Hunting.
2012-04-06 11:36:04 +00:00
matt
fa835e8c8b
These directories default to WARNS?=5
2012-03-21 05:37:42 +00:00
christos
89cf253562
- add strspct
...
- be explicit about string not being NUL terminated if bufsiz == 0
2012-01-07 18:40:55 +00:00
apb
f93996848b
Use mktime(3) instead of hand-coded equivalent.
...
Don't treat negative results as errors (we should be able
to handle years before 1970).
XXX: This still fails on 1969-12-31 23:59:59.
2011-12-17 19:14:10 +00:00
christos
afa4aab9de
remove clauses 3 and 4
2011-11-18 04:15:41 +00:00
wiz
180ddec981
Remove trailing dot; slightly improve wording.
2011-11-13 23:49:39 +00:00
christos
da80e3ab34
add manual page
2011-11-13 22:03:34 +00:00
wiz
cf9612053b
Minor improvements.
2011-10-21 12:58:53 +00:00
christos
9e0e05693b
Forgot to commit this.
2011-10-21 12:10:31 +00:00
christos
b51eeccc62
Add proc_compare
2011-10-21 02:05:36 +00:00
christos
c9db7e91c5
Don't use = to assing SRCS, but += so that we can remove snprintb.c,
...
which was added elsewhere.
2011-10-21 01:37:59 +00:00
plunky
2b8aaed8cd
NULL does not need a cast, here
2011-09-16 16:13:16 +00:00
njoly
85ae540813
Kill empty Dv macro.
2011-09-14 11:43:29 +00:00
wiz
90a7060101
Fix typo.
2011-09-05 18:25:57 +00:00
jmcneill
a02f89094f
getlabelusesmbr: initialize 'oldlenp' parameter to sysctlbyname
2011-09-04 12:34:49 +00:00
christos
352dad7e2a
- use the correct buffer size
...
- remove obsolete comment
2011-09-02 10:13:44 +00:00
fair
432469e3d6
Clarify the history and add proper attribution.
2011-09-01 23:13:16 +00:00
bouyer
a47e2eb758
Add getlabelusesmbr(), as proposed in
...
http://mail-index.netbsd.org/tech-userlevel/2011/08/25/msg005404.html
This is used by disk tools such as disklabel(8) to dynamically decide is
the undelyling platform uses a disklabel-in-mbr-partition or not
(instead of using a compile-time list of ports).
getlabelusesmbr() reads the sysctl kern.labelusesmbr, takes its value from the
machdep #define LABELUSESMBR.
For evbmips, make LABELUSESMBR 1 if the platform uses pmon
as bootloader, and 0 (the previous value) otherwise.
2011-08-30 12:39:49 +00:00
jruoho
fef3cbf8c7
Fix markup-typo.
2011-08-29 12:39:50 +00:00
jruoho
1d9550a5a1
Build libutil(3) as a link to util(3).
2011-08-29 12:37:52 +00:00
jruoho
0c84062280
Note strpct(3).
2011-08-29 12:32:54 +00:00
wiz
10b0d879be
Minor cleanup.
2011-08-28 17:21:28 +00:00
christos
e7295d23ac
add strpct, requested by joerg
2011-08-28 07:45:13 +00:00
jruoho
e2ab801e81
Xref chflags(2) and stat_flags(3) with each other.
2011-08-06 11:28:24 +00:00
christos
322a9e7966
fix freudian slip
2011-04-24 01:56:44 +00:00
jmmv
255271589f
Extend pidfile(3) to support creating pid files in arbitrary locations.
...
If the argument provided to pidfile(3) contains a '/', then the value is
considered to be an absolute/relative path and the pid file is created
in the given location.
Otherwise, pidfile(3) behaves as before and treats the provided value as
a basename to construct a pid file in /var/run/<basename>.pid. This means
that to create a pid file named "foo.pid" in the current directory, one
must specify "./foo.pid".
2011-03-29 13:55:37 +00:00
njoly
119aff4da3
Fix sigprocmask section (3 -> 2).
2011-03-27 12:53:16 +00:00
christos
6ef213c85c
restore lost overlow check fix.
2010-12-24 15:47:39 +00:00
christos
5448347830
make this thread-safe. We could use localtime_tz and make it even better,
...
but not now.
2010-12-24 03:37:37 +00:00
wiz
c03e55e8e9
Remove trailing whitespace.
2010-12-22 09:12:28 +00:00
christos
a504543f04
fix incorrect overflow check from Nicholas Joly
2010-12-21 18:13:02 +00:00
christos
537ea48995
- document limitations
...
- add extra number name parsing
2010-12-21 00:15:10 +00:00
christos
2e63e08217
- fix off by one in comparison with 69 (it should be 70)
...
- add aliases for 1 (one), 2 (two), etc.
- allow parsing of HH:MM:SS.sss as the man page mentions, and ignore sss
2010-12-21 00:14:10 +00:00
christos
49f71b9cd5
PR/42549: Izumi Tsutsui: parsedate does not work after 2038.
...
Fix multiple issues:
- Remove bogus 2038 check and add overflow checks in the appropriate places.
- Correct incomplete leap year calculation that broke things after 2100.
- Check localtime return values
- Change int calculations to time_t to avoid oveflow.
- Consistently check/return -1 and remove bogus comment about not being
able to return -1.
Now:
$ date -d 20991201
Tue Dec 1 00:00:00 EST 2099
$ date -d 40991201
Tue Dec 1 00:00:00 EST 4099
$ date -d 10000000991201
Tue Dec 1 00:00:00 EST 1000000099
TIME=0:04.48 CPU=117.8% (5.288u 0.000s) SWAPS=0 (0+95)pf (0i+0o) (0Kc+0Kd)
$ date -d 100000000991201
date: Cannot parse `100000000991201'
TIME=0:53.48 CPU=99.2% (53.086u 0.000s) SWAPS=0 (0+96)pf (0i+0o) (0Kc+0Kd)
Exit 1
2010-12-12 18:39:57 +00:00
wiz
9538d798d1
Fix Dd argument, sort sections.
2010-08-28 15:49:08 +00:00
tron
a38ccbe49f
Mention recent enhancement and not that this function is neither
...
re-entrant nor thread-safe.
2010-08-28 13:42:07 +00:00
christos
389aa89258
PR/43795: Guy Harris: describe return values and error handling.
2010-08-24 12:05:01 +00:00
tron
90493f6f08
Add support for parsing the data format "@<seconds since epoch>" e.g.
...
"@735275209" for "Tue Apr 20 03:06:49 UTC 1993". This change was inspired
by coreutil's "date" utility.
2010-08-21 16:17:40 +00:00
christos
6afe6deefa
Log why pwd_mkdb failed. Currently on aslr systems, pwd_mkdb either aborts
...
or when s/vfork/fork/ dies with SEGV accessing the the stack. The same abort
effect can be achieved when we remove all resource limits.
2010-08-18 08:32:02 +00:00
christos
90f5be5cdd
Log via syslog(3) when we run pwd_mkdb(8).
2010-08-18 08:09:17 +00:00
wiz
0d0949dea8
Mark up NULL with Dv.
2010-05-05 22:05:31 +00:00
jruoho
59d481ff7f
Upon lukem@'s request, put the list of functions back.
...
XXX: Someone, please keep this up-to-date.
2010-05-05 06:11:14 +00:00
jruoho
43f2dd8f20
Rework the example a little.
2010-05-04 07:58:28 +00:00
jruoho
c17db6ca32
Remove the list of functions in the libutil library.
...
While such lists are nice, they are doomed to be repeatedly out of date due
maintenance costs related to manual updates. Ideally there should be a
common routine to auto-generate these, but in the meantime, just point to
the directory where libutil is implemented.
2010-05-04 07:07:12 +00:00
jruoho
805fdd4774
Use table instead of a list.
2010-05-04 06:53:35 +00:00
jruoho
45b87028bd
Use .Fn instead of .Nm.
2010-05-04 06:41:27 +00:00
jruoho
e206128379
.Nm -> .Fn, and one .Pp.
2010-05-03 05:40:37 +00:00
joerg
e382e1d38b
Use .In instead of .Aq Pa and variantes for header files.
2010-03-22 22:00:37 +00:00
drochner
7033707525
retire pw_policy(3) -- it is not found useful, there are other
...
(more common) ways to enforce a password strength policy
approved by elad
2010-01-27 19:10:30 +00:00
tsarna
8c31ceec62
Update my email address to one I have used in this millenium.
2009-10-22 23:08:03 +00:00
pooka
363b14551a
In a furious blaze of *facepalm* / "what was i thinking?", fix the
...
open routine function pointer prototype of opendisk1() to match
the prototype of open().
2009-10-13 22:00:31 +00:00
pooka
aaaf93f1d4
Add opendisk1(), which functions like opendisk(), but takes a function
...
pointer to the routine to be used for open().
2009-09-08 21:34:57 +00:00
joerg
07c495396f
Fix markup.
2009-07-14 18:56:14 +00:00
zafer
282680c9b1
correct spelling error.
2009-06-24 22:31:58 +00:00
christos
87fe4621ba
add a link to pw_copyx; from anon ymous
2009-06-20 14:28:29 +00:00
wiz
6a1c80cfff
Bump date for previous.
2009-05-13 23:02:52 +00:00
pgoyette
28469fc250
Implement snprintb_m(3) to provide multi-line bit/bit-field decode.
...
Discussed on tech-kern.
2009-05-13 02:50:31 +00:00
pgoyette
5fae2745d1
Update type of argument 4 from u_quad_t to uint64_t to match the actual
...
implementation.
2009-05-05 13:12:25 +00:00
wiz
efabe55512
Sort sections.
2009-05-04 20:43:48 +00:00
wiz
83412be2c1
Sort SEE ALSO.
2009-05-04 19:15:36 +00:00
joerg
33c9c1889e
Use semantic markup.
2009-04-11 17:26:32 +00:00
joerg
71c479831e
Fix markup.
2009-04-11 16:13:49 +00:00
uebayasi
df37ad1752
Correct the order of arguments in EXAMPLE. Bump date.
2009-03-26 05:00:10 +00:00
joerg
e85762f4cf
Specify width for tag list
2009-03-10 21:00:47 +00:00
joerg
997634fe14
Fix preamble to match order set out by mdoc(7). Discussed with wiz.
2009-03-09 19:24:26 +00:00
christos
47b68f7fe6
remove pointless static.
2009-02-20 16:44:06 +00:00
lukem
53ff085f8b
WARNS=4
2009-01-18 12:13:32 +00:00
lukem
c5eb4ab601
fix -Wsign-compare issues
2009-01-18 11:56:51 +00:00
christos
50728e7823
merge christos-time_t
2009-01-11 02:57:17 +00:00
wiz
b52bc84da9
Sort errors.
2008-12-26 21:02:28 +00:00
christos
16338b1c19
document pw_getpwconf.
2008-12-26 00:49:28 +00:00
wiz
38d39e864c
Fix deleto in previous.
2008-12-23 21:46:13 +00:00
christos
9cd6b6e766
fix argument order in example.
2008-12-23 20:53:31 +00:00
christos
fa2088e532
PR/18150: John F. Woods: Print meaningful error messages on inconsistent/
...
corrupt entries.
2008-12-21 17:54:43 +00:00
wiz
78f0ebffc8
Re-add LIBRARY section.
2008-12-17 14:05:23 +00:00
wiz
f1c9faeb9d
Fix some minor mdoclint complaints.
2008-12-17 10:39:22 +00:00
christos
930983f9c3
use the bitmask_snprintf info which is more complete, and adjust it for
...
reality.
2008-12-16 23:19:16 +00:00
christos
c057bf8352
move snprintb to common
2008-12-16 22:34:40 +00:00
dholland
d5870e1cc6
Clarify that the "amaster" argument of forkpty() is only defined upon
...
return in the parent process, but the tty name is available to both
the parent and child. Bump date.
2008-11-28 07:17:17 +00:00