HDTenEightyP/NetNews huggingface dataset:
From: ronf@panther3.panther.mot.com (Ron Feigen)
Subject: Re: Passing FIDs
Organization: Motorola Panther Project, Chandler, AZ
Date: Fri, 4 Sep 1992 18:37:31 GMT


Hello,

  Does anyone know of bugs/problems with SunOS 4.1.2 passing of file
descriptors.  I faithfully RTFM (as well as R. Stevens UNIX Net. Prog)
to learn about how to do this.  Here's the desciption:
  I have 1 process open a socket, start a non-blocking connect().  Then
at an arbitrary time later pass the access rights to another process.
The other process would request a socket (through a little ack/nack deal)
and then receive the access rights.

	Using sendmsg() -> recvmsg()  with msghdr like the following:

		struct iovec iov;
		iov.iov_base = (char *)0; iov.iov_len = 0;
    msg.msg_name = (caddr_t)0; msg.msg_namelen = 0; msg.msg_iov = iov; 
		msg.msg_iovlen = 0; 
		msg.msg_accrights = (caddr_t)&fd; /* where this is the created socket fd */
		msg.msg_accrightslen = sizeof(int);

The problems start when I send the desciptor.  For some reason the access 
rights fields in the msghdr struct get zeroed out, and garbage ends up 
getting sent to the receiver...hence a garbled access rights...but NO error 
reported by either sendmsg() or recvmsg() (no return of -1 and errno set)

Anybody had problems like this?

P.S. The code does seem to work occasionally, or when using dbx.

Any help would be greatly appreciated

-- 

>
Ron Feigen
ronf@panther.mot.com
Newsgroups: comp.unix.wizards
From: gene@aee.aee.com (Gene Kochanowsky)
Subject: Re: SUN/HYUNDAI compatibility
Organization: Associated Electronic Engineers
Date: Mon, 7 Sep 1992 00:43:26 GMT

ZA9ZA00@sysa.computing-services.manchester-poly.ac.uk writes:

>Hi,
>  My boss has just dumped a HYUNDAI sparc on my desk and asked if it is
>'the same' as a SUN IPC. It runs SUNOS 4.1.1 ok and all the tests I've
>run on it have gone ok. Does anyone know of any incompatibilities, problems etc?

>                                Cheers,
>                                John.

>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>J.E.Brooks, Team Leader (systems/networks), Computing Services Unit,
>            Manchester Polytechnic, Chester Street, Manchester M1 5GD
>       Tel: (+44) 61 247 1463
>      Mail: J.Brooks @ uk.ac.manp.cs.sa
>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

I don't belive that Hyundai makes any IPC clones. They do make a SparcStation2
clone which is SCD1.1 compliant, which as I understand it means that it has
been produced with source tooling and design information to ensure that it
is 100% Sun compatible.

Gene
-- 
------------------------------------------------------------------------------
Gene Kochanowsky                           | "And remember ....
Associated Electronic Engineers, Inc.      |       The better you look ... 
2864 Cercy Trace                           |       
Newsgroups: comp.unix.wizards
From: steve@nshore.org (Stephen J. Walick)
Subject: Re: UUCP-question
Reply-To: steve@nshore.org (Stephen J. Walick)
Organization: Nshore Hacking and Salvage
Date: Sat, 5 Sep 1992 14:02:34 GMT
Followup-To: comp.unix.wizards

As quoted from <1992Sep4.215452.28235@ousrvr.oulu.fi> by putaala@zombie (Mikka Putaala):

+---------------
| This newsgroup seemed to be the most appropriate for this posting.
| 
| I have installed Taylor-uucp-1.03 succesfully.
| [ ... ]
+---------------

