#pragma once

#include <stdint.h>

#define STDIN   0
#define STDOUT  1
#define STDERR  2

#define FALSE   0
#define TRUE    1
typedef char BOOL;

typedef uint32_t ipv4_t;
typedef uint16_t port_t;

#define LOADER_LITTLE_ENDIAN

#define ATOMIC_ADD(ptr,i) __sync_fetch_and_add((ptr),i)
#define ATOMIC_SUB(ptr,i) __sync_fetch_and_sub((ptr),i)
#define ATOMIC_INC(ptr) ATOMIC_ADD((ptr),1)
#define ATOMIC_DEC(ptr) ATOMIC_SUB((ptr),1)
#define ATOMIC_GET(ptr) ATOMIC_ADD((ptr),0)

#define VERIFY_STRING_HEX   "\\x6b\\x61\\x6d\\x69"
#define VERIFY_STRING_CHECK "kami"

#define TOKEN_QUERY     "/bin/busybox daddyl33t"
#define TOKEN_RESPONSE  "daddyl33t: applet not found"

#define EXEC_QUERY     "/bin/busybox t33lyddad"
#define EXEC_RESPONSE  "t33lyddad: applet not found"

#define FN_DROPPER  "3@AsDACGa"
#define FN_BINARY   "WsGA4@F6F"

extern char *id_tag;
