Skip to content

Commit 3c4ebb5

Browse files
committed
clang-format syscalls.cpp
1 parent d2e1691 commit 3c4ebb5

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

system/lib/wasmfs/syscalls.cpp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,8 @@ static __wasi_fd_t doOpen(path::ParsedParent parsed,
474474
// report a generic error.
475475
return -EIO;
476476
}
477-
[[maybe_unused]] bool mounted = lockedParent.mountChild(std::string(childName), created);
477+
[[maybe_unused]] bool mounted =
478+
lockedParent.mountChild(std::string(childName), created);
478479
assert(mounted);
479480
}
480481
// TODO: Check that the insert actually succeeds.
@@ -588,8 +589,9 @@ int __syscall_mknodat(int dirfd, const char* path, mode_t mode, dev_t dev) {
588589
OpenReturnMode::Nothing);
589590
}
590591

591-
static int
592-
doMkdir(path::ParsedParent parsed, mode_t mode, backend_t backend = NullBackend) {
592+
static int doMkdir(path::ParsedParent parsed,
593+
mode_t mode,
594+
backend_t backend = NullBackend) {
593595
if (auto err = parsed.getError()) {
594596
return err;
595597
}
@@ -646,7 +648,7 @@ doMkdir(path::ParsedParent parsed, mode_t mode, backend_t backend = NullBackend)
646648

647649
// This function is exposed to users and allows users to specify a particular
648650
// backend that a directory should be created within.
649-
int wasmfs_create_directory(char *path, mode_t mode, backend_t backend) {
651+
int wasmfs_create_directory(char* path, mode_t mode, backend_t backend) {
650652
static_assert(std::is_same_v<decltype(doMkdir(0, 0, 0)), int>,
651653
"unexpected conversion from result of doMkdir to int");
652654
return doMkdir(path::parseParent(path), mode, backend);
@@ -1496,7 +1498,8 @@ int __syscall_fcntl64(int fd, int cmd, ...) {
14961498
}
14971499
}
14981500

1499-
static int doStatFS(std::shared_ptr<File>& file, size_t size, struct statfs* buf) {
1501+
static int
1502+
doStatFS(std::shared_ptr<File>& file, size_t size, struct statfs* buf) {
15001503
if (size != sizeof(struct statfs)) {
15011504
// We only know how to write to a standard statfs, not even a truncated one.
15021505
return -EINVAL;

0 commit comments

Comments
 (0)