⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frename.c

📁 PDA上的CF CARD 文件系统的建立程式
💻 C
字号:
/*************************************************************
File Name: rename.C                                         *
**************************************************************
Programmer: Huang Giun-Haur
Last Modified Date: 1999/06/15
Compiler : Gnu Cross-compiler
Platform : X86 protection mode
Usage :
	int FAT_rename(const char *oldname, const char *newname)
*************************************************************/

/*************************************************************
 		  	Header Files
**************************************************************/
#include <sys/syscall.h>
//#include "../../RDebug/include/RDebug.h"

 #include "../../FileSys/include/FileSys.h"

#include "../include/fat1x.h"
#include "../include/cluster.h"


#ifdef FAT_ID



/* init.c */
extern unsigned long   	FATBytesPerCluster[];
extern int		FATDirSemaphoreID;

extern unsigned short	FATEndOfChain[16];
extern unsigned char 	FATType[DRIVE_NUM];

/* fat1x.c */
extern struct FAT_FILE **FATHandleTable;

/**** added by chilong 01/14/2002 ****/
/* init.c */
extern int		FATFtableSemaphoreID;
/**** added by chilong 01/14/2002 ****/

/*************************************************************
Function: FAT_rename(oldname, newname)
Description:
	rename an existing file/dir
Input:
	oldname - old file/dir name
	newname - new file/dir name
Output:
	0:  Success
	-1: Failure
Note:	oldname/newname can'be '\\'(root)
	newname can't be duplicated
ThreadSafe:
**************************************************************/
/* 虫

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -