Cygwin: cygtls: rename sig to current_sig
[newlib-cygwin.git] / winsup / cygwin / fhandler / null.cc
blob49afd9c6dd0a93168f46e1b37732381dd642bb15
1 /* null.cc. /dev/null specifics.
3 This file is part of Cygwin.
5 This software is a copyrighted work licensed under the terms of the
6 Cygwin license. Please consult the file "CYGWIN_LICENSE" for
7 details. */
9 #include "winsup.h"
10 #include "path.h"
11 #include "fhandler.h"
13 fhandler_dev_null::fhandler_dev_null () :
14 fhandler_base ()
18 ssize_t
19 fhandler_dev_null::write (const void *ptr, size_t len)
21 /* Shortcut. This also fixes a problem with the NUL device on x86_64:
22 If you write > 4 GB in a single attempt, the bytes written returned
23 from by is numBytes & 0xffffffff. */
24 return len;