1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:28:12 +00:00
serenity/Userland/Libraries/LibC
Andrew Kaster a103a85ae6 Userland: Locally suppress -Wc99-designator and re-enable globally
There's only two places where we're using the C99 feature of array
designated initalizers. This feature seemingly wasn't included with
C++20 designated initalizers for classes and structs. The only two
places we were using this feature are suitably old and isolated that
it makes sense to just suppress the warning at the usage sites while
discouraging future array designated intializers in new code.
2022-01-04 07:51:31 +00:00
..
arch LibC: Implement _setjmp and _longjmp 2021-12-24 05:26:21 -08:00
arpa LibC: Make <netinet/in.h> more POSIX compliant 2021-08-22 10:29:06 +02:00
bits LibC: Implement `flockfile and funlockfile` 2022-01-01 09:50:32 +00:00
net Kernel+LibC: Stub out if_nameindex() and if_freenameindex() 2021-12-22 00:02:36 -08:00
netinet LibC: Add the netinet/if_ether.h header and define ETH_ALEN 2021-12-22 00:02:36 -08:00
sys Userland: Locally suppress -Wc99-designator and re-enable globally 2022-01-04 07:51:31 +00:00
alloca.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
assert.cpp LibC: Move _abort next to abort 2021-12-18 21:01:10 -08:00
assert.h LibC: Allow multiple includes of <assert.h> 2021-12-23 17:53:46 -08:00
byteswap.h Everywhere: Use "the SerenityOS developers." in copyright headers 2021-04-29 00:59:26 +02:00
CMakeLists.txt Kernel+LibC: Stub out getifaddrs() and freeifaddrs() 2021-12-22 00:02:36 -08:00
crt0.cpp LibC: Avoid unnecessary mprotect during program initialization 2021-11-11 09:20:35 +01:00
crt0_shared.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ctype.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ctype.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
cxxabi.cpp LibC: Avoid unnecessary mprotect during program finalization 2021-11-11 09:20:35 +01:00
dirent.cpp LibC: Add alphasort() implementation 2021-12-28 11:00:51 +01:00
dirent.h LibC: Add alphasort() implementation 2021-12-28 11:00:51 +01:00
dlfcn.cpp LibC+LibELF: Implement dladdr() 2021-06-06 22:16:11 +02:00
elf.h LibC+LibELF: Add definitions for extra dtags 2021-09-26 12:45:55 +02:00
endian.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
errno.h Kernel+LibC: Move errno definitions to Kernel/API/POSIX 2021-12-16 22:21:35 +03:30
errno_codes.h Kernel+LibC: Add ECANCELED errno value 2021-12-29 03:42:45 -08:00
fcntl.cpp Kernel+LibC: Pack SC_inode_watcher_add_watch_params struct better 2021-09-16 17:17:13 +02:00
fcntl.h Kernel+LibC: Share definitions in fcntl.h and sys/types.h 2021-08-14 19:58:11 +02:00
fd_set.h LibC: Modify fd_set to be compatible with X/OPEN 2021-08-22 10:29:06 +02:00
fenv.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
fenv.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
float.h LibC: Don't include fenv.h from float.h 2021-07-08 10:11:00 +02:00
fnmatch.cpp Everywhere: Fix more Copyright header inconsistencies 2021-10-04 11:10:09 +01:00
fnmatch.h Everywhere: Fix more Copyright header inconsistencies 2021-10-04 11:10:09 +01:00
getopt.cpp Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
getopt.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
grp.cpp Kernel+LibC: Move errno definitions to Kernel/API/POSIX 2021-12-16 22:21:35 +03:30
grp.h LibC: Fix grp.h includes 2021-07-17 13:00:33 +02:00
iconv.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ifaddrs.cpp Kernel+LibC: Stub out getifaddrs() and freeifaddrs() 2021-12-22 00:02:36 -08:00
ifaddrs.h Kernel+LibC: Stub out getifaddrs() and freeifaddrs() 2021-12-22 00:02:36 -08:00
inttypes.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
inttypes.h LibC: Don't include AK headers in system headers 2021-07-15 23:51:59 +02:00
ioctl.cpp LibC: Don't truncate arguments for ioctl() on x86_64 2021-07-22 04:18:39 +04:30
langinfo.cpp Everywhere: Fix more Copyright header inconsistencies 2021-10-04 11:10:09 +01:00
langinfo.h Everywhere: Fix more Copyright header inconsistencies 2021-10-04 11:10:09 +01:00
libcinit.cpp LibC+DynamicLoader: Store the auxiliary vector address at startup 2021-09-20 18:32:09 +02:00
libgen.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
libgen.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
limits.h LibC: Implement ungetwc() 2021-12-21 21:24:36 +03:30
link.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
link.h Userland: Prefer using ARCH() over __LP64__ 2021-07-13 23:19:33 +02:00
locale.cpp LibC: Let setlocale() pretend that setting the locale succeeded 2021-06-05 10:56:37 +02:00
locale.h LibC: Define locale categories (LC_*) as macros 2021-10-23 23:31:43 -07:00
malloc.cpp AK+Everywhere: Replace __builtin bit functions 2021-12-21 22:13:51 +01:00
mallocdefs.h AK+Everywhere: Reduce the number of template parameters of IntrusiveList 2021-09-10 18:05:46 +03:00
memory.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
mntent.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
mntent.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
net.cpp LibC: Add in6addr_loopback and IN6ADDR_LOOPBACK_INIT constant 2021-12-28 11:00:51 +01:00
netdb.cpp LibC: Stub out the rest of the getnameinfo flags 2021-12-05 12:53:29 +01:00
netdb.h LibC: Stub out the rest of the getnameinfo flags 2021-12-05 12:53:29 +01:00
nl_types.h Everywhere: Fix more Copyright header inconsistencies 2021-10-04 11:10:09 +01:00
paths.h Everywhere: Use "the SerenityOS developers." in copyright headers 2021-04-29 00:59:26 +02:00
poll.cpp LibC: Add POSIX spec comments for poll 2021-12-21 18:16:48 -08:00
poll.h Kernel+LibC: Share definitions for poll.h 2021-08-14 19:58:11 +02:00
priority.cpp LibC: Add getpriority() and setpriority() stubs 2021-09-23 18:51:21 +02:00
pthread_forward.cpp LibC+AK: Remove our custom macros from <assert.h> 2021-06-08 17:29:57 +02:00
pthread_integration.cpp LibC: Only set owner on recursive mutexes 2021-07-06 17:25:34 +02:00
pthread_tls.cpp Toolchain+Userland: Enable TLS for x86_64 2021-07-04 01:07:28 +02:00
pty.cpp LibC: Remove debug spam from openpty() 2021-10-26 08:47:06 +02:00
pty.h LibC: Remove 'int* aslave' parameter from forkpty() 2021-05-06 13:52:46 +01:00
pwd.cpp LibC: Do not include errno.h inside unistd.h 2021-05-14 22:24:02 +02:00
pwd.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
qsort.cpp LibC: Add POSIX spec comments for qsort 2021-12-21 18:16:48 -08:00
regex.cpp LibC: Add stub forwarders to LibRegex C API 2021-08-12 18:56:30 +02:00
regex.h LibRegex: Disallow duplicate named capture groups in ECMA262 parser 2021-12-21 14:04:23 +01:00
resolv.cpp Everywhere: Fix more Copyright header inconsistencies 2021-10-04 11:10:09 +01:00
resolv.h Everywhere: Fix more Copyright header inconsistencies 2021-10-04 11:10:09 +01:00
scanf.cpp LibC: Support X modifier for scanf 2022-01-02 08:10:08 +02:00
sched.cpp LibC: Add POSIX spec comments for sched APIs 2021-12-21 18:16:48 -08:00
sched.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
search.cpp LibC: Add POSIX spec comments for search APIs 2021-12-21 18:16:48 -08:00
search.h LibC: Add missing header in search.h 2021-10-20 09:20:18 +01:00
serenity.cpp LibC: Implement serenity_open 2021-12-16 22:21:35 +03:30
serenity.h LibC: Implement serenity_open 2021-12-16 22:21:35 +03:30
setjmp.h LibC: Implement _setjmp and _longjmp 2021-12-24 05:26:21 -08:00
shadow.cpp LibC: Allow empty spwd members when writing shadow entries via putspent 2021-05-30 17:42:03 +01:00
shadow.h LibCore: Fix building the library on macOS 2021-05-01 15:56:16 +02:00
signal.cpp LibC: Add POSIX spec comments for signal APIs 2021-12-21 18:16:48 -08:00
signal.h LibC: Implement sigwait() 2021-12-12 08:34:19 +02:00
signal_numbers.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
spawn.cpp LibC: Add POSIX spec comments for posix_spawn APIs 2021-12-21 18:16:48 -08:00
spawn.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ssp.cpp Everywhere: Make some symbols __attribute__((used)) for LTO 2021-10-17 17:09:58 +01:00
stat.cpp LibC: Add POSIX spec comments for stat APIs 2021-12-21 18:16:48 -08:00
stdarg.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
stddef.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
stdint.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
stdio.cpp LibC: Implement `flockfile and funlockfile` 2022-01-01 09:50:32 +00:00
stdio.h Kernel+UE+LibC: Remove unused dbgputch syscall 2021-11-24 22:56:39 +01:00
stdio_ext.h Everywhere: Fix more Copyright header inconsistencies 2021-10-04 11:10:09 +01:00
stdlib.cpp LibC: Buffer randomness to avoid syscall in every arc4random_buf() 2021-12-25 14:20:13 +01:00
stdlib.h LibC: Implement ungetwc() 2021-12-21 21:24:36 +03:30
string.cpp LibC: Add rindex() and index() APIs 2021-12-28 11:00:51 +01:00
string.h LibC: Include strings.h in string.h 2022-01-04 07:27:04 +00:00
strings.cpp LibC: Add POSIX spec comments for string APIs 2021-12-21 18:16:48 -08:00
strings.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
stubs.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
sysexits.h LibC: Use EX_IOERR instead of EX_IOER 2021-06-10 20:21:08 +01:00
syslog.cpp LibC: Convert StringBuilder::appendf() => AK::Format 2021-05-07 21:12:09 +02:00
syslog.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
termcap.cpp LibC: Mark termcap symbols as weak 2021-10-15 14:47:41 -07:00
termcap.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
termios.cpp LibC: Stub out tcsendbreak(..) and tcdrain(..) 2021-12-29 03:17:41 -08:00
termios.h LibC: Stub out tcsendbreak(..) and tcdrain(..) 2021-12-29 03:17:41 -08:00
time.cpp LibC: Don't delete null check in gettimeofday 2021-08-12 21:10:44 +02:00
time.h Kernel+LibC: Share definitions for time.h and sys/stat.h 2021-08-14 19:58:11 +02:00
times.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ulimit.cpp LibC: Add stubs for getrlimit()/setrlimit() 2021-05-08 19:14:21 +02:00
ulimit.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
unistd.cpp Kernel+LibC+LibCore: Add lchown and fchownat functions 2022-01-01 15:08:49 +01:00
unistd.h Kernel+LibC+LibCore: Add lchown and fchownat functions 2022-01-01 15:08:49 +01:00
utime.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
utime.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
utmp.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
utsname.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
wchar.cpp LibC: Add POSIX spec links to all applicable wide character functions 2021-12-21 21:24:36 +03:30
wchar.h LibC: Make WEOF a signed value on clang 2021-12-21 21:24:36 +03:30
wctype.cpp Everywhere: Fix more Copyright header inconsistencies 2021-10-04 11:10:09 +01:00
wctype.h Everywhere: Fix more Copyright header inconsistencies 2021-10-04 11:10:09 +01:00
wstdio.cpp LibC: Add POSIX spec links to all applicable wide character functions 2021-12-21 21:24:36 +03:30