Added stub for lstat(2).

This commit is contained in:
Jonas 'Sortie' Termansen 2012-03-05 15:50:41 +01:00
parent 4b2c22d480
commit f089a030b4
2 changed files with 6 additions and 0 deletions

View File

@ -48,6 +48,7 @@ __BEGIN_DECLS
int chmod(const char* path, mode_t mode);
int fchmod(int fd, mode_t mode);
int fstat(int fd, struct stat* st);
int lstat(const char* restrict path, struct stat* restrict st);
int mkdir(const char *path, mode_t mode);
int stat(const char* restrict path, struct stat* restrict st);
mode_t umask(mode_t mask);

View File

@ -290,6 +290,11 @@ namespace Maxsi
return SysStat(path, st);
}
extern "C" int lstat(const char* path, struct stat* st)
{
return SysStat(path, st);
}
extern "C" int fstat(int fd, struct stat* st)
{
return SysFStat(fd, st);