OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef BASE_FILES_DIR_READER_LINUX_H_ | 5 #ifndef BASE_FILES_DIR_READER_LINUX_H_ |
6 #define BASE_FILES_DIR_READER_LINUX_H_ | 6 #define BASE_FILES_DIR_READER_LINUX_H_ |
7 | 7 |
8 #include <errno.h> | 8 #include <errno.h> |
9 #include <fcntl.h> | 9 #include <fcntl.h> |
10 #include <stdint.h> | 10 #include <stdint.h> |
11 #include <sys/syscall.h> | 11 #include <sys/syscall.h> |
12 #include <unistd.h> | 12 #include <unistd.h> |
13 | 13 |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/eintr_wrapper.h" | 15 #include "base/posix/eintr_wrapper.h" |
16 | 16 |
17 // See the comments in dir_reader_posix.h about this. | 17 // See the comments in dir_reader_posix.h about this. |
18 | 18 |
19 namespace base { | 19 namespace base { |
20 | 20 |
21 struct linux_dirent { | 21 struct linux_dirent { |
22 uint64_t d_ino; | 22 uint64_t d_ino; |
23 int64_t d_off; | 23 int64_t d_off; |
24 unsigned short d_reclen; | 24 unsigned short d_reclen; |
25 unsigned char d_type; | 25 unsigned char d_type; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 const int fd_; | 89 const int fd_; |
90 unsigned char buf_[512]; | 90 unsigned char buf_[512]; |
91 size_t offset_, size_; | 91 size_t offset_, size_; |
92 | 92 |
93 DISALLOW_COPY_AND_ASSIGN(DirReaderLinux); | 93 DISALLOW_COPY_AND_ASSIGN(DirReaderLinux); |
94 }; | 94 }; |
95 | 95 |
96 } // namespace base | 96 } // namespace base |
97 | 97 |
98 #endif // BASE_FILES_DIR_READER_LINUX_H_ | 98 #endif // BASE_FILES_DIR_READER_LINUX_H_ |
OLD | NEW |