~ubuntu-branches/ubuntu/raring/vice/raring

« back to all changes in this revision

Viewing changes to src/arch/unix/x11/xaw/widgets/Directory.h

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2009-03-31 00:37:15 UTC
  • mfrom: (1.2.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: james.westby@ubuntu.com-20090331003715-mzclchtl0dp7fcl0
Tags: upstream-2.1.dfsg
ImportĀ upstreamĀ versionĀ 2.1.dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
#include <stdio.h>
35
35
#include <string.h>
 
36
 
 
37
#ifndef VMS
36
38
#include <sys/param.h>
 
39
#endif
 
40
 
37
41
#include <sys/types.h>
38
42
#include <sys/stat.h>
39
43
 
53
57
#define getwd(path) getcwd(path, MAXPATHLEN)
54
58
#endif
55
59
 
 
60
#ifdef VMS
 
61
struct __dirdesc {
 
62
  unsigned long dd_fd;
 
63
  long dd_loc;
 
64
  long dd_size;
 
65
  long dd_bsize;
 
66
  long dd_off;
 
67
  char *dd_buf;
 
68
  char d_name[256];
 
69
};
 
70
 
 
71
typedef struct __dirdesc DIR;
 
72
 
 
73
struct dirent {
 
74
  long d_off;
 
75
  unsigned long d_fileno;
 
76
  unsigned short d_reclen;
 
77
  unsigned short d_namlen;
 
78
  char d_name[255+1];
 
79
};
 
80
 
 
81
extern DIR *opendir(char *dirname);
 
82
extern int closedir(DIR *dirp);
 
83
extern long telldir(DIR *dirp);
 
84
extern void seekdir(DIR *dirp, int loc);
 
85
extern struct dirent *readdir(DIR *dirp);
 
86
#else
56
87
#ifndef NO_DIRENT
57
88
#include <dirent.h>
58
89
#else
59
90
#include <sys/dir.h>
60
91
#define dirent direct
61
92
#endif
 
93
#endif
 
94
 
 
95
#ifdef __NeXT__
 
96
#ifdef HAVE_SYS_DIR_H
 
97
#include <sys/dir.h>
 
98
#endif
 
99
#define dirent direct
 
100
#endif
62
101
 
63
102
#define NeedFunctionPrototypes 1
64
103