#include<fcntl.h>
#include<sys/stat.h>
#include<stdio.h>
#include<dirent.h>
#include<string.h>
#include<stdlib.h>
#include<vector>
#include<string>
#include<iostream>
#include<fstream>
#include"m..
分类:
编程语言 时间:
2017-08-22 00:27:00
阅读次数:
511
#include<stdio.h>#include<stdlib.h>#include<string.h>#include<sys/types.h>#include<fcntl.h>#include<unistd.h>#include<dirent.h>#include<sys/stat.h>cha ...
分类:
其他好文 时间:
2017-08-15 23:06:33
阅读次数:
221
看代码: 1 #include <stdio.h> 2 #include <fcntl.h> 3 int key1(){ 4 asm("mov r3, pc\n"); 5 } 6 int key2(){ 7 asm( 8 "push {r6}\n" 9 "add r6, pc, $1\n" 10 " ...
分类:
其他好文 时间:
2017-08-03 12:37:05
阅读次数:
290
#!/usr/bin/env python # coding:utf-8 from __future__ import absolute_import, print_function import os import fcntl import select import subprocess fro... ...
分类:
编程语言 时间:
2017-07-26 01:58:22
阅读次数:
182
实现的时候用到系统原来的dup函数 // mydup2.c // 2015/08/17 Lucifer Zhang version1.0 // write my own dup2 function // use dup() function when inplementation #include ...
分类:
其他好文 时间:
2017-07-24 13:07:32
阅读次数:
144
代码如下 #include <stdio.h>#include <stdlib.h>#include <sys/stat.h>#include <sys/types.h>#include <string.h>#include <fcntl.h>#define FILEBUFFER_LENGTH 50 ...
分类:
系统相关 时间:
2017-07-21 10:30:29
阅读次数:
347
//ser.cpp #include <iostream> #include <fcntl.h> #include <sys/socket.h> #include <sys/select.h> #include <unistd.h> #include <arpa/inet.h> #include < ...
分类:
系统相关 时间:
2017-07-17 17:17:39
阅读次数:
148
1 #!/usr/bin/env python 2 #encoding: utf-8 3 #description: get local ip address 4 5 import os 6 import socket, fcntl, struct 7 8 def get_ip(): 9 #注意外围... ...
分类:
编程语言 时间:
2017-07-11 23:28:06
阅读次数:
331
本文为senlie原创,转载请保留此地址:http://blog.csdn.net/zhengsenlie 1.当在一个非堵塞的 TCP 套接字(可使用 fcntl 把套接字变成非堵塞的)上调用 connect时。 connect 将马上返回一个 EINPROGRESS 错误,只是已经发起的 TCP ...
分类:
其他好文 时间:
2017-07-09 17:24:53
阅读次数:
214
??1.函数介绍 close(关闭文件) 相关函数 open,fcntl,shutdown。unlink,fclose 表头文件 #include<unistd.h> 定义函数 int close(int fd); 函数说明 当使用完文件后若已不再须要则可使用close()关闭该文件,二close( ...
分类:
系统相关 时间:
2017-07-06 10:11:59
阅读次数:
245