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

19 lines
200 B
C
Raw Normal View History

2023-01-09 17:11:35 +08:00
#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;
}
}