merge 6.0.0 into 6.0.0

SCA开源扫描整改

Created-by: lin-qiang123
Commit-by: lin-qiang123
Merged-by: opengauss_bot
Description: 【标题】(请简要描述下实现的内容)

【实现内容】:
开源扫描整改
【根因分析】:
开源扫描不合规
【实现方案】:
添加开源文件的copyright和lincense信息
【关联需求或issue】:
https://gitcode.com/opengauss/openGauss-server/issues/7321
【开发自验报告】:
1. 请附上自验结果(内容或者截图)
![image.png](https://raw.gitcode.com/user-images/assets/5089689/dfab8032-753c-433c-94c3-5f39e2f0687d/image.png 'image.png')
2. 是否可以添加fastcheck测试用例,如是,请补充fastcheck用例
3. 是否涉及资料修改,如是,在docs仓库补充资料
4. 是否考虑升级场景(系统表修改、日志持久化以及修改执行态数据格式)
5. 是否考虑在线扩容等扩展场景
6. 是否考虑异常场景/并发场景/前向兼容/性能场景
7. 是否对其他模块产生影响
8. 是否需要回合补丁版本(5.0、6.0),涉及(**结果错误|coredump|性能劣化|内存泄露|集群异常**)相关修复请排查回合补丁分支

【其他说明】:

See merge request: opengauss/openGauss-server!8061
This commit is contained in:
opengauss_bot
2025-07-12 15:26:06 +08:00

View File

@ -1,24 +1,36 @@
/*
* Copyright (c) 2024 Huawei Technologies Co.,Ltd.
/*---------------------------------------------------------------------------
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* Ryu floating-point output for single precision.
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PSL v2 for more details.
* -------------------------------------------------------------------------
*
* f2s.cpp
* Portions Copyright (c) 2024, openGauss Contributors
* Portions Copyright (c) 2018-2019, PostgreSQL Global Development Group
*
* IDENTIFICATION
* src/common/backend/utils/adt/f2s.cpp
* src/common/backend/utils/adt/f2s.cpp
*
* -------------------------------------------------------------------------
* This is a modification of code taken from github.com/ulfjack/ryu under the
* terms of the Boost license (not the Apache license). The original copyright
* notice follows:
*
* Copyright 2018 Ulf Adams
*
* The contents of this file may be used under the terms of the Apache
* License, Version 2.0.
*
* (See accompanying file LICENSE-Apache or copy at
* http://www.apache.org/licenses/LICENSE-2.0)
*
* Alternatively, the contents of this file may be used under the terms of the
* Boost Software License, Version 1.0.
*
* (See accompanying file LICENSE-Boost or copy at
* https://www.boost.org/LICENSE_1_0.txt)
*
* Unless required by applicable law or agreed to in writing, this software is
* distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.
*
*---------------------------------------------------------------------------
*/
#ifndef FRONTEND