summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Remove duplicated '__BEGIN_DECLS' which obviated compilingrobert2002-07-211-1/+0
| | | | | | C++ sources that use this header. Reported by: Jan Stocker <Jan.Stocker@t-online.de>
* Update glob(3) to add all the POSIX required options, specifically:mikeh2002-07-171-4/+14
| | | | | | | | | | - add GLOB_NOMATCH return value and use it when we don't get a match - rename GLOB_ABEND to GLOB_ABORTED and use it instead of returning 1 in some places - add GLOB_NOESCAPE flag and retire GLOB_QUOTE to compatibility section Suggestions/advice on correct usage of POSIX defines: wollman
* Change utimes to set the file creation time (for filesystems thatmckusick2002-07-171-2/+2
| | | | | | | | support creation times such as UFS2) to the value of the modification time if the value of the modification time is older than the current creation time. See utimes(2) for further details. Sponsored by: DARPA & NAI Labs.
* Support POSIX/SUS ``programming environment'' mistake in confstr().wollman2002-07-151-0/+15
|
* Move _CS_PATH from <sys/unistd.h> to <unistd.h> -- the kernel isn't involvedwollman2002-07-151-0/+2
| | | | in confstr() processing.
* getopt(3) was also added in 1003.2-1992.wollman2002-07-151-4/+4
|
* Fix visibility:wollman2002-07-151-11/+14
| | | | | | | - symlink() is from 1003.1-2001 and XPG4.2 - fchown() is from 1003.1-2001 - fsync() is from ISO/IEC 9945-1:1995 - confstr() is from 1003.2-1992
* Clean up some of the rather strange structure and ordering of thiswollman2002-07-151-52/+67
| | | | | | | | file. Correct visibility conditions and order blocks of declarations in order of increasing inclusiveness. Note that [v]snprintf() is now in ISO C and f{seek,tell}o() are now in POSIX. Deprecated getw() and putw() are no longer visible in XSH6 namespace (and should probably be removed from BSD namespace as well).
* clnt_vc_create() has const scalar arguments that wind up being modified,alfred2002-07-141-1/+1
| | | | | | fix it (make them non-const) and update the associated documentation. Submitted by: mbr
* Correct _PATH_RCP to be /bin/rcp, not /usr/bin/rcp.sobomax2002-07-141-1/+1
|
* Add functions allowing for the user to specify a timeout for rpc functions.alfred2002-07-111-9/+67
| | | | | | Update copyrights to reflect where this code was lifted from. (tirpc '99) Submitted by: mbr
* Don't define wchar_t if we are a C++ compiler.obrien2002-07-095-0/+10
| | | | PR: 31864, 40084
* Move __offsetof() macro from <machine/ansi.h> to <sys/cdefs.h>. It'smike2002-07-081-0/+1
| | | | | | hardly MD, since all our platforms share the same macro. It's not really compiler dependent either, but this helps in reducing <machine/ansi.h> to only type definitions.
* Convince lint via the standard lint-comment /* LONGLONG */ to notmarkm2002-07-041-0/+5
| | | | whine about our (valid) "long long" usage.
* This header is for Solaris compatibility only (according to Davidmarkm2002-07-041-0/+4
| | | | O'Brien), so add a comment to that effect to remind folks.
* The thread-safe time functions appear to have been introduced as ofwollman2002-06-271-6/+7
| | | | | ISO 9945-1: 1996 (according to the change bars therein), which corresponds to 1003.1c-1995. Give them appropriate visibility protection.
* Resort namespace blocks into a more sensible order. Delete a redundantwollman2002-06-271-8/+7
| | | | comment.
* Minor libc internal-only interface change for mapv4v6.imp2002-06-261-1/+1
|
* This commit adds basic support for the UFS2 filesystem. The UFS2mckusick2002-06-211-8/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | filesystem expands the inode to 256 bytes to make space for 64-bit block pointers. It also adds a file-creation time field, an ability to use jumbo blocks per inode to allow extent like pointer density, and space for extended attributes (up to twice the filesystem block size worth of attributes, e.g., on a 16K filesystem, there is space for 32K of attributes). UFS2 fully supports and runs existing UFS1 filesystems. New filesystems built using newfs can be built in either UFS1 or UFS2 format using the -O option. In this commit UFS1 is the default format, so if you want to build UFS2 format filesystems, you must specify -O 2. This default will be changed to UFS2 when UFS2 proves itself to be stable. In this commit the boot code for reading UFS2 filesystems is not compiled (see /sys/boot/common/ufsread.c) as there is insufficient space in the boot block. Once the size of the boot block is increased, this code can be defined. Things to note: the definition of SBSIZE has changed to SBLOCKSIZE. The header file <ufs/ufs/dinode.h> must be included before <ufs/ffs/fs.h> so as to get the definitions of ufs2_daddr_t and ufs_lbn_t. Still TODO: Verify that the first level bootstraps work for all the architectures. Convert the utility ffsinfo to understand UFS2 and test growfs. Add support for the extended attribute storage. Update soft updates to ensure integrity of extended attribute storage. Switch the current extended attribute interfaces to use the extended attribute storage. Add the extent like functionality (framework is there, but is currently never used). Sponsored by: DARPA & NAI Labs. Reviewed by: Poul-Henning Kamp <phk@freebsd.org>
* Guard definitions for use with C++ code.obrien2002-06-191-0/+4
| | | | Submitted by: Ed Hall <edhall@yahoo-inc.com>
* Move dillon's time conversion functions to a new header <timeconv.h>.wollman2002-06-173-13/+67
| | | | | | Since they were never documented and have never appeared in a FreeBSD release, no repo-copy of the header is done. This removes namespace pollution from <time.h>.
* Clean up a bit of namespace pollution which crept in with the last rev.wollman2002-06-171-1/+1
| | | | Submitted by: bde
* Restore local bits lost in recent merge from NetBSD.mdodd2002-06-161-0/+6
|
* Partially fix namespace visibility issues by using new visibility macros.wollman2002-06-152-63/+89
| | | | | Some issues still remain, and will require research in old POSIX standards if we care to get them right.
* o Remove include of <sys/types.h>, it adds too much pollution;mike2002-06-091-9/+28
| | | | | | | | | instead, add typedefs of only gid_t, time_t, and uid_t. o Remove an unneeded conditional that hid macros that are in the implementation namespace and therefore don't need to be hidden when _POSIX_SOURCE is defined. o Adjust some conditionals for compatibility with X/Open and POSIX. o Note missing functions getpwnam_r() and getpwuid_r().
* Const poison.phk2002-05-301-1/+1
| | | | Partially submitted by: wollman
* Since POSIX gives us plenary authority to define _t types, changewollman2002-05-291-2/+2
| | | | | | | __dlfunc_t to dlfunc_t to match what I have proposed to the Austin Group. (This also makes it easier for applications to store these values before they decide what to do with them, e.g., in a wrapper function.)
* Reorganize dlfcn.h slightly to separate out XSI and BSD interfaces.wollman2002-05-291-3/+23
| | | | | | | | 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
* Assume __STDC__, remove non-__STDC__ code.alfred2002-05-281-8/+2
| | | | | | Add $FreeBSD$. Submitted by: keramida
* Prepend BIG_ENDIAN, BYTE_ORDER, LITTLE_ENDIAN, and PDP_ENDIAN with anmike2002-05-281-6/+6
| | | | | underscore. This is the preferred form. Also fix a preprocessor syntax error in an error-detection section.
* Reorder prototypes to be in alphabetical order.deischen2002-05-241-4/+4
|
* Add the prototypes for pthread_suspend_all_np and pthread_resume_all_np.deischen2002-05-241-0/+2
|
* Move _PATH_WALL from dump and shutdown's local pathnames.h to paths.h.jmallett2002-05-171-0/+1
|
* Rename `includes' to `buildincludes'.ru2002-05-151-2/+2
| | | | | | Rename `incsinstall' to `installincludes'. Make `includes' a -j safe shortcut for `buildincludes' + `installincludes'. `buildincludes' and `installincludes' are SUBDIR friendly, if run directly.
* Use explicitly sized fields for the tape format definition.phk2002-05-141-1/+1
| | | | Sponsored by: DARPA & NAI Labs.
* Added new bsd.incs.mk which handles installing of header filesru2002-05-125-42/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | via INCS. Implemented INCSLINKS (equivalent to SYMLINKS) to handle symlinking include files. Allow for multiple groups of include files to be installed, with the powerful INCSGROUPS knob. Documentation to follow. Added standard `includes' and `incsinstall' targets, use them in Makefile.inc1. Headers from the following makefiles were not installed before (during `includes' in Makefile.inc1): kerberos5/lib/libtelnet/Makefile lib/libbz2/Makefile lib/libdevinfo/Makefile lib/libform/Makefile lib/libisc/Makefile lib/libmenu/Makefile lib/libmilter/Makefile lib/libpanel/Makefile Replaced all `beforeinstall' targets for installing includes with the INCS stuff. Renamed INCDIR to INCSDIR, for consistency with FILES and SCRIPTS, and for compatibility with NetBSD. Similarly for INCOWN, INCGRP, and INCMODE. Consistently use INCLUDEDIR instead of /usr/include. gnu/lib/libstdc++/Makefile and gnu/lib/libsupc++/Makefile changes were only lightly tested due to the missing contrib/libstdc++-v3. I fully tested the pre-WIP_GCC31 version of this patch with the contrib/libstdc++.295 stuff. These changes have been tested on i386 with the -DNO_WERROR "make world" and "make release".
* Add some more commonly-used directories and files.des2002-05-081-0/+6
| | | | Sponsored by: DARPA, NAI Labs
* Spell void * as void * rather than caddr_t. This is complicated by thedes2002-04-285-22/+22
| | | | | | fact that caddr_t is often misspelled as char *. Sponsored by: DARPA, NAI Labs
* Constify _malloc_options.phk2002-04-241-1/+1
|
* Rework the kernel environment subsystem. We now convert the staticmux2002-04-172-1/+41
| | | | | | | | | | | | | | | | | environment needed at boot time to a dynamic subsystem when VM is up. The dynamic kernel environment is protected by an sx lock. This adds some new functions to manipulate the kernel environment : freeenv(), setenv(), unsetenv() and testenv(). freeenv() has to be called after every getenv() when you have finished using the string. testenv() only tests if an environment variable is present, and doesn't require a freeenv() call. setenv() and unsetenv() are self explanatory. The kenv(2) syscall exports these new functionalities to userland, mainly for kenv(1). Reviewed by: peter
* Include <sys/_types.h>. This should have been part of the previousmike2002-04-151-1/+1
| | | | revision.
* Add support for X/Open.mike2002-04-151-2/+5
| | | | PR: 37078
* (ab)use unused bits in the pw_fields member of struct passwd to recorddes2002-04-141-0/+5
| | | | | | the source of the data contained in the structure. Sponsored by: DARPA, NAI Labs
* Be more strict about exposing BSD-specific functions when a standardmike2002-04-101-10/+4
| | | | | | | | has been requested. Unconditionalize the definition of INET_ADDRSTRLEN and INET6_ADDRSTRLEN. Doing this helps expose bogus redefinitions in 3rd party software.
* o Move some function prototypes from <string.h> to the newly rewrittenmike2002-04-042-35/+52
| | | | | | | <strings.h>, based on POSIX.1-2001's requirements. o Add 'restrict' qualifier (spelled '__restrict') to functions in <string.h>, as per C99 and POSIX.1-2001. o Properly expose new POSIX.1-2001 functions in <string.h>.
* Don't clobber headers that we didn't create.ru2002-04-031-6/+1
| | | | | Noticed by: bde Reviewed by: bde
* Remove the disktab.h include file from the build.phk2002-04-011-1/+1
|
* This file is entirely bogus.phk2002-04-011-62/+0
|
* o Implement <sys/_types.h>, a new header for storing types that aremike2002-04-013-18/+49
| | | | | | | | | | | | | | | MI, not required to be a fixed size, and used in multiple headers. This will grow in time, as more things move here from <sys/types.h> and <machine/ansi.h>. o Add missing type definitions (uint16_t and uint32_t) to <arpa/inet.h> and <netinet/in.h>. o Reduce pollution in <sys/types.h> by using `#if _FOO_T_DECLARED' widgets to avoid including <sys/stdint.h>. o Add some missing type definitions to <unistd.h> and note the ones that still need to be added. o Make use of <sys/_types.h> primitives in <grp.h> and <sys/types.h>. Reviewed by: bde
* Install sys/security/lomac/*.h to /usr/include/security/lomac/.ru2002-03-261-28/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Install sys/<arch>/include/pc/*.h to /usr/include/machine/pc/. PR: docs/29534 Install sys/netatm/*/*.h to /usr/include/netatm/*/. Don't install compatibility symlinks for <machine/soundcard.h> and <machine/joystick.h>. Three years is enough to be aware of the change, and these weren't visible in the SHARED=symlinks case. Back out include/Makefile,v 1.160 that was a null change anyway due to the bug in the path, and we now don't want to install these headers because they would otherwise be invisible in the SHARED=symlinks case. Don't install IPFILTER headers. Userland utilities fetch them directly, and they were not visible in the SHARED=symlinks case. Resurrect SHARED=symlinks in Makefile.inc1. PR: bin/28002 Prodded by: bde MFC after: 2 weeks
OpenPOWER on IntegriCloud