~ubuntu-branches/ubuntu/wily/luatex/wily

« back to all changes in this revision

Viewing changes to source/libs/xpdf/xpdf-3.02/goo/vms_dirent.h

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2010-04-29 00:47:19 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20100429004719-o42etkqe90n97b9e
Tags: 0.60.1-1
* new upstream release, adapt build-script patch
* disable patch: upstream-epstopdf_cc_no_xpdf_patching, included upstream
* disable patch: libpoppler-0.12, not needed anymore

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*      @(#)dirent.h 1.7 89/06/25 SMI   */
 
2
 
 
3
/*
 
4
 * Filesystem-independent directory information.
 
5
 */
 
6
 
 
7
#ifndef __dirent_h
 
8
#define __dirent_h
 
9
 
 
10
#ifdef __cplusplus
 
11
extern "C" {
 
12
#endif
 
13
 
 
14
/* Make sure we don't get the V7 RTL dirent functions. These are broken. */
 
15
 
 
16
#ifndef __CRTL_VER
 
17
#   define __CRTL_VER __VMS_VER
 
18
#endif
 
19
#if __CRTL_VER >= 70000000
 
20
#include <dirent.h>
 
21
#endif
 
22
 
 
23
#include <types.h>
 
24
 
 
25
#define opendir   goo_opendir
 
26
#define readdir   goo_readdir
 
27
#define closedir  goo_closedir
 
28
#define seekdir   goo_seekdir
 
29
#define telldir   goo_telldir
 
30
#define rewinddir goo_rewindir
 
31
#define DIR       GOO_DIR
 
32
 
 
33
#ifndef _POSIX_SOURCE
 
34
#define d_ino   d_fileno        /* compatability */
 
35
#ifndef NULL
 
36
#define NULL    0
 
37
#endif
 
38
#endif  /* !_POSIX_SOURCE */
 
39
 
 
40
/*
 
41
 * Definitions for library routines operating on directories.
 
42
 */
 
43
typedef struct __dirdesc {
 
44
        unsigned long dd_fd;    /* file descriptor */
 
45
        long    dd_loc;         /* buf offset of entry from last readddir() */
 
46
        long    dd_size;        /* amount of valid data in buffer */
 
47
        long    dd_bsize;       /* amount of entries read at a time */
 
48
        long    dd_off;         /* Current offset in dir (for telldir) */
 
49
        char    *dd_buf;        /* directory data buffer */
 
50
} DIR;
 
51
 
 
52
#include "vms_sys_dirent.h"
 
53
 
 
54
extern  DIR *opendir(char *dirname);
 
55
extern  struct dirent *readdir(DIR *dirp);
 
56
extern  void closedir(DIR *dirp);
 
57
#ifndef _POSIX_SOURCE
 
58
extern  void seekdir(DIR *dirp, int loc);
 
59
extern  long telldir(DIR *dirp);
 
60
#endif  /* POSIX_SOURCE */
 
61
extern  void rewinddir(DIR *dirp);
 
62
 
 
63
#ifdef __cplusplus
 
64
}
 
65
#endif
 
66
 
 
67
#endif  /* !__dirent_h */