summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Stop defining '_Complex' in a C99 environment, it is supposed to be a keyword.stefanf2004-08-141-0/+2
|
* Use tabulators after '#define'.stefanf2004-08-141-5/+5
|
* Sort in dictionary order.tjr2004-08-121-1/+1
| | | | Suggested by: ru
* Implement wcwidth() as an inline function.tjr2004-08-122-0/+18
|
* Include _ctype.h instead of ctype.h to avoid namespace pollution.tjr2004-08-121-1/+1
|
* Move some internal macros and inlines from ctype.h to a new file, _ctype.h,tjr2004-08-123-178/+9
| | | | | | which has been repo-copied from ctype.h. This will allow us to remove namespace pollution from <wctype.h> and to make wcwidth() an inline function without introducing more pollution.
* Implement C99's standard header <tgmath.h>. It provides type-generic macrosstefanf2004-08-082-1/+168
| | | | | | | for the <math.h> and <complex.h> functions that have float, double and long double implementations. Such type-generic macros expand to an actual function, depending on the types of the macro arguments, eg. if <tgmath.h> is included, the invocation cos(1.0f) calls the function cosf().
* Connect GEOM_MIRROR class to the build.pjd2004-07-301-1/+1
|
* Add __pure and __pure2 where appropriate.tjr2004-07-231-11/+11
|
* Mark functions pure where applicable.tjr2004-07-231-11/+12
|
* Mark functions pure where applicable. A notable exclusion is strcoll(),tjr2004-07-231-13/+13
| | | | which is not strictly pure because it calls malloc()/free() in some cases.
* Implement the GNU extensions of mbsnrtowcs() and wcsnrtombs(). These aretjr2004-07-211-0/+4
| | | | | | | convenient when the source string isn't null-terminated. Implement the other conversion functions (mbstowcs(), mbsrtowcs(), wcstombs(), wcsrtombs()) in terms of these new functions.
* Re-implement this file, including copyright notice. Keep David Xu asmarcel2004-07-171-69/+31
| | | | | | | | | | | | | copyright owner. Typical bugs fixed by this are: o various style(9) bugs, o #ifdef'd out code, o lack of comments, o missing const, o introduction of obsolete functions, o missing __BEGIN_DECLS & __END_DECLS, The major flaw in this version, that was also present in the previous version is the lack of man page. Minor flaws undoubtedly still exist.
* Add fgetwln(), a wide character version of fgetln().tjr2004-07-161-0/+1
|
* Add proc_service.h, the common file both debugger and libthread_db willdavidxu2004-07-152-1/+104
| | | | | use, program wants to load libthread_db.so should provid proc service interface.
* Add a new error code, REG_ILLSEQ, to indicate that a regular expressiontjr2004-07-121-0/+1
| | | | contains an illegal multibyte character sequence.
* Reduce namespace pollution.des2004-07-091-0/+2
|
* Add a function to iterate over all characters in a particular charactertjr2004-07-081-0/+1
| | | | | | class. This is necessary in order to implement tr(1) efficiently in multibyte locales, since the brute force method of finding all characters in a class is infeasible with a 32-bit (or wider) wchar_t.
* Add implementations of ftw(3) and nftw(3) and the corresponding headerdas2004-07-052-1/+109
| | | | | | | | ftw.h. This is the implementation written by Joel Baker <fenton@debian.org> for inclusion in NetBSD, but with several bugfixes. Obtained from: Debian
* Introduce GEOM_LABEL class.pjd2004-07-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | This class is used for detecting volume labels on file systems: UFS, MSDOSFS (FAT12, FAT16, FAT32) and ISO9660. It also provide native labelization (there is no need for file system). g_label_ufs.c is based on geom_vol_ffs from Gordon Tetlow. g_label_msdos.c and g_label_iso9660.c are probably hacks, I just found where volume labels are stored and I use those offsets here, but with this class it should be easy to do it as it should be done by someone who know how. Implementing volume labels detection for other file systems also should be trivial. New providers are created in those directories: /dev/ufs/ (UFS1, UFS2) /dev/msdosfs/ (FAT12, FAT16, FAT32) /dev/iso9660/ (ISO9660) /dev/label/ (native labels, configured with glabel(8)) Manual page cleanups and some comments inside were submitted by Simon L. Nielsen, who was, as always, very helpful. Thanks!
* Fix typo: WRDE_DOOFS -> WRDE_DOOFFS.tjr2004-06-301-1/+1
| | | | Noticed by: Stoned Elipot
* Now that <runetype.h> no longer brings in namespace pollution,tjr2004-06-232-22/+0
| | | | bring back the inline functions for the !__BSD_VISIBLE case.
* Prefix the names of members of _RuneLocale and its sub-structurestjr2004-06-234-33/+31
| | | | | | with ``__'' to avoid polluting the namespace. This doesn't change the documented rune interface at all, but breaks applications that accessed _RuneLocale directly.
* Adjust the system endian and a.out headers to be more MI and cross-buildingobrien2004-06-221-0/+2
| | | | | | friendly. Use the systems headers rather than local versions. Reviewed by: ru
* Remove outdated comments.tjr2004-06-201-3/+1
|
* Link ALTQ to the build and break with ABI for struct ifnet. Please recompilemlaier2004-06-131-0/+8
| | | | | | | | | | | | your (network) modules as well as any userland that might make sense of sizeof(struct ifnet). This does not change the queueing yet. These changes will follow in a seperate commit. Same with the driver changes, which need case by case evaluation. __FreeBSD_version bump will follow. Tested-by: (i386)LINT
* Fix typo in putwc().tjr2004-06-071-1/+1
| | | | Noticed by: stefanf
* Use __isctype() instead of __istype() for iswdigit() and iswxdigit() fortjr2004-05-311-2/+2
| | | | consistency with <ctype.h>.
* Add implementations for cimag{,f,l}, creal{,f,l} and conj{,f,l}. They arestefanf2004-05-301-6/+12
| | | | | | | needed for cases where GCC's builtin functions cannot be used and for compilers that don't know about them. Approved by: das (mentor)
* Remove the macros for creal{,f} and cimag{,f}. They failed to convert theirstefanf2004-05-301-7/+0
| | | | | | | | | arguments to the needed type and so the result type depended on the argument type. Fixing them isn't really worth the effort because GCC emits the same assembler code with or without them. Not minded by: ru Approved by: das (mentor)
* Correct some types in the yp structures; this fixes a number of problemstmm2004-05-271-14/+14
| | | | | on sparc64. Obtained from and cross-checked with the NetBSD version of this file and the rpcgen-generated code.
* Bring back the macro versions of getwc(), getwchar(), putwc() andtjr2004-05-272-0/+15
| | | | | putwchar(), but this time avoid redundantly declaring __stdinp and __stdoutp when source files include both <stdio.h> and <wchar.h>.
* Revert to rev. 1.36 until issues with -Wredundant-decls are sorted out.tjr2004-05-251-8/+0
|
* Fix typo in previous: getwc() should call fgetwc(), not the functiontjr2004-05-251-1/+1
| | | | | | version of itself. Noticed by: stefanf
* Provide trivial macro implementations of getwc(), getwchar(), putwc() andtjr2004-05-251-0/+8
| | | | putwchar() to reduce function call overhead.
* - Install includes used by STRIPE and NOP GEOM classes.pjd2004-05-201-1/+1
| | | | | | - Create needed directories. Supported by: Wheel - Open Technologies - http://www.wheel.pl
* Fix some^Wseveral style bugs from last commit.peadar2004-05-121-1/+0
| | | | | | | | | | Remove "sys/types.h" as "sys/param.h" is already included Use cast rather than back-pointer to convert from public to private version of FTS data, and so avoid littering fts.h with any of the details. Pointed out By: bde, kientzle
* Fixed style bugs in previous commit (bogus forward declaration andbde2004-05-101-3/+1
| | | | inconsistent capitalization in comments).
* The FTS_NOSTAT option is an optimisation that reduces the numberpeadar2004-05-081-0/+3
| | | | | | | | | | | | | | | | | | | of stat(2) calls by keeping an eye of the number of links a directory has. It assumes that each subdirectory will have a hard link to its parent, to represent the ".." node, and stops calling stat(2) when all links are accounted for in a given directory. This assumption is really only valid for UNIX-like filesystems: A concrete example is NTFS. The NTFS "i-node" does contain a link count, but most/all directories have a link count between 0 and 2 inclusive. The end result is that find on an NTFS volume won't actually traverse the entire hierarchy of the directories passed to it. (Those with a link count of two are not traversed at all) The fix checks the "UFSness" of the filesystem before enabling the optimisation. Reviewed By: Tim Kientzle (kientzle@)
* - Look into geom/gate/ and geom/concat/ for includes.pjd2004-04-301-2/+3
| | | | | - Put geom/ subdirectories into separate line, while there are more to come.
* Make isblank() visible in the C99 namespace.tjr2004-04-212-4/+16
| | | | | PR: 63371 Submitted by: Stefan Farfeleder
* Parenthesize function names in masking macros for getc() etc. for thetjr2004-03-201-6/+6
| | | | benefit of obsolete C preprocessors.
* Re-add macro versions of getc(), getchar(), putc(), putchar(), feof(),tjr2004-03-171-0/+16
| | | | | | | ferror(), fileno() and clearerr(), using the value of __isthreaded to decide between the fast inline single-threaded code and the more general function equivalent. This gives most of the performance benefits of the old unsafe macros while preserving thread safety.
* Don't try to pass off a struct sockaddr as a struct sockaddr_in when itdes2004-03-151-2/+2
| | | | | | | may in fact very well be a struct sockaddr_in6. Just use plain struct sockaddr. This brings us yet another step closer to a clean -O2 build.
* Add skeleton build dirs for pf userland:mlaier2004-02-281-0/+8
| | | | | | | | | | | | | | | | | | libexec/ftp-proxy - ftp proxy for pf sbin/pfctl - equivalent to sbin/ipf sbin/pflogd - deamon logging packets via if_pflog in pcap format usr.sbin/authpf - authentification shell to modify pf rulesets Bring along some altq headers used to satisfy pfctl/authpf compile. This helps to keep the diff down and will make it easy to have a altq-patchset use the full powers of pf. Also make sure that the pf headers are installed. This does not link anything to the build. There will be a NO_PF switch for make.conf once pf userland is linked. Approved by: bms(mentor)
* Sync HEAD sources to vendor branch import of routed v2.27 from rhyolite.com.bms2004-02-251-1/+4
| | | | | | | | Update <protocols/routed.h> for the MD5 changes requested in bin/35843. Preserve local changes. Education by: obrien, markm, pointy-stick PR: bin/35843 (and doubtless others)
* Make the resolver(3) and many associated interfaces much more reentrant.green2004-02-252-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The getaddrinfo(3), getipnodebyname(3) and resolver(3) can coincide now with what should be totally reentrant, and h_errno values will now be preserved correctly, but this does not affect interfaces such as gethostbyname(3) which are still mostly non-reentrant. In all of these relevant functions, the thread-safety has been pushed down as far as it seems possible right now. This means that operations that are selected via nsdispatch(3) (i.e. files, yp, dns) are protected still under global locks that getaddrinfo(3) defines, but where possible the locking is greatly reduced. The most noticeable improvement is that multiple DNS lookups can now be run at the same time, and this shows major improvement in performance of DNS-lookup threaded programs, and solves the "Mozilla tab serialization" problem. No single-threaded applications need to be recompiled. Multi-threaded applications that reference "_res" to change resolver(3) options will need to be recompiled, and ones which reference "h_errno" will also if they desire the correct h_errno values. If the applications already understood that _res and h_errno were not thread-safe and had their own locking, they will see no performance improvement but will not actually break in any way. Please note that when NSS modules are used, or when nsdispatch(3) defaults to adding any lookups of its own to the individual libc _nsdispatch() calls, those MUST be reentrant as well.
* Add getopt_long_only()ache2004-02-241-1/+3
|
* In the comment tell about optreset extension for NetBSD ghetopt_long()ache2004-02-231-1/+2
|
* Add optreset to getopt.h too since NetBSD getopt_long() (but not GNU one)ache2004-02-232-1/+8
| | | | use it too.
OpenPOWER on IntegriCloud