From owner-freebsd-hackers Wed Jul 22 09:23:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA00948 for freebsd-hackers-outgoing; Wed, 22 Jul 1998 09:23:03 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from rah.star-gate.com (rah.star-gate.com [209.133.7.234]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA00929 for ; Wed, 22 Jul 1998 09:22:51 -0700 (PDT) (envelope-from hasty@rah.star-gate.com) Received: from rah.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 JAA14879; Wed, 22 Jul 1998 09:22:16 -0700 (PDT) (envelope-from hasty@rah.star-gate.com) Message-Id: <199807221622.JAA14879@rah.star-gate.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Roger Hardiman cc: hackers@FreeBSD.ORG Subject: Star Office Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 22 Jul 1998 09:22:15 -0700 From: Amancio Hasty Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 ; 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 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  

http://x11.dejanews.com/getdoc.xp?AN=367702037&CONTEXT=899399290.131989
671&hi
  - --------------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" DN - StarOffice 4.0 SP3 installed on FreeBSD 2.2.6

Deja News Toolbar  
Home About Deja News Search Browse Post My Deja News Help

Be Prepared With Yahoo! Classifieds.
Chat, Email, Finance, Sports, Shopping, etc. Yahoo! has it all!

 Article 1 of exactly 0
  <<
Previous
Article
  >>
Next
Article
  /\
Current
Results
Email a Friend
Email this message!
  • Help
  • Author Profile
  • View Thread
  • Post New
  • Post Reply
  • Email Reply
  • Bookmark
  • Text Only

  • Subject:      StarOffice 4.0 SP3 
    installed on FreeBSD 2.2.6
    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 
    [More Headers]
    [
    Subscribe to comp.unix.bsd.freebsd.misc]
    
    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--
    

    Be Prepared With Yahoo! Classifieds.
    Chat, Email, Finance, Sports, Shopping, etc. Yahoo! has it all!
      <<
    Previous
    Article
      >>
    Next
    Article
      /\
    Current
    Results
    Email a Friend
    Email this message!
  • Help
  • Author Profile
  • View Thread
  • Post New
  • Post Reply
  • Email Reply
  • Bookmark
  • Text Only

  • Free Coupons!  |  Find People Now!  |  Classifieds  |  Yellow Pages
    Register Your Domain Name  |  Auctions  |  Directories

    New Users · About Deja News · Ad Info · Our Advertisers
    Free Web Email · Link to Deja News · Create Your Own Forum

    Home  ·  Search  ·  Browse  ·  Post  ·  My Deja News  ·  Help  ·  How are we doing?


    Copyright © 1995-98 Deja News, Inc. All rights reserved. Conditions of use .
    - --------------BF7468451B037DE639EFA7DB-- ------- End of Forwarded Message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message