mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-04 07:58:21 +00:00
This change addresses everything from stack smashing to %SYSTEMROOT% breaking socket(). Issues relating to compile.com not reporting text printed to stderr has been resolved for Windows builds.
19 lines
686 B
C
19 lines
686 B
C
#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_SECURITYATTRIBUTES_H_
|
|
#define COSMOPOLITAN_LIBC_NT_STRUCT_SECURITYATTRIBUTES_H_
|
|
#include "libc/mem/alloca.h"
|
|
#include "libc/nt/struct/securitydescriptor.h"
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
|
|
struct NtSecurityAttributes {
|
|
uint32_t nLength;
|
|
struct NtSecurityDescriptor *lpSecurityDescriptor;
|
|
bool32 bInheritHandle;
|
|
};
|
|
|
|
const char *DescribeNtSecurityAttributes(char[32],
|
|
struct NtSecurityAttributes *);
|
|
#define DescribeNtSecurityAttributes(x) \
|
|
DescribeNtSecurityAttributes(alloca(32), x)
|
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_SECURITYATTRIBUTES_H_ */
|