|
#define number of digits in UINT_MAX Hello, I work on a program written in C, which I use on OpenBSD, but also try to keep it compilable on Linux and Cygwin. I wonder what would be the most portable way to find out how many characters are needed to represent an unsigned integer value - at the compilation time. On my OpenBSD PC the header /usr/... 22 Aug 2006 08:45
Serial port, termios.h, and dtr control questions I'm rather new to C programming and I'm trying to write a program to control a device via the serial port. I've done some reading, and searching this newsgroup but can not yet find the answer. I'm using Linux ubuntu. My problem is that I need to be able to control the DTR line of the serial port. I did find som... 2 Sep 2006 14:11
Question about semaphore Below is a simple pseudocode using semaphore: while(1){ wait(mutex1); //LINE0 open(file_f); //LINE1 write(file_f); //LINE2 signal(mutex1); } Here, LINE1 and LINE2 are critical section. If one process is executing LINE1 or LINE2, no other processes can enter the critical section. Can other processes or ... 14 Aug 2006 21:41
icmp socket Having some problem with a socket, for icmp. here is the code: <CODE> struct protoent *proto; struct sockaddr_in from; struct sockaddr_in whereto; hostent * he = gethostbyname(host); if ( !he ) { std::cout << "Failed to resolve host " << host << std::endl; } memc... 14 Aug 2006 13:44
count of files Hi all, I am using RHEL v 4.1 . Is there any command to get the count of files in a particular directory. If I am using 'find' I get the list of all files recursively in the directory. Now I want to find the count of these files. please help me out.. thank you. http://www.google.co.in/search?hl=en&sa=X&oi=spell&... 11 Aug 2006 16:56
scanning UDP ports Does it make any sense to scan UDP ports? -- Police State Finland. ... 9 Aug 2006 08:53
command to delete files Hi all, I am using Linux RHEL v 4.1. I want to delete all the files in a directory which have been created 30 days back. Is there any command to perform this? If there, please help me out, this is urgent.... thank you...... ... 8 Aug 2006 20:10
check which ports are listening. Could someone help a little, I want to check which ports are listening. I am doing a connect on ports, but it hangs at some sites. How should I do it? -- ... 8 Aug 2006 14:47
Socket timeout Hi, I wrote a program with C language, it is running good at most time on linux. But ,sometimes it is bloked on reading from socket forever. I don't set timeout value on the socket, but I believe the socket is using the OS's default timeout,and the timeout value should not greater than 60 seconds in normal ... 4 Aug 2006 23:14
boost installation plz help I read a documentation on boost.org but I can't doing it. Please can someone write me, how do it on gcc compiler? In my opision this instruction is very winding - build-jam, boost-build and other... ... 4 Aug 2006 01:19 |