本专栏代码部分使用到的head.h

本专栏代码部分使用到的head.h

存放路径在根目录下的 /usr/include/head.h

cpp 复制代码
#ifndef __HEAD_H__
#define __HEAD_H__

#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <time.h>
#include <unistd.h>
#include <pwd.h>
#include <grp.h>
#include <dirent.h> //opendir closedir readdir函数头文件
#include <sys/wait.h>
#include <pthread.h>   //创建线程
#include <semaphore.h> //无名信号量
#include <signal.h>
#include <sys/ipc.h> //IPC进程间通信键的获取
#include <sys/msg.h> //IPC消息队列
#include <sys/shm.h> //IPC共享内存
#include <sys/sem.h> //IPC信号灯集
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <arpa/inet.h> // inet_addr 将点分十进制的字符串 转换成  网络字节序的 无符号四字节整型
#define PRINT_ERR(errmsg) \
    do                    \
    {                     \
        perror(errmsg);   \
        return -1;        \
    } while (0)

#endif
相关推荐
水天需0106 分钟前
Linux 空操作详解
linux
被遗忘的旋律.20 分钟前
Linux驱动开发笔记(二十三)—— regmap
linux·驱动开发·笔记
RisunJan24 分钟前
Linux命令-iotop命令(实时磁盘 I/O 监控工具)
linux·运维·服务器
XMYX-041 分钟前
CentOS 7 搭建 PostgreSQL 14 实战指南
linux·postgresql·centos
大连好光景43 分钟前
《Docker容器提权&逃逸总结》
linux·运维·服务器
你想考研啊1 小时前
win安装WSL和win使用shell
linux
丁丁丁梦涛1 小时前
TencentOS Server 4.4(兼容centos 9 stream)部署KKFileView
linux·运维·centos·kkfileview
Nautiluss1 小时前
一起调试XVF3800麦克风阵列(九)
linux·人工智能·嵌入式硬件·音频·语音识别·dsp开发
西木Qi1 小时前
tree命令查看目录和文件结构
linux
静止了 所有的花开1 小时前
Linux 上几种 exFAT 驱动的区别
linux·exfat·exfat-nofuse·exfat-linux·linux-exfat-oot