The Pedigree Project
0.1
src
modules
subsys
posix
file-handle-syscalls.h
1
/* Copyright (c) 2026, Pedigree Developers. */
2
#ifndef POSIX_FILE_HANDLE_SYSCALLS_H
3
#define POSIX_FILE_HANDLE_SYSCALLS_H
4
5
#include "pedigree/kernel/process/Process.h"
6
7
#include "PosixSubsystem.h"
8
#include "ResolvedPath.h"
9
#include "modules/system/vfs/VFS.h"
10
11
class
PosixHandleTarget
{
12
public
:
13
ResolvedPath
pathLease;
14
VFS::MountOperation
mount;
15
DescriptorLease
descriptor;
16
File
* file =
nullptr
;
17
uint64_t attachmentId = 0;
18
19
bool
resolve(
int
dirfd,
const
char
* path,
bool
follow,
bool
allowEmpty,
20
bool
nullAsDescriptor =
false
);
21
};
22
23
int
posix_handle_error(FileHandleStatus status);
24
bool
posix_effective_root();
25
int
posix_name_to_handle_at(
int
dirfd,
const
char
* path,
void
* handle,
int
* mountId,
int
flags);
26
int
posix_open_by_handle_at(
int
mountfd,
const
void
* handle,
int
flags);
27
28
#endif
DescriptorLease
Definition
PosixSubsystem.h:64
File
Definition
File.h:74
PosixHandleTarget
Definition
file-handle-syscalls.h:11
ResolvedPath
Definition
ResolvedPath.h:9
VFS::MountOperation
Definition
VFS.h:108
Generated on Tue Sep 29 2026 04:30:09 for The Pedigree Project by
1.9.8