equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2015, 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 |
46 #define RESTARTABLE(_cmd, _result) do { \ |
46 #define RESTARTABLE(_cmd, _result) do { \ |
47 do { \ |
47 do { \ |
48 _result = _cmd; \ |
48 _result = _cmd; \ |
49 } while((_result == -1) && (errno == EINTR)); \ |
49 } while((_result == -1) && (errno == EINTR)); \ |
50 } while(0) |
50 } while(0) |
|
51 |
|
52 /* |
|
53 * Declare library specific JNI_Onload entry if static build |
|
54 */ |
|
55 DEF_STATIC_JNI_OnLoad |
51 |
56 |
52 /* |
57 /* |
53 * Defines a callback that is invoked for each process |
58 * Defines a callback that is invoked for each process |
54 */ |
59 */ |
55 typedef void (*ProcessCallback)(const pid_t pid, void* user_data); |
60 typedef void (*ProcessCallback)(const pid_t pid, void* user_data); |