Searched refs:fp (Results 1 – 9 of 9) sorted by path
/unit/src/ |
H A D | nxt_cgroup.c | 22 FILE *fp; in nxt_cgroup_proc_add() local 50 fp = nxt_file_fopen(task, cgprocs, "we"); in nxt_cgroup_proc_add() 51 if (nxt_slow_path(fp == NULL)) { in nxt_cgroup_proc_add() 55 setvbuf(fp, NULL, _IONBF, 0); in nxt_cgroup_proc_add() 56 len = fprintf(fp, "%d\n", process->pid); in nxt_cgroup_proc_add() 57 nxt_file_fclose(task, fp); in nxt_cgroup_proc_add() 97 FILE *fp; in nxt_mk_cgpath_relative() local 102 fp = nxt_file_fopen(task, "/proc/self/cgroup", "re"); in nxt_mk_cgpath_relative() 103 if (nxt_slow_path(fp == NULL)) { in nxt_mk_cgpath_relative() 110 while ((nread = getline(&buf, &size, fp)) != -1) { in nxt_mk_cgpath_relative() [all …]
|
H A D | nxt_file.c | 589 FILE *fp; in nxt_file_fopen() local 595 fp = fopen(pathname, mode); in nxt_file_fopen() 596 err = (fp == NULL) ? nxt_errno : 0; in nxt_file_fopen() 598 nxt_debug(task, "fopen(\"%s\", \"%s\"): fp:%p err:%d", pathname, mode, fp, in nxt_file_fopen() 601 if (nxt_fast_path(fp != NULL)) { in nxt_file_fopen() 602 return fp; in nxt_file_fopen() 612 nxt_file_fclose(nxt_task_t *task, FILE *fp) in nxt_file_fclose() argument 614 nxt_debug(task, "fclose(%p)", fp); in nxt_file_fclose() 616 if (nxt_slow_path(fclose(fp) == -1)) { in nxt_file_fclose()
|
H A D | nxt_file.h | 193 NXT_EXPORT void nxt_file_fclose(nxt_task_t *task, FILE *fp);
|
H A D | nxt_php_sapi.c | 111 static void nxt_zend_stream_init_fp(zend_file_handle *handle, FILE *fp, 1139 nxt_zend_stream_init_fp(zend_file_handle *handle, FILE *fp, in nxt_zend_stream_init_fp() argument 1144 handle->handle.fp = fp; in nxt_zend_stream_init_fp() 1155 FILE *fp; local 1167 fp = fopen(filename, "re"); 1168 if (fp == NULL) { 1228 fclose(fp); 1238 nxt_zend_stream_init_fp(&file_handle, fp, filename);
|
/unit/src/perl/ |
H A D | nxt_perl_psgi.c | 450 PerlIO *fp; in nxt_perl_psgi_io_init() local 453 fp = nxt_perl_psgi_layer_stream_fp_create(aTHX_ arg->rv, mode); in nxt_perl_psgi_io_init() 454 if (nxt_slow_path(fp == NULL)) { in nxt_perl_psgi_io_init() 458 io = nxt_perl_psgi_layer_stream_io_create(aTHX_ fp); in nxt_perl_psgi_io_init() 460 nxt_perl_psgi_layer_stream_fp_destroy(aTHX_ fp); in nxt_perl_psgi_io_init() 465 arg->fp = fp; in nxt_perl_psgi_io_init() 972 PerlIO *fp; member 991 io_ctx.fp = IoIFP(io); in nxt_perl_psgi_result_body_fh() 994 read_info.eof = PerlIO_eof(io_ctx.fp); in nxt_perl_psgi_result_body_fh() 1012 res = PerlIO_read(ctx->fp, dst, size); in nxt_perl_psgi_io_read() [all …]
|
H A D | nxt_perl_psgi_layer.c | 115 arg->fp = NULL; in nxt_perl_psgi_layer_stream_popped() 360 nxt_perl_psgi_layer_stream_io_create(pTHX_ PerlIO *fp) in nxt_perl_psgi_layer_stream_io_create() argument 371 IoOFP(thatio) = fp; in nxt_perl_psgi_layer_stream_io_create() 372 IoIFP(thatio) = fp; in nxt_perl_psgi_layer_stream_io_create()
|
H A D | nxt_perl_psgi_layer.h | 32 PerlIO *fp; member 46 SV *nxt_perl_psgi_layer_stream_io_create(pTHX_ PerlIO *fp);
|
/unit/src/wasm/ |
H A D | nxt_rt_wasmtime.c | 342 FILE *fp; in nxt_wasmtime_init() local 359 fp = fopen(ctx->module_path, "r"); in nxt_wasmtime_init() 360 if (!fp) { in nxt_wasmtime_init() 365 fseek(fp, 0L, SEEK_END); in nxt_wasmtime_init() 366 file_size = ftell(fp); in nxt_wasmtime_init() 368 fseek(fp, 0L, SEEK_SET); in nxt_wasmtime_init() 369 if (fread(wasm.data, file_size, 1, fp) != 1) { in nxt_wasmtime_init() 371 fclose(fp); in nxt_wasmtime_init() 374 fclose(fp); in nxt_wasmtime_init()
|
/unit/test/python/upload/ |
H A D | wsgi.py | 19 form = cgi.FieldStorage(fp=file, environ=environ, keep_blank_values=True)
|