This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| id name | |
| ------------------------------------ | |
| 1 com.apple.flow-divert | |
| 2 com.apple.nke.sockwall | |
| 3 com.apple.content-filter | |
| 4 com.apple.packet-mangler | |
| 5 com.apple.net.necp_control | |
| 6 com.apple.net.netagent | |
| 7 com.apple.net.utun_control | |
| 8 com.apple.net.ipsec_control |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <mach/mach_types.h> | |
| #include <mach/mach_vm.h> | |
| #include <libkern/libkern.h> | |
| extern vm_map_t kernel_map; /* exported com.apple.kpi.unsupported */ | |
| #define UNUSED(arg0, ...) (void) ((void) arg0, ##__VA_ARGS__) | |
| /* | |
| * see: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <key>OSBundleLibraries</key> | |
| <dict> | |
| <key>com.apple.kpi.bsd</key> | |
| <string>8.0b1</string> | |
| <key>com.apple.kpi.libkern</key> | |
| <string>8.0d0</string> | |
| <key>com.apple.kpi.mach</key> | |
| <string>8.0d0</string> | |
| <key>com.apple.kpi.dsep</key> | |
| <string>8.0b1</string> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Created 181013 | |
| */ | |
| #include <mach/mach_types.h> | |
| #include <libkern/libkern.h> | |
| #include <sys/mount.h> | |
| #include <sys/vnode.h> | |
| #define KEXTNAME_S "fs_iterator" | |
| #define LOG(fmt, ...) printf(KEXTNAME_S ": " fmt "\n", ##__VA_ARGS__) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # | |
| # Created 181026 | |
| # | |
| if [ $# -ne 1 ]; then | |
| cat << EOL | |
| Usage: | |
| $(basename $0) installer_app | |
| EOL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # | |
| # Created 181026 | |
| # | |
| if [ $# -ne 1 ]; then | |
| cat << EOL | |
| Usage: | |
| $(basename $0) installer_app | |
| EOL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Strong version of atomic compare-and-swap | |
| * @p pointer to cas with | |
| * @o old value | |
| * @n new value | |
| * @return true if success false o.w. | |
| * see: http://donghao.org/2015/01/30/128bit-atomic-operation-in-arm64 | |
| * | |
| * NOTE: GCC-compatible available only | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Created 181102 | |
| */ | |
| #include <libkern/OSAtomicDeprecated.h> | |
| static volatile int __spin; | |
| #define spin_lock() while (!OSAtomicCompareAndSwapInt(0, 1, &__spin)) continue | |
| #define spin_unlock() do { \ | |
| bool ok = OSAtomicCompareAndSwapInt(1, 0, &__spin); \ | |
| NSCAssert(ok == 1, @"spin_unlock() failure"); \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| set -e | |
| rm -f ~/Library/Preferences/IntelliJIdea2018.2/eval/idea182.evaluation.key | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <assert.h> | |
| /** | |
| * Check if a given UTF8-encoded path is valid | |
| * @return empty string yield false | |
| * see: | |
| * https://docs.microsoft.com/en-us/windows/desktop/fileio/naming-a-file#naming-conventions | |
| * https://github.com/apache/commons-lang/blob/master/src/main/java/org/apache/commons/lang3/CharUtils.java#L438 | |
| */ | |
| static inline bool is_u8path_valid(const register char * __nonnull p) |