summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* sh: Make return return from the closest function or dot script.jilles2013-09-041-0/+13
| | | | | | | | | | | | | Formerly, return always returned from a function if it was called from a function, even if there was a closer dot script. This was for compatibility with the Bourne shell which only allowed returning from functions. Other modern shells and POSIX return from the function or the dot script, whichever is closest. Git 1.8.4's rebase --continue depends on the POSIX behaviour. Reported by: Christoph Mallon, avg
* Fix a compiler warning about signed vs unsigned compare.ian2013-09-011-1/+1
|
* sh: Recognize "--" as end of options in type builtin.jilles2013-08-301-0/+3
| | | | | This implementation makes minimal changes: command names starting with "-" (other than "--") can still be queried normally.
* Remove GNU_PATCH leftover.andreast2013-08-291-5/+0
|
* Drop build option switch for the older GNU patch.pfg2013-08-291-2/+0
| | | | | | | | As promised, drop the option to make the older GNU patch the default. GNU patch is still being built but something drastic may happen to it to it before Release.
* Formally remove WITH_BSDCONFIG build option and re-generate src.conf.5dteske2013-08-271-2/+0
| | | | NOTE: Should have been inline with revisions 252862 and 254958.
* Add more obsolete files.antoine2013-08-261-0/+5
|
* Document WITHOUT_ICONV, WITH_LIBICONV_COMPAT and WITH_USB_GADGET_EXAMPLESantoine2013-08-264-2/+6
|
* Fix fcntl F_GETFL F_SETFL for files opened execute-only (O_EXEC).jilles2013-08-253-0/+127
| | | | | | | | | The FFLAGS and OFLAGS now work correctly also for files opened with O_EXEC. Except possibly fuse, the other users pass values without O_EXEC set. fuse appears to assume O_EXEC is handled correctly. Although F_SETFL may not be commonly used for execute-only file descriptors, F_GETFL may be useful to find the access mode.
* drm/radeon: Import the Radeon KMS driverdumbbell2013-08-257-0/+829
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This driver is based on Linux 3.8 and a previous effort by kan@. More informations about this project can be found on the FreeBSD wiki: https://wiki.freebsd.org/AMD_GPU The driver is split into: sys/dev/drm2: The driver sources. sys/modules/drm2/radeonkmw: The driver main kernel module's Makefile. sys/modules/drm2/radeonkmsfw: All firmware kernel module Makefiles. There's one directory and one Makefile for each firmware. sys/contrib/dev/drm2/radeonkmsfw: All firmware binary sources. tools/tools/drm/radeon Tools to update firmwares or regenerate some headers. Merging the driver to FreeBSD 9.x may be possible but not a priority for now. Help from: kib@, kan@ Tested by: avg@, kwm@, ray@, Alexander Yerenkow <yerenkow@gmail.com>, Anders Bolt-Evensen <andersbo87@me.com>, Denis Djubajlo <stdedjub@googlemail.com>, J.R. Oldroyd <fbsd@opal.com>, Mikaël Urankar <mikael.urankar@gmail.com>, Pierre-Emmanuel Pédron <pepcitron@gmail.com>, Sam Fourman Jr. <sfourman@gmail.com>, Wade <wade-is-great@live.com>, (probably other I forgot...) HW donations: kyzh, Yakaz
* drm: Update drm_pciids.h based on Linux 3.8dumbbell2013-08-253-0/+188
| | | | | | | | | | | | | | This header can be easily updated using the new "gen-drm_pciids" script, available in tools/tools/drm. The script uses the Linux' drm_pciids.h header for new IDs, the FreeBSD's one because we add the name of the device to each IDs, and the PCI IDs database (misc/pciids port) to fill this name automatically for new IDS. To call the script: tools/tools/drm/gen-drm_pciids \ /path/to/linux/drm_pciids.h \ /path/to/freebsd/drm_pciids.h \ /path/to/pciids/pci.ids
* sh: Recognize "--" as end of options in alias builtin.jilles2013-08-251-0/+4
| | | | | Aliases starting with "-" (which are non-POSIX) will need to be preceded by an alias not starting with "-" or the newly added "--".
* sh: Disallow empty simple commands.jilles2013-08-251-0/+3
| | | | | | | | | | As per POSIX, a simple command must have at least one redirection, assignment word or command word. These occured in rare cases such as eval "f()" . The extension of allowing no commands inside { }, if, while, for, etc. remains.
* sh: Reject ++ and -- in arithmetic.jilles2013-08-241-0/+6
| | | | | | | | | | POSIX does not require ++ and -- in arithmetic. It is probably more useful to reject them than to treat ++x and --x as x silently. Note that the behaviour of increment and decrement can be obtained via (x+=1), ((x+=1)-1), (x-=1) and ((x-=1)+1). PR: bin/176444
* Add simple test for the read/write/lseek on posix shm filedescriptor.kib2013-08-211-6/+21
| | | | | Tested by: pho Sponsored by: The FreeBSD Foundation
* Catch up with various changes to if_data and make this compile againbz2013-08-201-2/+9
| | | | | | | on HEAD. Seems to be one of the the only tools giving us access to ifi_baudrate and ifi_baudrate_pf values. MFC after: 3 days
* sh: Recognize "--" as end of options in bg/fg/jobid builtins.jilles2013-08-161-0/+9
|
* sh: Add test for the non-standard jobid builtin.jilles2013-08-161-0/+7
|
* Add tests for dup3().jilles2013-08-161-1/+86
|
* sh: Recognize "--" as end of options in local builtin.jilles2013-08-141-0/+12
|
* sh: Allow a lone redirection before '|', ';;' or ';&'.jilles2013-08-143-0/+6
| | | | | | | Example: </dev/null | : PR: 181240 MFC after: 1 week
* The iconv in libc did two things - implement the standard APIs, the GNUpeter2013-08-131-4/+28
| | | | | | | | | | | | | | | | | | | | | | | | extensions and also tried to be link time compatible with ports libiconv. This splits that functionality and enables the parts that shouldn't interfere with the port by default. WITH_ICONV (now on by default) - adds iconv.h, iconv_open(3) etc. WITH_LIBICONV_COMPAT (off by default) adds the libiconv_open etc API, linker symbols and even a stub libiconv.so.3 that are good enough to be able to 'pkg delete -f libiconv' on a running system and reasonably expect it to work. I have tortured many machines over the last few days to try and reduce the possibilities of foot-shooting as much as I can. I've successfully recompiled to enable and disable the libiconv_compat modes, ports that use libiconv alongside system iconv etc. If you don't enable the WITH_LIBICONV_COMPAT switch, they don't share symbol space. This is an extension of behavior on other system. iconv(3) is a standard libc interface and libiconv port expects to be able to run alongside it on systems that have it. Bumped osreldate.
* Fix some signed comparison compile warnings.hselasky2013-08-123-5/+5
|
* fnmatch(): Add test for r254091 (pattern with single backslash).jilles2013-08-111-0/+4
| | | | | | | | This test cannot be converted to an sh(1) test because the syntax would be invalid. PR: 181129 MFC after: 1 week
* Initial commit of my USB test code which can exercise connected USBhselasky2013-08-097-0/+3579
| | | | | | | | | | | | | devices and the FreeBSD USB stack itself. This program can be used to test compliance against well established usb.org standards, also called chapter-9 tests. The host platform can act as either USB device or USB host depending on the available hardware. The basic USB communication happens through FreeBSD's own libusb v2, and some sysctls are also used to invoke specific error conditions. This test program can be used to verify correct operation of external USB harddisks under heavy load and various other conditions. The software is driven via a simple command line interface. Main supported USB host classes are "USB mass storage" and "USB modems".
* Add mkostemp() and mkostemps().jilles2013-08-092-3/+167
| | | | | These are like mkstemp() and mkstemps() but allow passing open(2) flags like O_CLOEXEC.
* * Add random_adaptors.[ch] which is basically a store of random_adaptor's.obrien2013-08-091-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | random_adaptor is basically an adapter that plugs in to random(4). random_adaptor can only be plugged in to random(4) very early in bootup. Unplugging random_adaptor from random(4) is not supported, and is probably a bad idea anyway, due to potential loss of entropy pools. We currently have 3 random_adaptors: + yarrow + rdrand (ivy.c) + nehemeiah * Remove platform dependent logic from probe.c, and move it into corresponding registration routines of each random_adaptor provider. probe.c doesn't do anything other than picking a specific random_adaptor from a list of registered ones. * If the kernel doesn't have any random_adaptor adapters present then the creation of /dev/random is postponed until next random_adaptor is kldload'ed. * Fix randomdev_soft.c to refer to its own random_adaptor, instead of a system wide one. Submitted by: arthurmesh@gmail.com, obrien Obtained from: Juniper Networks Reviewed by: so (des)
* Improve the sysctl symbol extraction from the kernel so that it find moreobrien2013-08-071-4/+8
| | | | | (all?) sysctl's. Previously some where missed, depending on how they were defined.
* Adjust make knobs to know that WITH_ICONV installs a /usr/bin/iconvsbruno2013-08-061-0/+4
| | | | | | | | | Remove it if the knob isn't tweaked. Certain ports seem to think that if /usr/bin/iconv exists, then libc has built in libiconv things and will blow up pretty nicely when built. Reviewed by: gjb@ MFC after: 2 weeks
* Fix formatting warning.ae2013-08-061-1/+1
| | | | MFC after: 1 week
* Teach cxgbetool to display T5 congestion manager context.np2013-08-011-1/+12
|
* Back out r253779 & r253786.obrien2013-07-312-15/+4
|
* Decouple yarrow from random(4) device.obrien2013-07-292-4/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Make Yarrow an optional kernel component -- enabled by "YARROW_RNG" option. The files sha2.c, hash.c, randomdev_soft.c and yarrow.c comprise yarrow. * random(4) device doesn't really depend on rijndael-*. Yarrow, however, does. * Add random_adaptors.[ch] which is basically a store of random_adaptor's. random_adaptor is basically an adapter that plugs in to random(4). random_adaptor can only be plugged in to random(4) very early in bootup. Unplugging random_adaptor from random(4) is not supported, and is probably a bad idea anyway, due to potential loss of entropy pools. We currently have 3 random_adaptors: + yarrow + rdrand (ivy.c) + nehemeiah * Remove platform dependent logic from probe.c, and move it into corresponding registration routines of each random_adaptor provider. probe.c doesn't do anything other than picking a specific random_adaptor from a list of registered ones. * If the kernel doesn't have any random_adaptor adapters present then the creation of /dev/random is postponed until next random_adaptor is kldload'ed. * Fix randomdev_soft.c to refer to its own random_adaptor, instead of a system wide one. Submitted by: arthurmesh@gmail.com, obrien Obtained from: Juniper Networks Reviewed by: obrien
* Include stdint.h to fix build.ae2013-07-291-1/+2
| | | | Pointed by: Olivier Cochard-Labbé
* Revert r253748,253749avg2013-07-281-0/+1
| | | | | | This WIP should not have been committed yet. Pointyhat to: avg
* remove needless inclusion of machine/cpu.h in userlandavg2013-07-281-1/+0
| | | | MFC after: 21 days
* Add support for packet-sniffing tracers to cxgbe(4). This works withnp2013-07-261-0/+202
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | all T4 and T5 based cards and is useful for analyzing TSO, LRO, TOE, and for general purpose monitoring without tapping any cxgbe or cxl ifnet directly. Tracers on the T4/T5 chips provide access to Ethernet frames exactly as they were received from or transmitted on the wire. On transmit, a tracer will capture a frame after TSO segmentation, hw VLAN tag insertion, hw L3 & L4 checksum insertion, etc. It will also capture frames generated by the TCP offload engine (TOE traffic is normally invisible to the kernel). On receive, a tracer will capture a frame before hw VLAN extraction, runt filtering, other badness filtering, before the steering/drop/L2-rewrite filters or the TOE have had a go at it, and of course before sw LRO in the driver. There are 4 tracers on a chip. A tracer can trace only in one direction (tx or rx). For now cxgbetool will set up tracers to capture the first 128B of every transmitted or received frame on a given port. This is a small subset of what the hardware can do. A pseudo ifnet with the same name as the nexus driver (t4nex0 or t5nex0) will be created for tracing. The data delivered to this ifnet is an additional copy made inside the chip. Normal delivery to cxgbe<n> or cxl<n> will be made as usual. /* watch cxl0, which is the first port hanging off t5nex0. */ # cxgbetool t5nex0 tracer 0 tx0 (watch what cxl0 is transmitting) # cxgbetool t5nex0 tracer 1 rx0 (watch what cxl0 is receiving) # cxgbetool t5nex0 tracer list # tcpdump -i t5nex0 <== all that cxl0 sees and puts on the wire If you were doing TSO, a tcpdump on cxl0 may have shown you ~64K "frames" with no L3/L4 checksum but this will show you the frames that were actually transmitted. /* all done */ # cxgbetool t5nex0 tracer 0 disable # cxgbetool t5nex0 tracer 1 disable # cxgbetool t5nex0 tracer list # ifconfig t5nex0 destroy
* Make the BSD-licensed patch the default.pfg2013-07-262-2/+2
| | | | | | | | | | | | | | | The BSD-licensed patch(1) command has matured and it's behaviour can be considered equivalent to the older version of GNU patch in the tree. The switch has been extensively tested [1] and only two ports presented regressions, which have since been fixed. For convenience a new WITH_GNU_PATCH option is available, but it will likely be removed in the near future. PR: 176313 Approved by: portmgr
* Remove define and documentation for vm_pageout_algorithm missed in r253587zont2013-07-261-3/+0
|
* zfsboottest: remove explicit -Werroravg2013-07-241-2/+1
| | | | | | Unfortunately sys/boot is compliled without -Werror at the moment. MFC after: 7 days
* wordexp(): Fix syntax validation for backslashes in single-quotes.jilles2013-07-231-0/+12
|
* Fix several warnings.kib2013-07-211-8/+10
| | | | | | | | Fix crash in aio_pty_cleanup() by initializing the pointer before dereferencing. Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Include stdint.h when use intmax_t.kevlo2013-07-181-1/+1
| | | | Reported by: bde
* Replace PRId64 with "jd" in a printf call. Cast the corresponding value tokevlo2013-07-181-1/+1
| | | | | | intmax_t, because the original type is off_t. Reported by: bde
* Add missing headers.kevlo2013-07-172-0/+3
|
* Use PRId64 instead of %gd to print an int64_t.kevlo2013-07-171-1/+2
|
* 2 years, 10 months, 22 days after the projects/arm_eabi branch was createdandrew2013-07-162-2/+2
| | | | | | | | | | | | | | | | | | | | make the ARM EABI the default ABI on arm, armeb, armv6 and armv6eb. This is intended to be the default ABI from now on with the old ABI to be retired. Because of this all users are strongly suggested to upgrade to the ARM EABI. As the two ABIs are incompatible it is unlikely upgrading in place will work. Users should perform a full backup and either use an external machine to upgrade, or install to an alternative location on their media. They should also reinstall all ports or packages when these are available. The only known issues are: - pkg incorrectly detects the ABI. This is fixed upstream, and will a patch will be made to the port. - GDB can have issues with executables built with clang. __FreeBSD_version has been bumped.
* Need to define NO_MAN here.kevlo2013-07-161-0/+1
|
* Use MAN= instead of NO_MAN=kevlo2013-07-161-1/+1
| | | | | For some reason it still tries to install a priv.1 when using NO_MAN, even though there isn't one yet.
* Add missing header needed by sleep(3).kevlo2013-07-161-0/+1
|
OpenPOWER on IntegriCloud