08 2021 档案
摘要:代码test_Exit.c 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <unistd.h> 4 5 //简单输出fun1被调用的提示信息 6 void fun1(void){ 7 printf("[%s] is called...\n
阅读全文
摘要:原来kde下有一个小玩具amor(线条人),可以一直在活动窗口上活动,很好玩的一个小东东。下面就以这个为例讲解下从github从从源码到程序的安装流程 1、下载源码: git clone https://github.com/KDE/amor.git,如果还没有git的同学,那就pacman -S
阅读全文
摘要:代码很简单,testc.c 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <errno.h> 4 #include <string.h> 5 6 #define Numerous 0xFFFFFFFFFFFFFF 7 8 int main
阅读全文
摘要:在C语言中,可应将任何的常量、字符床、符号用宏表示成另外一个名称,表示的形式多种多样,宏定义是在预处理过程中被实际的内容替换的。 一、无参数的宏 1.用宏定义定义数值常量,也叫无参数的宏 #define ArraySize 10 int arr[ArraySize] 2.用宏定义表达式,自动求出结果
阅读全文
摘要:代码非常简单,不多少,list.h 1 #ifndef list_h 2 #define list_h 3 4 #include <stdlib.h> 5 #include <stdio.h> 6 7 #define MaxSize 10 8 9 typedef int DataType; 10 1
阅读全文
摘要:如何每小时改变你的 Linux 桌面壁纸-Linuxeden开源社区 这个 shell 脚本 styli.sh 可以帮助你每小时自动改变你的 Linux 桌面壁纸,并且有几个选项。 用一张漂亮的壁纸来开始你的一天,你的桌面让人耳目一新。但寻找壁纸,然后保存,最终设置为壁纸,是非常麻烦的。所有这些步骤
阅读全文
摘要:####使用自己裁剪的list.h头文件实现的linux内核链表 代码:list1.h 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _LINUX_LIST_H 3 #define _LINUX_LIST_H 4 5 //#include <l
阅读全文
摘要:原文链接:https://www.jianshu.com/p/444789681e2a 查看系统版本,快捷键Win+R打开运行,输入winver,打开“关于Windows”,查看当前Windows10版本。 关于Windows 开启开发者选项 打开【开始】>【设置】>【更新和安全】>【开发者选项】>
阅读全文
摘要:####背景 0.最近为了学习linux内核的数据结构,需要阅读linux内核,代码量比较大些,想起来几年前阅读android源码时的工具用来还算比较顺手,就想配置下接着继续来用。 1.软件的安装,略过linux和vim的安装,如果这些东西你都没有安装,或许这个博客你根本不需要看的, 具体就是lin
阅读全文
摘要:代码:list.h 1 /* 2 * @file list.h 3 * @author PF 4 * @date 2017/05/1 5 * 6 * port from linux kernel list.h: https://github.com/torvalds/linux/raw/master
阅读全文
摘要:代码如下: list.h中: /** 505 * list_entry - get the struct for this entry 506 * @ptr: the &struct list_head pointer. 507 * @type: the type of the struct thi
阅读全文
摘要:参考网址:http://www.oldlinux.org/ 一个安装win10下linux子系统的:https://www.jianshu.com/p/444789681e2a 还有一个必备的基础:https://blog.csdn.net/zxremail/article/details/5151
阅读全文