1 /*******************************************************************************
2 ################################################################################
3 # Copyright (c) [2017-2019] [Radisys] #
5 # Licensed under the Apache License, Version 2.0 (the "License"); #
6 # you may not use this file except in compliance with the License. #
7 # You may obtain a copy of the License at #
9 # http://www.apache.org/licenses/LICENSE-2.0 #
11 # Unless required by applicable law or agreed to in writing, software #
12 # distributed under the License is distributed on an "AS IS" BASIS, #
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
14 # See the License for the specific language governing permissions and #
15 # limitations under the License. #
16 ################################################################################
17 *******************************************************************************/
20 /********************************************************************20**
22 Name: common library functions
26 Desc: Prototypes for common functions that are implemented in
27 both a portable and a performance-efficient manner. These
28 functions are selected based on the operating system.
32 *********************************************************************21*/
43 PUBLIC U8 *cmMemcpy ARGS((U8 *tgt, CONSTANT U8 *src, PTR len));
44 PUBLIC S16 cmMemcmp ARGS((CONSTANT U8 *s1, CONSTANT U8 *s2, PTR len));
45 PUBLIC U8 *cmMemset ARGS((U8 *src, U8 val, PTR len));
47 PUBLIC S16 cmStrcmp ARGS((CONSTANT U8 *s1, CONSTANT U8 *s2));
48 /* cm_lib_x_001.main_8:Changing from S16 to MsgLen.*/
49 PUBLIC S16 cmStrncmp ARGS((CONSTANT U8 *s1, CONSTANT U8 *s2, MsgLen len));
50 PUBLIC MsgLen cmStrlen ARGS((CONSTANT U8 *s));
54 #endif /* __cplusplus */
55 #endif /* __CMLIBX__ */
58 /********************************************************************30**
61 **********************************************************************/