IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 21 years ago

Closed 21 years ago

Last modified 20 years ago

#563 closed defect (fixed)

psFitsOpenFD and psFitsOpenStream not CFITSIO-compatible

Reported by: robert.desonia@… Owned by: jhoblitt
Priority: high Milestone:
Component: PSLib SDRS Version: unspecified
Severity: normal Keywords:
Cc:

Description

CFITSIO offers no file-access routine that allows the use of a file-descriptor or C FILE stream.

I suggest that these functions be removed from the SDRS and psLib API.

-rdd

Change History (4)

comment:1 by Paul Price, 21 years ago

Cc: eugene@… price@… added
Owner: changed from Paul Price to jhoblitt

Perhaps Josh or Gene can provide a prototype, or some direction?

comment:2 by jhoblitt, 21 years ago

Gene and I are aware of this limitation in cifsio. These functions are to be
provided for convenience in dealing with that 'limitation'. You can use fstat()
to get the filename of an open FD and fileno() can get the FD from a FILE stream.

comment:3 by robert.desonia@…, 21 years ago

So, how exactly do you use fstat to get the filename from the file descriptor?

The fstat function returns a structure, but none of the members of that struct refers to a filename. That
makes sense to me, as a file descriptor can refer to more than a regular disk file, i.e, a pipe or socket,
which doesn't have a 'filename' so-to-say.

Even if I get get ahold of a filename, assuming the fd refered to a regular disk file, I'd have to reopen
the file and not even use the fd, which you had problems with already with psLog. There really is no
good solution for this, I think.

-rdd

comment:4 by jhoblitt, 21 years ago

Resolution: fixed
Status: newclosed

These functions have been dropped from the API.

Note: See TracTickets for help on using tickets.