Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This PR adds struct stat for s390x. #2

Merged
merged 1 commit into from
Feb 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions lfs_ffi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,31 @@ if OS == 'Linux' then
]])
stat_syscall_num = IS_64_BIT and 106 or 195
lstat_syscall_num = IS_64_BIT and 107 or 196
elseif ARCH == 's390x' then
ffi.cdef([[
typedef struct {
unsigned long st_dev;
velemas marked this conversation as resolved.
Show resolved Hide resolved
unsigned long st_ino;
unsigned long st_nlink;
unsigned int st_mode;
unsigned int st_uid;
unsigned int st_gid;
int __pad1;
unsigned long st_rdev;
long st_size;
long st_atime;
long st_atime_nsec;
long st_mtime;
long st_mtime_nsec;
long st_ctime;
long st_ctime_nsec;
long st_blksize;
long st_blocks;
long __unused[3];
} stat;
]])
stat_syscall_num = 106
lstat_syscall_num = 107
elseif ARCH == 'arm' then
if IS_64_BIT then
ffi.cdef([[
Expand Down