亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? tclmacfcmd.c

?? tcl是工具命令語言
?? C
?? 第 1 頁 / 共 4 頁
字號:
    CONST char *dst)		/* Pathname of file to copy to (native). */{    OSErr err, dstErr;    Boolean dstExists, dstIsDirectory, dstLocked;    FSSpec srcFileSpec, dstFileSpec, dstDirSpec, tmpFileSpec;    Str31 tmpName;	    err = FSpLLocationFromPath(strlen(src), src, &srcFileSpec);    if (err == noErr) {        err = GetFileSpecs(dst, &dstFileSpec, &dstDirSpec, &dstExists,        	&dstIsDirectory);    }    if (dstExists) {        if (dstIsDirectory) {            errno = EISDIR;            return TCL_ERROR;        }        err = FSpGetFLockCompat(&dstFileSpec, &dstLocked);        if (dstLocked) {            FSpRstFLockCompat(&dstFileSpec);        }                /*         * Backup dest file.         */                 dstErr = GenerateUniqueName(dstFileSpec.vRefNum, &startSeed, dstFileSpec.parID,     	        dstFileSpec.parID, tmpName);        if (dstErr == noErr) {            dstErr = FSpRenameCompat(&dstFileSpec, tmpName);        }       }    if (err == noErr) {    	err = FSpFileCopy(&srcFileSpec, &dstDirSpec,     		(StringPtr) dstFileSpec.name, NULL, 0, true);    }    if ((dstExists != false) && (dstErr == noErr)) {        FSMakeFSSpecCompat(dstFileSpec.vRefNum, dstFileSpec.parID,        	tmpName, &tmpFileSpec);	if (err == noErr) {	    /* 	     * Delete backup file. 	     */	     	    FSpDeleteCompat(&tmpFileSpec);	} else {		    /* 	     * Restore backup file.	     */	     	    FSpDeleteCompat(&dstFileSpec);	    FSpRenameCompat(&tmpFileSpec, dstFileSpec.name);	    if (dstLocked) {	        FSpSetFLockCompat(&dstFileSpec);	    }	}    }        if (err != noErr) {	errno = TclMacOSErrorToPosixError(err);	return TCL_ERROR;    }    return TCL_OK;}/* *--------------------------------------------------------------------------- * * TclpObjDeleteFile, TclpDeleteFile -- * *      Removes a single file (not a directory). * * Results: *	If the file was successfully deleted, returns TCL_OK.  Otherwise *	the return value is TCL_ERROR and errno is set to indicate the *	error.  Some possible values for errno are: * *	EACCES:     a parent directory can't be read and/or written. *	EISDIR:	    path is a directory. *	ENOENT:	    path doesn't exist or is "". * * Side effects: *      The file is deleted, even if it is read-only. * *--------------------------------------------------------------------------- */int TclpObjDeleteFile(pathPtr)    Tcl_Obj *pathPtr;{    return TclpDeleteFile(Tcl_FSGetNativePath(pathPtr));}intTclpDeleteFile(    CONST char *path)		/* Pathname of file to be removed (native). */{    OSErr err;    FSSpec fileSpec;    Boolean isDirectory;    long dirID;        err = FSpLLocationFromPath(strlen(path), path, &fileSpec);    if (err == noErr) {	/*     	 * Since FSpDeleteCompat will delete an empty directory, make sure     	 * that this isn't a directory first.         */                FSpGetDirectoryID(&fileSpec, &dirID, &isDirectory);	if (isDirectory == true) {            errno = EISDIR;            return TCL_ERROR;        }    }    err = FSpDeleteCompat(&fileSpec);    if (err == fLckdErr) {    	FSpRstFLockCompat(&fileSpec);    	err = FSpDeleteCompat(&fileSpec);    	if (err != noErr) {    	    FSpSetFLockCompat(&fileSpec);    	}    }    if (err != noErr) {	errno = TclMacOSErrorToPosixError(err);	return TCL_ERROR;    }    return TCL_OK;}/* *--------------------------------------------------------------------------- * * TclpObjCreateDirectory, DoCreateDirectory -- * *      Creates the specified directory.  All parent directories of the *	specified directory must already exist.  The directory is *	automatically created with permissions so that user can access *	the new directory and create new files or subdirectories in it. * * Results: *	If the directory was successfully created, returns TCL_OK. *	Otherwise the return value is TCL_ERROR and errno is set to *	indicate the error.  Some possible values for errno are: * *	EACCES:     a parent directory can't be read and/or written. *	EEXIST:	    path already exists. *	ENOENT:	    a parent directory doesn't exist. * * Side effects: *      A directory is created with the current umask, except that *	permission for u+rwx will always be added. * *--------------------------------------------------------------------------- */int TclpObjCreateDirectory(pathPtr)    Tcl_Obj *pathPtr;{    return DoCreateDirectory(Tcl_FSGetNativePath(pathPtr));}static intDoCreateDirectory(    CONST char *path)		/* Pathname of directory to create (native). */{    OSErr err;    FSSpec dirSpec;    long outDirID;	    err = FSpLocationFromPath(strlen(path), path, &dirSpec);    if (err == noErr) {        err = dupFNErr;		/* EEXIST. */    } else if (err == fnfErr) {        err = FSpDirCreateCompat(&dirSpec, smSystemScript, &outDirID);    }         if (err != noErr) {	errno = TclMacOSErrorToPosixError(err);	return TCL_ERROR;    }    return TCL_OK;}/* *--------------------------------------------------------------------------- * * TclpObjCopyDirectory, DoCopyDirectory -- * *      Recursively copies a directory.  The target directory dst must *	not already exist.  Note that this function does not merge two *	directory hierarchies, even if the target directory is an an *	empty directory. * * Results: *	If the directory was successfully copied, returns TCL_OK. *	Otherwise the return value is TCL_ERROR, errno is set to indicate *	the error, and the pathname of the file that caused the error *	is stored in errorPtr.  See TclpCreateDirectory and TclpCopyFile *	for a description of possible values for errno. * * Side effects: *      An exact copy of the directory hierarchy src will be created *	with the name dst.  If an error occurs, the error will *      be returned immediately, and remaining files will not be *	processed. * *--------------------------------------------------------------------------- */int TclpObjCopyDirectory(srcPathPtr, destPathPtr, errorPtr)    Tcl_Obj *srcPathPtr;    Tcl_Obj *destPathPtr;    Tcl_Obj **errorPtr;{    Tcl_DString ds;    int ret;    ret = DoCopyDirectory(Tcl_FSGetNativePath(srcPathPtr),			  Tcl_FSGetNativePath(destPathPtr), &ds);    if (ret != TCL_OK) {	*errorPtr = Tcl_NewStringObj(Tcl_DStringValue(&ds), -1);	Tcl_DStringFree(&ds);	Tcl_IncrRefCount(*errorPtr);    }    return ret;}static intDoCopyDirectory(    CONST char *src,		/* Pathname of directory to be copied				 * (Native). */    CONST char *dst,		/* Pathname of target directory (Native). */    Tcl_DString *errorPtr)	/* If non-NULL, uninitialized or free				 * DString filled with UTF-8 name of file				 * causing error. */{    OSErr err, saveErr;    long srcID, tmpDirID;    FSSpec srcFileSpec, dstFileSpec, dstDirSpec, tmpDirSpec, tmpFileSpec;    Boolean srcIsDirectory, srcLocked;    Boolean dstIsDirectory, dstExists;    Str31 tmpName;    err = FSpLocationFromPath(strlen(src), src, &srcFileSpec);    if (err == noErr) {    	err = FSpGetDirectoryID(&srcFileSpec, &srcID, &srcIsDirectory);    }    if (err == noErr) {        if (srcIsDirectory == false) {            err = afpObjectTypeErr;	/* ENOTDIR. */        }    }    if (err == noErr) {        err = GetFileSpecs(dst, &dstFileSpec, &dstDirSpec, &dstExists,        	&dstIsDirectory);    }    if (dstExists) {        if (dstIsDirectory == false) {            err = afpObjectTypeErr;	/* ENOTDIR. */        } else {            err = dupFNErr;		/* EEXIST. */        }    }    if (err != noErr) {        goto done;    }            if ((srcFileSpec.vRefNum == dstFileSpec.vRefNum) &&    	    (srcFileSpec.parID == dstFileSpec.parID) &&            (Pstrequal(srcFileSpec.name, dstFileSpec.name) != 0)) {        /*         * Copying on top of self.  No-op.         */                            goto done;    }    /*     * This algorthm will work making a copy of the source directory in     * the current directory with a new name, in a new directory with the     * same name, and in a new directory with a new name:     *     * 1. Make dstDir/tmpDir.     * 2. Copy srcDir/src to dstDir/tmpDir/src     * 3. Rename dstDir/tmpDir/src to dstDir/tmpDir/dst (if necessary).     * 4. CatMove dstDir/tmpDir/dst to dstDir/dst.     * 5. Remove dstDir/tmpDir.     */                    err = FSpGetFLockCompat(&srcFileSpec, &srcLocked);    if (srcLocked) {        FSpRstFLockCompat(&srcFileSpec);    }    if (err == noErr) {        err = GenerateUniqueName(dstFileSpec.vRefNum, &startSeed, dstFileSpec.parID,     	        dstFileSpec.parID, tmpName);    }    if (err == noErr) {        FSMakeFSSpecCompat(dstFileSpec.vRefNum, dstFileSpec.parID,        	tmpName, &tmpDirSpec);        err = FSpDirCreateCompat(&tmpDirSpec, smSystemScript, &tmpDirID);    }    if (err == noErr) {	err = FSpDirectoryCopy(&srcFileSpec, &tmpDirSpec, NULL, NULL, 0, true,	    	CopyErrHandler);    }        /*      * Even if the Copy failed, Rename/Move whatever did get copied to the     * appropriate final destination, if possible.       */         saveErr = err;    err = noErr;    if (Pstrequal(srcFileSpec.name, dstFileSpec.name) == 0) {        err = FSMakeFSSpecCompat(tmpDirSpec.vRefNum, tmpDirID,         	srcFileSpec.name, &tmpFileSpec);        if (err == noErr) {            err = FSpRenameCompat(&tmpFileSpec, dstFileSpec.name);        }    }    if (err == noErr) {        err = FSMakeFSSpecCompat(tmpDirSpec.vRefNum, tmpDirID,        	dstFileSpec.name, &tmpFileSpec);    }    if (err == noErr) {        err = FSpCatMoveCompat(&tmpFileSpec, &dstDirSpec);    }    if (err == noErr) {        if (srcLocked) {            FSpSetFLockCompat(&dstFileSpec);        }    }        FSpDeleteCompat(&tmpDirSpec);        if (saveErr != noErr) {        err = saveErr;    }        done:    if (err != noErr) {        errno = TclMacOSErrorToPosixError(err);        if (errorPtr != NULL) {            Tcl_ExternalToUtfDString(NULL, dst, -1, errorPtr);        }        return TCL_ERROR;    }    return TCL_OK;}/* *---------------------------------------------------------------------- * * CopyErrHandler -- * *      This procedure is called from the MoreFiles procedure  *      FSpDirectoryCopy whenever an error occurs. * * Results: *      False if the condition should not be considered an error, true *      otherwise. * * Side effects: *      Since FSpDirectoryCopy() is called only after removing any  *      existing target directories, there shouldn't be any errors. *       *---------------------------------------------------------------------- */static pascal Boolean CopyErrHandler(    OSErr error,		/* Error that occured */    short failedOperation,	/* operation that caused the error */    short srcVRefNum,		/* volume ref number of source */    long srcDirID,		/* directory id of source */    ConstStr255Param srcName,	/* name of source */    short dstVRefNum,		/* volume ref number of dst */    long dstDirID,		/* directory id of dst */    ConstStr255Param dstName)	/* name of dst directory */{    return true;}/* *--------------------------------------------------------------------------- * * TclpObjRemoveDirectory, DoRemoveDirectory -- * *	Removes directory (and its contents, if the recursive flag is set). * * Results: *	If the directory was successfully removed, returns TCL_OK. *	Otherwise the return value is TCL_ERROR, errno is set to indicate *	the error, and the pathname of the file that caused the error *	is stored in errorPtr.  Some possible values for errno are: * *	EACCES:     path directory can't be read and/or written. *	EEXIST:	    path is a non-empty directory. *	EINVAL:	    path is a root directory. *	ENOENT:	    path doesn't exist or is "". * 	ENOTDIR:    path is not a directory. * * Side effects: *	Directory removed.  If an error occurs, the error will be returned *	immediately, and remaining files will not be deleted. * *--------------------------------------------------------------------------- */ int 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美一区二区三区鸳鸯浴| 天天影视涩香欲综合网| 亚洲图片有声小说| 国产高清成人在线| 91精品国产色综合久久不卡蜜臀| 亚洲国产成人在线| 日韩电影免费一区| 欧美性极品少妇| 中文在线一区二区| 国产精品影视在线观看| 911精品产国品一二三产区| 亚洲女同ⅹxx女同tv| 国产成人午夜99999| 精品国产露脸精彩对白| 天天操天天色综合| 欧美日韩中文一区| 亚洲品质自拍视频网站| 成人精品国产免费网站| 欧美变态凌虐bdsm| 久久精品国产99国产| 欧美精品vⅰdeose4hd| 亚洲一区二区三区激情| 91老师国产黑色丝袜在线| 欧美国产综合一区二区| 国产成人免费在线观看不卡| 久久综合色一综合色88| 狠狠色伊人亚洲综合成人| 欧美一区二区三区四区久久| 亚洲成人黄色小说| 欧美日韩卡一卡二| 无吗不卡中文字幕| 欧美一区二区三区视频| 日本成人在线视频网站| 日韩网站在线看片你懂的| 日韩精品一二三区| 欧美电视剧在线观看完整版| 久久99精品国产.久久久久| 欧美成人一区二区三区片免费 | 欧美一区二区三区视频免费播放 | 中文字幕日韩一区二区| 成人理论电影网| 1区2区3区欧美| 欧美午夜精品电影| 蜜臀av一区二区| 26uuu精品一区二区| 国产成人免费在线| 亚洲男人的天堂在线aⅴ视频| 色国产综合视频| 美女一区二区三区在线观看| 久久女同精品一区二区| 成人午夜电影网站| 亚洲一区在线视频观看| 欧美一卡2卡三卡4卡5免费| 久久av资源网| 国产精品不卡在线| 欧美日韩国产一二三| 国产一区二区主播在线| 国产精品免费av| 欧美日韩精品综合在线| 韩国女主播一区二区三区| 中文字幕一区二区在线观看| 欧美精选午夜久久久乱码6080| 久久精品国产77777蜜臀| 日本一区二区视频在线观看| 欧美日韩三级在线| 激情图片小说一区| 亚洲一区精品在线| 久久九九影视网| 欧美在线色视频| 国产伦精品一区二区三区在线观看| 国产精品久久毛片av大全日韩| 欧美亚洲日本国产| 国产主播一区二区三区| 亚洲一区日韩精品中文字幕| 国产日本一区二区| 欧美日本国产一区| 成人不卡免费av| 美女网站一区二区| 亚洲色图欧洲色图婷婷| 欧美一区二区久久| 色婷婷国产精品久久包臀| 老司机免费视频一区二区| 亚洲精品美腿丝袜| 久久精品亚洲国产奇米99| 欧美三级日韩在线| 成人av电影免费观看| 久久不见久久见中文字幕免费| 一区二区欧美视频| 国产精品入口麻豆原神| 日韩欧美一二三区| 欧美老年两性高潮| 色婷婷国产精品综合在线观看| 国产高清精品久久久久| 麻豆国产91在线播放| 亚洲成人综合在线| 亚洲狼人国产精品| 日韩毛片视频在线看| 久久久久久久电影| 日韩免费观看2025年上映的电影| 欧美三级日韩三级| 色吧成人激情小说| 色综合视频在线观看| fc2成人免费人成在线观看播放| 看片的网站亚洲| 捆绑紧缚一区二区三区视频| 日日夜夜精品视频免费| 亚洲aⅴ怡春院| 视频一区二区三区入口| 亚洲第一成年网| 天天影视色香欲综合网老头| 日韩精品一级二级 | 9久草视频在线视频精品| 国产精品91xxx| 粉嫩av亚洲一区二区图片| 国产精品亚洲专一区二区三区 | 91精品国产综合久久久久久| 欧美日韩一区高清| 欧美剧在线免费观看网站 | 久久久久成人黄色影片| 久久久久久久久久久电影| 久久久久久久精| 国产精品久线观看视频| 一区二区在线观看不卡| 亚洲一区视频在线观看视频| 丝袜美腿亚洲色图| 久久99国产精品麻豆| 国产成人av网站| jvid福利写真一区二区三区| 91视视频在线观看入口直接观看www| 99久久精品99国产精品| 色欧美88888久久久久久影院| 欧美日韩精品免费观看视频| 8v天堂国产在线一区二区| 日韩欧美国产一二三区| 久久日一线二线三线suv| 国产精品理论片| 亚洲一区二区av电影| 水蜜桃久久夜色精品一区的特点| 激情文学综合丁香| 99久久久久免费精品国产| 色婷婷亚洲一区二区三区| 欧美一区二区日韩| 国产精品久久久久精k8| 天堂在线亚洲视频| 国产精品亚洲成人| 欧美性色黄大片手机版| 欧美www视频| 一区二区三区在线观看欧美| 久久精品国产99国产| av在线不卡电影| 欧美一区二区三区男人的天堂| 欧美激情综合五月色丁香| 亚洲国产精品影院| 国产成人午夜高潮毛片| 欧美区在线观看| 一区在线中文字幕| 久久精品国产99国产| 色94色欧美sute亚洲线路二 | 欧美日韩精品一区二区三区四区| 精品国产一区二区三区不卡| 国产精品不卡一区二区三区| 麻豆成人久久精品二区三区小说| 成人av在线电影| 日韩免费性生活视频播放| 亚洲狠狠丁香婷婷综合久久久| 老司机一区二区| 欧美日韩精品欧美日韩精品 | 国产拍欧美日韩视频二区| 天堂蜜桃91精品| 91福利区一区二区三区| 国产免费成人在线视频| 老司机精品视频导航| 欧美最新大片在线看| 国产精品无人区| 国产综合成人久久大片91| 91精品国产综合久久香蕉的特点 | 韩国成人福利片在线播放| 欧美综合一区二区三区| 国产精品天天摸av网| 国产美女精品人人做人人爽| 777奇米四色成人影色区| 亚洲精品免费播放| 成人av综合一区| 久久精品夜夜夜夜久久| 精品亚洲porn| 日韩欧美国产一区在线观看| 三级久久三级久久| 欧美高清视频不卡网| 伊人开心综合网| 在线观看欧美日本| 亚洲免费av高清| 色欧美片视频在线观看在线视频| 国产精品色噜噜| 成人avav影音| 亚洲欧美另类图片小说| 91麻豆福利精品推荐| 亚洲激情一二三区| 欧美日韩国产高清一区二区三区 | 欧美国产视频在线| 成熟亚洲日本毛茸茸凸凹|