Esempio n. 1
0
/*
 * The UnixWare 7 truncate64/fruncate64 syscalls are the same as in
 * Linux, but we can't easily handle long long syscall parameters for
 * lcall7, thus we have to fake two 32bit arguments instead.
 *
 * XXX: if do_sys_truncate/do_sys_ftruncate in fs/open.c were exported
 *	we could get rid of one function call.
 */
int
uw7_truncate64(const char *filename, u_int len, u_int len_hi)
{
	return sys_truncate64(filename, (len | (loff_t)len_hi << 32));
}
Esempio n. 2
0
asmlinkage long sys32_truncate64(const char __user *filename,
				 unsigned long offset_low,
				 unsigned long offset_high)
{
       return sys_truncate64(filename, ((loff_t) offset_high << 32) | offset_low);
}
Esempio n. 3
0
asmlinkage long sys_truncate64_metag(const char __user *path, unsigned long lo,
				     unsigned long hi)
{
	return sys_truncate64(path, merge_64(hi, lo));
}
Esempio n. 4
0
asmlinkage int trimedia_truncate64(const char __user * path, 
					unsigned long low , unsigned long high)
{
	return sys_truncate64(path, (loff_t)high << 32 | low);
}