1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

patches to build on freebsd 12

- added cc and ar scripts for freebsd12.amd64
- fix for sfio macro SF_FLAGS also being defined for sendfile(2) in socket.h
-- fix is to hide the sendfile(2) macro
- defined _STDFILE_DECLARED to handle FILE macro incompatibility
- added test in std/features/procfs to deal with freebsd kvm interface
-- being different from what AST expects (for ps.c)
- fix for std/banner.c to clean up main() definition
- changed comment in ar.* scripts to match cc.* scripts
This commit is contained in:
Lefteris Koutsofios 2020-02-24 12:58:22 -05:00
parent a30e7b7fa9
commit 2cf1ffd0f2
9 changed files with 41 additions and 3 deletions

View file

@ -0,0 +1,6 @@
: linux.i386-64 ar wrapper
case $1 in
*x*) /usr/bin/ar "$@" ;;
*) /usr/bin/ar U"$@" ;;
esac

View file

@ -1,4 +1,4 @@
: stupid stupid stupid to require a non-standard option for ar to work : 2009-10-06 :
: linux.i386-64 ar wrapper
case $1 in
*x*) /usr/bin/ar "$@" ;;

View file

@ -0,0 +1,9 @@
: linux.i386-64 cc wrapper : 2006-02-14 :
HOSTTYPE=freebsd12.amd64
case " $* " in
*" -dumpmachine "*) echo $HOSTTYPE; exit ;;
esac
/usr/bin/cc -P "$@"

View file

@ -219,7 +219,7 @@ static void banner(const char *string,const char *delim,int width)
}
int
main(int argc, char *argv[], void *extra)
main(int argc, char *argv[])
{
register int n;
register char *cp;
@ -227,7 +227,6 @@ main(int argc, char *argv[], void *extra)
int width = 80;
NoP(argc);
NoP(extra);
error_info.id = "banner";
while (n = optget(argv, usage)) switch (n)
{

View file

@ -4,8 +4,15 @@ sys procfs,sysctl
lib getprocs
lib kvm_open,kvm_getprocs kvm.h sys/time.h sys/param.h sys/proc.h sys/sysctl.h -lkvm
typ struct.kinfo_proc kvm.h sys/time.h sys/param.h sys/proc.h sys/sysctl.h
lib pstat_getproc sys/param.h sys/pstat.h
cat{
#ifndef _typ_struct_kinfo_proc
#undef _lib_kvm_open
#endif
}end
mem extern_proc.p_pid,extern_proc.p_starttime,extern_proc.p_wchan,extern_proc.p_usrpri,extern_proc.p_addr,eproc.e_xsize sys/time.h sys/param.h sys/proc.h sys/sysctl.h -lkvm
mem procsinfo64.pi_pri procinfo.h
mem prpsinfo.pr_clname,prpsinfo.pr_cstime,prpsinfo.pr_cstime.tv_sec,prpsinfo.pr_ctime,prpsinfo.pr_cutime,prpsinfo.pr_gid,prpsinfo.pr_lttydev,prpsinfo.pr_ntpid,prpsinfo.pr_pgid,prpsinfo.pr_pgrp,prpsinfo.pr_psargs,prpsinfo.pr_refcount,prpsinfo.pr_rssize,prpsinfo.pr_sid,prpsinfo.pr_sonproc,prpsinfo.pr_start,prpsinfo.pr_start.tv_sec,prpsinfo.pr_starttime,prpsinfo.pr_starttime.tv_sec,prpsinfo.pr_state,prpsinfo.pr_stime,prpsinfo.pr_tgrp,prpsinfo.pr_time,prpsinfo.pr_time.tv_sec,prpsinfo.pr_utime,prpsinfo.pr_zomb,prpsinfo.pr_pctcpu,prpsinfo.pr_cpu,prpsinfo.pr_lwp.pr_pctcpu,prpsinfo.pr_lwp.pr_cpu -D_STRUCTURED_PROC -Dprpsinfo=psinfo sys/types.h sys/procfs.h