summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Couple of changes based on feedbackrdivacky2009-04-211-4/+7
| | | | | | | | | | | | o Change mr/me to so/se [1]. o Introduce a -h option to disable highlighting. [2] o Spell STDOUT_FILENO as such and pass NULL to tgetent() to handle the case of unset TERM. [3] Suggested by: naddy mips.inka.de (Christian Weisgerber) [1] Requested by: danfe, deischen [2] Suggested by: jmallett [3] Approved by: ed (mentor)
* Bracket struct mfc and struct rtdetq with #ifdef _KERNEL.bms2009-04-211-0/+3
| | | | | | | | | | Match the bracketing in netstat. Since the cleanup of MROUTING, ports have broken because they expect to include <netinet/ip_mroute.h> without including <sys/queue.h>. Fix breakage at source. The real fix, of course, is to fix the MROUTING APIs by blowing them away and replacing them with something else...
* Implement highlighting of today in month view of cal/ncal just likerdivacky2009-04-202-14/+82
| | | | | | | | gnu cal does. This is currently disabled for year view because of hard coded padding in that case. This will hopefully be fixed soon. Reviewed by: Simon 'corecode' Schubert <corecode fs.ei.tum.de> Approved by: ed
* Pass int arguments to auditon(2)'s A_GETCOND API rather than longrwatson2009-04-191-6/+6
| | | | | | | | | arguments. This change should be MFC'd with OpenBSM 1.1 since they are interdependent. MFC after: 2 weeks Obtained from: TrustedBSD Project Sponsored by: Apple, Inc.
* When compiled for the release crunches, be a bitkientzle2009-04-192-9/+37
| | | | | | | | | more selective about what libarchive features we pull in: * No compression support * Only cpio and ustar writing * Only cpio and tar/pax readers This reduces a statically linked, stripped binary from 900k to 680k and completely eliminates the dependency on libcrypto.
* Make -lcrypto usage dependent on whether or not we're building with OpenSSL.kientzle2009-04-182-2/+9
|
* Merge from libarchive.googlecode.com:kientzle2009-04-1728-153/+788
| | | | | | | | * Lots of new tests. * New -n / --numeric-uid-gid option * More sanity-checking of arguments * Various Windows portability improvements * Sync up version number to 2.7.0
* Merge remaining changes from libarchive.googlecode.com:kientzle2009-04-176-42/+150
| | | | | | | | * Add xz and lzma compression options * Rename --format-options to simply --options * Add --same-owner for GNU tar compat * Add -lmd and -lcrypto to fix link * Documentation
* Set options before opening the archive.kientzle2009-04-171-7/+10
| | | | Catch and report close-time errors.
* Minor portability improvement in calls to ctype.h macros.kientzle2009-04-171-2/+2
|
* Merge from libarchive.googlecode.com: Numerous Windows-specific build tweaks.kientzle2009-04-1710-52/+58
|
* Don't exit until all truss children were exit.delphij2009-04-131-4/+10
|
* Correct a bug where pr_data should have been assigned.delphij2009-04-131-4/+4
|
* Avoid infinite loops when remaking makefiles not onlyfjoe2009-04-074-41/+26
| | | | for Makefile targets but also for targets they depend on.
* Fixup the parameters to audit_submit(3) the order is errno then returncsjp2009-04-041-7/+7
| | | | | | | value. This bug went un-noticed for so long because EPERM == 1 MFC after: 1 week Spotted by: sson, rwatson
* Signed/unsigned fixes, should be WARNS=2 clean now.delphij2009-04-021-3/+3
|
* Don't crash when we have an invalid count number.delphij2009-04-021-0/+2
| | | | | | PR: bin/32686 Submitted by: Jaakko Heinonen <jh saunalahti.fi> MFC after: 1 week
* Fix punctuation.trhodes2009-04-011-1/+1
| | | | | PR: 132834 Submitted by: "Alan R. S. Bueno" <alan.bsd@gmail.com>
* Don't strip TTY device name to the last '/'.ed2009-03-271-2/+2
| | | | | | | | | | | | | We've seen this bug in other applications before: we have some applications that use strrchr(tty, '/') on the TTY device name. This isn't valid when using pts(4), because the device name will be stripped to "0" instead of "pts/0". This fixes issues with login(1) ignoring /etc/ttys and missing utmp records. Reported by: Barney Cordoba <barney_cordoba yahoo com> Reviewed by: rwatson
* Add two missing include files and prototype for sockfamilyname()delphij2009-03-201-0/+3
| | | | which is generated by mksubr.
* Act like ranlib if our name ends in ranlib. In particular,kientzle2009-03-201-2/+5
| | | | | | | this works with some recent cross-building changes by Warner that install ranlib as, e.g., "arm-freebsd7.1-ranlib". Submitted by: John Hein
* Fix size_t merge-o.bms2009-03-191-1/+1
|
* Introduce a number of changes to the MROUTING code.bms2009-03-193-121/+196
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is purely a forwarding plane cleanup; no control plane code is involved. Summary: * Split IPv4 and IPv6 MROUTING support. The static compile-time kernel option remains the same, however, the modules may now be built for IPv4 and IPv6 separately as ip_mroute_mod and ip6_mroute_mod. * Clean up the IPv4 multicast forwarding code to use BSD queue and hash table constructs. Don't build our own timer abstractions when ratecheck() and timevalclear() etc will do. * Expose the multicast forwarding cache (MFC) and virtual interface table (VIF) as sysctls, to reduce netstat's dependence on libkvm for this information for running kernels. * bandwidth meters however still require libkvm. * Make the MFC hash table size a boot/load-time tunable ULONG, net.inet.ip.mfchashsize (defaults to 256). * Remove unused members from struct vif and struct mfc. * Kill RSVP support, as no current RSVP implementation uses it. These stubs could be moved to raw_ip.c. * Don't share locks or initialization between IPv4 and IPv6. * Don't use a static struct route_in6 in ip6_mroute.c. The v6 code is still using a cached struct route_in6, this is moved to mif6 for the time being. * More cleanup remains to be merged from ip_mroute.c to ip6_mroute.c. v4 path tested using ports/net/mcast-tools. v6 changes are mostly mechanical locking and *have not* been tested. As these changes partially break some kernel ABIs, they will not be MFCed. There is a lot more work to be done here. Reviewed by: Pavlin Radoslavov
* Fix some warns - mainly signedness and unused variables.dwmalone2009-03-171-5/+3
|
* Add information about me as a new committer to the src treefabient2009-03-171-0/+1
| | | | Approved by: jkoshy (mentor)
* Correct a number of evolved problems with inp_vflag and inp_flags:rwatson2009-03-152-2/+2
| | | | | | | | | | | | | | | | | | | | | certain flags that should have been in inp_flags ended up in inp_vflag, meaning that they were inconsistently locked, and in one case, interpreted. Move the following flags from inp_vflag to gaps in the inp_flags space (and clean up the inp_flags constants to make gaps more obvious to future takers): INP_TIMEWAIT INP_SOCKREF INP_ONESBCAST INP_DROPPED Some aspects of this change have no effect on kernel ABI at all, as these are UDP/TCP/IP-internal uses; however, netstat and sockstat detect INP_TIMEWAIT when listing TCP sockets, so any MFC will need to take this into account. MFC after: 1 week (or after dependencies are MFC'd) Reviewed by: bz
* Multibyte character support for cal(1).das2009-03-142-38/+52
| | | | PR: 131578
* Add myself.rdivacky2009-03-121-0/+1
| | | | Approved by: ed (mentor)
* Add a new type of KTRACE record for sysctl(3) invocations. It uses thejhb2009-03-115-1/+14
| | | | | | | | internal sysctl_sysctl_name() handler to map the MIB array to a string name and logs this name in the trace log. This can be useful to see exactly which sysctls a thread is invoking. MFC after: 1 month
* Remove unused v6 macro aliases for inpcb fields:rwatson2009-03-101-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | in6p_ip6_nxt in6p_vflag in6p_flags in6p_socket in6p_lport in6p_fport in6p_ppcb Remove unused v6 macro aliases for inpcb flags: IN6P_HIGHPORT IN6P_LOWPORT IN6P_ANONPORT IN6P_RECVIF IN6P_MTUDISC IN6P_FAITH IN6P_CONTROLOPTS References to in6p_lport and in6_fport in sockstat are also replaced with normal inp_lport and inp_fport references. MFC after: 3 days Reviewed by: bz
* Update top and systat for vfs.bufcache now being a long rather than an int.jhb2009-03-102-2/+2
|
* Merge IGMPv3 and Source-Specific Multicast (SSM) to the FreeBSDbms2009-03-091-20/+101
| | | | | | | | | | | IPv4 stack. Diffs are minimized against p4. PCS has been used for some protocol verification, more widespread testing of recorded sources in Group-and-Source queries is needed. sizeof(struct igmpstat) has changed. __FreeBSD_version is bumped to 800070.
* Update version to 2.6.901a to indicate this is synced up with r745 ofkientzle2009-03-081-1/+1
| | | | libarchive.googlecode.com (except for the lzma/xz support).
* Merge r492 from libarchive.googlecode.com: First cut at exposing thekientzle2009-03-085-0/+29
| | | | new options mechanism to userland. Documentation pending...
* Match a comment to reduce differences with libarchive.googlecode.com.kientzle2009-03-082-1/+5
|
* Merge r709,r710 from libarchive.googlecode.com: More work onkientzle2009-03-083-31/+779
| | | | Windows support.
* Merge r687-689,691,693-701,720 from libarchive.googlecode.com:kientzle2009-03-086-822/+1102
| | | | | | | | | | | | Translate getdate.y into C for portability. Make the get_date() function easier to test as well: * Have it accept a time_t "now" to use as a reference so that test code can verify relative time specifications against known starting points. * Set up default date after parsing the string so that we can use the specified timezone (if any) instead of the local default. Otherwise, local DST makes it almost impossible to reliably test time specifications such as "sunday UTC"
* Merger r629-631,633-646,648,654,678,681,682 from libarchive.googlecode.com:kientzle2009-03-0823-66/+733
| | | | | Many changes for Windows compatibility. bsdtar_test now runs successfully on both POSIX platforms and Windows.
* Merge r368,496,625,626 from libarchive.googlecode.com: A number ofkientzle2009-03-082-36/+83
| | | | | style and portability tweaks to the test harness. Most significantly, don't use getopt().
* Merge r622 from libarchive.googlecode.com: Avoid warning on platformskientzle2009-03-081-1/+1
| | | | that lack regex.h.
* Merge r552,r559 from libarchive.googlecode.com: High-resolution timekientzle2009-03-081-3/+10
| | | | support on Tru64, AIX, and GNU Hurd, thanks to Björn Jacke.
* Merge r529 from libarchive.googlecode.com: Fix how we read ext2fs_fs.hkientzle2009-03-081-4/+11
| | | | headers on Linux.
* Merge r435,r443 from libarchive.googlecode.com: Let the compiler optionskientzle2009-03-082-4/+4
| | | | determine how to read config.h.
* Merge r283,r423 from libarchive.googlecode.com: Use libarchive's newkientzle2009-03-083-530/+127
| | | | | | archive_read_disk API to pull metadata off of disk. This removes a lot of platform-specific knowledge of things like ACLs, file flags, and extended attributes from bsdtar.
* Merge r374 from libarchive.googlecode.com: Stupid typo in open() call. <sigh>kientzle2009-03-081-1/+1
|
* Merge r369 from libarchive.googlecode.com: Test -s option.kientzle2009-03-082-0/+96
|
* Merge r278 from libarchive.googlecode.com: Reduce the number ofkientzle2009-03-081-3/+5
| | | | | patterns tested here from 200 to 170, which seems to be the most that Cygwin can handle.
* Merge r273 from libarchive.googlecode.com: Use open() correctly.kientzle2009-03-081-1/+1
|
* Correct types of variables used to track amount of allocated SysV sharedkib2009-03-021-2/+2
| | | | | | | | | | | | | | memory from int to size_t. Implement a workaround for current ABI not allowing to properly save size for and report more then 2Gb sized segment of shared memory. This makes it possible to use > 2 Gb shared memory segments on 64bit architectures. Please note the new BUGS section in shmctl(2) and UPDATING note for limitations of this temporal solution. Reviewed by: csjp Tested by: Nikolay Dzham <i levsha org ua> MFC after: 2 weeks
* Fix compilation of newkey(8) with WITHOUT_NIS=yes.ed2009-02-282-9/+5
| | | | | | | | Increasing WARNS seems to have broken compilation of this utility. Instead of lowering WARNS, just fix to code to compile properly. Submitted by: <bf2006a yahoo com> Tested by: bms
OpenPOWER on IntegriCloud