Needs GLIBCXX_3.4.9
Dear all,
I made a shared library libfoo.so to be linked with some application;
but the link does not work and I get the message that libfoo.so uses
something in libstdc++.so.6 that needs GLIBCXX_3.4.9 that is missing.
Sorry if that sort of questions comes again and again in this forum, I
am a newbie on Linux.
I am using a Linux RedHat 5 64bit machine. I suspect that there is some
issue with some compatibility libraries that is not installed, or maybe
this is connected with 64bits/32bits compatibility.
I would be very grateful to anyone with a clue.
Vincent.
PS:
|
3/29/2010 7:36:41 PM
|
1
|
=?ISO-8859-1?Q?Vincent_Bela=EFche?= <vincent.belai...@gmail.com>
|
|
|
Learn about proxy sites and how to use them to open blocked sites unlimited downloads from RapidShare and megaupload and increase the speed of the Internet with new sites for free
And, following a series of proxy sites blocked open any page or
download from RapidShare download sites have all accelerated the
internet for free
How to benfite form a proxy site:
1 - make your browsing experience is safe as it changes the address of
your computer one can not spying on you or to know what to do
2 - change the title of your page opens banned from your country
3 - web pages stored on the server of the site, which increases the
speed of the Internet you
4 - sites can not lift such as RapidShare and Megauplod be discovered
to be loaded from a file, of which more than
|
3/29/2010 4:19:35 AM
|
0
|
"kokosos...@yahoo.com" <kokosos...@yahoo.com>
|
Basic Shell concept
I'm trying to build a very basic shell (like bash but..bad). And I've
decided the best way to do this would be to make my programs
separately and put them in their own directory, much like /bin. Well
how can I set something like this up. I tell my shell 'ls' and it
looks in the directory I choose to store the data in, then it runs the
program and when its done exits and returns to its own process? I'm
teaching myself C so I'm pretty lost on how to do this. Sorry if this
is poorly worded
|
3/26/2010 10:09:53 PM
|
9
|
BigBrother <cowboyni...@gmail.com>
|
creating a socket
Would this header be all I need to create a socket for an smtp and pop
connection?
http://www.opengroup.org/onlinepubs/009695399/
|
3/25/2010 6:47:10 PM
|
14
|
"Bill Cunningham" <nos...@nspam.invalid>
|
Not able to change baud rate
Hi all,
I have a video streaming device running Linux. when i change the baud
rate using the 'stty' command,it changes temporarily for few seconds.
Then again it changes to 115200 automatically.
Please find below the /etc/inittab file & the /etc/init.d/rcS file for
reference.
inittab:
######
# /etc/inittab: init(8) configuration.
# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $
# The default runlevel.
id:3:initdefault:
# Boot-time system configuration/initialization script.
# This is run first except when booting in emergency (-b) mode.
si::sysinit:/etc/init.d/
|
3/25/2010 4:52:35 AM
|
0
|
Hari Prasath <geharipras...@gmail.com>
|
tutorial or guide to terminal settings?
Does anyone here have a link to a comprehensive
guide or tutorial for the settings available in
Unix terminals? Things like color, font, etc.
Googling with what i thought would be the
expected keyowrds has not helped?
|
3/24/2010 4:40:01 PM
|
2
|
rabbits77 <rabbit...@my-deja.com>
|
cpu time usage of multi threaded process and single threaded process.
these are 2 programs for matrix multiplication. :-
1st one is implemented using multiple threading and 2nd using single
threading. Process' Cpu time for both comes out to be same ..... but
should be less for multi threaded process. Plzz help why Cpu time is
same.... ?
program1 using multiple threading :-
#include<signal.h>
#include<stdio.h>
#include<sys/types.h>
#include<unistd.h>
#include<pthread.h>
#include<time.h>
// decleared globally so can be used by all threads through resorce
shareing and dont get destroyed on exit of threads............
int PMatrix[500][500];
|
3/24/2010 6:12:59 AM
|
1
|
Dheeraj Khatri <dheerajkhatri1...@gmail.com>
|
Attaching data to a file descriptor
As part 27 of my 'how can I do this really weird and potentially badly
conceived thing in Unix?' series of questions...
I've got a wrapper library around file descriptors and file functions.
One of the things this wrapper does is implement a VFS, where the
application using the wrapper library gets a different view of the file
system than is actually there.
Some directories are fake, which means that they do not exist in the
host filesystem; my library is faking up a file descriptor number and
then intercepting calls to it.
But now the application opens a file descriptor to the
|
3/23/2010 12:11:16 AM
|
2
|
David Given <...@cowlark.com>
|
Not printing in thread function
Hi,
Following program is to parallelize Matrix Multiplication using
Threads. My problem is that , my proogram is not printing anything in
function "thread_function". Kindly Help.
#include<signal.h>
#include<stdio.h>
#include<sys/types.h>
#include<unistd.h>
#include<pthread.h>
#include<time.h>
// decleared globally so can be used by all threads through resorce
shareing and
dont get destroyed on exit of threads............
int PMatrix[500]
[500]; //final matrix
product of other marices
int Matrix1[500][500],Matrix2[500][5
|
3/22/2010 12:36:41 PM
|
9
|
Sanchit <sanchitgupta....@gmail.com>
|
pseudoterminals and close
For testing, I've coded this simple forkpty
example in linux (ubuntu 9.10):
#define BUF_SIZE 128
#define max(i, j) ((i > j) ? (i) : (j))
void selector (int fd) {
char buf[BUF_SIZE];
int n;
fd_set ss, ret;
FD_ZERO(&ss);
FD_SET(fd, &ss);
FD_SET(STDIN_FILENO, &ss);
while (true) {
ret = ss;
if (select(fd+1, &ret, NULL, NULL, NULL) == -1)
SysError("selector:select");
if (FD_ISSET(fd, &ret)) {
if ((n = read(fd, buf, BUF_SIZE))
|
3/22/2010 9:33:21 AM
|
0
|
xetum <francesc.ol...@upc.edu>
|
Can extra processing threads help in this case?
I have an application that uses enormous amounts of RAM in a
very memory bandwidth intensive way. I recently upgraded my
hardware to a machine with 600% faster RAM and 32-fold more
L3 cache. This L3 cache is also twice as fast as the prior
machines cache. When I benchmarked my application across the
two machines, I gained an 800% improvement in wall clock
time. The new machines CPU is only 11% faster than the prior
machine. Both processes were tested on a single CPU.
I am thinking that all of the above would tend to show that
my process is very memory bandwidth intensive, and thus
|
3/21/2010 6:02:06 PM
|
33
|
"Peter Olcott" <NoS...@OCR4Screen.com>
|
shared mem & struct.
Hello All,
I would like to know how to allocate memory for a struct within a
shared memory. In my example code shown below, I am sharing a struct
between 2 process (shared_mem) . In shared_mem I have another struct
emp
Can someone please tell me how to allocate memory for the emp struct
within the shared mem? Please note that struct emp has a pointer to
struct dob, so I want to allocate memory such that emp, and dob are
also allocated sufficinet memory.
struct dob {
int month;
int date;
int year;
}
struct emp {
int id;
struct {
struct dob*
|
3/20/2010 8:07:46 PM
|
7
|
Vandana <nair...@gmail.com>
|
gdb question
Hi There,
I have a question. I'm running into a segfault but on bt i do not get
source code but only useless addresses.
I've done the following:
- loaded my binary with symbol-file
- compiled binary with following flags: -g3 -O0 -g
- executed gdb from the source directory
- set dir to "./"
Why am I still not seeing the source code? :o
Thanks for a little help here!
--
Ron
|
3/18/2010 6:00:03 PM
|
0
|
cerr <ron.egg...@gmail.com>
|
How to validate user credential to unix ftp server
Hi,
For our project we are using Solaris box.
After our build completion we keep kits to one directory and let users
to access it by FTP session.
So we create user account on Solaris and share this info. to
respective group of user.
I want to change this part and implement it like, 1.- Let user to
login to ftp server with its one of the property login as
'anonymous' ... but change is, user/password = 'anonymous/@client-
server'
2.- When user login as 'anonymous' run some script to check for its
password. Based on that update this to log file.
The main idea is to avoid creat
|
3/18/2010 3:21:36 PM
|
0
|
Bhavik <bhavikdbavi...@gmail.com>
|
implementing a remote shell, redirections
I'm implementing a simple remote shell for educative purposes:
client: arsh serveraddr port
server: arshd
client selects between descriptors STDIN_FILENO and socket
server redirects STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO to socket
Problem is when server executes a program with STDIN redirection,
p.e.:
arsh$ cat <input.txt
cat reads lines until a ^D, then client shutdowns socket for writing
(SHUT_WR) so that cat detects an EOF. Child server process executing
cat finishes, but when server tries to read next command line after
prompt ($arsh) sees that socket is closed and finis
|
3/18/2010 11:19:23 AM
|
0
|
xetum <francesc.ol...@upc.edu>
|
failsafe because of PATH setting
Dears;
I can not login now because of some changes on /etc/environment (PATH
value) and I have to change it only through the failsafe terminal .. I
have vi only working but still i can not change the /etc/environment
file since this file is just read-only ....?
you help plz
|
3/16/2010 9:08:58 PM
|
0
|
email <email...@gmail.com>
|
Your host is new proxy site to open your Facebook,Myspace ,Rapid share pages
Your host is new proxy site to open your Facebook,Myspace ,Rapid share
pages
http://yourhost.22web.net/pro.html
Forex is the largest market in the world learn it for free
http://yourforex.66ghz.com/
|
3/16/2010 4:20:10 AM
|
0
|
"kokosos...@yahoo.com" <kokosos...@yahoo.com>
|
Does non-blocking socket use a queue ? How to know if it's full ?
Hi, I use non blocking socket in my UDP client/server program and I
ask myself what will happen if I send more data than my connection can
handle, I suppose a queue is used internaly, but is it possible to
know if it's full and clear it ?
Thanks
|
3/1/2010 10:43:10 AM
|
0
|
Greg2fs <greg...@gmail.com>
|
Where does gdb find source code to display and step through?
I am mystified by something that seems like magic.
In the simplest case, I wrote the source code and gdb finds it because
it happens to be in the current directory. What about, however, harder
cases? What if the *.c file is in some other directory? Is all the
source code saved in the *.o (and later in the *.a) files??
I am currently working on a program that uses the LIBTIFF library. I
don't believe I have source code for such library, and yet I can
single step and see source code in gdb.
This is probably documented somewhere, but an expert explanation is
most welcome.
TIA,
|
3/1/2010 3:32:44 AM
|
0
|
Ramon F Herrera <ra...@conexus.net>
|
Is there a C library function to open a file found in a path?
I am using Linux.
Is there a C library function to search along a path to locate a file?
Supposing I have an environment variable FOOPATH as follows:
BARPATH=/var/test/dir1:/var/test/dir2:/dirdoesnotexist:/home/fooser
I want to open the file foo.txt, which may be located in one of the
directories in BARPATH.
Is there a library function that will provide that facility, or do I need
to create a buffer, and start slicing and splicing the pathname and filename
from within my program?
This is a core program, so /usr/lib may not yet be mounted when the search
takes place, so id
|
3/1/2010 2:08:02 AM
|
2
|
markhob...@hotpop.donottypethisbit.com (Mark Hobley)
|
stdin problem.
Hi,
My code allows a user to redirect a file to stdin so that some text data can be
read, no problem.
Later a user confirmation to proceed is requested, using getchar(). This is not
working because of what's left in stdin.
Initially I was actually stopping reading stdin when some specific data being
searched for was located, ignoring what was left in stdin. When I realized what
was happening, I made sure I continued reading stdin all the way through.
The problem seems to be that my user confirmation call to getchar() receives the
following char: '�'. I looked in the ASCII
|
2/28/2010 9:56:11 PM
|
0
|
Poster Matt <posterm...@no_spam_for_me.org>
|
Reading /proc/<pid>/maps
Is there some tool which parses /proc/maps and produce good statistics
out of it, Calculate cumulative size of the process etc ...
-
Shankar Easwaran
|
1/26/2010 7:35:20 PM
|
2
|
Shankar <shanka...@gmail.com>
|
Pseudo terminals and exclusive access
Hi,
When I open a pseudo terminal, enable exclusive access and close the
file descriptor again:
fd = open (devname, ...);
ioctl (fd, TIOCEXCL, NULL);
close (fd);
And then try to open the same pseudo terminal again, it fails with the
error EBUSY. It seems that the exclusive flag persists after closing. Is
that the expected behavior? I did assume it would get cleared, because
now the terminal becomes locked forever.
Is the behavior with real serial ports the same?
When I clear the flag before closing, it works fine.
Thanks in advance?
Jef
|
1/22/2010 2:24:29 PM
|
6
|
Jef Driesen <jefdrie...@hotmail.com.invalid>
|
New version of X windows XIX game for unix
This game is an X windows version of the old 1980s QIX game.
C++ source code is available from:
http://www.ogham.demon.co.uk/zips/xix121.tgz
It was developed on Linux but has also been compiled tested on FreeBSD, MacOS/X
and OSF/1 (using gcc).
It only requires standard Xlib so you won't need to hunt around for some
obscure graphics library to get it to compile.
NR
|
1/21/2010 2:41:27 PM
|
3
|
...@xix.space
|
timestamp
Hi There,
I'm putting a timestamp into a text file to allow an external monitor
application to supervise my process (and rerstart it in case...)
I havefollowing code:
ofstream HBfile ("/tmp/LSHB", ios::trunc);
gettimeofday(&HeartBeatTV,NULL);
if ((HeartBeatTV.tv_sec%10)==0) {
if (HBfile.is_open())
HBfile << HeartBeatTV.tv_sec << endl;
}
This should update the timestamp in /tmp/LSHB every 10 seconds no
excuse (if called in a while(1) kinda fashion), right?
For some reason we see the timestamp not updating shortly after 3am
(Pacific time) which is weird...
|
1/20/2010 7:11:10 PM
|
6
|
cerr <ron.egg...@gmail.com>
|
Weird "/usr/bin/test" behavior in HP-UX vs IBM AIX
I am working on a script that will be used on IBM AIX and HP-UX
machines and I have encountered a little "weirdness" with the output
of the command /usr/bin/test on HP-UX
Here is the command run on IBM AIX:
[blefebvre@aix.server (/home/blefebvre)]: test "2614001721510" -gt
"261200170001" ; echo $?
0
Here is the same command run on HP-UX:
hpux.server:blefebvre:/home/blefebvre > test "2614001721510" -gt
"261200170001" ; echo $?
1
The number 2614001721510 is definitively greater than the number
261200170001.
Can it be an error in the /usr/bin/test binary on the HP-UX side ?
|
1/19/2010 2:37:15 PM
|
4
|
Benoit Lefebvre <benoit.lefeb...@gmail.com>
|
config files
Hey everyone!
I wanted to know what kind of config files you like to use when you need
them in your software. XML? Unix-Bash-Style?
I am currently using XML-Files that can hold a lot of information,
however I am not sure if that is ideal or what other concepts are out
there (and commonly used!).
Since we are past the days where every byte was precious, I tend to use
the following approach to config files:
- human readable (i.e. text files of some kind)
- the easiest, distinct way to describe a configuration option is
probably the best
- use an existing library to valida
|
1/18/2010 2:39:28 PM
|
9
|
Lars Uffmann <a...@nurfuerspam.de>
|
Mirror site with spam filter?
As I write this, there are 8 posts on topic and 22 spams shown on
Google Groups. I like comp.unix.programmer, but I would like to find a
mirror site with a spam filter, such as gmane.org. I couldn't find CUP
on gmane, but I did find a subscription page. Would it be OK to sign
this group up?
Gil
|
1/18/2010 3:50:30 AM
|
1
|
gil_johnson <x7-g5W...@earthlink.net>
|
pigz version 2.1.6 released
For any pigz users out there,
pigz version 2.1.6 is now available at http://zlib.net/pigz/ . The
changes from 2.1.5 are:
- Added pigz.spec to distribution for RPM systems [Brown]
- Avoid some compiler warnings
- Process symbolic links if piping to stdout [Hoffstätte]
- Decompress if executable named "gunzip" [Hoffstätte]
- Allow ".tgz" suffix [Chernookiy]
- Fix adler32 comparison on .zz files
pigz is a parallel implementation of gzip that compresses using threads
in order to take the most advantage of multiple processors and cores.
pigz has all the functionality of gzip (
|
1/17/2010 10:21:19 PM
|
0
|
Mark Adler <mad...@alumni.caltech.edu>
|
SIGSEGV in getdir()
Hi There,
I have a function called getdir() and strace is telling me that
there's a segmentation fault appearing in that function.
I am not able to locate the position where the seg fault may appear
cause my strace output looks like:
[pid 30211] stat("/usr/share/NovaxTSP/", {st_mode=S_IFDIR|0755,
st_size=1024, ...}) = 0
[pid 30211] open("/usr/share/NovaxTSP/", O_RDONLY) = 17
[pid 30211] fcntl(17, F_SETFD, FD_CLOEXEC) = 0
[pid 30211] getdents(17, /* 13 entries */, 3933) = 308
[pid 30211] --- SIGSEGV (Segmentation fault) @ 0 (0) ---
where "/usr/share/NovaxTSP/" is the path that i'
|
1/15/2010 9:07:00 PM
|
3
|
cerr <ron.egg...@gmail.com>
|
Code and Creation 69556
This is a free and informational site I created for application development and application development source on the net. Enjoy, and it's free, nothing to register oir sign up for just an informational site.
http://codeandcreation.com
ItRWJpyTgT)brigRi_mf#upew
|
1/15/2010 6:16:40 PM
|
0
|
Virgina Hernandez<gh...@yahoo.com>
|
Code and Creation 16302
This is a free and informational site I created for application development and application development source on the net. Enjoy, and it's free, nothing to register oir sign up for just an informational site.
http://codeandcreation.com
taE&zZtwrsVk_#ZOhRfxKGnzO
|
1/15/2010 6:00:11 PM
|
0
|
Virgina Hernandez<gh...@yahoo.com>
|
reboot
Hi
The C program below certainly reboots my Solaris 10 system, but it
does not seem to do it cleanly (doesn't send SIGTERM to the running
processes). If I run the Solaris reboot command though, that does seem
to cleanly reboot.
How come?
[code]
#include <sys/reboot.h>
int main(int argc, char* argv[])
{
reboot(RB_AUTOBOOT, NULL);
return 0;
}
[/code]
|
1/12/2010 10:20:45 PM
|
31
|
neilsolent <...@solenttechnology.co.uk>
|
when does the system send SIGKLILL
Hi There,
My application sometimes randomly receives a SIGKILL signal, gdb would
say something like:
Program terminated with signal SIGKILL, Killed.
The program no longer exists.
(gdb)
And i have no clue why? When does the system send a SIGKILL? There is
no 3rd application send anything to mine....
Thanks for hints!
|
1/11/2010 7:28:52 PM
|
42
|
cerr <ron.egg...@gmail.com>
|
Suggestions needed
Hi all,
Small programming assignments whose difficulty levels are gradually
increased OR programming assignments that test the knowledge of
various aspects of the language are good for students and probably for
those who want to learn programming in general BUT there's also
another category of people like me who don't really want to learn
programming because they've done a lot of it ( i know no one can do
'enough' programming but I am getting at something else here.
I dont want to learn programming in general since I do a lot of it in
my office and I've done a lot of it in the pas
|
1/10/2010 8:07:22 PM
|
0
|
Vaib <vaibhavpang...@gmail.com>
|
problem with encrypted stream over simple client server link
Hi All,
Fir of all, my huge apologies if I am posting this to the wrong group.
Post it to C++ and I get complaints that this stuff is too
specialised...So here goes:
I have implemented a server -- client chat program to help me learn
about sockets, pthreads, and openssl libraries.
On one machine, Alice, the program runs in server mode
On the other machine, Bob, the program runs in client mode
Bob connects to Alice and both parties can chat to each other and send
files to each other. There is also an encryption option which encrypts
everything with a 256 bit symmetric blo
|
1/10/2010 1:18:38 PM
|
9
|
B <...@home>
|
SIGABRT
Hi There,
I got a SIGABRT signal showing up in syslog but gdb doesn't display
anything. My app still seems to be running (if I look with ps ax) but
it kinda seems as if a certain thread had stopped. How can I tell
what's going on?
GDB was set to at least display SIGABRT signals but nothing has shown
up... :o
Signal Stop Print Pass to program Description
SIGABRT Yes Yes Yes Aborted
Thanks for hints and suggestions!
roN
|
1/8/2010 10:52:57 PM
|
2
|
cerr <ron.egg...@gmail.com>
|
verify if socket is writable
Hi There,
I SIGPIPE-out when I try to send data to a socket that's been closed
on the other side. I understand that I have to check with select() if
my socket is still active but i don't quite understand how I can do
this.
My code:
if (log_sock>-1) {
sndlen=strlen(res);
syslog(LOG_ERR, "_run_logger(): got strlen(res):%d, log_sock:
%d",sndlen, log_sock);
reclen=send(log_sock, res, sndlen, 0);
syslog(LOG_ERR, "_run_logger(): sent \'%s\"",res);
How do I need to use the select() statement before the if to verify if
my socket is still open?
Thank you!
Ron
|
1/7/2010 10:21:44 PM
|
9
|
cerr <ron.egg...@gmail.com>
|
Problem of debugging into glibc functions?
Problem of debugging into glibc functions?
Hi all,
I want to debug into glibc functions like nftw() in Ubuntu Linux (nftw
require a function pointer argument and I want to step into this
function).
But after installed libc6.dbg and set environment
LD_LIBRARY_PATH(I have to set it in gdb by "set env LD_LIBRARY_PATH
/usr/lib/debug"), my emacs/gdb still cannot step into the glibc
function.
Shall I compile the glibc by myself, or shall I set other environment
parameters?
Thanks!
Davy
|
1/7/2010 2:05:39 PM
|
2
|
Davy <zhushe...@gmail.com>
|
Replace N leading tabs with 2N spaces
Hello,
I'm trying to clean up a C source file with gvim.
(Might not be the appropriate tool...)
AFAICT, I can delete trailing white space with
:%s,[ \t]\+$,,g
i.e. delete space and tab occurring at least once before newline
However, I don't see how to replace N /leading/ tabs with 2N spaces.
(I don't want to just replace every tab with two spaces because
there are non-leading tabs which I want to handle differently.)
Matching them would be
/^[\t]\+
but how do I tell the editor to replace N tabs with 2N spaces?
Regards.
|
1/5/2010 1:19:28 PM
|
9
|
Noob <r...@127.0.0.1>
|
Create direcotry recursively
Hi ALL
How to create directory recursively in UNIX using system call mkdir?
surprisingly i dint find any way in api to make it work like "mkdir -
p".
Pls tell me is there any system call to do this?
Is thre any best already existing code to do this?
Note: I canot use system cmd.
|
1/4/2010 8:15:47 AM
|
9
|
Muhammed <doublemaster...@gmail.com>
|
ANN: Seed7 Release 2010-01-03
Hello,
I have released a new version of Seed7: seed7_05_20100103.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 places when other
solutions are more obvious.
Seed7 is covered by the GPL (and LGPL for the Seed7 runtime library).
Changelog:
- The chapter explaining operating system access in the manual was
improved.
- The "tarx.sd7" example program was improved to uncompress files
|
1/3/2010 8:42:30 PM
|
0
|
tm <thomas.mer...@gmx.at>
|
Why Are Women Turning to Islam
Why Are Women Turning to Islam
At a time when Islam is faced with hostile media coverage particularly
where the status of women in Islam is concerned, it may be quite
surprising to learn that Islam is the fastest growing religion in the
world, and even more ironic to discover that the majority of converts
to Islam are WOMEN .
The status of women in society is neither a new issue, nor is it a
fully settled one. And where Islam is mentioned, for many the term
'Muslim Women' prompts images of exhausted mothers chained to the
stove, 'victims' suppressed in a life of indoctrination, fr
|
1/3/2010 3:36:30 AM
|
0
|
Mary <love.islam...@gmail.com>
|
why do the Muslims bow down to ward the Ka'
When Islam is against idol worship
why do the Muslims bow down to ward the Ka'abah in Their Prayer
Kabah is the cubical structure in the city of Mecca, which Muslims
face at the time of their prayers.
Ka'abah is the Qiblah i.e. the direction Muslims face during their
prayers. It is important to note that though Muslims face the Ka'abah
during prayers, they do not worship the Ka'abah. Muslims worship and
bow to none but Allah.
It is mentioned in Surah Baqarah: "We see the turning of thy face (for
guidance) to the heavens: now shall We turn thee to a Qiblah that
shall
|
1/2/2010 4:24:49 AM
|
0
|
Mary <love.islam...@gmail.com>
|
Increase performance of pseudo terminals?
Hi,
I'm using socat and pseudo terminals, to create two virtual serial ports
linked with a null modem cable. The purpose of this setup is to allow
two applications to communicate with each other, as if they were talking
to real serial ports.
socat PTY,link=/tmp/ttyS0 PTY,link=/tmp/ttyS1
But I noticed the performance is quite bad. Trying to transmit data
takes very long. For instance transmitting 32KB takes a few minutes on
my machine (Ubuntu 9.10), while on another user's machine (Mac OS X)
it's much faster, in the order of a few seconds.
Any idea what is causing this?
|
12/30/2009 6:08:26 PM
|
21
|
Jef Driesen <jefdrie...@hotmail.com.invalid>
|
waiting for ack
Hi There,
I'm sending certain messages to my server and upon sending it off, i
would receive LOGOK back. I'm trying to accomplish reading it like
this:
reclen=send(m_sock, res, sndlen, 0);
for(s=0;s<10000000;s++);
if (reclen != sndlen) {
if (reclen==-1)
printf("send failed...,errno: %s!\n", strerror( errno ));
printf("nlog: \"%s\" not sent, strlen(%d) - sent %d\n",res,
sndlen, reclen);
}
else
printf("sent %s-------------\n", res);
if(recv(m_sock, recbuf, sizeof(recbuf), 0) > -1)
printf("RECEIVED:%s--------------\n",recbuf);
else
printf("recv
|
12/29/2009 6:50:41 PM
|
1
|
cerr <ron.egg...@gmail.com>
|
connect to hostname and receive ack
Hi There,
I have twio problems,
I seem to be able to succesfully connect to my server on port 1514 but
I don't get any data sent off eventho the # of bytes sent match my
strlen...what's going on here. If i establish a telnet connection
manually it works just fine.
My code to connect to the server is as follows:
int connecttoserver(char *hostname,int port)
{
struct timeval tv;
struct sockaddr_in sa_server;
char host[255] = {0};
const struct hostent *host_info;
struct in_addr *address;
if (m_sock >= 0 )
{
shutdown(m_sock, SHUT_RDWR);
|
12/28/2009 9:58:04 PM
|
8
|
cerr <ron.egg...@gmail.com>
|
Linking problem using autotool
Hi all,
I am having linking troubles using autotool. I am hoping someone out
there can spot what I am sure is a very simple error. Anyway I have
written some test cases and use the following in my Makfile.am file in
the "test" directory.
LDADD = $(top_builddir)/lib/libazzmos.la
test_azrmalloc_CFLAGS = -I$(top_srcdir)/include
test_azrmalloc_SOURCES = CuTest.c CuTest.h test_azrmalloc.c
test_azrlog_CFLAGS = -I$(top_srcdir)/include
test_azrlog_SOURCES = CuTest.c CuTest.h test_azrlog.c
test_azruriheader_CFLAGS = -I$(top_srcdir)/include
test_azruriheader_SOURCES = CuTest
|
12/28/2009 6:18:05 AM
|
1
|
Aaron Spiteri <azzmosphere(at)gmail.com>
|
Karima Slack Razi
Karima Slack Razi
I took the Shahadah on September 20, 1991. If you had told me 5 years
prior that I would embrace Islam, I never would havebelieved you. In
retrospect, Allah's guidance was so subtle yet consistent, thatnow I
see my whole life as leading up to that moment. It is difficult
toencapsulate the exact factors that brought me to Islam because it
was a journey, a process, that lasted three years. Those three years
were both exhilarating andexhausting. My perceptions of myself and the
world changed dramatically. Somebeliefs were validated; others,
shattered. At times I f
|
12/27/2009 8:58:23 PM
|
0
|
Mary <love.islam...@gmail.com>
|
standard close behavior
Hi,
I am getting inconsistent behaviors on different systems with the
program below. Now, I am wondering if the behavior of this program is
triggering unspecified behavior according to SUS.
Can anybody comment, weather closing a file-descriptor should unblock a
thread blocked in read(2), when a signal handler uses close(2) on the
same file descriptor.
To trigger the behavior in question compile and run the program, and
simply signal SIGINT by pressing CTRL-C.
The behavior I am seeing is as follows:
- Linux: continues reading on the file descriptor, and the file
descrip
|
12/27/2009 11:05:21 AM
|
11
|
Thomas Maier-Komor <thomas_no_s...@maier-komor.de>
|