summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/Makefile.inc
Commit message (Collapse)AuthorAgeFilesLines
...
* Add a feature_present(3) function which checks to see if a named kerneljhb2008-01-101-2/+3
| | | | | | feature is present by checking the kern.features sysctl MIB. MFC after: 1 week
* Add a new file descriptor type for IPC shared memory objects and use it tojhb2008-01-081-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | implement shm_open(2) and shm_unlink(2) in the kernel: - Each shared memory file descriptor is associated with a swap-backed vm object which provides the backing store. Each descriptor starts off with a size of zero, but the size can be altered via ftruncate(2). The shared memory file descriptors also support fstat(2). read(2), write(2), ioctl(2), select(2), poll(2), and kevent(2) are not supported on shared memory file descriptors. - shm_open(2) and shm_unlink(2) are now implemented as system calls that manage shared memory file descriptors. The virtual namespace that maps pathnames to shared memory file descriptors is implemented as a hash table where the hash key is generated via the 32-bit Fowler/Noll/Vo hash of the pathname. - As an extension, the constant 'SHM_ANON' may be specified in place of the path argument to shm_open(2). In this case, an unnamed shared memory file descriptor will be created similar to the IPC_PRIVATE key for shmget(2). Note that the shared memory object can still be shared among processes by sharing the file descriptor via fork(2) or sendmsg(2), but it is unnamed. This effectively serves to implement the getmemfd() idea bandied about the lists several times over the years. - The backing store for shared memory file descriptors are garbage collected when they are not referenced by any open file descriptors or the shm_open(2) virtual namespace. Submitted by: dillon, peter (previous versions) Submitted by: rwatson (I based this on his version) Reviewed by: alc (suggested converting getmemfd() to shm_open())
* Add fts_set_clientptr(3), fts_get_clientptr(3) and fts_get_stream(3) manscf2007-09-281-1/+2
| | | | | | | | page links to fts(3). Approved by: wes Approved by: re (hrs) MFC after: 5 days
* Change the C wrappers for mmap/lseek/pread/pwrite/truncate/ftruncate topeter2007-07-041-1/+2
| | | | | | | | | call the pad-less versions of the corresponding syscalls if the running kernel supports it. Check kern.osreldate once per program and cache the result to select the appropriate syscall. This maintains userland compatability with kernel.old's from quite a while back. Approved by: re (kensmith)
* Retire more remnants of a.out support, as threatened in 2002.peter2007-01-251-2/+2
| | | | Laughed-at-by: kris
* Add each directory's symbol map file to SYM_MAPS.deischen2006-03-131-0/+2
|
* Add MLINK for execvP(3).jhb2005-12-011-1/+1
| | | | | | PR: docs/89783 Submitted by: Andreas Kohn andreas at syndrom23 dot de MFC after: 3 days
* Add an MLINK for devname_r().stefanf2005-09-101-0/+1
|
* Add missing links from getgrent_r.3, getgrnam_r.3, and getgrgid_r.3 tosimon2005-08-121-1/+2
| | | | | | | getgrent.3. Submitted by: Ulf Lilleengen <lulf@kerneled.org> MFC after: 3 days
* Connect MLINKS for ttyname_r(3), and add prototype into unistd.h.delphij2005-05-111-1/+1
|
* Add manpage links for frexpf, frexpl, ldexpf, and ldexpl.das2005-03-071-0/+2
|
* - Move the functions presently described in in ieee(3) to their owndas2005-01-271-1/+2
| | | | | | | | 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.
* Remove ntp_gettime.c which was a wrapper around sysctlbyname(3).marks2004-11-181-1/+1
| | | | | | | This is now a native system call. Reviewed by: imp, phk, njl, peter Approved by: njl
* Replace the current implementations of ftw() and nftw() with the OpenBSDtjr2004-08-241-1/+1
| | | | | implementations written by Todd C. Miller. These are cleaner, less buggy and actively maintained.
* Add stubs for TLS functions. These will be replaced at runtime by thedfr2004-08-031-3/+4
| | | | functional versions in rtld.
* Add an nftw(3) link.tjr2004-07-251-0/+1
|
* Fix two bugs in the signbit() macro, which was implemented last year:das2004-07-191-3/+2
| | | | | | | | - It was added to libc instead of libm. Hopefully no programs rely on this mistake. - It didn't work properly on large long doubles because its argument was converted to type double, resulting in undefined behavior.
* Replace seven nominally MD implementations of frexp() that are brokendas2004-07-181-1/+1
| | | | for subnormals with one implementation that works.
* Implement the classification macros isfinite(), isinf(), isnan(), anddas2004-07-091-1/+1
| | | | | | | | | | | | | | | | | | | | | isnormal() the hard way, rather than relying on fpclassify(). This is a lose in the sense that we need a total of 12 functions, but it is necessary for binary compatibility because we have never bumped libm's major version number. In particular, isinf(), isnan(), and isnanf() were BSD libc functions before they were C99 macros, so we can't reimplement them in terms of fpclassify() without adding a dependency on libc.so.5. I have tried to arrange things so that programs that could be compiled in FreeBSD 4.X will generate the same external references when compiled in 5.X. At the same time, the new macros should remain C99-compliant. The isinf() and isnan() functions remain in libc for historical reasons; however, I have moved the functions that implement the macros isfinite() and isnormal() to libm where they belong. Moreover, half a dozen MD versions of isinf() and isnan() have been replaced with MI versions that work equally well. Prodded by: kris
* Add implementations of ftw(3) and nftw(3) and the corresponding headerdas2004-07-051-2/+3
| | | | | | | | ftw.h. This is the implementation written by Joel Baker <fenton@debian.org> for inclusion in NetBSD, but with several bugfixes. Obtained from: Debian
* Belatedly remove the getvfsent(3) API. All the consumers have beenmux2004-04-111-5/+2
| | | | | updated to use getvfsbyname(3) or the vfs.conflist sysctl since a long time, except mount_smbfs(8) which has just been fixed.
* Fixed style of previous commit.ru2004-01-151-3/+2
| | | | Submitted by: bde
* - libc/sys/sem.c was repocopied to libc/gen/sem.c.ru2004-01-141-2/+7
| | | | | | | - sem_*(3) manpages were repocopied from libc_r. Reviewed by: deischen Repocopy by: markm
* Add the POSIX 1003.1-2001 posix_madvise() interface.bms2003-08-091-1/+2
| | | | | | PR: standards/54634 Reviewed by: das Approved by: jake (mentor)
* = Implement name service switch modules (NSS modules). NSS modulesnectar2003-04-171-1/+3
| | | | | | | | | | | | | | | | | | | | | may be built into libc (`static NSS modules') or dynamically loaded via dlopen (`dynamic NSS modules'). Modules are loaded/initialized at configuration time (i.e. when nsdispatch is called and nsswitch.conf is read or re-read). = Make the nsdispatch(3) core thread-safe. = New status code for nsdispatch(3) `NS_RETURN', currently used to signal ERANGE-type issues. = syslog(3) problems, don't warn/err/abort. = Try harder to avoid namespace pollution. = Implement some shims to assist in porting NSS modules written for the GNU C Library nsswitch interface. Sponsored by: DARPA, Network Associates Laboratories
* - Add setfstab() and getfstab().mdodd2003-04-071-1/+2
| | | | | - Use the environment variable 'PATH_FSTAB' if set rather than the hardcoded '/etc/fstab' (fstab.h:_PATH_FSTAB)
* Add dlinfo(3) manual page to the rank of base system manpagesphantom2003-02-151-2/+2
|
* o Implement C99 classification macros isfinite(), isinf(), isnan(),mike2003-02-121-2/+6
| | | | | | | | | 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>
* Implement C99's signbit() macro.mike2003-02-111-2/+3
|
* Implement fpclassify():mike2003-02-081-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* Add getosreldate.3 to the Makefile.trhodes2003-01-301-1/+1
|
* Add an implementation of the POSIX wordexp() and wordfree() functions,tjr2002-12-261-2/+3
| | | | | | | which perform shell-style word expansion on strings. This is still a little rough around the edges. PR: 13420
* libc_r wasn't so tied to libc for 22 months.ru2002-11-181-5/+3
|
* Create a small library function, check_utility_compat(3), to determinewollman2002-10-281-2/+2
| | | | | | | | whether a named utility should behave in FreeBSD 4.x-compatible mode or in a standard mode (default standard). The configuration is done malloc(3)-style, with either an environment variable or a symlink. Update expr(1) to use this new interface.
* Drop almost 3k from /bin/sync by moving errno to a seperate filepeter2002-10-091-1/+1
| | | | | | to avoid all syscalls pulling in sys_errlst[]. Noted by: bde
* Add man pages for getcontext()/setcontext(), makecontext()/swapcontext(),archie2002-09-111-5/+7
| | | | | | | and ucontext_t. Reviewed by: mini MFC after: 3 days
* Implement POSIX.1-2001 (XSI)'s ulimit(3).mike2002-08-081-3/+3
| | | | Submitted by: Kyle Martin <mkm@ieee.org>
* Implement POSIX.1-2001 (XSI)'s fmtmsg(3).mike2002-08-051-2/+2
|
* Add statvfs(3) to the build.wollman2002-07-131-2/+3
| | | | Tested by: Steve Kargl
* Actually document pselect(3) so that Bruce can mention it in the releasewollman2002-06-171-1/+1
| | | | notes. :-)
* Add pselect(3) to the build. Need to figure out the most appropriatewollman2002-06-151-1/+1
| | | | way to document this interface.
* Add link dlopen(3) -> dlfunc(3).wollman2002-05-291-1/+2
| | | | Reminded by: mike
* Reorganize dlfcn.h slightly to separate out XSI and BSD interfaces.wollman2002-05-291-1/+1
| | | | | | | | Add new dlfunc() interface, which is a version of dlsym() with a return type that can be cast to a function pointer without turning your computer into a frog. Reviewed by: freebsd-standards
* Generate the normal asm stubs for all sysv system calls. Use these insteadjake2002-05-231-4/+3
| | | | | | | of C wrappers for the *sys indirect system calls. The indirect system calls are horribly broken on sparc64. Submitted by: tmm
* Move swapcontext.c to the ${MACHINE_ARCH}/gen/Makefile.inc area, otherwisepeter2002-03-211-1/+1
| | | | | it causes undefined references to getcontext() and setcontext() on platforms other than i386 and alpha.
* Fixed missing backslash in previous commit.bde2002-01-111-1/+1
|
* Fixed accumulated unsorting and some other style bugs (long lines).bde2002-01-111-11/+10
|
* Add getcontext, setcontext, makecontext, and swapcontext. Thesedeischen2002-01-101-1/+1
| | | | | | | | | 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
* Introduce readpassphrase(3), a superset of getpass(3). Thisgreen2001-11-201-2/+3
| | | | | | comes originally from Todd Miller. Obtained from: OpenBSD
* Create link from directory.3 to readdir_r.3.dd2001-11-161-2/+2
| | | | | PR: 32028 Submitted by: andrew@ugh.net.au
OpenPOWER on IntegriCloud