Changeset 889eb76 in rtems


Ignore:
Timestamp:
Mar 15, 2017, 6:29:19 PM (3 years ago)
Author:
Gedare Bloom <gedare@…>
Branches:
master
Children:
bd9d5eb
Parents:
e0627c69
git-author:
Gedare Bloom <gedare@…> (03/15/17 18:29:19)
git-committer:
Gedare Bloom <gedare@…> (05/05/17 14:34:08)
Message:

posix/mman: update atime on shared memory read call

Update #2859.

Location:
cpukit/posix
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/include/rtems/posix/shmimpl.h

    re0627c69 r889eb76  
    8585}
    8686
     87RTEMS_INLINE_ROUTINE void _POSIX_Shm_Update_atime(
     88  POSIX_Shm_Control *shm
     89)
     90{
     91  struct timeval now;
     92  gettimeofday( &now, 0 );
     93  shm->atime = now.tv_sec;
     94}
     95
    8796RTEMS_INLINE_ROUTINE void _POSIX_Shm_Update_mtime_ctime(
    8897  POSIX_Shm_Control *shm
  • cpukit/posix/src/shmopen.c

    re0627c69 r889eb76  
    6767      count
    6868  );
     69  _POSIX_Shm_Update_atime( shm );
    6970  _POSIX_Shm_Release( shm, &queue_context );
    7071
Note: See TracChangeset for help on using the changeset viewer.