Skip to content

Commit 4f92216

Browse files
committed
Merge branch 'pathconf' of https://github.com/cadmic/qemu-irix
2 parents 9301193 + 9361f76 commit 4f92216

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

linux-user/irix/syscall_nr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@
247247
#define TARGET_NR_syssgi_setsid (20)
248248
#define TARGET_NR_syssgi_setpgid (21)
249249
#define TARGET_NR_syssgi_sysconf (22)
250-
#define TARGET_NR_syssgi_pathconf (23)
250+
#define TARGET_NR_syssgi_pathconf (24)
251251
#define TARGET_NR_syssgi_setgroups (40)
252252
#define TARGET_NR_syssgi_getgroups (41)
253253
#define TARGET_NR_syssgi_settimeofday (52)

linux-user/syscall.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14527,13 +14527,13 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
1452714527
}
1452814528
break;
1452914529
case TARGET_NR_syssgi_pathconf:
14530-
if (arg3 == 1) {
14531-
if (!(p = lock_user_string(arg1)))
14530+
if (arg4 == 1) {
14531+
if (!(p = lock_user_string(arg2)))
1453214532
goto efault;
14533-
ret = get_errno(pathconf(path(p), target_to_host_pathconf(arg2)));
14533+
ret = get_errno(pathconf(path(p), target_to_host_pathconf(arg3)));
1453414534
unlock_user(p, arg1, 0);
1453514535
} else
14536-
ret = get_errno(fpathconf(arg1, target_to_host_pathconf(arg2)));
14536+
ret = get_errno(fpathconf(arg2, target_to_host_pathconf(arg3)));
1453714537
break;
1453814538
case TARGET_NR_syssgi_rusage:
1453914539
{

0 commit comments

Comments
 (0)