Skip to content

Commit 27c3975

Browse files
authored
Merge pull request n64decomp#6 from LLONSIT/master
Implement sysconf(_SC_ARG_MAX) syscall
2 parents 049331b + 4fe86ab commit 27c3975

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

dtc

Submodule dtc updated from e543880 to 2cdf93a

linux-user/irix/syscall_nr.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@
267267

268268

269269
/* syssgi(sysconf, cmd, ...) */
270+
#define TARGET_NR_sysconf_argmax (1)
270271
#define TARGET_NR_sysconf_childmax (2)
271272
#define TARGET_NR_sysconf_clktick (3)
272273
#define TARGET_NR_sysconf_openmax (5)

linux-user/syscall.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14537,6 +14537,9 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
1453714537
case TARGET_NR_sysconf_mac:
1453814538
ret = 0;
1453914539
break;
14540+
case TARGET_NR_sysconf_argmax:
14541+
ret = get_errno(sysconf(_SC_ARG_MAX));
14542+
break;
1454014543
default:
1454114544
gemu_log("qemu: Unsupported syscall: sysconf(%d)\n", (int)arg2);
1454214545
ret = -TARGET_ENOSYS;

0 commit comments

Comments
 (0)