1 /* Target errno mappings for newlib/libgloss environment.
2 Copyright 1995-2021 Free Software Foundation, Inc.
3 Contributed by Mike Frysinger.
5 This file is part of simulators.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
20 /* This must come before any other includes. */
25 #include "sim/callback.h"
27 /* This file is kept up-to-date via the gennltvals.py script. Do not edit
28 anything between the START & END comment blocks below. */
30 CB_TARGET_DEFS_MAP cb_init_open_map
[] = {
31 /* gennltvals: START */
33 { "O_ACCMODE", O_ACCMODE
, (0|1|2) },
36 { "O_APPEND", O_APPEND
, 0x0008 },
39 { "O_CLOEXEC", O_CLOEXEC
, 0x40000 },
42 { "O_CREAT", O_CREAT
, 0x0200 },
45 { "O_DIRECT", O_DIRECT
, 0x80000 },
48 { "O_DIRECTORY", O_DIRECTORY
, 0x200000 },
51 { "O_EXCL", O_EXCL
, 0x0800 },
54 { "O_EXEC", O_EXEC
, 0x400000 },
57 { "O_NOCTTY", O_NOCTTY
, 0x8000 },
60 { "O_NOFOLLOW", O_NOFOLLOW
, 0x100000 },
63 { "O_NONBLOCK", O_NONBLOCK
, 0x4000 },
66 { "O_RDONLY", O_RDONLY
, 0 },
69 { "O_RDWR", O_RDWR
, 2 },
72 { "O_SEARCH", O_SEARCH
, 0x400000 },
75 { "O_SYNC", O_SYNC
, 0x2000 },
78 { "O_TRUNC", O_TRUNC
, 0x0400 },
81 { "O_WRONLY", O_WRONLY
, 1 },