cosmopolitan/libc/nt/struct/reparsedatabuffer.h
Justine Tunney fa20edc44d
Reduce header complexity
- Remove most __ASSEMBLER__ __LINKER__ ifdefs
- Rename libc/intrin/bits.h to libc/serialize.h
- Block pthread cancelation in fchmodat() polyfill
- Remove `clang-format off` statements in third_party
2023-11-28 14:39:42 -08:00

32 lines
859 B
C

#ifndef COSMOPOLITAN_LIBC_NT_STRUCT_REPARSEDATABUFFER_H_
#define COSMOPOLITAN_LIBC_NT_STRUCT_REPARSEDATABUFFER_H_
COSMOPOLITAN_C_START_
struct NtReparseDataBuffer {
uint32_t ReparseTag;
uint16_t ReparseDataLength;
uint16_t Reserved;
union {
struct {
uint16_t SubstituteNameOffset;
uint16_t SubstituteNameLength;
uint16_t PrintNameOffset;
uint16_t PrintNameLength;
uint32_t Flags;
char16_t PathBuffer[1];
} SymbolicLinkReparseBuffer;
struct {
uint16_t SubstituteNameOffset;
uint16_t SubstituteNameLength;
uint16_t PrintNameOffset;
uint16_t PrintNameLength;
char16_t PathBuffer[1];
} MountPointReparseBuffer;
struct {
uint8_t DataBuffer[1];
} GenericReparseBuffer;
};
};
COSMOPOLITAN_C_END_
#endif /* COSMOPOLITAN_LIBC_NT_STRUCT_REPARSEDATABUFFER_H_ */