summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/pipe.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/pipe.cc')
-rw-r--r--winsup/cygwin/pipe.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/winsup/cygwin/pipe.cc b/winsup/cygwin/pipe.cc
index a6171f2f9..d56b32aff 100644
--- a/winsup/cygwin/pipe.cc
+++ b/winsup/cygwin/pipe.cc
@@ -151,6 +151,20 @@ fhandler_pipe::lseek (_off64_t offset, int whence)
return -1;
}
+int
+fhandler_pipe::fadvise (_off64_t offset, _off64_t length, int advice)
+{
+ set_errno (ESPIPE);
+ return -1;
+}
+
+int
+fhandler_pipe::ftruncate (_off64_t length, bool allow_truncate)
+{
+ set_errno (allow_truncate ? EINVAL : ESPIPE);
+ return -1;
+}
+
void
fhandler_pipe::set_close_on_exec (bool val)
{