UNIX/Linux Programming - March 2009

reading the binary of files
 
hey guys, so i am in this project right now where i want to be able to take a picture file, lets say a jpeg in this instance, and lower the resolution. i am ...
[9 replies] Last: here is what i want the full application to do: i have an logitech ... (by iochinome)
Binary AND operation
 
Hi Guys, I have a situation, I want to perform a AND operation which is basically to get the next HOP IP. My IP and netmask are stored in a char array. Can ...
[3 replies] Last: Never-mind it is solved guys. Thanks for the reply thou. (by kevinchkin)
modifying a program
 
I have this program: #include <sys/time.h> #include <signal.h> #include <stdlib.h> #include <errno.h> #include <stdlib.h> #define LOOP_LIMIT 1E12 vol...
[13 replies] Last: Here is the prototype for sleep: unsigned int sleep( unsigned int ... (by jsmith)
sig sev trouble
 
Im trying to write a program where im supposed to register a sigsev handler where i get a segmentation fault because of an illegal attempt to wrye to a piece of...
[4 replies] Last: Now about your problem, your errors are clearly saying what you need t... (by kevinchkin)
timer and alarm frustration
 
I have this program: #include <sys/time.h> #include <signal.h> #include <stdlib.h> #include <errno.h> #include <stdio.h> #define LOOP_LIMIT 1E12 ...
[no replies]
Problem with class
 
So here is all files.. //polygon.h #ifndef POLYGON_H #define POLYGON_H class polygon{ protected: float x,y; public: polygon(); ~poly...
[3 replies] Last: Tnx you guys now its working, i dont know what would i do without you ... (by etrusks)
by Disch
File I/O
 
I'm looking for File I/O routines which are a bit more specialized than cstdio or iostream. Specifically, I want to be able to resize files, and get the length...
[9 replies] Last: After tweaking some stuff to get read/write permissions set properly w... (by Disch)
whats wrong with the code?
 
I need help with something in this program. #include <sys/mman.h> #include <stdio.h> #include <stdlib.h> #define MSPACE 256 int page_size; char*mem;...
[8 replies] Last: thanks bro,i got it. (by kakashi316)
Undefined reference to connection pooling
 
Hi I am using ubuntu linux. I got link error. I am using g++ complier undefined reference to `odbc::DriverManager::SetConnectionPooling(bool)' Please any...
[5 replies] Last: Hi Thanks for all replies.I got answer... (by mathueie)
by robegs
Segmentation fault with structs
 
Hello, I have a program with some structs peerinfo: struct peerinfo:obj { //uchar peerid ; struct peerid stpeerid; struct unhashedid stu...
[1 reply] : Isn't X509 an OpenSSL data structure that contains pointers to things ... (by kbw)
are screen commands in c++ possible?
 
is there a way to do screen commands like ctrl - a - <command_code> within c++? also, on another note, is it possible to do other commands like ctrl - U in c...
[1 reply] : nvm I got it (by platypus1130)
Shell script - Case
 
I am trying to use pattern matching in case under shell script but I am getting some problem. I want to perform some action having filename as : [s-z]*.pbrt ...
[1 reply] : Well, as this is a C/C++ forum, probably not. (by jsmith)
Mouse Events
 
Hello. I've been looking on Google for a while and haven't found much. Can anyone point me to a reference on how to use C/C++ to move and click the mouse. Event...
[3 replies] Last: May I remind the two responders that this is a UNIX/Linux forum. Win... (by Duthomhas)
Reading binary files
 
I am trying to read a binary file and extract the data. In the first part of the file there is an XML header with meta data. I haven't gotten to the part wher...
[3 replies] Last: the binary mode read gives just raw files and there is no formatting o... (by writetonsharma)
by sammye
debug optimizing away variables
 
Hello, Any hints on how to prevent g++ from optimizing away my variables? Or at least I am assuming they are being optimized away, any hints/clues would be a...
[6 replies] Last: Oh well, it sounds like I may be stuck. If anyone has anymore suggesti... (by sammye)
Difference between epoll and select
 
Hi, Can anybody please help me in understanding what are the basic difference between epoll and select? When should I use epoll instead of select? Please s...
[2 replies] Last: poll() and select() were written for the same purpose on different sys... (by Duthomhas)
strange syntax in a device driver
 
so i am looking through this tutorial on building device drivers in linux and i come accross this code: struct file_operations memory_fops = { read: memor...
[5 replies] Last: .read is a pointer to a function which has the same signature as memor... (by jsmith)
Hi,
 
I am new to C++.. and programming too... how do I read only diagonal elemets in an array..?? thanks for the response
[6 replies] Last: You may try the following : -----------------------------------------... (by jackhung)
segmentation faul in strcat
 
Hello. My program gets "segmentation fault" in "strcat(string,stringaux)" and it is strange because I am sure that string always has space for adding the new...
[2 replies] Last: Are you sure both string and stringaux are null-terminated prior to ca... (by jsmith)
by Dili
Threading with inheritance in multiple derived classes
 
hi all! i have a question regarding how to achieve threading with inheritance using multiple derived classes. originally i was using this code to work with 1...
[5 replies] Last: thanks for the help jsmith ! everything is working fine now! i'll ... (by Dili)
March 2009 Pages: 123
  Archived months: [feb2009] [apr2009]

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