aboutsummaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* sh: Add test for bin/12137.Jilles Tjoelker2011-04-151-0/+27
| | | | Notes: svn path=/head/; revision=220656
* sh: Add test for obscure and ambiguous ${#?}.Jilles Tjoelker2011-04-151-0/+11
| | | | Notes: svn path=/head/; revision=220655
* sh: Add test for bin/56147.Jilles Tjoelker2011-04-151-0/+6
| | | | Notes: svn path=/head/; revision=220654
* Generate opt_ah.h now for all ath tools, a recent HAL change of mineAdrian Chadd2011-04-115-0/+44
| | | | | | | now requires it. Notes: svn path=/head/; revision=220534
* Regenerate after r220401. It turns out makeman is clever about impliedUlrich Spörlein2011-04-061-5/+1
| | | | | | | | | | flags, so remove that part from WITHOUT_CXX again. This is only partially regenerated, as the entries for FDT and GPIO seem to have switched their default state, too. Notes: svn path=/head/; revision=220402
* Complete WITHOUT_CXX support. It implies WITHOUT_GROFF andUlrich Spörlein2011-04-062-3/+577
| | | | | | | | | | | WITHOUT_CLANG. Don't build clang bootstrap/build-tools depending on this flag. We also keep gperf, devd and libstdc++ around to prevent foot-shooting and to make this a two-way street. Notes: svn path=/head/; revision=220401
* Allow strerror(0) and strerror_r(0, ...).Jilles Tjoelker2011-04-051-8/+13
| | | | | | | | | | | | | | | | Of course, strerror_r() may still fail with ERANGE. Although the POSIX specification said this could fail with EINVAL and doing this likely indicates invalid use of errno, most other implementations permitted it, various POSIX testsuites require it to work (matching the older sys_errlist array) and apparently some applications depend on it. PR: standards/151316 MFC after: 1 week Notes: svn path=/head/; revision=220376
* * re-enable marker stuff, I accidentally disabled it during debuggingAdrian Chadd2011-04-051-4/+2
| | | | | | | * correct arg check Notes: svn path=/head/; revision=220366
* Flesh out a simple tool to print the ALQ dump generated by the HAL.Adrian Chadd2011-04-053-1/+126
| | | | Notes: svn path=/head/; revision=220364
* Use ${NANO_WORLDDIR}/var/empty as copy source since it has no schg flag set.Michael Reifenberger2011-03-281-2/+2
| | | | | | | | Copying over /var/empty's schg flag had unpleasant side effects (schg flag on /etc and /cfg) during nanobsd boot before. Notes: svn path=/head/; revision=220091
* Oops, fix badness i must've introduced earlier.Adrian Chadd2011-03-231-4/+4
| | | | Notes: svn path=/head/; revision=219901
* Add test for acl_is_trivial_np(3).Edward Tomasz Napierala2011-03-222-0/+151
| | | | Notes: svn path=/head/; revision=219877
* Delete all GPT partitions at once. (Suggested by Andrey V. Elsukov ↵Michael Reifenberger2011-03-212-4/+8
| | | | | | | | | <bu7cher@yandex.ru>) Fix amd64 merge script. Notes: svn path=/head/; revision=219823
* Add a file with some remarks for setting up a zfs boot environmentMichael Reifenberger2011-03-201-0/+35
| | | | Notes: svn path=/head/; revision=219799
* - Add script for preparing disks in GPT/ZFS boot environmentMichael Reifenberger2011-03-202-0/+64
| | | | | | | - Add merge script for integrating amd64 slice into i386 disk image Notes: svn path=/head/; revision=219798
* - Build disk image (for USB sticks) and iso imageMichael Reifenberger2011-03-183-11/+29
| | | | | | | | | | - Change name to reflect this - Install all kernel modules - Choose image size that i386 and amd64 can be combined into one image - Mount tmpfs over /boot/zfs for zpool imports Notes: svn path=/head/; revision=219760
* sh: Fix some parameter expansion variants ${#...}.Jilles Tjoelker2011-03-132-0/+21
| | | | | | | | | | | | These already worked: $# ${#} ${##} ${#-} ${#?} These now work as well: ${#+word} ${#-word} ${##word} ${#%word} There is an ambiguity in the standard with ${#?}: it could be the length of $? or it could be $# giving an error in the (impossible) case that it is not set. We continue to use the former interpretation as it seems more useful. Notes: svn path=/head/; revision=219623
* POSIX accepts only ELOOP if O_NOFOLLOW is specified and target is a symlink.Pawel Jakub Dawidek2011-03-131-5/+5
| | | | Notes: svn path=/head/; revision=219621
* sh: Add some tests for ${#parameter}.Jilles Tjoelker2011-03-133-0/+26
| | | | Notes: svn path=/head/; revision=219611
* Fix warnings and style(9) issues.Rebecca Cran2011-03-122-27/+33
| | | | | | | Set WARNS to 6. Notes: svn path=/head/; revision=219568
* Add some missing consts.Pawel Jakub Dawidek2011-03-121-4/+4
| | | | Notes: svn path=/head/; revision=219566
* Fix warnings and style(9) issues.Rebecca Cran2011-03-112-4/+6
| | | | | | | Set WARNS to 6. Notes: svn path=/head/; revision=219527
* Fix the build: we have snprintf(3).Rebecca Cran2011-03-111-0/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=219524
* Fix warnings and set WARNS to 6.Rebecca Cran2011-03-112-0/+5
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=219522
* Fix warnings and set WARNS to 6.Rebecca Cran2011-03-112-3/+5
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=219521
* mptable.h is now in include/x86.Rebecca Cran2011-03-111-1/+1
| | | | Notes: svn path=/head/; revision=219519
* Fix warnings and style(9) issues.Rebecca Cran2011-03-112-14/+16
| | | | | | | | | Set WARNS to 6. MFC after: 1 week Notes: svn path=/head/; revision=219511
* Add support for *at syscalls:Pawel Jakub Dawidek2011-03-101-25/+173
| | | | | | | | | | | | | | | | | - openat(2) - unlinkat(2) - mkdirat(2) - linkat(2) - symlinkat(2) - renameat(2) - mkfifoat(2) - mknodat(2) - fchmodat(2) - fchownat(2) - fstatat(2) Notes: svn path=/head/; revision=219464
* Improve test a bit, now that we have fstat(2) support.Pawel Jakub Dawidek2011-03-101-3/+9
| | | | | | | | | | | | The test was support to check if SUID/SGID bits are removed on first write, but actually we were checking if they were removed after close. Now we can check if SUID/SGID bits are gone after first write. While here add checks to see if when both SUID and SGID bits are set they are both cleared on first write. Notes: svn path=/head/; revision=219463
* Few initial ftruncate(2) tests. One of them covers stand/154873.Pawel Jakub Dawidek2011-03-091-0/+58
| | | | | | | PR: stand/154873 Notes: svn path=/head/; revision=219439
* Pass descriptor number to write(2), now that it is possible.Pawel Jakub Dawidek2011-03-092-4/+4
| | | | Notes: svn path=/head/; revision=219438
* Add support for the following syscalls:Pawel Jakub Dawidek2011-03-093-13/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - fchmod(2), - fchown(2), - fchflags(2), - fstat(2), - ftruncate(2), - fpathconf(2), - lpathconf(2). Make write(2) syscall to take descriptor instead of file name. We implement descriptors by keeping track of open files and allowing to reference them by the following syscalls. Because pjdfstest already supports executing multiple syscalls from one command it works pretty well. For example, the following command: pjdfstest open foo "O_CREAT,O_RDWR" 0 : open bar "O_CREAT,O_RDONLY" 640 : fchmod 0 0666 : fchown 0 -1 20 : fchmod 1 0444 is equivalent of (error checking omitted): int fd[2]; fd[0] = open("foo", O_CREAT | O_RDWR, 0); fd[1] = open("bar", O_CREAT | O_RDONLY, 0640); fchmod(fd[0], 0666); fchown(fd[0], -1, 20); fchmod(fd[1], 0444); Notes: svn path=/head/; revision=219437
* The regdomain entries are 16 bits, not 8. Print out all 16 bits.Adrian Chadd2011-03-092-2/+2
| | | | Notes: svn path=/head/; revision=219420
* Update to keep in sync with the HALAdrian Chadd2011-03-081-7/+5
| | | | Notes: svn path=/head/; revision=219398
* sh: Test that . /dev/null returns exit status 0 and does not preserve $?.Jilles Tjoelker2011-03-071-0/+10
| | | | | | | | | | Preserving $? may cause problems particularly if set -e is in effect. It may be useful to preserve the old value of $? in the dot script but this must not be implemented in such a way that it would break this test. Notes: svn path=/head/; revision=219390
* Add some tests for cexp() and cexpf(). (I need to clean up all ofDavid Schultz2011-03-073-1/+391
| | | | | | | | these tests some day, but in the mean time, they're a useful sanity check for future changes.) Notes: svn path=/head/; revision=219362
* Add support for printing out the open-loop TX power control EEPROM fields.Adrian Chadd2011-03-061-2/+22
| | | | Notes: svn path=/head/; revision=219355
* One more fix. Now all ACL tests pass again.Edward Tomasz Napierala2011-03-041-1/+1
| | | | Notes: svn path=/head/; revision=219270
* Adapt tools-crossfs.test to the new semantics.Edward Tomasz Napierala2011-03-041-17/+9
| | | | Notes: svn path=/head/; revision=219269
* Adapt NFSv4 ACL regression test to the fact that the new ZFS usesEdward Tomasz Napierala2011-03-041-2/+2
| | | | | | | new semantics. Notes: svn path=/head/; revision=219267
* Make ACL tests slightly easier to run.Edward Tomasz Napierala2011-03-044-5/+5
| | | | Notes: svn path=/head/; revision=219266
* Accept == as an alias of = which is a popular GNU extension.Xin LI2011-02-271-1/+4
| | | | | | | | | | This is intentionally undocumented for now since it's not part of any standard. MFC after: 1 month Notes: svn path=/head/; revision=219084
* - Add two more iconv-related files, which were left out from previous commitGabor Kovesdan2011-02-252-0/+72
| | | | | | | Approved by: delphij (mentor) Notes: svn path=/head/; revision=219020
* Add the BSD-licensed Citrus iconv to the base system with default offGabor Kovesdan2011-02-25257-0/+1417385
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | setting. It can be built by setting the WITH_ICONV knob. While this knob is unset, the library part, the binaries, the header file and the metadata files will not be built or installed so it makes no impact on the system if left turned off. This work is based on the iconv implementation in NetBSD but a great number of improvements and feature additions have been included: - Some utilities have been added. There is a conversion table generator, which can compare conversion tables to reference data generated by GNU libiconv. This helps ensuring conversion compatibility. - UTF-16 surrogate support and some endianness issues have been fixed. - The rather chaotic Makefiles to build metadata have been refactored and cleaned up, now it is easy to read and it is also easier to add support for new encodings. - A bunch of new encodings and encoding aliases have been added. - Support for 1->2, 1->3 and 1->4 mappings, which is needed for transliterating with flying accents as GNU does, like "u. - Lots of warnings have been fixed, the major part of the code is now WARNS=6 clean. - New section 1 and section 5 manual pages have been added. - Some GNU-specific calls have been implemented: iconvlist(), iconvctl(), iconv_canonicalize(), iconv_open_into() - Support for GNU's //IGNORE suffix has been added. - The "-" argument for stdin is now recognized in iconv(1) as per POSIX. - The Big5 conversion module has been fixed. - The iconv.h header files is supposed to be compatible with the GNU version, i.e. sources should build with base iconv.h and GNU libiconv. It also includes a macro magic to deal with the char ** and const char ** incompatibility. - GNU compatibility: "" or "char" means the current local encoding in use - Various cleanups and style(9) fixes. Approved by: delphij (mentor) Obtained from: The NetBSD Project Sponsored by: Google Summer of Code 2009 Notes: svn path=/head/; revision=219019
* The default for FDT has changed, rename the flag/options file.Ulrich Spörlein2011-02-221-1/+1
| | | | Notes: svn path=/head/; revision=218942
* Flesh out WITHOUT_GROFF support to DTRT.Ulrich Spörlein2011-02-222-5/+490
| | | | | | | | | | | | | | | A full featured groff is required during buildworld, so build it always and don't rely on it being present on the host system. vgrind(1) is tightly coupled to a roff processor and will not be built/installed when groff is disabled. Also much of the roff'ed documentation under share/doc will not be built/installed when WITHOUT_GROFF is defined. Reviewed by: ru (partial) Notes: svn path=/head/; revision=218941
* Teach tools/install.sh the -d directory mode.Ulrich Spörlein2011-02-221-2/+18
| | | | | | | | | | | Sync up with flags understood by install(1) [1], and make install(1)'s usage output not hide the clearly documented -M flag. PR: misc/154739 [1] Submitted by: arundel Notes: svn path=/head/; revision=218940
* - Fix QA issuesMartin Wilke2011-02-221-45/+55
| | | | | | | | | PR: misc/146687 Submitted by: Garrett Cooper <gcooper@FreeBSD.org> Approved by: rwatson (mentor) Notes: svn path=/head/; revision=218938
* sh: Add some tests for omitting whitespace whereever possible.Jilles Tjoelker2011-02-202-0/+25
| | | | Notes: svn path=/head/; revision=218891
* sh: Split off some special behaviour into separate tests.Jilles Tjoelker2011-02-204-2/+23
| | | | | | | This allows some other shells to pass the tests for basic behaviour. Notes: svn path=/head/; revision=218889