aboutsummaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* This commit adds basic support for the UFS2 filesystem. The UFS2Kirk McKusick2002-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> Notes: svn path=/head/; revision=98542
* Guard definitions for use with C++ code.David E. O'Brien2002-06-191-0/+4
| | | | | | | Submitted by: Ed Hall <edhall@yahoo-inc.com> Notes: svn path=/head/; revision=98415
* Move dillon's time conversion functions to a new header <timeconv.h>.Garrett 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>. Notes: svn path=/head/; revision=98313
* Clean up a bit of namespace pollution which crept in with the last rev.Garrett Wollman2002-06-171-1/+1
| | | | | | | Submitted by: bde Notes: svn path=/head/; revision=98312
* Restore local bits lost in recent merge from NetBSD.Matthew N. Dodd2002-06-161-0/+6
| | | | Notes: svn path=/head/; revision=98293
* Partially fix namespace visibility issues by using new visibility macros.Garrett Wollman2002-06-152-63/+89
| | | | | | | | Some issues still remain, and will require research in old POSIX standards if we care to get them right. Notes: svn path=/head/; revision=98269
* o Remove include of <sys/types.h>, it adds too much pollution;Mike Barcroft2002-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(). Notes: svn path=/head/; revision=98070
* Const poison.Poul-Henning Kamp2002-05-301-1/+1
| | | | | | | Partially submitted by: wollman Notes: svn path=/head/; revision=97639
* Since POSIX gives us plenary authority to define _t types, changeGarrett Wollman2002-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.) Notes: svn path=/head/; revision=97509
* Reorganize dlfcn.h slightly to separate out XSI and BSD interfaces.Garrett 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 Notes: svn path=/head/; revision=97475
* Assume __STDC__, remove non-__STDC__ code.Alfred Perlstein2002-05-281-8/+2
| | | | | | | | | Add $FreeBSD$. Submitted by: keramida Notes: svn path=/head/; revision=97406
* Prepend BIG_ENDIAN, BYTE_ORDER, LITTLE_ENDIAN, and PDP_ENDIAN with anMike Barcroft2002-05-281-6/+6
| | | | | | | | underscore. This is the preferred form. Also fix a preprocessor syntax error in an error-detection section. Notes: svn path=/head/; revision=97363
* Reorder prototypes to be in alphabetical order.Daniel Eischen2002-05-241-4/+4
| | | | Notes: svn path=/head/; revision=97206
* Add the prototypes for pthread_suspend_all_np and pthread_resume_all_np.Daniel Eischen2002-05-241-0/+2
| | | | Notes: svn path=/head/; revision=97205
* Move _PATH_WALL from dump and shutdown's local pathnames.h to paths.h.Juli Mallett2002-05-171-0/+1
| | | | Notes: svn path=/head/; revision=96807
* Rename `includes' to `buildincludes'.Ruslan Ermilov2002-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. Notes: svn path=/head/; revision=96668
* Use explicitly sized fields for the tape format definition.Poul-Henning Kamp2002-05-141-1/+1
| | | | | | | Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=96562
* Added new bsd.incs.mk which handles installing of header filesRuslan Ermilov2002-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". Notes: svn path=/head/; revision=96462
* Add some more commonly-used directories and files.Dag-Erling Smørgrav2002-05-081-0/+6
| | | | | | | Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=96194
* Spell void * as void * rather than caddr_t. This is complicated by theDag-Erling Smørgrav2002-04-285-22/+22
| | | | | | | | | fact that caddr_t is often misspelled as char *. Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=95658
* Constify _malloc_options.Poul-Henning Kamp2002-04-241-1/+1
| | | | Notes: svn path=/head/; revision=95377
* Rework the kernel environment subsystem. We now convert the staticMaxime Henrion2002-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 Notes: svn path=/head/; revision=94936
* Include <sys/_types.h>. This should have been part of the previousMike Barcroft2002-04-151-1/+1
| | | | | | | revision. Notes: svn path=/head/; revision=94722
* Add support for X/Open.Mike Barcroft2002-04-151-2/+5
| | | | | | | PR: 37078 Notes: svn path=/head/; revision=94721
* (ab)use unused bits in the pw_fields member of struct passwd to recordDag-Erling Smørgrav2002-04-141-0/+5
| | | | | | | | | the source of the data contained in the structure. Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=94688
* Be more strict about exposing BSD-specific functions when a standardMike Barcroft2002-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. Notes: svn path=/head/; revision=94353
* o Move some function prototypes from <string.h> to the newly rewrittenMike Barcroft2002-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>. Notes: svn path=/head/; revision=93747
* Don't clobber headers that we didn't create.Ruslan Ermilov2002-04-031-6/+1
| | | | | | | | Noticed by: bde Reviewed by: bde Notes: svn path=/head/; revision=93730
* Remove the disktab.h include file from the build.Poul-Henning Kamp2002-04-011-1/+1
| | | | Notes: svn path=/head/; revision=93584
* This file is entirely bogus.Poul-Henning Kamp2002-04-011-62/+0
| | | | Notes: svn path=/head/; revision=93576
* o Implement <sys/_types.h>, a new header for storing types that areMike Barcroft2002-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 Notes: svn path=/head/; revision=93514
* Install sys/security/lomac/*.h to /usr/include/security/lomac/.Ruslan Ermilov2002-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 Notes: svn path=/head/; revision=93229
* Join continuation lines that fit in 80 columns after removal of __P(()).Bruce Evans2002-03-261-4/+2
| | | | Notes: svn path=/head/; revision=93190
* Fixed some style bugs in the removal of __P(()). Some function parameterBruce Evans2002-03-263-7/+5
| | | | | | | lists were outdented to column 0. Notes: svn path=/head/; revision=93189
* Missed a __P in a .x file, remove it anywayWarner Losh2002-03-241-1/+1
| | | | Notes: svn path=/head/; revision=93064
* Breath deep and take __P out of the system include files.Warner Losh2002-03-2376-1544/+1343
| | | | | | | | | # This appears to not break X11, but I'm having problems compiling the # glide part of the server with or without this patch, so I can't tell # for sure. Notes: svn path=/head/; revision=93032
* rename 'enum res' and 'struct status' to 'enum sm_res' and 'struct sm_status'Alfred Perlstein2002-03-221-3/+3
| | | | | | | to avoid -Wshadow warnings in consumers of its generated header files. Notes: svn path=/head/; revision=92970
* Constify the first arg to callrpc(3).Alfred Perlstein2002-03-221-1/+1
| | | | Notes: svn path=/head/; revision=92968
* const poison just like NetBSD.Warner Losh2002-03-221-7/+7
| | | | Notes: svn path=/head/; revision=92925
* Make user_from_uid and group_from_gid return const char *, just likeWarner Losh2002-03-222-2/+2
| | | | | | | NetBSD. Update man page to reflect this. Notes: svn path=/head/; revision=92924
* Replaced hacks in sbin/Makefile,v 1.99 and usr.sbin/Makefile,v 1.217Ruslan Ermilov2002-03-211-0/+2
| | | | | | | | | with the NO_IPFILTER make.conf(5) knob. (So that we can "make the-rest-of-the-world" again.) Notes: svn path=/head/; revision=92868
* Tokens after #endif are not strict ISO.David E. O'Brien2002-03-131-1/+1
| | | | Notes: svn path=/head/; revision=92223
* o Add INET_ADDRSTRLEN and INET6_ADDRSTRLEN defines to <arpa/inet.h>Mike Barcroft2002-03-101-2/+14
| | | | | | | | | | for POSIX.1-2001 conformance. o Add magic to <netinet/in.h> and <netinet6/in6.h> to prevent redefining INET_ADDRSTRLEN and INET6_ADDRSTRLEN. o Add a note about missing typedefs in <arpa/inet.h>. Notes: svn path=/head/; revision=91984
* o Don't require long long support in bswap64() functions.Mike Barcroft2002-03-091-11/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | o In i386's <machine/endian.h>, macros have some advantages over inlines, so change some inlines to macros. o In i386's <machine/endian.h>, ungarbage collect word_swap_int() (previously __uint16_swap_uint32), it has some uses on i386's with PDP endianness. Submitted by: bde o Move a comment up in <machine/endian.h> that was accidentially moved down a few revisions ago. o Reenable userland's use of optimized inline-asm versions of byteorder(3) functions. o Fix ordering of prototypes vs. redefinition of byteorder(3) functions, so that the non-GCC (libc asm) case has proper prototypes. o Add proper prototypes for byteorder(3) functions in <sys/param.h>. o Prevent redundant duplicate prototypes by making use of the _BYTEORDER_PROTOTYPED define. o Move the bswap16(), bswap32(), bswap64() C functions into MD space for platforms in which asm versions don't exist. This significantly reduces the complexity of some things at the cost of duplicate code. Reviewed by: bde Notes: svn path=/head/; revision=91959
* Synch with OpenBSD (style).Brian Feldman2002-03-081-2/+2
| | | | Notes: svn path=/head/; revision=91911
* Use a integral type that doesn't require <sys/types.h>. ThisMike Barcroft2002-03-081-1/+2
| | | | | | | | | | accomplishes the goal of actually making <grp.h> independent of other headers for the definition of its types. Pointy hat to: mike Notes: svn path=/head/; revision=91848
* Rather than include namespace pollution in <grp.h> in order to declareMike Barcroft2002-02-261-1/+5
| | | | | | | | `gid_t', use the canonical protection scheme to define a type in two or more headers. This brings <grp.h> closer to POSIX.1-2001 conformance. Notes: svn path=/head/; revision=91325
* Per POSIX <grp.h> doesn't require <sys/types.h>.Maxim Sobolev2002-02-251-2/+3
| | | | | | | Submitted by: ache Notes: svn path=/head/; revision=91245
* Backout rev.1.5 - it seems that it's posixly correct that the programMaxim Sobolev2002-02-251-2/+0
| | | | | | | | | | needs to include <sys/types.h> before <grp.h>. Submitted by: fjoe, sheldonh David Malone <dwmalone@maths.tcd.ie> Notes: svn path=/head/; revision=91243
* In rev.1.4 type of (group)->gr_gid was changes from (int) to (gid_t),Maxim Sobolev2002-02-251-0/+2
| | | | | | | | | | so that <sys/types.h> is now required. Add it, otherwise it breaks some ports. Submitted by: Joe Marcus Clarke <marcus@marcuscom.com> Notes: svn path=/head/; revision=91242