Home
last modified time | relevance | path

Searched refs:write_fn (Results 1 – 12 of 12) sorted by relevance

/titanic_41/usr/src/lib/libtecla/common/
H A Dioutil.c42 static int _io_pad_line(GlWriteFn *write_fn, void *data, int c, int n);
101 int _io_display_text(GlWriteFn *write_fn, void *data, int indentation, in _io_display_text() argument
117 if(!string || !write_fn) { in _io_display_text()
156 if(_io_pad_line(write_fn, data, fill_char, indentation - last)) in _io_display_text()
167 if(write_fn(data, prefix+pstart, plen) != plen) in _io_display_text()
207 if(write_fn(data, string+ndone, nnew) != nnew) in _io_display_text()
224 if(npad > 0 && _io_pad_line(write_fn, data, fill_char, npad)) in _io_display_text()
227 if(write_fn(data, suffix, suffix_len) != suffix_len) in _io_display_text()
234 if(write_fn(data, "\n", 1) != 1) in _io_display_text()
271 static int _io_pad_line(GlWriteFn *write_fn, void *data, int c, int n) in _io_pad_line() argument
[all …]
H A Dcplmatch.c159 GlWriteFn *write_fn, void *data);
645 int _cpl_output_completions(CplMatches *result, GlWriteFn *write_fn, void *data, in _cpl_output_completions() argument
658 if(write_fn && result && result->nmatch>0) { in _cpl_output_completions()
667 if(cpl_format_line(result, &fmt, lnum, write_fn, data)) in _cpl_output_completions()
1104 GlWriteFn *write_fn, void *data) in cpl_format_line() argument
1116 if(!write_fn) in cpl_format_line()
1139 if(write_fn(data, match->completion, clen) != clen) in cpl_format_line()
1144 if(tlen > 0 && write_fn(data, match->type_suffix, tlen) != tlen) in cpl_format_line()
1162 if(write_fn(data, spaces + nspace - n, n) != n) in cpl_format_line()
1175 if(write_fn(data, s, n) != n) in cpl_format_line()
H A Dchrqueue.c164 GlWriteFn *write_fn, void *data) in _glq_append_chars() argument
201 switch(_glq_flush_queue(cq, write_fn, data)) { in _glq_append_chars()
323 GlqFlushState _glq_flush_queue(GlCharQueue *cq, GlWriteFn *write_fn, in _glq_flush_queue() argument
364 int nnew = write_fn(data, cq->buffers.head->bytes + in _glq_flush_queue()
H A Dchrqueue.h60 GlWriteFn *write_fn, void *data);
99 GlqFlushState _glq_flush_queue(GlCharQueue *cq, GlWriteFn *write_fn,
H A Dexpand.c154 GlWriteFn *write_fn, void *data);
1266 int _ef_output_expansions(FileExpansion *result, GlWriteFn *write_fn, in _ef_output_expansions() argument
1279 if(write_fn && result && result->nfile>0) { in _ef_output_expansions()
1288 if(ef_format_line(result, &fmt, lnum, write_fn, data)) in _ef_output_expansions()
1379 GlWriteFn *write_fn, void *data) in ef_format_line() argument
1391 if(!write_fn) in ef_format_line()
1413 if(write_fn(data, file, flen) != flen) in ef_format_line()
1431 if(write_fn(data, spaces + nspace - n, n) != n) in ef_format_line()
1444 if(write_fn(data, s, n) != n) in ef_format_line()
H A Dcplmatch.h46 int _cpl_output_completions(CplMatches *result, GlWriteFn *write_fn, void *data,
H A Dexpand.h46 int _ef_output_expansions(FileExpansion *result, GlWriteFn *write_fn,
H A Dioutil.h71 int _io_display_text(GlWriteFn *write_fn, void *data, int indentation,
H A Dhistory.c1458 int _glh_show_history(GlHistory *glh, GlWriteFn *write_fn, void *data, in _glh_show_history() argument
1473 if(!glh || !write_fn || !fmt) { in _glh_show_history()
1555 if(write_fn(data, start, len) != len) in _glh_show_history()
1569 if(write_fn(data, buffer, len) != len) in _glh_show_history()
1576 if(write_fn(data, buffer, len) != len) in _glh_show_history()
1583 if(write_fn(data, buffer, len) != len) in _glh_show_history()
1589 if(write_fn(data, buffer, len) != len) in _glh_show_history()
1595 if(write_fn(data, seg->s, len) != len) in _glh_show_history()
1600 if(write_fn(data, "%", 1) != 1) in _glh_show_history()
H A Dhistory.h111 int _glh_show_history(GlHistory *glh, GlWriteFn *write_fn, void *data,
H A Dgetline.c3876 GlWriteFn *write_fn = buffered ? gl_write_fn : gl->flush_fn; in gl_print_raw_string() local
3897 if(write_fn(gl, string + ndone, n-ndone) != n) in gl_print_raw_string()
/titanic_41/usr/src/uts/common/io/audio/impl/
H A Daudio_ctrl.c84 audio_ctrl_rd_t read_fn, audio_ctrl_wr_t write_fn, void *arg) in audio_dev_add_control() argument
194 ASSERT(write_fn); in audio_dev_add_control()
195 ctrl->ctrl_write_fn = write_fn; in audio_dev_add_control()