Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
__errc222 linesDownload Raw Back to include
1// -*- C++ -*-2//===---------------------------- __errc ----------------------------------===//3//4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.5// See https://llvm.org/LICENSE.txt for license information.6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception7//8//===----------------------------------------------------------------------===//9 10#ifndef _LIBCUDACXX___ERRC11#define _LIBCUDACXX___ERRC12 13/*14    system_error synopsis15 16namespace std17{18 19enum class errc20{21    address_family_not_supported,       // EAFNOSUPPORT22    address_in_use,                     // EADDRINUSE23    address_not_available,              // EADDRNOTAVAIL24    already_connected,                  // EISCONN25    argument_list_too_long,             // E2BIG26    argument_out_of_domain,             // EDOM27    bad_address,                        // EFAULT28    bad_file_descriptor,                // EBADF29    bad_message,                        // EBADMSG30    broken_pipe,                        // EPIPE31    connection_aborted,                 // ECONNABORTED32    connection_already_in_progress,     // EALREADY33    connection_refused,                 // ECONNREFUSED34    connection_reset,                   // ECONNRESET35    cross_device_link,                  // EXDEV36    destination_address_required,       // EDESTADDRREQ37    device_or_resource_busy,            // EBUSY38    directory_not_empty,                // ENOTEMPTY39    executable_format_error,            // ENOEXEC40    file_exists,                        // EEXIST41    file_too_large,                     // EFBIG42    filename_too_long,                  // ENAMETOOLONG43    function_not_supported,             // ENOSYS44    host_unreachable,                   // EHOSTUNREACH45    identifier_removed,                 // EIDRM46    illegal_byte_sequence,              // EILSEQ47    inappropriate_io_control_operation, // ENOTTY48    interrupted,                        // EINTR49    invalid_argument,                   // EINVAL50    invalid_seek,                       // ESPIPE51    io_error,                           // EIO52    is_a_directory,                     // EISDIR53    message_size,                       // EMSGSIZE54    network_down,                       // ENETDOWN55    network_reset,                      // ENETRESET56    network_unreachable,                // ENETUNREACH57    no_buffer_space,                    // ENOBUFS58    no_child_process,                   // ECHILD59    no_link,                            // ENOLINK60    no_lock_available,                  // ENOLCK61    no_message_available,               // ENODATA62    no_message,                         // ENOMSG63    no_protocol_option,                 // ENOPROTOOPT64    no_space_on_device,                 // ENOSPC65    no_stream_resources,                // ENOSR66    no_such_device_or_address,          // ENXIO67    no_such_device,                     // ENODEV68    no_such_file_or_directory,          // ENOENT69    no_such_process,                    // ESRCH70    not_a_directory,                    // ENOTDIR71    not_a_socket,                       // ENOTSOCK72    not_a_stream,                       // ENOSTR73    not_connected,                      // ENOTCONN74    not_enough_memory,                  // ENOMEM75    not_supported,                      // ENOTSUP76    operation_canceled,                 // ECANCELED77    operation_in_progress,              // EINPROGRESS78    operation_not_permitted,            // EPERM79    operation_not_supported,            // EOPNOTSUPP80    operation_would_block,              // EWOULDBLOCK81    owner_dead,                         // EOWNERDEAD82    permission_denied,                  // EACCES83    protocol_error,                     // EPROTO84    protocol_not_supported,             // EPROTONOSUPPORT85    read_only_file_system,              // EROFS86    resource_deadlock_would_occur,      // EDEADLK87    resource_unavailable_try_again,     // EAGAIN88    result_out_of_range,                // ERANGE89    state_not_recoverable,              // ENOTRECOVERABLE90    stream_timeout,                     // ETIME91    text_file_busy,                     // ETXTBSY92    timed_out,                          // ETIMEDOUT93    too_many_files_open_in_system,      // ENFILE94    too_many_files_open,                // EMFILE95    too_many_links,                     // EMLINK96    too_many_symbolic_link_levels,      // ELOOP97    value_too_large,                    // EOVERFLOW98    wrong_protocol_type                 // EPROTOTYPE99};100 101*/102 103#include <__config>104#include <cerrno>105 106#if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC)107#  pragma GCC system_header108#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG)109#  pragma clang system_header110#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC)111#  pragma system_header112#endif // no system header113 114_LIBCUDACXX_BEGIN_NAMESPACE_STD115 116// Some error codes are not present on all platforms, so we provide equivalents117// for them:118 119//enum class errc120_LIBCUDACXX_DECLARE_STRONG_ENUM(errc)121{122    address_family_not_supported        = EAFNOSUPPORT,123    address_in_use                      = EADDRINUSE,124    address_not_available               = EADDRNOTAVAIL,125    already_connected                   = EISCONN,126    argument_list_too_long              = E2BIG,127    argument_out_of_domain              = EDOM,128    bad_address                         = EFAULT,129    bad_file_descriptor                 = EBADF,130    bad_message                         = EBADMSG,131    broken_pipe                         = EPIPE,132    connection_aborted                  = ECONNABORTED,133    connection_already_in_progress      = EALREADY,134    connection_refused                  = ECONNREFUSED,135    connection_reset                    = ECONNRESET,136    cross_device_link                   = EXDEV,137    destination_address_required        = EDESTADDRREQ,138    device_or_resource_busy             = EBUSY,139    directory_not_empty                 = ENOTEMPTY,140    executable_format_error             = ENOEXEC,141    file_exists                         = EEXIST,142    file_too_large                      = EFBIG,143    filename_too_long                   = ENAMETOOLONG,144    function_not_supported              = ENOSYS,145    host_unreachable                    = EHOSTUNREACH,146    identifier_removed                  = EIDRM,147    illegal_byte_sequence               = EILSEQ,148    inappropriate_io_control_operation  = ENOTTY,149    interrupted                         = EINTR,150    invalid_argument                    = EINVAL,151    invalid_seek                        = ESPIPE,152    io_error                            = EIO,153    is_a_directory                      = EISDIR,154    message_size                        = EMSGSIZE,155    network_down                        = ENETDOWN,156    network_reset                       = ENETRESET,157    network_unreachable                 = ENETUNREACH,158    no_buffer_space                     = ENOBUFS,159    no_child_process                    = ECHILD,160    no_link                             = ENOLINK,161    no_lock_available                   = ENOLCK,162#ifdef ENODATA163    no_message_available                = ENODATA,164#else165    no_message_available                = ENOMSG,166#endif167    no_message                          = ENOMSG,168    no_protocol_option                  = ENOPROTOOPT,169    no_space_on_device                  = ENOSPC,170#ifdef ENOSR171    no_stream_resources                 = ENOSR,172#else173    no_stream_resources                 = ENOMEM,174#endif175    no_such_device_or_address           = ENXIO,176    no_such_device                      = ENODEV,177    no_such_file_or_directory           = ENOENT,178    no_such_process                     = ESRCH,179    not_a_directory                     = ENOTDIR,180    not_a_socket                        = ENOTSOCK,181#ifdef ENOSTR182    not_a_stream                        = ENOSTR,183#else184    not_a_stream                        = EINVAL,185#endif186    not_connected                       = ENOTCONN,187    not_enough_memory                   = ENOMEM,188    not_supported                       = ENOTSUP,189    operation_canceled                  = ECANCELED,190    operation_in_progress               = EINPROGRESS,191    operation_not_permitted             = EPERM,192    operation_not_supported             = EOPNOTSUPP,193    operation_would_block               = EWOULDBLOCK,194    owner_dead                          = EOWNERDEAD,195    permission_denied                   = EACCES,196    protocol_error                      = EPROTO,197    protocol_not_supported              = EPROTONOSUPPORT,198    read_only_file_system               = EROFS,199    resource_deadlock_would_occur       = EDEADLK,200    resource_unavailable_try_again      = EAGAIN,201    result_out_of_range                 = ERANGE,202    state_not_recoverable               = ENOTRECOVERABLE,203#ifdef ETIME204    stream_timeout                      = ETIME,205#else206    stream_timeout                      = ETIMEDOUT,207#endif208    text_file_busy                      = ETXTBSY,209    timed_out                           = ETIMEDOUT,210    too_many_files_open_in_system       = ENFILE,211    too_many_files_open                 = EMFILE,212    too_many_links                      = EMLINK,213    too_many_symbolic_link_levels       = ELOOP,214    value_too_large                     = EOVERFLOW,215    wrong_protocol_type                 = EPROTOTYPE216};217_LIBCUDACXX_DECLARE_STRONG_ENUM_EPILOG(errc)218 219_LIBCUDACXX_END_NAMESPACE_STD220 221#endif  // _LIBCUDACXX___ERRC222 
codekingpro/portable-devtools · Team Ai