repo_full_name stringlengths 6 93 | repo_url stringlengths 25 112 | repo_api_url stringclasses 28
values | owner stringclasses 28
values | repo_name stringclasses 28
values | description stringclasses 28
values | stars int64 617 98.8k | forks int64 31 355 ⌀ | watchers int64 990 999 ⌀ | license stringclasses 2
values | default_branch stringclasses 2
values | repo_created_at timestamp[s]date 2012-07-24 23:12:50 2025-06-16 08:07:28 ⌀ | repo_updated_at timestamp[s]date 2026-02-23 15:23:15 2026-05-03 18:52:12 ⌀ | repo_topics listlengths 0 13 ⌀ | repo_languages unknown | is_fork bool 1
class | open_issues int64 3 104 ⌀ | file_path stringlengths 3 208 | file_name stringclasses 509
values | file_extension stringclasses 1
value | file_size_bytes int64 101 84k ⌀ | file_url stringclasses 627
values | file_raw_url stringclasses 627
values | file_sha stringclasses 624
values | language stringclasses 8
values | parsed_at stringdate 2026-05-04 01:12:36 2026-05-04 19:41:55 | text stringlengths 100 102k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
vmg/redcarpet | https://github.com/vmg/redcarpet | null | null | null | null | 5,076 | null | null | mit | null | null | null | null | null | null | null | ext/redcarpet/buffer.c | null | null | null | null | null | null | C | 2026-05-04T18:44:42.437722 | /*
* Copyright (c) 2008, Natacha Porté
* Copyright (c) 2015, Vicent Marti
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
... |
vmg/redcarpet | https://github.com/vmg/redcarpet | null | null | null | null | 5,076 | null | null | mit | null | null | null | null | null | null | null | ext/redcarpet/html_blocks.h | null | null | null | null | null | null | C | 2026-05-04T18:44:42.467604 | /* ANSI-C code produced by gperf version 3.1 */
/* Command-line: gperf -N find_block_tag -H hash_block_tag -C -c -E --ignore-case html_block_names.txt */
/* Computed positions: -k'1-2' */
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
&& ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40... |
vmg/redcarpet | https://github.com/vmg/redcarpet | null | null | null | null | 5,076 | null | null | mit | null | null | null | null | null | null | null | ext/redcarpet/rc_render.c | null | null | null | null | null | null | C | 2026-05-04T18:44:43.020514 | /*
* Copyright (c) 2015, Vicent Marti
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publi... |
vmg/redcarpet | https://github.com/vmg/redcarpet | null | null | null | null | 5,076 | null | null | mit | null | null | null | null | null | null | null | ext/redcarpet/markdown.c | null | null | null | null | null | null | C | 2026-05-04T18:44:43.029221 | /*
* Copyright (c) 2009, Natacha Porté
* Copyright (c) 2015, Vicent Marti
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
... |
vmg/redcarpet | https://github.com/vmg/redcarpet | null | null | null | null | 5,076 | null | null | mit | null | null | null | null | null | null | null | ext/redcarpet/markdown.h | null | null | null | null | null | null | C | 2026-05-04T18:44:43.046786 | /*
* Copyright (c) 2009, Natacha Porté
* Copyright (c) 2015, Vicent Marti
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
... |
vmg/redcarpet | https://github.com/vmg/redcarpet | null | null | null | null | 5,076 | null | null | mit | null | null | null | null | null | null | null | ext/redcarpet/redcarpet.h | null | null | null | null | null | null | C | 2026-05-04T18:44:43.062058 | /*
* Copyright (c) 2015, Vicent Marti
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publi... |
vmg/redcarpet | https://github.com/vmg/redcarpet | null | null | null | null | 5,076 | null | null | mit | null | null | null | null | null | null | null | ext/redcarpet/stack.h | null | null | null | null | null | null | C | 2026-05-04T18:44:43.062697 | /*
* Copyright (c) 2015, Vicent Marti
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publi... |
vmg/redcarpet | https://github.com/vmg/redcarpet | null | null | null | null | 5,076 | null | null | mit | null | null | null | null | null | null | null | ext/redcarpet/html_smartypants.c | null | null | null | null | null | null | C | 2026-05-04T18:44:43.073350 | /*
* Copyright (c) 2015, Vicent Marti
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publi... |
vmg/redcarpet | https://github.com/vmg/redcarpet | null | null | null | null | 5,076 | null | null | mit | null | null | null | null | null | null | null | ext/redcarpet/rc_markdown.c | null | null | null | null | null | null | C | 2026-05-04T18:44:43.101935 | /*
* Copyright (c) 2015, Vicent Marti
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publi... |
vmg/redcarpet | https://github.com/vmg/redcarpet | null | null | null | null | 5,076 | null | null | mit | null | null | null | null | null | null | null | ext/redcarpet/stack.c | null | null | null | null | null | null | C | 2026-05-04T18:44:43.130850 | /*
* Copyright (c) 2015, Vicent Marti
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publi... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/App Delegates/DOAppDelegate.h | null | null | null | null | null | null | C | 2026-05-04T18:44:45.688723 | //
// AppDelegate.h
// Dopamine
//
// Created by Lars Fröder on 23.09.23.
//
#import <UIKit/UIKit.h>
@interface DOAppDelegate : UIResponder <UIApplicationDelegate>
@end
|
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/App Delegates/DOSceneDelegate.h | null | null | null | null | null | null | C | 2026-05-04T18:44:45.711036 | //
// SceneDelegate.h
// Dopamine
//
// Created by Lars Fröder on 23.09.23.
//
#import <UIKit/UIKit.h>
@interface DOSceneDelegate : UIResponder <UIWindowSceneDelegate>
@property (strong, nonatomic) UIWindow * window;
+ (void)relaunch;
@end
|
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/dmaFail/dmaFail.h | null | null | null | null | null | null | C | 2026-05-04T18:44:45.727914 | //
// dmaFail.h
// dmaFail
//
// Created by Lars Fröder on 13.01.24.
//
#import <Foundation/Foundation.h>
//! Project version number for dmaFail.
FOUNDATION_EXPORT double dmaFailVersionNumber;
//! Project version string for dmaFail.
FOUNDATION_EXPORT const unsigned char dmaFailVersionString[];
// In this header,... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/badRecovery/badRecovery.h | null | null | null | null | null | null | C | 2026-05-04T18:44:45.729682 | //
// badRecovery.h
// Dopamine
//
// Created by Lars Fröder on 25.01.24.
//
#ifndef badRecovery_h
#define badRecovery_h
#include <stdint.h>
#include <stdbool.h>
#include <mach/mach.h>
#include <libjailbreak/kcall_Fugu14.h>
typedef struct {
bool inited;
thread_t gExploitThread;
uint64_t gScratchMemKer... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/dmaFail/dmaFail.c | null | null | null | null | null | null | C | 2026-05-04T18:44:45.755707 | //
// dmaFail.c
// Dopamine
//
// Created by Lars Fröder on 13.01.24.
//
#include <stdio.h>
#include <libjailbreak/primitives.h>
#include <libjailbreak/translation.h>
#include <libjailbreak/info.h>
#include <libjailbreak/kernel.h>
#include <libjailbreak/util.h>
#include <dlfcn.h>
#include <mach-o/dyld.h>
#include <... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/kfd/Exploit/libkfd.h | null | null | null | null | null | null | C | 2026-05-04T18:44:45.761189 | /*
* Copyright (c) 2023 Félix Poulin-Bélanger. All rights reserved.
*/
#ifndef libkfd_h
#define libkfd_h
/*
* The global configuration parameters of libkfd.
*/
#define CONFIG_ASSERT 1
#define CONFIG_PRINT 1
#define CONFIG_TIMER 1
#include "libkfd/common.h"
/*
* The public API of libkfd.
*/
enum puaf_method {... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/kfd/Exploit/libkfd/common.h | null | null | null | null | null | null | C | 2026-05-04T18:44:45.778368 | /*
* Copyright (c) 2023 Félix Poulin-Bélanger. All rights reserved.
*/
#ifndef common_h
#define common_h
#include <errno.h>
#include <mach/mach.h>
#include <pthread.h>
#include <semaphore.h>
#include <stdatomic.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/mman.... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/kfd/Exploit/libkfd/info.h | null | null | null | null | null | null | C | 2026-05-04T18:44:45.779626 | /*
* Copyright (c) 2023 Félix Poulin-Bélanger. All rights reserved.
*/
#ifndef info_h
#define info_h
#include "info/dynamic_info.h"
#include "info/static_info.h"
/*
* Note that these macros assume that the kfd pointer is in scope.
*/
#define dynamic_info(field_name) (dynamic_system_info.field_name)
#define T1... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/kfd/Exploit/libkfd/info/dynamic_info.h | null | null | null | null | null | null | C | 2026-05-04T18:44:45.788945 | /*
* Copyright (c) 2023 Félix Poulin-Bélanger. All rights reserved.
*/
#ifndef dynamic_info_h
#define dynamic_info_h
struct dynamic_info {
bool kread_kqueue_workloop_ctl_supported;
bool krkw_iosurface_supported;
bool perf_supported;
u64 kernelcache__static_base;
// struct proc
u64 proc__p_li... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/kfd/Exploit/libkfd/info/static_info.h | null | null | null | null | null | null | C | 2026-05-04T18:44:45.802708 | /*
* Copyright (c) 2023 Félix Poulin-Bélanger. All rights reserved.
*/
#ifndef static_info_h
#define static_info_h
/*
* osfmk/arm64/proc_reg.h
*/
#define ARM_PGSHIFT (14ull)
#define ARM_PGBYTES (1ull << ARM_PGSHIFT)
#define ARM_PGMASK (ARM_PGBYTES - 1ull)
#define AP_RWNA (0x0ull << 6)
#define AP_RW... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/kfd/Exploit/libkfd/krkw/kwrite/kwrite_dup.h | null | null | null | null | null | null | C | 2026-05-04T18:44:46.652634 | /*
* Copyright (c) 2023 Félix Poulin-Bélanger. All rights reserved.
*/
#ifndef kwrite_dup_h
#define kwrite_dup_h
void kwrite_dup_kwrite_u64(struct kfd* kfd, u64 kaddr, u64 new_value);
void kwrite_dup_init(struct kfd* kfd)
{
kfd->kwrite.krkw_maximum_id = kfd->info.env.maxfilesperproc - 100;
kfd->kwrite.krkw... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/kfd/Exploit/libkfd/krkw/kread/kread_sem_open.h | null | null | null | null | null | null | C | 2026-05-04T18:44:46.653578 | /*
* Copyright (c) 2023 Félix Poulin-Bélanger. All rights reserved.
*/
#ifndef kread_sem_open_h
#define kread_sem_open_h
const char* kread_sem_open_name = "kfd-posix-semaphore";
u64 kread_sem_open_kread_u64(struct kfd* kfd, u64 kaddr);
u32 kread_sem_open_kread_u32(struct kfd* kfd, u64 kaddr);
void kread_sem_open_... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/kfd/Exploit/libkfd/krkw/kread/kread_kqueue_workloop_ctl.h | null | null | null | null | null | null | C | 2026-05-04T18:44:46.655152 | /*
* Copyright (c) 2023 Félix Poulin-Bélanger. All rights reserved.
*/
#ifndef kread_kqueue_workloop_ctl_h
#define kread_kqueue_workloop_ctl_h
const u64 kread_kqueue_workloop_ctl_sentinel = 0x1122334455667788;
u64 kread_kqueue_workloop_ctl_kread_u64(struct kfd* kfd, u64 kaddr);
void kread_kqueue_workloop_ctl_init... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/kfd/Exploit/libkfd/perf.h | null | null | null | null | null | null | C | 2026-05-04T18:44:46.655773 | /*
* Copyright (c) 2023 Félix Poulin-Bélanger. All rights reserved.
*/
#ifndef perf_h
#define perf_h
// Forward declarations for helper functions.
u64 phystokv(struct kfd* kfd, u64 pa);
u64 vtophys(struct kfd* kfd, u64 va);
void perf_kread(struct kfd* kfd, u64 kaddr, void* uaddr, u64 size)
{
assert((size != 0)... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/kfd/Exploit/libkfd/krkw.h | null | null | null | null | null | null | C | 2026-05-04T18:44:46.768134 | /*
* Copyright (c) 2023 Félix Poulin-Bélanger. All rights reserved.
*/
#ifndef krkw_h
#define krkw_h
#define kread_from_method(type, method) \
do { \
volatile type* type_base = (volatil... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/kfd/Exploit/libkfd/krkw/kwrite/kwrite_IOSurface.h | null | null | null | null | null | null | C | 2026-05-04T18:44:46.803312 | //
// kwrite_IOSurface.h
// kfd
//
// Created by Lars Fröder on 30.07.23.
//
// I attempted to make this standalone from kread but that probably doesn't work, so just select IOSurface for both kread and kwrite
#ifndef kwrite_IOSurface_h
#define kwrite_IOSurface_h
#include "../kread/kread_IOSurface.h"
void kwrite_... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/kfd/Exploit/libkfd/krkw/kread/kread_IOSurface.h | null | null | null | null | null | null | C | 2026-05-04T18:44:46.804043 | //
// kread_IOSurface.h
// kfd
//
// Created by Lars Fröder on 29.07.23.
//
#ifndef kread_IOSurface_h
#define kread_IOSurface_h
#include "../IOSurface_shared.h"
#import <mach/mach.h>
#import <mach-o/dyld.h>
#import <mach-o/getsect.h>
#import <mach-o/loader.h>
#import <mach-o/nlist.h>
#import <mach-o/reloc.h>
#de... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/kfd/Exploit/libkfd/krkw/kwrite/kwrite_sem_open.h | null | null | null | null | null | null | C | 2026-05-04T18:44:46.916843 | /*
* Copyright (c) 2023 Félix Poulin-Bélanger. All rights reserved.
*/
#ifndef kwrite_sem_open_h
#define kwrite_sem_open_h
void kwrite_sem_open_init(struct kfd* kfd)
{
kfd->kwrite.krkw_maximum_id = kfd->kread.krkw_maximum_id;
kfd->kwrite.krkw_object_size = sizeof(struct fileproc);
kfd->kwrite.krkw_meth... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/kfd/Exploit/libkfd/krkw/IOSurface_shared.h | null | null | null | null | null | null | C | 2026-05-04T18:44:47.161217 | //
// IOSurface_shared.h
// kfd
//
// Created by Lars Fröder on 29.07.23.
// Mostly stolen from weightBufs: https://github.com/0x36/weightBufs
#ifndef IOSurface_shared_h
#define IOSurface_shared_h
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/kfd/kfd.h | null | null | null | null | null | null | C | 2026-05-04T18:44:47.250518 | //
// kfd.h
// kfd
//
// Created by Lars Fröder on 11.01.24.
//
#import <Foundation/Foundation.h>
//! Project version number for kfd.
FOUNDATION_EXPORT double kfdVersionNumber;
//! Project version string for kfd.
FOUNDATION_EXPORT const unsigned char kfdVersionString[];
// In this header, you should import all t... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/kfd/Exploit/libkfd/puaf/landa.h | null | null | null | null | null | null | C | 2026-05-04T18:44:47.273932 | /*
* Copyright (c) 2023 Félix Poulin-Bélanger. All rights reserved.
*/
#ifndef landa_h
#define landa_h
u64 landa_vme1_size = pages(1);
u64 landa_vme2_size = pages(1);
const u64 landa_vme4_size = pages(1);
// Forward declarations for helper functions.
void* landa_helper_spinner_pthread(void* arg);
struct landa_dat... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/kfd/Exploit/libkfd/puaf/smith.h | null | null | null | null | null | null | C | 2026-05-04T18:44:47.276381 | /*
* Copyright (c) 2023 Félix Poulin-Bélanger. All rights reserved.
*/
#ifndef smith_h
#define smith_h
/*
* This boolean parameter determines whether the vm_map_lock() is taken from
* another thread before attempting to clean up the VM map in the main thread.
*/
const bool take_vm_map_lock = true;
// Forward de... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/kfd/Exploit/libkfd/puaf/physpuppet.h | null | null | null | null | null | null | C | 2026-05-04T18:44:47.292470 | /*
* Copyright (c) 2023 Félix Poulin-Bélanger. All rights reserved.
*/
#ifndef physpuppet_h
#define physpuppet_h
const u64 physpuppet_vmne_size = pages(2) + 1;
const u64 physpuppet_vme_offset = pages(1);
const u64 physpuppet_vme_size = pages(2);
void physpuppet_init(struct kfd* kfd)
{
/*
* Nothing to do.
... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/multicast_bytecopy/exploit/IOGPU.c | null | null | null | null | null | null | C | 2026-05-04T18:44:47.362720 | #include "IOGPU.h"
#include <sys/utsname.h>
io_connect_t IOGPU_init(void)
{
mach_port_t mp = MACH_PORT_NULL;
kern_return_t IOMasterPort(mach_port_t, mach_port_t *);
IOMasterPort(MACH_PORT_NULL, &mp);
io_connect_t uc;
io_service_t s = IOServiceGetMatchingService(mp, IOServiceMatching("AGXAccelerat... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/multicast_bytecopy/exploit/IOSurfaceRoot.c | null | null | null | null | null | null | C | 2026-05-04T18:44:47.382017 | #include "IOSurfaceRoot.h"
io_connect_t IOSurfaceRoot_init(void)
{
kern_return_t IOMasterPort(mach_port_t, mach_port_t *);
mach_port_t mp = MACH_PORT_NULL;
IOMasterPort(MACH_PORT_NULL, &mp);
io_connect_t uc;
io_service_t s = IOServiceGetMatchingService(mp, IOServiceMatching("IOSurfaceRoot"));
... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/multicast_bytecopy/exploit/IOSurfaceRoot.h | null | null | null | null | null | null | C | 2026-05-04T18:44:47.778836 | #ifndef __IOSURFACEROOT_H__
#define __IOSURFACEROOT_H__
#include "iokit.h"
#include <IOSurface/IOSurfaceRef.h>
#include <stdint.h>
io_connect_t IOSurfaceRoot_init(void);
void IOSurfaceRoot_exit(io_connect_t uc);
uint32_t IOSurfaceRoot_create_surface_fast(io_connect_t uc);
kern_return_t IOSurfaceRoot_lookup_surface... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/multicast_bytecopy/exploit/IOGPU.h | null | null | null | null | null | null | C | 2026-05-04T18:44:47.891993 | #ifndef __IOGPU_H__
#define __IOGPU_H__
#include "iokit.h"
#include <mach/mach.h>
#include <stdint.h>
io_connect_t IOGPU_init(void);
void IOGPU_exit(io_connect_t uc);
uint32_t IOGPU_create_command_queue(io_connect_t uc, uint64_t member);
int IOGPU_get_command_queue_extra_refills_needed(void);
#endif
|
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/multicast_bytecopy/exploit/kernel_rw.h | null | null | null | null | null | null | C | 2026-05-04T18:44:48.520980 | #ifndef __KERNEL_RW_H__
#define __KERNEL_RW_H__
#define KERNEL_RW_SIZE_FAKE_ARRAY 0x4000
#include "iokit.h"
void kernel_rw_preinit(uint64_t kaddr, uint8_t *buf, size_t n);
int kernel_rw_init(io_connect_t uc, uint32_t surf_id, int read_pipe, int write_pipe);
uint32_t kread32(uint64_t kaddr);
uint64_t kread64(uint64_... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/kfd/Exploit/libkfd/puaf.h | null | null | null | null | null | null | C | 2026-05-04T18:44:48.568824 | /*
* Copyright (c) 2023 Félix Poulin-Bélanger. All rights reserved.
*/
#ifndef puaf_h
#define puaf_h
// Forward declarations for helper functions.
void puaf_helper_get_vm_map_first_and_last(u64* first_out, u64* last_out);
void puaf_helper_get_vm_map_min_and_max(u64* min_out, u64* max_out);
void puaf_helper_give_ppl... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/multicast_bytecopy/exploit/mcast.c | null | null | null | null | null | null | C | 2026-05-04T18:44:48.795702 | #include "mcast.h"
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <string.h>
int mcast_race_sock;
int mcast_join_group(int ip)
{
struct group_req mreq = { 0 };
struct sockaddr_in6 sin6 = {0};
mreq.gr_interface = 1;
sin6.sin6_len = sizeof(sin6);
sin6.sin6_fam... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/multicast_bytecopy/exploit/exploit.c | null | null | null | null | null | null | C | 2026-05-04T18:44:48.893042 | #include "exploit.h"
#include "iokit.h"
#include "IOGPU.h"
#include "IOSurfaceRoot.h"
#include "kernel_rw.h"
#include "kernel_base.h"
#include "mcast.h"
#include "necp.h"
#include "port_utils.h"
#include "spray.h"
#include <mach/mach.h>
#include <pthread.h>
#include <sys/utsname.h>
#include <sys/socket.h>
#include <s... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/multicast_bytecopy/exploit/necp.c | null | null | null | null | null | null | C | 2026-05-04T18:44:49.106216 | #include "necp.h"
#include <sys/syscall.h>
#include <unistd.h>
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
int necp_open(int flags)
{
return syscall(SYS_necp_open, flags);
}
int necp_client_action(int necp_fd, uint32_t action, uint8_t *client_id, size_t client_id_len, uint8_t *buffer, size_t bu... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/multicast_bytecopy/exploit/necp.h | null | null | null | null | null | null | C | 2026-05-04T18:44:49.205344 | #ifndef __NECP_H__
#define __NECP_H__
#include <stdlib.h>
#include <stdint.h>
int necp_open(int flags);
int necp_client_action(int necp_fd, uint32_t action, uint8_t *client_id, size_t client_id_len, uint8_t *buffer, size_t buffer_size);
#endif
|
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/multicast_bytecopy/exploit/port_utils.c | null | null | null | null | null | null | C | 2026-05-04T18:44:49.955538 | #include "port_utils.h"
#include <mach/mach.h>
#include <stdlib.h>
#pragma clang diagnostic ignored "-Wdeprecated-declarations" // mach_port_destroy
mach_port_t port_new(void)
{
mach_port_options_t options = { .flags = MPO_INSERT_SEND_RIGHT };
mach_port_t port;
mach_port_construct(mach_task_self(), ... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/multicast_bytecopy/exploit/mcast.h | null | null | null | null | null | null | C | 2026-05-04T18:44:49.956599 | #ifndef __MCAST_H__
#define __MCAST_H__
extern int mcast_race_sock;
void mcast_increase_race_reliability(void);
int mcast_join_group(int ip);
#endif
|
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/multicast_bytecopy/exploit/port_utils.h | null | null | null | null | null | null | C | 2026-05-04T18:44:50.068611 | #ifndef __PORT_UTILS_H__
#define __PORT_UTILS_H__
#include <mach/mach.h>
mach_port_t port_new(void);
void port_destroy(mach_port_t p);
void port_deallocate(mach_port_t p);
void port_destroy_n(mach_port_t *p, unsigned int count);
void port_deallocate_n(mach_port_t *p, unsigned int count);
int port_has_msg(mach_port... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/multicast_bytecopy/multicast_bytecopy.h | null | null | null | null | null | null | C | 2026-05-04T18:44:50.566910 | //
// multicast_bytecopy.h
// multicast_bytecopy
//
// Created by Lars Fröder on 27.04.24.
//
#import <Foundation/Foundation.h>
//! Project version number for multicast_bytecopy.
FOUNDATION_EXPORT double multicast_bytecopyVersionNumber;
//! Project version string for multicast_bytecopy.
FOUNDATION_EXPORT const un... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/multicast_bytecopy/exploit/xpaci.h | null | null | null | null | null | null | C | 2026-05-04T18:44:50.599765 | // ptrauth.h replacement
static uint64_t __attribute((naked)) __xpaci(uint64_t a)
{
asm(".long 0xDAC143E0"); // XPACI X0
asm("ret");
}
static uint64_t xpaci(uint64_t a)
{
// If a looks like a non-pac'd pointer just return it
if ((a & 0xFFFFFF0000000000) == 0xFFFFFF0000000000)
{
retu... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/weightBufs/exploit/ANEDirectIn.c | null | null | null | null | null | null | C | 2026-05-04T18:44:50.712756 | #include "ANEDirectIn.h"
kern_return_t do__ANEDirect_ProgramSendRequest(io_connect_t client,mach_port_t port, void *address)
{
uint32_t structInputCnt = 16;
uint32_t structOutputCnt = 0;
IOKit_args_t *args = allocate_args(structInputCnt,structOutputCnt, False);
uint64_t * input = (ui... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/weightBufs/exploit/ANEDirectIn.h | null | null | null | null | null | null | C | 2026-05-04T18:44:51.199749 | #ifndef _H_ANEDIRECTIN_H
#define _H_ANEDIRECTIN_H
#include "iokit.h"
struct H11ANEDeviceInfoStruct {
uint64_t fields[0x58/8];
};
typedef struct
{
uint64_t programHandle;
uint64_t field_8;
unsigned int procedureId;
uint32_t field_14;
uint64_t field_18;
uint64_t ... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/weightBufs/exploit/AppleNeuralEngine/AppleNeuralEngine.h | null | null | null | null | null | null | C | 2026-05-04T18:44:51.305034 | #import <AppleNeuralEngine/_ANEDeviceInfo.h>
#import <AppleNeuralEngine/_ANEDataReporter.h>
#import <AppleNeuralEngine/_ANEProgramForEvaluation.h>
#import <AppleNeuralEngine/_ANEModel.h>
#import <AppleNeuralEngine/_ANEHashEncoding.h>
#import <AppleNeuralEngine/_ANERequest.h>
#import <AppleNeuralEngine/_ANELog.h>
#impor... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/multicast_bytecopy/exploit/kernel_base.h | null | null | null | null | null | null | C | 2026-05-04T18:44:52.922744 | #ifndef __KERNEL_BASE_H__
#define __KERNEL_BASE_H__
#include <mach/mach.h>
#include <stdint.h>
uint64_t kernel_base_from_holder(mach_port_t holder, uint64_t holder_addr);
#endif
|
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/multicast_bytecopy/exploit/iokit.h | null | null | null | null | null | null | C | 2026-05-04T18:44:52.982674 | // Credits: Siguza
// https://github.com/Siguza/iokit-utils/blob/master/src/iokit.h
#ifndef IOKIT_H
#define IOKIT_H
#include <stdint.h>
#include <mach/mach.h>
#include <CoreFoundation/CoreFoundation.h>
typedef char io_name_t[128];
typedef char io_string_t[512];
typedef char io_struct_inband_t[4096];
typedef mach_port... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/multicast_bytecopy/exploit/exploit.h | null | null | null | null | null | null | C | 2026-05-04T18:44:52.999217 | #ifndef __EXPLOIT_H__
#define __EXPLOIT_H__
#include <stdint.h>
void exploitation_cleanup(void);
int exploit_get_krw_and_kernel_base(uint64_t *kernel_base);
#endif
|
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/multicast_bytecopy/exploit/kernel_base.c | null | null | null | null | null | null | C | 2026-05-04T18:44:53.035915 | #include "kernel_base.h"
#include "kernel_rw.h"
#include "port_utils.h"
#include "spray.h"
#include "xpaci.h" // ptrauth.h replacement
#include <stdio.h>
#include <stdint.h>
#include <sys/socket.h>
#include <sys/syscall.h>
#pragma clang diagnostic ignored "-Wdeprecated-declarations" // syscall
uint64_t kernel_base_... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/multicast_bytecopy/exploit/kernel_rw.c | null | null | null | null | null | null | C | 2026-05-04T18:44:53.220747 | #include "kernel_rw.h"
#include "IOSurfaceRoot.h"
static io_connect_t _uc;
static uint32_t _surf_id;
static int _read_pipe;
static int _write_pipe;
static uint64_t _mapped_address;
void kernel_rw_preinit(uint64_t kaddr, uint8_t *buf, size_t n)
{
memset(buf, 0x07, n);
*(uint64_t *)(buf + 0x10 + 0x40) = kaddr... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/multicast_bytecopy/exploit/spray.c | null | null | null | null | null | null | C | 2026-05-04T18:44:54.913758 | #include "spray.h"
#include "necp.h"
#include <mach/mach.h>
#include <stdlib.h>
mach_port_t *spray_data_kalloc_kmsg(uint8_t *data, unsigned int size, unsigned int count)
{
mach_port_t *ports = calloc(sizeof(mach_port_t), count);
mach_port_options_t options = { .flags = MPO_INSERT_SEND_RIGHT };
mach_msg_h... |
opa334/Dopamine | https://github.com/opa334/Dopamine | null | null | null | null | 5,011 | null | null | mit | null | null | null | null | null | null | null | Application/Dopamine/Exploits/multicast_bytecopy/exploit/spray.h | null | null | null | null | null | null | C | 2026-05-04T18:44:55.019561 | #ifndef __SPRAY_H__
#define __SPRAY_H__
#include <mach/mach.h>
#include <stdint.h>
mach_port_t spray_data_kalloc_kmsg_single(uint8_t *data, unsigned int size);
mach_port_t *spray_data_kalloc_kmsg(uint8_t *data, unsigned int size, unsigned int count);
void spray_data_kalloc_kmsg_on_ports(uint8_t *data, unsigned int si... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/display.c | null | null | null | null | null | null | C | 2026-05-04T18:45:00.310397 | extern struct event_loop g_event_loop;
extern int g_connection;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
static DISPLAY_EVENT_HANDLER(display_handler)
{
if (flags & kCGDisplayAddFlag) {
event_loop_post(&g_event_loop, DISPLAY_ADDED, (void *)(intptr_t) did, 0);
... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/display_manager.h | null | null | null | null | null | null | C | 2026-05-04T18:45:00.313923 | #ifndef DISPLAY_MANAGER_H
#define DISPLAY_MANAGER_H
#define DOCK_ORIENTATION_BOTTOM 2
#define DOCK_ORIENTATION_LEFT 3
#define DOCK_ORIENTATION_RIGHT 4
enum display_arrangement_order
{
DISPLAY_ARRANGEMENT_ORDER_DEFAULT,
DISPLAY_ARRANGEMENT_ORDER_X,
DISPLAY_ARRANGEMENT_ORDER_Y
};
static const char *disp... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/display_manager.c | null | null | null | null | null | null | C | 2026-05-04T18:45:00.322609 | extern struct display_manager g_display_manager;
extern struct window_manager g_window_manager;
extern int g_connection;
bool display_manager_query_displays(FILE *rsp, uint64_t flags)
{
TIME_FUNCTION;
int count;
uint32_t *display_list = display_manager_active_display_list(&count);
if (!display_list) r... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/event_signal.h | null | null | null | null | null | null | C | 2026-05-04T18:45:00.329929 | #ifndef EVENT_SIGNAL_H
#define EVENT_SIGNAL_H
enum signal_type
{
SIGNAL_TYPE_UNKNOWN,
SIGNAL_APPLICATION_LAUNCHED,
SIGNAL_APPLICATION_TERMINATED,
SIGNAL_APPLICATION_FRONT_SWITCHED,
SIGNAL_APPLICATION_ACTIVATED,
SIGNAL_APPLICATION_DEACTIVATED,
SIGNAL_APPLICATION_VISIBLE,
SIGNAL_APPLICAT... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/event_loop.h | null | null | null | null | null | null | C | 2026-05-04T18:45:00.337050 | #ifndef EVENT_LOOP_H
#define EVENT_LOOP_H
#define EVENT_HANDLER(event_type) void EVENT_HANDLER_##event_type(void *context, int param1)
#define EVENT_TYPE_LIST \
EVENT_TYPE_ENTRY(APPLICATION_LAUNCHED) \
EVENT_TYPE_ENTRY(APPLICATION_TERMINATED) \
EVENT_TYPE_ENTRY(APPLICATION_FRONT_SWITCHED) \
EVENT_TYPE... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/event_loop.c | null | null | null | null | null | null | C | 2026-05-04T18:45:00.338554 | extern struct event_loop g_event_loop;
extern struct process_manager g_process_manager;
extern struct display_manager g_display_manager;
extern struct space_manager g_space_manager;
extern struct window_manager g_window_manager;
extern struct mouse_state g_mouse_state;
extern enum mission_control_mode g_mission_control... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/application.h | null | null | null | null | null | null | C | 2026-05-04T18:45:00.339997 | #ifndef APPLICATION_H
#define APPLICATION_H
#define OBSERVER_CALLBACK(name) void name(AXObserverRef observer, AXUIElementRef element, CFStringRef notification, void *context)
typedef OBSERVER_CALLBACK(observer_callback);
#define AX_APPLICATION_WINDOW_CREATED_INDEX 0
#define AX_APPLICATION_WINDOW_FOCUSED_INDEX ... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/event_signal.c | null | null | null | null | null | null | C | 2026-05-04T18:45:00.340496 | extern struct signal *g_signal_event[SIGNAL_TYPE_COUNT];
extern struct memory_pool g_signal_storage;
extern struct process_manager g_process_manager;
extern struct display_manager g_display_manager;
extern struct space_manager g_space_manager;
extern struct window_manager g_window_manager;
static bool event_signal_fil... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/display.h | null | null | null | null | null | null | C | 2026-05-04T18:45:00.359726 | #ifndef DISPLAY_H
#define DISPLAY_H
#define DISPLAY_EVENT_HANDLER(name) void name(uint32_t did, CGDisplayChangeSummaryFlags flags, void *context)
typedef DISPLAY_EVENT_HANDLER(display_callback);
#define DISPLAY_PROPERTY_LIST \
DISPLAY_PROPERTY_ENTRY("id", DISPLAY_PROPERTY_ID, 0x01) \
DISPLAY_PRO... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/application.c | null | null | null | null | null | null | C | 2026-05-04T18:45:00.389539 | extern struct event_loop g_event_loop;
extern volatile bool __pending_window_focus;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
static OBSERVER_CALLBACK(application_notification_handler)
{
if (CFEqual(notification, kAXCreatedNotification)) {
event_loop_post(&g_event_... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/misc/hashtable.h | null | null | null | null | null | null | C | 2026-05-04T18:45:01.394060 | #ifndef HASHTABLE_H
#define HASHTABLE_H
#define TABLE_HASH_FUNC(name) unsigned long name(void *key)
typedef TABLE_HASH_FUNC(table_hash_func);
#define TABLE_COMPARE_FUNC(name) int name(void *key_a, void *key_b)
typedef TABLE_COMPARE_FUNC(table_compare_func);
struct bucket
{
void *key;
void *value;
struct ... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/misc/macho_dlsym.h | null | null | null | null | null | null | C | 2026-05-04T18:45:01.395695 | static struct mach_header_64 *macho_find_image_header(char *target_name, uint64_t *slide)
{
int image_count = _dyld_image_count();
for (int i = 0; i < image_count; ++i) {
const char *image_name = _dyld_get_image_name(i);
if (!image_name) continue;
if (string_equals(image_name, target_n... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/misc/extern.h | null | null | null | null | null | null | C | 2026-05-04T18:45:01.396585 | #define CONNECTION_CALLBACK(name) void name(uint32_t type, void *data, size_t data_length, void *context, int cid)
typedef CONNECTION_CALLBACK(connection_callback);
static mach_port_t (* CGSGetConnectionPortById)(int);
extern mach_port_t mig_get_special_reply_port(void);
extern AXUIElementRef _AXUIElementCreateWithRem... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/misc/autorelease.h | null | null | null | null | null | null | C | 2026-05-04T18:45:01.397806 | #include <objc/runtime.h>
IMP g_nsobject_autorelease;
IMP g_nsautoreleasepool_drain;
IMP g_nsautoreleasepool_release;
@implementation NSObject(swizzle)
- (NSObject *)fake_autorelease
{
void *addr[40];
int frame_count = backtrace(addr, sizeof(addr)/sizeof(*addr));
if (frame_count > 1) {
char **syms... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/misc/log.h | null | null | null | null | null | null | C | 2026-05-04T18:45:01.398808 | #ifndef LOG_H
#define LOG_H
extern bool g_verbose;
static inline void
debug(const char *format, ...)
{
if (!g_verbose) return;
va_list args;
va_start(args, format);
vfprintf(stdout, format, args);
va_end(args);
}
static inline void
warn(const char *format, ...)
{
va_list args;
va_start(a... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/message.h | null | null | null | null | null | null | C | 2026-05-04T18:45:01.399750 | #ifndef MESSAGE_H
#define MESSAGE_H
void handle_message(FILE *rsp, char *message);
bool message_loop_begin(char *socket_path);
#endif
|
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/mission_control.c | null | null | null | null | null | null | C | 2026-05-04T18:45:02.800892 | extern struct event_loop g_event_loop;
extern enum mission_control_mode g_mission_control_mode;
extern volatile uint64_t __last_cmd_tab_time;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
static CONNECTION_CALLBACK(connection_handler)
{
if (type == 1204) {
event_loop_p... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/misc/notify.h | null | null | null | null | null | null | C | 2026-05-04T18:45:02.932411 | #import <Foundation/Foundation.h>
#import <objc/runtime.h>
static bool g_notify_init;
static NSImage *g_notify_img;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
@interface NotifyDelegate : NSObject <NSUserNotificationCenterDelegate>
@end
@implementation NotifyDelegate
-... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/misc/service.h | null | null | null | null | null | null | C | 2026-05-04T18:45:03.047265 | #ifndef SERVICE_H
#define SERVICE_H
#define _PATH_LAUNCHCTL "/bin/launchctl"
#define _NAME_YABAI_PLIST "com.asmvik.yabai"
#define _PATH_YABAI_PLIST "%s/Library/LaunchAgents/"_NAME_YABAI_PLIST".plist"
#define _YABAI_PLIST \
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" \
"<!DOCTYPE plist PUBLIC \"-//Apple//... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/misc/sbuffer.h | null | null | null | null | null | null | C | 2026-05-04T18:45:03.064323 | #ifndef SBUFFER_H
#define SBUFFER_H
struct buf_hdr
{
int len;
int cap;
char buf[0];
};
#define buf__hdr(b) ((struct buf_hdr *)((char *)(b) - offsetof(struct buf_hdr, buf)))
#define buf__should_grow(b, n) (buf_len(b) + (n) >= buf_cap(b))
#define buf__fit(b, n) (buf__should_grow(b, n) ? ((b) = buf__grow_f(b... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/misc/ts.h | null | null | null | null | null | null | C | 2026-05-04T18:45:03.176954 | #ifndef TS_H
#define TS_H
static struct {
void *memory;
uint64_t size;
volatile uint64_t used;
} g_temp_storage;
bool ts_init(uint64_t size)
{
int page_size = getpagesize();
uint64_t num_pages = size / page_size;
uint64_t remainder = size % page_size;
if (remainder) num_pages++;
g_te... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/misc/timer.h | null | null | null | null | null | null | C | 2026-05-04T18:45:03.251568 | #ifndef TIMER_H
#define TIMER_H
#if PROFILE >= 1
#include <stdint.h>
#include <stdio.h>
struct profile_anchor
{
uint64_t tsc_elapsed_exclusive;
uint64_t tsc_elapsed_inclusive;
uint64_t hit_count;
char const *label;
};
static struct
{
uint64_t begin_tsc;
uint64_t end_tsc;
struct profile_an... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/mouse_handler.c | null | null | null | null | null | null | C | 2026-05-04T18:45:03.281575 | extern struct event_loop g_event_loop;
extern volatile bool __pending_gesture;
extern volatile uint64_t __last_gesture_time;
static inline uint8_t mouse_mod_from_cgflags(uint32_t cgflags)
{
uint8_t flags = 0;
if ((cgflags & kCGEventFlagMaskAlternate) == kCGEventFlagMaskAlternate) flags |= MOUSE_MOD_ALT;
... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/mouse_handler.h | null | null | null | null | null | null | C | 2026-05-04T18:45:03.450028 | #ifndef MOUSE_H
#define MOUSE_H
#define MOUSE_EVENT_MASK_FFM (1 << kCGEventMouseMoved) | \
(1 << kCGEventLeftMouseDown) | \
(1 << kCGEventLeftMouseUp) | \
(1 << kCGEventLeftMouseDragged) | \
(1 << kCGEve... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/osax/common.h | null | null | null | null | null | null | C | 2026-05-04T18:45:03.581707 | #ifndef SA_COMMON_H
#define SA_COMMON_H
#define SA_SOCKET_PATH_FMT "/tmp/yabai-sa_%s.socket"
#define SA_SOCKET_BUFF_LEN 0x1000
#define OSAX_VERSION "2.1.29"
#define OSAX_ATTRIB_DOCK_SPACES 0x01
#define OSAX_ATTRIB_DPPM 0x02
#define OSAX_ATTRIB_ADD_SPACE 0x04
#define OSAX_ATTRIB_RE... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/process_manager.h | null | null | null | null | null | null | C | 2026-05-04T18:45:03.666300 | #ifndef PROCESS_MANAGER_H
#define PROCESS_MANAGER_H
#define PROCESS_EVENT_HANDLER(name) OSStatus name(EventHandlerCallRef ref, EventRef event, void *context)
typedef PROCESS_EVENT_HANDLER(process_event_handler);
struct process
{
ProcessSerialNumber psn;
pid_t pid;
char *name;
void *ns_application;
... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/process_manager.c | null | null | null | null | null | null | C | 2026-05-04T18:45:03.696021 | extern struct event_loop g_event_loop;
extern void *g_workspace_context;
static TABLE_HASH_FUNC(hash_psn)
{
return ((ProcessSerialNumber *) key)->lowLongOfPSN;
}
static TABLE_COMPARE_FUNC(compare_psn)
{
return psn_equals(key_a, key_b);
}
static const char *process_name_blacklist[] =
{
"Übersicht",
"... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/rule.c | null | null | null | null | null | null | C | 2026-05-04T18:45:03.867639 | extern struct space_manager g_space_manager;
extern struct window_manager g_window_manager;
void rule_serialize(FILE *rsp, struct rule *rule, int index)
{
TIME_FUNCTION;
char *app = rule->app;
char *title = rule->title;
char *role = rule->role;
char *srole = rule->subrole;
char *escaped_ap... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/rule.h | null | null | null | null | null | null | C | 2026-05-04T18:45:03.903122 | #ifndef RULE_H
#define RULE_H
#define RULE_PROP_UD 0
#define RULE_PROP_ON 1
#define RULE_PROP_OFF 2
enum rule_flag
{
RULE_APP_VALID = 0x001,
RULE_TITLE_VALID = 0x002,
RULE_ROLE_VALID = 0x004,
RULE_SUBROLE_VALID = 0x008,
RULE_APP_EXCLUDE = 0x010,
RULE_TITLE_EXCLUDE = 0x... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/sa.h | null | null | null | null | null | null | C | 2026-05-04T18:45:03.904342 | #ifndef SA_H
#define SA_H
extern unsigned char __src_osax_payload[];
extern unsigned int __src_osax_payload_len;
extern unsigned char __src_osax_loader[];
extern unsigned int __src_osax_loader_len;
int scripting_addition_load(void);
int scripting_addition_uninstall(void);
bool scripting_addition_create_space(uint64_... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/space.h | null | null | null | null | null | null | C | 2026-05-04T18:45:04.466781 | #ifndef SPACE_H
#define SPACE_H
uint32_t space_display_id(uint64_t sid);
uint32_t *space_window_list_for_connection(uint64_t *space_list, int space_count, int cid, int *count, bool include_minimized);
uint32_t *space_window_list(uint64_t sid, int *count, bool include_minimized);
bool space_is_user(uint64_t sid);
bool ... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/space.c | null | null | null | null | null | null | C | 2026-05-04T18:45:04.581732 | extern int g_connection;
inline uint32_t space_display_id(uint64_t sid)
{
CFStringRef uuid_string = SLSCopyManagedDisplayForSpace(g_connection, sid);
if (!uuid_string) return 0;
CFUUIDRef uuid = CFUUIDCreateFromString(NULL, uuid_string);
uint32_t id = CGDisplayGetDisplayIDFromUUID(uuid);
CFReleas... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/space_manager.c | null | null | null | null | null | null | C | 2026-05-04T18:45:04.595643 | extern struct window_manager g_window_manager;
extern int g_connection;
static TABLE_HASH_FUNC(hash_view)
{
return *(uint64_t *) key;
}
static TABLE_COMPARE_FUNC(compare_view)
{
return *(uint64_t *) key_a == *(uint64_t *) key_b;
}
bool space_manager_query_space(FILE *rsp, uint64_t sid, uint64_t flags)
{
... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/space_manager.h | null | null | null | null | null | null | C | 2026-05-04T18:45:04.727175 | #ifndef SPACE_MANAGER
#define SPACE_MANAGER
struct space_label
{
uint64_t sid;
char *label;
};
struct space_manager
{
struct table view;
uint64_t current_space_id;
uint64_t last_space_id;
bool did_begin;
enum view_type layout;
int top_padding;
int bottom_padding;
int left_paddi... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/view.c | null | null | null | null | null | null | C | 2026-05-04T18:45:04.788994 | extern int g_connection;
extern struct display_manager g_display_manager;
extern struct space_manager g_space_manager;
extern struct window_manager g_window_manager;
#define INSERT_FEEDBACK_WIDTH 2
#define INSERT_FEEDBACK_RADIUS 9
void insert_feedback_show(struct window_node *node)
{
CFTypeRef frame_region;
CG... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/window.c | null | null | null | null | null | null | C | 2026-05-04T18:45:04.876271 | extern struct window_manager g_window_manager;
extern int g_layer_normal_window_level;
extern int g_layer_below_window_level;
extern int g_layer_above_window_level;
extern int g_connection;
bool window_observe(struct window *window)
{
for (int i = 0; i < array_count(ax_window_notification); ++i) {
AXError ... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/window.h | null | null | null | null | null | null | C | 2026-05-04T18:45:05.056531 | #ifndef WINDOW_H
#define WINDOW_H
const CFStringRef kAXFullscreenAttribute = CFSTR("AXFullScreen");
#define AX_WINDOW_MINIMIZED_INDEX 0
#define AX_WINDOW_DEMINIMIZED_INDEX 1
#define AX_WINDOW_DESTROYED_INDEX 2
#define AX_WINDOW_DESTROYED (1 << AX_WINDOW_DESTROYED_INDEX)
#define AX_WINDOW_MINIMIZED ... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/workspace.h | null | null | null | null | null | null | C | 2026-05-04T18:45:05.190542 | #ifndef WORKSPACE_H
#define WORKSPACE_H
#define SUPPORTED_MACOS_VERSION_LIST \
SUPPORT_MACOS_VERSION(tahoe, 26) \
SUPPORT_MACOS_VERSION(sequoia, 15) \
SUPPORT_MACOS_VERSION(sonoma, 14) \
SUPPORT_MACOS_VERSION(ventura, 13) \
SUPPORT_MACOS_VERSION(monterey, 12) \
SUPPORT_MACOS_VERSION(b... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/window_manager.h | null | null | null | null | null | null | C | 2026-05-04T18:45:05.247295 | #ifndef WINDOW_MANAGER_H
#define WINDOW_MANAGER_H
#define kCPSAllWindows 0x100
#define kCPSUserGenerated 0x200
#define kCPSNoWindows 0x400
enum window_op_error
{
WINDOW_OP_ERROR_SUCCESS,
WINDOW_OP_ERROR_INVALID_SRC_VIEW,
WINDOW_OP_ERROR_INVALID_SRC_NODE,
WINDOW_OP_ERROR_INVALID_DST_VIEW,
WI... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/yabai.c | null | null | null | null | null | null | C | 2026-05-04T18:45:05.393052 | #define SA_SOCKET_PATH_FMT "/tmp/yabai-sa_%s.socket"
#define SOCKET_PATH_FMT "/tmp/yabai_%s.socket"
#define LCFILE_PATH_FMT "/tmp/yabai_%s.lock"
#define SCRPT_ADD_LOAD_OPT "--load-sa"
#define SCRPT_ADD_UNINSTALL_OPT "--uninstall-sa"
#define SERVICE_INSTALL_OPT "--install-service"
#define ... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | tests/src/area.c | null | null | null | null | null | null | C | 2026-05-04T18:45:05.495156 | struct test_area
{
struct area area;
CGPoint area_max;
};
static inline void init_test_display_list(struct test_area display_list[3])
{
display_list[0].area.x = 0;
display_list[0].area.y = 0;
display_list[0].area.w = 2560;
display_list[0].area.h = 1440;
display_list[0].area_max = ar... |
asmvik/yabai | https://github.com/asmvik/yabai | null | null | null | null | 28,791 | null | null | mit | null | null | null | null | null | null | null | src/view.h | null | null | null | null | null | null | C | 2026-05-04T18:45:05.513866 | #ifndef VIEW_H
#define VIEW_H
#define AX_ABS(a, b) (((a) - (b) < 0) ? (((a) - (b)) * -1) : ((a) - (b)))
#define AX_DIFF(a, b) (AX_ABS(a, b) >= 1.5f)
#define SPACE_PROPERTY_LIST \
SPACE_PROPERTY_ENTRY("id", SPACE_PROPERTY_ID, 0x001) \
SPACE_PROPERTY_ENTRY("uuid", SP... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.