]> Savannah Git Hosting - gnulib.git/commitdiff
fsusage, regex, stat-size: remove Cray support
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 29 Jul 2020 20:39:37 +0000 (13:39 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 29 Jul 2020 20:40:42 +0000 (13:40 -0700)
As near as I can make out this is actually support for UNICOS/mp,
last released 2005, and Cray hasn’t supported that for years.
* config/srclist.txt: Comment out regex.h for now.
* lib/fsusage.c (get_fs_usage):
* lib/regex.h (re_comp, re_exec):
* lib/stat-size.h (ST_NBLOCKSIZE):
Don’t worry about _CRAY.

ChangeLog
config/srclist.txt
lib/fsusage.c
lib/regex.h
lib/stat-size.h

index 6962f160f92856463db7024bd3b2370360960231..c5fd79351f2a88b0fe1dec63a56b450a5536e6b3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
+
+       fsusage, regex, stat-size: remove Cray support
+       As near as I can make out this is actually support for UNICOS/mp,
+       last released 2005, and Cray hasn’t supported that for years.
+       * config/srclist.txt: Comment out regex.h for now.
+       * lib/fsusage.c (get_fs_usage):
+       * lib/regex.h (re_comp, re_exec):
+       * lib/stat-size.h (ST_NBLOCKSIZE):
+       Don’t worry about _CRAY.
+
 2020-07-29  Bruno Haible  <bruno@clisp.org>
 
        parse-datetime: Fix compilation error with bison 3.7.
index 1ff511be1b6457e670878a2fd1d7f115e0213832..55388b1111e172ad181fb06c27be8875d2fc2764 100644 (file)
@@ -57,7 +57,7 @@ $LIBCSRC malloc/scratch_buffer_set_array_size.c       lib/malloc
 #$LIBCSRC include/intprops.h             lib
 $LIBCSRC posix/regcomp.c               lib
 #$LIBCSRC posix/regex.c                        lib
-$LIBCSRC posix/regex.h                 lib
+#$LIBCSRC posix/regex.h                        lib
 $LIBCSRC posix/regex_internal.c                lib
 #$LIBCSRC posix/regex_internal.h       lib
 $LIBCSRC posix/regexec.c               lib
index 81960152d41e3a8d23a66ac32d65fbab9d752d97..85bfe0e28376cfb11d57049a074c3e94549b3e2d 100644 (file)
@@ -211,11 +211,7 @@ get_fs_usage (char const *file, char const *disk, struct fs_usage *fsp)
   /* Empirically, the block counts on most SVR3 and SVR3-derived
      systems seem to always be in terms of 512-byte blocks,
      no matter what value f_bsize has.  */
-# if defined _CRAY
-   fsp->fsu_blocksize = PROPAGATE_ALL_ONES (fsd.f_bsize);
-# else
    fsp->fsu_blocksize = 512;
-# endif
 
 #endif
 
index 87cce7f5cb8cc3b678467329b479bd511e250e61..5fe41c86853fc2866d9dbd05670bac8b4895fa98 100644 (file)
@@ -600,11 +600,9 @@ extern void re_set_registers (struct re_pattern_buffer *__buffer,
 #endif /* Use GNU */
 
 #if defined _REGEX_RE_COMP || (defined _LIBC && defined __USE_MISC)
-# ifndef _CRAY
 /* 4.2 bsd compatibility.  */
 extern char *re_comp (const char *);
 extern int re_exec (const char *);
-# endif
 #endif
 
 /* For plain 'restrict', use glibc's __restrict if defined.
index c1c96598d857461bda572ed1d99ec47c03dae799..574f3dbc4714b59fb71dadaac5843054e322842a 100644 (file)
   /* HP-UX counts st_blocks in 1024-byte units.
      This loses when mixing HP-UX and BSD file systems with NFS.  */
 #  define ST_NBLOCKSIZE 1024
-# else /* !hpux */
-#  if defined _CRAY
-#   define ST_NBLOCKS(statbuf) \
-  (S_ISREG ((statbuf).st_mode) || S_ISDIR ((statbuf).st_mode) \
-   ? (statbuf).st_blocks * ST_BLKSIZE (statbuf) / ST_NBLOCKSIZE : 0)
-#  endif
 # endif
 #endif