2006/07/11 (火) 01:35:30 ◆ ▼ ◇ [qwerty]派遣社員が机の上に置いてたDVDワラタ
他の案件のソースコードとか全部持ってんのな
/*==============================================================================
* W-CDMA 3GPP Release.8
* STORAGE SERVICE IMPLEMENTAION -FILE I/O-
* Copyright(C)2006 Renesas Technology, Inc. Allrights reserved.
*=============================================================================*/
/******************************************************************************/
#include "StorageService.h"
#include "ScheduleService.h"
#include "AEEFile.h"
//*****************************************************************************
// TYPE DEFINITIONS
//*****************************************************************************
typedef struct _FileStorage
{
AEEVTBL(IStorage) *pvt;
uint32 nRefs; // References to us
IShell *pIShell;
IModule *pIModule;
IFileMgr *pDataHolder;
char cName[128];
} FileStorage;
//*****************************************************************************
// ISTORAGE FACTORY
//*****************************************************************************
#ifdef USE_FILE_STORAGE
int vfs_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
{
struct inode *inode = dentry->d_inode;
int retval;
retval = security_inode_getattr(mnt, dentry);
if (retval)
return retval;
if (inode->i_op->getattr)
return inode->i_op->getattr(mnt, dentry, stat);
generic_fillattr(inode, stat);
if (!stat->blksize) {
struct super_block *s = inode->i_sb;
unsigned blocks;
blocks = (stat->size+s->s_blocksize-1) >> s->s_blocksize_bits;
stat->blocks = (s->s_blocksize / 512) * blocks;
stat->blksize = s->s_blocksize;
}
return 0;
}
#endif