If i understand correctly when user tries to execute dynamically linked executable (with execve(“foo”, “”, “”)) instead of loading text segment of “foo” dynamic linker is loaded (ld-linux.so.2) and executed. It have to load libraries required for program (“foo”) to run and change some addresses in “foo” and pass control to foo, but how is this acomplished? How (what system
Tag: c++
serial port: bytes from device all have their most significant bit = 0
guys tell me please what can be a problem – i send commands (sequence of bytes including bytes with most significant bit (MSB) = 1) to device through serial port, device successfully recognize the commands (so it seems all bytes are sent correct) and reply with almost correct answer. “Almost” here means than answer is correct except that all bytes
Semaphores and Mutex behaviour doubts
Do semaphores and mutexes synchronize both threads and processes, or only threads, or only processes? Edit: my mistake it’s C, not shell. Since I programmed through the shell I mistook it. And one more thing: are communication and synchronization the same? Answer SysV IPC semaphores synchronize between processes. With POSIX semaphores, you can choose via the pshared argument to sem_init(3)
Linux chat server with c# [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 years ago. Improve this question I am quite new in programming so i’m looking for some advice. Basically I learn C# on win8 until last
sys/types.h: No such file or directory
I am trying to compile module but get this error. Here is my module file headers And my Makefile I have tried to search for this file Here are results I tried to set it as #include “/usr/include/sys/types.h” but got following error I am using Kali Linux(Debian) AMD64 platform What is wrong ? Thanks SOLVED Sorry this was my fault,
SSE: unaligned load and store that crosses page boundary
I read somewhere that before performing unaligned load or store next to page boundary (e.g. using _mm_loadu_si128 / _mm_storeu_si128 intrinsics), code should first check if whole vector (in this case 16 bytes) belongs to the same page, and switch to non-vector instructions if not. I understand that this is needed to prevent coredump if next page does not belong to
C Corrupted double-linked list after calling chdir
I’ve been working on some C code to provide functionality similar to the shell. So far it can run most commands like cat, ls, ls | grep …, etc. After writing code to implement the functions “cd”, “pwd”, “pushd” and “popd”, I have been testing it. If I write “cd ..” or “cd anydir” it will run “chdir(anydir)” and return
Connect issue using IPv6 on Unity3D UNET server
I am deploying dedicated server made on UNET and when I start server I try to get list of all IPs (both IPv4 and IPv6). My server is deployed on a Linux server on DigitalOcean with IPv6 support enabled, server can be pinged via IPv6 address. When I connect via IPv4 from client to server (from NetworkClient to NetworkServer) –
Segmentation fault while trying to return a pointer to object from a method
g++ throw me ‘segmentation fault’ while I’m trying to return an object of a classB from a method of a classA. I don’t know how to fix this error, if anybody can tell me why this error happens, I would be grateful. So… here is the code: classA.h classA.cpp classB.h classB.cpp main.cpp Makefile SRC = src INC = include OBJ
glibc ( or libc6 ) library version
I am trying to figure out what is the correlation between the version from “GCC->ABI Policy” and the version from ldd –version From ABI Policy and Guidelines I see that for my GCC 4.8.4 I should have: When I run ldd –version I get: I don’t understand the corelation between this two version numbers. I would like to upgrade to