Skip site navigation (1)Skip section navigation (2)
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>
&nbsp;
<PRE><A HREF="http://x11.dejanews.com/getdoc.xp?AN=367702037">;
http://x11.dejanews.com/getdoc.xp?AN=367702037</A>&amp;CONTEXT=899399290.131989
671&amp;hi</PRE>
&nbsp;</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>&nbsp;</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>&nbsp;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>&nbsp;</td>

  <td><b><font size=+2 face="arial,helvetica" color="#666666">&lt;&lt;</font>
</b><br><font color="#999999">Previous<br>Article</font></td>

<td width=10>&nbsp;</td>

  
    <td><b><font size=+2 face="arial,helvetica" color="#666666">&gt;&gt;</font>
</b><br><font color="#999999">Next<br>Article</font></td>
  

<td width=25>&nbsp;</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 &lt;kreiner@iti.tu-graz.ac.at&gt;
Date:         1998/07/01
Message-ID:   &lt;3599FFA4.F8E82296@iti.tu-graz.ac.at&gt;
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 &quot;cmdline&quot; 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

- -&gt; 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=&quot;procfs.h.diff&quot;
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename=&quot;procfs.h.diff&quot;

*** 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 &quot;items&quot; (regs/file) */
  int procfs_validfile __P((struct proc *));

- --------------80F1D85D782D94FF84792E8D
Content-Type: text/plain; charset=us-ascii; name=&quot;procfs_status.c.diff&quo
t;
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename=&quot;procfs_status.c.diff&quot;

*** 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-&gt;uio_rw != UIO_READ)
+ 		return (EOPNOTSUPP);
+ 
+ 	pid = p-&gt;p_pid;
+ 	ppid = p-&gt;p_pptr ? p-&gt;p_pptr-&gt;p_pid : 0,
+ 	pgid = p-&gt;p_pgrp-&gt;pg_id;
+ 	sess = p-&gt;p_pgrp-&gt;pg_session;
+ 	sid = sess-&gt;s_leader ? sess-&gt;s_leader-&gt;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-&gt;p_comm, ps, MAXCOMLEN);
+ 	ps[MAXCOMLEN] = '\0';
+ 	ps += strlen(ps);
+ 
+ 	xlen = ps - psbuf;
+ 	xlen -= uio-&gt;uio_offset;
+ 	ps = psbuf + uio-&gt;uio_offset;
+ 	xlen = min(xlen, uio-&gt;uio_resid);
+ 	if (xlen &lt;= 0)
+ 		error = 0;
+ 	else
+ 		error = uiomove(ps, xlen, uio);
+ 
+ 	return (error);
+ }
+ 

- --------------80F1D85D782D94FF84792E8D
Content-Type: text/plain; charset=us-ascii; name=&quot;procfs_subr.c.diff&quot;
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename=&quot;procfs_subr.c.diff&quot;

*** 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-&gt;pfs_mode = (VREAD) |
  				(VREAD &gt;&gt; 3) |
  				(VREAD &gt;&gt; 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=&quot;procfs_vnops.c.diff&quot
;
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename=&quot;procfs_vnops.c.diff&quot;

*** 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(&quot;notepg&quot;),	Pnotepg, NULL },
  	{  N(&quot;map&quot;), 	Pmap,	 procfs_validmap },
  	{  N(&quot;etype&quot;),	Ptype,	 procfs_validtype },
+ 	{  N(&quot;cmdline&quot;),Pcmdln,	 NULL },
  #undef N
  };
  #define Nprocent (sizeof(procent)/sizeof(procent[0]))
***************
*** 445,450 ****
- --- 446,452 ----
  	case Pstatus:
  	case Pnote:
  	case Pnotepg:
+ 	case Pcmdln:
  		vap-&gt;va_nlink = 1;
  		vap-&gt;va_uid = procp-&gt;p_ucred-&gt;cr_uid;
  		vap-&gt;va_gid = procp-&gt;p_ucred-&gt;cr_gid;
***************
*** 720,726 ****
  			dp-&gt;d_fileno = PROCFS_FILENO(pfs-&gt;pfs_pid, dt-&gt;d_pfstype);
  			dp-&gt;d_type = DT_REG;
  			dp-&gt;d_namlen = dt-&gt;d_namlen;
! 			bcopy(dt-&gt;d_name, dp-&gt;d_name, sizeof(dt-&gt;d_name)-1);
  			error = uiomove((caddr_t) dp, UIO_MX, uio);
  			if (error)
  				break;
- --- 722,728 ----
  			dp-&gt;d_fileno = PROCFS_FILENO(pfs-&gt;pfs_pid, dt-&gt;d_pfstype);
  			dp-&gt;d_type = DT_REG;
  			dp-&gt;d_namlen = dt-&gt;d_namlen;
! 			bcopy(dt-&gt;d_name, dp-&gt;d_name, dt-&gt;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>&nbsp;</td>

  <td><b><font size=+2 face="arial,helvetica" color="#666666">&lt;&lt;</font>
</b><br><font color="#999999">Previous<br>Article</font></td>

<td width=10>&nbsp;</td>

  
    <td><b><font size=+2 face="arial,helvetica" color="#666666">&gt;&gt;</font>
</b><br><font color="#999999">Next<br>Article</font></td>
  

<td width=25>&nbsp;</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> &nbsp;|&nbsp;
<a href="http://gp.dejanews.com/gtplacer?site=dn&location=link.home.whowhere&ci
d=199040709">Find People Now!</a> &nbsp;|&nbsp;
<a href="http://gp.dejanews.com/gtplacer?site=dn&location=link.home.class2000&c
id=199040709">Classifieds</a> &nbsp;|&nbsp;
<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> &nbsp;|&nbsp;
<a href="http://gp.dejanews.com/gtplacer?site=dn&location=link.home.auctions&ci
d=199040709">Auctions</a> &nbsp;|&nbsp;
<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> &#183;
<a href="http://www.dejanews.com/emarket/">About Deja News</a> &#183;
<a href="http://www.dejanews.com/emarket/programs/">Ad Info</a> &#183;
<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> &#183;
<a href="http://www.dejanews.com/info/linkback.shtml">Link to Deja News</a> 
&#183;
<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>; &nbsp;&#183;&nbsp;
<a href="http://www.dejanews.com/home_qs.shtml">Search</a>; &nbsp;&#183;&nbsp;
<a href="http://www.dejanews.com/categories.shtml">Browse</a>; 
&nbsp;&#183;&nbsp;
<a href="http://www.dejanews.com/post.xp">Post</a>; &nbsp;&#183;&nbsp;
<a href="http://www.dejanews.com/rg_enter.xp">My Deja News</a> 
&nbsp;&#183;&nbsp;
<a href="http://www.dejanews.com/help/help_index.shtml">Help</a>; 
&nbsp;&#183;&nbsp;
<a href="http://www.dejanews.com/forms/dnsurvey.shtml">How are we doing?</a>
</font>

<p>
<hr width=325>
<font size=-1>Copyright &copy; 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>