* dcrt0.cc (_dll_crt0): Don't check sync_startup if threadfunc_ix is set.
* external.cc (cygwin_internal): Implement CW_GET_BINMODE. * include/sys/cygwin.h: Declare CW_GET_BINMODE.
This commit is contained in:
@@ -289,6 +289,17 @@ cygwin_internal (cygwin_getinfo_types t, ...)
|
||||
struct __group32 *gr = internal_getgrsid (sid);
|
||||
return gr ? gr->gr_gid : (__gid32_t)-1;
|
||||
}
|
||||
case CW_GET_BINMODE:
|
||||
{
|
||||
const char *path = va_arg (arg, const char *);
|
||||
path_conv p (path, PC_SYM_FOLLOW | PC_FULL | PC_NULLEMPTY);
|
||||
if (p.error)
|
||||
{
|
||||
set_errno (p.error);
|
||||
return (unsigned long) -1;
|
||||
}
|
||||
return p.binmode ();
|
||||
}
|
||||
default:
|
||||
return (DWORD) -1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user