aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade libxo to 0.4.5.Marcel Moolenaar2015-08-245-7/+5
| | | | | | | | | | Local changes incorporated by 0.4.5: r284340 Local changes retained: r276260, r282117 Obtained from: https://github.com/Juniper/libxo Notes: svn path=/head/; revision=287111
* Although the website [1] says US-ASCII is accepted, ISO-8859-1 seems toXin LI2015-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 Notes: svn path=/head/; revision=287030
* Fix the racy xargs -P0 -n2 test added in r286289Enji Cooper2015-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> Notes: svn path=/head/; revision=287005
* Disable the -P0 testEnji Cooper2015-08-211-1/+1
| | | | | | | | | It's unreliable (sometimes it passes, sometimes it fails) Reported by: Jenkins (many times over the past few weeks) Notes: svn path=/head/; revision=287004
* Handle the conditional decoding of execve() argument and environmentJohn Baldwin2015-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. Notes: svn path=/head/; revision=286963
* Rework the argv and env string fetching for execve to be more robust.John Baldwin2015-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. Notes: svn path=/head/; revision=286962
* ino_t is unsigned, so use uintmax_t instead of intmax_t when printing it.John Baldwin2015-08-191-2/+2
| | | | | | | Submitted by: bde (sort of) Notes: svn path=/head/; revision=286940
* Always use %j with an intmax_t cast to print time_t values. time_t isJohn Baldwin2015-08-192-25/+28
| | | | | | | | | longer than long on 32-bit platforms with a 64-bit time_t. Inspired by: mail from bde Notes: svn path=/head/; revision=286939
* Various style and whitespace fixes.John Baldwin2015-08-1911-38/+63
| | | | Notes: svn path=/head/; revision=286938
* Use nitems().John Baldwin2015-08-1910-17/+12
| | | | Notes: svn path=/head/; revision=286937
* Expand the decoding of kevent structures.John Baldwin2015-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. Notes: svn path=/head/; revision=286914
* Change the argument formatting function to use a stdio FILE object openedJohn Baldwin2015-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. Notes: svn path=/head/; revision=286913
* Correct All Saints' day.Pedro F. Giffuni2015-08-181-1/+1
| | | | | | | | Thanks to: zec X-MFC with: r286891 Notes: svn path=/head/; revision=286893
* Calendar: add a few more dates to the Christian calendarPedro F. Giffuni2015-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 Notes: svn path=/head/; revision=286891
* RIP Stefan Farfeleder (stefanf), committer since 2004.Christian Brueffer2015-08-181-0/+1
| | | | | | | You will be missed! Notes: svn path=/head/; revision=286885
* Use an xlat table and xlookup() instead of a home-rolled version for theJohn Baldwin2015-08-171-9/+6
| | | | | | | sigprocmask operation type. Notes: svn path=/head/; revision=286860
* Tidy the linux_socketcall decoding:John Baldwin2015-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. Notes: svn path=/head/; revision=286857
* Decode the optional SOCK_NONBLOCK and SOCK_CLOEXEC flags passed in aJohn Baldwin2015-08-171-2/+15
| | | | | | | socket type. Notes: svn path=/head/; revision=286849
* - Decode the arguments for several signal-related system calls: sigpending,John Baldwin2015-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. Notes: svn path=/head/; revision=286848
* Drop "internal" CTL frontend.Alexander Motin2015-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.. Notes: svn path=/head/; revision=286806
* Remove automatic checkout feature.Xin LI2015-08-156-167/+19
| | | | | | | | | Obtained from: DragonFly via OpenBSD Relnotes: yes MFC: never Notes: svn path=/head/; revision=286795
* Introduce a new make variable: NMFLAGS.Rui Paulo2015-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). Notes: svn path=/head/; revision=286791
* Roll WITHOUT_ELFTOOLCHAIN_TOOLS into WITHOUT_TOOLCHAINEd Maste2015-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 Notes: svn path=/head/; revision=286730
* Use nitems instead of "sizeof ypaliases/sizeof ypaliases[0]".Marcelo Araujo2015-08-132-8/+10
| | | | | | | | | | | Make the if statement more expressive. Differential Revision: D3366 Reviewed by: ed Approved by: bapt, rodrigc (mentor) Notes: svn path=/head/; revision=286716
* Fix a few mandoc warnings.Christian Brueffer2015-08-121-1/+2
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=286660
* Use __DECONST instead of doing strdup/free.Xin LI2015-08-111-10/+5
| | | | | | | | Suggested by: ed MFC after: 2 weeks Notes: svn path=/head/; revision=286617
* Clean out some externally visible "more then" grammarPedro F. Giffuni2015-08-111-2/+2
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=286615
* xlint(1): Fix some typos in comments and translate some germanPedro F. Giffuni2015-08-118-40/+42
| | | | | | | | | No functional change. Obtained from: OpenBSD (where xlint is no more) Notes: svn path=/head/; revision=286614
* More style(9) fixes. No functional changes.Marcelo Araujo2015-08-111-14/+7
| | | | | | | | | Differential Revision: D3350 Reviewed by: ed Approved by: bapt (mentor) Notes: svn path=/head/; revision=286609
* use posix_spawn(3) instead of fork() and exec() manually as suggestedXin LI2015-08-101-41/+40
| | | | | | | | | | | by jmg@. Reviewed By: pfg MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D3353 Notes: svn path=/head/; revision=286601
* Use consistent style for optional subdirectoriesEd Maste2015-08-101-29/+15
| | | | | | | | | Reviewed by: imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3356 Notes: svn path=/head/; revision=286592
* Remove ${_subdir}s that are never setEd Maste2015-08-101-6/+1
| | | | | | | | | | The MK_NIS subdirs were leftovers from r212558 and kdump/truss were introduced in r240404. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=286590
* Add a #ifndef around the HAVE_ICONV settings since it is suppliedPeter Wemm2015-08-101-0/+2
| | | | | | | by the Makefile. Notes: svn path=/head/; revision=286562
* Don't assume iconv is enabled. I didn't realize there was a configurationPeter Wemm2015-08-102-2/+2
| | | | | | | | | control to turn it off and it wasn't being respected. Pointed out by: gshapiro Notes: svn path=/head/; revision=286561
* Fix typo introduced in r275079Peter Wemm2015-08-091-1/+1
| | | | Notes: svn path=/head/; revision=286509
* Update svnlite from 1.8.10 to 1.8.14. This is mostly for client-side bugPeter Wemm2015-08-091-5/+8
| | | | | | | | | fixes and quality of life improvements. While there are security issues in this time frame that affect usage as a server (eg: linked into apache), this isn't possible here. Notes: svn path=/head/; revision=286506
* Update apr-util config - I don't believe this part is used by svn, butPeter Wemm2015-08-092-9/+5
| | | | | | | if it were, use shm_* instead of sysvshm. Notes: svn path=/head/; revision=286504
* Update apr-1.5.1 to 1.5.2Peter Wemm2015-08-092-4/+4
| | | | Notes: svn path=/head/; revision=286503
* fix regression in xargs -Px (introduced in r286289) and add regression testsAllan Jude2015-08-086-6/+17
| | | | | | | | | | | PR: 202152 Submitted by: jbeich (original), Nikolai Lifanov (final) Reviewed by: jbeich Approved by: bapt (mentor) Differential Revision: https://reviews.freebsd.org/D3330 Notes: svn path=/head/; revision=286461
* Fix interaction between libedit initialization and CapsicumEdward Tomasz Napierala2015-08-081-5/+7
| | | | | | | | | | | | | in units(1). The most visible is the removal of libedit warnings about being unable to open termcap database. Reviewed by: eadler@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3322 Notes: svn path=/head/; revision=286446
* Fix typo introduced in previous commit.Marcel Moolenaar2015-08-071-1/+1
| | | | | | | Pointed out by: Nikolai Lifanov <lifanov at mail.lifanov.com> Notes: svn path=/head/; revision=286419
* o Fix a typo.Marcel Moolenaar2015-08-071-2/+82
| | | | | | | o Describe the file formats mkimg can create. Notes: svn path=/head/; revision=286417
* Remove an extra new line on usage().Marcelo Araujo2015-08-071-2/+2
| | | | | | | | | Rename domain to domainname to be identical to the man page. Reported by: bde Notes: svn path=/head/; revision=286403
* Rebase after r286395: rounding fix for dynamic VHDMarcel Moolenaar2015-08-0728-402/+407
| | | | Notes: svn path=/head/; revision=286398
* Fix the dynamic VHD format to work with qemu. The size of the diskMarcel Moolenaar2015-08-071-37/+55
| | | | | | | | | | | | | | is taken to match the geometry and only when the geometry is max'd out, is the actual recorded size taken. Note that qemu has the same logic for the fixed VHD format. However that is known to conflict with Microsoft Azure, where the recorded size of the image is what counts. Pointed out by: gjb@ Notes: svn path=/head/; revision=286395
* Get closest as possible with style(9). No functional change.Marcelo Araujo2015-08-071-14/+10
| | | | | | | | Differential Revision: D3295 Reviewed by: bapt Notes: svn path=/head/; revision=286394
* Consistently use both leading and trailing spaces inside of the {}'sJohn Baldwin2015-08-061-10/+14
| | | | | | | | when pretty-printing structures. Most structures used both spaces, but some only used a trailing space and some used neither. Notes: svn path=/head/; revision=286388
* Whitespace fixes to consistently use spaces before }'s andJohn Baldwin2015-08-061-15/+25
| | | | | | | wrap long lines. Notes: svn path=/head/; revision=286383
* Decode the arguments passed to the *at() family of system calls. This isJohn Baldwin2015-08-062-4/+118
| | | | | | | | | | | | | | | especially useful now that libc's open() always calls openat(). While here, fix a few other things: - Decode the mode argument passed to access(), eaccess(), and faccessat(). - Decode the atfd paramete to pretty-print AT_FDCWD. - Decode the special AT_* flags used with some of the *at() system calls. - Decode arguments for fchmod(), lchmod(), fchown(), lchown(), eaccess(), and futimens(). - Decode both of the timeval structures passed to futimes() instead of just the first one. Notes: svn path=/head/; revision=286381
* Decode the arguments to mkfifo() and fix an off-by-one error in the argumentsJohn Baldwin2015-08-061-1/+3
| | | | | | | to mknod(). Notes: svn path=/head/; revision=286380