Commit Graph

1680 Commits

Author SHA1 Message Date
edwin
a2de12ba1a Support for 64 Mb Kodak flash device.
PR:		misc/115025
Submitted by:	Michael W Lucas <mwlucas@freebsd.org>
MFC after:	1 week
2009-06-16 12:09:12 +00:00
edwin
cb9dbdea94 Add support for 256MB Hitachi CF card and 256MB Silicon Systems CF card
This patch against RELENG_6 adds two more entries to
	src/tools/tools/nanobsd/FlashDevice.sub - one for a 256MB
	Hitachi CF card and one for a 256MB Silicon Systems CF card.

	Both entries have been verified to work with a Soekris net4801.

PR:		kern/101228
Submitted by:	Henrik Brix Andersen <henrik@brixandersen.dk>
MFC after:	1 week
2009-06-16 12:05:04 +00:00
jhb
447d980cd0 Add a new 'void closefrom(int lowfd)' system call. When called, it closes
any open file descriptors >= 'lowfd'.  It is largely identical to the same
function on other operating systems such as Solaris, DFly, NetBSD, and
OpenBSD.  One difference from other *BSD is that this closefrom() does not
fail with any errors.  In practice, while the manpages for NetBSD and
OpenBSD claim that they return EINTR, they ignore internal errors from
close() and never return EINTR.  DFly does return EINTR, but for the common
use case (closing fd's prior to execve()), the caller really wants all
fd's closed and returning EINTR just forces callers to call closefrom() in
a loop until it stops failing.

Note that this implementation of closefrom(2) does not make any effort to
resolve userland races with open(2) in other threads.  As such, it is not
multithread safe.

Submitted by:	rwatson (initial version)
Reviewed by:	rwatson
MFC after:	2 weeks
2009-06-15 20:38:55 +00:00
jilles
52854b093c Add tests for r194127 and r194128.
Approved by:	ed (mentor)
2009-06-14 16:21:51 +00:00
edwin
43ae9ac838 Instead of only being able to compare two terminal definitions, now
also be able to print information about...

- length of the terminal capabilties
- dump of one terminal definition
- relationship overview for a terminal definition
2009-06-14 13:46:32 +00:00
edwin
936e5ad292 Rename since it has will have more capabilities than just comparing of
two termcap entries.
2009-06-14 13:43:07 +00:00
edwin
ced97f72d0 Tool to compare two (roughly similar) termcap entries (like rxvt-mono
and rxvt-unicode) so see which fields should don't need to be copied
if the :tc=xxx: option is used.
2009-06-14 03:29:14 +00:00
des
7758932884 Check that flopen() can lock against self and that children inherit the lock. 2009-06-06 19:07:15 +00:00
edwin
4c418262b6 pciconf(8) removes characters after an #, therefor remove them.
Also remove \s used to escape 's.
2009-06-06 13:33:11 +00:00
edwin
e5e9b76fa9 When trying to see if we could update the share/misc/pci_vendors,
I found out that the input format of the Boemler list was different
than what the code expected: The last two fields were interpreted
as one. Checking the csv version of the list it showed that there
was sometimes a chipset number in the column before the card
description.

This is a rewrite to use the CSV format of the Boemler list. The
output is differently formatted: Instead of the "chip description",
it is now "description (chip)"
2009-06-06 12:53:54 +00:00
zec
3a60a01f36 Add an interim userland utility for managing vimages / virtualized
network stack infrastructure.

Requested by:	julian (mentor)
Approved by:	julian (mentor)
2009-06-06 12:50:10 +00:00
pjd
f0fa176da8 lchflags(2) takes int, not u_long like chflags(2) and fchflags(2).
Strange, isn't it?

Pointed out by:	bde
2009-06-03 09:24:58 +00:00
dougb
ec14ac76ed Add support for the build options that are currently in the port:
WITH_BIND_IDN
	WITH_BIND_LARGE_FILE
	WITH_BIND_SIGCHASE
	WITH_BIND_XML
2009-06-01 21:58:59 +00:00
sam
7844befc0c tools for mwl driver 2009-06-01 18:27:16 +00:00
stefanf
3d7ca7e192 Add tests for r193169. 2009-05-31 17:23:27 +00:00
zml
687197c439 Add a regression test for multiple threads of the same process acquiring the same fcntl lock.
Approved by:        dfr (mentor)
2009-05-28 02:39:07 +00:00
des
5df7c0e4ae Increment the counter outside the subshell. 2009-05-27 15:15:58 +00:00
edwin
be5a4879e2 Add the regression test for bin/date. 2009-05-27 12:31:55 +00:00
des
6cf142b7b4 Add a regression test for kern/21768.
MFC after:	1 week
2009-05-26 20:13:06 +00:00
attilio
4af1dcdee0 Use, in uncovered part, the END() macro in order to improve debugging.
In this specific case, Valgrind won't get confused when analyzing such
functions.

Sponsored by:	Sandvine Incorporated
Tested by:	emaste
MFC:		3 days
2009-05-25 14:37:10 +00:00
brian
83ffdaf9f5 Regression test the 'addr1,+N' feature added in r192732 2009-05-25 06:58:42 +00:00
sam
40574d258a add npe tools 2009-05-23 19:17:05 +00:00
sam
f05be68fc6 add npe tools; first is npestats which reports device statistics 2009-05-23 19:16:34 +00:00
edwin
f3f589b8b2 Added two tools to check the contents of /usr/share/misc/iso* with
the data from the sources.

PR:		misc/127430 and misc/misc/127428
2009-05-23 09:01:30 +00:00
edwin
91a54071df Add regression tests for the date(1) + argument for user-defined
format strings.

PR:		bin/127514
Submitted by:	edwin@
MFC after:	1 week
2009-05-20 22:01:43 +00:00
sam
c6c2784575 fix typo 2009-05-18 18:12:45 +00:00
phk
293f0e00a8 A script for plucking packages and their runtime dependencies for
nanobsd images.
2009-04-19 18:23:23 +00:00
sam
55e55d53bc Cleanups to prepare this code for wider use (likely merged into hostapd):
o add (required) cmd line args to specify the set of ifnet's to monitor
  for WDS discovery msgs; "any" is a wildcard
o change the default script run on wds vap create to the "null script"
o auto-daemonize; add -f option to force foreground operation
o add -P option for integration with rc.d (implementation missing, tba)
o use syslog; default to log up to LOG_INFO, -t (terse) gives you up to
  LOG_ERR, and -v (verbose) gives you up to LOG_DEBUG
o scan for existing vaps on startup to recover existing state
o correct some types
2009-04-18 16:14:03 +00:00
sam
11a3309327 allow NANO_CFGDIR to be overridden 2009-04-18 15:59:09 +00:00
sam
95a1b4c664 no more need for -p option to wlanwds; it knows how to find the parent now 2009-04-15 22:11:04 +00:00
sam
4816b62a4d o remove the -p option; use the %parent pointer sysctl to find the parent ifnet
o remove the -b option; users can just embed the bridge ifnet in the script
o add -j option to create wds vaps on join/rejoin ops
2009-04-15 22:10:33 +00:00
sam
a72478d02d switch usb setup to usb2; it still doesn't work right but the
old stuff is now removed and we want this to build
2009-04-13 21:04:53 +00:00
sam
f571196708 catch up with removal of ATH_SUPPORT_TDMA 2009-04-13 21:03:21 +00:00
stefanf
e2e8e48cde Add a test for r191009. 2009-04-13 19:12:28 +00:00
trasz
d9f1442b41 Add a few more regression tests for POSIX.1e ACLs. 2009-04-13 13:51:53 +00:00
das
fb819f095f Return -1 instead of 0 upon reaching EOF. This is somewhat ill-advised
because it means getdelim() returns -1 for both error and EOF, and
never returns 0. However, this is what the original GNU	implementation
does, and POSIX inherited the bug.

Reported by:	marcus@
2009-04-06 13:50:04 +00:00
ed
36d960175a Remove if_ppp(4) and if_sl(4).
Not only did these two drivers depend on IFF_NEEDSGIANT, they were
broken 7 months ago during the MPSAFE TTY import. if_ppp(4) has been
replaced by ppp(8). There is no replacement for if_sl(4).

If we see regressions in for example the ports tree, we should just use
__FreeBSD_version 800045 to check whether if_ppp(4) and if_sl(4) are
present. Version 800045 is used to denote the import of MPSAFE TTY.

Discussed with: rwatson, but also rwatson's IFF_NEEDSGIANT emails on the
                lists.
2009-04-05 22:08:18 +00:00
phk
2b792acee4 Remember to clear the ports list before generation for prefetch 2009-04-05 20:59:26 +00:00
stefanf
106f32b27d Test the r190298 change. 2009-03-22 23:00:52 +00:00
stefanf
79a3bf3a75 Add a few tests for the read built-in. 2009-03-22 22:14:46 +00:00
stefanf
39c3581548 Update test for r190284. 2009-03-22 21:12:00 +00:00
stefanf
62671f061c Update and extend the tests for alias. 2009-03-22 17:22:14 +00:00
phk
30b31b3e4e Wrap a long line.
Save a copy of the CONFIGFILES before we spam them.
2009-03-21 19:09:33 +00:00
thompsa
11f8f68779 Remove the uscanner(4) driver, this follows the removal of the kernel scanner
driver in Linux 2.6. uscanner was just a simple wrapper around a fifo and
contained no logic, the default interface is now libusb (supported by sane).

Reviewed by:	HPS
2009-03-19 20:33:26 +00:00
pjd
8e6c20cc53 Oops. Correct comment in the LICENSE file. 2009-03-14 21:59:12 +00:00
pjd
7b829d245e Regression tests for mac_portacl(4). 2009-03-14 21:54:19 +00:00
rdivacky
4cd01fc223 Switch over to gnu99 compilation on default for userland.
Tested by:	make universe
Tested by:	ports exp build (done by pav)
Reviewed by:	ru
Reviewed by:	silence on arch
Approved by:	ed (mentor)
2009-03-14 17:55:16 +00:00
sam
5b6ba969de add more register bit defs 2009-03-12 00:03:55 +00:00
sam
8f0aa78773 move shared register support code to common 2009-03-11 17:46:01 +00:00
sam
79e7717a17 add athpoke, a tool to peek/poke registers 2009-03-11 17:41:46 +00:00