Cf. especially lines 7 & 8 --

   1  This is the README file for version 1.03 of the Taylor UUCP package.
   2
   3  It was written by Ian Lance Taylor.  I can be reached at ian@airs.com,
   4  or, equivalently, uunet!airs!ian, or c/o Infinity Development, P.O.
   5  Box 520, Waltham MA, 02254.
   6
   7  There is a mailing list for discussion of the package.  To join the
   8  list, send a message to taylor-uucp-request@gnu.ai.mit.edu.  Make sure
   9  you include the address at which you want to receive messages; do not
  10  rely on the From: header.  To send a message to the list, send it to
  11  taylor-uucp@gnu.ai.mit.edu.
  12
  13  This package is covered by the Gnu Public License.  See the file
  14  COPYING for details.  If you would like to do something with this
  15  package that you feel is reasonable but you feel is prohibited by the
  16  license, contact me to see if we can work it out.
:set number

That's where you'll find all (and more than all) the help you need.

-- 

Stephen J. Walick            Internet: steve@nshore.org [192.150.241.1]
Data Phone: (216) 942-1118          UUCP: {uunet|backbone}!nshore!steve
Two Telebit WorldBlazers, TurboPEP, PEP, V32.bis, V.32 and 2400-300 bps
Newsgroups: comp.unix.wizards
From: jle9162@zeus.tamu.edu (ECKHARDT, JASON LEE)
Subject: MIX simulator
News-Software: VAX/VMS VNEWS 1.41    
Organization: Texas A&M University, Academic Computing Services
Distribution: usa
Date: Mon, 7 Sep 1992 20:46:00 GMT

  Surely one of you 'wizards/gods/gurus' can tell me where I can find a
MIX simulator in 'C', 370 asm, or intel asm?
  This is the most appropriate group I could find to post this since there
doesn't seem to be a comp.Knuth anywhere...

jason

Newsgroups: comp.unix.wizards
From: bzs@ussr.std.com (Barry Shein)
Subject: Re: Programmatic recgonition of sun floppy device
Organization: The World
Date: Fri, 11 Sep 1992 02:55:13 GMT


From: gfong@bellahs.com (Gary Fong RD)
>  How can I programmatically determine if a given file descripter/pointer
>belongs to a floppy device on a Sun 4/40?  Detecting the file is special and
>raw, I can do.  But what function/macro will tell me it is a floppy device
>or not?

A. Do an fstat() on the fd and then stat() all the floppy devices in
/dev and see if any match.

B. Do an ioctl(fd,DKIOCINFO,xyz) and see if it's a floppy (see 'man dkio').


--
        -Barry Shein

Software Tool & Die    | bzs@world.std.com          | uunet!world!bzs
Purveyors to the Trade | Voice: 617-739-0202        | Login: 617-739-WRLD
From: jimbo@even
Newsgroups: comp.unix.wizards
Subject: just asking...
Date: 6 Sep 92 13:10:06 GMT

Well ...

Hello Wizards of the world...
may be it is a stupid question for some of you but...
what should i send the news@host to send my news directly by
using mails...

Please answer.

                          Jimbo.



Newsgroups: comp.unix.wizards,comp.unix.internals
From: jeff@BofA.COM (Jeff Tate)
Subject: core dump on 4.1.2 SunOS / why?
Organization: Bank of America, Capital Products, RMTG #5906
Distribution: usa
Date: Thu, 10 Sep 92 22:38:08 GMT

I have just done something very strange to my Sparc2 and am at a loss to recover.  Help is requested.

For irrelevenat reasons, I needed to make space on my /usr partition.  I therefore moved share, diag, and kvm to a /local partition via tar pipe.  After I had finished the experiment that required the space, I attempted to restore these directories.  Unfortunately, I had forgotten to remove the new symbolic links (i chchanged the link from boot->./kvm/boot to boot->/local/usr/boot) and so the return pipe was doing something really wierd.  Anyway, I got messages to th effect that 'warning:  libraries being 


changed'.  Crash, panic, death, ... and after a dirty recovery, commands such as ps, vmstat, adb core dump.

I discovered that /usr/kvm/libkvm.a and /usr/lib/libkvm_p.a where garbaged (ranlib reported this) and replaced them with copies from another 4.1.2 2 machine, but the behaviour persists.  I can operate most of the rest of the machine, but cannot get a ps or an adb to work.

Please suggest either cause or fix or both, else I must reinstall /usr from the cdrom and that would be a pain.

