随笔分类 -  操作系统

摘要:文件系统结构 编译过程 阅读全文
posted @ 2024-05-29 17:39 starc的miao 阅读(19) 评论(0) 推荐(0)
摘要:select pselect poll 异步IO aio_read & aio_write 阅读全文
posted @ 2024-04-16 11:04 starc的miao 阅读(18) 评论(0) 推荐(0)
摘要:(Linux C编程一站式学习)[https://www.bookstack.cn/read/linux-c/menu.md] 阅读全文
posted @ 2024-02-20 14:20 starc的miao 阅读(6) 评论(0) 推荐(0)
摘要:FILE * popen( const char * command,const char * type); popen()会调用fork()产生子进程,然后从子进程中调用/bin/sh -c来执行参数command的指令。参数type可使用“r”代表读取,“w”代表写入。依照此type值,pope 阅读全文
posted @ 2024-01-15 17:40 starc的miao 阅读(38) 评论(0) 推荐(0)
摘要:内存隔离 程序是运行在内存中,不同程序之间需要做地址隔离,不然恶意程序会修改其他程序的数据,不好的程序会越界修改变量。 因此,内存需要对进程进行隔离,让每个进程拥有独立的虚拟空间 分段 内存映射 根据程序所需空间大小,在虚拟内存空间划分出一定的区域大小 然后在实际物理内存中相应的划分同样的大小的内存 阅读全文
posted @ 2023-09-07 08:42 starc的miao 阅读(169) 评论(0) 推荐(0)
摘要:时间-<sys/time.h> #include <sys/time.h> int time_update(void) { struct timeval tv; struct timezone tz; gettimeofday(&tv, &tz); return tv.tv_sec; } 内存-<s 阅读全文
posted @ 2023-06-28 20:05 starc的miao 阅读(34) 评论(0) 推荐(0)
摘要:main.c /* Linux API: Function: */ #include "func.h" /********************************* 主函数 *********************************/ int main(int argc, char 阅读全文
posted @ 2022-11-22 04:09 starc的miao 阅读(50) 评论(0) 推荐(0)
摘要:项目描述 利用C语言实现交互式Shell终端功能。 先实现常用Linux command。 交互式Shell 交互式shell-C代码 交互式shell-转移表-第三版 函数指针列表搭建程序框架 待更新 参考 [Linux] C语言实现一个Shell(持续更新) C 语言实现一个简单的 shell 阅读全文
posted @ 2022-11-01 23:31 starc的miao 阅读(200) 评论(0) 推荐(0)
摘要:TCP Socket 项目1:TCP Socket TCP-Socket项目 项目2:TCP实现shell 待更新 文件I/O 项目1:C实现交互式Shell文件管理器 练手项目-C实现交互式Shell 项目2: 驱动 分布式存储 音视频 嵌入式AI 阅读全文
posted @ 2022-10-15 21:13 starc的miao 阅读(35) 评论(0) 推荐(0)
摘要:1.《C语言入门教程》:引入大量的 C 语言程序案例,把算法和语法结合起来,通过引导大家由浅入深地编写 C 程序,让大家掌握 C 语言。将从中学会 C 语言语法、数组、模块化程序设计指针、文件的输入与输出等。 2.《C语言实现文件类型统计程序》:使用C语言实现一个文件类型统计程序。 3.《C 语言实 阅读全文
posted @ 2022-05-25 21:09 starc的miao 阅读(106) 评论(0) 推荐(0)
摘要:/* Define ISO C stdio on top of C++ iostreams. Copyright (C) 1991-2020 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU 阅读全文
posted @ 2022-04-29 15:57 starc的miao 阅读(260) 评论(0) 推荐(0)
摘要:/* Copyright (C) 1991-2020 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistri 阅读全文
posted @ 2022-04-29 15:57 starc的miao 阅读(419) 评论(0) 推荐(0)
摘要:/* Copyright (C) 1991-2020 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistri 阅读全文
posted @ 2022-04-29 15:50 starc的miao 阅读(218) 评论(0) 推荐(0)
摘要:/* Copyright (C) 1991-2020 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistri 阅读全文
posted @ 2022-04-29 15:48 starc的miao 阅读(545) 评论(0) 推荐(0)