• Forum
  • UNIX/Linux Programming

UNIX/Linux Programming

by admin
Welcome to this board!
 
Welcome to the forum for UNIX and Linux programmers in C++.com! In this forum, users can to talk ab...
[no replies]
semaphores
 
What do these lines of code mean (each separately). It is said that here we set the semaphore to -1 ...
[1 reply] : Take a look at this: https://www.tutorialspoint.com/unix_system_calls... (by coder777)
undefined reference to shared object function
 
hi to all , i've codeblocks 20 in centos 7. I am building a small project in which i build a libdate...
[4 replies] Last: [quote=salem c]Also, you shouldn't be putting your own headers and lib... (by keskiverto)
Beej network programming example - unable to receive packets
 
I'm trying to work through https://beej.us/guide/bgnet/html//#datagram I have two computers each usi...
[8 replies] Last: well, this is your problem. I don't care what book it came from but i... (by jonnin)
rand() array
 
I have 7 arrays and 7 threads. I get 7 ID for all threads. ID are different but arrays have the same...
[3 replies] Last: If you don't want unnecessary sleeping, also consider rand_r which can... (by Ganado)
Linux flle structures (1,2)
 
Hi guys I'll start of by saying I'm pretty new to Linux, on windows all files have a signature or m...
[21 replies] Last: Check this out: https://en.wikipedia.org/wiki/List_of_file_signatures ... (by agent max)
by EmanCS
measuring running time inside loop
 
HI I want to measure the running time of function run() in two different parameters A and M. If I c...
[10 replies] Last: ^^^ it depends, of course. 1) caching matters (a LOT) but if you meas... (by jonnin)
Duplicate Data Off Socket - Perhaps?
 
Hi All, I'm new to C++ programming and found myself, despite much googling very confused into a lit...
[2 replies] Last: Thank you Salem C. Post Updated to suit. I've resolved the issue toda... (by ainsley1006)
getpid() checking of code
 
I need to get pid for every processes. In process I get sum of every arrays. In the I get max sum. I...
[1 reply] : We did this already, and the code looks no different to last time. htt... (by salem c)
Where belongs custom header files?
 
In which directory at best I would move private header files so that the compiler find it by default...
[5 replies] Last: Both #include "foo" and #include <foo> seek from multiple paths. ... (by keskiverto)
by tmvaz
Changing mic levels through C++
 
I'd like to create a simple program on Linux in order to adjust and fix the microphone level setting...
[1 reply] : What OS and compiler are you using? Depending on your OS, you can jus... (by agent max)
/usr/src linux is shared among many side-by-side Linuxes
 
How is it if /usr/src linux is shared among many side-by-side Linuxes installation
[7 replies] Last: Or 69, or maybe even Turboencabulator...it's hard to say really. (by agent max)
"Copy" buffer?
 
Hi. I have a small console program which creates a password for a user. Right now it is running on W...
[18 replies] Last: It definitely gets complicated. Therein lies the challenge. Thx for t... (by rudystella)
Can't run c++ db app with desktop link in Linux
 
I'v never seen this before, but when I try to launch a database application from a desktop link (in...
[3 replies] Last: In Unix/Linux, you use https://man7.org/linux/man-pages/man2/getcwd.2.... (by salem c)
sudoku prog problem
 
void sudoku::Inf2() { cout << "sudoku::Inf2()" << endl; for (int i = 0; i < 9; i++){ ...
[12 replies] Last: its submitted already, i couldn't get it to work properly. (by function0353)
by thmm
The Art of Unix Programming
 
The ebook "The Art of Unix Programming by Eric Steven Raymond" is free for online reading. http://w...
[3 replies] Last: Good book, but note it's about design, not implementation: [quote=esr]... (by mbozzi)
Finding Device driver source code
 
Hi guys, I'm using a 64 bit Debian system(ubuntu). I have a wireless card plugged into my compute...
[3 replies] Last: Have you ever written or ever needed to actually write a driver in yo... (by dutch)
To clean up all Linux orphan links
 
How to clean up all orphan symbolic links by shell CLI ?
[3 replies] Last: Some distros provide Linux file utility: symlinks Title =sym... (by keskiverto)
Product dll with gcc
 
Hello, I would like to produce with gcc a linux special dll file (PE AND NOT ELF format) and use f...
[1 reply] : I would suggest to use code blocks in both cases. That would make it e... (by coder777)
by EmanCS
array of timespec handling
 
Hi I have a code that call a function then measure the average runtime int main() { int numOfRun =5;...
[3 replies] Last: Is it better to use double or long double Just use double. Dependin... (by Ganado)
  Archived months: [apr2021]