码迷,mamicode.com
首页 >  
搜索关键字:perror    ( 194个结果
mysql的perror
eg: 执行:perror 1064 返回:MySQL error code 1064 (ER_PARSE_ERROR): %s near '%-.80s' at line %d Win32 error code 1064: 当处理控制请求时,在服务中发生异常。
分类:数据库   时间:2015-08-13 08:50:31    阅读次数:177
linux内核之accept实现
用户态对accept的标准用法: if ((client_fd = accept(sockfd, (struct sockaddr *)&remote_addr, &sin_size)) == -1) { //accept()函数让服务器接收客户的连接请求 perror("accept Error\...
分类:系统相关   时间:2015-07-30 12:56:35    阅读次数:450
文件操作
一:在C语言中关于文件的操作二:在UNIX中关于文件的操作int fd = open("a.txt",O_RDONLY|O_CREAT|O_TUEN,0666);if (fd == -1)perror("open"),exit(-1);write(fd,"hello",5);close(fd);in...
分类:其他好文   时间:2015-07-21 16:50:43    阅读次数:108
CFile.Open()的使用说明
cfile:: openvirtualBOOLOpen(LPCTSTRlpszFileName,UINTnOpenFlags,CFileException*pError=NULL);返回值:成功为非0,否则为0,仅当返回值为0时pError参数才有意义参数:lpszFileName 需要打开文件的路...
分类:其他好文   时间:2015-07-19 00:05:42    阅读次数:142
Linux下弹出和收回光驱
弹出光驱??? ? #include #include #include #include #include #define DEVICE "/dev/cdrom" int fd = open(DEVICE, O_RDONLY|O_NONBLOCK); ? if (fd < 0) { ??? perror("unable to open "DEVICE); ???...
分类:系统相关   时间:2015-07-14 15:53:24    阅读次数:201
Linux asyn-io for socket
#include #include #include #include #include #include #include #include #include #include #define errExit(msg) (perror(msg),(exit(EXIT_FAILURE)))#defi...
分类:系统相关   时间:2015-06-16 22:42:38    阅读次数:181
基于am3358的led跑马灯测试
#include #include #include #include static int fb; int main() { int i=0; printf("hello world !\n"); fb = open("/dev/led", O_RDWR);//打开设备 if (fb < 0) { perror("open device leds fail...
分类:其他好文   时间:2015-06-10 12:21:04    阅读次数:138
基于am3358的蜂鸣器测试
#include #include #include #include static int fb; int main() { int i=0; printf("hello world !\n"); fb = open("/dev/beep", O_RDWR); if (fb < 0) { perror("open device beep fail"); ...
分类:其他好文   时间:2015-06-10 12:19:48    阅读次数:115
mysql client常见error总结
mysql 客户端连接服务器,客户端报对应的错误号总结:1.Error 104mysql@longxibendi-dba-u-abcd00.longxibendi:~$perror 104OS error code 104: Connection reset by peer这个是由于server端 ...
分类:数据库   时间:2015-05-21 18:43:32    阅读次数:159
err -x perror() strerror()
perror()原型:#include void perror(const char *s); 其中,perror()的参数s 是用户提供的字符串。当调用perror()时,它输出这个字符串,后面跟着一个冒号和空格,然后是基于当前errno的值进行的错误类型描述。 strerror()原型:#inc...
分类:其他好文   时间:2015-05-16 17:57:24    阅读次数:116
194条   上一页 1 ... 14 15 16 17 18 ... 20 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!