summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Fix inverted output re: stack protection no-execute flag in procstat(1)allanjude2015-09-061-2/+2
| | | | | | | | PR: 196110 Submitted by: Joerg Pernfuss <code.jpe@gmail.com> Approved by: bapt (mentor) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D3576
* Fix build error on gcc platformsallanjude2015-09-051-1/+1
| | | | Approved by: bapt (mentor)
* Introduce libxo to procstat(1)allanjude2015-09-0517-243/+654
| | | | | | | | Reviewed by: rodrigc, bapt Approved by: marcel (mentor) Relnotes: yes Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D2446
* Rename YP to NIS in the manpages.araujo2015-09-033-13/+13
| | | | | Approved by: bapt (mentor) Differential Revision: D3555
* Simplify kvm symbol resolution and error handling. The symbol tablehrs2015-09-028-241/+151
| | | | | nl_symbols will eventually be organized into several modules depending on MK_* variables.
* Divide statistics in the number of packets with 1000 instead of 1024hrs2015-09-021-21/+25
| | | | | | in human-readable form. PR: 183598
* - Add -W flag support for network column in intpr() (-i flag) andhrs2015-09-019-284/+226
| | | | | | | | | | | | | | | | | | | | | | | | | routepr() (-r flag). It is too narrow to show an IPv6 prefix in most cases. - Accept "local" as a synonym of "unix" in protocol family name. - Show a prefix length in CIDR notation when name resolution failed in netname(). - Make routename() and netname() AF-independent and remove unnecessary typecasting from struct sockaddr. - Use getnameinfo(3) to format L2 addr in intpr(). - Fix a bug which showed "Address" when -A flag is specfied in pr_rthdr(). - Replace cryptic GETSA() macro with SA_SIZE(). - Fix declarations shadowing local variables with the same names. - Add more static, remove unused header files and variables. MFC after: 1 week
* Drop group privileges after opening the kvm descriptor, otherwise, the codedelphij2015-09-011-10/+4
| | | | | | | | | would not drop privileges as expected. While there also add checks for the drop and bail out immediately if we failed. MFC after: 3 days
* Failure of dropping privilege should be fatal, so test and bail outdelphij2015-09-011-3/+6
| | | | | | | when setgid() fails. Reported by: clang static analyzer MFC after: 2 weeks
* vtfontcvt: fix buffer overflow for non-default size .hex fontsemaste2015-09-011-6/+22
| | | | Sponsored by: The FreeBSD Foundation
* vtfontcvt: introduce xmalloc to abort on out-of-memoryemaste2015-08-311-3/+13
| | | | Sponsored by: The FreeBSD Foundation
* ar: Deobfuscate a while loopemaste2015-08-311-1/+1
|
* ar: fix deterministic mode when running as ranlibemaste2015-08-311-0/+3
| | | | | | | | This was broken by r286024. PR: 202741 Submitted by: fk@fabiankeil.de Obtained from: ElectroBSD
* - uri is expected to be nul-terminated (strchr used later),delphij2015-08-311-4/+3
| | | | | | | so use strlcpy instead of strncpy. - unroll the other two cases of strncpy+\0 to strlcpy. MFC after: 2 weeks
* Constify opt_f and opt_t and eliminate unneeded copying. This fixesdelphij2015-08-311-4/+4
| | | | | | | memory leaks. Reported by: clang static analyzer MFC after: 2 weeks
* Use the userland exported states and handle them completely.tuexen2015-08-291-7/+16
|
* Report CLOSED as state for bound sockets for consistency withtuexen2015-08-291-3/+1
| | | | | | | netstat and the way TCP is handled. PR: 201585 MFC after: 3 weeks
* add documentation for timers that silby added in r197244, almost 6 yearsjmg2015-08-271-1/+7
| | | | ago...
* Decompose linkat()/renameat() rights to source and target.ed2015-08-271-2/+4
| | | | | | | | | | | | To make it easier to understand how Capsicum interacts with linkat() and renameat(), rename the rights to CAP_{LINK,RENAME}AT_{SOURCE,TARGET}. This also addresses a shortcoming in Capsicum, where it isn't possible to disable linking to files stored in a directory. Creating hardlinks essentially makes it possible to access files with additional rights. Reviewed by: rwatson, wblock Differential Revision: https://reviews.freebsd.org/D3411
* Unbreak nvi message catalog generation for 8 bit locales.kan2015-08-271-3/+3
| | | | | | | Feeding any file encoded in 8 bit locales such as KOI8-RU to sort utility running under UTF-8 locale produces astonishing result of recoding the output to UTF-8. To counter that, just run sort under 'C' locale for now.
* Add SCTP support.tuexen2015-08-262-7/+63
| | | | | PR: 201585 MFC after: 3 weeks
* Remove a variable which is set but never used.tuexen2015-08-261-3/+2
| | | | | PR: 201585 MFC after: 3 weeks
* Print the status on the first line of a socket description, not attuexen2015-08-261-11/+12
| | | | | | | | the last one. This doesn't matter for TCP, but it does for the upcoming SCTP support. PR: 201585 MFC after: 3 weeks
* Fix SEE ALSO.pluknet2015-08-261-3/+3
| | | | | | The history mechanism applies to csh. Sponsored by: Nginx, Inc.
* Sync ypwhich(1) code with the OpenBSD version that is more modern.araujo2015-08-252-75/+101
| | | | | | | | | Update the BSD LICENSE and remove the 3rd clause. Reviewed by: rodrigc, kib, bapt Approved by: bapt (mentor) Obtained from: OpenBSD Differential Revision: D3249
* Finish r89633 and completely remove the remaining of VERSION.delphij2015-08-251-2/+3
| | | | | | PR: bin/202308 Submitted by: John Hein <z7dr6ut7gs snkmail com> MFC after: 2 weeks
* Upgrade libxo to 0.4.5.marcel2015-08-245-7/+5
| | | | | | | Local changes incorporated by 0.4.5: r284340 Local changes retained: r276260, r282117 Obtained from: https://github.com/Juniper/libxo
* Although the website [1] says US-ASCII is accepted, ISO-8859-1 seems todelphij2015-08-231-1/+1
| | | | | | | | | be the only accepted character that is close enough to US-ASCII (and this is also done on OpenBSD; the alternative would be to use UTF-8). [1] http://www.denic.de/en/domains/technik/denic_whois-server/index.html MFC after: 2 weeks
* Fix the racy xargs -P0 -n2 test added in r286289ngie2015-08-212-3/+3
| | | | | | | | Sort the output obtained from xargs and the expected output to ensure the end result versus the input file is stable Differential Revision: D3432 Submitted by: Nikolai Lifanov <lifanov@mail.lifanov.com>
* Disable the -P0 testngie2015-08-211-1/+1
| | | | | | It's unreliable (sometimes it passes, sometimes it fails) Reported by: Jenkins (many times over the past few weeks)
* Handle the conditional decoding of execve() argument and environmentjhb2015-08-2012-225/+19
| | | | | | | | | arrays generically rather than duplicating a hack in all of the backends. - Add two new system call argument types and use them instead of StringArray for the argument and environment arguments execve and linux_execve. - Honor the -a/-e flags in the handling of these new types. - Instead of printing "<missing argument>" when the decoding is disabled, print the raw pointer value.
* Rework the argv and env string fetching for execve to be more robust.jhb2015-08-201-26/+44
| | | | | | | | | | | | | | Before truss would fetch 100 string pointers and happily walk off the end of the array if it never found a NULL. This also means for a short argv list it could fail entirely if the 100 string pointers spanned into an unmapped page. Instead, fetch page-aligned blocks of string pointers in a loop fetching each string until a NULL is found. While here, make use of the open memstream file descriptor instead of allocating a temporary array. This allows us to fetch each string once instead of twice.
* ino_t is unsigned, so use uintmax_t instead of intmax_t when printing it.jhb2015-08-191-2/+2
| | | | Submitted by: bde (sort of)
* Always use %j with an intmax_t cast to print time_t values. time_t isjhb2015-08-192-25/+28
| | | | | | longer than long on 32-bit platforms with a 64-bit time_t. Inspired by: mail from bde
* Various style and whitespace fixes.jhb2015-08-1911-38/+63
|
* Use nitems().jhb2015-08-1910-17/+12
|
* Expand the decoding of kevent structures.jhb2015-08-191-8/+86
| | | | | | | - Print the ident value as decimal instead of hexadecimal for filter types that use "small" values such as file descriptors and PIDs. - Decode NOTE_* flags in the fflags field of kevents for several system filter types.
* Change the argument formatting function to use a stdio FILE object openedjhb2015-08-192-224/+158
| | | | | | | | | with open_memstream() to build the string for each argument. This allows for more complicated argument building without resorting to intermediate malloc's, etc. Related, the strsig*() functions no longer return allocated strings but use a static global buffer instead.
* Correct All Saints' day.pfg2015-08-181-1/+1
| | | | | Thanks to: zec X-MFC with: r286891
* Calendar: add a few more dates to the Christian calendarpfg2015-08-181-1/+5
| | | | | | | | | | The many christian denominations have different dates for their celebrations and controversies are likely to be always. These are well established and happen to be holidays in many Catholic countries. MFC after: 1 month
* RIP Stefan Farfeleder (stefanf), committer since 2004.brueffer2015-08-181-0/+1
| | | | You will be missed!
* Use an xlat table and xlookup() instead of a home-rolled version for thejhb2015-08-171-9/+6
| | | | sigprocmask operation type.
* Tidy the linux_socketcall decoding:jhb2015-08-171-65/+16
| | | | | | | | - Don't exit if get_struct() fails, instead print the raw pointer value to match all other argument decoding cases. - Use an xlat table instead of a home-rolled switch for the operation name. - Display the nested socketcall args structure as a structure instead of as two inline arguments.
* Decode the optional SOCK_NONBLOCK and SOCK_CLOEXEC flags passed in ajhb2015-08-171-2/+15
| | | | socket type.
* - Decode the arguments for several signal-related system calls: sigpending,jhb2015-08-172-7/+51
| | | | | | | | | sigqueue, sigreturn, sigsuspend, sigtimedwait, sigwait, sigwaitinfo, and thr_kill. - Print signal sets as a structure (with {}'s) and in particular use this to differentiate empty sets from a NULL pointer. - Decode arguments for some other system calls: issetugid, pipe2, sysarch (operations are only decoded for amd64 and i386), and thr_self.
* Drop "internal" CTL frontend.mav2015-08-151-1/+0
| | | | | | Its idea was to be a simple initiator and execute several commands from kernel level, but FreeBSD never had consumer for that functionality, while its implementation polluted many unrelated places..
* Remove automatic checkout feature.delphij2015-08-156-167/+19
| | | | | | Obtained from: DragonFly via OpenBSD Relnotes: yes MFC: never
* Introduce a new make variable: NMFLAGS.rpaulo2015-08-142-2/+5
| | | | | | | As the name indicates, these are flags to pass to nm(1). The newer binutils have a plugin mechanism so, to build something with LLVM's LTO, we need to pass flags to nm(1). This commit also extends lorder(1) to pass NMFLAGS to nm(1).
* Roll WITHOUT_ELFTOOLCHAIN_TOOLS into WITHOUT_TOOLCHAINemaste2015-08-131-10/+7
| | | | | | | | | | | The option was added only to ease the transition from GNU Binutils to ELF Tool Chain tools, and that process is now complete (for the viable replacements). Noting the removal in UPDATING is sufficient as we have not shipped a release with the option. Reviewed by: brooks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3240
* Use nitems instead of "sizeof ypaliases/sizeof ypaliases[0]".araujo2015-08-132-8/+10
| | | | | | | | Make the if statement more expressive. Differential Revision: D3366 Reviewed by: ed Approved by: bapt, rodrigc (mentor)
OpenPOWER on IntegriCloud