diff options
author | Christopher Faylor <me@cgf.cx> | 2002-10-07 20:06:16 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-10-07 20:06:16 +0000 |
commit | dd76747b8e7892a8a17be9149c600561f518399a (patch) | |
tree | 52cfc9ca165345eb291c6519c65dbbd882696d54 /winsup/cygwin/resource.cc | |
parent | 0709b9ba168f0562c7d01b08ec44849658212ff8 (diff) | |
download | cygnal-dd76747b8e7892a8a17be9149c600561f518399a.tar.gz cygnal-dd76747b8e7892a8a17be9149c600561f518399a.tar.bz2 cygnal-dd76747b8e7892a8a17be9149c600561f518399a.zip |
* dtable.cc (unknown_file): New variable.
(dtable::init_std_file_from_handle): Don't set binmode if we couldn't determine
the actual file name on stdin/stdout/stderr.
(handle_to_fn): Return unknown_file when can't determine filename.
Diffstat (limited to 'winsup/cygwin/resource.cc')
-rw-r--r-- | winsup/cygwin/resource.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/resource.cc b/winsup/cygwin/resource.cc index 0db6cd5b8..01e065bb5 100644 --- a/winsup/cygwin/resource.cc +++ b/winsup/cygwin/resource.cc @@ -83,8 +83,7 @@ fill_rusage (struct rusage *r, HANDLE h) } } -extern "C" -int +extern "C" int getrusage (int intwho, struct rusage *rusage_in) { int res = 0; |