commit 7c54329f82daa21d9747eee66ac2b53a2d4d9e73
tree 11aa69e55986a2b82d6dbdb5e13241be66f04c16
parent 767b3e519e85095dfee3a47d15a373a403fe3dab
author Li Wang <liwang@redhat.com> 2026-02-03 10:43:20 +0800
committer Li Wang <liwang@redhat.com> 2026-02-04 20:04:25 +0800

    newlib_tests: add tst_filesystems01 to .gitignore
    
    Signed-off-by: Li Wang <liwang@redhat.com>
    Reviewed-by: Petr Vorel <pvorel@suse.cz>


:100644 100644 a4984d2ec718e73d68b1fd519c9a93a14b0490ec 1586e0ad6d5e02622bda97599cf729c30a14e56c M	lib/newlib_tests/.gitignore
commit 767b3e519e85095dfee3a47d15a373a403fe3dab
tree 3f6130271cc15f67a96a0e7eabcd9084dee3d2c2
parent 33cb2bc6aabf50239a425a8eaf1614c456438100
author Li Wang <liwang@redhat.com> 2026-02-03 10:43:19 +0800
committer Li Wang <liwang@redhat.com> 2026-02-04 20:04:09 +0800

    openat2: define _GNU_SOURCE and include <fcntl.h>
    
    On Fedora Rawhide (glibc 2.43+), libc exposes openat2() and struct open_how,
    so our configure script defines HAVE_OPENAT2 and the fallback definition in
    lapi/openat2.h gets skipped. But openat20*.c never included <fcntl.h> (and
    lacked _GNU_SOURCE), so the libc-provided prototype and struct stayed hidden,
    so compilation failed:
    
      # uname -r
      6.18.0-65.fc44.x86_64
    
      # rpm -qf /usr/include/fcntl.h
      glibc-devel-2.43-1.fc44.x86_64
    
      # nm -D /usr/lib64/libc.so.6 | grep -w openat2
      00000000000eb890 W openat2@@GLIBC_2.43
    
      # make -C testcase/kernel/syscalls/openat2
      openat201.c:27:62: error: invalid application of ‘sizeof’ to incomplete type ‘struct open_how’
        27 |         {&dir_fd, TEST_FILE, O_RDWR, S_IRWXU, 0, &how, sizeof(*how)},
    
    Define _GNU_SOURCE and include <fcntl.h> in openat2 tests to make the
    prototype available and fix the build.
    
    Signed-off-by: Li Wang <liwang@redhat.com>
    Reviewed-by: Petr Vorel <pvorel@suse.cz>


:100644 100644 ecd63b150e4909f84afabc4facb2c6300be27ba9 40ac2f6d9ad2fae7494295b1a15b4283572dceee M	testcases/kernel/syscalls/openat2/openat201.c
:100644 100644 6d1b5a67c7dfbcae27b4fe4e3bf047e12221f88a 329c6a4a5cb2e6fc0e29b8807a291fad4f678765 M	testcases/kernel/syscalls/openat2/openat202.c
:100644 100644 6ac49ef4c9e8140d83af0baa1a3ccae5a1dbf358 cd0c00d75235c3aaa9cd39afdb51b065cd2cb514 M	testcases/kernel/syscalls/openat2/openat203.c
