// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
/**
* @brief Invokes demi_fcntl().
*
* @param fd Open descriptor
* @param cmd Operation to perform on fd
* @param ... Optional third argument. Determined if required
* depending on cmd.
*
* @return For a successful call, the return value depends on operation.
* On error, -1 is returned and errno is set to indicate error.
*/
int