<rss version="2.0">
<channel>
<title>comp.unix.programmer :: Q&A for people programming under Unix.</title>
<link>http://www.nnseek.com/e/comp.unix.programmer/</link>
<description>Posts for comp.unix.programmer</description>
<lastBuildDate>Tue, 19 Aug 2008 18:24:24 PDT</lastBuildDate>
  <image>
    <title>http://www.nnseek.com/</title>
    <link>http://www.nnseek.com/</link>
    <url>http://www.nnseek.com/img/64.png</url>
    <width>64</width>
    <height>64</height>
    <description>NNSeek</description>
  </image>
<item>
	<title><![CDATA[Can a program make itself immune to an interposer?]]></title>
	<guid>http://www.nnseek.com/e/comp.unix.programmer/can_a_program_make_itself_immune_to_an_interposer_134185103t.html</guid>
	<link>http://www.nnseek.com/e/comp.unix.programmer/can_a_program_make_itself_immune_to_an_interposer_134185103t.html</link>
	<description><![CDATA[Note: The question is posed in that way, suggesting that I am looking<br>for a way to make my program immune.  However, in fact, I'm looking at<br>it the other way - I have written an interposer, but somehow it is not<br>working (in one case).<br><br>Longer version: I have written an interposer for the POSIX open()<br>function.  This is not at all the first interposer I've written, and it<br>works fine with a little test program that I have written.  However, it<br>does not work (that is, I can tell that my interposer is not called),<br>when used with GAWK.<br><br>I am invoking gawk as: <br><br>    LD_PRELOAD=./libopen_fix.so gawk '{print FILENAME,$0}' "$@"<br><br>and yet the interposer never gets called.  GAWK *is* dynamically linked:<br><br>(output of "ldd gawk")<br>	linux-gate.so.1 =>  (0xb7ee8000)<br>	libdl.so.2 => /lib/libdl.so.2 (0xb7ed2000)<br>	libm.so.6 => /lib/libm.so.6 (0xb7ead000)<br>	libc.so.6 => /lib/libc.so.6 (0xb7d74000)<br>	/lib/ld-linux.so.2 (0xb7ee9000)<br><br>Any ideas?<br><br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.unix.programmer/">comp.unix.programmer</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.programmer/can_a_program_make_itself_immune_to_an_interposer_134185103t.html"><b>6</b> Comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.programmer/can_a_program_make_itself_immune_to_an_interposer_134185103m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Tue, 19 Aug 2008 18:24:24 PDT</pubDate>
</item>
<item>
	<title><![CDATA[handling multiple SIGCHLDs reliably]]></title>
	<guid>http://www.nnseek.com/e/comp.unix.programmer/handling_multiple_sigchlds_reliably_134162575t.html</guid>
	<link>http://www.nnseek.com/e/comp.unix.programmer/handling_multiple_sigchlds_reliably_134162575t.html</link>
	<description><![CDATA[<br>Hi all,<br><br>My program seems to not handle multiple SIGCHLDs reliably; some<br>SIGCHLDs seem to be getting "lost". I've googled the manual several<br>times, and looked for other resources, but seem to be at a loss still.<br><br>Here is the signal handler<br><br>void catcher ( int signo, siginfo_t *psig, void *ctx)<br>{<br>    pid_t pid;<br>    int status;<br><br>    pid = -1;<br>    status = 0;<br>    pid = waitpid( -1, &status, WNOHANG);<br>    printf(" catcher: caught signal %%d around process %%d\n", signo,<br>pid );<br>}<br><br>and here is the main program that sets up the catcher<br><br>struct sigaction handler_action;<br><br>sigemptyset( & (handler_action.sa_mask) );<br>sigaddset( & (handler_action.sa_mask), SIGINT );<br>sigaddset( & (handler_action.sa_mask), SIGQUIT );<br>sigaddset( & (handler_action.sa_mask), SIGCHLD );   /* reliably block<br>SIGCHLDs in handler */<br>handler_action.sa_flags = SA_SIGINFO|SA_NOCLDWAIT;<br>handler_action.sa_sigaction = catcher;<br><br>sigaction ( SIGCHLD, &handler_action, (struct sigaction *)0 );<br><br>/* remaining part of main program */<br>    i = atoi(argv[1]);        /* this is usually 4 or 5 */<br><br>    while (i > 0)<br>    {<br>        if ((pid = fork()) == 0) {    /* forks i children */<br><br>        printf(" running command in background \n");<br>        execv(argv[2], &argv[2]); perror("The execl() call must have<br>failed"); exit(255);<br><br>        } else {<br><br>            printf (" child pid = %%d\n", pid);<br>        }<br>        i--;<br>    }<br><br>    for(;;)    /* main program continues to do this waiting for Ctl-C<br>*/<br>    {<br>        printf (" zzz \n");<br>        sleep(3);<br>    }<br>My questions:<br><br>1. I've set up the sa_mask to block SIGCHLDs so that means each time<br>the handler runs, it should block other SIGCHLDs i.e. handler should<br>be invoked 5 times. But my handler is called only once or twice at<br>most. What happens to the other SIGCHLDs? (This is an AIX 5.3 system,<br>BTW)<br>2. I don't see any zombies so I assume the children did exit properly,<br>fair assumption?<br>3. I am relying on the waitpid() in the handler to return the pid of<br>the child that was most likely responsible for the SIGCHLD. But the<br>waitpid always returns -1. Can anyone explain this?<br>4. Is there a different/better way to do this? My basic requirement is<br>to start a child process in the background and for the main program to<br>get notified when the child exits. My manual-and-google-reading seems<br>to indicate sigaction() + waitpid() as the best way so far. Any other<br>ideas?<br><br>Thanks in advance<br>Sam<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.unix.programmer/">comp.unix.programmer</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.programmer/handling_multiple_sigchlds_reliably_134162575t.html"><b>2</b> Comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.programmer/handling_multiple_sigchlds_reliably_134162575m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Tue, 19 Aug 2008 15:08:53 PDT</pubDate>
</item>
<item>
	<title><![CDATA[Closing socket without sending FIN?]]></title>
	<guid>http://www.nnseek.com/e/comp.unix.programmer/closing_socket_without_sending_fin_134134415t.html</guid>
	<link>http://www.nnseek.com/e/comp.unix.programmer/closing_socket_without_sending_fin_134134415t.html</link>
	<description><![CDATA[Hi, is it possible to close a socket so that the remote end will not<br>be notified about the fact? I'm writing a server program and would<br>like to test such behaviour, but unpluging the network cable is<br>tedious or impossible if you'd like to test several clients at once.<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.unix.programmer/">comp.unix.programmer</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.programmer/closing_socket_without_sending_fin_134134415t.html"><b>5</b> Comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.programmer/closing_socket_without_sending_fin_134134415m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Tue, 19 Aug 2008 12:02:55 PDT</pubDate>
</item>
<item>
	<title><![CDATA[Entry point]]></title>
	<guid>http://www.nnseek.com/e/comp.unix.programmer/entry_point_134083215t.html</guid>
	<link>http://www.nnseek.com/e/comp.unix.programmer/entry_point_134083215t.html</link>
	<description><![CDATA[What's the entry point for executable and shared library on UNIX? I<br>mean analog to WinMainCRTStartup for executable on Windows? Is it<br>possible to overwrite entry point? Does linker have this option? I<br>assume this entry point besides other stuff contains calls to all<br>static instances constructors and destructors and actually calls main.<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.unix.programmer/">comp.unix.programmer</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.programmer/entry_point_134083215t.html"><b>1</b> Comment</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.programmer/entry_point_134083215m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Tue, 19 Aug 2008 07:37:02 PDT</pubDate>
</item>
<item>
	<title><![CDATA[free sex moves download free]]></title>
	<guid>http://www.nnseek.com/e/comp.unix.programmer/free_sex_moves_download_free_134048143t.html</guid>
	<link>http://www.nnseek.com/e/comp.unix.programmer/free_sex_moves_download_free_134048143t.html</link>
	<description><![CDATA[free sex moves download free<br><br><br><br><br><a href="http://kumaripud.blogspot.com" rel="nofollow" class="url" target="_blank">http://kumaripud.blogspot.com</a>/<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.unix.programmer/">comp.unix.programmer</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.programmer/free_sex_moves_download_free_134048143t.html">no comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.programmer/free_sex_moves_download_free_134048143m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Tue, 19 Aug 2008 02:49:50 PDT</pubDate>
</item>
<item>
	<title><![CDATA[What binary manipulation tools are there?]]></title>
	<guid>http://www.nnseek.com/e/comp.unix.programmer/what_binary_manipulation_tools_are_there_133992847t.html</guid>
	<link>http://www.nnseek.com/e/comp.unix.programmer/what_binary_manipulation_tools_are_there_133992847t.html</link>
	<description><![CDATA[Having no mathematical skills or the required white brain cell*<br>activity to develop them<br>I have utterly failed to produce a tool that can convert small strings<br>into unsigned chars<br>of their binary equivalents.<br>For example a file containing (in ASCII):<br><br>         1 1010<br>         111 10<br><br>would become a file containing (as numeric values): 1 10 7 2<br><br>I've tried oktata and it required anding, oring and xoring everything<br>instead of straight<br>forward editing. It also suggested in the manual that that was the<br>traditional technique.<br><br><br>So what tools (if any are there) for editing a binary by just...<br>editing it rather<br>than doing a heap of maths on all but the correct byte?<br><br>*These connect the regions of the brain and in my case run very<br>slowly.<br>Every thing except lexical analysis (remembering words and word<br>patterns)<br>and logic (grammar) are stuffed without working with everything else<br>non-stop.<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.unix.programmer/">comp.unix.programmer</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.programmer/what_binary_manipulation_tools_are_there_133992847t.html"><b>5</b> Comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.programmer/what_binary_manipulation_tools_are_there_133992847m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Mon, 18 Aug 2008 15:28:51 PDT</pubDate>
</item>
<item>
	<title><![CDATA[kernel-user communication]]></title>
	<guid>http://www.nnseek.com/e/comp.unix.programmer/kernel_user_communication_133873807t.html</guid>
	<link>http://www.nnseek.com/e/comp.unix.programmer/kernel_user_communication_133873807t.html</link>
	<description><![CDATA[Hi All,<br><br>I have  to communicate a user program and a kernel module in two-way.<br>What are the methods available ?<br>What is the best method to implement?? Please help me.<br><br>Thanks and regards<br>VASU<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.unix.programmer/">comp.unix.programmer</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.programmer/kernel_user_communication_133873807t.html"><b>2</b> Comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.programmer/kernel_user_communication_133873807m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Mon, 18 Aug 2008 01:22:23 PDT</pubDate>
</item>
<item>
	<title><![CDATA[Buffer limits for IPC using named pipe]]></title>
	<guid>http://www.nnseek.com/e/comp.unix.programmer/buffer_limits_for_ipc_using_named_pipe_133859471t.html</guid>
	<link>http://www.nnseek.com/e/comp.unix.programmer/buffer_limits_for_ipc_using_named_pipe_133859471t.html</link>
	<description><![CDATA[We use named pipe, for the communication between two processes running<br>on the Solaris box. One process keeps pumping in huge amount of data,<br>and the other server process receives this data and performs further<br>processing.<br><br>As huge amount of data is sent over the named pipe, I'm just concerned<br>whether there will be a buffer limit problem(at sender & receiver<br>sides) due to that. Can anybody tell me how I can find out the<br>limitation by Solaris, and how exactly I can increase tune this limit?<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.unix.programmer/">comp.unix.programmer</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.programmer/buffer_limits_for_ipc_using_named_pipe_133859471t.html"><b>1</b> Comment</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.programmer/buffer_limits_for_ipc_using_named_pipe_133859471m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Sun, 17 Aug 2008 23:22:39 PDT</pubDate>
</item>
<item>
	<title><![CDATA[ANN: Seed7 Release 2008-08-17]]></title>
	<guid>http://www.nnseek.com/e/comp.unix.programmer/ann_seed7_release_2008_08_17_133805455t.html</guid>
	<link>http://www.nnseek.com/e/comp.unix.programmer/ann_seed7_release_2008_08_17_133805455t.html</link>
	<description><![CDATA[Hello,<br><br>I have released a new version of Seed7: seed7_05_20080817.tgz<br><br>In the Seed7 programming language new statements and operators<br>can be declared easily. Types are first class objects and therefore<br>templates/generics need no special syntax. Object orientation is<br>used when it brings advantages and not in places when other<br>solutions are more obvious.<br><br>Seed7 is covered by the GPL (and LGPL for the Seed7 runtime library).<br><br>Changelog:<br>- The FAQ about static type checking was improved and an FAQ about<br>  development speed and type checking was added.<br>- A chapter about the type 'category' was added to the manual.<br>- The chapters about boolean, string, set and reference in the<br>  manual, were improved.<br>- The functions toUuencoded and fromUuencoded were added to the<br>  encoding.s7i library.<br>- The html entity 'ang' and several comments were added to the<br>  html_ent.s7i library.<br>- The error management of the chkint.sd7 program was improved.<br>- The 'configValue' function was improved to support values for<br>  TWOS_COMPLEMENT_INTTYPE, INTTYPE_64BIT and INTTYPE_LITERAL_SUFFIX.<br>- The function growStri was improved to work correctly in out of<br>  memory situations.<br>- The makefiles makefile, mk_cygw.mak, mk_linux.mak, mk_mingw.mak,<br>  mk_msvc.mak, mk_msys.mak and mk_nmake.mak were improved to define<br>  TWOS_COMPLEMENT_INTTYPE when appropriate.<br>- The file setlib.c was improved to work correctly with bitsettype's<br>  of different sizes.<br><br>Greetings Thomas Mertes<br><br>Seed7 Homepage:  <a href="http://seed7.sourceforge.net" rel="nofollow" class="url" target="_blank">http://seed7.sourceforge.net</a><br>Seed7 - The extensible programming language: User defined statements<br>and operators, abstract data types, templates without special<br>syntax, OO with interfaces and multiple dispatch, statically typed,<br>interpreted or compiled, portable, runs under linux/unix/windows.<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.unix.programmer/">comp.unix.programmer</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.programmer/ann_seed7_release_2008_08_17_133805455t.html">no comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.programmer/ann_seed7_release_2008_08_17_133805455m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Sun, 17 Aug 2008 13:45:10 PDT</pubDate>
</item>
<item>
	<title><![CDATA[adidas adicolor  shoes PayPal]]></title>
	<guid>http://www.nnseek.com/e/comp.unix.programmer/adidas_adicolor_shoes_paypal_133786255t.html</guid>
	<link>http://www.nnseek.com/e/comp.unix.programmer/adidas_adicolor_shoes_paypal_133786255t.html</link>
	<description><![CDATA[adidas adicolor  shoes PayPal<br>We export our brand shoes all over world because of our competitive<br>price, good quality products<br><br>and good service. All our products are guaranteed to be a minimum of<br>AAA+ quality. Our price and<br><br>good service are often appreciated by our customers. So we can get<br>repeat order to sustain our<br><br>development. Your support of our business is very thankful.<br>Dear friend<br>welcome to shopping on <<a href="http://www.silk" rel="nofollow" class="url" target="_blank">www.silk</a> on <a href="http://road.com" rel="nofollow" class="url" target="_blank">road.com</a>><br>1.5%% paypal handling charge supports the online payment!<br>2.Use your intergla replacement more good gift!<br>3.notes by email and website of deliver each package at first time.<br><br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.unix.programmer/">comp.unix.programmer</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.programmer/adidas_adicolor_shoes_paypal_133786255t.html">no comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.programmer/adidas_adicolor_shoes_paypal_133786255m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Sun, 17 Aug 2008 11:10:28 PDT</pubDate>
</item>
</channel>
</rss>