11f0016d6Sopenharmony_ci/*
21f0016d6Sopenharmony_ci * Copyright (c) 2021 Huawei Device Co., Ltd.
31f0016d6Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
41f0016d6Sopenharmony_ci * you may not use this file except in compliance with the License.
51f0016d6Sopenharmony_ci * You may obtain a copy of the License at
61f0016d6Sopenharmony_ci *
71f0016d6Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
81f0016d6Sopenharmony_ci *
91f0016d6Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
101f0016d6Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
111f0016d6Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
121f0016d6Sopenharmony_ci * See the License for the specific language governing permissions and
131f0016d6Sopenharmony_ci * limitations under the License.
141f0016d6Sopenharmony_ci */
151f0016d6Sopenharmony_ci
161f0016d6Sopenharmony_ci#include <stdio.h>
171f0016d6Sopenharmony_ci#include <unistd.h>
181f0016d6Sopenharmony_ci#include "samgr_lite.h"
191f0016d6Sopenharmony_ci
201f0016d6Sopenharmony_civoid __attribute__((weak)) OHOS_SystemInit(void)
211f0016d6Sopenharmony_ci{
221f0016d6Sopenharmony_ci    SAMGR_Bootstrap();
231f0016d6Sopenharmony_ci};
241f0016d6Sopenharmony_ci
251f0016d6Sopenharmony_ciint main()
261f0016d6Sopenharmony_ci{
271f0016d6Sopenharmony_ci    OHOS_SystemInit();
281f0016d6Sopenharmony_ci    // pause only returns when a signal was caught and the signal-catching function returned.
291f0016d6Sopenharmony_ci    // pause only returns -1, no need to process the return value.
301f0016d6Sopenharmony_ci    (void)pause();
311f0016d6Sopenharmony_ci}