Skip to content

Commit

Permalink
syscall
Browse files Browse the repository at this point in the history
  • Loading branch information
vitstn committed Oct 24, 2024
1 parent 11296fd commit cf11892
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions ydb/library/yql/tools/udf_resolver/udf_resolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <sys/resource.h>
#include <sys/syscall.h>
#include <sys/socket.h>
#include <sys/stat.h>
#ifndef GRND_RANDOM
#include <sys/random.h>
#endif
Expand All @@ -54,6 +55,23 @@
#endif
#endif


#if !defined(SYS_newfstatat)
#if defined(__x86_64__)
#define SYS_newfstatat 262
#elif defined(__i386__)
#error Unsupported syscall
#elif defined(__aarch64__)
#define SYS_newfstatat 79
#elif defined(__arm__)
#error Unsupported syscall
#elif defined(__powerpc__)
#define SYS_newfstatat 291
#else
#error Unsupported platform
#endif
#endif

#endif

using namespace NKikimr;
Expand Down Expand Up @@ -378,6 +396,7 @@ int main(int argc, char **argv) {
Allow(munlockall),
Allow(munmap),
Allow(nanosleep),
Allow(newfstatat),
#ifndef _arm64_
Allow(open),
#endif
Expand Down

0 comments on commit cf11892

Please sign in to comment.