Skip to content

Commit b3e869c

Browse files
resolve merge conflict
1 parent 317438f commit b3e869c

9 files changed

Lines changed: 14 additions & 14 deletions

File tree

src/glibc/sysdeps/unix/sysv/linux/fstat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ __fstat (int fd, struct stat *buf)
3636

3737
uint64_t host_buf = TRANSLATE_GUEST_POINTER_TO_HOST (buf);
3838

39-
return MAKE_LEGACY_SYSCALL (FXSTAT_SYSCALL, "syscall|fstat", (uint64_t) fd,
39+
return MAKE_LEGACY_SYSCALL (FSTAT_SYSCALL, "syscall|fstat", (uint64_t) fd,
4040
host_buf, NOTUSED, NOTUSED, NOTUSED, NOTUSED, TRANSLATE_ERRNO_ON);
4141
}
4242

src/glibc/sysdeps/unix/sysv/linux/fstat64.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
int
3232
__fstat64_time64 (int fd, struct __stat64_t64 *buf)
3333
{
34-
return MAKE_LEGACY_SYSCALL(FXSTAT_SYSCALL, "syscall|fstat", (uint64_t)fd, (uint64_t) TRANSLATE_GUEST_POINTER_TO_HOST(buf), NOTUSED, NOTUSED, NOTUSED, NOTUSED, TRANSLATE_ERRNO_ON);
34+
return MAKE_LEGACY_SYSCALL(FSTAT_SYSCALL, "syscall|fstat", (uint64_t)fd, (uint64_t) TRANSLATE_GUEST_POINTER_TO_HOST(buf), NOTUSED, NOTUSED, NOTUSED, NOTUSED, TRANSLATE_ERRNO_ON);
3535
}
3636
#if __TIMESIZE != 64
3737
hidden_def (__fstat64_time64)
@@ -45,7 +45,7 @@ hidden_def (__fstat64_time64)
4545
}
4646
// Added MAKE_SYSCALL macro to interface with Lind - Qianxi Chen
4747
uint64_t host_buf = TRANSLATE_GUEST_POINTER_TO_HOST (buf);
48-
return MAKE_LEGACY_SYSCALL (FXSTAT_SYSCALL, "syscall|fstat", (uint64_t) fd,
48+
return MAKE_LEGACY_SYSCALL (FSTAT_SYSCALL, "syscall|fstat", (uint64_t) fd,
4949
host_buf, NOTUSED, NOTUSED, NOTUSED, NOTUSED, TRANSLATE_ERRNO_ON);
5050
}
5151
#endif

