Lines Matching refs:bones
1 /* $NetBSD: hack.bones.c,v 1.9 2011/07/20 07:04:30 dholland Exp $ */
66 __RCSID("$NetBSD: hack.bones.c,v 1.9 2011/07/20 07:04:30 dholland Exp $");
74 static char bones[] = "bones_xx";
76 /* save bones and possessions of a deceased adventurer */
89 bones[6] = '0' + (dlevel / 10);
90 bones[7] = '0' + (dlevel % 10);
91 if ((fd = open(bones, O_RDONLY)) >= 0) {
143 if ((fd = creat(bones, FMASK)) < 0)
155 return (0); /* only once in three times do we find bones */
156 bones[6] = '0' + dlevel / 10;
157 bones[7] = '0' + dlevel % 10;
158 if ((fd = open(bones, O_RDONLY)) < 0)
168 if (!wizard) /* duvel!frans: don't remove bones while
171 if (unlink(bones) < 0) {
172 pline("Cannot unlink %s .", bones);