# 2.11BSD#431 - /usr/src/lib/libc/compat-43/creat.c

##### Functions

    creat             X

       1: /*
       2:  * Copyright (c) 1989, 1993
       3:  *	The Regents of the University of California.  All rights reserved.
       4:  *
       5:  * Redistribution and use in source and binary forms, with or without
       6:  * modification, are permitted provided that the following conditions
       7:  * are met:
       8:  * 1. Redistributions of source code must retain the above copyright
       9:  *    notice, this list of conditions and the following disclaimer.
      10:  * 2. Redistributions in binary form must reproduce the above copyright
      11:  *    notice, this list of conditions and the following disclaimer in the
      12:  *    documentation and/or other materials provided with the distribution.
      13:  * 3. All advertising materials mentioning features or use of this software
      14:  *    must display the following acknowledgement:
      15:  *	This product includes software developed by the University of
      16:  *	California, Berkeley and its contributors.
      17:  * 4. Neither the name of the University nor the names of its contributors
      18:  *    may be used to endorse or promote products derived from this software
      19:  *    without specific prior written permission.
      20:  *
      21:  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
      22:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
      23:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
      24:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
      25:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
      26:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
      27:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
      28:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
      29:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
      30:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
      31:  * SUCH DAMAGE.
      32:  */
      33:
      34: #if defined(LIBC_SCCS) && !defined(lint)
      35: static char sccsid[] = "@(#)creat.c	8.1.1 (2.11BSD) 1997/8/28";
      36: #endif /* LIBC_SCCS and not lint */
      37:
      38: #include <fcntl.h>
      39:
      40: creat(path, mode)
      41:     char *path;
      42:     mode_t mode;
      43: {
      44:     return(open(path, O_WRONLY|O_CREAT|O_TRUNC, mode));
      45: }

#### Defined functions

creat defined in line 40; used 166 times

