Hi all,
POSIX functions defines at the end of uspace/lib/posix/unistd.h
conflicts with properties with same name.
I have modified it [1] to avoid this by changing
#define truncate posix_truncate
to
#define truncate(...) posix_truncate(##__VA_ARGS__)
Problem is now only with function pointer properties of same name:
fs->op.truncate(path, size);
I can't think of a way how to avoid this conflict other than following
ugly workaround. Can you?
int (*truncate_func) (const char *, posix_off_t);
truncate_func = fs->op.truncate;
truncate_func(path, size);
Zdenek
[1] http://bazaar.launchpad.net/~zdenek-bouska/helenos/fuse/revision/1547
_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/cgi-bin/listinfo/helenos-devel