summaryrefslogtreecommitdiff
path: root/kaldi_io/src/tools/ATLAS/include/atlas_fopen.h
diff options
context:
space:
mode:
authorTed Yin <ted.sybil@gmail.com>2015-08-14 17:42:26 +0800
committerTed Yin <ted.sybil@gmail.com>2015-08-14 17:42:26 +0800
commitc3cffb58b9921d78753336421b52b9ffdaa5515c (patch)
treebfea20e97c200cf734021e3756d749c892e658a4 /kaldi_io/src/tools/ATLAS/include/atlas_fopen.h
parent10cce5f6a5c9e2f8e00d5a2a4d87c9cb7c26bf4c (diff)
parentdfdd17afc2e984ec6c32ea01290f5c76309a456a (diff)
Merge pull request #2 from yimmon/master
remove needless files
Diffstat (limited to 'kaldi_io/src/tools/ATLAS/include/atlas_fopen.h')
-rw-r--r--kaldi_io/src/tools/ATLAS/include/atlas_fopen.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/kaldi_io/src/tools/ATLAS/include/atlas_fopen.h b/kaldi_io/src/tools/ATLAS/include/atlas_fopen.h
deleted file mode 100644
index aaed713..0000000
--- a/kaldi_io/src/tools/ATLAS/include/atlas_fopen.h
+++ /dev/null
@@ -1,40 +0,0 @@
-#ifndef ATLAS_FOPEN_H
-#define ATLAS_FOPEN_H
-
-static int FileExists(const char *path)
-{
- FILE *fp;
- int iret=0;
- fp = fopen(path, "r");
- if (fp)
- {
- fclose(fp);
- iret = 1;
- }
- return(iret);
-}
-
-#ifdef ATL_FOPENDELAY
-static FILE *ATL_fopen(const char *path, const char *mode)
-/*
- * Overload fopen so it waits for NFS propogation upon first read failure
- */
-{
- FILE *fp;
- char ln[256];
-
- fp = fopen(path, mode);
- if (fp == NULL)
- {
- if (*mode == 'r') /* give NFS time to produce file */
- {
- sprintf(ln, "make waitfile waitfile=%s\n", path);
- if (system(ln) == 0) fp = fopen(path, mode);
- }
- }
- return(fp);
-}
-#define fopen ATL_fopen
-#endif
-
-#endif