Searched defs:cp (Results 1 - 25 of 1492) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libcurses/screen/
H A Dlongname.c53 char *cp = strrchr(ttytype, '|'); local
55 if (cp)
56 return (++cp);
H A Dtgoto.c54 char *cp; local
56 cp = tparm_p2(cap, row, col);
57 return (cp);
/illumos-gate/usr/src/lib/libc/port/gen/
H A Datof.c40 atof(const char *cp) argument
42 return (strtod(cp, (char **)NULL));
/illumos-gate/usr/src/lib/libxcurses/src/libc/mks/
H A Dm_strdup.c50 char *cp; local
53 if ((cp = m_malloc(len = strlen(s)+1)) == NULL) {
57 return (memcpy(cp, s, len));
/illumos-gate/usr/src/lib/libxcurses/src/libc/wide/
H A Dm_wcsdup.c50 wchar_t *cp; local
54 cp = (wchar_t *)malloc(len = (wcslen(s) + 1) * sizeof(wchar_t));
55 if (cp == (wchar_t *)NULL) {
58 return ((wchar_t *)memcpy((char *)cp, s, len));
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dfree_krbhs.c39 register char * const *cp; local
41 for (cp = hostlist; *cp; cp++)
42 free(*cp);
/illumos-gate/usr/src/uts/i86pc/os/cpupm/
H A Dcpupm_amd.c35 cpupm_amd_init(cpu_t *cp) argument
38 (cpupm_mach_state_t *)(cp->cpu_m.mcpu_pm_mach_state);
/illumos-gate/usr/src/lib/libwrap/
H A Dpercent_m.c28 char *cp = ibuf; local
30 while (*bp = *cp)
31 if (*cp == '%' && cp[1] == 'm') {
34 cp += 2;
36 bp++, cp++;
/illumos-gate/usr/src/lib/libc/i386/sys/
H A D__clock_gettime.c26 comm_page_t *cp = (comm_page_t *)__uberdata.ub_comm_page; local
28 if (cp != NULL && __cp_can_gettime(cp) != 0) {
32 return (__cp_clock_gettime_realtime(cp, tp));
35 return (__cp_clock_gettime_monotonic(cp, tp));
/illumos-gate/usr/src/lib/libxcurses/src/libc/i18n/
H A Dm_strmsg.c50 char* cp; local
51 int id = (int)strtol(str, &cp, 0);
53 if (cp[0]!='#' || cp[1]!='#') /* no "##" delimiter */
56 return (m_textmsg(id, &cp[2], ""));
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dwinchn.c53 cchar_t *cp; local
61 for (cp = w->_line[w->_cury], x = w->_curx; x < eol; ++x, ++chs) {
62 if ((*chs = __m_cc_chtype(&cp[x])) == (chtype) ERR)
H A Dwbkgrnd.c60 cchar_t old_bg, *cp; local
70 for (cp = w->_line[y], x = 0; x < w->_maxx; ++x) {
71 old_bg._f = cp->_f;
72 if (__m_cc_compare(cp, &w->_bg, 0)) {
74 *cp = *bg;
77 cp->_at &= ~old_bg._at;
84 cp->_at |= bg->_at | w->_fg._at;
H A Dwin_wchn.c53 cchar_t *cp, null = { 0 }; local
61 for (cp = w->_line[w->_cury], x = w->_curx; x < eol; ++ccs) {
62 *ccs = *cp;
H A Dwinnwstr.c53 cchar_t *cp; local
60 cp = &w->_line[w->_cury][x];
63 if (n < cp->_n)
67 for (i = 0; i < cp->_n; ++i)
68 *wcs++ = cp->_wc[i];
/illumos-gate/usr/src/common/net/dhcp/
H A Dipv4_sum.c36 ipv4cksum(uint16_t *cp, uint16_t count) argument
46 sum += (uint_t)*cp++;
/illumos-gate/usr/src/cmd/mailx/
H A Dusg.local.c62 register char *cp; local
67 } else if ((cp = getenv("MAIL")) != NULL) {
69 nstrcpy(mailname, PATHSIZE, cp);
/illumos-gate/usr/src/cmd/backup/lib/
H A Dmemutils.c42 void *cp; local
44 cp = malloc(bytes);
45 if (cp == NULL) {
50 return (cp);
58 void *cp; local
60 cp = calloc(nelem, size);
61 if (cp == NULL) {
66 return (cp);
74 void *cp; local
77 cp
[all...]
/illumos-gate/usr/src/ucblib/libcurses/
H A Dfullname.c32 char *cp; local
37 cp = def; /* start of answer */
39 *cp++ = *bp++; /* copy name over */
41 *cp = 0; /* zero end of name */
H A Dlongname.c31 char *cp; local
37 cp = def;
39 *cp++ = *bp++;
40 *cp = 0;
/illumos-gate/usr/src/uts/common/syscall/
H A Dprocessor_info.c49 cpu_t *cp; local
53 if ((cp = cpu_get(cpun)) == NULL) {
57 bcopy(&cp->cpu_type_info, &temp, sizeof (temp));
/illumos-gate/usr/src/cmd/cmd-inet/common/
H A Dcompat.c51 char *cp; local
61 if ((cp = defread(DEFAULT_IP_LINE)) != NULL)
62 *value = strdup(cp);
/illumos-gate/usr/src/lib/libumem/common/
H A Dumem_agent_support.c37 __umem_agent_free_bp(umem_cache_t *cp, void *buf) argument
41 _umem_cache_free(cp, buf);
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dwaddwchn.c52 wadd_wchnstr(WINDOW *w, const cchar_t *cp, int n) argument
59 for (x = w->_curx; x < n && cp->_n != 0 && cp->_wc[0] != '\0';
60 x += width, ++cp)
61 width = __m_cc_replace(w, w->_cury, x, cp, 0);
/illumos-gate/usr/src/uts/common/disp/
H A Dthread_intr.c50 thread_create_intr(cpu_t *cp) argument
66 THREAD_FREEINTR(tp, cp);
74 tp->t_cpu = cp;
75 tp->t_bound_cpu = cp;
76 tp->t_disp_queue = cp->cpu_disp;
95 tp->t_link = cp->cpu_intr_thread;
96 cp->cpu_intr_thread = tp;
105 cpu_intr_alloc(cpu_t *cp, int n) argument
110 thread_create_intr(cp);
112 cp
[all...]
/illumos-gate/usr/src/ucbcmd/biff/
H A Dbiff.c57 char *cp = ttyname(2); local
68 if (cp == 0) {
75 if (stat(cp, &stb) < 0)
76 perror(cp), exit(1);
85 if (chmod(cp, stb.st_mode|0100) < 0)
86 perror(cp);
90 if (chmod(cp, stb.st_mode&~0100) < 0)
91 perror(cp);

Completed in 213 milliseconds

1234567891011>>