search for: filename_ptr

Displaying 2 results from an estimated 2 matches for "filename_ptr".

2017 Jul 01
0
[PATCH] Add new hash.c32 module
...d) argc; + /* -c implied */ + argv++; + do { + FILE *fp; + char eol, *line, buffer[4096]; + fp = fopen(*argv,"r"); + if (fp == NULL) + fp = fopen(unrockridge_iso(*argv),"r"); + + while ((line = fgets(buffer,sizeof(buffer),fp)) != NULL) { + uint8_t *hash_value; + char *filename_ptr, *status; + int len = strlen(line); + + if (line[0] < '0') + continue; + if (line[len-1] == '\n') + line[len-1] = 0; + filename_ptr = strstr(line, " "); + /* handle format for binary checksums */ + if (filename_ptr == NULL) { + filename_ptr = strst...
2007 Sep 23
0
A preliminary design for an external DB for rsync
...tabase implementation may even choose to store the name in a separate table with a unique id if that is more efficient for it. If ACL and extended attribute information is included, it will be stored as an ID reference to separate tables. ----- Imagined calls that rsync would use: db_open(CONFIG_FILENAME_PTR, CHROOT_PATH_PTR, FLAGS); # CHROOT_PATH_PTR: can be NULL. # FLAGS: active-checksum-type, incl-acl-info, incl-xattr-info, etc. The chroot path modifies incoming filenames into a global DB context and strips the returned filenames down to work in a chroot (also ensures that no filenames outside the...