Function report |
Source Code:fs\open.c |
Create Date:2022-07-28 20:00:52 |
Last Modify:2020-03-18 10:16:03 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:do_sys_ftruncate
Proto:long do_sys_ftruncate(unsigned int fd, loff_t length, int small)
Type:long
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned int | fd | |
loff_t | length | |
int | small |
171 | If f_flags & O_LARGEFILE Then small = 0 |
177 | If Not S_ISREG(i_mode) || Not (f_mode & le is open for writing ) Then Go to out_putf |
182 | If small && length > MAX_NON_LFS Then Go to out_putf |
187 | If IS_APPEND(file_inode(file)) Then Go to out_putf |
191 | error = locks_verify_truncate(inode, file, length) |
192 | If Not error Then error = security_path_truncate( & f_path) |
194 | If Not error Then error = do_truncate(dentry, length, ATTR_MTIME | ATTR_CTIME, file) |
197 | out_putf : |
199 | out : |
200 | Return error |
Name | Describe |
---|---|
SYSCALL_DEFINE2 | |
COMPAT_SYSCALL_DEFINE2 | |
SYSCALL_DEFINE2 | |
ksys_ftruncate |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |