os_rename.c
来自「这是国外的resip协议栈」· C语言 代码 · 共 46 行
C
46 行
/*- * 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 + =
减小字号Ctrl + -
显示快捷键?