summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen
Commit message (Collapse)AuthorAgeFilesLines
* Assorted markup fixes.ru2005-06-152-14/+33
| | | | Approved by: re
* When IPC_NOWAIT is set and there is no message, msgrcv() failsru2005-06-141-3/+3
| | | | | | | | with errno set to ENOMSG. PR: docs/82217 Submitted by: delphij Approved by: re (blanket)
* reduce strlen() call.ume2005-05-201-4/+6
|
* use reentrant.h and simplify.ume2005-05-201-29/+20
|
* check return value of ttyname_r().ume2005-05-201-1/+2
|
* ttyname_r() didn't pass correct buffer size to devname_r().ume2005-05-201-1/+1
|
* Revert to old ttyname_r behavior that when _ioctl() returns 0 (SUCCEEDED),delphij2005-05-141-1/+1
| | | | | | | | | return the buffer immediately. This will permit ssh and/or PAM logins broken by previous commit. The (potential) underlying problem is still under investigation. Point hat to: me
* Provide more POSIX-complaint ttyname_r(3) interface[1], which is slightlydelphij2005-05-132-22/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | different from what has been offered in libc_r (the one spotted in the original PR which is found in libthr has already been removed by David's commit, which is rev. 1.44 of lib/libthr/thread/thr_private.h): - Use POSIX standard prototype for ttyname_r, which is, int ttyname_r(int, char *, size_t); Instead of: char *ttyname_r(int, char *, size_t); This is to conform IEEE Std 1003.1, 2004 Edition [1]. - Since we need to use standard errno for return code, include errno.h in ttyname.c - Update ttyname(3) implementation according to reflect the API change. - Document new ttyname_r(3) behavior - Since we already make use of a thread local storage for ttyname(3), remove the BUGS section. - Remove conflicting ttyname_r related declarations found in libc_r. Hopefully this change should not have changed the API/ABI, as the ttyname_r symbol was never introduced before the last unistd.h change which happens a couple of days before. [1] http://www.opengroup.org/onlinepubs/009695399/functions/ttyname.html Requested by: Tom McLaughlin <tmclaugh sdf lonestar org> Through PR: threads/76938 Patched by: Craig Rodrigues <rodrigc crodrigues org> (with minor changes) Prompted by: mezz@
* Connect MLINKS for ttyname_r(3), and add prototype into unistd.h.delphij2005-05-111-1/+1
|
* Cleanup for getgrouplist(3):delphij2005-05-031-8/+6
| | | | | | | | - Use /*- instead of /* for copyright section - Include unistd.h for prototype of it - Sort and separate includes as described in style(9) - ANSIfy the function defination - Use const for the traversing iterator
* Include paths.h for prototype of getbootfile(3).delphij2005-05-031-0/+2
|
* Add a sysctl that returns the full path of a process' text file.das2005-04-181-3/+9
| | | | | This information is needed by things like `gdb -p' and Sun's javac, and previously it could only be obtained via procfs
* Remove unused variables and assignments.stefanf2005-04-081-1/+0
|
* Use prototypes in the function definitions.stefanf2005-04-082-34/+14
|
* Add some missing errnos from POSIX. Nothing in FreeBSD generatesdas2005-04-021-0/+5
| | | | | | | | | | these at the moment, but applications that test for them will now have a better chance of compiling. I have intentionally omitted errnos that are only good for STREAMS, since apps that use STREAMS won't compile anyway. The exception is EPROTO, which was apparently intended for STREAMS, but worth having anyway because Linux (mis)uses it for other things.
* Use __weak_reference macro to define weak symbols.davidxu2005-03-211-31/+51
|
* Teach fmtcheck() about the ' (thousands separator) flag.das2005-03-211-1/+1
|
* Have ttyname_r() try to ask DEVFS for the device name.phk2005-03-082-35/+16
| | | | | | Document ttyname_r(). Simplify threaded/unthreaded stuff a lot.
* Make the returnvalue of times(3) insensitive to changes in wall-clock.phk2005-03-081-3/+5
| | | | PR: 78537
* Add manpage links for frexpf, frexpl, ldexpf, and ldexpl.das2005-03-071-0/+2
|
* Document frexpl and ldexpl.das2005-03-072-13/+25
|
* Fix incorrect comment.davidxu2005-03-011-1/+1
|
* Mark _rtld_allocate_tls and _rtld_free_tls as weak symbols for Variant Idavidxu2005-02-261-0/+5
| | | | | | tls. Reviewed by: dfr
* Add an EXAMPLES section[1], quote Nd, and bump doc date.trhodes2005-02-231-2/+12
| | | | | PR: 53621 [1] Submitted by: Faried Nawaz <fn@hungry.com> [1]
* Expand contractions.ru2005-02-132-2/+2
|
* Expand *n't contractions.ru2005-02-134-11/+11
|
* Fixed the misplaced $FreeBSD$.ru2005-02-091-1/+1
|
* Update my email address.das2005-02-062-2/+2
|
* - Move the functions presently described in in ieee(3) to their owndas2005-01-272-2/+9
| | | | | | | | manpages. They are not very related, so separating them makes it easier to add meaningful cross-references and extend some of the descriptions. - Move the part of math(3) that discusses IEEE 754 to the ieee(3) manpage.
* - Document ldexpf().das2005-01-231-17/+12
| | | | | | - Although ldexp() is in libc for backwards compatibility, ldexpf() is in its proper place in libm. Document both as being in libm. - The ldexp() and ldexpf() functions conform to C99.
* - Document frexpf().das2005-01-231-9/+13
| | | | | | | - Neither frexp() nor frexpf() set errno. - Although frexp() is in libc for backwards compatibility, frexpf() is in its proper place in libm. Document both as being in libm. - The frexp() and frexpf() functions conform to C99.
* Replace the ldexp() implementation in libc with a renamed copy of thedas2005-01-221-0/+123
| | | | | | | | | | | | | | | | scalbn() implementation from libm. (The two functions are defined to be identical, but ldexp() lives in libc for backwards compatibility.) The old ldexp() implementation... - was more complicated than this one - set errno instead of raising FP exceptions - got some corner cases wrong (e.g. ldexp(1.0, 2000) in round-to-zero mode) The new implementation lives in libc/gen instead of libc/$MACHINE_ARCH/gen, since we don't need N copies of a machine-independent file. The amd64 and i386 platforms retain their fast and correct MD implementations and override this one.
* Sort sections.ru2005-01-2017-188/+188
|
* Markup: convert a display to a list.ru2005-01-151-10/+19
|
* remember to reset nextgrp in getnetgrent(), so that subsequent calls to ↵jon2005-01-131-0/+1
| | | | | | getnetgrent() doesn't return bogus information. MFC after: 3 days
* The `timep' argument of utime() is not an array of structs.keramida2005-01-071-1/+7
| | | | | | | Make sure we don't confuse the reader by claiming it is. PR: docs/75615 Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>
* Update manual page after adding 'fts_bignum' field.pjd2005-01-071-1/+24
| | | | | Submitted by: Peter Jeremy <PeterJeremy@optushome.com.au> MFC after: 5 days
* Introduce new field 'fts_bignum' which is 64bit long and will allow topjd2005-01-071-2/+10
| | | | | | | | | | | | | | | make utilities like du(1) 64bit-clean. When this field is used, one cannot use 'fts_number' and 'fts_pointer' fields. This commit doesn't break API nor ABI. This work is part of the BigDisk project: http://www.FreeBSD.org/projects/bigdisk/ Discussed on: arch@ MFC after: 5 days
* Make syslog(3) thread safe.glebius2004-12-301-9/+53
| | | | | | | PR: bin/72394 Submitted by: Dan Nelson Reviewed by: deischen MFC after: 2 weeks
* Add LOG_NTP facility.krion2004-12-301-1/+3
| | | | | | Submitted by: Kurt Jaeger <pi at complx dot LF dot net> Approved by: ru MFC after: 3 days
* Mark up SIGSTOP with .Dv and use .Nm in HISTORY for marking up `signal'.keramida2004-12-291-3/+3
| | | | | PR: docs/75615 Submitted by: n-kogane@syd.odn.ne.jp
* Restore standard behavior: log to console only when normal loggingglebius2004-12-241-2/+3
| | | | | | | | | failed, not always. PR: bin/75356 Submitted by: Mark Knight <markk knigma org> Pointy hat to: glebius MFC after: 3 days
* Better rendering of the prototype for signal(3).jkoshy2004-12-231-6/+14
| | | | Suggested by: ru
* o The macro versions of sigemptyset(3), sigfillset(3), sigaddset(3),maxim2004-12-161-9/+12
| | | | | | | | | | | | | sigdelset(3) and sigismember(3) were killed about five years ago. o The functions (specifically sigismember(3)) could return -1 and set errno. PR: bin/75156 Obtained from: NetBSD MFC after: 2 weeks o Bump the date of the document.
* Fix description: the argument to setcontext(3) must have been previouslyrse2004-12-031-1/+1
| | | | | | | initialized "by a call to getcontext(3) or makecontext(3)" and not "by a call to setcontext(3) or makecontext(3)". MFC after: 3 days
* Remove ntp_gettime.c which was a wrapper around sysctlbyname(3).marks2004-11-182-54/+1
| | | | | | | This is now a native system call. Reviewed by: imp, phk, njl, peter Approved by: njl
* Add knob NO_NIS (fka NO_YP_LIBC) and make world compileable when set.bz2004-11-131-1/+1
| | | | | | | | | | | If turned on no NIS support and related programs will be built. Lost parts rediscovered by: Danny Braniss <danny at cs.huji.ac.il> PR: bin/68303 No objections: des, gshapiro, nectar Reviewed by: ru Approved by: rwatson (mentor) MFC after: 2 weeks
* Protect against local flooder of /var/run/log. Do not loop forever inglebius2004-11-041-13/+41
| | | | | | | | | | | | | syslog(3) if we are a priveleged program (sshd, su, etc.). - Make syslogd open an additional socket /var/run/logpriv, with 0600 permissions. - In libc, try to use this socket. - Do not loop forever if we are using this socket (partial backout of 1.31) Reviewed by: dwmalone, Andrea Campi <andrea webcom it> Approved by: julian (mentor) MFC after: 1 month
* When send()ing to syslogd return ENOBUFS keep trying until success.glebius2004-10-081-8/+18
| | | | | | | | | | This fixes a case, when DoSed syslogd completely loses messages. PR: bin/72366 Discussed with: dwmalone, millert@OpenBSD.org Approved by: julian (mentor) Obtained from: OpenBSD (rev. 1.17, 1.21 by millert) MFC after: 3 months
* Mutually cross-reference sysexits(3) and err(3). Add text to err(3)jkoshy2004-10-041-1/+6
| | | | | | recommending that the standard exit codes in sysexits(3) be used. Reviewed by: ru
OpenPOWER on IntegriCloud