aboutsummaryrefslogtreecommitdiff
path: root/libphobos/libdruntime/core/sys/posix/sys/filio.d
blob: 3574bc69adaa7e06b5d90d78ba5fc2f2a4e0dc8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/**
 * D header file for POSIX.
 *
 * License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
 */

module core.sys.posix.sys.filio;

import core.sys.posix.sys.ioccom;

version (OSX)
    version = Darwin;
else version (iOS)
    version = Darwin;
else version (TVOS)
    version = Darwin;
else version (WatchOS)
    version = Darwin;

version (Posix):

nothrow @nogc:

version (Darwin)
{
    // File-descriptor ioctl's
    enum uint FIOCLEX   = _IO('f', 1);         // set close on exec on fd
    enum uint FIONCLEX  = _IO('f', 2);         // remove close on exec
    enum uint FIONREAD  = _IOR!(int)('f', 127); // get # bytes to read
    enum uint FIONBIO   = _IOW!(int)('f', 126); // set/clear non-blocking i/o
    enum uint FIOASYNC  = _IOW!(int)('f', 125); // set/clear async i/o
    enum uint FIOSETOWN = _IOW!(int)('f', 124); // set owner
    enum uint FIOGETOWN = _IOR!(int)('f', 123); // get owner
    enum uint FIODTYPE  = _IOR!(int)('f', 122); // get d_type
}