int sys_openat(int dfd, constchar *path, struct open_how *how)
{ int ret = openat(dfd, path, how->flags, how->mode); return ret >= 0 ? ret : -errno;
}
int sys_renameat2(int olddirfd, constchar *oldpath, int newdirfd, constchar *newpath, unsignedint flags)
{ int ret = syscall(__NR_renameat2, olddirfd, oldpath,
newdirfd, newpath, flags); return ret >= 0 ? ret : -errno;
}
int touchat(int dfd, constchar *path)
{ int fd = openat(dfd, path, O_CREAT, 0700); if (fd >= 0)
close(fd); return fd;
}
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.