Home
last modified time | relevance | path

Searched refs:in_fd (Results 1 – 25 of 1288) sorted by relevance

12345678910>>...52

/dports/net-mgmt/kismet/kismet-2016-07-R1/
H A Dunixdomainserver.cc94 void UnixDomainServer::KillConnection(int in_fd) { in KillConnection() argument
95 NetworkServer::KillConnection(in_fd); in KillConnection()
98 if (in_fd) in KillConnection()
99 close(in_fd); in KillConnection()
211 int UnixDomainServer::Validate(int in_fd) { in Validate() argument
215 int UnixDomainServer::ReadBytes(int in_fd) { in ReadBytes() argument
243 int UnixDomainServer::WriteBytes(int in_fd) { in WriteBytes() argument
251 if ((ret = write(in_fd, dptr, dlen)) <= 0) { in WriteBytes()
257 KillConnection(in_fd); in WriteBytes()
261 write_buf_map[in_fd]->MarkRead(ret); in WriteBytes()
[all …]
H A Dtcpserver.cc129 if (in_fd) in KillConnection()
130 close(in_fd); in KillConnection()
287 KillConnection(in_fd); in ValidateIPFilter()
294 int TcpServer::Validate(int in_fd) { in Validate() argument
296 return ValidateIPFilter(in_fd); in Validate()
299 int TcpServer::ReadBytes(int in_fd) { in ReadBytes() argument
315 GetRemoteAddr(in_fd).c_str()); in ReadBytes()
330 int TcpServer::WriteBytes(int in_fd) { in WriteBytes() argument
345 KillConnection(in_fd); in WriteBytes()
354 GetRemoteAddr(in_fd).c_str()); in WriteBytes()
[all …]
H A Dnetframework.h92 virtual void KillConnection(int in_fd);
129 virtual string GetRemoteAddr(int in_fd) = 0;
142 virtual int Validate(int in_fd) = 0;
145 virtual int ReadBytes(int in_fd) = 0;
147 virtual int WriteBytes(int in_fd) = 0;
196 virtual int Accept(int in_fd) = 0;
199 virtual int ParseData(int in_fd) = 0;
202 virtual int KillConnection(int in_fd) = 0;
209 virtual int BufferDrained(int in_fd);
H A Ddrone_kisnetframe.cc58 int KisNetFramework::Accept(int in_fd) { in Accept() argument
62 int KisNetFramework::BufferDrained(int in_fd) { in BufferDrained() argument
66 int KisNetFramework::ParseData(int in_fd) { in ParseData() argument
70 int KisNetFramework::KillConnection(int in_fd) { in KillConnection() argument
83 int KisNetFramework::SendToClient(int in_fd, int in_refnum, const void *in_data, in SendToClient() argument
120 void KisNetFramework::AddProtocolClient(int in_fd, int in_refnum, in AddProtocolClient() argument
125 void KisNetFramework::DelProtocolClient(int in_fd, int in_refnum) { in DelProtocolClient() argument
H A Dnetframework.cc184 void NetworkServer::KillConnection(int in_fd) { in KillConnection() argument
186 srvframework->KillConnection(in_fd); in KillConnection()
188 if (in_fd < 0) in KillConnection()
192 FD_CLR(in_fd, &server_fdset); in KillConnection()
193 FD_CLR(in_fd, &pending_readset); in KillConnection()
196 map<int, RingBuffer *>::iterator miter = read_buf_map.find(in_fd); in KillConnection()
198 delete read_buf_map[in_fd]; in KillConnection()
202 miter = write_buf_map.find(in_fd); in KillConnection()
204 delete write_buf_map[in_fd]; in KillConnection()
296 int ServerFramework::BufferDrained(int in_fd) { in BufferDrained() argument
[all …]
H A Dtcpserver.h73 virtual void KillConnection(int in_fd);
84 virtual string GetRemoteAddr(int in_fd);
98 virtual int ValidateIPFilter(int in_fd);
101 virtual int Validate(int in_fd);
104 virtual int ReadBytes(int in_fd);
107 virtual int WriteBytes(int in_fd);
/dports/databases/grass7/grass-7.8.6/raster/r.recode/
H A Drecode.c43 in_fd = Rast_open_old(name, ""); in do_recode()
55 Rast_close(in_fd); in do_recode()
80 Rast_get_c_row(in_fd, (CELL *) in_rast, row); in process_row_ii()
91 Rast_get_c_row(in_fd, (CELL *) in_rast, row); in process_row_if()
102 Rast_get_c_row(in_fd, (CELL *) in_rast, row); in process_row_id()
113 Rast_get_f_row(in_fd, (FCELL *) in_rast, row); in process_row_fi()
124 Rast_get_f_row(in_fd, (FCELL *) in_rast, row); in process_row_ff()
135 Rast_get_f_row(in_fd, (FCELL *) in_rast, row); in process_row_fd()
146 Rast_get_d_row(in_fd, (DCELL *) in_rast, row); in process_row_di()
157 Rast_get_d_row(in_fd, (DCELL *) in_rast, row); in process_row_df()
[all …]
/dports/devel/tla/tla-1.3.5/src/tla/libarch/
H A Dpfs-ftp.c42 int in_fd; member
348 if (answer->in_fd < 0) in arch_pfs_ftp_connect()
962 int in_fd, in ftp_client_greet() argument
1376 int in_fd,
1547 int in_fd, in ftp_client_pasv() argument
1971 int in_fd, in ftp_client_mkd() argument
2094 int in_fd, in ftp_client_dele() argument
2117 int in_fd, in ftp_client_rmd() argument
2139 int in_fd, in ftp_client_cwd() argument
2164 int in_fd, in ftp_client_pwd() argument
[all …]
/dports/net/tacacs/PROJECTS/misc/
H A Dmysendfile.c21 ssize_t mysendfile(int out_fd, int in_fd, off_t * offset, size_t count) in mysendfile() argument
23 return sendfile(out_fd, in_fd, offset, count); in mysendfile()
38 ssize_t mysendfile(int out_fd, int in_fd, off_t * offset, size_t count) in mysendfile() argument
45 res = syscall(__NR_sendfile64, out_fd, in_fd, offset, count); in mysendfile()
60 res = syscall(__NR_sendfile, out_fd, in_fd, &offset32, count); in mysendfile()
80 ssize_t mysendfile(int out_fd, int in_fd, off_t * offset, size_t count) in mysendfile() argument
98 ssize_t mysendfile(int out_fd, int in_fd, off_t * offset, size_t count) in mysendfile() argument
101 int result = sendfile(in_fd, out_fd, *offset, &sbytes, NULL, 0); in mysendfile()
130 ssize_t mysendfile(int out_fd, int in_fd, off_t * offset, size_t count) in mysendfile() argument
136 vec.sfv_fd = in_fd; in mysendfile()
[all …]
/dports/print/flpsed/flpsed-0.7.3/src/
H A DGsWidget.cxx97 in_fd = -1; in GsWidget()
122 if (in_fd >= 0 && fd != in_fd) { in open_file()
123 close(in_fd); in open_file()
125 in_fd = fd; in open_file()
160 if (in_fd < 0) { in load()
164 lseek(in_fd, 0L, SEEK_SET); in load()
178 dup2(in_fd, STDIN_FILENO); in load()
193 if (feeding || in_fd < 0) { in load_page()
219 lseek(in_fd, 0L, SEEK_SET); in load_page()
224 close(in_fd); in load_page()
[all …]
/dports/sysutils/wimlib/wimlib-1.13.0/examples/
H A Ddecompressfile.c104 do_decompress(int in_fd, const tchar *in_filename, in do_decompress() argument
119 bytes_read = read(in_fd, &usize, sizeof(uint32_t)); in do_decompress()
124 read(in_fd, &csize, sizeof(uint32_t)) != sizeof(uint32_t)) in do_decompress()
134 if (read(in_fd, ubuf, usize) != (int32_t)usize) { in do_decompress()
139 if (read(in_fd, cbuf, csize) != (int32_t)csize) { in do_decompress()
171 int in_fd; in main() local
188 in_fd = topen(in_filename, O_RDONLY | O_BINARY); in main()
189 if (in_fd < 0) in main()
197 if (read(in_fd, &ctype32, sizeof(uint32_t)) != sizeof(uint32_t) || in main()
198 read(in_fd, &chunk_size, sizeof(uint32_t)) != sizeof(uint32_t)) in main()
[all …]
/dports/devel/tla/tla-1.3.5/src/tla/libfsutils/
H A Dcopy-file.c20 copy_fd (int in_fd, int out_fd) in copy_fd() argument
27 amt = safe_read_retry (in_fd, buf, sizeof (buf)); in copy_fd()
37 int in_fd; in copy_file() local
40 in_fd = safe_open (from, O_RDONLY, 0); in copy_file()
43 copy_fd (in_fd, out_fd); in copy_file()
45 safe_close (in_fd); in copy_file()
145 int in_fd; in copy_file_list() local
148 in_fd = safe_open (src_path, O_RDONLY, 0); in copy_file_list()
154 copy_fd (in_fd, out_fd); in copy_file_list()
156 safe_close (in_fd); in copy_file_list()
H A Dread-line.c19 read_line_from_fd (int in_fd) in read_line_from_fd() argument
28 safe_next_line (&buf, &len, in_fd); in read_line_from_fd()
53 int in_fd; in read_line_from_file() local
56 in_fd = safe_open (path, O_RDONLY, 0); in read_line_from_file()
57 answer = read_line_from_fd (in_fd); in read_line_from_file()
58 safe_close (in_fd); in read_line_from_file()
H A Dfile-contents.c20 int in_fd; in file_contents() local
24 in_fd = safe_open (path, O_RDONLY, 0); in file_contents()
25 safe_file_to_string (&buf, &len, in_fd); in file_contents()
26 safe_close (in_fd); in file_contents()
53 fd_contents (int in_fd) in fd_contents() argument
58 safe_file_to_string (&buf, &len, in_fd); in fd_contents()
/dports/devel/glib20/glib-2.70.4/glib/
H A Dgbacktrace.c319 int in_fd[2]; in stack_trace() local
331 if ((pipe (in_fd) == -1) || (pipe (out_fd) == -1)) in stack_trace()
374 write (in_fd[1], "bt\n", 3); in stack_trace()
375 write (in_fd[1], "p x = 0\n", 8); in stack_trace()
376 write (in_fd[1], "process detach\n", 15); in stack_trace()
377 write (in_fd[1], "quit\n", 5); in stack_trace()
379 write (in_fd[1], "backtrace\n", 10); in stack_trace()
380 write (in_fd[1], "p x = 0\n", 8); in stack_trace()
381 write (in_fd[1], "quit\n", 5); in stack_trace()
438 close (in_fd[0]); in stack_trace()
[all …]
/dports/www/trafficserver/trafficserver-9.1.1/src/traffic_logcat/
H A Dlogcat.cc118 process_file(int in_fd, int out_fd) in process_file() argument
137 nread = read(in_fd, buffer, first_read_size); in process_file()
301 int in_fd = open(file_arguments[i], O_RDONLY); in main() local
302 if (in_fd < 0) { in main()
312 posix_fadvise(in_fd, 0, 0, POSIX_FADV_WILLNEED); in main()
316 posix_fadvise(in_fd, 0, 0, POSIX_FADV_SEQUENTIAL); in main()
342 lseek(in_fd, 0, SEEK_END); in main()
347 if (process_file(in_fd, out_fd) != 0) { in main()
367 close(in_fd); in main()
368 in_fd = fd; in main()
[all …]
/dports/www/httptunnel/httptunnel-3.3/
H A Dtunnel.c75 int in_fd, out_fd; member
337 if (tunnel->in_fd == -1) in tunnel_in_disconnect()
340 close (tunnel->in_fd); in tunnel_in_disconnect()
341 tunnel->in_fd = -1; in tunnel_in_disconnect()
407 if (tunnel->in_fd != -1) in tunnel_in_connect()
414 if (tunnel->in_fd == -1) in tunnel_in_connect()
766 p.fd = tunnel->in_fd; in tunnel_close()
1005 return tunnel->in_fd; in tunnel_pollin_fd()
1235 close (tunnel->in_fd); in tunnel_accept()
1273 tunnel->in_fd = -1; in tunnel_new_server()
[all …]
/dports/net/nbdkit/nbdkit-1.20.4/plugins/eval/
H A Dcall.c192 if (pipe (in_fd) == -1) { in call3()
210 assert (in_fd[0] > STDERR_FILENO && in_fd[1] > STDERR_FILENO && in call3()
221 close (in_fd[1]); in call3()
224 dup2 (in_fd[0], 0); in call3()
227 close (in_fd[0]); in call3()
245 close (in_fd[0]); in_fd[0] = -1; in call3()
277 close (in_fd[1]); in call3()
356 if (in_fd[0] >= 0) in call3()
357 close (in_fd[0]); in call3()
358 if (in_fd[1] >= 0) in call3()
[all …]
/dports/net/nbdkit/nbdkit-1.20.4/plugins/sh/
H A Dcall.c192 if (pipe (in_fd) == -1) { in call3()
210 assert (in_fd[0] > STDERR_FILENO && in_fd[1] > STDERR_FILENO && in call3()
221 close (in_fd[1]); in call3()
224 dup2 (in_fd[0], 0); in call3()
227 close (in_fd[0]); in call3()
245 close (in_fd[0]); in_fd[0] = -1; in call3()
277 close (in_fd[1]); in call3()
356 if (in_fd[0] >= 0) in call3()
357 close (in_fd[0]); in call3()
358 if (in_fd[1] >= 0) in call3()
[all …]
/dports/x11/virglrenderer/virglrenderer-7d204f3927be65fb3365dce01dbcd04d447a4985/vtest/
H A Dvtest_server.c52 int in_fd; member
72 .in_fd = -1,
282 prog.in_fd = ret; in vtest_main_open_read_file()
283 prog.input.data.fd = prog.in_fd; in vtest_main_open_read_file()
350 prog.in_fd = new_fd; in vtest_main_wait_for_socket_accept()
352 prog.input.data.fd = prog.in_fd; in vtest_main_wait_for_socket_accept()
385 ret = vtest_wait_for_fd_read(in_fd); in vtest_main_run_renderer()
447 if (prog.out_fd == prog.in_fd) { in vtest_main_tidy_fds()
451 if (prog.in_fd != -1) { in vtest_main_tidy_fds()
452 close(prog.in_fd); in vtest_main_tidy_fds()
[all …]
/dports/editors/biew/biew-610/biewlib/sysdep/ia32/linux/
H A Dkeyboard.c68 int in_fd; variable
293 ioctl(in_fd, TCSETSW, &sattr); in console_leave()
302 ioctl(in_fd, TCSETSW, &tattr); in console_enter()
314 #define get(x) read(in_fd,&(x),1) in ReadNextEvent()
584 if (in_fd < 0) in_fd = STDIN_FILENO; in __init_keyboard()
588 if (fcntl(in_fd, F_SETFL, fcntl(in_fd, F_GETFL) | _MODE_) < 0) in __init_keyboard()
592 in_fd, in __init_keyboard()
597 tcgetattr(in_fd, &tattr); in __init_keyboard()
628 ioctl(in_fd, VT_GETMODE, &vt); in __init_keyboard()
632 ioctl(in_fd, VT_SETMODE, &vt); in __init_keyboard()
[all …]
/dports/www/py-bjoern/bjoern-3.1.0/bjoern/
H A Dportable_sendfile.c14 Py_ssize_t portable_sendfile(int out_fd, int in_fd, off_t offset) { in portable_sendfile() argument
16 if(sendfile(in_fd, out_fd, offset, &len, NULL, 0) == -1) { in portable_sendfile()
30 Py_ssize_t portable_sendfile(int out_fd, int in_fd, off_t offset) { in portable_sendfile() argument
32 if(sendfile(in_fd, out_fd, offset, SENDFILE_CHUNK_SIZE, NULL, &len, 0) == -1) { in portable_sendfile()
47 Py_ssize_t portable_sendfile(int out_fd, int in_fd, off_t offset) { in portable_sendfile() argument
48 return sendfile(out_fd, in_fd, &offset, SENDFILE_CHUNK_SIZE); in portable_sendfile()
/dports/net/samba412/samba-4.12.15/source4/heimdal/lib/roken/
H A Dsimple_exec.c147 int in_fd[2], out_fd[2], err_fd[2]; in pipe_execv() local
153 pipe(in_fd); in pipe_execv()
169 close(in_fd[1]); in pipe_execv()
177 in_fd[0] = open(_PATH_DEVNULL, O_RDONLY); in pipe_execv()
184 if(in_fd[0] != STDIN_FILENO) { in pipe_execv()
185 dup2(in_fd[0], STDIN_FILENO); in pipe_execv()
186 close(in_fd[0]); in pipe_execv()
203 close(in_fd[0]); in pipe_execv()
204 close(in_fd[1]); in pipe_execv()
217 close(in_fd[0]); in pipe_execv()
[all …]
/dports/devel/distcc/distcc-3.3.5/src/
H A Dsrvrpc.c99 int dcc_r_many_files(int in_fd, in dcc_r_many_files() argument
110 if ((ret = dcc_r_token_int(in_fd, "NFIL", &n_files))) in dcc_r_many_files()
117 if ((ret = dcc_r_token_string(in_fd, "NAME", &name))) in dcc_r_many_files()
124 if ((ret = dcc_r_sometoken_int(in_fd, token, &link_or_file_len))) in dcc_r_many_files()
130 if ((ret = dcc_r_str_alloc(in_fd, link_or_file_len, &link_target))){ in dcc_r_many_files()
158 if ((ret = dcc_r_file(in_fd, name, link_or_file_len, compr))) { in dcc_r_many_files()
176 dcc_explain_mismatch(buf, 12, in_fd); in dcc_r_many_files()
/dports/devel/pecl-swoole/swoole-4.8.5/src/os/
H A Dsendfile.cc22 int swoole_sendfile(int out_fd, int in_fd, off_t *offset, size_t size) { in swoole_sendfile() argument
37 ret = sendfile(in_fd, out_fd, *offset, (off_t *) &size, &hdtr, 0); in swoole_sendfile()
39 ret = sendfile(in_fd, out_fd, *offset, size, 0, &sent_bytes, 0); in swoole_sendfile()
44 …"send file, ret:%d, out_fd:%d, in_fd:%d, offset:%jd, size:%zu", ret, out_fd, in_fd, (intmax_t) *of… in swoole_sendfile()
67 int swoole_sendfile(int out_fd, int in_fd, off_t *offset, size_t size) { in swoole_sendfile() argument
70 ssize_t n = pread(in_fd, buf, readn, *offset); in swoole_sendfile()

12345678910>>...52