- ep->a_syms = nsym2 * sizeof(NLIST);
-
- /* Write out the header. */
- if (lseek(fd, 0L, SEEK_SET) == -1 ||
- write(fd, ep, sizeof(EXEC)) != sizeof(EXEC))
- goto syserr;
-
- /* Write out the symbol table. */
- if (lseek(fd, N_SYMOFF(*ep), SEEK_SET) == -1 ||
- write(fd, bsym2, ep->a_syms) != ep->a_syms)
- goto syserr;