summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Introduce a new proc service routine ps_linfo() to get LWP info.davidxu2006-02-071-0/+1
|
* Remove spurious "union arg" from printf.hphk2006-02-041-2/+0
| | | | Make sure to always print something in the alternate time format.
* Analogous to __printflike and __scanflike, add the macro __format_arg whichstefanf2006-01-262-8/+2
| | | | | | | expands to the GCC format_arg attribute if supported. This fixes a syntax error in <nl_types.h> for compilers/tools not implementing the GCC __attribute__ extensions.
* Make the %V{is} extension handle a NULL pointer like %s does: output "(null)"phk2006-01-251-4/+12
| | | | | | | | | | | | | Add %M{essage} extension which prints an errno value as the corresponding string if possible or numerically otherwise. It is not currently possible to do the syslog(3) like %m extension because errno would need to get capatured on entry to the first function in the printf family, so %M requires you to supply errno as an argument. Add %Q{uote} extension which will print a string in double quotes with appropriate back-slash escapes (only) if necessary.
* Expose the posix_memalign() prototype, now that the function is implementedjasone2006-01-121-1/+1
| | | | by libc.
* Add a new extensible GSS-API layer which can support GSS-API plugins,dfr2005-12-294-2/+770
| | | | | | | | | similar the the Solaris implementation. Repackage the krb5 GSS mechanism as a plugin library for the new implementation. This also includes a comprehensive set of manpages for the GSS-API functions with text mostly taken from the RFC. Reviewed by: Love Hörnquist Åstrand <lha@it.su.se>, ru (build system), des (openssh parts)
* Add a64l(), l64a(), and l64a_r() XSI extentions. These functions converttrhodes2005-12-241-2/+3
| | | | | | | | between a 32-bit integer and a radix-64 ASCII string. The l64a_r() function is a NetBSD addition. PR: 51209 (based on submission, but very different) Reviewed by: bde, ru
* Add abort2() prototypephk2005-12-231-0/+1
|
* Implement ELF symbol versioning using GNU semantics. This code aimskan2005-12-181-0/+2
| | | | | | | | | to be compatible with symbol versioning support as implemented by GNU libc and documented by http://people.redhat.com/~drepper/symbol-versioning and LSB 3.0. Implement dlvsym() function to allow lookups for a specific version of a given symbol.
* Add an extensible version of our *printf(3) implementation to libcphk2005-12-162-1/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on probationary terms: it may go away again if it transpires it is a bad idea. This extensible printf version will only be used if either environment variable USE_XPRINTF is defined or one of the extension functions are called. or the global variable __use_xprintf is set greater than zero. In all other cases our traditional printf implementation will be used. The extensible version is slower than the default printf, mostly because less opportunity for combining I/O operation exists when faced with extensions. The default printf on the other hand is a bad case of spaghetti code. The extension API has a GLIBC compatible part and a FreeBSD version of same. The FreeBSD version exists because the GLIBC version may run afoul of our FILE * locking in multithreaded programs and it even further eliminate the opportunities for combining I/O operations. Include three demo extensions which can be enabled if desired: time (%T), hexdump (%H) and strvis (%V). %T can format time_t (%T), struct timeval (%lT) and struct timespec (%llT) in one of two human readable duration formats: "%.3llT" -> "20349.245" "%#.3llT" -> "5h39m9.245" %H will hexdump a sequence of bytes and takes a pointer and a length argument. The width specifies number of bytes per line. "%4H" -> "65 72 20 65" "%+4H" -> "0000 65 72 20 65" "%#4H" -> "65 72 20 65 |er e|" "%+#4H" -> "0000 65 72 20 65 |er e|" %V will dump a string in strvis format. "%V" -> "Hello\tWor\377ld" (C-style) "%0V" -> "Hello\011Wor\377ld" (octal) "%+V" -> "Hello%09Wor%FFld" (http-style) Tests, comments, bugreports etc are most welcome.
* Fix ypwhich -m. This should be MFC'ed back at least as far as RELENG_5.peter2005-12-061-1/+1
| | | | | Submitted by: Gil Kloepfer <gil@arlut.utexas.edu> PR: 64445
* barrier and spin_lock had already been implemented in libpthread anddavidxu2005-12-021-2/+2
| | | | | libthr for a long time, set both _POSIX_BARRIERS and _POSIX_SPIN_LOCKS to 200112L.
* Install the mqueue.h header.ru2005-12-011-1/+2
|
* Fix compiling for c++, include cdefs.h.davidxu2005-11-301-0/+3
|
* Remove commented out reference to posix4/mqueue.h. It hasn't been installedrodrigc2005-11-281-2/+1
| | | | | for 3 years, and now we have another (working) implementation of POSIX message queues elsewhere in the source tree.
* Bring in POSIX message queue header file.davidxu2005-11-261-0/+51
|
* Revert last revision, strmode() should be moved to <unistd.h> to beru2005-11-241-1/+1
| | | | properly fixed.
* Fix prototype to match the code and documentation.ru2005-11-241-1/+1
|
* Fix prototype of strmode() to match the code and documentation.ru2005-11-241-1/+1
|
* Since speaker.h now lives in sys/dev/speaker, reflect this fact here.delphij2005-11-111-1/+1
|
* Add POSIX timer interfaces.davidxu2005-10-301-1/+9
|
* Add prototype for following functions, plus tab fixes.davidxu2005-10-241-5/+8
| | | | | | | pthread_condattr_getpshared pthread_condattr_setpshared pthread_mutexattr_getpshared pthread_mutexattr_setpshared
* Use __pid_t instead of pid_t for sigqueue as other functions.davidxu2005-10-161-1/+1
|
* Add sigqueue function prototype.davidxu2005-10-141-9/+2
|
* Add pthread_timedjoin_np prototype.davidxu2005-10-041-0/+1
|
* Add the lmcconfig tool for controlling the lmc driver. Add man pages andscottl2005-10-031-1/+1
| | | | | | glue. Submitted by: David Boggs
* Back out 1.247. On ia64 <osreldate.h> is included from assembler source,stefanf2005-09-141-1/+0
| | | | | | the prototype broke buildword. Noticed by: marcel
* Put a getosreldate() prototype into <osreldate.h>, getosreldate(3) impliesstefanf2005-09-121-0/+1
| | | | there is one.
* Fix the prototypes for devname() and devname_r(), the first two argumentstefanf2005-09-121-2/+2
| | | | | types are supposed to be dev_t and mode_t (prefixed with __ due to namespace reasons).
* Don't declare ___res_ext() twice.stefanf2005-09-121-2/+1
|
* Improve POSIX conformance:stefanf2005-09-011-7/+7
| | | | | | | | | | | | - Don't pollute the namespace by including <sys/types.h>, <sys/time.h>, <sys/signal.h> and <limits.h>. Use __MINSIGSTKSZ and __ULONG_MAX from <machine/_limits.h>, __sigset_t from <sys/_sigset.h> instead. - Include <time.h> because POSIX says we have to. PTHREAD_{DESTRUCTOR_ITERATIONS,KEYS_MAX,STACK_MIN,THREADS_MAX} should eventually move to <limits.h> but are left here for now. Discussed on: standards@, threads@
* Appropriate namespace protection for memmem(3).andre2005-08-251-0/+2
| | | | | Submitted by: wollman MFC after: 3 days
* Add the function memmem(3) as found in glibc and others.andre2005-08-251-0/+1
| | | | | | | | | | It is the binary equivalent to strstr(3). void *memmem(const void *big, size_t big_len, const void *little, size_t little_len); Submitted by: Pascal Gloor <pascal.gloor at spale.com> MFC after: 3 days
* - Prefix MUTEX_TYPE_MAX with PTHREAD_ to avoid namespace pollution.stefanf2005-08-191-5/+1
| | | | | | - Remove the macros MUTEX_TYPE_FAST and MUTEX_TYPE_COUNTING_FAST. OK'ed by: deischen
* Remove parameter names, the identifiers were in the user namespace.stefanf2005-08-191-5/+3
|
* Add an implementation of the semi-standard wcsdup() function, as foundtjr2005-08-131-0/+1
| | | | on Microsoft and GNU systems.
* Sync libedit with recent NetBSD developments. Including improvements to thestefanf2005-08-071-12/+38
| | | | | | | vi-mode, removal of clause 3, cleanups and the export of the tokenization functions. Not included: config.h, filecomplete.{c,h}
* Respect the YES_HESIOD build variable.phk2005-08-061-1/+5
|
* Connect GEOM_ELI class to the build.pjd2005-07-271-2/+2
| | | | MFC after: 1 week
* Remove padding for ABI compatibility of ai_addrlen memberume2005-07-221-19/+0
| | | | | from struct addrinfo. This change break ABI compatibility on 64 bit arch.
* MFP4:jkoshy2005-06-091-1/+1
| | | | | | | | | | | | | | | | - Implement sampling modes and logging support in hwpmc(4). - Separate MI and MD parts of hwpmc(4) and allow sharing of PMC implementations across different architectures. Add support for P4 (EMT64) style PMCs to the amd64 code. - New pmcstat(8) options: -E (exit time counts) -W (counts every context switch), -R (print log file). - pmc(3) API changes, improve our ability to keep ABI compatibility in the future. Add more 'alias' names for commonly used events. - bug fixes & documentation.
* - Remove padding for ABI compatibility of n_net member from structume2005-06-031-21/+0
| | | | | | | | | | | | | netent. - Change 1st argument of getnetbyaddr() to an uint32_t on 64 bit arch as well to confirm to POSIX-2001. These changes break ABI compatibility on 64 bit arch. There is similar padding issue for ai_addrlen of struct addrinfo. However, it is leaved as is for now. Discussed on: arch@, standards@ and current@ X-MFC after: never
* According to:rodrigc2005-05-311-56/+1
| | | | | | | | | | | http://www.opengroup.org/onlinepubs/009695399/basedefs/sys/types.h.html #include <sys/types.h> should include the definitions of pthread types. PR: standards/78907 Reported by: Brooks Davis Approved by: das (mentor)
* Add support for XMM registers in GDB for x86 processors that supportdfr2005-05-311-0/+4
| | | | | | | SSE (or its successors). Reviewed by: marcel, davidxu MFC After: 2 weeks
* Correct mistake in previous commit: add 'bsm' to LDIRS not LSUBDIRS.rwatson2005-05-301-2/+2
| | | | Pointy hat: over here, please
* Do install BSM include files (such as they are) when installing systemrwatson2005-05-291-1/+1
| | | | | | | includes. Submitted by: wsalamon Obtained from: TrustedBSD Project
* disable defining NI_WITHSCOPEID. It was obsoleted, and was existume2005-05-271-1/+1
| | | | only for backward compatibility since 5.2-RELEASE.
* Make <runefile.h> internal to libc.ru2005-05-162-62/+1
| | | | Suggested by: phantom
* - The ai_addrlen of a struct addrinfo used to be a size_t, perume2005-05-151-5/+46
| | | | | | | | | | | | | | | | RFC 2553. In XNS5.2, and subsequently in POSIX-2001 and RFC 3493, it was changed to a socklen_t. And, the n_net of a struct netent used to be an unsigned long integer. In XNS5, and subsequently in POSIX-2001, it was changed to an uint32_t. To accomodate for this while preserving ABI compatibility with the old interface, we need to prepend or append 32 bits of padding, depending on the (LP64) architecture's endianness. - Correct 1st argument of getnetbyaddr() to uint32_t on 32 bit arch. Stay as is on 64 bit arch for ABI backward compatibility for now. Reviewed by: das, peter MFC after: 2 weeks
* Provide more POSIX-complaint ttyname_r(3) interface[1], which is slightlydelphij2005-05-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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@
OpenPOWER on IntegriCloud