1
0

Source code upload

This commit is contained in:
calmsacibis995
2022-09-29 17:59:04 +03:00
parent 72fa9da3d7
commit 8fc8fa8089
33399 changed files with 11964078 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
#ident "$Revision: 1.3 $"
include $(ROOT)/usr/include/make/commondefs
TARGETS=unlink
default:$(TARGETS)
include $(COMMONRULES)
install: default
${INSTALL} -F /usr/sbin $(TARGETS)
$(INSTALL) -F /etc -lns ../usr/sbin/$(TARGETS) $(TARGETS)
+30
View File
@@ -0,0 +1,30 @@
/* Copyright (c) 1984 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
/* #ident "@(#)unlink:unlink.c 1.2" */
#ident "$Header: /proj/irix6.5.7m/isms/eoe/cmd/unlink/RCS/unlink.c,v 1.3 1992/04/27 12:22:39 wtk Exp $"
/***************************************************************************
* Command: unlink
* Inheritable Privileges: P_MACREAD,P_DACREAD,P_MACWRITE,P_DACWRITE,
* P_FILESYS,P_COMPAT
* Fixed Privileges: None
* Notes: This command calls the unlink(2) system call directly.
* The privileges passed to command are only used by unlink(2).
*
***************************************************************************/
main(argc, argv)
int argc;
char *argv[];
{
if(argc!=2) {
write(2, "Usage: /usr/sbin/unlink name\n", 29);
exit(1);
}
exit((unlink(argv[1]) == 0) ? 0 : 1);
}