aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libc_compat/ubuntu_14/glibc.h
blob: fdabcb015817a2ac7c1c7099744d01f0d451ff9b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

typedef unsigned long (*TGetAuxVal)(unsigned long);

namespace NUbuntuCompat {
    class TGlibc {
    public:
        TGlibc() noexcept;
        ~TGlibc() noexcept;
        unsigned long GetAuxVal(unsigned long item) noexcept;
        bool IsSecure() noexcept;

    private:
        void* AuxVectorBegin;
        void* AuxVectorEnd;
        bool Secure;
    };

    TGlibc& GetGlibc() noexcept;
}