Ticket #2078 (closed enhancement: fixed)

Opened 2 years ago

Last modified 18 months ago

[PATCH] Add stdio_ext.h header

Reported by: andreasf Owned by: axeld
Priority: normal Milestone: R1
Component: - General Version: R1/pre-alpha1
Keywords: Cc: scottmc
Blocked By: Platform: All
Blocking:

Description

Haiku appears to implement glibc's __fsetlocking function, that is being detected by some software packages. In that case, the corresponding header file stdio_ext.h should be added so that it can be used.

  • CVS uses it (__fsetlocking, FSETLOCKING_BYCALLER)
  • GNU gettext checks for it at least

Attachments

stdio_ext_h.patch Download (1.1 KB) - added by umccullough 20 months ago.
stdio_ext.h file with the currently supported methods

Change History

Changed 21 months ago by scottmc

  • cc scottmc added

Changed 20 months ago by umccullough

I ran into the gettext issue and Begasus pointed me here, so I attached a patch that adds a basic stdio_ext.h.

Changed 20 months ago by umccullough

stdio_ext.h file with the currently supported methods

Changed 20 months ago by umccullough

I have attached a new patch that supplies a stdio_ext.h that contains only fsetlocking() (with associated constants) and _flushlbf() as these appear to be the only methods currently implemented in Haiku.

Should allow gettext and others to compile that rely on fsetlocking() at least.

Changed 20 months ago by andreasf

  • summary changed from Add stdio_ext.h header to [PATCH] Add stdio_ext.h header

Header looks okay afaict, except that it's not strictly POSIX. We might put it into 3rdparty instead.

Changed 18 months ago by scottmc

Is this patch going to get applied? CVS-1.12.13 can make use of it once it is.  http://ports.haiku-files.org/wiki/dev-util/cvs

Changed 18 months ago by stippi

  • status changed from new to closed
  • resolution set to fixed

I have applied the patch in r27789. Thanks! I am not the best person for POSIX stuff, but I trust your experience! If this should really be placed in 3rdparty instead, please elaborate so that I don't mess things up.

Note: See TracTickets for help on using tickets.