| 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_proxy.h" | 5 #include "nacl_io/kernel_proxy.h" |
| 6 | 6 |
| 7 #include <assert.h> | 7 #include <assert.h> |
| 8 #include <errno.h> | 8 #include <errno.h> |
| 9 #include <fcntl.h> | 9 #include <fcntl.h> |
| 10 #include <limits.h> | 10 #include <limits.h> |
| (...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 965 | 965 |
| 966 Error error = AcquireFsAndNode(path, O_WRONLY, 0, &fs, &node); | 966 Error error = AcquireFsAndNode(path, O_WRONLY, 0, &fs, &node); |
| 967 if (error) { | 967 if (error) { |
| 968 errno = error; | 968 errno = error; |
| 969 return -1; | 969 return -1; |
| 970 } | 970 } |
| 971 | 971 |
| 972 return FutimensInternal(node, times); | 972 return FutimensInternal(node, times); |
| 973 } | 973 } |
| 974 | 974 |
| 975 // TODO(noelallen): Needs implementation. | 975 // TODO(bradnelson): Needs implementation. |
| 976 int KernelProxy::link(const char* oldpath, const char* newpath) { | 976 int KernelProxy::link(const char* oldpath, const char* newpath) { |
| 977 LOG_TRACE("link is not implemented."); | 977 LOG_TRACE("link is not implemented."); |
| 978 errno = EINVAL; | 978 errno = EINVAL; |
| 979 return -1; | 979 return -1; |
| 980 } | 980 } |
| 981 | 981 |
| 982 int KernelProxy::symlink(const char* oldpath, const char* newpath) { | 982 int KernelProxy::symlink(const char* oldpath, const char* newpath) { |
| 983 LOG_TRACE("symlink is not implemented."); | 983 LOG_TRACE("symlink is not implemented."); |
| 984 errno = EINVAL; | 984 errno = EINVAL; |
| 985 return -1; | 985 return -1; |
| (...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1818 errno = ENOTSOCK; | 1818 errno = ENOTSOCK; |
| 1819 return -1; | 1819 return -1; |
| 1820 } | 1820 } |
| 1821 | 1821 |
| 1822 return 0; | 1822 return 0; |
| 1823 } | 1823 } |
| 1824 | 1824 |
| 1825 #endif // PROVIDES_SOCKET_API | 1825 #endif // PROVIDES_SOCKET_API |
| 1826 | 1826 |
| 1827 } // namespace_nacl_io | 1827 } // namespace_nacl_io |
| OLD | NEW |