summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Continue ubreaking ``env LANG=ru_RU.KOI8-R ls -l''.kan2015-06-171-2/+2
| | | | File names are in current locale as well.
* Unbreak ``env LANG=ru_RU.KOI8-R ls -l''.marcel2015-06-171-1/+1
| | | | Time strings are in the current locale.
* new dependssjg2015-06-162-1/+2
|
* removed extra keywordsjg2015-06-131-1/+0
|
* Add META_MODE support.sjg2015-06-1339-0/+1032
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-0839-78/+1
| |
| * Merge sync of headsjg2015-05-2794-713/+925
| |\
| * | Updated/new dependenciessjg2014-11-191-0/+1
| | |
| * | Merge from head@274682sjg2014-11-1973-624/+1156
| |\ \
| * \ \ Merge head from 7/28sjg2014-08-1938-125/+205
| |\ \ \
| * | | | Updated dependenciessjg2014-05-1638-37/+1
| | | | |
| * | | | Updated dependenciessjg2014-05-1037-0/+75
| | | | |
| * | | | Merge from headsjg2014-05-0822-56/+164
| |\ \ \ \
| * \ \ \ \ Merge headsjg2014-04-28501-411/+9021
| |\ \ \ \ \
| * | | | | | New/updated dependenciessjg2013-10-171-0/+12
| | | | | | |
| * | | | | | Merge head@256284sjg2013-10-136-4/+274
| |\ \ \ \ \ \
| * | | | | | | Updated dependenciessjg2013-10-132-106/+0
| | | | | | | |
| * | | | | | | Merge from headsjg2013-09-0556-1152/+583
| |\ \ \ \ \ \ \
| * \ \ \ \ \ \ \ sync from headsjg2013-04-1230-116/+444
| |\ \ \ \ \ \ \ \
| * | | | | | | | | Updated dependenciessjg2013-03-1138-0/+38
| | | | | | | | | |
| * | | | | | | | | Updated dependenciessjg2013-02-1638-76/+2
| | | | | | | | | |
| * | | | | | | | | Sync with HEAD.obrien2013-02-0844-434/+617
| |\ \ \ \ \ \ \ \ \
| * | | | | | | | | | Updated/new Makefile.dependsjg2012-11-081-0/+1
| | | | | | | | | | |
| | | | | | | | | | |
| | \ \ \ \ \ \ \ \ \
| | \ \ \ \ \ \ \ \ \
| | \ \ \ \ \ \ \ \ \
| | \ \ \ \ \ \ \ \ \
| | \ \ \ \ \ \ \ \ \
| *-----. \ \ \ \ \ \ \ \ \ Sync from headsjg2012-11-0455-306/+504
| |\ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-2238-0/+1158
| | |_|_|/ / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | | | | | | | | | r284198 seems to have left a null format string printf that gcc does *not*sbruno2015-06-111-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | like breaking mips builds. Submitted by: Shawn Webb <shawn.webb@hardenedbsd.org> Obtained from: HardenedBSD
* | | | | | | | | | | | | | Convert ls(1) to use libxo(3).marcel2015-06-106-104/+190
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Obtained from: Phil Shafer <phil@juniper.net> Sponsored by: Juniper Networks, Inc.
* | | | | | | | | | | | | | Cleanup some style(9) issues.bdrewery2015-06-082-42/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Whitespace. - Comments. - Wrap long lines. MFC after: 2 weeks X-MFC-with: r284105,r284106 Sponsored by: EMC / Isilon Storage Division
* | | | | | | | | | | | | | It has been long time that when doing 'ls -G /path/to/a/symlink', instead ofdelphij2015-06-081-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | using the color of symbolic link, the color is determined by the link target. This behavior was quite confusing. Looking at the file history, it looks like that r203665 intends to fix this but the issue was never actually fixed. Fix this by not setting FTS_COMFOLLOW when color is requested like what was done in r203665. MFC after: 2 weeks
* | | | | | | | | | | | | | Implement '-s' to copy as symlink, similar to the current -l link(2) handling.bdrewery2015-06-074-28/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is also implemented in at least GNU coreutils cp. While here also improve the '-l' handling to not open(2) the source file as it does not actually need the descriptor. Sponsored by: EMC / Isilon Storage Division
* | | | | | | | | | | | | | Cleanup some indentation issues.bdrewery2015-06-071-9/+8
| | | | | | | | | | | | | |
* | | | | | | | | | | | | | Change directory permissions in pre-order.pluknet2015-06-041-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In this order, it won't try to recurse into a directory for which it doesn't have permission, before changing that permission. This follows an existing behavior in other BSDs, linux, OS X. Obtained from: NetBSD
* | | | | | | | | | | | | | Remove unused variable, this variable fmtstr was introduced at revision r225868araujo2015-06-011-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and it is not used anymore after the convertion to use libxo at revision r283304. Differential Revision: D2678 Reviewed by: marcel
* | | | | | | | | | | | | | Document recent p_flag2 additions.pluknet2015-05-271-1/+4
| |_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | |
* | | | | | | | | | | | | Convert to use libxo. Document use of libxo as well.marcel2015-05-226-166/+253
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Obtained from: Phil Shafer <phil@juniper.net> Sponsored by: Juniper Networks, Inc.
* | | | | | | | | | | | | Eliminate unneeded includes.delphij2015-05-2112-17/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 2 weeks
* | | | | | | | | | | | | date(1): Make -r behave like GNU's version when the option can not bedelphij2015-05-072-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | interpreted as a number, which checks the file's modification time and use that as the date/time value. This improves compatibility with GNU coreutils's version of time(1). MFC after: 2 weeks
* | | | | | | | | | | | | cp: Remove fts sorting.jilles2015-05-051-28/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In an attempt to improve performance, cp reordered directories first (although the comment says directories last). This is not effective with new UFS layout policies. The sorting reorders multiple arguments passed to cp, which may be undesirable. Additionally, the comparison function does not induce a total order. Per POSIX, this causes undefined behaviour in qsort(). NetBSD removed the sorting in 2009. On filesystems that return directory entries in hash/btree order, sorting by d_fileno before statting improves performance on large directories. However, this can only be implemented in fts(3). PR: 53475 Reviewed by: bde (in 2004) MFC after: 1 week
* | | | | | | | | | | | | Standardise chmod, chflags, chown and chgrp recursive symlink processingsmh2015-04-294-80/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | chmod, chflags, chgrp, chmod and chown now affect symlinks in -R mode as defined in symlink(7); previously symlinks were silently ignored. Differential Revision: https://reviews.freebsd.org/D2316 Reviewed by: jilles MFC after: 1 month Relnotes: yes Sponsored by: Multiplay
* | | | | | | | | | | | | Pet manlintbapt2015-04-261-1/+1
| | | | | | | | | | | | |
* | | | | | | | | | | | | Use mdoc(7) macros for curly bracesbapt2015-04-261-3/+3
| | | | | | | | | | | | |
* | | | | | | | | | | | | mdoc: escape Rebapt2015-04-261-1/+1
| | | | | | | | | | | | |
* | | | | | | | | | | | | sh: Pass along SIGINT from a child if job control is enabled, even when notjilles2015-04-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | interactive. I added the interactive check in r208881 to be safe, but in actual use (scripts in set -m mode) passing along SIGINT seems best. Discussed with: bdrewery
* | | | | | | | | | | | | ed(1): Fix [-Werror=logical-not-parentheses]eadler2015-04-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /usr/src/bin/ed/glbl.c:64:36: error: logical not is only applied to theleft hand side of comparison [-Werror=logical-not-parentheses] Obtained from: Dragonfly (1fff89cbaeaa43af720a1f23d9c466b756dd8a58) MFC After: 1 month
* | | | | | | | | | | | | bin/ed: use correct type in multiplicationeadler2015-04-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The result is line_t** so the multiplication should be size * sizeof(line_t*) MFC After: 1 month
* | | | | | | | | | | | | sh: Fix the trap builtin to be POSIX-compliant for 'trap exit SIG' and 'trap ↵bdrewery2015-04-185-4/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | n n...'. The parser considered 'trap exit INT' to reset the default for both EXIT and INT. This beahvior is not POSIX compliant. This was avoided if a value was specified for 'exit', but then disallows exiting with the signal received. A possible workaround is using ' exit'. However POSIX does allow this type of behavior if the parameters are all integers. Fix the handling for this and clarify its support in the manpage since it is specifically allowed by POSIX. Differential Revision: https://reviews.freebsd.org/D2325 Reviewed by: jilles MFC after: 2 weeks
* | | | | | | | | | | | | Fix build after r281550 when WITHOUT_ICONV is defined.tijl2015-04-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reported by: adrian MFC after: 2 weeks
* | | | | | | | | | | | | Remove the const qualifier from iconv(3) to comply with POSIX:tijl2015-04-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | http://pubs.opengroup.org/onlinepubs/9699919799/functions/iconv.html Adjust all code that calls iconv. PR: 199099 Exp-run by: antoine MFC after: 2 weeks
* | | | | | | | | | | | | sh: Add more tests for exotic IFS splitting.jilles2015-03-313-0/+13
| | | | | | | | | | | | |
* | | | | | | | | | | | | cp,mv: Use futimens() instead of utimensat() if possible.jilles2015-03-232-2/+2
| | | | | | | | | | | | |
OpenPOWER on IntegriCloud