summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Join continuation lines that fit in 80 columns after removal of __P(()).bde2002-03-261-4/+2
|
* Fixed some style bugs in the removal of __P(()). Some function parameterbde2002-03-263-7/+5
| | | | lists were outdented to column 0.
* Missed a __P in a .x file, remove it anywayimp2002-03-241-1/+1
|
* Breath deep and take __P out of the system include files.imp2002-03-2376-1547/+1346
| | | | | | # 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.
* rename 'enum res' and 'struct status' to 'enum sm_res' and 'struct sm_status'alfred2002-03-221-3/+3
| | | | to avoid -Wshadow warnings in consumers of its generated header files.
* Constify the first arg to callrpc(3).alfred2002-03-221-1/+1
|
* const poison just like NetBSD.imp2002-03-221-7/+7
|
* Make user_from_uid and group_from_gid return const char *, just likeimp2002-03-222-2/+2
| | | | NetBSD. Update man page to reflect this.
* Replaced hacks in sbin/Makefile,v 1.99 and usr.sbin/Makefile,v 1.217ru2002-03-211-0/+2
| | | | | | with the NO_IPFILTER make.conf(5) knob. (So that we can "make the-rest-of-the-world" again.)
* Tokens after #endif are not strict ISO.obrien2002-03-131-1/+1
|
* o Add INET_ADDRSTRLEN and INET6_ADDRSTRLEN defines to <arpa/inet.h>mike2002-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>.
* o Don't require long long support in bswap64() functions.mike2002-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
* Synch with OpenBSD (style).green2002-03-081-2/+2
|
* Use a integral type that doesn't require <sys/types.h>. Thismike2002-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
* Rather than include namespace pollution in <grp.h> in order to declaremike2002-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.
* Per POSIX <grp.h> doesn't require <sys/types.h>.sobomax2002-02-251-2/+3
| | | | Submitted by: ache
* Backout rev.1.5 - it seems that it's posixly correct that the programsobomax2002-02-251-2/+0
| | | | | | | needs to include <sys/types.h> before <grp.h>. Submitted by: fjoe, sheldonh David Malone <dwmalone@maths.tcd.ie>
* In rev.1.4 type of (group)->gr_gid was changes from (int) to (gid_t),sobomax2002-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>
* o Move NTOHL() and associated macros into <sys/param.h>. These aremike2002-02-182-10/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | deprecated in favor of the POSIX-defined lowercase variants. o Change all occurrences of NTOHL() and associated marcros in the source tree to use the lowercase function variants. o Add missing license bits to sparc64's <machine/endian.h>. Approved by: jake o Clean up <machine/endian.h> files. o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>. o Remove prototypes for non-existent bswapXX() functions. o Include <machine/endian.h> in <arpa/inet.h> to define the POSIX-required ntohl() family of functions. o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>, and <sys/param.h>. o Prepend underscores to the ntohl() family to help deal with complexities associated with having MD (asm and inline) versions, and having to prevent exposure of these functions in other headers that happen to make use of endian-specific defines. o Create weak aliases to the canonical function name to help deal with third-party software forgetting to include an appropriate header. o Remove some now unneeded pollution from <sys/types.h>. o Add missing <arpa/inet.h> includes in userland. Tested on: alpha, i386 Reviewed by: bde, jake, tmm
* Oops, forgot to commit this (s/ucontext_t/struct __ucontext/).deischen2002-02-171-1/+1
|
* Move user_from_uid to pwd.himp2002-02-143-2/+3
| | | | | | | | | | | | | Move group_from_gid to grp.h Remove from stdlib.h Make the prototypes match the code Fix rm and mv to include new files. NetBSD has these defined in those files, and others too that I've not done. Approved by: terminal room kabal Reviewed by: jhb, phk
* Revert 1.29. It breaks the build. Will figure out a better way to doimp2002-02-131-2/+2
| | | | this that doesn't break things.
* Make the user_from_uid and group_from_gid prototypes match the actualimp2002-02-131-2/+2
| | | | function definitions.
* Apply the following mechanical transformations in preparation fordes2002-02-062-24/+24
| | | | | | | | | | | | | | | | | ansification and constification: s{\s+__P\((\(.*?\))\)}{$1}g; s{\(\s+}{\(}g; s{\s+\)}{\)}g; s{\s+,}{,}g; s{(\s+)(for|if|switch|while)\(}{$1$2 \(}g; s{return ([^\(].*?);}{return ($1);}g; s{([\w\)])([!=+/\*-]?=)([\w\(+-])}{$1 $2 $3}g; s{\s+$}{\n};g Also add $FreeBSD$ where needed. MFC after: 1 week
* Fix cc -Wall, fix rcsid warnings, add missing prototypes,alfred2002-02-052-4/+14
| | | | | | | | | change prototypes to be the same as in the original sun tirpc code. Remove ()P macro in a file where the mayority had ()P already removed. Add them if the mayority use ()P macros. Submitted by: mbr Requested by: bde
* Move arguments in prototype out of application namespace.des2002-02-051-1/+1
| | | | Sponsored by: DARPA, NAI Labs
* Makes __istype() an inline (and a non inlined) function to avoid C++bbraun2002-02-052-4/+14
| | | | | | | | compile issues. std::isspace(' ') was expanding to std::(!!_maskrune...) which would cause a C++ compile error. Making __istype() an inline causes the expansion to be std::__istype() instead, which is valid. Reviewed by: jkh
* Allow ldd(1) be used on shared libraries in addition to executables.sobomax2002-02-041-0/+1
|
* WARNS-n and lint(1) silencer. Declare (const) strings properly asmarkm2002-02-031-1/+1
| | | | 'const char *'.
* Change brk's prototype from char *brk(const char *) to int brk(const void *)dwmalone2002-01-241-2/+2
| | | | | | | | | | | | | | | and sbrk's prototype from char *sbrk(int) to void *sbrk(intptr_t). This makes us more consistant with NetBSD and standards which include these functions. Bruce pointed out that ptrdiff_t would probably have been better than intptr_t, but this doesn't match other implimentations. Also remove local declarations of sbrk and unnecessary casting. PR: 32296 Tested by: Harti Brandt <brandt@fokus.gmd.de> MFC after: 1 month
* Use the proper type (gid_t) for (group)->gr_gid to be orthogonalmarkm2002-01-222-3/+4
| | | | | | with uid_t usage and (user)->pw_uid. PR: 3242
* I've been meaning to do this for a while. Add an underscore to thedillon2002-01-191-8/+8
| | | | | | | | time_to_xxx() and xxx_to_time() functions. e.g. _time_to_xxx() instead of time_to_xxx(), to make it more obvious that these are stopgap functions & placemarkers and not meant to create a defacto standard. They will eventually be replaced when a real standard comes out of committee.
OpenPOWER on IntegriCloud