src/glibc/sysdeps/unix/sysv/linux/fxstat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ int
3535
__fxstat (int vers, int fd, struct stat *buf)
3636
{
3737
uint64_t host_buf = TRANSLATE_GUEST_POINTER_TO_HOST (buf);
38-
return MAKE_LEGACY_SYSCALL (FXSTAT_SYSCALL, "syscall|fxstat", (uint64_t) vers,
38+
return MAKE_LEGACY_SYSCALL (FSTAT_SYSCALL, "syscall|fstat", (uint64_t) vers,
3939
(uint64_t) fd, host_buf,
4040
NOTUSED, NOTUSED, NOTUSED, TRANSLATE_ERRNO_ON);
4141
}

src/glibc/sysdeps/unix/sysv/linux/fxstat64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ int
3737
___fxstat64 (int vers, int fd, struct stat64 *buf)
3838
{
3939
uint64_t host_buf = TRANSLATE_GUEST_POINTER_TO_HOST (buf);
40-
return MAKE_LEGACY_SYSCALL (FXSTAT_SYSCALL, "syscall|fxstat", (uint64_t) vers,
40+
return MAKE_LEGACY_SYSCALL (FSTAT_SYSCALL, "syscall|fstat", (uint64_t) vers,
4141
(uint64_t) fd, host_buf,
4242
NOTUSED, NOTUSED, NOTUSED, TRANSLATE_ERRNO_ON);
4343
}

src/glibc/sysdeps/unix/sysv/linux/lstat64.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ int
3030
__lstat64_time64 (const char *file, struct __stat64_t64 *buf)
3131
{
3232
// BUG: we do not have fstatat syscall in rawposix
33-
// so let's just use xstat - Qianxi Chen
33+
// so let's just use stat - Qianxi Chen
3434
uint64_t host_file = TRANSLATE_GUEST_POINTER_TO_HOST (file);
3535
uint64_t host_buf = TRANSLATE_GUEST_POINTER_TO_HOST (buf);
36-
return MAKE_LEGACY_SYSCALL (XSTAT_SYSCALL, "syscall|xstat",
36+
return MAKE_LEGACY_SYSCALL (STAT_SYSCALL, "syscall|stat",
3737
host_file, host_buf,
3838
NOTUSED, NOTUSED, NOTUSED, NOTUSED, TRANSLATE_ERRNO_ON);
3939
}
@@ -45,7 +45,7 @@ __lstat64 (const char *file, struct stat64 *buf)
4545
{
4646
uint64_t host_file = TRANSLATE_GUEST_POINTER_TO_HOST (file);
4747
uint64_t host_buf = TRANSLATE_GUEST_POINTER_TO_HOST (buf);
48-
return MAKE_LEGACY_SYSCALL (XSTAT_SYSCALL, "syscall|xstat",
48+
return MAKE_LEGACY_SYSCALL (STAT_SYSCALL, "syscall|stat",
4949
host_file, host_buf,
5050
NOTUSED, NOTUSED, NOTUSED, NOTUSED, TRANSLATE_ERRNO_ON);
5151
}

src/glibc/sysdeps/unix/sysv/linux/stat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ __stat (const char *fd, struct stat *buf)
2929
uint64_t host_fd = TRANSLATE_GUEST_POINTER_TO_HOST (fd);
3030
uint64_t host_buf = TRANSLATE_GUEST_POINTER_TO_HOST (buf);
3131

32-
return MAKE_LEGACY_SYSCALL (XSTAT_SYSCALL, "syscall|xstat",
32+
return MAKE_LEGACY_SYSCALL (STAT_SYSCALL, "syscall|stat",
3333
host_fd, host_buf,
3434
NOTUSED, NOTUSED, NOTUSED, NOTUSED, TRANSLATE_ERRNO_ON);
3535
}

src/glibc/sysdeps/unix/sysv/linux/stat64.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ int
3030
__stat64_time64 (const char *file, struct __stat64_t64 *buf)
3131
{
3232
// BUG: we do not have fstatat syscall in rawposix
33-
// so let's just use xstat - Qianxi Chen
33+
// so let's just use stat - Qianxi Chen
3434
uint64_t host_file = TRANSLATE_GUEST_POINTER_TO_HOST (file);
3535
uint64_t host_buf = TRANSLATE_GUEST_POINTER_TO_HOST (buf);
36-
return MAKE_LEGACY_SYSCALL (XSTAT_SYSCALL, "syscall|xstat",
36+
return MAKE_LEGACY_SYSCALL (STAT_SYSCALL, "syscall|stat",
3737
host_file, host_buf,
3838
NOTUSED, NOTUSED, NOTUSED, NOTUSED, TRANSLATE_ERRNO_ON);
3939
}
@@ -45,7 +45,7 @@ __stat64 (const char *file, struct stat64 *buf)
4545
{
4646
uint64_t host_file = TRANSLATE_GUEST_POINTER_TO_HOST (file);
4747
uint64_t host_buf = TRANSLATE_GUEST_POINTER_TO_HOST (buf);
48-
return MAKE_LEGACY_SYSCALL (XSTAT_SYSCALL, "syscall|xstat",
48+
return MAKE_LEGACY_SYSCALL (STAT_SYSCALL, "syscall|stat",
4949
host_file, host_buf,
5050
NOTUSED, NOTUSED, NOTUSED, NOTUSED, TRANSLATE_ERRNO_ON);
5151
}

src/glibc/sysdeps/unix/sysv/linux/xstat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ __xstat (int vers, const char *name, struct stat *buf)
3636
{
3737
uint64_t host_name = TRANSLATE_GUEST_POINTER_TO_HOST (name);
3838
uint64_t host_buf = TRANSLATE_GUEST_POINTER_TO_HOST (buf);
39-
return MAKE_LEGACY_SYSCALL (XSTAT_SYSCALL, "syscall|xstat", (uint64_t) vers,
39+
return MAKE_LEGACY_SYSCALL (STAT_SYSCALL, "syscall|stat", (uint64_t) vers,
4040
host_name, host_buf,
4141
NOTUSED, NOTUSED, NOTUSED, TRANSLATE_ERRNO_ON);
4242
}

src/glibc/sysdeps/unix/sysv/linux/xstat64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ ___xstat64 (int vers, const char *name, struct stat64 *buf)
3939
uint64_t host_name = TRANSLATE_GUEST_POINTER_TO_HOST (name);
4040
uint64_t host_buf = TRANSLATE_GUEST_POINTER_TO_HOST (buf);
4141

42-
return MAKE_LEGACY_SYSCALL(XSTAT_SYSCALL, "syscall|xstat", (uint64_t) vers, host_name, host_buf, NOTUSED, NOTUSED, NOTUSED, TRANSLATE_ERRNO_ON);
42+
return MAKE_LEGACY_SYSCALL(STAT_SYSCALL, "syscall|stat", (uint64_t) vers, host_name, host_buf, NOTUSED, NOTUSED, NOTUSED, TRANSLATE_ERRNO_ON);
4343
}
4444

4545
#if XSTAT_IS_XSTAT64

0 commit comments

Comments
 (0)