Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: base/files/dir_reader_linux.h

Issue 1549853002: Switch to standard integer types in base/files/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | base/files/dir_reader_posix_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <stddef.h>
10 #include <stdint.h> 11 #include <stdint.h>
11 #include <sys/syscall.h> 12 #include <sys/syscall.h>
12 #include <unistd.h> 13 #include <unistd.h>
13 14
14 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/macros.h"
15 #include "base/posix/eintr_wrapper.h" 17 #include "base/posix/eintr_wrapper.h"
16 18
17 // See the comments in dir_reader_posix.h about this. 19 // See the comments in dir_reader_posix.h about this.
18 20
19 namespace base { 21 namespace base {
20 22
21 struct linux_dirent { 23 struct linux_dirent {
22 uint64_t d_ino; 24 uint64_t d_ino;
23 int64_t d_off; 25 int64_t d_off;
24 unsigned short d_reclen; 26 unsigned short d_reclen;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 unsigned char buf_[512]; 92 unsigned char buf_[512];
91 size_t offset_; 93 size_t offset_;
92 size_t size_; 94 size_t size_;
93 95
94 DISALLOW_COPY_AND_ASSIGN(DirReaderLinux); 96 DISALLOW_COPY_AND_ASSIGN(DirReaderLinux);
95 }; 97 };
96 98
97 } // namespace base 99 } // namespace base
98 100
99 #endif // BASE_FILES_DIR_READER_LINUX_H_ 101 #endif // BASE_FILES_DIR_READER_LINUX_H_
OLDNEW
« no previous file with comments | « no previous file | base/files/dir_reader_posix_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698