mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-18 05:04:02 +08:00
Update to FreeBSD stable/12 2019-07-09
Git mirror commit 3427c3416aa3c0f25124070959cca78024b94d85.
This commit is contained in:
@@ -180,6 +180,7 @@ typedef enum {
|
||||
PJT_MUTEX_CONSISTENT,
|
||||
PJT_MUTEXATTR_GETROBUST,
|
||||
PJT_MUTEXATTR_SETROBUST,
|
||||
PJT_GETTHREADID_NP,
|
||||
PJT_MAX
|
||||
} pjt_index_t;
|
||||
|
||||
|
@@ -136,6 +136,35 @@ caph_enter(void)
|
||||
return (0);
|
||||
}
|
||||
|
||||
static __inline int
|
||||
caph_rights_limit(int fd, const cap_rights_t *rights)
|
||||
{
|
||||
|
||||
if (cap_rights_limit(fd, rights) < 0 && errno != ENOSYS)
|
||||
return (-1);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
static __inline int
|
||||
caph_ioctls_limit(int fd, const unsigned long *cmds, size_t ncmds)
|
||||
{
|
||||
|
||||
if (cap_ioctls_limit(fd, cmds, ncmds) < 0 && errno != ENOSYS)
|
||||
return (-1);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
static __inline int
|
||||
caph_fcntls_limit(int fd, uint32_t fcntlrights)
|
||||
{
|
||||
|
||||
if (cap_fcntls_limit(fd, fcntlrights) < 0 && errno != ENOSYS)
|
||||
return (-1);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
static __inline int
|
||||
caph_enter_casper(void)
|
||||
|
Reference in New Issue
Block a user