Lines Matching defs:mode
43 * int forker(ncopies, mode, prefix)
45 * int mode;
73 * Using mode 0, the parent will get the total number of successful
74 * forks. Using mode 1, the newest child will get the total number
82 * access to all pids via Forker_pids. If using mode 0, only the
84 * If using mode 1, only the last child process will have all information.
156 int mode, /* 0 - all children of parent, 1 - only 1 direct child */
169 switch (mode) {
242 int mode = 0;
247 printf("Usage: %s ncopies [mode]\n", argv[0]);
257 if (sscanf(argv[2], "%i", &mode) != 1) {
258 printf("%s: mode argument must be integer\n", argv[0]);
266 ret = forker(ncopies, mode, argv[0]);
269 ncopies, mode, argv[0], ret, getpid());