码迷,mamicode.com
首页 >  
搜索关键字:fcntl    ( 291个结果
minizip c++ 压缩文件及文件夹
#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
pwnable.kr leg之write up
看代码: 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
python subprocess select 读取
#!/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
写一个dup2功能同样的函数,不能调用 fcntl 函数,而且要有出错处理
实现的时候用到系统原来的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
Linux c 从文件当中读取任意一行的数据
代码如下 #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
linux中select网络通信
//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
python获取linux本机IP
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
UNIX网络编程卷1 时间获取程序client TCP 使用非堵塞connect
本文为senlie原创,转载请保留此地址:http://blog.csdn.net/zhengsenlie 1.当在一个非堵塞的 TCP 套接字(可使用 fcntl 把套接字变成非堵塞的)上调用 connect时。 connect 将马上返回一个 EINPROGRESS 错误,只是已经发起的 TCP ...
分类:其他好文   时间:2017-07-09 17:24:53    阅读次数:214
Unix/Linux环境C编程新手教程(40) 初识文件操作
??1.函数介绍 close(关闭文件) 相关函数 open,fcntl,shutdown。unlink,fclose 表头文件 #include<unistd.h> 定义函数 int close(int fd); 函数说明 当使用完文件后若已不再须要则可使用close()关闭该文件,二close( ...
分类:系统相关   时间:2017-07-06 10:11:59    阅读次数:245
291条   上一页 1 ... 8 9 10 11 12 ... 30 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!