home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / linux / 6825 < prev    next >
Encoding:
Internet Message Format  |  1992-07-27  |  2.8 KB

  1. Path: sparky!uunet!usc!sdd.hp.com!uakari.primate.wisc.edu!ames!agate!boulder!juliet!drew
  2. From: drew@juliet.cs.colorado.edu (Drew Eckhardt)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: Graphics library and mouse support in GCC ?
  5. Keywords: Graphics GCC
  6. Message-ID: <1992Jul28.030054.6678@colorado.edu>
  7. Date: 28 Jul 92 03:00:54 GMT
  8. References: <bibhas.712287107@femto.engr.mun.ca>
  9. Sender: news@colorado.edu (The Daily Planet)
  10. Organization: University of Colorado at Boulder
  11. Lines: 49
  12. Nntp-Posting-Host: juliet.cs.colorado.edu
  13.  
  14. In article <bibhas.712287107@femto.engr.mun.ca> bibhas@pico.engr.mun.ca (Bibhas Bhattacharya) writes:
  15. >I will be very much interested to know the graphics library and mouse
  16. >support with GCC. What could be the equivalent of the QUICK C interrupt
  17.  
  18. A vgalib is available from the FTP sites that supports VGA/SVGA graphics under
  19. Linux.  You can also use X (if you have suitable hardware) and any of the 
  20. X libraries.  MGR is available too. 
  21.  
  22. As far as mouse support, one of the windowing systems will handle that for
  23. you, otherwise your on your own.  The code in the selection package, or 
  24. MGR will show you how to digest the packets from the mouse.
  25.  
  26. >caller function int86() and others.
  27.  
  28. There is none.  The DOS/BIOS model is completely different from the Unix 
  29. paradigm.  All system calls are interfaced by name through library 
  30. routines. You want to write to a device, call write(2).  You want to do 
  31. non-blocking I/O, use select(2).  Anything in section 2 of the manual is a 
  32. syscall, and is analogous to DOS/BIOS intXX's.  
  33.  
  34. If you were persistant, you could bypass the library interface and 
  35. use the native syscall mechanism, but this would be messy and non
  36. portable.
  37.  
  38. Every Unix understands read(), nobody else will understand the int 0x80 
  39. Linux uses for the syscall interface, or the call gates that other i386 
  40. Unices may use.
  41.   
  42. You cannot call BIOS routines from protected mode, and without DOS running,
  43. you can't make any DOS calls.
  44.  
  45. If you want to program under Linux, the GCC libraries are ANSI C, plus
  46. a standard Unix unistd lib that is a hybrid of BSD/SYSV/POSIX.  Libc, libm,
  47. and friends will be documented in any 'C' programming book, a Unix programming
  48. book will cover the unix specific syscalls.
  49.  
  50. Also, assorted libraries like dbm, and crypt are available.
  51.  
  52. There are inumerable books on programming X11 on levels ranging from
  53. raw xlib or xt, to the Widget sets and C++ class libraries.
  54.  
  55. MGR has man pages, as far as the Linux specific things like vgalib,
  56. some documentation is there, but you're pretty much on your own.  
  57.  
  58. Linux was developed by hacker types
  59. for hackertypes.  Hackers write in  awk, yacc, and even machine code  
  60. (hexadecimal when necessary), not english, so the source code is the 
  61. documentation, and something readable to mortals is not always readily 
  62. available.
  63.