/ast/src/lib/libast/tm/ |
H A D | tmform.c | 36 * format date given clock 41 tmform(char* buf, const char* format, time_t* clock) argument 43 return tmfmt(buf, 256, format, clock);
|
H A D | tmfmt.c | 33 * format date given clock into buf of length len 38 tmfmt(char* buf, size_t len, const char* format, time_t* clock) argument 40 return tmxfmt(buf, len, format, tmxclock(clock));
|
H A D | tmlex.c | 36 * tm_data.format checked if tminfo.format!=tm_data.format 57 if (tm_info.format != tm_data.format && tab >= tm_info.format && tab < tm_info.format + TM_NFORM) 59 tab = tm_data.format + (tab - tm_info.format); 60 if (suf && tab >= tm_info.format [all...] |
H A D | tmscan.c | 33 * scan date expression in s using format 38 tmscan(const char* s, char** e, const char* format, char** f, time_t* clock, long flags) argument 40 return tmxsec(tmxscan(s, e, format, f, tmxclock(clock), flags));
|
H A D | tmxfmt.c | 36 * format n with padding p into s 88 char* format; member in struct:Stack_s 93 * format t into buf of length len 98 tmxfmt(char* buf, size_t len, const char* format, Time_t t) argument 127 if (!format || !*format) 128 format = tm_info.deformat; 129 oformat = format; 137 if ((c = *format++) == delimiter) 143 format [all...] |
H A D | tmxscan.c | 29 * scan date expression in s using format 31 * if non-null, f points to the first unused format char 165 * the format scan workhorse 169 scan(register const char* s, char** e, const char* format, char** f, Time_t t, long flags) argument 198 if (!(d = *format++)) 202 format--; 205 format = (const char*)*--sp; 209 format--; 212 else if (d == '%' && (d = *format) && format 461 tmxscan(const char* s, char** e, const char* format, char** f, Time_t t, long flags) argument [all...] |
H A D | tmlocale.c | 41 char* format; member in struct:__anon313 109 b[must[n]] = tm_data.format[must[n]]; 113 b[n] = tm_data.format[n]; 122 tm_info.format = b; 123 if (!(tm_info.deformat = state.format)) 124 tm_info.deformat = tm_info.format[TM_DEFAULT]; 185 * convert ms word date spec w to posix strftime format f 378 * synthesize TM_TIME format from the ms word template 407 * synthesize TM_DATE format 416 * synthesize TM_DEFAULT format [all...] |
/ast/src/lib/libast/string/ |
H A D | fmttime.c | 33 fmttime(const char* format, time_t clock) argument 39 tmfmt(buf, z, format, &clock);
|
/ast/src/lib/libpp/ |
H A D | ppprintf.c | 31 ppprintf(char* format, ...) argument 38 va_start(ap, format); 39 sfvprintf(sp, format, ap);
|
/ast/src/cmd/cs/vcs_src/ |
H A D | vcs_message.c | 28 char* format; local 34 format = va_arg(ap, char*); 35 sfvprintf(sfstdout, format, ap);
|
/ast/src/cmd/ksh93/tests/ |
H A D | leaks.sh | 49 a=0$(vmstate --format='+%(size)u') 50 b=0$(vmstate --format='+%(size)u') 53 a=0$(vmstate --format='+%(size)u') 55 b=0$(vmstate --format='+%(size)u') 70 a=0$(vmstate --format='+%(size)u') 76 b=0$(vmstate --format='+%(size)u') 80 a=0$(vmstate --format='+%(size)u') 84 b=0$(vmstate --format='+%(size)u')
|
/ast/src/lib/libtksh/tcl/ |
H A D | panic.c | 37 EXTERN void panic _ANSI_ARGS_((char *format, char *arg1, 48 void (*panicProc) _ANSI_ARGS_(TCL_VARARGS(char *,format)) = NULL; 69 void (*proc) _ANSI_ARGS_(TCL_VARARGS(char *,format)); 93 panic(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) 94 char *format; /* Format string, suitable for passing to 101 (void) (*panicProc)(format, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); 103 (void) fprintf(stderr, format, arg1, arg2, arg3, arg4, arg5, arg6,
|
/ast/src/lib/libcmd/ |
H A D | pids.c | 33 "[f:format?List the ids specified by \aformat\a. \aformat\a follows " 37 "supported \aid\as are:]:[format:=" FORMAT "]" 84 else if (streq(s, "format")) 88 error(2, "%s: unknown format identifier", s); 97 char* format = 0; local 105 format = opt_info.arg; 119 if (!format) 120 format = FORMAT; 121 sfkeyprintf(sfstdout, format, format, ke [all...] |
H A D | date.c | 67 " Equivalent to \b--format=%s\b.]" 73 "[f:format?Output the date according to the \bstrftime\b(3) \aformat\a." 75 " \b+\b\aformat\a is equivalent to \b-f\b format." 87 " The fields are:]:[format]{" 98 " [+f?locale default override date format]" 99 " [+F?%ISO 8601:2000 standard date format; equivalent to Y-%m-%d]" 111 " [+L?locale default date format]" 119 " delimter character; \arecent\a format for recent" 120 " dates, \adistant\a format otherwise]" 149 " [+??alternate?use \aalternate\a format i 206 char* format; member in struct:Fmt 294 char* format = 0; /* tmxfmt() format */ local [all...] |
/ast/src/cmd/3d/ |
H A D | bio.c | 35 bvprintf(char** buf, char* end, register const char* format, va_list ap) argument 67 switch (c = *format++) 72 if (*format == '-') 74 format++; 78 if (*format == '0') 80 format++; 84 if ((c = *format) == '*') 86 format++; 95 c = *++format; 101 if ((c = *++format) 358 bprintf(char** buf, char* end, const char* format, ...) argument 370 sfsprintf(char* buffer, size_t size, const char* format, ...) argument [all...] |
/ast/src/cmd/dsslib/num_t/ |
H A D | num_t.c | 33 #define FIXED_EXTERNAL(f,format,value) { \ 36 if (i = (format)->fixedpoint) \ 49 #define FIXED_INTERNAL(f,w,value,format) { \ 52 if (i = (format)->fixedpoint) \ 121 bcd_external(Cx_t* cx, Cxtype_t* type, const char* details, Cxformat_t* format, Cxvalue_t* value, char* buf, size_t size, Cxdisc_t* disc) argument 128 if (format->width > size) 129 return format->width; 130 if ((e = s + format->width - 1) < s) 132 FIXED_EXTERNAL(f, format, value); 150 return format 203 bcd_internal(Cx_t* cx, Cxtype_t* type, const char* details, Cxformat_t* format, Cxoperand_t* ret, const char* buf, size_t size, Vmalloc_t* vm, Cxdisc_t* disc) argument 249 be_external(Cx_t* cx, Cxtype_t* type, const char* details, Cxformat_t* format, Cxvalue_t* value, char* buf, size_t size, Cxdisc_t* disc) argument 296 be_internal(Cx_t* cx, Cxtype_t* type, const char* details, Cxformat_t* format, Cxoperand_t* ret, const char* buf, size_t size, Vmalloc_t* vm, Cxdisc_t* disc) argument 389 hash_external(Cx_t* cx, Cxtype_t* type, const char* details, Cxformat_t* format, Cxvalue_t* value, char* buf, size_t size, Cxdisc_t* disc) argument 428 hash_internal(Cx_t* cx, Cxtype_t* type, const char* details, Cxformat_t* format, Cxoperand_t* ret, const char* buf, size_t size, Vmalloc_t* vm, Cxdisc_t* disc) argument 504 heka_internal(Cx_t* cx, Cxtype_t* type, const char* details, Cxformat_t* format, Cxoperand_t* ret, const char* buf, size_t size, Vmalloc_t* vm, Cxdisc_t* disc) argument 550 heka_external(Cx_t* cx, Cxtype_t* type, const char* details, Cxformat_t* format, Cxvalue_t* value, char* buf, size_t size, Cxdisc_t* disc) argument 766 ibm_external(Cx_t* cx, Cxtype_t* type, const char* details, Cxformat_t* format, Cxvalue_t* value, char* buf, size_t size, Cxdisc_t* disc) argument 953 ibm_internal(Cx_t* cx, Cxtype_t* type, const char* details, Cxformat_t* format, Cxoperand_t* ret, const char* buf, size_t size, Vmalloc_t* vm, Cxdisc_t* disc) argument 989 le_external(Cx_t* cx, Cxtype_t* type, const char* details, Cxformat_t* format, Cxvalue_t* value, char* buf, size_t size, Cxdisc_t* disc) argument 1036 le_internal(Cx_t* cx, Cxtype_t* type, const char* details, Cxformat_t* format, Cxoperand_t* ret, const char* buf, size_t size, Vmalloc_t* vm, Cxdisc_t* disc) argument 1089 sf_external(Cx_t* cx, Cxtype_t* type, const char* details, Cxformat_t* format, Cxvalue_t* value, char* buf, size_t size, Cxdisc_t* disc) argument 1117 sf_internal(Cx_t* cx, Cxtype_t* type, const char* details, Cxformat_t* format, Cxoperand_t* ret, const char* buf, size_t size, Vmalloc_t* vm, Cxdisc_t* disc) argument [all...] |
/ast/src/lib/libdss/ |
H A D | dssfile.c | 72 dssfopen(Dss_t* dss, const char* path, Sfio_t* io, Dssflags_t flags, Dssformat_t* format) argument 160 if (!(file->format = format) && !(file->format = dss->format)) 163 (*dss->disc->errorf)(NiL, dss->disc, 2, "output method format must be specified"); 169 file->writef = file->format->writef; 195 for (file->format = (Dssformat_t*)dtfirst(dss->meth->formats); file->format && !(i = (*file->format [all...] |
H A D | dss-write.h | 32 " If \aformat\a is omitted then the input record format is assumed." 35 "\n [ format] \n" 43 Dssformat_t* format; local 71 if (!(format = dssformat(expr->data, disc, DSS(cx)->meth))) 74 (*disc->errorf)(NiL, disc, 2, "%s: unknown format", (char*)expr->data); 79 format = 0; 80 if (!(expr->data = dssfopen(DSS(cx), expr->file, expr->op, DSS_FILE_WRITE, format)))
|
/ast/src/lib/libexpr/ |
H A D | exerror.c | 35 exerror(const char* format, ...) argument 48 va_start(ap, format); 49 sfvprintf(sp, format, ap);
|
/ast/src/cmd/builtin/ |
H A D | strings.c | 47 "[t:radix|format?Write each string preceded by its byte offset from the" 48 " start of the file. The offset radix is determined by:]:[format]{" 128 strings(Sfio_t* in, Sfio_t* out, register int width, char* format, register int flags) argument 140 if (format) 142 c = strlen(format) - 1; 144 sfsprintf(fmt, sizeof(fmt), "%%%.*sI*%c", c, format, format[c]); 146 sfsprintf(fmt, sizeof(fmt), "%%%.*sI*%c %%.*s\n", c, format, format[c]); 163 if (format) 209 register char* format = 0; local [all...] |
H A D | nl.c | 67 "[n:number-format]:[format?\aformat\a specifies the line numbering format. " 100 int format; member in struct:_nl_ 128 char format[20]; local 129 if(pp->format==FORMAT_LN) 130 sfsprintf(format,sizeof(format),"%%-%dd%%s",pp->width); 131 else if(pp->format==FORMAT_RN) 132 sfsprintf(format,sizeo [all...] |
/ast/src/lib/libast/port/ |
H A D | astquery.c | 27 * if format==0 then verify that interaction is possible 43 astquery(int quit, const char* format, ...) argument 56 va_start(ap, format); 57 if (!format) 85 sfvprintf(op, format, ap);
|
/ast/src/cmd/pax/ |
H A D | cpio.sh | 32 OPTSTR='abcdfiklmoprstuvBSV6C:[size]H:[format]M:[message]O:[file]?D [ pattern | directory ]' 37 format=binary 58 c) format=cpio ;; 94 asc|ASC) format=asc ;; 95 crc|CRC) format=aschk ;; 96 odc|ODC) format=cpio ;; 97 tar|TAR) format=tar ;; 98 ustar|USTAR) format=ustar ;; 127 options="$options -x $format -b $blocksize"
|
/ast/src/lib/libtk/library/demos/ |
H A D | tcolor | 155 set red [format %.0f [expr [.scale1 get]*65.535]] 156 set green [format %.0f [expr [.scale2 get]*65.535]] 157 set blue [format %.0f [expr [.scale3 get]*65.535]] 160 set red [format %.0f [expr {65535 - [.scale1 get]*65.535}]] 161 set green [format %.0f [expr {65535 - [.scale2 get]*65.535}]] 162 set blue [format %.0f [expr {65535 - [.scale3 get]*65.535}]] 172 set color [format "#%04x%04x%04x" $red $green $blue] 187 .scale1 set [format %.0f [expr $red/65.535]] 188 .scale2 set [format %.0f [expr $green/65.535]] 189 .scale3 set [format [all...] |
/ast/src/cmd/sortlib/sum/ |
H A D | sortsum.c | 106 Cxformat_t format; member in struct:Summary_s 273 sum->format.width = RECTYPE(state->fmt) == REC_fixed ? w : (!(sum->format.flags & CX_FLOAT) || sum->end.index || w >= 8) ? 0 : 8; 284 if (sum->op == 'v' || (*sum->type->internalf)(cx, sum->type, NiL, &sum->format, &v, (char*)x, w, cx->rm, cx->disc) < 0) 286 else if (state->regress && (sum->format.flags & CX_FLOAT)) 340 if ((n = (*sum->type->externalf)(cx, sum->type, NiL, &sum->format, &v.value, (char*)state->tmp.buf, y, cx->disc)) < 0) 370 c = (sum->type->format.flags & CX_BINARY) ? 0 : map[' ']; 380 c = (sum->type->format.flags & CX_BINARY) ? 0 : ' '; 479 sum->format = def->format; [all...] |