Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Mar 2023 08:29:01 GMT
From:      Zhenlei Huang <zlei@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: b4eb5f81eead - releng/13.2 - Delete obsolete Solaris compat header file stdlib.h
Message-ID:  <202303020829.3228T1uB066193@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch releng/13.2 has been updated by zlei:

URL: https://cgit.FreeBSD.org/src/commit/?id=b4eb5f81eead115fe49e349a933c72046158b930

commit b4eb5f81eead115fe49e349a933c72046158b930
Author:     Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2023-02-23 18:00:09 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2023-03-02 08:22:26 +0000

    Delete obsolete Solaris compat header file stdlib.h
    
    This drops function `getexecname()` redirection.
    
    Historically `getexecname()` is a compatibility definition. Since
    openzfs has its own implementation of function `getexecname()` in libspl
    and has been merged into base, the compat header file stdlib.h is
    no longer needed and should not be used.
    
    Also without this fix libspl will end up an incompatible version of
    `getprogname()` with libc. In particular, if zfs is enabled, programs
    such as pgrep in /rescue can be wrongly statically linked with libspl
    and will not function properly.
    
    PR:             269738
    Reviewed by:    markj
    Approved by:    re (delphij)
    Fixes:          9e5787d2284e Merge OpenZFS support in to HEAD
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D38733
    
    (cherry picked from commit 7f0ebf0876c82a098bd5815ea6bf3a8efa6dd6f3)
    (cherry picked from commit 95f418fe2a0fb96080afbd2afc160929a32d12fb)
---
 cddl/compat/opensolaris/include/stdlib.h | 37 --------------------------------
 1 file changed, 37 deletions(-)

diff --git a/cddl/compat/opensolaris/include/stdlib.h b/cddl/compat/opensolaris/include/stdlib.h
deleted file mode 100644
index 9ba32322c03b..000000000000
--- a/cddl/compat/opensolaris/include/stdlib.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright (C) 2007 John Birrell <jb@freebsd.org>
- * All rights reserved.
- * 
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 
- * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * $FreeBSD$
- *
- */
-
-#include_next <stdlib.h>
-
-#ifndef _COMPAT_OPENSOLARIS_STDLIB_H_
-#define _COMPAT_OPENSOLARIS_STDLIB_H_
-
-#define getexecname	getprogname
-
-#endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303020829.3228T1uB066193>