diff --git a/headers/posix/unistd.h b/headers/posix/unistd.h index 038dcebad3..d7ab43d07d 100644 --- a/headers/posix/unistd.h +++ b/headers/posix/unistd.h @@ -49,6 +49,7 @@ #define _POSIX_CHOWN_RESTRICTED (1) #define _POSIX_CLOCK_SELECTION (200809L) #define _POSIX_CPUTIME (200809L) +#define _POSIX_DEVICE_CONTROL (202405L) #define _POSIX_FSYNC (200809L) #define _POSIX_IPV6 (200809L) #define _POSIX_JOB_CONTROL (1) @@ -306,6 +307,8 @@ #define _SC_THREAD_THREADS_MAX 141 #define _SC_RE_DUP_MAX 142 +#define _SC_DEVICE_CONTROL 143 + /* confstr() constants */ #define _CS_PATH 1 diff --git a/src/system/libroot/posix/unistd/conf.cpp b/src/system/libroot/posix/unistd/conf.cpp index 46fbc2747e..e72f470ee2 100644 --- a/src/system/libroot/posix/unistd/conf.cpp +++ b/src/system/libroot/posix/unistd/conf.cpp @@ -169,6 +169,8 @@ __sysconf(int name) return _POSIX_CLOCK_SELECTION; case _SC_CPUTIME: return _POSIX_CPUTIME; + case _SC_DEVICE_CONTROL: + return _POSIX_DEVICE_CONTROL; case _SC_FSYNC: return _POSIX_FSYNC; case _SC_IPV6: