Add strace to aarch64 vfork()

This commit is contained in:
Justine Tunney 2023-11-05 09:34:49 -08:00
parent 4f100d2aad
commit 20c794a353
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
2 changed files with 12 additions and 28 deletions

View file

@ -1,27 +0,0 @@
#ifndef COSMOPOLITAN_LIBC_SOCK_OVERLAPPED_H_
#define COSMOPOLITAN_LIBC_SOCK_OVERLAPPED_H_
#include "libc/nt/struct/overlapped.h"
#include "libc/thread/thread.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
#define wsa_overlapped_cleanup_push(handle, overlap) \
{ \
struct WsaOverlappedCleanup wsa_overlapped_cleanup = {handle, overlap}; \
pthread_cleanup_push(wsa_overlapped_cleanup_callback, \
&wsa_overlapped_cleanup);
#define wsa_overlapped_cleanup_pop() \
pthread_cleanup_pop(false); \
}
struct WsaOverlappedCleanup {
int64_t handle;
struct NtOverlapped *overlap;
};
void wsa_overlapped_cleanup_callback(void *);
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif /* COSMOPOLITAN_LIBC_SOCK_OVERLAPPED_H_ */