Lines Matching defs:str
70 len; // the length of the path in "str"
81 const char *str;
345 find_an_event(const char *str, int len, kfs_event *do_not_reuse, int *reuse_type, int *longest_match_len)
382 if (str != NULL) {
383 if (kfse->len != 0 && kfse->str != NULL) {
384 match_len = prefix_match_len(str, kfse->str);
408 if (history[i].kfse->str == kfse->str) {
431 if (str != NULL && best_kfse) {
590 char *str;
600 // find_an_event() will do if str is null).
604 str = NULL;
607 str = va_arg(ap, char *);
618 str = pathbuff;
620 str = NULL;
633 kfse = find_an_event(str, len, NULL, &reuse_type, &longest_match_len);
702 if (str) {
712 if (str[0] == '\0' || longest_match_len <= 1) {
713 printf("add_fsevent: strange state (str %s / longest_match_len %d)\n", str, longest_match_len);
721 str[longest_match_len] = '\0';
726 new_str = vfs_addname(str, longest_match_len, 0, 0);
734 tmp_ptr = kfse->str;
735 kfse->str = new_str;
793 if (str && kfse->len != 0) {
804 panic("add_fsevent: I'm so confused! (reuse_type %d str %p kfse->len %d)\n",
805 reuse_type, str, kfse->len);
841 vfs_removename(kfse->str);
844 kfse->str = NULL;
866 vfs_removename(kfse_dest->str);
869 kfse_dest->str = NULL;
950 if (kfse->str != NULL) {
968 cur->str = NULL;
1005 cur->str = vfs_addname(pathbuff, pathbuff_len, 0, 0);
1006 if (cur->str == NULL || cur->str[0] == '\0') {
1034 if (kfse->str != NULL) {
1040 cur->str = vfs_addname(va_arg(ap, char *), cur->len, 0, 0);
1044 cur->str = vfs_addname("/", cur->len, 0, 0);
1046 if (cur->str[0] == 0) {
1165 dest_copy.str = NULL;
1171 kfse->uid = (uid_t)kfse->str; // save this off for debugging...
1174 kfse->str = (char *)0xdeadbeef; // XXXdbg - catch any cheaters...
1177 kfse->dest->str = (char *)0xbadc0de; // XXXdbg - catch any cheaters...
1211 if (copy.str) {
1216 vfs_removename(copy.str);
1220 if (dest_copy.type != FSE_INVALID && dest_copy.str) {
1225 vfs_removename(dest_copy.str);
1553 panic("fsevents: copy_out_kfse: asked to copy out an invalid event (kfse %p, refcount %d fref ptr %p)\n", kfse, kfse->refcount, kfse->str);
1598 if (cur->str == NULL || cur->str[0] == '\0') {
1599 printf("copy_out_kfse:2: empty/short path (%s)\n", cur->str);
1602 error = fill_buff(FSE_ARG_STRING, cur->len, cur->str, evbuff, &evbuff_idx, sizeof(evbuff), uio);