Searched refs:buf (Results 151 - 175 of 349) sorted by relevance

1234567891011>>

/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/src/
H A Drole.c1056 promptsep(buf, num_post_attribs)
1057 char *buf;
1063 Strcat(buf, ",");
1064 Strcat(buf, " ");
1066 if (!post_attribs && num_post_attribs > 1) Strcat(buf, conj);
1067 return buf;
1102 char buf[BUFSZ]; local
1112 buf[0] = '\0';
1122 if (donefirst) Strcat(buf, " ");
1123 Strcat(buf, align
[all...]
H A Dmusic.c410 char buf[BUFSZ]; local
411 Sprintf(buf, "using a magical horn on %sself", uhim());
412 losehp(damage, buf, KILLED_BY);
479 char buf[BUFSZ], c = 'y'; local
493 Strcpy(buf, tune);
495 getlin("What tune are you playing? [5 notes, A-G]", buf);
496 (void)mungspaces(buf);
498 for (s = buf; *s; s++) {
512 speaker(instr, buf);
516 speaker(instr, buf);
[all...]
H A Dhacklib.c151 Static char buf[BUFSZ]; local
153 Strcpy(buf, s);
154 if(!strcmpi(buf, "it"))
155 Strcat(buf, "s");
156 else if(*(eos(buf)-1) == 's')
157 Strcat(buf, "'");
159 Strcat(buf, "'s");
160 return buf;
164 xcrypt(str, buf) /* trivial text encryption routine (see makedefs) */
166 char *buf;
198 char buf[BUFSZ]; local
256 Static char buf[13]; local
[all...]
H A Ddlb.c287 lib_dlb_fread(buf, size, quan, dp)
288 char *buf;
305 nread = fread(buf, size, quan, dp->lib->fdata);
334 lib_dlb_fgets(buf, len, dp)
335 char *buf;
342 if (len <= 0) return buf; /* sanity check */
348 for (i = 0, bp = buf;
356 if ((bp = index(buf, '\r')) != 0) {
362 return buf;
492 dlb_fread(buf, siz
[all...]
H A Doptions.c777 char *sp, buf[BUFSZ]; local
782 buf[num++] = COIN_CLASS;
795 buf[num++] = (char) oc_sym;
797 buf[num] = '\0';
801 if (!index(buf, *sp)) {
802 buf[num++] = *sp;
803 buf[num] = '\0'; /* explicitly terminate for next index() */
806 Strcpy(flags.inv_order, buf);
866 char buf[BUFSZ]; local
878 Sprintf(buf,
2026 char buf[WINTYPELEN]; local
2338 char buf[BUFSZ], buf2[BUFSZ]; local
2372 char buf[BUFSZ], buf2[BUFSZ]; local
2539 char buf[BUFSZ]; local
3150 char buf[BUFSZ], ocl[MAXOCLASSES+1]; local
3295 char buf[BUFSZ], buf2[BUFSZ]; local
3343 static char *buf = 0; local
3367 free(buf), buf = 0; local
3384 char buf[PL_FSIZ]; local
3489 char buf[BUFSZ]; local
3786 char buf[BUFSZ]; local
[all...]
H A Dend.c185 char buf[BUFSZ]; local
190 buf[0] = '\0';
196 Strcat(buf, "the ");
201 Strcat(buf, "the ");
205 Strcat(buf, "invisible ");
207 Strcat(buf, "hallucinogen-distorted ");
210 Strcat(buf, "ghost");
211 if (mtmp->mnamelth) Sprintf(eos(buf), " of %s", NAME(mtmp));
213 Sprintf(eos(buf), "%s %s, the shopkeeper",
220 Strcat(buf, kille
296 char buf[BUFSZ]; variable
298 raw_print(buf); variable
[all...]
H A Dmhitm.c78 char buf[BUFSZ], mdef_name[BUFSZ]; local
89 Sprintf(buf, fmt, Monnam(magr));
90 pline("%s %s.", buf, mon_nam_too(mdef_name, mdef, magr));
301 char buf[BUFSZ]; local
303 Strcpy(buf, Monnam(mdef));
304 pline("%s divides as %s hits it!", buf, mon_nam(magr));
388 char buf[BUFSZ], mdef_name[BUFSZ]; local
397 Sprintf(buf, "%s %s", Monnam(magr),
399 pline("%s %s %s.", buf, mon_nam(mdef),
408 Sprintf(buf,"
443 char buf[BUFSZ]; local
494 char buf[BUFSZ]; local
592 char buf[BUFSZ]; local
1261 char buf[BUFSZ]; local
1281 char buf[BUFSZ]; local
[all...]
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/src/
H A Drole.c1056 promptsep(buf, num_post_attribs)
1057 char *buf;
1063 Strcat(buf, ",");
1064 Strcat(buf, " ");
1066 if (!post_attribs && num_post_attribs > 1) Strcat(buf, conj);
1067 return buf;
1102 char buf[BUFSZ]; local
1112 buf[0] = '\0';
1122 if (donefirst) Strcat(buf, " ");
1123 Strcat(buf, align
[all...]
H A Dmusic.c410 char buf[BUFSZ]; local
411 Sprintf(buf, "using a magical horn on %sself", uhim());
412 losehp(damage, buf, KILLED_BY);
479 char buf[BUFSZ], c = 'y'; local
493 Strcpy(buf, tune);
495 getlin("What tune are you playing? [5 notes, A-G]", buf);
496 (void)mungspaces(buf);
498 for (s = buf; *s; s++) {
512 speaker(instr, buf);
516 speaker(instr, buf);
[all...]
H A Dhacklib.c151 Static char buf[BUFSZ]; local
153 Strcpy(buf, s);
154 if(!strcmpi(buf, "it"))
155 Strcat(buf, "s");
156 else if(*(eos(buf)-1) == 's')
157 Strcat(buf, "'");
159 Strcat(buf, "'s");
160 return buf;
164 xcrypt(str, buf) /* trivial text encryption routine (see makedefs) */
166 char *buf;
198 char buf[BUFSZ]; local
256 Static char buf[13]; local
[all...]
H A Ddlb.c287 lib_dlb_fread(buf, size, quan, dp)
288 char *buf;
305 nread = fread(buf, size, quan, dp->lib->fdata);
334 lib_dlb_fgets(buf, len, dp)
335 char *buf;
342 if (len <= 0) return buf; /* sanity check */
348 for (i = 0, bp = buf;
356 if ((bp = index(buf, '\r')) != 0) {
362 return buf;
492 dlb_fread(buf, siz
[all...]
H A Doptions.c777 char *sp, buf[BUFSZ]; local
782 buf[num++] = COIN_CLASS;
795 buf[num++] = (char) oc_sym;
797 buf[num] = '\0';
801 if (!index(buf, *sp)) {
802 buf[num++] = *sp;
803 buf[num] = '\0'; /* explicitly terminate for next index() */
806 Strcpy(flags.inv_order, buf);
866 char buf[BUFSZ]; local
878 Sprintf(buf,
2026 char buf[WINTYPELEN]; local
2338 char buf[BUFSZ], buf2[BUFSZ]; local
2372 char buf[BUFSZ], buf2[BUFSZ]; local
2539 char buf[BUFSZ]; local
3150 char buf[BUFSZ], ocl[MAXOCLASSES+1]; local
3295 char buf[BUFSZ], buf2[BUFSZ]; local
3343 static char *buf = 0; local
3367 free(buf), buf = 0; local
3384 char buf[PL_FSIZ]; local
3489 char buf[BUFSZ]; local
3786 char buf[BUFSZ]; local
[all...]
H A Dend.c185 char buf[BUFSZ]; local
190 buf[0] = '\0';
196 Strcat(buf, "the ");
201 Strcat(buf, "the ");
205 Strcat(buf, "invisible ");
207 Strcat(buf, "hallucinogen-distorted ");
210 Strcat(buf, "ghost");
211 if (mtmp->mnamelth) Sprintf(eos(buf), " of %s", NAME(mtmp));
213 Sprintf(eos(buf), "%s %s, the shopkeeper",
220 Strcat(buf, kille
296 char buf[BUFSZ]; variable
298 raw_print(buf); variable
[all...]
H A Dmhitm.c78 char buf[BUFSZ], mdef_name[BUFSZ]; local
89 Sprintf(buf, fmt, Monnam(magr));
90 pline("%s %s.", buf, mon_nam_too(mdef_name, mdef, magr));
301 char buf[BUFSZ]; local
303 Strcpy(buf, Monnam(mdef));
304 pline("%s divides as %s hits it!", buf, mon_nam(magr));
388 char buf[BUFSZ], mdef_name[BUFSZ]; local
397 Sprintf(buf, "%s %s", Monnam(magr),
399 pline("%s %s %s.", buf, mon_nam(mdef),
408 Sprintf(buf,"
443 char buf[BUFSZ]; local
494 char buf[BUFSZ]; local
592 char buf[BUFSZ]; local
1261 char buf[BUFSZ]; local
1281 char buf[BUFSZ]; local
[all...]
/seL4-refos-master/projects/util_libs/libfdt/
H A Dfdt_sw.c144 int fdt_create(void *buf, int bufsize) argument
148 void *fdt = buf;
153 memset(buf, 0, bufsize);
167 int fdt_resize(void *fdt, void *buf, int bufsize) argument
184 newtail = (char *)buf + bufsize - tailsize;
188 if (buf <= fdt) {
189 memmove(buf, fdt, headsize);
193 memmove(buf, fdt, headsize);
196 fdt_set_totalsize(buf, bufsize);
197 if (fdt_off_dt_strings(buf))
[all...]
/seL4-refos-master/projects/util_libs/libethdrivers/src/
H A Dpico_dev_eth.c164 dma_addr_t *buf = pico_iface->bufs[buf_no]; local
165 ps_dma_cache_invalidate(&pico_iface->dma_man, buf->virt, buf_size);
167 return buf->phys;
207 dma_addr_t buf; local
221 buf = *orig_buf;
222 memcpy(buf.virt, input_buf, len);
223 ps_dma_cache_clean(&eth_device->dma_man, buf.virt, len);
226 status = eth_device->driver.i_fn.raw_tx(&eth_device->driver, 1, &buf.phys, &length, (void *) buf_no);
259 dma_addr_t *buf = eth_device->bufs[buf_no]; local
262 ps_dma_cache_invalidate(&eth_device->dma_man, buf
[all...]
/seL4-refos-master/libs/libmuslc/src/passwd/
H A Dgetpw_a.c20 int __getpw_a(const char *name, uid_t uid, struct passwd *pw, char **buf, size_t *size, struct passwd **res) argument
36 while (!(rv = __getpwent_a(f, pw, buf, size, res)) && *res) {
92 if (len > *size || !*buf) {
93 char *tmp = realloc(*buf, len);
98 *buf = tmp;
102 if (!fread(*buf, len, 1, f)) {
107 pw->pw_name = *buf;
H A Dnscd.h42 FILE *__nscd_query(int32_t req, const char *key, int32_t *buf, size_t len, int *swap);
/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/win/tty/
H A Dgetline.c247 char buf[BUFSZ]; local
251 /* hooked_tty_getlin("#", buf, flags.cmd_comp ? ext_cmd_getlin_hook : (getlin_hook_proc) 0); */
253 hooked_tty_getlin("#", buf, in_doagain ? (getlin_hook_proc)0
256 hooked_tty_getlin("#", buf, ext_cmd_getlin_hook);
258 (void) mungspaces(buf);
259 if (buf[0] == 0 || buf[0] == '\033') return -1;
262 if (!strcmpi(buf, extcmdlist[i].ef_txt)) break;
267 for (j = 0; buf[j]; j++)
268 savech(buf[
[all...]
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/win/tty/
H A Dgetline.c247 char buf[BUFSZ]; local
251 /* hooked_tty_getlin("#", buf, flags.cmd_comp ? ext_cmd_getlin_hook : (getlin_hook_proc) 0); */
253 hooked_tty_getlin("#", buf, in_doagain ? (getlin_hook_proc)0
256 hooked_tty_getlin("#", buf, ext_cmd_getlin_hook);
258 (void) mungspaces(buf);
259 if (buf[0] == 0 || buf[0] == '\033') return -1;
262 if (!strcmpi(buf, extcmdlist[i].ef_txt)) break;
267 for (j = 0; buf[j]; j++)
268 savech(buf[
[all...]
/seL4-refos-master/projects/refos/impl/apps/console_server/src/
H A Ddevice_screen.h63 @param buf The buffer to write and interpret as virtual terminal input stream.
66 void device_screen_write(struct device_screen_state* s, char* buf, int len);
/seL4-refos-master/apps/console_server/src/
H A Ddevice_screen.h63 @param buf The buffer to write and interpret as virtual terminal input stream.
66 void device_screen_write(struct device_screen_state* s, char* buf, int len);
/seL4-refos-master/libs/libcpio/include/cpio/
H A Dcpio.h82 * @param[in] buf A memory location to store the CPIO file list to
83 * @param[in] buf_len The length of the provided buf
85 void cpio_ls(void *archive, unsigned long len, char **buf, unsigned long buf_len);
/seL4-refos-master/libs/libmuslc/include/sys/
H A Dstat.h39 #define S_TYPEISMQ(buf) 0
40 #define S_TYPEISSEM(buf) 0
41 #define S_TYPEISSHM(buf) 0
42 #define S_TYPEISTMO(buf) 0
/seL4-refos-master/libs/libmuslc/src/stdio/
H A D__toread.c12 f->rpos = f->rend = f->buf + f->buf_size;

Completed in 168 milliseconds

1234567891011>>