stat.h 822 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <Kernel/API/POSIX/sys/stat.h>
  8. #include <sys/cdefs.h>
  9. #include <sys/types.h>
  10. #include <time.h>
  11. __BEGIN_DECLS
  12. mode_t umask(mode_t);
  13. int chmod(char const* pathname, mode_t);
  14. int fchmodat(int fd, char const* path, mode_t mode, int flag);
  15. int fchmod(int fd, mode_t);
  16. int mkdir(char const* pathname, mode_t);
  17. int mkdirat(int dirfd, char const* pathname, mode_t);
  18. int mkfifo(char const* pathname, mode_t);
  19. int fstat(int fd, struct stat* statbuf);
  20. int lstat(char const* path, struct stat* statbuf);
  21. int stat(char const* path, struct stat* statbuf);
  22. int fstatat(int fd, char const* path, struct stat* statbuf, int flags);
  23. int futimens(int fd, struct timespec const times[2]);
  24. __END_DECLS