Lines Matching defs:ret
63 void *ret = mmap(addr, length, prot, flags, fd, off);
64 if (ret == MAP_FAILED) perror_exit("mmap");
65 return ret;
71 void *ret = malloc(size);
72 if (!ret) error_exit("xmalloc(%ld)", (long)size);
74 return ret;
80 void *ret = xmalloc(size);
81 memset(ret, 0, size);
82 return ret;
98 char *ret = strndup(s, n);
100 if (!ret) error_exit("xstrndup");
102 return ret;
113 void *ret = xmalloc(len);
114 memcpy(ret, s, len);
116 return ret;
124 char *ret;
135 ret = xmalloc(len);
136 vsnprintf(ret, len, format, va2);
139 return ret;
483 ssize_t ret = read(fd, buf, len);
484 if (ret < 0) perror_exit("xread");
486 return ret;
533 char *ret;
632 ret = xmalloc(try);
633 *ret = '/';
634 ret [try = 1] = 0;
636 if (try>1) ret[try++] = '/';
637 try = stpcpy(ret+try, todo->str) - ret;
641 return ret;