summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* MNT_NODEV is deprecated.ru2004-11-292-7/+2
|
* When required to negate the absoulte result of a division/remainderpeadar2004-11-271-1/+1
| | | | | | | | | | | | | | operation (by subtracting the absolute result from 0), don't test for overflow. This avoids an arithmetic exception when dividing LONG_MIN by 1: This is the only case that causes overflow, and the resulting value is correct under 2's compliment arithmetic. PR: 72024 Approved by: dwmalone@ Obtained from: NetBSD MFC after: 4 days
* Fix computation of the 'n' argument to mbrtowc (through XMBRTOWC) to avoidtjr2004-11-211-4/+4
| | | | | | | | | | reading past 'stop' in various places when converting multibyte characters. Reading too far caused truncation to not be detected when it should have been, eventually causing regexec() to loop infinitely in with certain combinations of patterns and strings in multibyte locales. PR: 74020 MFC after: 4 weeks
* 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 a note that currently two syntax styles for label element declarationcsjp2004-11-181-3/+16
| | | | | | | | | is supported. -Document the new more preferred syntax -Add examples for the new syntax -Add a note that the old syntax will be deprecated in the future. Reviewed by: rwatson
* Remove 80386 support from libc.jhb2004-11-162-12/+0
|
* Document more fields of struct stat.yar2004-11-151-0/+32
| | | | | Note to mdoc(7) police: The document date has already been touched today.
* Use .Vt "struct stat" consistently.yar2004-11-151-1/+1
|
* Nitpicking on grammar.yar2004-11-151-1/+1
|
* Improve mdoc(7) markup of the page: add several missing macros,yar2004-11-151-10/+10
| | | | use .Va instead of .Li for struct stat fields.
* Document the S_IS*(mode) macros used to test for file types.yar2004-11-151-1/+27
| | | | Bump the document date accordingly.
* Add knob NO_NIS (fka NO_YP_LIBC) and make world compileable when set.bz2004-11-134-3/+5
| | | | | | | | | | | 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
* sranddev() is not magic pixie dust. While it gives a good randomimp2004-11-101-2/+4
| | | | | | | | seed, the random number generator rand(3) still sucks and is unlikely sufficient for crypto use. Correct what appears to be a cut and paste error from the srandomdev() man page. Submitted by: Ben Mesander
* Use the RET macro.cognet2004-11-0917-52/+52
| | | | | For setjmp() and longjmp(), put the signal mask where it's supposed to be, instead of in the space reserved for fp regs.
* Add a week alias __siglongjmp => siglongjmp.cognet2004-11-091-0/+1
|
* MFKernel: Implement ffs with clz on Xscale.cognet2004-11-071-0/+6
|
* When building the custom i386 libraries for use on amd64 kernels, wepeter2004-11-066-0/+170
| | | | | | | | | can't use the i386_set_ldt() family of routines, because they are not implemented. Instead, use the recently exposed direct access sysarch routines for setting what %fs and %gs point to. Use this for the i386 TLS _set_tp() routine, but only when compiling to run as a 32 bit support binary for amd64 kernels.
* Don't define SOFTFLOAT directly in source files, it's now done in the Makefile.cognet2004-11-052-2/+1
|
* Fix signalcontext and makecontext.cognet2004-11-053-14/+17
|
* Remove getcontext.S, it is not needed.cognet2004-11-052-64/+1
|
* Import a Makefile for arm.cognet2004-11-051-0/+8
|
* 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
* Add glibc-style strftime(3) padding specifiers, namely, -(no padding),delphij2004-11-042-21/+79
| | | | | | | | | | | | _(use space as padding), and 0(zero padding). These GNU extensions are widely used ones that is worthy for us to have. Discussed with: stefanf, roam, -current Approved by: murray Prodded by: ports/72722, ports/72723 MFC After: 1 month
* Fix brk(3). The stack was unbalanced when we jumped to cerror. Oops!peter2004-10-271-0/+1
| | | | | | This causes nasty things like SEGV or a cpu spin when we return. Submitted by: "James R. Van Artsalen" <james@jrv.org>
* Add necessary whitespace to correct cross references.ceri2004-10-271-2/+2
| | | | | PR: docs/73193 Submitted by: Jilles Tjoelker <jilles at stack.nl>
* Reword the last change a bit, add mdoc(7) markup.yar2004-10-252-2/+6
| | | | Discussed with: bde
* For variables that are only checked with defined(), don't provideru2004-10-245-6/+6
| | | | any fake value.
* Sync with sys/i386/include/endian.h: use the single instruction 'bswap'.obrien2004-10-182-0/+8
|
* Since sendfile(2) works on regular files only,yar2004-10-181-1/+1
| | | | | | | which have no negative offsets, "negative" and "invalid" are equivalent WRT the offset argument. Suggested by: bde
* Remove setrunelocale()ache2004-10-181-23/+0
|
* Document EMSGSIZE return from recvmsg due to insufficient free filesalfred2004-10-171-1/+10
| | | | when transfering rights (file descriptors.)
* Remove the obsolete <rune.h> interface.tjr2004-10-1711-846/+11
|
* Remove support for the obsolete UTF2 encoding.tjr2004-10-179-317/+3
|
* Bump the libc major version number to 6.tjr2004-10-171-1/+1
|
* Document that the length modifier l is ignored for floating pointstefanf2004-10-161-1/+3
| | | | conversion specifiers (a, A, e, E, f, F, g and G).
* Explain it is a negative offset that EINVAL may indicate.yar2004-10-162-4/+4
| | | | | | | Now readers won't get an impression that pointing to beyond the current end of file will result in EINVAL. MFC after: 1 week
* Improve mdoc(7) markup.yar2004-10-161-3/+9
|
* Give details on what will happen if the `offset' argumentyar2004-10-161-2/+6
| | | | | | | | | to sendfile(2) falls beyond the end of file. Touch .Dd. PR: bin/72649 (in the audit trail) MFC after: 1 week
* Enable building with LIBC_SCCS defined.obrien2004-10-1610-13/+10
| | | | Bug submitted by: Andrea Campi <andrea+freebsd_current@webcom.it>
* Try to bring some sanity to the SCM ID's.obrien2004-10-1644-71/+67
| | | | | | + spell LIBC_SCCS consistently + enable builds with LIBC_SCCS defined to not syntax error + minor SCM reformatting to try to have some consistency
* Remove extra closing parenthesis added in revision 1.4.stefanf2004-10-141-1/+1
| | | | Noticed by: Andrea Campi
* Correctly document the return value of strerror() and strerror_r() andkeramida2004-10-121-11/+10
| | | | | | | | the contents of the returned buffer for unknown error codes. PR: docs/72578 Submitted by: Jilles Tjoelker <jilles@stack.nl> MFC after: 3 days
* o Backout rev. 1.16, see 1.3 commit log for more info.maxim2004-10-091-6/+4
| | | | | | | | | | | Requested by: bde o Remove unneeded sys/types.h and netinet/in.h from the synopsis and the example. o We do have struct in_addr in arpa/inet.h, so no need for netinet/in.h. o Mention where AF_* constants defined are. Educated by: bde
* 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
* Make less wrong for desciptions of signal handlingjulian2004-10-081-41/+53
| | | | MFC in: 1 week
* 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
* Don't add integers to void pointers.stefanf2004-10-031-1/+2
|
* Directly include <runetype.h> for _CurrentRuneLocale, <_ctype.h> doesn'tstefanf2004-10-031-0/+1
| | | | include it in all cases.
* Reflect the fact addr2ascii(3) and ascii2addr(3) need sys/socket.hmaxim2004-09-291-0/+1
| | | | | | | for AF_* constants. Submitted by: Matthew George MFC after: 2 weeks
* Remove __isnanl() to avoid conflicting with the same function in libm.das2004-09-241-10/+0
| | | | | | | | | | | __isnan() and __isnanf() must remain in libc for hysterical raisins. On the other hand, __isnanl() must live in libm because libm uses it internally and can't depend on older versions of libc to provide it. Fortunately, we don't need __isnanl() in both libraries. Prodded by: ale PR: 71698 MT5 candidate
OpenPOWER on IntegriCloud