rbuf 2904 src/simh/scp.c char rbuf[CBUFSIZE]; rbuf 2947 src/simh/scp.c memset (rbuf, '\0', sizeof(rbuf)); rbuf 2948 src/simh/scp.c ap = rbuf; rbuf 2953 src/simh/scp.c if ((sizeof(rbuf)-strlen(rbuf)) < (2 + strlen(do_arg[i]))) { rbuf 2958 src/simh/scp.c sprintf(&rbuf[strlen(rbuf)], "%s%c%s%c\"", (i != 1) ? " " : "", quote, do_arg[i], quote); rbuf 2961 src/simh/scp.c sprintf(&rbuf[strlen(rbuf)], "%s%s", (i != 1) ? " " : "", do_arg[i]); rbuf 2980 src/simh/scp.c sprintf (rbuf, "%4d-%02d-%02d", tmnow->tm_year+1900, tmnow->tm_mon+1, tmnow->tm_mday); rbuf 2981 src/simh/scp.c ap = rbuf; rbuf 2984 src/simh/scp.c sprintf (rbuf, "%02d:%02d:%02d", tmnow->tm_hour, tmnow->tm_min, tmnow->tm_sec); rbuf 2985 src/simh/scp.c ap = rbuf; rbuf 2988 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 2989 src/simh/scp.c ap = rbuf; rbuf 2993 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%x", tmnow); rbuf 2994 src/simh/scp.c ap = rbuf; rbuf 2997 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%I:%M:%S %p", tmnow); rbuf 2998 src/simh/scp.c ap = rbuf; rbuf 3001 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%c", tmnow); rbuf 3002 src/simh/scp.c ap = rbuf; rbuf 3006 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%Y", tmnow); rbuf 3007 src/simh/scp.c ap = rbuf; rbuf 3010 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%y", tmnow); rbuf 3011 src/simh/scp.c ap = rbuf; rbuf 3014 src/simh/scp.c sprintf (rbuf, "%d", (tmnow->tm_year + 1900)/100); rbuf 3015 src/simh/scp.c ap = rbuf; rbuf 3029 src/simh/scp.c sprintf (rbuf, "%d", cal_year); /* 2 digit year */ rbuf 3031 src/simh/scp.c sprintf (rbuf, "%d", cal_year + 1900); /* 4 digit year */ rbuf 3032 src/simh/scp.c ap = rbuf; rbuf 3035 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%m", tmnow); rbuf 3036 src/simh/scp.c ap = rbuf; rbuf 3039 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%b", tmnow); rbuf 3040 src/simh/scp.c ap = rbuf; rbuf 3043 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%d", tmnow); rbuf 3044 src/simh/scp.c ap = rbuf; rbuf 3047 src/simh/scp.c sprintf (rbuf, "%d", (tmnow->tm_wday ? tmnow->tm_wday : 7)); rbuf 3048 src/simh/scp.c ap = rbuf; rbuf 3066 src/simh/scp.c sprintf (rbuf, "%02d", iso_wk); rbuf 3068 src/simh/scp.c sprintf (rbuf, "%04d", iso_yr); rbuf 3069 src/simh/scp.c ap = rbuf; rbuf 3072 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%j", tmnow); rbuf 3073 src/simh/scp.c ap = rbuf; rbuf 3076 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%H", tmnow); rbuf 3077 src/simh/scp.c ap = rbuf; rbuf 3080 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%M", tmnow); rbuf 3081 src/simh/scp.c ap = rbuf; rbuf 3084 src/simh/scp.c strftime (rbuf, sizeof(rbuf), "%S", tmnow); rbuf 3085 src/simh/scp.c ap = rbuf; rbuf 3088 src/simh/scp.c sprintf (rbuf, "%08X", sim_last_cmd_stat); rbuf 3089 src/simh/scp.c ap = rbuf; rbuf 3092 src/simh/scp.c sprintf (rbuf, "%s", sim_error_text (sim_last_cmd_stat)); rbuf 3093 src/simh/scp.c ap = rbuf; rbuf 3096 src/simh/scp.c sprintf (rbuf, "%s", sim_do_echo ? "-V" : ""); rbuf 3097 src/simh/scp.c ap = rbuf; rbuf 3100 src/simh/scp.c sprintf (rbuf, "%s", sim_do_echo ? "-V" : ""); rbuf 3101 src/simh/scp.c ap = rbuf; rbuf 3104 src/simh/scp.c sprintf (rbuf, "%s", sim_localopc ? "1" : ""); rbuf 3105 src/simh/scp.c ap = rbuf; rbuf 3108 src/simh/scp.c sprintf (rbuf, "%s", sim_quiet ? "-Q" : ""); rbuf 3109 src/simh/scp.c ap = rbuf; rbuf 3112 src/simh/scp.c sprintf (rbuf, "%s", sim_show_message ? "" : "-Q"); rbuf 3113 src/simh/scp.c ap = rbuf; rbuf 3117 src/simh/scp.c sprintf (rbuf, "%ld", (long)gethostid()); rbuf 3119 src/simh/scp.c sprintf (rbuf, "00000000"); rbuf 3121 src/simh/scp.c ap = rbuf; rbuf 3125 src/simh/scp.c sprintf (rbuf, "%ld", (long)getuid()); rbuf 3127 src/simh/scp.c sprintf (rbuf, "0"); rbuf 3129 src/simh/scp.c ap = rbuf; rbuf 3133 src/simh/scp.c sprintf (rbuf, "%ld", (long)getgid()); rbuf 3135 src/simh/scp.c sprintf (rbuf, "0"); rbuf 3137 src/simh/scp.c ap = rbuf; rbuf 3141 src/simh/scp.c sprintf (rbuf, "%ld", (long)geteuid()); rbuf 3143 src/simh/scp.c sprintf (rbuf, "0"); rbuf 3145 src/simh/scp.c ap = rbuf; rbuf 3149 src/simh/scp.c sprintf (rbuf, "%ld", (long)getegid()); rbuf 3151 src/simh/scp.c sprintf (rbuf, "0"); rbuf 3153 src/simh/scp.c ap = rbuf; rbuf 3157 src/simh/scp.c sprintf (rbuf, "%ld", (long)getpid()); rbuf 3159 src/simh/scp.c sprintf (rbuf, "0"); rbuf 3161 src/simh/scp.c ap = rbuf; rbuf 3165 src/simh/scp.c sprintf (rbuf, "%ld", (long)getppid()); rbuf 3167 src/simh/scp.c sprintf (rbuf, "0"); rbuf 3169 src/simh/scp.c ap = rbuf; rbuf 3173 src/simh/scp.c sprintf (rbuf, "%ld", (long)getpgid(getpid())); rbuf 3175 src/simh/scp.c sprintf (rbuf, "0"); rbuf 3177 src/simh/scp.c ap = rbuf; rbuf 3181 src/simh/scp.c sprintf (rbuf, "%ld", (long)getsid(getpid())); rbuf 3183 src/simh/scp.c sprintf (rbuf, "0"); rbuf 3185 src/simh/scp.c ap = rbuf; rbuf 3189 src/simh/scp.c sprintf (rbuf, "LITTLE"); rbuf 3191 src/simh/scp.c sprintf (rbuf, "BIG"); rbuf 3193 src/simh/scp.c sprintf (rbuf, "UNKNOWN"); rbuf 3195 src/simh/scp.c ap = rbuf; rbuf 3198 src/simh/scp.c sprintf (rbuf, "%s", sim_name); rbuf 3199 src/simh/scp.c ap = rbuf; rbuf 3203 src/simh/scp.c sprintf (rbuf, "%s", VER_H_GIT_VERSION); rbuf 3205 src/simh/scp.c sprintf (rbuf, "UNKNOWN"); rbuf 3207 src/simh/scp.c ap = rbuf; rbuf 3211 src/simh/scp.c sprintf (rbuf, "%s", VER_H_GIT_HASH); rbuf 3213 src/simh/scp.c sprintf (rbuf, "0000000000000000000000000000000000000000"); rbuf 3215 src/simh/scp.c ap = rbuf; rbuf 3219 src/simh/scp.c sprintf (rbuf, "%s", VER_H_GIT_RELT); rbuf 3221 src/simh/scp.c sprintf (rbuf, "X"); rbuf 3223 src/simh/scp.c ap = rbuf; rbuf 3227 src/simh/scp.c sprintf (rbuf, "%s", VER_H_GIT_DATE); rbuf 3229 src/simh/scp.c sprintf (rbuf, "UNKNOWN"); rbuf 3231 src/simh/scp.c ap = rbuf; rbuf 3236 src/simh/scp.c sprintf(rbuf, "%ld", (long)get_nprocs()); rbuf 3240 src/simh/scp.c sprintf (rbuf, "%llu", rbuf 3243 src/simh/scp.c sprintf(rbuf, "1"); rbuf 3245 src/simh/scp.c ap = rbuf; rbuf 2386 src/simh/sim_console.c uint8 *rbuf; rbuf 2391 src/simh/sim_console.c rbuf = (uint8 *)malloc (1 + strlen(cptr)); rbuf 2392 src/simh/sim_console.c if (!rbuf) rbuf 2405 src/simh/sim_console.c decode ((char *)rbuf, cptr); /* decod string */ rbuf 2406 src/simh/sim_console.c sim_send_input (&sim_con_send, rbuf, strlen((char *)rbuf), 0, 0); /* queue it for output */ rbuf 2407 src/simh/sim_console.c FREE (rbuf);