1 /* |
1 /* |
2 * Copyright (c) 2012, 2014, Oracle and/or its affiliates. |
2 * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * All rights reserved. Use is subject to license terms. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This file is available and licensed under the following license: |
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 |
|
7 * published by the Free Software Foundation. Oracle designates this |
|
8 * particular file as subject to the "Classpath" exception as provided |
|
9 * by Oracle in the LICENSE file that accompanied this code. |
6 * |
10 * |
7 * Redistribution and use in source and binary forms, with or without |
11 * This code is distributed in the hope that it will be useful, but WITHOUT |
8 * modification, are permitted provided that the following conditions |
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
9 * are met: |
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 * version 2 for more details (a copy is included in the LICENSE file that |
|
15 * accompanied this code). |
10 * |
16 * |
11 * - Redistributions of source code must retain the above copyright |
17 * You should have received a copy of the GNU General Public License version |
12 * notice, this list of conditions and the following disclaimer. |
18 * 2 along with this work; if not, write to the Free Software Foundation, |
13 * - Redistributions in binary form must reproduce the above copyright |
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
14 * notice, this list of conditions and the following disclaimer in |
|
15 * the documentation and/or other materials provided with the distribution. |
|
16 * - Neither the name of Oracle Corporation nor the names of its |
|
17 * contributors may be used to endorse or promote products derived |
|
18 * from this software without specific prior written permission. |
|
19 * |
20 * |
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
22 * or visit www.oracle.com if you need additional information or have any |
22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
23 * questions. |
23 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
|
24 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
|
25 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
|
26 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
|
27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
|
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
|
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
|
30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
31 */ |
24 */ |
32 |
|
33 |
25 |
34 #import <Cocoa/Cocoa.h> |
26 #import <Cocoa/Cocoa.h> |
35 #include <dlfcn.h> |
27 #include <dlfcn.h> |
36 #include <unistd.h> |
28 #include <unistd.h> |
37 |
29 |