Thanx in advance

Regards
Jeff Tate

  +------------------------------------------------------------------+
  +  Jeff Tate                            Voice:  (415) 622 0890     +
  +  Manager, RMP Systems                 Fax:    (415) 622 2892     +
  +  Bank of America #5906                                           +
  +  San Francisco, CA 94104              e-mail: uunet!odinba!jeff  +
  +                                               jeff@BofA.COM      +
  +------------------------------------------------------------------+
-- 

  +------------------------------------------------------------------+
  +  Jeff Tate                            Voice:  (415) 622 0890     +
  +  Manager, RMP Systems                 Fax:    (415) 622 2892     +
  +  Bank of America #5906                                           +
  +  San Francisco, CA 94104              e-mail: uunet!odinba!jeff  +
  +                                               jeff@BofA.COM      +
  +------------------------------------------------------------------+
From: marcello@deis20.cineca.it (Marcello Dalpasso)
Newsgroups: comp.unix.wizards
Subject: please unsubscribe
Date: 9 Sep 92 09:23:59 GMT

please unsubscribe
From: jim@blade (Jim Rump)
Newsgroups: comp.unix.wizards
Subject: Microfield T8C questions ???
Date: 13 Sep 92 21:04:19 GMT
Organization: MCGV Stack, Eindhoven University of Technology, the Netherlands.
X-Newsreader: Tin 1.1 PL4

Hi all,

I'm a student who has a 19" monitor (Unisys)  with a Microfield T8C video-card.
With this card a MS-windows driver was supplied. 
Since I'm running X386 on a BSD based system I really would like to
use the T8C to operate with X386. The following questions also applies to 
X386 on a Linux based system.
The questions I have are:

* Are there drivers for the Microfield T8C-card for X-windows. If this is
  the case, where can I obtain this and at what price? 

* I know there is a manual for programming the T8C-card. The name is:
  `Microprogrammer's reference manual for the T8C Color Graphics Controller`.
  Where can I get this manual?

* Does anyone know the adress of Microfield or perhaps an e-mail adress?

An other question I have is if someone has allready succesfully used a
19" monitor connected to a 1MB vga-card e.g. a et4000 based one.

Thanks,

Jim (jim@stack.urc.tue.nl)



--
   \_  \_  \_\_  \_ \_   Jim@stack.urc.tue.nl
    \_  \_  \_  \_   \_ 
     \_  \_  \_       \_     
  \_\_    \_  \_       \_    I,m always seeing an opinion.
Newsgroups: comp.unix.msdos
From: dirk@denali.ifg.tu-clausthal.de (Dirk Gajewski)
Subject: PC-NFC
Keywords: PC-NFS, where to get
Organization: tu-clausthal.de         
Date: Tue, 15 Sep 1992 10:24:48 GMT

Where can I get the PC-NFS4.0 program?	

regards,	
Dirk
Newsgroups: comp.unix.msdos
From: gene@aee.aee.com (Gene Kochanowsky)
Subject: Re: PC-NFC
Keywords: PC-NFS, where to get
Organization: Associated Electronic Engineers
Date: Tue, 15 Sep 1992 22:38:26 GMT

dirk@denali.ifg.tu-clausthal.de (Dirk Gajewski) writes:

>Where can I get the PC-NFS4.0 program?	

>regards,	
>Dirk

Call SunExpress:

	(508) 671-0661

good luck

gene@aee.com

-- 
------------------------------------------------------------------------------
Gene Kochanowsky                           | "And remember ....
Associated Electronic Engineers, Inc.      |       The better you look ... 
2864 Cercy Trace                           |
From: rusk@ORCA.DREP.DND.CA
Newsgroups: comp.unix.msdos
Subject: Versions of MSDOS C compilers which will run under VP/ix
Date: 9 Sep 92 20:06:11 GMT

