Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-02-25 04:19:13 +0300
committerChristopher Faylor <me@cgf.cx>2004-02-25 04:19:13 +0300
commit5ef9bbc874c0f3210f84cd36adddfcd69cee2962 (patch)
tree09af6cbf3216f3cedcfe7ed00faf373368f33189 /winsup/cygwin/external.cc
parent5dbaca1607d7650bfb3c8fe2766ad3aed044e0c1 (diff)
* 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.
Diffstat (limited to 'winsup/cygwin/external.cc')
-rw-r--r--winsup/cygwin/external.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc
index 332879f8c..b14932426 100644
--- a/winsup/cygwin/external.cc
+++ b/winsup/cygwin/external.cc
@@ -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;
}