summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Prevent shadowing.ed2013-05-256-10/+10
| | | | | The name line_number seems to be used as a function parameter name for one of the Lex functions. Change the name to linenumber.
* Revert r250972 to fix build.gjb2013-05-252-4/+4
|
* The error handling for writes to the target file could lead to the finalse2013-05-242-4/+4
| | | | | | | | | | fclose() being skipped. Fix this by using boolean "&" and "|" instead of short-cut operators "&&" and "||". While here, increment the last part of the version string. The reason is the fixed output file selection logic in pch.c, which was committed as r250943, yesterday. Reviewed by: pfg
* Fix target selection logic, which did not comply with the man page.se2013-05-231-2/+8
| | | | | | | | | | | | | | | | Instead of using the file with the least order of path name components, shortest filename and finally the shortest basename (with the search stopping as soon as one of these conditions is true), the first filename checked was used as the reference, and another filename was only selected if all of the above comparisons are in favour of the latter file. This was wrong, because filenames with path less components were only considered, if both of the other conditions were true as well. In fact, the first filename to be checked had good chances to be selected in the end, since it only needed to be better with regard to any one of the three criteria ... Reviewed by: delphij@freebsd.org
* Add support for netgroup, based on patch in the PR but made consistentghelmer2013-05-231-0/+43
| | | | | | with existing style. PR: bin/132692
* Let iconv build on -HEAD properly.ed2013-05-233-2/+5
| | | | | | - Add NO_WMISSING_VARIABLE_DECLARATIONS where we use Yacc/Lex. - Add variable declarations where possible. - Add missing static keyword.
* Work around build breakages with GCC 4.2.jkim2013-05-234-0/+7
| | | | Reported by: tinderbox
* Avoid signed overflow in error handling code.eadler2013-05-211-1/+3
| | | | Reviewed by: cperciva, bjk
* Connect flex 2.5.37 to the build and bump __FreeBSD_version.jkim2013-05-2131-15377/+9874
|
* Sync with upstream version (20130520) that includes same fixes made last week.sjg2013-05-201-2/+2
|
* Per the comment, we cannot rely on bsd.own.mksjg2013-05-171-7/+6
| | | | | | we could be on an old system that knows noting of MK_BMAKE or on an almost up to date one that is defaulting it to "no" neither of which will work.
* We really need to get the bsd.own.mk from this tree so thesjg2013-05-171-0/+8
| | | | | correct options are set. Also defined NO_PWD_OVERRIDE to match behavior of fmake.
* guard against MK_SHARED_TOOLCHAIN not being defined.delphij2013-05-161-1/+1
|
* Similar to r250719: guard against MK_BMAKE not being defined.delphij2013-05-161-1/+1
|
* Reverse the sense of the test wrt bmake, and guard againstsjg2013-05-161-1/+1
| | | | MK_BMAKE not being defined.
* Build bmake by default.sjg2013-05-161-0/+7
| | | | | | | If someone explicitly builds usr.bin/make while MK_BMAKE==yes, install it as 'fmake'. Reviewed by: brooks
* mdoc sweep.joel2013-05-121-1/+3
|
* Add some missing DPADD.antoine2013-05-111-1/+1
|
* REST IN PEACEdelphij2013-05-101-0/+1
| | | | | | | | | | Alexander Botero-Lowry Born June 2, 1986 in Austin, Texas Died August 24, 2012 in San Francisco, California Thank you for your contributions, you will be greatly missed.
* Add option to lockf to avoid creating a file if it does not exist.eadler2013-05-102-8/+28
| | | | | | | PR: bin/170775 Submitted by: Matthew Story <matthewstory@gmail.com> Reviewed by: scottl MFC after: 1 week
* Bump .Dd for recent content change.eadler2013-05-101-1/+1
| | | | Reported by: delphij
* Implement 'split -d' which allows a numeric suffix instead of aneadler2013-05-102-5/+29
| | | | | | | | | alphabetic one. PR: bin/116209 Submitted by: Marcin Gryszkalis <mg@fork.pl> (adapted from) Reviewed by: will MFC after: 1 week
* Style(9) changes fo xargs.ceadler2013-05-101-2/+4
|
* Improve compatibility with recent flex from flex.sourceforge.net.jkim2013-05-033-5/+5
|
* Reduce diff with upstream.jkim2013-05-0312-32/+45
|
* Similar to 233760 and 236717, export some more useful info about thejhb2013-05-032-0/+31
| | | | | | | | | | | | | | | kernel-based POSIX semaphore descriptors to userland via procstat(1) and fstat(1): - Change sem file descriptors to track the pathname they are associated with and add a ksem_info() method to copy the path out to a caller-supplied buffer. - Use the fo_stat() method of shared memory objects and ksem_info() to export the path, mode, and value of a semaphore via struct kinfo_file. - Add a struct semstat to the libprocstat(3) interface along with a procstat_get_sem_info() to export the mode and value of a semaphore. - Teach fstat about semaphores and to display their path, mode, and value. MFC after: 2 weeks
* Op 30 April 2013 trad koninging Beatrix af en werd kroonprins Willemedwin2013-05-031-4/+4
| | | | | | | | | Alexander de nieuwe koning. Koningsdag is op 27 April. On 30 April 2013 queen Beatrix resigned and crownprince Willem Alexander became the new king. King's day is on 27 April. MFC after: 1 week
* Document that the NFSv4 server statistics are operation counts andrmacklem2013-05-011-1/+5
| | | | | | | not RPC counts. This is a content change. MFC after: 2 weeks
* When the world is built WITHOUT_OPENSSH also don'teadler2013-04-281-1/+4
| | | | | | | | install ssh-copy-id. PR: misc/177590 Submitted by: Oleg Ginzburg <olevole@olevole.ru> Reviewed by: imp
* Fix EXIT STATUS. biff reports its status when it was invoked.joel2013-04-281-3/+3
| | | | | | Submitted by: Ryan Kavanagh, Jason McIntyre <jmc@kerhand.co.uk> Obtained from: OpenBSD
* Constify where appropriate.eadler2013-04-231-2/+2
| | | | | | Reported by: emaste Approved by: cperciva (mentor) MFC After: 3 days
* Cleanups to touch.ceadler2013-04-231-20/+22
| | | | | | | | | | - use const where appropriate - use static where appropriate - use explicit checks checks for error conditions Reviewed by: sbruno Approved by: cperciva (mentor) Obtained by: DragonFlyBSD
* Wrong cast.trociny2013-04-201-2/+1
| | | | MFC after: 1 month
* Sync gcore(1) with the recent changes in kernel code aimed at addingtrociny2013-04-202-203/+374
| | | | | | | procstat notes to a process core file. Suggested by: jhb MFC after: 1 month
* Make use of newly added libprocstat(3) ability to extract procstattrociny2013-04-202-17/+32
| | | | | | | | | | | | | | | | | | | | | | | | info from a process core file. So now one can run procstat(1) on a process core e.g. to get a list of files opened by a process when it crashed: root@lisa:/ # procstat -f /root/vi.core PID COMM FD T V FLAGS REF OFFSET PRO NAME 658 vi text v r r-------- - - - /usr/bin/vi 658 vi ctty v c rw------- - - - /dev/pts/0 658 vi cwd v d r-------- - - - /root 658 vi root v d r-------- - - - / 658 vi 0 v c rw------- 11 3208 - /dev/pts/0 658 vi 1 v c rw------- 11 3208 - /dev/pts/0 658 vi 2 v c rw------- 11 3208 - /dev/pts/0 658 vi 3 v r r----n-l- 1 0 - /tmp/vi.0AYKz3Lps7 658 vi 4 v r rw------- 1 0 - /var/tmp/vi.recover/vi.GaGYsz 658 vi 5 v r rw------- 1 0 - - PR: kern/173723 Suggested by: jhb MFC after: 1 month
* Use procstat_getkstack(3) for retrieving process kernel stackstrociny2013-04-203-55/+15
| | | | | | instead of direct sysctl calls. MFC after: 1 month
* Use libprocstat(3) to retrieve ELF auxiliary vector.trociny2013-04-203-96/+10
| | | | MFC after: 1 month
* Use libprocstat(3) to retrieve process command line arguments andtrociny2013-04-203-34/+22
| | | | | | environment variables. MFC after: 1 month
* Use libprocstat(3) when retrieving binary information for a process.trociny2013-04-203-29/+8
| | | | MFC after: 1 month
* Use procstat_getrlimit(3) for retrieving rlimit information instead oftrociny2013-04-203-18/+5
| | | | | | direct sysctl calls. MFC after: 1 month
* Use procstat_getumask(3) for retrieving umaks information instead oftrociny2013-04-201-13/+5
| | | | | | direct sysctl. MFC after: 1 month
* Use procstat_getgroups(3) for retrieving groups information instead oftrociny2013-04-203-30/+11
| | | | | | direct sysctl. MFC after: 1 month
* Use more generic procstat_getvmmap(3) for retrieving VM layout of a process.trociny2013-04-203-4/+4
| | | | MFC after: 1 month
* Use procstat_getprocs(3) for retrieving thread information instead oftrociny2013-04-204-66/+17
| | | | | | direct sysctl calls. MFC after: 1 month
* Add the Clang specific -Wmissing-variable-declarations to WARNS=6.ed2013-04-197-2/+15
| | | | | | | | | | | | | This compiler flag enforces that that people either mark variables static or use an external declarations for the variable, similar to how -Wmissing-prototypes works for functions. Due to the fact that Yacc/Lex generate code that cannot trivially be changed to not warn because of this (lots of yy* variables), add a NO_WMISSING_VARIABLE_DECLARATIONS that can be used to turn off this specific compiler warning. Announced on: toolchain@
* Replace hardcoded numbers. Also use interface-local scope name insteadae2013-04-161-9/+9
| | | | of node-local.
* Fix typo from previous commit.joel2013-04-141-1/+1
| | | | Submitted by: Ronald Klop <ronald-freebsd8@klop.yi.org>
* LSD first synthesised 16/11/38, not 7/4/43.joel2013-04-141-1/+1
| | | | | Submitted by: James J. Lippard Obtained from: OpenBSD
* Correct spelling is "Christiaan Huygens".joel2013-04-141-1/+1
| | | | | Submitted by: James J. Lippard Obtained from: OpenBSD
* Upgrade our copy of llvm/clang to trunk r178860, in preparation of thedim2013-04-1233-541/+467
| | | | | | | | | upcoming 3.3 release (branching and freezing expected in a few weeks). Preliminary release notes can be found at the usual location: <http://llvm.org/docs/ReleaseNotes.html> An MFC is planned once the actual 3.3 release is finished.
OpenPOWER on IntegriCloud