Commit Graph

14909 Commits

Author SHA1 Message Date
kamil 8fce8aab12 Add new test-suite t_dummy for libpthread_dbg
At the moment this test does nothing except reports failure from td_open()
for overloaded (implemented) dummy1_proc_lookup() (.proc_lookup from
td_proc_callbacks_t) of the following form:

static int
dummy1_proc_lookup(void *arg, const char *sym, caddr_t *addr)
{
        return TD_ERR_ERR;
}

This file and directory with tests is placeholder for new ones, without
further need to alter mtree and distribution sets.

The libpthread_dbg interface and library is used by gdb(1) to handle
threads in applications.

Sponsored by <The NetBSD Foundation>
2016-11-16 21:36:22 +00:00
pgoyette e55d90d8db Update sets lists for new bufq_* modules 2016-11-16 00:50:12 +00:00
skrll 880c0915ea Fix librefuse falout.... Hi pho 2016-11-15 12:59:33 +00:00
joerg 23b4e7f4cd Give the ramdisk a bit more space, evbppc64 for clang is running out. 2016-11-13 22:14:44 +00:00
njoly 2904b2098c New clock_nanosleep(2) testcase. 2016-11-11 15:30:44 +00:00
alnsn 0fb91146db Add 3des-cbc tests with 192 bits key. 2016-11-11 07:39:58 +00:00
alnsn 34c9574779 Add t_cgd_blowfish. 2016-11-10 23:47:23 +00:00
alnsn b0f6fce42a Add blowfish-cbc tests for 128, 256 and 448 bits keys. 2016-11-10 23:44:36 +00:00
rin 1626404a42 Add myself 2016-11-09 08:18:56 +00:00
kamil 5cc56ca0a8 Add new tests for combination of wait(2) interfaces with ptrace(2)
Move out wait(2) specific tests from t_ptrace and put them to t_ptrace_wait

Add generic code fragments to reuse the same source-code for every member
of the wait(2) family, namely:
 - wait(2)
 - waitpid(2)
 - waitid(2)
 - wait3(2)
 - wait4(2)
 - wait6(2)

Currently in the new test-suite there are the following tests:
 - traceme1
 - traceme2
 - traceme3
 - traceme4
 - attach1

Not all tests are possible to be executed against every wait(2)-like
interface, therefore they will be disabled in such case. Currently this
limits attach1 to waitpid(2), waitid(2), wait4(2), wait6(2), while the
other tests (traceme 1-4) run with all of the interfaces.

The construct of this file is dedicated for addition of new tests in the
close future.

As of now all of the tests pass correctly.

Thanks for Robert Elz for suggestions on improving the code (earlier draft
of this new form).

Sponsored by <The NetBSD Foundation>.
2016-11-07 21:09:03 +00:00
ozaki-r 4df1f132c4 Add basic tests for IPv6 Path MTU Discovery 2016-11-07 00:54:48 +00:00
alnsn ef871053fc Add "crypto" category to t_cgd_aes. 2016-11-06 17:09:19 +00:00
alnsn 86ce2fcbb2 Debug file for t_cgd_aes. 2016-11-06 17:07:50 +00:00
kamil 2945e8c443 Add new tests: tests/lib/libc/sys/t_wait_noproc and t_wait_noproc_wnohang
The t_wait_noproc test checks whether wait(2)-family of functions return
error and set ECHILD for lack of childs.

The t_wait_noproc_wnohang adds to options (except wait(2), wait3(2)) new
parameter WNOHANG and verifies that error is still signaled and errno set
to ECHILD.

Currently t_wait_noproc_wnohang reports failures, these have been marked as
expected and referenced to PR standards/51606.

The problem report is authored by Robert Elz, and the initial regression
has been notified by Nicolas Joly.

Remove redundant test in tests/lib/libc/sys/t_wait for wait6(2) with no
WNOHANG specified.

Sponsored by <The NetBSD Foundation>.
2016-11-06 15:03:30 +00:00
alnsn 838eb24361 Add tests for not-yet-committed cgd algorithm AES-XTS.
The tests are marked as expected failures.
2016-11-06 10:54:42 +00:00
kre ce6897c67c New zoneinfo file for Asia/Famagusta (north Cyprus) from tzdata2016i 2016-11-03 10:00:11 +00:00
kamil 46910e0e26 Add new test t_ptrace with traceme1
This test is a placeholder for further checks of the native ptrace(2)
function calls.

