| /netbsd-src/external/bsd/lutok/dist/ |
| H A D | state_test.cpp | 69 is_available(lutok::state& state, const char* symbol) in is_available() argument 71 luaL_loadstring(raw(state), (std::string("return ") + symbol).c_str()); in is_available() 72 const bool ok = (lua_pcall(raw(state), 0, 1, 0) == 0 && in is_available() 73 !lua_isnil(raw(state), -1)); in is_available() 74 lua_pop(raw(state), 1); in is_available() 88 check_modules(lutok::state& state, const std::string& expected) in check_modules() argument 92 ATF_REQUIRE(!((expected == "base") ^ (is_available(state, "assert")))); in check_modules() 94 (is_available(state, "string.byte")))); in check_modules() 96 (is_available(state, "table.concat")))); in check_modules() 111 lutok::state state = lutok::state_c_gate::connect(raw_state); in c_get_upvalues() local [all …]
|
| /netbsd-src/external/ibm-public/postfix/dist/src/cleanup/ |
| H A D | cleanup_state.c | 69 CLEANUP_STATE *state = (CLEANUP_STATE *) mymalloc(sizeof(*state)); in cleanup_state_alloc() local 71 state->attr_buf = vstring_alloc(10); in cleanup_state_alloc() 72 state->temp1 = vstring_alloc(10); in cleanup_state_alloc() 73 state->temp2 = vstring_alloc(10); in cleanup_state_alloc() 75 state->stripped_buf = vstring_alloc(10); in cleanup_state_alloc() 76 state->src = src; in cleanup_state_alloc() 77 state->dst = 0; in cleanup_state_alloc() 78 state->handle = 0; in cleanup_state_alloc() 79 state->queue_name = 0; in cleanup_state_alloc() 80 state->queue_id = 0; in cleanup_state_alloc() [all …]
|
| H A D | cleanup_envelope.c | 91 void cleanup_envelope(CLEANUP_STATE *state, int type, in cleanup_envelope() argument 101 cleanup_out_format(state, REC_TYPE_SIZE, REC_TYPE_SIZE_FORMAT, in cleanup_envelope() 112 state->action = cleanup_envelope_process; in cleanup_envelope() 113 cleanup_envelope_process(state, type, str, len); in cleanup_envelope() 118 static void cleanup_envelope_process(CLEANUP_STATE *state, int type, in cleanup_envelope_process() argument 144 state->queue_id, extra_opts); in cleanup_envelope_process() 146 state->flags |= extra_opts; in cleanup_envelope_process() 154 msg_warn("%s: ignoring bad delay time: %s", state->queue_id, buf); in cleanup_envelope_process() 156 state->defer_delay = defer_delay; in cleanup_envelope_process() 171 cleanup_milter_receive(state, milter_count); in cleanup_envelope_process() [all …]
|
| /netbsd-src/external/ibm-public/postfix/dist/src/smtpd/ |
| H A D | smtpd.c | 1652 static int sasl_client_exception(SMTPD_STATE *state) in sasl_client_exception() argument 1665 state->name, state->addr)) == 0) in sasl_client_exception() 1670 state->namaddr, match); in sasl_client_exception() 1679 static const char *smtpd_whatsup(SMTPD_STATE *state) in smtpd_whatsup() argument 1687 if (state->sender) in smtpd_whatsup() 1689 info_log_addr_form_sender(state->sender)); in smtpd_whatsup() 1690 if (state->recipient) in smtpd_whatsup() 1692 info_log_addr_form_recipient(state->recipient)); in smtpd_whatsup() 1693 if (state->protocol) in smtpd_whatsup() 1694 vstring_sprintf_append(buf, " proto=%s", state->protocol); in smtpd_whatsup() [all …]
|
| H A D | smtpd_state.c | 80 void smtpd_state_init(SMTPD_STATE *state, VSTREAM *stream, in smtpd_state_init() argument 88 state->flags = 0; in smtpd_state_init() 89 state->err = CLEANUP_STAT_OK; in smtpd_state_init() 90 state->client = stream; in smtpd_state_init() 91 state->service = mystrdup(service); in smtpd_state_init() 92 state->buffer = vstring_alloc(100); in smtpd_state_init() 93 state->addr_buf = vstring_alloc(100); in smtpd_state_init() 94 state->conn_count = state->conn_rate = 0; in smtpd_state_init() 95 state->error_count = 0; in smtpd_state_init() 96 state->error_mask = 0; in smtpd_state_init() [all …]
|
| H A D | smtpd_peer.c | 171 static int smtpd_peer_sockaddr_to_hostaddr(SMTPD_STATE *state) in smtpd_peer_sockaddr_to_hostaddr() argument 174 struct sockaddr *sa = (struct sockaddr *) &(state->sockaddr); in smtpd_peer_sockaddr_to_hostaddr() 175 SOCKADDR_SIZE sa_length = state->sockaddr_len; in smtpd_peer_sockaddr_to_hostaddr() 224 state->port = mystrdup(client_port.buf); in smtpd_peer_sockaddr_to_hostaddr() 253 state->addr = mystrdup(colonp + 1); in smtpd_peer_sockaddr_to_hostaddr() 254 state->rfc_addr = mystrdup(colonp + 1); in smtpd_peer_sockaddr_to_hostaddr() 255 state->addr_family = AF_INET; in smtpd_peer_sockaddr_to_hostaddr() 257 hostaddr_to_sockaddr(state->addr, state->port, 0, &res0); in smtpd_peer_sockaddr_to_hostaddr() 260 myname, state->addr, state->port, in smtpd_peer_sockaddr_to_hostaddr() 263 if (sa_length > sizeof(state->sockaddr)) in smtpd_peer_sockaddr_to_hostaddr() [all …]
|
| /netbsd-src/external/cddl/osnet/dist/uts/common/zmod/ |
| H A D | inflate.c | 102 local void fixedtables OF((struct inflate_state FAR *state)); 113 struct inflate_state FAR *state; local 115 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR; 116 state = (struct inflate_state FAR *)strm->state; 117 strm->total_in = strm->total_out = state->total = 0; 120 state->mode = HEAD; 121 state->last = 0; 122 state->havedict = 0; 123 state->dmax = 32768U; 124 state->head = Z_NULL; [all …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/zlib/ |
| H A D | inflate.c | 96 local void fixedtables OF((struct inflate_state FAR *state)); 108 struct inflate_state FAR *state; local 112 state = (struct inflate_state FAR *)strm->state; 113 if (state == Z_NULL || state->strm != strm || 114 state->mode < HEAD || state->mode > SYNC) 122 struct inflate_state FAR *state; local 125 state = (struct inflate_state FAR *)strm->state; 126 strm->total_in = strm->total_out = state->total = 0; 128 if (state->wrap) /* to support ill-conceived Java test suite */ 129 strm->adler = state->wrap & 1; [all …]
|
| H A D | gzread.c | 21 local int gz_load(state, buf, len, have) in gz_load() argument 22 gz_statep state; in gz_load() 35 ret = read(state->fd, buf + *have, get); 41 gz_error(state, Z_ERRNO, zstrerror()); 45 state->eof = 1; 56 local int gz_avail(state) in gz_avail() argument 57 gz_statep state; in gz_avail() 60 z_streamp strm = &(state->strm); 62 if (state->err != Z_OK && state->err != Z_BUF_ERROR) 64 if (state->eof == 0) { [all …]
|
| H A D | gzwrite.c | 17 local int gz_init(state) in gz_init() argument 18 gz_statep state; in gz_init() 21 z_streamp strm = &(state->strm); 24 state->in = (unsigned char *)malloc(state->want << 1); 25 if (state->in == NULL) { 26 gz_error(state, Z_MEM_ERROR, "out of memory"); 31 if (!state->direct) { 33 state->out = (unsigned char *)malloc(state->want); 34 if (state->out == NULL) { 35 free(state->in); [all …]
|
| H A D | infback.c | 19 local void fixedtables OF((struct inflate_state FAR *state)); 35 struct inflate_state FAR *state; local 58 state = (struct inflate_state FAR *)ZALLOC(strm, 1, 60 if (state == Z_NULL) return Z_MEM_ERROR; 62 strm->state = (struct internal_state FAR *)state; 63 state->dmax = 32768U; 64 state->wbits = (uInt)windowBits; 65 state->wsize = 1U << windowBits; 66 state->window = window; 67 state->wnext = 0; [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/zlib/ |
| H A D | inflate.c | 96 local void fixedtables OF((struct inflate_state FAR *state)); 108 struct inflate_state FAR *state; local 112 state = (struct inflate_state FAR *)strm->state; 113 if (state == Z_NULL || state->strm != strm || 114 state->mode < HEAD || state->mode > SYNC) 122 struct inflate_state FAR *state; local 125 state = (struct inflate_state FAR *)strm->state; 126 strm->total_in = strm->total_out = state->total = 0; 128 if (state->wrap) /* to support ill-conceived Java test suite */ 129 strm->adler = state->wrap & 1; [all …]
|
| H A D | gzread.c | 21 local int gz_load(state, buf, len, have) in gz_load() argument 22 gz_statep state; in gz_load() 35 ret = read(state->fd, buf + *have, get); 41 gz_error(state, Z_ERRNO, zstrerror()); 45 state->eof = 1; 56 local int gz_avail(state) in gz_avail() argument 57 gz_statep state; in gz_avail() 60 z_streamp strm = &(state->strm); 62 if (state->err != Z_OK && state->err != Z_BUF_ERROR) 64 if (state->eof == 0) { [all …]
|
| H A D | gzwrite.c | 17 local int gz_init(state) in gz_init() argument 18 gz_statep state; in gz_init() 21 z_streamp strm = &(state->strm); 24 state->in = (unsigned char *)malloc(state->want << 1); 25 if (state->in == NULL) { 26 gz_error(state, Z_MEM_ERROR, "out of memory"); 31 if (!state->direct) { 33 state->out = (unsigned char *)malloc(state->want); 34 if (state->out == NULL) { 35 free(state->in); [all …]
|
| H A D | infback.c | 19 local void fixedtables OF((struct inflate_state FAR *state)); 35 struct inflate_state FAR *state; local 58 state = (struct inflate_state FAR *)ZALLOC(strm, 1, 60 if (state == Z_NULL) return Z_MEM_ERROR; 62 strm->state = (struct internal_state FAR *)state; 63 state->dmax = 32768U; 64 state->wbits = (uInt)windowBits; 65 state->wsize = 1U << windowBits; 66 state->window = window; 67 state->wnext = 0; [all …]
|
| /netbsd-src/external/gpl3/gdb/dist/zlib/ |
| H A D | inflate.c | 96 local void fixedtables OF((struct inflate_state FAR *state)); 108 struct inflate_state FAR *state; local 112 state = (struct inflate_state FAR *)strm->state; 113 if (state == Z_NULL || state->strm != strm || 114 state->mode < HEAD || state->mode > SYNC) 122 struct inflate_state FAR *state; local 125 state = (struct inflate_state FAR *)strm->state; 126 strm->total_in = strm->total_out = state->total = 0; 128 if (state->wrap) /* to support ill-conceived Java test suite */ 129 strm->adler = state->wrap & 1; [all …]
|
| H A D | gzread.c | 21 local int gz_load(state, buf, len, have) in gz_load() argument 22 gz_statep state; in gz_load() 35 ret = read(state->fd, buf + *have, get); 41 gz_error(state, Z_ERRNO, zstrerror()); 45 state->eof = 1; 56 local int gz_avail(state) in gz_avail() argument 57 gz_statep state; in gz_avail() 60 z_streamp strm = &(state->strm); 62 if (state->err != Z_OK && state->err != Z_BUF_ERROR) 64 if (state->eof == 0) { [all …]
|
| H A D | gzwrite.c | 17 local int gz_init(state) in gz_init() argument 18 gz_statep state; in gz_init() 21 z_streamp strm = &(state->strm); 24 state->in = (unsigned char *)malloc(state->want << 1); 25 if (state->in == NULL) { 26 gz_error(state, Z_MEM_ERROR, "out of memory"); 31 if (!state->direct) { 33 state->out = (unsigned char *)malloc(state->want); 34 if (state->out == NULL) { 35 free(state->in); [all …]
|
| H A D | infback.c | 19 local void fixedtables OF((struct inflate_state FAR *state)); 35 struct inflate_state FAR *state; local 58 state = (struct inflate_state FAR *)ZALLOC(strm, 1, 60 if (state == Z_NULL) return Z_MEM_ERROR; 62 strm->state = (struct internal_state FAR *)state; 63 state->dmax = 32768U; 64 state->wbits = (uInt)windowBits; 65 state->wsize = 1U << windowBits; 66 state->window = window; 67 state->wnext = 0; [all …]
|
| /netbsd-src/external/ibm-public/postfix/dist/src/qmqpd/ |
| H A D | qmqpd.c | 266 static void qmqpd_open_file(QMQPD_STATE *state) in qmqpd_open_file() argument 276 state->dest = mail_stream_service(MAIL_CLASS_PUBLIC, var_cleanup_service); in qmqpd_open_file() 277 if (state->dest == 0 in qmqpd_open_file() 278 || attr_print(state->dest->stream, ATTR_FLAG_NONE, in qmqpd_open_file() 283 state->cleanup = state->dest->stream; in qmqpd_open_file() 284 state->queue_id = mystrdup(state->dest->id); in qmqpd_open_file() 285 msg_info("%s: client=%s", state->queue_id, state->namaddr); in qmqpd_open_file() 292 rec_fprintf(state->cleanup, REC_TYPE_TIME, REC_TYPE_TIME_FORMAT, in qmqpd_open_file() 293 REC_TYPE_TIME_ARG(state->arrival_time)); in qmqpd_open_file() 295 rec_fprintf(state->cleanup, REC_TYPE_FILT, "%s", var_filter_xport); in qmqpd_open_file() [all …]
|
| /netbsd-src/external/ibm-public/postfix/dist/src/posttls-finger/ |
| H A D | posttls-finger.c | 522 static void PRINTFLIKE(3, 4) command(STATE *state, int verbose, char *fmt,...) in command() argument 524 VSTREAM *stream = state->stream; in command() 540 if (verbose && !state->nochat) in command() 551 static RESPONSE *response(STATE *state, int verbose) in response() argument 553 VSTREAM *stream = state->stream; in response() 554 VSTRING *buf = state->buffer; in response() 581 if (verbose && !state->nochat) in response() 618 static int greeting(STATE *state) in greeting() argument 620 VSTREAM *stream = state->stream; in greeting() 636 if (((resp = response(state, 1))->code / 100) != 2) { in greeting() [all …]
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/ |
| H A D | drm_atomic_state_helper.c | 100 crtc->state = crtc_state; in __drm_atomic_helper_crtc_reset() 114 kzalloc(sizeof(*crtc->state), GFP_KERNEL); in drm_atomic_helper_crtc_reset() 116 if (crtc->state) in drm_atomic_helper_crtc_reset() 117 crtc->funcs->atomic_destroy_state(crtc, crtc->state); in drm_atomic_helper_crtc_reset() 132 struct drm_crtc_state *state) in __drm_atomic_helper_crtc_duplicate_state() argument 134 memcpy(state, crtc->state, sizeof(*state)); in __drm_atomic_helper_crtc_duplicate_state() 136 if (state->mode_blob) in __drm_atomic_helper_crtc_duplicate_state() 137 drm_property_blob_get(state->mode_blob); in __drm_atomic_helper_crtc_duplicate_state() 138 if (state->degamma_lut) in __drm_atomic_helper_crtc_duplicate_state() 139 drm_property_blob_get(state->degamma_lut); in __drm_atomic_helper_crtc_duplicate_state() [all …]
|
| /netbsd-src/external/gpl3/gdb/dist/sim/arm/ |
| H A D | arminit.c | 32 void ARMul_Reset (ARMul_State * state); 33 ARMword ARMul_DoCycle (ARMul_State * state); 34 unsigned ARMul_DoCoPro (ARMul_State * state); 35 ARMword ARMul_DoProg (ARMul_State * state); 36 ARMword ARMul_DoInstr (ARMul_State * state); 37 void ARMul_Abort (ARMul_State * state, ARMword address); 82 ARMul_State *state; in ARMul_NewState() local 85 state = (ARMul_State *) malloc (sizeof (ARMul_State)); in ARMul_NewState() 86 memset (state, 0, sizeof (ARMul_State)); in ARMul_NewState() 88 state->Emulate = RUN; in ARMul_NewState() [all …]
|
| /netbsd-src/external/ibm-public/postfix/dist/src/smtpstone/ |
| H A D | smtp-sink.c | 330 void (*delayed_response) (struct SINK_STATE *state, const char *); 341 #define PUSH_BACK_PEEK(state) (*(state)->push_back_ptr != 0) argument 342 #define PUSH_BACK_GET(state) (*(state)->push_back_ptr++) argument 343 #define PUSH_BACK_SET(state, text) ((state)->push_back_ptr = (text)) argument 412 static void hard_err_resp(SINK_STATE *state) in hard_err_resp() argument 414 smtp_printf(state->stream, "%s", hard_error_resp); in hard_err_resp() 415 SMTP_FLUSH(state->stream); in hard_err_resp() 420 static void soft_err_resp(SINK_STATE *state) in soft_err_resp() argument 422 smtp_printf(state->stream, "%s", soft_error_resp); in soft_err_resp() 423 SMTP_FLUSH(state->stream); in soft_err_resp() [all …]
|
| /netbsd-src/external/bsd/kyua-cli/dist/utils/config/ |
| H A D | lua_module.cpp | 52 get_global_tree(lutok::state& state) in get_global_tree() argument 54 lutok::stack_cleaner cleaner(state); in get_global_tree() 56 state.push_value(lutok::registry_index); in get_global_tree() 57 state.push_string("tree"); in get_global_tree() 58 state.get_table(-2); in get_global_tree() 59 if (state.is_nil()) in get_global_tree() 62 config::tree& tree = **state.to_userdata< config::tree* >(); in get_global_tree() 63 state.pop(1); in get_global_tree() 81 get_tree_key(lutok::state& state, const int table_index, const int field_index) in get_tree_key() argument 83 PRE(state.is_string(field_index)); in get_tree_key() [all …]
|