Changeset 22257c7 in rtems-libbsd


Ignore:
Timestamp:
Apr 18, 2016, 12:50:39 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
afaeccc05a556f6aa25ba044a7e49d6aa634a59e, freebsd-9.3, master
Children:
5529f7d
Parents:
c5fde49
git-author:
Sebastian Huber <sebastian.huber@…> (04/18/16 12:50:39)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/18/16 13:06:41)
Message:

Avoid use of cap_rights_t

Location:
freebsd/sys
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/kern/uipc_syscalls.c

    rc5fde49 r22257c7  
    10341034        int i, error;
    10351035        ssize_t len;
     1036#ifndef __rtems__
    10361037        cap_rights_t rights;
     1038#endif /* __rtems__ */
    10371039#ifdef KTRACE
    10381040        struct uio *ktruio = NULL;
     
    10401042
    10411043        AUDIT_ARG_FD(s);
     1044#ifndef __rtems__
    10421045        rights = CAP_WRITE;
    10431046        if (mp->msg_name != NULL)
     
    10461049        if (error)
    10471050                return (error);
     1051#endif /* __rtems__ */
    10481052        so = (struct socket *)fp->f_data;
    10491053
  • freebsd/sys/sys/file.h

    rc5fde49 r22257c7  
    310310
    311311static inline int
    312 fget(struct thread *td, int fd, cap_rights_t rights, struct file **fpp)
     312rtems_bsd_do_fget(int fd, struct file **fpp)
    313313{
    314314        struct file *fp = rtems_bsd_get_file(fd);
    315315
    316         (void) td;
    317         (void) rights;
    318 
    319316        *fpp = fp;
    320317
    321318        return fp != NULL ? 0 : EBADF;
    322319}
     320
     321#define fget(td, fd, rights, fpp)       rtems_bsd_do_fget(fd, fpp)
    323322#endif /* __rtems__ */
    324323int fget_mmap(struct thread *td, int fd, cap_rights_t rights,
  • freebsd/sys/sys/user.h

    rc5fde49 r22257c7  
    328328
    329329struct kinfo_file {
     330#ifndef __rtems__
    330331        int             kf_structsize;          /* Variable size of record. */
    331332        int             kf_type;                /* Descriptor type. */
     
    398399        /* Truncated before copyout in sysctl */
    399400        char            kf_path[PATH_MAX];      /* Path to file, if any. */
     401#else /* __rtems__ */
     402        int             kf_dummy;
     403#endif /* __rtems__ */
    400404};
    401405
Note: See TracChangeset for help on using the changeset viewer.