1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-09-01 02:34:55 +00:00

merge with 3.4.1

This commit is contained in:
Jim Meyering
1993-03-29 05:09:24 +00:00
parent 642b12f91f
commit b065789549
4 changed files with 20 additions and 11 deletions
+4 -1
View File
@@ -64,7 +64,10 @@ realclean: distclean
rm -f TAGS
dist:
ln $(DISTFILES) ../`cat ../.fname`/lib
for file in $(DISTFILES); do \
ln $$file ../`cat ../.fname`/lib \
|| cp $$file ../`cat ../.fname`/lib; \
done
libfu.a: $(OBJECTS)
rm -f $@
+1 -1
View File
@@ -20,7 +20,7 @@
#else
char *malloc ();
#endif
#if defined(USG) || defined(STDC_HEADERS)
#if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
#include <string.h>
#ifndef rindex
#define rindex strrchr
+12 -8
View File
@@ -56,14 +56,18 @@ int statvfs ();
/* Return the number of TOSIZE-byte blocks used by
BLOCKS FROMSIZE-byte blocks, rounding up. */
#define adjust_blocks(blocks, fromsize, tosize) \
(((fromsize) == (tosize)) \
? (blocks) /* E.g., from 512 to 512. */ \
: (((fromsize) > (tosize)) \
/* E.g., from 2048 to 512. */ \
? (blocks) * ((fromsize) / (tosize)) \
/* E.g., from 256 to 512. */ \
: ((blocks) + 1) / ((tosize) / (fromsize))))
static long
adjust_blocks (blocks, fromsize, tosize)
long blocks;
int fromsize, tosize;
{
if (fromsize == tosize) /* E.g., from 512 to 512. */
return blocks;
else if (fromsize > tosize) /* E.g., from 2048 to 512. */
return blocks * (fromsize / tosize);
else /* E.g., from 256 to 512. */
return (blocks + 1) / (tosize / fromsize);
}
/* Fill in the fields of FSP with information about space usage for
the filesystem on which PATH resides.
+3 -1
View File
@@ -49,9 +49,11 @@ char *alloca ();
extern int errno;
#endif
#if defined(USG) || defined(STDC_HEADERS)
#if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
#include <string.h>
#ifndef index
#define index strchr
#endif
#else
#include <strings.h>
#endif