text: /*
   *  NASA Docket No. GSC-18,370-1, and identified as "Operating System Abstraction Layer"
   *
   *  Copyright (c) 2019 United States Government as represented by
   *  the Administrator of the National Aeronautics and Space Administration.
   *  All Rights Reserved.
   *
   *  Licensed under the Apache License, Version 2.0 (the "License");
   *  you may not use this file except in compliance with the License.
   *  You may obtain a copy of the License at
   *
   *    http://www.apache.org/licenses/LICENSE-2.0
   *
   *  Unless required by applicable law or agreed to in writing, software
   *  distributed under the License is distributed on an "AS IS" BASIS,
   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   *  See the License for the specific language governing permissions and
   *  limitations under the License.
   */
  
  /* OSAL coverage stub replacement for fcntl.h */
  #ifndef OSAL_OVERRIDE_FCNTL_H
  #define OSAL_OVERRIDE_FCNTL_H
  
  #include <OCS_fcntl.h>
  
  /* ----------------------------------------- */
  /* mappings for declarations in fcntl.h */
  /* ----------------------------------------- */
  #define S_IRWXU    OCS_S_IRWXU
  #define S_IRWXG    OCS_S_IRWXG
  #define S_IRWXO    OCS_S_IRWXO
  #define S_IXOTH    OCS_S_IXOTH
  #define S_IXGRP    OCS_S_IXGRP
  #define S_IXUSR    OCS_S_IXUSR
  #define S_IROTH    OCS_S_IROTH
  #define S_IRGRP    OCS_S_IRGRP
  #define S_IRUSR    OCS_S_IRUSR
  #define S_IWOTH    OCS_S_IWOTH
  #define S_IWGRP    OCS_S_IWGRP
  #define S_IWUSR    OCS_S_IWUSR
  #define S_IFDIR    OCS_S_IFDIR
  #define S_ISDIR(x) OCS_S_ISDIR(x)
  #define O_RDONLY   OCS_O_RDONLY
  #define O_WRONLY   OCS_O_WRONLY
  #define O_RDWR     OCS_O_RDWR
  #define O_CREAT    OCS_O_CREAT
  #define O_TRUNC    OCS_O_TRUNC
  #define O_NONBLOCK OCS_O_NONBLOCK
  #define F_GETFL    OCS_F_GETFL
  #define F_SETFL    OCS_F_SETFL
  #define F_GETFD    OCS_F_GETFD
  #define F_SETFD    OCS_F_SETFD
  #define F_DUPFD    OCS_F_DUPFD
  
  #define fcntl OCS_fcntl
  #define open  OCS_open
  
  #endif /* OSAL_OVERRIDE_FCNTL_H */
  