summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Use getline() instead of fgets(). This enables nl(1) to handledas2009-02-281-26/+21
| | | | | | arbitrarily long lines and embedded NULs. The new functionality is nugatory, but adding it is a simple way to improve the exposure of getline() in -CURRENT.
* Fix compilation of fstat.ed2009-02-281-1/+1
| | | | The udev should now be obtained from the dosmount instead of the denode.
* Rename all symbols in libmp(3) to mp_*, just like Solaris.ed2009-02-263-20/+24
| | | | | | | | | | | | The function pow() in libmp(3) clashes with pow(3) in libm. We could rename this single function, but we can just take the same approach as the Solaris folks did, which is to prefix all function names with mp_. libmp(3) isn't really popular nowadays. I suspect not a single application in ports depends on it. There's still a chance, so I've increased the SHLIB_MAJOR and __FreeBSD_version. Reviewed by: deischen, rdivacky
* Install the old usb headers under /usr/include/legacy/dev/usb as they arethompsa2009-02-241-1/+4
| | | | | | | | needed by the hal port. This will be removed before 8.0. Add an exclusion to kdump as some structs will be redefined. Requested by: marcus
* Build fixups for the new USB stack.thompsa2009-02-232-2/+2
|
* Remove unnecessary opt* definations.delphij2009-02-211-3/+0
|
* Define extern **environ in global scope instead of in function.delphij2009-02-211-2/+2
|
* Utilize calloc() instead of bzero'ing manually.delphij2009-02-211-8/+4
|
* Initialize 'sz' as 0.delphij2009-02-211-2/+2
|
* Utilize strlcpy().delphij2009-02-211-6/+3
|
* Include proper header files for system functions that are used andimp2009-02-1919-0/+21
| | | | | that gcc complains about this code changing from the built-in versions.
* Add myself.makc2009-02-191-0/+1
|
* Now that ifmcstat(8) does not suck, retire host-mode netstat -g.bms2009-02-155-226/+11
| | | | This change will not be back-ported.
* Truss builds on mips, so don't filter it building there anymore.imp2009-02-151-1/+1
|
* Add preliminary support for truss on MIPS. It compiles, but has notimp2009-02-153-0/+354
| | | | | | | | been extensively tested. And the ELF64 stuff likely is not quite right... # There's a lot of cut-n-paste code here that could easily be # refactored, at least for FreeBSD syscalls.
* Let stat(1) use fdevname(3).ed2009-02-111-12/+20
| | | | | | | | | | | | | | Because we now have a reliable library function that converts file descriptors to character device names, let stat(1) use this. This means it can now do the following: $ stat -f %N /dev/pts/0 I've changed main() to set file properly, so output() is never called with file set to NULL. Approved by: dougb (older version, still used devname)
* o Print an octal representation of suid, sgid and sticky bits with -x flag.maxim2009-02-111-1/+1
| | | | | | | PR: bin/131569 Submitted by: Jaakko Heinonen Reported by: Yannick Cadin MFC after: 1 week
* Fix multiple -s options.kientzle2009-02-081-1/+1
| | | | MFC after: 7 days
* When copying file data to the archive, don't write morekientzle2009-02-081-1/+1
| | | | | | | | | than was read. This seems to have only affected the shar writer, since other formats proactively truncate output to the originally-advertised size. PR: bin/131244 MFC after: 7 days
* Clenup code a bit and do not call fork(2) before dameon(3) where not needed.emax2009-02-041-16/+2
| | | | MFC after: 1 month
* Partially revert r186559.obrien2009-02-031-1/+1
|
OpenPOWER on IntegriCloud