? cpukit/j
RCS file: /usr1/CVS/rtems/cpukit/libcsupport/include/rtems/libio.h,v
retrieving revision 1.78
diff -u -r1.78 libio.h
|
|
|
1287 | 1287 | * Verifies that the permission flag is valid. |
1288 | 1288 | */ |
1289 | 1289 | #define rtems_libio_is_valid_perms( _perm ) \ |
1290 | | (~ ((~RTEMS_LIBIO_PERMS_RWX) & _perm )) |
| 1290 | (((~RTEMS_LIBIO_PERMS_RWX) & _perm ) == 0) |
1291 | 1291 | |
1292 | 1292 | /* |
1293 | 1293 | * Prototypes for filesystem |
RCS file: /usr1/CVS/rtems/cpukit/libfs/src/devfs/devfs_eval.c,v
retrieving revision 1.6
diff -u -r1.6 devfs_eval.c
|
|
|
40 | 40 | rtems_device_name_t *device_name_table; |
41 | 41 | |
42 | 42 | /* see if 'flags' is valid */ |
43 | | if ( !rtems_libio_is_valid_perms( flags ) ) { |
44 | | assert( 0 ); |
45 | | rtems_set_errno_and_return_minus_one( EIO ); |
46 | | } |
| 43 | if ( !rtems_libio_is_valid_perms( flags ) ) |
| 44 | rtems_set_errno_and_return_minus_one( EPERM ); |
47 | 45 | |
48 | 46 | /* get the device name table */ |
49 | 47 | device_name_table = (rtems_device_name_t *)pathloc->node_access; |
RCS file: /usr1/CVS/rtems/cpukit/libfs/src/imfs/imfs_eval.c,v
retrieving revision 1.30
diff -u -r1.30 imfs_eval.c
|
|
|
80 | 80 | IMFS_jnode_t *jnode; |
81 | 81 | int flags_to_test; |
82 | 82 | |
83 | | if ( !rtems_libio_is_valid_perms( flags ) ) { |
84 | | rtems_set_errno_and_return_minus_one( EIO ); |
85 | | } |
| 83 | if ( !rtems_libio_is_valid_perms( flags ) ) |
| 84 | rtems_set_errno_and_return_minus_one( EPERM ); |
86 | 85 | |
87 | 86 | jnode = node->node_access; |
88 | 87 | |