summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* MFC: r197542:imp2010-04-011-1/+4
| | | | | | | | | | - When we run our trap cleanup handler, echo that we are running this handler to make it more clear why we are 'suddenly' running df, umount, and mdconfig. - Remove trap handler again after we have unconfigured the memory device etc. Before we could end up running the trap handler if a later stage failed, which was a bit confusing and not really useful. MFC after: 2 weeks
* MFC r205702:delphij2010-03-292-12/+0
| | | | | | | | | | | Remove GNU cpio after fix of CVE-2010-0624. Note that this is actually a no-op for most users, as this GNU cpio was broken on -HEAD and 8-STABLE since last March until the recent fix. FreeBSD 8.0+ uses BSD cpio by default and the code is being actively maintained.
* MFC r196607,r198453,r204016,r204017,r204836,r204842,r205105,r205153jilles2010-03-2810-0/+326
| | | | | | | Various testcases that work correctly with stable/8 sh. Note: this creates some gaps in the numbering due to lower-numbered tests for new functionality which is not or not yet MFC'ed.
* MFC r205225:kib2010-03-195-17/+37
| | | | Add missing headers. While there, arrange headers alphabetically.
* MFC r205224:kib2010-03-191-0/+3
| | | | Add missing headers.
* MFC r205148:kib2010-03-171-4/+8
| | | | Make it compile on LP64 arches.
* MFC: r202969: Actualize.ru2010-02-151-2/+5
|
* Merge r202161 from head:gavin2010-02-051-3/+3
| | | | | | | Spell "Hz" correctly wherever it is user-visible. PR: bin/142566 Submitted by: N.J. Mann njm njm.me.uk
* MFC r201048:trasz2010-01-311-44/+197
| | | | | Make tests for ACL preservation by mv(1) and cp(1) more complete and easier to follow.
* MFC r197436:trasz2010-01-313-1/+289
| | | | Add cross-filesystem regression tests for ACLs.
* MFC r197434:trasz2010-01-311-0/+225
| | | | | Add ACL fuzzer. It's not used by the regression tests right now, but I'd prefert to have it here, so it won't get lost.
* MFC r196938:trasz2010-01-314-26/+1013
| | | | | Add regression tests for NFSv4 ACLs and update POSIX.1e tests to the changed error messages.
* MFC r196736:trasz2010-01-311-2/+1
| | | | Adapt to the fact that ls(1) correctly prints '+' for symlinks with ACLs now.
* MFC r196710:trasz2010-01-311-0/+16
| | | | | Add regression test for ACLs on device files - mostly to make sure we don't crash on attempt to set ACL on them.
* MFC r201145 to stable/8:antoine2010-01-301-1/+1
| | | | | | | | | (S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument. Fix some wrong usages. Note: this does not affect generated binaries as this argument is not used. PR: 137213 Submitted by: Eygene Ryabinkin (initial version)
* MFC r201350:brooks2010-01-221-109/+0
| | | | | | | | The devices that supported EVFILT_NETDEV kqueue filters were removed in r195175. Remove all definitions, documentation, and usage. The change of function signature for vlan_link_state() was not merged to maintain the ABI.
* MFC r210428: sh: Add a regression test that tries out all arithmetic ops.jilles2010-01-101-0/+76
| | | | | | The gaps in the numbering sequence cannot really be avoided, as HEAD changes are not necessarily merged in the same order as they are made (if they are merged at all).
* MFC r198406: wordexp(3): fix some bugs with signals and long outputsjilles2009-12-061-0/+42
| | | | | | | | | | | * retry various system calls on EINTR * retry the rest after a short read (common if there is more than about 1K of output) * block SIGCHLD like system(3) does (note that this does not and cannot work fully in threaded programs, they will need to be careful with wait functions) PR: 90580
* MFC r196511:netchild2009-11-0519-93/+63
| | | | | | | | | | | | | | | | | | | | | | | | | - Update config to doxygen 1.5.2 (I use this with 1.5.9). - Add linprocfs and linsysfs to the linuxulator dox. - Take the generated includes from the .m files from a subdirectory instead of putting everything into $(.OBJDIR). This imporves the human readbility of the source directory contents a lot, if you do not create a separate OBJDIR. - Assume UTF-8 encoding for every input file. - Strip the source and dest path from the output, we are not interested in the absolute location on the machine where the docs are created, relative the the root of the FreeBSD source is what interests us. - Exclude .svn directories. - Switch to alphabetic index. - Use one line per INCLUDE_PATH member in the common dox-config. - Bump the __FreeBSD__ version to 9. [here in the MFC: to 8] - Switch from hardcoded .m files to an run-time generated one. Takes a little bit more time to get started with actual work, but at least is more future-proof. If you generate dox for all subsystems, the time to find all .m files in the source is magnitutes lower than producing the docs. - Make the *DEST_PATH overidable from the environment. This allows to produce the output directly in the docroot of a webserver. - Fix the path when telling the user where he can find the API docs.
* MFC r196483,r196634:jilles2009-10-112-0/+15
| | | | | | | | | | | sh: Fix crash when undefining or redefining a currently executing function Add a reference count to function definitions. Memory may leak if a SIGINT arrives in interactive mode at exactly the wrong time, this will be fixed later by changing SIGINT handling. PR: bin/137640 Approved by: re (kib)
* MFC r196460jilles2009-09-012-2/+205
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the conformance of poll(2) for sockets after r195423 by returning POLLHUP instead of POLLIN for several cases. Now, the tools/regression/poll results for FreeBSD are closer to that of the Solaris and Linux. Also, improve the POSIX conformance by explicitely clearing POLLOUT when POLLHUP is reported in pollscan(), making the fix global. Submitted by: bde Reviewed by: rwatson MFC r196556 Fix poll() on half-closed sockets, while retaining POLLHUP for fifos. This reverts part of r196460, so that sockets only return POLLHUP if both directions are closed/error. Fifos get POLLHUP by closing the unused direction immediately after creating the sockets. The tools/regression/poll/*poll.c tests now pass except for two other things: - if POLLHUP is returned, POLLIN is always returned as well instead of only when there is data left in the buffer to be read - fifo old/new reader distinction does not work the way POSIX specs it Reviewed by: kib, bde MFC r196554 Add some tests for poll(2)/shutdown(2) interaction. Approved by: re (kensmith)
* MFC r196421:zec2009-08-211-4/+2
| | | | | | | | | | | | | Bugfix: all requests for creating vnets via vimage -c were always reported as failures, even if the actual library / system call would succeed, because error message would be reported if the return value from jail_setv() call was >= 0, and if not, then if that same value was < 0, i.e. always. The correct behavior is to abort (only) if jail_setv() returns < 0. Approved by: re (rwatson), julian (mentor) Approved by: re (rwatson)
* MFC r196409:zec2009-08-203-175/+399
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vimage(8) is a legacy CLI interface for managing jails associated with network stack instances, which is provided for compatibility with older applications. This change brings it back to life in a followup to the initial conversion of vimage to use the new jail(4) userland-kernel API: - when creating vimages via "vimage -c", by default turn on a few options expected by legacy applications, such as allow operations on raw sockets, FS mounts etc, and allow jail-related parameters to be optionally configured. - introduce the "-m" modifier which allows for configuring jail parameters of existing vimages / vnet-jails. - make "vimage name command ..." actually work. - when reassigning ifnets to vnets using "vimage -i", attempt to rename the ifnet as "ethXXX" on arrival in the target vnet. Several legacy applications are known to depend heavily on such behavior. - vimage -l lists only jails associated with vnets. The output is sorted using vimage / jail names as keys. - vimage -l by default searches only the current level in the jail hierarchy. Recursive listing can be requested via -r switch. - vimage -l by default prints only jail names on each line, making such output suitable for pipelining to other commands. More verbose output can be obtained via -v switch, and even more jail specific information will be displayed if -j switch is turned on. - there's no need to build vimage as statically linked, so update the Makefile accordingly. - update the vimage.8 man page. Approved by: re (rwatson), julian (mentor) Approved by: re (rwatson)
* MFC r196172:bz2009-08-134-7/+40
| | | | | | | | | | | | | | | | | Start respecting WITHOUT_INET6. Make regression/priv compile again after the multi-IP jail changes. Note that we are still using the legacy jail(2) rather than the jail_set(2)/jail(3) syscall. Add an IPv4, and an IPv6 loopback address in case we compile with INET6 enabled. Make the priv_vfs_extattr_system compile on amd64 as well using the proper length modifier to printf(3) for ssize_t. Reviewed by: rwatson Approved by: re (kib)
* Fix syntax error, makefile comments start with #.kib2009-07-251-1/+1
| | | | | Submitted by: bde Approved by: re (kensmith)
* Update for vaps:sam2009-07-249-114/+32
| | | | | | | | | o do not force monitor mode; the wlanX ifnet must be an ahdemo mode vap o move channel change work before marking ifnet up to avoid churning the state machine o change default ifnet name to "wlan0" Approved by: re (kensmith)
* update for recent mesh additionssam2009-07-211-1/+17
| | | | Approved by: re (kib)
* Remove the interim vimage containers, struct vimage and struct procg,jamie2009-07-172-62/+94
| | | | | | and the ioctl-based interface that supported them. Approved by: re (kib), bz (mentor)
* Test suite for the poll(2)/select(2) on fifos, pipes and sockets,kib2009-07-1214-0/+883
| | | | | | | and recorded results for several operating systems. Submitted by: bde Approved by: re (kensmith)
* Implementation of the upcoming Wireless Mesh standard, 802.11s, on therpaulo2009-07-1111-1/+252
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | net80211 wireless stack. This work is based on the March 2009 D3.0 draft standard. This standard is expected to become final next year. This includes two main net80211 modules, ieee80211_mesh.c which deals with peer link management, link metric calculation, routing table control and mesh configuration and ieee80211_hwmp.c which deals with the actually routing process on the mesh network. HWMP is the mandatory routing protocol on by the mesh standard, but others, such as RA-OLSR, can be implemented. Authentication and encryption are not implemented. There are several scripts under tools/tools/net80211/scripts that can be used to test different mesh network topologies and they also teach you how to setup a mesh vap (for the impatient: ifconfig wlan0 create wlandev ... wlanmode mesh). A new build option is available: IEEE80211_SUPPORT_MESH and it's enabled by default on GENERIC kernels for i386, amd64, sparc64 and pc98. Drivers that support mesh networks right now are: ath, ral and mwl. More information at: http://wiki.freebsd.org/WifiMesh Please note that this work is experimental. Also, please note that bridging a mesh vap with another network interface is not yet supported. Many thanks to the FreeBSD Foundation for sponsoring this project and to Sam Leffler for his support. Also, I would like to thank Gateworks Corporation for sending me a Cambria board which was used during the development of this project. Reviewed by: sam Approved by: re (kensmith) Obtained from: projects/mesh11s
* Fix some uninitialise variables.brian2009-07-082-1/+102
| | | | | | | PR: 136383 Submitted by: Ulrich Spoerlein - uqs at spoerlein dot net Approved by: re (kib) MFC after: 3 weeks
* Fix fpathconf(3) on fifos, in effect making ls(1) properlytrasz2009-07-021-0/+34
| | | | | | | | | display '+' on them. Taken from kern/125613, with cosmetic changes. PR: kern/125613 Submitted by: Jaakko Heinonen <jh at saunalahti dot fi> Approved by: re (kib)
* Add some tests for r194975 and r194977.jilles2009-06-251-0/+35
| | | | Approved by: ed (mentor) (implicit)
* - Make pprint print through fd 3, so it can be used in customisationn_hibma2009-06-251-1/+6
| | | | | | | functions to print something to the screen. - Prefix each line with the running time (bikeshed). Submitted by: Rick van der Zwet (Wireless Leiden)
* Designate special builtins as such in command -V and type.jilles2009-06-241-1/+1
| | | | | | Also document various properties of special builtins that we implement. Approved by: ed (mentor) (implicit)
* Add test for r190698.jilles2009-06-241-0/+7
| | | | | Submitted by: Eygene Ryabinkin Approved by: ed (mentor) (implicit)
* add a link named athpeek since my fingers keep typing itsam2009-06-241-0/+1
|
* read back the written value and displaysam2009-06-241-2/+1
|
* Add libjail, a (somewhat) simpler interface to the jail_set and jail_getjamie2009-06-241-0/+1
| | | | | | system calls and the security.jail.param sysctls. Approved by: bz (mentor)
* Add tests for r194774.jilles2009-06-231-0/+9
| | | | Approved by: ed (mentor) (implicit)
* Add architecture support for TinyBSDremko2009-06-201-2/+4
| | | | | | | | PR: 135301 Submitted by: Olivier Cochard-Labbe <olivier at cochard dot me> Reviewed by: Jean Milanez Melo <jmelo at freebsdbrasil dot com dot br> (maintainer) Approved by: imp (mentor, implicit) MFC after: 1 week
* Up the scale of the SPX loopback check a bit: use much larger data sizesrwatson2009-06-201-59/+38
| | | | so that we need to do segmentation.
* Add tests for r194406 and r194516.jilles2009-06-192-0/+56
| | | | Approved by: ed (mentor)
* - Don't hard code _.disk.full. Use the variable.n_hibma2009-06-181-3/+2
| | | | | - _.bk should be created in MAKEOBJDIRPREFIX as well - Remove a misplaced and unnecessary message.
* Reverse some stuff I accidentally committed in the previous commit:n_hibma2009-06-181-5/+5
| | | | | | | | - creation of sparse files to speed up the build process. This was discussed with phk 2 years ago and he disagreed with this change. - handling of negative data partition sizes. Can I have the ... green pointy hat, please?
* Allow building world into a separate dir (for reuse in multiple images):n_hibma2009-06-181-63/+62
| | | | | | | | | | | | | | | | | | | - buildworld and buildkernel are built into MAKEOBJDIRPREFIX - installworld and installkernel are performed on NANO_OBJ. No change of functionality if MAKEOBJDIRPREFIX is not set. If it is sea,t clean_world deletes NANO_OBJ instead of NANO_WORLDDIR. By starting nanobsd.sh with the -b option the existing world can be reused to build a new world reducing time and disk space considerably. While there: - Fix two cases where (in comments) MAKEOBJDIRPREFIX should have been NANO_DISKIMGDIR. - Simplify an 'if (not wrong); then true; else action; fi' into 'if wrong; then action; fi'. 'if ! false; then echo hello; fi' produces hello. Note: Make sure you use NANO_OBJ were you use MAKEOBJDIRPREFIX now in your nanobsd.conf files if you want to split out.
* update usb config; the old stack is gonesam2009-06-171-11/+12
|
* When copy+paste goes wrong... Remove duplicate "expr".edwin2009-06-171-1/+1
| | | | Submitted by: danfe@
* iiin -> inedwin2009-06-161-1/+1
| | | | Submitted by: "N.J. Mann" <njm@njm.me.uk>
* Fix NanoBSD when the data partition size is defined as a negativeedwin2009-06-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | number. It is possible to ask nanobsd.sh to create a 'data' partition, separate from the system or configuration partitions, and furthermore, by specifying a negative value for its size to request that it use all space unused by those partitions for its own size. Because the two lines of code that calculate how much space is available for this data partition are written in perl-like syntax, the awk code that does the processing performs the calculation incorrectly. [note - this was already fixed by r174936] Furthermore, a comparison later down fails to newfs the partition when the size is negative. PR: misc/127759 Submitted by: Cyrus Rahman <crahman@gmail.com> MFC after: 1 week
OpenPOWER on IntegriCloud