Lines Matching defs:cur
475 kfs_event *kfse, *kfse_dest=NULL, *cur;
941 cur = kfse;
951 cur = kfse_dest;
957 cur->type);
967 // printf("add_fsevent: failed to getattr on vp %p (%d)\n", cur->fref.vp, ret);
968 cur->str = NULL;
977 cur->dev = dev = (dev_t)va.va_fsid;
978 cur->ino = (ino_t)va.va_fileid;
979 cur->mode = (int32_t)vnode_vttoif(vnode_vtype(vp)) | va.va_mode;
980 cur->uid = va.va_uid;
981 cur->gid = va.va_gid;
1004 cur->len = pathbuff_len;
1005 cur->str = vfs_addname(pathbuff, pathbuff_len, 0, 0);
1006 if (cur->str == NULL || cur->str[0] == '\0') {
1007 panic("add_fsevent: was not able to add path %s to event %p.\n", pathbuff, cur);
1021 cur->dev = dev = (dev_t)fse->dev;
1022 cur->ino = (ino_t)fse->ino;
1023 cur->mode = (int32_t)fse->mode;
1024 cur->uid = (uid_t)fse->uid;
1025 cur->gid = (uid_t)fse->gid;
1028 cur->mode |= FSE_MODE_LAST_HLINK;
1035 cur = kfse_dest;
1038 cur->len = (int16_t)(va_arg(ap, int32_t) & 0x7fff);
1039 if (cur->len >= 1) {
1040 cur->str = vfs_addname(va_arg(ap, char *), cur->len, 0, 0);
1042 printf("add_fsevent: funny looking string length: %d\n", (int)cur->len);
1043 cur->len = 2;
1044 cur->str = vfs_addname("/", cur->len, 0, 0);
1046 if (cur->str[0] == 0) {
1047 printf("add_fsevent: bogus looking string (len %d)\n", cur->len);
1548 kfs_event *cur;
1594 cur = kfse;
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);
1608 if (cur->dev == 0 && cur->ino == 0) {
1621 error = fill_buff(FSE_ARG_FINFO, finfo_size, &cur->ino, evbuff, &evbuff_idx, sizeof(evbuff), uio);
1628 error = fill_buff(FSE_ARG_DEV, sizeof(dev_t), &cur->dev, evbuff, &evbuff_idx, sizeof(evbuff), uio);
1633 ino = (ino_t)cur->ino;
1639 error = fill_buff(FSE_ARG_MODE, sizeof(int32_t), &cur->mode, evbuff, &evbuff_idx, sizeof(evbuff), uio);
1644 error = fill_buff(FSE_ARG_UID, sizeof(uid_t), &cur->uid, evbuff, &evbuff_idx, sizeof(evbuff), uio);
1649 error = fill_buff(FSE_ARG_GID, sizeof(gid_t), &cur->gid, evbuff, &evbuff_idx, sizeof(evbuff), uio);
1656 if (cur->dest) {
1657 cur = cur->dest;
1663 error = fill_buff(FSE_ARG_INT64, sizeof(uint64_t), &cur->abstime, evbuff, &evbuff_idx, sizeof(evbuff), uio);