HomeSort by: relevance | last modified time | path
    Searched defs:ofd (Results 1 - 25 of 29) sorted by relevancy

1 2

  /src/sys/arch/ews4800mips/stand/common/
inckern.c 41 FILE *ifd, *ofd; local in function:main
48 ofd = stdout;
63 if ((optarg == 0) || (ofd = fopen(optarg, "w")) == 0)
69 fprintf(ofd, "#include <lib/libsa/stand.h>\n");
70 fprintf(ofd, "#include <lib/libkern/libkern.h>\n");
71 fprintf(ofd, "#include \"local.h\"\n");
72 fprintf(ofd, "uint8_t kernel_binary[");
74 fprintf(ofd, "%d];\n", total);
75 fprintf(ofd, "int kernel_binary_size = %d;\n", total);
77 fprintf(ofd, "] = {\n\t")
    [all...]
  /src/tests/lib/libc/c063/
t_renameat.c 61 int ofd, nfd, fd; local in function:ATF_TC_BODY
71 ATF_REQUIRE((ofd = open(ODIR, O_RDONLY, 0)) != -1);
73 ATF_REQUIRE(renameat(ofd, BASEFILE, nfd, BASETARGET) == 0);
74 ATF_REQUIRE(close(ofd) == 0);
t_linkat.c 63 int ofd, nfd, fd; local in function:ATF_TC_BODY
71 ATF_REQUIRE((ofd = open(ODIR, O_RDONLY, 0)) != -1);
73 ATF_REQUIRE(linkat(ofd, BASEFILE, nfd, BASETARGET, 0) == 0);
74 ATF_REQUIRE(close(ofd) == 0);
149 int ofd, nfd, fd; local in function:ATF_TC_BODY
158 ATF_REQUIRE((ofd = open(ODIR, O_RDONLY, 0)) != -1);
160 ATF_REQUIRE(linkat(ofd, BASELINK, nfd, BASETARGET,
162 ATF_REQUIRE(close(ofd) == 0);
182 int ofd, nfd, fd; local in function:ATF_TC_BODY
191 ATF_REQUIRE((ofd = open(ODIR, O_RDONLY, 0)) != -1)
    [all...]
  /src/games/hack/
hack.save.c 101 int fd, ofd; local in function:dosave0
136 if ((ofd = open(lock, O_RDONLY)) < 0) {
145 getlev(ofd, hackpid, tmp);
146 (void) close(ofd);
  /src/sys/arch/macppc/stand/mkboothfs/
mkboothfs.c 69 int ofd; local in function:main
84 if ((ofd = open(boothfs, O_CREAT | O_TRUNC | O_WRONLY, 0644)) == -1)
101 write(ofd, buf, BSIZE);
122 write(ofd, buf, BSIZE);
132 write(ofd, buf, BSIZE);
138 write(ofd, buf, BSIZE);
144 write(ofd, buf, MACPPC_BOOT_BLOCK_MAX_SIZE);
151 if (write(ofd, buf, BOOTDATASIZE) != BOOTDATASIZE)
155 close(ofd);
  /src/sys/arch/pmax/stand/smallnet/setnetimage/
setnetimage.c 79 int ifd, ofd, i, nsegs; local in function:main
102 if ((ofd = open(bootfile, O_RDWR)) < 0)
108 if (fstat(ofd, &osb) == -1)
114 MAP_FILE | MAP_SHARED, ofd, 0)) == (void *)-1)
211 close(ofd);
  /src/usr.bin/split/
