diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-08-19 21:27:12 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-08-19 21:27:12 (GMT) |
commit | 26fbe7f1e68bb0c96da32491efcf3696fe6c299b (patch) | |
tree | c4d95289187a64e9c7517bf73d8208026c3d2fb3 /gl/safe-write.h | |
parent | 5f79e3e9f62ca5487d9881973149136ba1d19d3e (diff) | |
download | monitoring-plugins-26fbe7f1e68bb0c96da32491efcf3696fe6c299b.tar.gz |
Sync with the latest Gnulib code (6f2d632)
Diffstat (limited to 'gl/safe-write.h')
-rw-r--r-- | gl/safe-write.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/gl/safe-write.h b/gl/safe-write.h deleted file mode 100644 index 185f660..0000000 --- a/gl/safe-write.h +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | /* An interface to write() that retries after interrupts. | ||
2 | Copyright (C) 2002, 2009-2010 Free Software Foundation, Inc. | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation; either version 3 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ | ||
16 | |||
17 | #include <stddef.h> | ||
18 | |||
19 | #define SAFE_WRITE_ERROR ((size_t) -1) | ||
20 | |||
21 | /* Write up to COUNT bytes at BUF to descriptor FD, retrying if interrupted. | ||
22 | Return the actual number of bytes written, zero for EOF, or SAFE_WRITE_ERROR | ||
23 | upon error. */ | ||
24 | extern size_t safe_write (int fd, const void *buf, size_t count); | ||