FreeBSD Bugzilla – Attachment 28211 Details for
Bug 47553
update-port: sysutils/and (bento-fix)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
and.patch
and.patch (text/plain), 1.33 KB, created by
Oliver Lehmann
on 2003-01-27 16:20:02 UTC
(
hide
)
Description:
and.patch
Filename:
MIME Type:
Creator:
Oliver Lehmann
Created:
2003-01-27 16:20:02 UTC
Size:
1.33 KB
patch
obsolete
>diff -ruN and.old/files/patch-and-OpenBSD.c and/files/patch-and-OpenBSD.c >--- and.old/files/patch-and-OpenBSD.c Mon Jan 27 15:41:31 2003 >+++ and/files/patch-and-OpenBSD.c Mon Jan 27 15:41:42 2003 >@@ -4,13 +4,13 @@ > abort(); > } > if (openbsd_next >= openbsd_nproc) return NULL; >-+#if defined(__FreeBSD__) && __FreeBSD_version >= 50014 >++#if defined(__FreeBSD__) && __FreeBSD_version >= 500014 > + strncpy(openbsd_proc.command,openbsd_pt[openbsd_next].ki_comm,1023); > +#else > strncpy(openbsd_proc.command,openbsd_pt[openbsd_next].kp_proc.p_comm,1023); > +#endif > openbsd_proc.command[1023] = 0; >-+#if defined(__FreeBSD__) && __FreeBSD_version >= 50014 >++#if defined(__FreeBSD__) && __FreeBSD_version >= 500014 > + openbsd_proc.pid = openbsd_pt[openbsd_next].ki_pid; > + openbsd_proc.nice = openbsd_pt[openbsd_next].ki_nice-20; > + openbsd_proc.uid = openbsd_pt[openbsd_next].ki_ruid; >@@ -22,7 +22,7 @@ > openbsd_proc.gid = openbsd_pt[openbsd_next].kp_eproc.e_pcred.p_rgid; > +#endif > /* Adapted from top(1) port, as found in the misc@openbsd.org archive */ >-+#if defined(__FreeBSD__) && __FreeBSD_version >= 50014 >++#if defined(__FreeBSD__) && __FreeBSD_version >= 500014 > + /* XXX: Accessing ki_paddr causes sig10 ... > + openbsd_proc.utime = (openbsd_pt[openbsd_next].ki_paddr->p_uticks + > + openbsd_pt[openbsd_next].ki_paddr->p_sticks +
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 47553
: 28211