| /openbsd-src/gnu/llvm/llvm/lib/Support/ |
| H A D | DynamicLibrary.cpp | 32 static void DLClose(void *Handle); 33 static void *DLSym(void *Handle, const char *Symbol); 38 HandleList::iterator Find(void *Handle) { return find(Handles, Handle); } in Find() argument 40 bool Contains(void *Handle) { in Contains() argument 41 return Handle == Process || Find(Handle) != Handles.end(); in Contains() 44 bool AddLibrary(void *Handle, bool IsProcess = false, bool CanClose = true, in AddLibrary() argument 47 assert((Handle == this ? IsProcess : !IsProcess) && "Bad Handle."); in AddLibrary() 53 if (!AllowDuplicates && Find(Handle) != Handles.end()) { in AddLibrary() 55 DLClose(Handle); in AddLibrary() 58 Handles.push_back(Handle); in AddLibrary() [all …]
|
| /openbsd-src/gnu/llvm/llvm/utils/KillTheDoctor/ |
| H A D | KillTheDoctor.cpp | 81 handle_type Handle; member in __anon8e01e2600111::ScopedHandle 85 : Handle(HandleType::GetInvalidHandle()) {} in ScopedHandle() 88 : Handle(handle) {} in ScopedHandle() 91 HandleType::Destruct(Handle); in ~ScopedHandle() 96 if (!HandleType::isValid(Handle)) in operator =() 97 HandleType::Destruct(Handle); in operator =() 98 Handle = handle; in operator =() 103 return HandleType::isValid(Handle); in operator bool() 107 return Handle; in operator handle_type() 119 static void Destruct(handle_type Handle) { in Destruct() [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Support/Windows/ |
| H A D | WindowsSupport.h | 83 handle_type Handle; variable 89 : Handle(HandleTraits::GetInvalid()) {} in ScopedHandle() 92 : Handle(h) {} in ScopedHandle() 95 if (HandleTraits::IsValid(Handle)) in ~ScopedHandle() 96 HandleTraits::Close(Handle); in ~ScopedHandle() 100 handle_type t = Handle; in take() 101 Handle = HandleTraits::GetInvalid(); in take() 106 if (HandleTraits::IsValid(Handle)) 107 HandleTraits::Close(Handle); 108 Handle = h; [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_addrhashmap.h | 72 class Handle { 74 Handle(AddrHashMap<T, kSize> *map, uptr addr); 75 Handle(AddrHashMap<T, kSize> *map, uptr addr, bool remove); 76 Handle(AddrHashMap<T, kSize> *map, uptr addr, bool remove, bool create); 78 ~Handle(); 104 friend class Handle; 107 void acquire(Handle *h); 108 void release(Handle *h); 140 AddrHashMap<T, kSize>::Handle::Handle(AddrHashMap<T, kSize> *map, uptr addr) { in Handle() function 149 AddrHashMap<T, kSize>::Handle::Handle(AddrHashMap<T, kSize> *map, uptr addr, in Handle() function [all …]
|
| H A D | sanitizer_chained_origin_depot.cpp | 44 struct Handle { struct 47 Handle(const ChainedOriginDepotNode *node, u32 id) : node_(node), id_(id) {} in Handle() argument 54 static Handle get_handle(u32 id); 56 typedef Handle handle_type; 119 ChainedOriginDepotNode::Handle ChainedOriginDepotNode::get_handle(u32 id) { in get_handle() 120 return Handle(&depot.nodes[id], id); in get_handle()
|
| /openbsd-src/gnu/usr.bin/perl/cpan/HTTP-Tiny/t/ |
| H A D | 030_response.t | 17 sub HTTP::Tiny::Handle::can_read { 1 }; 18 sub HTTP::Tiny::Handle::can_write { 1 }; 24 my $handle = HTTP::Tiny::Handle->new(fh => $fh); 32 my $handle = HTTP::Tiny::Handle->new(fh => $fh); 41 my $handle = HTTP::Tiny::Handle->new(fh => $fh); 50 my $handle = HTTP::Tiny::Handle->new(fh => $fh); 60 my $handle = HTTP::Tiny::Handle->new(fh => $fh); 70 my $handle = HTTP::Tiny::Handle->new(fh => $fh);
|
| H A D | 020_headers.t | 13 sub HTTP::Tiny::Handle::can_read { 1 }; 14 sub HTTP::Tiny::Handle::can_write { 1 }; 21 my $handle = HTTP::Tiny::Handle->new(fh => $fh); 30 my $handle = HTTP::Tiny::Handle->new(fh => $fh); 39 my $handle = HTTP::Tiny::Handle->new(fh => $fh); 46 my $handle = HTTP::Tiny::Handle->new(fh => $fh); 55 my $handle = HTTP::Tiny::Handle->new(fh => $fh);
|
| H A D | Util.pm | 156 *HTTP::Tiny::Handle::can_read = sub {1}; 157 *HTTP::Tiny::Handle::can_write = sub {1}; 158 *HTTP::Tiny::Handle::connect = sub { 166 $self->{tid} = HTTP::Tiny::Handle::_get_tid(); 169 my $original_write_request = \&HTTP::Tiny::Handle::write_request; 170 *HTTP::Tiny::Handle::write_request = sub { 175 *HTTP::Tiny::Handle::close = sub { 1 }; # don't close our temps 176 *HTTP::Tiny::Handle::connected = sub { 1 };
|
| H A D | 050_chunked_body.t | 13 sub HTTP::Tiny::Handle::can_read { 1 }; 14 sub HTTP::Tiny::Handle::can_write { 1 }; 19 my $handle = HTTP::Tiny::Handle->new(fh => $fh); 45 my $handle = HTTP::Tiny::Handle->new(fh => $fh);
|
| H A D | 040_content.t | 13 sub HTTP::Tiny::Handle::can_read { 1 }; 14 sub HTTP::Tiny::Handle::can_write { 1 }; 20 my $handle = HTTP::Tiny::Handle->new(fh => $fh);
|
| /openbsd-src/gnu/llvm/llvm/lib/Support/Unix/ |
| H A D | DynamicLibrary.inc | 18 for (void *Handle : llvm::reverse(Handles)) 19 ::dlclose(Handle); 28 void *Handle = ::dlopen(File, RTLD_LAZY | RTLD_GLOBAL); 29 if (!Handle) { 39 Handle = RTLD_DEFAULT; 42 return Handle; 45 void DynamicLibrary::HandleSet::DLClose(void *Handle) { ::dlclose(Handle); } 47 void *DynamicLibrary::HandleSet::DLSym(void *Handle, const char *Symbol) { 48 return ::dlsym(Handle, Symbol); 61 void DynamicLibrary::HandleSet::DLClose(void *Handle) {} [all …]
|
| /openbsd-src/gnu/usr.bin/perl/cpan/IO-Zlib/ |
| H A D | Zlib.pm | 52 as the L<IO::Handle> interface. 267 L<IO::Handle>, 292 use Tie::Handle; 296 our @ISA = qw(Tie::Handle); 406 require IO::Handle; 411 *IO::Handle::gzread = \&gzread_external; 412 *IO::Handle::gzwrite = \&gzwrite_external; 413 *IO::Handle::gzreadline = \&gzreadline_external; 414 *IO::Handle::gzeof = \&gzeof_external; 415 *IO::Handle [all...] |
| /openbsd-src/gnu/llvm/llvm/lib/Support/Windows/ |
| H A D | DynamicLibrary.inc | 25 for (void *Handle : llvm::reverse(Handles)) 26 FreeLibrary(HMODULE(Handle)); 29 assert((!Process || Process == this) && "Bad Handle"); 47 HMODULE Handle = LoadLibraryW(FileUnicode.data()); 48 if (Handle == NULL) { 53 return reinterpret_cast<void *>(Handle); 56 static DynamicLibrary::HandleSet *IsOpenedHandlesInstance(void *Handle) { 58 return Handle == &Inst ? &Inst : nullptr; 61 void DynamicLibrary::HandleSet::DLClose(void *Handle) { 62 if (HandleSet *HS = IsOpenedHandlesInstance(Handle)) [all …]
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.dg/template/ |
| H A D | friend10.C | 16 template <typename T>struct Handle struct 18 Handle(T* p) {} in Handle() function 22 friend std::ostream& operator<<(std::ostream& ostr, const Handle& r) 30 typedef Handle<Buggy> Buggy_h;
|
| /openbsd-src/gnu/usr.bin/perl/os2/OS2/OS2-REXX/t/ |
| H A D | rx_emxrv.t | 26 $emx_fullname = OS2::DLLname 0x202, $emx_dll->{Handle}; # Handle ==> fullname 30 $emx_dll->{Handle} == $emx_dll1->{Handle} or print "not "; 55 $emx_dll->{Handle} == $emx_dll2->{Handle} or print "not ";
|
| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | FuchsiaHandleChecker.cpp | 325 if (SymbolRef Handle = Call.getArgSVal(Arg).getAsSymbol()) in checkPreCall() local 326 State = State->set<HStateMap>(Handle, HandleState::getEscaped()); in checkPreCall() 344 for (SymbolRef Handle : Handles) { in checkPreCall() local 345 const HandleState *HState = State->get<HStateMap>(Handle); in checkPreCall() 352 reportUseAfterFree(Handle, Call.getArgSourceRange(Arg), C); in checkPreCall() 420 for (SymbolRef Handle : Handles) { in checkPostCall() local 421 const HandleState *HState = State->get<HStateMap>(Handle); in checkPostCall() 426 reportDoubleRelease(Handle, Call.getArgSourceRange(Arg), C); in checkPostCall() 429 reportUnownedRelease(Handle, Call.getArgSourceRange(Arg), C); in checkPostCall() 432 Notes.push_back([Handle, ParamDiagIdx](BugReport &BR) -> std::string { in checkPostCall() [all …]
|
| /openbsd-src/regress/usr.sbin/pkg_add/ |
| H A D | check-beautify | 8 use OpenBSD::Handle; 38 $u1->add_newer(OpenBSD::Handle->create_new($i)); 41 $u1->add_older(OpenBSD::Handle->create_old($i, $state)); 63 $u1->move_kept(OpenBSD::Handle->create_old('mupdf-2.5', $state));
|
| /openbsd-src/gnu/usr.bin/perl/dist/IO/t/ |
| H A D | io_const.t | 12 use IO::Handle; 18 my $d1 = defined(&{"IO::Handle::" . $_}) ? 1 : 0; 19 my $v1 = $d1 ? &{"IO::Handle::" . $_}() : undef; 20 my $v2 = IO::Handle::constant($_);
|
| H A D | io_dup.t | 14 use IO::Handle; 24 my $dupout = IO::Handle->new->fdopen( \*STDOUT ,"w"); 25 my $duperr = IO::Handle->new->fdopen( \*STDERR ,"w");
|
| /openbsd-src/gnu/usr.bin/perl/cpan/Scalar-List-Utils/t/ |
| H A D | openhan.t | 48 require IO::Handle; 49 my $fh = IO::Handle->new_from_fd(fileno(*STDERR), 'w'); 53 ok(!openhandle(IO::Handle->new), "unopened IO::Handle"); 74 require Tie::Handle; 75 @My::Tie::ISA = qw(Tie::Handle);
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerUtilFuchsia.cpp | 224 ~ScopedHandle() { _zx_handle_close(Handle); } in CrashHandler() 225 zx_handle_t Handle = ZX_HANDLE_INVALID; in CrashHandler() member 235 Self, ZX_EXCEPTION_CHANNEL_DEBUGGER, &Channel.Handle), in CrashHandler() 252 .handle = Channel.Handle, in CrashHandler() 265 ExitOnErr(_zx_channel_read(Channel.Handle, 0, &ExceptionInfo, in CrashHandler() 266 &Exception.Handle, sizeof(ExceptionInfo), 1, in CrashHandler() 284 ExitOnErr(_zx_exception_get_thread(Exception.Handle, &Thread.Handle), in CrashHandler() 288 ExitOnErr(_zx_thread_read_state(Thread.Handle, ZX_THREAD_STATE_GENERAL_REGS, in CrashHandler() 319 _zx_thread_write_state(Thread.Handle, ZX_THREAD_STATE_GENERAL_REGS, in CrashHandler() 325 ExitOnErr(_zx_object_set_property(Exception.Handle, ZX_PROP_EXCEPTION_STATE, in CrashHandler()
|
| /openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/Orc/ |
| H A D | EPCDynamicLibrarySearchGenerator.cpp | 18 auto Handle = ES.getExecutorProcessControl().loadDylib(LibraryPath); in Load() local 19 if (!Handle) in Load() 20 return Handle.takeError(); in Load() 22 return std::make_unique<EPCDynamicLibrarySearchGenerator>(ES, *Handle, in Load()
|
| /openbsd-src/gnu/usr.bin/perl/cpan/Archive-Tar/bin/ |
| H A D | ptar | 55 use IO::Handle; 56 $file = IO::Handle->new(); 70 use IO::Handle; 71 $file = IO::Handle->new();
|
| /openbsd-src/gnu/usr.bin/perl/lib/ |
| H A D | FileHandle.pm | 39 IO::Handle->import( grep { !defined(&$_) } @EXPORT, @EXPORT_OK ); 91 my $r = IO::Handle->new; 92 my $w = IO::Handle->new;
|
| /openbsd-src/usr.sbin/pkg_add/OpenBSD/ |
| H A D | PkgAdd.pm | 205 OpenBSD::Handle->create_new($pkgname)); 211 OpenBSD::Handle->from_location($location)); 284 use OpenBSD::Handle; 353 $o = OpenBSD::Handle->create_old($pkgname, $state); 356 $set->cleanup(OpenBSD::Handle::CANT_INSTALL, 419 $set->cleanup(OpenBSD::Handle::CANT_INSTALL, $check); 532 my $h = OpenBSD::Handle->create_old($toreplace, $state); 542 if ($old->has_error(OpenBSD::Handle::NOT_FOUND)) { 545 if ($old->has_error(OpenBSD::Handle::BAD_PACKAGE)) { 559 OpenBSD::Handle [all...] |