mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 09:45:42 +08:00
Update to FreeBSD head 2019-09-24
Git mirror commit 6b0307a0a5184339393f555d5d424190d8a8277a.
This commit is contained in:
@@ -51,6 +51,7 @@ __BEGIN_DECLS
|
||||
static __inline int
|
||||
caph_limit_stream(int fd, int flags)
|
||||
{
|
||||
#ifndef __rtems__
|
||||
cap_rights_t rights;
|
||||
unsigned long cmds[] = { TIOCGETA, TIOCGWINSZ, FIODTYPE };
|
||||
|
||||
@@ -75,6 +76,7 @@ caph_limit_stream(int fd, int flags)
|
||||
|
||||
if (cap_fcntls_limit(fd, CAP_FCNTL_GETFL) < 0 && errno != ENOSYS)
|
||||
return (-1);
|
||||
#endif /* __rtems__ */
|
||||
|
||||
return (0);
|
||||
}
|
||||
@@ -123,7 +125,9 @@ static __inline void
|
||||
caph_cache_catpages(void)
|
||||
{
|
||||
|
||||
#ifndef __rtems__
|
||||
(void)catopen("libc", NL_CAT_LOCALE);
|
||||
#endif /* __rtems__ */
|
||||
}
|
||||
|
||||
static __inline int
|
||||
|
Reference in New Issue
Block a user