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

📄 os_rename.c

📁 这是国外的resip协议栈
💻 C
字号:
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 1997-2004 *	Sleepycat Software.  All rights reserved. * * $Id: os_rename.c,v 11.17 2004/07/06 13:55:48 bostic Exp $ */#include "db_config.h"#ifndef NO_SYSTEM_INCLUDES#include <sys/types.h>#include <string.h>#endif#include "db_int.h"/* * __os_rename -- *	Rename a file. * * PUBLIC: int __os_rename __P((DB_ENV *, * PUBLIC:    const char *, const char *, u_int32_t)); */int__os_rename(dbenv, old, new, silent)	DB_ENV *dbenv;	const char *old, *new;	u_int32_t silent;{	int ret;	RETRY_CHK((DB_GLOBAL(j_rename) != NULL ?	    DB_GLOBAL(j_rename)(old, new) : rename(old, new)), ret);	/*	 * If "silent" is not set, then errors are OK and we should not output	 * an error message.	 */	if (!silent && ret != 0)		__db_err(dbenv, "rename %s %s: %s", old, new, strerror(ret));	return (ret);}

⌨️ 快捷键说明

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