XXX: Is it safe to call ATF functions from a child? FreeBSD seems to
     construct dedicated asserts for them.

XXX: printf(3) calls from a child are not intercepted by atf-run(1)

Sponsored by <The NetBSD Foundation>.
2016-11-02 12:51:22 +00:00
pgoyette a396e9b233 Update sets lists for new ptrace{,_common} modules 2016-11-02 00:12:41 +00:00
christos 1b213f3d03 fix libiberty_g.a 2016-11-01 19:21:17 +00:00
skrll 0d033f4194 Obsolete gcc files 2016-11-01 14:45:25 +00:00
christos 84f3f387af bump binutils libraries 2016-11-01 14:04:48 +00:00
skrll e0370c2ad8 Fix linker script entries for arch64 mips 2016-10-31 20:22:35 +00:00
skrll 424aa5458d Mark linker scripts with binutils 2016-10-31 20:16:48 +00:00
skrll 1a24f78652 sort (sort of) 2016-10-31 20:14:08 +00:00
ozaki-r cd4a5f447b Add tests for ping6 options
- -S <sourceaddr>
- -I <interface>
- -g <gateway>
2016-10-31 10:38:25 +00:00
kamil 53e134ea9e Add new test t_timedmutex
This test is a clone on t_mutex with additional two tests for timed-mutex
specific block.

All simple-mutex (not with the timed property according to the C11 wording)
specific tests are covered by pthread_mutex_timedlock(3) with parameter
ts_lengthy of sufficiently large tv_sec value (right now UINT16_MAX). If,
a test will hang, it won't wait UINT16_MAX seconds, but will be terminated
within the default timeout for ATF tests (right now 300 [sec] in my
NetBSD/amd64 setup).

This test was inspired by a classic selflock test failure of
pthread_mutex_timedlock(3) of the following form:

#include <assert.h>
#include <errno.h>
#include <pthread.h>
#include <stdio.h>
#include <time.h>

int main(int argc, char **argv)
{
	pthread_mutex_t mtx;
        struct timespec ts;

        ts.tv_sec = 0;
        ts.tv_nsec = 1000;
        printf("ts{.tv_sec = %d, .tv_nsec=%ld}\n", ts.tv_sec, ts.tv_nsec);
        fflush(stdout);

        printf("mtx_init\n");
	assert(pthread_mutex_init(&mtx, NULL) == 0);

        printf("mtx_lock\n");
	assert(pthread_mutex_lock(&mtx) == 0);

        printf("mtx_timedlock\n");
	assert(pthread_mutex_timedlock(&mtx, &ts) == ETIMEDOUT);

        printf("mtx_unlock\n");
	assert(pthread_mutex_unlock(&mtx) == 0);

	printf("mtx_destroy\n");
        assert(pthread_mutex_destroy(&mtx) == 0);

	return 0;
}

Current NetBSD implementation wrongly hangs on this test.

The issue was detected during development of the C11 portable threads.

My local tests in chroot presents that the are further issues:

t_timedmutex (21/25): 10 test cases
    mutex1: [0.001142s] Failed: /usr/src/tests/lib/libpthread/t_timedmutex.c:75: *param != 20
    mutex2: [0.261499s] Passed.
    mutex3: [0.261496s] Passed.
    mutex4: [0.001204s] Failed: /usr/src/tests/lib/libpthread/t_timedmutex.c:265: pthread_mutex_timedlock(&mutex, &ts_lengthy): Connection timed out
    mutex5: [0.001235s] Failed: /usr/src/tests/lib/libpthread/t_timedmutex.c:337: pthread_mutex_timedlock(&mutex5, &ts_lengthy): Connection timed out
    mutex6: [21.218497s] Failed: /usr/src/tests/lib/libpthread/t_timedmutex.c:512: start != 1
    mutexattr1: [0.001328s] Passed.
    mutexattr2: [0.001175s] Passed.
    timedmutex1: [301.119397s] Failed: Test case timed out after 300 seconds
    timedmutex2: [301.123081s] Failed: Test case timed out after 300 seconds
[623.990659s]

I'm also receiveing the same failure in the mutex6 test in t_mutex, so
there might be a false positives due to local chroot(8) issues.

Commit approved by <christos>.
2016-10-30 16:17:16 +00:00
kamil 9a33a81286 Fix generation of distribution with MKCATPAGES=yes
There are 50+ files from recent OpenSSL that are missing in the .cat set.

