Init
This commit is contained in:
28
lang/vroot/creat.c
Normal file
28
lang/vroot/creat.c
Normal file
@@ -0,0 +1,28 @@
|
||||
/*LINTLIBRARY*/
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)creat.c 1.1 92/07/30 Copyright 1986 Sun Micro";
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Copyright (c) 1986 by Sun Microsystems, Inc.
|
||||
*/
|
||||
|
||||
#include <vroot.h>
|
||||
#include "args.h"
|
||||
|
||||
static int creat_thunk(path) char *path;
|
||||
{
|
||||
vroot_result= creat(path, vroot_args.creat.mode);
|
||||
return(vroot_result >= 0);
|
||||
}
|
||||
|
||||
int creat_vroot(path, mode, vroot_path, vroot_vroot)
|
||||
char *path;
|
||||
int mode;
|
||||
pathpt vroot_path;
|
||||
pathpt vroot_vroot;
|
||||
{
|
||||
vroot_args.creat.mode= mode;
|
||||
translate_with_thunk(path, creat_thunk, vroot_path, vroot_vroot, rw_write);
|
||||
return(vroot_result);
|
||||
}
|
||||
Reference in New Issue
Block a user