* plans.
*
* Example:
- * // Given tr A-Z a-z outputs tr a-z a-z
+ * // Given "tr A-Z a-z" outputs tr a-z a-z
* #include <ccan/io/io.h>
* #include <ccan/err/err.h>
* #include <assert.h>
* {
* // Remove what we just wrote.
* b->start += b->wlen;
+ * b->wlen = 0;
* assert(b->start <= sizeof(b->buf));
*
- * // If we wrote something, wake writer.
+ * // If we wrote something, wake reader.
* if (b->wlen != 0)
* io_wake(b);
*
* io_new_conn(NULL, tochild[1], write_out, &to);
*
* // Read from child, write to stdout.
+ * memset(&from, 0, sizeof(from));
* reader = io_new_conn(NULL, fromchild[0], read_in, &from);
* io_set_finish(reader, finish, &from);
* io_new_conn(NULL, STDOUT_FILENO, write_out, &from);
*
- * io_loop();
+ * io_loop(NULL, NULL);
* wait(&status);
*
* return WIFEXITED(status) ? WEXITSTATUS(status) : 2;
return 1;
if (strcmp(argv[1], "depends") == 0) {
+ printf("ccan/container_of\n");
+ printf("ccan/list\n");
printf("ccan/tal\n");
+ printf("ccan/time\n");
+ printf("ccan/timer\n");
printf("ccan/typesafe_cb\n");
return 0;
}