lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Apr 28, 2014, at 1:50 PM, Liam Devine <liamdevine@oolua.org> wrote:

> On 28/04/14 18:10, Roberto Ierusalimschy wrote:
>> 
>>> On 28/04/14 16:44, Roberto Ierusalimschy wrote:
>>>> 
>>>> 
>>>> (Sorry for the delay.) How can stdio.h not define 'off_t' but define
>>>> 'fseeko', which uses 'off_t' in its prototype?
>>>> 
>>>> -- Roberto
>>>> 
>>> 
>>> Not in 10.4 it would seem [1]
>>> int	 fseeko(FILE *, fpos_t, int);
>>> 
>>> [1] http://www.opensource.apple.com/source/Libc/Libc-391/include/stdio.h
>> 
>> So, 10.4 is not POSIX :-(
>> 
>> -- Roberto
>> 
> 
> I would not like to say for certain. OSX is, after all, based on BSD and
> the BSD implementation does use off_t in an old C style function
> definition[1].

I don't understand. The implementation could be written in PL/I if it had the correct header files.