text: // Copyright (c) Microsoft Corporation. All rights reserved.
  // Licensed under the MIT License.
  
  #ifndef _OE_SYSCALL_FDTABLE_H
  #define _OE_SYSCALL_FDTABLE_H
  
  #include <openenclave/bits/defs.h>
  #include <openenclave/bits/types.h>
  #include <openenclave/internal/syscall/fd.h>
  
  OE_EXTERNC_BEGIN
  
  oe_fd_t* oe_fdtable_get(int fd, oe_fd_type_t type);
  
  int oe_fdtable_assign(oe_fd_t* desc);
  
  int oe_fdtable_reassign(int fd, oe_fd_t* new_desc, oe_fd_t** old_desc);
  
  int oe_fdtable_release(int fd);
  
  OE_EXTERNC_END
  
  #endif // _OE_SYSCALL_FDTABLE_H
  