tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: unhide reallocarray



On Fri, 28 Oct 2022, Thomas Klausner wrote:

I cleaned up the _OPENBSD_SOURCE defines for X, but we can probably
remove some more in other parts of the tree, I plan to do that but
feel free to beat me to it.


I have:

```
$ egrep -r -- '-D_OPENBSD_SOURCE|#define[[:blank:]]+_OPENBSD_SOURCE' /usr/src/
/usr/src/external/gpl3/gdb/dist/gnulib/configure:  $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
/usr/src/external/bsd/dhcpcd/sbin/dhcpcd/Makefile:CPPFLAGS+=        -DHAVE_CONFIG_H -D_OPENBSD_SOURCE
/usr/src/external/bsd/file/dist/configure:  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
/usr/src/external/bsd/file/dist/configure~:  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
/usr/src/external/bsd/libpcap/sbin/rpcapd/Makefile:CPPFLAGS+=       -DHAVE_CONFIG_H -D_OPENBSD_SOURCE
/usr/src/external/bsd/mdocml/Makefile.inc:#CPPFLAGS+=       -D_OPENBSD_SOURCE
/usr/src/external/bsd/mdocml/dist/configure:                [ "X$3" = "X-D_OPENBSD_SOURCE" ] && NEED_OPENBSD_SOURCE=1
/usr/src/external/bsd/mdocml/dist/configure:   runtest reallocarray REALLOCARRAY    -D_OPENBSD_SOURCE || true
/usr/src/external/bsd/mdocml/dist/configure:   runtest recallocarray RECALLOCARRAY  -D_OPENBSD_SOURCE || true
/usr/src/external/bsd/mdocml/dist/configure:   runtest strtonum     STRTONUM        -D_OPENBSD_SOURCE || true
/usr/src/external/bsd/mdocml/dist/configure:[ ${NEED_OPENBSD_SOURCE} -eq 0 ] || echo "#define _OPENBSD_SOURCE"
/usr/src/external/bsd/mdocml/include/config.h:#define _OPENBSD_SOURCE
/usr/src/external/bsd/nsd/Makefile.inc:CPPFLAGS+=-D_OPENBSD_SOURCE -D_NETBSD_SOURCE
/usr/src/external/bsd/nsd/dist/configure:#define _OPENBSD_SOURCE 1
/usr/src/external/bsd/nsd/dist/configure.ac:#define _OPENBSD_SOURCE 1
/usr/src/external/bsd/tmux/dist/Makefile.am:AM_CPPFLAGS += -D_OPENBSD_SOURCE
/usr/src/external/bsd/tmux/dist/Makefile.in:@IS_NETBSD_TRUE@am__append_9 = -D_OPENBSD_SOURCE
/usr/src/external/bsd/tmux/usr.bin/tmux/Makefile:-D_OPENBSD_SOURCE \
/usr/src/external/bsd/unbound/Makefile.inc:CPPFLAGS += -D_OPENBSD_SOURCE
/usr/src/external/bsd/unbound/dist/config.h.in:#define _OPENBSD_SOURCE 1
/usr/src/external/bsd/unbound/dist/configure:#define _OPENBSD_SOURCE 1
/usr/src/external/bsd/unbound/dist/configure.ac:#define _OPENBSD_SOURCE 1
/usr/src/external/bsd/unbound/dist/configure.ac:#define _OPENBSD_SOURCE 1
/usr/src/external/bsd/unbound/include/config.h:#define _OPENBSD_SOURCE 1
/usr/src/external/mit/xorg/server/drivers/Makefile.xf86-driver:CPPFLAGS+=   -D_OPENBSD_SOURCE
/usr/src/crypto/external/bsd/openssh/Makefile.inc:CPPFLAGS+=-D_OPENBSD_SOURCE /usr/src/lib/libc/regex/regcomp.c:#define _OPENBSD_SOURCE
/usr/src/lib/libc/stdlib/reallocarray.c:#define _OPENBSD_SOURCE
/usr/src/lib/libc/stdlib/strtonum.3:.Vt #define _OPENBSD_SOURCE
/usr/src/lib/libc/stdlib/strtonum.c:#define _OPENBSD_SOURCE
/usr/src/sbin/bioctl/Makefile:CPPFLAGS+=-D_OPENBSD_SOURCE
/usr/src/tools/mandoc/Makefile:HOST_CPPFLAGS+= -D_OPENBSD_SOURCE
/usr/src/usr.bin/sdiff/Makefile:CPPFLAGS+=-D_OPENBSD_SOURCE
/usr/src/usr.sbin/gpioctl/Makefile:CPPFLAGS+=-D_OPENBSD_SOURCE
/usr/src/usr.sbin/pf/Makefile.inc:CPPFLAGS+= -D_OPENBSD_SOURCE
$ ```

-RVP



Home | Main Index | Thread Index | Old Index