Add missing entries to appropriate lists.
2016-10-29 17:12:20 +00:00
mlelstv 867d0d62f8 tag debug libraries with 'debuglib' instead of 'debug'. Fixes mips builds. 2016-10-29 10:56:57 +00:00
christos 6ab470b02d everyone is now on binutils-2.26 or more 2016-10-26 21:24:20 +00:00
abhinav 6cddff1a99 Add tests for uniq(1) based on the example test cases provided in the POSIX man page.
Ok christos
2016-10-22 14:13:39 +00:00
macallan 9c898787bb add libc_fp stuff 2016-10-20 19:22:35 +00:00
skrll f2ef31cb48 PR kern/51514: ptrace(2) fails for 32-bit process on 64-bit kernel
Updated from the original patch in the PR by me.
2016-10-19 09:44:00 +00:00
mrg 94cfe7b367 revert the previous - those are only relevant for 64 bit builds and
are listed in ad.mips with arch64 tag.  fixes emips builds.
2016-10-18 20:44:59 +00:00
christos 6fd3d22580 try to fix copy-pasto 2016-10-18 12:56:11 +00:00
christos 93f4a9e00c add libc_fp 2016-10-18 12:51:05 +00:00
mrg f8dd93e519 libc_fp is arch64 only. 2016-10-18 06:40:06 +00:00
mrg 3f412ee160 fix oabi arm builds - no eabi ldscripts. 2016-10-17 20:16:57 +00:00
mrg 14a15c5f7b build fixes for sgimips and xorg-server 1.18.
newport and crime need to be ported away from XAA.
2016-10-16 08:20:58 +00:00
maya 3f12f1fa8e linkerscripts for mips are built only on mips64*
so file lists should have these files for 64bit only too
2016-10-15 17:55:28 +00:00
kamil 6245abaafa Import wcsnlen(3) to libc
The wcsnlen(3) function conforms to POSIX.1-2008 and is an addition to the
ISO C standard.

size_t wcsnlen(const wchar_t *s, size_t maxlen);

The wcsnlen(3) function computes the number of wide-characters in a wide-
-string to which s points, not including NULL terminating wide-character
code and checking no more than maxlen wide-characters. This function never
examines wide-characters beyond a wide-string of maxlen size.


This function is a safer version of wcslen(3):

size_t wcslen(const wchar_t *s);


Update STANDARDS section of wmemchr(3) describing wide-character functions.
2016-10-15 14:21:59 +00:00
christos 10dd1ce273 add linker scripts 2016-10-15 11:44:09 +00:00
christos dab4794cfb Add more linker scripts 2016-10-15 11:41:54 +00:00
christos a79a63738d adjust for the latest changes 2016-10-15 11:34:30 +00:00
christos d299125350 add ldscripts 2016-10-14 19:28:06 +00:00
maya 722bae43c0 we build libc_fp for mips64* only, adjust sets accordingly. 2016-10-14 17:52:41 +00:00
spz cff8db61e4 periphereal updates and generated files for the new openssl.
Expect at least one more commit until the tree builds again.
2016-10-14 16:09:43 +00:00
christos a599b8e09f add strchrnul 2016-10-12 20:02:33 +00:00
nat b4fce4982f Added firmare for Realtek 8192ee/eu. 2016-10-12 03:58:37 +00:00
macallan 8baff5f4bf build and install libc_fp on mips
use with LD_PRELOAD=/lib/libc_fp.so for FPU use via softfloat
2016-10-11 17:02:28 +00:00
mrg f2d015f995 add arm64 ldscripts 2016-10-11 08:04:23 +00:00
mrg 4685143ff5 build and install the arm ldscripts. now i can build oabi again. 2016-10-11 07:23:52 +00:00
martin 6ff906bc3c do not mark igs_drv.so.0.debug as obsolete, we still install it 2016-10-11 06:11:38 +00:00
mrg 30db75397d build new pt_PT.UTF-8 locale from libX11 1.6.4. 2016-10-04 23:52:02 +00:00
mrg 82214f4f99 mark pnozz obsolete on xorg-server 1.18 2016-10-04 21:34:02 +00:00
christos a406e29ff1 put back dmesg 2016-10-04 14:00:27 +00:00
kamil 7f4b5eb156 Add timespec_get(3) in <time.h> and enable unconditionally struct timespec
These changes conforms to the C11 standard
References:
 - 7.27.1/3 Components of time (struct timespec)
 - 7.27.2.5 The timespec_get function

According to ISO/IEC 9899:201x (draft) <time.h> defines the timespec
structure and declares the timespec_get(3) function with TIME_UTC
definition.

According to a C++17 standard draft <ctime> offers the same interface in
the std:: namespace.

The timespec_get function modifies the timespec object pointed by ts
to hold the current calendar time in the given base. The standard notes
only the TIME_UTC base with implementation defined value, set it to 1
as zero is reserved for error handling. Once operation was successful this
function returns passed base, otherwise exits with zero.

The timespec struct was already part of the POSIX standard in <time.h>.

Enable this interface unconditionally in the header to allow to use it
in a code prior C11 and C++17 as an extension.

Review notes from <christos>
2016-10-04 09:41:40 +00:00
ozaki-r 48cafa77c5 Add tests for sysctl net.inet.ip.mtudisc
From suzu-ken@IIJ
2016-10-04 04:15:25 +00:00
rkujawa a82859c06b Add mntva(4) man page to dist list. 2016-10-03 18:59:41 +00:00
kamil b3c98abce0 Import c11(1) - a cc -std=c11 wrapper
This script is similar to c89(1) and c99(1).

It's a NetBSD extension. The c89(1) and c99(1) scripts are part of POSIX.
2016-10-03 01:00:27 +00:00
jdolecek 56fb1bd45a add ahci(4) to list 2016-10-02 23:14:19 +00:00
kamil 7db6ba3b08 Import <stdalign.h>
This header conforms to the C11 standard
Reference: ISO/IEC 9899:201x 7.15 Alignment <stdalign.h>

According to ISO/IEC 9899:201x (draft) 7.15 Alignment <stdalign.h> defines
four macros:
 - alignas which expands to _Alignas
 - alignof which expands to _Alignof
 - __alignas_is_defined and __alignof_is_defined which both expand to 1

The _Alignas declaration appears as one of the type specifiers to modify
the alignment requirement of the object being declared.

The _Alignof operator is used to query the alignment requirement of its
operand type.

ISO/IEC N3242=11-0012 (C++1x) and ISO/IEC N3797 (C++1y) both note a header
<cstdalign> which defines only __alignas_is_defined and shall not define
the alignas macro. It misses the alignof case as it's probably based on an
older C1x draft, which defined only alignas. Assume that this is a bug in
the standard and treat alignof the same way as alignas in C++11.

Allow to define alignas and alignof in C++ prior the C++11 standard. It
might be broken but a nonstandard C++ compiler might support C11-like
_Alignas and _Alignof. Note that it's fatal for g++(1) v.5.4.
2016-10-02 17:19:00 +00:00
kamil 7798b8a775 Import <stdnoreturn.h>
This header conforms to the C11 standard
Reference: ISO/IEC 9899:201x 7.23 _Noreturn <stdnoreturn.h>

According to ISO/IEC 9899:201x (draft) <stdnoreturn.> defines the
noreturn macro which expands to _Noreturn.

The _Noreturn keyword appears in a function declaration and specifies
that the function does not return by reaching the end of the function
body.

Design choices:
 - don't implicitly break C++ code including this header with #error
   C++11 offers [[noreturn]] which conflicts with C11 _Noreturn

 - don't check for __STDC_VERSION__, everybody is free to reuse it with
   a nonstandard compiler not conforming to C11 but supporting _Noreturn

   gcc(1) and clang(1) support _Noreturn in -std=c99 and older standards

   this follows <stdbool.h> choice for not checking for C99

 - follow <stdbool.h> and declare the __noreturn_is_defined guard

 - use a standard header guard (_STDNORETURN_H_), similar to <stdbool.h>

