Fix up r311227Check for creat returning a value != -1, not a non-zero valueMFC after: 3 daysPointyhat to: ngieReported by: CoverityCID: 1368366
Merge the grammar fix for lib/libc/gen/raise_test:raise_stressMFC after: 3 days
ttyname_err: close fd if it was opened successfullyMFC after: 3 daysReported by: CoverityCID: 978292
humanize_number_basic: don't leak bufMFC after: 3 daysReported by: CoverityCID: 1251407
ftok_link: don't leak fdMFC after: 3 daysReported by: CoverityCID: 978291
seekdir_basic: fix various Coverity issuesAddress..- .. resource leaks of file descriptors and memory- .. unchecked return values from creat(2), mkdir(2), and telldir(3)- .. potential NULL deref
seekdir_basic: fix various Coverity issuesAddress..- .. resource leaks of file descriptors and memory- .. unchecked return values from creat(2), mkdir(2), and telldir(3)- .. potential NULL derefs after calling readdir(3)MFC after: 1 weekReported by: CoverityCID: 975255, 975256, 976989, 978989, 978990
show more ...
Don't build :strvis_locale if VIS_NOLOCALE is undefinedThe copy of contrib/libc-vis on ^/stable/10 doesn't contain all of the featuresin the ^/stable/11 // ^/head version, including VIS_NOLOCALE.
Don't build :strvis_locale if VIS_NOLOCALE is undefinedThe copy of contrib/libc-vis on ^/stable/10 doesn't contain all of the featuresin the ^/stable/11 // ^/head version, including VIS_NOLOCALE. The risk is lowerin conditionally running the test instead of backporting the newer version oflibc-visMFC after: now
Use right piece of code for FreeBSD.Sponsored by: DARPA, AFRLSponsored by: HEIF5
Detect virtual machines on FreeBSD using the kern.vm_guest sysctlkern.vm_guest == none -> not a virtual machineIt's a bit of a misnomer with the function being named `isQEMU`... but FreeBSD'ssup
Detect virtual machines on FreeBSD using the kern.vm_guest sysctlkern.vm_guest == none -> not a virtual machineIt's a bit of a misnomer with the function being named `isQEMU`... but FreeBSD'ssupport seems to be a bit more all-encompassing than NetBSD's is today.Sponsored by: EMC / Isilon Storage Division
MFhead @ r304232
Disable tests for non-standard behaviour of dirname(3)/basename(3).The NetBSD ATF tests explicitly check that these functions do not modifytheir input. These tests are NetBSD-specific. They test f
Disable tests for non-standard behaviour of dirname(3)/basename(3).The NetBSD ATF tests explicitly check that these functions do not modifytheir input. These tests are NetBSD-specific. They test for somethingthat is not part of POSIX.PR: 211873Reviewed by: ngieDifferential Revision: https://reviews.freebsd.org/D7506
Checkpoint initial integration work- Some of the lib/libc and lib/thr tests fail- lib/msun/exp_test:exp2_values now passes with clang 3.8.0The Makefiles in contrib/netbsd-tests were pruned as th
Checkpoint initial integration work- Some of the lib/libc and lib/thr tests fail- lib/msun/exp_test:exp2_values now passes with clang 3.8.0The Makefiles in contrib/netbsd-tests were pruned as they have no valueSponsored by: EMC / Isilon Storage Division
Remove legacy brk and sbrk from RISC-V.Discussed with: andrewSponsored by: DARPA, AFRLSponsored by: HEIF5
Remove brk and sbrk from arm64. They were defined in The Single UNIXSpecification, Version 2, but marked as legacy, and have been removed fromlater specifications. After 12 years it is time to remo
Remove brk and sbrk from arm64. They were defined in The Single UNIXSpecification, Version 2, but marked as legacy, and have been removed fromlater specifications. After 12 years it is time to remove them from newarchitectures when the main use for sbrk is an invalid method to attemptto find how much memory has been allocated from malloc.There are a few places in the tree that still call sbrk, however they arenot used on arm64. They will need to be fixed to cross build from arm64,but these will be fixed in a follow up commit.Old copies of binutils from ports called into sbrk, however this has beenfixed around 6 weeks ago. It is advised to update binutils on arm64 beforeinstalling a world that includes this change.Reviewed by: brooks, emasteObtained from: brooksRelnotes: yesSponsored by: ABT Systems LtdDifferential Revision: https://reviews.freebsd.org/D6464
Don't dump core files with lib/libc/ssp/ssp_test and lib/libc/gen/assert_testThe default `sysctl kern.corefile` value is compatible with `kyua test` (FreeBSDwill dump to the current directory). If
Don't dump core files with lib/libc/ssp/ssp_test and lib/libc/gen/assert_testThe default `sysctl kern.corefile` value is compatible with `kyua test` (FreeBSDwill dump to the current directory). If it's set to an absolute path however,`kyua test` will not be able to clean up the corefiles after the factThe corefiles have little value when testing the behavior of feature behavior,so just disable corefile generationMFC after: 1 weekObtained from: Isilon OneFS (^/onefs/head@r511419)Sponsored by: EMC / Isilon Storage Division
Fix -Wunused warnings with variables used unlit code by adding appropriate #ifdefguards around the variablesMFC after: 3 daysSponsored by: EMC / Isilon Storage Division
Fix t_spawnattr test for attributes handling by posix_spawn(3).Connect it to the build.The code assumed that SCHED_* constants form a contiguous set ofnumbers, remove the assumption by using sche
Fix t_spawnattr test for attributes handling by posix_spawn(3).Connect it to the build.The code assumed that SCHED_* constants form a contiguous set ofnumbers, remove the assumption by using schedulers[] array inget_different_scheduler(). This is no-op on FreeBSD, but improvescode portability.The selection of different priority used the min/max priority range ofthe current scheduler class, instead of the priority to be changed to.The bug caused the test failure.Remove duplication of POSIX_SPAWN_SETSIGDEF flag and now unusedduplications of MIN/MAX definitions.Reviewed by: jilles, phoSponsored by: The FreeBSD FoundationMFC after: 1 weekDifferential Revision: https://reviews.freebsd.org/D3533
nice(): Put back old return value, keeping [EPERM] error.Commit r279154 changed the API and ABI significantly, and {NZERO} is stillwrong.Also, preserve errno on success instead of setting it to
nice(): Put back old return value, keeping [EPERM] error.Commit r279154 changed the API and ABI significantly, and {NZERO} is stillwrong.Also, preserve errno on success instead of setting it to 0.PR: 189821Reported by: bdeRelnotes: yes
nice(): Correct return value and [EPERM] error.PR: 189821Obtained from: NetBSDRelnotes: yes
ttyname_r(): Return actual error, not always [ENOTTY].Adjust the test that used to fail because of this bug.PR: 191936MFC after: 1 week
Mechanically replace #if defined(__FreeBSD__) and #if defined(__NetBSD__) withtheir #ifdef equivalents for everything changed in contrib/netbsd-tests. Thereare some items from the vendor tree that
Mechanically replace #if defined(__FreeBSD__) and #if defined(__NetBSD__) withtheir #ifdef equivalents for everything changed in contrib/netbsd-tests. Thereare some items from the vendor tree that use #if defined(__FreeBSD__) or#if defined(__NetBSD__) which are being left aloneRequested by: bde, rpauloSponsored by: EMC / Isilon Storage Division
Import proper fix for misc/49356 (/usr/include/atf-c/config.h) after atf-c/config.hwas removed from the buildPointyhat to: me (again, for not running make delete-old after running test builds)
Skip :sethostname_basic because it messes up the test host's hostnameConvert code from #if defined(__FreeBSD__) to #ifdef __FreeBSD__
- Omit the poll testcases on FreeBSD (they require pollts)- Add necessary headers for the testcasesSponsored by: EMC / Isilon Storage Division
Port lib/libc/gen/t_siginfo to FreeBSD- mcontext_t on FreeBSD doesn't have a __gregs field (it's split out on FreeBSDinto separate fields). In order to avoid muddying the test code with MD code,t
Port lib/libc/gen/t_siginfo to FreeBSD- mcontext_t on FreeBSD doesn't have a __gregs field (it's split out on FreeBSDinto separate fields). In order to avoid muddying the test code with MD code,the debugging trace info has not been implemented- FreeBSD does not implement the si_stime and si_utime fields in siginfo_t, soomit the debugging code that dumps the values- sys/inttypes.h doesn't exist on FreeBSDSponsored by: EMC / Isilon Storage Division
123