Changeset 7f1c620 in mainline for generic/src/security/cap.c


Ignore:
Timestamp:
2006-07-04T17:17:56Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0ffa3ef5
Parents:
991779c5
Message:

Replace old u?? types with respective C99 variants (e.g. uint32_t, int64_t, uintptr_t etc.).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/security/cap.c

    r991779c5 r7f1c620  
    9595 * @return Zero on success or an error code from @ref errno.h.
    9696 */
    97 __native sys_cap_grant(sysarg64_t *uspace_taskid_arg, cap_t caps)
     97unative_t sys_cap_grant(sysarg64_t *uspace_taskid_arg, cap_t caps)
    9898{
    9999        sysarg64_t taskid_arg;
     
    103103       
    104104        if (!(cap_get(TASK) & CAP_CAP))
    105                 return (__native) EPERM;
     105                return (unative_t) EPERM;
    106106       
    107107        rc = copy_from_uspace(&taskid_arg, uspace_taskid_arg, sizeof(sysarg64_t));
    108108        if (rc != 0)
    109                 return (__native) rc;
     109                return (unative_t) rc;
    110110               
    111111        ipl = interrupts_disable();
     
    115115                spinlock_unlock(&tasks_lock);
    116116                interrupts_restore(ipl);
    117                 return (__native) ENOENT;
     117                return (unative_t) ENOENT;
    118118        }
    119119       
     
    140140 * @return Zero on success or an error code from @ref errno.h.
    141141 */
    142 __native sys_cap_revoke(sysarg64_t *uspace_taskid_arg, cap_t caps)
     142unative_t sys_cap_revoke(sysarg64_t *uspace_taskid_arg, cap_t caps)
    143143{
    144144        sysarg64_t taskid_arg;
     
    149149        rc = copy_from_uspace(&taskid_arg, uspace_taskid_arg, sizeof(sysarg64_t));
    150150        if (rc != 0)
    151                 return (__native) rc;
     151                return (unative_t) rc;
    152152
    153153        ipl = interrupts_disable();
     
    157157                spinlock_unlock(&tasks_lock);
    158158                interrupts_restore(ipl);
    159                 return (__native) ENOENT;
     159                return (unative_t) ENOENT;
    160160        }
    161161
     
    168168                spinlock_unlock(&tasks_lock);
    169169                interrupts_restore(ipl);
    170                 return (__native) EPERM;
     170                return (unative_t) EPERM;
    171171        }
    172172       
Note: See TracChangeset for help on using the changeset viewer.