Lines Matching +full:100 +full:base +full:- +full:fx
4 /*-
64 * Sometime March 1983 - Feb 1984.
75 * ported to Apple Unix (TM) (OREO) 26 -- 29 Jun 1987
184 if (stat(trypath, &st) == -1) in add_localedir_to_nlspath()
203 len -= new_p - new; in add_localedir_to_nlspath()
211 if (strncmp(old_p + pathlen, msgs_LOC, sizeof(msgs_LOC) - 1) == 0) in add_localedir_to_nlspath()
214 sizeof(msgs_lang) - 1) == 0) in add_localedir_to_nlspath()
296 settimes(); /* Immed. estab. timing base */ in main()
307 if ((f = xopen(_PATH_DEVNULL, O_RDONLY|O_LARGEFILE)) == -1 && in main()
308 (f = xopen("/", O_RDONLY|O_LARGEFILE)) == -1) in main()
329 if (*t == '-') t++; in main()
331 tcsh = strncmp(progname, tcshstr, sizeof(tcshstr) - 1) == 0; in main()
355 bslash_quote = 0; /* PWP: do tcsh-style backslash quoting? */ in main()
359 /* Default history size to 100 */ in main()
360 setcopy(STRhistory, str2short("100"), VAR_READWRITE); in main()
361 sethistory(100); in main()
373 * We are a login shell if: 1. we were invoked as -<something> with in main()
374 * optional arguments 2. or we were invoked only with the -l flag in main()
376 loginsh = (**tempv == '-') || (argc == 2 && in main()
377 tempv[1][0] == '-' && tempv[1][1] == 'l' && in main()
383 **tempv = '-'; /* Avoid giving VMS an acidic stomach */ in main()
387 if (loginsh && **tempv != '-') { in main()
396 argv0 = strspl("-", *tempv); in main()
398 argc--; in main()
422 * On solaris ISO8859-1 contains no printable characters in the upper half in main()
423 * so we need to test only for MB_CUR_MAX == 1, otherwise for multi-byte in main()
443 * tty list for login-watch. in main()
457 * A security feature was added to rlogind affecting FX/80's Concentrix in main()
459 * This security change also affects the FX/2800 series. in main()
511 * 7-10-87 Paul Placeway autologout should be set ONLY on login shells and in main()
513 * for any psudo-terminals (this catches most window systems) and not for in main()
529 * Also by Jean-Francois Lamy <lamy%ai.toronto.edu@RELAY.CS.NET>: check the in main()
533 * (smart) C compiler might re-arange things wrong. in main()
619 fast = 1; /* No home -> can't read scripts */ in main()
645 setcopy(STReuser, str2short(pw->pw_name), VAR_READWRITE); in main()
660 setcopy(STRuser, str2short(pw->pw_name), VAR_READWRITE); in main()
672 setcopy(STRgroup, str2short(gr->gr_name), VAR_READWRITE); in main()
685 cbuff[sizeof(cbuff) - 1] = '\0'; /* just in case */ in main()
763 * Re-initialize path if set in environment in main()
784 * the executable in environments where the compiled-in in main()
792 if ((sh_len >= 5 && strcmp(tcp + (sh_len - 5), "/tcsh") == 0) || in main()
793 (!tcsh && sh_len >= 4 && strcmp(tcp + (sh_len - 4), "/csh") == 0)) in main()
847 * non-interruptible our hand must be forced or we (and our children) won't in main()
888 if (argc > 1 && strcmp(argv[1], "--version") == 0) { in main()
892 if (argc > 1 && strcmp(argv[1], "--help") == 0) { in main()
900 * Note that processing of -v/-x is actually delayed till after script in main()
903 * We set the first character of our name to be '-' if we are a shell in main()
907 argc--, tempv++; in main()
908 while (argc > 0 && (tcp = tempv[0])[0] == '-' && in main()
913 case 0: /* - Interruptible, no prompt */ in main()
919 case 'b': /* -b Next arg is input file */ in main()
923 case 'c': /* -c Command input from arg */ in main()
926 argc--, tempv++; in main()
943 case 'd': /* -d Load directory stack from file */ in main()
948 case 'D': /* -D Define environment variable */ in main()
964 case 'e': /* -e Exit on any error */ in main()
968 case 'f': /* -f Fast start */ in main()
972 case 'i': /* -i Interactive, even if !intty */ in main()
977 case 'm': /* -m read .cshrc (from su) */ in main()
981 case 'n': /* -n Don't execute */ in main()
985 case 'q': /* -q (Undoc'd) ... die on quit */ in main()
989 case 's': /* -s Read from std input */ in main()
993 case 't': /* -t Read one line from input */ in main()
999 case 'v': /* -v Echo hist expanded input */ in main()
1003 case 'x': /* -x Echo just before execution */ in main()
1007 case 'V': /* -V Echo hist expanded input */ in main()
1011 case 'X': /* -X Echo just before execution */ in main()
1029 * "#!/foo -f " scripts in main()
1035 stderror(ERR_TCSHUSAGE, tcp-1, progname); in main()
1039 tempv++, argc--; in main()
1046 * Unless prevented by -, -c, -i, -s, or -t, if there are remaining in main()
1117 * told (via -i, or -) or we are a login shell (arg0 starts with -) or the in main()
1135 /* that's a meta-questionmark */ in main()
1145 opgrp = tpgrp = -1; in main()
1149 **argv = '-'; in main()
1205 f = -1; in main()
1209 if (f != -1 && shpgrp == 0) { in main()
1216 if (f != -1 && grabpgrp(f, shpgrp) != -1) { in main()
1221 if (setdisc(f) != -1) { in main()
1225 if (tcsetpgrp(f, shpgrp) == -1) { in main()
1235 if (setpgid(0, shpgrp) == -1) { in main()
1239 if (tcsetpgrp(f, shpgrp) == -1) { in main()
1252 if (setpgid(0, shpgrp) == -1) { in main()
1269 tpgrp = -1; in main()
1271 if (tpgrp == -1) { in main()
1286 tpgrp = -1; in main()
1308 * start-up scripts. in main()
1374 exitset--; in main()
1385 * Now are ready for the -v and -x flags in main()
1394 /* If this -c command caused an error before, skip processing */ in main()
1408 * * Give an error on -c arguments that end in * backslash to in main()
1416 while (cp > arginp && *--cp == '\\') in main()
1434 * Mop-up. in main()
1527 if (ep != cp && ep[-1] == '/' && dp[0] == '/') /* silly win95 */ in srccat()
1553 if ((unit = xopen(f, O_RDONLY|O_LARGEFILE)) == -1) in srcfile()
1556 unit = dmove(unit, -1); in srcfile()
1573 st->insource = insource; in st_save()
1574 st->SHIN = SHIN; in st_save()
1582 * you can do because of all the open file descriptors. -IAN! in st_save()
1585 (fstat(d1, &s1) != -1 && fstat(d2, &s2) != -1 \ in st_save()
1588 st->OLDSTD = st->SHOUT = st->SHDIAG = -1;/* test later to restore these */ in st_save()
1592 st->OLDSTD = OLDSTD; in st_save()
1593 OLDSTD = dmove(0, -1); in st_save()
1597 st->SHOUT = SHOUT; in st_save()
1598 SHOUT = dmove(1, -1); in st_save()
1602 st->SHDIAG = SHDIAG; in st_save()
1603 SHDIAG = dmove(2, -1); in st_save()
1609 st->intty = intty; in st_save()
1610 st->whyles = whyles; in st_save()
1611 st->gointr = gointr; in st_save()
1612 st->arginp = arginp; in st_save()
1613 st->evalp = evalp; in st_save()
1614 st->evalvec = evalvec; in st_save()
1615 st->alvecp = alvecp; in st_save()
1616 st->alvec = alvec; in st_save()
1617 st->onelflg = onelflg; in st_save()
1618 st->enterhist = enterhist; in st_save()
1619 st->justpr = justpr; in st_save()
1621 st->HIST = HIST; in st_save()
1623 st->HIST = '\0'; in st_save()
1624 st->cantell = cantell; in st_save()
1625 cpybin(st->B, B); in st_save()
1634 if ((vp = adrof(STRargv)) != NULL && vp->vec != NULL) in st_save()
1635 st->argv = saveblk(vp->vec); in st_save()
1637 st->argv = NULL; in st_save()
1641 st->argv = NULL; in st_save()
1642 st->av = av; in st_save()
1678 if (st->SHIN == -1) in st_restore()
1693 cpybin(B, st->B); in st_restore()
1697 insource = st->insource; in st_restore()
1698 SHIN = st->SHIN; in st_restore()
1699 if (st->OLDSTD != -1) in st_restore()
1700 xclose(OLDSTD), OLDSTD = st->OLDSTD; in st_restore()
1701 if (st->SHOUT != -1) in st_restore()
1702 xclose(SHOUT), SHOUT = st->SHOUT; in st_restore()
1703 if (st->SHDIAG != -1) in st_restore()
1704 xclose(SHDIAG), SHDIAG = st->SHDIAG; in st_restore()
1705 arginp = st->arginp; in st_restore()
1706 onelflg = st->onelflg; in st_restore()
1707 evalp = st->evalp; in st_restore()
1708 evalvec = st->evalvec; in st_restore()
1709 alvecp = st->alvecp; in st_restore()
1710 alvec = st->alvec; in st_restore()
1711 intty = st->intty; in st_restore()
1712 whyles = st->whyles; in st_restore()
1713 gointr = st->gointr; in st_restore()
1714 if (st->HIST != '\0') in st_restore()
1715 HIST = st->HIST; in st_restore()
1716 enterhist = st->enterhist; in st_restore()
1717 cantell = st->cantell; in st_restore()
1718 justpr = st->justpr; in st_restore()
1720 if (st->argv != NULL) in st_restore()
1721 setq(STRargv, st->argv, &shvhed, VAR_READWRITE); in st_restore()
1722 else if (st->av != NULL && *st->av != NULL && adrof(STRargv) != NULL) in st_restore()
1735 st.SHIN = -1; /* st_restore checks this */ in srcunit()
1749 /* Does nothing before st_save() because st.SHIN == -1 */ in srcunit()
1769 process(0); /* 0 -> blow away on errors */ in srcunit()
1865 for (pp = proclist.p_next; pp; pp = pp->p_next) { in phup()
1879 if (((np->p_flags & PFOREGND) != 0) && np->p_jobid != shpgrp) { in phup()
1880 np->p_flags &= ~PHUP; in phup()
1881 if (killpg(np->p_jobid, SIGHUP) != -1) { in phup()
1884 (void) killpg(np->p_jobid, SIGCONT); in phup()
1889 while ((np = np->p_friends) != pp); in phup()
1926 /* MH - handle interrupted completions specially */ in pintr1()
1931 /* JV - Make sure we shut off inputl */ in pintr1()
1945 * one does "onintr -" then we shan't be interruptible so we needn't worry in pintr1()
1955 * If we are editing a multi-line input command, and move to in pintr1()
1984 * If an end-of-file occurs, we return.
2020 * at this point that we clean up any left-over open files, by in process()
2021 * closing all but a fixed number of pre-defined files. Thus in process()
2033 chkstop--; in process()
2079 * Do not echo if we're only entering history (source -h). in process()
2160 * <mlschroe@immd4.informatik.uni-erlangen.de> was execute(t, tpgrp); in process()
2162 execute(t, (tpgrp > 0 ? tpgrp : -1), NULL, NULL, TRUE); in process()
2182 exitset--; in process()
2248 if (v == NULL || v->vec == NULL) in mailchk()
2251 vp = v->vec; in mailchk()
2253 intvl = (cnt && number(*vp)) ? (--cnt, getn(*vp++)) : MAILINTVL; in mailchk()
2277 if (stat(tempfilename, &stc) != -1 && S_ISDIR(stc.st_mode)) { in mailchk()
2418 /* we toggle DTR. clear dtr - sleep 1 - set dtr */ in done()
2436 for (pp = proclist.p_next; pp; pp = pp->p_next) { in done()
2439 if ((np->p_flags & PHUP) && np->p_jobid != shpgrp && in done()
2440 np->p_parentid == mypid) { in done()
2441 if (killpg(np->p_jobid, SIGHUP) != -1) { in done()
2444 (void) killpg(np->p_jobid, SIGCONT); in done()
2449 while ((np = np->p_friends) != pp); in done()
2535 displayHistStats("Exiting"); /* no-op unless DEBUG_HIST */ in record()
2550 for (i = 0; i < 100; i++) { in grabpgrp()
2551 if ((pgrp = tcgetpgrp(fd)) == -1) in grabpgrp()
2552 return -1; in grabpgrp()
2561 return -1; in grabpgrp()