client/src/unifycr.c
inline int unifycr_get_fid_from_fd(int fd)
{
  /* check that file descriptor is within range */
  if (fd < 0 || fd >= UNIFYCR_MAX_FILEDESCS) {
    return -1;
  }

  /* right now, the file descriptor is equal to the file id */
  return fd;
}
/* given a file descriptor, return the file id */
given a file descriptor, return the file id
given a file descriptor return the file id
inline int unifycr_get_fid_from_fd(int fd)
{
  if (fd < 0 || fd >= UNIFYCR_MAX_FILEDESCS) {
    return -1;
  }
  return fd;
}
inline int unifycr_get_fid_from_fd ( int fd ) { if ( fd < 0 || fd >= UNIFYCR_MAX_FILEDESCS ) { return -1 ; } return fd ; }
given a file descriptor, return the file id
given a file descriptor return the file id
/* check that file descriptor is within range */ /* right now, the file descriptor is equal to the file id */