码迷,mamicode.com
首页 >  
搜索关键字:errno strerror    ( 1034个结果
errno
#ifndef _I386_ERRNO_H #define _I386_ERRNO_H #define EPERM 1 /* Operation not permitted */ #define ENOENT 2 /* No such file or directory */ #define ESR ...
分类:其他好文   时间:2016-04-21 15:03:32    阅读次数:194
Windows 和 Linux下使用socket下载网页页面内容(可设置接收/发送超时)的代码(用socket解释http,不错)
主要难点在于设置recv()与send()的超时时间,具体要注意的事项,请看代码注释部分,下面是代码: #include <stdio.h> #include <sys/types.h> #include <stdlib.h> #include <string.h> #include <errno. ...
分类:Windows程序   时间:2016-04-18 01:07:46    阅读次数:424
线程控制与分离
线程:在一个进程的地址空间中执行多个线程----强调共享线程是进程中的一个实体。线程私有:线程id上下文信息(包括各种寄存器的值、程序计数器和栈指针)(私有)栈空间errno变量信号屏蔽字调度优先级此时:POSIX标准编译时加上-lpthread线程与进程的区别:1、进程是具有一定独立..
分类:编程语言   时间:2016-04-17 23:22:31    阅读次数:306
模块移除 命令rmmod 的实现
// rmmod.c #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> #include <string.h> #include <errno.h> int main(int argc, cha ...
分类:其他好文   时间:2016-04-17 00:29:31    阅读次数:100
关于错误errno EFAULT:Bad address
UDP socket : read error Bad address 在写UDP server。在调用套接字读取的时候发生了这个错误。 通过看errno.h 能够看到相应的错误号 EFAULT: Bad address (POSIX.1),在stackoverflow上看到的这个解释不错:It h ...
分类:其他好文   时间:2016-04-16 21:05:00    阅读次数:234
查看错误码
grep‘x‘/user查询在user目录下1#include<stdio.h> 2#include<errno.h> 3intmain() 4{ 5inti=0; 6while(i<100) 7{ 8printf("errno:%d,errormessage:%s\n",i,strerror(i)); 9i++; 10} 11return0; 12}Linux下,大概有100多种错误码
分类:其他好文   时间:2016-04-16 19:35:58    阅读次数:157
MySql常见出错解决
Mysql Error:1018 mysql问题: mysql> use dbname; Database changed mysql> show tables; ERROR 1018 (HY000): Can't read dir of './dbname/' (errno: 13) 原因: 这个... ...
分类:数据库   时间:2016-04-13 11:20:09    阅读次数:170
解决gem不能使用的问题
今天尝试使用gem安装cocoaPod时,gem报错:ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) Errno::ETIMEDOUT: A connection attempt failed because the c ...
分类:其他好文   时间:2016-04-12 12:37:50    阅读次数:155
[ERROR]-Error: failure: repodata/filelists.xml.gz from addons: [Errno 256] No more mirrors to try.
最近在使用CentOS5.5的时候yum安装文件出现如下错误:Error:failure:repodata/filelists.xml.gzfromaddons:[Errno256]Nomoremirrorstotry.解决方法:yumcleanallCentOS更换网易源1、下载新源及将本地源备份[root@localhost~]#cd/etc/yum.repos.d/[root@localhost~]#wgethttp://..
分类:其他好文   时间:2016-04-03 20:40:04    阅读次数:162
注释转换
AnnotationConversion.h#pragmaonce #define_CRT_SECURE_NO_WARNINGS1 #include<stdio.h> #include<assert.h> #include<errno.h> typedefenumState { c_BEGIN, c_END }State; typedefenumRunState { SUCCESS, FILE_WRONG, NO_MATCH }RunState; RunStateAnnot..
分类:其他好文   时间:2016-04-03 20:36:10    阅读次数:222
1034条   上一页 1 ... 70 71 72 73 74 ... 104 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!