Lines Matching defs:trap
82 static void savetrapchn(int, struct trap *);
196 savetrapchn(int fd, struct trap *trap)
198 struct trap *trap2;
199 while (trap) {
200 trap2 = trap->ntrap;
201 bwrite(fd, trap, sizeof(struct trap));
202 free(trap);
203 trap = trap2;
205 bwrite(fd, nul, sizeof(struct trap));
212 struct trap *trap;
277 trap = newtrap();
278 mread(fd, trap, sizeof(struct trap));
279 while (trap->tx) {
280 trap->ntrap = ftrap;
281 ftrap = trap;
282 trap = newtrap();
283 mread(fd, trap, sizeof(struct trap));
285 free(trap);