summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen
Commit message (Collapse)AuthorAgeFilesLines
* Correct some egregious style bugs.des2001-12-041-13/+21
|
* Add a missing error check. This fixes a bug that would cause pwd_mkdb todes2001-12-041-1/+2
| | | | | | | | | dump core if invoked with an input file that looks like a password file but isn't (e.g. /etc/group). PR: 32378 Submitted by: Maxim Konovalov <maxim@macomnet.ru> MFC after: 1 week
* Fix typos getpeerid -> getpeereid.tobez2001-12-021-2/+2
| | | | | PR: docs/32442 Reviewed by: dd
* Add support for sysconf(_SC_NPROCESSORS_CONF) and sysconf(_SC_NPROCESSORS_ONLN).jkoshy2001-12-012-0/+12
| | | | | | | | This API is supported in SVR4.0MP, Solaris, Linux, AIX and Tru64 Unix. PR: bin/27489 Submitted by: Arun Sharma <arun@sharma-home.net> Reviewed by: bde (prior version)
* Do not write warning messages on stderr - a caller is expected to checktobez2001-11-282-10/+8
| | | | | | | | | | | | | the return code and errno instead. Those warnings did not do any good for daemonized users of initgroups(3), and confused cvs clients that communicated with non-root cvs pserver. The committed fix differs from the one suggested in the PR, and was submitted by ru. PR: 15421 Approved by: markm Discussed on: -stable, -current at various times
* mdoc(7) police: markup cleanup.ru2001-11-221-15/+26
|
* mdoc(7) police: add missing comma.ru2001-11-221-1/+1
|
* fix compilation (include -> #include)fjoe2001-11-211-1/+1
|
* Should also include namespace.hgreen2001-11-211-1/+3
| | | | Submitted by: ru
* Change certain syscalls from x to _x.green2001-11-211-7/+7
| | | | Prodded by: bde
* Introduce readpassphrase(3), a superset of getpass(3). Thisgreen2001-11-205-101/+256
| | | | | | comes originally from Todd Miller. Obtained from: OpenBSD
* mdoc(7) police: remove whitespace at EOL.ru2001-11-201-1/+1
|
* Create link from directory.3 to readdir_r.3.dd2001-11-161-2/+2
| | | | | PR: 32028 Submitted by: andrew@ugh.net.au
* Fixed namespace pollution related to `err' in libc in the same way as forbde2001-11-112-4/+11
| | | | | | | | `warn'. Now a whole 2 members of the err() family don't cause pollution. This fixes world breakage in awk for NOSHARED worlds. contrib/awk/msg.c has had its own version of err() for a long time, but this somehow didn't cause problems until the update to awk-3.1.0.
* Add a note explaining why CLOCKS_PER_SEC isn't 1000000.dwmalone2001-11-051-1/+10
| | | | | | | While I'm here, "of a second" does not belong to CLOCKS_PER_SEC. PR: 30297 Submitted by: Bernd Luevelsmeyer <bdluevel@heitec.net>
* Add notice about early use from malloc.c forbidding malloc use fromphk2001-11-021-0/+5
| | | | this function.
* Make the output from assert() look more like the example in the C99mike2001-10-291-2/+2
| | | | | | standard. Requested by: bde
* Only provide function information in compile environments that supportmike2001-10-271-5/+10
| | | | | | | the C99 variable __func__ and never for C++. Provide a more meaningful example in the assert(3) manual. Reviewed by: asmodai, bde
* Restore K&R prototype. Fix other style bugs.mike2001-10-271-2/+3
| | | | Reviewed by: asmodai, bde
* Explicitly use int32_t for on-disk records for pw_change and pw_expire,peter2001-10-271-2/+5
| | | | | | since that is what we use now and this insulates us from any time_t tweaks here. We can define a record format that uses 64 bit times if/when we need to.
* Add __FBSDID.asmodai2001-10-241-5/+10
| | | | | | Change __assert() function to print failing function name. #if 0 the sccsid block. This makes us C99 conforming.
* Compensate for "Compensate for header dethreading" by backing it out.bde2001-10-105-10/+0
|
* mdoc(7) police: Use the new .In macro for #include statements.ru2001-10-0194-122/+122
|
* Document the FTS_ROOTPARENTLEVEL and FTS_ROOTLEVEL constants.ru2001-09-201-5/+9
|
* Use ``.Rv -std'' wherever possible.ru2001-08-314-23/+4
| | | | Submitted by: yar
* Fixed namespace pollution related to `warn' in libc (but not in otherbde2001-08-292-2/+13
| | | | | | libraries or for other members of the err() family). This fixes world breakage in bc and rcs/* for NOSHARED worlds.
* begin executed --> being executeddd2001-08-241-1/+1
| | | | Obtained from: NetBSD
* Use .In, .Ux, and .Rv where appropriate. Also consistently call thisdd2001-08-211-18/+16
| | | | | | a "function" instead of a "routine". Submitted by: ru
* Expand the ?: construct into an if/else.dd2001-08-211-1/+4
| | | | Submitted by: nectar
* The setprogname() function sets the name of the program to be the lastdd2001-08-211-1/+3
| | | | component of the progname argument.
* Fix style bug.dd2001-08-211-1/+1
|
* Fixed warnings.ru2001-08-212-1/+4
|
* Pass the pointy hat, please.nectar2001-08-211-2/+4
| | | | Submitted by: ru
* setprogname() should set __progname to the last component of the givennectar2001-08-211-1/+3
| | | | path.
* Implement getpeereid(3), a front-end to the LOCAL_PEERCREDdd2001-08-173-2/+191
| | | | | | | socket option for the Unix domain. It's weaker than the socket option (this only returns the uid and gid, while the socket opt. can return the entire group list), and is implemented mostly for compatibility with OpenBSD.
* Use the ".Rv" mdoc(7) macro where appropriate.yar2001-08-142-8/+12
| | | | Reviewed by: ru
* mdoc(7) police: s/BSD/.Bx/ where appropriate.ru2001-08-141-1/+2
|
* mdoc(7) police: s;BSD/OS;.Bsx; where appropriate.ru2001-08-131-1/+1
|
* mdoc(7) police: s/NetBSD/.Nx/ where appropriate.ru2001-08-131-1/+1
|
* Spell "FreeBSD" with "F" and "BSD" in uppercase.ru2001-08-136-6/+6
|
* Removed duplicate VCS ID tags, as per style(9).ru2001-08-136-11/+0
|
* mdoc(7) police: join split punctuation to macro calls.ru2001-08-101-1/+1
|
* mdoc(7) police: fixed the "new sentence" bogons.ru2001-08-101-1/+1
|
* mdoc(7) police: protect trailing full stops of abbreviationsru2001-08-102-2/+2
| | | | with a trailing zero-width space: `e.g.\&'.
* Fix xrefs.sobomax2001-08-091-1/+1
| | | | | | | | times.3: gettimeofday(3) --> gettimeofday(2) rc.conf.5: isndn(8) --> isdnd(8) idsnd(8) --> isdnd(8) MFC after: 2 weeks
* Use the ``.Rv -std'' mdoc(7) macro in appropriate cases.yar2001-08-098-42/+8
| | | | Reviewed by: ru
* typo: patched->matchedmikeh2001-08-091-1/+1
|
* mdoc(7) police: expand plain text xrefs.ru2001-08-086-6/+15
|
* mdoc(7) police:ru2001-08-072-5/+3
| | | | | | | Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text. Not only this slows down the mdoc(7) processing significantly, but it also has an undesired (in this case) effect of disabling hyphenation within the entire enclosed block.
* mdoc(7) police: markup nits.ru2001-08-071-1/+2
|
OpenPOWER on IntegriCloud