First  |  Prev |  Next  |  Last
Pages: 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
signals == software interrupts ?
Hello, I have a forked process that enters a loop like this: while (RUN) { //do nothing but burn the CPU } it also has a handler set for SIGALRM that just flips RUN to 0. Later on the parent sends it a kill(child, SIGALRM), and, the problem is that the sent SIGALRM signal is never handled -I don't know... 15 Feb 2010 17:45
QNX 4.25, raw sockets
Hello everybody. I've got a small question about RAW sockets and pinging. I need to consequently ping N machines. My OS is QNX 4.25. The problem is that I receive their replies (ICMP echos) twice with a short delay. I've used packet scaner and it showed only one reply. Where does the second comes from? ... 15 Feb 2010 04:20
C++ and shared objects
Hallo everybody I want to build some shared libraries from C++ code defining classes because I want to load them dynamically in programs that need that classes. I've read about dlopen and co., which require the implementation of factory procedures in order to dynamically allocate class instances from the loaded ... 8 Feb 2010 09:58
ANN: Seed7 Release 2010-02-07
Hello, I have released a new version of Seed7: seed7_05_20100207.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... 7 Feb 2010 18:42
I can't figure out how to trap ctrl-z/ctrl-c in the following code (warning:long code)
I have a program that continuously reads in a text file. What I want to do is have the program exit when I press either ctrl-z or ctrl-c. Here what I've attempt so far. [cdalten(a)localhost oakland]$ more feed.c #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <sys/types.h> #include <sys/wa... 7 Feb 2010 11:59
How do I send a fd over TCP?
Both Machine A and Machine B run FreeBSD. I telnet into machine B from Machine A. Now let's say I have a program running on Machine B. How would I send an open fd from Machine A to Machine B? I'm kind of aware of passing the fd. However, that only seems to work on the same machine. ... 8 Feb 2010 20:14
using --prefix= in my code
Hi all, For my code I use autoconf and automake etc to build the ./configure script and the diverse Makefiles. The result is that by default the binaries are placed in /usr/local/bin and the configfile for my project is installed in /usr/local/etc. That's no problem. I can hardcode the location of the configfile... 4 Feb 2010 08:52
exec gzip from program
Hi, I have a program that needs to gzip some files. When I run the program I get permission denied. I have tried with execl and execlp and I get permission each time the program try to run gzip. What did I do wrong? Thanks, #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h... 6 Feb 2010 17:25
Create staple diagrams from a text file (containing numbers)from command line?
Alan Curry wrote: In article <8a841db2-a907-41cf-8784-8952a3b316ca(a)>, dspfun <dspfun(a)> wrote: Hi, From the command line, is it possible to somehow automatically create a staple diagram from a file containing text/numbers and automatically save it to a .jp... 3 Feb 2010 11:42
UDP broadcast
Hi There, I would like to send a UDP broadcast datagram to all my network peers. I've tried using following code: struct sockaddr_in addr; int BrdcstSock; string message = "Hello, World!"; if ((BrdcstSock = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { std::cerr << "PIDClient: Error creating socket.\n"; ... 4 Feb 2010 14:34
First  |  Prev |  Next  |  Last
Pages: 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44