HDTenEightyP/NetNews huggingface dataset:
From: fitzgb@mml0.meche.rpi.edu (Brian Fitzgerald)
Subject: Re: Help in unix RPC
Organization: Rensselaer Polytechnic Institute, Troy, NY
Date: Tue, 26 Jan 1993 13:57:05 GMT

Wing Ho Kwan - Louie writes:
>Hi,
>Another question in unix rpc
>
>Do anyone knows how many parameters can pass to procedures.
>Since I find that the rpcgen can only allows me to have one parameter
>in each server procedure..... (is it quite limited ????!!!!)
>
>If you have any suggestions , please let me knows
>Thanks for advances......

Right.  You can pass at most, one parameter.

Same for the return value.

However, this generalizes well, because you can pass (return) a pointer
to a structure, and the structure can have as much information as
desired, including other structures, arrays of characters, etc.

For example, see /usr/include/rpcsvc/rstat.x

It was probably done this way in order to simplify the design of the
supporting rpc and xdr library routines.

Brian
From: 890758k@dragon.acadiau.ca (Wing Ho Kwan - Louie)
Newsgroups: comp.unix.programmer
Subject: Help in unix RPC
Summary: Can I have more than one parameter in RPC procedures
Keywords: a
Date: 24 Jan 93 17:46:09 GMT
Organization: Acadia University

Hi,
Another question in unix rpc

Do anyone knows how many parameters can pass to procedures.
Since I find that the rpcgen can only allows me to have one parameter
in each server procedure..... (is it quite limited ????!!!!)

If you have any suggestions , please let me knows
Thanks for advances......

Regards,
Louie Kwan

*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*||||||||||||||  ASU Box 6696, Wolfville, N.S. Canada  |||||||||||||||*
*|||||||||||||||||||||||||||  B0P  1Z1  ||||||||||||||||||||||||||||||*
*|||||||||||||||||  Tel : 902-542-9912  (Room 128)  ||||||||||||||||||*
*|||||||||||||||  E-mail : 890758k@dragon.acadiau.ca  ||||||||||||||||*
***********************************************************************
Newsgroups: comp.unix.programmer
From: Jan A. Barglowski <jan@archimedes.chinalake.navy.mil>
Subject: RPC's and Distibuted processes
X-Xxmessage-Id: <A7845AD35B011F0A@gawain.nwc.navy.mil>
X-Xxdate: Thu, 21 Jan 93 13:51:15 GMT
Organization: VisLab, Naval Air Warfare Center
X-Useragent: Nuntius v1.1.1d9
Date: Thu, 21 Jan 1993 21:45:10 GMT

Hello all.

I'm creating a program that distribute image rendering between 5
workstations.  I'd like to use RPC, but I don't know if it can be done. 
Here's my client/server model:

Client  	       	       	       	       	Server A

Send frame X to server A ->     	       	Ack. spawn new render process   
	       	 Send frame X to server B -> 	       	    Rendering...
Send frame X to server C -> 	       	    Rendering...
Send frame X to server D -> 	       	    Rendering...
Send frame X to server E -> 	       	    Rendering...
        	       	       	       	       	 Rendering...
        	       	       	       	       	 Rendering...
        	       	       	       	   <-    Done with frame X
Ack. send frame X+5 to server A   ->    	Ack. spawn new render process

And so on.  After reading through the Sun manuals, I find that nowhere
can I ask the server to do a frame, get an ack, and then ignore the
server until it's ready for the next frame.  I seem limited to either
"wait until the servers's done with the frame"  (severly limits
parallelization!) or "batch mode", where the procedure callee does not
require and ack.

If this isn't possible, then I'll guess I'll have to use socket...

Thanks!

jan.
Newsgroups: comp.unix.programmer
From: melchers@chemie.fu-berlin.de (Bernd Melchers)
Subject: Re: C's getenv() with UNIX
Organization: Free University of Berlin, Germany
Date: Thu, 21 Jan 1993 17:30:13 GMT

barmar@think.com (Barry Margolin) writes:

