Description:
Q&A for people programming under Unix.
|
|
|
Practical uses of readv?
|
| |
For this first time in sixteen years, I came into a situation where
readv (recvmsg) was actually useful: In order to dump the
'non-ESP marker' in front of an ISAKMP message when NAT-T is being
used for a particular 'IPsec session'. So far, I've assumed that
'scatter read' mainly exists for symmetry reasons. Anyone ever used... more »
|
|
2'complement for 8bit variables
|
| |
Hi,
I want to write a a function that takes an 8 bit number and calculates the 2's complement of it and returns a signed character.
What I got so far:
The problem i'm having is, that the multiplication *-1 gives me the wrong value, assuming i got 20 in num and then make a * -1, I get 236 and I can't... more »
|
|
Compilation under HPUX or any other commercial Unix
|
| |
Hello,
Does someone here have access to HPUX or any other commercial Unix
variant? I have an Open Source project and want to find out if it
compiles and works under HPUX or other Unix variants. Several years
ago I used HPUX to develop my project, but now I have no access to
HPUX. A short time ago I added some stuff, which uses elements from... more »
|
|
Linux serial port communications
|
| |
Hi There,
I would like to communicate with an external device over the serial port on an embedded Linux system. I can talk to my device when I launch "screen /dev/ttyUSB0 19200" from the shell. Now I'm trying to write some code but have troubles getting it going. My select keps timing out on me and i don't... more »
|
|
fork + exec and SIGSTOP/SIGCONT
|
| |
This started out as the "Search for API function to activate a task
and return it's PID to the caller" thread.
As I said over there, the process of starting a task and obtaining
it's PID is
working using fork+exec as recommended. The reason I need the PID was
for some level of task managment. In particular, one thing I need to... more »
|
|
Rejecting connection attempts on socket
|
| |
I've searched and searched, and I have a feeling the answer is "you can't", but I figured I'd ask here just in case I missed something.
I have a socket, I've bound it to a port, and entered a listening state. I have accepted several connections, and do not want to talk to any more clients until I am done with one of them.... more »
|
|
read system call hangs
|
| |
Hi, I am using "read" system call in my C++ project (Redhat Linux) to read data from sockets. I have also set read timeout (SO_RCVTIMEO) to 5 seconds using "setsockopt", but when I run my application under load run then sometimes this "read" system call hangs, it neither returns data nor it times out.... more »
|
|
|