summaryrefslogtreecommitdiff
path: root/lib/libc/gen
Commit message (Collapse)AuthorAgeFilesLines
* Move swapcontext.c to the ${MACHINE_ARCH}/gen/Makefile.inc area, otherwisePeter Wemm2002-03-211-1/+1
| | | | | | | | it causes undefined references to getcontext() and setcontext() on platforms other than i386 and alpha. Notes: svn path=/head/; revision=92862
* mdoc(7) police: bump document date to the date of the last interfaceDima Dorfman2002-03-181-3/+6
| | | | | | | | change (revision 1.2 of devname.c on 1999/07/18), don't put quotes around a path, and use .Dv where appropriate. Notes: svn path=/head/; revision=92531
* Update to reflect reality; devname(3) hasn't returned NULL on failureDima Dorfman2002-03-181-6/+18
| | | | | | | | since revision 1.2 of devname.c (1999/07/18). While I'm here, note, in the BUGS section, that the returned pointer is to a static buffer. Notes: svn path=/head/; revision=92530
* Come on guys, you can't just take OpenBSD manpage and commit itRuslan Ermilov2002-03-151-30/+41
| | | | | | | | | | | | over someone else's fixes; this is at least offensive. If you have problems doing a proper merge, we are here, your fellow committers. :-( Reapply markup fixes from revision 1.2 and fix some more. Also fix the $OpenBSD$ tag. Notes: svn path=/head/; revision=92350
* If syslog fails to talk to syslogd, then it tries to write a messageDavid Malone2002-03-091-4/+4
| | | | | | | | | | | | | | to the console in a final attempt to log something. Make this final attempt non-blocking so that a blocking console doesn't end up blocking process which attempt to syslog something. In particular, this means you should be able to su and fix the problem if the console becomes blocking. MFC after: 3 weeks Notes: svn path=/head/; revision=91940
* This API will appear in FreeBSD 4.6.Dima Dorfman2002-03-091-1/+1
| | | | Notes: svn path=/head/; revision=91930
* Bring a comment in line with the code, and fix some spelling errorsDima Dorfman2002-03-091-4/+3
| | | | | | | | | | while I'm here. PR: 35394 Submitted by: andrew@ugh.net.au Notes: svn path=/head/; revision=91925
* Fix build. I commented out getpass() in readpassphrase.c because theBrian Feldman2002-03-091-3/+3
| | | | | | | | | | | | implementation did not match our manpage description (i.e., it could return NULL). I mistakenly thought we were still using getpass.c because, for some reason, CVS never removed it from the tree. Pointy hat received from: alfred Kick in the groin to: CVS Notes: svn path=/head/; revision=91922
* Update readpassphrase(3)to the latest revisions. Changes are mainly dueBrian Feldman2002-03-082-57/+146
| | | | | | | | | | to return value constraints now changing as well as more intelligent handling of signals. Obtained from: OpenBSD Notes: svn path=/head/; revision=91913
* Add new errno ``ENOATTR''.Brian Feldman2002-03-071-0/+3
| | | | Notes: svn path=/head/; revision=91814
* Introduce a version field to `struct xucred' in place of one of theDima Dorfman2002-02-272-1/+5
| | | | | | | | | | | | | | | spares (the size of the field was changed from u_short to u_int to reflect what it really ends up being). Accordingly, change users of xucred to set and check this field as appropriate. In the kernel, this is being done inside the new cru2x() routine which takes a `struct ucred' and fills out a `struct xucred' according to the former. This also has the pleasant sideaffect of removing some duplicate code. Reviewed by: rwatson Notes: svn path=/head/; revision=91354
* use _GENERIC_DIRSIZ(dp) to avoid copying too much of the dirent overAlfred Perlstein2002-02-261-2/+2
| | | | | | | | the user supplied buffer. this can be a problem when the user doesn't supply a full dirent and we corrupt their memory. Notes: svn path=/head/; revision=91330
* Per POSIX <grp.h> doesn't require <sys/types.h>.Maxim Sobolev2002-02-251-1/+0
| | | | | | | Submitted by: ache Notes: svn path=/head/; revision=91245
* Fixed divots that I created when I moved prototypes of group_from_gidWarner Losh2002-02-192-2/+3
| | | | | | | | | | and user_from_uid to grp.h and pwd.h. Update the man pages. Submitted by: David Malone Pointy hat to: imp Notes: svn path=/head/; revision=90878
* Use new-style function declations.Warner Losh2002-02-131-6/+2
| | | | Notes: svn path=/head/; revision=90605
* FreeBSD 4.1 bootstrapping aid (__FBSDID is not there).Ruslan Ermilov2002-02-082-0/+4
| | | | Notes: svn path=/head/; revision=90393
* Allow ldd(1) be used on shared libraries in addition to executables.Maxim Sobolev2002-02-041-0/+7
| | | | Notes: svn path=/head/; revision=90172
* Fixed tab lossage in vendor id and nearby style bugs in previous commit.Bruce Evans2002-02-011-1/+4
| | | | Notes: svn path=/head/; revision=90096
* Fixed syntax error in previous commit. It was non-fatal because it wasBruce Evans2002-02-011-3/+5
| | | | | | | | | | in conditional code that happens not to be compiled, and because gcc doesn't complain garbage after #endif by default. Fixed some style bugs in previous commit, 1.8 and 1.1. Notes: svn path=/head/; revision=90095
* Fixed slipage in editor.David E. O'Brien2002-02-011-0/+1
| | | | Notes: svn path=/head/; revision=90050
* Cut-n-paste in `list' mode considered harmful.David E. O'Brien2002-02-012-5/+5
| | | | Notes: svn path=/head/; revision=90049
* * Remove __P and convert to ANSI prototypes.David E. O'Brien2002-02-0116-264/+245
| | | | | | | | * Remove 'register'. (some functions had 7+ register functions...) * Fix SCM ID's. Notes: svn path=/head/; revision=90045
* * Remove 'register'. (some functions had 7+ register functions...)David E. O'Brien2002-02-0116-68/+77
| | | | | | | * Fix SCM ID's. Notes: svn path=/head/; revision=90041
* Fix SCM ID's.David E. O'Brien2002-02-0162-207/+166
| | | | Notes: svn path=/head/; revision=90039
* Fix minor style nit.David E. O'Brien2002-01-311-1/+3
| | | | Notes: svn path=/head/; revision=90030
* Fixed world breakage due to missing include of <sys/cdefs.h> in previousBruce Evans2002-01-314-5/+17
| | | | | | | | | | | | | | | commit. Fixed related style bugs: basename.c: misplaced '#if 0' dirname.c: misplaced '#if 0' getgrent.c: missing '#if 0', and tab lossage in vendor id (the previous commit fixed the complete corruption of the vendor id but lost a tab) getpwent.c: missing '#if 0' Notes: svn path=/head/; revision=90016
* Fix FreeBSD IDs.David E. O'Brien2002-01-305-15/+12
| | | | Notes: svn path=/head/; revision=89999
* Use ctime_r to build the timestamp for syslog, so that we don'tDavid Malone2002-01-251-2/+2
| | | | | | | | | | | clobber a ctime buffer which is passed in. PR: 34022 Submitted by: Hartmut Brandt <brandt@fokus.gmd.de> MFC after: 2 weeks Notes: svn path=/head/; revision=89805
* The sixth argument to the NET_RT_IFLIST sysctl is actually 0 forRuslan Ermilov2002-01-231-1/+1
| | | | | | | all interfaces, and ifnet.if_index value for a single interface. Notes: svn path=/head/; revision=89700
* Use the proper type (gid_t) for (group)->gr_gid to be orthogonalMark Murray2002-01-225-15/+16
| | | | | | | | | with uid_t usage and (user)->pw_uid. PR: 3242 Notes: svn path=/head/; revision=89663
* mdoc(7) police: tidy up OpenBSD fixes.Ruslan Ermilov2002-01-161-7/+5
| | | | Notes: svn path=/head/; revision=89428
* yp(4) -> yp(8).Ruslan Ermilov2002-01-142-4/+4
| | | | | | | PR: docs/30797 Notes: svn path=/head/; revision=89362
* Merge some updates and markup fixes from OpenBSD. This is mainlyCrist J. Clark2002-01-141-6/+30
| | | | | | | | | | motivated by the new "CAVEATS" section. Inspired by: alfred noting NetBSD's merging OpenBSD's changes Obtained from: OpenBSD Notes: svn path=/head/; revision=89323
* Include <stddef.h> to fix build problem when namespace pollutionDaniel Eischen2002-01-111-7/+8
| | | | | | | | | | | | by <signal.h> (including <time.h> so that NULL is accidentally defined) is removed. Style nits. Submitted by: bde Notes: svn path=/head/; revision=89269
* Fixed missing backslash in previous commit.Bruce Evans2002-01-111-1/+1
| | | | Notes: svn path=/head/; revision=89264
* Fixed accumulated unsorting and some other style bugs (long lines).Bruce Evans2002-01-111-11/+10
| | | | Notes: svn path=/head/; revision=89262
* Add getcontext, setcontext, makecontext, and swapcontext. TheseDaniel Eischen2002-01-102-1/+55
| | | | | | | | | | | | functions are defined in SUSv2 and the latest POSIX spec. Thanks to Bernd Walter <ticso@cicely8.cicely.de> for helping debug my alpha assembly. Approved by: -arch Notes: svn path=/head/; revision=89177
* If the OID is missing, sysctl(3) returns ENOENT, not EOPNOTSUPP.Ruslan Ermilov2001-12-131-2/+2
| | | | | | | | PR: docs/32793 Submitted by: Hartmut Brandt <brandt@fokus.gmd.de> Notes: svn path=/head/; revision=87794
* Start using .St macro for POSIX.1-2001.Ruslan Ermilov2001-12-081-2/+1
| | | | Notes: svn path=/head/; revision=87533
* Correct some egregious style bugs.Dag-Erling Smørgrav2001-12-041-13/+21
| | | | Notes: svn path=/head/; revision=87348
* Add a missing error check. This fixes a bug that would cause pwd_mkdb toDag-Erling Smørgrav2001-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 Notes: svn path=/head/; revision=87347
* Fix typos getpeerid -> getpeereid.Anton Berezin2001-12-021-2/+2
| | | | | | | | PR: docs/32442 Reviewed by: dd Notes: svn path=/head/; revision=87245
* Add support for sysconf(_SC_NPROCESSORS_CONF) and sysconf(_SC_NPROCESSORS_ONLN).Joseph Koshy2001-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) Notes: svn path=/head/; revision=87161
* Do not write warning messages on stderr - a caller is expected to checkAnton Berezin2001-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 Notes: svn path=/head/; revision=87054
* mdoc(7) police: markup cleanup.Ruslan Ermilov2001-11-221-15/+26
| | | | Notes: svn path=/head/; revision=86771
* mdoc(7) police: add missing comma.Ruslan Ermilov2001-11-221-1/+1
| | | | Notes: svn path=/head/; revision=86768
* fix compilation (include -> #include)Max Khon2001-11-211-1/+1
| | | | Notes: svn path=/head/; revision=86750
* Should also include namespace.hBrian Feldman2001-11-211-1/+3
| | | | | | | Submitted by: ru Notes: svn path=/head/; revision=86733
* Change certain syscalls from x to _x.Brian Feldman2001-11-211-7/+7
| | | | | | | Prodded by: bde Notes: svn path=/head/; revision=86732
* Introduce readpassphrase(3), a superset of getpass(3). ThisBrian Feldman2001-11-205-101/+256
| | | | | | | | | comes originally from Todd Miller. Obtained from: OpenBSD Notes: svn path=/head/; revision=86669