rbuf 2905 src/simh/scp.c char rbuf[CBUFSIZE]; rbuf 2948 src/simh/scp.c memset (rbuf, '\0', sizeof(rbuf)); rbuf 2949 src/simh/scp.c ap = rbuf; rbuf 2954 src/simh/scp.c if ((sizeof(rbuf)-strlen(rbuf)) < (2 + strlen(do_arg[i]))) { rbuf 2959 src/simh/scp.c sprintf(&rbuf[strlen(rbuf)], "%s%c%s%c\"", (i != 1) ? " " : "", quote, do_arg[i], quote); rbuf 2962 src/simh/scp.c sprintf(&rbuf[strlen(rbuf)], "%s%s", (i != 1) ? " " : "", do_arg[i]); rbuf 2981 src/simh/scp.c sprintf (rbuf, "%4d-%02d-%02d", tmnow->tm_year+1900, tmnow->tm_mon+1, tmnow->tm_mday); rbuf 2982 src/simh/scp.c ap = rbuf; rbuf 2985 src/simh/scp.c sprintf (rbuf, "%02d:%02d:%02d", tmnow->tm_hour, tmnow->tm_min, tmnow->tm_sec); rbuf 2986 src/simh/scp.c ap = rbuf; rbuf 2989 src/simh/scp.c sprintf (rbuf, "%04d-%02d-%02dT%02d:%02d:%02d", tmnow->tm_year+1900, tmnow->tm_mon+1, tmnow->tm_mday, tmnow->tm_hour, tmnow->tm_min, tmnow->tm_sec); rbuf 2990 src/simh/scp.c ap = rbuf; rbuf 2994 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%x", tmnow); rbuf 2995 src/simh/scp.c ap = rbuf; rbuf 2998 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%I:%M:%S %p", tmnow); rbuf 2999 src/simh/scp.c ap = rbuf; rbuf 3002 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%c", tmnow); rbuf 3003 src/simh/scp.c ap = rbuf; rbuf 3007 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%Y", tmnow); rbuf 3008 src/simh/scp.c ap = rbuf; rbuf 3011 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%y", tmnow); rbuf 3012 src/simh/scp.c ap = rbuf; rbuf 3015 src/simh/scp.c sprintf (rbuf, "%d", (tmnow->tm_year + 1900)/100); rbuf 3016 src/simh/scp.c ap = rbuf; rbuf 3030 src/simh/scp.c sprintf (rbuf, "%d", cal_year); /* 2 digit year */ rbuf 3032 src/simh/scp.c sprintf (rbuf, "%d", cal_year + 1900); /* 4 digit year */ rbuf 3033 src/simh/scp.c ap = rbuf; rbuf 3036 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%m", tmnow); rbuf 3037 src/simh/scp.c ap = rbuf; rbuf 3040 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%b", tmnow); rbuf 3041 src/simh/scp.c ap = rbuf; rbuf 3044 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%d", tmnow); rbuf 3045 src/simh/scp.c ap = rbuf; rbuf 3048 src/simh/scp.c sprintf (rbuf, "%d", (tmnow->tm_wday ? tmnow->tm_wday : 7)); rbuf 3049 src/simh/scp.c ap = rbuf; rbuf 3067 src/simh/scp.c sprintf (rbuf, "%02d", iso_wk); rbuf 3069 src/simh/scp.c sprintf (rbuf, "%04d", iso_yr); rbuf 3070 src/simh/scp.c ap = rbuf; rbuf 3073 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%j", tmnow); rbuf 3074 src/simh/scp.c ap = rbuf; rbuf 3077 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%H", tmnow); rbuf 3078 src/simh/scp.c ap = rbuf; rbuf 3081 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%M", tmnow); rbuf 3082 src/simh/scp.c ap = rbuf; rbuf 3085 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%S", tmnow); rbuf 3086 src/simh/scp.c ap = rbuf; rbuf 3089 src/simh/scp.c sprintf (rbuf, "%08X", sim_last_cmd_stat); rbuf 3090 src/simh/scp.c ap = rbuf; rbuf 3093 src/simh/scp.c sprintf (rbuf, "%s", sim_error_text (sim_last_cmd_stat)); rbuf 3094 src/simh/scp.c ap = rbuf; rbuf 3097 src/simh/scp.c sprintf (rbuf, "%s", sim_do_echo ? "-V" : ""); rbuf 3098 src/simh/scp.c ap = rbuf; rbuf 3101 src/simh/scp.c sprintf (rbuf, "%s", sim_do_echo ? "-V" : ""); rbuf 3102 src/simh/scp.c ap = rbuf; rbuf 3105 src/simh/scp.c sprintf (rbuf, "%s", sim_localopc ? "1" : ""); rbuf 3106 src/simh/scp.c ap = rbuf; rbuf 3109 src/simh/scp.c sprintf (rbuf, "%s", sim_quiet ? "-Q" : ""); rbuf 3110 src/simh/scp.c ap = rbuf; rbuf 3113 src/simh/scp.c sprintf (rbuf, "%s", sim_show_message ? "" : "-Q"); rbuf 3114 src/simh/scp.c ap = rbuf; rbuf 3118 src/simh/scp.c sprintf (rbuf, "%ld", (long)gethostid()); rbuf 3120 src/simh/scp.c sprintf (rbuf, "00000000"); rbuf 3122 src/simh/scp.c ap = rbuf; rbuf 3126 src/simh/scp.c sprintf (rbuf, "%ld", (long)getuid()); rbuf 3128 src/simh/scp.c sprintf (rbuf, "0"); rbuf 3130 src/simh/scp.c ap = rbuf; rbuf 3134 src/simh/scp.c sprintf (rbuf, "%ld", (long)getgid()); rbuf 3136 src/simh/scp.c sprintf (rbuf, "0"); rbuf 3138 src/simh/scp.c ap = rbuf; rbuf 3142 src/simh/scp.c sprintf (rbuf, "%ld", (long)geteuid()); rbuf 3144 src/simh/scp.c sprintf (rbuf, "0"); rbuf 3146 src/simh/scp.c ap = rbuf; rbuf 3150 src/simh/scp.c sprintf (rbuf, "%ld", (long)getegid()); rbuf 3152 src/simh/scp.c sprintf (rbuf, "0"); rbuf 3154 src/simh/scp.c ap = rbuf; rbuf 3158 src/simh/scp.c sprintf (rbuf, "%ld", (long)getpid()); rbuf 3160 src/simh/scp.c sprintf (rbuf, "0"); rbuf 3162 src/simh/scp.c ap = rbuf; rbuf 3166 src/simh/scp.c sprintf (rbuf, "%ld", (long)getppid()); rbuf 3168 src/simh/scp.c sprintf (rbuf, "0"); rbuf 3170 src/simh/scp.c ap = rbuf; rbuf 3174 src/simh/scp.c sprintf (rbuf, "%ld", (long)getpgid(getpid())); rbuf 3176 src/simh/scp.c sprintf (rbuf, "0"); rbuf 3178 src/simh/scp.c ap = rbuf; rbuf 3182 src/simh/scp.c sprintf (rbuf, "%ld", (long)getsid(getpid())); rbuf 3184 src/simh/scp.c sprintf (rbuf, "0"); rbuf 3186 src/simh/scp.c ap = rbuf; rbuf 3190 src/simh/scp.c sprintf (rbuf, "LITTLE"); rbuf 3192 src/simh/scp.c sprintf (rbuf, "BIG"); rbuf 3194 src/simh/scp.c sprintf (rbuf, "UNKNOWN"); rbuf 3196 src/simh/scp.c ap = rbuf; rbuf 3199 src/simh/scp.c sprintf (rbuf, "%s", sim_name); rbuf 3200 src/simh/scp.c ap = rbuf; rbuf 3204 src/simh/scp.c sprintf (rbuf, "%s", VER_H_GIT_VERSION); rbuf 3206 src/simh/scp.c sprintf (rbuf, "UNKNOWN"); rbuf 3208 src/simh/scp.c ap = rbuf; rbuf 3212 src/simh/scp.c sprintf (rbuf, "%s", VER_H_GIT_HASH); rbuf 3214 src/simh/scp.c sprintf (rbuf, "0000000000000000000000000000000000000000"); rbuf 3216 src/simh/scp.c ap = rbuf; rbuf 3220 src/simh/scp.c sprintf (rbuf, "%s", VER_H_GIT_RELT); rbuf 3222 src/simh/scp.c sprintf (rbuf, "X"); rbuf 3224 src/simh/scp.c ap = rbuf; rbuf 3228 src/simh/scp.c sprintf (rbuf, "%s", VER_H_GIT_DATE); rbuf 3230 src/simh/scp.c sprintf (rbuf, "UNKNOWN"); rbuf 3232 src/simh/scp.c ap = rbuf; rbuf 3237 src/simh/scp.c sprintf(rbuf, "%ld", (long)get_nprocs()); rbuf 3241 src/simh/scp.c sprintf (rbuf, "%llu", rbuf 3244 src/simh/scp.c sprintf(rbuf, "1"); rbuf 3246 src/simh/scp.c ap = rbuf; rbuf 2412 src/simh/sim_console.c uint8 *rbuf; rbuf 2417 src/simh/sim_console.c rbuf = (uint8 *)malloc (1 + strlen(cptr)); rbuf 2418 src/simh/sim_console.c if (!rbuf) rbuf 2431 src/simh/sim_console.c decode ((char *)rbuf, cptr); /* decod string */ rbuf 2432 src/simh/sim_console.c sim_send_input (&sim_con_send, rbuf, strlen((char *)rbuf), 0, 0); /* queue it for output */ rbuf 2433 src/simh/sim_console.c FREE (rbuf);