mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
libsys: move errno to libsys
Before, the 'errno' itself was defined in libc and was referenced by libsys, causing undesired dependency. Reviewed by: brooks, imp Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D43985
This commit is contained in:
parent
8271d9b99a
commit
fe920a4f2f
@ -47,7 +47,6 @@ SRCS+= \
|
|||||||
erand48.c \
|
erand48.c \
|
||||||
err.c \
|
err.c \
|
||||||
errlst.c \
|
errlst.c \
|
||||||
errno.c \
|
|
||||||
eventfd.c \
|
eventfd.c \
|
||||||
exec.c \
|
exec.c \
|
||||||
exect.c \
|
exect.c \
|
||||||
|
@ -99,7 +99,6 @@ FBSD_1.0 {
|
|||||||
vwarnx;
|
vwarnx;
|
||||||
sys_errlist;
|
sys_errlist;
|
||||||
sys_nerr;
|
sys_nerr;
|
||||||
errno;
|
|
||||||
exect;
|
exect;
|
||||||
execl;
|
execl;
|
||||||
execle;
|
execle;
|
||||||
|
@ -1,29 +0,0 @@
|
|||||||
/*-
|
|
||||||
* SPDX-License-Identifier: BSD-2-Clause
|
|
||||||
*
|
|
||||||
* Copyright (c) 2002 Peter Wemm <peter@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 THE 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 THE 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.
|
|
||||||
*/
|
|
||||||
|
|
||||||
int errno;
|
|
@ -76,6 +76,7 @@ FBSD_1.0 {
|
|||||||
extattr_set_file;
|
extattr_set_file;
|
||||||
extattr_set_link;
|
extattr_set_link;
|
||||||
extattrctl;
|
extattrctl;
|
||||||
|
errno;
|
||||||
fchdir;
|
fchdir;
|
||||||
fchflags;
|
fchflags;
|
||||||
fchmod;
|
fchmod;
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
#include "libc_private.h"
|
#include "libc_private.h"
|
||||||
|
|
||||||
extern int errno;
|
int errno;
|
||||||
|
|
||||||
static int *
|
static int *
|
||||||
__error_unthreaded(void)
|
__error_unthreaded(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user