Searched defs:to (Results 1 - 25 of 33) sorted by relevance

12

/ast/src/lib/libast/string/
H A Dswapmem.c34 * swap n bytes according to op
35 * from==to is ok
39 swapmem(int op, const void* from, void* to, register size_t n) argument
42 register char* t = (char*)to;
108 return to;
H A Dccmap.c37 * catenated CC_ASCII to CC_* character code map table
623 * generate and return ccode map from i to o
715 dump(int from, int to) argument
721 m = ccmap(from, to);
722 sfprintf(sfstdout, "\n /* %s => %s */\n\n", ccmapname(from), ccmapname(to));
/ast/src/lib/libast/tm/
H A Dtmxtime.c35 * convert Tm_t to Time_t
41 * this routine works with a copy of Tm_t to avoid clashes
55 Tm_t* to; local
59 to = tm;
123 *to = *tm;
/ast/src/cmd/tests/sfio/
H A Dtpipe.c41 int i, j, n, to; local
44 to = argc > 1 ? 0 : 4;
54 if(to)
64 if(to)
79 if(to)
88 if(to)
91 if(to)
97 if(to)
100 if(to)
107 if(to)
[all...]
/ast/src/cmd/pax/
H A Dconvert.c35 convert(Archive_t* ap, int section, int from, int to) argument
37 if (ap->convert[section].on = (ap->convert[section].f2t = ccmap(from, to)) != 0)
39 ap->convert[section].t2f = ccmap(to, from);
41 ap->convert[section].t2a = ccmap(to, CC_ASCII);
46 * convert string to lower case in place
62 * convert string to upper case in place
H A Dmisc.c401 char* to; local
412 from = to = name;
419 if (!(to = fmtbuf(n + ((mp->flags & MAP_INDEX) ? 10 : 0))))
421 memcpy(to, mp->re.re_sub->re_buf, n);
423 sfsprintf(to + n - 1, 10, ".%04d", ap->entry);
425 sfprintf(sfstderr, "%s >> %s\n", from, to);
428 from = to;
432 if (state.local && (*to == '/' || *to == '.' && *(to
[all...]
/ast/src/lib/libvdelta/
H A Dvdexpand.c43 reg uchar *tar, *to, *fr; local
66 /* copy data from the delta stream to target */
108 to = tar+t; fr = tar+copy;
109 MEMCPY(to,fr,n);
H A Dvdupdate.c23 /* Apply the transformation source->target to reconstruct target
24 ** This code is designed to work even if the local machine has
27 ** machine must be large enough to hold source and target sizes.
30 ** used in various cast from "long" to "int".
62 reg uchar *tar, *src, *to, *fr; local
95 /* copy data from the delta stream to target */
162 { to = tar+t;
163 MEMCPY(to,fr,n);
222 { to = tar+t; fr = tar+copy; n = (int)s;
223 MEMCPY(to,f
[all...]
/ast/src/lib/libcoshell/
H A Dcowait.c143 int to; local
162 to = timeout >= 0 ? timeout : 60 * 1000;
232 while ((n = sfpoll(&co->msgfp, 1, to)) < 1)
/ast/src/cmd/std/
H A Diconv.c31 " operands from one codeset to another and writes the results to"
54 "[f:from?The input codeset is set to \acodeset\a.]:[codeset:=native]"
60 "[t:to?The output codeset is set to \acodeset\a.]:[codeset:=native]"
138 char* to; local
150 from = to = "native";
194 to = opt_info.arg;
210 if ((cvt = iconv_open(to, from)) == (iconv_t)(-1))
212 if ((cvt = iconv_open(to, "ut
[all...]
/ast/src/lib/libcs/
H A Dcsserve.c41 int (*to)(void*); member in struct:Server_s
90 return !server->to ? 0 : (*server->to)(server->handle) < 0 ? -1 : 1;
141 csserve(Cs_t* state, void* handle, const char* path, void* (*init)(void*, int), int (*done)(void*, int), int (*con)(void*, int, Csid_t*, int, char**), int (*rd)(void*, int), int (*wr)(void*, int), int (*to)(void*)) argument
160 server->to = to;
204 _cs_serve(void* handle, const char* path, void* (*init)(void*, int), int (*done)(void*, int), int (*con)(void*, int, Csid_t*, int, char**), int (*rd)(void*, int), int (*wr)(void*, int), int (*to)(void*)) argument
206 csserve(&cs, handle, path, init, done, con, rd, wr, to);
H A Dcss.c241 * must not be symlinks -- symlinks can point to untrusted
416 * CS_POLL_DUP(n) move fd to n
417 * CS_POLL_MOVE(n) move fd to n
611 int to; local
669 to = ms;
677 if (to > css->timeout_remain)
678 to = css->timeout_remain;
684 if (to > css->wakeup_remain)
685 to = css->wakeup_remain;
704 if ((state.fdpending = cspoll(&cs, state.fdpoll, state.fdpolling, to)) <
[all...]
/ast/src/cmd/msgcc/
H A Dmsggen.c37 " UTF-8 encoded. \biconv\b(1) can be used to convert to/from UTF-8.]"
56 "[s:set?Convert the \acatfile\a operand to a message set number and"
72 " character \ac\a, which can be used to surround"
88 " translation info to the message catalog header. Only"
129 * append s to the translation list
180 * sfprintf() with ccmaps(from,to)
184 ccsfprintf(int from, int to, Sfio_t* sp, const char* format, ...) argument
192 if (from == to)
198 ccmaps(s, n, from, to);
[all...]
/ast/src/lib/libvdelta/vd01/
H A Dvdupdate01.c23 /* Apply the transformation source->target to reconstruct target
24 ** This code is designed to work even if the local machine has
27 ** machine must be large enough to hold source and target sizes.
30 ** used in various cast from "long" to "int".
60 reg uchar *tar, *src, *to, *fr; local
93 /* copy data from the delta stream to target */
160 { to = tar+t;
161 MEMCPY(to,fr,n);
220 { to = tar+t; fr = tar+copy; n = (int)s;
221 MEMCPY(to,f
[all...]
/ast/src/lib/libast/vmalloc/
H A Dvmtrace.c39 static char* trstrcpy(char* to, const char* from, int endc) argument
41 static char* trstrcpy(to, from, endc)
42 char* to;
49 memcpy(to,from,n);
50 to += n;
51 if((*to = endc) )
52 to += 1;
53 return to;
56 /* convert a long value to an ascii representation */
61 Vmulong_t v; /* value to conver
[all...]
/ast/src/lib/libcmd/
H A Dchgrp.c38 " to \agroup\a, which can be either a group name or a numeric"
39 " group id. The user ownership of each file may also be changed to"
40 " \auser\a by prepending \auser\a\b:\b to the group name.]"
46 " to \auser\a, which can be either a user name or a numeric"
47 " user id. The group ownership of each file may also be changed to"
48 " \auser\a by appending \b:\b\agroup\a to the user name.]"
55 "[f:quiet|silent?Do not report files whose ownership fails to change.]"
60 "\auid\a or \agid\a part of each pair may be omitted to mean any \auid\a "
62 "is changed to the corresponding \ato\a part of the pair. The matching "
95 "[+>0?Unable to chang
134 Key_t to; /* map to these */ member in struct:Map_s
[all...]
/ast/src/lib/libexpr/
H A Dexeval.c72 * assoc will point to the associative array bucket
136 int to; local
146 to = fmt->args->arg->type;
158 to = FLOATING;
162 to = STRING;
169 to = from;
172 to = INTEGER;
177 if (to == from)
181 node = excast(fmt->expr, node, to, NiL, 0);
185 if (to
[all...]
/ast/src/lib/libpz/
H A Dpzconvert.c35 " that provides a conversion table and functions to \bpzconvert\b(3).]"
37 " to the compressed data as a \bpzip\b trailer. This checksum is"
50 "[t:to?Specifies the decompression output format. This option is not needed"
88 char* to; member in struct:__anon364
162 * apply the conversion and/or checksum to a row that was just inflated
163 * and write it to sp
182 else if (!(b = (unsigned char*)sfreserve(sp, cvt->last->convert->to->row, 1)))
210 * add the next links to the stack that get from stk[i..j] => to
212 * 0 returned if there is no path => to
216 closure(Pz_t* pz, Chain_t* cp, int n, Pzconvert_t* tab, unsigned char* hit, Pzconvert_t** stk, int i, int j, const char* to) argument
242 (*pz->disc->errorf)(pz, pz->disc, 2, "internal closure error -- %s not found on unwind stack", to); local
[all...]
/ast/src/cmd/3d/
H A Dmap.c480 * from="-" maps to from=""
481 * to="-" maps to to=""
485 mapset(Table_t* tab, const char* from, int fromsize, register const char* to, int tosize) argument
502 if (!tosize && (!to || !to[0] || to[0] == '-' && !to[1]) || tosize == 1 && to[
615 register char* to; local
[all...]
/ast/src/cmd/cs/
H A Dmbb.c31 " instance is a session. Each session supports up to 64 message"
32 " channels, labeled from 0 to 63. A client connects to \bmbb\b and"
34 " messages in the mask are sent to the client. Channel 0 is reserved"
38 " be prefixed by its channel number. The server changes this to"
46 "[d:debug?Set the debug trace level to \alevel\a. Higher levels produce more"
49 " inactivity. The default is to run until the system crashes.]:[time]"
57 " messages on channel 0 are not sent to the other clients. The control"
118 data(register State_t* state, register Connection_t* to, char* s, size_t n, int force) argument
122 message((-1, "[%d] %d backlog", __LINE__, to
130 note(Css_t* css, register Connection_t* to, int log, char* s, size_t n, int force, Cssdisc_t* disc) argument
203 post(Css_t* css, Cssdisc_t* disc, Connection_t* from, register Connection_t* to, int channel, const char* format, ...) argument
[all...]
/ast/src/cmd/cs/vcs_src/
H A Dvcs_search.c113 time_t to; local
141 if (pattern2time(elist[i], &to) < 0)
148 if ((index = lookup_tag_time(tbl, total, to, domain, 0)) < 0)
169 int lookup_tag_time(tbl, total, to, domain, first)
172 time_t to;
183 if (tbl[i]->tag->stat.st_mtime > to)
378 int pattern2time(pattern, to)
380 time_t* to;
448 *to = tmdate(tbuf, (char **) 0, (time_t *) 0);
/ast/src/cmd/mailx/
H A Dspam.c20 * names of its contributors may be used to endorse or *
48 * contributors may be used to endorse or promote products derived *
364 usermatch(const char* a, const char* b, int to) argument
412 if (to && !strcasecmp(ap, state.var.user))
477 char* to; local
493 if (!(to = grab(mp, GTO|GCOMPARE|GDISPLAY|GLAST|GUSER, NiL)) || !*to)
506 if (addrmatch(t, to) || state.var.spamfrom && usermatch(t, state.var.spamfrom, 0))
595 if (addrmatch(t, to) || state.var.spamfrom && usermatch(t, state.var.spamfrom, 0))
726 note(0, "spam: to `
[all...]
/ast/src/cmd/re/
H A Dsed2.c56 /* return 1 if action is to be taken on current line,
82 word *ipc = (word*)pc; /* points to address words */
83 word *q = instr(pc); /* points to instruction word */
93 q--; /* points to activity indicator */
128 tcopy(Text *from, Text *to) argument
131 assure(to, n+1);
132 memmove(to->w, from->s, n);
133 to->w += n;
134 *to->w = 0;
530 /* execution functions return pointer to nex
[all...]
/ast/src/lib/libast/comp/
H A Diconv.c85 Map_t to; member in struct:Conv_s
246 if ((cc->to.index = _win_codeset(t)) < 0)
249 error(DEBUG_TRACE, "AHA#%d _win_iconv_open f=0x%04x t=0x%04x\n", __LINE__, cc->from.index, cc->to.index);
272 error(DEBUG_TRACE, "AHA#%d _win_iconv from=0x%04x to=0x%04x\n", __LINE__, cc->from.index, cc->to.index);
274 if (cc->from.index == cc->to.index || cc->from.index != CP_UCS2 && cc->to.index == 0)
292 if (cc->to.index == CP_UCS2)
303 * binary search on input size to make it fit
348 * ucs-2 => to
1055 char to[64]; local
[all...]
/ast/src/cmd/nmake/
H A Drule.c175 * map name s to rule r
215 * return a pointer to a rule given its name,
306 * add a single non-duplicated prerequisite x to rule r
1027 * merge <from> into <to> according to op
1031 merge(register Rule_t* from, register Rule_t* to, int op) argument
1037 if (from == to || to->status != NOTYET && (to->status != UPDATE || !(from->property & P_use)))
1040 * this is a workaround to separat
1121 mergestate(Rule_t* from, Rule_t* to) argument
1195 negate(register Rule_t* from, register Rule_t* to) argument
[all...]

Completed in 42 milliseconds

12