Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What does h file refer to in linux

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces "what the h file in linux refers to". In the daily operation, I believe that many people have doubts about what the h file in linux refers to. The editor consulted all kinds of materials and sorted out a simple and easy-to-use method of operation. I hope it will be helpful to answer the doubt of "what does the h file in linux refer to?" Next, please follow the editor to study!

In linux, h file is the header file in the system, which is generally used to store some reused code, such as function declaration, variable declaration, constant declaration, macro definition, etc.; header file is a kind of text file, which can be saved with the extension ".h" after editing with a text editor.

The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

What is the h file of linux

A header file is a text file. After you have written the code using a text editor, you can save it with the .h extension. Header files generally put some reused code, such as function declarations, variable declarations, constant definitions, macro definitions, and so on.

There are a total of 32 .h header files in the header file directory. There are 13 in the home directory, 4 in the ASM subdirectory, 10 in the Linux subdirectory, and 5 in the sys subdirectory.

: a.out header file, which defines the a.out execution file format and some macros.

Constant symbol header file, currently only the flag bits of the i_mode field in the I node are defined.

Character type header file, which defines some macros about character type judgment and conversion

Error header file, which contains all kinds of error numbers in the system Linus was introduced from minix.

The file control header file, which is used for the operation of the file and its descriptors to control the definition of constant symbols.

Signal header file, defining signal symbol constant, signal structure and signal operation function prototype.

A standard parameter header file that defines a list of variable parameters in the form of a macro It mainly describes a type (va_list) and three macros (va_start, va_arg and va_end) for vsprintf, vprintf, and vfprintf functions.

Standard definition header file, which defines NULL, offsetof (TYPE, MEMBER).

String header file, which mainly defines some embedded functions about string operation.

Terminal input and output function header file, which mainly defines the terminal interface that controls the asynchronous communication port.

Time type header file, which mainly defines the tm structure and some time-related function prototypes.

Linux standard header file, which defines various symbolic constants and types, and declares various functions. For example, the definition of _ _ LIBRARY__, also includes the system call number and embedded assembly _ syscall0 () and so on.

User time header file, which defines the access and modification time structure and utime () prototype.

Architecture-related header file subdirectory include/asm

These header files mainly define some data structures, macro functions and variables that are closely related to the CPU architecture. There are 4 files in total.

A header file that defines the function to operate on the Icano port in the form of a macro embedded assembler.

Memory copy header file, containing memcpy () embedded assembly macro function.

: segment operation header file, which defines embedded assembly functions about segment register operations.

A system header file that defines an embedded assembly macro that sets or modifies descriptors / interrupt gates, etc.

Linux kernel special header file subdirectory include/linux

Kernel configuration header file, defining keyboard language and hard disk type (HD_TYPE) optional

Floppy drive header file, which contains some definitions of floppy disk controller parameters

File system header files, define the file table structure (file,buffer_head,m_inode, etc.).

Hard disk parameter header file, defining access to hard disk register port, status code, partition table and other information.

The head header file, which defines the simple structure of the segment descriptor, and several selector constants.

Kernel header file, which contains the prototype definition of some common kernel functions

Memory management header file with page size definition and some page release function prototypes

Scheduler header file, which defines the task structure task_struct and the data of the initial task 0

And some embedded assembly function macro statements about setting and getting descriptor parameters.

The system call header file contains 72 system call C function handlers, starting with "sys_".

: tty header file, which defines the parameters and constants related to tty_io and serial communication.

System-specific data structure subdirectory include/sys

File status header file, containing file or file system status structure stat {} and constants

Defines the in-process runtime structure tms and the times () function prototype.

Type header file, which defines the basic system data types

System name structure header file

Wait for the call header file to define the system calls wait () and waitpid () and related constant symbols.

Common header files for Linux

Header files defined by the POSIX standard

Catalogue item

File control

File name matching type

Pathname pattern matching type

Group file

Network database operation

Password file

Regular expression

TAR archive valu

Terminal IPUBO

Symbolic constant

File time

Character extension type

INTERNET definition

Socket local interface

INTERNET address family

Transmission control protocol definition

Memory management statement

Select function

Socket excuse

File statu

Process time

Basic system data type

UNIX domain socket definition

System name

Process control

XSI extension header file defined by POSIX

G` "dynamic link

Message display structure

File tree roaming

Code set conversion user program

Language information constant

Pattern matching function definition

Currency type

Database operation

Message category

Polling function

Search table

String operation

System error logging

User context

User restriction

User account database

IPC (named pipe)

Message queue

Resource operation

Semaphore

Shared storage

File system information

Time type

Additional date and time definition

Vector IPUBO operation

Optional header files defined by POSIX

Asynchronous IPUBO

Message queue

Thread

Execution scheduling

Semaphore

Real-time spawn interface

XSI STREAMS interface

Event tracking

At this point, the study of "what the h file in linux refers to" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report