Remove B_FILE_NOT_FOUND from public headers.

Now that it is not used anywhere in the source tree following
previous commits.

Change-Id: Id2fc417a0658d09148e99587c613a928f1fbe4c2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4611
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
Augustin Cavalier
2021-10-19 15:58:54 +00:00
committed by waddlesplash
parent 6209570e34
commit eb1d596ff6
6 changed files with 6 additions and 9 deletions
+1 -2
View File
@@ -100,8 +100,7 @@
/* Storage Kit/File System Errors */
#define B_FILE_ERROR (B_STORAGE_ERROR_BASE + 0)
#define B_FILE_NOT_FOUND (B_STORAGE_ERROR_BASE + 1)
/* deprecated: use B_ENTRY_NOT_FOUND instead */
/* 1 was B_FILE_NOT_FOUND (deprecated) */
#define B_FILE_EXISTS (B_STORAGE_ERROR_BASE + 2)
#define B_ENTRY_NOT_FOUND (B_STORAGE_ERROR_BASE + 3)
#define B_NAME_TOO_LONG (B_STORAGE_ERROR_BASE + 4)
+1 -2
View File
@@ -99,8 +99,7 @@
/* Storage Kit/File System Errors */
#define B_FILE_ERROR (B_STORAGE_ERROR_BASE + 0)
#define B_FILE_NOT_FOUND (B_STORAGE_ERROR_BASE + 1)
/* deprecated: use B_ENTRY_NOT_FOUND instead */
/* 1 was B_FILE_NOT_FOUND (deprecated) */
#define B_FILE_EXISTS (B_STORAGE_ERROR_BASE + 2)
#define B_ENTRY_NOT_FOUND (B_STORAGE_ERROR_BASE + 3)
#define B_NAME_TOO_LONG (B_STORAGE_ERROR_BASE + 4)
@@ -564,7 +564,6 @@
/* Storage Kit/File System Errors */
#define B_FILE_ERROR FSSH_B_FILE_ERROR
#define B_FILE_NOT_FOUND FSSH_B_FILE_NOT_FOUND
#define B_FILE_EXISTS FSSH_B_FILE_EXISTS
#define B_ENTRY_NOT_FOUND FSSH_B_ENTRY_NOT_FOUND
#define B_NAME_TOO_LONG FSSH_B_NAME_TOO_LONG
-1
View File
@@ -96,7 +96,6 @@ enum {
/* Storage Kit/File System Errors */
#define FSSH_B_FILE_ERROR (FSSH_B_STORAGE_ERROR_BASE + 0)
#define FSSH_B_FILE_NOT_FOUND (FSSH_B_STORAGE_ERROR_BASE + 1)
#define FSSH_B_FILE_EXISTS (FSSH_B_STORAGE_ERROR_BASE + 2)
#define FSSH_B_ENTRY_NOT_FOUND (FSSH_B_STORAGE_ERROR_BASE + 3)
#define FSSH_B_NAME_TOO_LONG (FSSH_B_STORAGE_ERROR_BASE + 4)
+3 -2
View File
@@ -92,10 +92,11 @@ struct error_pair {
E(B_ERRORS_END),
E(B_FILE_ERROR),
E(B_FILE_EXISTS),
#ifdef _BEOS_R5_COMPATIBLE_
#define B_FILE_NOT_FOUND (B_STORAGE_ERROR_BASE + 1)
E(B_FILE_NOT_FOUND),
#ifdef B_FILE_TOO_LARGE
E(B_FILE_TOO_LARGE),
#endif
E(B_FILE_TOO_LARGE),
E(B_GENERAL_ERROR_BASE),
E(B_INTERFACE_ERROR_BASE),
E(B_INTERRUPTED),
+1 -1
View File
@@ -183,7 +183,7 @@ error_description(int error)
case B_FILE_ERROR:
// EBADF
return "Bad file descriptor";
case B_FILE_NOT_FOUND:
case (B_STORAGE_ERROR_BASE + 1): /* B_FILE_NOT_FOUND (deprecated) */
case B_ENTRY_NOT_FOUND:
// ENOENT
return "No such file or directory";