[Simh] SUA + Windows 7....

Jason Stevens neozeed at gmail.com
Tue Oct 27 09:53:12 EDT 2009


Oh sorry ,it's the Services For Unix & Subsystem for UNIX-based
Applications....

http://en.wikipedia.org/wiki/Microsoft_Windows_Services_for_UNIX

<http://en.wikipedia.org/wiki/Microsoft_Windows_Services_for_UNIX>Basically
Microsoft bought out Interix a while back, and it's a replacement for the
brain dead POSIX subsystem on Windows NT... SFU (the older one) will install
on Windows 2000, XP & 2003, while SUA is for 2003 R2, Vista, 2008, Windows 7
& 2008 R2...

It is faster then cygwin as it's a subsystem, not a stacked DLL...  It share
more in common with OpenBSD/NetBSD then anything else, but if you are on
windows it's worth playing with....

You can download SFU 3. 5 here:
http://www.microsoft.com/downloads/details.aspx?FamilyID=896c9688-601b-44f1-81a4-02878ff11778&displaylang=en

<http://www.microsoft.com/downloads/details.aspx?FamilyID=896c9688-601b-44f1-81a4-02878ff11778&displaylang=en>While
SUA on the OS's that support it, you have to activate the "Subsystem for
UNIX-based Applications" in the control panel's "Turn Windows features on or
off"...

One of these days I'm going to have to try it's Visual Studio integration...

On Tue, Oct 27, 2009 at 9:47 AM, Hittner, David T (IS) <
david.hittner at ngc.com> wrote:

>  What is SFU/SUA, for those of us who are ignorant of the acronym?
>
>
>
> Dave
>
>
>
> *From:* simh-bounces at trailing-edge.com [mailto:
> simh-bounces at trailing-edge.com] *On Behalf Of *Jason Stevens
> *Sent:* Tuesday, October 27, 2009 9:23 AM
> *To:* simh at trailing-edge.com
> *Subject:* [Simh] SUA + Windows 7....
>
>
>
> I don't know if there is anyone else that uses SFU/SUA... But I thought I'd
> share some tweaks to get SIMH to compile & run...
>
>
>
> In sim_timer.c the lines:
>
> (void) nanosleep (&treq, NULL);
>
>
>
> will fail as SUA/SFU don't have nanosleep, however you can replace it with
> usleep and it'll work... I use this:
>
> (void) usleep (milliseconds*1000);
>
>
>
> And for some reason some time structures don't get defined so above the
> defintion of uint32 sim_os_msec  to satisfy  'foo', simply place in:
>
> struct timezone {
>
>         int                             tz_minuteswest;
>
>         int                             tz_dsttime;
>
> };
>
>
>
> And above the definition of uint32 sim_os_ms_sleep_init (void) I placed in:
>
>
>
> struct timespec {
>
>         time_t  tv_sec;         /* seconds */
>
>         long    tv_nsec;        /* nanoseconds */
>
> };
>
>
>
>
>
> In the file sim_sock.c the line:
>
> timerclear (&tz);
>
>
>
> will fail as there is no timerclear... So I just replaced it with the
> following:
>
> memset(&tz,0x0,sizeof(tz));
>
>
>
>
>
>
>
> I then downloaded & build gnu make 3.81 and I've confirmed that 32v will
> load on the VAX11/780 emulator and it will idle 'correctly'......
>
>
>
> Although I'm using a x64 system, the default GCC is 32bit.... but I don't
> think that matters that much...
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.trailing-edge.com/pipermail/simh/attachments/20091027/7927c099/attachment-0003.html>


More information about the Simh mailing list