~ubuntu-branches/ubuntu/raring/binkd/raring-proposed

« back to all changes in this revision

Viewing changes to dos/dirent.h

  • Committer: Bazaar Package Importer
  • Author(s): Marco d'Itri
  • Date: 2002-03-24 22:52:25 UTC
  • Revision ID: james.westby@ubuntu.com-20020324225225-7ru6itlapn03nl35
Tags: upstream-0.9.5a
ImportĀ upstreamĀ versionĀ 0.9.5a

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  dirent.h -- additional functions not found in IBM VisualAge C / CSet RTL
 
3
 *
 
4
 *  dirent.h is a part of binkd project
 
5
 *
 
6
 *  Copyright (C) 1997 Victor Pashkevich, 2:451/30@FidoNet
 
7
 *
 
8
 *  This program is free software; you can redistribute it and/or modify
 
9
 *  it under the terms of the GNU General Public License as published by
 
10
 *  the Free Software Foundation; either version 2 of the License, or
 
11
 *  (at your option) any later version. See COPYING.
 
12
 */
 
13
 
 
14
#ifndef __DIRENT_H__
 
15
#define __DIRENT_H__
 
16
 
 
17
#ifdef __cplusplus
 
18
extern "C" {
 
19
#endif
 
20
 
 
21
struct dirent {
 
22
   char d_name[13];
 
23
};
 
24
 
 
25
typedef struct {
 
26
   char          _d_reserved[30];
 
27
   struct dirent _d_dirent;
 
28
   char *        dirname;
 
29
   char          _d_first;
 
30
} DIR;
 
31
 
 
32
DIR            *   opendir(const char * __dirname);
 
33
struct dirent  *   readdir(DIR * __dir);
 
34
int               closedir(DIR * __dir);
 
35
void             rewinddir(DIR * __dir);
 
36
 
 
37
#ifdef __cplusplus
 
38
}
 
39
#endif
 
40
 
 
41
 
 
42
#endif