syscalls.c (131893) | syscalls.c (132306) |
---|---|
1/* 2 * Copryight 1997 Sean Eric Fagan 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 17 unchanged lines hidden (view full) --- 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 */ 31 32#ifndef lint 33static const char rcsid[] = | 1/* 2 * Copryight 1997 Sean Eric Fagan 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 17 unchanged lines hidden (view full) --- 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 */ 31 32#ifndef lint 33static const char rcsid[] = |
34 "$FreeBSD: head/usr.bin/truss/syscalls.c 131893 2004-07-10 09:23:53Z alfred $"; | 34 "$FreeBSD: head/usr.bin/truss/syscalls.c 132306 2004-07-17 19:19:36Z alfred $"; |
35#endif /* not lint */ 36 37/* 38 * This file has routines used to print out system calls and their 39 * arguments. 40 */ 41 42#include <sys/mman.h> --- 423 unchanged lines hidden (view full) --- 466 free(fds); 467 } 468 break; 469 case Signal: 470 { 471 long sig; 472 473 sig = args[sc->offset]; | 35#endif /* not lint */ 36 37/* 38 * This file has routines used to print out system calls and their 39 * arguments. 40 */ 41 42#include <sys/mman.h> --- 423 unchanged lines hidden (view full) --- 466 free(fds); 467 } 468 break; 469 case Signal: 470 { 471 long sig; 472 473 sig = args[sc->offset]; |
474 if (sig > 0 && sig < NSIG) { 475 int i; 476 asprintf(&tmp, "sig%s", sys_signame[sig]); 477 for (i = 0; tmp[i] != '\0'; ++i) 478 tmp[i] = toupper(tmp[i]); 479 } else | 474 tmp = strsig(sig); 475 if (tmp == NULL) |
480 asprintf(&tmp, "%ld", sig); 481 } 482 break; 483 case Fcntl: 484 { 485 switch (args[sc->offset]) { 486#define S(a) case a: tmp = strdup(#a); break; 487 S(F_DUPFD); --- 220 unchanged lines hidden --- | 476 asprintf(&tmp, "%ld", sig); 477 } 478 break; 479 case Fcntl: 480 { 481 switch (args[sc->offset]) { 482#define S(a) case a: tmp = strdup(#a); break; 483 S(F_DUPFD); --- 220 unchanged lines hidden --- |