📄 accmode.h
字号:
/* *---------------------------------------------------------------------- * T-Kernel / Standard Extension * * Copyright (C) 2006 by Ken Sakamura. All rights reserved. * T-Kernel / Standard Extension is distributed * under the T-License for T-Kernel / Standard Extension. *---------------------------------------------------------------------- * * Version: 1.00.00 * Released by T-Engine Forum(http://www.t-engine.org) at 2006/8/11. * *---------------------------------------------------------------------- *//* * accmode.h (file) * * File management * File access mode/Attribute information related */#ifndef _FM_ACCMODE_H_#define _FM_ACCMODE_H_#include "filemgr.h"/* * File access mode */typedef struct FileAccMode { UH ftype; /* File type/Owner access mode */ UserName ownnm; /* File owner name */ UserName grpnm; /* Owner group name */ UH grpacc; /* Group access level */ UH pubacc; /* General access level */} FileAccMode;/* * Obtain the user level. */Inline W getUserLevel( PINFO *pinfo ){ W lv; LOCK_PINFO_SECTION( lv = pinfo->user->user.level ); return lv;}#include "fsinfo.h"#include "cmdpkt.h"IMPORT ER fmpGetFileAccMode( FileAccMode*, DfFileHeader*, FsInfo* );IMPORT ER fmpCheckFileAccMode( PINFO*, FileAccMode*, UW chkacc, FsInfo* );IMPORT ER fmpCheckPassWord( DfFileHeader*, TC *pwd, FsInfo* );/* * Functions corresponding to the file access mode/attribute information related system calls. */IMPORT void fmcGetDefaultAccMode( FmCmdPkt* );IMPORT void fmcSetDefaultAccMode( FmCmdPkt* );IMPORT UW fmpCheckFileAccess( FmCmdPkt*, DfFileHeader*, FsInfo* );IMPORT UW fmpChangeFileAccessMode( FmCmdPkt*, DfFileHeader*, FsInfo* );IMPORT UW fmpChangeFileAttribute( FmCmdPkt*, DfFileHeader*, FsInfo* );IMPORT UW fmpChangeFileName( FmCmdPkt*, FID, DfFileHeader*, FsInfo* );IMPORT UW fmpChangeFileTime( FmCmdPkt*, DfFileHeader*, FsInfo* );/* * Functions of the service commands in the file management. */IMPORT void fmpIChangeLinkFileName( FmCmdPkt*, FsInfo* );#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -