home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / amiga / programm / 13190 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.7 KB

  1. Path: sparky!uunet!decwrl!contessa!mwm
  2. From: mwm@contessa.palo-alto.ca.us (Mike Meyer)
  3. Subject: Re: umask() function
  4. Newsgroups: comp.sys.amiga.programmer
  5. Distribution: world
  6. References: <paulk.1a3y@terapin.com>
  7. X-NewsSoftware: Amiga Yarn 3.4, 1992/08/12 15:49:52
  8. Keywords: 
  9. Summary: 
  10. Message-ID: <mwm.1s5h@contessa.palo-alto.ca.us>
  11. Date: 3 Sep 92 23:54:40 PST
  12. Organization: Missionaria Phonibalonica
  13. Lines: 34
  14.  
  15. In <paulk.1a3y@terapin.com>, paulk@terapin.com (Paul Kienitz) wrote:
  16. > Could somebody tell me the purpose of the umask() function?
  17. > I think it's unix.
  18.  
  19. Correct, it's unix. It is used to specify bits that should never bet
  20. set in a files protection bits when files are created.
  21.  
  22. >  Is it cool to implement it on the Amiga as
  23. > int umask(int foo)  { return 0; }
  24. > ?
  25.  
  26. Yes. It's mostly used to control things that aren't there on the
  27. Amiga. The worst that will happen is your program will launch a child
  28. that will create a file with one of rwd that it wanted on on, but
  29. which your program wanted off.
  30.  
  31. > Another question.  Could somebody tell me the meaning of the following command
  32. > line arguments for Lattice C:
  33. >   -O -v -m0t -cuaisfr -rr
  34.  
  35. -O is optimize. -v disables stack checking. -m0t says to generate
  36. 68000 code, optimized for time (this is the default for the compiler).
  37. -rr causes it to use registerized paramenters.
  38.  
  39. -c sets: u: make chars unsigned by default; a: do ANSI compatibility
  40. checking; i: only include a file once, even if the program tries to
  41. include it more again (i.e. - let me write buggy code); s: merge
  42. identical strings (ANSI says strings are constants, so this is safe);
  43. f: require function prototypes; r: disallow __asm keywords on function
  44. definitions.
  45.  
  46.     <mike
  47.  
  48.