| /freebsd/tools/sched/ |
| H A D | schedgraph.py | 138 def __init__(self, table): argument 139 self.table = table 140 self.map = {} 142 self.map[entry[0]] = entry[1] 144 def lookup(self, name): argument 146 color = self.map[name] 150 self.map[name] = color 151 self.table.append((name, color)) 170 def __init__(self, master, target): argument 171 Frame.__init__(self, master) [all …]
|
| /freebsd/sys/contrib/openzfs/contrib/pyzfs/libzfs_core/test/ |
| H A D | test_nvlist.py | 38 def _dict_to_nvlist_to_dict(self, props): argument 45 def _assertIntDictsEqual(self, dict1, dict2): argument 46 self.assertEqual( 50 self.assertEqual(int(dict1[key]), int(dict2[key])) 52 def _assertIntArrayDictsEqual(self, dict1, dict2): argument 53 self.assertEqual( 59 self.assertEqual( 62 self.assertEqual(int(x), int(y)) 64 def test_empty(self): argument 65 res = self._dict_to_nvlist_to_dict({}) [all …]
|
| /freebsd/crypto/openssl/util/perl/TLSProxy/ |
| H A D | Proxy.pm | 162 my $self = { 194 return bless $self, $class; 199 my $self = shift; 201 $self->{proxy_sock}->close() if $self->{proxy_sock}; 206 my $self = shift; 208 $self->{cipherc} = ""; 209 $self->{ciphersuitec} = ""; 210 $self->{flight} = -1; 211 $self [all...] |
| H A D | ClientHello.pm | 30 my $self = $class->SUPER::new( 42 $self->{isdtls} = $isdtls; 43 $self->{client_version} = 0; 44 $self->{random} = []; 45 $self->{session_id_len} = 0; 46 $self->{session} = ""; 47 $self->{legacy_cookie_len} = 0; #DTLS only 48 $self->{legacy_cookie} = ""; #DTLS only 49 $self->{ciphersuite_len} = 0; 50 $self->{ciphersuites} = []; [all …]
|
| H A D | ServerHello.pm | 35 my $self = $class->SUPER::new( 47 $self->{server_version} = 0; 48 $self->{random} = []; 49 $self->{session_id_len} = 0; 50 $self->{session} = ""; 51 $self->{ciphersuite} = 0; 52 $self->{comp_meth} = 0; 53 $self->{extension_data} = ""; 55 return $self; 60 my $self = shift; [all …]
|
| H A D | ServerKeyExchange.pm | 28 my $self = $class->SUPER::new( 41 $self->{p} = ""; 42 $self->{g} = ""; 43 $self->{pub_key} = ""; 44 $self->{sigalg} = -1; 45 $self->{sig} = ""; 47 return $self; 52 my $self = shift; 61 my $p_len = unpack('n', $self->data); 63 my $p = substr($self->data, $ptr, $p_len); [all …]
|
| /freebsd/sys/tools/syscalls/core/ |
| H A D | syscall.lua | 42 self.thr = "SY_THR_STATIC" 43 for k, _ in pairs(self.type) do 45 self.thr = "SY_THR_ABSENT" 53 self.cap = "0" 54 local stripped = util.stripAbiPrefix(self.name, self.prefix) 55 for k, _ in pairs(self.type) do 57 self.cap = "SYF_CAPENABLED" 76 if config.syscall_no_abi_change[self.name] then 77 self.changes_abi = false 79 self.noproto = not util.isEmpty(config.abi_flags) and [all …]
|
| /freebsd/contrib/ntp/sntp/libevent/ |
| H A D | event_rpcgen.py | 57 def __init__(self, why): # pylint: disable=super-init-not-called argument 58 self.why = why 60 def __str__(self): argument 61 return str(self.why) 66 def __init__(self, name): argument 67 self._name = name 68 self._entries = [] 69 self._tags = {} 72 def AddEntry(self, entry): argument 73 if entry.Tag() in self._tags: [all …]
|
| /freebsd/contrib/libevent/ |
| H A D | event_rpcgen.py | 57 def __init__(self, why): # pylint: disable=super-init-not-called argument 58 self.why = why 60 def __str__(self): argument 61 return str(self.why) 66 def __init__(self, name): argument 67 self._name = name 68 self._entries = [] 69 self._tags = {} 72 def AddEntry(self, entry): argument 73 if entry.Tag() in self._tags: [all …]
|
| /freebsd/contrib/lib9p/pytest/ |
| H A D | p9conn.py | 59 def __init__(self, client, op, msg, etype, errno): argument 60 self.client = str(client) 61 self.op = op 62 self.msg = msg 63 self.etype = etype # 'Rerror' or 'Rlerror' 64 self.errno = errno # may be None 65 self.message = self._get_message() 66 super(RemoteError, self).__init__(self, self.message) 68 def __repr__(self): argument 70 '{5})'.format(self.__class__.__name__, self.client, self.op, [all …]
|
| H A D | sequencer.py | 54 def __init__(self, name, aux): argument 55 self.name = name 56 self.aux = aux 88 def pack(self, vdict, cdict, val): argument 90 return b''.join(self.apack(vdict, cdict, val)) 93 def apack(self, vdict, cdict, val): argument 97 def unpack(self, vdict, cdict, bstring, offset, noerror=False): argument 203 def __init__(self, name, fmt, aux=None): argument 204 super(EncDecSimple, self).__init__(name, aux) 205 self.fmt = fmt [all …]
|
| /freebsd/contrib/ntp/scripts/monitoring/ |
| H A D | lr.pl | 45 my $self = shift; 47 $self->{n} = 0; 48 $self->{sx} = 0.0; 49 $self->{sx2} = 0.0; 50 $self->{sxy} = 0.0; 51 $self->{sy} = 0.0; 52 $self->{sy2} = 0.0; 57 my $self = shift; 60 ++($self->{n}); 61 $self->{sx} += $_x; [all …]
|
| /freebsd/tools/tools/shlib-compat/ |
| H A D | shlib-compat.py | 56 def init(self, outname): argument 58 self.out = open(outname, "w") 86 def __init__(self): argument 87 self.exclude = [] 88 self.include = [] 90 def compile(self): argument 91 self.re_exclude = [ re.compile(x) for x in self.exclude ] 92 self.re_include = [ re.compile(x) for x in self.include ] 94 def match(self, s): argument 95 if len(self.re_include): [all …]
|
| /freebsd/contrib/bmake/mk/ |
| H A D | meta2deps.py | 205 def __init__(self, name, conf={}): argument 246 self.name = name 247 self.debug = conf.get('debug', 0) 248 self.debug_out = conf.get('debug_out', sys.stderr) 250 self.machine = conf.get('MACHINE', '') 251 self.machine_arch = conf.get('MACHINE_ARCH', '') 252 self.target_spec = conf.get('TARGET_SPEC', self.machine) 253 self.exts = target_spec_exts(self.target_spec) 254 self.curdir = conf.get('CURDIR') 255 self.reldir = conf.get('RELDIR') [all …]
|
| /freebsd/share/mk/ |
| H A D | meta2deps.py | 205 def __init__(self, name, conf={}): argument 246 self.name = name 247 self.debug = conf.get('debug', 0) 248 self.debug_out = conf.get('debug_out', sys.stderr) 250 self.machine = conf.get('MACHINE', '') 251 self.machine_arch = conf.get('MACHINE_ARCH', '') 252 self.target_spec = conf.get('TARGET_SPEC', self.machine) 253 self.exts = target_spec_exts(self.target_spec) 254 self.curdir = conf.get('CURDIR') 255 self.reldir = conf.get('RELDIR') [all …]
|
| /freebsd/contrib/sendmail/contrib/ |
| H A D | qtool.pl | 490 my $self = {}; 491 bless $self, $class; 492 $self->initialize(@_); 493 return $self; 498 my $self = shift; 500 $self->{id} = shift; 502 $self->{file_name} = $queue_dir . '/' . $qprefix . $self->{id}; 503 $self->{headers} = {}; 516 my $self = shift; 517 if ($self->{parsed}) [all …]
|
| /freebsd/sys/contrib/openzfs/contrib/pyzfs/libzfs_core/ |
| H A D | exceptions.py | 44 def __str__(self): argument 45 if self.name is not None: 47 self.errno, self.message, self.name) 49 return "[Errno %d] %s" % (self.errno, self.message) 51 def __repr__(self): argument 53 self.__class__.__name__, self.errno, self.message) 58 def __init__(self, errno, name, message): argument 59 self.errno = errno 60 self.message = message 61 self.name = name [all …]
|
| /freebsd/contrib/llvm-project/lldb/bindings/python/ |
| H A D | python-extensions.swig | 3 def __eq__(self, rhs): 4 if not isinstance(rhs, type(self)): 7 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs) 9 def __ne__(self, rhs): 10 if not isinstance(rhs, type(self)): 13 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs) 19 def __eq__(self, rhs): 20 if not isinstance(rhs, type(self)) [all...] |
| /freebsd/contrib/wpa/wpa_supplicant/examples/p2p/ |
| H A D | p2p_connect.py | 78 def __init__(self,ifname,wpas_dbus_interface,addr, argument 81 self.ifname = ifname 82 self.wpas_dbus_interface = wpas_dbus_interface 83 self.wps_method = wps_method 84 self.go_intent = go_intent 85 self.addr = addr 86 self.pin = pin 89 self.wpas_dbus_opath = \ 90 "/" + self.wpas_dbus_interface.replace(".","/") 91 self.wpas_wpas_dbus_interfaces_opath = \ [all …]
|
| /freebsd/tests/atf_python/sys/netlink/ |
| H A D | attrs.py | 12 def __init__(self, nla_type, data): argument 14 self._nla_type = nla_type.value 15 self._enum = nla_type 17 self._nla_type = nla_type 18 self._enum = None 19 self.nla_list = [] 20 self._data = data 23 def nla_type(self): argument 24 return self._nla_type & 0x3FFF 27 def nla_len(self): argument [all …]
|
| /freebsd/crypto/openssl/crypto/perlasm/ |
| H A D | x86_64-xlate.pl | 224 my $self = {}; 228 bless $self,$class; 229 $self->{value} = $1; 230 $ret = $self; 236 my $self = shift; 237 $self->{value}; 243 my $self = {}; 247 bless $self,$class; 248 $self->{op} = $1; 249 $ret = $self; [all …]
|
| /freebsd/crypto/openssl/Configurations/ |
| H A D | gentemplate.pm | 53 my $self = shift; 56 my $fh = $self->{output}; 82 my $self = shift; 88 my @list = @{ $self->{info}->{depends}->{$thing} // 89 $self->{info}->{depends}->{$extensionlessthing} 100 next if defined $self->{info}->{attributes}->{depends}->{$thing}->{$item}->{'weak'}; 101 my @resolved = $self->collectdepends($item, @listsofar, $item); 113 my $self = shift; 140 } @{$self->{info}->{depends}->{$item} // []} 186 my $self = shift; [all …]
|
| /freebsd/contrib/lyaml/lib/lyaml/ |
| H A D | init.lua | 86 emit = function(self, event) 87 return self.emitter.emit(event) 91 get_anchor = function(self, value) 92 local r = self.anchors[value] 94 self.aliased[value], self.anchors[value] = self.anchors[value], nil 100 get_alias = function(self, value) 101 return self.aliased[value] 105 dump_alias = function(self, alias) 106 return self:emit { 113 dump_mapping = function(self, map) [all …]
|
| /freebsd/contrib/googletest/googletest/test/ |
| H A D | googletest-filter-unittest.py | 262 def AssertSetEqual(self, lhs, rhs): argument 266 self.assertTrue(elem in rhs, '%s in %s' % (elem, rhs)) 269 self.assertTrue(elem in lhs, '%s in %s' % (elem, lhs)) 271 def AssertPartitionIsValid(self, set_var, list_of_sets): argument 277 self.assertEqual(len(set_var), len(full_partition)) 278 self.assertEqual(set(set_var), set(full_partition)) 280 def AdjustForParameterizedTests(self, tests_to_run): argument 289 def RunAndVerify(self, gtest_filter, tests_to_run): argument 292 tests_to_run = self.AdjustForParameterizedTests(tests_to_run) 306 self.AssertSetEqual(tests_run, tests_to_run) [all …]
|
| /freebsd/tests/atf_python/sys/net/ |
| H A D | vnet.py | 52 def __init__(self, iface_alias: str, iface_name: str): argument 53 self.name = iface_name 54 self.alias = iface_alias 55 self.vnet_name = "" 56 self.jailed = False 57 self.addr_map: Dict[str, Dict] = {"inet6": {}, "inet": {}} 58 self.prefixes4: List[List[str]] = [] 59 self.prefixes6: List[List[str]] = [] 61 self.iftype = self 67 ifindex(self) global() argument 71 first_ipv6(self) global() argument 76 first_ipv4(self) global() argument 80 set_vnet(self, vnet_name: str) global() argument 83 set_jailed(self, jailed: bool) global() argument 86 run_cmd(self, cmd, verbose=False) global() argument 112 set_mtu(self, mtu) global() argument 115 setup_addr(self, _addr: str) global() argument 129 delete_addr(self, _addr: str) global() argument 140 turn_up(self) global() argument 144 enable_ipv6(self) global() argument 148 has_tentative(self) global() argument 162 __init__(self) global() argument 165 _register_iface(self, iface_name: str) global() argument 169 _list_ifaces(self) global() argument 179 create_iface(self, alias_name: str, iface_name: str) global() argument 193 cleanup_vnet_interfaces(self, vnet_name: str) global() argument 207 cleanup(self) global() argument 216 __init__( self, vnet_alias: str, vnet_name: str, jid: int, ifaces: List[VnetInterface] ) global() argument 236 run_vnet_cmd(self, cmd, verbose=True) global() argument 241 disable_dad(self) global() argument 244 set_pipe(self, pipe) global() argument 247 set_subprocess(self, p) global() argument 256 attach(self) global() argument 264 __init__(self, topology_id: str) global() argument 269 _register_vnet(self, vnet_name: str) global() argument 289 create_vnet(self, vnet_alias: str, ifaces: List[VnetInterface], opts: List[str]) global() argument 318 cleanup(self) global() argument 346 _require_default_modules(self) global() argument 350 _get_vnet_handler(self, vnet_alias: str) global() argument 354 _setup_vnet(self, vnet: VnetInstance, obj_map: Dict, pipe) global() argument 400 _get_topo_ifmap(self, topo: Dict) global() argument 417 setup_topology(self, topo: Dict, topology_id: str) global() argument 470 setup_method(self, _method) global() argument 509 cleanup(self, test_id: str) global() argument 518 wait_object(self, pipe, timeout=5) global() argument 523 wait_objects_any(self, pipe_list, timeout=5) global() argument 529 send_object(self, pipe, obj) global() argument 532 wait(self) global() argument 537 curvnet(self) global() argument 546 _setup_default_topology(self) global() argument 559 setup_method(self, method) global() argument [all...] |