SYS_FUNC(oldselect)
{
- long args[5];
+ long long_args[5];
+#undef oldselect_args
+#if SIZEOF_LONG == 4
+# define oldselect_args long_args
+#else
+ unsigned int oldselect_args[5];
+ unsigned int i;
+#endif
- if (umove(tcp, tcp->u_arg[0], &args) < 0) {
+ if (umove(tcp, tcp->u_arg[0], &oldselect_args) < 0) {
printaddr(tcp->u_arg[0]);
return 0;
}
- return decode_select(tcp, args, BITNESS_CURRENT);
+#ifndef oldselect_args
+ for (i = 0; i < 5; i++) {
+ long_args[i] = oldselect_args[i];
+ }
+#endif
+ return decode_select(tcp, long_args, BITNESS_CURRENT);
+#undef oldselect_args
}
#ifdef ALPHA
[ 79] = { 2, 0, SEN(settimeofday), "settimeofday" },
[ 80] = { 2, 0, SEN(getgroups16), "getgroups" },
[ 81] = { 2, 0, SEN(setgroups16), "setgroups" },
-[ 82] = { 1, TD, SEN(oldselect), "oldselect" },
+[ 82] = { },
[ 83] = { 2, TF, SEN(symlink), "symlink" },
[ 84] = { 2, TF, SEN(oldlstat), "oldlstat" },
[ 85] = { 3, TF, SEN(readlink), "readlink" },