
linux系统编程
linux
weixin_44898616
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
进程通信--消息队列
进程通信--消息队列原创 2022-03-17 17:07:49 · 1755 阅读 · 0 评论 -
进程通信---有名管道
进程通信,有名管道原创 2022-03-17 13:53:41 · 210 阅读 · 0 评论 -
进程间的通信---无名管道
进程通信--无名管道原创 2022-03-17 13:21:39 · 168 阅读 · 0 评论 -
linux--fread和fwrite
size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream); size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream);从stream中读取内容到ptr去,读取nmemb个对象,每个对象有size大小。(即ptr的大小=nmemb*size)#include<stdi...原创 2021-07-01 15:49:05 · 136 阅读 · 0 评论 -
linux--fgets和fputs
读取的头文件: #include <unistd.h>函数原型: ssize_t read(int fd, void *buf, size_t count);原创 2021-04-14 10:29:06 · 102 阅读 · 0 评论 -
linux--文件实现copy功能(fgetc和fputc)
包含的头文件: #include <unistd.h>函数类型:ssize_t write(int fd, const void *buf, size_t count);写入一次文件,结束操作后,必须关闭文件:包含的头文件:#include <unistd.h>函数类型: int close(int fd);#include <sys/types.h>#include <sys/stat.h>#include <fcntl.原创 2021-04-14 09:32:09 · 421 阅读 · 0 评论 -
linux--文件操作--fopen
在linu中,提供了open这个函数打开文件,要使用这个函数必须包含以下三个头文件:#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>函数参数说明:int open(const char *pathname, int flags);int open(const char *pathname, int flags, mode_t mode);pathname:要打开的文件名(含路径原创 2021-04-14 09:07:42 · 288 阅读 · 0 评论