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

1234567891011>>

/macosx-10.10/Libc-1044.1.2/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.10/bootp-298/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.10/ksh-23/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, NiL)))
33 return sfnew(NiL, NiL, (size_t)SF_UNBOUND, fd, flags);
/macosx-10.10/tcl-105/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.10/gnutar-453/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.10/text_cmds-88/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.10/OpenSSH-189/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.10/Libc-1044.1.2/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.10/rsync-45/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.10/tcl-105/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.10/xnu-2782.1.97/libsyscall/wrappers/
H A Dunlinkat.c25 int __unlinkat(int fd, const char *path, int flag);
28 unlinkat(int fd, const char *path, int flag) argument
30 int res = __unlinkat(fd, path, flag);
/macosx-10.10/OpenLDAP-499.27/OpenLDAP/include/
H A Dlutil_lockf.h27 lutil_lockf LDAP_P(( int fd ));
30 lutil_unlockf LDAP_P(( int fd ));
/macosx-10.10/OpenLDAP-499.27/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.10/tcl-105/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.10/tcl-105/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.10/vim-55/src/proto/
H A Dpty.pro3 int SetupSlavePTY __ARGS((int fd));
/macosx-10.10/tcl-105/tcl_ext/tkimg/tkimg/compat/libtiff/contrib/mfs/
H A Dmfs_file.c80 int mfs_lseek (int fd, int offset, int whence);
81 int mfs_read (int fd, void *buf, int size);
82 int mfs_write (int fd, void *buf, int size);
83 int mfs_size (int fd);
84 int mfs_map (int fd, char **addr, size_t *len);
85 int mfs_unmap (int fd);
86 int mfs_close (int fd);
87 static int extend_mem_file (int fd, int size);
109 - based fd.
132 /* Find a free fd */
242 mfs_lseek(int fd, int offset, int whence) argument
327 mfs_read(int fd, void *clnt_buf, int size) argument
367 mfs_write(int fd, void *clnt_buf, int size) argument
425 mfs_size(int fd) argument
456 mfs_map(int fd, char **addr, size_t *len) argument
489 mfs_unmap(int fd) argument
507 mfs_close(int fd) argument
538 extend_mem_file(int fd, int size) argument
[all...]

Completed in 138 milliseconds

1234567891011>>