First  |  Prev |  Next  |  Last
Pages: 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
poll() problem
Asa matter of personal choice I like poll() more than select(). I have created a server that handles multiple clients using poll() ( from section 6.11 of UnP volume 1 by W Stevens) and it works fine except 3 problems: 1.) It gives compile-time error on using POLLRDNORM saying "POLLRDNORM" is not declared but whe... 28 Jun 2008 17:48
A question about a readline() function
Figure 3.17 in the book "Unix Network Programming: The Sockets Networking API" by Stevens, Fenner, and Rudoff they have the following 1 #include "unp.h" 2 /* PAINFULLY SLOW VERSION -- example only */ 3 ssize_t 4 readline(int fd, void *vptr, size_t maxlen) 5 { 6 ssize_t n, rc; 7 char c... 26 Jun 2008 01:16
Searching a small file database
I don't want to use a db manager, like mysql, for such a small database but I'm finding this trickier than I thought and hope someone can provide some guidance. I have a restaurant menu with prices and other info in a small file. It's set up in a YAML-ish style, if you're familiar with that format. I'm just look... 26 Jun 2008 03:19
Porting old streambuf code to current C++ library
I am trying to port exist code to a Linux box. The problem is the code is using the old C++ library classes and some of the calls are now illegal. The class that I am having problems with is declared as "class FoIpSocketStreambuf : public streambuf {" in its include file and it wants to modify the streambuf addre... 25 Jun 2008 08:49
HP-UX Vs Solaris Shared memory
Hi, I have created a simple 32-bit program to allocate 1GB shared memory. And when I run multiple instances of it: On HP-UX 11.11, I managed to run only one instance of the application. The next failed on shmget() with ENOMEM [ENOMEM] A shared memory identifier and associated shared ... 24 Jun 2008 23:38
Debugging an exec'ed process
We have written a executable module in 'C' which takes inputs from a config file, and feeds it into a switch-case loop to generate appropriate output. The catch is, the module is being invoked by our clients executable (through exec) . Somehow the right input from the clients config file results in wrong output... 5 Jul 2008 22:43
MACROS on traceroute
There are some macros in the traceroute, but I can't able to know what is the use of that macro. Can any one give me a hint over the following macros? HAVE_USLEEP __hpux HAVE_SYS_SELECT_H HAVE_ICMP_NEXTMTU BYTESWAP_IP_HDR HAVE_RAW_OPTIONS ... 23 Jun 2008 07:35
ANN: Seed7 Release 2008-06-22
Hello, I have released a new version of Seed7: seed7_05_20080622.tgz In the Seed7 programming language new statements and operators can be declared easily. Types are first class objects and therefore templates/generics need no special syntax. Object orientation is used when it brings advantages and not in plac... 22 Jun 2008 16:17
What's the difference pipe vs redirection is the following case case.
K-mart Cashier <cdalten(a)gmail.com> writes: On Jun 21, 6:33�pm, j...(a)toerring.de (Jens Thoms Toerring) wrote: [...] Because you can pipe to another process but not a file. '|' is for connecting the stdout of the process on the left hand side to the stdin of the process of the right hand side. '>' is ... 22 Jun 2008 13:13
Extracting a specific column from a text file using unix
Hi, I have a unix file which looks like the following. 1. From this file I want to extract out the column labelled Safety Factor and I want to write it to an external file. 2. This set of data keeps on repeating and I want to keep on appending each instance of its occurence to the same external file. Please ... 22 Jun 2008 01:00
First  |  Prev |  Next  |  Last
Pages: 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51