zapret2-fork/nfq2/winnative/include/sys/cygwin.h
loop-uh 5e1409131e winws2: native windows build without cygwin1.dll
Cross compiled by llvm-mingw (nfq2/winnative/build.sh). Upstream sources are not
changed: a force-included header emulates the cygwin environment, compat.c
replaces the cygwin runtime (utf-8 file api, path conversion, command line and
@file parsing identical to cygwin, signals, wordexp).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 16:26:52 +03:00

11 lines
442 B
C

// winnative: path conversion replacement. "posix" paths are utf-8 windows paths with forward slashes
#pragma once
typedef unsigned int cygwin_conv_path_t;
#define CCP_POSIX_TO_WIN_A 0
#define CCP_POSIX_TO_WIN_W 1
#define CCP_WIN_A_TO_POSIX 2
#define CCP_WIN_W_TO_POSIX 3
#define CCP_CONVTYPE_MASK 3
#define CCP_ABSOLUTE 0
#define CCP_RELATIVE 0x100
ssize_t cygwin_conv_path(cygwin_conv_path_t what, const void *from, void *to, size_t size);