mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-01 00:38:31 +00:00
parent
2d64b9994b
commit
10fd8bdb70
1397 changed files with 1204 additions and 5031 deletions
|
@ -40,8 +40,7 @@
|
|||
#include "tool/decode/lib/pollnames.h"
|
||||
|
||||
void SetUpOnce(void) {
|
||||
pledge("stdio proc inet", 0);
|
||||
errno = 0;
|
||||
ASSERT_SYS(0, 0, pledge("stdio proc inet", 0));
|
||||
}
|
||||
|
||||
dontdiscard char *FormatPollFd(struct pollfd p[2]) {
|
||||
|
|
|
@ -24,8 +24,7 @@
|
|||
#include "libc/time/time.h"
|
||||
|
||||
void SetUpOnce(void) {
|
||||
pledge("stdio", 0);
|
||||
errno = 0;
|
||||
ASSERT_SYS(0, 0, pledge("stdio", 0));
|
||||
}
|
||||
|
||||
// TEST(select, allZero) {
|
||||
|
|
|
@ -33,8 +33,7 @@
|
|||
char testlib_enable_tmp_setup_teardown;
|
||||
|
||||
void SetUpOnce(void) {
|
||||
pledge("stdio rpath wpath cpath proc inet", 0);
|
||||
errno = 0;
|
||||
ASSERT_SYS(0, 0, pledge("stdio rpath wpath cpath proc inet", 0));
|
||||
}
|
||||
|
||||
TEST(sendfile, test) {
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include "libc/runtime/gc.internal.h"
|
||||
#include "libc/sock/sock.h"
|
||||
#include "libc/sock/struct/msghdr.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/af.h"
|
||||
#include "libc/sysv/consts/o.h"
|
||||
#include "libc/sysv/consts/sock.h"
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/calls/struct/timeval.h"
|
||||
#include "libc/errno.h"
|
||||
#include "libc/sock/sock.h"
|
||||
#include "libc/sock/struct/sockaddr.h"
|
||||
#include "libc/sysv/consts/af.h"
|
||||
|
@ -28,8 +29,7 @@
|
|||
#include "libc/testlib/testlib.h"
|
||||
|
||||
void SetUpOnce(void) {
|
||||
pledge("stdio inet", 0);
|
||||
errno = 0;
|
||||
ASSERT_SYS(0, 0, pledge("stdio inet", 0));
|
||||
}
|
||||
|
||||
TEST(setsockopt, SO_RCVTIMEO) {
|
||||
|
|
|
@ -26,8 +26,7 @@
|
|||
#include "libc/testlib/testlib.h"
|
||||
|
||||
void SetUpOnce(void) {
|
||||
pledge("stdio tty", 0);
|
||||
errno = 0;
|
||||
ASSERT_SYS(0, 0, pledge("stdio tty", 0));
|
||||
}
|
||||
|
||||
TEST(socketpair, testAfUnixStream) {
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/sock/sock.h"
|
||||
#include "libc/sock/struct/sockaddr.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/af.h"
|
||||
#include "libc/sysv/consts/so.h"
|
||||
#include "libc/sysv/consts/sock.h"
|
||||
|
@ -35,8 +36,7 @@
|
|||
char testlib_enable_tmp_setup_teardown;
|
||||
|
||||
void SetUpOnce(void) {
|
||||
pledge("stdio rpath cpath proc unix", 0);
|
||||
errno = 0;
|
||||
ASSERT_SYS(0, 0, pledge("stdio rpath cpath proc unix", 0));
|
||||
}
|
||||
|
||||
void DatagramServer(void) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue