Commit Graph

558 Commits

Author SHA1 Message Date
wiz 3faa539e67 Sort errors. 2017-10-23 01:05:10 +00:00
abhinav 75bd3393d3 Add snprintb_m to the NAME section. 2017-10-22 16:59:18 +00:00
abhinav d4ec480093 Add missing functions to the NAME section 2017-10-22 16:55:32 +00:00
wiz 01869ca4d2 Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
kamil 2d1839db7f Stop including <sys/user.h> in userland libraries
This header in this context is freebsdism.
2017-06-14 12:24:51 +00:00
abhinav 9f9499a40c Add man page links for:
EV_SET to kqueue(2)
   getmntoptstr, getmntoptnum, freemntopts to getmntopts(3)

Reviewed by wiz@
2017-04-01 14:31:05 +00:00
abhinav ad5244b4e8 Use Sy to highlight the table header. 2017-03-30 20:00:21 +00:00
abhinav 1bf28fdbff Add missing functions 2017-03-30 19:56:36 +00:00
abhinav 33d7e92834 Add getmntoptstr, getmntoptnum, and freemntopts to the NAME section
Fix couple of sentences

getmntoptstr, getmntoptnum, and freemntopts need to be linked to the getmntopts(3)
man page as well. Will do in a later commit after doing a relase build test.
2017-03-30 19:41:41 +00:00
abhinav cd4acf025e Add getdiskcookedname to the NAME section
Fix couple of typos.
2017-03-30 19:23:06 +00:00
kre de1e0dfd01 parsedate.y: meaningless KNF of a comment (no code changes)
parsedate.3:  add an item in BUGS noting the weirdness of "next"

The real purpose of this commit is to supply the following message
which should be used for the immediately previous commit, replacing
its commit message (the two are similar, but definitely not the
same).   With thanks to gdt@ for pointing out one of the (many) errors
in the previous message (and noting others I had already seen).

    ----

Make parsedate handle "12 noon" and "12 midnight" (including when the
time given is "12:00" or "12:00:00") - but only for exactly 12 o'clock.
"12:00:01" is am or pm, not noon or midnight.

"12 am" remains as an alias for "12 midnight", and "12 pm" for noon,
though both are strictly (pedanticly) invalid (and meaningless.)

Note that "12 midnight" (or "12 am") means 00:00:00 (ie: midnight at
the start of the day, not at the end.)
2017-03-22 18:17:42 +00:00
kre e9cfba3947 Make parsedate handle "12 noon" and "12 midnight" (including when
the time is "12:00" or "12:00:00) - but only for exactly 12 o'clock.
"12:00:01" is am or pm, not noon or midnight.

"12 am" remains as an alias for "12 midnight", and "12 pm" for midnight,
though both are strictly invalid (and meaningless.)

Note that "12 pm" means 00:00:00 (ie: midnight at the start of the
day, not at the end.)
2017-03-22 01:49:36 +00:00
kre b717517d3c Fix PR lib/52101 -- 12:30 am is 00:30:00 and 12:30 pm is 12:30:00 2017-03-22 00:59:06 +00:00
snj e6059b4b0a new lookup order will be in 7.1 before 8.0 2017-01-29 05:13:55 +00:00
christos 5d7e998696 Make this portable to other OSs 2016-12-29 18:30:55 +00:00
abhinav 93864c5433 Complete a sentence
and replace full stop with a comma at one place as the sentence wasn't finished
2016-12-23 06:01:41 +00:00
kre 0a924e39aa Remove dawn/sunup/sunset/sundown (sunrise was never there...)
If 06:00 or 18:00 are wanted, just say "06:00" (etc).  If these
are ever added back, they really should determine location, and
calculate actual sunrise/sunset times for the location and date.
That's not likely to happen...
2016-06-26 07:09:24 +00:00
wiz cd42b3989a Fix typo. Sort errors. 2016-06-07 11:20:45 +00:00
christos 395941f2ce PR/51216: Instead of trying to open files in the current working
directory first for paths that don't contain "/", first try the
/dev paths to avoid confusion with files in the working directory
that happen to match disk names.
2016-06-06 17:50:19 +00:00
christos f32209ed0d Use NULL instead of 0. 2016-06-01 22:58:52 +00:00
kre 3060c9b9b9 Make relative date changes ("+ 2 months") etc, work a little more sanely.
OK christos@
2016-05-03 18:14:54 +00:00
roy 67f77b27fc Removed botched debug left over. 2016-04-12 20:40:43 +00:00
roy 4b95ed965b Fix pidfile location path rules to match prior version. 2016-04-12 20:36:35 +00:00
wiz 16a8980036 Add serial commas. Fix minus. Sort SEE ALSO. Fix xref. 2016-04-11 08:49:57 +00:00
roy aae35f25ba Bump libutil for new pidfile functions. 2016-04-11 08:44:40 +00:00
roy 6b9006e83c Implement pidfile_lock, pidfile_read and pidfile_clean.
Discussed on tech-net@, ok core@.
2016-04-10 19:05:50 +00:00
christos ee5f11c12c pretty-print link addresses. 2016-04-06 18:04:58 +00:00
christos e447d67050 prefer <sys/cpu.h> instead of <machine/cpu.h> 2016-01-25 18:14:04 +00:00
wiz 48a57620e7 unsigned -> unsigned int 2016-01-23 07:21:18 +00:00
dholland 65f8003146 Update synopses to match u_int/u_long/etc. changes. Do not bump date as
it's not a substantive change.
2016-01-23 00:43:42 +00:00
dholland 4f3e8539c0 When computing relative months, use mktime() directly and don't call
our Convert(). And check it for failure. This fixes three sets of
problems:

  (1) depending on the passed-in value of Timezone it might
      disassemble the time in one timezone and reassemble it in
      another, causing mysterious offsets of a few hours;

  (2) with the previous set of changes to this file, Convert() fails
      if it ends up normalizing a date, so e.g. going three months
      forward from March 31 would fail;

  (3) previously if Convert() failed we passed -1 on to DSTcorrect(),
      which made a mess.

PR 50574.
2015-12-31 10:52:06 +00:00
dholland 2213a9c409 Always use localtime_r; I don't think any of this code is tripping
itself up, but it's still good practice for library functions to not
trash static libc state. Might be relevant to PR 50574.
2015-12-31 10:31:07 +00:00
dholland 4c7b8eec63 Reformat grammar part according to my standards for yacc grammars. 2015-12-31 09:12:57 +00:00
wiz f36df50d9f Markup improvements. 2015-12-10 21:32:35 +00:00
christos a40b6ba18c more changes I forgot to commit 2015-12-08 12:51:21 +00:00
christos 5fd02f85b5 preserve a copy of the tm so we can check later. 2015-12-08 12:51:04 +00:00
christos 5e2a9cf1aa - Add support for "midnight" "noon", dawn etc.
- Add validation to date/time strings by checking that mktime did not change
  the fields of struct tm from the ones requested
- Allow the format "year monthname day".
From kre
2015-12-07 20:55:49 +00:00
christos 640422f86c Fix west australia offset, from kre 2015-12-06 14:43:59 +00:00
wiz a1d408828c Sort sections. Mark up NULL. End Bl with El. 2015-11-26 09:48:21 +00:00
christos 55be0c146d Fix documentation inconsistencies, and add some clarifications (from kre) 2015-11-26 01:00:54 +00:00
christos 51dbeaccf4 Patch from kre:
- fix missing/inconsistent abbreviations
- set dst only if we are using localtime.
- properly check for errors where there were missing checks
- handle errno properly including saving and restoring.
2015-11-26 01:00:02 +00:00
kamil ed6e96ca70 Correct typos in comments
Pointed out by Edgar Fuss and J. Lewis Muir.
2015-10-29 20:29:24 +00:00
christos c9b640c057 need uvm_param.h now. 2015-09-26 20:28:55 +00:00
christos 85dc0057a4 Hello lint. 2015-09-24 15:30:39 +00:00
christos 80a7733395 Add kinfo_getvmmap from FreeBSD 2015-09-24 14:39:20 +00:00
kamil 01f63c44fd Bump date for recent changes 2015-07-26 17:37:38 +00:00
kamil 28de1b8a34 Sync parameter name with efun.c
This change is non-functional.
2015-07-26 17:36:38 +00:00
kamil 382f8944d9 Bump shlib minor for new function: ereallocarr(3)
Noted by <mrg>
2015-07-26 15:15:31 +00:00
kamil 2cf5f6af2b Add ereallocarr(3) to libutil
ereallocarr(3) wraps reallocarr(3) and embeds return status validation.

Older version reviewed by <riastradh> and <christos>
2015-07-26 02:20:30 +00:00
kamil 3867e136be Clean-up resources (sys/sys/resource.h) usage
Add vmemoryuse to login_cap(3)
Document vmemoryuse in login.conf(5)
Document proc.pid.rlimit.vmemoryuse and proc.pid.rlimit.maxlwp in sysctl(7)
Document SBSIZE, AS, VMEM and NTHR in share/doc/psd/05.sysman/1.6.t

Reviewed by <riastradh>
Approved by <pgoyette>

Tested by Dominik Bialy

Closes PR xsrc/49912
2015-07-11 09:21:22 +00:00