summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Fix numerous bugs when parsing options and arguments.ru2007-11-091-9/+19
|
* Use static storage-class specifier where appropriate.dds2007-11-084-10/+10
| | | | Found by: CScout
* Make function's definition follow its declared visibility.dds2007-11-081-1/+1
| | | | Found by: CScout
* Fix visibility of "inplace".dds2007-11-081-1/+1
| | | | Found by: CScout
* setenv(3) sets errno on failure, use warn() insteadkevlo2007-11-081-3/+3
| | | | Pointed out by: ru
* - Include runefile.h for _CACHED_RUNESrafan2007-11-071-0/+1
|
* Markup nits.ru2007-11-071-2/+5
|
* Fix markup.ru2007-11-071-29/+31
|
* Check return value for setenv()kevlo2007-11-061-3/+7
|
* - Add ZFS-support to fstat(1). This allows ZFS-filsystems to be including inlulf2007-11-056-0/+321
| | | | | | | | | | | the open file-listing. It is added as a separate source file, so it can respect WITH_/WITHOUT_CDDL as compile-flags. - The warnlevel of the Makefile was decreased to quell solaris #pragma warnings. - Expect that fstat(1) doesn't work with kernel compiled with DEBUG_VFS_LOCKS/DEBUG_LOCKS for now. Approved by: pjd (mentor)
* initialize variables, WARNS=6 compliantcharnier2007-11-023-1/+3
|
* Markup revision.ru2007-11-021-12/+16
|
* Add my birthday to the calendar.brix2007-11-011-0/+1
| | | | Approved by: erwin (mentor)
* Also fix a "blank line" issue that sneaked in from rev. 1.19.ru2007-10-311-1/+1
| | | | Submitted by: John Hein
* Give more details on the following topics:yar2007-10-311-7/+77
| | | | | o How global, command-line, and environment variables relate. o What peculiarities the -f option has WRT ${MAKEFLAGS}.
* Remove newly acquired hard sentence breaks.ru2007-10-301-2/+4
|
* Apply style(9) to usage(), fix markup of the manpage.ru2007-10-302-7/+5
|
* Never use getenv("HOME") without checking for NULL and non-zerokevlo2007-10-302-3/+11
| | | | Obtained from: OpenBSD
* Introduce a way to make pure kernal threads.julian2007-10-261-48/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | kthread_add() takes the same parameters as the old kthread_create() plus a pointer to a process structure, and adds a kernel thread to that process. kproc_kthread_add() takes the parameters for kthread_add, plus a process name and a pointer to a pointer to a process instead of just a pointer, and if the proc * is NULL, it creates the process to the specifications required, before adding the thread to it. All other old kthread_xxx() calls return, but act on (struct thread *) instead of (struct proc *). One reason to change the name is so that any old kernel modules that are lying around and expect kthread_create() to make a process will not just accidentally link. fix top to show kernel threads by their thread name in -SH mode add a tdnam formatting option to ps to show thread names. make all idle threads actual kthreads and put them into their own idled process. make all interrupt threads kthreads and put them in an interd process (mainly for aesthetic and accounting reasons) rename proc 0 to be 'kernel' and it's swapper thread is now 'swapper' man page fixes to follow.
* - Add my birthday to the calendar.lulf2007-10-251-0/+1
| | | | Approved by: kib (mentor)
* The AWK 23-Oct-2007 release includes fixes for FreeBSD PR's bin/104795obrien2007-10-253-50/+1
| | | | and bin/100443.
* - Convert NO_INSTALLLIB option to a new syntax: makefiles shouldru2007-10-201-0/+2
| | | | | | | | | | | test MK_INSTALLLIB, users can set WITHOUT_INSTALLLIB. The old NO_INSTALLLIB is still supported as several makefiles set it. - While here, fix an install when instructed not to install libs (usr.bin/lex/lib/Makefile). PR: bin/114200 Submitted by: Henrik Brix Andersen
* Add a -z flag to nfsstat which zeros the NFS statistics after displayingjhb2007-10-182-24/+48
| | | | | | | | them. MFC after: 1 week Requested by: ps Submitted by: ps (6 years ago)
* Teach makewhatis.c to treat .SS with the same severity as .SH.edwin2007-10-181-0/+2
| | | | | | | | | | | | | | | | | | | | At least one port (net-mgmt/net-snmp) creates man-pages which are in the format: .SH NAME The Net-SNMP agent \- The snmp agent responds to SNMP queries from management stations. .PP .SS "Modules" At this moment, makewhatis determines the end of the .SH NAME section as where it finds .SH again, but there is none here, is it "terminated" by the .SS. PR: bin/116706 Submitted by: edwin@ Approved by: re (Ken Smith), grog (mentor) MFC after: 1 week
* The upper while loop has already recycled child process, so the ifdavidxu2007-10-181-3/+1
| | | | | | statement has never executed as expected, fix it. MFC after: 3 days
* Prevent strange crashes in fmt with absurd goal lengths introduced by thejmallett2007-10-171-0/+2
| | | | | | | | | | | | | | support for wide characters. If the sizeof (wchar_t) times max_length would yield a value beyond representation in a size_t, exit with a usage error up front, rather than strange errors down the line from trying to malloc (well, realloc) with a size of 0. This is perhaps not the optimal behaviour - a clamp may be more appropriate as we clamp the value of max_length now anyway, but this is at least better than segfaulting or worse. On systems which are friendly to malloc with a value of 0 the results could end up being strange corruption of the output.
* Fix incorrect string formats for netstat/srrs2007-10-171-48/+48
| | | | | | PR: 117175 Obtained from: Weongyo Jeong (weongyo.jeong@gmail.com) MFC after: 1 week
* Fix various memory leaks.kib2007-10-171-3/+13
| | | | | | Submitted by: rdivacky Obtained from: OpenBSD MFC after: 1 week
* The previous version included too many file system types in the scan,se2007-10-172-3/+9
| | | | | | | | | | | | | | | | | | since "local" includes also synthetic file systems (e.g. /dev, /proc) and loopback mounts. This version uses lsvfs to identify file system types that are local and additionally not synthetik, loopback mounts, or read-only. This has been suggested by Craig Rodrigues half a year ago. The patch that has been committed is based on his suggestion, but slightly modified. The comments in locate.rc have been updated to reflect the change and o include zfs and xfs in the example file system parameter that can be used to override the default outlined above. PR: 114101 Submitted by: rodrigc at crodrigues dot org (Craig Rodrigues) MFC: 2 weeks
* Make the updatedb script installed as /usr/libexec/locate.updatedbse2007-10-151-1/+1
| | | | | | | | | | inspect all local file systems, not only ufs and ext2fs. A number of local file systems has been added over time, and at least zfs has the potential to become a popular choice. Without this change a ZFS root file system causes the script to ignore all file-systems and leads to an empty locate db. (An alternative is to add all the relevant file systems individually, which means that at least zfs, xfs, ntfs, ntfs-3g, msdosfs should be added, probably more).
* Backout sensors framework.netchild2007-10-155-278/+1
| | | | | Requested by: phk Discussed on: cvs-all
* Add myself to the FreeBSD calendar.lme2007-10-141-0/+1
| | | | Approved by: miwi (mentor)
* Bump document date for the last change.ru2007-10-141-1/+1
|
* Import OpenBSD's sysctl hardware sensors framework.netchild2007-10-145-1/+278
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit includes the following core components: * sample configuration file for sensorsd * rc(8) script and glue code for sensorsd(8) * sysctl(3) doc fixes for CTL_HW tree * sysctl(3) documentation for hardware sensors * sysctl(8) documentation for hardware sensors * support for the sensor structure for sysctl(8) * rc.conf(5) documentation for starting sensorsd(8) * sensor_attach(9) et al documentation * /sys/kern/kern_sensors.c o sensor_attach(9) API for drivers to register ksensors o sensor_task_register(9) API for the update task o sysctl(3) glue code o hw.sensors shadow tree for sysctl(8) internal magic * <sys/sensors.h> * HW_SENSORS definition for <sys/sysctl.h> * sensors display for systat(1), including documentation * sensorsd(8) and all applicable documentation The userland part of the framework is entirely source-code compatible with OpenBSD 4.1, 4.2 and -current as of today. All sensor readings can be viewed with `sysctl hw.sensors`, monitored in semi-realtime with `systat -sensors` and also logged with `sensorsd`. Submitted by: Constantine A. Murenin <cnst@FreeBSD.org> Sponsored by: Google Summer of Code 2007 (GSoC2007/cnst-sensors) Mentored by: syrinx Tested by: many OKed by: kensmith Obtained from: OpenBSD (parts)
* o Pablo Picasso's birthday is October 25 not October 5.maxim2007-10-141-1/+1
| | | | | PR: conf/116952 Submitted by: Pablo Picasso <comet@transbay.net>
* Fix id -A when the subject has an extended subject token associated withcsjp2007-10-141-7/+39
| | | | | | | | | | | | | them (for example when they have logged in from an ip6 source). - Stick with the initial call to getaudit(2), if it returns E2BIG, use getaudit_addr(2) instead and set the "extended" flag to indicate that we the calling credential has an extended subject state. - Additionally, add the printing of the machine/at_addr (the ip/ip6 addresses) MFC after: 1 week Obtained from: TrustedBSD Project
* Revision 1.12 of lockf.c fixed a "thundering herd" scenario when thecsjp2007-10-122-11/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | lock experienced contention a number of processes would race to acquire lock when it was released. This problem resulted in a lot of CPU load as well as locks being picked up out of order. Unfortunately, a regression snuck in which allowed multiple threads to pickup the same lock when -k was not used. This could occur when multiple processes open a file descriptor to inode X (one process will be blocked) and the file is unlinked on unlock (thereby removing the directory entry allow another process to create a new directory entry for the same file name and lock it). This changes restores the old algorithm of: wait for the lock, then acquire lock when we want to unlink the file on exit (specifically when -k is not used) and keeps the new algorithm for when -k is used, which yields fairness and improved performance. Also, update the man page to inform users that if lockf(1) is being used to facilitate concurrency between a number of processes, it is recommended that -k be used to reduce CPU load and yeld fairness with regard to lock ordering. Collaborated with: jdp PR: bin/114341 PR: bin/116543 PR: bin/111101 MFC after: 1 week
* Tweak the handling of "WITHOUT_LIBPTHREAD". Also remove the accidentalobrien2007-10-091-1/+1
| | | | | | | treatment of 'LIBKSE' as an "old style" knob. Submitted by: ru Approved by: re(kensmith)
* Repo copy libpthreads to libkse.obrien2007-10-091-1/+1
| | | | | | This introduces the WITHOUT_LIBKSE nob, and changes WITHOUT_LIBPTHREADS to mean with neither threading libs. Approved by: re(kensmith)
* Always install libpthread.* symlinks if at least one ofru2007-10-011-2/+1
| | | | | | | | | | | | the threading libraries is built. This simplifies the logic in makefiles that need to check if the pthreads support is present. It also fixes a bug where we would build a threading library that we shouldn't have built: for example, building with WITHOUT_LIBTHR and the default value of DEFAULT_THREADING_LIB (libthr) would mistakenly build the libthr library, but not install it. Approved by: re (kensmith)
* Update to calendar/calendars/hr_HR.ISO_8859-2/calendar.prazniciedwin2007-09-211-7/+14
| | | | | | | | | with fixes and new dates. PR: conf/26658 Submitted by: Josip Rodin <joy@gkvk.hr> Approved by: re@ (bmah), grog@ (mentor) MFC after: 1 week
* - add my entrytabthorpe2007-09-211-0/+1
| | | | Approved by: re (bmah), clsung/miwi (mentors)
* Use NULL instead of 0 for the return value of fopen().kevlo2007-09-214-6/+6
| | | | Approved by: re (kensmith)
* More dates: Sint Maarten, Dierendag, Trinitatisedwin2007-09-201-14/+30
| | | | | | | | Fix spelling: Carnaval Add more of the Royal Family. Approved by: re@ (Ken Smith), grog@ (mentor) MFC after: 1 week
* - Move all of the PS_ flags into either p_flag or td_flags.jeff2007-09-172-2/+2
| | | | | | | | | | | | | | - p_sflag was mostly protected by PROC_LOCK rather than the PROC_SLOCK or previously the sched_lock. These bugs have existed for some time. - Allow swapout to try each thread in a process individually and then swapin the whole process if any of these fail. This allows us to move most scheduler related swap flags into td_flags. - Keep ki_sflag for backwards compat but change all in source tools to use the new and more correct location of P_INMEM. Reported by: pho Reviewed by: attilio, kib Approved by: re (kensmith)
* - Stop computing %CPU for the imaginary idle process; we nowru2007-09-111-54/+6
| | | | | | | | | | | | have real idle processes for that. - Fix the display on SMP by not scaling the sum of %CPU down to 1. Instead, display raw data as computed by the kernel, like in top(1). Reviewed by: bde Approved by: re (bmah) MFC after: 1 week
* Check return value of listen().kevlo2007-09-111-1/+2
| | | | | Reviewed by: emax Approved by: re (kensmith)
* - Netstat warning removal for 64 bit aware platforms.rrs2007-09-091-117/+108
| | | | Approved by: re@freebsd.org (B Mah)
* Add --posix as a synonym for --format=pax, for GNUkientzle2007-09-091-0/+5
| | | | | | tar compatibility. Approved by: re (bmah)
* Add misc entries communilated over the yearedwin2007-09-073-6/+11
| | | | | | | PR: conf/113285, conf/113642, conf/70252 and conf/61641 Submitted by: Edwin Groothuis <edwin@mavetju.org>, <acc107_3@acc.tula.ru>, Evan Dower <evantd@cs.washington.edu> MFC after: 1 week Approved by: re (bmah@), mentor (grog@)
OpenPOWER on IntegriCloud