dirent.h 613 B

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