|
|
|||
File indexing completed on 2026-05-10 08:44:30
0001 //===-- llvm/Support/ExitCodes.h - Exit codes for exit() -------*- C++ -*-===// 0002 // 0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 0004 // See https://llvm.org/LICENSE.txt for license information. 0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 0006 // 0007 //===----------------------------------------------------------------------===// 0008 /// 0009 /// \file 0010 /// This file contains definitions of exit codes for exit() function. They are 0011 /// either defined by sysexits.h if it is supported, or defined here if 0012 /// sysexits.h is not supported. 0013 /// 0014 //===----------------------------------------------------------------------===// 0015 0016 #ifndef LLVM_SUPPORT_EXITCODES_H 0017 #define LLVM_SUPPORT_EXITCODES_H 0018 0019 #include "llvm/Config/llvm-config.h" 0020 0021 #if HAVE_SYSEXITS_H 0022 #include <sysexits.h> 0023 #elif __MVS__ || defined(_WIN32) 0024 // <sysexits.h> does not exist on z/OS and Windows. The only value used in LLVM 0025 // is EX_IOERR, which is used to signal a special error condition (broken pipe). 0026 // Define the macro with its usual value from BSD systems, which is chosen to 0027 // not clash with more standard exit codes like 1. 0028 #define EX_IOERR 74 0029 #elif LLVM_ON_UNIX 0030 #error Exit code EX_IOERR not available 0031 #endif 0032 0033 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|