equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * Copyright (c) 2013 SAP SE. All rights reserved. |
3 * Copyright (c) 2013 SAP SE. All rights reserved. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 * |
5 * |
6 * This code is free software; you can redistribute it and/or modify it |
6 * This code is free software; you can redistribute it and/or modify it |
7 * under the terms of the GNU General Public License version 2 only, as |
7 * under the terms of the GNU General Public License version 2 only, as |
24 * questions. |
24 * questions. |
25 */ |
25 */ |
26 |
26 |
27 package sun.nio.fs; |
27 package sun.nio.fs; |
28 |
28 |
29 import java.security.AccessController; |
|
30 import java.security.PrivilegedAction; |
|
31 |
|
32 /** |
29 /** |
33 * AIX specific system calls. |
30 * AIX specific system calls. |
34 */ |
31 */ |
35 |
32 |
36 class AixNativeDispatcher extends UnixNativeDispatcher { |
33 class AixNativeDispatcher extends UnixNativeDispatcher { |
44 |
41 |
45 // initialize |
42 // initialize |
46 private static native void init(); |
43 private static native void init(); |
47 |
44 |
48 static { |
45 static { |
49 AccessController.doPrivileged(new PrivilegedAction<Void>() { |
46 jdk.internal.loader.BootLoader.loadLibrary("nio"); |
50 public Void run() { |
|
51 System.loadLibrary("nio"); |
|
52 return null; |
|
53 }}); |
|
54 init(); |
47 init(); |
55 } |
48 } |
56 } |
49 } |