~ubuntu-branches/debian/experimental/ncbi-tools6/experimental

« back to all changes in this revision

Viewing changes to corelib/ncbifile.h

  • Committer: Bazaar Package Importer
  • Author(s): Aaron M. Ucko
  • Date: 2008-07-14 19:43:15 UTC
  • mfrom: (2.1.12 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080714194315-ed44u9ek7txva2rz
Tags: 6.1.20080302-3
tools/readdb.c: enable madvise()-based code on all glibc (hence all
Debian) systems, not just Linux.  (Closes: #490437.)

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
*
33
33
* Version Creation Date:   1/1/91
34
34
*
35
 
* $Revision: 6.6 $
 
35
* $Revision: 6.7 $
36
36
*
37
37
* File Description:
38
38
*       prototypes for portable file routines
40
40
* Modifications:
41
41
* --------------------------------------------------------------------------
42
42
* $Log: ncbifile.h,v $
 
43
* Revision 6.7  2007/08/16 17:09:22  kans
 
44
* moved DirExplore from sqnutils
 
45
*
43
46
* Revision 6.6  2004/05/07 15:57:14  kans
44
47
* added FileCache functions for buffered read, graceful handing of Unix, Mac, and DOS line endings
45
48
*
118
121
NLM_EXTERN Nlm_Int4 Nlm_FileCacheTell (Nlm_FileCache PNTR fcp);
119
122
NLM_EXTERN Nlm_Boolean Nlm_FileCacheFree (Nlm_FileCache PNTR fcp, Nlm_Boolean restoreFilePos);
120
123
 
121
 
 
 
124
/* general file recursion function - directory must not be empty, proc callback function must not be NULL */
 
125
 
 
126
typedef void (*Nlm_DirExpProc) (Nlm_CharPtr filename, Nlm_VoidPtr userdata);
 
127
 
 
128
NLM_EXTERN Nlm_Int4 Nlm_DirExplore (
 
129
  Nlm_CharPtr directory,
 
130
  Nlm_CharPtr filter,
 
131
  Nlm_CharPtr suffix,
 
132
  Nlm_Boolean recurse,
 
133
  Nlm_DirExpProc proc,
 
134
  Nlm_VoidPtr userdata
 
135
);
122
136
 
123
137
#define FileOpen Nlm_FileOpen
124
138
#define FileClose Nlm_FileClose
149
163
#define FileCacheTell Nlm_FileCacheTell
150
164
#define FileCacheFree Nlm_FileCacheFree
151
165
 
 
166
#define DirExpProc Nlm_DirExpProc
 
167
#define DirExplore Nlm_DirExplore
 
168
 
152
169
#define EjectCd(sVolume, deviceName, rawDeviceName, mountPoint, mountCmd)  FALSE
153
170
#define MountCd(sVolume, deviceName, mountPoint, mountCmd)                 FALSE
154
171