Opened 17 years ago

Closed 16 years ago

#2078 closed enhancement (fixed)

[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: Blocking:
Platform: All

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 (1)

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

Download all attachments as: .zip

Change History (7)

comment:1 by scottmc, 16 years ago

Cc: scottmc added

comment:2 by umccullough, 16 years ago

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

by umccullough, 16 years ago

Attachment: stdio_ext_h.patch added

stdio_ext.h file with the currently supported methods

comment:3 by umccullough, 16 years ago

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.

comment:4 by andreasf, 16 years ago

Summary: Add stdio_ext.h header[PATCH] Add stdio_ext.h header

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

comment:5 by scottmc, 16 years ago

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

comment:6 by stippi, 16 years ago

Resolution: fixed
Status: newclosed

I have applied the patch in hrev27789. 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.