On Fri, Jan 7, 2022 at 10:50 PM Philip Guenther <guent...@cvs.openbsd.org>
wrote:

> CVSROOT:        /cvs
> Module name:    src
> Changes by:     guent...@cvs.openbsd.org        2022/01/07 23:49:42
>
> Modified files:
>         libexec/ld.so  : boot.c dir.c dl_dirname.c dl_printf.c
>                          dl_uname.c dlfcn.c library.c library_mquery.c
>                          library_subr.c loader.c malloc.c reallocarray.c
>                          resolve.c sod.c strtol.c syscall.h tib.c
>                          trace.c util.c util.h
>         libexec/ld.so/aarch64: rtld_machine.c
>         libexec/ld.so/alpha: rtld_machine.c
>         libexec/ld.so/amd64: rtld_machine.c
>         libexec/ld.so/arm: rtld_machine.c
>         libexec/ld.so/hppa: rtld_machine.c
>         libexec/ld.so/i386: rtld_machine.c
>         libexec/ld.so/ldconfig: ld.h
>         libexec/ld.so/m88k: rtld_machine.c
>         libexec/ld.so/mips64: rtld_machine.c
>         libexec/ld.so/powerpc: rtld_machine.c
>         libexec/ld.so/powerpc64: rtld_machine.c
>         libexec/ld.so/riscv64: rtld_machine.c
>         libexec/ld.so/sh: rtld_machine.c
>         libexec/ld.so/sparc64: rtld_machine.c
>
> Log message:
> Prep .c files for removing the #includes from */archdep.h
> * replace #include "archdep.h" with #includes of what is used, pulling in
> "syscall.h", "util.h", and "archdep.h" as needed
> * delete #include <sys/syscall.h> from syscall.h
> * only pull in <sys/stat.h> to the three files that use _dl_fstat(),
> forward declare struct stat in syscall.h for the others
> * NBBY is for <sys/select.h> macros; just use '8' in dl_printf.c
> * <machine/vmparam.h> is only needed on i386; conditionalize it
> * stop using __LDPGSZ: use _MAX_PAGE_SHIFT (already used by malloc.c)
> where necessary
> * delete other bogus #includes, order legit per style: <sys/*> then
> <*/*>, then <*>, then "*"
>
> dir.c improvement from jsg@
>

...and ok jsg@ (thanks!)


> ok and testing assistance deraadt@
>
>

Reply via email to