summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen
Commit message (Collapse)AuthorAgeFilesLines
* Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go).nectar2003-02-166-6/+10
| | | | | | | Only warnings that could be fixed without changing the generated object code and without restructuring the source code have been handled. Reviewed by: /sbin/md5
* Add dlinfo(3) manual page to the rank of base system manpagesphantom2003-02-151-2/+2
|
* Add examples of dlinfo() usage to manual page.phantom2003-02-151-1/+48
|
* o Document that dlsym()'s behaviour with new special handle RTLD_SELFphantom2003-02-141-1/+16
| | | | | o Add cross reference to dlinfo(3) o Minor mdoc nits
* Follow Solaris's manual page and describe Link_map structure herephantom2003-02-141-1/+29
|
* Add manual page for dlinfo(3). It's still need some work and addphantom2003-02-141-0/+191
| | | | examples, but it's better than nothing already.
* Implement dlinfo() function.kan2003-02-131-0/+8
| | | | | | | | | | Introdice RTLD_SELF special handle and properly process it within dlsym() and dlinfo() functions. The intention is to improve our compatibility with Solaris and to make a Java port easier. Partially submitted by: phantom
* o Implement C99 classification macros isfinite(), isinf(), isnan(),mike2003-02-124-90/+164
| | | | | | | | | isnormal(). The current isinf() and isnan() are perserved for binary compatibility with 5.0, but new programs will use the macros. o Implement C99 comparison macros isgreater(), isgreaterequal(), isless(), islessequal(), islessgreater(), isunordered(). Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU>
* This manual is called SIGNBIT(3) not FPCLASSIFY(3).mike2003-02-121-1/+1
|
* Implement C99's signbit() macro.mike2003-02-113-2/+100
|
* Handle %%m properly in syslog format string. Previously it would expandalfred2003-02-101-3/+13
| | | | | the %m into the errno and then vfprintf would expand the % and the first character of the strerror(3) return causing possible data corruption.
* Implement fpclassify():mike2003-02-083-2/+177
| | | | | | | | | | | | | | | | | | | | | | | | | | | o Add a MD header private to libc called _fpmath.h; this header contains bitfield layouts of MD floating-point types. o Add a MI header private to libc called fpmath.h; this header contains bitfield layouts of MI floating-point types. o Add private libc variables to lib/libc/$arch/gen/infinity.c for storing NaN values. o Add __double_t and __float_t to <machine/_types.h>, and provide double_t and float_t typedefs in <math.h>. o Add some C99 manifest constants (FP_ILOGB0, FP_ILOGBNAN, HUGE_VALF, HUGE_VALL, INFINITY, NAN, and return values for fpclassify()) to <math.h> and others (FLT_EVAL_METHOD, DECIMAL_DIG) to <float.h> via <machine/float.h>. o Add C99 macro fpclassify() which calls __fpclassify{d,f,l}() based on the size of its argument. __fpclassifyl() is never called on alpha because (sizeof(long double) == sizeof(double)), which is good since __fpclassifyl() can't deal with such a small `long double'. This was developed by David Schultz and myself with input from bde and fenner. PR: 23103 Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU> (significant portions) Reviewed by: bde, fenner (earlier versions)
* Grammer fix.mikeh2003-02-041-1/+1
|
* Add getosreldate.3 to the Makefile.trhodes2003-01-301-1/+1
|
* Add a manual page for getosreldate.c.trhodes2003-01-301-0/+65
| | | | | | PR: 46365 Submitted by: gioria (original version) OK'ed by: alfred (older version)
* Add const qualifier to data argument for msgsnd.alfred2003-01-261-1/+1
| | | | | PR: standards/45274 Submitted by: Craig Rodrigues <rodrigc@attbi.com>
* Sync with NetBSD -- sl_add() now returns an int.obrien2003-01-192-9/+23
|
* Add a missing word.tjr2003-01-151-1/+1
|
* Document the named semaphore functions. This could still use a bittjr2003-01-151-18/+165
| | | | of polishing.
* Back out previous; sharing semaphores between processes only workstjr2003-01-141-8/+16
| | | | in certain special cases.
* Sharing semaphores between processes works now, so remove the stale commentstjr2003-01-141-16/+8
| | | | | about it always returning EPERM. Document that ENFILE occurs when the limit on kernel semaphores is reached.
* Cross reference sem(4) so users know which kernel options are requiredtjr2003-01-145-5/+10
| | | | to use these semaphore functions.
* Add the newly created semaphore to the named semaphore list in sem_open()tjr2003-01-141-1/+2
| | | | | | so that multiple opens of the same semaphore without an intervening sem_close() return the same object, and so that sem_close() does not segfault while trying to remove the item from the list.
* Avoid a memory leak by using reallocf() instead of realloc().tjr2003-01-101-1/+1
|
* Prototype __getcwd() to avoid a warning.tjr2003-01-101-0/+2
|
* #include <ctype.h> for prototypes (or macro versions) oftjr2003-01-101-0/+1
| | | | tolower() and isdigit().
* #include "namespace.h" to get a prototype for _err().tjr2003-01-071-0/+2
|
* Use hidden names (_close, _dup2, _waitpid, etc.) where appropriate.tjr2003-01-071-22/+22
|
* Fix a number of bugs noticed by more extensive testing:tjr2003-01-041-7/+15
| | | | | | | | | | o Call waitpid() if an error occurs after forking the child process to avoid leaving zombies around. o Handle the WRDE_DOOFS|WRDE_APPEND combination correctly o Do not confuse $( substitution with $(( shell arithmetic (noticed by wollman) o Handle backslash escaping properly o Allow $( and ${ to be quoted
* Rename UL_GETSIZE to UL_GETFSIZE and UL_SETSIZE to UL_SETFSIZE; these aretjr2003-01-042-6/+6
| | | | | the names required by 1003.1-2001. The old names are retained for source compatibility with FreeBSD 5.0 and will be removed before 6.0.
* Remove unused variable: sz.tjr2003-01-041-2/+0
|
* Remove unused variable: size.tjr2003-01-041-1/+1
|
* #include <string.h> for strcmp()'s prototype.tjr2003-01-041-0/+1
|
* Remove unused variable: omask.tjr2003-01-041-1/+0
|
* #include <sys/linker.h> for kldload()'s prototype.tjr2003-01-041-0/+1
|
* #include <string.h> for strlen()'s prototype.tjr2003-01-041-0/+1
|
* #include <ctype.h> for isspace()'s prototype (or a macro version).tjr2003-01-031-0/+1
|
* Remove an unused variable: `sb' in fts_read().tjr2003-01-032-2/+0
|
* Remove an unused variable, `sverrno', which has not been used since 1.11.tjr2003-01-031-1/+0
|
* It is no longer necessary to include sys/types.h before wordexp.h.tjr2003-01-031-1/+0
|
* popen() is a function, not an argument.tjr2003-01-031-1/+1
|
* Protect pidlist with a mutex to avoid a race causing a duplicate free()tjr2003-01-031-8/+24
| | | | | | | when the same pipe FILE is pclosed()'d in different threads, and to avoid corrupting the linked list when adding or removing items. The symptoms of the linked list getting corrupted were pclose() either not finding the pipe on the list, or the list becoming circular and pclose() looping infinitely.
* In cgetmatch(3), return -1 if a NULL or 0-length name parameter is used.thomas2003-01-021-0/+3
| | | | | | | | | | | This situation most notably arises in chkprintcap, when a /etc/printcap entry has an empty rp= attribute. In that case, cgetmatch would enter an infinite loop if any entry in the file has multiple names. This causes lpd to hang at boot time on 5.0-DP2 when both conditions are met (:rp=: and multiple names -- not necessarily on the same entry). Reviewed by: roberto
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-011-2/+2
| | | | especially in troff files.
* Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/schweikh2002-12-303-3/+3
| | | | Add FreeBSD Id tag where missing.
* Back out the s/int */size_t */ commit.obrien2002-12-302-2/+2
| | | | | It makes a difference on 64-bit arches, and no one really wants a 2^64 block size [yet].
* Fix LP64 architectures and especially ia64. Functions that returnmarcel2002-12-302-0/+2
| | | | | | | | | a pointer and lack a prototype will have the return value (assumed to be an integer) zero-extended to a pointer. On ia64 this is unconditionally fatal as it zeroes-out the region bits, forming an invalid pointer. Fix the sigsegv by including <stdlib.h>. Pointy hat: bbraun
* Use `useconds_t' instead of `u_int' or `unsigned int' where appropriate.mike2002-12-294-7/+7
|
* english(4) police.schweikh2002-12-276-6/+6
|
* Silence casting away constness warnings.alfred2002-12-271-5/+12
| | | | | Make cgetmatch's locals const. Make cdbget take a const string and copy it into a buffer.
OpenPOWER on IntegriCloud