00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifdef __GNUC__
00029 #pragma interface
00030 #endif
00031
00032 #ifndef _util_group_fileproc_h
00033 #define _util_group_fileproc_h
00034
00035 #include <sys/types.h>
00036
00037 #include <util/group/memmsg.h>
00038
00039 namespace sc {
00040
00043 class ProcFileGrp: public FileGrp {
00044 private:
00045 int datafile_;
00046 public:
00047 ProcFileGrp();
00048 ProcFileGrp(const Ref<KeyVal>&);
00049 ~ProcFileGrp();
00050
00051 ProcFileGrp* clone();
00052
00053 void set_localsize(size_t);
00054 void *localdata();
00055
00056 void *obtain_readwrite(distsize_t offset, int size);
00057 void *obtain_readonly(distsize_t offset, int size);
00058 void *obtain_writeonly(distsize_t offset, int size);
00059 void release_readonly(void *data, distsize_t offset, int size);
00060 void release_writeonly(void *data, distsize_t offset, int size);
00061 void release_readwrite(void *data, distsize_t offset, int size);
00062
00063 void sync();
00064 };
00065
00066 }
00067
00068 #endif
00069
00070
00071
00072
00073