Home
last modified time | relevance | path

Searched refs:new (Results 1 – 25 of 4780) sorted by relevance

12345678910>>...192

/netbsd-src/sys/ufs/ext2fs/
H A Dext2fs_bswap.c44 e2fs_sb_bswap(struct ext2fs *old, struct ext2fs *new) in e2fs_sb_bswap() argument
48 memcpy(new, old, sizeof(struct ext2fs)); in e2fs_sb_bswap()
49 new->e2fs_icount = bswap32(old->e2fs_icount); in e2fs_sb_bswap()
50 new->e2fs_bcount = bswap32(old->e2fs_bcount); in e2fs_sb_bswap()
51 new->e2fs_rbcount = bswap32(old->e2fs_rbcount); in e2fs_sb_bswap()
52 new->e2fs_fbcount = bswap32(old->e2fs_fbcount); in e2fs_sb_bswap()
53 new->e2fs_ficount = bswap32(old->e2fs_ficount); in e2fs_sb_bswap()
54 new->e2fs_first_dblock = bswap32(old->e2fs_first_dblock); in e2fs_sb_bswap()
55 new->e2fs_log_bsize = bswap32(old->e2fs_log_bsize); in e2fs_sb_bswap()
56 new->e2fs_fsize = bswap32(old->e2fs_fsize); in e2fs_sb_bswap()
[all …]
/netbsd-src/external/bsd/libbind/dist/isc/
H A Dev_connects.c69 evConn *new; in evListen() local
72 OKNEW(new); in evListen()
73 new->flags = EV_CONN_LISTEN; in evListen()
74 OKFREE(mode = fcntl(fd, F_GETFL, NULL), new); /*%< side effect: validate fd. */ in evListen()
85 OKFREE(ioctl(fd, FIONBIO, (char *)&on), new); in evListen()
87 OKFREE(fcntl(fd, F_SETFL, mode | PORT_NONBLOCK), new); in evListen()
89 new->flags |= EV_CONN_BLOCK; in evListen()
91 OKFREE(listen(fd, maxconn), new); in evListen()
92 if (evSelectFD(opaqueCtx, fd, EV_READ, listener, new, &new->file) < 0){ in evListen()
95 FREE(new); in evListen()
[all …]
H A Dev_waits.c57 evWait *new; in evWaitFor() local
60 OKNEW(new); in evWaitFor()
61 new->func = func; in evWaitFor()
62 new->uap = uap; in evWaitFor()
63 new->tag = tag; in evWaitFor()
64 new->next = NULL; in evWaitFor()
66 wl->last->next = new; in evWaitFor()
68 wl->first = new; in evWaitFor()
69 wl->last = new; in evWaitFor()
71 id->opaque = new; in evWaitFor()
[all …]
H A Dev_streams.c63 evStream *new; in evWrite() local
66 OKNEW(new); in evWrite()
67 new->func = func; in evWrite()
68 new->uap = uap; in evWrite()
69 new->fd = fd; in evWrite()
70 new->flags = 0; in evWrite()
71 if (evSelectFD(opaqueCtx, fd, EV_WRITE, writable, new, &new->file) < 0) in evWrite()
73 if (copyvec(new, iov, iocnt) < 0) in evWrite()
75 new->prevDone = NULL; in evWrite()
76 new->nextDone = NULL; in evWrite()
[all …]
/netbsd-src/crypto/dist/ipsec-tools/src/racoon/
H A Dremoteconf.c488 struct remoteconf *new; in newrmconf() local
491 new = racoon_calloc(1, sizeof(*new)); in newrmconf()
492 if (new == NULL) in newrmconf()
495 new->proposal = NULL; in newrmconf()
498 new->doitype = IPSEC_DOI; in newrmconf()
499 new->sittype = IPSECDOI_SIT_IDENTITY_ONLY; in newrmconf()
500 new->idvtype = IDTYPE_UNDEFINED; in newrmconf()
501 new->idvl_p = genlist_init(); in newrmconf()
502 new->nonce_size = DEFAULT_NONCE_SIZE; in newrmconf()
503 new->passive = FALSE; in newrmconf()
[all …]
/netbsd-src/usr.bin/find/
H A Dfunction.c238 PLAN *new; in c_amin() local
243 new = palloc(N_AMIN, f_amin); in c_amin()
244 new->t_data = find_parsenum(new, opt, arg, NULL); in c_amin()
245 TIME_CORRECT(new, N_AMIN); in c_amin()
246 return (new); in c_amin()
267 PLAN *new; in c_anewer() local
275 new = palloc(N_ANEWER, f_anewer); in c_anewer()
276 new->ts_data = sb.st_atim; in c_anewer()
277 return (new); in c_anewer()
295 PLAN *new; in c_asince() local
[all …]
/netbsd-src/external/bsd/openldap/dist/libraries/liblber/
H A Dmemory.c200 void *new; in ber_memalloc_x() local
209 new = malloc(s + sizeof(struct ber_mem_hdr) + sizeof( ber_int_t)); in ber_memalloc_x()
210 if( new ) in ber_memalloc_x()
212 struct ber_mem_hdr *mh = new; in ber_memalloc_x()
230 new = &mh[1]; in ber_memalloc_x()
233 new = malloc( s ); in ber_memalloc_x()
236 new = (*ber_int_memory_fns->bmf_malloc)( s, ctx ); in ber_memalloc_x()
239 if( new == NULL ) { in ber_memalloc_x()
243 return new; in ber_memalloc_x()
255 void *new; in ber_memcalloc_x() local
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/d/dmd/
H A Dclone.c94 UnionExp er; new(&er) NullExp(ad->loc, ad->type); // dummy rvalue in hasIdentityOpAssign()
95 UnionExp el; new(&el) IdentifierExp(ad->loc, Id::p); // dummy lvalue in hasIdentityOpAssign()
247 Parameters *fparams = new Parameters; in buildOpAssign()
248 fparams->push(new Parameter(STCnodtor, sd->type, Id::p, NULL)); in buildOpAssign()
249 TypeFunction *tf = new TypeFunction(fparams, sd->handleType(), 0, LINKd, stc | STCref); in buildOpAssign()
251 FuncDeclaration *fop = new FuncDeclaration(declLoc, Loc(), Id::assign, stc, tf); in buildOpAssign()
269 tmp = new VarDeclaration(loc, sd->type, idtmp, new VoidInitializer(loc)); in buildOpAssign()
271 e = new DeclarationExp(loc, tmp); in buildOpAssign()
272 ec = new BlitExp(loc, new VarExp(loc, tmp), new ThisExp(loc)); in buildOpAssign()
275 ec = new BlitExp(loc, new ThisExp(loc), new IdentifierExp(loc, Id::p)); in buildOpAssign()
[all …]
H A Dcond.c69 return new StaticForeach( in syntaxCopy()
87 Expression *el = new ArrayLengthExp(aggr->loc, aggr); in lowerArrayAggregate()
105 es = new Expressions(); in lowerArrayAggregate()
109 IntegerExp *index = new IntegerExp(sfe->loc, i, Type::tsize_t); in lowerArrayAggregate()
110 Expression *value = new IndexExp(aggr->loc, aggr, index); in lowerArrayAggregate()
114 sfe->aggrfe->aggr = new TupleExp(aggr->loc, es); in lowerArrayAggregate()
121 sfe->aggrfe->aggr = new ErrorExp(); in lowerArrayAggregate()
137 TypeFunction *tf = new TypeFunction(new Parameters(), NULL, 0, LINKdefault, 0); in wrapAndCall()
138 FuncLiteralDeclaration *fd = new FuncLiteralDeclaration(loc, loc, tf, TOKreserved, NULL); in wrapAndCall()
140 FuncExp *fe = new FuncExp(loc, fd); in wrapAndCall()
[all …]
H A Dstatementsem.c64 result = new ErrorStatement(); in setError()
100 s->exp = new ErrorExp(); in visit()
104 s->exp = new ErrorExp(); in visit()
107 s->exp = new ErrorExp(); in visit()
123 Statement *s = new CompoundStatement(cs->loc, a); in visit()
174 Statements *a = new Statements(); in visit()
179 Statement *body = new CompoundStatement(Loc(), a); in visit()
180 body = new ScopeStatement(Loc(), body, Loc()); in visit()
184 Statement *handler = new PeelStatement(sexception); in visit()
187 … ThrowStatement *ts = new ThrowStatement(Loc(), new IdentifierExp(Loc(), id)); in visit()
[all …]
/netbsd-src/external/bsd/elftosb/dist/elftosb2/
H A Delftosb_parser.y168 CommandFileASTNode * commandFile = new CommandFileASTNode();
178 ListASTNode * list = new ListASTNode();
197 $$ = new OptionsBlockASTNode(dynamic_cast<ListASTNode *>($3));
203 $$ = new ConstantsBlockASTNode(dynamic_cast<ListASTNode *>($3));
209 ListASTNode * list = new ListASTNode();
226 $$ = new AssignmentASTNode($1, $3);
233 $$ = new SourcesBlockASTNode(dynamic_cast<ListASTNode *>($3));
239 ListASTNode * list = new ListASTNode();
268 $$ = new PathSourceDefASTNode($1, $3);
273 $$ = new ExternSourceDefASTNode($1, dynamic_cast<ExprASTNode*>($5));
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/d/dmd/
H A Dclone.d105 scope er = new NullExp(ad.loc, ad.type); // dummy rvalue in hasIdentityOpAssign()
106 scope el = new IdentifierExp(ad.loc, Id.p); // dummy lvalue in hasIdentityOpAssign()
299 auto fparams = new Parameters(); in buildOpAssign()
300 fparams.push(new Parameter(STC.nodtor, sd.type, Id.p, null, null)); in buildOpAssign()
301 auto tf = new TypeFunction(ParameterList(fparams), sd.handleType(), LINK.d, stc | STC.ref_); in buildOpAssign()
302 auto fop = new FuncDeclaration(declLoc, Loc.initial, Id.assign, stc, tf); in buildOpAssign()
320 auto swap = new VarDeclaration(loc, sd.type, idswap, new VoidInitializer(loc)); in buildOpAssign()
324 auto e1 = new DeclarationExp(loc, swap); in buildOpAssign()
326 auto e2 = new BlitExp(loc, new VarExp(loc, swap), new ThisExp(loc)); in buildOpAssign()
327 auto e3 = new BlitExp(loc, new ThisExp(loc), new IdentifierExp(loc, Id.p)); in buildOpAssign()
[all …]
H A Dstatementsem.d146 scope v = new StatementSemanticVisitor(sc); in statementSemantic()
169 result = new ErrorStatement(); in package()
236 Statement s = new CompoundStatement(cs.loc, a); in package()
328 auto a = new Statements(); in package()
332 Statement _body = new CompoundStatement(Loc.initial, a); in package()
333 _body = new ScopeStatement(Loc.initial, _body, Loc.initial); in package()
337 Statement handler = new PeelStatement(sexception); in package()
340 … auto ts = new ThrowStatement(Loc.initial, new IdentifierExp(Loc.initial, id)); in package()
342 handler = new CompoundStatement(Loc.initial, handler, ts); in package()
345 auto catches = new Catches(); in package()
[all …]
/netbsd-src/external/cddl/dtracetoolkit/dist/Docs/Examples/
H A Djs_calls_example.txt21 func_clock.html obj-new Date 1
24 This shows the type of calls made, 1 exec, one obj-new, several func; a more
55 <null> obj-new BarProp 1
56 <null> obj-new CSSStyleDeclaration 1
57 <null> obj-new Global Scope Polluter 1
58 <null> obj-new HTMLCollection 1
59 <null> obj-new HTMLDocument 1
60 <null> obj-new HTMLHtmlElement 1
61 <null> obj-new KeyboardEvent 1
62 <null> obj-new NodeList 1
[all …]
/netbsd-src/external/cddl/dtracetoolkit/dist/Examples/
H A Djs_calls_example.txt21 func_clock.html obj-new Date 1
24 This shows the type of calls made, 1 exec, one obj-new, several func; a more
55 <null> obj-new BarProp 1
56 <null> obj-new CSSStyleDeclaration 1
57 <null> obj-new Global Scope Polluter 1
58 <null> obj-new HTMLCollection 1
59 <null> obj-new HTMLDocument 1
60 <null> obj-new HTMLHtmlElement 1
61 <null> obj-new KeyboardEvent 1
62 <null> obj-new NodeList 1
[all …]
/netbsd-src/lib/libform/
H A Dfield_types.c93 FIELDTYPE *new; in _formi_create_fieldtype() local
95 if ((new = malloc(sizeof(*new))) == NULL) in _formi_create_fieldtype()
98 new->flags = _TYPE_NO_FLAGS; in _formi_create_fieldtype()
99 new->refcount = 0; in _formi_create_fieldtype()
100 new->link = NULL; in _formi_create_fieldtype()
101 new->make_args = NULL; in _formi_create_fieldtype()
102 new->copy_args = NULL; in _formi_create_fieldtype()
103 new->free_args = NULL; in _formi_create_fieldtype()
104 new->field_check = NULL; in _formi_create_fieldtype()
105 new->char_check = NULL; in _formi_create_fieldtype()
[all …]
H A Dtype_alnum.c55 alnum_args *new; in create_alnum_args() local
57 new = malloc(sizeof(*new)); in create_alnum_args()
59 if (new != NULL) in create_alnum_args()
60 new->width = va_arg(*args, int); in create_alnum_args()
62 return (void *)new; in create_alnum_args()
71 alnum_args *new; in copy_alnum_args() local
73 new = malloc(sizeof(*new)); in copy_alnum_args()
75 if (new != NULL) in copy_alnum_args()
76 new->width = ((alnum_args *) (void *)args)->width; in copy_alnum_args()
78 return (void *)new; in copy_alnum_args()
[all …]
H A Dtype_alpha.c57 alpha_args *new; in create_alpha_args() local
59 new = malloc(sizeof(*new)); in create_alpha_args()
61 if (new != NULL) in create_alpha_args()
62 new->width = va_arg(*args, int); in create_alpha_args()
64 return (void *) new; in create_alpha_args()
73 alpha_args *new; in copy_alpha_args() local
75 new = malloc(sizeof(*new)); in copy_alpha_args()
77 if (new != NULL) in copy_alpha_args()
78 new->width = ((alpha_args *) (void *) args)->width; in copy_alpha_args()
80 return (void *) new; in copy_alpha_args()
[all …]
H A Dtype_enum.c87 enum_args *new; in create_enum_args() local
90 new = malloc(sizeof(*new)); in create_enum_args()
91 if (new == NULL) in create_enum_args()
94 new->choices = va_arg(*args, char **); in create_enum_args()
95 new->ignore_case = (va_arg(*args, int)) ? TRUE : FALSE; in create_enum_args()
96 new->exact = (va_arg(*args, int)) ? TRUE : FALSE; in create_enum_args()
99 new->ignore_case, new->exact); in create_enum_args()
102 choices = new->choices; in create_enum_args()
103 new->num_choices = 0; in create_enum_args()
106 new->num_choices, new->choices[new->num_choices]); in create_enum_args()
[all …]
H A Dfield.c748 FIELD *new; in _formi_create_field() local
754 if ((new = malloc(sizeof(*new))) == NULL) { in _formi_create_field()
759 memcpy(new, prototype, sizeof(*new)); in _formi_create_field()
761 new->nbuf = nbuf + 1; in _formi_create_field()
762 new->rows = rows; in _formi_create_field()
763 new->cols = cols; in _formi_create_field()
764 new->form_row = frow; in _formi_create_field()
765 new->form_col = fcol; in _formi_create_field()
766 new->nrows = nrows; in _formi_create_field()
767 new->link = new; in _formi_create_field()
[all …]
/netbsd-src/external/bsd/nvi/dist/vi/
H A Dvs_split.c49 vs_split(SCR *sp, SCR *new, int ccl) in vs_split() argument
72 CALLOC(sp, _HMAP(new), SMAP *, SIZE_HMAP(sp), sizeof(SMAP)); in vs_split()
73 if (_HMAP(new) == NULL) in vs_split()
75 _HMAP(new)->lno = sp->lno; in vs_split()
76 _HMAP(new)->coff = 0; in vs_split()
77 _HMAP(new)->soff = 1; in vs_split()
91 new->coff = sp->coff; in vs_split()
92 new->cols = sp->cols; in vs_split()
107 new->rows = sp->rows - half; /* New. */ in vs_split()
108 new->roff = sp->roff; in vs_split()
[all …]
/netbsd-src/lib/libc/isc/
H A Dev_streams.c71 evStream *new; in evWrite() local
74 OKNEW(new); in evWrite()
75 new->func = func; in evWrite()
76 new->uap = uap; in evWrite()
77 new->fd = fd; in evWrite()
78 new->flags = 0; in evWrite()
79 if (evSelectFD(opaqueCtx, fd, EV_WRITE, writable, new, &new->file) < 0) in evWrite()
81 if (copyvec(new, iov, iocnt) < 0) in evWrite()
83 new->prevDone = NULL; in evWrite()
84 new->nextDone = NULL; in evWrite()
[all …]
/netbsd-src/external/bsd/nvi/dist/ex/
H A Dex_edit.c121 SCR *new; in ex_N_edit() local
124 if (screen_init(sp->gp, sp, &new)) in ex_N_edit()
126 if ((cmdp->cmd == &cmds[C_VSPLIT] && vs_vsplit(sp, new)) || in ex_N_edit()
127 (cmdp->cmd != &cmds[C_VSPLIT] && vs_split(sp, new, 0))) { in ex_N_edit()
128 (void)screen_fini(new); in ex_N_edit()
135 new->ep = sp->ep; in ex_N_edit()
136 ++new->ep->refcnt; in ex_N_edit()
137 TAILQ_INSERT_HEAD(&new->ep->scrq, new, eq); in ex_N_edit()
139 new->frp = frp; in ex_N_edit()
140 new->frp->flags = sp->frp->flags; in ex_N_edit()
[all …]
/netbsd-src/sys/lib/libsa/
H A Dext2fs.c889 e2fs_sb_bswap(struct ext2fs *old, struct ext2fs *new) in e2fs_sb_bswap() argument
893 memcpy(new, old, sizeof(struct ext2fs)); in e2fs_sb_bswap()
894 new->e2fs_icount = bswap32(old->e2fs_icount); in e2fs_sb_bswap()
895 new->e2fs_bcount = bswap32(old->e2fs_bcount); in e2fs_sb_bswap()
896 new->e2fs_rbcount = bswap32(old->e2fs_rbcount); in e2fs_sb_bswap()
897 new->e2fs_fbcount = bswap32(old->e2fs_fbcount); in e2fs_sb_bswap()
898 new->e2fs_ficount = bswap32(old->e2fs_ficount); in e2fs_sb_bswap()
899 new->e2fs_first_dblock = bswap32(old->e2fs_first_dblock); in e2fs_sb_bswap()
900 new->e2fs_log_bsize = bswap32(old->e2fs_log_bsize); in e2fs_sb_bswap()
901 new->e2fs_fsize = bswap32(old->e2fs_fsize); in e2fs_sb_bswap()
[all …]
/netbsd-src/external/bsd/pcc/dist/pcc/cc/ccom/
H A Dsymtabs.c86 struct tree *w, *new, *last; in symtab_add() local
136 new = getree(); in symtab_add()
138 new->bitno = cix | (bit ? RIGHT_IS_LEAF : LEFT_IS_LEAF); in symtab_add()
139 new->lr[bit] = (struct tree *)newstring(key, len); in symtab_add()
143 new->lr[!bit] = *first; in symtab_add()
144 new->bitno |= (bit ? LEFT_IS_LEAF : RIGHT_IS_LEAF); in symtab_add()
145 *first = new; in symtab_add()
146 return (char *)new->lr[bit]; in symtab_add()
166 new->lr[!bit] = w; in symtab_add()
168 *first = new; in symtab_add()
[all …]

12345678910>>...192