Home
last modified time | relevance | path

Searched +full:signal +full:- +full:guard (Results 1 – 25 of 148) sorted by relevance

123456

/freebsd/tests/sys/vm/stack/
H A Dstack_mprotect_exec_test.c1 /*-
4 * SPDX-License-Identifier: BSD-2-Clause
14 #include <atf-c.h>
15 #include <signal.h>
29 char *addr, *guard; in ATF_TC_BODY() local
32 signal(SIGSEGV, sigsegv_handler); in ATF_TC_BODY()
39 MAP_STACK | MAP_PRIVATE | MAP_ANON, -1, 0); in ATF_TC_BODY()
45 guard = addr + alloc_size - SGROWSIZ; in ATF_TC_BODY()
46 ATF_REQUIRE(mprotect(guard, pagesize, PROT_NONE) == 0); in ATF_TC_BODY()
48 ((volatile char *)guard)[-1]; in ATF_TC_BODY()
/freebsd/contrib/llvm-project/lldb/source/Target/
H A DTargetList.cpp1 //===-- TargetList.cpp ----------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
51 std::lock_guard<std::recursive_mutex> guard(m_target_list_mutex); in CreateTarget() local
66 std::lock_guard<std::recursive_mutex> guard(m_target_list_mutex); in CreateTarget() local
100 if (platform_options && platform_options->PlatformWasSpecified() && in CreateTargetInternal()
101 !platform_options->PlatformMatches(platform_sp)) { in CreateTargetInternal()
103 platform_sp = platform_options->CreatePlatformWithOptions( in CreateTargetInternal()
125 // Try to resolve the exe based on PATH and/or platform-specific suffixes, in CreateTargetInternal()
127 if (platform_sp->IsHost() && in CreateTargetInternal()
[all …]
H A DThreadList.cpp1 //===-- ThreadList.cpp ----------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
44 std::lock_guard<std::recursive_mutex> guard(GetMutex()); in operator =() local
83 std::lock_guard<std::recursive_mutex> guard(GetMutex()); in GetSize() local
91 std::lock_guard<std::recursive_mutex> guard(GetMutex()); in GetThreadAtIndex() local
103 std::lock_guard<std::recursive_mutex> guard(GetMutex()); in FindThreadByID() local
112 if (m_threads[idx]->GetID() == tid) { in FindThreadByID()
121 std::lock_guard<std::recursive_mutex> guard(GetMutex()); in FindThreadByProtocolID() local
130 if (m_threads[idx]->GetProtocolID() == tid) { in FindThreadByProtocolID()
[all …]
H A DProcess.cpp1 //===-- Process.cpp -------------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
83 // setting target.process.disable-memory-cache
104 Process *process = exe_ctx->GetProcessPtr(); in GetPropertyAtIndex()
108 process->GetValueProperties().get()); in GetPropertyAtIndex()
110 return instance_properties->ProtectedGetPropertyAtIndex(idx); in GetPropertyAtIndex()
185 m_collection_sp->Initialize(g_process_experimental_properties); in ProcessExperimentalProperties()
195 m_collection_sp->Initialize(g_process_properties); in ProcessProperties()
196 m_collection_sp->AppendProperty( in ProcessProperties()
[all …]
/freebsd/lib/libsys/
H A Dmmap.255 Any such extension beyond the end of the mapped object will be zero-filled.
72 signal is delivered to the process.
85 is non-zero, it is used as a hint to the system.
102 .Bl -tag -width PROT_WRITE -compact
139 .Bl -tag -width MAP_PREFAULT_READ
172 must be \-1.
177 .\"Mapped from a regular file or character-special device memory.
215 Instead of a mapping, create a guard of the specified size.
220 will not create mappings in the address range of a guard unless
228 signal to that thread.
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_recursion_guard.h1 //===-- xray_recursion_guard.h ---------------------------------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
19 /// The RecursionGuard is useful for guarding against signal handlers which are
20 /// also potentially calling XRay-instrumented functions. To use the
23 /// thread_local atomic_uint8_t Guard{0};
27 /// RecursionGuard G(Guard);
29 /// return; // Failed to acquire the guard.
H A Dxray_fdr_logging.cpp1 //===-- xray_fdr_logging.cpp -----------------------------------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
15 //===----------------------------------------------------------------------===//
50 // Group together thread-local-data in a struct, then hide it behind a function
52 // force the alignment to 64-bytes for x86 cache line alignment, as this
72 // Use a global pthread key to identify thread-local data for logging.
88 // This function will initialize the thread-local data structure used by the FDR
94 // - XRay handlers should not call any memory allocation routines that may
98 // - We would like to use some thread-local data initialized on first-use of
[all …]
/freebsd/contrib/llvm-project/lldb/source/Core/
H A DThreadedCommunication.cpp1 //===-- ThreadedCommunication.cpp -----------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
93 if (timeout && timeout->count() == 0) { in Read()
95 error_ptr->SetErrorString("Timed out."); in Read()
102 error_ptr->SetErrorString("Invalid connection."); in Read()
110 listener_sp->StartListeningForEvents( in Read()
113 // Re-check for data, as it might have arrived while we were setting up our in Read()
127 if (!listener_sp->GetEvent(event_sp, timeout)) { in Read()
129 error_ptr->SetErrorString("Timed out."); in Read()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/safestack/
H A Dsafestack.cpp1 //===-- safestack.cpp -----------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
14 //===----------------------------------------------------------------------===//
55 // protector pass to store the stack guard (see getStackCookieLocation()
59 // For now, store it in a thread-local variable.
68 // relying on the system-enforced ASLR. The protection of the (safe) stack can
71 // 1) Protection via hardware segmentation on x86-32 and some x86-64
87 // stack pointer in several ways (e.g. in longjmp, signal handling, user-level
89 // in other low-level libraries, by either eliminating the escaping/dumping of
[all …]
/freebsd/tools/build/cross-build/include/linux/sys/
H A Dwait.h1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
31 * glibc's sys/wait.h and stdlib.h both define various wait-related constants,
33 * Since they each probe the other's include guard to determine that, there is
34 * a window between a header defining its include guard and checking for the
39 * glibc 2.34, signal.h, included by sys/wait, includes a new bits/sigstksz,
/freebsd/contrib/llvm-project/lldb/source/API/
H A DSBProcess.cpp1 //===-- SBProcess.cpp -----------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
14 #include "lldb/lldb-defines.h"
15 #include "lldb/lldb-types.h"
91 return ConstString(process_sp->GetPluginName()).GetCString(); in GetPluginName()
101 return ConstString(process_sp->GetPluginName()).GetCString(); in GetShortPluginName()
118 return this->operator bool(); in IsValid()
124 return ((bool)process_sp && process_sp->IsValid()); in operator bool()
138 std::lock_guard<std::recursive_mutex> guard( in RemoteLaunch() local
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/gwp_asan/
H A Dguarded_pool_allocator.cpp1 //===-- guarded_pool_allocator.cpp ------------------------------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
24 // Instantiated during initialisation, this allows the signal handler
27 // init-order-fiasco.
31 return (Size + Boundary - 1) & ~(Boundary - 1); in roundUpTo()
35 return Ptr & ~(PageSize - 1); in getPageAddr()
38 bool isPowerOfTwo(uintptr_t X) { return (X & (X - 1)) == 0; } in isPowerOfTwo()
41 // Gets the singleton implementation of this class. Thread-compatible until
42 // init() is called, thread-safe afterwards.
[all …]
H A Dguarded_pool_allocator.h1 //===-- guarded_pool_allocator.h --------
[all...]
/freebsd/sys/dev/qlnx/qlnxe/
H A Drdma_common.h2 * Copyright (c) 2017-2018 Cavium, Inc.
47 #define RDMA_MAX_TIDS (128*1024-1)
271 #define RDMA_RQ_SGE_NUM_SGES_MASK 0x7 /* first SGE - number of SGEs in this RQ WQE. Other SGEs -
470 #define RDMA_SQ_COMMON_WQE_SE_FLG_MASK 0x1 /* If set, signal the responder to generate a so…
539 …QE_DIF_VALIDATE_CRC_GUARD_MASK 0x1 /* In TX IO, indicates CRC of each DIF guard tag is checked. */
541 …IF_VALIDATE_REF_TAG_MASK 0x1 /* In TX IO, indicates Ref tag of each DIF guard tag is checked. */
543 …IF_VALIDATE_APP_TAG_MASK 0x1 /* In TX IO, indicates App tag of each DIF guard tag is checked. */
630 …RD_DIF_VALIDATE_CRC_GUARD_MASK 0x1 /* In TX IO, indicates CRC of each DIF guard tag is checked. */
632 …IF_VALIDATE_REF_TAG_MASK 0x1 /* In TX IO, indicates Ref tag of each DIF guard tag is checked. */
634 …IF_VALIDATE_APP_TAG_MASK 0x1 /* In TX IO, indicates App tag of each DIF guard tag is checked. */
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/
H A DGDBRemoteCommunicationServerPlatform.cpp1 //===-- GDBRemoteCommunicationServerPlatform.cpp --------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
80 pos->second = pid; in AssociatePortWithProcess()
89 pos->second = LLDB_INVALID_PROCESS_ID; in FreePort()
202 std::string platform_uri = GetConnection()->GetURI(); in LaunchGDBServer()
204 url << '[' << parsed_uri->hostname.str() << "]:" << *port; in LaunchGDBServer()
212 url.str().c_str(), nullptr, debugserver_launch_info, port_ptr, &args, -1); in LaunchGDBServer()
216 std::lock_guard<std::recursive_mutex> guard(m_spawned_pids_mutex); in LaunchGDBServer() local
322 std::lock_guard<std::recursive_mutex> guard(m_spawned_pids_mutex); in Handle_qKillSpawnedProcess() local
[all …]
/freebsd/usr.bin/tip/libacu/
H A Dbiz31.c4 /*-
5 * SPDX-License-Identifier: BSD-3-Clause
69 echo("#\rk$\r$\n"); /* disable auto-answer */ in biz_dialer()
120 write(FD, DISCONNECT_CMD, sizeof(DISCONNECT_CMD)-1); in biz31_disconnect()
168 f = signal(SIGALRM, sigALRM); in detect()
182 signal(SIGALRM, f); in detect()
192 f = signal(SIGALRM, sigALRM); in flush()
200 signal(SIGALRM, f); in flush()
201 timeout = 0; /* guard against disconnection */ in flush()
/freebsd/contrib/llvm-project/lldb/include/lldb/Core/
H A DIOHandler.h1 //===-- IOHandler.h --------
[all...]
/freebsd/sys/powerpc/fpu/
H A Dfpu_implode.c3 /*-
4 * SPDX-License-Identifier: BSD-3-Clause
10 * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
68 * After rounding, we discard the guard and round bits by shifting right
69 * 2 bits (a la fpu_shr(), but we do not bother with fp->fp_sticky).
72 * Note that we may leave the value 2.0 in fp->fp_mant; it is the caller's
82 m0 = fp->fp_mant[0]; in round()
83 m1 = fp->fp_mant[1]; in round()
84 m2 = fp->fp_mant[2]; in round()
85 m3 = fp->fp_mant[3]; in round()
[all …]
/freebsd/usr.bin/procstat/
H A Dprocstat.11 .\"-
2 .\" Copyright (c) 2007-2009 Robert N. M. Watson
34 .Op Fl -libxo
42 .Op Fl -libxo
50 .Op Fl -libxo
73 .Op Fl -libxo
96 .Op Fl -libxo
104 .Op Fl -libxo
107 .Op Fl -libxo
110 .Op Fl -libxo
[all …]
/freebsd/share/man/man9/
H A Dieee80211_radiotap.960 layer used by 802.11 drivers includes support for a device-independent
68 Radiotap was designed to balance the desire for a hardware-independent,
93 With radiotap setup, drivers just need to fill in per-packet
105 .Bd -literal -offset indent
115 .Bd -literal -offset indent
129 .Bl -tag -width indent
131 This field contains the unsigned 64-bit value, in microseconds,
138 This field contains a single unsigned 8-bit value, containing one or
140 .Bl -tag -width indent
153 data payload to align the payload to a 32-bit boundary.
[all …]
/freebsd/contrib/bc/gen/
H A Dstrgen.c4 * SPDX-License-Identifier: BSD-2-Clause
6 * Copyright (c) 2018-2025 Gavin D. Howard and contributors.
56 // This pulls in cross-platform stuff.
59 // clang-format off
71 "// Copyright (c) 2018-2025 Gavin D. Howard and contributors.\n"
72 "// Licensed under the 2-clause BSD license.\n"
74 // clang-format on
132 fd = -1; in bc_read_open()
177 if (BC_ERR(fstat(fd, &pstat) == -1)) in bc_read_file()
203 // Read the file. We just bail if a signal interrupts. This is so that in bc_read_file()
[all …]
/freebsd/usr.bin/rpcgen/
H A Drpc_main.c71 static const char CPPFLAGS[] = "-C";
74 "rpcgen", "-s", "udp", "-s", "tcp",
78 "rpcgen", "-s", "netpath",
95 int inetdflag = 0; /* Support for inetd is disabled by default, use -I */
97 int tirpc_socket = 1; /* TI-RPC on socket, no TLI library */
143 c_output(cmd.infile, "-DRPC_XDR", DONT_EXTEND, cmd.outfile); in main()
145 h_output(cmd.infile, "-DRPC_HDR", DONT_EXTEND, cmd.outfile, in main()
148 l_output(cmd.infile, "-DRPC_CLNT", DONT_EXTEND, cmd.outfile); in main()
150 s_output(argc, argv, cmd.infile, "-DRPC_SVC", DONT_EXTEND, in main()
153 t_output(cmd.infile, "-DRPC_TBL", DONT_EXTEND, cmd.outfile); in main()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Host/common/
H A DNativeProcessProtocol.cpp1 //===-- NativeProcessProtocol.cpp -----------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
18 #include "lldb/lldb-enumerations.h"
40 return Signal(SIGSTOP); in Interrupt()
101 std::lock_guard<std::recursive_mutex> guard(m_threads_mutex); in GetThreadAtIndex() local
110 if (thread->GetID() == tid) in GetThreadByIDUnlocked()
117 std::lock_guard<std::recursive_mutex> guard(m_threads_mutex); in GetThreadByID() local
137 const_cast<NativeProcessProtocol *>(this)->GetThreadAtIndex(0)); in GetHardwareDebugSupportInfo()
143 NativeRegisterContext &reg_ctx = thread->GetRegisterContext(); in GetHardwareDebugSupportInfo()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dtestmode.h1 /* SPDX-License-Identifier: ISC */
13 * enum mt76_testmode_attr - testmode attributes inside NL80211_ATTR_TESTDATA
30 * @MT76_TM_ATTR_TX_RATE_SGI: packet tx use short guard interval (u8)
37 * @MT76_TM_ATTR_TX_POWER: per-antenna tx power array (nested, u8 attrs)
46 * @MT76_TM_ATTR_TX_IPG: tx inter-packet gap, in unit of us (u32)
92 MT76_TM_ATTR_MAX = NUM_MT76_TM_ATTRS - 1,
96 * enum mt76_testmode_state - statistics attributes
121 MT76_TM_STATS_ATTR_MAX = NUM_MT76_TM_STATS_ATTRS - 1,
126 * enum mt76_testmode_rx_attr - packet rx information
132 * @MT76_TM_RX_ATTR_SNR: signal-to-noise ratio (u8)
[all …]
/freebsd/contrib/sendmail/libsm/
H A Dassert.c2 * Copyright (c) 2000-2001 Proofpoint, Inc. and its suppliers.
12 SM_RCSID("@(#)$Id: assert.c,v 1.27 2013-11-22 20:51:42 ca Exp $")
19 #include <signal.h>
29 ** Debug categories that are used to guard expensive assertion checks.
33 "@(#)$Debug: sm_check_assert - check assertions $");
36 "@(#)$Debug: sm_check_require - check function preconditions $");
39 "@(#)$Debug: sm_check_ensure - check function postconditions $");
47 "@(#)$Debug: sm_abort_stop - stop process on fatal error $");
50 ** SM_ABORT_DEFAULTHANDLER -- Default procedure for abnormal program
57 ** filename -- filename (can be NULL).
[all …]

123456