summaryrefslogtreecommitdiff
path: root/usr.sbin/config
AgeCommit message (Collapse)Author
2022-04-07Adjust mkioconf so the emitted extern struct cfattach are const.Theo Buehler
tweak/ok miod
2021-11-28remove sys/param.h includes by stopping use of NODEV, ALIGNED and ALIGN().Theo de Raadt
The latter two exposed a large block allocator on top of malloc() which doesn't really make sense in this decade (the objects are never freed, so not quite like the famous openssl allocator) ok millert jsg
2021-11-20When cmdfile is specified, use lines from it for all input, not justJoshua Stein
commands. This allows complex actions like changing device parameters to be done with a command file.
2021-11-02Add standard EXIT STATUSKlemens Nanni
OK deraadt
2021-10-24For open/openat, if the flags parameter does not contain O_CREAT, theTheo de Raadt
3rd (variadic) mode_t parameter is irrelevant. Many developers in the past have passed mode_t (0, 044, 0644, or such), which might lead future people to copy this broken idiom, and perhaps even believe this parameter has some meaning or implication or application. Delete them all. This comes out of a conversation where tb@ noticed that a strange (but intentional) pledge behaviour is to always knock-out high-bits from mode_t on a number of system calls as a safety factor, and his bewilderment that this appeared to be happening against valid modes (at least visually), but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef. ok millert
2021-09-13fix SEE ALSO;Jason McIntyre
2021-09-13introduce /etc/bsd.re-config which can be used to configure the kernelRobert Nagy
using config(8); the contents of this configuration file will be fed to config(8) after kernel relinking is done, so on the next boot the new kernel will have all the configuration changes set by the user this comes handy if you still want to use KARL while making changes to the GENERIC kernel diff from Paul de Weerd with input from several developers
2021-03-08Add some references, most of these were removed when we stopped buildingJonathan Gray
and installing USD/SMM/PSD docs. jmc@ agrees with the direction, ok millert@ on an earlier diff
2021-01-26satisfy -fno-common, by (1) copying all the variable decls fromTheo de Raadt
indent_globs.h to indent.c, and (2) changing all the same decls in indent_globs.h to be extern ok mortimer
2019-09-06options(4), config(8): drop dst/timezone knobs; ok kettenis@ deraadt@ jca@cheloha
2019-08-13config -eu uses a second copy of the nlist array[], which should neverTheo de Raadt
become different or the #define's for the slots could diverge. To avoid this, make one a copy of the other at runtime.
2019-08-11delete the bufcachepercent command (since this can be done at runtime),Theo de Raadt
and leftovers from past commands shmseg/shmmaxpg/nmbclusters ok kettenis
2019-07-19In the synopsis, put options that take no arguments before those that do.Ingo Schwarze
This also makes it easier to find the crucial difference between the two synopses, which is the "-e". Suggested by kn@; OK jmc@.
2019-06-28fputc/fputs return EOF on errorTheo de Raadt
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
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.
2019-05-14allow specifying a cmdfile instead of trying to pipe in commands for -ef.Ted Unangst
ok deraadt
2019-04-01In the KARL relink case, the bsd.gdb built on the way (so that we getTheo de Raadt
CTF) is not needed and can be removed.
2019-02-05dev_t is signed to permit passing -1 as an invalid condition, but theTheo de Raadt
decomposition into major and minor is unsigned, so we should print them with %u instead of %d. ok guenther
2018-04-25remove the largely out of date examples related to kernelJason McIntyre
building: more accurate information can be found elsewhere; while here, replace Gt sequences; prompted by a diff from il ka; ok deraadt guenther
2017-11-05Consolidate lib.so.*.a, ld.so.a and the kernel relink kit intoRobert Peichaer
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@
2017-10-29Prefer <elf.h> to the non portable <sys/exec_elf.h>.Martin Pieuchot
ok jca@, deraadt@
2017-10-07The 'dumps' option only accepts a single devicePhilip Guenther
ok deraadt@ jmc@
2017-09-27config -e's adds new devices to an extra locator array, which is accountedTheo de Raadt
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
2017-07-18Stop automatically regenerating gap.o (and hence linking a new kernel)Theo Buehler
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
2017-07-09have bsd.prog.mk/bsd.lib.mk generate .y -> .c/.h rules without intermediateMarc Espie
files. This fixes up parallel builds in the default case. FreeBSD does something similar. okay millert@
2017-06-22Generate the newbsd: and install-update: targets here, rather thanTheo de Raadt
in the source Makefile.* files. ok tb rpe mlarkin
2017-06-19delete accidental blank lineTheo de Raadt
2017-06-03config -e mode should match our other policies which ensure og-rwx /bsd.Theo de Raadt
pointed out by brynet
2017-05-04Document that -u wants to read from /dev/mem, so it needs kern.allowkmem=1.Theo Buehler
Problem reported by jdd () cs ! toronto ! edu on bugs. ok brynet deraadt jmc
2017-05-01Fewer kgdb(7) references and fix previous.Martin Pieuchot
Pointed by jmc@
2017-04-30Remove KGDB references.Martin Pieuchot
2016-10-27Remove some code that was already disabled when it was committedTheo Buehler
20 years ago. While there, eliminate two dead assignments. ok natano
2016-10-27Remove OLDSCSIBUS conditional. Unused since it was imported 21 years ago.Theo Buehler
ok natano
2016-10-19There used to be disabled code that used /dev/tty to determine theTheo Buehler
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
2016-10-16Add a == EOF that was accidentally lost in previous commit.Theo Buehler
2016-10-16Use the err(3) family of functions more consistently.Theo Buehler
ok jca, improvements and ok millert, natano
2016-10-16Remove the -g option. It is obsolete/undocumented since the initialMartin Natano
import from NetBSD in '95 and does nothing except print an error. ok tb
2016-10-16Add printf format attributes to the custom error functions.Theo Buehler
ok natano
2016-10-16Remove declarations for optarg and optind. They are declared in <unistd.h>.Martin Natano
ok tb
2016-10-16Stop complaining about changed kernel options when called for an emptyMartin Natano
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
2016-10-14Change the default non -b behaviour of config(8) to operate with theTheo de Raadt
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
2016-09-12strlen + emalloc + snprintf = asprintfMichal Mazurek
ok deraadt@ tb@
2016-09-07strlen + emalloc + snprintf = asprintfMichal Mazurek
Written with and ok tb@
2016-09-07Get rid of the static nomem() function and replace it with err(1, NULL);Michal Mazurek
Written with and ok tb@
2016-03-13one more un-vax, which i fixed but somehow didn;t commit;Jason McIntyre
Xr fix while here...
2015-12-14Remove unused macro that's just a clone of abs(3). ok tb@mmcc
2015-11-19lexer fixes to work with new flex. from Serguey ParkhomovskyTed Unangst
2015-10-16Implement real "flock" request and add it to userland programs thatTodd C. Miller
use pledge and file locking. OK deraadt@
2015-10-12pledge "stdio rpath wpath cpath"; all the path options are usedTheo de Raadt
until the bitter end.
2015-10-12does not need ioctl.hTheo de Raadt