Date: Wed, 22 Jul 1998 09:22:15 -0700 From: Amancio Hasty <hasty@rah.star-gate.com> To: Roger Hardiman <roger@cs.strath.ac.uk> Cc: hackers@FreeBSD.ORG Subject: Star Office Message-ID: <199807221622.JAA14879@rah.star-gate.com>
next in thread | raw e-mail | index | archive | help
Found this posting and I haven't tried it.
Have Fun!
Amancio
------- Forwarded Message
Return-Path: hasty@star-gate.com
Received: from star-gate.com (localhost.star-gate.com [127.0.0.1])
by rah.star-gate.com (8.8.8/8.8.8) with ESMTP id CAA01372
for <hasty@star-gate.com>; Sat, 18 Jul 1998 02:08:23 -0700 (PDT)
(envelope-from hasty@star-gate.com)
Sender: hasty
Message-ID: <35B06606.65DCC5B0@star-gate.com>
Date: Sat, 18 Jul 1998 02:08:23 -0700
From: Amancio Hasty <hasty@star-gate.com>
X-Mailer: Mozilla 4.05 [en] (X11; U; FreeBSD 3.0-CURRENT i386)
MIME-Version: 1.0
To: hasty@star-gate.com
Subject: DN - StarOffice 4.0 SP3 installed on FreeBSD 2.2.6
Content-Type: multipart/mixed; boundary="------------BF7468451B037DE639EFA7DB"
This is a multi-part message in MIME format.
- --------------BF7468451B037DE639EFA7DB
Content-Type: multipart/alternative; boundary="------------8B38469A25D12D1D38A9
7391"
- --------------8B38469A25D12D1D38A97391
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
http://x11.dejanews.com/getdoc.xp?AN=367702037&CONTEXT=899399290.131989671&hi
- --------------8B38469A25D12D1D38A97391
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<HTML>
<PRE><A HREF="http://x11.dejanews.com/getdoc.xp?AN=367702037">
http://x11.dejanews.com/getdoc.xp?AN=367702037</A>&CONTEXT=899399290.131989
671&hi</PRE>
</HTML>
- --------------8B38469A25D12D1D38A97391--
- --------------BF7468451B037DE639EFA7DB
Content-Type: text/html; charset=us-ascii; name="getdoc.xp"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="getdoc.xp"
Content-Base: "http://x11.dejanews.com/getdoc.xp?AN=3
67702037&CONTEXT=899399290.13198967
1&hi"
<html>
<head>
<title>DN - StarOffice 4.0 SP3 installed on FreeBSD 2.2.6</title>
<meta name=keywords content="dejanews usenet newsgroup articles search query
discussion">
<style>
<!-- .orange {color: #ff6600} -->
<!-- .red {color: #cc0000} -->
<!-- .yellow {color: #ffcc33} -->
<!-- .blue {color: #003399} -->
<!-- .black {color: #000000} -->
</style>
</head>
<body bgcolor=#ffffff text=#000000 link=#0000ff vlink=#52188c alink=#cc0000>
<p>
<table border=0 cellspacing=0 cellpadding=0 width=662><tr><td width=520>
<a href="http://www.dejanews.com/nav_g.map"><img src="http://g.dejanews.com/gif
s/nav_g2.gif" alt="Deja News Toolbar" width=520 height=60 usemap="#nav_g.map"
ismap border=0></a></td>
<td width=12> </td>
<td width=130 align=center valign=middle>
</td></tr>
</table>
<map name="nav_g.map">
<area shape="rect" coords="0,0,140,60" href="http://www.dejanews.com/"
alt="Home">
<area shape="rect" coords="210,0,470,15" href="http://www.dejanews.com/emar
ket" alt="About Deja News">
<area shape="rect" coords="174,20,210,60" href="http://www.dejanews.com/"
alt="Search">
<area shape="rect" coords="238,20,280,60" href="http://www.dejanews.com/cat
egories.shtml" alt="Browse">
<area shape="rect" coords="300,20,360,60" href="http://www.dejanews.com/pos
t.xp?NG=comp.unix.bsd.freebsd.misc" alt="Post">
<area shape="rect" coords="388,20,452,60" href="http://www.dejanews.com/rg_
enter.xp" alt="My Deja News">
<area shape="rect" coords="478,20,504,60" href="http://www.dejanews.com/hel
p/help_index.shtml" alt="Help">
<area shape="default" nohref alt="">
</map>
<br clear=all>
<p>
<table border=0 cellpadding=0 cellspacing=0 width=520><tr><td align=center>
<table cellspacing=0 cellpadding=0 width=470 border=0><tr><td>
<A HREF="http://gp3.dejanews.com/gtc?id=16551&tm=900752829.108313&site=dn&locat
ion=comp.unix.bsd.freebsd.misc&cr=%7c%7c%7c%7c%7c%7c%7c%7c">
<IMG ALIGN=MIDDLE HEIGHT=60 WIDTH=468 SRC="http://web2.dejanews.com/ads/01/2452
631101-6140.gif" ALT="Be Prepared With Yahoo! Classifieds." border=1></A></td>
</tr><tr align=center><td><font size=-1><A HREF="http://gp3.dejanews.com/gtc?id
=16551&tm=900752829.108313&site=dn&location=comp.unix.bsd.freebsd.misc&cr=%7c%7
c%7c%7c%7c%7c%7c%7c">
Chat, Email, Finance, Sports, Shopping, etc. Yahoo! has it all!</a></font></td>
</tr>
</table>
</td></tr></table>
<br>
<table cellspacing=0 cellpadding=2 width=520 border=0><tr bgcolor=#003399><td
align=left><font face="arial,helvetica" color=#ffcc33><b> Article 1 of
exactly 0</b></font></td></tr></table>
<table cellspacing=0 cellpadding=0 width=520 border=0><tr align=center
valign=middle>
<td width=15> </td>
<td><b><font size=+2 face="arial,helvetica" color="#666666"><<</font>
</b><br><font color="#999999">Previous<br>Article</font></td>
<td width=10> </td>
<td><b><font size=+2 face="arial,helvetica" color="#666666">>></font>
</b><br><font color="#999999">Next<br>Article</font></td>
<td width=25> </td>
<td><b><font size=+2 face="arial,helvetica" color="#666666">/\</font></b><br>
<font color="#999999">Current<br>Results</font></td>
<td width=80% align=center>
<table border=2 cellpadding=0 cellspacing=0><tr><td align=center>
<a href=""><img src="http://g.dejanews.com/gifs/maf.gif" alt="Email a Friend"
border=0 width=120 height=25></a>
<br>
<a href=""><font size=1 face="arial,helvetica">Email this message!</font></a>
</td></tr></table>
</td>
<td align=left nowrap>
<table cellpadding=0 cellspacing=0><tr valign=middle><td align=left nowrap>
<li><A HREF="help/help_art.shtml"><font size=-1 color="#ff6600">Help</font></A>
</li>
<li><font size=-1 color="#999999">Author Profile</font></li>
<li><font size=-1 color="#999999">View Thread</font></li>
</td>
<td align=left nowrap>
<li><A HREF="/=zzz_post_new/"><font size=-1 color="#ff6600">Post New</font></A>
</li>
<li><font size=-1 color="#999999">Post Reply</font></li>
<li><font size=-1 color="#999999">Email Reply</font></li>
</td>
<td align=left nowrap>
<li><font size=-1 color="#999999">Bookmark</font></li>
<li><a href="http://x11.dejanews.com/getdoc.xp?AN=367702037&CONTEXT=899399290.1
31989671&hi&fmt=raw"><font size=-1 color="#ff6600">Text Only</font></A></li>
</td>
</tr>
</table></td></tr></table>
<hr width=520 align=left size=1 noshade>
<pre><b>Subject: <font size=+1 color="#cc0000">StarOffice 4.0 SP3
installed on FreeBSD 2.2.6</font>
From: Christian Kreiner <kreiner@iti.tu-graz.ac.at>
Date: 1998/07/01
Message-ID: <3599FFA4.F8E82296@iti.tu-graz.ac.at>
Newsgroups: comp.unix.bsd.freebsd.misc </b>
<font size=-1>[<a href="http://x11.dejanews.com/getdoc.xp?AN=367702037&CONTEXT=
899399290.131989671&hi&AH=1">More Headers</a>]</font>
<font size=-1>[<a href="rg_subng.xp?group=comp.unix.bsd.freebsd.misc">
Subscribe to comp.unix.bsd.freebsd.misc</a>]</font>
</pre>
<pre>
This is a multi-part message in MIME format.
- --------------80F1D85D782D94FF84792E8D
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hello !
A hack to the procfs part of the kernel helped me to install StarOffice
4.0 SP3:
it provides a substitute for the linux "cmdline" entry in /proc,
enabling the setup program to
run. There is a limitation though: as this hack provides only the
command name and not it's
arguments as the original linux cmdline does, which prevents passing
command-line arguments.
patch installation (2.2.6-RELEASE system, should work for others):
1. apply the attached patches in /usr/src/sys/miscfs/procfs to procfs.h,
procfs_status.c,
procfs_subr.c,procfs_vnops.c
2. build a new kernel or loadable procfs module, install/reboot
- -> now you should see the cmdline entry in the /proc/xxx/ subdirs !
- -- christian
BTW: no warranty, use at your risk !
- --------------80F1D85D782D94FF84792E8D
Content-Type: text/plain; charset=us-ascii; name="procfs.h.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="procfs.h.diff"
*** procfs.h.orig Tue Aug 12 06:45:20 1997
- --- procfs.h Tue Jun 30 20:15:19 1998
***************
*** 54,60 ****
Pnote, /* process notifier */
Pnotepg, /* process group notifier */
Pmap, /* memory map */
! Ptype /* executable type */
} pfstype;
/*
- --- 54,61 ----
Pnote, /* process notifier */
Pnotepg, /* process group notifier */
Pmap, /* memory map */
! Ptype, /* executable type */
! Pcmdln /* command line */
} pfstype;
/*
***************
*** 150,155 ****
- --- 151,157 ----
extern int procfs_dostatus __P((struct proc *, struct proc *, struct pfsnode
*pfsp, struct uio *uio));
extern int procfs_domap __P((struct proc *, struct proc *, struct pfsnode
*pfsp, struct uio *uio));
extern int procfs_dotype __P((struct proc *, struct proc *, struct pfsnode
*pfsp, struct uio *uio));
+ extern int procfs_docmdln __P((struct proc *, struct proc *, struct pfsnode
*pfsp, struct uio *uio));
/* check to see if the process has the "items" (regs/file) */
int procfs_validfile __P((struct proc *));
- --------------80F1D85D782D94FF84792E8D
Content-Type: text/plain; charset=us-ascii; name="procfs_status.c.diff&quo
t;
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="procfs_status.c.diff"
*** procfs_status.c.orig Fri Feb 2 06:19:20 1996
- --- procfs_status.c Wed Jul 1 10:39:32 1998
***************
*** 150,152 ****
- --- 150,203 ----
return (error);
}
+
+
+
+
+ int
+ procfs_docmdln(curp, p, pfs, uio)
+ struct proc *curp;
+ struct proc *p;
+ struct pfsnode *pfs;
+ struct uio *uio;
+ {
+ struct session *sess;
+ struct tty *tp;
+ struct ucred *cr;
+ char *ps;
+ char *sep;
+ int pid, ppid, pgid, sid;
+ int i;
+ int xlen;
+ int error;
+ char psbuf[256]; /* XXX - conservative */
+
+ if (uio->uio_rw != UIO_READ)
+ return (EOPNOTSUPP);
+
+ pid = p->p_pid;
+ ppid = p->p_pptr ? p->p_pptr->p_pid : 0,
+ pgid = p->p_pgrp->pg_id;
+ sess = p->p_pgrp->pg_session;
+ sid = sess->s_leader ? sess->s_leader->p_pid : 0;
+
+ /* comm pid ppid pgid sid maj,min ctty,sldr start ut st wmsg
+ euid ruid rgid,egid,groups[1 .. NGROUPS]
+ */
+ ps = psbuf;
+ bcopy(p->p_comm, ps, MAXCOMLEN);
+ ps[MAXCOMLEN] = '\0';
+ ps += strlen(ps);
+
+ xlen = ps - psbuf;
+ xlen -= uio->uio_offset;
+ ps = psbuf + uio->uio_offset;
+ xlen = min(xlen, uio->uio_resid);
+ if (xlen <= 0)
+ error = 0;
+ else
+ error = uiomove(ps, xlen, uio);
+
+ return (error);
+ }
+
- --------------80F1D85D782D94FF84792E8D
Content-Type: text/plain; charset=us-ascii; name="procfs_subr.c.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="procfs_subr.c.diff"
*** procfs_subr.c.orig Sat Jun 21 18:16:34 1997
- --- procfs_subr.c Tue Jun 30 20:28:22 1998
***************
*** 170,175 ****
- --- 170,176 ----
case Ptype:
case Pmap:
case Pstatus:
+ case Pcmdln:
pfs->pfs_mode = (VREAD) |
(VREAD >> 3) |
(VREAD >> 6);
***************
*** 276,281 ****
- --- 277,286 ----
case Ptype:
rtval = procfs_dotype(curp, p, pfs, uio);
+ break;
+
+ case Pcmdln:
+ rtval = procfs_docmdln(curp, p, pfs, uio);
break;
default:
- --------------80F1D85D782D94FF84792E8D
Content-Type: text/plain; charset=us-ascii; name="procfs_vnops.c.diff"
;
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="procfs_vnops.c.diff"
*** procfs_vnops.c.orig Tue Aug 12 06:45:27 1997
- --- procfs_vnops.c Tue Jun 30 21:48:59 1998
***************
*** 98,103 ****
- --- 98,104 ----
{ N("notepg"), Pnotepg, NULL },
{ N("map"), Pmap, procfs_validmap },
{ N("etype"), Ptype, procfs_validtype },
+ { N("cmdline"),Pcmdln, NULL },
#undef N
};
#define Nprocent (sizeof(procent)/sizeof(procent[0]))
***************
*** 445,450 ****
- --- 446,452 ----
case Pstatus:
case Pnote:
case Pnotepg:
+ case Pcmdln:
vap->va_nlink = 1;
vap->va_uid = procp->p_ucred->cr_uid;
vap->va_gid = procp->p_ucred->cr_gid;
***************
*** 720,726 ****
dp->d_fileno = PROCFS_FILENO(pfs->pfs_pid, dt->d_pfstype);
dp->d_type = DT_REG;
dp->d_namlen = dt->d_namlen;
! bcopy(dt->d_name, dp->d_name, sizeof(dt->d_name)-1);
error = uiomove((caddr_t) dp, UIO_MX, uio);
if (error)
break;
- --- 722,728 ----
dp->d_fileno = PROCFS_FILENO(pfs->pfs_pid, dt->d_pfstype);
dp->d_type = DT_REG;
dp->d_namlen = dt->d_namlen;
! bcopy(dt->d_name, dp->d_name, dt->d_namlen+1);
error = uiomove((caddr_t) dp, UIO_MX, uio);
if (error)
break;
- --------------80F1D85D782D94FF84792E8D--
</pre>
<hr width=520 align=left>
<table border=0 cellpadding=0 cellspacing=0 width=520><tr><td align=center>
<table cellspacing=0 cellpadding=0 width=470 border=0><tr><td>
<A HREF="http://gp3.dejanews.com/gtc?id=16551&tm=900752829.108313&site=dn&locat
ion=comp.unix.bsd.freebsd.misc&cr=%7c%7c%7c%7c%7c%7c%7c%7c">
<IMG ALIGN=MIDDLE HEIGHT=60 WIDTH=468 SRC="http://web2.dejanews.com/ads/01/2452
631101-6140.gif" ALT="Be Prepared With Yahoo! Classifieds." border=1></A></td>
</tr><tr align=center><td><font size=-1><A HREF="http://gp3.dejanews.com/gtc?id
=16551&tm=900752829.108313&site=dn&location=comp.unix.bsd.freebsd.misc&cr=%7c%7
c%7c%7c%7c%7c%7c%7c">
Chat, Email, Finance, Sports, Shopping, etc. Yahoo! has it all!</a></font></td>
</tr>
</table>
</td></tr></table>
<table cellspacing=0 cellpadding=0 width=520 border=0><tr align=center
valign=middle>
<td width=15> </td>
<td><b><font size=+2 face="arial,helvetica" color="#666666"><<</font>
</b><br><font color="#999999">Previous<br>Article</font></td>
<td width=10> </td>
<td><b><font size=+2 face="arial,helvetica" color="#666666">>></font>
</b><br><font color="#999999">Next<br>Article</font></td>
<td width=25> </td>
<td><b><font size=+2 face="arial,helvetica" color="#666666">/\</font></b><br>
<font color="#999999">Current<br>Results</font></td>
<td width=80% align=center>
<table border=2 cellpadding=0 cellspacing=0><tr><td align=center>
<a href=""><img src="http://g.dejanews.com/gifs/maf.gif" alt="Email a Friend"
border=0 width=120 height=25></a>
<br>
<a href=""><font size=1 face="arial,helvetica">Email this message!</font></a>
</td></tr></table>
</td>
<td align=left nowrap>
<table cellpadding=0 cellspacing=0><tr valign=middle><td align=left nowrap>
<li><A HREF="help/help_art.shtml"><font size=-1 color="#ff6600">Help</font></A>
</li>
<li><font size=-1 color="#999999">Author Profile</font></li>
<li><font size=-1 color="#999999">View Thread</font></li>
</td>
<td align=left nowrap>
<li><A HREF="/=zzz_post_new/"><font size=-1 color="#ff6600">Post New</font></A>
</li>
<li><font size=-1 color="#999999">Post Reply</font></li>
<li><font size=-1 color="#999999">Email Reply</font></li>
</td>
<td align=left nowrap>
<li><font size=-1 color="#999999">Bookmark</font></li>
<li><a href="http://x11.dejanews.com/getdoc.xp?AN=367702037&CONTEXT=899399290.1
31989671&hi&fmt=raw"><font size=-1 color="#ff6600">Text Only</font></A></li>
</td>
</tr>
</table></td></tr></table>
<table cellspacing=0 cellpadding=0 border=0 width=520>
<tr align=center><td><hr align=left noshade size=1 width=100%>
<font size=-1>
<a href="http://gp.dejanews.com/gtplacer?site=dn&location=link.home.emaildirect
&cid=199040709">Free Coupons!</a> |
<a href="http://gp.dejanews.com/gtplacer?site=dn&location=link.home.whowhere&ci
d=199040709">Find People Now!</a> |
<a href="http://gp.dejanews.com/gtplacer?site=dn&location=link.home.class2000&c
id=199040709">Classifieds</a> |
<a href="http://gp.dejanews.com/gtplacer?site=dn&location=link.home.uswest&cid=
199040709">Yellow Pages</a>
<br>
<a href="http://gp.dejanews.com/gtplacer?site=dn&location=link.home.dni&cid=199
040709">Register Your Domain Name</a> |
<a href="http://gp.dejanews.com/gtplacer?site=dn&location=link.home.auctions&ci
d=199040709">Auctions</a> |
<a href="http://gp.dejanews.com/gtplacer?site=dn&location=link.home.infospace&c
id=199040709">Directories</a>
</font>
<p>
<font size=-1>
<a href="http://www.dejanews.com/help/newusers.shtml">New Users</a> ·
<a href="http://www.dejanews.com/emarket/">About Deja News</a> ·
<a href="http://www.dejanews.com/emarket/programs/">Ad Info</a> ·
<a href="http://www.dejanews.com/emarket/programs/ad_index.shtml">Our
Advertisers</a>
<br>
<a href="http://www.dejanews.com/rg_enter.xp">Free Web Email</a> ·
<a href="http://www.dejanews.com/info/linkback.shtml">Link to Deja News</a>
·
<a href="http://www.dejanews.com/rg_mkgrp.xp">Create Your Own Forum</a>
</font>
<p>
<font size=-1>
<a href="http://www.dejanews.com/home_qs.shtml">Home</a> ·
<a href="http://www.dejanews.com/home_qs.shtml">Search</a> ·
<a href="http://www.dejanews.com/categories.shtml">Browse</a>
·
<a href="http://www.dejanews.com/post.xp">Post</a> ·
<a href="http://www.dejanews.com/rg_enter.xp">My Deja News</a>
·
<a href="http://www.dejanews.com/help/help_index.shtml">Help</a>
·
<a href="http://www.dejanews.com/forms/dnsurvey.shtml">How are we doing?</a>
</font>
<p>
<hr width=325>
<font size=-1>Copyright © 1995-98 <a href="http://www.dejanews.com/emarket
/">Deja News, Inc.</A> All rights reserved.
<a href="http://www.dejanews.com/info/policy.shtml">Conditions of use</a>
.</font>
</td></tr></table>
</BODY>
</HTML>
- --------------BF7468451B037DE639EFA7DB--
------- End of Forwarded Message
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807221622.JAA14879>
