Changeset 40a18d7f in rtems


Ignore:
Timestamp:
Feb 13, 2015, 8:11:55 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
249766c5
Parents:
12eee4fd
Message:

IMFS: Add CONFIGURE_IMFS_DISABLE_MKNOD_FILE

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/include/confdefs.h

    r12eee4fd r40a18d7f  
    622622        &IMFS_mknod_control_directory,
    623623        &IMFS_mknod_control_device,
    624         &IMFS_mknod_control_memfile,
     624        #ifdef CONFIGURE_IMFS_DISABLE_MKNOD_FILE
     625          &IMFS_mknod_control_enosys,
     626        #else
     627          &IMFS_mknod_control_memfile,
     628        #endif
    625629        #if CONFIGURE_MAXIMUM_FIFOS > 0 || CONFIGURE_MAXIMUM_PIPES > 0
    626630          &IMFS_mknod_control_fifo
  • doc/user/conf.t

    r12eee4fd r40a18d7f  
    29722972In case this configuration option is defined, then the support to make
    29732973directories, devices, regular files and FIFOs is disabled in the root IMFS.
     2974
     2975@c
     2976@c === CONFIGURE_IMFS_DISABLE_MKNOD_FILE ===
     2977@c
     2978@subsection Disable Make Files Support of Root IMFS
     2979
     2980@findex CONFIGURE_IMFS_DISABLE_MKNOD_FILE
     2981
     2982@table @b
     2983@item CONSTANT:
     2984@code{CONFIGURE_IMFS_DISABLE_MKNOD_FILE}
     2985
     2986@item DATA TYPE:
     2987Boolean feature macro.
     2988
     2989@item RANGE:
     2990Defined or undefined.
     2991
     2992@item DEFAULT VALUE:
     2993This is not defined by default.
     2994
     2995@end table
     2996
     2997@subheading DESCRIPTION:
     2998In case this configuration option is defined, then the support to make regular
     2999files is disabled in the root IMFS.
    29743000
    29753001@c
  • testsuites/fstests/fsimfsconfig01/init.c

    r12eee4fd r40a18d7f  
    7979  rtems_test_assert(rv == 0);
    8080
     81  errno = 0;
    8182  fd = creat(file, S_IRWXU);
    82   rtems_test_assert(fd == 3);
    83 
    84   rv = close(fd);
    85   rtems_test_assert(rv == 0);
     83  rtems_test_assert(fd == -1);
     84  rtems_test_assert(errno == ENOSYS);
    8685
    8786  errno = 0;
     
    144143#endif
    145144
     145#define CONFIGURE_IMFS_DISABLE_MKNOD_FILE
    146146#define CONFIGURE_IMFS_DISABLE_MOUNT
    147147#define CONFIGURE_IMFS_DISABLE_RENAME
Note: See TracChangeset for help on using the changeset viewer.