diff options
Diffstat (limited to 'gl/cloexec.h')
-rw-r--r-- | gl/cloexec.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gl/cloexec.h b/gl/cloexec.h index 057fd66..a7944d6 100644 --- a/gl/cloexec.h +++ b/gl/cloexec.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* cloexec.c - set or clear the close-on-exec descriptor flag | 1 | /* cloexec.c - set or clear the close-on-exec descriptor flag |
2 | 2 | ||
3 | Copyright (C) 2004, 2009-2023 Free Software Foundation, Inc. | 3 | Copyright (C) 2004, 2009-2024 Free Software Foundation, Inc. |
4 | 4 | ||
5 | This file is free software: you can redistribute it and/or modify | 5 | This file is free software: you can redistribute it and/or modify |
6 | it under the terms of the GNU Lesser General Public License as | 6 | it under the terms of the GNU Lesser General Public License as |
@@ -15,6 +15,11 @@ | |||
15 | You should have received a copy of the GNU Lesser General Public License | 15 | You should have received a copy of the GNU Lesser General Public License |
16 | along with this program. If not, see <https://www.gnu.org/licenses/>. */ | 16 | along with this program. If not, see <https://www.gnu.org/licenses/>. */ |
17 | 17 | ||
18 | #ifdef __cplusplus | ||
19 | extern "C" { | ||
20 | #endif | ||
21 | |||
22 | |||
18 | /* Set the 'FD_CLOEXEC' flag of DESC if VALUE is true, | 23 | /* Set the 'FD_CLOEXEC' flag of DESC if VALUE is true, |
19 | or clear the flag if VALUE is false. | 24 | or clear the flag if VALUE is false. |
20 | Return 0 on success, or -1 on error with 'errno' set. | 25 | Return 0 on success, or -1 on error with 'errno' set. |
@@ -32,3 +37,8 @@ int set_cloexec_flag (int desc, bool value); | |||
32 | be duplicated. */ | 37 | be duplicated. */ |
33 | 38 | ||
34 | int dup_cloexec (int fd); | 39 | int dup_cloexec (int fd); |
40 | |||
41 | |||
42 | #ifdef __cplusplus | ||
43 | } | ||
44 | #endif | ||