/illumos-gate/usr/src/cmd/tnf/prex/ |
H A D | new.h | 45 #define new(t) ((t *) (new_alloc(sizeof (t)))) macro
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | setcurscreen.c | 48 setcurscreen(SCREEN *new) argument 52 if (new != SP) { 56 fprintf(outf, "setterm: old %x, new %x\n", rv, new); 59 SP = new; 60 if (new) {
|
H A D | dupwin.c | 52 * SS: calling makenew to allocate a new window is wastefull, since 60 WINDOW *new; local 66 /* allocate storage for new window and do block copy of */ 67 /* old one into new */ 69 if ((new = (WINDOW *) malloc(sizeof (WINDOW))) == NULL) 72 (void) memcpy(new, win, sizeof (WINDOW)); 74 /* allocate storage for "malloced" fields of the new window */ 76 if ((new->_firstch = (short *)malloc((unsigned)2 * line_size)) == NULL) 81 if ((new->_y = (chtype **) malloc(nlines * sizeof (chtype *))) == 87 free((char *)new [all...] |
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | ualarm.c | 24 struct itimerval new, old; local 26 new.it_interval.tv_usec = reload % USPS; 27 new.it_interval.tv_sec = reload / USPS; 29 new.it_value.tv_usec = usecs % USPS; 30 new.it_value.tv_sec = usecs / USPS; 32 if (setitimer(ITIMER_REAL, &new, &old) == 0)
|
/illumos-gate/usr/src/lib/libgen/common/ |
H A D | strtrns.c | 34 * in both `str' and `old' with the corresponding character from `new'. 39 strtrns(const char *str, const char *old, const char *new, argument 48 *r = new[o - old -1];
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | addsev.c | 49 void *new; local 70 /* Allocate new entry */ 71 new = libc_realloc(__pfmt_sev_tab, 73 if (new == NULL) { 78 __pfmt_sev_tab = new; 89 new = libc_realloc(__pfmt_sev_tab[i].string, strlen(string) + 1); 90 if (new == NULL) { 95 __pfmt_sev_tab[i].string = new;
|
H A D | ualarm.c | 32 struct itimerval new, old; local 34 new.it_interval.tv_usec = reload % USPS; 35 new.it_interval.tv_sec = reload / USPS; 37 new.it_value.tv_usec = usecs % USPS; 38 new.it_value.tv_sec = usecs / USPS; 40 if (setitimer(ITIMER_REAL, &new, &old) != 0)
|
/illumos-gate/usr/src/cmd/mail/ |
H A D | copyback.c | 36 * the mail file. First copy any new mail from 45 int new = 0; local 58 * Has new mail arrived? 66 * Append new mail assume only one new letter 81 new = 1; 173 if (new && !flgf) {
|
/illumos-gate/usr/src/cmd/fm/fminject/common/ |
H A D | inj_list.c | 36 inj_list_append(inj_list_t *mlp, void *new) argument 39 inj_list_t *q = new; /* q = new list element */ 55 inj_list_prepend(inj_list_t *mlp, void *new) argument 57 inj_list_t *p = new; /* p = new list element */
|
/illumos-gate/usr/src/uts/common/avs/ns/solaris/ |
H A D | nsc_list.c | 53 * Link new into list after old. 60 ls_ins_after(ls_elt_t *old, ls_elt_t *new) argument 62 new->ls_next = old->ls_next; 63 new->ls_prev = old; 64 new->ls_next->ls_prev = new; 65 new->ls_prev->ls_next = new; 72 * Link new into list after old. 79 ls_ins_before(ls_elt_t *old, ls_elt_t *new) argument [all...] |
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_list.c | 43 dt_list_append(dt_list_t *dlp, void *new) argument 46 dt_list_t *q = new; /* q = new list element */ 62 dt_list_prepend(dt_list_t *dlp, void *new) argument 64 dt_list_t *p = new; /* p = new list element */ 81 dt_list_insert(dt_list_t *dlp, void *after_me, void *new) argument 84 dt_list_t *q = new; 87 dt_list_append(dlp, new);
|
/illumos-gate/usr/src/cmd/ypcmd/revnetgroup/ |
H A D | table.c | 71 tablelist cur, new; local 76 new = MALLOC(tablenode); 77 new->key = key; 78 new->datum = datum; 79 new->next = cur; 80 table[index] = new;
|
/illumos-gate/usr/src/cmd/svr4pkg/installf/ |
H A D | removef.c | 48 struct cfextra *new; local 66 /* strip trailing new line */ 99 new = calloc(1, sizeof (struct cfextra)); 100 if (new == NULL) { 104 new->cf_ent.ftype = '-'; 106 (void) eval_path(&(new->server_path), &(new->client_path), 107 &(new->map_path), path); 109 new->cf_ent.path = new [all...] |
/illumos-gate/usr/src/lib/efcode/extend/ |
H A D | fthread.c | 40 fcode_env_t *new; local 45 new = clone_environment(cenv, NULL); 46 if (new) { 47 envs[envc] = new; 48 env = new;
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/i18n/ |
H A D | m_text.c | 63 char *new = strdup(s); local 67 if (new == NULL) 72 lastmsg = new; 75 if (*new == '!') 76 new++; 79 for ( ; *new != '\0'; new++) 80 *new = M_UNVARIANT(*new);
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | scr_dump.c | 78 WINDOW *new; local 83 new = getwin(fp); 86 if (new == (WINDOW *) 0) 89 if (new->_maxy != w->_maxy || new->_maxx != w->_maxx) { 90 (void) delwin(new); 98 *w = *new; 106 new->_base = (cchar_t *) 0; 107 new->_line = (cchar_t **) 0; 108 new [all...] |
H A D | vid_puts.c | 200 attr_t new = attr; local 204 new = WA_NORMAL; 209 new &= ~WA_UNDERLINE; 215 new &= ~WA_STANDOUT; 221 new &= ~WA_ALTCHARSET; 225 return new; 231 attr_t new = attr; local 236 new |= WA_ALTCHARSET; 241 new |= WA_BLINK; 246 new | [all...] |
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | scr_dump.c | 76 WINDOW *new; local 81 new = getwin(fp); 84 if (new == NULL) 87 if (new->_maxy != w->_maxy || new->_maxx != w->_maxx) { 88 (void) delwin(new); 96 new->_flags &= ~W_CLEAR_WINDOW; /* Removed default clear command */ 97 *w = *new; 105 new->_base = NULL; 106 new [all...] |
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | pr_rename.c | 36 pr_rename(struct ps_prochandle *Pr, const char *old, const char *new) argument 44 return (rename(old, new)); 60 adp++; /* move to new fd argument */ 67 adp++; /* move to new argument */ 69 adp->arg_object = (void *)new; 72 adp->arg_size = strlen(new) + 1; 87 pr_link(struct ps_prochandle *Pr, const char *existing, const char *new) argument 95 return (link(existing, new)); 118 adp++; /* new argument */ 120 adp->arg_object = (void *)new; [all...] |
/illumos-gate/usr/src/lib/libbc/libc/gen/sys5/ |
H A D | sleep.c | 35 struct itimerval new, old, zero; local 36 struct itimerval *newp = &new; 84 * I use reset instead of what new points to because the 97 newp = &new;
|
/illumos-gate/usr/src/lib/libipmi/common/ |
H A D | ipmi_list.c | 43 ipmi_list_append(ipmi_list_t *lp, void *new) argument 46 ipmi_list_t *q = new; /* q = new list element */ 62 ipmi_list_prepend(ipmi_list_t *lp, void *new) argument 64 ipmi_list_t *p = new; /* p = new list element */ 81 ipmi_list_insert_before(ipmi_list_t *lp, void *before_me, void *new) argument 84 ipmi_list_t *q = new; 87 ipmi_list_prepend(lp, new); 98 ipmi_list_insert_after(ipmi_list_t *lp, void *after_me, void *new) argument [all...] |
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | charray.c | 148 char **new; local 153 new = (char **)NSLDAPI_MALLOC( (i + 1) * sizeof(char *) ); 154 if ( new == NULL ) { 159 new[i] = nsldapi_strdup( a[i] ); 160 if ( new[i] == NULL ) { 164 NSLDAPI_FREE( new[j] ); 165 NSLDAPI_FREE( new ); 169 new[i] = NULL; 171 return( new );
|
/illumos-gate/usr/src/cmd/perl/contrib/Sun/Solaris/BSM/ |
H A D | _BSMparse.pm | 48 sub new { subroutine
|
/illumos-gate/usr/src/cmd/powertop/common/ |
H A D | suggestions.c | 63 * Add a new suggestion. Only one suggestion per text allowed. 68 sugg_t *new, *n, *pos = NULL; local 80 if ((new = calloc(1, sizeof (sugg_t))) == NULL) 84 new->sb_msg = strdup(sb_msg); 87 new->text = strdup(text); 89 new->weight = weight; 90 new->key = key; 91 new->func = func; 92 new->slice = 0; 94 sugg = new; [all...] |
/illumos-gate/usr/src/cmd/device_remap/ |
H A D | device_remap.pl | 46 sub new { subroutine 246 our ($old, $new); 259 $newpat = '"' . $new . '/'; 288 print "replacing $old with $new in /etc/path_to_inst\n"; 291 # substitute new for old 324 $targ =~ s/$old/$new/; 348 ($old, $new) = @_; 394 $md = MDesc->new;
|