What is better “int 0x80” or “syscall” in 32-bit code on Linux?

syscall is the default way of entering kernel mode on x86-64. This instruction is not available in 32 bit modes of operation on Intel processors. sysenter is an instruction most frequently used to invoke system calls in 32 bit modes of operation. It is similar to syscall, a bit more difficult to use though, but … Read more

Converting a pointer into an integer

I’d say this is the modern C++ way: #include <cstdint> void *p; auto i = reinterpret_cast<std::uintptr_t>(p); EDIT: The correct type to the the Integer So the right way to store a pointer as an integer is to use the uintptr_t or intptr_t types. (See also in cppreference integer types for C99). These types are defined … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)