mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:27:45 +00:00
LibWasm: Change dir_fd to auto instead of int
This commit is contained in:
parent
3be7d393b6
commit
fcbb8d63c0
1 changed files with 3 additions and 3 deletions
|
@ -511,7 +511,7 @@ ErrorOr<Result<void>> Implementation::impl$fd_prestat_dir_name(Configuration& co
|
|||
|
||||
ErrorOr<Result<FileStat>> Implementation::impl$path_filestat_get(Configuration& configuration, FD fd, LookupFlags flags, ConstPointer<u8> path, Size path_len)
|
||||
{
|
||||
int dir_fd = AT_FDCWD;
|
||||
auto dir_fd = AT_FDCWD;
|
||||
|
||||
auto mapped_fd = map_fd(fd);
|
||||
if (mapped_fd.has<PreopenedDirectoryDescriptor>()) {
|
||||
|
@ -569,7 +569,7 @@ ErrorOr<Result<FileStat>> Implementation::impl$path_filestat_get(Configuration&
|
|||
|
||||
ErrorOr<Result<void>> Implementation::impl$path_create_directory(Configuration& configuration, FD fd, Pointer<u8> path, Size path_len)
|
||||
{
|
||||
int dir_fd = AT_FDCWD;
|
||||
auto dir_fd = AT_FDCWD;
|
||||
|
||||
auto mapped_fd = map_fd(fd);
|
||||
if (mapped_fd.has<PreopenedDirectoryDescriptor>()) {
|
||||
|
@ -595,7 +595,7 @@ ErrorOr<Result<void>> Implementation::impl$path_create_directory(Configuration&
|
|||
|
||||
ErrorOr<Result<FD>> Implementation::impl$path_open(Configuration& configuration, FD fd, LookupFlags lookup_flags, Pointer<u8> path, Size path_len, OFlags o_flags, Rights, Rights, FDFlags fd_flags)
|
||||
{
|
||||
int dir_fd = AT_FDCWD;
|
||||
auto dir_fd = AT_FDCWD;
|
||||
|
||||
auto mapped_fd = map_fd(fd);
|
||||
if (mapped_fd.has<PreopenedDirectoryDescriptor>()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue