aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libc_compat/ubuntu_14/glibc.h
blob: fa8f7dd013697f5c94bd32d3cfdf43fba0902475 (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;
};