• 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]
timeout on write() for linux pipe
How can I set timeout for write() on linux pipe ? example code: int fd_pipe = open("/run/some/...
[2 replies] Last: 1. use non-blocking file descriptors 2. use asynchronous i/o 3. submit... (by kbw)
by AL88
What libraries for file search
What libraries would i need to write a file searching program for linux? Thanks.
[10 replies] Last: https://stackoverflow.com/questions/4553012/checking-if-a-file-is-a-di... (by newbieg)
by elb
unix C++ solution to getch() question
This post asks about the equivalent of getch() from <conio.h>. http://www.cplusplus.com/forum/unices...
[3 replies] Last: You need to test if the input stream has anything to read. You can do... (by kbw)
Fork and execute (1,2)
Hi, so I'm slowly trying to wrap my head around creating my own shell simulator. As far as I can und...
[20 replies] Last: Thanks for responding to this! I always want to know how to better cod... (by jjordan33)
error linking boost library to cmake
I am trying to link boost library to my c++ project using cmake. Here is the cmakelists.txt file: c...
[1 reply] : you are not linking against boost libraries target_link_libraries(${... (by ne555)
making member required
I have a struct : struct Vector { vector<pair<int,int>> pnts; int ind; } When i use this struct...
[1 reply] : It's hard to figure out what you are trying to do. Could you give us ... (by elb)
by FoxMan
XML booleans and loops proccesed on C++
I have an XML file that contains a structure with loops and booleans expressions, but as this XML fi...
[1 reply] : I need to interpret this Right: there's your starting place. There ... (by mbozzi)
Run batch file from a c progam in linux
Hi, this is going to sound like a pointless question since it should be easily tested myself, but he...
[9 replies] Last: You're correct. I was confused about directions. (by jjordan33)
by HJ3475
Bit management with bool
Hi! I have written this code, but I'm not sure that it's right because my program cannot compile, I ...
[2 replies] Last: @HJ33475, do NOT edit your post and remove your code. That is rude an... (by Furry Guy)
race conditions in libcurl under valgrind
Hello everyone! I am executing the following libcurl example under valgrind(helgrind) https://...
[1 reply] : these kinds of tools are known for false alarms, which can be mitigate... (by jonnin)
Mutual lock Problem
Hi guys.I am working on a problem where I have 3 processes and they communicate with shared memory.I...
[5 replies] Last: @coder777 Thank you very much for the explanation! (by Zivojin)
Creating a CLI shell
Hi, has anyone ever created their own command line shell using a C language? I was reading the sylla...
[2 replies] Last: Yeah it really is. I was expecting way more difficulty. (by jjordan33)
rotating vector c++
I have 3 vectors right now i have determined which vector is at conterclockwise direction by using c...
[1 reply] : > rotate this vector till it don't concide with the vector w I don't u... (by ne555)
How to program in Android in C++ using Code locks from Windows
Hello. Some time ago I have programmed a símple app as a Linux app using busybox tools and a Compil...
[2 replies] Last: Thanks. I will try it. I need to learn that there are some Microsoft f... (by enriquemesa8080)
Exec arguments not providing expected results [Linux/C++]
I'm implementing two programs which will act as ALU and CPU,The CPU will read inputs from a file as ...
[5 replies] Last: Why not use execl() instead? if(pid==0) { execl(path, arg1.c_str()... (by dhayden)
Help with File Descriptor?...
Hello Guys! Im using file descriptor but.. i've tryied to new line with no success :/ Is there a pos...
[4 replies] Last: Line 10 and 11. Check the last parameter. Review the meaning of s... (by mbozzi)
Best text editor for programming in multiple languages with vim emulation???5c
Another reddit thread spam poster. https://www.reddit.com/r/linux_programming/comments/e7vgql/best_...
[1 reply] : Visual Studio Code (based on Atom) is pretty good if you need a simple... (by kbw)
Sending 3 arguments from one program to another using execvp? Error?
Hi everyone, I'm creating an ALU and CPU ALU's job is to receive 3 arguments from CPU and compu...
[6 replies] Last: exec... take the exe name as the first arg, but also the first arg in ... (by kbw)
How to write the data in txt file into other txt file
I am working on reading the data from one file "file1.txt" having format 0 0.0003 0.0006 -0....
[4 replies] Last: Another version: #include <iostream> #include <fstream> void output_... (by againtry)
  Archived months: [dec2019]