1 /** 2 * Copyright (C) Mellanox Technologies Ltd. 2019. ALL RIGHTS RESERVED. 3 * 4 * See file LICENSE for terms. 5 */ 6 7 #ifdef HAVE_CONFIG_H 8 # include "config.h" 9 #endif 10 11 #include <ucs/sys/stubs.h> 12 #include <ucs/debug/assert.h> 13 14 ucs_empty_function()15void ucs_empty_function() 16 { 17 } 18 ucs_empty_function_return_zero()19unsigned ucs_empty_function_return_zero() 20 { 21 return 0; 22 } 23 ucs_empty_function_return_zero_int64()24int64_t ucs_empty_function_return_zero_int64() 25 { 26 return 0; 27 } 28 ucs_empty_function_return_one()29unsigned ucs_empty_function_return_one() 30 { 31 return 1; 32 } 33 ucs_empty_function_return_success()34ucs_status_t ucs_empty_function_return_success() 35 { 36 return UCS_OK; 37 } 38 ucs_empty_function_return_unsupported()39ucs_status_t ucs_empty_function_return_unsupported() 40 { 41 return UCS_ERR_UNSUPPORTED; 42 } 43 ucs_empty_function_return_inprogress()44ucs_status_t ucs_empty_function_return_inprogress() 45 { 46 return UCS_INPROGRESS; 47 } 48 ucs_empty_function_return_no_resource()49ucs_status_t ucs_empty_function_return_no_resource() 50 { 51 return UCS_ERR_NO_RESOURCE; 52 } 53 ucs_empty_function_return_invalid_param()54ucs_status_t ucs_empty_function_return_invalid_param() 55 { 56 return UCS_ERR_INVALID_PARAM; 57 } 58 ucs_empty_function_return_ptr_no_resource()59ucs_status_ptr_t ucs_empty_function_return_ptr_no_resource() 60 { 61 return UCS_STATUS_PTR(UCS_ERR_NO_RESOURCE); 62 } 63 ucs_empty_function_return_ep_timeout()64ucs_status_t ucs_empty_function_return_ep_timeout() 65 { 66 return UCS_ERR_ENDPOINT_TIMEOUT; 67 } 68 ucs_empty_function_return_bc_ep_timeout()69ssize_t ucs_empty_function_return_bc_ep_timeout() 70 { 71 return UCS_ERR_ENDPOINT_TIMEOUT; 72 } 73 ucs_empty_function_return_busy()74ucs_status_t ucs_empty_function_return_busy() 75 { 76 return UCS_ERR_BUSY; 77 } 78 ucs_empty_function_do_assert()79int ucs_empty_function_do_assert() 80 { 81 ucs_assert_always(0); 82 return 0; 83 } 84