aboutsummaryrefslogtreecommitdiff
path: root/include/paths.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove gbde support from swapon(8)Poul-Henning Kamp2024-05-071-1/+0
|
* include: Remove ancient SCCS tags.Warner Losh2023-11-271-2/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* Remove $FreeBSD$: one-line .h patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/
* include: Migrate from COMPAT_32BIT to generic COMPAT_libcompatJessica Clarke2023-07-091-2/+2
| | | | | | | | See commit 8fad2cda93c7 ("bsd.compat.mk: Provide new CPP and sub-make variables") for the context behind this change. Reviewed by: emaste, brooks, jhb Differential Revision: https://reviews.freebsd.org/D40924
* Add search of LOCALBASE/share/calendar for calendars supplied by a port.Stefan Eßer2020-10-231-1/+4
| | | | | | | | | | | | | | | | | Calendar files in LOCALBASE override similarily named ones in the base system. This could easily be changed if the base system calendars should have precedence, but it could lead to a violation of POLA since then the port's files were ignored unless those in base have been deleted. There was no definition of _PATH_LOCALBASE in paths.h, but verbatim uses of /usr/local existed for _PATH_DEFPATH. Use _PATH_LOCALBASE here to ease a consistent modification of this prefix. Reviewed by: imp, pfg Differential Revision: https://reviews.freebsd.org/D26882 Notes: svn path=/head/; revision=366962
* include: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-1/+3
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326024
* libkvm: support access to vmm guest memory, allow writes to fwmem and vmmAndriy Gapon2016-12-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | This change consists of two parts: - allow libkvm to recognize /dev/vmm/* character devices as devices that provide access to the physical memory of a system (similarly to /dev/fwmem*) - allow libkvm to recognize that /dev/vmm/* and /dev/fwmem* devices provide access to the physical memory of live remote systems and, thus, the memory is writable As a result, it should be possible to run commands like $ kgdb -w /path/to/kernel /dev/fwmem0.0 $ kgdb /path/to/kernel /dev/vmm/guest Reviewed by: kib, jhb MFC after: 2 weeks Relnotes: yes Sponsored by: Panzura Differential Revision: https://reviews.freebsd.org/D8679 Notes: svn path=/head/; revision=310630
* Implement suggestion by jhb@ to have _PATH_FIRMWARE instead of hardWarner Losh2016-03-231-0/+1
| | | | | | | coding it to be "/usr/share/firmware". Notes: svn path=/head/; revision=297205
* Add sbin and /usr/local directories to _PATH_DEFPATH.Jilles Tjoelker2016-01-051-2/+2
| | | | | | | | | | | | | | | | | | | | Set _PATH_DEFPATH to /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin. This is the path in the default class in the default /etc/login.conf, excluding ~/bin which would not be expanded properly in a string constant. For normal logins, _PATH_DEFPATH is overridden by /etc/login.conf, ~/.login_conf or shell startup files. _PATH_DEFPATH is still used as a default by execlp(), execvp(), posix_spawnp() and sh if PATH is not set, and by cron. Especially the latter is a common trap (most recently in PR 204813). PR: 204813 Reviewed by: secteam (delphij), alfred Notes: svn path=/head/; revision=293204
* Assume that the -f argument is /dev/gpioc0 if it is not passed.Sean Bruno2013-09-171-0/+1
| | | | | | | | | | | hrs@ provided this verison of the patch and showed me where all the needed changes were to be made outside of gpioctl.c Approved by: re (hrs) MFC after: 2 weeks Notes: svn path=/head/; revision=255629
* - Add vnode-backed swap space specification support. This is enabled whenHiroki Sato2013-06-271-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | device names "md" or "md[0-9]*" and a "file" option are specified in /etc/fstab like this: md none swap sw,file=/swap.bin 0 0 - Add GBDE/GELI encrypted swap space specification support, which rc.d/encswap supported. The /etc/fstab lines are like the following: /dev/ada1p1.bde none swap sw 0 0 /dev/ada1p2.eli none swap sw 0 0 .eli devices accepts aalgo, ealgo, keylen, and sectorsize as options. swapctl(8) can understand an encrypted device in the command line like this: # swapctl -a /dev/ada2p1.bde - "-L" flag is added to support "late" option to defer swapon until rc.d/mountlate runs. - rc.d script change: rc.d/encswap -> removed rc.d/addswap -> just display a warning message if $swapfile is defined rc.d/swap1 -> renamed to rc.d/swap rc.d/swaplate -> newly added to support "late" option These changes alleviate a race condition between device creation/removal and swapon/swapoff. MFC after: 1 week Reviewed by: wblock (manual page) Notes: svn path=/head/; revision=252310
* Add change missed in 243245.Edward Tomasz Napierala2012-11-181-0/+1
| | | | Notes: svn path=/head/; revision=243247
* Finally nuke auth.conf, nine years after it was deprecated. The onlyDag-Erling Smørgrav2012-06-121-1/+0
| | | | | | | | | | | | | | | | | | | | | thing it was still used for was to set the "global default" password hash. Since the stock auth.conf contained nothing but comments, the global default was actually the first algorithm in crypt(3)'s list, which happens to be DES; I take the fact that nobody noticed as proof that it was not used outside of crypt(3). The only other use in our tree was in the Kerberos support code in in tinyware's passwd(1). I removed that code in an earlier commit; it would not have compiled anyway, as it only supported Kerberos IV. The auth_getval() function is now a stub that always returns NULL, which has the same effect as a functional auth_getval() with an empty auth.conf. MFC after: 3 weeks Notes: svn path=/head/; revision=236965
* Add the BSD-licensed Citrus iconv to the base system with default offGabor Kovesdan2011-02-251-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | setting. It can be built by setting the WITH_ICONV knob. While this knob is unset, the library part, the binaries, the header file and the metadata files will not be built or installed so it makes no impact on the system if left turned off. This work is based on the iconv implementation in NetBSD but a great number of improvements and feature additions have been included: - Some utilities have been added. There is a conversion table generator, which can compare conversion tables to reference data generated by GNU libiconv. This helps ensuring conversion compatibility. - UTF-16 surrogate support and some endianness issues have been fixed. - The rather chaotic Makefiles to build metadata have been refactored and cleaned up, now it is easy to read and it is also easier to add support for new encodings. - A bunch of new encodings and encoding aliases have been added. - Support for 1->2, 1->3 and 1->4 mappings, which is needed for transliterating with flying accents as GNU does, like "u. - Lots of warnings have been fixed, the major part of the code is now WARNS=6 clean. - New section 1 and section 5 manual pages have been added. - Some GNU-specific calls have been implemented: iconvlist(), iconvctl(), iconv_canonicalize(), iconv_open_into() - Support for GNU's //IGNORE suffix has been added. - The "-" argument for stdin is now recognized in iconv(1) as per POSIX. - The Big5 conversion module has been fixed. - The iconv.h header files is supposed to be compatible with the GNU version, i.e. sources should build with base iconv.h and GNU libiconv. It also includes a macro magic to deal with the char ** and const char ** incompatibility. - GNU compatibility: "" or "char" means the current local encoding in use - Various cleanups and style(9) fixes. Approved by: delphij (mentor) Obtained from: The NetBSD Project Sponsored by: Google Summer of Code 2009 Notes: svn path=/head/; revision=219019
* Remove the Berkeley clause 3's.Warner Losh2010-02-161-5/+1
| | | | | | | Add a few $FreeBSD$ Notes: svn path=/head/; revision=203964
* Remove the current directory from _PATH_STDPATH.Jilles Tjoelker2009-12-301-1/+1
| | | | Notes: svn path=/head/; revision=201258
* Also un-split _PATH_STDPATH for grepability.David E. O'Brien2009-02-011-4/+3
| | | | | | | While I'm here, fix other style bugs reported to me. Notes: svn path=/head/; revision=187969
* No need to wrap _PATH_SYSPATH. It makes it harder to grep(1) for itsDavid E. O'Brien2009-01-261-2/+1
| | | | | | | value. (also unwrapping better matches existing style) Notes: svn path=/head/; revision=187724
* Add _PATH_FWMEM for libkvm.Hidetoshi Shimokawa2007-06-111-0/+1
| | | | Notes: svn path=/head/; revision=170527
* Define _PATH_MKSNAP_FFS and use it in dump(8) instead of assumingIan Dowse2004-01-041-0/+1
| | | | | | | | | that mksnap_ffs(8) can be found using the current $PATH. Reviewed by: mckusick Notes: svn path=/head/; revision=124132
* Add /rescue bits. This basically encompasses all of bin and sbin alongGordon Tetlow2003-06-291-0/+35
| | | | | | | | | with a couple of bits from usr.bin in a crunchgen'd binary. Submitted by: Tim Kientzle <kientzle@acm.org> Notes: svn path=/head/; revision=117035
* Move path definitions to include/paths.h. This makes it easier to overrideGordon Tetlow2003-06-291-0/+3
| | | | | | | | | these definitions in the /rescue case. Submitted by: Tim Kientzle <kientzle@acm.org> Notes: svn path=/head/; revision=117033
* Convert fsck and mount to using execvP to find fsck_foo and mount_foo.Gordon Tetlow2003-06-291-0/+3
| | | | | | | | | | This simplifies the code path and makes the default path easy to override in the /rescue case. Submitted by: Tim Kientzle <kientzle@acm.org> Notes: svn path=/head/; revision=117031
* Move _PATH_LOCALE to place where it really belongs to (rune.h -> paths.h)Alexey Zelkin2003-06-251-0/+1
| | | | | | | Reviewed by: ache Notes: svn path=/head/; revision=116844
* Remove _PATH_DEVDBPoul-Henning Kamp2003-06-201-1/+0
| | | | Notes: svn path=/head/; revision=116637
* Centralize _PATH_* definitions.David E. O'Brien2003-05-051-0/+4
| | | | | | | Submitted by: Tim Kientzle <kientzle@acm.org> (embellished by me) Notes: svn path=/head/; revision=114763
* Dynamic object dependency mapping: libmap.Matthew N. Dodd2003-04-071-0/+1
| | | | | | | | | | This is an optional feature, disabled by default. This will be useful to people testing the various POSIX threading libraries under -CURRENT but can easily serve other needs. Notes: svn path=/head/; revision=113229
* Correct _PATH_RCP to be /bin/rcp, not /usr/bin/rcp.Maxim Sobolev2002-07-141-1/+1
| | | | Notes: svn path=/head/; revision=99958
* 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
* 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
* Breath deep and take __P out of the system include files.Warner Losh2002-03-231-1/+1
| | | | | | | | | # 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
* 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
* Move _PATH_DEFTAPE to <paths.h> to remove all the duplication of definitons,David E. O'Brien2001-03-081-0/+1
| | | | | | | and remove leading `r'(aw) from it. Notes: svn path=/head/; revision=73986
* Add `_PATH_DEVZERO'.David E. O'Brien2000-12-091-0/+2
| | | | | | | Use _PATH_* where where possible. Notes: svn path=/head/; revision=69793
* Move nologin from /etc to /var/run. This means one less file that hasSatoshi Asami1999-01-111-1/+1
| | | | | | | | | | | | to be written to /etc. The only essential change is in paths.h, so any third-party software written correctly will pick it up in the next rebuild. Reviewed by: the committers list (actually an old version) Notes: svn path=/head/; revision=42515
* Move auth.conf path in here. Doesn't affect published interface.Jordan K. Hubbard1998-10-091-0/+1
| | | | Notes: svn path=/head/; revision=40111
* Due conflict to some obsoleted applications (dump/restore) renameAndrey A. Chernov1995-09-231-1/+1
| | | | | | | | _PATH_LOCK to _PATH_UUCPLOCK Pointed-by: bde Notes: svn path=/head/; revision=10975
* Add _PATH_LOCK: /var/spool/lock/Andrey A. Chernov1995-09-201-0/+1
| | | | | | | Suggested-by: bde Notes: svn path=/head/; revision=10923
* Need _PATH_YP for ypserver stuff.Bill Paul1995-01-311-0/+1
| | | | Notes: svn path=/head/; revision=6083
* Define _PATH_FTPUSERSPaul Traina1994-09-291-0/+1
| | | | Notes: svn path=/head/; revision=3189
* Get rid of _PATH_UNIX completely; use getbootfile(3) instead.Garrett Wollman1994-09-241-1/+8
| | | | | | | | | | DANGER WILL ROBINSON! _PATH_UNIX is currently defined as the literal string "don't use this". I am of two minds about this myself, but wanted to get something into the tree as quickly as possible. Notes: svn path=/head/; revision=3041
* Update the Makefile to work correctly when copying and/or symlinkingRodney W. Grimes1994-05-261-2/+2
| | | | | | | | | | | | | | | | | | | /usr/include. Make comment about mp.h missing and remove it from the list of files. Fix installation of ufs include files as this is now a tree ufs/{ffs,lfs, mfs,ufs}. Make setting of SHARED optional by makeing it SHARED?=. Comment out installation of X11 includes since it does not work for XFree86 until we get XFree86 to install as /usr/X11. Update _PATH_UNIX to be /kernel. Remove /usr/{contrib,old}/bin from _PATH_STDPATH. Notes: svn path=/head/; revision=1570
* BSD 4.4 Lite Include SourcesRodney W. Grimes1994-05-241-0/+69
Notes: svn path=/head/; revision=1539