mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-23 15:40:14 +08:00
2a3a03972b
Newlib for aarch64 uses libgloss for the backend. One common libgloss implementation is the 'rdimon' implementation, which uses the Arm Semihosting protocol. In order to support a remote host that runs on Windows we need to know whether a file is to be opened in binary or text mode. That means that we need to preserve this information via O_BINARY until we know what the libgloss binding will be. This patch simply copies the arm implementation from sys/arm/sys and puts it in machine/aarch64/sys, because we don't have a 'sys' subtree on aarch64.
13 lines
313 B
C
13 lines
313 B
C
#ifndef _SYS_FCNTL_H_
|
|
#define _SYS_FCNTL_H_
|
|
|
|
#include <sys/_default_fcntl.h>
|
|
|
|
/* We want to support O_BINARY for the open syscall.
|
|
For example, the Demon debug monitor has a separate
|
|
flag value for "rb" vs "r". */
|
|
#define _FBINARY 0x10000
|
|
#define O_BINARY _FBINARY
|
|
|
|
#endif /* _SYS_FCNTL_H_ */
|