|
Blocking read call never returns to bison parser. Hi All, I have written a flex/bison scanner and parser to read data output of a legacy network switch. I wrote the parser as a standalone program and tested it with sample output saved to text file (e.g., cat data.out | ./parser). My issue is, having confirmed that my parser is valid, I am integrating it int... 24 Jun 2008 18:30
mmap(MAP_SHARED) and msync(MS_INVALIDATE) Dear Experts, I have a program which mmap()s its read-mostly data file. If I run two instances of the program concurrently, I want the changes made by one to be visible to the other. So I call mmap with the MAP_SHARED flag. After I make a change to the data I call msync(). Since I'm using MAP_SHARED I ... 26 Jun 2008 23:52
How to write programs to interact with web page? Hi, I want to write a program that can interact with web pages, such as simulating a mouse click on a button or filling a form, based on the contents of this webpage, etc. Actually I want to automate in a webpage based online game www.ogame.org, just like some available bots (most of which are for windows plat... 20 Jun 2008 15:20
loopback test on serial port. Default termios config Hi, I'm wondering if you've had any success with fixing your problem. I'm trying to setup a simple loopback test on Redhat and it says writes to the ttyS0 port are fine, but it never reads back from it. I've tried your code, my code, and other simple code that I found online .... none of them have been able to read... 20 Jun 2008 19:27
writev() on a SOCK_STREAM socket On Jun 20, 7:26 am, rahul <rahulsin...(a)gmail.com> wrote: On Jun 20, 3:50 am, kid joe <spamt...(a)spamtrap.invalid> wrote: Hi, Do I need to retry writev() on a blocking Unix-domain SOCK_STREAM socket, or will it always write out the exact number of bytes I asked for? For example: if... 20 Jun 2008 04:03
multiple definition at link time Hello to everybody, I'm wondering if someone can show me a workaround to the following problem I'm fighting with. In my program I need to use two libraries: ARPACK and PARDISO. Both of them make (internal) use of a third library, namely LAPACK. Unfortunately they use a different version of this library. I hav... 20 Jun 2008 06:05
How long does read(2) wait before an EAGAIN is thrown? For example, I send a greeting message to smtp-server, and expect to read an SMTP ``250'' response. How long time does read() wait before a slow 250 arrives, if this runs on non-blocking i/o? // greeting sbuf = "HELO " + server + "\n"; cout << sbuf; if (write(sock, sbuf.c_str(), sbuf.size()) < 0){ perr... 26 Jun 2008 18:45
This image ..cannot be displayed because it contains errors im trying with web server i wrote in unix (Freebsd) to send file to mozilla client.it works fine with html,txt.. but when i try to send a jpeg, mozilla browser write: " This image 127.0.0.1:1024/pic.jpg cannot be displayed because it contains an error".where is my error in the code i think there could be some byte ... 19 Jun 2008 07:32
Error status in waitpid Hi, I've some code where a forked process executes another program, waits for it to finish (the invoked program writes some results via a pipe to the forked program) and then repeats this process. This is the code fragment which is executed in a loop: -----------------------------------------------------------... 23 Jun 2008 13:45 |