Reviewed by <pgoyette> and <joerg>
2016-10-02 13:09:24 +00:00
flxd 558b195f60 Add myself 2016-10-01 12:32:35 +00:00
kre f6bb854fd7 Added /usr/share/zoneinfo/Asia/Yangon for tzdata2016g 2016-09-29 20:47:18 +00:00
christos 99a48913f4 fix more driver lossage 2016-09-29 18:58:27 +00:00
macallan 47bb9e27e1 put igs driver back. 2016-09-28 18:23:00 +00:00
macallan 1032c95374 makr pnozz, ag10e, sunleo as 1.10 only 2016-09-28 18:17:10 +00:00
pgoyette a28b2246b9 Missed the mlx_pci module in previous commit (to disable) 2016-09-27 23:25:10 +00:00
pgoyette 01b31fcf1e For now, disable all the newly-created ld(4) related modules. We need
to come up with a better way to handle attachment-specific modules, and
possibly a better directory structure for modules in general, as the
current mechanism doesn't scale.
2016-09-27 20:52:43 +00:00
pgoyette c6bbbf5d26 Update sets lists for all the new modules (for l4(4) and its attachments) 2016-09-27 04:00:33 +00:00
mrg 981b4dd997 build the modesetting driver on x86.
build the modesetting driver for xorg-server 1.18.4.  it has moved
into the xorg-server tree itself, and changed significantly.
2016-09-26 22:37:31 +00:00
mrg 22198b51d0 revert the previous; it seems to have been a mistake (adding nsd
entries) and had nothing to do with the message (libc bump.)
2016-09-24 23:15:26 +00:00
mrg 62ee7dc27b introduce a better pci_drvname() and PCI_IOC_DRVNAME as pciio_drvnameonbus()
and PCI_IOC_DRVNAMEONBUS.  the new ones also take a (autoconf) PCI bus
number, which allows lookups for any device on any pci bus node.  use this
in pcictl which current reports the wrong values sometimes.

up next: use these in libpciaccess.
2016-09-24 23:12:54 +00:00
mrg 5bf2dfccdd mark all the xorg-server 1.10 specific files as obsolete for xorg-server 1.18.
being to adapt not ready or not switched ports more to 1.18.
2016-09-24 21:57:38 +00:00
christos e3030ca1fc bump libc 2016-09-24 20:13:48 +00:00
roy 785757d49a Update for libc bump. 2016-09-21 14:00:29 +00:00
christos e0e4dc48e0 Add the ability to specify more sections to strip. 2016-09-20 20:55:54 +00:00
christos 7b6d02ec13 Strip more sections, and verbose printing. 2016-09-20 20:55:11 +00:00
christos f9f6cac132 Kill expr, modernize 2016-09-18 18:24:00 +00:00
christos adf53ef170 remove more stuff. 2016-09-18 16:36:02 +00:00
christos 03a6073a0a kill some useless programs (it is not like the dreamcast has a tape drive) 2016-09-18 15:38:05 +00:00
christos d53ba42d44 bump 2016-09-18 02:07:07 +00:00
christos 8da75a62dd bump 2016-09-18 01:57:24 +00:00
pgoyette 9aa6b1dc9e Fix sets lists for nvme module. Since it is being built only for the
i386 and amd64 platforms, the entries belong in the md.xxx lists, not
in the mi list.
2016-09-17 02:27:19 +00:00
pgoyette 7d781bd22d Add the new nvme module to the sets lists. 2016-09-16 23:01:53 +00:00
scole 55bbcbd837 updates for PPC601 support being added 2016-09-15 19:27:47 +00:00
scole 4afc32c0de Add platinumfb man page 2016-09-14 20:04:22 +00:00
pgoyette afcf8ca07e Update sets for new dummy "tun" module. 2016-09-10 02:20:41 +00:00
jakllsch b0d9a74829 Increase size of cats installation memory disk by 100Ki.
Or: We shouldn't let the cats out of the bag.
2016-09-05 14:47:30 +00:00
ozaki-r 13445aedf0 Add very basic tests for tun devices 2016-09-05 02:26:48 +00:00
ozaki-r 6dc1297521 Support tun devices on rump kernels 2016-09-05 02:25:37 +00:00
christos e8a65a705b update for new tmux example . 2016-08-31 17:28:58 +00:00
maya c31c23a665 Add failing test for casinh 2016-08-31 14:05:09 +00:00
dholland 0934eb0408 Setlists for PR 51033. 2016-08-27 08:03:47 +00:00
christos a553800b2e Add missing picinstall (Rin Okuyama) 2016-08-27 07:54:31 +00:00
christos d8128efd1a more fenv 2016-08-25 12:45:52 +00:00
christos 800b21624d add fenv for sh 2016-08-25 12:17:26 +00:00
szptvlfn 6cf8eec8aa fix the build ( MKUNBOUND=no ). 2016-08-24 22:50:57 +00:00
christos 5eb97cf120 Add fenv.h 2016-08-23 10:12:02 +00:00
christos 8d5c607639 add unbound.conf 2016-08-23 09:11:06 +00:00