REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 887 B
Close
/lib/python3.6/site-packages/procfs/utilist.py
Text
Base64
#! /usr/bin/python3 # -*- python -*- # -*- coding: utf-8 -*- # SPDX-License-Identifier: GPL-2.0-only # # Copyright (C) 2007 Red Hat, Inc. # from six.moves import range def hexbitmask(l, nr_entries): hexbitmask = [] bit = 0 mask = 0 for entry in range(nr_entries): if entry in l: mask |= (1 << bit) bit += 1 if bit == 32: bit = 0 hexbitmask.insert(0, mask) mask = 0 if bit < 32 and mask != 0: hexbitmask.insert(0, mask) return hexbitmask def bitmasklist(line, nr_entries): hexmask = line.strip().replace(",", "") bitmasklist = [] entry = 0 bitmask = bin(int(hexmask, 16))[2::] for i in reversed(bitmask): if int(i) & 1: bitmasklist.append(entry) entry += 1 if entry == nr_entries: break return bitmasklist
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
__pycache__
DIR
-
drwxr-xr-x
2024-06-15 07:03:57
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
procfs.py
35.45 KB
lrwxr-xr-x
2023-11-10 00:39:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
utilist.py
887 B
lrwxr-xr-x
2023-11-10 00:39:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
__init__.py
400 B
lrwxr-xr-x
2023-11-10 00:39:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).