mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 06:48:31 +00:00
Replace COSMO define with _COSMO_SOURCE
This change might cause ABI breakages for /opt/cosmos. It's needed to help us better conform to header declaration practices.
This commit is contained in:
parent
a033b65a33
commit
c776a32f75
238 changed files with 858 additions and 1069 deletions
|
@ -129,7 +129,7 @@ TEST(sendfile, testPositioning) {
|
|||
ASSERT_TRUE(errno == EINVAL || errno == EPIPE);
|
||||
errno = 0;
|
||||
// XXX: WSL1 clobbers file offset on failure!
|
||||
if (!IsWsl1()) {
|
||||
if (!__iswsl1()) {
|
||||
ASSERT_EQ(12, GetFileOffset(5));
|
||||
}
|
||||
_Exit(0);
|
||||
|
|
|
@ -166,7 +166,7 @@ TEST(unix, serverGoesDown_usingSendTo_unlink) { // much easier
|
|||
ASSERT_SYS(0, 5, sendto(4, "hello", 5, 0, (void *)&addr, len));
|
||||
ASSERT_SYS(0, 5, read(3, buf, 8));
|
||||
ASSERT_SYS(0, 0, close(3));
|
||||
ASSERT_SYS(IsWsl1() ? ENOTCONN : ECONNREFUSED, -1,
|
||||
ASSERT_SYS(__iswsl1() ? ENOTCONN : ECONNREFUSED, -1,
|
||||
sendto(4, "hello", 5, 0, (void *)&addr, len));
|
||||
ASSERT_SYS(0, 0, unlink(addr.sun_path));
|
||||
ASSERT_SYS(ENOENT, -1, sendto(4, "hello", 5, 0, (void *)&addr, len));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue