Lines Matching refs:info
85 cok(struct shared_info *info, const char *descr)
88 info->failed = 0;
89 strlcpy(info->tag, descr, sizeof(info->tag));
94 cfail(struct shared_info *info, const char *descr, const char *fmt, ...)
98 info->failed = 1;
99 strlcpy(info->tag, descr, sizeof(info->tag));
102 vsprintf(info->message, fmt, ap);
108 #define cfail_err(info, descr) cfail((info), (descr), "%s", strerror(errno))
145 struct shared_info *info;
210 info = mmap(NULL, getpagesize(), PROT_READ | PROT_WRITE, MAP_ANON |
212 if (info == MAP_FAILED)
225 cfail(info, "closefrom(0)", "highest fd %d", fd);
226 cok(info, "closefrom(0)");
230 if (info->failed)
231 fail(info->tag, "%s", info->message);
232 ok(info->tag);
243 cfail(info, "closefrom(-1)", "highest fd %d", fd);
244 cok(info, "closefrom(-1)");
248 if (info->failed)
249 fail(info->tag, "%s", info->message);
250 ok(info->tag);