os.h (0dafcbe128d2af48919619f79332ef219b5e5514) | os.h (5d38f324993f49d1226ec81efe045834b46cd85a) |
---|---|
1/* 2 * Copyright (C) 2015 Anton Ivanov (aivanov@{brocade.com,kot-begemot.co.uk}) 3 * Copyright (C) 2015 Thomas Meyer (thomas@m3y3r.de) 4 * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) 5 * Licensed under the GPL 6 */ 7 8#ifndef __OS_H__ --- 22 unchanged lines hidden (view full) --- 31#define OS_ACC_RW_OK (OS_ACC_W_OK | OS_ACC_R_OK) /* Test for RW permission */ 32 33#ifdef CONFIG_64BIT 34#define OS_LIB_PATH "/usr/lib64/" 35#else 36#define OS_LIB_PATH "/usr/lib/" 37#endif 38 | 1/* 2 * Copyright (C) 2015 Anton Ivanov (aivanov@{brocade.com,kot-begemot.co.uk}) 3 * Copyright (C) 2015 Thomas Meyer (thomas@m3y3r.de) 4 * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) 5 * Licensed under the GPL 6 */ 7 8#ifndef __OS_H__ --- 22 unchanged lines hidden (view full) --- 31#define OS_ACC_RW_OK (OS_ACC_W_OK | OS_ACC_R_OK) /* Test for RW permission */ 32 33#ifdef CONFIG_64BIT 34#define OS_LIB_PATH "/usr/lib64/" 35#else 36#define OS_LIB_PATH "/usr/lib/" 37#endif 38 |
39#define OS_SENDMSG_MAX_FDS 8 40 |
|
39/* 40 * types taken from stat_file() in hostfs_user.c 41 * (if they are wrong here, they are wrong there...). 42 */ 43struct uml_stat { 44 int ust_dev; /* device */ 45 unsigned long long ust_ino; /* inode */ 46 int ust_mode; /* protection */ --- 124 unchanged lines hidden (view full) --- 171 int fsid_size, long *namelen_out, 172 long *spare_out); 173extern int os_change_dir(char *dir); 174extern int os_fchange_dir(int fd); 175extern unsigned os_major(unsigned long long dev); 176extern unsigned os_minor(unsigned long long dev); 177extern unsigned long long os_makedev(unsigned major, unsigned minor); 178extern int os_falloc_punch(int fd, unsigned long long offset, int count); | 41/* 42 * types taken from stat_file() in hostfs_user.c 43 * (if they are wrong here, they are wrong there...). 44 */ 45struct uml_stat { 46 int ust_dev; /* device */ 47 unsigned long long ust_ino; /* inode */ 48 int ust_mode; /* protection */ --- 124 unchanged lines hidden (view full) --- 173 int fsid_size, long *namelen_out, 174 long *spare_out); 175extern int os_change_dir(char *dir); 176extern int os_fchange_dir(int fd); 177extern unsigned os_major(unsigned long long dev); 178extern unsigned os_minor(unsigned long long dev); 179extern unsigned long long os_makedev(unsigned major, unsigned minor); 180extern int os_falloc_punch(int fd, unsigned long long offset, int count); |
181extern int os_eventfd(unsigned int initval, int flags); 182extern int os_sendmsg_fds(int fd, const void *buf, unsigned int len, 183 const int *fds, unsigned int fds_num); |
|
179 180/* start_up.c */ 181extern void os_early_checks(void); 182extern void os_check_bugs(void); 183extern void check_host_supports_tls(int *supports_tls, int *tls_min); 184 185/* mem.c */ 186extern int create_mem_file(unsigned long long len); --- 141 unchanged lines hidden --- | 184 185/* start_up.c */ 186extern void os_early_checks(void); 187extern void os_check_bugs(void); 188extern void check_host_supports_tls(int *supports_tls, int *tls_min); 189 190/* mem.c */ 191extern int create_mem_file(unsigned long long len); --- 141 unchanged lines hidden --- |