Lines Matching refs:snprintf
109 snprintf(toybuf, sizeof(toybuf), "/proc/%d/fdinfo/%s", fi->pi.pid, fi->fd); in fill_flags()
119 snprintf(fi->size_off, sizeof(fi->size_off), "0t%lld", pos); in fill_flags()
262 snprintf(fi->type, sizeof(fi->type), "0%03o", sb.st_mode & S_IFMT); in fill_stat()
271 snprintf(fi->device, sizeof(fi->device), "%ld,%ld", in fill_stat()
276 snprintf(fi->size_off, sizeof(fi->size_off), "%lld", in fill_stat()
280 snprintf(fi->node, sizeof(fi->node), "%ld", (long)sb.st_ino); in fill_stat()
309 snprintf(fi->fd, sizeof(fi->fd), "%s", name); in visit_symlink()
310 snprintf(toybuf, sizeof(toybuf), "/proc/%d/%s", pi->pid, path); in visit_symlink()
312 snprintf(fi->fd, sizeof(fi->fd), "%s", path); in visit_symlink()
314 snprintf(toybuf, sizeof(toybuf), "/proc/%d/fd/%s", pi->pid, path); in visit_symlink()
336 snprintf(toybuf, sizeof(toybuf), "/proc/%d/maps", pi->pid); in visit_maps()
366 snprintf(toybuf, sizeof(toybuf), "/proc/%d/fd", pi->pid); in visit_fds()
390 snprintf(toybuf, sizeof(toybuf), "/proc/%d/stat", pid); in lsof_pid()
404 snprintf(pi.cmd, sizeof(pi.cmd), "%s", open_paren + 1); in lsof_pid()
412 snprintf(toybuf, sizeof(toybuf), "/proc/%d", pid); in lsof_pid()
417 snprintf(pi.user, sizeof(pi.user), "%s", pw->pw_name); in lsof_pid()
418 } else snprintf(pi.user, sizeof(pi.user), "%u", (unsigned)sb.st_uid); in lsof_pid()