Thread: [Libsysio-commit] RedStorm: libsysio configure.in
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2003-05-12 11:48:48
|
Update of /cvsroot/libsysio/libsysio In directory sc8-pr-cvs1:/tmp/cvs-serv27060 Modified Files: Tag: RedStorm configure.in Log Message: Modifications for the Cray RedStorm compute node operating system. This is a BSD-based libc. Index: configure.in =================================================================== RCS file: /cvsroot/libsysio/libsysio/configure.in,v retrieving revision 1.5 retrieving revision 1.5.6.1 diff -u -w -b -B -p -r1.5 -r1.5.6.1 --- configure.in 26 Mar 2003 00:05:59 -0000 1.5 +++ configure.in 12 May 2003 11:48:45 -0000 1.5.6.1 @@ -120,7 +120,7 @@ AC_TRY_COMPILE([ #include <sys/types.h> #include <sys/stat.h> #include <unistd.h>], [ -struct stat64 st64; printf("%u\n", sizeof(struct stat64));], +struct stat64 st64;], sysio_largefile64_source_required=no, sysio_largefile64_source_required=maybe) if test x$sysio_largefile64_source_required = xmaybe; then @@ -129,7 +129,7 @@ if test x$sysio_largefile64_source_requi #include <sys/types.h> #include <sys/stat.h> #include <unistd.h>], [ -int i; i = 0;], +struct stat64 st64;], sysio_largefile64_source_required=yes, sysio_largefile64_source_required=no) fi @@ -173,15 +173,19 @@ fi # Check for fdatasync syscall # AC_MSG_CHECKING(for fdatasync system call) +if test x$alpha_linux_env == xyes; then + _syscallnum=SYS_osf_fdatasync +else + _syscallnum=SYS_fdatasync +fi AC_TRY_COMPILE([ -#include <syscall.h>], -[int fd = 0; -syscall(SYS_fdatasync, fd);], +#include <syscall.h>], [ +syscall($_syscallnum, 0);], syscall_fdatasync_exists=yes, syscall_fdatasync_exists=no) AC_MSG_RESULT($syscall_fdatasync_exists) -if test x$syscall_fdatasync_exists = xno; then - AC_DEFINE(USE_NATIVE_FDATASYNC) +if test x$syscall_fdatasync_exists = xyes; then + AC_DEFINE_UNQUOTED(NATIVE_FDATASYNC, $_syscallnum) fi # Check for SYS_utime @@ -208,6 +212,20 @@ st.__st_ino = 0;], AC_MSG_RESULT($have__st_ino) if test x$have__st_ino = xyes; then AC_DEFINE(HAVE__ST_INO) +fi + +# Check for getdents64 call +# +AC_MSG_CHECKING(for getdents64 system call) +AC_TRY_COMPILE([ +#include <syscall.h>], +[ + syscall(SYS_getdents64, 0, (char *)0, 0);], + syscall_getdents64_exists=yes, + syscall_getdents64_exists=no) +AC_MSG_RESULT($syscall_getdents64_exists) +if test x$syscall_getdents64_exists = xno; then + AC_DEFINE(USE_NATURAL_GETDENTS) fi AC_MSG_CHECKING(whether .text pseudo-op must be used) |
From: Lee W. <lw...@us...> - 2003-07-29 19:53:20
|
Update of /cvsroot/libsysio/libsysio In directory sc8-pr-cvs1:/tmp/cvs-serv12924 Modified Files: Tag: RedStorm configure.in Log Message: Pull in recent changes from the HEAD branch, to incorporate fixes there. Index: configure.in =================================================================== RCS file: /cvsroot/libsysio/libsysio/configure.in,v retrieving revision 1.5.6.2 retrieving revision 1.5.6.3 diff -u -w -b -B -p -r1.5.6.2 -r1.5.6.3 --- configure.in 19 May 2003 13:51:20 -0000 1.5.6.2 +++ configure.in 29 Jul 2003 19:05:06 -0000 1.5.6.3 @@ -213,6 +213,19 @@ AC_MSG_RESULT($have__st_ino) if test x$have__st_ino = xyes; then AC_DEFINE(HAVE__ST_INO) fi +# Check for st_gen +# +AC_MSG_CHECKING(for st_gen) +AC_TRY_COMPILE([ +#include <sys/stat.h>], +[struct stat st; +st.st_gen = 0;], + have_st_gen=yes, + have_st_gen=no) +AC_MSG_RESULT($have_st_gen) +if test x$have_st_gen = xyes; then + AC_DEFINE(HAVE_GENERATION) +fi # Check for getdents64 call # |
From: Lee W. <lw...@us...> - 2003-07-29 22:22:12
|
Update of /cvsroot/libsysio/libsysio In directory sc8-pr-cvs1:/tmp/cvs-serv29917 Modified Files: Tag: RedStorm configure.in Log Message: Merged access(2) addition from the HEAD. Index: configure.in =================================================================== RCS file: /cvsroot/libsysio/libsysio/configure.in,v retrieving revision 1.5.6.3 retrieving revision 1.5.6.4 diff -u -w -b -B -p -r1.5.6.3 -r1.5.6.4 |
From: Lee W. <lw...@us...> - 2003-09-27 20:20:55
|
Update of /cvsroot/libsysio/libsysio In directory sc8-pr-cvs1:/tmp/cvs-serv15049 Modified Files: Tag: RedStorm configure.in Log Message: Updated with recent changes in HEAD branch. Index: configure.in =================================================================== RCS file: /cvsroot/libsysio/libsysio/configure.in,v retrieving revision 1.5.6.5 retrieving revision 1.5.6.6 diff -u -w -b -B -p -r1.5.6.5 -r1.5.6.6 --- configure.in 26 Sep 2003 21:28:33 -0000 1.5.6.5 +++ configure.in 27 Sep 2003 20:20:40 -0000 1.5.6.6 @@ -3,7 +3,7 @@ AC_INIT(libsysio, 0.1) AC_CANONICAL_HOST case "$host_os" in - linux-gnu) + linux*) ;; *) AC_MSG_WARN('***' ${host_os}: Unsupported OS target) @@ -25,8 +25,8 @@ AC_ARG_WITH(native_driver, yes) ;; no) ;; *) AC_MSG_ERROR(bad value ${withval} for --with-native-driver) ;; - esac], - [with_native_driver=yes]) + esac;], + [with_native_driver=yes;]) AM_CONDITIONAL(WITH_NATIVE_DRIVER, test x$with_native_driver = xyes) AC_ARG_WITH(incore-driver, @@ -211,8 +211,10 @@ else _syscallnum=SYS_fdatasync fi AC_TRY_COMPILE([ -#include <syscall.h>], [ -syscall($_syscallnum, 0);], +#include <syscall.h> +extern int syscall();], +[int fd = 0; +syscall(SYS_fdatasync, fd);], syscall_fdatasync_exists=yes, syscall_fdatasync_exists=no) AC_MSG_RESULT($syscall_fdatasync_exists) |
From: Lee W. <lw...@us...> - 2003-10-10 18:06:40
|
Update of /cvsroot/libsysio/libsysio In directory sc8-pr-cvs1:/tmp/cvs-serv5485 Modified Files: Tag: RedStorm configure.in Log Message: Integrate RedStorm_merge branch. This incorporates changes required for the Red Storm cnos. Some things didn't make it: a) The mount call change. We *really* want the original libsysio version. Special, libsysio only, flags are unavailable without it. Semantic differences are possible without it. b) The Red Storm specific startup and initial mounts source. These should be moved into the Cray-specific C library -- With startup.c? One thing enhanced; The native driver doio routine from RedStorm_merge err'd if an iovec was more than one entry long. This will break things in the future. Added code, in doio, to loop over iovecs, calling the low-level transfer function (pread) for each element. Notes: The typedef and defined failure value for ioid_t need to be placed in a more accessible place for the Cray. User-level source should *not* include sysio.h ever. The async IO call prototypes (those that begin with an `i') should be prototyped somewhere outside libsysio. Look at ASCI Red in order to promote backward compatibility? The mount prototype in the catamount `C' lib includes should be altered to reflect ours. Prototypes for _sysio_start() and _sysio_shutdown() should be available externally for startup.c. It, too, shouldn't include sysio.h. Index: configure.in =================================================================== RCS file: /cvsroot/libsysio/libsysio/configure.in,v retrieving revision 1.5.6.6 retrieving revision 1.5.6.7 diff -u -w -b -B -p -r1.5.6.6 -r1.5.6.7 --- configure.in 27 Sep 2003 20:20:40 -0000 1.5.6.6 +++ configure.in 10 Oct 2003 18:06:36 -0000 1.5.6.7 @@ -385,6 +385,7 @@ AC_OUTPUT( drivers/Makefile drivers/native/Makefile drivers/incore/Makefile + drivers/yod/Makefile dev/Makefile dev/stdfd/Makefile tests/Makefile) |