~ubuntu-branches/ubuntu/vivid/cctools/vivid

« back to all changes in this revision

Viewing changes to parrot/src/pfs_dir.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Hanke
  • Date: 2011-05-07 09:05:00 UTC
  • Revision ID: james.westby@ubuntu.com-20110507090500-lqpmdtwndor6e7os
Tags: upstream-3.3.2
ImportĀ upstreamĀ versionĀ 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
 
3
Copyright (C) 2005- The University of Notre Dame
 
4
This software is distributed under the GNU General Public License.
 
5
See the file COPYING for details.
 
6
*/
 
7
 
 
8
#ifndef PFS_DIR_H
 
9
#define PFS_DIR_H
 
10
 
 
11
#include "pfs_sysdeps.h"
 
12
#include "pfs_types.h"
 
13
#include "pfs_service.h"
 
14
#include "pfs_file.h"
 
15
 
 
16
class pfs_dir : public pfs_file {
 
17
public:
 
18
        pfs_dir( pfs_name *n );
 
19
        virtual ~pfs_dir();
 
20
 
 
21
        virtual int fstat( struct pfs_stat *buf );
 
22
        virtual int fstatfs( struct pfs_statfs *buf );
 
23
        virtual int fchmod( mode_t mode );
 
24
        virtual int fchown( uid_t uid, gid_t gid );
 
25
 
 
26
        virtual int append( const char *name );
 
27
        virtual struct dirent * fdreaddir( pfs_off_t offset, pfs_off_t *next_offset );
 
28
 
 
29
private:
 
30
        char *data;
 
31
        pfs_off_t length;
 
32
        pfs_off_t maxlength;
 
33
};
 
34
 
 
35
#endif