aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/include
diff options
context:
space:
mode:
authorWANG Cong <xiyou.wangcong@gmail.com>2008-02-05 01:30:35 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-05 12:44:24 -0500
commitc9a3072d13e4b8a6549ecc1db6390a55c7ee2ddf (patch)
tree7b3eee2e8b71d844b27ed6a1c8d852915934e7f9 /arch/um/include
parent4d18de45fa921600e1b3770c3a7cb106ab48cd9d (diff)
uml: code tidying under arch/um/os-Linux
This patch contains varied fixes and improvements for some files under arch/um/os-Linux/, such as a typo fix in a perror message, a missing argument fix for a printf, some constifying for pointers and so on. [ jdike - made sigprocmask failure return -errno instead of -1 ] Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com> Signed-off-by: Jeff Dike <jdike@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/include')
-rw-r--r--arch/um/include/os.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/um/include/os.h b/arch/um/include/os.h
index 6f0d1c741bca..82e5aeae2b84 100644
--- a/arch/um/include/os.h
+++ b/arch/um/include/os.h
@@ -137,24 +137,24 @@ extern int os_set_owner(int fd, int pid);
137extern int os_mode_fd(int fd, int mode); 137extern int os_mode_fd(int fd, int mode);
138 138
139extern int os_seek_file(int fd, unsigned long long offset); 139extern int os_seek_file(int fd, unsigned long long offset);
140extern int os_open_file(char *file, struct openflags flags, int mode); 140extern int os_open_file(const char *file, struct openflags flags, int mode);
141extern int os_read_file(int fd, void *buf, int len); 141extern int os_read_file(int fd, void *buf, int len);
142extern int os_write_file(int fd, const void *buf, int count); 142extern int os_write_file(int fd, const void *buf, int count);
143extern int os_file_size(char *file, unsigned long long *size_out); 143extern int os_file_size(const char *file, unsigned long long *size_out);
144extern int os_file_modtime(char *file, unsigned long *modtime); 144extern int os_file_modtime(const char *file, unsigned long *modtime);
145extern int os_pipe(int *fd, int stream, int close_on_exec); 145extern int os_pipe(int *fd, int stream, int close_on_exec);
146extern int os_set_fd_async(int fd, int owner); 146extern int os_set_fd_async(int fd, int owner);
147extern int os_clear_fd_async(int fd); 147extern int os_clear_fd_async(int fd);
148extern int os_set_fd_block(int fd, int blocking); 148extern int os_set_fd_block(int fd, int blocking);
149extern int os_accept_connection(int fd); 149extern int os_accept_connection(int fd);
150extern int os_create_unix_socket(char *file, int len, int close_on_exec); 150extern int os_create_unix_socket(const char *file, int len, int close_on_exec);
151extern int os_shutdown_socket(int fd, int r, int w); 151extern int os_shutdown_socket(int fd, int r, int w);
152extern void os_close_file(int fd); 152extern void os_close_file(int fd);
153extern int os_rcv_fd(int fd, int *helper_pid_out); 153extern int os_rcv_fd(int fd, int *helper_pid_out);
154extern int create_unix_socket(char *file, int len, int close_on_exec); 154extern int create_unix_socket(char *file, int len, int close_on_exec);
155extern int os_connect_socket(char *name); 155extern int os_connect_socket(const char *name);
156extern int os_file_type(char *file); 156extern int os_file_type(char *file);
157extern int os_file_mode(char *file, struct openflags *mode_out); 157extern int os_file_mode(const char *file, struct openflags *mode_out);
158extern int os_lock_file(int fd, int excl); 158extern int os_lock_file(int fd, int excl);
159extern void os_flush_stdout(void); 159extern void os_flush_stdout(void);
160extern int os_stat_filesystem(char *path, long *bsize_out, 160extern int os_stat_filesystem(char *path, long *bsize_out,