[440] in Pthreads mailing list archive
problems in close()
daemon@ATHENA.MIT.EDU (Larry V. Streepy, Jr.)
Mon Sep 30 18:58:52 1996
Date: Mon, 30 Sep 1996 16:43:22 -0600
From: "Larry V. Streepy, Jr." <streepy@healthcare.com>
To: pthreads mailing list <pthreads@MIT.EDU>
Came across a couple of things in close():
1. It doesn't handle being called with a bad argument (like -1) well at
all. It generally hoses the world.
2. It's not using return values and errno settings in a POSIX compliant
fashion. It returns things like -EINVAL instead of returning -1 and
setting errno to EBADF.
Unless there are major reasons why it is this way, I'll make the changes
to fix it.
--
Larry V. Streepy, Jr.
Chief Technical Officer, Healthcare Communications, Inc.
mailto:streepy@healthcare.com
(214) 851-7033 (Dallas Main #)
(970) 626-5028 (My office #) (970) 626-4425 (Fax)