diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 15:27:12 (GMT) |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 15:27:12 (GMT) |
commit | 5be04ec2ceb1df77afbca4fcbf9e92a712612d6f (patch) | |
tree | 2b2e1c71dffae827c8e45cd4cccc375093d03486 /gl/cloexec.h | |
parent | 6d1d1dac32841d5ca6ee51bb09b30a6c604b17e2 (diff) | |
download | monitoring-plugins-5be04ec2ceb1df77afbca4fcbf9e92a712612d6f.tar.gz |
Sync with the latest Gnulib code (d4ec02b3cc)refs/pull/2037/head
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 | ||