Home | History | Annotate | Download | only in cpio

Lines Matching defs:in

46 /* Each line in the canned file should be a path plus three ints (uid,
81 // Use the compiled-in fs_config() function.
91 // Nothing is special about this value, just picked something in the
151 static void _archive(char *in, char *out, int ilen, int olen);
157 static void _archive_dir(char *in, char *out, int ilen, int olen)
165 in, out, ilen, olen);
168 d = opendir(in);
169 if(d == 0) die("cannot open directory '%s'", in);
208 in[ilen] = '/';
209 memcpy(in + ilen + 1, names[i], t + 1);
214 _archive(in, out, ilen + t + 1, olen + t + 1);
217 _archive(in, out, ilen + t + 1, t);
220 in[ilen] = 0;
230 static void _archive(char *in, char *out, int ilen, int olen)
236 in, out, ilen, olen);
239 if(lstat(in, &s)) die("could not stat '%s'\n", in);
245 fd = open(in, O_RDONLY);
246 if(fd < 0) die("cannot open '%s' for read", in);
261 _archive_dir(in, out, ilen, olen);
265 size = readlink(in, buf, 1024);
266 if(size < 0) die("cannot read symlink '%s'", in);
269 die("Unknown '%s' (mode %d)?\n", in, s.st_mode);
275 char in[8192];
278 strcpy(in, start);
281 _archive_dir(in, out, strlen(in), strlen(out));