>In article <93019.001932BAB127@psuvm.psu.edu> bab <BAB127@psuvm.psu.edu> writes:
>>     Can anyone tell me how to use the getenv() function with UNIX's
>>environment variables?  For example I tried:
>>getenv( "cwd" )

>There is no "cwd" environment variable.  The C shell has a "PWD"
>environment variable, and a "cwd" shell variable.  Shell variables (the
>kind you set with "set" in C shell, and which you get by *not* exporting a
>variable in Bourne shell) are local to that shell, not in the environment
>that's inherited by new processes.

to determine the current working directory, use 
char *getcwd (char *buf, int size);
because there is no need, that PWD is the current work. dir.
(just print
 setenv PWD i_am_an_foo___grmmmbl4711
 )

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Bernd Melchers                   | melchers@chemie.fu-berlin.de
Freie Universitaet Berlin        | Lieblingsessen: Pizza, aber nur
Institut fuer Kristallographie   |              selbstgemachte...
Takustr. 6                       |              und ohne Tierkadaver
D 1000 Berlin 33                 |
Earth                            |
Tel.: 0049-30-8383612            |
                                 |
Please replace battery pack, attach external power,
or system will be shutdown in 10 seconds.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From: rturner@imagen.com (Randy Turner)
Newsgroups: comp.unix.programmer
Subject: Re: longjmp() from a signal handler
Keywords: longjmp signals
Date: 26 Jan 93 19:23:35 GMT
Organization: imagen

michaelh@g2syd.genasys.com.au (Michael Haldey) writes:

>In article <rturner.727977268@imagen> rturner@imagen.com (Randy Turner) writes:
>>I was reading the POSIX.1 standard the other day and it mentions that you
>>cannot use the longjmp() library routine from inside a signal handler.  I
>>was under the impression that this was valid under BSD 4.3...Can 
>>anyone confirm the compatibility of using longjmp() from a signal handler
>>when trying to write portable code?
>>
>As far as I remember, it is not compatible. Therre are two functions:
>siglongjmp and sigsetjmp which are supported by POSIX and you can use
>them freely. The reason is a behavour of the signal mask.

>My 0.002
>Michael
>-- 
>Michael Haldey  |  Genasys II Pty Ltd, Sydney, Australia
>                |  Phone:    +61-2-954-2878 (-9930 FAX)
>                |  Internet: michaelh@g2syd.genasys.com.au

   But from within a signal handler, even siglongjmp() is not compatible.
   I think the problem stems from the fact that signal delivery is an
   implementation-specific issue and that POSIX cannot guarantee that the
   runtime stack the signal is delivered on is the same runtime stack that
   the the jmp_buf[] references.  The POSIX.1 spec says that only a subset
   of library calls are safe to call from inside a signal handler, and the
   longjmp()/siglongjmp() calls are not among them.  I was curious if
   Sys-V/R4 supports longjmp'ing from a signal handler, or is anyone has
   code that does this?
				Randy
Newsgroups: comp.unix.programmer
From: shibumi@ddsw1.mcs.com (Michael Karrys)
Subject: Need help with system() function call
Date: Wed, 27 Jan 1993 17:35:56 GMT
Organization: ddsw1.MCS.COM Contributor, Chicago, IL
X-Newsreader: Tin 1.1 PL3

I am trying to use the system() function call to send a print job into
the background from a foreground running program.  The problem I am running
into is that any foreground open files cause the background program to
stop and hang. The strange thing is that the background program runs fine
as a foreground program and when run as a background program its file
references are zero ( prior to opening were in it just hangs ).

If I close the files in the foreground process prior to starting the
background process everything works fine, however, this will
cause a great deal of complexity in my programming. I have also tried 
unlocking tables and indexs in the foreground and background processes
without any success.

What I wanted was the background process to be completely separate program
and not associate the file descriptors from the foreground. I want to send
a string similar to this.

system("backprog -p -w >/dev/null 2>&1 &");

I would appreciate it if somebody could shed alittle light on this for me.

thanks Mike Karrys

P.S. I am using Codebase 4.2 C Library.
From: mbarkah@slate.mines.colorado.edu (Ade Barkah)
Newsgroups: comp.unix.programmer
Subject: Does AIX have connld STREAMS module (and fattach()) ?
Date: 26 Jan 93 17:50:10 GMT
Organization: Colorado School of Mines

