Lines Matching +full:self +full:- +full:advertising
1 /*-
2 * SPDX-License-Identifier: BSD-4-Clause
14 * 3. All advertising materials mentioning features or use of this software
60 "usage: truss [-cfaedDHS] [-o file] [-s strsize] -p pid", in usage()
61 " truss [-cfaedDHS] [-o file] [-s strsize] command [args]"); in usage()
84 trussinfo->outfile = stderr; in main()
85 trussinfo->strsize = 32; in main()
86 trussinfo->curthread = NULL; in main()
87 LIST_INIT(&trussinfo->proclist); in main()
88 while ((c = getopt(ac, av, "p:o:facedDs:SH")) != -1) { in main()
94 errx(2, "attempt to grab self."); in main()
98 trussinfo->flags |= FOLLOWFORKS; in main()
101 trussinfo->flags |= EXECVEARGS; in main()
104 trussinfo->flags |= (COUNTONLY | NOSIGS); in main()
107 trussinfo->flags |= EXECVEENVS; in main()
110 trussinfo->flags |= ABSOLUTETIMESTAMPS; in main()
113 trussinfo->flags |= RELATIVETIMESTAMPS; in main()
119 trussinfo->strsize = (int)strtonum(optarg, 0, INT_MAX, in main()
125 trussinfo->flags |= NOSIGS; in main()
128 trussinfo->flags |= DISPLAYTIDS; in main()
135 ac -= optind; av += optind; in main()
142 * Set close-on-exec ('e'), so that the output file is not in main()
145 if ((trussinfo->outfile = fopen(fname, "we")) == NULL) in main()
150 * If truss starts the process itself, it will ignore some signals -- in main()
152 * exit. If, however, we are examining an already-running process, in main()
176 if (LIST_FIRST(&trussinfo->proclist)->abi == NULL) { in main()
184 kill(LIST_FIRST(&trussinfo->proclist)->pid, SIGKILL); in main()
185 ptrace(PT_DETACH, LIST_FIRST(&trussinfo->proclist)->pid, NULL, in main()
189 ptrace(PT_SYSCALL, LIST_FIRST(&trussinfo->proclist)->pid, (caddr_t)1, in main()
197 clock_gettime(CLOCK_REALTIME, &trussinfo->start_time); in main()
201 if (trussinfo->flags & COUNTONLY) in main()
204 fflush(trussinfo->outfile); in main()