<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0"><channel><title>八角星の秘密基地</title><link>https://040216.xyz</link><atom:link href="https://040216.xyz/rss.xml" rel="self" type="application/rss+xml"/><description>八角星の秘密基地</description><generator>Halo v2.23.1</generator><language>zh-cn</language><image><url>https://040216.xyz/upload/zz.png</url><title>八角星の秘密基地</title><link>https://040216.xyz</link></image><lastBuildDate>Sun, 19 Apr 2026 23:45:43 GMT</lastBuildDate><item><title><![CDATA[线程创建、终止]]></title><link>https://040216.xyz/archives/xian-cheng-chuang-jian-zhong-zhi</link><description><![CDATA[<img src="https://040216.xyz/plugins/feed/assets/telemetry.gif?title=%E7%BA%BF%E7%A8%8B%E5%88%9B%E5%BB%BA%E3%80%81%E7%BB%88%E6%AD%A2&amp;url=/archives/xian-cheng-chuang-jian-zhong-zhi" width="1" height="1" alt="" style="opacity:0;">1. 进程内存分布回顾 进程的内存布局与 C 语言程序的内存分布高度一致，主要包括以下区域（从低地址到高地址）： 代码区（Text Segment）：存放程序的机器指令。 初始化数据区（Initialized Data Segment）：存放已显式初始化的全局变量和静态变量（如 static int]]></description><guid isPermaLink="false">/archives/xian-cheng-chuang-jian-zhong-zhi</guid><dc:creator>八角星</dc:creator><enclosure url="https://040216.xyz/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2F0217736685649990f87d46e3706008b2b429e6d043e5cdc2983ab_0.jpeg&amp;size=m" type="image/jpeg" length="36519"/><category>技术学习</category><pubDate>Mon, 16 Mar 2026 13:42:40 GMT</pubDate></item><item><title><![CDATA[信号处理]]></title><link>https://040216.xyz/archives/xin-hao-chu-li</link><description><![CDATA[<img src="https://040216.xyz/plugins/feed/assets/telemetry.gif?title=%E4%BF%A1%E5%8F%B7%E5%A4%84%E7%90%86&amp;url=/archives/xin-hao-chu-li" width="1" height="1" alt="" style="opacity:0;">1. 课程概述 本节课程聚焦于 Unix/Linux 系统中信号（signal）的处置（disposition）机制，重点讲解 POSIX 标准推荐的信号处理接口 sigaction。课程内容分为三部分： sigaction 函数及其结构体 struct sigaction 的详细解析 实例一：使用]]></description><guid isPermaLink="false">/archives/xin-hao-chu-li</guid><dc:creator>八角星</dc:creator><enclosure url="https://040216.xyz/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2F021773556438540c74f56d5c7946375a459cfa18fafa096334d63_0.jpeg&amp;size=m" type="image/jpeg" length="45078"/><category>技术学习</category><pubDate>Sun, 15 Mar 2026 06:33:57 GMT</pubDate></item><item><title><![CDATA[信号机制]]></title><link>https://040216.xyz/archives/xin-hao-ji-zhi</link><description><![CDATA[<img src="https://040216.xyz/plugins/feed/assets/telemetry.gif?title=%E4%BF%A1%E5%8F%B7%E6%9C%BA%E5%88%B6&amp;url=/archives/xin-hao-ji-zhi" width="1" height="1" alt="" style="opacity:0;">1. 什么是信号 1.1 核心定义 通知机制：信号是事件发生时对进程的通知机制。例如，按下 Ctrl+C 实际上是向进程发送一个通知，要求进程关闭或中止。 软件中断：信号有时也被称为软件中断。这一概念借鉴了硬件层面的 CPU 中断机制。 硬件中断：硬件设备触发，打断 CPU 正常执行流程。 软件中断]]></description><guid isPermaLink="false">/archives/xin-hao-ji-zhi</guid><dc:creator>八角星</dc:creator><enclosure url="https://040216.xyz/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2F021773117891934071b8e0edac031ecb87fdc9a38ce70a9566eb0_0.jpeg&amp;size=m" type="image/jpeg" length="46032"/><category>技术学习</category><pubDate>Tue, 10 Mar 2026 04:44:51 GMT</pubDate></item><item><title><![CDATA[孤儿进程、守护进程]]></title><link>https://040216.xyz/archives/gu-er-jin-cheng-shou-hu-jin-cheng</link><description><![CDATA[<img src="https://040216.xyz/plugins/feed/assets/telemetry.gif?title=%E5%AD%A4%E5%84%BF%E8%BF%9B%E7%A8%8B%E3%80%81%E5%AE%88%E6%8A%A4%E8%BF%9B%E7%A8%8B&amp;url=/archives/gu-er-jin-cheng-shou-hu-jin-cheng" width="1" height="1" alt="" style="opacity:0;">1. 孤儿进程 (Orphan Process) 1.1 形成原因 定义：父进程 (Parent Process) 先于子进程 (Child Process) 退出，而子进程仍在运行。 背景： 进程之间是树形结构，父进程通过子进程查找和管理后代。 正常情况下，父进程退出前会等待子进程结束（通过 wa]]></description><guid isPermaLink="false">/archives/gu-er-jin-cheng-shou-hu-jin-cheng</guid><dc:creator>八角星</dc:creator><enclosure url="https://040216.xyz/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2F0217730694218229b45e4f03d1ded75da6145fcabce4838a6f523_0.jpeg&amp;size=m" type="image/jpeg" length="46942"/><category>技术学习</category><pubDate>Mon, 9 Mar 2026 15:17:01 GMT</pubDate></item><item><title><![CDATA[system()、exec族]]></title><link>https://040216.xyz/archives/system-execzu</link><description><![CDATA[<img src="https://040216.xyz/plugins/feed/assets/telemetry.gif?title=system%28%29%E3%80%81exec%E6%97%8F&amp;url=/archives/system-execzu" width="1" height="1" alt="" style="opacity:0;">1. 如何在程序中执行 Shell 命令 1.1 背景与目标 在 bash 环境下，可以直接运行命令（如 ls, cd）或程序。 目标：在自己的 C 语言程序中，实现类似 bash 的功能，即执行任意的 shell 命令。 1.2 system 函数接口 功能：执行一条 shell 命令。 头文件：]]></description><guid isPermaLink="false">/archives/system-execzu</guid><dc:creator>八角星</dc:creator><enclosure url="https://040216.xyz/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2F0217730704502429b45e4f03d1ded75da6145fcabce4838ead8f9_0.jpeg&amp;size=m" type="image/jpeg" length="42531"/><category>技术学习</category><pubDate>Mon, 9 Mar 2026 07:07:55 GMT</pubDate></item><item><title><![CDATA[进程状态与管理]]></title><link>https://040216.xyz/archives/jin-cheng-zhuang-tai-yu-guan-li</link><description><![CDATA[<img src="https://040216.xyz/plugins/feed/assets/telemetry.gif?title=%E8%BF%9B%E7%A8%8B%E7%8A%B6%E6%80%81%E4%B8%8E%E7%AE%A1%E7%90%86&amp;url=/archives/jin-cheng-zhuang-tai-yu-guan-li" width="1" height="1" alt="" style="opacity:0;">1. 进程状态理论概述 在操作系统理论中，进程状态描述了进程在其生命周期中的不同阶段。在 Linux 环境下，进程状态主要有以下五种。需要注意的是，不同语境或理论体系下描述可能略有区别，本课程基于 Linux 内核视角。 1.1 五种基本状态 就绪态 (Ready) 进程已创建，具备运行条件，但尚未]]></description><guid isPermaLink="false">/archives/jin-cheng-zhuang-tai-yu-guan-li</guid><dc:creator>八角星</dc:creator><enclosure url="https://040216.xyz/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2F02177303548984609495a2a9188cb78a37ff9c09fef68ce1a96e7_0.jpeg&amp;size=m" type="image/jpeg" length="31820"/><category>技术学习</category><pubDate>Fri, 6 Mar 2026 05:51:00 GMT</pubDate></item><item><title><![CDATA[进程：创建、终止]]></title><link>https://040216.xyz/archives/jin-cheng-chuang-jian-zhong-zhi</link><description><![CDATA[<img src="https://040216.xyz/plugins/feed/assets/telemetry.gif?title=%E8%BF%9B%E7%A8%8B%EF%BC%9A%E5%88%9B%E5%BB%BA%E3%80%81%E7%BB%88%E6%AD%A2&amp;url=/archives/jin-cheng-chuang-jian-zhong-zhi" width="1" height="1" alt="" style="opacity:0;">1. 进程创建基础 (fork 函数) 1.1 函数接口与头文件 函数名称: fork 所需头文件: #include &lt;sys/types.h&gt; #include &lt;unistd.h&gt; 函数原型: pid_t fork(void); 参数: 无参数。 返回值: pid_t (进程 ID 类型，通常]]></description><guid isPermaLink="false">/archives/jin-cheng-chuang-jian-zhong-zhi</guid><dc:creator>八角星</dc:creator><enclosure url="https://040216.xyz/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2F0217727143861799d57bd55136dc590b50119bd55b28c187bec27_0.jpeg&amp;size=m" type="image/jpeg" length="38962"/><category>技术学习</category><pubDate>Thu, 5 Mar 2026 12:19:35 GMT</pubDate></item><item><title><![CDATA[进程、程序]]></title><link>https://040216.xyz/archives/jin-cheng-cheng-xu</link><description><![CDATA[<img src="https://040216.xyz/plugins/feed/assets/telemetry.gif?title=%E8%BF%9B%E7%A8%8B%E3%80%81%E7%A8%8B%E5%BA%8F&amp;url=/archives/jin-cheng-cheng-xu" width="1" height="1" alt="" style="opacity:0;">1. 进程查看命令详解 在 Linux 系统下，可以通过多种命令查看和管理进程信息。以下是课程中详细介绍的几个关键命令及其区别： 1. top 命令 功能：查看系统当前的资源信息及进程状态。 特点： 展示的是**实时（Real-time）**的进程信息。 可以动态看到哪个进程正在运行、哪个处于暂停状]]></description><guid isPermaLink="false">/archives/jin-cheng-cheng-xu</guid><dc:creator>八角星</dc:creator><enclosure url="https://040216.xyz/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2F021772633595794b7d7f197b2d67cdc76ad3a5a9a2c9ba91e600c_0.jpeg&amp;size=m" type="image/jpeg" length="46986"/><category>技术学习</category><pubDate>Wed, 4 Mar 2026 14:05:55 GMT</pubDate></item><item><title><![CDATA[UNIX/Linux：简史与标准化]]></title><link>https://040216.xyz/archives/unix-linux-jian-shi-yu-biao-zhun-hua</link><description><![CDATA[<img src="https://040216.xyz/plugins/feed/assets/telemetry.gif?title=UNIX%2FLinux%EF%BC%9A%E7%AE%80%E5%8F%B2%E4%B8%8E%E6%A0%87%E5%87%86%E5%8C%96&amp;url=/archives/unix-linux-jian-shi-yu-biao-zhun-hua" width="1" height="1" alt="" style="opacity:0;">1. Unix 标准与手册页 背景引入 在学习进程、线程编程之前，通常接触过文件 I/O。 常用函数：open 是一个系统调用（System Call）。 在手册页（man page）中查看 open（Section 2）时，会看到系统调用层面的描述。 在手册页中查看 open 和 creat 函数]]></description><guid isPermaLink="false">/archives/unix-linux-jian-shi-yu-biao-zhun-hua</guid><dc:creator>八角星</dc:creator><enclosure url="https://040216.xyz/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2F021772634340080b7d7f197b2d67cdc76ad3a5a9a2c9ba9d57289_0.jpeg&amp;size=m" type="image/jpeg" length="40628"/><category>技术学习</category><pubDate>Wed, 4 Mar 2026 13:56:52 GMT</pubDate></item><item><title><![CDATA[静态库与动态库]]></title><link>https://040216.xyz/archives/jing-tai-ku-yu-dong-tai-ku</link><description><![CDATA[<img src="https://040216.xyz/plugins/feed/assets/telemetry.gif?title=%E9%9D%99%E6%80%81%E5%BA%93%E4%B8%8E%E5%8A%A8%E6%80%81%E5%BA%93&amp;url=/archives/jing-tai-ku-yu-dong-tai-ku" width="1" height="1" alt="" style="opacity:0;">1. 程序库概述 1.1 库的基本概念 定义：库是预先编译好的二进制文件形式，包含了一系列函数接口。 作用：提供复用功能，类似标准库（Standard Library），开发者可以自定义库供他人调用。 形式： 源代码（.c）经过编译打包后形成二进制库文件。 调用时直接调用打包好的库，而非直接使用 .]]></description><guid isPermaLink="false">/archives/jing-tai-ku-yu-dong-tai-ku</guid><dc:creator>八角星</dc:creator><enclosure url="https://040216.xyz/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2F0217727143031272205390225fb9fc3a73f08f8b97bd205c3f78b_0.jpeg&amp;size=m" type="image/jpeg" length="32645"/><category>技术学习</category><pubDate>Wed, 4 Mar 2026 12:43:36 GMT</pubDate></item><item><title><![CDATA[文件属性获取]]></title><link>https://040216.xyz/archives/wen-jian-shu-xing-huo-qu</link><description><![CDATA[<img src="https://040216.xyz/plugins/feed/assets/telemetry.gif?title=%E6%96%87%E4%BB%B6%E5%B1%9E%E6%80%A7%E8%8E%B7%E5%8F%96&amp;url=/archives/wen-jian-shu-xing-huo-qu" width="1" height="1" alt="" style="opacity:0;">1. 课程概述与目标 核心主题：学习如何获取文件的详细属性（File Attributes）。 背景：上一节课学习了访问目录，但仅能获取文件名字和文件类型。 目标：实现类似 ls -al 命令的效果。 展示文件的时间戳（Time Stamp）。 展示文件的读写权限（Read/Write/Execut]]></description><guid isPermaLink="false">/archives/wen-jian-shu-xing-huo-qu</guid><dc:creator>八角星</dc:creator><enclosure url="https://040216.xyz/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2F021772714289118a72acf3a665d5dc07fc94570c0faad798251e4_0.jpeg&amp;size=m" type="image/jpeg" length="35415"/><category>技术学习</category><pubDate>Tue, 3 Mar 2026 13:47:49 GMT</pubDate></item><item><title><![CDATA[标准IO：目录操作]]></title><link>https://040216.xyz/archives/biao-zhun-io-mu-lu-cao-zuo</link><description><![CDATA[<img src="https://040216.xyz/plugins/feed/assets/telemetry.gif?title=%E6%A0%87%E5%87%86IO%EF%BC%9A%E7%9B%AE%E5%BD%95%E6%93%8D%E4%BD%9C&amp;url=/archives/biao-zhun-io-mu-lu-cao-zuo" width="1" height="1" alt="" style="opacity:0;">1. 概述 背景：在 Linux I/O 课程中，之前主要学习的是针对文件（设备文件、文本文件）的操作。但在实际场景中，经常需要访问目录（Directory），查看目录下的文件列表。 需求：需要专门的接口来处理目录的打开、读取和关闭操作。 核心接口：系统提供了关于目录操作的标准接口，主要涉及 ope]]></description><guid isPermaLink="false">/archives/biao-zhun-io-mu-lu-cao-zuo</guid><dc:creator>八角星</dc:creator><enclosure url="https://040216.xyz/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2F0217727142773989d57bd55136dc590b50119bd55b28c18f11042_0.jpeg&amp;size=m" type="image/jpeg" length="28752"/><category>技术学习</category><pubDate>Mon, 2 Mar 2026 15:52:08 GMT</pubDate></item><item><title><![CDATA[标准 IO：刷新、定位]]></title><link>https://040216.xyz/archives/biao-zhun-io-shua-xin-ding-wei</link><description><![CDATA[<img src="https://040216.xyz/plugins/feed/assets/telemetry.gif?title=%E6%A0%87%E5%87%86%20IO%EF%BC%9A%E5%88%B7%E6%96%B0%E3%80%81%E5%AE%9A%E4%BD%8D&amp;url=/archives/biao-zhun-io-shua-xin-ding-wei" width="1" height="1" alt="" style="opacity:0;">1. 文件缓冲区刷新 (fflush) 1.1 问题背景 在使用标准 IO 进行格式化输出到文件时，有时会出现以下情况： 调用写函数（如 fprintf）显示成功。 立即使用 cat 命令查看文件，发现内容为空。 原因：标准 IO 是全缓存（Full Buffered）的。 在没有调用 fclose]]></description><guid isPermaLink="false">/archives/biao-zhun-io-shua-xin-ding-wei</guid><dc:creator>八角星</dc:creator><enclosure url="https://040216.xyz/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2F0217727142654652205390225fb9fc3a73f08f8b97bd20522c1e9_0.jpeg&amp;size=m" type="image/jpeg" length="30484"/><category>技术学习</category><pubDate>Mon, 2 Mar 2026 15:42:08 GMT</pubDate></item><item><title><![CDATA[标准IO：对象、格式化读写]]></title><link>https://040216.xyz/archives/biao-zhun-io-dui-xiang-ge-shi-hua-du-xie</link><description><![CDATA[<img src="https://040216.xyz/plugins/feed/assets/telemetry.gif?title=%E6%A0%87%E5%87%86IO%EF%BC%9A%E5%AF%B9%E8%B1%A1%E3%80%81%E6%A0%BC%E5%BC%8F%E5%8C%96%E8%AF%BB%E5%86%99&amp;url=/archives/biao-zhun-io-dui-xiang-ge-shi-hua-du-xie" width="1" height="1" alt="" style="opacity:0;">1. 文本文件与二进制文件概念 在开始学习标准 I/O 的二进制读写之前，需要区分两个核心概念：文本文件与二进制文件。 文本文件 (Text File) 存在形式：通常以人类可读的字符形式存在（例如 .c, .txt 文件）。 存储内容：内部存储的是字符对应的 ASCII 值。 计算机存储原理：虽然]]></description><guid isPermaLink="false">/archives/biao-zhun-io-dui-xiang-ge-shi-hua-du-xie</guid><dc:creator>八角星</dc:creator><enclosure url="https://040216.xyz/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2F021772714251431a72acf3a665d5dc07fc94570c0faad7980fb81_0.jpeg&amp;size=m" type="image/jpeg" length="37992"/><category>技术学习</category><pubDate>Sat, 28 Feb 2026 12:06:45 GMT</pubDate></item><item><title><![CDATA[标准IO：字符、行 读写]]></title><link>https://040216.xyz/archives/biao-zhun-io-zi-fu-xing-du-xie</link><description><![CDATA[<img src="https://040216.xyz/plugins/feed/assets/telemetry.gif?title=%E6%A0%87%E5%87%86IO%EF%BC%9A%E5%AD%97%E7%AC%A6%E3%80%81%E8%A1%8C%20%E8%AF%BB%E5%86%99&amp;url=/archives/biao-zhun-io-zi-fu-xing-du-xie" width="1" height="1" alt="" style="opacity:0;">1. 文件读写的三种基本方式 C 语言标准 I/O（Standard I/O）库提供了三种主要的文件读写方式： 字符方式（Character-wise）：一次读/写一个字符。 行方式（Line-wise）：一次读/写一行文本。 对象方式（Object-wise）：以结构体或自定义数据块为单位进行读写]]></description><guid isPermaLink="false">/archives/biao-zhun-io-zi-fu-xing-du-xie</guid><dc:creator>八角星</dc:creator><enclosure url="https://040216.xyz/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2F0217727142370079d57bd55136dc590b50119bd55b28c18770b79_0.jpeg&amp;size=m" type="image/jpeg" length="34480"/><category>技术学习</category><pubDate>Fri, 27 Feb 2026 09:49:38 GMT</pubDate></item><item><title><![CDATA[标准IO：打开关闭、错误处理]]></title><link>https://040216.xyz/archives/biao-zhun-io-da-kai-guan-bi-cuo-wu-chu-li</link><description><![CDATA[<img src="https://040216.xyz/plugins/feed/assets/telemetry.gif?title=%E6%A0%87%E5%87%86IO%EF%BC%9A%E6%89%93%E5%BC%80%E5%85%B3%E9%97%AD%E3%80%81%E9%94%99%E8%AF%AF%E5%A4%84%E7%90%86&amp;url=/archives/biao-zhun-io-da-kai-guan-bi-cuo-wu-chu-li" width="1" height="1" alt="" style="opacity:0;">1. 文件打开与关闭的基本概念 打开（Open）：占用系统资源（如文件、设备等）。 关闭（Close）：释放已占用的资源，避免其他程序无法访问。 在操作系统底层（文件描述符层面），通过 open() 和 close() 实现资源的占用与释放。 在 C 标准库中，使用 FILE* 流指针进行操作，接口]]></description><guid isPermaLink="false">/archives/biao-zhun-io-da-kai-guan-bi-cuo-wu-chu-li</guid><dc:creator>八角星</dc:creator><enclosure url="https://040216.xyz/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2F021772714127098a72acf3a665d5dc07fc94570c0faad7966e489_0.jpeg&amp;size=m" type="image/jpeg" length="24490"/><category>技术学习</category><pubDate>Fri, 27 Feb 2026 04:18:05 GMT</pubDate></item><item><title><![CDATA[标准IO：缓存机制]]></title><link>https://040216.xyz/archives/biao-zhun-io-huan-chong-ji-zhi</link><description><![CDATA[<img src="https://040216.xyz/plugins/feed/assets/telemetry.gif?title=%E6%A0%87%E5%87%86IO%EF%BC%9A%E7%BC%93%E5%AD%98%E6%9C%BA%E5%88%B6&amp;url=/archives/biao-zhun-io-huan-chong-ji-zhi" width="1" height="1" alt="" style="opacity:0;">1. 标准 IO 与文件 IO 的对比 1.1 核心区别 文件 IO (File I/O): 属于系统调用 (System Call)。 每次操作（如 read, write）都会触发内核态与用户态的切换。 频繁的系统调用会降低效率。 使用 文件描述符 (File Descriptor, FD)，是]]></description><guid isPermaLink="false">/archives/biao-zhun-io-huan-chong-ji-zhi</guid><dc:creator>八角星</dc:creator><enclosure url="https://040216.xyz/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2F0217727141045309d57bd55136dc590b50119bd55b28c18a5e5ba_0.jpeg&amp;size=m" type="image/jpeg" length="39385"/><category>技术学习</category><pubDate>Thu, 26 Feb 2026 07:51:55 GMT</pubDate></item><item><title><![CDATA[文件IO：文件定位、权限修改]]></title><link>https://040216.xyz/archives/lseek-chmod</link><description><![CDATA[<img src="https://040216.xyz/plugins/feed/assets/telemetry.gif?title=%E6%96%87%E4%BB%B6IO%EF%BC%9A%E6%96%87%E4%BB%B6%E5%AE%9A%E4%BD%8D%E3%80%81%E6%9D%83%E9%99%90%E4%BF%AE%E6%94%B9&amp;url=/archives/lseek-chmod" width="1" height="1" alt="" style="opacity:0;">1. 文件定位接口 lseek 1.1 为什么需要 lseek 在文件读写过程中，文件指针（光标）会随着 read 或 write 操作自动移动。 读后写：读完文件后，指针在末尾，直接写入会追加内容，符合预期。 写后读：写入一行内容后，指针位于写入内容的末尾。如果此时想读取刚才写入的内容，由于指针不]]></description><guid isPermaLink="false">/archives/lseek-chmod</guid><dc:creator>八角星</dc:creator><enclosure url="https://040216.xyz/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2F021772714084485a72acf3a665d5dc07fc94570c0faad799d0869_0.jpeg&amp;size=m" type="image/jpeg" length="37177"/><category>技术学习</category><pubDate>Wed, 25 Feb 2026 12:14:49 GMT</pubDate></item><item><title><![CDATA[文件IO：读写]]></title><link>https://040216.xyz/archives/read-write</link><description><![CDATA[<img src="https://040216.xyz/plugins/feed/assets/telemetry.gif?title=%E6%96%87%E4%BB%B6IO%EF%BC%9A%E8%AF%BB%E5%86%99&amp;url=/archives/read-write" width="1" height="1" alt="" style="opacity:0;">Linux 系统编程：文件 I/O 操作详解 (read/write/open) 本笔记基于视频内容整理，并结合 Linux 标准文档（man pages）进行了技术细节的校正与补充。内容涵盖 read、write、open 函数的核心用法、参数详解、返回值处理、文件权限标志以及命令行参数传递的最佳]]></description><guid isPermaLink="false">/archives/read-write</guid><dc:creator>八角星</dc:creator><enclosure url="https://040216.xyz/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2F0217727138862599d57bd55136dc590b50119bd55b28c18c31ab6_0.jpeg&amp;size=m" type="image/jpeg" length="26444"/><category>技术学习</category><pubDate>Wed, 25 Feb 2026 11:01:15 GMT</pubDate></item><item><title><![CDATA[文件IO：文件描述符、打开与关闭]]></title><link>https://040216.xyz/archives/open-close</link><description><![CDATA[<img src="https://040216.xyz/plugins/feed/assets/telemetry.gif?title=%E6%96%87%E4%BB%B6IO%EF%BC%9A%E6%96%87%E4%BB%B6%E6%8F%8F%E8%BF%B0%E7%AC%A6%E3%80%81%E6%89%93%E5%BC%80%E4%B8%8E%E5%85%B3%E9%97%AD&amp;url=/archives/open-close" width="1" height="1" alt="" style="opacity:0;">1. 系统调用与库函数概述 1.1 应用程序与内核的交互 内核（Kernel）：操作系统的核心部分，负责管理硬件资源和提供服务。 保护机制：应用程序不能直接访问内核空间或直接进行数据访问、数据后续等操作，必须经过保护。 系统调用（System Call）： 内核提供的接口，允许应用程序请求内核服务。]]></description><guid isPermaLink="false">/archives/open-close</guid><dc:creator>八角星</dc:creator><enclosure url="https://040216.xyz/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2F021772713860738a72acf3a665d5dc07fc94570c0faad79926617_0.jpeg&amp;size=m" type="image/jpeg" length="39087"/><category>技术学习</category><pubDate>Wed, 25 Feb 2026 07:27:45 GMT</pubDate></item></channel></rss>