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