/freebsd/contrib/sendmail/libsm/ |
H A D | debug.c | 11 SM_RCSID("@(#)$Id: debug.c,v 1.33 2013-11-22 20:51:42 ca Exp $") 53 ** SM_DEBUG_FILE -- Returns current debug file pointer. 69 ** SM_DEBUG_SETFILE -- Sets debug file pointer. 72 ** fp -- new debug file pointer. 78 ** Sets SmDebugOutput. 89 ** SM_DEBUG_CLOSE -- Close debug file pointer. 112 ** SM_DPRINTF -- printf() for debug output. 115 ** fmt -- format for printf() 123 "@(#)$Debug: sm_trace_pid_time - print pid and time in debug $"); 146 struct timeval tv, tvd; local [all …]
|
/freebsd/contrib/ntp/sntp/libevent/include/event2/ |
H A D | event_compat.h | 2 * Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu> 3 * Copyright (c) 2007-2012 Niels Provos and Nick Mathewson 32 Potentially non-threadsafe versions of the functions in event.h: provided 35 In the oldest versions of Libevent, event_base was not a first-class 39 "current" event base. This could lead to thread-safety issues, and obscure, 40 hard-to-diagnose bugs. 50 #include <event2/event-config.h> 65 used. Sets the global current base that gets used for events that have no 138 Schedule a one-time event to occur. 186 #define evtimer_set(ev, cb, arg) event_set((ev), -1, 0, (cb), (arg)) [all …]
|
H A D | http.h | 2 * Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu> 3 * Copyright (c) 2007-2012 Niels Provos and Nick Mathewson 97 * @return 0 on success, -1 on failure. 123 * permissions to bind to a low-numbered port. 130 * @return 0 on success, -1 on failure. 150 * The most low-level evhttp_bind/accept method: takes an evconnlistener, and 226 Set the value to use for the Content-Type header when none was provided. If 227 the content type string is NULL, the Content-Type header will not be 231 @param content_type the value for the Content-Type header 238 Sets the what HTTP methods are supported in requests accepted by this [all …]
|
H A D | event.h | 2 * Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu> 3 * Copyright (c) 2007-2012 Niels Provos and Nick Mathewson 58 header, and pass the -levent flag to the linker. (You can instead link 59 -levent_core if you only want the main event and buffered IO-based code, 66 multithreaded application, you need to initialize thread support -- 96 You can also use event_base_loop() for more fine-grained control. 139 @section evhttp Event-driven HTTP servers 141 Libevent provides a very simple event-driven HTTP server that can be 173 An embedded libevent-based HTTP server 191 #include <event2/event-config.h> [all …]
|
/freebsd/contrib/libevent/include/event2/ |
H A D | event_compat.h | 2 * Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu> 3 * Copyright (c) 2007-2012 Niels Provos and Nick Mathewson 32 Potentially non-threadsafe versions of the functions in event.h: provided 35 In the oldest versions of Libevent, event_base was not a first-class 39 "current" event base. This could lead to thread-safety issues, and obscure, 40 hard-to-diagnose bugs. 50 #include <event2/event-config.h> 65 used. Sets the global current base that gets used for events that have no 138 Schedule a one-time event to occur. 186 #define evtimer_set(ev, cb, arg) event_set((ev), -1, 0, (cb), (arg)) [all …]
|
H A D | http.h | 2 * Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu> 3 * Copyright (c) 2007-2012 Niels Provos and Nick Mathewson 97 * @return 0 on success, -1 on failure. 123 * permissions to bind to a low-numbered port. 130 * @return 0 on success, -1 on failure. 150 * The most low-level evhttp_bind/accept method: takes an evconnlistener, and 226 Set the value to use for the Content-Type header when none was provided. If 227 the content type string is NULL, the Content-Type header will not be 231 @param content_type the value for the Content-Type header 238 Sets the what HTTP methods are supported in requests accepted by this [all …]
|
H A D | event.h | 2 * Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu> 3 * Copyright (c) 2007-2012 Niels Provos and Nick Mathewson 58 header, and pass the -levent flag to the linker. (You can instead link 59 -levent_core if you only want the main event and buffered IO-based code, 66 multithreaded application, you need to initialize thread support -- 96 You can also use event_base_loop() for more fine-grained control. 139 @section evhttp Event-driven HTTP servers 141 Libevent provides a very simple event-driven HTTP server that can be 173 An embedded libevent-based HTTP server 191 #include <event2/event-config.h> [all …]
|
/freebsd/lib/libusb/ |
H A D | libusb.3 | 33 .Pq libusb, -lusb 52 argument is non-NULL, a pointer to the libusb context is stored at 62 argument is non-NULL, a pointer to the libusb context is stored at 79 This function will return non-zero if the given 85 .Bl -tag -width LIBUSB_CAP -offset indent 245 This is a non-blocking function. 279 LIBUSB_ERROR_NOT_FOUND if re-enumeration is required or if the device has 312 This function is non-portabl [all...] |
/freebsd/contrib/pf/libevent/ |
H A D | evbuffer.c | 2 * Copyright (c) 2002-2004 Niels Provos <provos@citi.umich.edu> 56 struct timeval tv, *ptv = NULL; in bufferevent_add() local 59 timerclear(&tv); in bufferevent_add() 60 tv.tv_sec = timeout; in bufferevent_add() 61 ptv = &tv; in bufferevent_add() 80 if (bufev->wm_read.high == 0 || now < bufev->wm_read.high) { in bufferevent_read_pressure_cb() 83 if (bufev->enabled & EV_READ) in bufferevent_read_pressure_cb() 84 bufferevent_add(&bufev->ev_read, bufev->timeout_read); in bufferevent_read_pressure_cb() 95 int howmuch = -1; in bufferevent_readcb() 106 if (bufev->wm_read.high != 0) in bufferevent_readcb() [all …]
|
H A D | event.c | 2 * Copyright (c) 2000-2004 Niels Provos <provos@citi.umich.edu> 56 #include "event-internal.h" 118 /* Handle signals - This is a deprecated interface */ 136 if (timercmp(&a->ev_timeout, &b->ev_timeout, <)) in compare() 137 return (-1); in compare() 138 else if (timercmp(&a->ev_timeout, &b->ev_timeout, >)) in compare() 141 return (-1); in compare() 154 if (clock_gettime(CLOCK_MONOTONIC, &ts) == -1) in gettime() 156 if (clock_gettime(CLOCK_REALTIME, &ts) == -1) in gettime() 158 return (-1); in gettime() [all …]
|
/freebsd/usr.sbin/prometheus_sysctl_exporter/ |
H A D | prometheus_sysctl_exporter.c | 1 /*- 2 * Copyright (c) 2016-2017 Nuxi, https://nuxi.nl/ 62 o->id[0] = CTL_KERN; in oid_get_root() 63 o->len = 1; in oid_get_root() 71 o->len = nitems(o->id); in oid_get_by_name() 72 return (sysctlnametomib(name, o->id, &o->len) == 0); in oid_get_by_name() 80 return (oa->len >= ob->len && in oid_is_beneath() 81 memcmp(oa->id, ob->id, ob->len * sizeof(oa->id[0])) == 0); in oid_is_beneath() 93 memcpy(lookup + 2, cur->id, cur->len * sizeof(lookup[0])); in oid_get_next() 94 nextsize = sizeof(next->id); in oid_get_next() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/display/samsung/ |
H A D | samsung,exynos-hdmi.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/display/samsung/samsung,exynos-hdmi.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Inki Dae <inki.dae@samsung.com> 11 - Seung-Woo Kim <sw0312.kim@samsung.com> 12 - Kyungmin Park <kyungmin.park@samsung.com> 13 - Krzysztof Kozlowski <krzk@kernel.org> 18 - samsung,exynos4210-hdmi 19 - samsung,exynos4212-hdmi [all …]
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | evthread-internal.h | 2 * Copyright (c) 2008-2012 Niels Provos, Nick Mathewson 33 #include "event2/event-config.h" 34 #include "evconfig-private.h" 37 #include "util-internal.h" 43 * have shared global structures. Thus, we only do the direct-call-to-function 50 /* Global function pointers to lock-related functions. NULL if locking isn't 68 (base)->th_owner_id == evthread_id_fn_()) 75 (base)->running_loop && \ 76 (base)->th_owner_id != evthread_id_fn_()) 78 /** Allocate a new lock, and store it in lockvar, a void*. Sets lockvar to [all …]
|
/freebsd/contrib/libevent/ |
H A D | evthread-internal.h | 2 * Copyright (c) 2008-2012 Niels Provos, Nick Mathewson 33 #include "event2/event-config.h" 34 #include "evconfig-private.h" 37 #include "util-internal.h" 43 * have shared global structures. Thus, we only do the direct-call-to-function 50 /* Global function pointers to lock-related functions. NULL if locking isn't 68 (base)->th_owner_id == evthread_id_fn_()) 75 (base)->running_loop && \ 76 (base)->th_owner_id != evthread_id_fn_()) 78 /** Allocate a new lock, and store it in lockvar, a void*. Sets lockvar to [all …]
|
/freebsd/usr.sbin/bluetooth/bthidd/ |
H A D | server.c | 5 /*- 6 * SPDX-License-Identifier: BSD-2-Clause 71 srv->ctrl = srv->intr = -1; in server_init() 72 FD_ZERO(&srv->rfdset); in server_init() 73 FD_ZERO(&srv->wfdset); in server_init() 74 LIST_INIT(&srv->sessions); in server_init() 77 srv->cons = open("/dev/consolectl", O_RDWR); in server_init() 78 if (srv->cons < 0) { in server_init() 81 return (-1); in server_init() 85 srv->ctrl = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BLUETOOTH_PROTO_L2CAP); in server_init() [all …]
|
/freebsd/sys/netinet/ |
H A D | tcp_hpts.c | 1 /*- 2 * Copyright (c) 2016-2018 Netflix, Inc. 93 * knows how to take the input queue of packets from tp->t_inqueue 163 * This gives a range of 10usec - 1024ms to place 166 * when seeing the remainder will re-insert the 174 #define HPTS_MTX_ASSERT(hpts) mtx_assert(&(hpts)->p_mtx, MA_OWNED) 175 #define HPTS_LOCK(hpts) mtx_lock(&(hpts)->p_mtx) 176 #define HPTS_TRYLOCK(hpts) mtx_trylock(&(hpts)->p_mtx) 177 #define HPTS_UNLOCK(hpts) mtx_unlock(&(hpts)->p_mtx) 208 uint32_t overidden_sleep; /* what was overrided by min-sleep for logging */ [all …]
|
/freebsd/contrib/unbound/util/ |
H A D | winsock_event.c | 2 * util/winsock_event.c - implementation of the unbound winsock event handler. 55 if(e->ev_timeout.tv_sec < f->ev_timeout.tv_sec) in mini_ev_cmp() 56 return -1; in mini_ev_cmp() 57 if(e->ev_timeout.tv_sec > f->ev_timeout.tv_sec) in mini_ev_cmp() 59 if(e->ev_timeout.tv_usec < f->ev_timeout.tv_usec) in mini_ev_cmp() 60 return -1; in mini_ev_cmp() 61 if(e->ev_timeout.tv_usec > f->ev_timeout.tv_usec) in mini_ev_cmp() 64 return -1; in mini_ev_cmp() 74 if(gettimeofday(base->time_tv, NULL) < 0) { in settime() 75 return -1; in settime() [all …]
|
/freebsd/stand/kboot/kboot/ |
H A D | main.c | 1 /*- 2 * Copyright (C) 2010-2014 Nathan Whitehorn 52 #define PA_INVAL (vm_offset_t)-1 76 if (fd != -1) { in memory_limits() 134 * When run as init, sometimes argv[0] is a EFI-ESP path, other times in parse_args() 136 * string, so we exclude it here. For the other args, look for DOS-like in parse_args() 137 * and Unix-like absolte paths and exclude parsing it if we find that, in parse_args() 138 * otherwise parse it as a command arg (so looking for '-X', 'foo' or in parse_args() 141 * linux-booting via EFI that we have the EFI path we used to run in parse_args() 223 if (m->pa == pa2) { in ptov() [all …]
|
/freebsd/contrib/ldns/ |
H A D | acx_nlnetlabs.m4 | 1 # acx_nlnetlabs.m4 - common macros for configure checks 6 # 2021-07-30 fix for openssl use of lib64 directory. 7 # 2021-06-14 fix nonblocking test to use host instead of target for mingw test. 8 # 2021-05-17 fix nonblocking socket test from grep on mingw32 to mingw for 10 # 2021-03-24 fix ACX_FUNC_DEPRECATED to use CPPFLAGS and CFLAGS. 11 # 2021-01-05 fix defun for aclocal 12 # 2021-01-05 autoconf 2.70 autoupdate and fixes, no AC_TRY_COMPILE 13 # 2020-08-24 Use EVP_sha256 instead of HMAC_Update (for openssl-3.0.0). 14 # 2016-03-21 Check -ldl -pthread for libcrypto for ldns and openssl 1.1.0. 15 # 2016-03-21 Use HMAC_Update instead of HMAC_CTX_Init (for openssl-1.1.0). [all …]
|
/freebsd/sys/compat/linux/ |
H A D | linux_misc.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 5 * Copyright (c) 1994-1995 Søren Schmidt 109 char _f[20-2*sizeof(l_long)-sizeof(l_int)]; /* padding */ 158 * sharedram counts pages allocated to named, swap-backed objects such in linux_sysinfo() 168 sysinfo.freeswap = (i - j) * PAGE_SIZE; in linux_sysinfo() 181 return (copyout(&sysinfo, args->info, sizeof(sysinfo))); in linux_sysinfo() 192 secs = args->secs; in linux_alarm() 197 * XXX. Linux limit secs to INT_MAX on 32 and does not limit on 64-bit in linux_alarm() 212 td->td_retval[0] = old_it.it_value.tv_sec; in linux_alarm() [all …]
|
/freebsd/contrib/unbound/ |
H A D | acx_nlnetlabs.m4 | 1 # acx_nlnetlabs.m4 - common macros for configure checks 6 # 2024-01-16 fix to add -l:libssp.a to -lcrypto link check. 8 # 2024-01-15 fix to add crypt32 to -lcrypto link check when checking for gdi32. 9 # 2023-05-04 fix to remove unused whitespace. 10 # 2023-01-26 fix -Wstrict-prototypes. 11 # 2022-09-01 fix checking if nonblocking sockets work on OpenBSD. 12 # 2021-08-17 fix sed script in ssldir split handling. 13 # 2021-08-17 fix for openssl to detect split version, with ssldir_include 15 # 2021-07-30 fix for openssl use of lib64 directory. 16 # 2021-06-14 fix nonblocking test to use host instead of target for mingw test. [all …]
|
/freebsd/bin/pax/ |
H A D | file_subs.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 65 * file descriptor or -1 for failure 71 int fd = -1; in file_creat() 86 file_mode = arcn->sb.st_mode & FILEBITS; in file_creat() 87 if ((fd = open(arcn->name, O_WRONLY | O_CREAT | O_TRUNC | O_EXCL, in file_creat() 96 if (unlnk_exist(arcn->name, arcn->type) != 0) in file_creat() 97 return(-1); in file_creat() 105 if ((fd = open(arcn->name, O_WRONLY | O_CREAT | O_TRUNC, in file_creat() 109 if (nodirs || chk_path(arcn->name,arcn->sb.st_uid,arcn->sb.st_gid) < 0) { in file_creat() [all …]
|
/freebsd/sys/dev/ocs_fc/ |
H A D | ocs_os.h | 1 /*- 81 /* OCS_OS_MAX_ISR_TIME_MSEC - maximum time driver code should spend in an interrupt 112 #define B32_NEXT_POWER_OF_2(x) (B32((x)-1) + 1) 115 * likely/unlikely - branch prediction hint 138 * - OCS_INCLUDE_DEBUG include low-level SLI debug support 170 * @brief return the lower 32-bits of a bus address 173 * @return lower 32-bits of a bus address 188 * @brief return the upper 32-bits of a bus address 191 * @return upper 32-bits of a bus address 221 return 31 - __builtin_clz(val); in ocs_lg2() [all …]
|
H A D | ocs_os.c | 1 /*- 51 return pci_read_config(os->dev, reg, 4); in ocs_config_read32() 57 return pci_read_config(os->dev, reg, 2); in ocs_config_read16() 63 return pci_read_config(os->dev, reg, 1); in ocs_config_read8() 69 return pci_write_config(os->dev, reg, val, 1); in ocs_config_write8() 75 return pci_write_config(os->dev, reg, val, 2); in ocs_config_write16() 81 return pci_write_config(os->dev, reg, val, 4); in ocs_config_write32() 89 * PCI BARs which form a logical address. For example, a 64-bit address uses 103 reg = &ocs->reg[rset]; in ocs_reg_read32() 105 return bus_space_read_4(reg->btag, reg->bhandle, off); in ocs_reg_read32() [all …]
|
/freebsd/sbin/devd/ |
H A D | devd.cc | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause AND BSD-2-Clause 4 * Copyright (c) 2002-2010 M. Warner Losh <imp@FreeBSD.org> 63 // - devd needs to document the unix domain socket 64 // - devd.conf needs more details on the supported statements. 122 * The kernel sets it to the minimum of a hard-coded maximum value and sbcc * 143 static const char detach = '-'; 175 event_proc::event_proc() : _prio(-1) in event_proc() 197 if (!(*i)->do_match(c)) in matches() 208 if (!(*i)->do_action(c)) in run() [all …]
|