From: Kevin Day Date: Sat, 21 Nov 2020 21:54:31 +0000 (-0600) Subject: Cleanup: add F_memory, F_resource, and F_resource_not; rename F_memory_out to F_memor... X-Git-Tag: 0.5.2~63 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=ee5c33baf23649f9c8aea87831a23393f231d320;p=fll Cleanup: add F_memory, F_resource, and F_resource_not; rename F_memory_out to F_memory_not. --- diff --git a/level_0/f_account/c/account.c b/level_0/f_account/c/account.c index c50493e..2cc77e4 100644 --- a/level_0/f_account/c/account.c +++ b/level_0/f_account/c/account.c @@ -32,7 +32,7 @@ extern "C" { if (errno == EIO) return F_status_set_error(F_input_output); if (errno == EMFILE) return F_status_set_error(F_file_descriptor_max); if (errno == ENFILE) return F_status_set_error(F_file_open_max); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ERANGE) { if (length_max > 0) return F_status_set_error(F_buffer_too_small); @@ -63,7 +63,7 @@ extern "C" { if (errno == EIO) return F_status_set_error(F_input_output); if (errno == EMFILE) return F_status_set_error(F_file_descriptor_max); if (errno == ENFILE) return F_status_set_error(F_file_open_max); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ERANGE) return F_status_set_error(F_buffer_too_small); return F_status_set_error(F_failure); @@ -107,7 +107,7 @@ extern "C" { if (errno == EIO) return F_status_set_error(F_input_output); if (errno == EMFILE) return F_status_set_error(F_file_descriptor_max); if (errno == ENFILE) return F_status_set_error(F_file_open_max); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ERANGE) { if (length_max > 0) return F_status_set_error(F_buffer_too_small); @@ -138,7 +138,7 @@ extern "C" { if (errno == EIO) return F_status_set_error(F_input_output); if (errno == EMFILE) return F_status_set_error(F_file_descriptor_max); if (errno == ENFILE) return F_status_set_error(F_file_open_max); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ERANGE) return F_status_set_error(F_buffer_too_small); return F_status_set_error(F_failure); diff --git a/level_0/f_account/c/account.h b/level_0/f_account/c/account.h index da27e6b..ca11ede 100644 --- a/level_0/f_account/c/account.h +++ b/level_0/f_account/c/account.h @@ -48,7 +48,7 @@ extern "C" { * F_file_open_max (with error bit) too many open files. * F_input_output (with error bit) if an I/O error occurred. * F_interrupted (with error bit) when program received an interrupt signal, halting operation. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_parameter (with error bit) if a parameter is invalid. * F_failure (with error bit) on any other failure. * @@ -74,7 +74,7 @@ extern "C" { * F_file_open_max (with error bit) too many open files. * F_input_output (with error bit) if an I/O error occurred. * F_interrupted (with error bit) when program received an interrupt signal, halting operation. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_parameter (with error bit) if a parameter is invalid. * F_failure (with error bit) on any other failure. * diff --git a/level_0/f_directory/c/directory.c b/level_0/f_directory/c/directory.c index a875e35..08a0f5c 100644 --- a/level_0/f_directory/c/directory.c +++ b/level_0/f_directory/c/directory.c @@ -33,7 +33,7 @@ extern "C" { if (errno == ELOOP) return F_status_set_error(F_loop); if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == ENOENT) return F_file_found_not; - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOTDIR) return F_false; if (errno == EOVERFLOW) return F_status_set_error(F_number_overflow); @@ -59,7 +59,7 @@ extern "C" { if (errno == ELOOP) return F_status_set_error(F_loop); if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == ENOENT) return F_file_found_not; - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOTDIR) return F_false; if (errno == EOVERFLOW) return F_status_set_error(F_number_overflow); @@ -83,7 +83,7 @@ extern "C" { if (errno == EFAULT) return F_status_set_error(F_buffer); if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == ENOENT) return F_file_found_not; - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOTDIR) return F_false; if (errno == EOVERFLOW) return F_status_set_error(F_number_overflow); if (errno == ELOOP) return F_status_set_error(F_loop); @@ -109,7 +109,7 @@ extern "C" { if (errno == EFAULT) return F_status_set_error(F_buffer); if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == ENOENT) return F_file_found_not; - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOTDIR) return F_false; if (errno == EOVERFLOW) return F_status_set_error(F_number_overflow); if (errno == ELOOP) return F_status_set_error(F_loop); @@ -202,7 +202,7 @@ extern "C" { if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == ENFILE) return F_status_set_error(F_file_open_max); if (errno == ENOENT) return F_status_set_error(F_directory_found_not); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOSPC) return F_status_set_error(F_space_not); if (errno == ENOTDIR) return F_status_set_error(F_file_type_not_directory); if (errno == EPERM) return F_status_set_error(F_prohibited); @@ -241,7 +241,7 @@ extern "C" { if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == ENFILE) return F_status_set_error(F_file_open_max); if (errno == ENOENT) return F_status_set_error(F_directory_found_not); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOTDIR) return F_status_set_error(F_file_type_not_directory); if (errno == ENOSPC) return F_status_set_error(F_space_not); if (errno == EPERM) return F_status_set_error(F_prohibited); @@ -288,7 +288,7 @@ extern "C" { if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == ENFILE) return F_status_set_error(F_file_open_max); if (errno == ENOENT) return F_status_set_error(F_file_found_not); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOTDIR) return F_status_set_error(F_directory); if (errno == ENOTEMPTY) return F_status_set_error(F_directory_empty_not); if (errno == EPERM) return F_status_set_error(F_prohibited); @@ -335,7 +335,7 @@ extern "C" { if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == ENFILE) return F_status_set_error(F_file_open_max); if (errno == ENOENT) return F_status_set_error(F_file_found_not); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOTDIR) return F_status_set_error(F_directory); if (errno == ENOTEMPTY) return F_status_set_error(F_directory_empty_not); if (errno == EPERM) return F_status_set_error(F_prohibited); @@ -367,7 +367,7 @@ extern "C" { if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == EFAULT) return F_status_set_error(F_buffer); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == EOVERFLOW) return F_status_set_error(F_number_overflow); if (errno == ENOTDIR) return F_status_set_error(F_directory); if (errno == EACCES) return F_status_set_error(F_access_denied); @@ -415,7 +415,7 @@ extern "C" { if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == EFAULT) return F_status_set_error(F_buffer); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == EOVERFLOW) return F_status_set_error(F_number_overflow); if (errno == ENOTDIR) return F_status_set_error(F_directory); if (errno == ENOENT) return F_status_set_error(F_file_found_not); diff --git a/level_0/f_directory/c/directory.h b/level_0/f_directory/c/directory.h index 43d5eea..22b5f65 100644 --- a/level_0/f_directory/c/directory.h +++ b/level_0/f_directory/c/directory.h @@ -60,7 +60,7 @@ extern "C" { * F_file_found_not (with error bit) if a file within the path is not found (such as a broken symbolic link). * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if filesystem does not allow for removing. @@ -94,7 +94,7 @@ extern "C" { * F_file_found_not (with error bit) if a file within the path is not found (such as a broken symbolic link). * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if filesystem does not allow for removing. @@ -120,7 +120,7 @@ extern "C" { * F_file_found_not if the path was not found. * F_access_denied (with error bit) if access to the file was denied. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -148,7 +148,7 @@ extern "C" { * F_access_denied (with error bit) if access to the file was denied. * F_directory_descriptor (with error bit) for bad directory descriptor for at_id. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -171,7 +171,7 @@ extern "C" { * F_file_found_not if the path was not found. * F_access_denied (with error bit) if access to the file was denied. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -199,7 +199,7 @@ extern "C" { * F_access_denied (with error bit) if access to the file was denied. * F_directory_descriptor (with error bit) for bad directory descriptor for at_id. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -267,7 +267,7 @@ extern "C" { * F_file_type_directory_not (with error bit) file is not a directory. * F_interrupted (with error bit) when program received an interrupt signal, halting operation. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on integer overflow. * F_parameter (with error bit) if a parameter is invalid. @@ -308,7 +308,7 @@ extern "C" { * F_file_type_directory_not (with error bit) file is not a directory. * F_interrupted (with error bit) when program received an interrupt signal, halting operation. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on integer overflow. * F_parameter (with error bit) if a parameter is invalid. @@ -347,7 +347,7 @@ extern "C" { * F_file_type_directory (with error bit) file is a directory (directories cannot be removed via this function). * F_input_output (with error bit) if an I/O error occurred. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if filesystem does not allow for removing. @@ -389,7 +389,7 @@ extern "C" { * F_file_type_directory (with error bit) file is a directory (directories cannot be removed via this function). * F_input_output (with error bit) if an I/O error occurred. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if filesystem does not allow for removing. @@ -426,7 +426,7 @@ extern "C" { * F_filesystem_quota_reached (with error bit) quota reached of filesystem is out of space. * F_interrupted (with error bit) when program received an interrupt signal, halting operation. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -468,7 +468,7 @@ extern "C" { * F_filesystem_quota_reached (with error bit) quota reached of filesystem is out of space. * F_interrupted (with error bit) when program received an interrupt signal, halting operation. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. diff --git a/level_0/f_directory/c/private-directory.c b/level_0/f_directory/c/private-directory.c index e6d1233..89166f1 100644 --- a/level_0/f_directory/c/private-directory.c +++ b/level_0/f_directory/c/private-directory.c @@ -18,7 +18,7 @@ extern "C" { if (errno == EMLINK) return F_status_set_error(F_directory_link_max); if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == ENOENT) return F_status_set_error(F_file_found_not); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOSPC) return F_status_set_error(F_space_not); if (errno == ENOTDIR) return F_status_set_error(F_directory); if (errno == EPERM) return F_status_set_error(F_prohibited); @@ -45,7 +45,7 @@ extern "C" { if (errno == EMLINK) return F_status_set_error(F_directory_link_max); if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == ENOENT) return F_status_set_error(F_file_found_not); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOSPC) return F_status_set_error(F_space_not); if (errno == ENOTDIR) return F_status_set_error(F_directory); if (errno == EPERM) return F_status_set_error(F_prohibited); diff --git a/level_0/f_directory/c/private-directory.h b/level_0/f_directory/c/private-directory.h index 305f2fd..29cd8e6 100644 --- a/level_0/f_directory/c/private-directory.h +++ b/level_0/f_directory/c/private-directory.h @@ -33,7 +33,7 @@ extern "C" { * F_file_found_not (with error bit) if a file within the path is not found (such as a broken symbolic link). * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if filesystem does not allow for removing. @@ -70,7 +70,7 @@ extern "C" { * F_file_found_not (with error bit) if a file within the path is not found (such as a broken symbolic link). * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if filesystem does not allow for removing. diff --git a/level_0/f_environment/c/environment.h b/level_0/f_environment/c/environment.h index 036a2ee..e0e7a65 100644 --- a/level_0/f_environment/c/environment.h +++ b/level_0/f_environment/c/environment.h @@ -139,7 +139,7 @@ extern "C" { * @return * F_none on success. * F_invalid (with error bit) if name is an invalid string. - * F_memory_out (with error bit) on out of memory. + * F_memory_not (with error bit) on out of memory. * F_failure (with error bit) on any other error. * * @see setenv() @@ -168,7 +168,7 @@ extern "C" { * F_none on success. * F_data_not if name.used is 0. * F_invalid (with error bit) if name is an invalid string. - * F_memory_out (with error bit) on out of memory. + * F_memory_not (with error bit) on out of memory. * F_parameter (with error bit) if a parameter is invalid. * F_failure (with error bit) on any other error. * @@ -189,7 +189,7 @@ extern "C" { * @return * F_none on success. * F_invalid (with error bit) if name is an invalid string. - * F_memory_out (with error bit) on out of memory. + * F_memory_not (with error bit) on out of memory. * F_failure (with error bit) on any other error. * * @see unsetenv() @@ -209,7 +209,7 @@ extern "C" { * @return * F_none on success. * F_invalid (with error bit) if name is an invalid string. - * F_memory_out (with error bit) on out of memory. + * F_memory_not (with error bit) on out of memory. * F_parameter (with error bit) if a parameter is invalid. * F_failure (with error bit) on any other error. * diff --git a/level_0/f_environment/c/private-environment.c b/level_0/f_environment/c/private-environment.c index 413798b..bbef7a2 100644 --- a/level_0/f_environment/c/private-environment.c +++ b/level_0/f_environment/c/private-environment.c @@ -46,7 +46,7 @@ extern "C" { return F_status_set_error(F_invalid); } else if (errno == ENOMEM) { - return F_status_set_error(F_memory_out); + return F_status_set_error(F_memory_not); } return F_status_set_error(F_failure); @@ -64,7 +64,7 @@ extern "C" { return F_status_set_error(F_invalid); } else if (errno == ENOMEM) { - return F_status_set_error(F_memory_out); + return F_status_set_error(F_memory_not); } return F_status_set_error(F_failure); diff --git a/level_0/f_environment/c/private-environment.h b/level_0/f_environment/c/private-environment.h index f99f6e4..c1a302d 100644 --- a/level_0/f_environment/c/private-environment.h +++ b/level_0/f_environment/c/private-environment.h @@ -58,7 +58,7 @@ extern "C" { * @return * F_none on success. * F_invalid (with error bit) if name is an invalid string. - * F_memory_out (with error bit) on out of memory. + * F_memory_not (with error bit) on out of memory. * F_failure (with error bit) on any other error. * * @see f_environment_set() @@ -78,7 +78,7 @@ extern "C" { * @return * F_none on success. * F_invalid (with error bit) if name is an invalid string. - * F_memory_out (with error bit) on out of memory. + * F_memory_not (with error bit) on out of memory. * F_failure (with error bit) on any other error. * * @see f_environment_unset() diff --git a/level_0/f_file/c/file.c b/level_0/f_file/c/file.c index e600e4f..e324057 100644 --- a/level_0/f_file/c/file.c +++ b/level_0/f_file/c/file.c @@ -15,7 +15,7 @@ extern "C" { if (errno == ENOENT) return F_false; if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == EFAULT) return F_status_set_error(F_buffer); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == EOVERFLOW) return F_status_set_error(F_number_overflow); if (errno == ENOTDIR) return F_status_set_error(F_directory); if (errno == EACCES) return F_status_set_error(F_access_denied); @@ -417,7 +417,7 @@ extern "C" { if (fstatat(at_id, path, &stat_file, flag) < 0) { if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == EFAULT) return F_status_set_error(F_buffer); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == EOVERFLOW) return F_status_set_error(F_number_overflow); if (errno == ENOTDIR) return F_status_set_error(F_directory); if (errno == ENOENT) return F_file_found_not; @@ -475,7 +475,7 @@ extern "C" { if (errno == ELOOP) return F_status_set_error(F_loop); if (errno == ENOENT) return F_status_set_error(F_file_found_not); if (errno == ENOTDIR) return F_status_set_error(F_directory); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOSPC) return F_status_set_error(F_space_not); if (errno == EPERM) return F_status_set_error(F_prohibited); if (errno == EROFS) return F_status_set_error(F_read_only); @@ -508,7 +508,7 @@ extern "C" { if (errno == ENOENT) return F_status_set_error(F_file_found_not); if (errno == ENOTDIR) return F_status_set_error(F_directory); if (errno == EBADF) return F_status_set_error(F_directory_descriptor); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOSPC) return F_status_set_error(F_space_not); if (errno == EPERM) return F_status_set_error(F_prohibited); if (errno == EROFS) return F_status_set_error(F_read_only); @@ -1619,7 +1619,7 @@ extern "C" { if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == EFAULT) return F_status_set_error(F_buffer); if (errno == ENOENT) return F_status_set_error(F_file_found_not); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOTDIR) return F_status_set_error(F_directory); if (errno == EPERM) return F_status_set_error(F_prohibited); if (errno == EROFS) return F_status_set_error(F_read_only); @@ -1646,7 +1646,7 @@ extern "C" { if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == EFAULT) return F_status_set_error(F_buffer); if (errno == ENOENT) return F_status_set_error(F_file_found_not); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOTDIR) return F_status_set_error(F_directory); if (errno == EPERM) return F_status_set_error(F_prohibited); if (errno == EROFS) return F_status_set_error(F_read_only); @@ -1677,7 +1677,7 @@ extern "C" { if (errno == EMLINK) return F_status_set_error(F_link); if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == ENOENT) return F_status_set_error(F_file_found_not); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOSPC) return F_status_set_error(F_space_not); if (errno == ENOTDIR) return F_status_set_error(F_directory); if (errno == ENOTEMPTY) return F_status_set_error(F_directory_empty_not); @@ -1711,7 +1711,7 @@ extern "C" { if (errno == EMLINK) return F_status_set_error(F_link); if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == ENOENT) return F_status_set_error(F_file_found_not); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOSPC) return F_status_set_error(F_space_not); if (errno == ENOTDIR) return F_status_set_error(F_directory); if (errno == ENOTEMPTY) return F_status_set_error(F_directory_empty_not); @@ -1965,7 +1965,7 @@ extern "C" { if (errno == ENFILE) return F_status_set_error(F_file_open_max); if (errno == ENOENT) return F_status_set_error(F_file_found_not); if (errno == ENOTDIR) return F_status_set_error(F_file_type_not_directory); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOSPC) return F_status_set_error(F_space_not); if (errno == EPERM) return F_status_set_error(F_prohibited); if (errno == EROFS) return F_status_set_error(F_read_only); @@ -2457,7 +2457,7 @@ extern "C" { if (stat(path, &stat_file) < 0) { if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == EFAULT) return F_status_set_error(F_buffer); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == EOVERFLOW) return F_status_set_error(F_number_overflow); if (errno == ENOTDIR) return F_status_set_error(F_directory); if (errno == ENOENT) return F_file_found_not; @@ -2487,7 +2487,7 @@ extern "C" { if (fstatat(at_id, path, &stat_file, flag) < 0) { if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == EFAULT) return F_status_set_error(F_buffer); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == EOVERFLOW) return F_status_set_error(F_number_overflow); if (errno == ENOTDIR) return F_status_set_error(F_directory); if (errno == ENOENT) return F_file_found_not; diff --git a/level_0/f_file/c/file.h b/level_0/f_file/c/file.h index e66cebb..5ea30c5 100644 --- a/level_0/f_file/c/file.h +++ b/level_0/f_file/c/file.h @@ -57,7 +57,7 @@ extern "C" { * F_directory (with error bit) on invalid directory. * F_false (with error bit) on unknown/unhandled errors. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -108,7 +108,7 @@ extern "C" { * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_interrupted (with error bit) when program received an interrupt signal, halting operation. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -186,7 +186,7 @@ extern "C" { * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_interrupted (with error bit) when program received an interrupt signal, halting operation. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -223,7 +223,7 @@ extern "C" { * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_interrupted (with error bit) when program received an interrupt signal, halting operation. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -263,7 +263,7 @@ extern "C" { * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_interrupted (with error bit) when program received an interrupt signal, halting operation. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -301,7 +301,7 @@ extern "C" { * F_file_found (with error bit) if a file was found while exclusive is TRUE. * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if filesystem does not allow for making changes. @@ -342,7 +342,7 @@ extern "C" { * F_file_found (with error bit) if a file was found while exclusive is TRUE. * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if filesystem does not allow for making changes. @@ -372,7 +372,7 @@ extern "C" { * F_file_found (with error bit) if a file was found while exclusive is TRUE. * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or ififos are exhausted. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if filesystem does not allow for making changes. @@ -404,7 +404,7 @@ extern "C" { * F_file_found (with error bit) if a file was found while exclusive is TRUE. * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or ififos are exhausted. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if filesystem does not allow for making changes. @@ -436,7 +436,7 @@ extern "C" { * F_file_found (with error bit) if a file was found while exclusive is TRUE. * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if filesystem does not allow for making changes. @@ -471,7 +471,7 @@ extern "C" { * F_file_found (with error bit) if a file was found while exclusive is TRUE. * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if filesystem does not allow for making changes. @@ -517,7 +517,7 @@ extern "C" { * F_access_denied (with error bit) if access to the file was denied. * F_directory (with error bit) on invalid directory. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -548,7 +548,7 @@ extern "C" { * F_directory (with error bit) on invalid directory. * F_false (with error bit) on unknown/unhandled errors. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -595,7 +595,7 @@ extern "C" { * F_directory (with error bit) on invalid directory. * F_file_found_not (with error bit) if the file was not found. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -627,7 +627,7 @@ extern "C" { * F_access_denied (with error bit) if access to the file was denied. * F_directory (with error bit) on invalid directory. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -657,7 +657,7 @@ extern "C" { * F_access_denied (with error bit) if access to the file was denied. * F_directory (with error bit) on invalid directory. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -690,7 +690,7 @@ extern "C" { * F_directory (with error bit) if a supposed directory in path is not actually a directory. * F_interrupted (with error bit) when program received an interrupt signal, halting operation. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -729,7 +729,7 @@ extern "C" { * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_interrupted (with error bit) when program received an interrupt signal, halting operation. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -764,7 +764,7 @@ extern "C" { * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_interrupted (with error bit) when program received an interrupt signal, halting operation. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -806,7 +806,7 @@ extern "C" { * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_interrupted (with error bit) when program received an interrupt signal, halting operation. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -842,7 +842,7 @@ extern "C" { * F_file_found_not (with error bit) if the file at path was not found. * F_input_output (with error bit) on I/O error. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_string_too_large (with error bit) if link target path is too large for string buffer size. @@ -879,7 +879,7 @@ extern "C" { * F_file_found_not (with error bit) if the file at path was not found. * F_input_output (with error bit) on I/O error. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_string_too_large (with error bit) if link target path is too large for string buffer size. @@ -1023,7 +1023,7 @@ extern "C" { * F_directory (with error bit) on invalid directory. * F_file_found_not (with error bit) if the file was not found. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -1050,7 +1050,7 @@ extern "C" { * F_directory (with error bit) on invalid directory. * F_file_found_not (with error bit) if the file was not found. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -1080,7 +1080,7 @@ extern "C" { * F_file_found_not (with error bit) if file at path was not found. * F_input_output (with error bit) on I/O error. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_read_only (with error bit) if file is read-only. @@ -1113,7 +1113,7 @@ extern "C" { * F_directory (with error bit) on invalid directory. * F_input_output (with error bit) on I/O error. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_read_only (with error bit) if file is read-only. @@ -1219,7 +1219,7 @@ extern "C" { * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_interrupted (with error bit) when program received an interrupt signal, halting operation. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name is too long. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -1278,7 +1278,7 @@ extern "C" { * F_directory (with error bit) on invalid directory. * F_file_found_not (with error bit) if the file was not found. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -1399,7 +1399,7 @@ extern "C" { * F_file_type_directory (with error bit) file is a directory (directories cannot be removed via this function). * F_input_output (with error bit) if an I/O error occurred. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if filesystem does not allow for making changes. @@ -1431,7 +1431,7 @@ extern "C" { * F_file_type_directory (with error bit) file is a directory (directories cannot be removed via this function). * F_input_output (with error bit) if an I/O error occurred. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if filesystem does not allow for making changes. @@ -1473,7 +1473,7 @@ extern "C" { * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_link (with error bit) if source or destination has the maxiumum associated links. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_mount (with error bit) if source and destination are not within the same mounted filesystems. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. @@ -1522,7 +1522,7 @@ extern "C" { * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_link (with error bit) if source or destination has the maxiumum associated links. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_mount (with error bit) if source and destination are not within the same mounted filesystems. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. @@ -1564,7 +1564,7 @@ extern "C" { * F_file_found_not (with error bit) if file at path was not found. * F_input_output (with error bit) on I/O error. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_read_only (with error bit) if file is read-only. @@ -1606,7 +1606,7 @@ extern "C" { * F_file_found_not (with error bit) if file at path was not found. * F_input_output (with error bit) on I/O error. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_read_only (with error bit) if file is read-only. @@ -1663,7 +1663,7 @@ extern "C" { * F_directory (with error bit) on invalid directory. * F_file_found_not (with error bit) if the file was not found. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -1693,7 +1693,7 @@ extern "C" { * F_directory (with error bit) on invalid directory. * F_file_found_not (with error bit) if the file was not found. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -1718,7 +1718,7 @@ extern "C" { * F_directory (with error bit) on invalid directory. * F_file_found_not (with error bit) if the file was not found. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -1746,7 +1746,7 @@ extern "C" { * F_directory (with error bit) on invalid directory. * F_file_found_not (with error bit) if the file was not found. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -1775,7 +1775,7 @@ extern "C" { * F_directory (with error bit) on invalid directory. * F_file_found_not (with error bit) if the file was not found. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -1800,7 +1800,7 @@ extern "C" { * F_directory (with error bit) on invalid directory. * F_file_found_not (with error bit) if the file was not found. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -1906,7 +1906,7 @@ extern "C" { * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_interrupted (with error bit) when program received an interrupt signal, halting operation. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name is too long. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -2056,7 +2056,7 @@ extern "C" { * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_interrupted (with error bit) when program received an interrupt signal, halting operation. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name is too long. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -2238,7 +2238,7 @@ extern "C" { * F_filesystem_quota_reached (with error bit) quota reached of filesystem is out of space. * F_interrupted (with error bit) when program received an interrupt signal, halting operation. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -2280,7 +2280,7 @@ extern "C" { * F_filesystem_quota_reached (with error bit) quota reached of filesystem is out of space. * F_interrupted (with error bit) when program received an interrupt signal, halting operation. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -2312,7 +2312,7 @@ extern "C" { * F_access_denied (with error bit) if access to the file was denied. * F_directory (with error bit) on invalid directory. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -2341,7 +2341,7 @@ extern "C" { * F_access_denied (with error bit) if access to the file was denied. * F_directory (with error bit) on invalid directory. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. diff --git a/level_0/f_file/c/private-file.c b/level_0/f_file/c/private-file.c index 80af353..f705c7b 100644 --- a/level_0/f_file/c/private-file.c +++ b/level_0/f_file/c/private-file.c @@ -170,7 +170,7 @@ extern "C" { if (errno == EMLINK) return F_status_set_error(F_directory_link_max); if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == ENOENT) return F_status_set_error(F_file_found_not); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOSPC) return F_status_set_error(F_space_not); if (errno == ENOTDIR) return F_status_set_error(F_directory); if (errno == EPERM) return F_status_set_error(F_prohibited); @@ -196,7 +196,7 @@ extern "C" { if (errno == ELOOP) return F_status_set_error(F_loop); if (errno == EMLINK) return F_status_set_error(F_directory_link_max); if (errno == ENOENT) return F_status_set_error(F_file_found_not); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOSPC) return F_status_set_error(F_space_not); if (errno == ENOTDIR) return F_status_set_error(F_directory); if (errno == EPERM) return F_status_set_error(F_prohibited); @@ -266,7 +266,7 @@ extern "C" { if (errno == ELOOP) return F_status_set_error(F_loop); if (errno == ENOENT) return F_status_set_error(F_file_found_not); if (errno == ENOTDIR) return F_status_set_error(F_directory); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOSPC) return F_status_set_error(F_space_not); if (errno == EPERM) return F_status_set_error(F_prohibited); if (errno == EROFS) return F_status_set_error(F_read_only); @@ -293,7 +293,7 @@ extern "C" { if (errno == EBADF) return F_status_set_error(F_directory_descriptor); if (errno == ENOENT) return F_status_set_error(F_file_found_not); if (errno == ENOTDIR) return F_status_set_error(F_directory); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOSPC) return F_status_set_error(F_space_not); if (errno == EPERM) return F_status_set_error(F_prohibited); if (errno == EROFS) return F_status_set_error(F_read_only); @@ -338,7 +338,7 @@ extern "C" { if (errno == ELOOP) return F_status_set_error(F_loop); if (errno == ENOENT) return F_status_set_error(F_file_found_not); if (errno == ENOTDIR) return F_status_set_error(F_directory); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOSPC) return F_status_set_error(F_space_not); if (errno == EPERM) return F_status_set_error(F_prohibited); if (errno == EROFS) return F_status_set_error(F_read_only); @@ -367,7 +367,7 @@ extern "C" { if (errno == ENOENT) return F_status_set_error(F_file_found_not); if (errno == ENOTDIR) return F_status_set_error(F_directory); if (errno == EBADF) return F_status_set_error(F_directory_descriptor); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOSPC) return F_status_set_error(F_space_not); if (errno == EPERM) return F_status_set_error(F_prohibited); if (errno == EROFS) return F_status_set_error(F_read_only); @@ -406,7 +406,7 @@ extern "C" { if (errno == ELOOP) return F_status_set_error(F_loop); if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == ENOENT) return F_status_set_error(F_file_found_not); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOTDIR) return F_status_set_error(F_directory); return F_status_set_error(F_failure); @@ -442,7 +442,7 @@ extern "C" { if (errno == ELOOP) return F_status_set_error(F_loop); if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == ENOENT) return F_status_set_error(F_file_found_not); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOTDIR) return F_status_set_error(F_directory); if (errno == EBADF) return F_status_set_error(F_directory_descriptor); @@ -462,7 +462,7 @@ extern "C" { if (errno == EFAULT) return F_status_set_error(F_buffer); if (errno == ELOOP) return F_status_set_error(F_loop); if (errno == ENOENT) return F_status_set_error(F_file_found_not); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOTDIR) return F_status_set_error(F_directory); if (errno == EPERM) return F_status_set_error(F_access_mode); if (errno == EROFS) return F_status_set_error(F_read_only); @@ -484,7 +484,7 @@ extern "C" { if (errno == EFAULT) return F_status_set_error(F_buffer); if (errno == ELOOP) return F_status_set_error(F_loop); if (errno == ENOENT) return F_status_set_error(F_file_found_not); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOTDIR) return F_status_set_error(F_directory); if (errno == EBADF) return F_status_set_error(F_directory_descriptor); if (errno == EPERM) return F_status_set_error(F_access_mode); @@ -521,7 +521,7 @@ extern "C" { if (errno == ENFILE) return F_status_set_error(F_file_open_max); if (errno == ENOENT) return F_status_set_error(F_file_found_not); if (errno == ENOTDIR) return F_status_set_error(F_file_type_not_directory); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOSPC) return F_status_set_error(F_space_not); if (errno == EPERM) return F_status_set_error(F_prohibited); if (errno == EROFS) return F_status_set_error(F_read_only); @@ -560,7 +560,7 @@ extern "C" { if (errno == EBADF) return F_status_set_error(F_directory_descriptor); if (errno == ENOENT) return F_status_set_error(F_file_found_not); if (errno == ENOTDIR) return F_status_set_error(F_file_type_not_directory); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOSPC) return F_status_set_error(F_space_not); if (errno == EPERM) return F_status_set_error(F_prohibited); if (errno == EROFS) return F_status_set_error(F_read_only); @@ -612,7 +612,7 @@ extern "C" { if (errno == EFAULT) return F_status_set_error(F_buffer); if (errno == ELOOP) return F_status_set_error(F_loop); if (errno == ENOENT) return F_status_set_error(F_file_found_not); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOTDIR) return F_status_set_error(F_directory); if (errno == EROFS) return F_status_set_error(F_read_only); if (errno == EIO) return F_status_set_error(F_input_output); @@ -646,7 +646,7 @@ extern "C" { if (errno == EFAULT) return F_status_set_error(F_buffer); if (errno == ELOOP) return F_status_set_error(F_loop); if (errno == ENOENT) return F_status_set_error(F_file_found_not); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOTDIR) return F_status_set_error(F_directory); if (errno == EBADF) return F_status_set_error(F_directory_descriptor); if (errno == EROFS) return F_status_set_error(F_read_only); @@ -665,7 +665,7 @@ extern "C" { if ((dereference ? stat(path, file_stat) : lstat(path, file_stat)) < 0) { if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == EFAULT) return F_status_set_error(F_buffer); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == EOVERFLOW) return F_status_set_error(F_number_overflow); if (errno == ENOTDIR) return F_status_set_error(F_directory); if (errno == ENOENT) return F_status_set_error(F_file_found_not); @@ -685,7 +685,7 @@ extern "C" { if (fstatat(at_id, path, file_stat, flag) < 0) { if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == EFAULT) return F_status_set_error(F_buffer); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == EOVERFLOW) return F_status_set_error(F_number_overflow); if (errno == ENOTDIR) return F_status_set_error(F_directory); if (errno == ENOENT) return F_status_set_error(F_file_found_not); @@ -708,7 +708,7 @@ extern "C" { if (result < 0) { if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == EFAULT) return F_status_set_error(F_buffer); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == EOVERFLOW) return F_status_set_error(F_number_overflow); if (errno == ENOTDIR) return F_status_set_error(F_directory); if (errno == ENOENT) return F_file_found_not; diff --git a/level_0/f_file/c/private-file.h b/level_0/f_file/c/private-file.h index 5330d02..5697e26 100644 --- a/level_0/f_file/c/private-file.h +++ b/level_0/f_file/c/private-file.h @@ -73,7 +73,7 @@ extern "C" { * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_interrupted (with error bit) when program received an interrupt signal, halting operation. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -117,7 +117,7 @@ extern "C" { * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_interrupted (with error bit) when program received an interrupt signal, halting operation. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -162,7 +162,7 @@ extern "C" { * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_interrupted (with error bit) when program received an interrupt signal, halting operation. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -197,7 +197,7 @@ extern "C" { * F_file_found_not (with error bit) if file at path was not found. * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if filesystem does not allow for making changes. @@ -234,7 +234,7 @@ extern "C" { * F_file_found_not (with error bit) if file at path was not found. * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if filesystem does not allow for making changes. @@ -265,7 +265,7 @@ extern "C" { * F_file_found (with error bit) if a file was found while exclusive is TRUE. * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or ififos are exhausted. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if filesystem does not allow for making changes. @@ -300,7 +300,7 @@ extern "C" { * F_file_found (with error bit) if a file was found while exclusive is TRUE. * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or ififos are exhausted. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if filesystem does not allow for making changes. @@ -338,7 +338,7 @@ extern "C" { * F_file_found (with error bit) if a file was found while exclusive is TRUE. * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if filesystem does not allow for making changes. @@ -380,7 +380,7 @@ extern "C" { * F_file_found (with error bit) if a file was found while exclusive is TRUE. * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if filesystem does not allow for making changes. @@ -443,7 +443,7 @@ extern "C" { * F_directory (with error bit) if a supposed directory in path is not actually a directory. * F_interrupted (with error bit) when program received an interrupt signal, halting operation. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -482,7 +482,7 @@ extern "C" { * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_interrupted (with error bit) when program received an interrupt signal, halting operation. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -517,7 +517,7 @@ extern "C" { * F_file_found_not (with error bit) if the file at path was not found. * F_input_output (with error bit) on I/O error. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_string_too_large (with error bit) if link target path is too large for string buffer size. @@ -554,7 +554,7 @@ extern "C" { * F_file_found_not (with error bit) if the file at path was not found. * F_input_output (with error bit) on I/O error. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_string_too_large (with error bit) if link target path is too large for string buffer size. @@ -585,7 +585,7 @@ extern "C" { * F_file_found_not (with error bit) if file at path was not found. * F_input_output (with error bit) on I/O error. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_read_only (with error bit) if file is read-only. @@ -618,7 +618,7 @@ extern "C" { * F_directory (with error bit) on invalid directory. * F_input_output (with error bit) on I/O error. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_read_only (with error bit) if file is read-only. @@ -712,7 +712,7 @@ extern "C" { * F_file_found_not (with error bit) if file at path was not found. * F_input_output (with error bit) on I/O error. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_read_only (with error bit) if file is read-only. @@ -752,7 +752,7 @@ extern "C" { * F_file_found_not (with error bit) if file at path was not found. * F_input_output (with error bit) on I/O error. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_read_only (with error bit) if file is read-only. @@ -783,7 +783,7 @@ extern "C" { * F_directory (with error bit) on invalid directory. * F_file_found_not (with error bit) if the file was not found. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -818,7 +818,7 @@ extern "C" { * F_directory (with error bit) on invalid directory. * F_file_found_not (with error bit) if the file was not found. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. @@ -847,7 +847,7 @@ extern "C" { * F_directory (with error bit) on invalid directory. * F_file_found_not (with error bit) if the file was not found. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. * F_parameter (with error bit) if a parameter is invalid. diff --git a/level_0/f_path/c/path.c b/level_0/f_path/c/path.c index f93c5e9..e7ad088 100644 --- a/level_0/f_path/c/path.c +++ b/level_0/f_path/c/path.c @@ -15,7 +15,7 @@ extern "C" { if (errno == ELOOP) return F_status_set_error(F_loop); if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == ENOENT) return F_status_set_error(F_file_found_not); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOTDIR) return F_status_set_error(F_directory); return F_status_set_error(F_failure); @@ -38,7 +38,7 @@ extern "C" { if (errno == ELOOP) return F_status_set_error(F_loop); if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == ENOENT) return F_status_set_error(F_file_found_not); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOTDIR) return F_status_set_error(F_directory); if (errno == EBADF) return F_status_set_error(F_directory_descriptor); @@ -63,7 +63,7 @@ extern "C" { if (errno == EINVAL) return F_status_set_error(F_parameter); if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == ENOENT) return F_status_set_error(F_file_found_not); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ERANGE) return F_status_set_error(F_buffer_too_small); return F_status_set_error(F_failure); diff --git a/level_0/f_path/c/path.h b/level_0/f_path/c/path.h index b0a9ae2..0cf5914 100644 --- a/level_0/f_path/c/path.h +++ b/level_0/f_path/c/path.h @@ -42,7 +42,7 @@ extern "C" { * F_directory (with error bit) if a supposed directory in path is not actually a directory. * F_input_output (with error bit) on I/O error. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_file_found_not if the path was not found. @@ -68,7 +68,7 @@ extern "C" { * F_directory_descriptor (with error bit) for bad directory descriptor for at_id. * F_input_output (with error bit) on I/O error. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_file_found_not if the path was not found. @@ -100,7 +100,7 @@ extern "C" { * F_input_output (with error bit) on I/O error. * F_loop (with error bit) on loop error. * F_memory_allocation (with error bit) on allocation error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_file_found_not if the path was not found. @@ -156,7 +156,7 @@ extern "C" { * F_input_output (with error bit) on I/O error. * F_loop (with error bit) on loop error. * F_memory_allocation (with error bit) on allocation error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_file_found_not if the path was not found. diff --git a/level_0/f_path/c/private-path.c b/level_0/f_path/c/private-path.c index 85bdcdc..77418cf 100644 --- a/level_0/f_path/c/private-path.c +++ b/level_0/f_path/c/private-path.c @@ -16,7 +16,7 @@ extern "C" { if (errno == ELOOP) return F_status_set_error(F_loop); if (errno == ENAMETOOLONG) return F_status_set_error(F_name); if (errno == ENOENT) return F_status_set_error(F_file_found_not); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOTDIR) return F_status_set_error(F_directory); return F_status_set_error(F_failure); diff --git a/level_0/f_path/c/private-path.h b/level_0/f_path/c/private-path.h index 0502398..9073e08 100644 --- a/level_0/f_path/c/private-path.h +++ b/level_0/f_path/c/private-path.h @@ -34,7 +34,7 @@ extern "C" { * F_input_output (with error bit) on I/O error. * F_loop (with error bit) on loop error. * F_memory_allocation (with error bit) on allocation error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_parameter (with error bit) if a parameter is invalid. * F_failure (with error bit) for any other error. * diff --git a/level_0/f_signal/c/signal.c b/level_0/f_signal/c/signal.c index bebdeaf..cbf8539 100644 --- a/level_0/f_signal/c/signal.c +++ b/level_0/f_signal/c/signal.c @@ -42,7 +42,7 @@ extern "C" { if (errno == EMFILE) return F_status_set_error(F_file_descriptor_max); if (errno == ENFILE) return F_status_set_error(F_file_open_max); if (errno == ENODEV) return F_status_set_error(F_device); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); return F_status_set_error(F_failure); } @@ -73,7 +73,7 @@ extern "C" { if (errno == EFAULT) return F_status_set_error(F_buffer); if (errno == EINTR) return F_status_set_error(F_interrupted); if (errno == EINVAL) return F_status_set_error(F_parameter); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); return F_status_set_error(F_failure); } diff --git a/level_0/f_signal/c/signal.h b/level_0/f_signal/c/signal.h index de78d52..d50a539 100644 --- a/level_0/f_signal/c/signal.h +++ b/level_0/f_signal/c/signal.h @@ -64,7 +64,7 @@ extern "C" { * F_none on success but no signal found. * F_device (with error bit) if could not mount the internal inode device. * F_file_descriptor_max (with error bit) if max file descriptors was reached. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_parameter (with error bit) if a parameter is invalid. * F_failure (with error bit) for any other error. * @@ -90,7 +90,7 @@ extern "C" { * F_buffer (with error bit) if the buffer is invalid. * F_descriptor (with error bit) if the signal descriptor is invalid. * F_interrupted (with error bit) if interrupt was received. - * F_memory_out (with error bit) on out of memory. + * F_memory_not (with error bit) on out of memory. * F_parameter (with error bit) if a parameter is invalid. * F_input_output (with error bit) on I/O error. * F_file_type_directory (with error bit) if file descriptor represents a directory. diff --git a/level_0/f_socket/c/socket.c b/level_0/f_socket/c/socket.c index 603c319..089e250 100644 --- a/level_0/f_socket/c/socket.c +++ b/level_0/f_socket/c/socket.c @@ -21,7 +21,7 @@ extern "C"{ if (errno == ELOOP) return F_status_set_error(F_loop); if (errno == ENAMETOOLONG) return F_status_set_error(F_string_too_large); if (errno == ENOENT) return F_status_set_error(F_file_found_not); - if (errno == ENOMEM) return F_status_set_error(F_memory_out); + if (errno == ENOMEM) return F_status_set_error(F_memory_not); if (errno == ENOTDIR) return F_status_set_error(F_directory_found_not); if (errno == ENOTSOCK) return F_status_set_error(F_descriptor); diff --git a/level_0/f_socket/c/socket.h b/level_0/f_socket/c/socket.h index de5d00d..f5c32d1 100644 --- a/level_0/f_socket/c/socket.h +++ b/level_0/f_socket/c/socket.h @@ -51,7 +51,7 @@ extern "C"{ * F_descriptor (with error bit) if the id is not a socket descriptor. * F_directory_found_not (with error bit) if directory was not found. * F_file_found_not (with error bit) if file not found. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_string_too_large (with error bit) if string is too large to store in the buffer. * F_unavailable_address (with error bit) if address is unavailable (is non-existent or not local). diff --git a/level_0/f_status/c/status.h b/level_0/f_status/c/status.h index 7e7e9b6..210a835 100644 --- a/level_0/f_status/c/status.h +++ b/level_0/f_status/c/status.h @@ -177,7 +177,8 @@ extern "C" { F_lock_not, F_loop, F_maybe, - F_memory_out, + F_memory, + F_memory_not, F_mount, F_name, F_parameter, @@ -191,6 +192,8 @@ extern "C" { F_read_only, F_recurse, F_relative, + F_resource, + F_resource_not, F_search, F_signal, F_space, diff --git a/level_1/fl_directory/c/directory.h b/level_1/fl_directory/c/directory.h index e5a7a3e..c89197f 100644 --- a/level_1/fl_directory/c/directory.h +++ b/level_1/fl_directory/c/directory.h @@ -111,7 +111,7 @@ extern "C" { * F_file_found_not (with error bit) if a file within the path is not found (such as a broken symbolic link). * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if filesystem does not allow for removing. diff --git a/level_1/fl_directory/c/private-directory.c b/level_1/fl_directory/c/private-directory.c index bc83a84..152cd9e 100644 --- a/level_1/fl_directory/c/private-directory.c +++ b/level_1/fl_directory/c/private-directory.c @@ -424,10 +424,10 @@ extern "C" { if (!parent) { if (errno == ENOMEM) { - return F_status_set_error(F_memory_out); + return F_status_set_error(F_memory_not); } else if (errno == ENOMEM) { - return F_status_set_error(F_memory_out); + return F_status_set_error(F_memory_not); } else if (errno == EMFILE) { return F_status_set_error(F_file_descriptor_max); diff --git a/level_1/fl_status/c/status.c b/level_1/fl_status/c/status.c index e8b9434..bae4d0d 100644 --- a/level_1/fl_status/c/status.c +++ b/level_1/fl_status/c/status.c @@ -314,7 +314,10 @@ extern "C" { case F_maybe: *string = FL_status_string_maybe; break; - case F_memory_out: + case F_memory: + *string = FL_status_string_memory; + break; + case F_memory_not: *string = FL_status_string_memory_out; break; case F_mount: @@ -356,6 +359,12 @@ extern "C" { case F_relative: *string = FL_status_string_relative; break; + case F_resource: + *string = FL_status_string_resource; + break; + case F_resource_not: + *string = FL_status_string_resource_not; + break; case F_search: *string = FL_status_string_search; break; diff --git a/level_1/fl_status/c/status.h b/level_1/fl_status/c/status.h index e94527b..8d69c1e 100644 --- a/level_1/fl_status/c/status.h +++ b/level_1/fl_status/c/status.h @@ -196,7 +196,8 @@ extern "C" { #define FL_status_string_lock_not "F_lock_not" #define FL_status_string_loop "F_loop" #define FL_status_string_maybe "F_maybe" - #define FL_status_string_memory_out "F_memory_out" + #define FL_status_string_memory "F_memory" + #define FL_status_string_memory_out "F_memory_not" #define FL_status_string_mount "F_mount" #define FL_status_string_name "F_name" #define FL_status_string_parameter "F_parameter" @@ -210,6 +211,8 @@ extern "C" { #define FL_status_string_read_only "F_read_only" #define FL_status_string_recurse "F_recurse" #define FL_status_string_relative "F_relative" + #define FL_status_string_resource "F_resource" + #define FL_status_string_resource_not "F_resource_not" #define FL_status_string_search "F_search" #define FL_status_string_signal "F_signal" #define FL_status_string_space "F_space" @@ -258,6 +261,7 @@ extern "C" { #define FL_status_string_lock_not_length 10 #define FL_status_string_loop_length 6 #define FL_status_string_maybe_length 7 + #define FL_status_string_memory_length 8 #define FL_status_string_memory_out_length 12 #define FL_status_string_mount_length 7 #define FL_status_string_name_length 6 @@ -272,6 +276,8 @@ extern "C" { #define FL_status_string_read_only_length 11 #define FL_status_string_recurse_length 9 #define FL_status_string_relative_length 10 + #define FL_status_string_resource_length 10 + #define FL_status_string_resource_not_length 14 #define FL_status_string_search_length 8 #define FL_status_string_signal_length 8 #define FL_status_string_space_length 7 diff --git a/level_2/fll_error/c/private-error.c b/level_2/fll_error/c/private-error.c index f365fb4..46ab32f 100644 --- a/level_2/fll_error/c/private-error.c +++ b/level_2/fll_error/c/private-error.c @@ -34,7 +34,7 @@ extern "C" { return F_false; } - if (status == F_memory_allocation || status == F_memory_reallocation || status == F_memory_out) { + if (status == F_memory_allocation || status == F_memory_reallocation || status == F_memory_not) { if (error.verbosity != f_console_verbosity_quiet) { fprintf(error.to.stream, "%c", f_string_eol[0]); fprintf(error.to.stream, "%s%sUnable to allocate memory in function ", error.context.before->string, error.prefix ? error.prefix : ""); diff --git a/level_2/fll_execute/c/execute.h b/level_2/fll_execute/c/execute.h index b6dc00b..fd51d31 100644 --- a/level_2/fll_execute/c/execute.h +++ b/level_2/fll_execute/c/execute.h @@ -332,7 +332,7 @@ extern "C" { * F_file_stat (with error bit) on stat error while checking the program_path. * F_loop (with error bit) on loop error while checking the program_path. * F_memory_allocation (with error bit) on allocation error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_memory_reallocation (with error bit) on reallocation error. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. @@ -380,7 +380,7 @@ extern "C" { * F_file_stat (with error bit) on stat error while checking the program_path. * F_loop (with error bit) on loop error while checking the program_path. * F_memory_allocation (with error bit) on allocation error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_memory_reallocation (with error bit) on reallocation error. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. @@ -464,7 +464,7 @@ extern "C" { * F_fork (with error bit) on fork failure. * F_loop (with error bit) on loop error while checking the program_path. * F_memory_allocation (with error bit) on allocation error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_memory_reallocation (with error bit) on reallocation error. * F_name (with error bit) on path name error. * F_number_overflow (with error bit) on overflow error. diff --git a/level_2/fll_file/c/file.h b/level_2/fll_file/c/file.h index 42c7b71..bd6b620 100644 --- a/level_2/fll_file/c/file.h +++ b/level_2/fll_file/c/file.h @@ -53,7 +53,7 @@ extern "C" { * F_file_found_not (with error bit) if file at path was not found. * F_input_output (with error bit) on I/O error. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_read_only (with error bit) if file is read-only. @@ -102,7 +102,7 @@ extern "C" { * F_filesystem_quota_block (with error bit) if filesystem's disk blocks or inodes are exhausted. * F_link (with error bit) if source or destination has the maxiumum associated links. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_prohibited (with error bit) if filesystem does not allow for making changes. @@ -158,7 +158,7 @@ extern "C" { * F_file_found_not (with error bit) if file at path was not found. * F_input_output (with error bit) on I/O error. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_read_only (with error bit) if file is read-only. diff --git a/level_2/fll_file/c/private-file.h b/level_2/fll_file/c/private-file.h index d8018e4..e272e03 100644 --- a/level_2/fll_file/c/private-file.h +++ b/level_2/fll_file/c/private-file.h @@ -37,7 +37,7 @@ extern "C" { * F_file_found_not (with error bit) if file at path was not found. * F_input_output (with error bit) on I/O error. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_read_only (with error bit) if file is read-only. @@ -77,7 +77,7 @@ extern "C" { * F_file_found_not (with error bit) if file at path was not found. * F_input_output (with error bit) on I/O error. * F_loop (with error bit) on loop error. - * F_memory_out (with error bit) if out of memory. + * F_memory_not (with error bit) if out of memory. * F_name (with error bit) on path name error. * F_parameter (with error bit) if a parameter is invalid. * F_read_only (with error bit) if file is read-only. diff --git a/level_2/fll_status/c/status.c b/level_2/fll_status/c/status.c index 89807ad..7ee5bb6 100644 --- a/level_2/fll_status/c/status.c +++ b/level_2/fll_status/c/status.c @@ -526,8 +526,13 @@ extern "C" { return F_none; } + if (fl_string_compare(string, FL_status_string_memory, length, FL_status_string_memory_length) == F_equal_to) { + *code = F_memory; + return F_none; + } + if (fl_string_compare(string, FL_status_string_memory_out, length, FL_status_string_memory_out_length) == F_equal_to) { - *code = F_memory_out; + *code = F_memory_not; return F_none; } @@ -596,6 +601,16 @@ extern "C" { return F_none; } + if (fl_string_compare(string, FL_status_string_resource, length, FL_status_string_resource_length) == F_equal_to) { + *code = F_resource; + return F_none; + } + + if (fl_string_compare(string, FL_status_string_resource_not, length, FL_status_string_resource_not_length) == F_equal_to) { + *code = F_resource_not; + return F_none; + } + if (fl_string_compare(string, FL_status_string_search, length, FL_status_string_search_length) == F_equal_to) { *code = F_search; return F_none; diff --git a/level_3/fake/c/private-print.c b/level_3/fake/c/private-print.c index ac1dd25..41d4552 100644 --- a/level_3/fake/c/private-print.c +++ b/level_3/fake/c/private-print.c @@ -74,7 +74,7 @@ extern "C" { return F_false; } - if (status == F_memory_out) { + if (status == F_memory_not) { if (data.error.verbosity != f_console_verbosity_quiet) { fprintf(data.error.to.stream, "%c", f_string_eol[0]); fl_color_print(data.error.to.stream, data.context.set.error, "%sUnable to allocate memory, while trying to %s '", fll_error_print_error, operation);