X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fsafe-write.h;h=c194636209f7a139251e4999b8cd1a5a6437535d;hb=707a7ac4b2eb3209fd1b67b1650a8fef5cf7c5e4;hp=25d1a4d487617b5bed41364dc667b116e13732d3;hpb=849efe7683e163ede9240b27d675977c71c76ce8;p=gnulib.git diff --git a/lib/safe-write.h b/lib/safe-write.h index 25d1a4d48..c19463620 100644 --- a/lib/safe-write.h +++ b/lib/safe-write.h @@ -13,11 +13,13 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, - Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include +#define SAFE_WRITE_ERROR ((size_t) -1) + /* Write up to COUNT bytes at BUF to descriptor FD, retrying if interrupted. - Return the actual number of bytes written, zero for EOF, or (size_t) -1 - for an error. */ + Return the actual number of bytes written, zero for EOF, or SAFE_WRITE_ERROR + upon error. */ extern size_t safe_write (int fd, const void *buf, size_t count);