Displaying 4 results from an estimated 4 matches for "fts_path".
Did you mean:
ft_path
1999 Sep 15
0
FreeBSD Security Advisory: FreeBSD-SA-99:05.fts
...===============================
RCS file: /home/imp/FreeBSD/CVS/src/lib/libc/gen/fts.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- fts.c 1999/08/15 19:21:29 1.10
+++ fts.c 1999/09/02 07:45:07 1.11
@@ -963,6 +963,24 @@
return (sp->fts_path == NULL);
}
+static void
+ADJUST(p, addr)
+ FTSENT *p;
+ void *addr;
+{
+ if ((p)->fts_accpath >= (p)->fts_path &&
+ (p)->fts_accpath < (p)->fts_path + (p)->fts_pathlen) {
+ if (p->fts_accpath != p->fts_path)
+ e...
2014 Jul 30
2
[PATCH 1/3] ext2: create a struct for the OCaml 't' type
...int r;
- fs = Ext2fs_val (fsv);
- if (fs == NULL)
+ data = Ext2fs_val (fsv);
+ if (data.fs == NULL)
ext2_handle_closed ();
paths[0] = (char *) srcdir;
@@ -269,7 +274,7 @@ supermin_ext2fs_copy_dir_recursively_from_host (value fsv,
}
}
- ext2_copy_file (fs, entry->fts_path, destpath);
+ ext2_copy_file (&data, entry->fts_path, destpath);
free (destpath);
}
@@ -538,7 +543,7 @@ read_whole_file (const char *filename, size_t size)
/* Copy a file (or directory etc) from the host. */
static void
-ext2_copy_file (ext2_filsys fs, const char *src, const...
2010 Mar 11
2
[PATCH FOR DISCUSSION ONLY] Rewrite libguestfs-supermin-helper in C.
...add_string (&lines, &size, &alloc, NULL);
+ return lines;
+}
+
+/* Append the file pointed to by FTSENT to the cpio output. */
+static void
+cpio_append_fts_entry (FTSENT *entry)
+{
+ if (entry->fts_info & FTS_NS || entry->fts_info & FTS_NSOK)
+ cpio_append (entry->fts_path);
+ else
+ cpio_append_stat (entry->fts_path, entry->fts_statp);
+}
+
+/* Append the file named 'filename' to the cpio output. */
+static void
+cpio_append (const char *filename)
+{
+ struct stat statbuf;
+
+ if (lstat (filename, &statbuf) == -1) {
+ perror ("lstat&q...
2014 Feb 25
2
[PATCH supermin v4] Supermin 5 rewrite.
...&statbuf) == -1)
- error (EXIT_FAILURE, errno, "lstat: %s", filename);
- checksum_file_stat (filename, &statbuf);
-}
-
-static void
-checksum_fts_entry (FTSENT *entry)
-{
- if (entry->fts_info & FTS_NS || entry->fts_info & FTS_NSOK)
- checksum_file (entry->fts_path);
- else
- checksum_file_stat (entry->fts_path, entry->fts_statp);
-}
-
-static void
-checksum_cpio_file (const char *cpio_file)
-{
- checksum_file (cpio_file);
-}
-
-struct writer checksum_writer = {
- .wr_start = checksum_start,
- .wr_end = checksum_end,
- .wr_file = checksum_file,...