/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ #include #include #include #include /* MS-DOS couldn't care less about file ownerships, so we could always succeed. At least fail for non-existent files and for devices. */ int chown(const char *path, uid_t owner, gid_t group) { if (!__file_exists(path)) /* non-existent file */ { errno = ENOENT; return -1; } return 0; }