summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add some references, most of these were removed when we stopped buildingjsg2021-03-081-2/+6
| | | | | | and installing USD/SMM/PSD docs. jmc@ agrees with the direction, ok millert@ on an earlier diff
* satisfy -fno-common, by (1) copying all the variable decls fromderaadt2021-01-262-46/+87
| | | | | | indent_globs.h to indent.c, and (2) changing all the same decls in indent_globs.h to be extern ok mortimer
* options(4), config(8): drop dst/timezone knobs; ok kettenis@ deraadt@ jca@cheloha2019-09-064-71/+10
|
* config -eu uses a second copy of the nlist array[], which should neverderaadt2019-08-132-24/+8
| | | | | become different or the #define's for the slots could diverge. To avoid this, make one a copy of the other at runtime.
* delete the bufcachepercent command (since this can be done at runtime),deraadt2019-08-115-31/+8
| | | | | and leftovers from past commands shmseg/shmmaxpg/nmbclusters ok kettenis
* In the synopsis, put options that take no arguments before those that do.schwarze2019-07-192-5/+5
| | | | | | This also makes it easier to find the crucial difference between the two synopses, which is the "-e". Suggested by kn@; OK jmc@.
* fputc/fputs return EOF on errorderaadt2019-06-283-34/+34
|
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-3/+3
| | | | | | value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
* allow specifying a cmdfile instead of trying to pipe in commands for -ef.tedu2019-05-145-14/+79
| | | | ok deraadt
* In the KARL relink case, the bsd.gdb built on the way (so that we getderaadt2019-04-011-2/+3
| | | | CTF) is not needed and can be removed.
* dev_t is signed to permit passing -1 as an invalid condition, but thederaadt2019-02-052-5/+5
| | | | | | decomposition into major and minor is unsigned, so we should print them with %u instead of %d. ok guenther
* remove the largely out of date examples related to kerneljmc2018-04-251-72/+18
| | | | | | | | | building: more accurate information can be found elsewhere; while here, replace Gt sequences; prompted by a diff from il ka; ok deraadt guenther
* Consolidate lib.so.*.a, ld.so.a and the kernel relink kit intorpe2017-11-051-5/+5
| | | | | | | | | | one location under /usr/share/relink. Be more specific in src/etc/rc reorder_libs() what filesystems need r/w remount and ensure that their mount state is restored. Idea and positive feedback from deraadt@ OK aja@ tb@
* Prefer <elf.h> to the non portable <sys/exec_elf.h>.mpi2017-10-291-2/+2
| | | | ok jca@, deraadt@
* The 'dumps' option only accepts a single deviceguenther2017-10-071-3/+3
| | | | ok deraadt@ jmc@
* config -e's adds new devices to an extra locator array, which is accountedderaadt2017-09-274-39/+43
| | | | | | | using a variable which started at 0 and hence got planted in .bss. Refactor that variable to begin at the maximum and decrease, such that it lands in .data instead. ok jsg
* Stop automatically regenerating gap.o (and hence linking a new kernel)tb2017-07-181-2/+3
| | | | | | | | | | whenever make is issued. Only do this when there are actual source changes below /sys. This restores the behavior prior to the KARL implementation. Problem noticed and patiently explained by mpi implementation with a lot of help from espie ok mpi, espie, deraadt
* have bsd.prog.mk/bsd.lib.mk generate .y -> .c/.h rules without intermediateespie2017-07-091-2/+2
| | | | | | | files. This fixes up parallel builds in the default case. FreeBSD does something similar. okay millert@
* Generate the newbsd: and install-update: targets here, rather thanderaadt2017-06-223-5/+26
| | | | | in the source Makefile.* files. ok tb rpe mlarkin
* delete accidental blank linederaadt2017-06-191-2/+1
|
* config -e mode should match our other policies which ensure og-rwx /bsd.deraadt2017-06-031-2/+2
| | | | pointed out by brynet
* Document that -u wants to read from /dev/mem, so it needs kern.allowkmem=1.tb2017-05-041-2/+7
| | | | | | Problem reported by jdd () cs ! toronto ! edu on bugs. ok brynet deraadt jmc
* Fewer kgdb(7) references and fix previous.mpi2017-05-011-3/+6
| | | | Pointed by jmc@
* Remove KGDB references.mpi2017-04-301-6/+2
|
* Remove some code that was already disabled when it was committedtb2016-10-271-21/+1
| | | | | | 20 years ago. While there, eliminate two dead assignments. ok natano
* Remove OLDSCSIBUS conditional. Unused since it was imported 21 years ago.tb2016-10-271-6/+1
| | | | ok natano
* There used to be disabled code that used /dev/tty to determine thetb2016-10-191-5/+2
| | | | | | | terminal size. That code was removed a while ago, and now there is no longer any reason to open /dev/tty right before exiting init(). ok natano
* Add a == EOF that was accidentally lost in previous commit.tb2016-10-161-2/+3
|
* Use the err(3) family of functions more consistently.tb2016-10-166-98/+57
| | | | ok jca, improvements and ok millert, natano
* Remove the -g option. It is obsolete/undocumented since the initialnatano2016-10-161-14/+2
| | | | | | import from NetBSD in '95 and does nothing except print an error. ok tb
* Add printf format attributes to the custom error functions.tb2016-10-162-6/+10
| | | | ok natano
* Remove declarations for optarg and optind. They are declared in <unistd.h>.natano2016-10-161-4/+1
| | | | ok tb
* Stop complaining about changed kernel options when called for an emptynatano2016-10-161-6/+3
| | | | | | | | | | | | | | | | directory. With the new kernel obj mechanism config always prints Kernel options have changed -- you must run "make clean" on the first run. The message is suppressed when the compile directory didn't exist before, but now the directory always exists when config is run, so we have to use something else to detect if this is a "fresh" run or an update of an existing directory. Use the options file instead, which is used to track the kernel options of the last config run. If the file doesn't exist, it is safe to assume, that this is a "fresh" directory. ok tb deraadt
* Change the default non -b behaviour of config(8) to operate with thederaadt2016-10-141-2/+30
| | | | | | | | | | | | new compile behaviour: - create a Makefile including ../Makefile.inc - run "make obj" to create the obj directory - run "make config", to use logic in ../Makefile.inc to re-run config with the correct -b options, thereby creating a layout in obj/ - exit 0. As a result, the old patterns our fingers are used to continue to work and there will be fewer curses. ok natano tb
* strlen + emalloc + snprintf = asprintfakfaew2016-09-121-7/+5
| | | | ok deraadt@ tb@
* strlen + emalloc + snprintf = asprintfakfaew2016-09-071-4/+4
| | | | Written with and ok tb@
* Get rid of the static nomem() function and replace it with err(1, NULL);akfaew2016-09-071-18/+10
| | | | Written with and ok tb@
* one more un-vax, which i fixed but somehow didn;t commit;jmc2016-03-131-5/+4
| | | | Xr fix while here...
* Remove unused macro that's just a clone of abs(3). ok tb@mmcc2015-12-141-3/+1
|
* lexer fixes to work with new flex. from Serguey Parkhomovskytedu2015-11-191-3/+3
|
* Implement real "flock" request and add it to userland programs thatmillert2015-10-161-2/+2
| | | | use pledge and file locking. OK deraadt@
* pledge "stdio rpath wpath cpath"; all the path options are usedderaadt2015-10-121-1/+4
| | | | until the bitter end.
* does not need ioctl.hderaadt2015-10-121-2/+1
|
* exec.c provided indirection for multiple exec formats. ELF-only now, so...guenther2015-09-253-95/+8
|
* Make UKC handle device locators as longsguenther2015-09-212-79/+77
| | | | ok miod@
* Change device locators type from int to long, for the sake of 64-bit portsmiod2015-09-111-3/+3
| | | | | | | | | without proper device trees. Be sure to build and install config(8) and rerun it before attempting to build a kernel. ok kettenis@ deraadt@ jasper@ visa@
* delete a NOTDEF of unused codederaadt2015-04-231-25/+1
|
* document the <sys/param.h>deraadt2015-01-171-2/+2
|
* More evil bootstrap code. #ifndef ALIGNBYTES #define ALIGNBYTES 3.deraadt2015-01-161-12/+1
| | | | | | | | Which makes this code go all wrong depending on where a system has put their things like ALIGNBYTES. Delete with prejudice. When someone needs to compile this in another environment, they need to face this hurdle, and maybe change the embedded memory allocator...
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-1611-32/+18
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)