/usr/include/sipxtapi/os/linux/OsFileLinux.h is in libsipxtapi-dev 3.3.0~test17-2.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | //
// Copyright (C) 2005, 2007 SIPez LLC.
// Licensed to SIPfoundry under a Contributor Agreement.
//
// Copyright (C) 2004-2007 SIPfoundry Inc.
// Licensed by SIPfoundry under the LGPL license.
//
// Copyright (C) 2004, 2005 Pingtel Corp.
// Licensed to SIPfoundry under a Contributor Agreement.
//
// $$
///////////////////////////////////////////////////////////////////////////////
#ifndef _OsFileLinux_h_
#define _OsFileLinux_h_
// SYSTEM INCLUDES
// APPLICATION INCLUDES
// DEFINES
// MACROS
// EXTERNAL FUNCTIONS
// EXTERNAL VARIABLES
// CONSTANTS
// STRUCTS
// TYPEDEFS
// FORWARD DECLARATIONS
class OsFileInfoBase;
class OsFileInfoLinux;
class OsPathLinux;
//:OS class for creating,reading, writing, manipulating files.
class OsFileLinux : public OsFileBase
{
/* //////////////////////////// PUBLIC //////////////////////////////////// */
public:
/* ============================ CREATORS ================================== */
OsFileLinux(const OsPathBase& filename);
//:Default constructor
virtual ~OsFileLinux();
//:Destructor
/* ============================ MANIPULATORS ============================== */
OsStatus filelock(const bool wait);
//: Cross-process locks this file, optionally waiting for the lock.
//: Returns:
//: OS_SUCCESS if successful
//: OS_FAILED if unsuccessful
//: Notes: This method should only be called by OsFileBase::open()!
OsStatus fileunlock();
//: Cross-process unlocks this file.
//: Notes: This method should only be called by OsFileBase::close()!
OsStatus setLength(unsigned long newLength);
//: Sets the length of the file specified by the object to the new size
//: Sets the length of the file specified by the object to the new size
//: Shrinking or Growing the file as needed.
OsStatus setReadOnly(UtlBoolean isReadOnly);
//: Sets the file to the new state
//: Returns:
//: OS_SUCCESS if successful
//: OS_INVALID if failed
OsStatus touch();
//: Updates the date and time on the file. Creates if needed.
/* ============================ ACCESSORS ================================= */
/* ============================ INQUIRY =================================== */
UtlBoolean isReadonly() const;
//: Returns TRUE if file is readonly
virtual OsStatus getFileInfo(OsFileInfoBase& rFileinfo) const;
//: Returns all the relevant info on this file
/* //////////////////////////// PROTECTED ///////////////////////////////// */
protected:
OsFileLinux(const OsFileLinux& rOsFileLinux);
//:Copy constructor
OsFileLinux& operator=(const OsFileLinux& rhs);
//:Assignment operator
/* //////////////////////////// PRIVATE /////////////////////////////////// */
private:
};
/* ============================ INLINE METHODS ============================ */
#endif // _OsFileLinux_h_
|