- in /usr/ingres/source/access/batch.c line 51
- in /usr/ingres/source/dbu/create.c line 332
- in /usr/ingres/source/dbu/ksort.c line 294
- in /usr/ingres/source/dbu/modify.c line 539, 592-595(2), 977
- in /usr/ingres/source/dbu/resetrel.c line 30
- in /usr/ingres/source/monitor/writeout.c line 32
- in /usr/ingres/source/support/creatdb.c line 502, 1209
- in /usr/ingres/source/support/ingres.c line 1519
- in /usr/ingres/source/support/usersetup.c line 76
- in /usr/src/bin/awk/freeze.c line 10
- in /usr/src/bin/cp.c line 156
- in /usr/src/bin/csh/sh.c line 559
- in /usr/src/bin/csh/sh.dol.c line 575
- in /usr/src/bin/csh/sh.sem.c line 372
- in /usr/src/bin/dd.c line 261
- in /usr/src/bin/diff/diffreg.c line 278
- in /usr/src/bin/ed.c line 327, 564, 928
- in /usr/src/bin/make/dosys.c line 184
- in /usr/src/bin/mv.c line 206
- in /usr/src/bin/sh/io.c line 96
- in /usr/src/bin/tar.c line 737
- in /usr/src/bin/tcsh/sh.c line 1152
- in /usr/src/bin/tcsh/sh.dir.c line 1096
- in /usr/src/bin/tcsh/sh.dol.c line 701
- in /usr/src/bin/tcsh/sh.sem.c line 709
- in /usr/src/bin/tee.c line 51-54(2)
- in /usr/src/bin/tp/tp1.c line 82
- in /usr/src/bin/tp/tp3.c line 235
- in /usr/src/games/adventure/save.c line 31
- in /usr/src/games/backgammon/save.c line 64, 80
- in /usr/src/games/hack/hack.bones.c line 70
- in /usr/src/games/hack/hack.do.c line 133
- in /usr/src/games/hack/hack.save.c line 39, 131
- in /usr/src/games/hack/hack.unix.c line 234
- in /usr/src/games/mille/save.c line 79
- in /usr/src/games/monop/execute.c line 145
- in /usr/src/games/pdp/chess/savres.c line 8
- in /usr/src/games/pdp/ttt.s line 287, 298
- in /usr/src/games/rogue/machdep.c line 509
- in /usr/src/games/trek/dumpgame.c line 54
- in /usr/src/lib/libc/pdp/csu/mon.c line 73
- in /usr/src/local/afio/afio.c line 1627, 1821-1824(2)
- in /usr/src/local/less/main.c line 130
- in /usr/src/new/OLD/apl/src/ay.c line 58
- in /usr/src/new/OLD/apl/src/xed.c line 2814, 3268
- in /usr/src/new/PORT/apl/src/ay.c line 58
- in /usr/src/new/PORT/perl.1.0.0/dump.c line 237
- in /usr/src/new/PORT/perl.1.0.10/dump.c line 237
- in /usr/src/new/PORT/perl.1.0.16/dump.c line 237
- in /usr/src/new/kermit5.188/ckutio.c line 2376
- in /usr/src/new/notes/src/buildnf.c line 179, 189, 203, 222
- in /usr/src/new/notes/src/compress.c line 81-83(3)
- in /usr/src/new/notes/src/misc.c line 278, 351
- in /usr/src/new/notes/src/times.c line 154
- in /usr/src/new/pathalias/makedb.c line 81
- in /usr/src/new/rcs/src/co.c line 426
- in /usr/src/new/rcs/src/rcsfnms.c line 218
- in /usr/src/new/rcs/src/snoop.c line 89
- in /usr/src/new/rn/backpage.c line 25
- in /usr/src/old/512restor.c line 263, 400
- in /usr/src/old/arcv/arcv.c line 59
- in /usr/src/old/cu/cu.c line 594, 879
- in /usr/src/old/dump/dumptape.c line 223
- in /usr/src/old/v6/v6.c line 254
- in /usr/src/sbin/dump/dumptape.c line 330
- in /usr/src/sbin/init/init.c line 151
- in /usr/src/sbin/mkfs/mkfs.c line 120
- in /usr/src/sbin/restor/restor.c line 290
- in /usr/src/sbin/savecore/savecore.c line 416
- in /usr/src/sys/pdpstand/maketape.c line 40
- in /usr/src/ucb/Mail/edit.c line 151
- in /usr/src/ucb/Mail/main.c line 96
- in /usr/src/ucb/Mail/quit.c line 226
- in /usr/src/ucb/Mail/v7.local.c line 65
- in /usr/src/ucb/PORT/pascal/pdx/tree/misc.c line 130
- in /usr/src/ucb/PORT/pascal/src/main.c line 94
- in /usr/src/ucb/PORT/pascal/src/yymain.c line 113
- in /usr/src/ucb/PORT/pascal/utilities/pc.c line 499
- in /usr/src/ucb/PORT/pascal/utilities/pix.c line 58
- in /usr/src/ucb/PORT/pascal/utilities/px_header.c line 60
- in /usr/src/ucb/ex/ex_io.c line 580-582(2)
- in /usr/src/ucb/ex/ex_temp.c line 66, 376
- in /usr/src/ucb/ex/expreserve.c line 233
- in /usr/src/ucb/indent/indent.c line 1073
- in /usr/src/ucb/pascal/pi/main.c line 80
- in /usr/src/ucb/pascal/pi/pix.c line 38
- in /usr/src/ucb/pascal/pi/yymain.c line 102
- in /usr/src/ucb/pascal/px/00int.s line 315
- in /usr/src/ucb/pascal/px/30io.s line 129
- in /usr/src/ucb/pascal/px/putc.s line 14
- in /usr/src/ucb/pascal/pxp/yymain.c line 98
- in /usr/src/ucb/rdist/server.c line 810-812(2)
- in /usr/src/ucb/sendbug/bugfiler.c line 225, 549
- in /usr/src/ucb/tftp/main.c line 404, 417
- in /usr/src/ucb/vacation.c line 383-387(2)
- in /usr/src/usr.bin/find/find.c line 287
- in /usr/src/usr.bin/learn/lrntee.c line 10
- in /usr/src/usr.bin/learn/start.c line 64
- in /usr/src/usr.bin/learn/tee.c line 10
- in /usr/src/usr.bin/patch/dist/util.c line 78, 107
- in /usr/src/usr.bin/patch/inp.c line 92, 224
- in /usr/src/usr.bin/patch/util.c line 78, 107
- in /usr/src/usr.bin/refer/glue4.c line 48
- in /usr/src/usr.bin/roff/common_source/n1.c line 351
- in /usr/src/usr.bin/sort.c line 265
- in /usr/src/usr.bin/tip/cmds.c line 45, 78
- in /usr/src/usr.bin/tip/uucplock.c line 176
- in /usr/src/usr.bin/touch.c line 117
- in /usr/src/usr.bin/uucp/cico.c line 380
- in /usr/src/usr.bin/uucp/cpmv.c line 36
- in /usr/src/usr.bin/uucp/gename.c line 65
- in /usr/src/usr.bin/uucp/ulockf.c line 120-122(2)
- in /usr/src/usr.bin/uucp/uupoll.c line 66
- in /usr/src/usr.bin/uucp/uuxqt.c line 705
- in /usr/src/usr.sbin/lpr/filters/fcvt.c line 37
- in /usr/src/usr.sbin/lpr/filters/railmag.c line 108
- in /usr/src/usr.sbin/lpr/lpr.c line 446
- in /usr/src/usr.sbin/lpr/printjob.c line 505
- in /usr/src/usr.sbin/named/tools/nstest.c line 351
- in /usr/src/usr.sbin/rwhod/rwhod.c line 123
- in /usr/src/usr.sbin/sendmail.MX/aux/newaliases.c line 74, 80
- in /usr/src/usr.sbin/sendmail.MX/src/alias.c line 361, 369
- in /usr/src/usr.sbin/sendmail.MX/src/main.c line 878
- in /usr/src/usr.sbin/sendmail.MX/src/queue.c line 967, 982
- in /usr/src/usr.sbin/sendmail/aux/newaliases.c line 74, 80
- in /usr/src/usr.sbin/sendmail/src/alias.c line 361, 369
- in /usr/src/usr.sbin/sendmail/src/main.c line 882
- in /usr/src/usr.sbin/sendmail/src/queue.c line 954, 969

#### Defined variables

sccsid defined in line 35; never used

Last modified: 1997-08-28 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: ?E00 |