| 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 #include "nacl_io/kernel_handle.h" | 5 #include "nacl_io/kernel_handle.h" |
| 6 | 6 |
| 7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <fcntl.h> | 8 #include <fcntl.h> |
| 9 #include <pthread.h> | 9 #include <pthread.h> |
| 10 | 10 |
| 11 #include "nacl_io/mount.h" | 11 #include "nacl_io/mount.h" |
| 12 #include "nacl_io/mount_node.h" | 12 #include "nacl_io/mount_node.h" |
| 13 #include "nacl_io/osunistd.h" | 13 #include "nacl_io/osunistd.h" |
| 14 | 14 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 100 |
| 101 Error KernelHandle::GetDents(struct dirent* pdir, size_t nbytes, int* cnt) { | 101 Error KernelHandle::GetDents(struct dirent* pdir, size_t nbytes, int* cnt) { |
| 102 AUTO_LOCK(offs_lock_); | 102 AUTO_LOCK(offs_lock_); |
| 103 Error error = node_->GetDents(offs_, pdir, nbytes, cnt); | 103 Error error = node_->GetDents(offs_, pdir, nbytes, cnt); |
| 104 if (0 == error) | 104 if (0 == error) |
| 105 offs_ += *cnt; | 105 offs_ += *cnt; |
| 106 return error; | 106 return error; |
| 107 } | 107 } |
| 108 | 108 |
| 109 } // namespace nacl_io | 109 } // namespace nacl_io |
| OLD | NEW |