Lines Matching refs:to
15 * fail, so callers never need to check for errors. If it returned, it
42 // to the new memory, which may or may not be the same as the old memory.
43 // It'll copy the contents to a new chunk and free the old one if necessary.)
61 // Die if we can't copy a string to freshly allocated memory.
78 // the (possibly truncated to length n) string into it.
103 // Die if we can't open a file and return a FILE * to it.
172 void xdup2(int from, int to)
174 if (dup2(from, to) != to)
179 void xmove_fd(int from, int to)
181 if (from == to)
183 xdup2(from, to);
197 // Die with an error message if we can't lseek to the right spot.
314 // Convert unsigned integer to ascii, writing into supplied buffer.
338 // Convert signed integer to ascii, like utoa_to_buf()
358 // Convert unsigned integer to ascii using a static buffer (returned).
366 // Convert signed integer to ascii using a static buffer (returned).
388 // limit this user to a given number of processes, and if that fills up the
401 // Return how long the file at fd is, if there's any way to determine it.
458 // Die with an error message if we can't copy an entire FILE * to stdout, then
470 // Die if we can't chdir to a new path.
520 // Die with an error message if we can't bind a socket to an address.
534 ssize_t xsendto(int s, const void *buf, size_t len, const struct sockaddr *to,
537 ssize_t ret = sendto(s, buf, len, 0, to, tolen);
568 /* It is perfectly ok to pass in a NULL for either width or for