From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,9ee22207af5a0e7d,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2000-10-22 20:33:02 PST Path: supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!europa.netcrusader.net!207.172.3.37!feed1.news.rcn.net!rcn!not-for-mail From: "Todd Simpson" Newsgroups: comp.unix.tru64 Subject: "Invalid argument" error from close() system call Date: Mon, 23 Oct 2000 03:31:08 -0000 Organization: None Message-ID: <8t0bfp$erk$1@bob.news.rcn.net> X-Trace: rClIyRoid0IhKMwi4iHeUaq2Rw3O+Vk8WujKNLTFMtM= X-Complaints-To: abuse@rcn.com NNTP-Posting-Date: 23 Oct 2000 03:32:09 GMT X-Newsreader: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Xref: supernews.google.com comp.unix.tru64:611 I'm using a Compaq AlphaStation DS10 with Tru64 Unix V5.0A. I compile some API routines provided by a company to communicate with a so-called protocol server that it manufactures. This server is a machine that's on the net and the software on the DS10 uses a TCP protocol socket to communicate with it. The compilation gives no errors and when I run the software, it works just as I expect - until I use the API routine to close the connection to the server. The routine calls the Unix system close() function with the socket file descriptor as its argument. The function returns an error condition of "Invalid argument". This happens right after a write() to the socket completes successfully. The man page does not mention "Invalid argument" (EINVAL) as an error condition from close(). Any clues as to what is going on or what to do about it? Thanks in advance, Todd Todd Simpson todo@erols.com