2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
18 int stat(const char *path
, struct stat
*sb
)
23 path
= __path_u2a(path
);
27 lock
= Lock(path
, SHARED_LOCK
);
30 if (IoErr() == ERROR_OBJECT_IN_USE
)
32 /* the file is already locked exclusively, so the only way to get
33 info about it is to find it in the parent directoy with the ExNext() function
36 /* return an error for now */
41 errno
= IoErr2errno(IoErr());
45 res
= __stat(lock
, sb
);