int faccessat(int dirfd, constchar* pathname, int mode, int flags) { // "The mode specifies the accessibility check(s) to be performed, // and is either the value F_OK, or a mask consisting of the // bitwise OR of one or more of R_OK, W_OK, and X_OK." if ((mode != F_OK) && ((mode & ~(R_OK | W_OK | X_OK)) != 0) &&
((mode & (R_OK | W_OK | X_OK)) == 0)) {
errno = EINVAL; return -1;
}
if (flags != 0) { // We deliberately don't support AT_SYMLINK_NOFOLLOW, a glibc // only feature which is error prone and dangerous. // More details at http://permalink.gmane.org/gmane.linux.lib.musl.general/6952 // // AT_EACCESS isn't supported either. Android doesn't have setuid // programs, and never runs code with euid!=uid. // // We could use faccessat2(2) from Linux 5.8, but since we don't want the // first feature and don't need the second, we just reject such requests.
errno = EINVAL; return -1;
}
return __faccessat(dirfd, pathname, mode);
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-06-28)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.