equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
28 #include <string.h> |
28 #include <string.h> |
29 #include <ctype.h> |
29 #include <ctype.h> |
30 #include "sys.h" |
30 #include "sys.h" |
31 #include "util.h" |
31 #include "util.h" |
32 |
32 |
33 #if defined(LINUX) || defined(_ALLBSD_SOURCE) |
33 #if defined(LINUX) || defined(_ALLBSD_SOURCE) || defined(AIX) |
34 /* Linux */ |
34 /* Linux, BSD, AIX */ |
35 #define FORK() fork() |
35 #define FORK() fork() |
36 #else |
36 #else |
37 /* Solaris (make sure we always get the POSIX-specified behavior) */ |
37 /* Solaris (make sure we always get the POSIX-specified behavior) */ |
38 #define FORK() fork1() |
38 #define FORK() fork1() |
39 #endif |
39 #endif |