Mercurial > hg > octave-lojdl > gnulib-hg
annotate lib/full-write.h @ 7017:005fe24b840a
Update javaexec module from GNU gettext 0.15.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 22 Jul 2006 15:17:55 +0000 |
parents | a48fb0e98c8c |
children | bbbbbf4cd1c5 |
rev | line source |
---|---|
4002
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
3405
diff
changeset
|
1 /* An interface to write() that writes all it is asked to write. |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
3405
diff
changeset
|
2 |
5105 | 3 Copyright (C) 2002-2003 Free Software Foundation, Inc. |
4002
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
3405
diff
changeset
|
4 |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
3405
diff
changeset
|
5 This program is free software; you can redistribute it and/or modify |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
3405
diff
changeset
|
6 it under the terms of the GNU General Public License as published by |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
3405
diff
changeset
|
7 the Free Software Foundation; either version 2, or (at your option) |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
3405
diff
changeset
|
8 any later version. |
3405 | 9 |
4002
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
3405
diff
changeset
|
10 This program is distributed in the hope that it will be useful, |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
3405
diff
changeset
|
11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
3405
diff
changeset
|
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
3405
diff
changeset
|
13 GNU General Public License for more details. |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
3405
diff
changeset
|
14 |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
3405
diff
changeset
|
15 You should have received a copy of the GNU General Public License |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
3405
diff
changeset
|
16 along with this program; if not, write to the Free Software Foundation, |
5848
a48fb0e98c8c
*** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents:
5105
diff
changeset
|
17 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ |
4002
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
3405
diff
changeset
|
18 |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
3405
diff
changeset
|
19 #include <stddef.h> |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
3405
diff
changeset
|
20 |
5105 | 21 |
22 #ifdef __cplusplus | |
23 extern "C" { | |
24 #endif | |
25 | |
26 | |
4002
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
3405
diff
changeset
|
27 /* Write COUNT bytes at BUF to descriptor FD, retrying if interrupted |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
3405
diff
changeset
|
28 or if partial writes occur. Return the number of bytes successfully |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
3405
diff
changeset
|
29 written, setting errno if that is less than COUNT. */ |
9fcf64c770ed
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible <bruno@clisp.org>
parents:
3405
diff
changeset
|
30 extern size_t full_write (int fd, const void *buf, size_t count); |
5105 | 31 |
32 | |
33 #ifdef __cplusplus | |
34 } | |
35 #endif |