sendto() returns 0 on NCR SVR4

sendto() returns 0 on NCR SVR4

Post by Abdul Nasa » Mon, 17 Feb 2003 21:40:17



Hi

Have anybody seen sendto() returns a zero instead of -1 or a positive
integer ?

I am getting this on NCR SVR4 ? What does this return value mean ? Man page
says it returns either of the above (-1 or number of bytes written) or those
predefined error codes.

Help will be highly appreciated.

regards
Abdul Nasser

 
 
 

sendto() returns 0 on NCR SVR4

Post by Valentin Nechaye » Mon, 17 Feb 2003 23:52:37


AN> Have anybody seen sendto() returns a zero instead of -1 or a positive
AN> integer ?

Some books says that old-styled SysV non-blocking i/o shows "would block"
not returning (-1,errno:=EAGAIN), but returning 0.
But this mode isn't set by O_NONBLOCK, but in another way (can't remember now
or find a resource)

AN> I am getting this on NCR SVR4 ? What does this return value mean ? Man page
AN> says it returns either of the above (-1 or number of bytes written) or those
AN> predefined error codes.
AN> Help will be highly appreciated.

Did you do any nonstandard control on this socket?

-netch-

 
 
 

sendto() returns 0 on NCR SVR4

Post by Kurtis D. Rade » Tue, 18 Feb 2003 03:22:43




> AN> Have anybody seen sendto() returns a zero instead of -1 or a positive
> AN> integer ?

> Some books says that old-styled SysV non-blocking i/o shows "would block"
> not returning (-1,errno:=EAGAIN), but returning 0.  But this mode isn't
> set by O_NONBLOCK, but in another way (can't remember now or find a
> resource)

O_NDELAY, which should never be used because it also causes reads to return
zero making it problematic to distinguish EOF from the case where no data
is available at this time.
 
 
 

1. sendto() returns 0 on NCR

Hi

Have anybody seen sendto() returns a zero instead of -1 or a positive
integer ?

I am getting this on NCR SVR4 ? What does this return value mean ? Man page
says it returns either of the above (-1 or number of bytes written) or those
predefined error codes.

Help will be highly appreciated.

regards
Abdul Nasser

2. Can't talk to Sun Workstations

3. system() returning -1 in ncr svr4 ver 03.00+

4. A modem in a dec alpha

5. sendto returns ENETUNREACH

6. Please Help with KPPP Problem

7. UDP sendto() return error 111, Connection refused

8. nmon spreadsheet usage

9. RAW socket when sendto() always return -1(ENOBUFS) ???????

10. NCR UNIX SVR4 MP-RAS, Release 3.01??

11. Q:NCR UNIX SVR4 default PATH?

12. Shared objects on NCR SVR4.2

13. Backup Solutions for NCR SVr4