Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bmiddha committed Dec 25, 2024
1 parent 3ece662 commit e95800f
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 13 deletions.
2 changes: 0 additions & 2 deletions test2/1.sh

This file was deleted.

4 changes: 0 additions & 4 deletions test2/2.js

This file was deleted.

2 changes: 0 additions & 2 deletions test2/3.sh

This file was deleted.

3 changes: 0 additions & 3 deletions test2/4.js

This file was deleted.

2 changes: 1 addition & 1 deletion tests/syscalls/open/basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ int main()
const char *pathname = "/tmp";
int flags = O_RDONLY;
int mode = 0;
int fd = syscall(SYS_open, pathname, flags, mode);
syscall(SYS_open, pathname, flags, mode);

return 0;
}
4 changes: 3 additions & 1 deletion tests/syscalls/openat2/fdcwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
#include <unistd.h>
#include <sys/syscall.h>

// int openat2(int dirfd, const char *pathname, const struct open_how *how, size_t size);

int main()
{
int dirfd = AT_FDCWD;
const char *pathname = "/tmp";
struct open_how how = {.flags = O_PATH, .mode = 0};
int size = sizeof(struct open_how);
int fd = syscall(SYS_openat2, dirfd, pathname, &how, size);
syscall(SYS_openat2, dirfd, pathname, &how, size);

return 0;
}

0 comments on commit e95800f

Please sign in to comment.