dirent.h 682 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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/limits.h>
  8. #include <Kernel/API/POSIX/sys/types.h>
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. enum {
  13. DT_UNKNOWN = 0,
  14. #define DT_UNKNOWN DT_UNKNOWN
  15. DT_FIFO = 1,
  16. #define DT_FIFO DT_FIFO
  17. DT_CHR = 2,
  18. #define DT_CHR DT_CHR
  19. DT_DIR = 4,
  20. #define DT_DIR DT_DIR
  21. DT_BLK = 6,
  22. #define DT_BLK DT_BLK
  23. DT_REG = 8,
  24. #define DT_REG DT_REG
  25. DT_LNK = 10,
  26. #define DT_LNK DT_LNK
  27. DT_SOCK = 12,
  28. #define DT_SOCK DT_SOCK
  29. DT_WHT = 14
  30. #define DT_WHT DT_WHT
  31. };
  32. #define MAXNAMLEN NAME_MAX
  33. #ifdef __cplusplus
  34. }
  35. #endif