mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 12:08:44 +08:00
Update to FreeBSD head 2018-02-01
Git mirror commit d079ae0442af8fa3cfd6d7ede190d04e64a2c0d4. Update #3472.
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
/*-
|
||||
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
|
||||
*
|
||||
* Copyright (c) 2012-2013 The FreeBSD Foundation
|
||||
* Copyright (c) 2015-2017 Mariusz Zaborski <oshogbo@FreeBSD.org>
|
||||
* All rights reserved.
|
||||
@@ -122,7 +124,15 @@ cap_wrap(int sock)
|
||||
#ifdef WITH_CASPER
|
||||
int cap_unwrap(cap_channel_t *chan);
|
||||
#else
|
||||
#define cap_unwrap(chan) (chan->cch_fd)
|
||||
static inline int
|
||||
cap_unwrap(cap_channel_t *chan)
|
||||
{
|
||||
int fd;
|
||||
|
||||
fd = chan->cch_fd;
|
||||
free(chan);
|
||||
return (fd);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ -222,7 +232,7 @@ int cap_send_nvlist(const cap_channel_t *chan, const nvlist_t *nvl);
|
||||
#ifdef WITH_CASPER
|
||||
nvlist_t *cap_recv_nvlist(const cap_channel_t *chan, int flags);
|
||||
#else
|
||||
#define cap_recv_nvlist(chan, flags) (0)
|
||||
#define cap_recv_nvlist(chan, flags) (nvlist_create(flags))
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user