15 int local_j
= global_i
+1;
16 int local_k
= local_j
+1;
18 printf ("foll-exec is about to execlp(execd-prog)...\n");
20 execlp ("gdb.base/execd-prog",
21 "gdb.base/execd-prog",
22 "execlp arg1 from foll-exec",
25 printf ("foll-exec is about to execl(execd-prog)...\n");
27 execl ("gdb.base/execd-prog",
28 "gdb.base/execd-prog",
29 "execl arg1 from foll-exec",
30 "execl arg2 from foll-exec",
34 static char * argv
[] = {
35 (char *)"gdb.base/execd-prog",
36 (char *)"execv arg1 from foll-exec",
39 printf ("foll-exec is about to execv(execd-prog)...\n");
41 execv ("gdb.base/execd-prog", argv
);