11 2022 档案
摘要:CPU模块为 :海光AMD 操作系统为:统信UOS 1、 error: unknown type name ‘mm_segment_t’; did you mean ‘apm_event_t’? static inline void set_fs(mm_segment_t fs) $ vim /li
阅读全文
摘要:C语言字符串去除后面的无用字节(可用于进程间通信) #include <stdio.h> #include <string.h> #define dPrint(fmt, ...) do{fprintf(stderr, "[%s:%d] " fmt "\r\n", __FUNCTION__, __LI
阅读全文
摘要:1、配置串口管理 $ echo "S0:12345:respawn:/sbin/agetty/ ttyS0 115200" >> /etc/inittab $ vim /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT="splash quiet console
阅读全文
摘要:函数说明: void line( int x1, int y1, int x2, int y2 ); 参数 x1 直线的起始点的 x 坐标。 y1 直线的起始点的 y 坐标。 x2 直线的终止点的 x 坐标。 y2 直线的终止点的 y 坐标。 文件素材 源代码 #include <graphics.
阅读全文
摘要:FreeRADIUS服务器添加自定义参数 1、安装freeradius服务端 yum install freeradius -y 2、新增自定义厂商(例:mycompany) Radius服务端安装后默认只有华为、思科等厂商的参数,此时需要加入自定义厂商的配置 $ vim /usr/share/fr
阅读全文