summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Fix alignment of context switch traces.jhb2007-07-101-1/+1
| | | | | MFC after: 1 week Approved by: re (rwatson: "I like simple patches.")
* Before doing compile_re() which needs a parameter to identifydelphij2007-07-061-4/+4
| | | | | | | | | | | whether we should ignore case, determine the flag by calling compile_flags() first. Also, make sure that we obtain an initialized cmd->u.s buffer before processing further. We may want to refine this solution later, but for now, make the changes in order to unbreak world build after a sed(1) with rev. 1.29 of compile.c is installed. Approved by: re (hrs)
* Remove the -DFAST_IPSEC from Makefiles again.bz2007-07-051-2/+2
| | | | | | | | | This was needed during the IPSEC->FAST_IPSEC->IPSEC transition period to not break the build after picking up netipsec header files. Now that the FAST_IPSEC kernel option is gone and the default is IPSEC again those defines are superfluous. Approved by: re (rwatson)
* kdump has knowledge of lseek() and mmap() arg decoding. Teach it aboutpeter2007-07-041-1/+25
| | | | | | the new mmap and lseek syscalls. Approved by: re (kensmith)
* Add case-insensitive matching to sed, using the 'I' flag, similarly to GNU sed.ssouhlal2007-07-043-27/+52
| | | | | | | | | For example, sed /foo/Id sed s/foo/bar/Ig Reviewed by: dds Approved by: re (hrs)
* Significantly reduce the memory leak as noted in BUGS section forscf2007-07-045-10/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | setenv(3) by tracking the size of the memory allocated instead of using strlen() on the current value. Convert all calls to POSIX from historic BSD API: - unsetenv returns an int. - putenv takes a char * instead of const char *. - putenv no longer makes a copy of the input string. - errno is set appropriately for POSIX. Exceptions involve bad environ variable and internal initialization code. These both set errno to EFAULT. Several patches to base utilities to handle the POSIX changes from Andrey Chernov's previous commit. A few I re-wrote to use setenv() instead of putenv(). New regression module for tools/regression/environ to test these functions. It also can be used to test the performance. Bump __FreeBSD_version to 700050 due to API change. PR: kern/99826 Approved by: wes Approved by: re (kensmith)
* Commit IPv6 support for FAST_IPSEC to the tree.gnn2007-07-016-80/+25
| | | | | | | | This commit includes all remaining changes for the time being including user space updates. Submitted by: bz Approved by: re
* Add support using an alternate table file to usbhidaction(1).imp2007-06-302-3/+10
| | | | | | Submitted by: Michael Haro PR: 61234 Approved by: re (bmah)
* MFp4: Bugfixes for truss(1):delphij2007-06-2610-91/+75
| | | | | | | | | | | - Fix logic handling execve(). We will not be able to obtain information otherwise. - truss coredump [1]. - truss does not work against itself [2]. PR: bin/58970 [1], bin/45193 [2] Submitted by: Howard Su Approved by: re (kensmith)
* Add myself as a src committer.scf2007-06-251-0/+1
| | | | | Approved by: wes (mentor) Approved by: re (bmah)
* o style(9) nit.rrs2007-06-171-100/+87
| | | | | | | o shorten explainations which are over 80 columns in console. o group rows o clean up and change explanations a little bit. Obtained from: weongyo.jeong@gmail.com
* - Forced commit to update who actually did this code (I forgotrrs2007-06-171-0/+1
| | | | | the obtained from in the original line) Obtained from: Weongyo Jeong (weongyo.jeong@gmail.com)
* o Do not warn if the process exits before we get its name.maxim2007-06-161-1/+3
| | | | | | PR: bin/113777 Submitted by: Dmitrij Tejblum MFC after: 1 week
* Never define the generated rpc server main function with storage typese2007-06-161-1/+1
| | | | | | | | | | | | | | "static". The header file generated by "rpcgen -h" will always declare it as extern, leading to a "static after extern" error being issued by gcc-4.2. This caused only a warning in gcc-3.x, but it has been wrong all the time. This change does not modify the code generated by "rpcgen -m", it only affects rpcgen used to generate server stubs with a local main function. This is the minimal patch. It does not remove the now obsolete "storage" parameter from write_program() and write_programs() in an attempt to keep differences to other systems' versions of rpcgen as small as possible.
* Expand TCP counters from 9 digits to 12.jhb2007-06-151-25/+25
| | | | | MFC after: 1 week PR: bin/112881
* Consistently indent the R() macro for fields on the right-side of thejhb2007-06-151-17/+17
| | | | | | display to make the code easier to read. PR: bin/112881
* Add a new counter for retransmitted packets due to SACK.jhb2007-06-151-51/+54
| | | | | PR: bin/112881 Submitted by: Phil Rosenthal <pr isprime com>
* Third stage of unbreaking printing of pseudo-nice values (realtimebde2007-06-151-2/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | priorities, etc.) in the NICE field: Use a combination of pri_native and pri_user instead of pri_level to guess the original realtime priority. Using pri_level here has been wrong since 2001/02/12. Using only pri_native here would be correct if the kernel actually initialized it reasonably. (The kernel exports its raw td_base_priority as pri_native, but userland mostly wants a refined base priority). Give up on waiting pri_native to work correctly and only use it when there is nothing better (for kthreads). This should reduce printing of bizarre pseudo-nice values. Bizarre values are still printed if we observe a transient borrowed priority for a kthread (transient borrowing is the main thing that makes the raw td_base_priority almost useless in userland), or if there is a kernel bug. One current kernel bug involves the kernel idprio thread pagezero permanently changing its priority from PRI_MAX_IDLE (255) to PUSER (160). Then the bizarre value "ki-6" is printed instead of "ki31". Here "-6" is PRI_MIN_IDLE - PUSER = -64 truncated to 2 characters. We are observing a transient borrowed priority that has become permanent due to a bug. ps/print.c:priorityr() needs similar changes (including ones in stage 2 here).
* Add myself as a commiter.timur2007-06-131-0/+1
| | | | Approved by: shaun (mentor)
* sctp_process_inpcb() wants an offset parameter in size_t,delphij2007-06-131-1/+1
| | | | | so define it as what it is expected. This fixes WARNS=3 without NO_WERROR build.
* Options spring cleanup:sepotvin2007-06-131-2/+0
| | | | | | | | | | - Add and document the KVM and KVM_SUPPORT options that are needed for the ifmcstats(3) makefile - Garbage collect unused variables - Add missing inclusion of bsd.own.mk where needed Approved by: kan (mentor) Reviewed by: ru
* Import rewrite of IPv4 socket multicast layer to support source-specificbms2007-06-121-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and protocol-independent host mode multicast. The code is written to accomodate IPv6, IGMPv3 and MLDv2 with only a little additional work. This change only pertains to FreeBSD's use as a multicast end-station and does not concern multicast routing; for an IGMPv3/MLDv2 router implementation, consider the XORP project. The work is based on Wilbert de Graaf's IGMPv3 code drop for FreeBSD 4.6, which is available at: http://www.kloosterhof.com/wilbert/igmpv3.html Summary * IPv4 multicast socket processing is now moved out of ip_output.c into a new module, in_mcast.c. * The in_mcast.c module implements the IPv4 legacy any-source API in terms of the protocol-independent source-specific API. * Source filters are lazy allocated as the common case does not use them. They are part of per inpcb state and are covered by the inpcb lock. * struct ip_mreqn is now supported to allow applications to specify multicast joins by interface index in the legacy IPv4 any-source API. * In UDP, an incoming multicast datagram only requires that the source port matches the 4-tuple if the socket was already bound by source port. An unbound socket SHOULD be able to receive multicasts sent from an ephemeral source port. * The UDP socket multicast filter mode defaults to exclusive, that is, sources present in the per-socket list will be blocked from delivery. * The RFC 3678 userland functions have been added to libc: setsourcefilter, getsourcefilter, setipv4sourcefilter, getipv4sourcefilter. * Definitions for IGMPv3 are merged but not yet used. * struct sockaddr_storage is now referenced from <netinet/in.h>. It is therefore defined there if not already declared in the same way as for the C99 types. * The RFC 1724 hack (specify 0.0.0.0/8 addresses to IP_MULTICAST_IF which are then interpreted as interface indexes) is now deprecated. * A patch for the Rhyolite.com routed in the FreeBSD base system is available in the -net archives. This only affects individuals running RIPv1 or RIPv2 via point-to-point and/or unnumbered interfaces. * Make IPv6 detach path similar to IPv4's in code flow; functionally same. * Bump __FreeBSD_version to 700048; see UPDATING. This work was financially supported by another FreeBSD committer. Obtained from: p4://bms_netdev Submitted by: Wilbert de Graaf (original work) Reviewed by: rwatson (locking), silence from fenner, net@ (but with encouragement)
* Drop the argument to the OUT macro because it can't emityar2007-06-121-7/+7
| | | | | | | anything but the pattern space anyway. Apply style(9) to the macro. Tested with: md5(1)
* Don't forget to clear out the hold space for each subsequent fileyar2007-06-123-4/+18
| | | | | | | | when in -i mode so that each file gets a clean context of its own. Add a regression test for the bug. Tested with: regression tests
* There is a symbolic antonym for REPLACE as a flag to cspace()yar2007-06-121-6/+6
| | | | | | | and mf_fgets(): APPEND. So use it instead of a 0 constant for clarity. Tested with: md5(1)
* Backout mess mistakenly committed with manpage update.ceri2007-06-101-0/+10
|
* Document SCTP support.ceri2007-06-102-12/+2
|
* - Add myself.beech2007-06-091-0/+1
| | | | Approved by: sat (mentor)
* Adds support for SCTP.rrs2007-06-094-1/+719
|
* Sort events by date.grog2007-06-093-32/+119
| | | | | | | | | Correct long-standing off-by-one error in -W option. Submitted by: edwin@ Shorten some long lines. These files are still not completely style(9) compliant.
* Include calendar.dutch.grog2007-06-091-0/+1
|
* Dutch calendar.grog2007-06-091-0/+58
| | | | Submitteed by: edwin@
* Increase inputFS buffer. awk will not accept some old scriptsdelphij2007-06-081-4/+13
| | | | otherwise.
* Mention 'k' option of gunzip.delphij2007-06-061-2/+2
| | | | Pointed out by: ighighi gmail.com
* - Update for 2007/05/01 importrafan2007-06-052-5/+5
| | | | | | Approved by: delphij (mentor) Nodded by: ru Tested by: make universe
* Regen.delphij2007-06-041-23/+26
|
* Fix various bugs in the -A and -B options.grog2007-06-031-8/+36
| | | | | | Submitted by: edwin@ PR: bin/113250 MFC after: 2 weeks
* Update bmake glue for the BIND 9.4.1 import.dougb2007-06-024-8/+12
| | | | | This includes a return to building with threads, since one of the major focuses of the 9.4.x branch is to improve thread performance.
* Change directory back to ${.CURDIR} when remaking Makefiles.fjoe2007-06-011-1/+9
| | | | Pointed out by: ru
* bsdtar 2.2.3:kientzle2007-05-296-20/+39
| | | | | | | | | * Implement --use-compress-program using new libarchive feature. * Minor portability improvement by adjusting casts used to print out uids, gids, and device numbers. Thanks to: Joerg Sonnenberger for the --use-compress-program implementation. MFC after: 15 days
* Add a '-k' flag which is similar with its bzip2(1) counterpart,delphij2007-05-282-4/+15
| | | | | | | | meaning that the user wants the input file to be left intact. Feature request: Ighighi <ighighi gmail.com> PR: bin/103006 MFC after: 1 month
* Update for the 4.21 import (manuals didn't change).ru2007-05-252-2/+2
|
* FreeBSD has <limits.h>.obrien2007-05-241-0/+3
|
* Update for the 'file' 4.21 import.obrien2007-05-241-1/+1
|
* Fix handling of filenames containing whitespace.le2007-05-241-3/+3
| | | | | PR: bin/112860 MFC in: 3 days
* Update for the 'file' 4.19 import.obrien2007-05-241-1/+10
|
* Don't want a stray systrace_args.c in objdir.ru2007-05-222-2/+6
|
* Increase precision of time values in the process accountingdds2007-05-223-67/+260
| | | | | structure, while maintaining backward compatibility with legacy file and record formats.
* Remove duplicate ' 2' manpage section number.keramida2007-05-211-1/+1
| | | | | Submitted by: Rui Paulo MFC after: 3 days
* Mention the formats supported by bsdtar; include ankientzle2007-05-201-0/+6
| | | | example that shows how to work with an ISO 9660 image.
OpenPOWER on IntegriCloud