split.c 60 static int ifd = STDIN_FILENO, ofd = -1; /* Input/output file descriptors. */ variable in typeref:typename:int
206 if (bigwrite(ofd, bfr, dist) != (size_t)dist)
217 if (bigwrite(ofd,
227 if (bigwrite(ofd, C, len) != (size_t)len)
235 if (bigwrite(ofd, bfr, len) != (size_t)len)
270 if (bigwrite(ofd, Cs, bcnt) != (size_t)bcnt)
281 if (bigwrite(ofd, Cs, bcnt) != (size_t)bcnt)
321 if (ofd == -1) {
324 } else if (close(ofd) != 0)
367 if ((ofd = open(fname, O_WRONLY | O_CREAT | O_TRUNC, DEFFILEMODE)) < 0
    [all...]
  /src/sys/arch/amiga/stand/bootblock/elf2bb/
elf2bb.c 94 int ifd, ofd; local in function:main
460 ofd = open(argv[1], O_CREAT|O_WRONLY, 0644);
461 if (ofd < 0)
464 if (write(ofd, buffer, bbsize) != bbsize)
  /src/lib/libedit/
refresh.c 544 wchar_t *ofd, *ols, *oe, *nfd, *nls, *ne; local in function:re_update_line
554 ofd = o;
566 while (ofd < o) {
589 if (*ofd == '\0' && *nfd == '\0') {
596 while ((o > ofd) && (n > nfd) && (*--o == *--n))
610 * case 1: insert: scan from nfd to nls looking for *ofd
612 if (*ofd) {
613 for (c = *ofd, n = nfd; n < nls; n++) {
615 for (o = ofd, p = n;
627 osb = ofd;
    [all...]
  /src/tests/lib/libc/db/
h_db.c 93 static int ofd = STDOUT_FILENO; /* Standard output fd. */ variable in typeref:typename:int
128 if ((ofd = open(optarg,
187 if (ofd == STDOUT_FILENO && (t = strchr(p, '\n')) != NULL)
207 if (write(ofd, p + 1, len - 1) != (ssize_t)len - 1 ||
208 write(ofd, "\n", 1) != 1)
344 (void)close(ofd);
376 (void)write(ofd, data.data, data.size);
377 if (ofd == STDOUT_FILENO)
378 (void)write(ofd, "\n", 1);
385 if (ofd != STDOUT_FILENO
    [all...]
  /src/usr.bin/gencat/
gencat.c 150 int ofd, ifd; local in function:main
173 ofd = STDOUT_FILENO;
175 ofd = open(catfile, O_WRONLY | O_CREAT | O_EXCL, 0666);
176 if (ofd < 0) {
178 if ((ofd = open(catfile, O_RDWR)) < 0) {
188 MCReadCat(ofd);
189 if (lseek(ofd, (off_t)0, SEEK_SET) == (off_t)-1) {
213 if (ftruncate(ofd, 0) != 0) {
219 MCWriteCat(ofd);
  /src/usr.bin/sdiff/
sdiff.c 100 int ifd, ofd; local in function:mktmpcpy
125 if ((ofd = mkstemp(target_file)) == -1) {
133 wcount = write(ofd, buf, (size_t)rcount);
145 close(ofd);
  /src/sys/dev/isa/
fd.c 1103 struct fd_softc *ofd = fdc->sc_fd[fd->sc_drive ^ 1]; local in function:fdcintr1
1104 if (ofd && ofd->sc_flags & FD_MOTOR) {
1105 callout_stop(&ofd->sc_motoroff_ch);
1106 ofd->sc_flags &= ~(FD_MOTOR | FD_MOTOR_WAIT);
  /src/bin/rcp/
rcp.c 493 int exists, first, ofd; local in function:sink
650 if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
655 if ((bp = allocbuf(&buffer, ofd, BUFSIZ)) == NULL) {
656 (void)close(ofd);
691 result = write(ofd, cp, resid);
700 if (ftruncate(ofd, size))
705 if (fchmod(ofd, omode))
709 if (fchmod(ofd, omode & ~mask))
715 if (futimes(ofd, tv) < 0)
719 (void)close(ofd);
    [all...]
  /src/sys/arch/arc/jazz/
fd.c 821 struct fd_softc *ofd = fdc->sc_fd[fd->sc_drive ^ 1]; local in function:fdcintr
822 if (ofd && ofd->sc_flags & FD_MOTOR) {
823 callout_stop(&ofd->sc_motoroff_ch);
824 ofd->sc_flags &= ~(FD_MOTOR | FD_MOTOR_WAIT);
  /src/usr.bin/xlint/xlint/
xlint.c 525 int ifd, ofd; local in function:cat
529 if ((ofd = open(dest, O_WRONLY | O_CREAT | O_TRUNC, 0666)) == -1) {
545 if (write(ofd, buf, (size_t)rlen) != rlen) {
552 (void)close(ofd);
  /src/usr.bin/mail/
mime_attach.c 398 int ofd; local in function:content_type_by_fileno
402 ofd = dup(0); /* save stdin */
408 if (dup2(ofd, 0) == -1) /* restore stdin */
410 (void)close(ofd); /* close the copy */
  /src/sys/net/
if_gre.c 1006 int fd, ofd, rc; local in function:gre_fp_recv
1010 ofd = sc->sc_fd;
1028 if (ofd != -1 && fd_getfile(ofd) != NULL)
1029 fd_close(ofd);
  /src/sbin/savecore/
savecore.c 647 int bounds, ifd, nr, nw, ofd, tryksyms; local in function:save_core
651 ofd = -1;
684 ofd = Create(path, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
685 fp = fdopen(ofd, "w");
762 ofd = Create(path, S_IRUSR | S_IWUSR);
763 fp = fdopen(ofd, "w");
  /src/usr.bin/unifdef/
unifdef.c 353 int ofd; local in function:main
357 if ((ofd = mkstemp(tmpname)) != -1)
358 output = fdopen(ofd, "w+");
361 fchmod(ofd, isb.st_mode & ACCESSPERMS);
  /src/usr.sbin/lpr/lpd/
printjob.c 99 static int ofd; /* output filter file descriptor */ variable in typeref:typename:int
312 (void)write(ofd, FF, strlen(FF));
314 (void)write(ofd, TR, strlen(TR));
561 (void)write(ofd, FF, strlen(FF));
567 if (write(ofd, buf, n) != n) {
584 fo = ofd;
716 write(ofd, "\031\1", 2);
1019 (void)write(ofd, FF, strlen(FF));
1022 (void)write(ofd, class, strlen(class));
1023 (void)write(ofd, ":", 1)
    [all...]
  /src/sys/arch/atari/dev/
hdfd.c 994 struct fd_softc *ofd = fdc->sc_fd[fd->sc_drive ^ 1]; local in function:fdcintr
995 if (ofd && ofd->sc_flags & FD_MOTOR) {
996 callout_stop(&ofd->sc_motoroff_ch);
997 ofd->sc_flags &= ~(FD_MOTOR | FD_MOTOR_WAIT);
  /src/sys/arch/acorn32/mainbus/
fd.c 958 struct fd_softc *ofd = fdc->sc_fd[fd->sc_drive ^ 1]; local in function:fdcintr
959 if (ofd && ofd->sc_flags & FD_MOTOR) {
960 callout_stop(&ofd->sc_motoroff_ch);
961 ofd->sc_flags &= ~(FD_MOTOR | FD_MOTOR_WAIT);
  /src/sys/arch/sparc64/dev/
fdc.c 1673 struct fd_softc *ofd = fdc->sc_fd[fd->sc_drive ^ 1]; local in function:fdcstate
1674 if (ofd && ofd->sc_flags & FD_MOTOR) {
1675 callout_stop(&ofd->sc_motoroff_ch);
1676 ofd->sc_flags &= ~(FD_MOTOR | FD_MOTOR_WAIT);
  /src/sys/arch/sparc/dev/
fd.c 1490 struct fd_softc *ofd = fdc->sc_fd[fd->sc_drive ^ 1]; local in function:fdcstate
1491 if (ofd && ofd->sc_flags & FD_MOTOR) {
1492 callout_stop(&ofd->sc_motoroff_ch);
1493 ofd->sc_flags &= ~(FD_MOTOR | FD_MOTOR_WAIT);

Completed in 45 milliseconds

1 2