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
13 fhandler_dev_null::fhandler_dev_null () :
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. */