#include </builds/gaudi/Gaudi/GaudiSvc/src/FileMgr/POSIXFileHandler.h>
Definition at line 26 of file POSIXFileHandler.h.
◆ POSIXFileHandler()
POSIXFileHandler::POSIXFileHandler |
( |
IMessageSvc * | msg | ) |
|
◆ closePOSIXFile()
Definition at line 86 of file POSIXFileHandler.cpp.
86 {
87
89
90 if ( fd == -1 ) {
92 return -1;
93 }
94
95 if ( close( fd ) != 0 ) {
96 int ierr = errno;
98 return -1;
99 }
100
101 return 0;
102}
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
◆ openPOSIXFile()
Io::open_t POSIXFileHandler::openPOSIXFile |
( |
const std::string & | n, |
|
|
const Io::IoFlags & | f, |
|
|
const std::string & | desc, |
|
|
Io::Fd & | fd, |
|
|
void *& | ptr ) |
Definition at line 32 of file POSIXFileHandler.cpp.
33 {
34
36
39
40 ptr = nullptr;
42
43 int mm = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH;
44
45 fd = open(
n.c_str(), (
int)f, mm );
46 int ierr = errno;
47
48 if ( fd == -1 ) {
50 return 1;
51 }
52
59 } else {
61 }
64 } else {
66 return 1;
67 }
68
70
71 ptr = fdopen( fd,
m.c_str() );
72 ierr = errno;
73
74 if ( !ptr ) {
76 return 1;
77 }
78
80
81 return 0;
82}
◆ reopenPOSIXFile()
◆ m_level
int POSIXFileHandler::m_level |
|
private |
◆ m_log
The documentation for this class was generated from the following files: