xrootd
Main Page
Namespaces
Classes
Files
File List
File Members
src
XrdOss
XrdOssMioFile.hh
Go to the documentation of this file.
1
#ifndef __OSSMIOFILE_H__
2
#define __OSSMIOFILE_H__
3
/******************************************************************************/
4
/* */
5
/* X r d O s s M i o F i l e . h h */
6
/* */
7
/* (c) 2005 by the Board of Trustees of the Leland Stanford, Jr., University */
8
/* All Rights Reserved */
9
/* Produced by Andrew Hanushevsky for Stanford University under contract */
10
/* DE-AC02-76-SFO0515 with the Department of Energy */
11
/******************************************************************************/
12
13
// $Id$
14
15
#include <time.h>
16
#include <sys/types.h>
17
18
class
XrdOssMioFile
19
{
20
public
:
21
friend
class
XrdOssMio
;
22
23
off_t
Export
(
void
**Addr) {*Addr =
Base
;
return
Size
;}
24
25
XrdOssMioFile
(
char
*hname)
26
{strcpy(
HashName
, hname);
27
inUse
= 1;
Next
= 0;
Size
= 0;
28
}
29
~XrdOssMioFile
();
30
31
private
:
32
33
XrdOssMioFile
*
Next
;
34
dev_t
Dev
;
35
ino_t
Ino
;
36
int
Status
;
37
int
inUse
;
38
void
*
Base
;
39
off_t
Size
;
40
char
HashName
[64];
41
};
42
#endif
Generated by
1.8.1.2