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 | 5 |
6 #include "nacl_io/mount_http.h" | 6 #include "nacl_io/mount_http.h" |
7 #include <assert.h> | 7 #include <assert.h> |
8 #include <ctype.h> | 8 #include <ctype.h> |
9 #include <errno.h> | 9 #include <errno.h> |
10 #include <fcntl.h> | 10 #include <fcntl.h> |
11 #include <ppapi/c/pp_errors.h> | 11 #include <ppapi/c/pp_errors.h> |
12 #include <stdio.h> | 12 #include <stdio.h> |
13 #include <string.h> | 13 #include <string.h> |
14 #include <sys/stat.h> | 14 #include <sys/stat.h> |
15 #include <sys/types.h> | 15 #include <sys/types.h> |
16 #include <vector> | 16 #include <vector> |
17 #include "nacl_io/mount_node_dir.h" | 17 #include "nacl_io/mount_node_dir.h" |
18 #include "nacl_io/osinttypes.h" | 18 #include "nacl_io/osinttypes.h" |
19 #include "utils/auto_lock.h" | 19 #include "sdk_util/auto_lock.h" |
20 | 20 |
21 #if defined(WIN32) | 21 #if defined(WIN32) |
22 #define snprintf _snprintf | 22 #define snprintf _snprintf |
23 #endif | 23 #endif |
24 | 24 |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 typedef std::vector<char *> StringList_t; | 28 typedef std::vector<char *> StringList_t; |
29 size_t SplitString(char *str, const char *delim, StringList_t* list) { | 29 size_t SplitString(char *str, const char *delim, StringList_t* list) { |
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 off_t len = manifest_node->Read(0, text, manifest_node->GetSize()); | 793 off_t len = manifest_node->Read(0, text, manifest_node->GetSize()); |
794 manifest_node->Release(); | 794 manifest_node->Release(); |
795 | 795 |
796 text[len] = 0; | 796 text[len] = 0; |
797 return text; | 797 return text; |
798 } | 798 } |
799 | 799 |
800 fprintf(stderr, "Could not open manifest: %s\n", manifest_name.c_str()); | 800 fprintf(stderr, "Could not open manifest: %s\n", manifest_name.c_str()); |
801 return NULL; | 801 return NULL; |
802 } | 802 } |
OLD | NEW |