summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Alow dirname(1) to accept multiple arguments in the same way thatrwatson2009-02-022-5/+9
| | | | | | | | | | | basename(1) does. (Two different PRs contained identical patches, both cited below) PR: 121520, 86148 Submitted by: Ighighi <ighighi at gmail dot com> Submitted by: Leif Neland <leif at neland dot dk> MFC after: 3 days
* Remove duplicate OPTFLAGS definition.fjoe2009-02-021-1/+0
|
* Sort the options, per style(9).imp2009-02-021-24/+25
| | | | Reviewed by: obrien@
* src/usr.bin/usbhidaction/usbhidaction.calfred2009-02-022-10/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/usr.bin/usbhidctl/usbhid.c src/sys/dev/usb2/include/usb2_hid.h src/sys/dev/usb2/input/uhid2.c src/lib/libusbhid/Makefile src/lib/libusbhid/descr.c src/lib/libusbhid/descr_compat.c src/lib/libusbhid/usbhid.3 src/lib/libusbhid/usbhid.h src/lib/libusbhid/usbvar.h Patches to make libusbhid and HID userland utilities compatible with the new USB stack. All HID ioctls should go through the libusbhid library to ensure compatibility. I have found at least one piece of software in /usr/ports which needs to get updated before USB HID devices will work. This is the X joystick input driver. Reported and tested by: Daichi GOTO and Masanori OZAWA. src/sys/dev/usb2/core/usb2_process.c Correct USB process names. Reported by: Andre Guibert de Bruet src/sys/dev/usb2/serial/uftdi2.c Integrate changes from old USB stack. Submitted by: hps
* Remove the single global unlocked route cache ip6_forward_rtbz2009-02-011-2/+0
| | | | | | | | | | | | | | | | | | from the inet6 stack along with statistics and make sure we properly free the rt in all cases. While the current situation is not better performance wise it prevents panics seen more often these days. After more inet6 and ipsec cleanup we should be able to improve the situation again passing the rt to ip6_forward directly. Leave the ip6_forward_rt entry in struct vinet6 but mark it for removal. PR: kern/128247, kern/131038 MFC after: 25 days Committed from: Bugathon #6 Tested by: Denis Ahrens <denis@h3q.com> (different initial version)
* David doesn't consider the prior -s behavior a bug. Back out thisimp2009-01-311-1/+0
| | | | change.
* Unbreak make -s. There's about a 10% performance improvement with -simp2009-01-301-0/+1
| | | | | | in many environments. The recent --- blah --- reintroduction has killed. That output makes almost no sense when all the other output is silenced.
* Make sure the entries don't run into each other when they're longer thandes2009-01-301-6/+6
| | | | | | | | the allotted space. PR: bin/129318 Submitted by: Ighighi <ighighi@gmail.com> MFC after: 3 weeks
* When "-b" is specified, one could easily create "smaller" filestrhodes2009-01-241-3/+3
| | | | | | | | | that are much larger than expected (given the default size). Change "smaller files" to "split files" which is more in line with what "-b" actually does. PR: 119329 Submitted by: Julian Stacey <jhs@berklix.org>
* Attaching to the init process returns EINVAL,trhodes2009-01-231-2/+2
| | | | | | | | so give an example that is more likely to work. Stolen from the ktrace(1) manual page. PR: 128222 Submitted by: Mateusz Guzik <mjguzik@gmail.com>
* Remove inlining of functions that are used mostly in different object files.rdivacky2009-01-203-4/+4
| | | | | | | | This gets rid of gnu89 style inlining. Also silence gcc by assigning two variables NULL. This lets use to remove NO_WERROR. Approved by: kib (mentor) Approved by: harti
* The FTP_TIMEOUT and HTTP_TIMEOUT environment variables were ignored becausedes2009-01-171-3/+4
| | | | | | | | T_secs already had a non-zero default. Unbreak by moving the default to ftp_timeout / http_timeout. Submitted by: Christoph Mallon <christoph.mallon@gmx.de> MFC after: 2 weeks
* Rename mail(1)'s aux.c to util.c.ed2009-01-162-2/+2
| | | | | | | | The name `aux' is reserved on Windows file systems. aux.c in the mail(1) directory contains some random utility functions. I'm renaming this file to util.c to make it possible to check out this directory on Windows. MFC after: 1 month
* o Respect -ss flags (suppress zero counters) for icmp6 "histogrammaxim2009-01-131-1/+2
| | | | | | | of error messages" section. Submitted by: naddy MFC after: 1 week
* Don't enable -Q by default - I've fixed the rescue build issue.obrien2009-01-132-3/+3
|
* If running with "-K" really do not information about symbols from the a.outobrien2009-01-121-1/+1
| | | | | | | | | argument. Before this fix, after searching the currently-running kernel, we would still search the a.out argument - completely override the in-kernel list, essentially defeating the K flag's purpose. PR: 47387 Submitted by: Ryan Beasley <ryanb@goddamnbastard.org>
* Fix usage() with SYNOPSIS.ru2009-01-101-5/+6
|
* Fix markup and spelling.ru2009-01-101-4/+7
|
* A bit of rewording for clarity, taken from OpenBSD.trhodes2009-01-101-9/+26
| | | | Submitted by: jmc@OpenBSD.org
* Fix crash with "netstat -m -N foo".ru2009-01-101-1/+1
| | | | | PR: bin/124724 MFC after: 3 days
* Note that r186713 also contained a change to VarAdd where we propagate theobrien2009-01-061-2/+1
| | | | | newly created 'Var' back to the caller. Also, back out an accidentally commented WIP comment.
* Merge support for CVSMode (aka. mirror mode) into csup. This means csup can nowlulf2009-01-051-1/+5
|\ | | | | | | | | | | fetch a complete CVS repository. Support for rsync update of regular files are also included, but are not yet enabled. The change should not have an impact on existing csup usage, as little of the existing code has changed.
| * - Add missing rsyncfile from Makefilelulf2008-11-231-1/+2
| |
| * - Import csup work from p4.lulf2008-10-191-0/+3
| |
| * - Import the Makefile from HEAD for building csup.lulf2008-10-191-0/+36
| |\
| * | - Import the HEAD csup code which is the basis for the cvsmode work.lulf2008-10-191476-351849/+0
| |/
* | + Add the -Q be-quiet flag for parallel jobs.obrien2009-01-035-24/+29
| | | | | | | | | | - Enable -Q by default for the moment - there is something weird going on in the rescue build.
OpenPOWER on IntegriCloud