syscalls.c (fde3a7d1e9114dfa14126e9815f65c9e6a8223a9) | syscalls.c (d75300bfa58d8a70a02b8d00c349d2c643eff45a) |
---|---|
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. --- 457 unchanged lines hidden (view full) --- 466 free(fds); 467 } 468 break; 469 case Signal: 470 { 471 long sig; 472 473 sig = args[sc->offset]; | 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. --- 457 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 --- |