/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1982-2010 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* David Korn <dgk@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
* umask [-S] [mask]
*
* David Korn
* AT&T Labs
* research!dgk
*
*/
#include <ast.h>
#include <sfio.h>
#include <error.h>
#include <ctype.h>
#include <ls.h>
#include <shell.h>
#include "builtins.h"
#ifndef SH_DICT
#endif
{
register char *mask;
{
case 'S':
sflag++;
break;
case ':':
break;
case '?':
break;
}
if(error_info.errors)
{
register int c;
{
while(c = *mask++)
{
if (c>='0' && c<='7')
else
}
}
else
{
if(*cp)
{
}
flag = (~c&0777);
}
}
else
{
if(sflag)
else
}
return(0);
}