Changeset 5eb67f3 in rtems


Ignore:
Timestamp:
Sep 13, 2017, 8:49:19 AM (22 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
7b45202
Parents:
62f3fa84
git-author:
Sebastian Huber <sebastian.huber@…> (09/13/17 08:49:19)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/14/17 05:02:29)
Message:

libio: Remove LIBIO_FLAGS_CREATE

Close #3134.

Location:
cpukit/libcsupport
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/include/rtems/libio.h

    r62f3fa84 r5eb67f3  
    13701370#define LIBIO_FLAGS_OPEN          0x0100U  /* device is open */
    13711371#define LIBIO_FLAGS_APPEND        0x0200U  /* all writes append */
    1372 #define LIBIO_FLAGS_CREATE        0x0400U  /* create file */
    13731372#define LIBIO_FLAGS_CLOSE_ON_EXEC 0x0800U  /* close on process exec() */
    13741373#define LIBIO_FLAGS_READ_WRITE    (LIBIO_FLAGS_READ | LIBIO_FLAGS_WRITE)
  • cpukit/libcsupport/src/fcntl.c

    r62f3fa84 r5eb67f3  
    3434    int oflag = rtems_libio_to_fcntl_flags( iop->flags );
    3535
    36     oflag &= ~O_CREAT;
    3736    diop->flags |= rtems_libio_fcntl_flags( oflag );
    3837
     
    7776    if (rv == 0) {
    7877      oflag = rtems_libio_to_fcntl_flags( iop->flags );
    79       oflag &= ~O_CREAT;
    8078      iop2->flags |= rtems_libio_fcntl_flags( oflag );
    8179
  • cpukit/libcsupport/src/libio.c

    r62f3fa84 r5eb67f3  
    5656  { "NONBLOCK",  LIBIO_FLAGS_NO_DELAY,  O_NONBLOCK },
    5757  { "APPEND",    LIBIO_FLAGS_APPEND,    O_APPEND },
    58   { "CREATE",    LIBIO_FLAGS_CREATE,    O_CREAT },
    5958  { 0, 0, 0 },
    6059};
     
    105104  }
    106105
    107   if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) {
    108     fcntl_flags |= O_CREAT;
    109   }
    110 
    111106  return fcntl_flags;
    112107}
Note: See TracChangeset for help on using the changeset viewer.