summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Remove FreeBSD/vax and FreeBSD/tahoe support.peter2001-11-031-17/+1
| | | | | | Add $FreeBSD$ Submitted by: phk
* o Add new header <sys/stdint.h>.mike2001-11-022-2/+56
| | | | | | | | | | | | | | | | | | | | | o Make <stdint.h> a symbolic link to <sys/stdint.h>. o Move most of <sys/inttypes.h> into <sys/stdint.h>, as per C99. o Remove <sys/inttypes.h>. o Adjust includes in sys/types.h and boot/efi/include/ia64/efibind.h to reflect new location of integer types in <sys/stdint.h>. o Remove previously symbolicly linked <inttypes.h>, instead create a new file. o Add MD headers <machine/_inttypes.h> from NetBSD. o Include <sys/stdint.h> in <inttypes.h>, as required by C99; and include <machine/_inttypes.h> in <inttypes.h>, to fill in the remaining requirements for <inttypes.h>. o Add additional integer types in <machine/ansi.h> and <machine/limits.h> which are included via <sys/stdint.h>. Partially obtain from: NetBSD Tested on: alpha, i386 Discussed on: freebsd-standards@bostonradio.org Reviewed by: bde, fenner, obrien, wollman
* Add time_to_int(), int_to_time(), time_to_long(), long_to_time().dillon2001-10-281-0/+4
|
* Make the protocol/dumprestore.h header match restore's idea of the dumpdillon2001-10-281-2/+4
| | | | | | | | header for the case where sizeof(time_t) != sizeof(int). dumprestore.h was embedding time_t when it should have been embedding int32_t. Use time_to_time32() and time32_to_time() to convert between the protocoll/file-format time and time_t.
* Add routines to convert time_t to/from fixed-bit fields. These routinesdillon2001-10-281-0/+7
| | | | | | | | | | | | | | | | | | | serve two purposes: (1) so we can maintain backwards compatibility with protocols (rwhod, dump, etc...) that either assume time_t is 32 bits or assume sizeof(time_t) == sizeof(int), or make other similar assumptions. (2) To tag such routines (by the presence of these calls) for future cleanup/extension work. The 32->64 routine, time32_to_time() (when time_t is 64 bits, that is), is defined specifically to implement temporal locality to properly set the msb bits of a 64 bit time_t quantity, using the 50 year rule. The locality code has not been implemented yet (and doesn't need to be for a while), but that is the intent. This will allow us to maintain backwards protocol compatibility past 2038. These routines are intended to be platform and time_t agnostic. MFC after: 1 week
* ll_time and ut_time are int32_t on disk and have to remain that waypeter2001-10-271-2/+2
| | | | unless we dont want to run 4.x binaries any more.
* Restore K&R prototype. Fix other style bugs.mike2001-10-271-8/+9
| | | | Reviewed by: asmodai, bde
* Diff-reduce these two.markm2001-10-271-2/+3
| | | | | | | Really, one of them needs to disappear. I'll figure out which later. Reported by: bde
* Resume deorbit burn sequence for <malloc.h>. Inspection of my make logswollman2001-10-251-5/+2
| | | | | reveals no programs in the standard build which hit the previous warning message. This change will NOT be merged to 4-stable.
* Add $FreeBSD$.asmodai2001-10-241-3/+6
| | | | | | Change assert() macro to print failing function name. Change K&R function prototype wrapper to ANSI prototype. This makes us C99 conforming.
* Fixed some style bugs:bde2001-10-101-3/+3
| | | | | | - rev.1.6: corrupt tab before strlcpy. - rev.1.7: "From: " in vendor id. - rev.1.8: unsorted prototype for strccasestr.
* Implement strcasestr() which many others (f.e. Linux) already haveache2001-10-101-0/+1
|
* Add a new libc function, strnstr(3), which allows one to limit themike2001-10-091-1/+3
| | | | | | | | number of characters that are searched. This is especially useful with file operations and non-NUL terminated strings. Silence from: -audit, -hackers MFC after: 5 days
* Add compatibility functions for the AF_LOCAL RPC transport stuffwpaul2001-10-042-0/+15
| | | | | that used to live in RPC 4.0. This is needed for yppasswd and rpc.yppasswdd to work correctly. Patch supplied by Martin Blapp.
* Fixed order of includes. <sys/cdefs.h> must be included beforebde2001-10-041-9/+6
| | | | | | | | | <machine/ansi.h> for the definition of __signed, unless the compiler is gcc. Moved the declaration of socklen_t up together with the declaration of size_t, and removed low-quality comment about this declaration. Declaring socklen_t in this file is normal in POSIX-1.200x, unlike declaring size_t.
* Fixed some style bugs.bde2001-10-041-4/+4
|
* Fixed namespace pollution:bde2001-10-041-3/+12
| | | | | | - only declare the application symbols specified in Posix.1-200x drafts, not everything in <sys/types.h> and <stddef.h>. - don't use the application symbol 'm' for an arg name.
* Back out WIP that snuck in with revs 1.15[23].obrien2001-10-011-1/+0
|
* Merge style with NetBSD -- ANSI-C prototypes, style(9) tabing, etc.obrien2001-10-011-39/+38
|
* Merge functional changes from NetBSD.obrien2001-10-011-22/+32
|
* *** empty log message ***obrien2001-10-011-0/+1
|
* RFC2349 (http://www.hypermail.org/rfcs/rfc2349.html) adds supportobrien2001-09-271-0/+2
| | | | | | | | | | | for negotiation of timeout and file size to the tftp protocol. This is required by some firmware like EFI boot managers (at least on HP i2000 Itanium servers) in order to boot an image using tftp. The attached patch implements the RFC, and in doing so also implements RFC2347; a generic tftp option extension. PR: 30710 Submitted by: Espen Skoglund <esk@ira.uka.de>
* o Update unistd.h with the prototype for the new eaccess(2) system call.rwatson2001-09-211-0/+1
| | | | Obtained from: TrustedBSD Project
* Now that the compat4x libc.so.4 binary has been updated, we can finallypeter2001-09-201-1/+1
| | | | | | | | switch over to using a future-proof stdin/out/err. Note that if you run 4.x binaries on your system, you will certainly want to update /usr/lib/compat/libc.so.4. The easiest way is to add "COMPAT4X= yes" in your /etc/make.conf.
* Userland part of nfs client/server split and cleanup.peter2001-09-181-2/+2
|
* Stop gcc's fixincludes making an exception for this filepeter2001-09-101-2/+3
|
* Sort FILES.ru2001-09-061-5/+5
|
* add monetary.h as per POSIX requirementphantom2001-09-052-1/+41
|
* style(9) the structure definitions.obrien2001-09-054-7/+9
|
* Revert previous delta; <arpa/inet.h> isn't quite ready to stop includingmike2001-08-311-16/+1
| | | | <sys/types.h>.
* o Deprecate byteorder(3) prototypes from <sys/types.h>, these aremike2001-08-311-1/+16
| | | | | | | | | now prototyped indirectly in <arpa/inet.h>. o Deprecate in_addr_t and in_port_t typedefs in <sys/types.h>, these are now typedef'd in <arpa/inet.h>. Discussed with: bde PR: 29946
* Implement getpeereid(3), a front-end to the LOCAL_PEERCREDdd2001-08-171-0/+1
| | | | | | | socket option for the Unix domain. It's weaker than the socket option (this only returns the uid and gid, while the socket opt. can return the entire group list), and is implemented mostly for compatibility with OpenBSD.
* Rip out the old __stdin/out/err stuff. It was completely 100% useless. :-(peter2001-08-131-0/+10
| | | | | | | | | | | | | | | | It was foiled because of dynamic copy relocations that caused compile-time space to be reserved in .bss and at run time a blob of data was copied to that space and everything used the .bss version.. The problem is that the space is reserved at compile time, not runtime... So we *still* could not change the size of FILE. Sigh. :-( Replace it with something that does actually work and really does let us make 'FILE' extendable. It also happens to be the same as Linux does in glibc, but has the slight cost of a pointer. Note that this is the same cost that 'fp = fopen(), fprintf(fp, ...); fclose(fp);' has. Fortunately, actual references to stdin/out/err are not all that common since we have implicit stdin/out/err-using versions of functions (printf() vs. fprintf()).
* Removed duplicate VCS ID tags, as per style(9).ru2001-08-132-4/+0
|
* Remove comment, which didn't even help anyway.asmodai2001-08-131-1/+0
| | | | Submitted by: bde, long ago
* Make the name parameter const char *.imp2001-08-111-1/+1
|
* Rename the GLOB_MAXPATH flag of glob(3) to GLOB_LIMIT to be compatiblemikeh2001-07-291-2/+4
| | | | | | | | | | with NetBSD and OpenBSD. glob(3) will now return GLOB_NOSPACE with errno set to 0 instead of GLOB_LIMIT when we match more than `gl_matchc' patterns. GLOB_MAXPATH has been left as an alias of GLOB_LIMIT to maintain backwards compatibility. Reviewed by: sheldonh, assar Obtained from: NetBSD/OpenBSD
* Remove namespace pollution.mike2001-07-221-2/+2
| | | | | | | PR: 14327 Reviewed by: des Approved by: des MFC after: 7 days
* Implement pthread_attr_[gs]etguardsize(). Non-default-size stacks used tojasone2001-07-201-0/+3
| | | | | | | | be malloc()ed, but they are now allocated using mmap(), just as the default-size stacks are. A separate cache of stacks is kept for non-default-size stacks. Collaboration with: deischen
* VCS ID fixupobrien2001-07-102-5/+3
|
* Add a new clnt_control() request `CLSET_CONNECT' that controlsiedowse2001-06-231-0/+1
| | | | | | | | | | whether or not connect(2) is used for UDP client sockets. The default is not to connect(), so existing clients will see no change in behaviour. The use of connect(2) for UDP clients has a number of advantages: only replies from the intended address are received, and ICMP errors pertaining to the connection are reported back to the application.
* After one too many PRs on the subject, bite the bullet and define IOV_MAXwollman2001-06-181-0/+1
| | | | | | | | and its associated constants. Implement _SC_IOV_MAX in the usual way. Be a bit sloppy about the namespace question; this should get cleared up in time for 5.0. MFC after: 1 month
* Revise wording of osreldate.h vs kernel warning to make it clear that itpeter2001-06-171-2/+3
| | | | is a userland-only header.
* Added skeleton <complex.h> (aligned with the POSIX.1-200x), mostlyru2001-06-132-1/+62
| | | | | | | | to fix the "-nostdinc WARNS=X" breakage caused by broken prototypes for cabs() and cabsl() in <math.h>. Reimplemented cabs() and cabsl() using new complex numbers types and moved prototypes from <math.h> to <complex.h>.
* Complete prototype for fts_compar.ru2001-06-131-1/+3
|
* Implement EDNS0 support, as EDNS0 support will be made mandatory forume2001-06-103-0/+6
| | | | | | | | | | | IPv6 transport-ready resolvers/DNS servers. Need careful configuration when enable it. (default config is not affected). See manpage for details. XXX visible symbol __res_opt() is added, however, it is not supposed to be called from outside, libc minor is not bumped. Obtained from: KAME/NetBSD
* Update copyright.obrien2001-06-091-1/+1
|
* Fix previous commit which inadverdently deleted a section.jlemon2001-06-071-0/+5
|
* Relocate IPFilter from sys/netinet to sys/contrib/ipfilter.jlemon2001-06-071-3/+3
|
* Round #2 of the sys/isa/ic/ => sys/dev/ic/ move: install sys/dev/icjoerg2001-06-041-1/+1
| | | | as /usr/include/dev/ic.
OpenPOWER on IntegriCloud