summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
...
* | After r232745, which makes sure __bswap16(), ntohs() and htons() returndim2012-03-091-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | __uint16_t, we can partially undo r228668. Note the remark "Work around a clang false positive with format string warnings and ntohs macros (see LLVM PR 11313)" was actually incorrect. Before r232745, on some arches, the ntohs() macros did in fact return int, not uint16_t, so clang was right in warning about the %hu format string. MFC after: 2 weeks
* | Document the [n]eei and [n]bacc optionseadler2012-03-031-1/+23
| | | | | | | | | | | | | | PR: docs/165009 Submitted by: Jeremy Huddleston <jeremyhu@apple.com> Approved by: bcr MFC after: 1 week
* | Replace the three spaces with one tag.davide2012-03-011-1/+1
| | | | | | | | | | Reported by: pjd Approved by: gnn (mentor)
* | Use proper "maxproc" name, not "nproc".trasz2012-03-011-3/+3
| | | | | | | | PR: docs/162172
* | Add a WITH_CLANG_IS_CC option for src.conf(5), disabled by default, thatdim2012-02-291-0/+8
| | | | | | | | | | | | | | | | | | | | installs clang as /usr/bin/cc, /usr/bin/c++ and /usr/bin/cpp. Note this does *not* disable building and installing gcc, which will still be available as /usr/bin/gcc, /usr/bin/g++ and /usr/bin/gcpp. If you want to disable gcc completely, you must use WITHOUT_GCC. MFC after: 2 weeks
* | Use srandom() to init the PRNG, not srand(), since we use random().cognet2012-02-291-1/+1
| | | | | | | | | | | | | | | | | | | | This is harmless because srandom() is called somewhere else, with time(NULL) as a seed, but this is more correct. Obtained from: https://bitbucket.org/mux/csup Pointyhat to: not mux, somebody else MFC after: 1 week
* | Update the description for -s flag after r232182.pluknet2012-02-291-1/+3
| | | | | | | | | | | | When displaying security credential information show also process umask. X-MFC-with: r232182
* | Document the 'URL' argument.obrien2012-02-281-2/+7
| |
* | Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, todim2012-02-282-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | get rid of testing explicitly for clang (using ${CC:T:Mclang}) in individual Makefiles. Instead, use the following extra macros, for use with clang: - NO_WERROR.clang (disables -Werror) - NO_WCAST_ALIGN.clang (disables -Wcast-align) - NO_WFORMAT.clang (disables -Wformat and friends) - CLANG_NO_IAS (disables integrated assembler) - CLANG_OPT_SMALL (adds flags for extra small size optimizations) As a side effect, this enables setting CC/CXX/CPP in src.conf instead of make.conf! For clang, use the following: CC=clang CXX=clang++ CPP=clang-cpp MFC after: 2 weeks
* | Backout r230934 which didn't work with unix sockets andpluknet2012-02-271-34/+8
| | | | | | | | | | | | several filesystem layers mounted at the specified path. Pointy hat to: pluknet
* | xargs: Remove an unclear comment that only tried to repeat what the code didjilles2012-02-261-4/+0
| | | | | | | | Reported by: bde
* | xargs: Fix comma splice in error message.jilles2012-02-261-2/+2
| | | | | | | | Reported by: bde
* | When displaying security credential information show also process umask.trociny2012-02-261-3/+29
| | | | | | | | | | | | Submitted by: Dmitry Banschikov <me ubique spb ru> Discussed with: rwatson MFC after: 2 weeks
* | Update libarchive to 3.0.3mm2012-02-257-147/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of new features: - New readers: RAR, LHA/LZH, CAB reader, 7-Zip - New writers: ISO9660, XAR - Improvements to many formats, especially including ISO9660 and Zip - Stackable write filters to write, e.g., tar.gz.uu in a single pass - Exploit seekable input; new "seekable" Zip reader can exploit the Zip Central Directory when it's available; the old "streamable" Zip reader is still fully supported for cases where seeking is not possible. Full release notes available at: https://github.com/libarchive/libarchive/wiki/ReleaseNotes
* | Fix style in previous commit.jhb2012-02-241-3/+3
| | | | | | | | Submitted by: bde
* | xargs: If a utility exits with 255 or a signal, write an error message.jilles2012-02-241-4/+7
| | | | | | | | | | | | | | | | If a utility called by xargs exits with status 255 or because of a signal, POSIX requires writing an error message. PR: 165155 Submitted by: Matthew Story matthewstory gmail com
* | Add underscore symbol to the end of definition stringsosa2012-02-243-9/+9
| | | | | | | | | | | | | | to keep all calendar files are consistency. Approved by: edwin MFC after: 1 week
* | Pretty-print the advice constants passed to posix_fadvise(2).jhb2012-02-232-0/+10
| | | | | | | | MFC after: 2 weeks
* | Add pt_BR.ISO8859-1 and pt_BR.UTF-8 directories to install.osa2012-02-231-1/+2
| | | | | | | | | | | | | | It was forgotten in r219937 commit. Approved by: edwin MFC after: 1 week
* | o Use ISO 3166 county code for Sweden.maxim2012-02-221-1/+1
| | | | | | | | | | | | PR: standards/165400 Submitted by: Carsten Hey MFC after: 1 week
* | Handle NULL return from crypt(3). Mostly from DragonFlykevlo2012-02-224-7/+20
| |
* | Merge multi-FIB IPv6 support from projects/multi-fibv6/head/:bz2012-02-171-13/+16
| | | | | | | | | | | | | | | | | | | | | | | | Extend the so far IPv4-only support for multiple routing tables (FIBs) introduced in r178888 to IPv6 providing feature parity. This includes an extended rtalloc(9) KPI for IPv6, the necessary adjustments to the network stack, and user land support as in netstat. Sponsored by: Cisco Systems, Inc. Reviewed by: melifaro (basically) MFC after: 10 days
* | Removed unused code: fixes compiler warning with CC=gcc46eadler2012-02-161-83/+0
| | | | | | | | | | | | | | error: parameter 'fd' set but not used Approved by: cperciva MFC after: 1 week
* | Don't extract the n_type value from the elf header, since it is never usedeadler2012-02-161-2/+0
| | | | | | | | | | | | | | | | Fix warning when compiling with gcc46: variable 'type' set but not used Approved by: cperciva MFC after: 3 days
* | Remove unnecessary castkevlo2012-02-142-5/+5
| |
* | Fix write(1) to support wide characters.glebius2012-02-132-28/+17
| | | | | | | | | | Submitted by: amdmi3 PR: bin/164317
* | Globally replace u_int*_t from (non-contributed) man pages.ed2012-02-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | The reasoning behind this, is that if we are consistent in our documentation about the uint*_t stuff, people will be less tempted to write new code that uses the non-standard types. I am not going to bump the man page dates, as these changes can be considered style nits. The meaning of the man pages is unaffected. MFC after: 1 month
* | Include target names in diagnostic output.fjoe2012-02-121-8/+15
| | | | | | | | Submitted by: Garrett Cooper
* | And of course, I forgot to add -a to the usage.ed2012-02-111-1/+1
| |
* | Attempt to implement who -a.ed2012-02-112-22/+16
| | | | | | | | | | | | According to POSIX, -a is equal to -bdlprtTu. It seems this is not true in practice, as -b normally restricts the output to BOOT_TIME entries and all implementations that I know of don't.
* | Reverting last change r231449 (fix bin/164947) due to concerns voicedcracauer2012-02-111-23/+3
| | | | | | | | | | on src-committers and the fact that I can only take care of this in a week.
* | Add myself to calendar.dmarion2012-02-111-0/+1
| | | | | | | | Approved by: cognet (mentor)
* | Fix bin/164947: tee looses data when writing to non-blocking file descriptorscracauer2012-02-101-3/+23
| | | | | | | | | | | | | | | | tee was not handling EAGAIN patch submitted by Diomidis Spinellis <dds@aueb.gr>. Thanks so much reproduced and re-tested locally
* | Add myself as a new committermatthew2012-02-091-0/+1
| | | | | | | | Approved by: shaun (mentor)
* | In usr.bin/rpcgen/rpc_main.c, use execvp(3) instead of execv(3), sodim2012-02-061-8/+2
| | | | | | | | | | | | | | | | rpcgen will search the current PATH for the preprocessor. This makes it possible to run a preprocessor built during the cross-tools stage of buildworld. MFC after: 1 week
* | Amend r231079 by properly shifting up the existing arguments indim2012-02-061-1/+1
| | | | | | | | | | | | | | | | rpc_main.c's insarg() function. I had forgotten to put this in my patch queue, sorry. Pointy hat to: me MFC after: 1 week
* | Let rpcgen(1) support an environment variable RPCGEN_CPP to find the Cdim2012-02-062-31/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | preprocessor to run. Previously, it always ran /usr/bin/cpp, unless you used the -Y option, and even then you could not set the basename. It also attempted to run /usr/ccs/lib/cpp for SVR4 compatibility, but this is obsolete, and has been removed. Note that setting RPCGEN_CPP to a command with arguments is supported, though the command line parsing is simplistic. However, setting it to e.g. "gcc46 -E" or "clang -E" will lead to problems, because both gcc and clang in -E mode will consider files with unknown extensions (such as .x) as object files, and attempt to link them. This could be worked around by also adding "-x c", but it is much safer to set RPCGEN_CPP to e.g. "cpp46" or "clang-cpp" instead. MFC after: 1 week
* | Add a WITH_CLANG_EXTRAS option for src.conf(5), disabled by default,dim2012-02-0536-0/+4277
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | that builds the following additional llvm/clang tools: - bugpoint - llc - lli - llvm-ar - llvm-as - llvm-bcanalyzer - llvm-diff - llvm-dis - llvm-extract - llvm-ld - llvm-link - llvm-mc - llvm-nm - llvm-objdump - llvm-prof - llvm-ranlib - llvm-rtdyld - llvm-stub - macho-dump - opt These tools are mainly useful for people that want to manipulate llvm bitcode (.bc) and llvm assembly language (.ll) files, or want to tinker with llvm and clang themselves. MFC after: 2 weeks
* | In usr.bin/rpcgen/rpc_main.c, properly check the return value ofdim2012-02-051-3/+5
| | | | | | | | | | | | strlcpy(), in addition to checking that of strlcat(). MFC after: 1 week
* | Whitespace fixes.ed2012-02-058-13/+1
| | | | | | | | | | | | - Remove redundant empty lines. - Replace ^L by \014. This allows you to safely cat/grep/etc this file without causing confusion.
* | Remove useless and potentially dangerous rw() function which tries tojh2012-02-042-67/+8
| | | | | | | | | | | | | | | | | | | | update access and modification times by reading and writing the file. chmod(2) in rw() doesn't help because utimes(2) allow owner and the super-user to change times. Using just utimes(2) should be sufficient. The -f option becomes no-op. Reviewed by: jilles
* | Print the owner process for unix domain sockets when restricted to thepluknet2012-02-031-8/+34
| | | | | | | | | | | | | | specified files. PR: bin/143962 MFC after: 2 weeks
* | Add myself to the relevant docs.davide2012-02-011-0/+1
| | | | | | | | Approved by: alc, gnn (mentors)
* | Try to avoid ambiguity when sysctl returns ENOMEM additionallytrociny2012-02-011-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | checking the returned oldlen: when ENOMEM is due to the supplied buffer being too short the return oldlen is equal to buffer size. Without this additional check sockstat gets stuck in loop leaking the memory if the returned ENOMEM was due the exceeded memorylocked limit. This is easily can be observed running `limits -l 1k sockstat'. Submitted by: Andrey Zonov <andrey zonov org> MFC after: 1 week
* | Always return 0 if the sysctl failed.trociny2012-01-291-8/+8
| | | | | | | | | | | | This fixes the bug: when procstat -xa was run and the sysctl for a process returned ESRCH or EPERM, for this process procstat output the result collected for the previous successful process.
* | Make tip exit if the device disappears, for instance when unpluggingphk2012-01-282-3/+4
| | | | | | | | | | | | | | | | or resetting USB serial devices. Somebody[tm] should rewrite tip(1) to use two thread instead of two processes or maybe even use that new-fangled "select(2)" or positively futuristic "poll(2)" system call.
* | Fix decoding of escape sequences in format strings:tijl2012-01-281-13/+6
| | | | | | | | | | | | | | | | | | | | | | | | - Zero-terminate the resulting string by letting the for-loop copy the terminating zero. - Exit the for-loop after handling a backslash at the end of the format string to fix a buffer overrun. - Remove some unnecessary comments and blank lines. [1] Requested by: bde [1] PR: bin/144722 Approved by: kib (mentor)
* | Don't print a warning when using netstat to printtuexen2012-01-251-1/+2
| | | | | | | | | | | | | | SCTP statistics when there is not SCTP in the kernel. This problem was reported by Sean Mahood. MFC after: 1 week.
* | Add -P option to allow get and set limits for other processes.trociny2012-01-252-7/+91
| | | | | | | | | | Submitted by: Andrey Zonov <andrey at zonov.org> MFC after: 2 weeks
* | After the recent changes there is no need in rlimit array any more.trociny2012-01-251-6/+5
| | | | | | | | | | Submitted by: Andrey Zonov <andrey at zonov.org> MFC after: 1 week
OpenPOWER on IntegriCloud