Skip to content

Commit

Permalink
[libc][errno] remove mips+sparc specific errnos (#92798)
Browse files Browse the repository at this point in the history
These are untested and unsupported platforms. The pattern used makes sense for
platform specific error numbers, but these are platforms we do not support.
Excise this code.

Link: #91150
  • Loading branch information
nickdesaulniers committed May 20, 2024
1 parent 51ba7a8 commit dce197a
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 72 deletions.
6 changes: 0 additions & 6 deletions libc/include/llvm-libc-macros/linux/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/mips)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/sparc)

add_header(
error_number_macros
HDR
error-number-macros.h
DEPENDS
.mips.error_number_macros
.sparc.error_number_macros
)

add_header(
Expand Down
8 changes: 0 additions & 8 deletions libc/include/llvm-libc-macros/linux/error-number-macros.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
#ifndef LLVM_LIBC_MACROS_LINUX_ERROR_NUMBER_MACROS_H
#define LLVM_LIBC_MACROS_LINUX_ERROR_NUMBER_MACROS_H

#if defined(__mips__)
#include "mips/error-number-macros.h"

#elif defined(__sparc__)
#include "sparc/error-number-macros.h"

#else
#ifndef ECANCELED
#define ECANCELED 125
#endif // ECANCELED
Expand All @@ -27,6 +20,5 @@
#ifndef EHWPOISON
#define EHWPOISON 133
#endif // EHWPOISON
#endif

#endif // LLVM_LIBC_MACROS_LINUX_ERROR_NUMBER_MACROS_H
5 changes: 0 additions & 5 deletions libc/include/llvm-libc-macros/linux/mips/CMakeLists.txt

This file was deleted.

24 changes: 0 additions & 24 deletions libc/include/llvm-libc-macros/linux/mips/error-number-macros.h

This file was deleted.

5 changes: 0 additions & 5 deletions libc/include/llvm-libc-macros/linux/sparc/CMakeLists.txt

This file was deleted.

24 changes: 0 additions & 24 deletions libc/include/llvm-libc-macros/linux/sparc/error-number-macros.h

This file was deleted.

0 comments on commit dce197a

Please sign in to comment.