Cygwin: add transform_chars_af_unix helper

This function is going to be used for transposing sun_path of
abstract sockets.  This also adds a transposition of the NUL
character to tfx_chars since NUL-bytes in abstract socket names
are perfectly valid.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2018-03-02 18:11:57 +01:00
parent 488221cf5c
commit 7d260cfac4
2 changed files with 13 additions and 2 deletions

View File

@@ -96,6 +96,8 @@ transform_chars (PUNICODE_STRING upath, USHORT start_idx)
upath->Buffer + upath->Length / sizeof (WCHAR) - 1);
}
PWCHAR transform_chars_af_unix (PWCHAR, const char *, __socklen_t);
/* Memory checking */
int __reg2 check_invalid_virtual_addr (const void *s, unsigned sz);