Lines Matching +full:0 +full:x401
34 [ `id -u` -ne 0 ] && echo "Must be root!" && exit 1
39 sed '1,/^EOF/d' < $odir/$0 > $dir/setsockopt2.c
56 [ -f setsockopt2.core -a $s -eq 0 ] &&
94 #define SYNC 0
105 success = 0;
107 memset(&sun, 0, sizeof(sun));
115 share[SYNC] = 0;
123 prot = 0;
129 if (pid < 0)
131 if (pid == 0) {
134 if (fd < 0)
135 _exit(0);
138 sizeof(one)) < 0)
140 if (bind(fd, (struct sockaddr *)&sun, sizeof(sun)) < 0)
141 _exit(0);
142 if (listen(fd, 10) == 0) {
148 _exit(0);
154 setsockopt(fd, 0xffff, 0x80, 0x0, 0x0);
157 setsockopt(fd, 0x6, 0x401, &sun, 0x14);
159 for (i = 0; share[SYNC] == 0 && i < 10; i++)
166 if (waitpid(pid, NULL, 0) != pid)
169 if (debug != 0 && success == 0)
172 _exit(0);
183 e = 0;
186 MAP_ANON | MAP_SHARED, -1, 0)) == MAP_FAILED)
191 for (i = 0; i < PARALLEL; i++) {
192 if ((pids[i] = fork()) == 0)
197 for (i = 0; i < PARALLEL; i++) {
198 if (waitpid(pids[i], &status, 0) == -1)
200 if (status != 0) {
206 e += status == 0 ? 0 : 1;