/macosx-10.9.5/tcl-102/tcl_ext/tcllib/tcllib/examples/ldap/ |
H A D | ldifdump | 16 proc loadLDIF {fd} { 20 ld channel $fd 46 set fd [open $file] 47 loadLDIF $fd 48 close $fd
|
/macosx-10.9.5/tcl-102/tcl_ext/tkimg/tkimg/compat/libtiff/libtiff/ |
H A D | tif_atari.c | 48 _tiffReadProc(thandle_t fd, tdata_t buf, tsize_t size) argument 52 r = Fread((int) fd, size, buf); 61 _tiffWriteProc(thandle_t fd, tdata_t buf, tsize_t size) argument 65 r = Fwrite((int) fd, size, buf); 74 _tiffSeekProc(thandle_t fd, off_t off, int whence) argument 80 return Fseek(off, (int) fd, whence); 81 current_off = Fseek(0, (int) fd, SEEK_CUR); /* find out where we are */ 86 new_off = Fseek(off, (int) fd, whence); 91 new_off = Fseek(0, (int) fd, SEEK_END); /* go to eof */ 97 if ((current_off = Fwrite((int) fd, of 106 _tiffCloseProc(thandle_t fd) argument 119 _tiffSizeProc(thandle_t fd) argument 130 _tiffMapProc(thandle_t fd, tdata_t* pbase, toff_t* psize) argument 136 _tiffUnmapProc(thandle_t fd, tdata_t base, toff_t size) argument 144 TIFFFdOpen(int fd, const char* name, const char* mode) argument 165 long fd; local [all...] |
/macosx-10.9.5/ppp-727.90.1/Drivers/L2TP/L2TP-plugin/ |
H A D | l2tp.h | 197 int l2tp_outgoing_call(int fd, struct sockaddr *peer_address, struct l2tp_parameters *our_params, struct l2tp_parameters *peer_params, int recv_timeout); 198 int l2tp_incoming_call(int fd, struct l2tp_parameters *our_params, struct l2tp_parameters *peer_params, int recv_timeout); 199 int l2tp_data_in(int fd); 200 int l2tp_send_hello(int fd, struct l2tp_parameters *our_params); 201 int l2tp_send_hello_trigger(int fd, struct sockaddr *peer_address); 202 int l2tp_send_SCCRQ(int fd, struct sockaddr *peer_address, struct l2tp_parameters *our_params); 203 int l2tp_send_CDN(int fd, struct l2tp_parameters *our_params, struct l2tp_parameters *peer_params); 204 int l2tp_send_StopCCN(int fd, struct l2tp_parameters *our_params); 205 void l2tp_reset_timers(int fd, int connect_mode); 206 int l2tp_set_flag(int fd, in [all...] |
/macosx-10.9.5/sudo-72/src/ |
H A D | fileops.c | 57 * Update the access and modify times on an fd or file. 60 touch(fd, path, tvp) 61 int fd; 73 if (fd != -1) 74 return futimes(fd, tvp ? times : NULL); 88 lock_file(fd, lockit) 89 int fd; 105 return lockf(fd, op, 0) == 0; 109 lock_file(fd, lockit) 110 int fd; [all...] |
/macosx-10.9.5/cups-372.4/cups/backend/ |
H A D | usb-unix.c | 213 int fd; /* File descriptor */ local 233 if ((fd = open(device, O_RDWR | O_EXCL)) < 0) 240 if ((fd = open(device, O_RDWR | O_EXCL)) < 0) 247 if ((fd = open(device, O_RDWR | O_EXCL)) < 0) 252 if (!backendGetDeviceID(fd, device_id, sizeof(device_id), 258 close(fd); 262 int fd; /* File descriptor */ 277 if ((fd = open(device, O_WRONLY | O_EXCL)) >= 0) 279 if (!backendGetDeviceID(fd, device_id, sizeof(device_id), 285 close(fd); 317 int fd; /* File descriptor */ local [all...] |
/macosx-10.9.5/emacs-92/emacs/src/ |
H A D | hftctl.c | 110 static GT_ACK (int fd, int req, char *buf); 111 static WR_REQ (int fd, int request, int cmdlen, char *cmd, int resplen); 121 hftctl (fd, request, arg) 122 int fd; 146 if (ioctl (fd, IOCINFO, &devInfo) == -1) return(-1); 149 return (ioctl(fd, request, arg)); /* no, do IOCTL */ 159 if ((fd_flag = fcntl (fd, F_GETFL, 0)) == -1) return (-1); 160 if (ioctl (fd, TCGETS, &term_old) == -1) return (-1); 172 ioctl (fd, TCSETS, &term_new); 173 if (fcntl (fd, F_SETF [all...] |
H A D | systty.h | 218 #define EMACS_OUTQSIZE(fd, size) (ioctl ((fd), TIOCOUTQ, (size))) 224 #define EMACS_OUTQSIZE(fd, size) (ioctl ((fd), TCOUTQ, (size))) 258 #define EMACS_GET_TTY_PGRP(fd, pgid) (*(pgid) = tcgetpgrp ((fd))) 259 #define EMACS_SET_TTY_PGRP(fd, pgid) (tcsetpgrp ((fd), *(pgid))) 264 #define EMACS_GET_TTY_PGRP(fd, pgid) (ioctl ((fd), TIOCGPGR [all...] |
/macosx-10.9.5/OpenSSH-186/osslshim/ossl/ |
H A D | ossl-rand.c | 303 int fd, flg; local 305 fd = open(filename, O_RDONLY | O_BINARY, 0600); 306 if (fd < 0) { 309 if ((flg = fcntl(fd, F_GETFD)) != -1) { 310 fcntl(fd, F_SETFD, flg | FD_CLOEXEC); 314 slen = read(fd, buf, sizeof(buf)); 321 close(fd); 339 int res = 0, fd, flg; local 341 fd = open(filename, O_WRONLY | O_CREAT | O_BINARY, 0600); 342 if (fd < [all...] |
/macosx-10.9.5/tcl-102/tcl_ext/expect/expect/ |
H A D | pty_sgttyb.c | 82 ttytype(request,fd,ttycopy,ttyinit,s) 84 int fd; 97 if (-1 == ioctl(fd, TIOCGETP, (char *)&exp_tty_original) 98 || -1 == ioctl(fd, TIOCGETC, (char *)&tc) 99 || -1 == ioctl(fd, TIOCGETD, (char *)&l) 100 || -1 == ioctl(fd, TIOCGLTC, (char *)&lc) 101 || -1 == ioctl(fd, TIOCLGET, (char *)&lb) 102 || -1 == ioctl(fd, TIOCGWINSZ, (char *)&win)) { 107 ioctl(fd,TIOCGWINSZ,&winsize); 110 ioctl(fd,TIOCGSIZ [all...] |
/macosx-10.9.5/Libc-997.90.3/gen/FreeBSD/ |
H A D | daemon.c | 81 int fd; local 116 if (!noclose && (fd = _open(_PATH_DEVNULL, O_RDWR, 0)) != -1) { 117 (void)_dup2(fd, STDIN_FILENO); 118 (void)_dup2(fd, STDOUT_FILENO); 119 (void)_dup2(fd, STDERR_FILENO); 120 if (fd > 2) 121 (void)_close(fd);
|
/macosx-10.9.5/Libc-997.90.3/stdio/FreeBSD/ |
H A D | vdprintf.c | 42 _vdprintf(printf_comp_t __restrict pc, printf_domain_t __restrict domain, int fd, locale_t __restrict loc, const char * __restrict fmt, va_list ap) argument 51 if (fd > SHRT_MAX) { 59 f._file = fd; 74 vdprintf_l(int fd, locale_t __restrict loc, const char * __restrict fmt, va_list ap) argument 76 return _vdprintf(XPRINTF_PLAIN, NULL, fd, loc, fmt, ap); 80 vdprintf(int fd, const char * __restrict fmt, va_list ap) { argument 81 return _vdprintf(XPRINTF_PLAIN, NULL, fd, __current_locale(), fmt, ap);
|
/macosx-10.9.5/Libc-997.90.3/util/ |
H A D | opendev.c | 57 int fd; local 63 fd = -1; 79 fd = open(path, oflags); 86 fd = open(namebuf, oflags); 92 if (!slash && fd == -1 && errno == ENOENT) { 95 fd = open(namebuf, oflags); 101 return (fd);
|
/macosx-10.9.5/Libinfo-449.1.3/gen.subproj/ |
H A D | configuration_profile.c | 60 int fd; local 81 fd = open(path, O_RDONLY, 0); 82 if (fd < 0) return NULL; 85 if (fstat(fd, &sb) < 0) 87 close(fd); 91 data = mmap(NULL, sb.st_size, PROT_READ, MAP_PRIVATE, fd, 0); 95 close(fd);
|
/macosx-10.9.5/Security-55471.14.18/include/security_keychain/ |
H A D | TrustSettingsUtils.cpp | 60 int fd; local 66 fd = open(fileName, O_RDONLY, 0); 67 if(fd < 0) { 70 rtn = fstat(fd, &sb); 80 rtn = (int)lseek(fd, 0, SEEK_SET); 84 rtn = (int)read(fd, fileData.Data, (size_t)size); 93 close(fd);
|
/macosx-10.9.5/Security-55471.14.18/libsecurity_keychain/Security/ |
H A D | TrustSettingsUtils.cpp | 60 int fd; local 66 fd = open(fileName, O_RDONLY, 0); 67 if(fd < 0) { 70 rtn = fstat(fd, &sb); 80 rtn = (int)lseek(fd, 0, SEEK_SET); 84 rtn = (int)read(fd, fileData.Data, (size_t)size); 93 close(fd);
|
/macosx-10.9.5/Security-55471.14.18/libsecurity_keychain/lib/ |
H A D | TrustSettingsUtils.cpp | 60 int fd; local 66 fd = open(fileName, O_RDONLY, 0); 67 if(fd < 0) { 70 rtn = fstat(fd, &sb); 80 rtn = (int)lseek(fd, 0, SEEK_SET); 84 rtn = (int)read(fd, fileData.Data, (size_t)size); 93 close(fd);
|
/macosx-10.9.5/bind9-45.100/bind9/lib/isc/win32/ |
H A D | keyboard.c | 39 int fd; local 43 fd = _fileno(stdin); 44 if (fd < 0) 47 keyboard->fd = fd; 61 keyboard->fd = -1; 74 cc = read(keyboard->fd, &c, 1);
|
/macosx-10.9.5/diskdev_cmds-572.1.1/fdisk.tproj/ |
H A D | opendev.c | 71 int fd; local 78 fd = -1; 87 fd = open(path, oflags); 95 fd = open(namebuf, oflags); 101 if (!slash && fd == -1 && errno == ENOENT) { 104 fd = open(namebuf, oflags); 110 return (fd);
|
/macosx-10.9.5/diskdev_cmds-572.1.1/vndevice.tproj/ |
H A D | vndevice.c | 61 int fd; local 90 fd = open(argv[2], O_RDONLY, 0); 91 if (fd < 0) { 112 if (ioctl(fd, VNIOCATTACH, &vn) < 0) { 118 if (ioctl(fd, VNIOCDETACH, &vn) < 0) { 125 if (ioctl(fd, VNIOCSHADOW, &vn) < 0) { 131 close(fd);
|
/macosx-10.9.5/ntp-88/lib/isc/win32/ |
H A D | keyboard.c | 39 int fd; local 43 fd = _fileno(stdin); 44 if (fd < 0) 47 keyboard->fd = fd; 61 keyboard->fd = -1; 74 cc = read(keyboard->fd, &c, 1);
|
/macosx-10.9.5/postfix-252/postfix/src/postkick/ |
H A D | postkick.c | 115 int fd; local 130 for (fd = 0; fd < 3; fd++) 131 if (fstat(fd, &st) == -1 132 && (close(fd), open("/dev/null", O_RDWR, 0)) != fd)
|
/macosx-10.9.5/postfix-252/postfix/src/util/ |
H A D | nbbio.c | 9 /* NBBIO *nbbio_create(fd, bufsize, label, action, context) 10 /* int fd; 168 msg_panic("%s: socket fd=%d: read buffer is full", 169 myname, np->fd); 171 msg_panic("%s: socket fd=%d: bad pending read count %ld", 172 myname, np->fd, (long) np->read_pend); 173 count = read(np->fd, np->read_buf + np->read_pend, 178 msg_info("%s: read %ld on %s fd=%d", 179 myname, (long) count, np->label, np->fd); 183 msg_info("%s: read EOF on %s fd 328 nbbio_create(int fd, ssize_t bufsize, const char *label, NBBIO_ACTION action, char *context) argument [all...] |
H A D | stream_test.c | 20 static void print_fstat(int fd) argument 24 if (fstat(fd, &st) < 0) 26 vstream_printf("fd %d\n", fd); 41 int fd; local 71 msg_fatal("server fd is readable after create"); 81 msg_info("server fd is readable after client open"); 83 msg_fatal("close client fd: %m"); 92 msg_info("wait for server fd to become readable"); 95 if ((fd [all...] |
/macosx-10.9.5/ruby-104/ruby/missing/ |
H A D | flock.c | 28 flock(int fd, int operation) argument 49 return fcntl(fd, (operation & LOCK_NB) ? F_SETLK : F_SETLKW, &lock); 93 flock(int fd, int operation) argument 103 return lockf (fd, F_LOCK, 0); 111 return lockf (fd, F_TLOCK, 0); 115 return lockf (fd, F_ULOCK, 0); 125 flock(int fd, int operation) argument
|
/macosx-10.9.5/tcl-102/tcl_ext/sdx/sdx/lib/app-sdx/ |
H A D | mkinfo.tcl | 26 set fd [open $filename] 27 fconfigure $fd -translation binary 28 seek $fd -16 end 29 binary scan [read $fd 16] IIII a b c d 45 seek $fd $start 46 switch -- [read $fd 2] { 51 close $fd
|