| /PHP_TRUNK/ext/zip/lib/ |
| H A D | zip_fdopen.c | 45 int fd; 48 /* We dup() here to avoid messing with the passed in fd. 51 if ((fd=dup(fd_orig)) < 0) { 56 if ((fp=fdopen(fd, "rb")) == NULL) { 57 close(fd); 43 int fd; local
|
| /PHP_TRUNK/sapi/fpm/fpm/ |
| H A D | fpm_events.h | 16 int fd; /* not set with FPM_EV_TIMEOUT */ member in struct:fpm_event_s 22 int index; /* index of the fd in the ufds array */ 45 int fpm_event_set(struct fpm_event_s *ev, int fd, int flags, void (*callback)(struct fpm_event_s *, short, void *), void *arg);
|
| H A D | fpm_sockets.h | 31 static inline int fd_set_blocked(int fd, int blocked) /* {{{ */ argument 33 int flags = fcntl(fd, F_GETFL); 44 return fcntl(fd, F_SETFL, flags);
|
| H A D | fpm_log.c | 38 int fd; local 45 fd = open(wp->config->access_log, O_WRONLY | O_APPEND | O_CREAT, S_IRUSR | S_IWUSR); 46 if (0 > fd) { 52 dup2(fd, wp->log_fd); 53 close(fd); 54 fd = wp->log_fd; 57 wp->log_fd = fd; 60 if (0 > fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC)) {
|
| H A D | fpm_stdio.c | 28 int fd = open("/dev/null", O_RDWR); local 30 if (0 > fd) { 35 if (0 > dup2(fd, STDIN_FILENO) || 0 > dup2(fd, STDOUT_FILENO)) { 37 close(fd); 40 close(fd); 89 int fd = ev->fd; local 103 is_stdout = (fd == child->fd_stdout); 112 res = read(fd, bu 265 int fd; local [all...] |
| /PHP_TRUNK/win32/ |
| H A D | flock.c | 55 PHPAPI int flock(int fd, int op) argument 57 HANDLE hdl = (HANDLE) _get_osfhandle(fd);
|
| /PHP_TRUNK/TSRM/ |
| H A D | tsrm_nw.c | 229 NXHandle_t fd = 0; local 232 fd = fileno(stream); 233 NXClose (fd);
|
| /PHP_TRUNK/Zend/ |
| H A D | zend_stream.h | 67 int fd; member in union:_zend_file_handle::__anon26
|
| /PHP_TRUNK/ext/bz2/ |
| H A D | bz2.c | 248 int fd; local 249 if (SUCCESS == php_stream_cast(stream, PHP_STREAM_AS_FD, (void **) &fd, REPORT_ERRORS)) { 250 bz_file = BZ2_bzdopen(fd, mode); 397 int fd; local 433 if (FAILURE == php_stream_cast(stream, PHP_STREAM_AS_FD, (void *) &fd, REPORT_ERRORS)) { 437 bz = BZ2_bzdopen(fd, mode);
|
| /PHP_TRUNK/ext/dba/ |
| H A D | dba_cdb.c | 233 int cdb_file_lseek(int fd, off_t offset, int whence TSRMLS_DC) { argument 234 return lseek(fd, offset, whence);
|
| H A D | dba_dbm.c | 48 if((fd = VCWD_OPEN_MODE(buf, O_CREAT | mode | O_WRONLY, filemode)) == -1) \ 50 close(fd); 59 int fd; local
|
| /PHP_TRUNK/ext/ftp/ |
| H A D | ftp.h | 49 php_socket_t fd; /* data connection */ member in struct:databuf 60 php_socket_t fd; /* control connection */ member in struct:ftpbuf
|
| /PHP_TRUNK/ext/gd/libgd/ |
| H A D | xbm.c | 33 gdImagePtr gdImageCreateFromXbm(FILE * fd) argument 50 rewind(fd); 51 while (fgets(fline, MAX_XBM_LINE_SIZE, fd)) { 108 if ((ch=getc(fd)) == EOF) { 120 if ((ch=getc(fd)) == EOF) { 124 if ((ch=getc(fd)) == EOF) { 129 if ((ch=getc(fd)) == EOF) { 133 if ((ch=getc(fd)) == EOF) {
|
| /PHP_TRUNK/ext/standard/ |
| H A D | flock_compat.c | 41 PHPAPI int flock(int fd, int operation) argument 43 return php_flock(fd, operation); 47 PHPAPI int php_flock(int fd, int operation) argument 67 ret = fcntl(fd, operation & LOCK_NB ? F_SETLK : F_SETLKW, &flck); 124 HANDLE hdl = (HANDLE) _get_osfhandle(fd);
|
| H A D | password.c | 136 int fd, n; local 138 fd = open("/dev/urandom", O_RDONLY); 139 if (fd >= 0) { 141 n = read(fd, buffer + read_bytes, raw_length - read_bytes); 147 close(fd);
|
| H A D | php_fopen_wrapper.c | 162 int fd = -1; local 224 fd = STDIN_FILENO; 226 fd = dup(fd); 232 fd = dup(STDIN_FILENO); 237 fd = STDOUT_FILENO; 239 fd = dup(fd); 245 fd = dup(STDOUT_FILENO); 250 fd [all...] |
| /PHP_TRUNK/ext/zlib/ |
| H A D | zlib_fopen_wrapper.c | 132 int fd; local 134 if (SUCCESS == php_stream_cast(innerstream, PHP_STREAM_AS_FD, (void **) &fd, REPORT_ERRORS)) { 137 self->gz_file = gzdopen(dup(fd), mode);
|
| /PHP_TRUNK/sapi/tux/ |
| H A D | php_tux.c | 34 void tux_closed_conn(int fd); 367 int fd; 370 fd = (int) bla; 373 send(fd, "test<br />\n", 9, 0); 377 tux(TUX_ACTION_CONTINUE_REQ, (user_req_t *) fd); 378 /* We HAVE to trigger some event on the fd. Otherwise 381 shutdown(fd, 2); 412 void tux_closed_conn(int fd) argument 416 if (TG(on_close)) TG(on_close)(fd);
|
| /PHP_TRUNK/main/ |
| H A D | php_open_temporary_file.c | 103 int fd = -1; local 157 fd = VCWD_OPEN_MODE(opened_path, open_flags, 0600); 161 fd = mkstemp(opened_path); 164 fd = VCWD_OPEN(opened_path, open_flags); 168 if (fd == -1 || !opened_path_p) { 174 return fd; 269 int fd; local 291 fd = php_do_open_temporary_file(dir, pfx, opened_path_p TSRMLS_CC); 292 if (fd == -1) { 296 return fd; 307 int fd = php_open_temporary_fd(dir, pfx, opened_path_p TSRMLS_CC); local [all...] |
| H A D | php_network.h | 116 php_socket_t fd; member in struct:_php_pollfd 129 # define POLLNVAL 0x0020 /* Invalid request: fd not open */ 156 static inline int php_pollfd_for(php_socket_t fd, int events, struct timeval *timeouttv) argument 161 p.fd = fd; 174 static inline int php_pollfd_for_ms(php_socket_t fd, int events, int timeout) argument 179 p.fd = fd; 196 /* it is safe to FD_SET too many fd's under win32; the macro will simply ignore 198 # define PHP_SAFE_FD_SET(fd, se [all...] |
| /PHP_TRUNK/ext/session/ |
| H A D | mod_files.c | 54 int fd; member in struct:__anon1 135 if (data->fd != -1) { 139 flock(data->fd, LOCK_UN); 141 close(data->fd); 142 data->fd = -1; 150 if (data->fd < 0 || !data->lastkey || strcmp(key, data->lastkey)) { 169 data->fd = VCWD_OPEN_MODE(buf, O_CREAT | O_RDWR | O_BINARY, data->filemode); 171 if (data->fd != -1) { 177 if (fstat(data->fd, &sbuf)) { 178 close(data->fd); [all...] |
| /PHP_TRUNK/ext/fileinfo/libmagic/ |
| H A D | compress.c | 102 file_zmagic(struct magic_set *ms, int fd, const char *name, argument 120 (nsz = uncompressbuf(ms, fd, i, buf, &newbuf, 154 swrite(int fd, const void *buf, size_t n) argument 160 switch (rv = write(fd, buf, n)) { 179 sread(int fd, void *buf, size_t n, int canbepipe) argument 187 if (fd == STDIN_FILENO) 191 if (canbepipe && (ioctl(fd, FIONREAD, &t) == -1 || t == 0)) { 200 FD_SET(fd, &check); 206 selrv = select(fd + 1, &check, NULL, NULL, &tout); 216 (void)ioctl(fd, FIONREA 244 file_pipe2file(struct magic_set *ms, int fd, const void *startbuf, size_t nbytes) argument 386 uncompressbuf(struct magic_set *ms, int fd, size_t method, const unsigned char *old, unsigned char **newch, size_t n) argument [all...] |
| H A D | funcs.c | 225 int fd; local 227 if (stream && SUCCESS == php_stream_cast(stream, PHP_STREAM_AS_FD, (void **)&fd, 0)) { 228 if ((m = file_trycdf(ms, fd, ubuf, nb)) != 0) { 244 nb > 5 && fd != -1) { 254 if ((m = file_tryelf(ms, fd, ubuf, nb)) != 0)
|
| H A D | readcdf.c | 222 file_trycdf(struct magic_set *ms, int fd, const unsigned char *buf, argument 234 info.i_fd = fd;
|
| H A D | magic.c | 288 close_and_restore(const struct magic_set *ms, const char *name, int fd, argument 322 magic_descriptor(struct magic_set *ms, int fd) argument
|