• 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 about any topic related to programming in C++ for UNIX and Lin...
[no replies]
Detached thread error in helgrind
 
Hello everyone! I am implementing a detached thread using pthreads. After I run the code under helgrind, it reports a race condition and I think it might be ...
[7 replies] Last: If line 34 executes before line 12, then finished will never be set. ... (by kigar64551)
by t im
Can select use ET mode?
 
Several blogs tell me that only LT mode can be used in select while both LT and ET mode can be used in epoll. I wonder why ET mode cannot be used in select. ...
[2 replies] Last: Sorry for no references and thanks for your helpful reply. (by t im)
How to merge two partitions by using gdisk
 
How to merge two partitions, one is system, the lower offset, and the other destroyable content, the adjacent higher offset, by using gdisk (preferably if none ...
[3 replies] Last: Lets try analogous C++ case: char disk ; // The disk is an array of "... (by keskiverto)
How to Change ncurses window(pad) size?
 
Is there a way to change the maximum size of a window in ncurses ?
[3 replies] Last: Sorry been a little busy recently, but basically I meant a virtual win... (by highwayman)
Virtual memory assigned to my program
 
Hi everyone! I´ve got an application which periodically request for some GB of memory, and after some work is done, they are released. When I check the v...
[7 replies] Last: The application has been working for several days and the physical mem... (by Alejandro Antonio)
by t im
About pthread_detach()
 
I'm new to pthread and confused about the code below: #include <pthread.h> #include <iostream> #include <string.h> void* thr_fn1(void* arg) { printf...
[5 replies] Last: Thanks for all your answer. Get it. (by t im)
by helios
Detached threads
 
If main() returns while some threads are still running, what happens? Does the process simply end, killing those threads, or does it continue running until all ...
[9 replies] Last: The example on the cppref site is interesting. Thanks ++ (by Geckoo)
Need but failed run a user's alias inside bash CLI
 
Failed run a user's alias inside bash CLI How can run a user's alias $ grab 'man' but as to do it in a CLI $ bash -c "grab 'man'" bash: line 1...
[4 replies] Last: Presumbaly the OP has alias named "grab" that resolves to some existi... (by kbw)
Know a text editor have feature colorizing the loop?
 
Sorry if not really right place for this: Is there any S/W development text editor have feature colorizing every part that is of iteration or loop process ?
[5 replies] Last: Many modern IDEs have "folding" options and will show the beginning an... (by Duthomhas)
Cannot read data from file
 
Hello, I have developed an application that needs to read some data from file, but it seems to not work, here is my code: //this file exists, so no pr...
[3 replies] Last: if you want to open something only if it exists, there is a nocreate f... (by jonnin)
Excellent "Linux System Programming ... " Book
 
Following is an excellent Linux System Programming book that gives excellent C program examples and the book has excellent topics as chapter titles. https://ww...
[7 replies] Last: Thanks a bunch to all of you for the excellent help and information. B... (by AlexCantor)
by Borneq
Focus to specified application
 
I am writing multi-document text editor. I have IPC for detect other instance, if other instance is called it send message to first instance and stop. This acti...
[3 replies] Last: Yes, but focus must be set to window by application which has these wi... (by Borneq)
SMTP SendMail Help
 
Hello guys, i need help to finish my smtp library because i keep getting error messages from the SMTP server. Heres my code: #include <stdio.h> #inclu...
[6 replies] Last: A couple of things to consider in the future when you ask for programm... (by George P)
Detecting Key Holds MacOS
 
I've been experimenting around with Ncurses for a bit and discovered the wonderful world of getch() and detecting arrow key presses. However, I am unable to thi...
[6 replies] Last: Are you using a console app (implied by use of ncurses)? Any GUI will... (by kbw)
by colt
Build Mesa complain about wrong 32bit Glibc dir
 
Hi. Trying to build a 32bit Mesa, the process stops with the following error messages: mklib: Making Linux shared library: libGL.so.1.2 /usr/bin/ld: cannot ...
[1 reply] : Isn't there a package you can install for this? Is there a reason you... (by kbw)
by oddy
About "make" command during the installation of GCC
 
I am compiling GCC 9.3.0 under FreeBSD 12.3 (i386). It is OK when I type ./configure , but when I type gmake (BSD make is different from GNU Make, so I fetch...
[3 replies] Last: @kigar64551 @kbw Thanks for answering! (by oddy)
Bug with step 3 database
 
I would like to ask you a question about the installation of GLPI 9.5.3. For the explanation: I followed a GLPI installation tutorial to learn how to use it, wh...
[1 reply] : You mean this ? https://glpi-install.readthedocs.io/en/latest/install/... (by salem c)
by tonic
IDE+Compiler for LINUX
 
Hello, I changed my OS lately to LINUX/Debian and on windows i used VS2019, so i thought i ask u what is the easiest/best ide/compiler for linux? i used gn...
[16 replies] Last: Thanks for sharing such a helpful instruction, really appreciate for y... (by Terrance4933)
return-statement with a value, in function returning 'void' [-fpermissive]
 
Im trying to connect postgresql db from my server which has ubuntu 18.04 I have the code below but when i compile it I get the error return-statement with ...
[3 replies] Last: Amazing tutorial! This is exactly the type of post we like to see on t... (by Terrance4933)
  Archived months: [nov2022]