mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 13:38:01 +00:00
fstrace-linux-proc-20050113
FIXES 17240 support /proc interface
This commit is contained in:
parent
d9e55baca1
commit
270f675b6f
@ -2115,7 +2115,7 @@ icl_TailKernel(outFilep, logname, waitTime)
|
||||
afs_syscall(call, parm0, parm1, parm2, parm3, parm4, parm5, parm6)
|
||||
long call, parm0, parm1, parm2, parm3, parm4, parm5, parm6;
|
||||
{
|
||||
int code;
|
||||
int code, rval;
|
||||
#ifdef AFS_LINUX20_ENV
|
||||
#if defined AFS_LINUX_64BIT_KERNEL
|
||||
long long eparm[4];
|
||||
@ -2133,9 +2133,13 @@ afs_syscall(call, parm0, parm1, parm2, parm3, parm4, parm5, parm6)
|
||||
#endif
|
||||
/* Linux can only handle 5 arguments in the actual syscall. */
|
||||
if (call == AFSCALL_ICL) {
|
||||
code = syscall(AFS_SYSCALL, call, parm0, parm1, parm2, eparm);
|
||||
rval = proc_afs_syscall(call, parm0, parm1, parm2, eparm, &code);
|
||||
if (rval)
|
||||
code = syscall(AFS_SYSCALL, call, parm0, parm1, parm2, eparm);
|
||||
} else {
|
||||
code = syscall(AFS_SYSCALL, call, parm0, parm1, parm2, parm3);
|
||||
rval = proc_afs_syscall(call, parm0, parm1, parm2, parm3, &code);
|
||||
if (rval)
|
||||
code = syscall(AFS_SYSCALL, call, parm0, parm1, parm2, parm3);
|
||||
}
|
||||
#if defined(AFS_SPARC64_LINUX20_ENV) || defined(AFS_SPARC_LINUX20_ENV)
|
||||
/* on sparc this function returns none value, so do it myself */
|
||||
|
Loading…
x
Reference in New Issue
Block a user