aosp12/external/strace/tests-mx32/stack-fcall-3.c

19 lines
200 B
C

#include <signal.h>
#include <unistd.h>
#include "stack-fcall.h"
int f3(int i)
{
static int pid;
switch (i) {
case 1:
return kill(pid, SIGURG);
default:
return (pid = getpid()) + i;
}
}