| Function report | 
| Source Code: fs\posix_acl.c | Create Date:2022-07-28 20:29:49 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:posix_acl_create
Proto:int posix_acl_create(struct inode *dir, umode_t *mode, struct posix_acl **default_acl, struct posix_acl **acl)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct inode * | dir | |
| umode_t * | mode | |
| struct posix_acl ** | default_acl | |
| struct posix_acl ** | acl | 
| 589 | * acl = NULL | 
| 590 | * default_acl = NULL | 
| 592 | If S_ISLNK( * mode) || Not IS_POSIXACL(dir) Then Return 0 | 
| 595 | p = get_acl(dir, ACL_TYPE_DEFAULT) | 
| 596 | If Not p || p == ERR_PTR( - EOPNOTSUPP) Then | 
| 597 | mode &= ~current_umask() | 
| 598 | Return 0 | 
| 604 | clone = Clone an ACL. | 
| 605 | If Not clone Then Go to err_release | 
| 609 | If ret < 0 Then Go to err_release_clone | 
| 612 | If ret == 0 Then Free an ACL handle. | 
| 617 | If Not S_ISDIR( * mode) Then Free an ACL handle. | 
| 619 | Else default_acl = p | 
| 622 | Return 0 | 
| 624 | err_release_clone : | 
| 626 | err_release : | 
| 628 | Return ret | 
| Name | Describe | 
|---|---|
| simple_acl_create | 
| 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 |