summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
...
* Mark bsdar_errc as __dead2 to help code analysis tools.eadler2012-10-221-1/+1
| | | | | | | PR: bin/172636 Submitted by: Erik Cederstrand <erik@cederstrand.dk> Approved by: cperciva MFC after: 3 days
* Add ATF to the build. This is may be a bit rought around the egdes,marcel2012-10-228-0/+274
| | | | | | | | | | | | | | | | | but committing it helps to get everyone on the same page and makes sure we make progress. Tinderbox breakages that are the result of this commit are entirely the committer's fault -- in other words: buildworld testing on amd64 only. Credits follow: Submitted by: Garrett Cooper <yanegomi@gmail.com> Sponsored by: Isilon Systems Based on work by: keramida@ Thanks to: gnn@, mdf@, mlaier@, sjg@ Special thanks to: keramida@
* Fix build.andreast2012-10-211-1/+1
|
* More -Wmissing-variable-declarations fixes.ed2012-10-206-4/+15
| | | | | | | | | | In addition to adding missing `static' keywords: - bin/dd: Pull in `extern.h' to guarantee consistency with source file. - libexec/rpc.rusersd: Move shared globals into an extern.h. - libexec/talkd: Move `debug' and `hostname' into extern.h. - usr.bin/cksum: Put counters in extern.h, as they are used by ckdist/mtree. - usr.bin/m4: Move `end_result' into extern.h. - usr.sbin/services_mkdb: Move shared globals into an extern.h.
* Apply local patches to mandoc and connect it to the build.uqs2012-10-201-0/+1
| | | | | | - adds a couple more library strings used in the tree - changes some more to the current groff spelling - changes page footer to match groff style
* Merge mandoc from vendor into contrib and provide the necessary Makefile glue.uqs2012-10-191-0/+22
| | | | It's not yet connected to the build.
* Fix a bootstrapping problem where the first bmake (built by FreeBSD'smarcel2012-10-191-4/+3
| | | | | | | | | make) ended up being built with -DFORCE_MACHINE. This broke the lib32 built for amd64 & powerpc64. This fix is comes with the next import of bmake, but is committed here and now to minimize the exposure to the bug. Submitted by: Simon Gerraty <sjg@juniper.net>
* More -Wmissing-variable-declarations fixes.ed2012-10-1926-341/+347
| | | | | | | | | | | | | | | | In addition to adding `static' where possible: - bin/date: Move `retval' into extern.h to make it visible to date.c. - bin/ed: Move globally used variables into ed.h. - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings. - usr.bin/calendar: Remove unneeded variables. - usr.bin/chat: Make `line' local instead of global. - usr.bin/elfdump: Comment out unneeded function. - usr.bin/rlogin: Use _Noreturn instead of __dead2. - usr.bin/tset: Pull `Ospeed' into extern.h. - usr.sbin/mfiutil: Put global variables in mfiutil.h. - usr.sbin/pkg: Remove unused `os_corres'. - usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.
* Add missing const keywords.ed2012-10-191-3/+3
|
* Correct the order of the MFU and MRU labels. I had reversed them.jhb2012-10-191-1/+1
| | | | | | Submitted by: Nikolay Denev ndenev gmail Pointy hat to: jhb MFC after: 3 days
* Remove WARNS=6 lines.ed2012-10-181-2/+0
| | | | WARNS=6 is already implied at this point.
* Disconnect non-MPSAFE SMBFS from the build in preparation for droppingattilio2012-10-186-7/+0
| | | | | | | | | | | | | GIANT from VFS. In addition, disconnect also netsmb, which is a base requirement for SMBFS. In the while SMBFS regular users can use FUSE interface and smbnetfs port to work with their SMBFS partitions. Also, there are ongoing efforts by vendor to support in-kernel smbfs, so there are good chances that it will get relinked once properly locked. This is not targeted for MFC.
* Disconnect non-MPSAFE NWFS from the build in preparation for droppingattilio2012-10-172-8/+0
| | | | | | | | | | | | GIANT from VFS. In addition, disconnect also netncp, which is a base requirement for NWFS. In the possibility of a future maintenance of the code and later readd to the FreeBSD base, maybe we should think about a better location for netncp. I'm not entirely sure the / top location is actually right, however I will let network people to comment on that more specifically. This is not targeted for MFC.
* Obey the value of "MK_BMAKE".obrien2012-10-161-1/+1
|
* - Remove GNU sort and the WITH_GNU_SORT knobgabor2012-10-131-8/+0
|
* Use CLOCK_UPTIME to get the uptime.emaste2012-10-121-1/+1
|
* Remove contractions.joel2012-10-076-6/+6
|
* make: report :M or :N pattern in debug modeavg2012-10-061-0/+1
| | | | MFC after: 12 days
* Add bmake to the build and allow it to be installed as make(1) insteadmarcel2012-10-065-0/+646
| | | | | | | | of FreeBSD's make by setting WITH_BMAKE. The WITH_BMAKE build makes it easy for people to switch while working out the kinks -- think ports tree here. The option will be removed in due time. Submitted by: Simon Gerraty (sjg@juniper.net)
* Allow time offsets to be negative, e.g. `at 1530 - 15 minutes`.cracauer2012-10-051-13/+49
| | | | | | | | This is useful if you have been given some time for some event in some format and you want your computer to do something to prepare for it. Without having to do time arithmetic in a shellscript. The syntax matches what the at(1) usually used on Linux supports.
* Implement the Sun/GNU extension of using a defaulteadler2012-10-022-2/+13
| | | | | | | | prefix when no arguments are supplied. Reviewed by: jilles Approved by: cperciva MFC after: 1 week
* add SG state typeeadler2012-10-021-0/+2
| | | | | | | PR: bin/171664 Submitted by: Jan Beich jbeich@tormail.org Approved by: cperciva MFC after: 1 week
* Add missing va_end.kevlo2012-09-291-1/+3
|
* Make sure that each va_start has one and only one matching va_end,kevlo2012-09-281-3/+9
| | | | especially in error cases.
* Fix usr.bin/ and usr.sbin/ build with a 64-bit ino_t.mdf2012-09-271-1/+1
| | | | Original code by: Gleb Kurtsou
* find: Do not pass fd to save current directory to child processes.jilles2012-09-261-1/+1
| | | | | | | This removes one of the two wrongly passed file descriptors. The other one appears to be from fts(3). MFC after: 1 week
* Teach getent(1) to look up a hostname and find IPv6 addresses.kevlo2012-09-261-12/+22
| | | | | PR: bin/161548 Submitted by: matthew
* kdump: Pretty-print signal codes.jilles2012-09-222-5/+57
| | | | MFC after: 1 week
* yes(1) actually comes from V7.obrien2012-09-171-1/+1
| | | | Submitted by: Simon Gerraty <sjg@juniper.net>
* Make systat(1) accept fractional number of seconds.melifaro2012-09-1710-97/+159
| | | | | | Make old alarm(3)-based code use select(2). MFC after: 2 weeks
* Remove references to userstat(1) and jailstat(1). Those tools were nevertrasz2012-09-161-4/+2
| | | | | | | | merged from the Perforce branch. They might be brought in when %CPU limits go into the tree. PR: docs/171240 MFC after: 2 weeks
* - Make truss thread-aware.zont2012-09-1614-721/+804
| | | | | Approved by: kib (mentor) MFC after: 2 weeks
* - Add myself as a new src committer.peterj2012-09-161-0/+1
| | | | | | | - Sort jhb's mentees - Add grog's (ex-)mentor Approved by: jhb (co-mentor), grog (co-mentor)
* Handle AT_TIMEKEEP in procstat(1) -x [1]. Remove the AT_COUNT switchkib2012-09-161-2/+4
| | | | | | | | case, since AT_COUNT is not an aux vector, it is the counter of total number of defined vectors. PR: bin/171662 [1] MFC after: 1 week
* sh: Prefer internal nextopt() to libc getopt().jilles2012-09-151-4/+10
| | | | | | | | | This reduces code duplication and code size. /usr/bin/printf is not affected. Side effect: different error messages when certain builtins are passed invalid options.
* Correct double "the the"eadler2012-09-141-1/+1
| | | | | Approved by: cperciva MFC after: 3 days
* Bump date missed in r202756eadler2012-09-146-6/+6
| | | | | | | PR: docs/171624 Submitted by: bdrewery Approved by: gabor MFC after: 3 days
* Use libmd if and only if OpenSSL is not available.des2012-09-141-3/+4
| | | | | PR: bin/171402 MFC after: 3 days
* Switch batch to an SLIST.ed2012-09-121-11/+9
| | | | This code requires none of the features of LIST.
* Add MK_KDUMP.obrien2012-09-121-2/+7
|
* - Fix detaching under some circumstances.zont2012-09-123-14/+37
| | | | | | | | | | | | | | | | | | | | | When truss is detaching from very active process it is possible to hang on waitpid(2) in restore_proc() forever, because ptrace(PT_SYSCALL) must be called before detaching, to allow the debugging process to continue execution. Also when truss called with '-c' argument, it does not print anything after detach, because it immediately exits from restore_proc(). To fix these two problems make detaching deferred, but then it is impossible to detach from a process which does not do any system call. To fix this issue use sigaction(2) instead of signal(3) to disable SA_RESTART flag for waitpid(2) that makes it non-restartable. Remove global variable child_pid, because now detaching is handled in context where child's pid is known. Reported by: mjg Tested by: mjg, swills Approved by: kib (mentor) MFC after: 2 weeks
* WARNS is now default to 6.delphij2012-09-111-2/+0
|
* Minor mdoc fix.joel2012-09-111-13/+13
|
* Ensure mkcsmapper and mkesdb compile with clang, if WITH_ICONV isdim2012-09-112-0/+2
| | | | | | | | | defined. Submitted by: zeising PR: bin/167481 MFC after: 3 days X-MFC-With: r238197
* - Remove unused variables.zont2012-09-111-6/+3
| | | | | | - Remove redundant return after err(3) call. Approved by: kib (mentor)
* - Add myself to calendar.freebsdjhale2012-09-111-0/+1
| | | | | | - Add my mentor relationships to committers-ports.dot Approved by: makc (mentor)
* mdocify the chat(8) manual page.joel2012-09-101-332/+401
| | | | Reviewed by: brueffer
* Note that -quit terminates successfully.des2012-09-101-1/+1
| | | | Requested by: jmg@
* Document -quit, four and a half years after it was implemented.des2012-09-091-1/+5
| | | | | MFC after: 3 days Pointy hat to: imp@
* Remove clause 3 and 4 from the NetBSD Foundation copyright header, missedjoel2012-09-091-7/+0
| | | | in r203971.
OpenPOWER on IntegriCloud