Files
UnrealEngine/Engine/Source/ThirdParty/IOS/Interpose/Interpose.cpp
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

13 lines
398 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include <fcntl.h>
typedef int (*p_creat) (const char* path, mode_t mode);
static int replacement_creat(const char* path, mode_t mode)
{
return creat(path, mode);
}
__attribute__((used)) static struct{ p_creat replacement; p_creat replacee; } interpose_creat
__attribute__ ((section ("__DATA,__interpose"))) = { replacement_creat, creat };