Date: Fri, 26 Jan 2018 17:13:09 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r328439 - head/stand/libsa Message-ID: <201801261713.w0QHD9fQ083003@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Fri Jan 26 17:13:09 2018 New Revision: 328439 URL: https://svnweb.freebsd.org/changeset/base/328439 Log: Provide abs form stdlib.h. Sponsored by: Netflix Modified: head/stand/libsa/Makefile head/stand/libsa/stand.h Modified: head/stand/libsa/Makefile ============================================================================== --- head/stand/libsa/Makefile Fri Jan 26 17:13:04 2018 (r328438) +++ head/stand/libsa/Makefile Fri Jan 26 17:13:09 2018 (r328439) @@ -37,6 +37,11 @@ SRCS+= bcmp.c bcopy.c bzero.c ffs.c fls.c \ qdivrem.c strcat.c strchr.c strcmp.c strcpy.c stpcpy.c stpncpy.c \ strcspn.c strlcat.c strlcpy.c strlen.c strncat.c strncmp.c strncpy.c \ strnlen.c strpbrk.c strrchr.c strsep.c strspn.c strstr.c strtok.c swab.c + +# stdlib functions from libc +.PATH: ${LIBC_SRC}/stdlib +SRCS+= abs.c + .if ${MACHINE_CPUARCH} == "arm" .PATH: ${LIBC_SRC}/arm/gen Modified: head/stand/libsa/stand.h ============================================================================== --- head/stand/libsa/stand.h Fri Jan 26 17:13:04 2018 (r328438) +++ head/stand/libsa/stand.h Fri Jan 26 17:13:09 2018 (r328439) @@ -347,6 +347,7 @@ extern ev_sethook_t env_noset; /* refuse set operatio extern ev_unsethook_t env_nounset; /* refuse unset operation */ /* stdlib.h routines */ +extern int abs(int a); extern void abort(void); /* BCD conversions (undocumented) */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801261713.w0QHD9fQ083003>