I'm porting my database software from svr4 to other environments,
including AIX. One module I use for communications is connld which
lets me handle multiple unique streams, along with fattach().

Is there a `connld' or equivalent in IBM AIX 3.2 ? I've been browsing
through the info-hypertext-thingy and can't find it. The sysadmin
people here don't know what they configure in the kernel. Typical.
References I found on STREAMS are for those things I'll never need
(like auto conversion from ASCII to EBCDIC.)

Also, I just did a `man -k fattach()' on the other window, and
it didn't find it either. Running /usr/sbin/scls returns an
error about not finding the nuls driver/module. I checked the
/etc/pse.conf file, but it contains nothing even similar to
`connld.' I saw a reference to a spx multiplexer, but I assume
that's probably for pseudo-tty stuff. Neither man nor info gave
me anything more regarding spx. I wrote a small test program, but 
ioctl() can't I_PUSH connld (returns -1.) 

I'm pretty foreign to AIX, so I don't know where to look next.
I'm wondering if 1) Connld or equivalent just doesn't exist in
the wild world of AIX; 2) It exists in some form, but is not 
configured by the sysadmin here; 3) It exists and configured,
but I just don't know about it.

Any help is GREATLY appreciated,

-Ade.
-- 
Internet  : mbarkah@slate.mines.colorado.edu    (NeXT Mailable)
CompuServe: 74160,3404
From: palmerp@math.orst.edu (Paul A Palmer)
Newsgroups: comp.unix.programmer
Subject: Re: format of floating points?
Date: 26 Jan 93 01:21:22 GMT
Article-I.D.: ilanga.PALMERP.93Jan25172122
Reply-To: Paul Palmer <palmerp@math.orst.edu>
Organization: Dept. of Math, Oregon State University
NNTP-Posting-Host: ilanga.math.orst.edu
In-reply-to: haible@ma2s3.uucp's message of 5 Jan 1993 16:02:01 GMT

In article <1icbdpINNsj1@nz12.rz.uni-karlsruhe.de> haible@ma2s3.uucp (Bruno Haible) writes:

   melchers@Harpo.Chemie.FU-Berlin.DE (Bernd Melchers) asks:
   > How are doubles coded by the ieee standard?

I used to have a copy of the document describing this standard, but seem to
have lost it. Could someone tell me how to get a copy, or even what it's
official name is?

Thanx.

--
Paul Palmer
Department of Mathematics     	E-mail: palmerp@math.orst.edu
Kidder Hall 368
Oregon State University, Corvallis, Oregon 97331-4605
Newsgroups: comp.unix.programmer
From: peter@fenk.wau.nl (Peter Barneveld)
Subject: asctime to clock conversion?
Keywords: ctime clock asctime datetime strptime
Organization: Dpt. of Physical and Colloid Chemistry, Wageningen University, NL
Date: Thu, 28 Jan 1993 10:19:10 GMT

Hello,

I'm looking for a routine that converts a standard unix 
asctime (format Sun Sep 16 01:03:52 1973\n\0) to the
time expressed  as  the  number  of  seconds since Jan. 1, 
1970, 00:00, Greenwich Mean Time. In SunOS you can make
use of strptime(), but that is not very portable. Any
pointers to a more portable solution (maybe a public 
version of strptime()) are appreciated.

Thanks,
Peter
Xref: sparky comp.unix.programmer:6063 comp.unix.questions:16007
From: pkammer@liege.ics.uci.edu (Peter Kammer)
Subject: Re: where can i find ftp protocol doc?
Newsgroups: comp.unix.programmer,comp.unix.questions
Reply-To: pkammer@ics.uci.edu
Organization: UC, Irvine,  Dept. of Information and Computer Science
Date: 27 Jan 93 09:42:32 GMT

In <1993Jan26.142140.8237@wuecl.wustl.edu> zqx@wucs1.wustl.edu (Zeqing Xia) writes:

>	I'd like to know if there is any ftp site for me to get the
>documentation of the ftp protocol. I think it should be somewhere.

There's quite a bit of documentation in the rfcs.  (I would give you a
single one to reference, but there are quite a few).  You can get these
(including index) from nic.ddn.mil.

-Peter K.

------------
Peter Kammer               We are the music makers,
pkammer@ics.uci.edu           And we are the dreamers of dreams,
203peter@vax.stmarytx.edu  Yet we are the movers and shakers     --Arthur
BITNET: 203PETER@STMARYTX     Of the world for ever, it seems.    O'Shaugnessy

Xref: sparky comp.unix.programmer:6058 comp.unix.wizards:5659
From: freeman-elisabeth@cs.yale.edu (Elisabeth Freeman)
Newsgroups: comp.unix.programmer,comp.unix.wizards
Subject: Using mmap()
Date: 27 Jan 1993 21:02:03 -0500
Organization: Yale University Computer Science Dept., New Haven, CT 06520-2158
Distribution: usa
NNTP-Posting-Host: teddy.systemsy.cs.yale.edu


I'm a bit confused about using mmap - it's not clear what "fd"
in the man page refers to:


     caddr_t mmap(addr, len, prot, flags, fd, off)
     caddr_t addr;
     size_t len;
     int prot, flags, fd;
     off_t off;

DESCRIPTION
     mmap() establishes a mapping between the  process's  address
     space  at  an  address pa for len bytes to the memory object
     represented by fd at off for len bytes.  

What is this memory object pointed to by fd, and how do I define
fd?   I want to map some pages created by valloc() to another
virtual address space.  Can I use mmap() for this purpose?

Beth Freeman
freeman-elisabeth@cs.yale.edu


Newsgroups: comp.unix.programmer
From: kng@pt.com (Ken Gravenstede)
Subject: C source calling hierachy generator WANTED
Organization: Performance Technologies, Incorporated
Date: Thu, 21 Jan 1993 13:32:17 GMT

I currently own a commercial package which takes C source code including
.h files and starts with main (or any other specified routine) and generates
a calling hierachy along with a nice cross reference.  (The package is
C-DOC from Software Blacksmiths if anyone is interested.) Anyway, this
only runs on PC's right now and I was looking for a public domain package
that might perform the same function under SunOS or some other unix.  

Any help would be appreciated.  If you have such a package I'd appreciate
it if you could email it to me since I DON'T have Anon Ftp access.

Thanks

Ken

-- 
__
Ken Gravenstede, Performance Technologies Incorporated	kng@pt.com
315 Science Parkway, Rochester, New York 14620            uupsi!ptsys1!kng
From: rturner@imagen.com (Randy Turner)
Newsgroups: comp.unix.programmer
Subject: longjmp() from a signal handler
Summary: Can I use longjmp() from inside a signal handler?
Keywords: longjmp signals
Date: 25 Jan 93 15:54:28 GMT
Organization: imagen

I was reading the POSIX.1 standard the other day and it mentions that you
cannot use the longjmp() library routine from inside a signal handler.  I
was under the impression that this was valid under BSD 4.3...Can 
anyone confirm the compatibility of using longjmp() from a signal handler
when trying to write portable code?

			Thanks in advance!
						Randy
Newsgroups: comp.unix.programmer
From: chetal@is.morgan.com (Pradeep Chetal)
Subject: Re: Can you place an obj/exe file under RCS?
Followup-To: comp.unix.programmer
Organization: Information Services, Morgan Stanley, NYC
Date: Fri, 22 Jan 1993 00:11:11 GMT

In article <SHANE.93Jan21043855@nugget.spr.com> shane@nugget.spr.com (Shane Hartman) writes:

   From the man page for ci:

    WARNINGS
	 The names of RCS files are generated by appending ,v to the end of the
	 working file name.  If the resulting RCS file name is too long for the
	 file system on which the RCS file should reside, ci terminates with an
	 error message.

	 The log message cannot exceed 2046 bytes.

	 A file with approximately 240 revisions may cause a hashtable
	 overflow.  ci cannot add another revision to the file until some of
	 the old revisions have been removed.  Use the rcs command with the -o
	 (obsolete) option to remove old revisions.

	 RCS is designed to be used with TEXT files only.	Attempting to use
	 RCS with non-text (binary) files results in data corruption.

   --

May be you should upgrade your RCS. We are using RCS 5.6 and never had
any of the above mentioned problems. We use RCS to stores binaries &
libraries all the time. Use rcs -ko for binaries/libraries.

/Pradeep
--
----------------------------------------------------------------------------
Pradeep Chetal		UUCP:	...!uunet!is.morgan.com!chetal
Morgan Stanley		Internet: 	chetal@is.morgan.com
1633 Broadway,		Phone:		(212) 703-2220 (O)
NY, NY 10019				(212) 703-2371 (FAX)
            _______________    __o
        _________________     -\<,
                        ......O/ O
From: ashok@ttivision1.tamu.edu (ashok rao)
Newsgroups: comp.unix.programmer
Subject: How to use getrusage() on SPARC?
Date: 28 Jan 1993 05:31:13 GMT
Organization: Texas Transportation Institute
Distribution: usa
NNTP-Posting-Host: ttivision1.tamu.edu

hi folks,

	I need to use getrusage() to find how long it
	takes for a certain segment of code to run.

	getrusage(--

	CODE HERE

	getrusage(--

	
	I'd like to know if any one has done this or if this
	is the right way to find the time for the certain code.

	Proven answers are welcome.

thanks
arao
ashok@ttivision1.tamu.edu
Newsgroups: comp.unix.programmer,comp.unix.ultrix
From: frank@croton.nyo.dec.com (Frank Wortner)
Subject: Re: =========Problem using mmap on DECstations========
Reply-To: frank@nyo.dec.com
Organization: Digital Equipment Corporation
Date: Thu, 28 Jan 1993 15:08:09 GMT


ULTRIX mmap() supports only the mapping of the memory associated with
a character device special file into the address space of a process.  It
is not possible to map an arbitrary file.

DEC OSF/1 does allow mapping of files into memory space.

						Frank
From: iarit@slate.mines.colorado.edu (ARIT ISMAIL)
Newsgroups: comp.unix.programmer
Subject: client/server question.....
Date: 26 Jan 93 22:16:17 GMT
Organization: Colorado School of Mines

Hi,

I don't know if this is the right place to post this, but
I need some help about writing a simple client/server program.

Here is what I am trying to do;

I want to write a program that will accept connections from
other programs and will communicate with them without forking.
I don't want to fork because the info should be generated on one
program, send to server and the server has to respond to every
program connected with the same info( if I fork, how can I transfer
that info to child?).

  main                     main
  client <--> server <--> client
                |
                |
          _______________________________
         |         |        |        |
         v         v        v        v
       client1  client2  client3     ......
(main clients generate the info)
I know this is not an easy thing to do, but actually, I am having
problems with accept(..);
can I do something like this;

while(1)
{
 check_new_connection(); /* how can I check if there is any new
connection
                           without waiting, as far as I know accept(..)
                           blocks you 'till you get some connection*/
 check_clients();       /* I can do these, no problem. read if there is
                           any new info */
 if(thereIsNewInfo)
   inform_clients();     /* if I can create a list of handles for clients
                           this is no big deal */

}
My problem is getting new connections without waiting.

I appreciate any help.

iarit@slate.mines.colorado.edu
Organization: University of Maryland at Baltimore
Date: Thursday, 21 Jan 1993 14:12:56 EST
From: Tom Williams <TW@UMAB.BITNET>
Newsgroups: comp.unix.programmer
Subject: setsockopt problem

I've got a problem using the BSD socket interface.  I'm trying to
set the time out for the read function using  the setsockopt function:

   int  sock,  time = 10;
   rc  = setsockopt(sock,SOL_SOCKET,SO_RCVTIMEO, (char *)&time,
       sizeof time);

I've previously called socket(), and it has executed correctly.  When
I call setsockopt(), I get rc = -1, and errno = 22 (EINVAL, invalid
arguement according to errno.h).

Any ideas on what I'm doing wrong?

Thanks,
    Tom

+----------------------------------------------------------------------------+
| "Work and play are words used to describe the same thing under different   |
|  conditions."                                                              |
|                                                            - Mark Twain    |
| Bitnet: TW@UMAB     Internet: TW@UMAB.UMD.EDU     Phonenet: (410)706-4134  |
| SnailNet: 100 N. Green Street, Baltimore, MD  21201                        |
+----------------------------------------------------------------------------+
From: hsiegel@cvbnet.prime.com (mailhost)
Newsgroups: comp.unix.programmer
Subject: Re: More advanced popen()
Date: 28 Jan 93 15:41:32 GMT

From article <LUNDMAN.93Jan27223935@kauri.kauri.vuw.ac.nz>, by lundman@kauri.vuw.ac.nz (L Lundman):
>
> After finding out that popen() only read or wrote to a process and not both
> I was told I had to write one of my own if I wanted one. Can someone
> inform me why this code doesn't seem to work?
>
> (Knowing my luck, it's some dumb mistake ;) )
...
	[code deleted to save space]
...

In the first place, you would need _two_ pipes, one to write to the
child process and one to read from it.  This can be done, and works.

What frequently munges attempts to do this is a noxious aspect of the
way pipes work.  I quote from "man pipe" on my SunOS 4.1.3 system:

* BUGS
*    Should more than {PIPE_BUF} bytes be necessary in  any  pipe
*    among a loop of processes, deadlock will occur.

PIPE_BUF, as I recall (I haven't looked it up lately) is 256 (512?)
bytes.  This causes problems surprising often.  If you can guarantee
that you won't exceed this, you may be able to implement a double-
ended version of popen.

Howard Siegel                   hsiegel@piano.prime.com
Computervision                  hsiegel@primerd.prime.com
Bedford, Mass.                  hsiegel%piano.prime.com@RELAY.CS.NET
(617) 275-1800 x4064            cvbnet!hsiegel@primerd.prime.com
From: kimraj@lds.loral.com (Ron Kimraj)
Newsgroups: comp.unix.programmer
Subject: BIOD source
Keywords: NFS Client
Date: 21 Jan 93 15:38:11 GMT
Reply-To: kimraj@lds.loral.com
Organization: Loral Data Systems

Need:  Source code for the NFS Server (BIOD, etc.)
Problem: I don't know if it is available to the
         public (free of charge), and if it does,
         I am not aware of its location?

   I would like any information on its whereabout, if its available.

   Thanks in advance for any help.

Ron.
Newsgroups: comp.unix.programmer
From: shane@nugget.spr.com (Shane Hartman)
Subject: Re: Can you place an obj/exe file under RCS?
Followup-To: comp.unix.programmer
Reply-To: shane@spr.com
Organization: Software Productivity Research, Inc.
Date: Thu, 21 Jan 1993 09:38:55 GMT


From the man page for ci:

 WARNINGS
      The names of RCS files are generated by appending ,v to the end of the
      working file name.  If the resulting RCS file name is too long for the
      file system on which the RCS file should reside, ci terminates with an
      error message.

      The log message cannot exceed 2046 bytes.

      A file with approximately 240 revisions may cause a hashtable
      overflow.  ci cannot add another revision to the file until some of
      the old revisions have been removed.  Use the rcs command with the -o
      (obsolete) option to remove old revisions.

      RCS is designed to be used with TEXT files only.	Attempting to use
      RCS with non-text (binary) files results in data corruption.

--

K. Shane Hartman                     | Internet: shane@spr.com
Software Productivity Research, Inc. | CI$:      76477,203
1 New England Executive Park         | Voice:    +1.617.273.0140
Burlington, MA                       | Fax:      +1.617.273.5176

-----BEGIN PUBLIC KEY-----
User: shane@spr.com
PublicKeyInfo:
 MFowCgYEVQgBAQICAgkDTAAwSQJCAVXBs5FGCkB7QHqxO2mZNmFFiarPh4ltxOi7
 zVNvpc/ZgmbM5TL+2MGe9Awb51gM29BT6kQ6XU8EXo2xWU99a+13AgMBAAE=
MD5OfPublicKey: E1401F828FBB2714128465CFA87F6F25
-----END PUBLIC KEY-----
Newsgroups: comp.unix.programmer,comp.unix.questions