| Function report | 
| Source Code: fs\fcntl.c | Create Date:2022-07-28 20:05:53 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:do_compat_fcntl64
Proto:static long do_compat_fcntl64(unsigned int fd, unsigned int cmd, compat_ulong_t arg)
Type:long
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| unsigned int | fd | |
| unsigned int | cmd | |
| compat_ulong_t | arg | 
| 621 | If Not check_fcntl_cmd(cmd) Then Go to out_put | 
| 625 | err = security_file_fcntl(file, cmd, arg) | 
| 632 | If err Then Break | 
| 634 | err = fcntl_getlk(file, convert_fcntl_cmd(cmd), & flock) | 
| 635 | If err Then Break | 
| 640 | Break | 
| 641 | Case cmd == using 'struct flock64' | 
| 642 | Case cmd == F_OFD_GETLK | 
| 644 | If err Then Break | 
| 646 | err = fcntl_getlk(file, convert_fcntl_cmd(cmd), & flock) | 
| 649 | Break | 
| 653 | If err Then Break | 
| 655 | err = fcntl_setlk(fd, file, convert_fcntl_cmd(cmd), & flock) | 
| 656 | Break | 
| 658 | Case cmd == F_SETLKW64 | 
| 659 | Case cmd == F_OFD_SETLK | 
| 660 | Case cmd == F_OFD_SETLKW | 
| 662 | If err Then Break | 
| 664 | err = fcntl_setlk(fd, file, convert_fcntl_cmd(cmd), & flock) | 
| 665 | Break | 
| 666 | Default | 
| 670 | out_put : | 
| 672 | Return err | 
| Name | Describe | 
|---|---|
| COMPAT_SYSCALL_DEFINE3 | |
| COMPAT_SYSCALL_DEFINE3 | 
| 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 |