Deleted Added
full compact
system.c (165903) system.c (200150)
1/*
2 * Copyright (c) 1988, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#if defined(LIBC_SCCS) && !defined(lint)
31static char sccsid[] = "@(#)system.c 8.1 (Berkeley) 6/4/93";
32#endif /* LIBC_SCCS and not lint */
33#include <sys/cdefs.h>
1/*
2 * Copyright (c) 1988, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 17 unchanged lines hidden (view full) ---

26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#if defined(LIBC_SCCS) && !defined(lint)
31static char sccsid[] = "@(#)system.c 8.1 (Berkeley) 6/4/93";
32#endif /* LIBC_SCCS and not lint */
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/lib/libc/stdlib/system.c 165903 2007-01-09 00:28:16Z imp $");
34__FBSDID("$FreeBSD: head/lib/libc/stdlib/system.c 200150 2009-12-05 19:31:38Z ed $");
35
36#include "namespace.h"
37#include <sys/types.h>
38#include <sys/wait.h>
39#include <signal.h>
40#include <stdlib.h>
41#include <stddef.h>
42#include <unistd.h>
43#include <paths.h>
44#include <errno.h>
45#include "un-namespace.h"
46#include "libc_private.h"
47
48int
35
36#include "namespace.h"
37#include <sys/types.h>
38#include <sys/wait.h>
39#include <signal.h>
40#include <stdlib.h>
41#include <stddef.h>
42#include <unistd.h>
43#include <paths.h>
44#include <errno.h>
45#include "un-namespace.h"
46#include "libc_private.h"
47
48int
49__system(command)
50 const char *command;
49__system(const char *command)
51{
52 pid_t pid, savedpid;
53 int pstat;
54 struct sigaction ign, intact, quitact;
55 sigset_t newsigblock, oldsigblock;
56
57 if (!command) /* just checking... */
58 return(1);

--- 40 unchanged lines hidden ---
50{
51 pid_t pid, savedpid;
52 int pstat;
53 struct sigaction ign, intact, quitact;
54 sigset_t newsigblock, oldsigblock;
55
56 if (!command) /* just checking... */
57 return(1);

--- 40 unchanged lines hidden ---