/illumos-gate/usr/src/cmd/mailx/ |
H A D | fio.c | 46 static int getln(char *line, int max, FILE *f); 115 * and has no leading blank line, i.e., never. 127 /* shift line to the left, copy null as well */ 137 /* leading empty line */ 178 /* Look for a From line that starts a new message */ 225 /* if didn't get a header line, we're no longer in the header */ 232 * Look for Status: line. Do quick check for second character, 288 /* Blank line. Skip StartNewMsg check below */ 332 char line[LINESIZE]; local 339 nread = getln(line, sizeo 377 getln(char *line, int max, FILE *f) argument [all...] |
H A D | lex.c | 297 char line[LINESIZE]; local 385 * Read a line of commands from the current input 392 if (readline(input, line) <= 0) { 410 if ((n = strlen(line)) == 0) 413 if (line[n] != '\\') 415 line[n++] = ' '; 418 strcat(linebuf, line); 421 if ((int)strlen(line) > n) { 423 "Line plus continuation line too long:\n\t%s\n\nplus\n\t%s\n"), 424 linebuf, line); [all...] |
H A D | list.c | 165 * line in the message structure. Return 0 on success, -1 439 getrawlist(char line[], char **argv, int argc) argument 446 cp = line; 540 * If no characters remain, we are at end of line,
|
H A D | names.c | 98 * Extract a list of names from a line, 104 extract(char line[], int arg_ntype) argument 112 if (line == NOSTR || strlen(line) == 0) 114 comma = docomma(line); 117 cp = line; 212 char line[BUFSIZ]; local 319 while (fgets(line, sizeof (line), fin)) { 320 if (strncmp(line, "Fro [all...] |
H A D | send.c | 63 * Call (*fp)(line, obuf) to print the line. 75 char line[LINESIZE], field[BUFSIZ]; local 79 int oldign = 0; /* previous line was ignored */ 95 nread = getaline(line, LINESIZE, ibuf, &unused); 100 * First line is the From line, so no headers 108 * If line is blank, we've reached end of 113 if (line[0] == '\n') { 132 * If this line i 238 headerp(register char *line) argument 734 char line[BUFSIZ]; local [all...] |
/illumos-gate/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_promif.c | 751 kmdb_prom_assfail(const char *assertion, const char *file, int line) argument 753 (void) mdb_dassert(assertion, file, line);
|
/illumos-gate/usr/src/cmd/fm/schemes/mem/sparc/ |
H A D | mem_disc.c | 298 int line, len, rc; local 308 for (line = 1; fgets(buf, sizeof (buf), fp) != NULL; line++) {
|
/illumos-gate/usr/src/cmd/fmt/ |
H A D | fmt.c | 51 wchar_t outbuf[BUFSIZ]; /* Sandbagged output line image */ 161 * and sending each line down for analysis. 176 * Collect a line, doing ^H processing. 198 * Toss anything remaining on the input line. 225 * Swipe trailing blanks from the line. 237 /* look for an initial mail header line */ 244 * only want to make sure cp points to a "From" line 253 /* no mail header line; process normally */ 258 /* already saw 1st mail header line; look for more */ 261 * blank line mean 299 prefix(wchar_t line[]) argument 386 csplit(wchar_t line[]) argument 425 msplit(wchar_t line[]) argument 534 tabulate(wchar_t line[]) argument 789 fill_hdrbuf(wchar_t line[]) argument [all...] |
/illumos-gate/usr/src/cmd/saf/ |
H A D | pmadm.c | 511 * add the line 556 int line; /* line number entry is on */ local 581 if ((line = find_svc(fp, pmtag, svctag)) == 0) { 588 if (line != 1) { 589 if (copy_file(fp, tfp, 1, line - 1)) { 595 if (copy_file(fp, tfp, line + 1, -1)) { 644 int line; /* line number entry is on */ local 673 if ((line 1046 int line = 0; /* line number we found entry on */ local [all...] |
/illumos-gate/usr/src/cmd/backup/lib/ |
H A D | rmtlib.c | 13 /* line below is from UCB 5.4 12/11/85 */ 323 char line[30]; local 326 (void) snprintf(line, sizeof (line), "R%d\n", count); 327 n = rmtcall("read", line); 353 char line[64]; /* numbers can get big */ local 355 (void) snprintf(line, sizeof (line), "W%d\n", count); 356 retval = rmtpush(line, strlen(line)); 384 char line[80]; local [all...] |
/illumos-gate/usr/src/cmd/bnu/ |
H A D | uudecode.c | 178 /* search for header line */ 184 gettext("No begin line\n")); 227 * Filename specified on the command line with -o 294 longlong_t line; local 298 for (line = 1; ; line++) { 299 /* for each input line */ 302 gettext("No end line\n")); 306 /* Is line == 'end\n'? */ 337 " (0x%x) on line" [all...] |
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | nfslog_config.c | 70 * Whitespace characters to delimit fields in a line. 939 * gataline attempts to get a line from the configuration file, 940 * upto LINESZ. A line in the file is a concatenation of lines if the 941 * continuation symbol '\' is used at the end of the line. Returns 942 * line on success, a NULL on EOF, and an empty string on lines > linesz. 945 gataline(FILE *fp, char *path, char *line, int linesz) { argument 946 register char *p = line; 953 if (fgets(p, linesz - (p-line), fp) == NULL) { 954 return (*line ? line [all...] |
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/ |
H A D | utilities.c | 206 char line[80]; local 220 if (getaline(stdin, line, sizeof (line)) == EOF) 223 if (line[0] == 'y' || line[0] == 'Y')
|
/illumos-gate/usr/src/cmd/genmsg/ |
H A D | util.c | 74 int line; member in struct:_MsgID 107 add_msg(int setid, int msgid, char *msg, char *file, int line, int no_write) argument 112 if (lookup_msgid(si, msgid, msg, file, line)) { 115 add_msgid(si, msgid, msg, file, line, no_write); 118 add_setid(setid, msgid, msg, file, line, no_write); 208 if (mi->line && mi->file && 211 "$ File:%s, line:%d\n", 212 basename(mi->file), mi->line); 228 if (mi->line && mi->file && 231 "$ File:%s, line 269 lookup_msgid(SetID si, int msgid, char *msg, char *file, int line) argument 292 add_msgid(SetID si, int msgid, char *msg, char *file, int line, int no_write) argument 350 add_setid(int setid, int msgid, char *msg, char *file, int line, int no_write) argument 413 char line[LINE_MAX]; local 496 get_msgid(char *file, int line, int setid, char *str) argument 557 int line = 0; local 818 src_err(char *file, int line, char *fmt, ...) argument [all...] |
/illumos-gate/usr/src/cmd/latencytop/common/ |
H A D | table.c | 135 * Helper functions that reads a line from a character array. 138 read_line_from_mem(const char *mem, int mem_len, char *line, int line_len, argument 141 g_assert(mem != NULL && line != NULL && index != NULL); 152 *line = mem[(*index)++]; 154 ++line; 156 if (*(line-1) == '\r' || *(line-1) == '\n') { 160 *line = '\0'; 475 * Main logic that parses translation rules one line at a time, 487 char line[25 local [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | pkgops.c | 289 char line[PATH_MAX+1]; local 301 /* read the file line by line searching for the specified package */ 303 while (fgets(line, sizeof (line), a_fp) != (char *)NULL) { 307 len = strlen(line); 308 while ((len > 0) && (line[len-1] == '\n')) { 309 line[--len] = '\0'; 313 if ((line[0] == '#') || (line[ 353 char line[PATH_MAX+1]; local 542 char line[PATH_MAX+1]; local [all...] |
/illumos-gate/usr/src/cmd/syseventd/daemons/syseventconfd/ |
H A D | syseventconfd.c | 285 int line; local 311 if (nvlist_lookup_int32(cmd->cmd_nvlist, "line", &line) != 0) { 312 syslog(LOG_ERR, NVLIST_FILE_LINE_FORMAT_ERR, "line"); 382 file, line, user, strerror(errno)); 562 * next_arg() is used to break up a command line
|
/illumos-gate/usr/src/cmd/tic/ |
H A D | tic_parse.c | 168 char line[1024]; local 226 fgets(line, 1024, stdin); 227 fprintf(stderr, "%s", line); 238 char line[1024]; local 243 fgets(line, 1024, stdin); 245 ptr, ptr->offset, ptr->bptr, ptr->fptr, line);
|
/illumos-gate/usr/src/cmd/tsol/tnchkdb/ |
H A D | tnchkdb.c | 226 (void) fprintf(stderr, gettext("line %1$d: %2$s: %.32s\n"), linenum, 241 "line %3$d entry %4$s\n"), name, GETBLTYPE(lab), linenum, 249 "line %3$d entry %4$s\n"), name, lclass, linenum, 261 "line %2$d entry %3$s\n"), name, linenum, template); 275 char line[2048], *cp; local 295 while (fgets(line, sizeof (line), fp) != NULL) { 297 if (line[0] == '#') 299 if ((cp = strchr(line, '\n')) != NULL) 301 (void) str_to_tpstr(line, strle 435 char line[2048], *cp; local 577 char line[2048], *cp; local [all...] |
/illumos-gate/usr/src/tools/ctf/dwarf/common/ |
H A D | dwarf_print_lines.c | 60 " offset code address file line umn ? ? ?\n"); 63 /* FIXME: print new line values: prologue_end epilogue_begin isa */ 69 unsigned long line, 80 (unsigned long) line, 129 Dwarf_Word line = 1; local 159 /* In case there are wierd bytes 'after' the line table 269 printf("total line info length %ld bytes, " 270 "line offset 0x%" DW_PR_DUx " %" DW_PR_DSd "\n", 274 printf("line table version %d\n",(int) prefix.pf_version); 275 printf("line tabl 65 print_line_detail(char *prefix, int opcode, Dwarf_Unsigned address, unsigned long file, unsigned long line, unsigned long column, int is_stmt, int basic_block, int end_sequence, int prologue_end, int epilogue_begin, int isa) argument [all...] |
H A D | dwarf_sort_line.c | 47 static linker) rearrange the table so the line table 65 /* the definition of the DWARF2/3 line table prolog. The value 67 length of a legal DWARF2/3 line prolog, which is at least 10 80 a linked list of so we can sort and reorder the line info. 175 We must iterate thru each of a set of prologues and line data. 248 /* The list of line area records is no longer needed. 263 byte of a line group for one (original) .o 279 If some line data was moved around, set *any_change to 1. 325 Dwarf_Word line = 1; local 454 line [all...] |
/illumos-gate/usr/src/tools/findunref/ |
H A D | findunref.c | 398 char line[MAXPATHLEN]; local 416 while (fgets(line, sizeof (line), fp) != NULL) { 417 newline = strrchr(line, '\n'); 421 for (i = 0; isspace(line[i]); i++) 424 if (line[i] == '#' || line[i] == '\0') 427 if (pnset_add(pnsetp, line) == 0) {
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/ |
H A D | iscsi_ioctl.c | 425 char *line = NULL; local 438 while ((line = iscsi_get_next_text(data, data_len, line)) != NULL) { 439 if (strncmp(TARGETNAME, line, strlen(TARGETNAME)) == 0) { 458 * line that we receive is a TargetAddress we will 465 line + strlen(TARGETNAME), 496 } else if (strncmp(TARGETADDRESS, line, 509 * If TARGETADDRESS is first line a SendTarget response 525 in_str = strchr(line, '='); 605 } else if (strlen(line) ! [all...] |
/illumos-gate/usr/src/lib/libast/amd64/include/ast/ |
H A D | vmalloc.h | 77 int line; /* line number */ member in struct:_vmalloc_s 211 #define _VMLINE_(vm) (_VM_(vm)->line = __LINE__) 213 #define _VMLINE_(vm) (_VM_(vm)->line = 0)
|
/illumos-gate/usr/src/lib/libast/common/include/ |
H A D | vmalloc.h | 77 int line; /* line number */ member in struct:_vmalloc_s 211 #define _VMLINE_(vm) (_VM_(vm)->line = __LINE__) 213 #define _VMLINE_(vm) (_VM_(vm)->line = 0)
|