码迷,mamicode.com
首页 >  
搜索关键字:tmp    ( 7796个结果
由《win32多线程程序设计》临界区的问题所想
之前看侯捷翻译的《win32多线程程序设计》中关于线程同步中的临界区问题,其中举得例子是对链表的操作。死锁的问题是对一个Swaplist函数的问题,现列举代码如下:void SwapLists(List *list, List *list2){ List *tmp_list; EnterCrit.....
分类:编程语言   时间:2014-11-14 00:06:57    阅读次数:256
关于上传图片的类(有点粗糙)
doc=$file; $this->path=$path; $this->docsize=$file['size']; $this->docname=$file['name']; $this->doctmpname=$file['tmp_name']; $array=explode('.'...
分类:Web程序   时间:2014-11-13 22:05:32    阅读次数:122
paramiko 模块 ---- python2.7
模拟远程执行命令:?123456789101112131415161718192021import paramiko#设置日志记录paramiko.util.log_to_file('/tmp/test')#建立连接ssh=paramiko.SSHClient()#缺失host_knows时的处理方...
分类:编程语言   时间:2014-11-13 12:22:34    阅读次数:184
最长回文串(manacher算法)
1 const int LEN=110005; 2 const int N=LEN*2; 3 int p[N]; 4 char str[LEN], tmp[N]; 5 //p[i]表示以str[i]为中心的回文往右延伸的 最长长度 6 void manacher(char* str, int* p....
分类:编程语言   时间:2014-11-12 21:00:49    阅读次数:241
双十一前4小时,CentOS 6.5服务器启动错误排查
11月10日晚上8点多,眼看要到双十一了。。。 但我要说的这段经历却和双十一毫无关系,哈哈。这天准备向CentOS6.5服务器的svn上传一些文件,结果开机启动时,却出现了下面的界面: 这是肿么回事?根据屏幕的提示,先使用root账号登录到系统,然后使用fsck命令手工检测 #cd /tmp/.ICE-unix #目录下只有一个X0文件 #fsck X0 或者fsck.e...
分类:其他好文   时间:2014-11-12 16:31:29    阅读次数:258
[生产环境数据恢复]innobackupex: fatal error: OR no 'datadir' option in group 'mysqld' in MySQL options
1 运行恢复命令[xxx@xxx-c001db1 tmp]$ time /usr/bin/innobackupex--rsync--user="user" --password="#xxx$" /mysqldata/shared/backup[--rsync] 能够记录master点,以便进行复制设...
分类:数据库   时间:2014-11-12 13:33:20    阅读次数:224
冒泡法排序-数组
function mysort(&$arr){ $len = count($arr); for($i = 0; $i $arr[$j + 1]){ $tmp = $arr[$j]; $arr[$j] = $arr[$j + 1...
分类:编程语言   时间:2014-11-11 20:48:38    阅读次数:219
linux中的mv命令
mv命令--文件移动和重命名文件移动和重命名mv示例:[root@localhost~]#mvinstall.log/tmp/[root@localhost~]#ll/tmp/install.log-rw-r--r--1rootroot2797410-2115:30/tmp/install.log说明:移动文件到临时文件目录中[root@localhost~]#mv/tmp/install.log/tmp/coral.org[root@l..
分类:系统相关   时间:2014-11-11 14:35:05    阅读次数:222
gs_tmp_tz.***.**文件
gs_tmp_tz... is the temporary timezone detection file. To prevent this file from being created at all, just right-click the site in the site manager, select PROPERTIES, and then under the "TYPE"...
分类:其他好文   时间:2014-11-10 09:58:34    阅读次数:144
strcpy函数的最优实现方法
微软自带的strcpy函数: (不完善,4分) char * strcpy(char * dest,const char *src)   {       char *tmp = dest;          while ((*dest++ = *src++) != '\0')                  return tmp;   }   最完善的s...
分类:其他好文   时间:2014-11-09 19:35:19    阅读次数:240
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!