Searched refs:fd (Results 1 - 25 of 2392) sorted by relevance

1234567891011>>

/macosx-10.9.5/Libc-997.90.3/util/
H A Dlogin_tty.c38 int login_tty(fd)
39 int fd;
42 if (ioctl(fd, TIOCSCTTY, (char *)NULL) == -1)
44 (void) dup2(fd, 0);
45 (void) dup2(fd, 1);
46 (void) dup2(fd, 2);
47 if (fd > 2)
48 (void) close(fd);
/macosx-10.9.5/bootp-268.1/bootplib/
H A Dbpflib.h28 int bpf_get_blen(int fd, int * blen);
30 int bpf_dispose(int fd);
31 int bpf_setif(int fd, const char * en_name);
32 int bpf_set_immediate(int fd, u_int value);
33 int bpf_filter_receive_none(int fd);
34 int bpf_arp_filter(int fd, int type_offset, int type, int packet_size);
35 int bpf_set_timeout(int fd, struct timeval * tv_p);
36 int bpf_write(int fd, void * pkt, int len);
/macosx-10.9.5/ksh-20/ksh/src/lib/libast/stdio/
H A D_stdopen.c29 _stdopen(int fd, const char* mode) argument
31 return fdopen(fd, mode);
H A Dfdopen.c27 fdopen(int fd, const char* mode) argument
31 if (fd < 0 || !(flags = _sftype(mode, NiL, NiL)))
33 return sfnew(NiL, NiL, (size_t)SF_UNBOUND, fd, flags);
/macosx-10.9.5/tcl-102/tcl_ext/sdx/sdx/lib/app-sdx/
H A Dmd5sum.tcl12 set fd [open $file]
13 fconfigure $fd -trans binary
14 set sum [md5::md5 [read $fd]]
15 close $fd
H A Daddtoc.tcl4 set fd [open $file]
5 fconfigure $fd -trans binary
6 set sum [md5::md5 [read $fd]]
7 close $fd
11 proc walk {fd {dir .} {pre ""}} {
21 puts $fd "$pre[file mtime $x] [calcDigest $x] $t $s"
26 puts $fd "$pre/[file tail $x]"
27 walk $fd $x "$pre "
41 set fd [open $fn w]
42 fconfigure $fd
[all...]
/macosx-10.9.5/gnutar-452/gnutar/lib/
H A Dfd-safer.c45 fd_safer (int fd) argument
47 if (STDIN_FILENO <= fd && fd <= STDERR_FILENO)
49 int f = dup_safer (fd);
51 close (fd);
53 fd = f;
56 return fd;
H A Dpipe-safer.c32 pipe_safer (int fd[2]) argument
35 if (pipe (fd) == 0)
40 fd[i] = fd_safer (fd[i]);
41 if (fd[i] < 0)
44 close (fd[1 - i]);
H A Ddup-safer.c36 dup_safer (int fd) argument
39 return fcntl (fd, F_DUPFD, STDERR_FILENO + 1);
43 return fd_safer (dup (fd));
H A Drmt.h43 #define _isrmt(fd) \
44 ((fd) >= __REM_BIAS)
70 #define rmtread(fd, buffer, length) \
71 (_isrmt (fd) ? rmt_read__ (fd - __REM_BIAS, buffer, length) \
72 : safe_read (fd, buffer, length))
74 #define rmtwrite(fd, buffer, length) \
75 (_isrmt (fd) ? rmt_write__ (fd - __REM_BIAS, buffer, length) \
76 : full_write (fd, buffe
[all...]
H A Ddup2.c31 dupfd (int fd, int desired_fd) argument
33 int duplicated_fd = dup (fd);
38 int r = dupfd (fd, desired_fd);
48 dup2 (int fd, int desired_fd) argument
50 if (fd == desired_fd)
51 return fd;
54 return fcntl (fd, F_DUPFD, desired_fd);
56 return dupfd (fd, desired_fd);
H A Dstdopen.c42 int fd; local
45 for (fd = 0; fd <= 2; fd++)
47 if (fcntl (fd, F_GETFD) < 0)
55 int mode = contrary_mode[fd];
64 || (new_fd = open ("/dev/full", mode) != fd))
66 if (new_fd != fd)
/macosx-10.9.5/text_cmds-87/sort/
H A Dfd-safer.c47 fd_safer (int fd) argument
49 if (STDIN_FILENO <= fd && fd <= STDERR_FILENO)
51 int f = dup_safer (fd);
53 close (fd);
55 fd = f;
58 return fd;
H A Ddup-safer.c37 dup_safer (int fd) argument
40 return fcntl (fd, F_DUPFD, STDERR_FILENO + 1);
44 return fd_safer (dup (fd));
/macosx-10.9.5/OpenSSH-186/openssh/openbsd-compat/
H A Ddaemon.c54 int fd; local
71 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
72 (void)dup2(fd, STDIN_FILENO);
73 (void)dup2(fd, STDOUT_FILENO);
74 (void)dup2(fd, STDERR_FILENO);
75 if (fd > 2)
76 (void)close (fd);
/macosx-10.9.5/Libc-997.90.3/stdlib/
H A Dgrantpt.c38 int fd = open("/dev/ptmx", flags); local
39 if (fd >= 0)
40 return fd;
48 * fd is provided, to the real UID and real GID of the calling thread.
51 grantpt(int fd) argument
53 return ioctl(fd, TIOCPTYGRANT);
63 ptsname(int fd) argument
74 error = ioctl(fd, TIOCPTYGNAME, ptsnamebuf);
93 * Unlock the slave pty associated with the master to which fd refers.
96 unlockpt(int fd) argument
[all...]
/macosx-10.9.5/rsync-42/rsync/
H A Dconnection.c28 int fd, i; local
33 fd = open(fname,O_RDWR|O_CREAT, 0600);
35 if (fd == -1) {
41 if (lock_range(fd, i*4, 4)) return 1;
47 close(fd);
/macosx-10.9.5/tcl-102/tcl_ext/tkimg/tkimg/compat/libtiff/libtiff/
H A Dmkversion.c52 FILE* fd = fopen(filename, "r"); local
53 if (fd == NULL) {
58 return (fd);
69 FILE* fd; local
92 fd = openFile(versionFile);
93 if (fgets(version, sizeof (version)-1, fd) == NULL) {
101 fclose(fd);
106 fd = openFile(releaseDateFile);
107 if (fgets(rawReleaseDate, sizeof (rawReleaseDate)-1, fd) == NULL) {
112 fclose(fd);
[all...]
/macosx-10.9.5/Heimdal-323.92.1/lib/hcrypto/
H A Drand-unix.c64 int fd = open(*p, flags | O_NDELAY); local
65 if(fd >= 0) {
68 rk_cloexec(fd);
69 return fd;
78 int fd; local
83 fd = _hc_unix_device_fd(O_WRONLY, NULL);
84 if (fd < 0)
87 write(fd, indata, size);
88 close(fd);
97 int fd; local
144 int fd; local
[all...]
/macosx-10.9.5/xnu-2422.115.4/tools/tests/unit_tests/pipe_test_10807398_src/
H A Dchild.c7 int fd, r; local
11 fprintf(stderr, "Usage: %s fd\n", argv[0]);
14 fd = atoi(argv[1]);
16 printf("child read(%d)...\n", fd);
17 r = read(fd, buf, sizeof buf - 1);
22 printf("child read(%d) = \"%s\"\n", fd, buf);
24 close(fd);
/macosx-10.9.5/OpenLDAP-491.1/OpenLDAP/include/
H A Dlutil_lockf.h27 lutil_lockf LDAP_P(( int fd ));
30 lutil_unlockf LDAP_P(( int fd ));
/macosx-10.9.5/OpenLDAP-491.1/OpenLDAP/libraries/liblutil/
H A Dlockf.c60 int lutil_lockf ( int fd ) {
61 fd = fd;
65 int lutil_unlockf ( int fd ) {
66 fd = fd;
72 int lutil_lockf ( int fd ) {
74 return lockf( fd, F_LOCK, 0 );
77 int lutil_unlockf ( int fd ) {
78 return lockf( fd, F_ULOC
[all...]
/macosx-10.9.5/tcl-102/tcl_ext/expect/expect/
H A Dexp_win.h19 void exp_win2_rows_set _ANSI_ARGS_ ((int fd, char* rows));
20 char* exp_win2_rows_get _ANSI_ARGS_ ((int fd));
21 void exp_win2_columns_set _ANSI_ARGS_ ((int fd, char* columns));
22 char* exp_win2_columns_get _ANSI_ARGS_ ((int fd));
/macosx-10.9.5/tcl-102/tcl_ext/quicktimetcl/quicktimetcl/ExampleCode/
H A DParseQTAtoms.tcl9 set fd [open $fileName RDONLY]
10 fconfigure $fd -translation binary
11 set version [GetAtomVersion $fd]
13 ParseContainerAtom $fd
16 foreach {size type id count} [ParseQTAtomHeader $fd $offset] {break}
19 foreach {size type} [ParseAtom $fd $offset] {break}
23 close $fd
26 proc ::quicktimetcl::GetAtomVersion {fd} {
30 set data [read $fd 8]
39 proc ::quicktimetcl::ParseContainerAtom {fd {offse
[all...]
/macosx-10.9.5/vim-53/src/proto/
H A Dpty.pro3 int SetupSlavePTY __ARGS((int fd));

Completed in 161 milliseconds

1234567891011>>