libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
select.hh
Go to the documentation of this file.
1/*
2 * Copyright 2021 Assured Information Security, Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16/* This file is automatically generated. Do not edit. */
17#pragma once
18
19#include <cstdint>
24#include <ostream>
25#include <string>
26
27namespace introvirt {
28namespace windows {
29namespace ws2_32 {
30
36class select final : public WindowsFunctionCall {
37 public:
38 int32_t nfds() const;
39 void nfds(int32_t nfds);
40
43 std::shared_ptr<FD_SET> readfds();
44
47 std::shared_ptr<FD_SET> writefds();
48
51 std::shared_ptr<FD_SET> exceptfds();
52
55 std::shared_ptr<TIMEVAL> timeout();
56
57 const std::string& function_name() const override;
58 const std::string& library_name() const override;
59 void write(std::ostream& os = std::cout) const override;
60 Json::Value json() const override;
61
62 int32_t result() const;
63 void result(int32_t result);
64
65 select(Event& event);
66 ~select() override;
67
68 /* Injection helper */
69 static int32_t inject(int32_t nfds, const guest_ptr<void>& preadfds,
72
73 static constexpr int ArgumentCount = 5;
74 inline static const std::string LibraryName = "ws2_32";
75 inline static const std::string FunctionName = "select";
76
77 private:
78 /* Injection constructor */
79 select(Event& event, int32_t nfds, const guest_ptr<void>& preadfds,
82
83 private:
84 int32_t nfds_;
85 guest_ptr<void> preadfds_;
86 guest_ptr<void> pwritefds_;
87 guest_ptr<void> pexceptfds_;
88 guest_ptr<void> ptimeout_;
89};
90
91} // namespace ws2_32
92} // namespace windows
93} // namespace introvirt
Interface class for hypervisor events.
Definition Event.hh:43
Definition guest_ptr.hh:88
Definition WindowsFunctionCall.hh:31
Handler for ws2_32!select.
Definition select.hh:36
std::shared_ptr< FD_SET > readfds()
std::shared_ptr< FD_SET > writefds()
void pexceptfds(const guest_ptr< void > &pexceptfds)
static constexpr int ArgumentCount
Definition select.hh:73
void preadfds(const guest_ptr< void > &preadfds)
void ptimeout(const guest_ptr< void > &ptimeout)
void write(std::ostream &os=std::cout) const override
Write out a textual representation of the function for display.
const std::string & function_name() const override
Get the function name.
std::shared_ptr< FD_SET > exceptfds()
std::shared_ptr< TIMEVAL > timeout()
static const std::string LibraryName
Definition select.hh:74
guest_ptr< void > ptimeout() const
void pwritefds(const guest_ptr< void > &pwritefds)
static int32_t inject(int32_t nfds, const guest_ptr< void > &preadfds, const guest_ptr< void > &pwritefds, const guest_ptr< void > &pexceptfds, const guest_ptr< void > &ptimeout)
guest_ptr< void > pwritefds() const
guest_ptr< void > preadfds() const
const std::string & library_name() const override
Get the name of the library this call is for.
static const std::string FunctionName
Definition select.hh:75
Json::Value json() const override
Get the function as Json.
guest_ptr< void > pexceptfds() const
Type-safe guest virtual address pointer and guest_ptr template.
Core IntroVirt classes.
Definition Cr0.hh:20