2025-04-11 13:54:53 +01:00
|
|
|
#ifndef _IO_DARWIN_POSIX_H_
|
|
|
|
|
#define _IO_DARWIN_POSIX_H_
|
|
|
|
|
|
2026-03-16 10:35:43 +00:00
|
|
|
#include <fx/core/error.h>
|
|
|
|
|
#include <fx/core/status.h>
|
2025-04-11 13:54:53 +01:00
|
|
|
|
|
|
|
|
struct stat;
|
2026-03-16 10:35:43 +00:00
|
|
|
struct fx_file_info;
|
2025-04-11 13:54:53 +01:00
|
|
|
|
2026-03-16 10:35:43 +00:00
|
|
|
extern enum fx_status fx_status_from_errno(int error, enum fx_status default_value);
|
|
|
|
|
extern fx_result fx_result_from_errno_with_filepath(
|
|
|
|
|
int error, const char *path, enum fx_status default_value);
|
|
|
|
|
extern fx_result fx_result_from_errno_with_subfilepath(
|
2025-07-28 22:20:20 +01:00
|
|
|
int error, const char *path, const char *dir_path,
|
2026-03-16 10:35:43 +00:00
|
|
|
enum fx_status default_value);
|
|
|
|
|
extern enum fx_status fx_file_info_from_stat(
|
|
|
|
|
const struct stat *in, struct fx_file_info *out);
|
2025-04-11 13:54:53 +01:00
|
|
|
|
|
|
|
|
#endif
|