UNIX/Linux Programming - March 2008

by Rope
Catch a CTRL+C with signal function?
 
Hi all, I'm trying to catch either CTRL+D or the CTRL+C char in unix using the signal function. However I'm totally clueless since I've got little experience...
[no replies]
Shutdown sequence in a pthreads program
 
If I have a c++ program with multiple Linux pthreads running simultaneously and I call exit() from one of the threads, what is the sequence of events that will ...
[no replies]
need help (reg:TCP sockets)
 
hi all, I face lot of difficulty while creating and handling the header of the TCP(ip header,tcp psuedo heder,tcp header).anyone pls help me to how to handle...
[no replies]
Create a program that has as little dependencies as possible
 
Hi all, I was just wondering if there was a way in which i could compile a C++ program but have as little dependencies as possible so that it is just a flat...
[1 reply] : I think you are talking about a "static build" where everything is inc... (by firedraco)
User input in a system("wget")
 
Currently I'm attempting to get a webpage that the user inputs using a system call. However I can't get the system call with the user's inputted website working...
[3 replies] Last: There's no reason to cast command.c_str() to a const char*, it already... (by ropez)
by mlussi
pthread segmentation fault
 
Greetings I'm confused. This function using some information of a pthread was running really good, until i've got some segmentation faults and I can't image wh...
[no replies]
complex
 
Hi everyone! I need a huge help. I have problems with the library <complex.h> I'm compiling with CC in a Sun system and when I compile it don't recognize th...
[2 replies] Last: You can start by including <complex> instead of <complex.h>. I don'... (by ropez)
by xcoder
How to about cmds on linux
 
Hello. I'am new at this language. So i was trying to find over the internet how-to create something like cmds what linux haves. Like " mc /home/someone ",...
[9 replies] Last: I also feel the need to make sure that the user input is gathered corr... (by Duthomhas)
exports from a .so
 
I am writing a library for Linux/Windows and I thought that I could default the export rule to hidden by using -fvisibility=hidden and -fvisibility-includes-hid...
[no replies]
Is pthread.h built in the GCC compiler?
 
Or do I have to manually include it? I'm a beginner at pthreads & UNIX/Linux programming and I'm testing some code I found on the Net but I get the following co...
[1 reply] : I get it now. =) I compiled it incorrectly. My previous compile comman... (by unclefester)
HELP ME! I'm having trouble w/ while loops!
 
Okay, so today I was working on my game I was making and the while loop in it is not working. Can someone help me? It is strange! //First draft for main.cpp ...
[4 replies] Last: whoa thank you thank you thank you!!! this is wonderful!! akash (by closed account L1T0RXSz)
Write to binary file --help
 
I'm currently working on a code wherein I will have a text file format and convert particular field/data to hex and output should be binary format... I was abl...
[1 reply] : Open the File using the open function with the right open mode then u... (by Jeff HS)
getting f keys to work on curses osx
 
Hello all, I'm new to the forum and I haven't programmed C/C++ in about 4 years. Anyways here's the issue. I'm trying to use ncurses to get function keys...
[2 replies] Last: Thanks for the information, it helped me solve the issue. I just s... (by closed account L0M4jE8b)
How do you get Linux to load a GIF?
 
I'm sorry, this doesn't sound very advanced... I'm sort of a novice to C++ therefore I don't know this. Okay, I am trying to do some work on Linux but I don't k...
[3 replies] Last: If you give me a day or two I'll give you something simple based on th... (by Duthomhas)
What programming language is this...?
 
Greetings, I recently attended a job inteview for a placement at Reuters for a placement as a web developer, and they had a few 'technical questions', and on...
[2 replies] Last: Thanks Hotaru, Do you think you would any suggestions as how to improv... (by questroizac)
folder copying through sftp command
 
while working on our institution's LAN i was reqiured to copy a whole folder using the sftp command........ we searched a lot for the command but we did not fi...
[1 reply] : SCP Warning: Be careful when copying between hosts files that have th... (by cppjsan)
Need help on audio fingerprinting
 
Hello everyone! I wish to write a c++ program to compare audio files. The purpose is to check whether there is any redundant music files in a computer. Suppose...
[2 replies] Last: I don't know how you should do it but, i think yuo should play the 2 s... (by TheSec)
Creating a Version of Linux
 
I want to make my own os using the linux kernel but I don't really know where to start, can someone help me out? If you have msn add me --> sean.gremlin@gmail.c...
[3 replies] Last: Hey, thanks heaps for the link, will help out heaps :D (by Googol PL3X)
  Archived months: [feb2008] [apr2008]

This is an archived page. To post a new message, go to the current page.