Home | History | Annotate | Download | only in fd_interposing

Lines Matching defs:pid

412     const pid_t pid = getpid();
413 if (g_pid != pid)
417 g_pid = pid;
418 log ("Interposing file descriptor create and delete functions for %s (pid=%i)\n", get_process_fullpath (true), pid);
422 log ("pid=%i: disabling interposing file descriptor create and delete functions for child process %s (pid=%i)\n", g_pid, get_process_fullpath (true), pid);
441 const pid_t pid = get_interposed_pid();
467 log ("pid=%i: logging disabled\n", getpid());
572 const int pid = get_interposed_pid();
573 if (pid >= 0)
578 log ("\nerror: %s (pid=%i): ", get_process_fullpath (), pid);
666 const int pid = get_interposed_pid();
667 if (pid >= 0)
674 description_sp->printf("pid=%i: socket (domain = %i, type = %i, protocol = %i) => fd=%i errno = %i", pid, domain, type, protocol, fd, fd_errno.get_errno());
676 description_sp->printf("pid=%i: socket (domain = %i, type = %i, protocol = %i) => fd=%i", pid, domain, type, protocol, fd);
695 const int pid = get_interposed_pid();
696 if (pid >= 0)
703 StringSP description_sp(new String ("pid=%i: socketpair (domain=%i, type=%i, protocol=%i, {fd=%i, fd=%i}) -> err=%i", pid, domain, type, protocol, fds[0], fds[1], err));
724 const int pid = get_interposed_pid();
725 if (pid >= 0)
733 description_sp->printf("pid=%i: open (path = '%s', oflag = %i, mode = %i) -> fd=%i", pid, path, oflag, mode, fd);
738 description_sp->printf("pid=%i: open (path = '%s', oflag = %i) -> fd=%i", pid, path, oflag, fd);
760 const int pid = get_interposed_pid();
761 if (pid >= 0)
766 StringSP description_sp(new String ("pid=%i: open$NOCANCEL (path = '%s', oflag = %i, mode = %i) -> fd=%i", pid, path, oflag, mode, fd));
786 const int pid = get_interposed_pid();
787 if (pid >= 0)
792 StringSP description_sp(new String ("pid=%i: __open_extended (path='%s', oflag=%i, uid=%i, gid=%i, mode=%i, fsacl=%p) -> fd=%i", pid, path, oflag, uid, gid, mode, fsacl, fd));
811 const int pid = get_interposed_pid();
812 if (pid >= 0)
817 StringSP description_sp(new String ("pid=%i: kqueue () -> fd=%i", pid, fd));
836 const int pid = get_interposed_pid();
837 if (pid >= 0)
842 StringSP description_sp(new String ("pid=%i: shm_open (path = '%s', oflag = %i, mode = %i) -> fd=%i", pid, path, oflag, mode, fd));
861 const int pid = get_interposed_pid();
862 if (pid >= 0)
867 StringSP description_sp(new String ("pid=%i: accept (socket=%i, ...) -> fd=%i", pid, socket, fd));
887 const int pid = get_interposed_pid();
888 if (pid >= 0)
893 StringSP description_sp(new String ("pid=%i: accept$NOCANCEL (socket=%i, ...) -> fd=%i", pid, socket, fd));
912 const int pid = get_interposed_pid();
913 if (pid >= 0)
918 StringSP description_sp(new String ("pid=%i: dup (fd2=%i) -> fd=%i", pid, fd2, fd));
937 const int pid = get_interposed_pid();
938 if (pid >= 0)
945 StringSP dup2_close_description_sp(new String ("pid=%i: dup2 (fd1=%i, fd2=%i) -> will close (fd=%i)", pid, fd1, fd2, fd2));
951 StringSP description_sp(new String ("pid=%i: dup2 (fd1=%i, fd2=%i) -> fd=%i", pid, fd1, fd2, fd));
971 const int pid = get_interposed_pid();
972 if (pid >= 0)
979 description_sp->printf("pid=%i: close (fd=%i) => %i errno = %i (%s))", pid, fd, err, err_errno.get_errno(), strerror(err_errno.get_errno()));
981 description_sp->printf("pid=%i: close (fd=%i) => %i", pid, fd, err);
1017 const int pid = get_interposed_pid();
1018 if (pid >= 0)
1025 description_sp->printf("pid=%i: close$NOCANCEL (fd=%i) => %i errno = %i (%s))", pid, fd, err, err_errno.get_errno(), strerror(err_errno.get_errno()));
1027 description_sp->printf("pid=%i: close$NOCANCEL (fd=%i) => %i", pid, fd, err);
1063 const int pid = get_interposed_pid();
1064 if (pid >= 0)
1071 StringSP description_sp(new String ("pid=%i: pipe ({fd=%i, fd=%i}) -> err=%i", pid, fds[0], fds[1], err));