/usr/include/falcon/dir_sys.h is in falconpl-dev 0.9.6.9-git20120606-2.
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 | /*
FALCON - The Falcon Programming Language.
FILE: dir_internal.h
Internal functions prototypes for DirApi.
-------------------------------------------------------------------
Author: Giancarlo Niccolai
Begin: lun feb 13 2006
-------------------------------------------------------------------
(C) Copyright 2004: the FALCON developers (see list in AUTHORS file)
See LICENSE file for licensing details.
*/
/** \file
Internal functions prototypes for DirApi.
This files holds the internal api for directories that is not to be published.
*/
#ifndef flc_dir_sys_H
#define flc_dir_sys_H
#include <falcon/filestat.h>
#include <falcon/falcondata.h>
#include <falcon/string.h>
namespace Falcon {
/** Directory entry.
This class encapsulate one directory entry, that is, one name found
in directory searches.
It has methods to read the next entry and to close the search.
*/
class DirEntry: public FalconData
{
protected:
uint32 m_lastError;
String m_path;
public:
DirEntry( const String &path ):
m_lastError(0),
m_path( path )
{}
virtual bool read( String &fname ) = 0;
virtual void close() = 0;
uint32 lastError() const { return m_lastError; }
// unsupported (for now)
virtual DirEntry *clone() const { return 0; }
virtual void gcMark( uint32 mark ) {}
const String &path() const { return m_path; }
};
namespace Sys {
bool FALCON_DYN_SYM fal_fileType( const String &filename, FileStat::e_fileType &st );
bool FALCON_DYN_SYM fal_stats( const String &filename, FileStat &st );
bool FALCON_DYN_SYM fal_mkdir( const String &filename, int32 &fsStatus );
bool FALCON_DYN_SYM fal_mkdir( const String &filename, int32 &fsStatus, bool descend );
bool FALCON_DYN_SYM fal_unlink( const String &filename, int32 &fsStatus );
bool FALCON_DYN_SYM fal_rmdir( const String &filename, int32 &fsStatus );
bool FALCON_DYN_SYM fal_chdir( const String &filename, int32 &fsStatus );
bool FALCON_DYN_SYM fal_move( const String &filename, const String &dest, int32 &fsStatus );
bool FALCON_DYN_SYM fal_getcwd( String &fname, int32 &fsError );
bool FALCON_DYN_SYM fal_chmod( const String &fname, uint32 mode );
bool FALCON_DYN_SYM fal_chown( const String &fname, int32 owner );
bool FALCON_DYN_SYM fal_chgrp( const String &fname, int32 grp );
bool FALCON_DYN_SYM fal_readlink( const String &fname, String &link );
bool FALCON_DYN_SYM fal_writelink( const String &fname, const String &link );
DirEntry FALCON_DYN_SYM *fal_openDir( const String &path, int32 &fsError );
void FALCON_DYN_SYM fal_closeDir( DirEntry *entry );
}
}
#endif
/* end of dir_internal.h */
|