Skip to content

Commit cf11892

Browse files
committed
syscall
1 parent 11296fd commit cf11892

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

ydb/library/yql/tools/udf_resolver/udf_resolver.cpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include <sys/resource.h>
3232
#include <sys/syscall.h>
3333
#include <sys/socket.h>
34+
#include <sys/stat.h>
3435
#ifndef GRND_RANDOM
3536
#include <sys/random.h>
3637
#endif
@@ -54,6 +55,23 @@
5455
#endif
5556
#endif
5657

58+
59+
#if !defined(SYS_newfstatat)
60+
#if defined(__x86_64__)
61+
#define SYS_newfstatat 262
62+
#elif defined(__i386__)
63+
#error Unsupported syscall
64+
#elif defined(__aarch64__)
65+
#define SYS_newfstatat 79
66+
#elif defined(__arm__)
67+
#error Unsupported syscall
68+
#elif defined(__powerpc__)
69+
#define SYS_newfstatat 291
70+
#else
71+
#error Unsupported platform
72+
#endif
73+
#endif
74+
5775
#endif
5876

5977
using namespace NKikimr;
@@ -378,6 +396,7 @@ int main(int argc, char **argv) {
378396
Allow(munlockall),
379397
Allow(munmap),
380398
Allow(nanosleep),
399+
Allow(newfstatat),
381400
#ifndef _arm64_
382401
Allow(open),
383402
#endif

0 commit comments

Comments
 (0)