trap.c (247720) | trap.c (248980) |
---|---|
1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kenneth Almquist. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 22 unchanged lines hidden (view full) --- 31 */ 32 33#ifndef lint 34#if 0 35static char sccsid[] = "@(#)trap.c 8.5 (Berkeley) 6/5/95"; 36#endif 37#endif /* not lint */ 38#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kenneth Almquist. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 22 unchanged lines hidden (view full) --- 31 */ 32 33#ifndef lint 34#if 0 35static char sccsid[] = "@(#)trap.c 8.5 (Berkeley) 6/5/95"; 36#endif 37#endif /* not lint */ 38#include <sys/cdefs.h> |
39__FBSDID("$FreeBSD: head/bin/sh/trap.c 247720 2013-03-03 17:33:59Z jilles $"); | 39__FBSDID("$FreeBSD: head/bin/sh/trap.c 248980 2013-04-01 17:18:22Z jilles $"); |
40 41#include <signal.h> 42#include <unistd.h> 43#include <stdlib.h> 44 45#include "shell.h" 46#include "main.h" 47#include "nodes.h" /* for other headers */ --- 97 unchanged lines hidden (view full) --- 145 } 146} 147 148 149/* 150 * The trap builtin. 151 */ 152int | 40 41#include <signal.h> 42#include <unistd.h> 43#include <stdlib.h> 44 45#include "shell.h" 46#include "main.h" 47#include "nodes.h" /* for other headers */ --- 97 unchanged lines hidden (view full) --- 145 } 146} 147 148 149/* 150 * The trap builtin. 151 */ 152int |
153trapcmd(int argc, char **argv) | 153trapcmd(int argc __unused, char **argv) |
154{ 155 char *action; 156 int signo; 157 int errors = 0; 158 int i; 159 160 while ((i = nextopt("l")) != '\0') { 161 switch (i) { --- 405 unchanged lines hidden --- | 154{ 155 char *action; 156 int signo; 157 int errors = 0; 158 int i; 159 160 while ((i = nextopt("l")) != '\0') { 161 switch (i) { --- 405 unchanged lines hidden --- |