(Q) what is __lock_close() ? can I leave it empty?

Freddie Chopin freddie_chopin@op.pl
Wed Apr 3 16:46:00 GMT 2013


W dniu 2013-04-03 18:01, Min Lee pisze:
> thanks for reply, Freddie..
> I don't know about "dynamic" locks.. also I don't see any lock_open
> things..
> thank you anyway..

Take a look at newlib\libc\sys\linux\sys\lock.h - these are defines of 
these locks for Linux. This is the only place which actualy defines 
these lock functions. I guess that close() is only for cases where 
__lock_init() actually allocates some resources (these should be treated 
as "open"). If that's not the case then __lock_close() can probably be 
left empty.

Regards,
FCh



More information about the Newlib mailing list