Searched refs:msg (Results 1 - 25 of 144) sorted by relevance

123456

/ast/src/lib/libcs/
H A Dmsgrecv.c29 * read and blast message from fd into msg
33 msgrecv(int fd, register Msg_call_t* msg) argument
37 if ((n = msgread(fd, msg->data, sizeof(msg->data))) <= 0)
39 msg->size = n;
40 return msgblast(msg);
H A Dmsgblast.c29 * blast message from msg->data,msg->size into msg->argv
33 msgblast(register Msg_call_t* msg) argument
46 char** vp = (char**)msg->value;
48 b = msg->data + MSG_SIZE_SIZE;
49 e = msg->data + msg->size;
50 if ((msg->version = msggetu(&b, e)) != MSG_VERSION)
52 msg
[all...]
H A Dmsglib.h35 #include <msg.h>
H A Dmsglist.c97 * list msg on sp
101 msglist(Sfio_t* sp, register Msg_call_t* msg, int flags, unsigned long terse) argument
123 r += sfprintf(sp, " %5d %5d", MSG_CHANNEL_USR(msg->channel), MSG_CHANNEL_SYS(msg->channel));
126 if (((unsigned long)msg->stamp) <= USHRT_MAX)
127 r += sfprintf(sp, " %lu", msg->stamp);
129 r += sfprintf(sp, " %s", fmttime("%?%K", (time_t)msg->stamp));
133 r += sfprintf(sp, "%s (", msgname(msg->call));
134 ap = msg->argv;
135 at = msg
[all...]
H A Dmsgsend.c36 msgsend(int fd, register Msg_call_t* msg, unsigned long call, long ret, int err, void* data) argument
48 if ((fd = csbind(&cs, "udp", msg->ack.addr, msg->ack.port, 0L)) < 0)
50 ret = ret == -1 ? ~msg->stamp : msg->stamp;
54 b = msg->data + MSG_SIZE_SIZE;
55 e = msg->data + sizeof(msg->data);
131 ret = b - msg->data;
132 msgsetsize(msg
[all...]
/ast/src/cmd/3d/features/
H A Dpeek.c39 static char msg[] = "test"; local
44 if (pipe(fds) || write(fds[1], msg, sizeof(msg)) != sizeof(msg))
51 pk.databuf.maxlen = sizeof(msg);
52 pk.databuf.buf = msg;
54 if (ioctl(fds[0], I_PEEK, &pk) > 0 && pk.databuf.len == sizeof(msg))
61 if (recv(fds[0], msg, sizeof(msg), MSG_PEEK) == sizeof(msg))
[all...]
/ast/src/lib/libast/string/
H A Dstrerror.c70 char* msg; local
75 msg = strerror(err);
79 msg = (char*)sys_errlist[err];
81 msg = 0;
83 if (msg)
99 * stash the pending strerror() msg
102 msg = strcpy(fmtbuf(strlen(msg) + 1), msg);
124 return msg;
[all...]
/ast/src/lib/libast/misc/
H A Derrorx.c32 errorx(const char* loc, const char* cmd, const char* cat, const char* msg) argument
46 if (s = (*error_info.translate)(loc, cmd, cat, msg))
49 return (char*)msg;
H A Dtranslate.c101 * add msg to dict
105 entry(Dt_t* dict, int set, int seq, const char* msg) argument
109 if (!(mp = newof(0, Message_t, 1, strlen(msg))))
111 strcpy(mp->text, msg);
120 sfprintf(sfstderr, "AHA#%d:%s set %d seq %d msg `%s'\n", __LINE__, __FILE__, set, seq, msg);
224 * return the C locale message pointer for msg in cat
229 match(const char* cat, const char* msg) argument
254 if (*s && ((cp = (Catalog_t*)dtmatch(state.catalogs, s)) || (cp = init(s))) && cp->messages && (mp = (Message_t*)dtmatch(cp->messages, msg)))
275 * msg messag
295 translate(const char* loc, const char* cmd, const char* cat, const char* msg) argument
[all...]
/ast/src/cmd/mailx/
H A Dcmd1.c84 register struct msg* mp;
95 mp = state.msg.list + mesg - 1;
98 curind = state.msg.dot == mp && !state.var.justheaders ? '>' : ' ';
174 headers(struct msg* msgvec)
179 register struct msg* mp;
184 mp = state.msg.list;
185 if (state.var.justfrom > 0 && state.var.justfrom < state.msg.count)
186 mp += state.msg.count - state.var.justfrom;
187 m = state.msg.count + 1;
192 if ((m = state.var.screen) <= 0 && (m = state.msg
[all...]
H A Dlist.c118 if (!*name || !(s = grab(state.msg.list + mesg - 1, GREPLY|GCOMPARE, NiL)))
129 register struct msg* mp;
139 mp = state.msg.list + mesg - 1;
168 register struct msg* mp;
177 mp = state.msg.list + mesg - 1;
216 if (*s && (t = grab(state.msg.list + mesg - 1, GREPLY|GCOMPARE, NiL)))
232 register struct msg* mp;
240 for (mp = state.msg.list; mp < state.msg.list + state.msg
[all...]
H A Dlex.c86 if (state.msg.op || state.folder == FMH)
97 if (state.msg.ap) {
98 fileclose(state.msg.ap);
99 state.msg.ap = 0;
101 if (state.msg.ip) {
102 fileclose(state.msg.ip);
103 state.msg.ip = 0;
105 if (state.msg.op) {
106 fileclose(state.msg.op);
107 state.msg
[all...]
H A Dcmd2.c83 next(struct msg* msgvec)
85 register struct msg* mp;
86 register struct msg* ip;
87 register struct msg* ip2;
99 mdot = state.msg.dot - state.msg.list + 1;
115 mp = state.msg.list + ip2->m_index - 1;
117 state.msg.dot = mp;
145 for (mp = state.msg.dot + 1; mp < state.msg
[all...]
H A Dmailx.h167 typedef struct msg { struct
255 struct msg* mp; /* Parsing this message */
707 struct msg* active; /* ip points to this message */
708 struct msg* context; /* Folder read context */
709 struct msg* dot; /* Pointer to current message */
710 struct msg* list; /* The actual message structure */
711 } msg; member in struct:__anon136
883 extern int Blast(struct msg*);
885 extern int Followup(struct msg*);
886 extern int From(struct msg*);
[all...]
H A Dedit.c81 edit1(struct msg* msgvec, int type)
83 register struct msg* ip;
84 register struct msg* mp;
106 state.msg.dot = mp = state.msg.list + ip->m_index - 1;
110 if (!state.msg.op)
112 fseek(state.msg.op, (off_t)0, SEEK_END);
113 size = ftell(state.msg.op);
118 filecopy(NiL, fp, state.tmp.dir, state.msg.op, NiL, (off_t)0, &mp->m_lines, &mp->m_size, 0);
130 editor(struct msg* msgve
[all...]
H A Dfio.c80 * Return next msg struct for current folder.
82 struct msg*
85 register struct msg* mp;
88 if (state.msg.count >= state.msg.size) {
89 dot = state.msg.dot - state.msg.list;
90 state.msg.size += 256;
91 if (!(state.msg.list = newof(state.msg
[all...]
H A Dquit.c124 register struct msg* mp;
142 for (mp = state.msg.list, gotcha = 0; mp < state.msg.list + state.msg.count; mp++) {
162 mh.dot = state.msg.dot - state.msg.list + 1;
163 for (mp = state.msg.list; mp < state.msg.list + state.msg.count; mp++) {
165 sfprintf(state.path.temp, "%s/%d", state.path.mail, mp - state.msg
[all...]
/ast/src/cmd/msgcc/
H A Dmsgget.c57 char* msg; local
85 if (!(msg = *argv++))
86 msg = "";
104 s = mcget(mc, set, num, msg);
106 s = errorx(loc, cmd, cat, msg);
H A Dmsgadmin.sh78 set -- $MSGROOT/arch/*/src/cmd/INIT/INIT.msg
79 [[ -f $1 ]] || { print -u2 $"$command: INIT.msg: not found"; exit 1; }
80 MSGROOT=${1%/src/cmd/INIT/INIT.msg}
81 grep -l '^1' $MSGROOT/src/@(cmd|lib)/*/*.msg
115 (( ! $# )) && set -- C $(ls *-*.msg 2>/dev/null | sed 's,.*-\(.*\)\.msg,\1,' | sort -u)
120 *) set -- *-$locale.msg ;;
130 name=${name%*.msg}
132 *) name=${file%-$locale.msg}
147 list) messages | sed 's,^.*/\(.*\)\.msg
[all...]
/ast/src/cmd/cs/
H A Dfs_env.c40 #include <msg.h>
125 Msg_call_t msg; local
174 if (msgrecv(fd, &msg) <= 0)
177 msglist(sfstderr, &msg, 0, 0L);
181 switch (msg.call)
187 if ((long)msg.argv[2].number < 0)
193 if (n > msg.argv[2].number)
194 n = msg.argv[2].number;
204 switch (msg.argv[2].number)
207 n = msg
[all...]
H A Dnam.c77 char* msg; local
89 msg = buf;
90 if (tokscan(msg, &msg, " %s %s %s ", &op, &logical, &path) < 1)
121 while (tokscan(msg, &msg, " %s=%s ", &name, &value) == 2)
/ast/src/lib/libtk/library/demos/
H A Dform.tcl15 label $w.msg -font $font -wraplength 4i -justify left -text "This window contains a simple form where you can type in the various entries and use tabs to move circularly between the entries."
16 pack $w.msg -side top
34 pack $w.msg $w.f1 $w.f2 $w.f3 $w.f4 $w.f5 -side top -fill x
H A Dbutton.tcl15 label $w.msg -font $font -wraplength 4i -justify left -text "If you click on any of the four buttons below, the background of the button area will change to the color indicated in the button. You can press Tab to move among the buttons, then press Space to invoke the current button."
16 pack $w.msg -side top
/ast/src/lib/libast/port/
H A Dmc.c296 * get the set dimensions and initialize the msg pointers
305 mc->set[i].msg = mp;
310 * read the msg sizes and set up the msg pointers
317 mc->set[i].msg[j] = sp;
340 * msg returned on error
345 mcget(register Mc_t* mc, int set, int num, const char* msg) argument
351 if (!mc || set < 0 || set > mc->num || num < 1 || num > mc->set[set].num || !(s = mc->set[set].msg[num]))
352 return (char*)msg;
366 * set message <set,num> to msg
373 mcput(register Mc_t* mc, int set, int num, const char* msg) argument
613 mcindex(register const char* s, char** e, int* set, int* msg) argument
[all...]
/ast/src/lib/libast/uwin/
H A Drlib.h65 extern void p_query(char *msg);
66 extern void fp_query(char *msg, FILE *file);
67 extern char *p_cdname(char *cp, char *msg, FILE *file);
68 extern char *p_rr(char *cp, char *msg, FILE *file);

Completed in 27 milliseconds

123456