| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "SkOSFile.h" | 8 #include "SkOSFile.h" |
| 9 | 9 |
| 10 #include "SkTemplates.h" | 10 #include "SkTFitsIn.h" |
| 11 | 11 |
| 12 #include <io.h> | 12 #include <io.h> |
| 13 #include <stdio.h> | 13 #include <stdio.h> |
| 14 #include <sys/stat.h> | 14 #include <sys/stat.h> |
| 15 | 15 |
| 16 typedef struct { | 16 typedef struct { |
| 17 ULONGLONG fVolume; | 17 ULONGLONG fVolume; |
| 18 ULONGLONG fLsbSize; | 18 ULONGLONG fLsbSize; |
| 19 ULONGLONG fMsbSize; | 19 ULONGLONG fMsbSize; |
| 20 } SkFILEID; | 20 } SkFILEID; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 } | 104 } |
| 105 | 105 |
| 106 void* sk_fmmap(SkFILE* f, size_t* length) { | 106 void* sk_fmmap(SkFILE* f, size_t* length) { |
| 107 int fileno = sk_fileno(f); | 107 int fileno = sk_fileno(f); |
| 108 if (fileno < 0) { | 108 if (fileno < 0) { |
| 109 return NULL; | 109 return NULL; |
| 110 } | 110 } |
| 111 | 111 |
| 112 return sk_fdmmap(fileno, length); | 112 return sk_fdmmap(fileno, length); |
| 113 } | 113 } |
| OLD | NEW |