/freebsd-9.3-release/tools/regression/file/dup/ |
H A D | dup.c | 64 int orgfd, fd1, fd2, test = 0; local 71 if ((fd1 = dup(orgfd)) < 0) 76 if (fcntl(fd1, F_SETFD, 1) != 0) 80 if ((fd2 = dup2(fd1, fd1 + 1)) < 0) 86 if (fd2 != fd1 + 1) 126 if ((fd2 = dup2(fd1, fd1)) < 0) 132 if (fd2 != fd1) 147 if ((fd2 = fcntl(fd1, F_DUPF [all...] |
/freebsd-9.3-release/contrib/binutils/libiberty/ |
H A D | fdmatch.c | 23 @deftypefn Extension int fdmatch (int @var{fd1}, int @var{fd2}) 52 int fdmatch (int fd1, int fd2) argument 57 if ((fstat (fd1, &sbuf1) == 0) &&
|
/freebsd-9.3-release/contrib/gcclibs/libiberty/ |
H A D | fdmatch.c | 23 @deftypefn Extension int fdmatch (int @var{fd1}, int @var{fd2}) 52 int fdmatch (int fd1, int fd2) argument 57 if ((fstat (fd1, &sbuf1) == 0) &&
|
/freebsd-9.3-release/tools/regression/lib/libutil/ |
H A D | test-flopen.c | 99 int fd1, fd2; local 102 fd1 = flopen(fn, O_RDWR|O_CREAT, 0640); 103 if (fd1 < 0) { 111 close(fd1); 125 volatile int fd1, fd2; local 128 fd1 = flopen(fn, O_RDWR|O_CREAT, 0640); 129 if (fd1 < 0) { 142 close(fd1); 157 volatile int fd1, fd2; local 160 fd1 [all...] |
/freebsd-9.3-release/tools/regression/fifo/fifo_misc/ |
H A D | fifo_misc.c | 70 cleanfifo(const char *fifoname, int fd1, int fd2) argument 73 if (fd1 != -1) 74 close(fd1); 84 int error, fd1, fd2; local 86 fd1 = open(fifoname, O_RDONLY | O_NONBLOCK); 87 if (fd1 < 0) 92 close(fd1); 96 *reader_fdp = fd1;
|
/freebsd-9.3-release/usr.sbin/boot98cfg/ |
H A D | boot98cfg.c | 101 int fd1; local 162 fd1 = open(iplbakpath, O_WRONLY | O_CREAT | O_TRUNC, 0666); 163 if (fd1 < 0) 165 n = write(fd1, boot0buf, IPLSIZE); 170 close(fd1); 174 fd1 = open(menubakpath, O_WRONLY | O_CREAT | O_TRUNC, 0666); 175 if (fd1 < 0) 177 n = write(fd1, boot0buf + BOOTMENUOFF, BOOTMENUSIZE); 182 close(fd1); 187 fd1 [all...] |
/freebsd-9.3-release/usr.bin/cmp/ |
H A D | cmp.c | 67 int ch, fd1, fd2, oflag, special; local 107 fd1 = 0; 110 else if ((fd1 = open(file1, oflag, 0)) < 0 && errno != EMLINK) { 134 if (fd1 == -1) { 150 if (fstat(fd1, &sb1)) { 171 c_special(fd1, file1, skip1, fd2, file2, skip2); 179 c_regular(fd1, file1, skip1, sb1.st_size,
|
H A D | special.c | 48 c_special(int fd1, const char *file1, off_t skip1, argument 56 if ((fp1 = fdopen(fd1, "r")) == NULL)
|
H A D | regular.c | 59 c_regular(int fd1, const char *file1, off_t skip1, off_t len1, argument 92 if ((m1 = remmap(NULL, fd1, off1)) == NULL) { 93 c_special(fd1, file1, skip1, fd2, file2, skip2); 99 c_special(fd1, file1, skip1, fd2, file2, skip2); 127 if ((p1 = m1 = remmap(m1, fd1, off1)) == NULL) {
|
/freebsd-9.3-release/tools/tools/netrate/juggle/ |
H A D | juggle.c | 77 * Number of message cycles -- into fd1, out of fd2, into fd2, and out of 78 * fd1. By counting in cycles, we allow the master thread or process to 248 juggle(int fd1, int fd2, int pipeline) argument 259 if (message_send(fd1) < 0) 260 err(-1, "message_send fd1"); 272 if (message_recv(fd1) < 0) 273 err(-1, "message_recv fd1"); 330 thread_juggle(int fd1, int fd2, int pipeline) argument 360 if (message_send(fd1) < 0) 361 err(-1, "message_send fd1"); 389 process_juggle(int fd1, int fd2, int pipeline) argument 498 int fd1, fd2, i, j, p; local [all...] |
/freebsd-9.3-release/tools/regression/sockets/socketpair/ |
H A D | socketpair.c | 52 int fd1, fd2, fd3; local 130 fd1 = dup(STDIN_FILENO); 132 if (fd2 != fd1 + 1) {
|
/freebsd-9.3-release/tools/regression/sockets/accept_fd_leak/ |
H A D | accept_fd_leak.c | 67 int fd1, fd2, fd3, i, s; local 75 fd1 = dup(STDIN_FILENO); 77 if (fd2 != fd1 + 1) 122 printf("not ok 1 - (%d, %d, %d)\n", fd1, fd2, fd3); 192 printf("not ok 2 - (%d, %d, %d)\n", fd1, fd2, fd3);
|
/freebsd-9.3-release/contrib/ntp/sntp/libevent/test/ |
H A D | regress_listener.c | 81 evutil_socket_t fd1 = -1, fd2 = -1, fd3 = -1; local 117 fd1 = fd2 = fd3 = -1; 118 evutil_socket_connect_(&fd1, (struct sockaddr*)&ss1, slen1); 131 if (fd1>=0) 132 EVUTIL_CLOSESOCKET(fd1);
|
/freebsd-9.3-release/tools/test/upsdl/ |
H A D | upsdl.c | 39 int mapBuffer(char** bufferp,int fd1,int fd2); 97 /* mmap a 2 page buffer - first page is from fd1, second page from fd2 */ 98 int mapBuffer(char** bufferp,int fd1,int fd2) argument 103 addr = mmap(NULL,pagesize*2, PROT_READ | PROT_WRITE , MAP_SHARED, fd1, 0);
|
/freebsd-9.3-release/usr.sbin/ctm/mkCTM/ |
H A D | mkctm.c | 159 int fd1, fd2; local 165 fd1 = open(buf1, O_RDONLY); 166 if(fd1 < 0) { err(3, "%s", buf1); } 167 fstat(fd1, &s1); 179 close(fd1); 184 p1=mmap(0, s1.st_size, PROT_READ, MAP_PRIVATE, fd1, 0); 186 close(fd1); 320 int fd1; local 325 fd1 = open(buf2, O_RDONLY); 326 if (fd1 < [all...] |
/freebsd-9.3-release/tools/regression/sockets/unix_cmsg/ |
H A D | unix_cmsg.c | 438 int fd1, fd2; local 453 fd1 = sync_fd[SYNC_SERVER][SYNC_RECV]; 456 fd1 = sync_fd[SYNC_SERVER][SYNC_SEND]; 459 if (close(fd1) < 0 || close(fd2) < 0) { 1298 t_cmsgcred_server(int fd1) argument 1322 fd2 = socket_accept(fd1); 1326 fd2 = fd1; 1391 t_sockcred_server(int type, int fd1) argument 1414 if (setsockopt(fd1, 0, LOCAL_CREDS, &val, sizeof(val)) < 0) { 1424 fd2 = socket_accept(fd1); 1537 t_cmsgcred_sockcred_server(int fd1) argument 1656 t_timeval_server(int fd1) argument 1755 t_bintime_server(int fd1) argument 1875 t_cmsg_len_server(int fd1) argument 1933 t_peercred_server(int fd1) argument [all...] |
/freebsd-9.3-release/tools/regression/sockets/zerosend/ |
H A D | zerosend.c | 213 int fd1, fd2; local 222 fd1 = open(path, O_RDONLY | O_NONBLOCK); 223 if (fd1 < 0) 231 fdp[1] = fd1;
|
/freebsd-9.3-release/tools/regression/sockets/unix_gc/ |
H A D | unix_gc.c | 118 close2(int fd1, int fd2) argument 121 close(fd1); 126 close3(int fd1, int fd2, int fd3) argument 129 close2(fd1, fd2); 134 close4(int fd1, int fd2, int fd3, int fd4) argument 137 close2(fd1, fd2); 142 close5(int fd1, int fd2, int fd3, int fd4, int fd5) argument 145 close3(fd1, fd2, fd3);
|
/freebsd-9.3-release/usr.bin/mail/ |
H A D | popen.c | 101 int myside, hisside, fd0, fd1; local 113 hisside = fd1 = p[WRITE]; 117 fd1 = -1; 120 if ((pid = start_command(cmd, &nset, fd0, fd1, NULL, NULL, NULL)) < 0) {
|
/freebsd-9.3-release/tools/regression/poll/ |
H A D | pipeselect.c | 64 int fd1, fd2; local 194 fd1 = fd; 200 fd = fd1;
|
/freebsd-9.3-release/tools/regression/fifo/fifo_io/ |
H A D | fifo_io.c | 109 cleanfifo2(const char *fifoname, int fd1, int fd2) argument 112 if (fd1 != -1) 113 close(fd1); 120 cleanfifo3(const char *fifoname, int fd1, int fd2, int fd3) argument 125 cleanfifo2(fifoname, fd1, fd2); 136 int error, fd1, fd2; local 138 fd1 = open(fifoname, O_RDONLY | O_NONBLOCK); 139 if (fd1 < 0) 144 close(fd1); 148 *reader_fdp = fd1; [all...] |
/freebsd-9.3-release/contrib/gdb/include/ |
H A D | libiberty.h | 141 extern int fdmatch PARAMS ((int fd1, int fd2));
|
/freebsd-9.3-release/sys/fs/fdescfs/ |
H A D | fdesc_vnops.c | 269 u_int fd, fd1; local 301 fd1 = 10 * fd + *pname++ - '0'; 302 if (fd1 < fd) { 306 fd = fd1;
|
/freebsd-9.3-release/sbin/sconfig/ |
H A D | sconfig.c | 940 int fd, fd1, fd2, fd3, i; 948 for (i=0, fd1=-1; i<3 && fd1<0; i++) { 950 fd1 = open (buf, 0); 964 if ((fd < 0) && (fd1 < 0) && (fd2 < 0) && (fd3 < 0)) { 977 if (fd1 >= 0) { 978 if (ioctl (fd1, SERIAL_GETREGISTERED, (mask+16)) < 0) { 982 close (fd1);
|
/freebsd-9.3-release/crypto/heimdal/lib/krb5/ |
H A D | fcache.c | 786 int fd1, fd2; local 789 ret = fcc_open(context, from, &fd1, O_RDONLY | O_BINARY, 0); 800 while((sz1 = read(fd1, buf, sizeof(buf))) > 0) { 824 fcc_unlock(context, fd1); 825 close(fd1);
|