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_mounts/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_mounts/mount_node_dir.h" | 17 #include "nacl_io/mount_node_dir.h" |
18 #include "nacl_mounts/osinttypes.h" | 18 #include "nacl_io/osinttypes.h" |
19 #include "utils/auto_lock.h" | 19 #include "utils/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 typedef std::vector<char *> StringList_t; | 26 typedef std::vector<char *> StringList_t; |
27 static size_t SplitString(char *str, const char *delim, StringList_t* list) { | 27 static size_t SplitString(char *str, const char *delim, StringList_t* list) { |
28 char *item = strtok(str, delim); | 28 char *item = strtok(str, delim); |
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 off_t len = manifiestNode->Read(0, text, manifiestNode->GetSize()); | 676 off_t len = manifiestNode->Read(0, text, manifiestNode->GetSize()); |
677 manifiestNode->Release(); | 677 manifiestNode->Release(); |
678 | 678 |
679 text[len] = 0; | 679 text[len] = 0; |
680 return text; | 680 return text; |
681 } | 681 } |
682 | 682 |
683 fprintf(stderr, "Could not open manifest: %s\n", manifestName.c_str()); | 683 fprintf(stderr, "Could not open manifest: %s\n", manifestName.c_str()); |
684 return NULL; | 684 return NULL; |
685 } | 685 } |
OLD | NEW |