mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
os: Add OS_STD*_FILENO constants
This commit is contained in:
parent
72b3fd9664
commit
f0b3029ad3
@ -13,6 +13,13 @@
|
|||||||
# include "nvim/os/unix_defs.h"
|
# include "nvim/os/unix_defs.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/// File descriptor number used for standard IO streams
|
||||||
|
enum {
|
||||||
|
OS_STDIN_FILENO = STDIN_FILENO,
|
||||||
|
OS_STDOUT_FILENO = STDOUT_FILENO,
|
||||||
|
OS_STDERR_FILENO = STDERR_FILENO,
|
||||||
|
};
|
||||||
|
|
||||||
#define BASENAMELEN (NAME_MAX - 5)
|
#define BASENAMELEN (NAME_MAX - 5)
|
||||||
|
|
||||||
// Use the system path length if it makes sense.
|
// Use the system path length if it makes sense.
|
||||||
|
@ -91,4 +91,14 @@ typedef SSIZE_T ssize_t;
|
|||||||
# define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
|
# define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef STDIN_FILENO
|
||||||
|
# define STDIN_FILENO 0
|
||||||
|
#endif
|
||||||
|
#ifndef STDOUT_FILENO
|
||||||
|
# define STDOUT_FILENO 1
|
||||||
|
#endif
|
||||||
|
#ifndef STDERR_FILENO
|
||||||
|
# define STDERR_FILENO 2
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // NVIM_OS_WIN_DEFS_H
|
#endif // NVIM_OS_WIN_DEFS_H
|
||||||
|
Loading…
Reference in New Issue
Block a user