bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: about gawk |& operator and getline on HPUX11


From: Xiang Zhao
Subject: Re: about gawk |& operator and getline on HPUX11
Date: 24 May 2002 00:58:11 -0700

Hi there,

With the help of Stepan Kasal, we finnaly found out the problem is
with the fstat function on HPUX 11 platform.

After fstat a network file descriptor, the st_blksize is unreasonablly
large.
After adding the following line after fstat call in posix/gawkmisc.c,
everything is O.K. now.

after around line 85:
if((unsigned long)stb->st_blksize > 102400)
                              stb->st_blksize= 102400;

Stepan, thank you agian.

-Xiang ZHAO

address@hidden (Xiang Zhao) wrote in message news:<address@hidden>...
> Hi,
> 
> When I test the following simple programs, I got an error:
> gawk: test2:3: fatal: get_a_record: iop->buf: can't allocate -61246
> bytes of memory (not enough space)
> the code is:
> server:
> BEGIN {
>   print strftime() |& "/inet/tcp/8888/0/0"
>     close("/inet/tcp/8888/0/0")
>     }
> 
> client:
> # Client
> BEGIN {
>   "/inet/tcp/0/localhost/8888" |& getline
>     print $0
>       }
> 
> It seems some problems with getline.
> I downloaded binary gawk3.1.1 for hpux-11 from HPUX software
> depot(http://hpux.cs.utah.edu/) , and I also complied one on hpux 11.0
> from the gawk 3.1.0 source code with HP aCC+ complier, the same error.
> 
> Best regards,
> -Xiang Zhao



reply via email to

[Prev in Thread] Current Thread [Next in Thread]