aboutsummaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Fix a problem whereby a corrupt DNS record can cause named to crash. [11:06]Colin Percival2011-12-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | Add an API for alerting internal libc routines to the presence of "unsafe" paths post-chroot, and use it in ftpd. [11:07] Fix a buffer overflow in telnetd. [11:08] Make pam_ssh ignore unpassphrased keys unless the "nullok" option is specified. [11:09] Add sanity checking of service names in pam_start. [11:10] Approved by: so (cperciva) Approved by: re (bz) Security: FreeBSD-SA-11:06.bind Security: FreeBSD-SA-11:07.chroot Security: FreeBSD-SA-11:08.telnetd Security: FreeBSD-SA-11:09.pam_ssh Security: FreeBSD-SA-11:10.pam Notes: svn path=/releng/7.4/; revision=228843
* MFC r215236:Xin LI2010-11-271-23/+17
| | | | | | | | | Sync with OpenBSD, primarily better signal and terminal handling. Obtained from: OpenBSD Notes: svn path=/stable/7/; revision=215935
* MFC 178256:Xin LI2010-03-171-0/+1
| | | | | | | | | Add prototype for fdopendir(). Requested by: naddy Notes: svn path=/stable/7/; revision=205265
* MFC 196200,196211,196280-196282:John Baldwin2009-10-261-1/+1
| | | | | | | | | | | | | | | Introduce mfiutil, a basic utility for managing LSI SAS-RAID & Dell PERC5/6 controllers. Controller, array, and drive status can be checked, basic attributes can be changed, and arrays and spares can be created and deleted. Controller firmware can also be flashed. This does not replace MegaCLI, found in ports, as that is officially sanctioned and supported by LSI and includes vastly more functionality. However, mfiutil is open source and guaranteed to provide basic functionality, which can be especially useful if you have a problem and can't get MegaCLI to work. Notes: svn path=/stable/7/; revision=198496
* MFC: Add a new 'void closefrom(int lowfd)' system call. When called, itJohn Baldwin2009-07-141-0/+1
| | | | | | | | closes any open file descriptors >= 'lowfd'. Bump __FreeBSD_version to 702104. Notes: svn path=/stable/7/; revision=195694
* MFC: Add a feature_present(3) function which checks to see if a named kernelJohn Baldwin2009-06-101-0/+1
| | | | | | | feature is present by checking the kern.features sysctl MIB. Notes: svn path=/stable/7/; revision=193948
* merge r173762: use a forward declaration to avoid an aliasing warningDag-Erling Smørgrav2009-06-081-1/+2
| | | | Notes: svn path=/stable/7/; revision=193739
* Mostly synchronize lib/libthr and sys/kern/kern_umtx.c with the codeKonstantin Belousov2009-03-242-4/+22
| | | | | | | | | | | | | | | | | | | | | | from HEAD. Since libkse is still built on RELENG_7, pthread_cleanup_push/pop are left as the functions, but the support code in libthr is present for the macro versions. Malloc in RELENG_7 does not require thread exit hook, but I decided to add empty handler for it, instead of removing callback from thr_exit(). No mergeinfo since this change is prepared by patching libthr and then bringing in required missed bits. Requested by: bms Reviewed by: davidxu Tested by: bms, Mykola Dzham <i levsha org ua> Approved by: re (kensmith) Notes: svn path=/stable/7/; revision=190393
* MFC: r187724 / r187969: unsplit _PATH_SYSPATH & _PATH_STDPATH.David E. O'Brien2009-03-241-5/+3
| | | | Notes: svn path=/stable/7/; revision=190348
* MFC r183057Maksim Yevmenkin2009-03-051-0/+4
| | | | | | | | Add missing prototypes for uuid_enc,dec_le,be() functions. Pointy hat goes to me. Notes: svn path=/stable/7/; revision=189413
* MFC r183004 to stable/7:Antoine Brodin2009-01-101-2/+2
| | | | | | | | | | | Fix TELOPT(opt) when opt > TELOPT_TN3270E. PR: 127194 Submitted by: Joost Bekkers MFC after: 1 month Notes: svn path=/stable/7/; revision=187017
* MFC r185689:Konstantin Belousov2009-01-081-0/+1
| | | | | | | | | | | | | | | Order the str*.c files mostly alphabetical. MFC r185690: Import the strndup(3) function. MFC r185777: Add strndup(3) prototype to string.h. Manually change #undef HAVE_STRNDUP to #define HAVE_STRNDUP 1 for the configure.h files that need it. Notes: svn path=/stable/7/; revision=186890
* MFC 186090Hajimu UMEMOTO2008-12-172-3/+8
| | | | | | | | | | | | | | | | | Update our resolver to BIND 9.4.3. Merge the resolver part of BIND 9.4.3 into HEAD. It includes the following fix: 2426. [bug] libbind: inet_net_pton() can sometimes return the wrong value if excessively large netmasks are supplied. [RT #18512] Reported by: Maksymilian Arciemowicz <cxib__at__securityreason.com> Approved by: re (kib) Notes: svn path=/stable/7/; revision=186220
* MFC r184587:Konstantin Belousov2008-11-171-0/+2
| | | | | | | | | | Add the ffsll and flsll functions. These are ffs and fls operating on long long arguments. Approved by: re (kensmith) Notes: svn path=/stable/7/; revision=185025
* MFC:David Xu2008-11-102-1/+2
| | | | | | | | | Add POSIX clock id CLOCK_THREAD_CPUTIME_ID support. Approved by: re (kib) Notes: svn path=/stable/7/; revision=184806
* Merge r179308 from head to stable/7:Robert Watson2008-08-311-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | Remove netatm from HEAD as it is not MPSAFE and relies on the now removed NET_NEEDS_GIANT. netatm has been disconnected from the build for ten months in HEAD/RELENG_7. Specifics: - netatm include files - netatm command line management tools - libatm - ATM parts in rescue and sysinstall - sample configuration files and documents - kernel support as a module or in NOTES - netgraph wrapper nodes for netatm - ctags data for netatm. - netatm-specific device drivers. Reviewed by: bz Discussed with: bms, bz, harti MFC discussed with: des, peter Notes: svn path=/stable/7/; revision=182526
* MFCJohn Birrell2008-08-271-4/+0
| | | | | | | | | | DTrace support. Note that this defaults the 'make buildkernel' to build with CTF data so that the release kernel and modules are DTrace-able. Notes: svn path=/stable/7/; revision=182231
* MFC: Add the mpt_user personality to mpt(4).John Baldwin2008-06-271-1/+3
| | | | Notes: svn path=/stable/7/; revision=180057
* MFC: Add memrchr(3).Xin LI2008-05-271-0/+1
| | | | | | | Obtained from: OpenBSD Notes: svn path=/stable/7/; revision=179367
* MFC:Sean Farley2008-05-161-0/+6
| | | | | | | | | | | Define the size_t type since readpassphrase(3) requires it in its definition and sys/types.h is not listed within the synopsis of the man page. src/include/readpassphrase.h: rev 1.2 -> 1.3 Notes: svn path=/stable/7/; revision=179031
* MFCJohn Birrell2008-03-291-0/+2
| | | | | | | | | | | | stdio.h: 1.61 Allow an application to define FOPEN_MAX (like we allow for OPEN_MAX in sys/syslimits.h). awk/Makefile: 1.17 Allow awk to handle 64 files instead of just 20. Notes: svn path=/stable/7/; revision=177721
* MFC: Add support for non-portable adaptive mutexes, as well as experimentalKris Kennaway2007-11-141-0/+2
| | | | | | | | | support for spinning/yielding loops. Approved by: re@ (kensmith) Notes: svn path=/stable/7/; revision=173593
* MFC rev. 1.32-1.33Rong-En Fan2007-10-301-1/+1
| | | | | | | | | | | Small improvement for __isctype(): don't use __mb_sb_limit but hardcode 128 here instead, since default locale never define anything above 127 char. Approved by: re (kensmith) Notes: svn path=/stable/7/; revision=173171
* MFC ctype(3) fix for UTF-8 locale. See original commit log for details.Rong-En Fan2007-10-242-22/+55
| | | | | | | | | | | | PR: 116363 Reported by: Petr Hroudny <petr.hroudny at gmail.com> Patched by: ache Reviewed by: i18n@ Approved by: re (kensmith) OK-ed by: portmgr Notes: svn path=/stable/7/; revision=172929
* Install the forgotten /usr/include/geom/multipath/ header.Ruslan Ermilov2007-10-011-2/+4
| | | | | | | Approved by: re (kensmith) Notes: svn path=/head/; revision=172397
* Bring in the GEOM Virtualisation class, which allows to create huge GEOMPawel Jakub Dawidek2007-09-231-1/+1
| | | | | | | | | | | | providers with limited physical storage and add physical storage as needed. Submitted by: Ivan Voras Sponsored by: Google Summer of Code 2006 Approved by: re (kensmith) Notes: svn path=/head/; revision=172302
* Remove old prototypes for addr2ascii() and ascii2addr(), functions which noBruce M Simpson2007-08-241-2/+0
| | | | | | | | | | longer exist in libc. Requested by: Craig Rodrigues Approved by: re (kensmith) Notes: svn path=/head/; revision=171954
* declare struct tftphdr and embedded union as beeing packed, which isBernd Walter2007-08-011-2/+2
| | | | | | | | | | | required for arm. Tested on: arm, i386, amd64 Approved by: re (rwatson) MFC after: 1 week Notes: svn path=/head/; revision=171680
* Disconnect netatm from the build as it is not MPSAFE and relies onRobert Watson2007-07-141-2/+3
| | | | | | | | | | | | | | | | | | | | | | | NET_NEEDS_GIANT, which will shortly be removed. This is done in a away that it may be easily reattached to the build before 7.1 if appropriate locking is added. Specifics: - Don't install netatm include files - Disconnect netatm command line management tools - Don't build libatm - Don't include ATM parts in rescue or sysinstall - Don't install sample configuration files and documents - Don't build kernel support as a module or in NOTES - Don't build netgraph wrapper nodes for netatm This removes the last remaining consumer of NET_NEEDS_GIANT. Reviewed by: harti Discussed with: bz, bms Approved by: re (kensmith) Notes: svn path=/head/; revision=171453
* I4B header files were repo-copied from sys/i386/include toBjoern A. Zeeb2007-07-061-0/+15
| | | | | | | | | | | | | | | sys/i4b/include/ so they will be available to all architectures once I4B compiles on those. I4B header files are now installed in include/i4b/ and no longer in include/machine/. For now we still install the headers for i386 only. Approved by: re (kensmith) Notes: svn path=/head/; revision=171271
* Significantly reduce the memory leak as noted in BUGS section forSean Farley2007-07-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | setenv(3) by tracking the size of the memory allocated instead of using strlen() on the current value. Convert all calls to POSIX from historic BSD API: - unsetenv returns an int. - putenv takes a char * instead of const char *. - putenv no longer makes a copy of the input string. - errno is set appropriately for POSIX. Exceptions involve bad environ variable and internal initialization code. These both set errno to EFAULT. Several patches to base utilities to handle the POSIX changes from Andrey Chernov's previous commit. A few I re-wrote to use setenv() instead of putenv(). New regression module for tools/regression/environ to test these functions. It also can be used to test the performance. Bump __FreeBSD_version to 700050 due to API change. PR: kern/99826 Approved by: wes Approved by: re (kensmith) Notes: svn path=/head/; revision=171195
* Commit IPv6 support for FAST_IPSEC to the tree.George V. Neville-Neil2007-07-011-1/+1
| | | | | | | | | | | This commit includes all remaining changes for the time being including user space updates. Submitted by: bz Approved by: re Notes: svn path=/head/; revision=171135
* - Remove UMAP filesystem. It was disconnected from build three years ago,Rong-En Fan2007-06-251-2/+1
| | | | | | | | | | and it is seriously broken. Discussed on: freebsd-arch@ Approved by: re (mux) Notes: svn path=/head/; revision=171023
* Require users to provide a length information for inet_ntoa_r,Xin LI2007-06-141-1/+1
| | | | | | | | | this is common on other platforms. Reported by: pointyhat via kris Notes: svn path=/head/; revision=170715
* Add inet_ntoa_r, a reentrant version of inet_ntoa. This isXin LI2007-06-111-0/+2
| | | | | | | | | available on a lot of platforms, as well as libkern for years. Submitted by: "MQ" Notes: svn path=/head/; revision=170548
* Use tabs after #define.Stefan Farfeleder2007-06-111-5/+5
| | | | | | | | Obtained from: NetBSD Spotted by: njl Notes: svn path=/head/; revision=170547
* Add _PATH_FWMEM for libkvm.Hidetoshi Shimokawa2007-06-111-0/+1
| | | | Notes: svn path=/head/; revision=170527
* Merge NetBSD changes, among them:Stefan Farfeleder2007-06-101-2/+5
| | | | | | | | | | | | | | | | | el.c 1.44, el.h 1.17, editline.3 1.53, histedit.h 1.31: # add EL_GETFP, and EL_SETFP. el.c 1.42, term.c 1.46, term.h 1.18, editline.3 1.52, histedit.h 1.29: # - Add more readline functions, enough for gdb-6.5 # - Make el_get varyadic, and implement EL_GETTC. # - XXX: the EL_SETTC api will change in the future. Note: The latter change breaks the ABI of the el_get() function. Approved by: re (kensmith) Notes: svn path=/head/; revision=170511
* Merge BIND 9.4.1 into main chunk.Hajimu UMEMOTO2007-06-035-298/+302
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=170244
* Back out all POSIXified *env() changes.Andrey A. Chernov2007-05-011-2/+2
| | | | | | | | | | | | Not because I admit they are technically wrong and not because of bug reports (I receive nothing). But because I surprisingly meets so strong opposition and resistance so lost any desire to continue that. Anyone who interested in POSIX can dig out what changes and how through cvs diffs. Notes: svn path=/head/; revision=169177
* Fix unsetenv and putenv prototypes to conform Open Group specs Issue 6Andrey A. Chernov2007-04-301-2/+2
| | | | | | | (also IEEE Std 1003.1-2001) Notes: svn path=/head/; revision=169110
* Install only types.h from sys/rpc/.Pawel Jakub Dawidek2007-04-131-1/+9
| | | | | | | | Requested by: ache Explained how by: ru Notes: svn path=/head/; revision=168677
* Move rpc/types.h under sys/, as this is used by ZFS kernel module.Pawel Jakub Dawidek2007-04-103-108/+2
| | | | | | | Repo-copied by: simon Notes: svn path=/head/; revision=168606
* - Remove SEEK_DATA and SEEK_HOLE from stdio.h, they don't belong here.Pawel Jakub Dawidek2007-04-071-6/+0
| | | | | | | | | | - Only define SEEK_DATA and SEEK_HOLE in sys/unistd.h when neither _POSIX_SOURCE nor _XOPEN_SOURCE is defined. Pointed out by: bde, ache Notes: svn path=/head/; revision=168469
* Implement SEEK_DATA and SEEK_HOLE extensions to lseek(2) as found inPawel Jakub Dawidek2007-04-051-0/+6
| | | | | | | | | OpenSolaris. For more information please refer to: http://blogs.sun.com/bonwick/entry/seek_hole_and_seek_data Notes: svn path=/head/; revision=168397
* Update the dump program to save extended attributes. UpdateKirk McKusick2007-02-261-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the restore program to restore all dumped extended attributes. If the restore is running as root, it will always be able to restore all extended attributes. If it is not running as root, it makes a best effort to set them. Using the -v command line flag or the `verbose' command in interactive mode will display all the extended attributes being set on files (and at the end on directories) that are being restored. It will note any extended attributes that could not be set. The extended attributes are placed on the dump image immediately following each file's data. Older versions of restore can work with the newer dump images. Old versions of restore will correctly restore the file data and then (silently) skip over the extended attribute data and proceed to the next file. This resolves PR 93085 which will be closed once the code has been MFC'ed. Note that this code will not compile until these header files have been updated: <protocols/dumprestore.h> and <sys/extattr.h>. PR: bin/93085 Comments from: Poul-Henning Kamp and Robert Watson MFC after: 3 weeks Notes: svn path=/head/; revision=167011
* Makefile changes to reflect moving sys/isofs/cd9660 to sys/fs/cd9660.Craig Rodrigues2007-02-111-1/+8
| | | | | | | | Continue to install userland include files in /usr/include/isofs/cd9660 so as not to break userland applications such as libstand. Notes: svn path=/head/; revision=166640
* Properly parenthesize the __tg_is_complex() macro by moving a closingJens Schweikhardt2007-02-021-2/+2
| | | | | | | | | paren to where it belongs. MFC after: 7 days Notes: svn path=/head/; revision=166432
* Comment the token after #endif, like we do everywhere else.Jens Schweikhardt2007-02-021-6/+6
| | | | | | | | | Static analyzers like FlexeLint complain about it. MFC after: 7 days Notes: svn path=/head/; revision=166431
* Oops, remove an objformat.h reference.Peter Wemm2007-01-251-1/+1
| | | | Notes: svn path=/head/; revision=166243