aboutsummaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* 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
* o Move NTOHL() and associated macros into <sys/param.h>. These areMike Barcroft2002-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 Notes: svn path=/head/; revision=90868
* Oops, forgot to commit this (s/ucontext_t/struct __ucontext/).Daniel Eischen2002-02-171-1/+1
| | | | Notes: svn path=/head/; revision=90780
* Move user_from_uid to pwd.hWarner Losh2002-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 Notes: svn path=/head/; revision=90644
* Revert 1.29. It breaks the build. Will figure out a better way to doWarner Losh2002-02-131-2/+2
| | | | | | | this that doesn't break things. Notes: svn path=/head/; revision=90607
* Make the user_from_uid and group_from_gid prototypes match the actualWarner Losh2002-02-131-2/+2
| | | | | | | function definitions. Notes: svn path=/head/; revision=90606
* Apply the following mechanical transformations in preparation forDag-Erling Smørgrav2002-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 Notes: svn path=/head/; revision=90297
* Fix cc -Wall, fix rcsid warnings, add missing prototypes,Alfred Perlstein2002-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 Notes: svn path=/head/; revision=90271
* Move arguments in prototype out of application namespace.Dag-Erling Smørgrav2002-02-051-1/+1
| | | | | | | Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=90232
* Makes __istype() an inline (and a non inlined) function to avoid C++Rob Braun2002-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 Notes: svn path=/head/; revision=90231
* Allow ldd(1) be used on shared libraries in addition to executables.Maxim Sobolev2002-02-041-0/+1
| | | | Notes: svn path=/head/; revision=90172
* WARNS-n and lint(1) silencer. Declare (const) strings properly asMark Murray2002-02-031-1/+1
| | | | | | | 'const char *'. Notes: svn path=/head/; revision=90138
* Change brk's prototype from char *brk(const char *) to int brk(const void *)David Malone2002-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 Notes: svn path=/head/; revision=89732
* Use the proper type (gid_t) for (group)->gr_gid to be orthogonalMark Murray2002-01-222-3/+4
| | | | | | | | | with uid_t usage and (user)->pw_uid. PR: 3242 Notes: svn path=/head/; revision=89663
* I've been meaning to do this for a while. Add an underscore to theMatthew Dillon2002-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. Notes: svn path=/head/; revision=89572
* Add support for C++.Mike Barcroft2002-01-061-0/+2
| | | | | | | | Submitted by: bde PR: 33590 Notes: svn path=/head/; revision=88962
* Fix bugs in the structure for rx_frame by making gap length one byte andDoug Ambrisko2001-12-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a packed array so sizeof work. This broke RFMON mode and passing up 802.11 packets. The Linux emulation code was derived from the open source Linux driver to maintain compatibility. LEAP support is added, hints from Richard Johnson. I've verified this locally with PC350v42510.img firmware. More bug fixing from Marco to fix long passwords. Change DELAYs in flash part of driver to FLASH_DELAY which uses tsleep so it doesn't look like your system died during a flash update. Install header files in /usr/include/dev/an Cleanup some ifmedia bugs add "Home" key mode to ifmedia and ancontrol. This way you can manage 2 keys a little easier. Map the home mode into key 5. Enhance ifconfig to dump the various configured SSIDs. I use a bunch of different ones and roam between them. Use the syntax similar to the WEP keys to deal with setting difference SSIDs. Bump up up the Card capabilities RID since they added 2 bytes to it in the latest firmware. Thankfully we changed it from a terminal failure so the card still worked but the driver whined. Some cleanup patches from Marco Molteni. Submitted by: Richard Johnson <raj@cisco.com> Marco Molteni <molter@tin.it> and myself Various checks: David Wolfskill <david@catwhisker.org> Reviewed by: Brooks Davis <brooks@freebsd.org> Warner Losh <imp@freebsd.org> Approved by: Brooks Davis <brooks@freebsd.org> Warner Losh <imp@freebsd.org> Obtained from: Linux emulation API's from Aironet driver. Notes: svn path=/head/; revision=88748
* Fix support for K&R C.Mike Barcroft2001-12-222-2/+3
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=88399
* FILES support for bsd.prog.mk. See bsd.README for details.Ruslan Ermilov2001-12-171-16/+16
| | | | | | | Stolen from: NetBSD Notes: svn path=/head/; revision=88055
* Install devfs includes.Brian Feldman2001-12-171-1/+1
| | | | Notes: svn path=/head/; revision=88050
* Add bmake glue for src/contrib/smbfs and connect userland smbfsSheldon Hearn2001-12-141-0/+7
| | | | | | | | | | | | | support to the build. The MFC reminder below is subject to <re@FreeBSD.org> approval prior to 4.5-RELEASE. Reviewed by: bp, fjoe MFC: 1 week Notes: svn path=/head/; revision=87874
* * style(9)'ifyAlexey Zelkin2001-12-122-8/+8
| | | | | | | | | * add K&R support to langinfo.h Requested by: bde (2) Notes: svn path=/head/; revision=87744
* Get rid of unsed since rev 1.109 of lib/Makefile WANT_CSRG_LIBM define.Alexey Zelkin2001-12-111-3/+0
| | | | | | | | | | | | We'll never install math.h wrapped by this define since msun's math.h is using, so it should be removed from the source tree at some point (after merge of useful stuff to msun's math.h which is installing now to /usr/include) Reviewed by: bde Notes: svn path=/head/; revision=87663
* Add my e-mail to copyrightsAlexey Zelkin2001-12-112-2/+2
| | | | Notes: svn path=/head/; revision=87659
* An extra #ifdef crept in with rev 1.38.David E. O'Brien2001-12-051-1/+0
| | | | Notes: svn path=/head/; revision=87379
* Turn back on fmtcheck's attribute checks, guarded for non-GCC compilers.David E. O'Brien2001-12-041-1/+7
| | | | | | | Submitted by: bde Notes: svn path=/head/; revision=87369
* Remove the GCC'ism "__attribute__" from the 'fmtcheck' prototype.David E. O'Brien2001-12-041-2/+1
| | | | | | | I leave it up to someone else to fix this breakage properly. Notes: svn path=/head/; revision=87319
* Merge from master (crypto) telnet. WARNS fixes for alpha.Mark Murray2001-12-031-6/+6
| | | | Notes: svn path=/head/; revision=87268
* Add a missing underscore.Mike Barcroft2001-12-011-1/+1
| | | | | | | Submitted by: fenner Notes: svn path=/head/; revision=87159
* o Stop abusing MD headers with non-MD types.Mike Barcroft2001-12-011-9/+49
| | | | | | | | | | | | | | | | | | o Hide nonstandard functions and types in <netinet/in.h> when _POSIX_SOURCE is defined. o Add some missing types (required by POSIX.1-200x) to <netinet/in.h>. o Restore vendor ID from Rev 1.1 in <netinet/in.h> and make use of new __FBSDID() macro. o Fix some miscellaneous issues in <arpa/inet.h>. o Correct final argument for the inet_ntop() function (POSIX.1-200x). o Get rid of the namespace pollution from <sys/types.h> in <arpa/inet.h>. Reviewed by: fenner Partially submitted by: bde Notes: svn path=/head/; revision=87158
* o Improve consistency of style by fixing tabs around _PATH_AUTHCONF.Robert Watson2001-11-301-1/+1
| | | | Notes: svn path=/head/; revision=87136
* o Introduce _PATH_CAPABILITY and _PATH_CAPABILITY_DB to the systemRobert Watson2001-11-301-0/+2
| | | | | | | | | | path set. These files will hold per-user capability information. Obtained from: TrustedBSD Project Submitted by: tmm Notes: svn path=/head/; revision=87135
* Oops, actually fix the namespace pollution for atoll() as the previousBruce Evans2001-11-291-4/+4
| | | | | | | commit claimed to do. Notes: svn path=/head/; revision=87086
* Fixed namespace pollution and/or breakage of K&R and C90 support related toBruce Evans2001-11-281-16/+21
| | | | | | | | | | | | | | | | | | | | | | | | the following functions in the following commits: - atoll() in revs 1.23-1.25 - llabs() and lldiv() in revs 1.22 - strtoq() and strtouq() in revs 1.18 C99 functions must not be declared in C90/POSIX.1-1990 sections, and "long long" must not be exposed to compilers that don't support it. Fixed style bugs (mainly misindentation and disorder) related the following functions in the following commits: - atoll() in revs 1.23-1.25 - getprogname() in rev.1.21 - sranddev() in revs 1.19-1.20 - strtoq() and strtouq() in rev.1.13 - user_from_uid() in rev.1.1 Breakage of K&R and C90 support used to be avoided by conditializing the "long long"s for strtoq() and strtouq() on __STRICT_ANSI__, but the conditionals should have gone away in rev.1.13 when the "long long"s went away (the problem was moved to the places that declare quad_t and u_quad_t). Notes: svn path=/head/; revision=87071
* Fixed namespace pollution in previous commit. The C99 functionBruce Evans2001-11-281-1/+1
| | | | | | | | sterror_r() must not be declared in the C90/POSIX.1-1990 section. Put it in the nonstandard section for now. Notes: svn path=/head/; revision=87069
* Whitespace formattingAndrey A. Chernov2001-11-281-1/+2
| | | | Notes: svn path=/head/; revision=87021
* Fix just added atoll prototypeAndrey A. Chernov2001-11-281-1/+1
| | | | Notes: svn path=/head/; revision=87019