summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Merge r206972 from head to stable/8:Robert Watson2010-06-012-13/+39
| | | | | | | | | | | | | | | | | | | | | | Merge @176820, @176822, @177156 to tcpp from P4 to HEAD: Improve accuracy of connection data transfer math. Disable Nagle's algorithm to avoid delaying transfers of data -- will want to refine this to combine payload with header transfer, however. Now that we're running w/o Nagle, try to send the initial data burst with the header in a single TCP segment. Prefer %zu to %ju for size_t. Sponsored by: Juniper, Inc. Approved by: re (bz) Notes: svn path=/stable/8/; revision=208701
* MFC: r208322Jung-uk Kim2010-05-251-0/+9
| | | | | | | | | Add an option file for WITHOUT_MAN_UTILS to regenerate src.conf(5). Approved by: re (kib) Notes: svn path=/stable/8/; revision=208547
* MFC: r201490Marius Strobl2010-05-211-1/+1
| | | | | | | There are actually 129 tests here. Notes: svn path=/stable/8/; revision=208404
* MFC: r197362Marius Strobl2010-05-213-0/+6
| | | | | | | | | | | | | | | | | | IEEE Std 1003.1, 2004 Edition states: "The escape sequence '\n' shall match a <newline> embedded in the pattern space." It is unclear whether this also applies to a \n embedded in a character class. Disable the existing handling of \n in a character class following Mac OS X, GNU sed version 4.1.5 with --posix, and SunOS 5.10 /usr/bin/sed. Pointed by: Marius Strobl Obtained from: Mac OS X Notes: svn path=/stable/8/; revision=208403
* MFC: r197361Marius Strobl2010-05-212-0/+5
| | | | | | | | | | | | | | | Follow POSIX (IEEE Std 1003.1, 2004 Edition) in the implementation of the y (translate) command. "If a backslash character is immediately followed by a backslash character in string1 or string2, the two backslash characters shall be counted as a single literal backslash character" Pointed by: Marius Strobl Obtained from: Mac OS X Notes: svn path=/stable/8/; revision=208402
* MFC: r197360Marius Strobl2010-05-213-0/+42
| | | | | | | Add correct test results. Notes: svn path=/stable/8/; revision=208400
* MFC: r197357Marius Strobl2010-05-211-1/+5
| | | | | | | Describe how other systems treat this case. Notes: svn path=/stable/8/; revision=208398
* MFC: r197356Marius Strobl2010-05-211-0/+9
| | | | | | | | | | Allow [ to be used as a delimiter. Pointed by: Marius Strobl Obtained from: Apple Notes: svn path=/stable/8/; revision=208397
* MFC: r197352Marius Strobl2010-05-21124-9/+7
| | | | | | | | | | The transition to Subversion allows us to rename files without repo-copy hacks. Remove the test-number prefix from the name of the output files, so that new test cases can be easily added. Notes: svn path=/stable/8/; revision=208395
* Merge r199628 and r199632: Tests for the cd command.Stefan Farfeleder2010-05-212-12/+37
| | | | Notes: svn path=/stable/8/; revision=208380
* MFC r207944: sh: Fix pathname expansion with quoted slashes like *\/.Jilles Tjoelker2010-05-161-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are git commits 36f0fa8fcbc8c7b2b194addd29100fb40e73e4e9 and d6d06ff5c2ea0fa44becc5ef4340e5f2f15073e4 in dash. Because this is the first code I'm importing from dash to expand.c, add the Herbert Xu copyright notice which is in dash's expand.c. When pathname expanding *\/, the CTLESC representing the quoted state was erroneously taken as part of the * pathname component. This CTLESC was then seen by the pattern matching code as escaping the '\0' terminating the string. The code is slightly different because dash converts the CTLESC characters to backslashes and removes all the other CTL* characters to allow substituting glob(3). The effect of the bug was also slightly different from dash (where nothing matched at all). Because a CTLESC can escape a '\0' in some way, whether files were included despite the bug depended on memory that should not be read. In particular, on many machines /*\/ expanded to a strict subset of what /*/ expanded to. Example: echo /*"/null" This should print /dev/null, not /*/null. PR: bin/146378 Obtained from: dash Notes: svn path=/stable/8/; revision=208174
* MFC r207935: sh: Add some simple testcases for pathname expansion.Jilles Tjoelker2010-05-151-0/+61
| | | | Notes: svn path=/stable/8/; revision=208113
* MFC r207821: Generate some tests for sh's case commandJilles Tjoelker2010-05-154-1/+256
| | | | | | | | | | from the fnmatch tests. I'm committing the generated files because I don't like a build dependency for the sh(1) tests, and they are small and will not change much. Notes: svn path=/stable/8/; revision=208112
* MFC r206143,r206148,r206149,r206167,r206491,r206817,r207127,r207824Jilles Tjoelker2010-05-139-0/+315
| | | | | | | Various testcases that work correctly with stable/8 sh. Notes: svn path=/stable/8/; revision=208037
* MFC: r207151Marius Strobl2010-05-0241-0/+18426
| | | | | | | | | | | | | | | | Add a TestFloat based test suite for floating-point implementations currently supporting sparc64. After a `make depend all` there are three programs; testsoftfloat for testing against the SoftFloat in src/lib/libc/softfloat for reference purposes, testemufloat for testing the emulator source in src/lib/libc/sparc64/fpu and testfloat for testing with the installed libc. Support for other architectures can be added as needed. PR: 144900 Submitted by: Peter Jeremy Notes: svn path=/stable/8/; revision=207528
* MFC r206711: fnmatch: Fix bad FNM_PERIOD disablingJilles Tjoelker2010-04-231-0/+1
| | | | | | | | | | | if an asterisk has been seen. Example: fnmatch("a*b/*", "abbb/.x", FNM_PATHNAME | FNM_PERIOD) PR: 116074 Notes: svn path=/stable/8/; revision=207129
* MFC r206710: Add some tests for fnmatch(3).Jilles Tjoelker2010-04-232-1/+336
| | | | Notes: svn path=/stable/8/; revision=207128
* MFC r203576,r203677: sh: Don't stat() $MAIL/$MAILPATH if not interactive.Jilles Tjoelker2010-04-202-0/+30
| | | | | | | | These may be NFS mounted, and we should not touch them unless we are going to do something useful with the information. Notes: svn path=/stable/8/; revision=206950
* MFC r199282: sh: Allow a newline before "in" in a for command,Jilles Tjoelker2010-04-201-0/+29
| | | | | | | as required by POSIX. Notes: svn path=/stable/8/; revision=206942
* MFC r200811:Edward Tomasz Napierala2010-04-181-0/+86
| | | | | | | Add regression test for NFSv4 ACLs on UFS. Notes: svn path=/stable/8/; revision=206805
* MFC: 205994Warner Losh2010-04-131-15/+2
| | | | | | | | | | | | | | | Two fixes: (1) We don't need a custom install_kernel. We can install without symbols by adding INSTALL_NODEBUG (which likely should be WITHOUT_KERNEL_SYMBOLS_FILE, or something shorter) to CONF_INSTALL (2) for make buildenv stage, use NANO_MAKE_CONF_BUILD rather than the non-existant NANO_MAKE_CONF. MFC after: 7 days Notes: svn path=/stable/8/; revision=206539
* MFC 205980:Warner Losh2010-04-131-1/+9
| | | | | | | | | | | | | | | Stop hard coding i386 as the arch for the build. Instead, default to the processor we're running on. Also, supply amd64 version of create_diskimage that's the same as i386's. # didn't fix the confusion between using the processor for this and using # the machine (which would be more appropriate). NANO_ARCH smashes the two # together right now. MFC after: 7 days Notes: svn path=/stable/8/; revision=206537
* MFC: r197542:Warner Losh2010-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 Notes: svn path=/stable/8/; revision=206030
* MFC r205702:Xin LI2010-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. Notes: svn path=/stable/8/; revision=205848
* MFC r196607,r198453,r204016,r204017,r204836,r204842,r205105,r205153Jilles Tjoelker2010-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. Notes: svn path=/stable/8/; revision=205800
* MFC r205225:Konstantin Belousov2010-03-195-17/+37
| | | | | | | Add missing headers. While there, arrange headers alphabetically. Notes: svn path=/stable/8/; revision=205315
* MFC r205224:Konstantin Belousov2010-03-191-0/+3
| | | | | | | Add missing headers. Notes: svn path=/stable/8/; revision=205314
* MFC r205148:Konstantin Belousov2010-03-171-4/+8
| | | | | | | Make it compile on LP64 arches. Notes: svn path=/stable/8/; revision=205249
* MFC: r202969: Actualize.Ruslan Ermilov2010-02-151-2/+5
| | | | Notes: svn path=/stable/8/; revision=203914
* Merge r202161 from head:Gavin Atkinson2010-02-051-3/+3
| | | | | | | | | | Spell "Hz" correctly wherever it is user-visible. PR: bin/142566 Submitted by: N.J. Mann njm njm.me.uk Notes: svn path=/stable/8/; revision=203515
* MFC r201048:Edward Tomasz Napierala2010-01-311-44/+197
| | | | | | | | Make tests for ACL preservation by mv(1) and cp(1) more complete and easier to follow. Notes: svn path=/stable/8/; revision=203270
* MFC r197436:Edward Tomasz Napierala2010-01-313-1/+289
| | | | | | | Add cross-filesystem regression tests for ACLs. Notes: svn path=/stable/8/; revision=203269
* MFC r197434:Edward Tomasz Napierala2010-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. Notes: svn path=/stable/8/; revision=203268
* MFC r196938:Edward Tomasz Napierala2010-01-314-26/+1013
| | | | | | | | Add regression tests for NFSv4 ACLs and update POSIX.1e tests to the changed error messages. Notes: svn path=/stable/8/; revision=203267
* MFC r196736:Edward Tomasz Napierala2010-01-311-2/+1
| | | | | | | Adapt to the fact that ls(1) correctly prints '+' for symlinks with ACLs now. Notes: svn path=/stable/8/; revision=203266
* MFC r196710:Edward Tomasz Napierala2010-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. Notes: svn path=/stable/8/; revision=203265
* MFC r201145 to stable/8:Antoine Brodin2010-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) Notes: svn path=/stable/8/; revision=203184
* MFC r201350:Brooks Davis2010-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. Notes: svn path=/stable/8/; revision=202823
* MFC r210428: sh: Add a regression test that tries out all arithmetic ops.Jilles Tjoelker2010-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). Notes: svn path=/stable/8/; revision=202017
* MFC r198406: wordexp(3): fix some bugs with signals and long outputsJilles Tjoelker2009-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 Notes: svn path=/stable/8/; revision=200189
* MFC r196511:Alexander Leidinger2009-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. Notes: svn path=/stable/8/; revision=198946
* MFC r196483,r196634:Jilles Tjoelker2009-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) Notes: svn path=/stable/8/; revision=197959
* MFC r196460Jilles Tjoelker2009-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) Notes: svn path=/stable/8/; revision=196741
* MFC r196421:Marko 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) Notes: svn path=/stable/8/; revision=196422
* MFC r196409:Marko 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) Notes: svn path=/stable/8/; revision=196411
* MFC r196172:Bjoern A. Zeeb2009-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) Notes: svn path=/stable/8/; revision=196173
* Fix syntax error, makefile comments start with #.Konstantin Belousov2009-07-251-1/+1
| | | | | | | | Submitted by: bde Approved by: re (kensmith) Notes: svn path=/head/; revision=195878
* Update for vaps:Sam Leffler2009-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) Notes: svn path=/head/; revision=195848
* update for recent mesh additionsSam Leffler2009-07-211-1/+17
| | | | | | | Approved by: re (kib) Notes: svn path=/head/; revision=195811
* Remove the interim vimage containers, struct vimage and struct procg,Jamie Gritton2009-07-172-62/+94
| | | | | | | | | and the ioctl-based interface that supported them. Approved by: re (kib), bz (mentor) Notes: svn path=/head/; revision=195741