diff options
Diffstat (limited to 'arch/um/os-Linux/file.c')
-rw-r--r-- | arch/um/os-Linux/file.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/um/os-Linux/file.c b/arch/um/os-Linux/file.c index f83462758627..c3bb5ce70c95 100644 --- a/arch/um/os-Linux/file.c +++ b/arch/um/os-Linux/file.c | |||
@@ -19,7 +19,7 @@ | |||
19 | #include "user.h" | 19 | #include "user.h" |
20 | #include "kern_util.h" | 20 | #include "kern_util.h" |
21 | 21 | ||
22 | static void copy_stat(struct uml_stat *dst, struct stat64 *src) | 22 | static void copy_stat(struct uml_stat *dst, const struct stat64 *src) |
23 | { | 23 | { |
24 | *dst = ((struct uml_stat) { | 24 | *dst = ((struct uml_stat) { |
25 | .ust_dev = src->st_dev, /* device */ | 25 | .ust_dev = src->st_dev, /* device */ |
@@ -168,7 +168,7 @@ int os_file_type(char *file) | |||
168 | else return OS_TYPE_FILE; | 168 | else return OS_TYPE_FILE; |
169 | } | 169 | } |
170 | 170 | ||
171 | int os_file_mode(char *file, struct openflags *mode_out) | 171 | int os_file_mode(const char *file, struct openflags *mode_out) |
172 | { | 172 | { |
173 | int err; | 173 | int err; |
174 | 174 | ||
@@ -189,7 +189,7 @@ int os_file_mode(char *file, struct openflags *mode_out) | |||
189 | return err; | 189 | return err; |
190 | } | 190 | } |
191 | 191 | ||
192 | int os_open_file(char *file, struct openflags flags, int mode) | 192 | int os_open_file(const char *file, struct openflags flags, int mode) |
193 | { | 193 | { |
194 | int fd, err, f = 0; | 194 | int fd, err, f = 0; |
195 | 195 | ||
@@ -216,7 +216,7 @@ int os_open_file(char *file, struct openflags flags, int mode) | |||
216 | return fd; | 216 | return fd; |
217 | } | 217 | } |
218 | 218 | ||
219 | int os_connect_socket(char *name) | 219 | int os_connect_socket(const char *name) |
220 | { | 220 | { |
221 | struct sockaddr_un sock; | 221 | struct sockaddr_un sock; |
222 | int fd, err; | 222 | int fd, err; |
@@ -277,7 +277,7 @@ int os_write_file(int fd, const void *buf, int len) | |||
277 | return n; | 277 | return n; |
278 | } | 278 | } |
279 | 279 | ||
280 | int os_file_size(char *file, unsigned long long *size_out) | 280 | int os_file_size(const char *file, unsigned long long *size_out) |
281 | { | 281 | { |
282 | struct uml_stat buf; | 282 | struct uml_stat buf; |
283 | int err; | 283 | int err; |
@@ -314,7 +314,7 @@ int os_file_size(char *file, unsigned long long *size_out) | |||
314 | return 0; | 314 | return 0; |
315 | } | 315 | } |
316 | 316 | ||
317 | int os_file_modtime(char *file, unsigned long *modtime) | 317 | int os_file_modtime(const char *file, unsigned long *modtime) |
318 | { | 318 | { |
319 | struct uml_stat buf; | 319 | struct uml_stat buf; |
320 | int err; | 320 | int err; |
@@ -514,7 +514,7 @@ int os_rcv_fd(int fd, int *helper_pid_out) | |||
514 | return new; | 514 | return new; |
515 | } | 515 | } |
516 | 516 | ||
517 | int os_create_unix_socket(char *file, int len, int close_on_exec) | 517 | int os_create_unix_socket(const char *file, int len, int close_on_exec) |
518 | { | 518 | { |
519 | struct sockaddr_un addr; | 519 | struct sockaddr_un addr; |
520 | int sock, err; | 520 | int sock, err; |