What are the most recent versions of Turbo C/C++, Borland C/C++
and Microsoft C/C++ which run in a virtual-8086 environment? 
The latest releases of these products require a 286/386/486.
From: ortman@cwis.unomaha.edu (Kevin Ortman)
Newsgroups: comp.unix.msdos
Subject: Cross assembler
Keywords: unix, assembler, programming, msdos
Date: 4 Sep 92 22:59:50 GMT
Organization: University of Nebraska at Omaha

Are there any 8086 assemblers written to run on a unix envt?

REASON:  I am taking a PC Assembly language course (being between
systems, I don't have a PC) and I would like to use the unix system we
have at school to compile my assembly source.  I've seen such a thing
for compiling apple 2e (6502 & 65C02) assembly programs, so I think
there should be something out there.

Any help greatly appreciated!


		-Kevin Ortman
			ortman@cwis.unomaha.edu
Newsgroups: comp.unix,comp.unix.questions,comp.unix.misc,comp.unix.ultrix,cocomp.unix.wizards
From: ctso@wam.umd.edu (CT Shock)
Subject: Re: Help with defining the default Unix mail editor
Organization: University of Maryland, College Park
Date: Fri, 11 Sep 1992 12:56:19 GMT

In article <1992Sep10.184854.19129@umbc3.umbc.edu> williamf@umbc4.umbc.edu (TheBigBopper) writes:
> I am a Unix novice so if anyone can help with this question please couch
> your response as simply as you can to help me.
>
> I am attempting to mail a letter to someone.  I invoked Mail and used the
> tilde ~r to include a file.  Next, I tried to edit the file using ~e  
> Trouble is I keep getting a message saying permission denied.  I have checked
> the PATH variable in the .cshrc file and the path indicated there is the 
> correct one for Emacs (which is what I want to invoke).  I placed the
> statement 'set EDITOR = /usr/local/bin/emacs in the .cshrc, logged out and 
> in and tried again to edit the file from w/in mail w/o success.  I also tried
> using setenv EDITOR /usr/local/bin/emacs and this string showed up in response
> to the 'printenv' command but the mail editor still didn't default to emacs.
> 
> Is there some other way to alter the default editor in mail?  Curiously, the
> same thing happens in News where the default editor's path points to VI.  I
> can change this on the fly by just typing in the correct path in RN but the
> same isn't true for mail.  If anyone can offer any help please e-mail me the
> answer and I'll post a summary of the answer if it solves the problem.
>  Thanks 
>      TheBigBopper

Actually, it's pretty easy. Most mailers have two environmental variables.
EDITOR and VISUAL. You need to set these variables from within mail.
You can also set emacs as your default in an initialization file.
(something like .mailrc in your home directory) do a 'man mail' or
'man sendmail', 'man mailx' or whatever... to learn more about it.

	-Todd
From: guy@Auspex.COM (Guy Harris)
Newsgroups: comp.unix.programmer
Subject: Re: Problem with Pseudo TTY of SunOS 4.1.1 for Sun3
Date: 9 Sep 92 06:44:26 GMT
Distribution: usa
Organization: Auspex Systems, Santa Clara

>  Is this a bug with SunOS,

No, it's a botch in the BSD pseudo-tty implementation; the BSD one let
you do certain tty "ioctl"s on the master side.  It shouldn't have done
so; pseudo-tty masters are *NOT* ttys, they're pseudo-tty masters.

The SunOS 4.x pseudo-tty implementation does some old BSD "ioctl"s for
backwards compatibility - and the code to do so is *REALLY GROSS*, as
the STREAMS-based pty implementation doesn't make it at *all* easy to do
that - but it doesn't do the newer "ioctl"s used by "isatty()" and by
the standard I/O library to determine if something is a tty.

>or do I need to do something special
>in making the master pty a tty as well?

It's *not* a tty.  Explicitly use "setlinebuf()", or "setbuf()", or
"setvbuf()", to control the standard I/O buffering on pseudo-tty
masters.
From: barmar@think.com (Barry Margolin)
Newsgroups: comp.unix.programmer
Subject: Re: getservbyname(), getprotobyname(), gethostbyname()
Date: 15 Sep 1992 19:54:45 GMT
Organization: Thinking Machines Corporation, Cambridge MA, USA
NNTP-Posting-Host: telecaster.think.com

In article <1992Sep15.163829.26987@u.washington.edu> donn@carson.u.washington.edu (Donn Cave) writes:
>/etc/services is a useful way to advertise port numbers between programmers
>and system administrators, who otherwise would have no way to reserve a port,
>but whether applications should refer to that file is open to question,
>depending particularly on the system administration context.

Well, it's an unlikely scenario, but suppose someone announces that
starting on October 1, 1992, the standard TELNET port is being changed from
23 to 191.  Having /etc/services (or better yet, an NIS services map) makes
such a conversion much easier than if the port number is hard-coded or
picked up at compile time.

While this is unlikely to happen with an entrenched protocol like TELNET, I
could see it happening with something like authd, given the controversy
between Dan Bernstein and the IETF over which authentication protocol
should be used on the standard port.
-- 
Barry Margolin
System Manager, Thinking Machines Corp.

barmar@think.com          {uunet,harvard}!think!barmar
From: jim@blade (Jim Rump)
Newsgroups: comp.unix.programmer
Subject: Microfield T8C questions ???
Summary: X, driver
Keywords: X, driver
Date: 13 Sep 92 20:58:37 GMT
Organization: MCGV Stack, Eindhoven University of Technology, the Netherlands.
X-Newsreader: Tin 1.1 PL4

Hi all,

I'm a student who has a 19" monitor (Unisys)  with a Microfield T8C video-card.
With this card a MS-windows driver was supplied. 
Since I'm running X386 on a BSD based system I really would like to
use the T8C to operate with X386. The following questions also applies to 
X386 on a Linux based system.
The questions I have are:

* Are there drivers for the Microfield T8C-card for X-windows. If this is
  the case, where can I obtain this and at what price? 

* I know there is a manual for programming the T8C-card. The name is:
  `Microprogrammer's reference manual for the T8C Color Graphics Controller`.
  Where can I get this manual?

* Does anyone know the adress of Microfield or perhaps an e-mail adress?

An other question I have is if someone has allready succesfully used a
19" monitor connected to a 1MB vga-card e.g. a et4000 based one.

Thanks,

Jim (jim@stack.urc.tue.nl)


--
   \_  \_  \_\_  \_ \_   Jim@stack.urc.tue.nl
    \_  \_  \_  \_   \_ 
     \_  \_  \_       \_     
  \_\_    \_  \_       \_    I,m always seeing an opinion.
From: doug@happy.vf.ge.com (Doug Hughes)
Newsgroups: comp.unix.programmer
Subject: Re: Multithreads in SunOS 4.1.2
Date: 10 Sep 92 11:43:15 GMT
Reply-To: doug@happy.vf.ge.com
Followup-To: comp.unix.programmer
Organization: GE Aerospace - VF

In article <1992Sep8.200022@hlrz24.hlrz.kfa-juelich.de>, melin@hlrz24.hlrz.kfa-juelich.de (Stephan Melin) writes:
> I have the following problem:
> I need to write a program that runs multiple processes concurrently, eg.:
> 
> void proc(void);
> 
> void main(void)
> {
>   StartThread(proc);
>   printf("main\n");
>   ... /* some stuff to wait for the other thread */
>   printf("main acknowledged\n");
>   ... /* some stuff to tell the thread to go ahead */
>   printf("end main\n");
> } 
> 
> void proc( void)
> {
>   printf("proc");
>   ... /* send OK to main */
>   ... /* wait for main */ 
>   printf("exit proc\n");
> }
> 
> output should look like this:
> main
> proc
> main acknowledged
> end main / exit proc  (what ever comes first)
> 
> 
> Synchronization, of the processes will be done by semaphores...
> I have already looked at the lwp library, but I don't want to
> mess with this lowlevel stuff (I don't want to write my own
> scheduler). So is there any way to solve this problem in an
> easy way?
> 
> Thanks in advance
> 

Why not just fork off a process and then exec a new process? That
way you can have the two processes running in parallel using the
existing UNIX scheduling algorithms.  Then, all you have to write
is a good producer-consumer relationship (which can be pulled out
of any good OS textbook)
-- 
 ___			|	GE software developer
( / ) _       _,	|	doug@happy.vf.ge.com
_/_/ <_>_/_/_<_>	|	uunet!crdgw1!ge-dab!happy.vf.ge.com!doug
             <_>	|	2B | !2B > The_Question
________________________|______________________________________________________
From: barmar@think.com (Barry Margolin)
Newsgroups: comp.unix.programmer
Subject: Re: writing servers
Date: 9 Sep 1992 08:23:31 GMT
Organization: Thinking Machines Corporation, Cambridge MA, USA
Distribution: usa
NNTP-Posting-Host: gandalf.think.com

In article <1992Sep8.230315.2621@nic.csu.net> vpopesc@opus.uucp (Gov. Wilson Sucks) writes:
>[Hope this doesn't go out in multiplicate. Having posting problems]

There were four copies of the message in the one posting.  Is that what you
meant?

> How can I detect if there is activity for the server to process? I
> would like it to be idle as long as it has nothing to do. But all
> I could do was to put it in an infinite loop. And that made it
> eat up 80% cpu, which is prolly unacceptable.

Use select(2) or poll(2), depending on the flavor of Unix you have, to wait
for activity on any of the sockets.

> 2. Can anyone suggest literature on the subject. All I could find was
>    books that examined the functions taken apart. How about one that
>    says "Ok, here's what goes into writteing a server" ? 

"Unix Network Programming" by W.Richard Stevens.  It has complete examples.
-- 
Barry Margolin
System Manager, Thinking Machines Corp.

barmar@think.com          {uunet,harvard}!think!barmar
Newsgroups: comp.unix.programmer
From: johnw@wixer.cactus.org (john winthrop)
Subject: IO filter skeleton
Organization: Real/Time Communications
Date: Mon, 7 Sep 92 04:27:55 GMT


I need a program skeleton for a filter that would allow me to intercept any
i/o between the user and the program (generally, a shell).. the skeleton
should allow me to process the input and output individually, to do things
such as macro expanding and logging sessions to a file.

Since I am not very experienced with Unix Sys V/386 programming, any examples
or ideas would be welcome.
                          Thanks
-- 
John Winthrop                    | "The only solution is:
johnw@wixer.cactus.org           |  cd /
cactus.org!wixer!johnw           |  rm -rf ."
=================================================================
Xref: sparky comp.unix.programmer:4619 comp.unix.internals:1790 comp.unix.questions:10929
From: wayne@jahangir.UUCP (wayne)
Newsgroups: comp.unix.programmer,comp.unix.internals,comp.unix.questions
Subject: termio novice question
Keywords: termio
Date: 10 Sep 92 21:53:35 GMT
Followup-To: poster
Organization: MDC, NYC





     I wonder if anybody out there can help a novice with
a termio question.  I am using a sun sparc/2 with SunOS 4.1.2

     I want to read a serial line into the serial port on  the back 
of my sun. I want to run the line at 19200, 8 bits, 1 stop bit and no parity.

     Everything seems to work fine except when I try to change 
c_cflag. Then it stops to work. 

     Could anybody please tell me what is wrong with the code fragement
below?


     - Wayne  wayne@mktdata.com

int fd;
struct termios termios;


  if ( ( fd = open( device, O_RDWR ) ) < 0 )
    return -1;


  if ( ioctl( fd, TCGETS, &termios ) < 0 )
    return -1;

termios.c_iflag &= ~( INLCR | ICRNL | IUCLC | ISTRIP | IXON | BRKINT );
termios.c_oflag &= ~OPOST;
termios.c_lflag &= ~( ICANON | ISIG | ECHO );
termios.c_cflag = ( B19200 | CS8 );             /* This doesnt seem to work.  */
termios.c_cc[4] = KN_MIN;
termios.c_cc[5] = KN_TIME;

  if ( ioctl( fd, TCSETS, &termios ) < 0 )
    return -1;

return fd;
Newsgroups: comp.unix.programmer