To use O_ASYNC you will need to use the pcntl extension.
F_SETFL - Sets the file descriptors flags to the value specified by arg, Which can be O_APPEND,O_NONBLOCK or O_ASYNC. To use O_ASYNC you will need to use the pcntl extension.