Searched refs:fd1 (Results 51 - 66 of 66) sorted by relevance

123

/freebsd-current/tests/sys/fs/fusefs/
H A Dread.cc740 int fd0, fd1; local
752 fd1 = open(FULLPATH, O_RDWR);
753 ASSERT_LE(0, fd1) << strerror(errno);
759 ASSERT_EQ(bufsize, read(fd1, buf, bufsize)) << strerror(errno);
762 leak(fd1);
775 int fd0, fd1; local
787 fd1 = open(FULLPATH, O_RDWR);
788 ASSERT_LE(0, fd1) << strerror(errno);
799 leak(fd1);
/freebsd-current/crypto/heimdal/lib/krb5/
H A Dfcache.c976 int fd1, fd2; local
979 ret = fcc_open(context, from, &fd1, O_RDONLY | O_BINARY | O_CLOEXEC, 0);
990 while((sz1 = read(fd1, buf, sizeof(buf))) > 0) {
1012 fcc_unlock(context, fd1);
1013 close(fd1);
/freebsd-current/contrib/mandoc/
H A Dmandocdb.c2208 int fd1, fd2; local
2248 fd1 = fd2 = -1;
2254 if ((fd1 = open(MANDOC_DB, O_RDONLY, 0)) == -1) {
2262 if (fstat(fd1, &sb1) == -1) {
2273 fd1, 0)) == MAP_FAILED) {
2296 if (fd1 != -1)
2297 close(fd1);
/freebsd-current/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_runtime.cpp6757 int fd1 = -1;
6760 fd1 = shm_open(shm_name, O_CREAT | O_EXCL | O_RDWR, 0666);
6761 if ((fd1 == -1) && (errno == EEXIST)) {
6764 fd1 = shm_open(shm_name, O_RDWR, 0666);
6765 if (fd1 == -1) { // file didn't open
6773 if (ftruncate(fd1, SHM_SIZE) == -1) { // error occured setting size;
6780 fd1, 0);
6794 if (fd1 != -1)
6795 close(fd1);
6805 int fd1
[all...]
/freebsd-current/contrib/dialog/
H A Dutil.c330 int fd1, fd2; local
363 if ((fd1 = dup(fileno(input))) >= 0
372 close(fd1);
374 if ((fd1 = open_terminal(&device, O_RDONLY)) >= 0) {
382 close(fd1);
407 if ((fd1 = open_terminal(&device, O_WRONLY)) >= 0
408 && (dialog_state.screen_output = fdopen(fd1, "w")) != 0) {
/freebsd-current/contrib/ntp/ntpd/
H A Drefclock_oncore.c599 int fd1, fd2; local
651 /* opening different devices for fd1 and fd2 presents no problems */
675 oncore_log_f(instance, LOG_ERR, "Can't stat fd1 (%s)",
687 fd1 = refclock_open(&peer->srcadr, device1, SPEED, LDISC_RAW);
688 if (fd1 <= 0) {
689 oncore_log_f(instance, LOG_ERR, "Can't open fd1 (%s)",
701 fd2 = fd1;
721 instance->ttyfd = fd1;
734 pp->io.fd = fd1;
737 close(fd1);
[all...]
/freebsd-current/contrib/ntp/sntp/libevent/test/
H A Dregress_http.c955 evutil_socket_t fd1=-1, fd2=-1, fd3=-1; local
964 fd1 = http_connect("127.0.0.1", port);
965 tt_assert(fd1 != EVUTIL_INVALID_SOCKET);
971 bev1 = bufferevent_socket_new(data->base, fd1, 0);
1047 if (fd1 >= 0)
1048 evutil_closesocket(fd1);
/freebsd-current/contrib/libevent/test/
H A Dregress_http.c955 evutil_socket_t fd1=-1, fd2=-1, fd3=-1; local
964 fd1 = http_connect("127.0.0.1", port);
965 tt_assert(fd1 != EVUTIL_INVALID_SOCKET);
971 bev1 = bufferevent_socket_new(data->base, fd1, 0);
1047 if (fd1 >= 0)
1048 evutil_closesocket(fd1);
/freebsd-current/sys/sys/
H A Dsyscallsubr.h225 int kern_linkat(struct thread *td, int fd1, int fd2, const char *path1,
H A Dsysproto.h1432 char fd1_l_[PADL_(int)]; int fd1; char fd1_r_[PADR_(int)]; member in struct:linkat_args
/freebsd-current/contrib/llvm-project/compiler-rt/include/sanitizer/
H A Dnetbsd_syscall_hooks.h2545 #define __sanitizer_syscall_pre_linkat(fd1, name1, fd2, name2, flags) \
2546 __sanitizer_syscall_pre_impl_linkat((long long)(fd1), (long long)(name1), \
2549 #define __sanitizer_syscall_post_linkat(res, fd1, name1, fd2, name2, flags) \
2550 __sanitizer_syscall_post_impl_linkat(res, (long long)(fd1), \
4766 void __sanitizer_syscall_pre_impl_linkat(long long fd1, long long name1,
4769 void __sanitizer_syscall_post_impl_linkat(long long res, long long fd1,
/freebsd-current/sys/kern/
H A Dvfs_syscalls.c1553 int fd1; member in struct:linkat_args
1564 return (kern_linkat(td, uap->fd1, uap->fd2, uap->path1, uap->path2,
1608 kern_linkat(struct thread *td, int fd1, int fd2, const char *path1, argument
1623 segflag, path1, fd1, &cap_linkat_source_rights);
H A Dsystrace_args.c2664 iarg[a++] = p->fd1; /* int */
/freebsd-current/contrib/sendmail/src/
H A Dmap.c640 ** fd1 - second fd (<0: do not use)
650 mapchown(mapname, fd0, fd1, filename)
653 int fd1;
660 (fd1 >= 0 && fchown(fd1, TrustedUid, -1) < 0))
/freebsd-current/lib/libsys/
H A D_libsys.h775 int __sys_linkat(int fd1, const char * path1, int fd2, const char * path2, int flag);
/freebsd-current/sys/compat/freebsd32/
H A Dfreebsd32_systrace_args.c2553 iarg[a++] = p->fd1; /* int */

Completed in 580 milliseconds

123