* char input[12];
*
* if (argc == 2) {
- * write(STDOUT_FILENO, "hello world\n", 12);
+ * if (write(STDOUT_FILENO, "hello world\n", 12) != 12)
+ * exit(1);
* exit(0);
* }
- * child = pipecmd(&outputfd, NULL, argv[0], "ignoredarg", NULL);
+ * child = pipecmd(NULL, &outputfd, NULL, argv[0], "ignoredarg", NULL);
* if (child < 0)
* err(1, "Creating child");
* if (read(outputfd, input, sizeof(input)) != sizeof(input))
return 1;
if (strcmp(argv[1], "depends") == 0) {
+ printf("ccan/closefrom\n");
printf("ccan/noerr\n");
return 0;
}