Header files for Pthread functions
Programs that use the Pthread functions must include one or more header files that contain information that the functions need. Header files include the following:
- Macro definitions
- Data type definitions
- Structure definitions
- Function prototypes
The header files are provided in the QSYSINC library which can be installed as an option. Make sure QSYSINC is on your system before compiling programs that use these header files.
Where to Find Header Files
Name of Header File | Name of File in QSYSINC | Name of Member |
---|---|---|
pthread.h | H | PTHREAD |
sched.h | H | SCHED |
You can display a header file in QSYSINC by using one of the following methods:
- Use your editor. For example, to display the pthread.h
header file using the Source Entry Utility editor, enter the following command:
STRSEU SRCFILE(QSYSINC/H) SRCMBR(PTHREAD) OPTION(5)
- Use the Display Physical File Member command. For example, to display the
sched.h header file, enter the following command:
DSPPFM FILE(QSYSINC/H) MBR(SCHED)
You can print a header file in QSYSINC by using one of the following methods:
- Use your editor. For example, to print the pthread.h
header file using the Source Entry Utility editor, enter the following command:
STRSEU SRCFILE(QSYSINC/H) SRCMBR(PTHREAD) OPTION(6)
- Use your Copy File command. For example, to print the
sched.h header file, enter the following command:
CPYF FROMFILE(QSYSINC/H) TOFILE(*PRINT) FROMMBR(SCHED)
[ Back to top | Pthread APIs | APIs by category ]