LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-12-2003, 03:34 AM   #1
u4u
LQ Newbie
 
Registered: Aug 2003
Location: Pune (india)
Posts: 15

Rep: Reputation: 0
Unhappy what is unix emulator to interact with windows client machine?


hey friends, i have registered to this site first time.
well i want to start project on unix emulator.
the main objective is : unix server and windows clients.
then provide printing facilities to all windows clients using TCP/IP protocol.

so please give me basic information about unix emulator.
what is it?
how it works?
architecture?



uma
 
Old 08-12-2003, 03:52 AM   #2
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Rep: Reputation: 48
you want to write a unix emulator to run on a windows box to serve windows clients with printing services?

You won't be able to write en emulator that runs on windows, it's as simple as that. There are too many aspects of unix are handled differently in windows... device access, memory protection etc...

What you could do is write something that translates unix function calls to their windows equivalents. Someone has already done this though... it's called CygWin.

Maybe I'm misunderstanding your question though... can you provide more detail?
 
Old 08-12-2003, 04:21 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Is this a joke? you want to write an "emulator" without any idea of how unix works in the slightest???? I'd wonder if you're even really aware of what an emulator actually is...
 
Old 08-12-2003, 05:28 AM   #4
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Rep: Reputation: 48
Designing and writing an emulator for unix is no small undertaking. In order to even begin, you must familiarise yourself with the entire kernel. I've read some of it, but we're talking about 26MB of code here... it'll take you a year and then some to read it and even begin to understand it.
Then you'd have to contend with the fact that the only OS that will successfully host a unix emulator is unix.
I'll be honest... I've been a system programmer for a long time (~13 years) and I wouldn't even consider attempting something like this.
 
Old 08-12-2003, 08:17 AM   #5
DIYLinux
Member
 
Registered: Jul 2003
Location: NL
Distribution: My own
Posts: 92

Rep: Reputation: 18
Windows/Unix printer sharing. How about Samba.
 
Old 08-14-2003, 06:11 AM   #6
u4u
LQ Newbie
 
Registered: Aug 2003
Location: Pune (india)
Posts: 15

Original Poster
Rep: Reputation: 0
hello,DIYLinux
thanks for ur reply.But my friend i have to design the emulator and hence i want some required information that's how other emulator works for the same job

Thanking you,
u4u
 
Old 08-14-2003, 06:15 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Like we've said, writing a UNIX emulator is a VERY hard and VERY complex thing.... there's no way we can possibly tell you how tyo make one, not least because we don't know.
 
Old 08-14-2003, 07:02 AM   #8
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 47
Maybe you're looking to do something like this:

http://www.cygwin.com/

Good luck....
 
Old 08-14-2003, 07:16 AM   #9
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Rep: Reputation: 48
Basically what an emulator does is act as a translator for system calls.
Picture the following situation:
unix program running on an emulator on windows wants to read from the hard drive. It calls the relevant function in the unix kernel. The kernel then attempts to access the relevant piece of hardware. This access is instead directed to the emulator. The emulator then converts this to a windows call and passes it to the windows kernel (which probably crashes ) which does the access and then the return value gets passed back through the same sequence (except in reverse).
In order for this to happen, the emulator must transparently intercept all calls and handle them legally. This would require examining the unix kernel and handling every possible call with either a windows equivalent or a fake event.
CygWin is not really en emulator, more of a Windows library for running specially written Win32/Unix programs. You can't just get a linux/unix binary and expect CygWin to handle it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unix korn shell script that interact with windows java program ann124 Programming 5 11-09-2004 09:14 PM
Unix scripts to interact with Windows NT ann124 Solaris / OpenSolaris 1 11-09-2004 04:55 PM
Mounting a share on a Windows Client Machine broadsoft Linux - Networking 4 08-05-2003 05:32 PM
Try to found Unix emulator for Windows ? pixelV General 1 12-27-2002 05:34 PM
Windows 98 emulator for UNIX Colonel Panic Linux - General 3 08-31-2001 09:37 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration