X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffull-write.c;h=46d030b95d5044b00ebf170afd632cafdac451b9;hb=8cdf507496138203fbf4c3f36c70575825ad7bf1;hp=cce5f0f03531ddaba038b15e718b9a41e1494887;hpb=90c1dd8b74406566869f322b6acdb4e54699098a;p=gnulib.git diff --git a/lib/full-write.c b/lib/full-write.c index cce5f0f03..46d030b95 100644 --- a/lib/full-write.c +++ b/lib/full-write.c @@ -1,5 +1,5 @@ /* full-write.c -- an interface to write that retries after interrupts - Copyright (C) 1993 Free Software Foundation, Inc. + Copyright (C) 1993, 1994 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -12,31 +12,24 @@ GNU General Public License for more details. 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., 675 Mass Ave, Cambridge, MA 02139, USA. + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. Copied largely from GNU C's cccp.c. */ -#ifdef HAVE_CONFIG_H -#if defined (CONFIG_BROKETS) -/* We use instead of "config.h" so that a compilation - using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h - (which it would do because it found this file in $srcdir). */ -#include -#else -#include "config.h" -#endif +#if HAVE_CONFIG_H +# include #endif #include -#ifdef HAVE_UNISTD_H -#include +#if HAVE_UNISTD_H +# include #endif #include -#ifndef STDC_HEADERS +#ifndef errno extern int errno; #endif @@ -47,7 +40,7 @@ int full_write (desc, ptr, len) int desc; char *ptr; - int len; + size_t len; { int total_written;