Blame gnulib/lib/full-write.h

Packit eba2e2
/* An interface to write() that writes all it is asked to write.
Packit eba2e2
Packit eba2e2
   Copyright (C) 2002-2003, 2009-2014 Free Software Foundation, Inc.
Packit eba2e2
Packit eba2e2
   This program is free software: you can redistribute it and/or modify
Packit eba2e2
   it under the terms of the GNU General Public License as published by
Packit eba2e2
   the Free Software Foundation; either version 3 of the License, or
Packit eba2e2
   (at your option) any later version.
Packit eba2e2
Packit eba2e2
   This program is distributed in the hope that it will be useful,
Packit eba2e2
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit eba2e2
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit eba2e2
   GNU General Public License for more details.
Packit eba2e2
Packit eba2e2
   You should have received a copy of the GNU General Public License
Packit eba2e2
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
Packit eba2e2
Packit eba2e2
#include <stddef.h>
Packit eba2e2
Packit eba2e2
Packit eba2e2
#ifdef __cplusplus
Packit eba2e2
extern "C" {
Packit eba2e2
#endif
Packit eba2e2
Packit eba2e2
Packit eba2e2
/* Write COUNT bytes at BUF to descriptor FD, retrying if interrupted
Packit eba2e2
   or if partial writes occur.  Return the number of bytes successfully
Packit eba2e2
   written, setting errno if that is less than COUNT.  */
Packit eba2e2
extern size_t full_write (int fd, const void *buf, size_t count);
Packit eba2e2
Packit eba2e2
Packit eba2e2
#ifdef __cplusplus
Packit eba2e2
}
Packit eba2e2
#endif