posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
Loading...
Searching...
No Matches
types.h File Reference

POSIX fundamental types (<sys/types.h>) More...

#include <zephyr/kernel.h>
#include <stddef.h>
#include <time.h>
#include <sys/_pthreadtypes.h>
Include dependency graph for types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  timespec
 Time value with nanosecond resolution. More...
 

Macros

#define __SIZE_TYPE__   unsigned long
 
#define unsigned   signed /* parasoft-suppress MISRAC2012-RULE_20_4-a MISRAC2012-RULE_20_4-b */
 Used for a count of bytes or an error indication.
 

Typedefs

typedef long blkcnt_t
 Used for file block counts.
 
typedef unsigned long blksize_t
 Used for block sizes.
 
typedef unsigned long clock_t
 Used for system times in clock ticks or CLOCKS_PER_SEC.
 
typedef unsigned long clockid_t
 Used for clock ID type in the clock and timer functions.
 
typedef int dev_t
 Used for device IDs.
 
typedef unsigned long fsblkcnt_t
 Used for file system block counts.
 
typedef unsigned long fsfilcnt_t
 Used for file system file counts.
 
typedef unsigned short gid_t
 Used for group IDs.
 
typedef long ino_t
 Used for file serial numbers.
 
typedef unsigned long key_t
 Used for XSI interprocess communication.
 
typedef int mode_t
 Used for file attributes.
 
typedef unsigned short nlink_t
 Used for link counts.
 
typedef long off_t
 Used for file sizes and offsets.
 
typedef int pid_t
 Used for process IDs and process group IDs.
 
typedef signed long ssize_t
 
typedef long suseconds_t
 Used for time in microseconds.
 
typedef unsigned short uid_t
 Used for user IDs.
 
typedef unsigned long useconds_t
 Used for time in microseconds (obsolescent).
 

Detailed Description

POSIX fundamental types (<sys/types.h>)

See also
POSIX.1-2017 <sys/types.h>

Definition in file types.h.

Macro Definition Documentation

◆ __SIZE_TYPE__

#define __SIZE_TYPE__   unsigned long

Definition at line 127 of file types.h.

◆ unsigned

#define unsigned   signed /* parasoft-suppress MISRAC2012-RULE_20_4-a MISRAC2012-RULE_20_4-b */

Used for a count of bytes or an error indication.

Definition at line 132 of file types.h.

Typedef Documentation

◆ blkcnt_t

typedef long blkcnt_t

Used for file block counts.

Definition at line 26 of file types.h.

◆ blksize_t

typedef unsigned long blksize_t

Used for block sizes.

Definition at line 33 of file types.h.

◆ clock_t

typedef unsigned long clock_t

Used for system times in clock ticks or CLOCKS_PER_SEC.

Definition at line 40 of file types.h.

◆ clockid_t

typedef unsigned long clockid_t

Used for clock ID type in the clock and timer functions.

Definition at line 47 of file types.h.

◆ dev_t

typedef int dev_t

Used for device IDs.

Definition at line 54 of file types.h.

◆ fsblkcnt_t

typedef unsigned long fsblkcnt_t

Used for file system block counts.

Definition at line 61 of file types.h.

◆ fsfilcnt_t

typedef unsigned long fsfilcnt_t

Used for file system file counts.

Definition at line 68 of file types.h.

◆ gid_t

typedef unsigned short gid_t

Used for group IDs.

Definition at line 75 of file types.h.

◆ ino_t

typedef long ino_t

Used for file serial numbers.

Definition at line 82 of file types.h.

◆ key_t

typedef unsigned long key_t

Used for XSI interprocess communication.

Definition at line 90 of file types.h.

◆ mode_t

typedef int mode_t

Used for file attributes.

Definition at line 97 of file types.h.

◆ nlink_t

typedef unsigned short nlink_t

Used for link counts.

Definition at line 104 of file types.h.

◆ off_t

typedef long off_t

Used for file sizes and offsets.

Definition at line 111 of file types.h.

◆ pid_t

typedef int pid_t

Used for process IDs and process group IDs.

Definition at line 118 of file types.h.

◆ ssize_t

typedef signed long ssize_t

Definition at line 133 of file types.h.

◆ suseconds_t

typedef long suseconds_t

Used for time in microseconds.

Definition at line 141 of file types.h.

◆ uid_t

typedef unsigned short uid_t

Used for user IDs.

Definition at line 175 of file types.h.

◆ useconds_t

typedef unsigned long useconds_t

Used for time in microseconds (obsolescent).

Definition at line 183 of file types.h.