include/compat/sys

Branch


Log

Author Commit Date CI Message
Brent Cook 9ba4b33d 2025-04-16T04:26:34 change prefix for fstat
Brent Cook 78b86a2a 2025-04-12T16:59:51 switch to using high bit for fd detection of file/socket
Theo Buehler 3467d6f2 2024-08-02T21:54:08 Attempt to fix 2038 problem with MSVC
Brent Cook 3a757272 2023-07-05T07:08:32 move attribute shims There's not a great place for these, but since they are internal, we can just move them to the most common header.
Sebastian Blunt fe903fb7 2022-04-15T23:48:50 Fix unreachable nc portability shim This fixes nc failing to run on darwin due to it incorrectly setting the linux-specific SOCK_NONBLOCK flag on connect. nc already had a portability shim in apps/nc/compat/sys/socket.h, which kicks in if SOCK_NONBLOCK is undefined. But that header includes include/compat/sys/socket.h, which also has a portability shim that defines a default value for SOCK_NONBLOCK if it's undefined. Thus the first portability shim was unreachable. Fixes this by moving the NEED_SOCKET_FLAGS flag into the outer shim, and having the inner shim activate if NEED_SOCKET_FLAGS is defined. This closes https://github.com/libressl-portable/portable/issues/631
kinichiro 461ec453 2020-09-13T12:58:37 Add queue.h tree.h _null.h Import queue.h tree.h _null.h header files from OpenBSD upstream since x509_issuer_cache.c requires them.
Brent Cook 53524626 2019-02-09T09:03:13 add __dead__ annotation support
Sergei Trofimovich 787d8d24 2018-05-19T17:31:42 __warn_references: tweak assembly for "gnu.warning" section On some targets ';' (like hppa) is treated as a comment in assembly files. This occasionally causes the following assembly failures: ``` Error: can't resolve `.gnu.warning.EVP_DecryptFinal' {.gnu.warning.EVP_DecryptFinal section} - `.Ltext0' {.text section} ``` Note how branch (or other reference) attempts to cross the boundary across two section types: '.text' and '.gnu.warning'. Tobias Ulmer notes that openbsd already uses newlines for similar macro: https://github.com/openbsd/src/blob/master/sys/arch/hppa/include/cdefs.h This change switches from ';' to newline as well. Tested on hppa2.0 and x86_64. Reported-by: Jeroen Roovers Bug: https://bugs.gentoo.org/656104 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Brent Cook 987aa6a0 2018-03-22T20:50:24 add clock_gettime for macos 10.11 and earlier
kinichiro 3681d022 2018-02-25T01:59:39 Add compat bits for libtls on Windows
kinichiro f2953bc2 2018-02-11T23:31:43 Add file permission define for Windows and MinGW build
kinichiro 965a8910 2017-12-25T16:30:49 Add CLOCK_MONOTONIC and timersub for the OS that does not have them
kinichiro 530fbba1 2017-05-07T02:23:55 Add definition of in_addr_t for Windows build
kinichiro fb936f89 2017-01-28T02:30:16 Move S_IRGRP and S_IROTH from fcntl.h to sys/stat.h - S_IRGRP and S_IROTH should be defined in sys/stat.h rather than fcntl.h - Old MinGW64 on Ubuntu 14.04 appears not to have S_IRGRP and S_IROTH - MinGW64 has __WIN32 defined but does not have _MSC_VER defined
Brent Cook dfb6b11e 2017-01-15T04:30:41 include pipe2/socketpair compat for macOS
Brent Cook b7ba692f 2016-09-14T23:40:10 ensure that __STRING works
Brent Cook 08837a82 2016-09-04T09:04:01 more cdefs.h removal
Brent Cook 6f24864a 2016-09-04T07:57:13 cdefs.h should not be required anywhere
Brent Cook 6040ff04 2016-09-04T07:38:16 wire up sys/types.h to pull in sys/cdefs.h
Brent Cook 696ba18c 2015-09-13T18:57:29 fixup windows and older linux builds
Brent Cook 8c90be2a 2015-09-13T11:56:41 allow nc to build on linux and os x
Brent Cook 5f4e95e7 2015-09-08T15:00:09 updates for MSVC 2015's degenerate headers Note that 'perror' moves from stdio.h to stdlib.h, and 'rename' moves from stdio.h to io.h. Also, standard C includes move from the compiler to the Windows SDK, which changes the base path for the include files.
Brent Cook cbdc8ca8 2015-07-21T12:04:07 tighten up compat include paths, fix glibc compatibility
Brent Cook 5d8a1cf7 2014-07-10T22:06:10 add initial CMake and Visual Studio build support This moves the compatibility include files from include to include/compat so we can use the awful MS C compiler <../include/> trick to emulate the GNU #include_next extension. This also removes a few old compat files we do not need anymore.