Subject: 35th Anniversary Edition (#500) Index: 1795 files patched, 289 dirs/files removed, 56 dirs/files added Description: 2.11BSD release was announced in January 1991. May 4 1991 saw patch #1 posted to Usenet. It is with great pleasure, after 499 patches, to announce in 2026 the release of "2.11BSD 35th Anniversary Edition". The plan was this patch, #500, would be only updated installation documentation, an updated /VERSION and some nice words announcing the offical release of a new bare metal install tape PLUS sanctioned pre- configured disk images. The poet Robert Burns summed up the change of plans with: "The best laid plans of mice and men oft go awry". The submission of improvements and fixes continued. Rather than a release immediately followed by #501, 502, ... the decision was made to delay the release and add more and more to patch #500. This patch will transform a #499 system to Patch Level 500: "2.11BSD 35th Anniversary Edition". MANY people have contributed over the years. Attempting to list all the contributors would be futile. Credit has been given in the patches as they were published - thank you to everyone! Thirty five years ago the thought was 2.11BSD would fade into the dustbin of history very quickly. Rather than fade away the system is more popular than ever. The official bootable tape image used for bare metal installation is maintained by Steven Schultz, sms@2bsd.com and is is available at: ftp://ftp.dfupdate.se/pub/pdp11/2.11BSD/PL500.tap.bz2 https://www.tuhs.org/Archive/Distributions/UCB/2BSD/2.11BSD ftp://ftp.2bsd.com/2.11BSD/PL500.tap.bz2 Sanctioned pre-configured disk images have been prepared from the official bootable tape distribution. Two canned sanctioned canned images are available: 1) The first image is for a PDP-11/70 system with classic MASSBUS peripherals, upgraded with an Ethernet controller and a modern terminal multiplexor. It supports the following hardware: PDP-11/70 CPU with 4MB of main memory and floating point processor Console terminal RM05 disk drive (quantity 4) TU77 tape drive DELUA Ethernet controller DHU11 16-port terminal multiplexor LP11 line printer It is supplied and maintained by Terri Kennedy, terri-decus@glaver.org and can be downloaded from: https://www.glaver.org/PiDP-11/tk2bsd/Generic-211BSD.tgz (or .zip) 2) The second image is a modern PDP-11/70 system: PDP-11/70 CPU with FPP and at least 1MB of memory 50 Hz line clock One DL-11 for console One DZ-11 for up to 8 terminal lines One UDA-50 for up to 4 MSCP disks One TU81 for up to 1 TMSCP tape One RL-11 for up to 4 RL02 disks One RH70 for up to 4 RP/RM disks de interface qe interface TCP/IP It is supplied and maintained by Johnny Billquist, bqt@softjar.se and can be downloaded from: ftp://ftp.dfupdate.se/pub/pdp11/2.11BSD/pidp-latest.dsk.gz ftp://ftp.dfupdate.se/pub/pdp11/2.11BSD/pidp-latest.tap.gz Now on with the presentation. Many hours have gone into the writing of the description/repeat-by/fix and instruction sections. Please read the entirety - enjoy! ;) 1) "ls -l" shows different date/time information depending on the age of the file. Files over 6 months old show "month day year" while other files show "month day hour:minute". 2) touch(1) does not support "-r" to use timestamp from an existing file or "-t" to use a user specified timestamp. 3) "sysctl vm.nswap" does not display the amount of swap space available 4) src/usr.bin/xinstall/xinstall.c has needless __STDC__ conditionals 5) src/ucb/pascal/pxp/Makefile and src/usr.bin/neqn/Makefile.old have incomplete clean: targets. "make clean" leaves executables and object files behind 6) tftp, tn3270, lpc, learn, banner, warp, mille, sail, nstest, timedc and btlgammon use gets() which is insecure and a warning message will be printed when the programs are run. 7) During patch #499 cruft was not removed from usr/src/libexec/tcpd 8) pstat(8) manpage references information not present in 2.11BSD 9) mkdir does not support the -m option to set the directory mode. 10) src/usr.bin/refer has two unused .c files and the Makefile contains targets for programs which are not installed. 'whatabout' was initially uncompilable (ancient C constructs used). Not worth fixing the compile issue because the program depends on files not present in /usr/dict (and are not mentioned in dict/README). The other program (refpart) is an undocumented test version of refer. deliv1.c uses gets() which is unsafe. 'deliv' is not installed in /usr/libexec/refer. 'hunt' requires deliv as a helper program. 11) find(1) has several errors: 1) inaccessible directory in / causes find to give errors for all further files in /, 2) source errors prevented compilation if #include is added, and 3) needless #ifdef statements. 12) The user root does not have a private home directory but instead uses the system's top level directory "/". This can expose root's private information (.rhosts, shell aliases, etc) to public view. The system admin account should have the same isolation as users have from each other. 13) ctype(3) not ANSI-C compliant. C99 required headers float.h, inttypes.h, iso646.h and locale.h are missing. C99 functions imaxabs(), imaxdiv(), strtoimax(), strtoumax(), setlocale(), localeconv() are missing. stdint.h missing C99type declarations and macro definitions. C compiler does not recognize "restrict" keyword. C compiler does not handle variable declarations anywhere in a block but only at the beginning of a block 14) shar can fail to open a directory when arguments to shar are relative pathnames. shar generates a sh script that does not chdir to the correct directory after processing a directory. 15) /usr/include/OLD contained two .h files. Each .h file was not meant for public use and was used by only one program: ps (psout.h) and uucp/aculib (dk.h). 16) ifconfig (and its manpage) indicate support for trailers/-trailers 17) chown does not recognize the user:group syntax used by other systems 18) The OLD and NEW directories in /sys/pdpstand haven't been used in almost 40 years. NEW/* wouldn't build then and doesn't build today. 19) corrupt uucico is installed. acucntrl.8 is present but acucntrl.0 is not created and installed. 20) manpage for symdump(1) is missing 21) device interrupts are not counted per device but vmstat(1) has the -i option to report the counts. vmstat.c looks for vax/non-pdp11 kernel symbols (_phz for example). 22) printf(3) formatting: if a float (i.e. %f) spec is used with a fraction field width of zero and if the value to be formatted is zero the output is spaces instead of "0". 23) the kernel source directory 'src/sys/pdpmba' has nothing in it except a 'tags' symlink. 24) usr/src/sys/bootrom contains the SI9500 boot rom code which is not needed. System has the SI9500 boot block in src/sys/mdec/si95uboot.s 25) creating a distribution tape in /sys/pdpstand leaves the compiled objects, libraries and standalone executables present in the source tree. tar will include the binaries when writing usr/src/sys to tape. 26) The mtools programs use gets() which is unsafe and causes a warning message to be printed. 27) symcompact is used to compact the kernel symbol table (but may be used on any non-stripped executable with a large symbol table) so that nm(1) (and other programs) can process the file. If the kernel has many device drivers configured symcompact will fail with a no memory error. The result is an executable which can not be handled by programs such as nm(1) or adb(1). 28) Patch #499 resolved the problem of two versions of grep being present in the system by removing the version from /bin and retaining the version in /usr/ucb. This causes two problems: 1) when the system is in single user mode or if /usr is not available (either has not been mounted or not created) 'grep' can not be used and 2) the version of grep.c from src/ucb coredumps with expressions the version in src/bin handles successfully. 29) "dmesg -" gives an error creating the obsolete/outdated file /usr/adm/msgbuf 30) The find database (/var/db/find.codes) is missing the last file in / 31) src/sendmail and src/sendmail.MX both have much cruft that should have been removed eons ago. sendmail.MX, although not used in most systems, does not compile. 32) MANY source files do not properly ifdef sccsid strings resulting in wasted D space in the compiled programs. 33) manpages refer to rather than 34) fcntl.h missing prototypes for open(), fcntl(), creat() and flock() 35) While the manpage for the game 'rogue' is installed the program itself is not built or installed. 36) /usr/local/trace has no documentation, no usage message, does not display all the tracebuf[] entries, and hardcoded the frequency of printing the field title header. 37) bk.4 manpage for the Berknet protocol exists but the kernel has no support at all (never implemented). 38) Hyperchannel ("hy") is listed as a network device in the kernel configuration file but there are no supporting files (.h or .c) present in the system 39) Compiling a kernel with no MSCP ('ra) controllers produces a warning message 40) 'checksys' does not include the bounce buffer allocated when the kernel option SOFUB_MAP is enabled. That buffer must lie entirely below 256KB. SOFUB_MAP is normally only used by the GENERIC kernel and the kernel table sizes (based on MAXUSERS) must be set very small to ensure correct bounce buffer placement. 41) The Ingres database system (/usr/ingres) fails to compile. There is also cruft that should be removed. 42) a) Only the front end of sccs is present in /usr/ucb/sccs, NONE of the background programs (get, admin, ...) are present in source or manpages b) sccs incorrectly initializes the pathname member of SccsProg[] entries. 43) 'nm' accepts "-a", sets but does not use 'aflg'. The manpage makes no mention of a -a option. 44) mkproto(8) hasn't been used, that anyone can recall, since it was created in 1985. mkproto(8) can't recreate links present in the source filesystem. The maximum size of file that can be copied is less than 256KB and the destination filesystem must be newly created. 45) Files in the /usr are owned by a non existent userid (10) 46) The default disk in quot(1) is incorrect. 47) No manpage exists for strdup(3) 48) setpassent(3) is missing a manpage 49) /dev/swap must be manually created/linked in /dev rather than programs using the swap device configured into the kernel. 50) devname(3) lacks an interface to free the resources used to access the /var/run/dev DBM database. 51) if /var/run/utmp does not exist w(1) coredumps 52) programs should use the system installed include files for pathnames: utmp.h for _PATH_UTMP, paths.h for _PATH_BSHELL, etc instead of definitions in program local pathnames.h 53) tcsh should use the system provided setenv(3) function. tcsh leaked the memory allocated for the host type (pdp11). large blocks of conditionals for obsolete platforms reduce readability and maintainability. limit command does not work. 54) snprintf(3) coredumps if the output buffer length is less than the amount of input data. 55) strftime(3) does not process '%b' correctly. This causes syslog(3) to create incorrect date strings. syslogd(8) does not see the expected date format and adds its own date string. Also no declaration is present in time.h for strftime(). 56) syslogd(8) is logging cron(8) messages in two files rather than only one file. 57) ps(1) a) uses a static array for tty devices, b) has incorrect default for crashdump memory image, c) doesn't use getopt() to process arguments 58) ntp has a Y2K bug that appears when PSTI support is enabled. 59) The change in ps(1)'s database (psdatabase) caused top(1) (which had a private copy of the structure) to fail. top(1) wasted a huge amount of memory allocating memory to hold tty and kernel wait channel info that is never used. Also memory was being allocated for user process info that was not used. 60) The program crc in the zmodem source distribution is not compiled or installed. 61) w(1), top(1), ps(1), fstat(8), identd(8) have the string "/dev/swap" wired in. See (49) above. 62) When a TCP uucp client with a very long domain name connects to uucpd, uucpd crashes before the UUCP connection even starts. 63) patch(1) has code to look for and attempt to check out SCCS files. Since SCCS has never existed (and never will) on 2.11 the code and D space (for strings, messages, etc) are a waste. 64) acctd.8 misspelled the word 'receipt'. 65) Outdated 'tags' files are present in several source directories. 66) f77 generates invalid intermediate code which causes c1 (code generator) to exit with a "No code table for op" error. 67) The f77 Makefile runs the optimizer twice for each .c file. The libc function mktemp() is defined locally which conflicts with the definition in 68) mkstr(1) does not handle the alarm or vertical tab characters. '\a' and '\v' should be converted into BEL and VT respectively. 69) err(1), errx(1), etc are not prototyped. 70) Many unsupported protocol and address families (with the corresponding name strings in CTL_NET_NAMES) are present in socket.h 71) Network memory resources are exhausted by too many sockets stuck in FIN_WAIT_2 state resulting in the system being unresponsive on the network. 72) monop(6) dumps core immediately upon launch. 73) upon startup battlestar(6) prints nothing, no descriptions of rooms, objects and attempts to save the score to /usr/games/lib/x rather than /usr/games/lib/battlestar.log 74) phantasia(6) runs setuid to root rather than daemon (as other setuid games). The Makefile copies the executable to the support directory and then creates a symlink in /usr/games pointing to the executable. Three arguments were being specified to signal() rather than two. There are unused test files present the source directory. 75) efl is resource starved. Including support for gcos, crayos and unusable metering (meter()) code is wrong. 76) The network image /netnix contains a surprising amount of wasted D space. 77) The stdio function fgetln() was inadvertenly omitted in the ANSI stdio portion of patch #499. 78) With the removal of lint (in patch #499) the source directories /usr/src/lib/mip and /usr/src/lib/pcc are no longer useful (or needed). 79) F77 programs can into an endless loop requiring a kill -9 to end the process. 80) rm(1) and mv(1) do not use getopt() to parse args. 81) The F77 I/O runtime libary libI77 is completely broken for files opened with ACCESS=DIRECT 82) adb(1)'s script directory (src/share/adb) contains 4BSD scripts (PORT) that can't be used (wrong structures, kernel variables, etc). 83) memory allocated by calloc() should be released by calling free() rather than the undocumented function cfree(). 84) umount can hang, at uninterruptible priority, when unmounting the last open partition on a drive supported by the xp(4) driver. unmount can not be killed and the drive becomes inaccessible until the system is rebooted. 85) mkstr(1) processes message strings only for the function "error(" 86) man(1) accepts 'old' and 'o' as a section number. 87) make(1) includes support for gcos in the form of ifdef'd out code and an unused source file. 88) catman(8) does nothing except run /usr/sbin/makewhatis to recreate the whatis database. No manpages are ever reformatted! 89) stdlib.h does not prototype the function declarations. 90) kern_time.c used the macro "#define timevalfix tvfix" needlessly. 91) usleep(3) sleeps for ~9 minutes in the US (13 minutes in countries using a 50Hz clock) no matter what value is passed to usleep. 92) two bugs in sleep(3). a) sleep(3) is limited by the maximum time select(2) can sleep (9 or 13 minutes) b) declares its parameter as unsigned but used as signed (< 0). 93) Duplicate signal.h files are present in the system. 94) Most of the manpages in section 2 (syscalls) and 3 (library routines) do not specify the header file(s) with function definitions (including prototypes). 95) The signal handler passed to signal(3) or used with sigaction(2) was typedef'd as "int (*sig_t)();" instead of "void (*sig_t)(int)". Signal handlers a) do not return anything so int is wrong and b) take one argument - the signal number. 96) xargs err() routine conflicted with the system provided err(3) functions. 97) who(1) using the uucp notation for the output of "who am i". 98) Configuring a new kernel from a copy of the GENERIC kernel config file is tedious and very error prone. If a networking kernel is desired the task becomes even more error prone. 99) hostid(1) crashes when run on a non-networking (e.g. GENERIC) kernel. 100) The system clock frequency is fixed at kernel config time to the parameter LINEHZ (50Hz or 60Hz). If the kernel is booted with a different power system frequency the date/time and kernel timers will be wrong. 101) Two bugs were uncovered by the DHU-11 communications multiplexor. The first bug is in SimH's PDP-11 simulator and would cause no characters to be echoed. The second bug is in dhu.c's modem signal handling when closing a line. 102) Setup documentation in /usr/doc/2.10/setup.2.11 is out of date poorly organized, after 499 patches contained many obsolete references, and wasn't written to offer instructions to someone not already familiar with the process of a bare metal install. Repeat-By: 1) ls -l ... drwxr-xr-x 15 sms staff 480 Oct 19 21:42 programs drwxr-xr-x 50 sms staff 1600 Mar 18 2025 scripts 2) touch -t 202602031234 foo touch: bad option -t 3) sysctl vm.nswap Use vmstat or pstat to view vm.nswap information 4) grep __STDC__ /usr/src/usr.bin/xinstall/xinstall.c 5) Observation. pxp, y.output, and neqn will remain after "make clean" 6) tftp, btlgammon, tn3270, ... warning: this program uses gets(), which is unsafe. 7) cd /usr/src/libexec/tcpd ls README.IRIX and other files should have been removed during the cleanup in #499 8) man pstat Note the mention of "RSS", "SRSS", "physical page frames", "resident set size" and so on which do NOT exist in 2.11BSD. Note also the lack of information for the fields SADDR, DADDR, and SIGM which DO exist in 2.11BSD 9) mkdir -m 750 foo mkdir: illegal option -- m usage: mkdir [-p] dirname ... 10) Observation: grep gets deliv1.c read the Makefile and note that "deliv:" target exists and will build 'deliv' but "all" and "install" ignore 'deliv'. The file kaiser.c is used by nothing: grep kaiser.c * The file types.c is used by nothing: grep types.c * 'whatabout:' exists but "make whatabout" spews errors. 'refpart:' exists and "make refpart" works but program is not installed. Read the Makefile and see that 'refpart' is created by linking the .o files from refer in a different order. 11) Have an inaccessible (by a non-root user) directory in / and do "find / -name '*.old' -print": (1) --- (as root) mkdir /root chmod 700 /root (as non-root) find / -name '*.old' -print find: bad status < /usr > find: bad status < /root.NEW > find: bad status < /disklabel > find: bad status < /netnix > find: bad status < /PATCH-LOG > OR if the mode allows 'chdir' but not reading (as root) chmod 711 root (as non-root) find / -name '*.old' -print find: cannot open < /root > find: bad status < /usr > (2) --- add "#include " around line 12 in find.c and do "make" find.c:232: warning: illegal combination of pointer and integer find.c:243: warning: mixed pointer assignment find.c:243: call does not match prototype find.c:566: warning: illegal combination of pointer and integer find.c:566: call does not match prototype find.c:1031: getuid redeclared find.c:1032: getuid prototype error find.c:1049: getgid redeclared find.c:1050: getgid prototype error this is caused by find having internal functions getgid() and getuid() which conflict with the C library functions of the same name. (3) --- grep AMES find.c grep pdp11 find.c grep SUID_PWD find.c 12) Observation. grep root /etc/passwd root:*:0:1:The Man:/:/bin/sh and ls -a / .cshrc .hushlogin .login .profile .tiprc .forward .kermrc .mailrc .rhosts Those files shouldn't be accessible/visible by non-root accounts. 13) Observation by a contributor who provided the necessary patches, new files and instructions. See Fix: 13) 14) cd / shar -pX ./usr/src/bin/nm ./usr/src/bin/tp > /tmp/foo shar: Can't open './usr/src/bin/tp' after fixing the above bug the following was encountered: create a shar file cd / shar -pX ./usr/src/bin/mkdir ./usr/src/bin/ps > /tmp/x.shar cd /tmp mkdir -p usr/src/bin sh x.shar mkdir: ./usr/src/bin/ps: No such file or directory x.shar: ./usr/src/bin/ps: bad directory 15) cd /usr/src find . -name '*.c' -print | xargs grep OLD/dk.h find . -name '*.c' -print | xargs grep OLD/psout.h ./usr.bin/uucp/aculib/dk.c:#include ./bin/ps.c:#include ./bin/ps.c: char rflg; /* -r: raw output in style */ 16) ifconfig usage: ifconfig interface [ af [ address [ dest_addr ] ] [ up ] [ down ][ netmask mask ] ] [ metric n ] [ trailers | -trailers ] [ arp | -arp ] 17) touch x chown root:wheel x chown: unknown user id: root:wheel 18) cd /sys/pdpstand ls -l NEW OLD 19) uucico fails to link because the base segment is 64 bytes too large but the Makefile ignores the exit status of 'ld'. cd /usr/src/usr.sbin/uucp make ... cc -o uucico -i cico.o cntrl.o condevs.o ... ld: too big for type 431 *** Exit 2 (ignored) man acucntrl man: no entry for acucntrl in the manual. 20) man symdump man: no entry for symdump in the manual. 21) vmstat -i Device interrupt statistics are not applicable to 2.11BSD Observation. Look at the 'struct nlist nl[]' table in vmstat.c There is no such symbol as _phz anywhere in the kernel source tree. 22) Run the test program: ----x.c--- #include main() { float f = 1.0 , g =0.0; printf("f=%3.0f; g=%3.0f;\n", f, g); printf("f=%.0f; g=%.0f;\n", f, g); printf("f=%3f; g=%3f;\n", f, g); } ------- # cc x.c # ./a.out f= 1; g= ; f=1; g=; f=1.000000; g=0.000000; 23) cd /usr/src/sys/pdpmba ls -l lrwxr-x--x 1 root 11 Apr 8 1998 tags -> ../sys/tags 24) cd /usr/src/sys/bootrom ls -l -r--r--r-- 1 root 1500 Nov 12 1985 siboot.s lrwxr-x--x 1 root 11 Apr 8 1998 tags -> ../sys/tags 25) cd /sys/pdpstand make tape1 mt -f /dev/rmt8 rew mt -f /dev/nrmt8 fsf 7 tar tvf /dev/rmt8 | grep pdpstand Observe .o files, libsa.a and standalone executables (boot, maketape, mkfs, icheck, restor, ...) are present in the source directory: ... rw-r--r-- 0/0 1432 Mar 6 09:11 2026 sys/pdpstand/si.o rw-r--r-- 0/0 4832 Mar 6 09:11 2026 sys/pdpstand/ra.o rw-r--r-- 0/0 52674 Mar 6 09:11 2026 sys/pdpstand/libsa.a ... rwxr-xr-x 0/0 33869 Mar 6 09:11 2026 sys/pdpstand/icheck ... 26) cd /usr/src/local/mtools grep gets mdel.c mdel.c: gets(ans); 27) Configure a kernel with many devices (HT+MSCP+TMSCP+DZ+DHU+ more). After compilation and linking strcompact(1) will run and fail thus: size unix text data bss dec hex 56512 8014 40038 104564 19874 total text: 133824 overlays: 8128,7552,8192,7296,8192,7168,6336,6720,7232,7936,2560 Compacting symbol table symcompact unix symcompact: no memory for symbols *** Exit 71 (ignored) 28) 1) In single user mode OR within /etc/rc before /usr has been mounted use grep and notice "grep: not found" 2) with /usr/ucb/grep present /usr/ucb/grep '*' /usr/src/bin/cat.c Segmentation fault (core dumped) The version in /usr/src/bin/grep.c does NOT fault. 29) as non-root dmesg - "Can't open /usr/adm/msgbuf" 30) Have both /VERSION and /VERSION.old present. sudo /usr/libexec/find/updatedb find VERSION /usr/src/usr.sbin/cron/grot/CONVERSION /VERSION Note /VERSION.old is missing. IF /VERSION.old is not present then /VERSION will be missing when "find VERSION" is done. To determine which file will be is missing from /var/db/find.codes ls / | sort -f | tail -1 31) Observation. For example: running no-op sed scripts on compiler generated assembly code and then running the assembler is dumb and slow. The sed scripts did nothing on a pdp11 and the vax scripts should have been removed when the programs were ported to 2BSD. Almost none of the programs in aux/ would compile, and NONE have ever been installed or used. The whole directory should have been removed a long time ago. 32) One example will be sufficient. /usr/src/bin/cp.c: #ifndef lint char copyright[] = "@(#) Copyright (c) 1983 Regents of the University of California.\n\ All rights reserved.\n"; #endif not lint #ifndef lint static char sccsid[] = "@(#)cp.c 4.13 (Berkeley) 10/11/85"; #endif not lint instead of #if !defined(lint) && defined(DOSCCS) char copyright[] = "@(#) Copyright (c) 1983 Regents of the University of California.\n\ All rights reserved.\n"; static char sccsid[] = "@(#)cp.c 4.14 (2.11BSD) 2026/5/5"; #endif hundreds such files exist in the system :( 33) grep sys/file.h /usr/src/man/man2/lseek.2 34) grep flock /usr/include/fcntl.h 35) cd /usr/src/games grep rogue Makefile notice no output If you descend into 'rogue' and 'make' cd rogue make ... cc -O -DUNIX -DUNIX_BSD4_2 -c machdep.c machdep.c:101: _cnt undefined; func. md_slurp machdep.c:101: Illegal structure ref machdep.c:101: warning: illegal combination of pointer and integer, op = *** Exit 1 If that problem is fixed then linking fails: cc -i curses.o hit.o init.o ... -o rogue -lcurses -ltermlib ld:/usr/lib/libcurses.a(refresh.o): text overflow 36) trace bhit bmiss bwrite bhitra bmissra brelse %bhit 874085 99238 42263 71447 70035 1306055 89.80 the 'swapio' entry is missing. man trace man: no entry for trace in the manual Try to get a usage message: trace -v Notice the program goes into a endless loop printing the statistics. Observe the title header is printed every 19 lines and this is not changeable from the commandline. 37) Observation: bk.4 (man bk) says at the top "obsolete" AND "not currently supported under 2.11BSD. Then look in /sys/conf, /sys/pdpif, and /sys/pdpuba and note the serial drivers (dhu, dz, dh, dhv) refer to BKINPUT (in code ifdef'd on NBK) but that macro is never defined. 38) grep NHY /sys/conf/GENERIC NHY 0 # Hyperchannel cd /sys find . -type f -print | xargs grep NHY conf/GENERIC to specify NHY conf/config to generate hy.h netinet/in_proto.c has a table that references nonexistent routines 39) In a kernel build directory with NRAC set to 0 in ra.h, compile the kernel ../machine/conf.c:193: warning: mixed pointer assignment 40) The table sizes (usually coremap) for the GENERIC kernel are sometimes too small. By taking into account the size of the software unibus map (SOFUB_MAP) it is possible to adjust the table sizes (by increasing MAXUSERS) of the GENERIC kernel. 41) cd /usr/ingres/source make chdir equel; make install ... cc -O -c prtout.c prtout.c:409: warning: mixed pointer assignment prtout.c:409: call does not match prototype prtout.c:414: warning: mixed pointer assignment prtout.c:414: call does not match prototype prtout.c:435: puts prototype error *** Exit 1 There are other errors as well. The errors are the result of changes in the stdio library and the C compiler. GCOS support is removed (if anyone needs that then start with the sources from forty years ago). The local stdio routines are removed (system stdio should be used). 42) a) /usr/src/ucb only contains the user front-end sccs.c and no additional sources needed to build the background programs (admin, delta, get, ...). Use "find" to search and no other sccs sources will be found. b) The last member of each entry in SccsProg[] is the pathname of the program program to execute: "sccs get" should cause /usr/local/get to run but instead tries to run /usr/local/name and so on). sccs get sccs SYSERR: cannot execute /usr/local/name No such file or directory 43) grep aflg /usr/src/bin/nm/nm.c char aflg, gflg, nflg, oflg, pflg, uflg, rflg = 1, archive; aflg++; 44) man mkproto See the BUGS section for a list of limitations that reduce mkproto's usability to near zero. 45) cd /sys/netns ls -l -r--r--r-- 1 10 971 Apr 27 1988 idp.h ... (many more) cd /sys/net ls -l -r--r--r-- 1 10 1667 Apr 27 1988 af.c ... cd /usr/src/local/ddd ls -l -rw-r----- 1 10 506 Sep 26 1990 README ... 46) quot cannot open /dev/rrp3 The default device "/dev/rrp3" is not even a modern device/partition format. 47) man strdup man: no entry for strdup in the manual. 48) man setpassent man: no entry for setpassent in the manual 49) Observation. ps.c, w.c, etc do open("/dev/swap", 0), if /dev/swap is incorrect (e.g. wrong disk driver) bogus output or error exit by the program will result 50) Source examination. src/libc/gen/devname.c calls dbm_open but provides no way to release the resources allocated by dbm_open (filedescriptors and 4KB+ of memory). 51) rm /var/run/utmp w Segmentation fault (core dumped) 52) Observation: grep PATH_UTMP pathnames.h cd src/usr.lib/libutil grep PATH_UTMP pathnames.h 53) The function Setenv() in sh.func.c conditionally (on SETENV_IN_LIB) uses its own version of setenv(3) but does not define that macro on systems that have setenv() in libc. sh.c performs Setenv(STRHSTTYPE, GetHostType()). GetHostType() in tc.vers.c does "str2short("pdp11");" which mallocs memory for the string. Setenv() performs str2short(val) which allocates the memory again. The original memory is not freed. tc.os.h had hundreds of lines ifdef/define for obsolete platforms or macros system headers provide. limit cputime 0:0-1 filesize 0 kbytes datasize 0 kbytes stacksize 0 kbytes coredumpsize 0 kbytes memoryuse 0 kbytes limit filesize 100M limit cputime 0:0-1 filesize 0 kbytes datasize 0 kbytes stacksize 0 kbytes coredumpsize 0 kbytes memoryuse 0 kbytes 54) Compile and run the test program: ------x.c------ #include #include #include main() { char buf[9]; int i; i = snprintf(buf, sizeof buf, "%s%s", _PATH_DEV, "swap"); printf("%s %d\n", buf, i); exit(0); } ------------- cc x.c ./a.out Segmentation fault (core dumped) 55) The manpage for strftime(3) states: %b or %h is replaced by the abbreviated month name, where the abbreviation is the first three characters. --------x.c------ #include #include #include #include time_t now; main() { char buf[80], *cp; size_t i; time(&now); i = strftime(buf, sizeof buf, "%h %e %T ", localtime(&now)); printf("%d '%s'\n", i, buf); exit(0); } ----------------- cc x.c ./a.out 17 'June 7 16:33:20 ' Note the extra date string: tail -1 /usr/adm/cron Jun 7 15:45:02 vernon June 7 15:45:02 CRON[14650]: (root) CMD (/usr/libexec/atrun) 56) Notice that the same 'atrun' activity message is being place in both /usr/adm/messages AND /usr/adm/cron grep CRON /usr/adm/messages Jun 6 23:45:02 vernon June 6 23:45:02 CRON[12708]: (root) CMD (/usr/libexec/atrun) grep CRON /usr/adm/cron Jun 6 23:45:02 vernon June 6 23:45:02 CRON[12708]: (root) CMD (/usr/libexec/atrun) 57) Observation. a) #define MAXTTYS 160 /* 128 plus a few extra */ Each entry in allttys[] is 16 bytes so the array is 2560 bytes. A typical system has about 24 tty devices. The waste is large! Also bounds checking and error messages are needed which wastes even more space (both I and D). b) /usr/sys/core hasn't been correct in 40 years. Crashdumps go to /usr/crash/ and use a sequence numbered filename. c) ps evidently was written before getopt() was invented. The inline/hard-wired argv/argc handling is inflexible when making changes to command line options and defaults. 58) In usr.sbin/ntp enable PSTI support and observe that 2026 is shown as 19126 59) Run top after "ps -U" using the updated ps(1): /var/run/psdatabase: Inappropriate ioctl for device Can't read kernel symbols - aborting 60) Change into /usr/src/local/zmodem and do a make install. Note that rz, sz and friends get installed, but crc does not. 61) One example will suffice: grep /dev/swap /usr/src/ucb/w.c if ((swap = open("/dev/swap", 0)) < 0) { 62) Using an Internet machine with a very long domain name, run uucico -r1 -x7 -sfred where fred is the name of the 2.11BSD machine with the buggy uucpd. You will see this debug output: uucico -r1 -x7 -sfred root fred (6/18-08:36-27881) DEBUG (Local Enabled) finds (fred) called getto: call no. fred for sys fred Using TCP to call bsdtcpopn host fred, port 540 login called wanted "login:" login:got: that send "uucp" wanted "assword:" Password:got: that send "uucp1234" root fred (6/18-08:36-27881) SUCCEEDED (call to fred ) TCPIP connection -- ioctl-s disabled imsg looking for SYNC< root fred (6/18-08:36-27881) FAILED (imsg 1) TCP CLOSE called closed fd 5 63) cd /usr/src/usr.bin/patch; grep SCCS *.c (one example will suffice) inp.c: Sprintf(buf+20, "SCCS/%s%s", SCCSPREFIX, filename); inp.c: say2("Can't find %s--attempting to get it from SCCS. 64) grep reciept /usr/src/libexec/acctd/acctd.8 the config file upon startup and reciept of a SIGHUP signal.65) 65) Many Makefiles in the source tree have a 'tags:' target. Only 10 directories have a 'tags' file present and those are outdated to the point of being useless. Two examples will suffice: ls -l /usr/src/usr.sbin/timed/tags /usr/src/usr.bin/f77/tags -r--r--r-- 1 root 2076 Jul 31 1987 /usr/src/usr.sbin/timed/tags -r--r--r-- 1 root 13734 Feb 16 1987 /usr/src/usr.bin/f77/tags 66) Compile the simplified test case (x.f): program junk logical wantev integer x if(wantev .eqv. (0 .eq. x))goto 23002 23002 continue end f77 x.f x.f: MAIN junk: 4: No code table for op: ==(60) type: 0 compiler error. 67) a) cd /usr/src/usr.bin/f77 make mkstr - f77_strings xx equiv.c cc -S -O -w -DTARGET=PDP11 -DFAMILY=DMR -DHERE=PDP11 -DOUTPUT=BINARY -DPOLISH=POSTFIX -DC_OVERLAY xxequiv.c /lib/c2 xxequiv.s | as -V -u -o equiv.o rm xxequiv.c xxequiv.s note that -O is given on the 'cc' line (cc runs /lib/c2) and then /lib/c2 is run again on the assembly (.s) output file. b) The prototype of mktemp() in conflicts with the definition in 'defs' and 'proc.c' 68) a) Observation. Look at the copystr() function, 'case a': is missing. b) x.c: main() { error("a\ab"); } mkstr str x x.c od -cb str 0000000 a a b \0 \n 141 141 142 000 012 0000005 rather than 0000000 a 007 b \0 \n 141 007 142 000 012 0000005 69) port/compile a program using errx() on a system with a strict compiler: error: implicit declaration of function 'errx' is invalid in C99 The solution is to add but that does not exist on 2.11BSD 70) read /sys/h/socket.h - notice PF_ECMA/AF_ECMA/{"emca",CTLTYPE_NODE} (yes - there was a typo in an unsupported protocol family name). PF_CCITT, and many more 71) From the 2.11 system have a program open socket to a remote server, then close the socket while the remote system does not close its end of the connect. After about 25 sockets are in FIN_WAIT_2 the 2.11 system will "wedge" until the server process is terminated (forcing a FIN to finally be sent to the 2.11 system). 72) /usr/games/monop Segmentation fault (core dumped) 73) /usr/games/battlestar note the lack of information displayed. 74) ls -l /usr/games/phantasia /usr/games/lib/phantasia/phantasia lrwxr-xr-x 1 root 23 Jan 2 2026 /usr/games/phantasia -> lib/phantasia/phantasia -rws--x--x 1 root 109685 Jan 2 2026 /usr/games/lib/phantasia/phantasia cd /usr/src/games/phantasia grep phant_run.c Makefile grep test.c Makefile grep signal main.c signal(SIGINT,interrupt,-1); ... (there are many inside the BSD42 blocks) 75) Observation. The meter() function depened on a specific userid and file which do not exist. The call to meter() was commented out but meter() function remained and used ctime() which is large. Use of ctime required use of the -lstubs and ctimed. D space was also wasted by table entries for 'gcos', 'cray', etc. 76) strings /netnix a) note the strings "mget", "mfree" and "m_copy" appear many times. b) note numerous strings such as "unp_connect2" and "unp_disconnect" are present c) note strings "unp_externalize(0%o)" and "unp_internalize(0%o)" are present. 77) Use fgetln() in a program and the linker will give an undefined symbol message. OR "ls /usr/src/lib/libc/stdio" and see that there is fgets.c but no fgetln.c 78) 'lint' used parts of the 'mip' and 'pcc' directories to perform C parsing. When C prototypes became more prevalent lint was removed. The 'mip' and 'pcc' support files should have been removed as well. 79) The F77 runtime calls fatal() when an error (e.g. illegal format in a write statement) occurs. fatal() calls f77_abort() which uses f_exit() to close and initialize the file pointer in the I/O unit array (including STDERR) to NULL. f77_abort() then calls abort() which enters the signal catching routine sigdie(). sigdie() prints messages about the death to stderr which has been closed. The NULL pointer dereference triggers another signel and sigdie() dutifully calls fprintf with a NULL file pointer which causes another NULL pointer dereference which ... cd /usr/src/usr.lib/libI77/test f77 pe.f ./a.out 80) grep getopt /usr/src/bin/rm.c /usr/src/bin/mv.c 81) Compile and run FM413.f from the NIST FCVS (Fortran Compiler Verification System): 1 FORTRAN COMPILER VALIDATION SYSTEM VERSION 1.0 FOR OFFICIAL USE ONLY - COPYRIGHT 1978 SUBSET LEVEL TEST FM413 TEST PASS/FAIL COMPUTED CORRECT ---------------------------------------------- 1 PASS 2 PASS 3 PASS 4 PASS 5 PASS 6 PASS 7 PASS 8 PASS 9 PASS 10 PASS 11 PASS 12 PASS 13 PASS 14 PASS 15 PASS 16 PASS 17 PASS 18 PASS 19 FAIL 1 30 20 FAIL 5 30 21 FAIL 1 30 22 FAIL 1 30 23 FAIL 3 30 24 FAIL 1 30 25 FAIL 1 30 26 FAIL 1 30 27 FAIL 1 30 28 FAIL 1 30 29 FAIL 5 30 30 PASS 31 PASS uio: [-1] end of file logical unit 9, named 'fort.9' lately: reading direct unformatted external I/O IOT trap (core dumped) 82) cd /usr/src/share/adb/PORT ls 83) cfree() is in libc/gen/calloc.c, takes 3 arguments and passes the first arg to free(). Some uses (in lex(1)) used 3 args but most just used 1. All were changed to free() and 1 arg. 84) umount hanging was encountered with the XP driver. When the last partition on a drive is unmounted the drive is "closed" which make the drive available (for label editing, etc). If there is outstanding I/O when umount is used the kernel "sleep"s umount until the outstanding I/O is finished and a "wakeup" is done. The wakeup is not performed in some situations due to a bug and umount sleeps forever. 85) man mkstr the Description reads: ... keys on the string `error("' ... The source code mkstr.c has: "if (match("error(")) { and no other function name is searched for. 86) man man ... one of the words 'local', 'new' or 'old' ... OR observation: read src/ucb/man/man.c 87) cd /usr/src/bin/make ls -l gcos.c grep gcos * 88) Have updated manpages in /usr/src/man/man* OR have missing formatted manpages (.0 files) in /usr/man/cat* and then catman Observe that no formatted manpages are created and the only updated file is /usr/man/whatis 89) The comments in stdlib.h about never having an ANSI C compiler are now incorrect. At the time stdlib.h was placed into the system the prototypes were removed which was a mistake. That mistake is now being remedied. 90) The system has had long variable names for quite a while. The redefining long routine names to short names is no longer necessary. 91) Compile the test program: -----x.c #include main() { usleep(1000000L); } ------ cc x.c ./a.out This should sleep for about 1 second. It sleeps for the maximum amount of time that a timeval passed to select() can specify. 92) a) With a 60Hz clock (for 50Hz use 820 seconds): date;sleep 600;date Sat Sep 19 09:45:28 CDT 2026 Sat Sep 19 09:54:34 CDT 2026 NOTE: only 546 seconds were slept b) lib/libc/gen/sleep.c declares the return value and argument to be unsigned but then checks the number of seconds remaining with "if (seconds < 0)". The intention was to check for the system time being set back but the calculated value must be signed for that to work. The other problem with unsigned makes itself known when a loop to issue multiple select(3) calls is created. A program can sleep longer, depending on other system activity, than requested. The number of seconds remaining to sleep becomes a huge (unsigned) number rather than a negative number and the program sleeps forever. 93) diff /usr/include/signal.h /usr/include/sys/signal.h The two are, except for the date/version and whitespace, identical. 94) For example: man 2 read and note that "#include " is not used for the definition of read(2). 95) grep sig_t /usr/include/signal.h typedef int (*sig_t)(); /* type of signal function */ 96) Add "#include " to xargs.c OR Observation. Notice that err() is implemented locally (this is not surprising since err() came later). 97) who am i vernon.2bsd.com!sms ttyp0 Sep 24 19:40 (CURLYJOE) 98) Experience ;) Even if someone has done it before or is a developer it's very easy to overlook an important option. Also answering "is this option needed?" or "what are the options needed to configure networking?" and so on indicates there is a need for ban example file and better comments are needed. "this feature/option" 99) Boot using the GENERIC kernel. hostid example.com Bad system call - core dumped. a hostid.core file is created. 100) Configure a kernel with "LINEHZ 50" and run the system where the power frequency is 60Hz. Note that the time/date compared to the clock on the wall. 101) a) SimH does not correctly handle the DHU-11 driver's use of the 'default receive silo timeout value' register. 2.11BSD has been using a value of 20 to have the same response as an ABLE dh/dm with silo alarm = 0. Some systems (RSX and RSTS) do not set the silo timeout value and had no echo issues. b) the function dhumctl() takes a long as the 2nd argument. The use of dhumctl() at line 207 was passing an int when closing the line in dhuclose(). 102) The setup documentation was not given a lot of attention when it was written. Developers writing/debugging/running the setup process almost daily do not make the best documentation writers. Fix: 1) Implement the 4.4BSD -T option, ls -lT produces full time info in "MMM DD HH:MM:SS YYYY" format: ls -lT tstoggle.s -r--r--r-- 1 sms 614 Nov 9 22:28:05 1993 tstoggle.s 2) Replace touch program with the 4.4BSD touch program. touch -t 202401021234 foo ls -lT foo -rw-r--r-- 1 sms 0 Jan 2 12:34:00 2024 foo 3) Add the vm.nswap mib to sysctl 4) Use the __STDC__ blocks of code and remove the #ifdef/#endif lines 5) Update the Makefiles clean: target 6) Modify programs to use fgets() instead of gets(). This usually requires adding code to remove the trailing \n. 7) Remove README.NIS BLURB vfprintf.c. printf.ck README.IRIX 8) pstat.8 is revised with correct information. pstat.c updated to not use XPAGI (which is also removed from /sys/h/text.h) 9) install the 4.4BSD mkdir program into 2.11BSD and remove the old source and manpage. 10) remove kaiser.c and types.c Fix gets() use in deliv1.c and update Makefile to build/install 'deliv'. sources to 'whatabout': "what{.,1,2,3,4}.c are removed. make targets whatabout: and refpart: are removed. 11) To fix the problems: (1) descend() calls itself recursively and does a chdir() into the directory to be scanned. Upon return find uses fchdir+chdir to restore the current path before doing the next readdir(). If the chdir() fails due to a permission error find should ignore the directory and since the current directory has not changed continue the readdir() loop. Fix is to have descend() return(1) instead of return(0) if chdir() fails. If the chdir() succeeds an opendir(".") is done. If this fails (no read permission) then the fchdir+chdir after return must be done. However immediately before the fchdir(Home) find nulls the end of the pathname with "*endofname = '\0'. This converts Pathname from "/" to "" and the chdir(Pathname) does nothing which leaves find in the wrong directory to continue the readdir() loop. The fix is change chdir(Pathname) to chdir(Pathname[0] ? Pathname : "/") Even after all that an ominous looking "can not open < .. >" message would be printed if opendir(".") failed due to an access (no read permission) error. The fix was to use 'access(".", R_OK);' before the opendir(). If access is denied then quietly back up and return - avoiding the noisy error. opendir() can fail for other reasons so the message remains present. (2) Change getuid() and getgid() to xgetuid() and xgetgid(). Stupid to use C library names as local functions. (3) AMES was always defined. Remove the #define AMES and the #ifdef/#endif use. SUID_PWD only declares popen() - no code so this entire block is removed. 2.11BSD has "%lu" so there's no need to #ifdef pdp11 the use of "%lu" with printf() 12) Create /root and set mode to 700, move "." files from / to /root, use vipw to change root's directory in the passwd file. NOTE: there must be a minimal /.profile (PATH=...) for use by sh in single user mode. A minimal /.profile is created in the instructions below. 13) Another large contribution from Anders Magnusson Thank you very much! From the author of the changes: ctype: Make ctype Ansi-C-compliant; (C99 7.4) - All of the macros shall be possible to call as functions as well. - Add isblank() as function. - Change toupper()/tolower() to only be functions (side effects). float: (C99 7.7) - Add /usr/include/machine/float.h - Symlink /usr/include/float.h -> /usr/include/machine/float.h inttypes: (C99 7.8) - Add /usr/include/inttypes.h - Add functions imaxabs()/imaxdiv()/strtoimax()/strtoumax() iso646: (C99 7.9) - Add /usr/include/iso646.h locale: (C99 7.11) - Add /usr/include/locale.h - Add setlocale()/localeconv(). Trivial functions, only C locale is supported. stdint: (C99 7.18) - Add missing type declarations and macro definitions. C compiler fixes: - Understand "restrict" keyword (but ignore it). (C99 6.7.3) - Remove check for (unsupported) /\ (MAX) and \/ (MIN). - Understand variable declarations anywhere in a block, not only at the beginning. (C99 6.8.2) Manpage updates for everything. 14) The first problem is shar does a chdir() into a directory to open/read the files within but does not do a chdir() back to the original directory. If the next command line argument processed is a relative path it will be interpreted from the wrong current directory. Fix is to open(.) on startup and use fchdir() after processing each command line argument. The second problem is the generated shell script. shar generates "mkdir ./usr/src/bin/mkdir" followed by "cd ./usr/src/bin/mkdir" and then the commands to extract the files (and subdirectories if any). At the end of processing ./usr/src/bin/mkdir a "cd .." is done. That only moves up one level leaving 'sh' in ./usr/src/bin which causes the extraction of the next file/directory (./usr/src/bin/ps in this case) to fail. The fix is for shar to add "export STARTDIR; STARTDIR=`pwd`" at the top of the script and emit "cd $STARTDIR" after processing a directory argument. Also a little cleanup in shar.c was done. 15) Each .h file is relocated to the program which includes it. /usr/include/OLD is removed. 16) All kernel support for trailers (including ifdef'd/commented out sections of code) was removed in patches #498 and 499. Remove trailers from ifconfig and ifconfig.8 and arp(8) now. 17) Add support for ":" as the user:group separator. The old style "user.group" is retained for compatibility (numerous Makefiles use the "." form). NOTE: allowing '.' to be used this way precludes having '.' in a username. 18) Remove the /sys/pdpstand NEW and OLD directories. 19) Fix the Makefile to move a small .o file to an overlay. Add the format and install of acucntrl.0 and remove unsupported dmf device. 20) Add symdump.1 to src/man/man1 21) Remove "_intrcnt" along with the other non-pdp11 entries from the list of kernel symbols to look up. Remove vax ifdef'd blocks of source. Change /sys/pdp/symbols.raw to comment out _phz (as was done for other 4BSD kernel symbols). The file symbols.sort will be regenerated on the next kernel build. 22) src/lib/libc/stdio/pfcom.c calls fcvt() which returned an empty string if ndigit is 0 and the rounded result is (1 > res > -1). Fix is to set "0" instead of "" if number of digits converted is 0. 23) 4.3BSD separated device driver sources by bus (vaxuba or vaxmba). 2.11BSD created the pdpmba directory but then placed all the drivers in 'pdpuba'. The fix is to remove the superfluous 'pdpmba' directory and symlinks. 24) Remove src/sys/bootrom 25) In the targets "tmscptape:" and "tape1:" after the line ./maketape /dev/nr${TAPE} maketape.data add make clean NOTE: If "make install" is done AFTER "make tmscptape" (or "make distribution") the standalone programs will be recompiled. To avoid the recompilation do the "make install" before making the distribution tape. 26) replace gets() with fgets() and \n clearing logic. Use system header files rather than local declarations for strcpy(), etc. 27) symcompact attemtps to hold both the symbol table AND symbol strings in memory at the same time. Eventually the combined memory required exceeds 56KB and malloc() fails when allocating memory for the string table. strcompact is modified to use the virtual address facility, (libvmf), which ld(1) and cpp(1) use, for the symbol table. This makes available much more memory for the string table. It is believed that strcompact(1) can now handle any file ld(1) can create. 28) /usr/src/bin/grep.c is restored to the system (it's present in the 500.new shar file). grep in /usr/src/ucb and /usr/ucb/ is removed and src/bin/Makefile and src/ucb/Makefile are updated. 29) /usr/adm/msgbuf has not existed in a very long time. dmesg should not attempt to create that file. syslogd has taken over system error log. dmesg is, however, useful for quickly displaying the last few kernel diagnostic messages. dmesg.c is updated to not look for arguments. 30) In 'updatedb.csh' after the $filelist (sorted file list) has been created but before running 'bigram' and 'code': set fake=`tail -1 $filelist`.xxx echo $fake >> $filelist 31) fix the two files with invalid string initialization (compiler changes) in sendmail.MX. Then in both sendmail and sendmail.mx remove aux/ and cruft from md/ and include/ 32) change "#ifndef lint" to "#if !defined(lint) && defined(DOSCCS)" 33) change to or . lseek.2 is converted to the new 4.4BSD nroff macros. 34) Add prototypes for open, fcntl, flock, creat. 35) machdep.c was modified to use fpurge(3) (added in patch #499). An overlay layout was created and Makefile updated to install the executable in the proper place and create an empty scores file. 36) The 'trace' program is replaced by a new program 'tracebuf' (installed in /usr/sbin). tracebuf has options to specify interval between reports, the number of reports and how often to print the title header. The old files /usr/src/local/trace.c and /usr/local/trace are removed. 37) Remove bk.4 and bk.0 then remove the "ifdef NETLDISC" blocks from dhu,dhv,dz,dh.c and NETLDISC from ioctl.h 38) Update sys/conf/config, sys/conf/GENERIC and netinet/in_proto.c to remove Hyperchannel (NHY) 39) Change "#define rasize nodev" to "#define rasize NULL" 40) Change "_sofub_size" to be a initialized data value rather than a runtime set value (this affects machdep.c and machdep2.c). Then add "sofub_size" to the list of symbols used by 'checksys.c' in computing the total kernel size. The MAXUSERS value for the GENERIC kernel is raised from 4 to 6 with room for slightly larger file/inode/etc tables. 41) 17 files needed changes (don't use 'const' as a variable name, use system stdio, don't use "FILE *" as 'int' and so on). 42) sccs files are removed from the system. 43) Remove -a support from nm 44) Remove mkproto(8) from the system. 45) "chown root" files 46) Change default to more common device: /dev/rxp0a and /dev/rxp0h 47) Create src/man/man3/strdup.3 48) src/man3/Makefile link man/cat3/getpwent.0 to man/cat3/setpassent.0 49) A new mib was added to the sysctl interface. VM_SWAPDEV is added to kern_sysctl.c (and vmstat extended to display 'vm.swapdev'). 2.11BSD sets the kernel 'swapdev' variable to the boot device (unless -R is used with boot). Usage: mib[0] = CTL_VM; mib[1] = VM_SWAPDEV; len = sizeof (int); sysctl(mib, 2, &swapdev, &len, NULL, 0); sysctl vm vm.loadavg: 0.82 0.56 0.32 vm.nswap: nswap = 8359 vm.swapdev: swapdev = 10,1 A new function swapdevname(3) is added to libc. swapdevname will first use sysctl(3) and devname(3) to generate the swap device string. If sysctl support is missing or swapdev can not be found in the database (dev_mkdb(8)) then the traditional "/dev/swap" will be returned. 50) Add devname_close() to libc and to the manpage. 51) NULL pointer dereference. w(1) does not check if the open failed. 52) remove pathnames.h and replace references to "pathnames.h" with , , etc in the C files. 53) Edit Setenv() to leave only the code which calls system's setenv() Change GetHostType(), return "pdp11" in place of str2short("pdp11"); There are almost certainly other memory leaks in tcsh but this small one was too easy a fix to pass up. tcsh will exhaust memory after a long session. At that time it's necessary to exit and restart tcsh. Edit tc.os.h to include three system header files, define a small number of macros and a typedef. tc.os.h goes from 406 to 58 lines. Fix typedef for RLIM_TYPE (it was incorrectly set to 'int'): limit cputime unlimited filesize unlimited datasize unlimited stacksize unlimited coredumpsize unlimited memoryuse unlimited limit filesize 100M limit cputime unlimited filesize 102400 kbytes datasize unlimited stacksize unlimited coredumpsize unlimited memoryuse unlimited Not all unnecessary ifdefs were removed. Code is gradually becoming readable. Need to leave something for a rainy day :-) 54) snprintf should place "sizeof (buf) - 1" bytes in the output, then keep incrementing output count w/o placing data in the buffer. The output of the test program should have been: /dev/swa 9 "/dev/" + "swap" = 8 bytes but only 8 "/dev/" + "swa" fit. the terminating null is NOT included in the return value of snprintf. Fix from Anders Magnusson for stdio/wbuf.c I changed a part of the output path to minimize the size of printf() but missed to take into account the use of snprintf(). 55) strftime.c was testing for '%h' not '%h' AND '%b'. Simple if statement change to treat 'h' and 'b' the same and both now return 3 month name. If syslogd(8) did not see 16 characters ("June 7 ..." is 17) an extra date/time string was added. cc x.c ./a.out 16 'Jun 7 16:44:55 ' and after recompiling/restarting cron(8): Jun 7 17:00:03 vernon CRON[15005]: (root) CMD (/usr/libexec/atrun) Any program that uses syslog(3) needs to be recompile to pick up the change in strftime(3). That will happen, of course, when the system is recompiled. strftime(3) is now declared in time.h 56) cron(8) has its own logfile specified in /etc/syslog.conf therefore the cron facility needs to be excluded from the /usr/adm/messages file. The prototype syslog.conf file in /usr/src/etc/syslog.conf IS patched by this update. Because /etc/syslog.conf is a locally configured file the installed file is not changed. To manually change /etc/syslog.conf add ",cron" after "lpr" in the /usr/adm/messages line: For example: *.err;auth.notice;*.info;kern.debug;local7,mail,daemon,lpr.none /usr/adm/messages becomes *.err;auth.notice;*.info;kern.debug;local7,mail,daemon,lpr,cron.none /usr/adm/messages Then restart syslogd (or wait for the reboot after building the kernel below). 57) Make use of (more) modern routines. a) dev_mkdb(8) builds a DBM database of /dev and devname(3) uses the database to map a dev_t to a device name. ps.c was modified to use devname(u.u_ttyd, S_IFCHR) instead of a static array. Even after the DBM database memory the D space savings were 1KB+! b) The -k option was enhanced to use an argument and not an additional filename after the options. There is not a default for the memory image file. c) getopt(3) replaces the inlined/local argument handling: ps [ -acgp:k:lnrt:uwxU [ swap [ system ] ] The '-p' option is new and replaces relying on the pid (#) being the last argument. Thus "ps 1234" is replaced by "ps -p 1234". The source code reductions were enough to "pay" for getopt() and devname(). The text space growth was almost nothing. 58) In the words of Folkert van Heusden (folkert@vanheusden.com): "Noticed a y2k bug in ntp. It only appears when you enable PTSI support (a refclock). My emulator emulates the PTSI (via PPS on the host) that's why I noticed it. "19%d",rtm->tm_year changed in places to "%d",1900+rtm-_tm_year in read_psti.c 59) The problem was caused by top having a local copy of the structure ps(1) used in creating /var/db/psdatabase. When ps(1) changed top(1) ceased working. Upon investigation almost NONE of the information from psdatabase was being used! A lot of memory was being allocated for tty names, kernel wait channel info and used user/process data and very little or none was used. psdb.c and psdb.h are removed from the source tree and top.c updated to retrieve the necessary kernel variables and remove the ttyname processing (which was not used or displayed). 60) zmodem Makefile is patched to install both the crc executable and its manpage. 61) Update ps(1), w(1), fstat(8), identd(8), top(1) to use the new libc function swapdevname(3). Programs which use swapdevname() will work correctly if /dev/swap is wrong or not present at all! 62) Fix provided by Warren Toomey (wkt@tuhs.org). Replace a strcpy() with strncpy() in uucpd.c 63) Clean up the patch source directory to remove SCCS (and RCS). The manpage is also updated to remove reference to SCCS. 64) Fix the misspelled word. Also correct capitalization in a couple places. The updated manpage will be installed during the recompile of the system. 65) Rather than regenerate tags files the outdated ones are removed. IF a developer wants to use "vi -t" then a "make tags" can be done first. 66) The bug was first reported Nov 4, 1985 (/usr/src/usr.bin/f77/BUG?). At that time the bug was thought to be in c1 (pass2 of C compiler). In the words of Anders Magnusson (thanks for figuring out where the problem actually was). The double comparison (if(wantev .eqv. (0 .eq. x))) creates a logical result. The intermediate file gets: NAME EXTERN LONG v.1 LCON LONG 0 0 NAME EXTERN LONG v.2 EQUAL 0 EQUAL 0 CBRANCH lbl=14 cond=0 line=4 Doing something similar in C gives: NAME AUTO LONG -12 CON INT 0 ITOL LONG NAME AUTO LONG -16 EQUAL 0 ITOL LONG EQUAL 0 CBRANCH lbl=4 cond=1 line=6 The result of a long long comparison is an 'int' but f77 does not print out a cast for the first EQUAL to LONG and a table entry for (int) == (long) does not exist in c1. The problem was that 'logical' variables were defined as being TYLONG (long) rather than TYSHORT (int). Changing 'int tylogical' to TYSHORT resolved the issue but did need small changes to libI77 (see #81). 67) Modify the Makefile to use the same logic as pascal/pi. The pi Makefile uses tmp/ as the prefix with mkstr and does not use -S and run the "/lib/c2 | as" pipeline: rm -f tmp/equiv.c mkstr - f77_strings tmp/ equiv.c cc -O -I. -w -DTARGET=PDP11 -DFAMILY=DMR -DHERE=PDP11 -DOUTPUT=BINARY -DPOLISH=POSTFIX -DC_OVERLAY -c tmp/equiv.c rm -f tmp/equiv.c The f77 sources were cleaned up. Unused options (-DPOLISH above for example) were removed. It was amazing how much cruft could be removed and the executables were identical! Non PDP11 platforms (INTERDATA, GCOS, etc) removed. The compiler is now a PDP-11 compiler ONLY, there is no need for TARGET, HERE or FAMILY definitions or ifdefs in any of the files. misc.c had included some time ago but the addition of the mktemp prototype in stdlib.h introduced the conflict. Change all references to mktemp() in the f77 sources to mktmp() 68) 'a' and 'v' were added and copystr() was reorganized in the new version of mkstr in (85) below. 69) port err.h from 4.4BSD 70) Remove PF_NBS (7) thru PF_APPLETALK (17) from socket.h The only application affected is 'sysctl' (for the NET mib). 71) Many systems have implemented a timeout for the FIN_WAIT_2 state. Problem has been widely discussed. A simple search for fin_wait_2 will find many discussions of the problem and workarounds. The default timeout is set to 30 seconds. The value is manipulated via "sysctl net.inet.ip.tcp_fw2timeout" 72) The make file places shared strings (created using xstr) into the text segment (I space) and then creates a split I/D executable. Running an ed script to change .data to .text is stupid/wrong. The Makefile was updated and the ed script removed. 73) Macro evaluation done by cpp has changed immensely since battlestar was written. In externs.h the macro PATH(x) was not being evaluated correctly. The two uses of the macro were changed to define the correct pathnames. 74) Makefile was updated to build/install phantasia as setuid daemon. USG3 and USG5 and BSD41 removed to reduce clutter. Unused files removed. The support directory is recursively chown'd to daemon. Also the modes of the files in /usr/games/lib/phantasia were wrong BUT the 'setfiles' program used during installation will not touch existing files. The solution is to remove both the symlink AND the lib/phantasia directory (this is done by the 500.rm script). The directory and contents will be correctly installed during the rebuild of the system. 75) files in efl source directory were cleaned up by removing support for non-unix systems. Hundreds of bytes of D space were saved and saving 2.5KB of I space removed the need to overlay the program. 76) a) the macros MGET() and MFREE() include panic("mget") and panic("mfree"). Each use of MGET uses 5 bytes of D space and MFREE uses 6 bytes. b) panic strings should be unique and short to idenfity a location in the sources not full descriptions of the problem. c) there were two debug/diagnostic printf() statements left behind in uipc_usrreq.c (a) was taken care of by use of char constant instead of repeated quoted strings. For example: char mgetStr[] = "mget"; and have MGET use panic(mgetStr) instead of panic("mget") (b) shorten panic() strings to be unique numbered strings in uipc_usrreq.c (c) remove the two printf()s Total D space savings OVER 300 bytes were obtained (and 1 click of text space on my system). Enough for another mbuf or two ;) OR table space for a 2nd device driver. 77) The author of the ANSI stdio portion of #499 sent the missing file. 78) the directories 'mip' and 'pcc' are removed in the 500.rm script. 79) There are two bugs in libI77/f77_abort.c - the first is a logic flaw that causes the coredump logic to be executed for normal (non-exception/signal based) errors. A program is expected to coredump for a SIGILL (illegal instruction) but NOT for a bad format string in a write statement. a) f77_abort is called as f77_abort(nargs, err_val, act_core) The statement: core_dump = (nargs != 2) || act_core; IS WRONG. All the calls, except one, to f77_abort() are as f77_abort(0) or f77(1, errorcode). These are to print a diagnostic message and exit without a coredump. Only one call libF77/main.c uses the three argument form: f77_abort( 2, s, act->core ); The correct logic is "core_dump = (nargs == 2) && act_core);" b) IF a coredump is requested the STDERR I/O unit should NOT be closed until after abort() has issued the error messages. move, in f77_abort.c the f_exit() AFTER the abort() statement. There is no need for f77_abort() to call _cleanup() because exit() will do it. 80) Not using getopt(3) required rm and mv to reserve the special null arg "-" to signal the end of options, allowing files/directories beginning with '-' to be removed. getopt returns EOF with the arg "-" but leaves optarg pointing at "-", rm and mv need to do nothing special to handle files starting with -. The manpage for rm(1) was updated to remove references to rmdir since rmdir(1) has its own manpage. 81) The biggest problem was the use of "a" as the mode in calls to fopen() and freopen(). Ever since 4BSD implemented O_APPEND in the kernel (and 2.11BSD inherited the behaviour from 4.3BSD) ALL write operations (not just the first after the open) go to the end of the file. That behaviour breaks Fortran ACCESS=DIRECT file handling where WRITE functions specify a record number (REC=) but the write() were being done at the end of the file. The most important part of the fix was to use "append" mode only for SEQUENTIAL files and not for DIRECT access. There were a couple other problems in libI77 the most significant was the wasting 2.2KB of D space in the i/o units[] table. Reading and writing LOGICAL variables was changed to match the behaviour of the f77 compiler (see #66 above). 82) Remove the PORT directory and N (Xerox NS) directories. ADD two new scripts for displaying kernel disk structure (dkdevice) and partition table of the kernel resident disklabel. 83) cfree() was removed from src/lib/libc/calloc.c and all references to cfree() in the system were changed to free() 84) The bug is a race condition between the kernel putting umount to sleep and the last I/O being completed. If the kernel puts umount to sleep BEFORE the I/O is complete the program hangs and the drive becomes unavailable. On real hardware (slow cpus) the interrupt signaling the completion of the last I/O arrives before the kernel calls the driver's xpclose routine. Thus when xpclose checks the controller queue there is nothing present and the sleep() call of umount is NOT done. With simulated (much faster cpu) hardware it's possible for the kernel to enter xpclose with a controller queue that is not empty. The sleep is done BUT when the interrupt comes xpintr() empties the controller queue but does NOT call wakeup() to umount! The fix is to check in the interrupt service routine for an empty controller queue and a drive in CLOSING state. 85) a) Several programs to work around the hardwired 'error("' string in mkstr make a copy of mkstr.c and modify it to the match string from 'error(' to something. tcsh(1) for example changes error( to xprintf( and battlestar(6) changes error( to strstr( b) Other programs use cpp(1) and macros to redefine other functions to error(. The fix was to replace/rewrite mkstr(1). If none of the enhancements are used the new version is a drop in replacement (100% compatible). There is now a '-e' switch to specify a function name to search for and process the string argument of. Up to 16 '-e function' option may be given. The manpage has more information about using '-e'. The option '-l' is new and tells mkstr to output long instead of int offsets. This allows for very large string files which can be used for help info as well as diagnostic or error messages. battlestar(6) did this to create battle_strings (larger than some executable files on the system). The only similarity between this version of mkstr and the old version is the name and function. Almost nothing of the original program remains. 86) /usr/old was removed in patch #4xx so there are no manpages in /usr/old/man. 'old', 'local' and 'new' (and their synonyms 'o', 'l' and 'n') are no longer accepted as section names. Also the error reported was updated to use err(1) and errx(1). 87) Remove the ifdef sections and the file gcos.c 88) catman(8) has been worthless ever since the manpage sources were a) moved from /usr/man to /usr/src/man and b) many manpages were relocated into the various program source directories. catman would chdir to /usr/man and expect to find directories man1, man2, etc. Of course catman would find nothing to do and simply run 'system("/usr/sbin/makewhatis /usr/man/whatis");' catman(8) is hereby removed from the system. The one use of catman in the system (/usr/adm/weekly) is replaced with makewhatis(8). A manpage was created for makewhatis 89) Add the prototypes back in to stdlib.h. 90) Remove '#define timevalfix tvfix' from kern_time.c 91) When usleep() was changed to take a 'long' argument so that sleeps longer than 65535 microseconds could be done the prototype in unistd.h was not changed from "unsigned". usleep was expecting long and the high 16 bits were usually unknown/garbage. The kernel would limit the sleep duration to 0x7fff ticks. Changing the prototype in unistd.h from usleep(unsigned) to usleep(long) fixed the problem. usleep() uses the timeval argument of select(3) to specify the sleep duration. See the manpage for select(3) for more information. 92) The fixes involved changing the prototype of sleep(3) to return and take as an argument 'int'. unistd.h and lib/libc/gen/sleep.c are updated. A loop in sleep.c was implemented to issue multiple select calls to sleep the requested number of seconds unless an interrupt occurs. usleep(3) is now documented to sleep up to the maximum allowed by select(3). 93) Remove /usr/include/sys/signal.h and change uses of to simply 94) Many (but alas not all - ran out of time) of the manpages in sections 2 and 3 have been updated with #include information. ALSO many functions (alas not all) have had prototypes added to the header files in the system (hurrah!). 95) The signal handler typedef was changed to: typedef void (*sig_t)(int); /* type of signal function */ Alas this caused many programs, especially those written before 'void' was available or widely used, to give warning errors or fail to compile due to functions being redeclared. 96) Revise xargs.c to use the system provided err() and errx() routines. Also clarify the error messages for malloc failures. 97) Change 'who' to use the Internet seperator '@' instead of '!' who am i vernon.2bsd.com@sms ttyp0 Sep 24 19:40 (CURLYJOE) 98) The GENERIC kernel config file has been rearranged. Devices which no one is likely to have (even though the drivers work) have been moved to a section of their own. No one has built a non-networking kernel (other than GENERIC for loading the OS from tape) in recent memory. Therefore a sample configfile named EXAMPLE has been created in /sys/conf. This file is for a Q-BUS system with a DEQNA network card, XP (RP06,...) controller and 4 drives, and a TMSCP controller with 2 drive. 99) "hostid example.com" uses gethostbyname(3) to resolve the name to an IP address. gethostbyname(3) uses connect(2) which is an illegal system call in the non-networking kernel. A SIGSYS signal is set which causes hostid to coredump. The fix is to catch SIGSYS and quietly exit. Doesn't make sense to set the hostid on a non-network system anyway. 100) Add the MIB kern.linehz to the kernel and sysctl(8). Now sysctl -w kern.linehz=60 OR sysctl -w kern.linehz=50 will update the kernel 'hz' value and the associated 'mshz' (microseconds / hz) value. The networking copy of 'hz' is also updated. 101) a) ifdef out the line in dhuopen() "addr->dhutimo = dhu_def_timo;" b) Change line 207 from "(void) dhumctl(unit, DHU_OFF, DMSET);" to "(void) dhumctl(unit, (long)DHU_OFF, DMSET);" 102) Thanks to Terri Kennedy (terri-decus@glaver.org) for volunterring to update the 2.11BSD setup documentation. Additional thanks for learning eqn/tbl/troff and not converting the documentation to DECdocument's SDML :) Save this file to /usr/tmp/500 This is a large patch (over 1700 files are patched). The statistics: OLD - 500.patch - 1794 files modified RM - 500.rm - 289 files/directories removed NEW - 500.new - 56 files/directories added 'vi' on a 2.11BSD system can not edit the patch kit file. Use the 'sed' commands below. The shar file contains a file removal script, a shar file of files being added to the system and a patch file to modify existing files: 500.rm 500.new 500.patch Some files appear in both 500.rm and 500.new because the program is being relocated or completely replaced. Other files in 500.rm are being removed as obsolete ('makedb', 'pathalias', ...), do not work ('decompr16'), are not built/installed/obsolete ('notes') or pointless (lisp.0 manpage but no lisp program). NOTE: If there are programs/directories you want to retain on the local system review and update 500.rm before running the script. # Optional: To output the text up to (but not including the cut here line) for # easy viewing or printing: cd /usr/tmp sed -e '/^---*cut here---.*/,$d' < 500 > 500.txt Next: # Extract the shar file: cd /usr/tmp sed -e '1,/^---*cut here---.*/d' < 500 > 500.shar Then: sh 500.shar cd / sh /usr/tmp/500.rm sh /usr/tmp/500.new ln -s /usr/include/machine/float.h /usr/include/float.h patch -p0 < /usr/tmp/500.patch check for any failed patches: find . -name '*#' -print and resolve the issue(s) before continuing. over the years a few files acquired weird owner names and need to be changed chown root /sys/netns/* chown root /sys/net/* chown root /usr/src/local/ddd/* chown root /usr/src/ucb/rlogin/rlogin.c the updated 'grep' requires tolower() which is a newly added function in libc. update libc: cd /usr/src/lib/libc/gen make ctype_.o ar rv /lib/libc.a ctype_.o ranlib /lib/libc.a rm ctype_.o profiled/ctype_.o rebuild entire system from sources. libc can not be recompiled in its entirety until the updated compiler is in place. this is because some of the newly added C99 sources use the "restrict" keyword. cd /usr/src/lib/ccom make install make clean some makefiles use 'grep' so install 'grep' into /bin before recompiling the world. cd /usr/src/bin make grep install -s -m 755 -o root -g staff grep /bin NOW the world can be recompiled from sources cd /usr/src make build make installsrc make clean create root's new home directory: cd / mkdir -m 700 root the update to root's entry in the passwd file is not automated. Use 'vipw' to manually make the change. Change field 6 (the home directory) of the line (you may also change "The Man" to "System Administrator" or name of local choice at the same time): vipw change (leave the 2nd field, the password, untouched): root:xxxxxxxxxxxxx:0:1:The Man:/:/bin/sh to root:xxxxxxxxxxxxx:0:1:The Man:/root:/bin/sh or (for example): root:xxxxxxxxxxxxx:0:1:System Administrator:/root:/bin/sh relocate the dotfiles from / to /root. to see the list of files that would be moved: ls -A / | egrep -e '^\.' you can move the files manually or use the following: mv `ls -A / | egrep -e '^\.'` /root a minimal /.profile MUST exist for use by 'sh' in single user mode else 'sh' can not find some programs ('fsck' for example). When in multiuser mode root's directory is /root with the full .profile Install /.profile: install -c -m 640 -o root -g wheel /usr/src/etc/root/dot.minimal /.profile changes to 'ps' altered the psdatabase structure. therefore the database in /var/run needs to be rebuilt. this is done upon reboot (in /etc/rc) but 'ps' may be used before then: ps -U a kernel recompile is required to pick up the changes to the kernel and networking. cd /sys/YOURKERNEL make install -c -m 644 -o root -g wheel unix netnix / make clean Shutdown shutdown -h now boot the system Now it is cleanup time: rm -f /lib/oc? /bin/tcsh.old /etc/init.old if you maintain a GENERIC kernel recompile and install it. some admins use /genunix other admins use a different location or name: THIS IS OPTIONAL (but recommended for developers): cd /sys/GENERIC make install -c -m 644 -o root -g wheel unix /genunix make clean patching will have created MANY (over 1700) files with tilde (~) appended. clean up the system by removing *~ files. cd / find . -name '*~' -print | xargs rm cd / echo -n "Patch 500 applied " >> PATCH-LOG date >> PATCH-LOG echo -n "System now at 2.11BSD 35th Anniversary Edition (PL500) " >> PATCH-LOG date >> PATCH-LOG Congratulations! Your system is now running "2.11BSD 35th Anniversary Edition" this and previous updates to 2.11BSD are available at the following locations: ftp://ftp.dfupdate.se/pub/pdp11/2.11BSD https://www.tuhs.org/Archive/Distributions/UCB/2BSD/2.11BSD/Patches/ ftp://ftp.2bsd.com/2.11BSD http://www.2bsd.com/2.11BSD/ ---------------------------cut here-------------------- #! /bin/sh # This is a shell archive, meaning: # 1. Remove everything above the #! /bin/sh line. # 2. Save the resulting text in a file. # 3. Execute the file with /bin/sh (not csh) to create: # 500.new # 500.rm # 500.patch # This archive created: Wed Nov 11 07:35:08 2026 export PATH; PATH=/bin:/usr/bin:$PATH export STARTDIR; STARTDIR=`pwd` if test -f '500.new' then echo shar: "will not over-write existing file '500.new'" else sed 's/^X//' << \SHAR_EOF > '500.new' X#! /bin/sh X# This is a shell archive, meaning: X# 1. Remove everything above the #! /bin/sh line. X# 2. Save the resulting text in a file. X# 3. Execute the file with /bin/sh (not csh) to create: X# ./usr/doc/2.10/setup.2.11 X# ./usr/include/err.h X# ./usr/include/inttypes.h X# ./usr/include/iso646.h X# ./usr/include/locale.h X# ./usr/src/bin/grep.c X# ./usr/src/bin/mkdir X# ./usr/src/bin/ps X# ./usr/src/etc/acctd.cf X# ./usr/src/etc/rc.conf X# ./usr/src/etc/root/dot.minimal X# ./usr/src/etc/sendmail.cf X# ./usr/src/games/atc/atc.6 X# ./usr/src/lib/libc/gen/isctype.c X# ./usr/src/lib/libc/gen/swapdevname.c X# ./usr/src/lib/libc/stdio/fgetln.c X# ./usr/src/lib/libc/stdlib/imaxabs.c X# ./usr/src/lib/libc/stdlib/imaxdiv.c X# ./usr/src/lib/libc/stdlib/lconv.c X# ./usr/src/lib/libc/stdlib/localeconv.c X# ./usr/src/lib/libc/stdlib/setlocale.c X# ./usr/src/lib/libc/stdlib/strtomax.c X# ./usr/src/man/man1/symdump.1 X# ./usr/src/man/man2/errno.2 X# ./usr/src/man/man3/isalnum.3 X# ./usr/src/man/man3/isalpha.3 X# ./usr/src/man/man3/isascii.3 X# ./usr/src/man/man3/isblank.3 X# ./usr/src/man/man3/iscntrl.3 X# ./usr/src/man/man3/isdigit.3 X# ./usr/src/man/man3/isgraph.3 X# ./usr/src/man/man3/islower.3 X# ./usr/src/man/man3/isprint.3 X# ./usr/src/man/man3/ispunct.3 X# ./usr/src/man/man3/isspace.3 X# ./usr/src/man/man3/isupper.3 X# ./usr/src/man/man3/isxdigit.3 X# ./usr/src/man/man3/math.3 X# ./usr/src/man/man3/strdup.3 X# ./usr/src/man/man3/swapdevname.3 X# ./usr/src/man/man3/toascii.3 X# ./usr/src/man/man3/tolower.3 X# ./usr/src/man/man3/toupper.3 X# ./usr/src/man/man4/qt.4 X# ./usr/src/share/adb/dkdevice X# ./usr/src/share/adb/dkpartition X# ./usr/src/sys/conf/EXAMPLE X# ./usr/src/sys/pdp/ansi.h X# ./usr/src/sys/pdp/float.h X# ./usr/src/ucb/mkstr X# ./usr/src/usr.bin/shar/traverse.1 X# ./usr/src/usr.bin/touch X# ./usr/src/usr.bin/uucp/aculib/dk.h X# ./usr/src/usr.lib/libln/README.txt X# ./usr/src/usr.sbin/makewhatis/makewhatis.8 X# ./usr/src/usr.sbin/tracebuf X# This archive created: Wed Nov 11 06:36:53 2026 Xexport PATH; PATH=/bin:/usr/bin:$PATH Xexport STARTDIR; STARTDIR=`pwd` Xif test ! -d './usr/doc/2.10/setup.2.11' Xthen X mkdir './usr/doc/2.10/setup.2.11' Xfi Xcd './usr/doc/2.10/setup.2.11' Xif test -f '0.t' Xthen X echo shar: "will not over-write existing file '0.t'" Xelse Xsed 's/^Z//' << \SHAR_EOF > '0.t' XZ.\" Copyright (c) 1980 Regents of the University of California. XZ.\" All rights reserved. The Berkeley software License Agreement XZ.\" specifies the terms and conditions for redistribution. XZ.\" XZ.\" @(#)0.t 3.0 (2.11BSD) 2026/11/08 XZ.\" XZ.EH 'setup.2.11 - %''Installing and Operating 2.11BSD on the PDP-11' XZ.OH 'Installing and Operating 2.11BSD on the PDP-11''Setup.2.11 - %' XZ.ds Ps 2.10BSD XZ.ds 1B 2.10.1BSD XZ.ds 2B 2.11BSD XZ.bd S B 3 XZ.TL XZInstalling and Operating \*(2B on the PDP-11 XZ.br XZ35th Anniversary Release (Patch Level 500) XZ.br XZNovember 13, 2026 XZ.AU XZSteven Schultz XZ.AI XZsms@2bsd.com XZ.br XZ XZ.br XZ XZWith additional contributions by: XZ.AU XZJohnny Billquist XZ.AI XZbqt@softjar.se XZ.AU XZTerri Kennedy XZ.AI XZterri-decus@glaver.org XZ.de IR XZ\\fI\\$1\|\\fP\\$2 XZ.. XZ.de UX XZUNIX\\$1 XZ.. XZ.AB XZ.PP XZ\" DEC VAX, IDC and SBI are never referenced again; removed XZ\" The rest are abandoned per USPTO 8/2026 XZ\" UNIX verified USPTO 8/2026 XZ.FS XZ.IP \(dg XZDEC, PDP-11, UNIBUS and MASSBUS were formerly trademarks (now abandoned) of XZDigital Equipment Corporation. XZ.FE XZ.FS XZ.IP \(dd XZUNIX is a trademark of The Open Group Limited XZ.FE XZThis document contains instructions for the XZinstallation and operation of the \*(2B PDP-11\(dg XZ.UX \(dd XZsystem. XZ.PP XZIt discusses procedures for installing \*(2B UNIX on a PDP-11, including XZexplanations of how to allocate space for filesystems on one or more disks, XZhow to set up terminal lines and user accounts, how to do system-specific XZtailoring, and how to install and configure the networking facilities. XZFinally, the document details system operation procedures: shutdown and XZstartup, hardware error reporting and diagnosis, filesystem backup procedures, XZresource control, performance monitoring, and procedures for recompiling XZand reinstalling system software. XZ.PP XZThe ``bugs'' address supplied with this release XZwill work for some unknown period of time; make sure XZthe ``Index:'' line of the bug report indicates that the release is XZ``\*(2B''. See the \fIsendbug\fP(8) program for more details. XZ.PP XZUpdates are available at the following locations in the Patches subdirectory: XZ.DS XZ.TS XZlw(1.5i) l. XZftp://ftp.dfupdate.se/pub/pdp11/2.11BSD XZhttps://www.tuhs.org/Archive/Distributions/UCB/2BSD/2.11BSD XZftp://ftp.2bsd.com/2.11BSD XZhttp://www.2bsd.com/2.11BSD XZ.TE XZ.DE XZ.PP XZYou can determine the current patch level of a running \*(2B system with the XZfollowing command: \fIhead -2 /VERSION\fP XZ.PP XZUpdating instructions can be found in Appendix C. XZ.AE XSHAR_EOF Xchmod 644 '0.t' Xfi Xif test -f '1.t' Xthen X echo shar: "will not over-write existing file '1.t'" Xelse Xsed 's/^Z//' << \SHAR_EOF > '1.t' XZ.\" Copyright (c) 1980 Regents of the University of California. XZ.\" All rights reserved. The Berkeley software License Agreement XZ.\" specifies the terms and conditions for redistribution. XZ.\" XZ.\" @(#)1.t 3.0.1 (2.11BSD) 2026/11/10 XZ.\" XZ.ds lq `` XZ.ds rq '' XZ.ds LH "Installing/Operating \*(2B XZ.ds RH Introduction XZ.ds CF \*(DY XZ.LP XZ.nr H1 1 XZ.nr H2 0 XZ.bp XZ.LG XZ.B XZ.ce XZ1. INTRODUCTION XZ.sp 2 XZ.R XZ.NL XZ.\" NOTE below is just something you should be aware of when editing XZ.\" this manual. FIXME below indicates an open issue which needs to XZ.\" be resolved, ideally before the release of this manual. XZ.\" XZ.\" NOTE When installing this directory on a 2.11BSD system, the files XZ.\" GENERIC and EXAMPLE should be symlinks to the ones in /sys/conf. XZ.\" XZ.\" NOTE When rendering the PDF version of this manual in Adobe Acrobat, XZ.\" any missing fonts will need to be installed. DO NOT allow Acrobat to XZ.\" perform font substitution as text will be mis-aligned. XZ.\" XZ.\" NOTE If body text in a chapter is changed, all footnotes in that chap- XZ.\" ter will need to be checked to make sure they are on the same page as XZ.\" their reference(s) and that the order is intact. The standard order is: XZ.\" dagger, double dagger, section mark, bullet mark, asterisk and pound. XZ.\" These are dg, dd, sc, bu, *, and #. XZ.\" XZ.\" NOTE There are explicit page breaks (generally in tables) to prevent XZ.\" large amounts of blank paper at the bottoms of pages. These may need XZ.\" to be repositioned if the body text changes and may also render poorly XZ.\" in nroff text format output. XZ.\" XZ.\" FIXME When doing "make nroff" on 2.11BSD, 4 "Zero field width." mes- XZ.\" sages are generated. XZ.\" XZ.\" FIXME Adjust double quotes, italics, manual section references to be XZ.\" consistent throughout. Will require someone with fresh eyes to look at XZ.\" it. XZ.\" XZ.\" FIXME Need to add Appendix D for "2.11BSD for modern UNIX users" XZ.\" XZ.\" FIXME Evaluate material from http://mim.softjar.se/pidpbsd.htm and see XZ.\" if it should be incorporated here. XZ.\" XZ.NH 1 XZOverview XZ.PP XZThis document explains how to install \*(2B UNIX on your PDP-11 XZsystem. This document has been revised several times since the first XZrelease of \*(2B in 1991. The last significant revision in July 1995 XZdealt with the addition of disk labels to the system. This revision is XZfor the 2026 release of the 35th Anniversary Edition of \*(2B, which XZalso includes preconfigured ("canned") bootable disk images for users of XZPDP-11 emulators, described in detail below. XZ.PP XZThe procedure for performing a full bootstrap is outlined in Chapter 2. XZThe process includes copying a root filesystem from XZthe distribution tape into a new filesystem, XZbooting that root filesystem, and then reading the remainder of the system XZbinaries and sources from the archives on the tapes. XZ.PP XZAs \*(2B is not compatible at the filesystem level with previous versions XZof UNIX on the PDP-11, XZany upgrade procedure is essentially a full bootstrap\(dg). There is a XZlimited ability to access old filesystems which may be used after XZthe system partitions have been loaded from a full bootstrap. XZIt is desirable to recompile most local software after the conversion, XZas there are changes and performance improvements in the standard XZlibraries. XZ.FS XZ.IP \(dg XZRefer to Appendix C for special considerations when upgrading from earlier XZ2.11BSD Patch Levels. XZ.FE XZ.PP XZ.NH 2 XZA brief history of 2BSD XZ.PP XZ.\" Approved by SMS 22-Aug-2026 XZThe original 2BSD (short for "Second Berkeley Software Distribution", which XZis quite a mouthful) was put together by Bill Joy in 1979. Many subsequent XZreleases followed, including 2.8BSD in 1982, 2.9BSD in 1983, 2.10BSD in 1987 XZand finally 2.11BSD in 1991. Each release added more parts of 4BSD (the BSD XZrelease for DEC VAX systems), with 2.11BSD adding full TCP/IP networking XZsupport. XZ.PP XZSteven Schultz did nearly all of the work for the 2.11BSD release, including XZrelocating the TCP/IP networking support from the kernel to supervisor mode. XZRather than creating additional version numbers every time something major XZchanged in 2.11BSD, the concept of "Patch Levels" was introduced. Some Patch XZLevels were minor changes, while others were massive changes (for example, XZupdating the C compiler and library to modern ANSI standards). Many Patch XZLevels were partially or nearly entirely contributed by other volunteers, too XZnumerous to credit here individually. This 35th Anniversary Release of 2.11BSD XZis Patch Level 500. There will almost certainly be additional Patch Levels XZreleased in the future. XZ.PP XZNone of us who ran 2.11BSD "back in the day" envisioned the operating system XZstill being under active development 35 years later, but here we are. In XZaddition to some systems still being used in production, "retrocomputing" XZenthusiasts and museums have kindled new interest in 2BSD, as well as other XZolder operating systems. Some enthusiasts and museums run 2.11BSD on actual XZhardware (one of the authors of this document knows of enthusiasts who have XZmultiple complete PDP-11/70 systems in their homes) as well as on PDP-11 XZemulators such as SIMH. Emulators have the advantage of using \fBfar\fR less XZelectricity and space than actual hardware, as well as making additional XZhardware "free". For example, in 1984 adding an additional RA81 disk drive cost XZabout $19,000, while under an emulator it is a one-line change to a XZconfiguration file. And you don't have to worry about your emulated hardware XZbreaking! XZ.PP XZ2.11BSD represents (in the opinion of one of the authors of this document) the XZpinnacle of what can be achieved in a UNIX environment on a PDP-11. Newcomers XZmay wonder why some feature they're used to from modern UNIX-like systems (for XZexample, Perl) isn't present in 2.11BSD. The short answer is there's only so XZmuch you can squeeze into a system with a 64-kilobyte address space and a XZmaximum of 4 megabytes of total system memory. XZ.\" A more detailed explanation of what you can and can't expect to find in XZ.\" 2.11BSD, compared to more modern systems, can be found in Appendix D. XZ.PP XZ.NH 2 XZSupported hardware XZ.PP XZThis distribution can be booted on a PDP-11 system equipped with 1MB or XZmore of main memory, with separate I/D space and supervisor mode. Floating XZpoint (if not standard in your CPU model) is strongly recommended\(dg, and XZbooting from any of the following disks: XZ.FS XZ.IP \(dg XZIn practice, this includes the PDP-11/44, PDP-11/70, and J11-based models XZ(PDP-11/53, /73, /83, /84, /93 and /94), as well as a number of third-party XZCPUs compatible with one of the above models. XZ.FE XZ.DS XZ.TS XZlw(1.5i) l. XZRL02 XZRK06, RK07 XZRM02, RM03, RM05 XZRP04, RP05, RP06 XZSMD disks (using controllers with RM/RP emulation) XZSMD disks (using controllers with MSCP emulation) XZSMD disks (using System Industries 9500 controller) XZMost MSCP disks (RAxx, RDxx models, exceptions below) XZ.TE XZ.DE XZ.PP XZMany companies have produced aftermarket controllers or entire disk XZsubsystems. If these faithfully emulate one of the above models, they XZshould work as well. XZ.PP XZIt is important to note that many controllers that XZemulate DEC RM or RP disk systems can be configured to exactly match the XZcapacity of one or more DEC models, or to other configurations that use XZthe entire disk capacity. If your system has RM or RP disks configured XZfor non-standard sizes, you will need to manually define the disk XZduring the standalone disklabel phase of installation, and optionally add a XZdefinition of your custom disks to the \fI/etc/disktab\fR file. In cases like XZthis, editing \fI/etc/disktab\fR is just a potential convenience if you have XZadditional drives of the same size that need labels. XZ.PP XZControllers that emulate MSCP disks (RA and RD types) report their exact XZdrive capacity and other information to the operating system. However, if XZyour MSCP disk does not exactly match the capacity of any of the DEC MSCP XZdrives, you should start by using the default size as reported by the XZstandalone disklabel program and define your partitions as desired. You can XZoptionally add a new disk definition as described in the previous paragraph. XZ.PP XZNon-standard sizes of other disk devices (for example, the RK07) are not XZsupported by 2.11BSD as the drivers have fixed assumptions about capacity XZand geometry. XZ.PP XZOther disks are supported (RX23, RX33, RX50, RD51, RK05, RL01, RX02) but are XZnot large enough to hold a root filesystem plus a swap partition. It is XZpossible to create a bootable 2.11BSD system on a single RL02 disk drive, but XZsuch a system will be severely limited. XZ.PP XZDisks which are too small to hold even a root filesystem (floppies for XZexample) may be used as data disks or as standalone boot media, but are not XZuseable for loading the distribution. Others, while listed above, are not very XZwell suited to loading the distribution. The RK06/07 and RL02 drives are hard XZpressed to even hold the system binaries, much less the sources. XZ.PP XZIf you are XZusing a PDP-11 emulator such as SIMH, hardware is essentially free, so you XZshould choose one of the larger disk models (RM05, RP06, or an MSCP drive). XZ.PP XZThe tape drives supported by this distribution are: XZ.DS XZ.TS XZlw(1.5i) l. XZTS11, TU80, TK25 XZTM11 (including AVIV 6250/1600) XZTE16, TU45, TU77 XZTK50, TU81, TU81+, TZ30 XZ.TE XZ.DE XZ.PP XZThird-party tape controllers and drives that emulate any of the above models XZare also supported. Since tapes do not have a known capacity, the size issues XZmentioned in the above section on disks do not happen with tapes. XZ.NH 2 XZDistribution format ("canned" bootable disk images) XZ.PP XZAs most users will be running \*(2B under a PDP-11 emulator such as SIMH, XZtwo types of preconfigured (canned) bootable disk images are provided. XZAlthough this is a great convenience for emulator users, to get the full \*(2B XZexperience, we suggest that (once you are familiar with the system) you XZdo a "from scratch" installation of \*(2B from tape. This will allow more XZcustomization (for example, disk layout) and give you a deeper understanding of XZ\*(2B. After all, emulated hardware is free, and you can't break it - if XZsomething doesn't work out, you can always start over. XZ.PP XZThere are two available canned images, depending on what sort of environment XZyou desire. Each comes with a .ini file for the SIMH emulator as a starting XZpoint. XZ.PP XZ.NH 3 XZClassic PDP-11/70 system with MASSBUS XZ.PP XZThe first image is for a PDP-11/70 system with classic MASSBUS peripherals, XZupgraded with an Ethernet controller and a modern terminal multiplexor. It XZsupports the following hardware: XZ.DS XZ.TS XZlw(1.5i) l. XZPDP-11/70 CPU with 4MB memory and floating-point processor XZ60Hz line clock (can be reconfigured for 50Hz) XZDL11 console terminal XZRH70 with RM05 disk drives (maximum quantity 4) XZRH70 with TU77 tape drive XZDELUA Ethernet controller XZDHU11 16-port terminal multiplexor XZLP11 line printer XZTCP/IP networking XZ.TE XZ.DE XZ.PP XZIt is supplied and maintained by Terri Kennedy, \fIterri-decus@glaver.org\fP and XZcan be downloaded from: XZhttps://www.glaver.org/PiDP-11/tk2bsd/CLASSIC-211BSD.tgz (or .zip) XZ.PP XZ.NH 3 XZModern PDP-11/70\(dg system and peripherals XZ.PP XZThe second image is for a PDP-11/70\(dg system with a variety of modern XZperipherals, including an Ethernet controller and a terminal multiplexor. It XZsupports the following hardware: XZ.FS XZ.IP \(dg XZThis image should actually work on any system with an 11/70-class UNIBUS XZprocessor, as well as on QBUS systems based on the J11 processor, as long as XZthe system has at least 1MB of memory. XZ.FE XZ.DS XZ.TS XZlw(1.5i) l. XZPDP-11/70 CPU supporting an optional floating-point processor and at least 1MB of memory XZ50Hz line clock (can be reconfigured for 60Hz) XZDL11 console terminal XZUDA50/KDA50 with MSCP disk drives (maximum quantity 4) XZRL11/RLV11 with RL02 disk drives (maximum quantity 4) XZRH70/RH11 with RM/RP-series disk drives (maximum quantity 4) XZKLESI with TMSCP tape drive XZDEUNA/DEQNA Ethernet controllers XZDZ11 8-port terminal multiplexor XZTCP/IP networking XZ.TE XZ.DE XZ.PP XZIt is supplied and maintained by Johnny Billquist, \fIbqt@softjar.se\fR and can XZbe downloaded from: http://mim.softjar.se/pidpbsd.htm XZ.NH 3 XZSteps needed when using any canned system XZ.PP XZRegardless of which canned disk image you use, you will still need to perform XZsome setup steps to customize the system for use. You can skip ahead to Section XZ4.4, "Adding and managing users and groups" if you are using a canned image. XZ.NH 3 XZAdditional documentation XZ.PP XZAdditionally, PDF versions of this manual as well as the USENIX 4.3BSD Manual XZSet are available from: XZhttps://www.glaver.org/PiDP-11/tk2bsddocs/2bsddocs.tgz (or .zip) XZ.PP XZMany of the 4.3BSD manuals also apply to \*(2B, while some do not. The PDF XZversions are offered as a convenience, however the man pages included with XZ\*(2B should be considered authoritative. XZ.PP XZ\fBNote:\fP This may not be available at the time of the 35th Anniversary XZRelease, but will be released in the future. XZ.PP XZ.NH 2 XZDistribution format (installation from tape) XZ.PP XZThe basic distribution contains the following items: XZ.DS XZ(1)\0\0 magnetic tape image (in SIMH TAP format) XZ(1)\0\0 template SIMH config file (simh.ini) XZ(1)\0\0 Soft copy of this document XZ.DE XZ.PP XZ\fBThe distribution does not fit on several standard PDP-11 configurations XZthat contain only small disks\fP. If your hardware configuration does not XZprovide at \fBleast 75\fP Megabytes of disk space you can still install the XZdistribution, but you will probably have to operate without source for the XZuser level commands and, possibly, the source for the operating system. If XZyou are using an emulator, you can just choose a large disk type (RM05, RP06, XZor MSCP). XZ.PP XZThe root filesystem now occupies \fBa minimum of 4MB\fP. Creating a larger, XZ8 to 10MB root filesystem, is highly recommended when using the standalone XZ.B disklabel XZprogram\(dg. XZ.FS XZ.IP \(dg XZThe root filesystem cannot be arbitrarily large. The exact size varies, but 10MB XZshould always be a safe upper limit. The reasons for this are discussed in more XZdetail in Appendix B. XZ.FE XZ.PP XZThe basic bootstrap material is present in six XZshort files at the beginning of the tape. XZThe first file on the tape contains the primary bootstrap and program. XZThis is followed by several standalone XZutilities (\fIdisklabel\fP, \fImkfs\fP\|(8), \fIrestor\fP\|(8), and XZ\fIicheck\fP\|(8)\(dd) XZ.FS XZ.IP \(dd XZReferences of the form X(Y) mean the subsection named XZX in section Y of the UNIX Programmer's Manual. XZ.FE XZfollowed by a full dump of a root filesystem (see \fIdump\fP\|(8)). XZFollowing the root filesystem dump is a \fItar\fP archive of \fB/usr\fP XZexcept for \fB/usr/src\fP. Next, a \fItar\fP archive XZof the kernel source. Finally, a \fItar\fP archive of XZthe remaining system sources. XZ.PP XZ.DS XZTAPE: XZ.TS XZn n n l. XZTape file Record size Records\(sc Contents XZ_ XZ0 512 1 primary tape boot block XZ 512 1 boot block (some tape boot ROMs go for this copy) XZ 512 69 standalone \fBboot\fP program XZ1 1024 38 standalone \fBdisklabel\fP XZ2 1024 34 standalone \fBmkfs\fP(8) XZ3 1024 36 standalone \fBrestor\fP(8) XZ4 1024 34 standalone \fBicheck\fP(8) XZ5 10240 321 \fIdump\fP of ``root'' filesystem XZ6 10240 3254 \fItar\fP dump of /usr, excepting /usr/src XZ7 10240 293 \fItar\fP dump of /usr/src/sys XZ8 10240 3190 \fItar\fP dump of /usr/src excepting sys XZ.TE XZ.DE XZ.FS XZ.IP \(sc XZThe number of records in each tape file are approximate and do not necessarily XZcorrespond to the actual number on the distribution tape image. XZ.FE XZ.NH 2 XZUNIX device naming XZ.PP XZUNIX has a set of names for devices which are different from the DEC names XZ(of which there may be several for each device), which are also different XZfrom the names the SIMH emulator uses. The disk and tape names used by the XZ2.11BSD bootstrap and system are: XZ.DS XZ.TS XZl l. XZRK05 rk XZRK06, RK07 disks hk XZRL01, RL02 disks rl XZMSCP disks/diskettes ra XZRM02/03/05 xp XZRP04/05/06 xp XZRX02 diskettes (RX01 are not supported) rx XZSMD disks (using RM/RP emulation) xp XZSMD disks (using MSCP emulation) ra XZSystem Industries 9500 controller, SMD drive(s) si XZTM02/03, TE16, TU45, TU77 tapes ht XZTE10/TM11 tapes tm XZTS11/TU80/TK25 tapes ts XZTK50/TU81/TU81+/TZ30 tapes tms XZOther TMSCP tapes tms XZ.TE XZ.DE XZ.PP XZThe generic SMD disk driver, \fIxp\fP, will handle most types of SMD disks on XZone or more controllers (even different disk types on the same controller). XZThe \fIxp\fP driver handles RM02/03/05, RP04/05/06 disks on DEC or third-party XZQBUS, UNIBUS or MASSBUS controllers. Non-standard disk sizes (not matching XZany DEC drive size) are supported, but the user must provide the capacity and XZgeometry information during system installation and configuration. XZ.PP XZMSCP disks and TMSCP tapes include SCSI drives attached to the XZRQZX1 controller on suported QBUS CPU models. MSCP disks and TMSCP tapes also XZinclude SCSI drives attached to third-party UNIBUS and QBUS controllers, as XZlong as those controllers emulate a DEC MSCP/TMSCP controller. XZ.PP XZThe standalone system used to bootstrap the full UNIX system XZuses device names of the form: XZ.DS XZ\fIxx\|\fP(\fIc\fP,\fIy\fP,\fIz\fP) XZ.DE XZwhere \fIxx\fP is one of device types in the above disk and tape tables. XZThe value \fIc\fP specifies the controller number (0-3). This value is XZusually not explicitly given. The default is 0 if booting from the standard XZ(first) CSR of a device. XZ.PP XZExample: if there are two MSCP controllers in XZthe system addressed as 0172150 and 0172154 respectively booting from the XZcontroller at 172154 requires that \fIc\fP be given as 1. Booting from XZthe standard CSR of 0172150 would be done by specifying \fIc\fP as 0 or XZomitting the \fIc\fP parameter. XZ\fBboot\fP automatically detects if the XZfirst (standard) CSR is being used. All future references will ignore XZthe \fIc\fP parameter by assuming the default value. XZ.PP XZThe \fIy\fP value specifies the device or drive unit to use. XZThe \fIz\fP value is interpreted differently for tapes and disks: XZfor disks, \fIz\fP is a partition number (0 thru 7) corresponding to partitions XZ\'a\' thru \'h\' respectively, and should always be zero. For tapes, \fIz\fP XZis a file number on the tape. XZ.PP XZIn all simple cases, a drive with unit number 0 (determined either by XZa unit plug on the front of the drive, or jumper settings on the drive XZor controller) will be called unit 0 in its UNIX file name. XZIf there are multiple controllers, the drive unit numbers XZwill normally be counted within each controller. Different controller models XZsupport different numbers of devices. On a controller that supports 8 drives, XZdrives on the first controller are numbered 0 thru 7 and drives on the XZsecond controller are also numbered 0 thru 7. XZReturning to the discussion of the standalone system, recall XZthat tapes also took two integer parameters. In the case of a XZTM03 tape controller with a TU77 as drive 0, the XZfiles on the tape have names ``ht(0,0)'', ``ht(0,1)'', etc. XZHere ``file'' means a tape file containing a single data stream XZseparated by a single tape mark. XZ.PP XZ.\" bp here to force the footnote onto a single page XZ.bp XZEach UNIX physical disk is divided into 8 logical disk partitions, XZeach of which may occupy any consecutive cylinder\(dg range on the XZ.FS XZ.IP \(dg XZWe refer to "cylinders" as most supported physical disk drives use CHS XZ(cylinder/head/sector) geometry. Newer physical disks such as MSCP and XZSCSI don't have traditional CHS geometry, it is still convenient (actually, XZnecessary) to refer to them with a synthetic CHS geometry. XZ.FE XZphysical device. The \fI/etc/disktab\fR file provides tested, standard XZpartition layouts. While overlapping partitions are allowed, they are XZstrongly discouraged, being an accident waiting to happen, as making one XZfilesystem will destroy the other overlapping filesystem(s). XZ.PP XZThe cylinders occupied by the 8 partitions for each drive type are specified XZby the disk label read from the disk. XZ.PP XZIf no label exists the disk will not be bootable or mountable as a filesystem, XZand while the kernel attempts not to damage unlabeled disks (by swapping to or XZdoing a crash dump on a live filesystem) there is a chance that filesystem XZdamage will result if a kernel tries to write to an unlabeled disk. For XZphysical (as opposed to emulated) disk drives, we recommend using the Write XZProtect button (if available on the drive) or simply not "spinning up" disks XZthat will not be accessed by the kernel to guarantee that data on those disks XZwill not be corrupted. This is particularly important on systems that alternate XZbetween running 2.11BSD and some other operating system. XZ.PP XZThe standalone \fBdisklabel\fP program is used to define the partition tables. XZEach partition may be used XZeither as a raw data area (such as a swapping area) or to store a XZUNIX filesystem. XZIt is mandatory for the first partition on a disk to start at sector offset 0 XZbecause the 'a' partition is used to read and write the label (which is at XZthe beginning of the disk). XZIf the drive is to be used XZto bootstrap a UNIX XZsystem, the 'a' partition must be of type \fB2.11BSD\fP (FS_V71K in XZ\fIdisklabel.h\fP) and at least 4MB in size, with 8 to 10MB being strongly XZsuggested. A 'b' partition for swapping is also needed. The 'b' partition XZmust be at least 0.5MB larger than the size of main memory so that in the XZevent of a system crash the contents of main memory can be written to the 'b' XZpartition. Since most emulated systems will be running with a full 4MB of XZmemory configured, this works out to a recommended size of 4.5 to 5MB for XZthe 'b' partition. The extra space is so that the system can be booted and XZbegin running without overwriting the crash dump. If a drive is being used XZsolely for data, then that drive need not have a 'b' (swap) partition but XZpartition 'a' must still span the first part of the disk. The second ('b') XZpartition is traditionally used as a swapping area, and the rest of the disk XZis divided into space (as described below) for additional ``mounted XZfilesystems'' by use of one or more additional partitions. XZ.PP XZThe third ('c') logical partition of each physical disk also has a XZconventional usage: it allows access to the entire physical device, XZincluding the BAD144 bad sector forwarding information recorded at the end of XZthe disk (one track plus 126 sectors). It is occasionally used to store XZa single large filesystem or to access the entire pack when making a XZcopy of it on another. Care must be taken when using this partition not XZto overwrite the last few tracks and thereby destroying the bad sector XZinformation. XZ.PP XZOn disks that support bad sector forwarding, the eighth ('h') partition XZtraditionally spans the entire physical disk \fBexcept\fR for the last XZcylinder. It is generally preferable to use the 'h' partition (if it exists) XZinstead of the 'c' partition when copying entire disks using bad sector XZforwarding for the reasons described in the previous paragraph. XZ.PP XZOn other disks, partition 'h' is either not defined at all, is defined as an XZadditional partition for user data (generally on larger-capacity disks), or XZis defined as in the above paragraph. This inconsistency is a result of new XZdisk types added since the original release of 2.11BSD 35 years ago, the change XZto on-disk labels instead of in-kernel labels, and so forth. XZ.PP XZOne reason to spread things out across multiple partitions (particularly on XZlarger drives) is the 64K limit on the number of files (inodes). If you expect XZto have a large number of small files, you can end up with megabytes of 'free' XZspace, but not have an available inode to create a file. XZ.NH 2 XZUNIX devices: block and raw XZ.PP XZUNIX makes a distinction between ``block'' and ``raw'' (character) XZdevices. Each disk has a block device interface where XZthe system makes the device byte addressable and you can write XZa single byte in the middle of the disk. The system will read XZout the data from the disk sector, insert the byte you gave it XZand put the modified data back. The disks with the names XZ``/dev/xx0a'', etc are block devices. XZThere are also raw devices available. XZThese have names like ``/dev/rxx0a'', the XZ``r'' here standing for ``raw''. XZRaw devices bypass the buffer cache and use DMA directly to/from XZthe program's I/O buffers; XZthey are normally restricted to full-sector transfers. XZIn the bootstrap procedures we XZwill often suggest using the raw devices, because these tend XZto work faster. XZRaw devices are used when making new filesystems, XZwhen checking unmounted filesystems, XZor for copying quiescent filesystems. XZThe block devices are used to mount filesystems, XZor when operating on a mounted filesystem such as the root. XZ.PP XZYou should be aware that it is sometimes important whether to use XZthe character device (for efficiency) or not (because it wouldn't XZwork, e.g. to write a single byte in the middle of a sector). XZDon't change the instructions by using the wrong type of device XZindiscriminately. XZ.PP XZThe standalone \fBdisklabel\fP program must be used to alter the 'a' and 'b' XZpartitions of a drive being used for a bootable system. This is because XZthe kernel will not permit an open partition to change size or offset. XZThe root and swap partitions are \fBalways\fP open when the kernel is XZrunning. XSHAR_EOF Xchmod 644 '1.t' Xfi Xif test -f '2.t' Xthen X echo shar: "will not over-write existing file '2.t'" Xelse Xsed 's/^Z//' << \SHAR_EOF > '2.t' XZ.\" Copyright (c) 1980 Regents of the University of California. XZ.\" All rights reserved. The Berkeley software License Agreement XZ.\" specifies the terms and conditions for redistribution. XZ.\" XZ.\" @(#)2.t 3.0 (2.11BSD) 2026/11/08 XZ.\" XZ.ds lq `` XZ.ds rq '' XZ.ds LH "Installing/Operating \*(2B XZ.ds RH Installation XZ.ds CF \*(DY XZ.bp XZ.nr H1 2 XZ.nr H2 0 XZ.bp XZ.LG XZ.B XZ.ce XZ2. INSTALLATION PROCEDURE XZ.sp 2 XZ.R XZ.NL XZ.PP XZThis section explains the bootstrap procedure that can be used XZto get the kernel supplied with this distribution running on your PDP-11, XZregardless of whether it is an emulator or an actual PDP-11 system. XZ.PP XZIf you are installing this distribution on a system running the SIMH emulator, XZthe supplied simh.ini should be enough to get you started. If you are running XZon another emulator, you will need to attach the tape (it is in SIMH TAP XZformat) and one or more destination disk container files. If you are installing XZthis on a real, working, PDP-11 system, you will need to write the supplied XZtape image to an actual tape which is compatible with the tape drive in your XZPDP-11 system. XZ.PP XZ.NH 2 XZBooting from tape XZ.PP XZThe tape bootstrap procedure used to create a XZworking system involves the following major XZsteps: XZ.\" This has manual line breaks (I HATE *roff). Might be ugly in non-PDF form. XZ.DS XZ1) Load the tape bootstrap monitor. XZ2) Create the partition tables on the disk using \fIdisklabel\fP. This is described in detail in Appendix B. XZ3) Create a UNIX ``root'' filesystem system on disk using \fImkfs\fP\|(8). XZ4) Restore the full root filesystem using \fIrestor\fP\|(8). XZ5) Boot the UNIX system on the new root filesystem and copy the appropriate \fIsector 0 boot block\fP XZ to your boot device. XZ6) Build and restore the /usr filesystem from tape with \fItar\fP\|(1). XZ7) Restore the kernel sources from tape. XZ8) Restore the remaining sources from tape. XZ9) Tailor a version of UNIX to your specific hardware. Refer to Appendix A for detailed informa- XZ tion. XZ.DE XZ.PP XZCertain of these steps are dependent on your hardware XZconfiguration. If your disks require formatting, standard DEC XZdiagnostic utilities will have to be used, they are not supplied on the XZ\*(2B distribution tape. If you have a system with small-capacity disk XZdrives, you may need to perform some or all of steps 6 thru 8 on additional XZdisk drives. XZ.PP XZIt is a good idea to locate your disk model in the XZtable in Appendix B and use those values when setting up your partitions. XZAll of the supported disks are listed in that file. Alternatively, you can XZmanually calculate the partition layout you will use with the \fIdisklabel\fR XZCalculating partition sizes in cylinders (even if your hardware is MSCP or an XZemulator that doesn't use cylinders) instead of sectors is helpful because XZyou're working with smaller numbers and less likely to make a math error. You XZcan write this info down or store it in a text file and desk-check your math. XZ\fIdisklabel\fR will detect many errors (such as overlapping partitions or XZpartitions extending past the end of the disk), but it is not guaranteed to XZcatch all possible errors. XZ.NH 3 XZStep 1: Loading the tape bootstrap monitor XZ.PP XZTo load the tape bootstrap monitor, first XZmount the magnetic tape on drive 0 at load point, making XZsure that the write ring is not inserted if you are using a physical tape. XZThen use the normal bootstrap ROM, console monitor, emulator boot command, or XZother bootstrap to boot from the tape. XZ.PP XZ\fBNOTE:\fR The boot blocks expect the CSR of the booting controller in r0 XZand the unit number in r1. \fBboot\fP may be booted from any controller XZor unit, the earlier restrictions of controller 0 and unit 0 have been XZlifted. XZ.PP XZIf no other means are available, the following code can be keyed in XZand executed at (say) 0100000 to boot from a TM tape drive (the magic number XZ172526 is the address of the TM-11 current memory address register; XZan adjustment may be necessary if your controller is at a nonstandard XZaddress): XZ.DS XZ.TS XZl l. XZ012700 (mov $unit, r0) XZ000000 (normally unit 0) XZ012701 (mov $172526, r1) XZ172526 XZ010141 (mov r1, -(r1)) XZ012741 (mov $60003, -(r1)) XZ060003 (if unit 1 use 060403, etc) XZ000777 (br .) XZ.TE XZ.DE XZ.PP XZA toggle-in routine which has been used with a TS tape drive (this should XZbe entered at 01000): XZ.DS XZ.TS XZl l. XZ012700 mov $unit,r0 XZ000000 XZ012701 mov $172522,r1 XZ172522 XZ005011 clr (r1) XZ105711 1b:tstb (r1) XZ100376 bpl 1b XZ012761 mov $setchr,-2(r1) XZ001040 XZ177776 XZ105711 2b:tstb (r1) XZ100376 bpl 2b XZ012761 mov $read,-2(r1) XZ001060 XZ177776 XZ000000 halt XZ140004 setchr: TS_ACK|TS_CVC|TS_SETCHR XZ001050 char XZ000000 high order address XZ000010 number of bytes XZ001070 char: status XZ000000 XZ000016 XZ000000 XZ140001 read: TS_ACK|TS_CVC|TS_READ XZ000000 low order of address XZ000000 high order of address XZ001000 number of bytes to read XZ000000 status: XZ.TE XZ.DE XZ.PP XZWhen this is executed, the first block of the tape will be read into memory. XZHalt the CPU and restart at location 0. The register \fBr1\fP \fBMUST\fP XZbe left pointing at the device \fIcsr\fP. For the default/first TM or TS XZthis is 0172522. The register \fBr0\fP \fBMUST\fP contain the unit number XZ(usually 0). XZ.PP XZThe console should type XZ.DS XZ.B XZ\fInn\fPBoot from \fIxx\fP(\fIctlr\fP,\fIdrive\fP,\fIpart\fP) at \fIcsr\fP XZ: XZ.R XZ.DE XZwhere \fInn\fP is the CPU type on which it believes it is running. XZThe value will be one of 44, 70, 73, 83, 84, 93 XZor 94 depending whether a UNIBUS map and other hardware features are detected. XZFor J11 systems the System Maintenance Register is examined to determine XZthe CPU type. At present \*(2B runs on the 44, 53, 70, 73, 83, 84, 93 and 94 XZ\fBonly\fP. It must be emphasized that \*(2B requires a CPU with separate I/D XZspace. XZ.PP XZ\fIctlr\fP is the controller number that \fBBoot\fP XZwas loaded from. It is 0 unless booting from a non-standard CSR. XZ.PP XZ\fIdrive\fP is the drive unit number. XZ.PP XZThe \fIpart\fP XZnumber is disk partition or tape file number booted from. This will always XZbe 0 for the tape \fBBoot\fP program. XZ.PP XZ\fIcsr\fP is an octal number telling the CSR of the controller from which XZ\fBBoot\fP was loaded. XZ.PP XZYou are now talking to the tape bootstrap monitor. XZAt any point in the following procedure you can return XZto this section, reload the tape bootstrap, and restart. XZThrough the rest of this section, XZsubstitute the correct disk type for \fIdk\fP XZand the tape type for \fItp\fP. XZ.NH 3 XZStep 2: Creating the disk label XZ.PP XZThe standalone \fIdisklabel\fP program is then run: XZ.DS XZ.TS XZlw(1.5i) l. XZ\fB:\|\fP\fItp\|\fP(0,1) (\fIdisklabel\fP is tape file 1) XZ\fBBoot: bootdev=0nnnn bootcsr=0mmmmmm\fP XZ\fBdisklabel\fP XZ\fBDisk?\fP \fIdk\|\fP(0,0) (drive 0, partition 0) XZd(isplay) D(efault) m(odify) w(rite) q(uit)? XZ ... XZ\fB:\fP (back at tape boot level) XZ.TE XZ.DE XZ.PP XZThe \fIdisklabel\fP program is meant to be fairly intuitive. When prompted XZwith a line of choices entering the key just before the left parenthesis XZselects the entry. XZ.PP XZIf there is an existing label present on \fIdk\fP\|(0,0) it will be XZused as the default. To have \fIdisklabel\fP create a new default based XZon its idea of what the drive is select \fBD\fP. Then enter \fBm\fP to XZmodify/edit the label. XZ.PP XZThe MSCP driver is quite good at identifying drives because it can query the XZcontroller. Other drivers (notably the SMD (\fBxp\fP) driver) have to XZdeal with a much wider range of controllers which do not all have the XZsame capabilities for drive identification. When dealing with SMD XZdrives you must know the geometry of the drive so you can verify and XZcorrect \fIdisklabel\fP's choices. XZ.PP XZYou can however, if using non-DEC SMD controllers, make things easy for XZ\fIdisklabel\fP to determine what type of drive is being used. If your XZcontroller offers the choice of RM02 emulation you should select that choice. XZThe standalone \fBxp\fP driver uses RM02 as the indication that drive XZidentification capabilities XZnot offered by DEC controllers are present. The driver will be able to XZdetermine the geometry of the drive in this case. This is \fBoptional\fP XZbecause you can explicitly specify all of the parameters to the standalone XZ\fIdisklabel\fP program. XZ.PP XZA full description of the standalone \fIdisklabel\fP program is in Appendix XZB of this document. XZ.NH 3 XZStep 3: Creating a UNIX ``root'' filesystem XZ.PP XZNow create the root filesystem using the following procedure. XZ.PP XZThe size of the root ('a') filesystem was assigned in Step 2 (creating the XZdisk label). \fImkfs\fP will not allow a filesystem to be created if there XZis not a label present or if the partition size is 0. \fImkfs\fP XZlooks at partition 0 ('a') in the disklabel for the root filesystem size. XZ.PP XZFinally, determine the proper interleaving factors \fIm\fP and \fIn\fP XZfor your disk. Extensive testing has demonstrated XZthat the choice of \fIm\fP is non critical (performance of a filesystem XZvarying only by 3 to 4% for a wide range of \fIm\fP values). Values for XZ\fIm\fP within the range from 2 to 5 give almost identical performance. XZIncreasing \fIm\fP too much actually causes degraded performance because XZthe free blocks are too far apart. Slower processors (such as the 73 and XZ44) may want to start with a \fIm\fP of 3 or 4, faster processors (such as the XZ70 and 84) may start with a \fIm\fP of 2 or 3. XZOn the other XZhand, the \fIn\fP value is moderately important. It should be the number XZof filesystem blocks contained by one cylinder of the disk, calculated XZby dividing the number of sectors per cylinder by 2, rounding down if XZneeded. (This is what \fImkfs\fP does by default, based on the XZgeometry information in the disk label.) XZThese numbers determine the layout of the free list that will be constructed; XZthe proper interleaving will help increase the speed of the filesystem. XZ.PP XZThe number of bytes per inode determines how many inodes will be allocated XZin the filesystem. The default of 4096 bytes per inode is normally enough XZ(resulting in about 2000 inodes for an 8mb root filesystem and 1000 inodes XZfor the 4mb distribution ``generic'' root filesystem). If more inodes are XZdesired then a lower value (perhaps 3072) should be specified when prompted XZfor the number of bytes per inode. XZ.PP XZThen run the standalone version of the \fImkfs\fP (8) program. XZThe values in square brackets at the size prompt is the default from XZthe disklabel. Simply hit a return to accept the default. \fImkfs\fP XZwill allow you to create a smaller filesystem but you cannot enter a XZlarger number than the one in brackets. XZIn the following procedure, substitute the correct types XZfor \fItp\fP and \fIdk\fP and the size determined above for \fIsize\fP: XZ.DS XZ.TS XZlw(1.5i) l. XZ\fB:\|\fP\fItp\|\fP(0,2) (\fImkfs\fP is tape file 2) XZ\fBBoot: bootdev=0nnnn bootcsr=0mmmmmm\fP XZ\fBMkfs\fP XZ\fBfilesystem:\fP \fIdk\|\fP(0,0) (root is the first filesystem on drive 0) XZ\fBfilesystem size:\fP [NNNN] \fIsize\fP (count of 1024 byte blocks in root) XZ\fBbytes per inode:\fP [4096] \fIbytes\fP (number of bytes per inode) XZ\fBinterleaving factor (m, 2 default):\fP \fIm\fP (interleaving, see above) XZ\fBinterleaving modulus (n, 127 default):\fP \fIn\fP (interleaving, see above) XZ\fBisize = XX\fP (count of inodes in root filesystem) XZ\fBm/n = \fP\fIm n\fP (interleave parameters) XZ\fBExit called\fP XZ\fInn\fP\fBBoot\fP XZ\fB:\fP (back at tape boot level) XZ.TE XZ.DE XZ.PP XZThe number \fBnnnn\fP is the device number of the device (high byte is the XZmajor device number and the low byte is the unit number). The \fBmmmmmm\fP XZnumber is the CSR of the device. This information is mainly used as XZa reminder and diagnostic/testing purposes. XZ.sp XZYou now have an empty UNIX root filesystem. XZ.NH 3 XZStep 4: Restoring the root filesystem XZ.PP XZTo restore the root filesystem onto it, type XZ.DS XZ.TS XZlw(1.5i) l. XZ\fB:\|\fP\fItp\|\fP(0,3) (\fIrestor\fP is tape file 3) XZ\fBBoot: bootdev=0nnnn bootcsr=0mmmmmm\fP XZ\fBRestor\fP XZ\fBTape?\fP \fItp\|\fP(0,5) (root \fIdump\fP is tape file 5) XZ\fBDisk?\fP \fIdk\|\fP(0,0) (into root filesystem) XZ\fBLast chance before scribbling on disk.\fP (type a carriage return to start) XZ.B XZ"End of tape" \fR(appears on same line as message above)\fP XZ\fInn\fPBoot XZ\fB:\fR (back at tape boot level) XZ.R XZ.TE XZ.DE XZ.PP XZIf you wish, you may use the \fIicheck\fP program on the tape, XZ\fItp\|\fP(0,4), to check the consistency of the filesystem you have just XZinstalled. This has rarely been useful and is mostly for the voyeuristic. XZ.NH 3 XZStep 5: Booting UNIX XZ.PP XZYou are now ready to boot from disk. XZType: XZ.DS XZ.TS XZlw(1.5i) l. XZ\fB:\fP\fIdk\|\fP(0,0)unix (bring in unix from the root system) XZ\fBBoot: bootdev=0nnnn bootcsr=0mmmmmm\fP XZ.TE XZ.DE XZ.PP XZThe standalone boot program will then load unix from XZthe root filesystem you just created, and the system should boot (the XZexact strings will vary of course): XZ.DS XZ.B XZ.\"CHECK XZ2.11 BSD UNIX #157: Sat Oct 24 16:44:40 CDT 2026 XZ sms@vernon.2bsd.com:/usr/src/sys/GENERIC XZ XZphys mem = 4186112 XZavail mem = 3709504 XZuser mem = 307200 XZ XZconfigure system XZ\fI\&... information about available devices ...\fP XZ.R XZ(Information about various devices will print; XZmost of them will probably not be found until XZthe addresses are set below.) XZ.B XZerase=^?, kill=^U, intr=^C XZ# XZ.R XZ.DE XZ.PP XZUNIX itself then runs for the first time and begins by printing out a banner XZidentifying the release and XZversion of the system that is in use and the date that it was compiled. XZ.PP XZNext the XZ.I mem XZmessages give the amount of real (physical) memory, the amount of memory XZleft over after the system has allocated various data structures, and the XZamount of memory available to user programs in bytes. XZ.PP XZThe information about different devices being attached or not being found XZis produced by the \fIautoconfig\fP\|(8) program. Most of this is not XZimportant for the moment, but later the device table, \fI/etc/dtab\fP, XZcan be edited to correspond to your hardware. You will likely need to create a XZcustom kernel to support your hardware and remove support for hardware you XZdon't have. This is discussed in detail in Appendix A. XZ.PP XZThe tape drive of the correct type should have been detected and attached. XZ.PP XZThe \*(lqerase ...\*(rq message is part of /.profile XZthat was executed by the root shell when it started. This message XZis present to remind you that the character erase, XZline erase, and interrupt characters are set to what is XZstandard for DEC systems; this ensures that things are XZconsistent with the DEC console interface characters. XZ.PP XZUNIX is now running single user on the installed root filesystem, XZand the `UNIX Programmer's Manual' applies. XZThe next section tells how to complete XZthe installation of distributed software on the /usr filesystem. XZThe `#' is the prompt from the shell, XZand lets you know that you are the super-user, XZwhose login name is \*(lqroot\*(rq. XZ.PP XZThe disk with the new root filesystem on it will not be bootable XZdirectly until the block 0 bootstrap program for your disk has been installed. XZThere are copies of the bootstraps in /mdec. XZUse \fIdisklabel\fP\|(1) to install the boot block onto the disk. XZ.DS XZ\fB#\fP disklabel -r -B \fIdk\^\fP0 device XZ.sp XZFor example: XZ.sp XZ disklabel -r -B xp0 rp06 XZ.sp XZwill install /mdec/hpuboot into sector 0 of xp0 XZ.sp XZdisklabel -r -B ra0 XZ.sp XZWill install /mdec/rauboot into sector 0 of ra0 (since MSCP disks provide their XZdevice geometry automatically, there is no need to specify a device type as in XZthe previous example) XZ.sp XZ.DE XZ.PP XZThe block zero bootstraps and the devices they support are: XZ.DS XZ.TS XZl l. XZboot disk_type XZ_ XZhkuboot rk06/rk07 XZrauboot MSCP drives XZrkuboot rk05 XZrluboot rl01/rl02 XZsi95uboot si_eagle XZdvhpuboot diva XZhpuboot rp04/rp05/rp06 XZrp07uboot rp07 XZrm03uboot rm03 XZrm05uboot rm05/cdc9766 XZsi51uboot si_eagle/2351A XZsi94uboot rm2x/fuji160 XZ.TE XZ.DE XZ.PP XZ.B NOTE: XZIf none of the above are correct (most likely with a SMD drive with differing XZgeometry) then you will have to use a tape/floppy boot procedure rather than XZa sector 0 boot block. This can be fixed by creating a customized sector 0 XZboot program once the system sources have been loaded. XZ.PP XZOnce this is done, booting from this disk will load and execute the block XZ0 bootstrap, which will in turn load /boot. \fB/boot\fP will print XZon the console: XZ.DS XZ.TS XZlw(1.5i) l. XZ.B XZ\fInn\fPBoot from \fIdk\fP(\fIctlr\fP,\fIunit\fP,\fIpart\fP) at \fIcsr\fP\fR XZ: XZ.R XZ.TE XZ.DE XZ.PP XZThe boot block automatically loads and runs /\fIboot\fP for you; XZif /\fIboot\fP is not found, the system will hang/loop forever. XZThe block 0 program is very small (has to fit in 512 bytes) and simple XZprogram, however, and can only XZboot the second-stage boot from the first filesystem. XZOnce /boot is running and prints its ``: '' prompt, XZboot unix as above. XZ.PP XZAs distributed /\fIboot\fP will load \fIdk\fP(0,0)unix by default if a XZcarriage return is typed at the \fB:\fP prompt. XZ.PP XZ\fBNOTE:\fP NONE of the primary bootstraps have a prompt or alternate program XZname capability because of space considerations. No diagnostic message XZresults if the file cannot be found. XZ.NH 3 XZStep 6: Setting up the /usr filesystem XZ.PP XZFirst set a shell variable to the name of your disk, so XZthe commands used later will work regardless of the disk you XZhave; do one of the following: XZ.DS XZ.TS XZl l. XZ\fB#\fP disk=hk (if you have RK06's or RK07's) XZ\fB#\fP disk=rl (if you have RL01's or RL02's) XZ\fB#\fP disk=ra (if you have an MSCP drive) XZ\fB#\fP disk=xp (if you have an RP04/5/6/7, RM03, RM05, or other SMD drive) XZ.TE XZ.DE XZ.PP XZThe next thing to do is to extract the rest of the data from the tape. XZYou might wish to review the disk configuration information in Section XZ4.2, "Disk configuration" before continuing; you will have XZto select a partition to restore the /usr filesystem into which is XZat least \fB25\fP Megabytes in size (this is just barely enough for XZthe system binaries and such and leaves no room for the system XZsource.)\(dg XZ.FS XZ.IP \(dg XZPreviously a lengthy table of partition names organized by XZspecific disk type was given. XZWith the introduction of disk labels this is no longer XZnecessary (or possible since each site can select whatever partitioning XZscheme they desire). In Step 2 (creating the disklabel) a partition should XZhave been created for \fI/usr\fP. If this was not done then it may be easier XZto perform step 2 now than to use the more complex \fIdisklabel\fP\|(8) XZprogram and \fIed\fP\|(1). XZ.FE XZ.PP XZIn the command below \fIpart\fP is the partition name (a-h) for the partition XZwhich will hold /usr. For example, if you were going to use the g partition XZfor /usr, you would do the following: XZ.DS XZ.TS XZl l. XZ\fB#\fP part=g XZ.DE XZ.TE XZ.PP XZNow, define the symbol \fIname\fR to refer to complete drive and partition to XZbe used for /usr: XZ.DS XZ.TS XZl l. XZ\fBname=${disk}0${part} XZ.TE XZ.DE XZ.PP XZNext, find the tape you have in the following table and execute the XZcommands in the right hand portion of the table: XZ.DS XZ.TS XZl l. XZDEC TM02/03, TE16/TU45/TU77 \fB#\fP cd /dev; rm *mt*; ./MAKEDEV ht0; sync XZDEC TS11, TK25/TU80/TS05 \fB#\fP cd /dev; rm *mt*; ./MAKEDEV ts0; sync XZDEC TM11, TU10/TE10/TS03 \fB#\fP cd /dev; rm *mt*; ./MAKEDEV tm0; sync XZDEC TMSCP, TK50/TZ30/TU81 \fB#\fP cd /dev; rm *mt*; ./MAKEDEV tu0; sync XZEMULEX TC11 \fB#\fP cd /dev; rm *mt*; ./MAKEDEV tm0; sync XZ.TE XZ.DE XZ.PP XZThen execute the following commands: XZ.br XZ.ne 5 XZ.sp XZ.FS XZ.IP \(dd XZThe amount of time it will take the \fItar\fR command to extract each archive XZdepends on the speed of the real or emulated CPU, tape drive and disk drive. XZ.FE XZ.DS XZ.TS XZlw(2i) l. XZ\fB#\fP date \fIyymmddhhmm\fP (set date, see \fIdate\fP\|(1) - note that "date: can't write wtmp file." XZ\&.... is expected, harmless and can safely be ignored) XZ\fB#\fP passwd root (set password for super-user) XZ\fBNew password:\fP (password will not echo) XZ\fBRetype new password:\fP XZ\fB#\fP hostname \fImysitename\fP (set your hostname) XZ\fB#\fP newfs ${name} (create empty user filesystem) XZ(this takes a minute) XZ\fB#\fP mount /dev/${name} /usr (mount the usr filesystem) XZ\fB#\fP umask 22 (set file creation mask) XZ\fB#\fP cd /usr (make /usr the current directory) XZ\fB#\fP mt rew (rewind the distribution tape to the beginning) XZ\fB#\fP mt -f /dev/rmt12 fsf 6 (position the distribution tape to the 6th file) XZ\fB#\fP tar xpbf 20 /dev/rmt12 (extract all of usr except usr/src\(dd) XZ(Continued on next page) XZ.TE XZ.DE XZ.\" This is to force a page break in the middle of a table XZ.bp XZ.DS XZ.TS XZlw(2i) l. XZ\fB#\fP mkdir src (make directory for source) XZ\fB#\fP cd src (make /usr/src the current directory) XZ\fB#\fP mt -f /dev/rmt12 fsf (skip to the start of the next tape file) XZ\fB#\fP tar xpbf 20 /dev/rmt12 (extract the system source) XZ\fB#\fP cd / (back to root) XZ\fB#\fP chmod 755 / /usr /usr/src /usr/src/sys (set the proper directory permissions) XZ\fB#\fP umount /dev/${name} (unmount /usr) XZ.TE XZ.DE XZ.PP XZYou now have installed a complete base system, along with the ability to XZrecompile the kernel. However, the remainder of the source code in the /usr XZfilesystem still needs to be loaded, which is described below. it is XZ\fBstrongly\fR recommended that you install the remaining source code as it XZwill be needed to install future patch levels (refer to Appendix C for XZadditional information). XZ.PP XZYou can check the consistency of the /usr filesystem by doing XZ.DS XZ\fB#\fP fsck /dev/r${name} XZ.DE XZ.PP XZThe output from XZ.I fsck XZshould look something like: XZ.DS XZ.B XZ** /dev/r\fIxx\fP0x XZfilesystem: /usr XZ XZNEED SCRATCH FILE (179 BLKS) XZENTER FILENAME: /tmp/xxx XZ** Last Mounted on /usr XZ** Phase 1 - Check Blocks and Sizes XZ** Phase 2 - Check Pathnames XZ** Phase 3 - Check Connectivity XZ** Phase 4 - Check Reference Counts XZ** Phase 5 - Check Free List XZ4463 files, 35838 used, 196678 free XZ.R XZ.DE XZ.PP XZIf there are inconsistencies in the filesystem, you may be prompted XZto apply corrective action; see the document describing XZ.I fsck XZfor information. XZ.NH 3 XZStep 7: extracting the remaining source code XZ.PP XZYou should now remount the /usr filesystem and restore the rest of /usr/src as XZshown below: XZ.DS XZ.TS XZlw(2i) l. XZ\fB#\fP mount /dev/${name} /usr XZ\fB#\fP cd /usr/src (make /usr/src the current directory) XZ\fB#\fP mt rew (rewind the distribution tape to the beginning) XZ\fB#\fP mt -f /dev/rmt12 fsf 8 (position the distribution tape to the 8th file) XZ\fB#\fP tar xpbf 20 /dev/rmt12 (extract the remaining source XZ.TE XZ.DE XZ.NH 3 XZStep 8: editing the /etc/fstab file XZ.PP XZThe /etc/fstab file describes where the filesystems you created in Step 2 above XZwill be automatically mounted by the kernel. As an example, the following is an XZ/etc/fstab file defining three partitions on an RM05 disk. The `a' partition XZholds the root filesystem /, the `b' partition describes the area used for XZswapping, and the `g' partition contains all of /usr, including the kernel and XZother system source files (if you installed them). \fBNOTE:\fR A bootable XZ2.11BSD disk pack requires both an `a' and a `b' partition. XZ.nf XZ.in 0 XZ.cs CW 20 XZ.ft CW XZ XZ/dev/xp0a / ufs rw 1 1 XZ/dev/xp0b none swap sw 0 0 XZ/dev/xp0g /usr ufs rw 1 2 XZ.fi XZ.NH 2 XZConfigure the newly-installed system XZ.PP XZAssuming you are performing a fresh install and not upgrading a system, proceed XZto Chapter 4, "System setup. XSHAR_EOF Xchmod 644 '2.t' Xfi Xif test -f '3.t' Xthen X echo shar: "will not over-write existing file '3.t'" Xelse Xsed 's/^Z//' << \SHAR_EOF > '3.t' XZ\.\" Copyright (c) 1980 Regents of the University of California. XZ.\" All rights reserved. The Berkeley software License Agreement XZ.\" specifies the terms and conditions for redistribution. XZ.\" XZ.\" @(#)3.t 3.0 (2.11BSD) 2026/11/08 XZ.\" XZ.ds lq `` XZ.ds rq '' XZ.ds LH "Installing/Operating \*(2B XZ.ds RH "Upgrading a PDP-11 UNIX System XZ.ds CF \*(DY XZ.LP XZ.nr H1 3 XZ.nr H2 0 XZ.bp XZ.LG XZ.B XZ.ce XZ3. UPGRADING AN EXISTING SYSTEM XZ.sp 2 XZ.R XZ.NL XZ.PP XZIf you are upgrading a recent patch level of 2.11BSD, skip this section in XZits entirety and proceed to Appendix C. XZ.PP XZThe general advice is "you don't want to do this". Depending on what patch XZlevel you are on if you are already running 2.11BSD, substantial work can XZbe required to get from that patch level to the current (as of this writing) XZPatch Level 500. If you are running 2.10BSD or some other Unix version on your XZexisting system, things get even more complicated. XZ.PP XZIf you are going to attempt an in-place upgrade, it is \fBstrongly\fR suggested XZthat you back up your existing system, both in its preferred backup format XZ(such as \fIdump\fR/\fIrestore\fR) in case you need to revert to that system, XZas well as in a portable format like \fItar\fR. XZ.PP XZThe following sections describe the procedure for an upgrade from a XZsubstantially older 2.11BSD or other Unix operating system to Patch Level 500 XZof 2.11BSD. These procedures have not been tested in at least a decade and XZsuccess will depend on your familiarity with both the existing system and this XZ35th Anniversary Release of 2.11BSD. Here there be dragons! XZ.NH 2 XZFiles to save XZ.PP XZThe following list enumerates the standard set of files you will want to XZsave and suggests directories in which site-specific files should be XZpresent. Note that because \*(Ps changed so radically from previous XZversions of UNIX on the PDP-11, many of these files may not exist on your XZsystem, and will almost certainly require extensive changes for \*(2B, XZbut it's still handy to have them around as you're configuring \*(2B. XZThis list will likely be augmented with non-standard files you have added XZto your system. XZ.PP XZYou should create a \fItar\fP image of XZ(at a minimum) the following files before the new filesystems are created. XZIn addition, you should do a full dump before rebuilding the filesystem XZto guard against missing something the first time around. The \*(2B XZ\fIrestor\fP\|(8) program can read and convert old \fIdump\fP\|(8) tapes. XZ.DS XZ.TS XZl c l. XZ/.cshrc \(dg root csh startup script XZ/.login \(dg root csh login script XZ/.profile \(dg root sh startup script XZ/.rhosts \(dg for trusted machines and users XZ/dev/MAKEDEV \(dd in case you added anything here XZ/dev/MAKEDEV.local * for making local devices XZ/etc/disktab * in case you changed disk partition sizes XZ/etc/dtab \(dd table of devices to attach at boot time XZ/etc/fstab \(dg disk configuration data XZ/etc/ftpusers \(dg for local additions XZ/etc/gateways \(dg routing daemon database XZ/etc/gettytab \(dg getty database XZ/etc/group \(dg group data base XZ/etc/hosts \(dg for local host information XZ/etc/hosts.dir * must be rebuilt with mkhosts XZ/etc/hosts.pag * must be rebuilt with mkhosts XZ/etc/hosts.equiv \(dg for local host equivalence information XZ/etc/networks \(dg for local network information XZ/etc/netstart * site dependent network startup script XZ/etc/passwd * must be converted to shadow password file format XZ/etc/passwd.dir * must be rebuilt with mkpasswd XZ/etc/passwd.pag * must be rebuilt with mkpasswd XZ/etc/printcap \(dg line printer database XZ/etc/protocols \(dd in case you added any local protocols XZ.TE XZ.DE XZ.\" This is to force a page break in the middle of a table XZ.bp XZ.DS XZ.TS XZl c l. XZ/etc/rc \(sc for any local additions XZ/etc/rc.local \(sc site specific system startup commands XZ/etc/remote \(dg auto-dialer configuration XZ/etc/services \(dd for local additions XZ/etc/syslog.conf \(dg system logger configuration XZ/etc/securettys \(sc for restricted list of ttys where root can log in XZ/etc/ttys \(dg terminal line configuration data XZ/etc/ttytype \(sc terminal line to terminal type mapping data XZ/etc/termcap \(dd for any local entries that may have been added XZ/lib \(dd for any locally developed language processors XZ/usr/dict/* \(dd for local additions to words and papers XZ/usr/hosts/MAKEHOSTS \(dg for local changes XZ/usr/include/* \(dd for local additions XZ/etc/aliases \(dg mail forwarding data base XZ/etc/crontab \(dg cron daemon data base XZ/usr/share/font/* \(dd for locally developed font libraries XZ/usr/lib/lib*.a \(dg for local libraries XZ/usr/share/lint/* \(dd for locally developed lint libraries XZ/etc/sendmail.cf \(dg sendmail configuration XZ/usr/share/tabset/* \(dd for locally developed tab setting files XZ/usr/share/term/* \(dd for locally developed nroff drive tables XZ/usr/share/tmac/* \(dd for locally developed troff/nroff macros XZ/etc/uucp/* \(dg for local uucp configuration files XZ/usr/man/manl \(sc for manual pages for locally developed programs XZ/usr/msgs \(dg for current msgs XZ/usr/spool/* \(dg for current mail, news, uucp files, etc. XZ/usr/src/local \(dg for source for locally developed programs XZ/sys/conf/HOST \(dg configuration file for your machine XZ/sys/conf/files.HOST \(dg list of special files in your kernel XZ/*/quotas \(sc filesystem quota files XZ.TE XZ.sp XZ\(dg\|Files that can be used from \*(Ps without change. XZ\(dd\|Files that need local modifications merged into \*(2B files. XZ\(sc\|Files that require special work to merge and are discussed below. XZ.TE XZ.DE XZ.NH 3 XZInstalling \*(2B XZ.PP XZThe next step is to build a working \*(2B system. XZThis can be done by following the steps in Chapter 2 of XZthis document for extracting the root and /usr filesystems XZfrom the distribution tape onto unused disk partitions. XZ.PP XZOnce you have extracted the \*(2B system and booted from it, XZyou will have to build a kernel customized for your configuration. XZIf you have any local device drivers, XZthey will have to be incorporated into the new kernel. XZSee Appendix A for instructions on configuring, building, and installing a new XZkernel. XZ.PP XZWith the introduction of disk labels the disk partitions in \*(2B the XZ/etc/disktab file has changed dramatically. There is a detailed description XZlater in this chapter about the changes. If you have modified the XZpartition tables in previous versions of \*(2B you will need to create XZa new disktab entry or modify an existing one. XZ.NH 2 XZMerging your files from earlier PDP-11 UNIX systems into \*(2B XZ.PP XZWhen your system is booting reliably and you have the \*(2B XZroot and /usr filesystems fully installed you will be ready XZto continue with the next step in the conversion process, XZmerging your old files into the new system. XZ.PP XZIf you saved the files on a \fItar\fP tape, extract them XZinto a scratch directory, say /usr/convert: XZ.DS XZ\fB#\fP mkdir /usr/convert XZ\fB#\fP cd /usr/convert XZ\fB#\fP tar x XZ.DE XZ.PP XZFor sites running a pre-\*(Ps UNIX, there is very little that can be XZsaid here as the variety of previous versions of PDP-11 UNIX systems and how XZthey were administered is large. As an example, most previous versions XZof PDP-11 UNIX systems used the files \fI/etc/ttys\fP and \fI/etc/ttytype\fP XZto administer which terminals should have login processes attached to XZthem and what the types of terminals those were. Under \*(2B XZ/etc/ttytype has disappeared entirely, its functions subsumed by XZ/etc/ttys along with several new functions. In general, you will simply XZhave to use your previous configuration files as references as you XZconfigure \*(2B to your site needs. Familiarity with 4.3BSD XZconfiguration is very helpful at this point since XZ\*(2B is nearly identical in most of the files listed in the previous XZsection. XZ.PP XZIf you have any home-grown device drivers XZthat use major device numbers reserved by the system you XZwill have to modify the commands used to create the devices or alter XZthe system device configuration tables in /sys/pdp/conf.c. XZNote that almost all \*(2B major device numbers are different from XZthose in previous PDP-11 UNIX systems except \*(1B. A couple more device XZnumbers were added since the release of \*(1B for the kernel logging XZfacility (/dev/klog) and a (new) TK50/TU81 driver. XZ.PP XZSystem security changes require adding several new ``well-known'' groups XZto /etc/group. XZThe groups that are needed by the system as distributed are: XZ.DS XZ.TS XZl c. XZname number XZ_ XZwheel 0 XZdaemon 1 XZkmem 2 XZsys 3 XZtty 4 XZoperator 5 XZstaff 10 XZbin 20 XZ.TE XZ.DE XZ.PP XZOnly users in the ``wheel'' group are permitted to \fIsu\fP to ``root''. XZMost programs that manage directories in /usr/spool XZnow run set-group-id to ``daemon'' so that users cannot XZdirectly access the files in the spool directories. XZThe special files that access kernel memory, \fI/dev/kmem\fP XZand \fI/dev/mem\fP, are made readable only by group ``kmem''. XZStandard system programs that require this access are XZmade set-group-id to that group. XZThe group ``sys'' is intended to control access to system sources, XZand other sources belong to group ``staff.'' XZRather than make user's terminals writable by all users, XZthey are now placed in group ``tty'' and made only group writable. XZPrograms that should legitimately have access to write on user's terminals XZsuch as \fItalk\fP and \fIwrite\fP now run set-group-id to ``tty''. XZThe ``operator'' group controls access to disks. XZBy default, disks are readable by group ``operator'', XZso that programs such as \fIdf\fP can access the filesystem XZinformation without being set-user-id to ``root''. XZ.PP XZSeveral new users have also been added to the group of ``well-known'' users XZin /etc/passwd. XZThe current list is: XZ.DS XZ.TS XZl c. XZname number XZ_ XZroot 0 XZdaemon 1 XZoperator 2 XZuucp 66 XZnobody 32767 XZ.TE XZ.DE XZ.PP XZThe ``daemon'' user is used for daemon processes that XZdo not need root privileges. XZThe ``operator'' user-id is used as an account for dumpers XZso that they can log in without having the root password. XZBy placing them in the ``operator'' group, XZthey can get read access to the disks. XZThe ``uucp'' login has existed long before \*(2B, XZand is noted here just to provide a common user-id. XZThe password entry ``nobody'' has been added to specify XZthe user with least privilege. XZ.PP XZAfter restoring your old password file from tape/backups, a conversion is XZrequired to create the shadow password file. Only the steps XZto convert /etc/passwd are given here, see the various man pages XZfor \fIchpass\fP\|(1), \fIvipw\fP\|(8), \fImkpasswd\fP\|(8), etc. XZ.DS XZ\fB#\fP awk -f /etc/awk.script < /etc/passwd >/etc/junk XZ\fB#\fP mkpasswd -p /etc/junk XZ\fB#\fP mv /etc/junk.orig /etc/passwd XZ\fB#\fP mv /etc/junk.pag /etc/passwd.pag XZ\fB#\fP mv /etc/junk.dir /etc/passwd.dir XZ\fB#\fP mv /etc/junk /etc/master.passwd XZ\fB#\fP chown root /etc/passwd* /etc/master.passwd XZ\fB#\fP chmod 0600 /etc/master.passwd XZ.DE XZ.PP XZThe format of the cron table, /etc/crontab, is the same as that XZof \*(1B. XZ.PP XZSome of the commands previously in /etc/rc.local have been XZmoved to /etc/rc; XZseveral new functions are now handled by /etc/rc.local. XZYou should look closely at the prototype version of /etc/rc.local XZand read the manual pages for the commands contained in it XZbefore trying to merge your local copy. XZNote in particular that \fIifconfig\fP has had many changes, XZand that host names are now fully specified as domain-style names XZ(e.g, boris.Oswego.EDU). XZ.PP XZThe C library and system binaries are compiled with versions of XZ\fIgethostbyname\fP and \fIgethostbyaddr\fP which use the name server resolver XZroutines and NOT host tables. XZIf you want to build the C library and binaries to use host tables XZyou must edit the file /usr/src/lib/libc/Makefile and change the macro XZHOSTLOOKUP=named to be HOSTLOOKUP=hosttable. Then recompile the entire XZsystem (see /usr/src/Makefile for instructions). XZ.PP XZThere is a very old version of \fInamed\fP\|(8) in the system source tree. XZDon't even think about using it. XZ.PP XZThe format of /etc/ttys is the same as it was under \*(Ps. XZIt includes the terminal type and security options that were previously XZin /etc/ttytype and /etc/securettys. XZ.PP XZ\fIsyslog\fP is the 4.4BSD-Lite version now. XZSee \fIsyslog\fP\|(3) and \fIsyslogd\fP\|(8) for details. XZThey are used by many of the system daemons XZto monitor system problems more closely, for example XZnetwork routing changes. XZ.PP XZAgain, it must be emphasized that the nameserver is not robust under XZ\*(2B, and if the \fIhosts\fP files are not desired then the best XZalternative is to use the \fIresolver\fP\|(5) routines and use XZthe nameserver on a remote larger machine. The \fIresolver\fP\|(5) XZroutines are known to work. XZ.PP XZThe spooling directories saved on tape may be restored in their XZeventual resting places without too much concern. Be sure to XZuse the ``p'' option to \fItar\fP so that files are recreated with the XZsame file modes: XZ.DS XZ\fB#\fP cd /usr XZ\fB#\fP tar xp msgs spool/mail spool/uucp spool/uucppublic spool/news XZ.DE XZ.PP XZThe ownership and modes of two of these directories XZneeds to be changed, because XZ\fIat\fP now runs set-user-id ``daemon'' instead of root. XZAlso, the uucp directory no longer needs to be publicly writable, XZas \fItip\fP reverts to privileged status to remove its lock files. XZAfter copying your version of /usr/spool, you should do the following: XZ.DS XZ\fB#\fP chown \-R daemon /usr/spool/at XZ\fB#\fP chown \-R root /usr/spool/uucp XZ\fB#\fP chgrp \-R daemon /usr/spool/uucp XZ\fB#\fP chmod \-R o\-w /usr/spool/uucp XZ.DE XZ.PP XZWhatever else is left is likely to be site specific or require XZcareful scrutiny before placing in its eventual resting place. XZRefer to the documentation and source code XZbefore arbitrarily overwriting a file. XZ.NH 2 XZAdditional conversion information XZ.PP XZAfter setting up the new \*(2B filesystems, you may restore the user XZfiles that were saved on tape before beginning the conversion. Note that XZthe \*(2B \fIrestor\fP program does its work by accessing the raw file XZsystem device and depositing inodes in the appropriate locations on XZdisk. This means that filesystem dumps might not restore correctly if XZthe characteristics of the filesystem have changed (e.g. if you're XZrestoring a dump of a filesystem into a filesystem smaller than the XZoriginal.) To restore a dump tape for, say, the /u filesystem something XZlike the following would be used: XZ.DS XZ\fB#\fP restor r /dev/rxp1e XZ.DE XZ.PP XZIf \fItar\fP images were written instead of doing a dump, you should XZbe sure to use the `p' option when reading the files back. XZNo matter how you restore a filesystem, be sure and check its XZintegrity with \fIfsck\fP when the job is complete. XZ.PP XZ\fItar\fP tapes are preferred (when possible) because the inode XZallocation is performed by the kernel rather than the \fIrestor\fP\|(8) XZprogram. This has the benefit of allocating inodes sequentially starting XZfrom the beginning of the inode portion of the filesystem rather than XZpreserving the fragmented/randomized order of the old filesystem. XZ.NH 2 XZHints on converting from previous PDP-11 UNIX systems to \*(2B XZ.PP XZThis section summarizes some of the significant changes in \*(2B XZfrom \*(1B. The installation guide for \*(1B is included in the XZdistribution as /usr/doc/2.10/setup.2.10 and should be read if XZyou are not presently running \*(Ps or \*(1B. XZIt does not include changes in the network; XZsee Chapter 5 for information on setting up the network. XZ.PP XZOld core files will not be intelligible by the current debuggers XZbecause of numerous changes to the user structure. XZAlso removed from the user structure are the members u_offset, u_count, XZu_base, u_segflg, the 4.3BSD uio/iovec/rdwri kernel I/O model having XZbeen put in place. The 4.3BSD \fInamei\fP argument encapsulation XZtechnique has been ported, which adds the u_nd member to the user XZstructure. XZ.PP XZNote, once your system is installed and running, you XZshould make sure that you recompile and reinstall the directory XZ\fI/usr/src/share/zoneinfo\fP. Read through the Makefile first, if you're XZnot located on the West Coast you will have to change it. This directory XZis an addition since 4.3BSD, and is intended to solve the Daylight XZSavings Time problems once and for all. XZ.PP XZThe in-memory inode structure has had the i_id member added as part XZof implementing the 4.3BSD namei cache. The di_addr member of the XZon disk inode structure is now an array of type \fBdaddr_t\fP instead XZof \fBchar\fP. The old 3-byte packed block number is obsolete at last. XZ.PP XZThe on-disk directory structure is that of 4.3BSD with the difference XZthat the inode number is an unsigned short instead of a long. This was XZdone to reduce the amount of long arithmetic in the kernel and to maintain XZcompatibility with earlier versions with regard to the maximum number of XZinodes per filesystem. Given the typical size of disks used with \*(2B XZthe limit on the number of inodes per filesystem will not be a problem. XZ.PP XZAnd again, \*(2B is \fBnot\fR filesystem compatible with any previous PDP-11 XZUNIX system\fP. XZ.PP XZIf you want to use \fIps\fP after booting a new kernel, XZand before going multiuser, you must initialize its name list XZdatabase by running \fIps \-U\fP. XZ.NH 2 XZHints on possible problems upgrading from \*(1B XZ.NH 3 XZNew utmp UT_NAMESIZE. XZ.PP XZ.B UT_NAMESIZE XZin XZwas changed from 8 to 15. This won't affect correctly written programs XZ(those which do not hard code the constant 8) at the source XZlevel but does cause changes in various databases. This means that old XZbinaries won't be able to cope with new databases (passwd, aliases, etc) XZand vice versa. XZ.PP XZThis change was necessary since the systems available for \*(2B development XZhad to be shared with systems in which UT_NAMESIZE was set at 15. If this XZchange/incompatibility is not desired, then utmp.h and wtmp.h will have to XZbe modified and the system libraries and applications rebuilt before XZproceeding to load local software. XZ.PP XZThe simplest way to deal with this incompatibility is simply to rebuild XZall your databases from the source data. In particular, you should be sure XZyou rebuild XZ.IR /etc/passwd , XZ.IR /etc/hosts , XZand XZ.I /etc/aliases XZdatabases via the commands: XZ.IR "mkpasswd /etc/passwd" , XZ.IR "mkhosts /etc/hosts" , XZand XZ.IR /usr/ucb/newaliases. XZ.NH 3 XZman system XZ.PP XZThe manual system continues to track the changes XZgoing on in 4BSD. I'm not convinced the new setup is better, but it does XZseem to be the method of the moment. XZThe setup is essentially the same as that in the XZ.B 4.3BSD-TAHOE XZdistribution with the manual source in /usr/src/man. XZ.NH 3 XZNMOUNT lowered XZ.PP XZThe value of XZ.B NMOUNT XZin XZ.I /sys/h/param.h XZis set to 6 in the distribution system. This may be too small for systems XZusing multiple disk drives. Since each mount table entry costs about XZ440 bytes of valuable kernel data space this number should be chosen XZwith care. See Appendix A for an explanation of how to XZreconfigure XZ.B NMOUNT. XZ.NH 3 XZShadow passwords XZ.PP XZThe May 1989 release of the 4.3BSD shadow password file has been ported XZto \*(2B. Password aging is also implemented. XZ.NH 3 XZNew /etc/rc startup scripts XZ.PP XZ\fI/etc/rc\fR, \fI/etc/rc.local\fR and \fI/etc/netstart\fR have been modified XZextensively and \fI/etc/rc.conf\fR has been added. \fIrc.conf\fR is a file XZwhich centralizes information previously scattered across several files. XZ.NH 3 XZmkfs XZ.PP XZ\fImkfs\fP\|(8) is no longer able to populate a filesystem with files. The XZ4.3BSD version of \fImkfs\fP\|(8) was ported to \*(2B. XZ.NH 3 XZmkproto and mklost+found XZ.PP XZ\fImkproto\fP\|(8) and \fImklost+found\fP\|(8) have been removed from the XZsystem. \fImkproto\fP\{(8) hasn't been used since it was written and has so many XZlimitations as to render the program useless. \fImklost+found\fP\|(8) is not XZneeded as \fIfsck\fP\|(8) has been capable of automatically extending XZlost+found for quite some time. XZ.NH 3 XZANSI C compiler XZ.PP XZThe C compiler (and C preprocessor) is ANSI compliant and most (but not all) XZC library functions are properly prototyped. This may cause compilation XZproblems with some program sources. XZ.NH 3 XZ/etc/disktab XZ.PP XZThe format of /etc/disktab XZis now the same as 4.3BSD-Reno and 4.4BSD. Previously to describe a drive XZ(an RM03 for example) the /etc/disktab XZfile had entries of the form: XZ.DS XZ:ty=removable:ns#32:nt#5:nc#823:sf: XZ:b0=/mdec/rm03uboot: XZ:pa#9600:ba#1024:fa#1024: XZ:pb#9600:bb#1024:fb#1024: XZ:pc#131520:bc#1024:fc#1024: XZ:pf#121920:bf#1024:ff#1024: XZ:pg#112320:bg#1024:fg#1024: XZ:ph#131520:bh#1024:fh#1024: XZ.DE XZ.PP XZNote that there is no information at all about which cylinder a partition XZstarts at or which partitions overlap and may not be used simultaneously. XZThat information was kept in tables in the driver. If you modified XZ/etc/disktab it would have no effect without also changing the driver and XZrecompiling the kernel. XZ.PP XZThe new /etc/disktab file looks like this: XZ.DS XZ# RM02/03 XZ# XZrm02|RM02|rm03|RM03|DEC RM02/03:\\ XZ :ty=removable:ns#32:nt#5:nc#823:sf:\\ XZ :b0=/mdec/rm03uboot:\\ XZ :pa#14080:oa#0:ba#1024:fa#1024:ta=2.11BSD:\\ XZ :pb#8960:ob#14080:bb#1024:fb#1024:tb=swap:\\ XZ :pc#131680:oc#0:bc#1024:fc#1024:\\ XZ :pg#108480:og#23040:bg#1024:fg#1024:tg=2.11BSD:\\ XZ :ph#131520:oh#0:bh#1024:fh#1024 XZ.DE XZ.PP XZThere are two new fields per partition, the 'o' (oa, ob, etc.) field XZspecifies the offset in sectors that the partition begins at. The 't' XZfield specifies the partition type. Only those partitions which are XZ\fB2.11BSD\fP will be recognized by \fInewfs\fP\|(8) and the kernel as XZfilesystems. XZThe kernel also will not swap or place a crash dump on a partition that XZis not of type \fBswap\fP. XZ.PP XZThe two examples above are equivalent and provide an example of a XZtranslating an old style disktab entry into a new style entry. To translate XZa customized disktab entries you will need: 1) a copy of your XZcurrent partition tables from the device driver, 2) a copy of the XZold disktab entry, 3) your current /etc/fstab file. In new disktab entries XZyou should only place those partitions you actually use. There is no XZneed to declare (as was done in the examples above) all of the possible XZpartitions. XZ.PP XZIf you XZhave changed the disk partition sizes, be sure to make the necessary XZ/etc/disktab changes and label your disks XZBEFORE trying to access any of XZyour old filesystems! XZThere are two ways to label your disks. The standalone disklabel program XZis one way. It is also possible to label disks using \fIdisklabel\fP\|(8) XZwith the \-r option \- this works even when running on a kernel which does XZnot support labels (\-r reads and writes the raw disk, thus it is possible XZto label disks on an older kernel as long as the \fIdisklabel\fP\|(8) XZprogram is present). XSHAR_EOF Xchmod 644 '3.t' Xfi Xif test -f '4.t' Xthen X echo shar: "will not over-write existing file '4.t'" Xelse Xsed 's/^Z//' << \SHAR_EOF > '4.t' XZ.\" Copyright (c) 1980 Regents of the University of California. XZ.\" All rights reserved. The Berkeley software License Agreement XZ.\" specifies the terms and conditions for redistribution. XZ.\" XZ.\" @(#)4.t 3.0.1 (2.11BSD) 2026/11/10 XZ.\" XZ.de IR XZ\fI\\$1\fP\|\\$2 XZ.. XZ.ds LH "Installing/Operating \*(2B XZ.nr H1 4 XZ.nr H2 0 XZ.ds CF \*(DY XZ.ds RH "System setup XZ.bp XZ.LG XZ.B XZ.ce XZ4. SYSTEM SETUP XZ.sp 2 XZ.R XZ.NL XZ.PP XZAt this point you should have a system which can successfully boot from disk XZinto multi-user mode. If it does not, return to the setup steps in Chapter 2 XZbefore proceeding. XZ.PP XZThis section describes procedures used to set up a PDP-11 UNIX system. XZThese procedures are used when a system is first installed XZor when the system configuration changes. Procedures for normal XZsystem operation are described in the next section. XZ.NH 2 XZFirst, a little housekeeping XZ.PP XZThere are a number of tasks that you should perform after first installation, XZas well as in the obvious cases where these steps might need to be repeated. XZ.NH 3 XZSaving a backup copy of the GENERIC kernel XZ.PP XZYou can get yourself into a situation where a custom kernel does not boot, or XZother things have gone wrong. Having a copy of the GENERIC kernel around can be XZthe difference between a simple recovery and needing to do a re-install. XZBy convention, this saved copy of the GENERIC kernel is called /genunix and is XZcreated as follows: XZ.DS XZsu XZcd / XZcp -p /unix /genunix XZ.DE XZ.PP XZ\fBNOTES:\fR 1) You should perform this \fIbefore\fR replacing /unix with a XZcustomized kernel. 2) Some Patch Levels may make major changes to some part of XZthe system. In such cases, it is advisable to build a new GENERIC kernel and XZreplaced the saved /genunix with the new kernel. Those Patch Levels will XZinclude a suggestion to rebuild the GENERIC kernel when necessary. XZ.PP XZThe following shows the steps to use the /genunix kernel by specifying it on XZthe command line during the system boot process. XZ.PP XZ.nf XZ.in +0.5i XZ.cs CW 20 XZ.ft CW XZ70Boot from xp(0,0,0) at 0176700 XZ: genunix XZBoot: bootdev=05000 bootcsr=0176700 XZ XZ2.11 BSD UNIX #157: Sat Oct 24 16:44:40 CDT 2026 XZ sms@vernon.2bsd.com:/usr/src/sys/GENERIC XZ[...] XZ.fi XZ.PP XZ.NH 3 XZSetting the correct time zone XZ.PP XZIt is quite possible that you are located in a different time zone than US XZCentral Time where the GENERIC kernel was built, or where the "canned" XZ(prebuilt) disk images were built. The kernel keeps time in GMT by default XZ(and should generally not be changed). Instead, the system provides a large XZselection of time zone rules in the directory tree based at XZ/usr/share/zoneinfo. Locate the appropriate file and install it as XZ/etc/localtime, as shown in the following example (assuming US Eastern Time, XZwith automatic switching to Daylight Saving Time and back as needed): XZ.DS XZsu XZcd /usr/share/zoneinfo XZcp -p EST5EDT /etc/localtime XZ.DE XZ.PP XZ\fBNOTES:\fR 1) In addition to the top-level time zone rules, there are XZsubdirectories for various countries which have local exceptions. For example, XZthe standard US Mountain Time zone rule is in /usr/share/zoneinfo/MST7MDT, but XZmost of Arizona does not observe Daylight Saving Time, so it has its own rule XZin /usr/share/zoneinfo/US/Arizona. 2) Governments sometimes change their time XZzone rules, often with little advance notice. Some of the zoneinfo files XZincluded with 2.11BSD may be out-of-date. Work is planned (as part of a future XZPatch Level) to import the latest IANA tzdata. XZ.NH 3 XZSetting the system host name XZ.PP XZAll programs that require the site's name, or some similar XZcharacteristic, obtain the information through system calls XZor from files located in /etc. Aside from parts of the XZsystem related to the network, to tailor the system to your XZsite you must simply select a host name, then edit the file XZ/etc/rc.conf and change the "rc_configured" line at or about XZline 7 from "NO" to "YES", and then change the "hostname" line XZat or about line 32 to something like: XZ.DS XZhostname=\fImyname.my.domain\fP XZ.DE XZ.PP XZ\fBNOTES:\fR 1) Be sure to remove the leading pound (comment) character as XZwell as the blank space following it ("# ") in the hostname line or your XZhostname will not be configured. 2) If you are running a system with XZnetworking enabled, you should instead refer to Chapter 5, "Network Setup". XZ.PP XZSetting the hostname defines the value returned by the XZ.IR gethostname (2) XZsystem call. Your hostname should be a fully qualified XZdomain name. Since you are not running a system with networking, you can use a XZname like "mysystem.example.com". Programs such as XZ.IR getty (8), XZ.IR mail (1), XZ.IR wall (1), XZ.IR uucp (1), XZand XZ.IR who (1) XZuse this system call so that the binary images are site XZindependent. XZ.NH 3 XZSetting root's email forwarding XZ.PP XZBy default, the system will mail the output of the scheduled daily / weekly / XZmonthly reports to the root user. Since it is not good security practice to XZrun as root when not needed, you can set root's email forwarding elsewhere, XZeither to another user account on the system or (if you have networking XZenabled) to any email address the system can reach. The address to forward XZmail to is saved in root's .forward file (\fI/root/.forward\fR). To add or XZchange forwarding, use the one of the following commands, depending on whether XZyou are forwarding to a local or remote user: XZ.DS XZ\fB#\fP cd /root; echo "\fIusername\fP" > .forward XZ\fB#\fP cd /root; echo "\fIusername@hostname\fP" > .forward XZ.DE XZ.NH 3 XZAdjusting the line time clock frequency (if needed) XZ.PP XZBoth the GENERIC kernel and the "canned" CLASSIC system disk image's XZkernel are built with "LINEHZ 60", while the "canned" PIDP11 system disk XZimage's kernel is built with "LINEHZ 50". A late-breaking change during PL500 XZdevelopment made this setting configurable without needing to build a new XZkernel. At the moment, this involves giving the command XZ"sysctl -w kern.linehz=N" where N is either 50 or 60. Ideally, this should be XZdone before the system goes into multi-user mode, but it can be made at any XZtime. \fBNOTE:\fR If you are running the Network Time protocol (refer to XZChapter 5, Network Setup for more information) it is important to have the XZcorrect line time clock frequency set correctly before NTP is enabled. XZ.NH 2 XZDisk configuration XZ.PP XZThis section describes how to layout filesystems to make use XZof the available space and to balance disk load for better system XZperformance. \fBNOTE:\fR The information in this section was of far greater XZimportance on PDP-11 systems with relatively slow peripherals. If you are XZrunning on an emulator, you can create pretty much any filesystem layout and XZcombination of disk drives that you want, without affecting performance. In XZthis case, you can skip to Section 4.3, "Configuring terminals" if you XZinstalled from the distribution tape, or to Section 4.4, "Adding and managing XZusers and groups" if you are running a "canned" (pre-built) disk image. XZ.PP XZThis section remains both for users with actual PDP-11 systems, as well as XZdocumenting the historic procedures used. XZ.NH 3 XZDisk naming and divisions XZ.PP XZEach physical disk drive can be divided into up to 8 partitions; XZUNIX typically XZuses only 3 or 4 partitions. XZFor instance, on an RP06 XZthe first partition, xp0a, XZis used for a root filesystem, a backup thereof, XZor a small filesystem like, /tmp; XZthe second partition, xp0b, XZis used for swapping or a small filesystem; and XZa combination of the remaining partitions (xp0d, xp0e, xp0f, xp0g, xp0h) XZwould hold user filesystems. XZ.sp XZ.RS XZ.PP XZ\fBWarning:\fP for disks on which DEC standard 144 bad sector forwarding XZis supported, the last track and up to 126 preceding sectors XZcontain replacement sectors and bad sector lists. XZDisk-to-disk copies should be careful to avoid overwriting this information. XZSee \fIbad144\fP\|(8). XZBad sector forwarding is optional in the \fBhk\fP XZand \fBxp\fP drivers. XZThe partition sizes listed in \fI/etc/disktab\fP that \fInewfs\fP\|(8) XZuses automatically reserve the maximum amount of room that may be used XZby bad block forwarding on a disk. XZ.PP XZNote also that bad144 style bad block forwarding \fIcannot\fP be used XZwith SI controllers on the xp driver as the controllers use their own XZinternal scheme for bad block forwarding, and you can in fact make your XZdisks unusable on the SI controllers if you write anything in the last XZfive cylinders. The partition sizes in \fI/etc/disktab\fP also handle XZthis constraint automatically. XZ.PP XZThe generic distribution kernel does not do bad block forwarding. There is XZunfortunately no way to run bad144 style bad block forwarding on some of your XZdisks but not others. As a final bug the hk and xp drivers do not reread XZthe bad sector forwarding information when disk packs are changed and so XZwill erroneously use bad block forwarding information from the wrong packs! XZ.RE XZ.sp XZ.PP XZThe space available on a disk varies, not surprisingly, per device. XZDisk labels make a table giving sizes meaningless since there are no XZpredefined partition sizes embedded in the kernel any longer. The root XZfilesystem (\fBa\fP) must be at least 4MB, preferably 8 to 10MB if possible. XZThe swap area (almost always the \fBb\fP partition) should be 4MB or a little XZmore. It is a rare case where more than XZ5 or 6MB of swap space is required. XZ.PP XZThe system (boot) disk has a swapping area and XZa root filesystem. Other drives may use those partitions for data. XZ\fBRemember:\fP the \fBa\fP partition must start at sector 0 or else neither XZ\fIdisklabel\fP\|(8) nor the kernel will be able to read/write the XZdisk label. XZ.PP XZThe distributed system binaries occupy about 34 Megabytes XZwhile the major sources occupy another 36 Megabytes. Adding in the XZmiscellaneous sources, a few locate works of art bring the total for XZa complete system to about 90 Megabytes. XZThis overflows RK07, RL02 and RM03 systems, XZbut fits easily on most other hardware configurations. \*(2B is quite XZhappy on RD54 or larger. XZ.PP XZBe aware that the disks have their sizes measured in disk sectors (512 XZbytes), while the UNIX filesystem blocks are 1024 bytes each. Thus, if a XZdisk partition has 10000 sectors (disk blocks), it will have only 5000 XZUNIX filesystem blocks, and you \fImust\fP divide by 2 to use 5000 when XZspecifying the size to the \fImkfs\fP command for instance. The XZ\fInewfs\fP\|(8) program performs this calculation automatically. You XZshould \fBnever\fP need to run \fImkfs\fP manually. XZAll user XZprograms report disk space in kilobytes and, where needed, disk sizes are XZalways specified in units of sectors. The /etc/disktab file used in XZmaking filesystems specifies disk partition sizes in sectors; the XZdefault sector size may be overridden with the ``se'' attribute. \fBNote\fP XZthat the only sector size currently supported is NBPG as defined in XZ\fI/sys/pdp/machparam.h\fP. This restriction is enforced in several places XZin the disk labeling process as a safeguard against specifying a sector XZsize other than NBPG (512). Any other sector size would produce strange XZresults and almost certainly curdled filesystems. XZ.NH 3 XZLayout considerations XZ.PP XZThere are several considerations in deciding how XZto adjust the arrangement of things on your disks. XZThe most important is making sure that there is adequate space XZfor what is required; secondarily, throughput should be maximized. XZSwap space is an important parameter since it defines the maximum XZprocess image load that may be run. If, for instance, your swap XZarea was smaller than the amount of main memory available after XZthe kernel took its share, some of your memory would never XZbe used. XZ.PP XZMany common system programs (C, the editor, the assembler etc.) XZcreate intermediate files in the /tmp directory, XZso the filesystem where this is stored also should be made XZlarge enough to accommodate XZmost high-water marks; if you have several disks, it makes XZsense to mount this in a ``root'' (i.e. first partition) XZfilesystem on another disk. XZAll the programs that create files in /tmp take XZcare to delete them, but are not immune to rare events XZand can leave dregs. XZThe directory should be examined every so often and the old XZfiles deleted. XZ.PP XZIt is critical for good performance on real PDP-11 systems to balance the disk XZload across multiple drives (if available). On an emulator, all drives are XZnormally container files in the same directory on the host system, so there is XZmuch less need to balance the disk load (as it is all accessing the same host XZdevice). To mimic certain real historic systems, it may be desirable to have XZmultiple disk drives, even though there is almost no performance benefit from XZdoing so. XZ.PP XZThere are at least five components of the disk load that you can XZdivide between the available disks: XZ.DS XZ1. The root filesystem. XZ2. The /tmp filesystem. XZ3. The /usr filesystem. XZ4. The user files. XZ5. The swapping activity. XZ.DE XZ.PP XZThe following possibilities are ones that have been used at times XZwhen 2, 3 and 4 disks were available: XZ.TS XZcenter doublebox; XZl | c s s XZl | lw(5) | lw(5) | lw(5). XZ disks XZwhat 2 3 4 XZ_ XZ/ 0 0 0 XZtmp 1 2 3 XZusr 1 1 1 XZswapping 0 2 2 XZusers 0 0+2 0+2 XZarchive x x 3 XZ.TE XZ.NH 3 XZImplementing a layout XZ.PP XZTo put a chosen disk layout into effect, you should use the XZ.IR newfs (8) XZcommand to create each new filesystem. XZEach filesystem must also be added to the file XZ/etc/fstab XZso that it will be checked and mounted when the system is bootstrapped. XZ.PP XZAs an example, consider a system with RA80's. On the first RA80, ra0, XZwe will put the root filesystem in ra0a, and the /usr XZfilesystem in ra0c, which has enough space to hold it and then some. XZThe /tmp directory will be part of the root filesystem, XZas no filesystem will be mounted on /tmp. XZIf we had only one RA80, we would put user files XZin the ra0c partition with the system source and binaries. XZ.PP XZIf we had a second RA80, we would place \fI/usr\fP in ra1c. XZWe would put user files in ra0c, calling the filesystem /mnt. XZWe would put swap on \fIra0b\fP. XZWe would keep a backup copy of the root XZfilesystem in the \fBra1a\fP disk partition and XZput /tmp on \fIra1b\fP. XZ\fI/etc/fstab\fP would then contain XZ.DS XZ/dev/ra0a:/:rw:1:1 XZ/dev/ra0b::sw:: XZ/dev/ra0c:/mnt:rw:1:2 XZ/dev/ra1b:/tmp:rw:: XZ/dev/ra1c:/usr:rw:1:2 XZ.DE XZ.PP XZTo make the /mnt filesystem we would do: XZ.DS XZ\fB#\fP cd /dev XZ\fB#\fP ./MAKEDEV ra1 XZ\fB#\fP newfs ra1c ra80 XZ(information about filesystem prints out) XZ(to specify an alternate \fIm\fP value: newfs -m # ra1c ra80) XZ(where # is between 1 and 31) XZ\fB#\fP mkdir /mnt XZ\fB#\fP mount /dev/ra1c /mnt XZ.DE XZ.NH 2 XZConfiguring terminals XZ.PP XZIf UNIX is to support simultaneous XZaccess from directly-connected terminals other than the console, XZthe file \fI/etc/ttys\fP (\fIttys\fP\|(5)) must be edited. XZ.PP XZTerminals connected via DZ11 interfaces are conventionally named \fBttyDD\fP XZwhere DD is a decimal number, the ``minor device'' number. XZThe lines on dz0 are named /dev/tty00, /dev/tty01, ... /dev/tty07. XZBy convention, all other terminal names are of the form \fBtty\fPCX, where XZC is an alphabetic character according to the type of terminal multiplexor XZand its unit number, XZand X is a digit for the first ten lines on the interface XZand an increasing lower-case letter for the rest of the lines. XZC is defined for the number of interfaces of each type listed below. XZSince tty structures are approximately 78 bytes each, it is XZhighly doubtful that more than 3 or 4 terminal interface boards XZwill ever be attached to a PDP-11 (especially in a BA23 cabinet). XZ.DS XZ.TS XZcenter box; XZc c c c XZc c c c XZl c n n. XZInterface Number of lines Number of XZType Characters per board Interfaces XZ_ XZDZ11 see above 8 10 XZDH11 h-o 16 8 XZDHU11 S-Z 16 8 XZpty p-u 16 6 XZ.TE XZ.DE XZ.PP XZTo add a new terminal device, be sure the device is configured into the system XZand that the special files for the device have been made by /dev/MAKEDEV. XZThen, enable the appropriate lines of /etc/ttys by setting the ``status'' XZfield to \fBon\fP (or add new lines). XZNote that lines in \fI/etc/ttys\fP are one-for-one with entries XZin the file of current users (\fI/var/run/utmp\fP), XZand therefore it is best to make changes XZwhile running in single-user mode XZand to add all of the entries for a new device at once. XZ.PP XZThe format of the /etc/ttys file is the same in \*(2B as in \*(Ps and 4.3BSD. XZEach line in the file is broken into four tab separated XZfields (comments are shown by a `#' character and extend to XZthe end of the line). For each terminal line the four fields XZare: XZthe device (without a leading /dev), XZthe program /etc/init should startup to service the line XZ(or \fBnone\fP if the line is to be left alone), XZthe terminal type (found in /etc/termcap), XZand optional status information describing if the terminal is XZenabled or not and if it is ``secure'' (i.e. the super user should XZbe allowed to login on the line). All fields are character strings XZwith entries requiring embedded white space enclosed in double XZquotes. XZThus, a newly added terminal /dev/tty00 could be added as XZ.DS XZtty00 "/usr/libexec/getty std.9600" vt100 on secure # Steve's office XZ.DE XZ.PP XZThe std.9600 parameter provided XZto /usr/libexec/getty is used in searching the file /etc/gettytab; it specifies XZa terminal's characteristics (such as baud rate). XZTo make custom terminal types, consult XZ.IR gettytab (5) XZbefore modifying /etc/gettytab. XZ.PP XZDialup terminals should be wired so that carrier is asserted only when the XZphone line is dialed up. XZFor non-dialup terminals from which modem control XZis not available, you must either wire back the signals so that XZthe carrier appears to always be present, or show in the minor device number XZthat carrier is to be assumed to be present XZby adding 128 decimal to the minor device number when creating the XZdevice node. This differs from 4.3BSD where the softcarrier state is XZspecified at kernel configuration time. XZ.PP XZFor network terminals (i.e. pseudo terminals), no program should XZbe started up on the lines. Thus, the normal entry in /etc/ttys XZwould look like XZ.DS XZttyp0 none network (Note the fourth field is not needed here.) XZ.DE XZ.PP XZWhen the system is running multi-user, all terminals that are listed XZin /etc/ttys as \fBon\fP have their line are enabled. XZIf, during normal operations, it is desired XZto disable a terminal line, you can edit the file XZ/etc/ttys XZto change the terminal's status to \fBoff\fP and XZthen send a hangup signal to the \fIinit\fP process, by doing XZ.DS XZ\fB#\fP kill \-1 1 XZ.DE XZ.PP XZTerminals can similarly be enabled by changing the status field XZfrom \fBoff\fP to \fBon\fP and sending a hangup signal to \fIinit\fP. XZ.PP XZNote that if a special file is inaccessible when \fIinit\fP tries XZto create a process for it, init will log a message to the XZsystem error logging process (/usr/sbin/syslogd) XZand try to reopen the terminal every minute, reprinting the warning XZmessage every 10 minutes. Messages of this sort are normally XZprinted on the console, though other actions may occur depending XZon the configuration information found in /etc/syslog.conf. XZ.PP XZNote that you should change the names of any dialup XZterminals to ttyd? XZwhere ? is in [0-9a-zA-Z], as some programs use this property of the XZnames to determine if a terminal is a dialup. XZShell commands to do this should be put in the /dev/MAKEDEV.local XZscript. XZ.PP XZTo further complicate things, some emulators (such as SIMH) have the ability to XZmap network ports on the host system to emulated terminal multiplexor lines on XZthe PDP-11 system. The benefit of this is that you can allow network logins to XZyour 2.11BSD system without setting up networking under 2.11BSD. The CLASSIC XZ"canned" distribution provides this in its classic.ini file, as well as XZexamples of mapping physical terminal ports on the host system to emulated XZmultiplexor ports on the PDP-11 system. XZ.NH 2 XZAdding and managing users and groups XZ.PP XZNew users can be added to the system by adding a line to the XZpassword file XZ/etc/passwd. XZThe procedure for adding a new user is described in XZ\fIadduser(8)\fR. This is currently a manual procedure. A future Patch Level XZmay provide an \fIadduser\fR command that prompts you for each setting and then XZdoes the work for you. XZ.PP XZUsers are assigned to their primary group by specifying a group number (from XZthe file /etc/group). It is important to realize that certain groups listed in XZthe /etc/group file have special capabilities and should \fBNOT\fR be normally XZassigned to users. Normally you would use the staff or guest group and avoid XZassigning users to any of the other existing groups, as that would grant those XZusers additional permissions which is likely undesirable. XZ.PP XZYou can also add additional groups to the /etc/group file. For example, if you XZhad a number of users working on a ``widgets'' project, you could add a XZwidgets group to the /etc/group file. \fBNOTE:\fR Take care to pick a new, XZunique number for your new group - do not re-use an existing group number. XZ.PP XZIn addition to the primary group for each user, users can be granted XZmembership in additional groups by listing them (separated with commas if there XZis more than one user who should be in the additional group). For example, if XZusers ``fred'' and ``barney'' should have the ability to manage some system XZoperations, but not have full control over the system, you can add them to the XZ"operator" group. For example, to allow ``fred'' and ``barney'' to shut down or XZreboot the system and similar tasks, you would add them to the operator group XZas shown in the following example. Before: XZ.DS XZoperator:*:5: XZ.DE XZ.PP XZAfter: XZ.DS XZoperator:*:5:fred,barney XZ.DE XZ.PP XZYou can edit user entries in the password file using the \fIvipw(8)\fR utility. XZYou can also use the \fIvipw(8)\fR utility to remove a user by removing their XZentry from the password file. \fBNOTE:\fR When removing a user, it is important XZto remove them from the /etc/group file (if they are named there) as well as XZeither archiving or deleting their login directory, as appropriate. XZ.PP XZAs the system administrator, you can change a user's password for them by using XZthe \fIpasswd(1)\fR utility. Individual users can use the same utility, XZalthough normally only the system administrator is allowed to change the XZpasswords of other users. XZ.NH 2 XZSetting up the mail system XZ.PP XZThe mail system consists of the following commands: XZ.DS XZ.TS XZl l. XZ/bin/mail old standard mail program, \fIbinmail\fP\|(1) XZ/usr/ucb/mail UCB mail program, described in \fImail\fP\|(1) XZ/usr/sbin/sendmail mail routing program XZ/usr/spool/mail mail spooling directory XZ/etc/aliases mail forwarding information XZ/usr/bin/newaliases command to rebuild binary forwarding database XZ/usr/ucb/biff mail notification enabler\(dg XZ/usr/libexec/comsat mail notification daemon\(dg XZ.TE XZ.DE XZ.PP XZMail is normally sent and received using the XZ.IR mail (1) XZcommand, which provides a front-end to edit the messages sent XZand received, and passes the messages to XZ.IR sendmail (8) XZfor routing. XZThe routing algorithm uses knowledge of the network name syntax, XZaliasing and forwarding information, and network topology, as XZdefined in the configuration file /etc/sendmail.cf, to XZprocess each piece of mail. XZLocal mail is delivered by giving it to the program /bin/mail XZthat adds it to the mailboxes in the directory /usr/spool/mail/\fIusername\fP, XZusing a locking protocol to avoid problems with simultaneous updates. XZAfter the mail is delivered, the local mail delivery daemon /usr/libexec/comsat XZis notified, which in turn notifies XZusers who have issued a ``\fIbiff\fP y'' command that mail has arrived\(dg. XZ.FS XZ.IP \(dg XZcomsat and biff are only available under systems configured XZfor networking support. XZ.FE XZ.PP XZTo set up the mail facility you should read the instructions in the XZfile READ_ME in the directory /usr/src/usr.lib/sendmail and then adjust XZthe necessary configuration files. XZDocuments describing XZ.IR sendmail 's XZoperation and installation are also included on the distribution tape. XZ.NH 3 XZSetting up a UUCP connection XZ.PP XZThe version of \fIuucp\fP included in \*(2B is an XZenhanced version of the one originally distributed with 32/V\(dd. XZ.FS XZ.IP \(dd XZThe \fIuucp\fP included in this distribution is the result XZof work by many people; we gratefully acknowledge their XZcontributions, but refrain from mentioning names in the XZinterest of keeping this document current. XZ.FE XZThe enhancements include: XZ.DS XZ\(bu Support for many auto call units and dialers in addition to the DEC DN11. XZ\(bu Breakup of the spooling area into multiple subdirectories XZ\(bu Addition of an \fIL.cmds\fP file to control the set of commands that may be executed by a remote site XZ\(bu Enhanced ``expect-send'' sequence capabilities when logging in to a remote site XZ\(bu New commands to be used in polling sites and obtaining snap shots of \fIuucp\fP activity XZ\(bu Additional protocols for different communication media XZ.DE XZ.PP XZThis section gives a brief overview of \fIuucp\fP XZand points out the most important steps in its installation. XZ.PP XZTo connect two UNIX machines with a \fIuucp\fP network link using modems, XZone site must have an automatic call unit XZand the other must have a dialup port. XZIt is better if both sites have both. XZ.PP XZYou should first read the paper in the UNIX System Manager's Manual: XZ``UUCP Implementation Description''. XZIt describes in detail the file formats and conventions, XZand will give you a little context. XZIn addition, XZthe document ``setup.tblms'', XZlocated in the directory /usr/src/usr.bin/uucp/UUAIDS, XZmay be of use in tailoring the software to your needs. XZ.PP XZThe \fIuucp\fP support is located in three major directories: XZ/usr/bin, XZ/etc/uucp, XZand /usr/spool/uucp. XZUser commands are kept in /usr/bin, XZoperational commands in /etc/uucp, XZand /usr/spool/uucp is used as a spooling area. XZThe commands in /usr/bin are: XZ.DS XZ.TS XZl l. XZ/usr/bin/uucp file-copy command XZ/usr/bin/uux remote execution command XZ/usr/bin/uusend binary file transfer using mail XZ/usr/bin/uuencode binary file encoder (for \fIuusend\fP) XZ/usr/bin/uudecode binary file decoder (for \fIuusend\fP) XZ/usr/bin/uulog scans session log files XZ/usr/bin/uusnap gives a snap-shot of \fIuucp\fP activity XZ/usr/bin/uupoll polls remote system until an answer is received XZ/usr/bin/uuname prints a list of known uucp hosts XZ/usr/bin/uuq gives information about the queue XZ.TE XZ.DE XZThe important files and commands in /etc/uucp are: XZ.DS XZ.TS XZl l. XZ/etc/uucp/L-devices list of dialers and hard-wired lines XZ/etc/uucp/L-dialcodes dialcode abbreviations XZ/etc/uucp/L.aliases hostname aliases XZ/etc/uucp/L.cmds commands remote sites may execute XZ/etc/uucp/L.sys systems to communicate with, how to connect, and when XZ/etc/uucp/SEQF sequence numbering control file XZ/etc/uucp/USERFILE remote site pathname access specifications XZ/usr/sbin/uucico \fIuucp\fP protocol daemon XZ/etc/uucp/uuclean cleans up garbage files in spool area XZ/usr/libexec/uuxqt \fIuucp\fP remote execution server XZ.TE XZ.DE XZwhile the spooling area contains the following important files and directories: XZ.DS XZ.TS XZl l. XZ/usr/spool/uucp/C. directory for command, ``C.'' files XZ/usr/spool/uucp/D. directory for data, ``D.'', files XZ/usr/spool/uucp/X. directory for command execution, ``X.'', files XZ/usr/spool/uucp/D.\fImachine\fP directory for local ``D.'' files XZ/usr/spool/uucp/D.\fImachine\fPX directory for local ``X.'' files XZ/usr/spool/uucp/TM. directory for temporary, ``TM.'', files XZ/usr/spool/uucp/LOGFILE log file of \fIuucp\fP activity XZ/usr/spool/uucp/SYSLOG log file of \fIuucp\fP file transfers XZ.TE XZ.DE XZ.PP XZTo install \fIuucp\fP on your system, XZstart by selecting a site name. XZA \fIuucp\fP account must be created in the password file and a password set up. XZThen, XZcreate the appropriate spooling directories with mode 755 XZand owned by user \fIuucp\fP, group \fIdaemon\fP. XZ.PP XZIf you have an auto-call unit, XZthe L.sys, L-dialcodes, and L-devices files should be created. XZThe L.sys file should contain XZthe phone numbers and login sequences XZrequired to establish a connection with a \fIuucp\fP daemon on another machine. XZFor example, my L.sys file looks something like: XZ.sp XZ.DS XZelisa Any ACU 1200 7064297 "" \\\\r\\\\c ogin-EOT-ogin-\\\\r\\\\c-ogin xelisa assword: XXX XZetn-ra Any ACU 1200 8891237 "" \\\\r\\\\c ogin nuucp assword XXX XZanagld Never ACU 2400 8894517 name:-EOT-name: uucp assword: XXX XZ.DE XZ.sp XZThe first field is the name of a site, XZthe second shows when the machine may be called, XZthe third field specifies how the host is connected XZ(through an ACU, a hard-wired line, etc.), XZthen comes the phone number to use in connecting through an auto-call unit, XZand finally a login sequence. XZThe phone number XZmay contain common abbreviations that are defined in the L-dialcodes file. XZThe device specification should refer to devices XZspecified in the L-devices file. XZListing only ACU causes the \fIuucp\fP daemon, \fIuucico\fP, XZto search for any available auto-call unit in L-devices. XZRefer to the README file in the \fIuucp\fP source directory XZfor more information about installation. XZ.PP XZAs \fIuucp\fP operates it creates (and removes) many small XZfiles in the directories underneath /usr/spool/uucp. XZSometimes files are left undeleted; XZthese are most easily purged with the \fIuuclean\fP program. XZThe log files can grow without bound unless trimmed back; XZ\fIuulog\fP maintains these files. XZMany useful aids in maintaining your \fIuucp\fP installation XZare included in a subdirectory UUAIDS beneath /usr/src/usr.bin/uucp. XZPeruse this directory and read the ``setup'' instructions also located there. XSHAR_EOF Xchmod 644 '4.t' Xfi Xif test -f '494-example' Xthen X echo shar: "will not over-write existing file '494-example'" Xelse Xsed 's/^Z//' << \SHAR_EOF > '494-example' XZSubject: DZ driver syntax error, top(1) long usernames bug (#494) XZIndex: src/sys/pdpuba/dz.c, src/ucb/top/top.c XZ XZDescription: XZ 1) patch 493 introduced a syntax error in the DZ11 driver XZ XZ 2) long usernames cause corruption of the displayed info in top(1) XZ XZRepeat-By: XZ 1) build a kernel with the DZ driver configured: XZ XZcc -O -DKERNEL -DKNARF -DUCB_METER -DINET -DUCB_CLIST -I. -I../h -S ../pdpuba/dz.c XZ\&../pdpuba/dz.c:377: Expression syntax XZ\&../pdpuba/dz.c:377: Statement syntax XZ\&../pdpuba/dz.c:379: Expression syntax XZ\&../pdpuba/dz.c:379: Statement syntax XZ XZ 2) Run top(1) on a system with usernames longer than 7 characters. The XZ displayed tables will be corrupted. XZ XZFix: XZ Thanks to frank@wortner.com for spotting the missing ')' characters XZ in dz.c XZ XZ top(1) change forwarded by bqt@softjar.se XZ XZ Cut where indicated and save to a file (/usr/tmp/494.patch). Then: XZ XZcd / XZpatch -p0 < /usr/tmp/494.patch XZ XZcd /usr/src/ucb/top XZmake install XZmake clean XZ XZ If you have a DZ configured in the kernel then you'll now be able to XZ compile the kernel without syntax errors ;) XZ XZ This and previous updates to 2.11BSD are available at the following XZ locations: XZ XZ ftp://ftp.dfupdate.se/pub/pdp11/2.11BSD XZ https://www.tuhs.org/Archive/Distributions/UCB/2.11BSD/Patches/ XZ ftp://ftp.2bsd.com/2.11BSD XZ http://www.2bsd.com/2.11BSD/ XZ XZ---------------------------cut here-------------------- XZ*** ./usr/src/sys/pdpuba/dz.c.old Tue Aug 12 18:39:14 2025 XZ--- ./usr/src/sys/pdpuba/dz.c Wed Aug 13 06:07:16 2025 XZ*************** XZ*** 3,9 **** XZ * All rights reserved. The Berkeley software License Agreement XZ[snip] XSHAR_EOF Xchmod 644 '494-example' Xfi Xif test -f '5.t' Xthen X echo shar: "will not over-write existing file '5.t'" Xelse Xsed 's/^Z//' << \SHAR_EOF > '5.t' XZ.\" Copyright (c) 1980 Regents of the University of California. XZ.\" All rights reserved. The Berkeley software License Agreement XZ.\" specifies the terms and conditions for redistribution. XZ.\" XZ.\" @(#)5.t 3.0 (2.11BSD) 2026/11/09 XZ.\" XZ.ds lq `` XZ.ds rq '' XZ.ds LH "Installing/Operating \*(2B XZ.ds RH Network setup XZ.ds CF \*(DY XZ.LP XZ.nr H1 5 XZ.nr H2 0 XZ.bp XZ.LG XZ.B XZ.ce XZ5. NETWORK SETUP XZ.sp 2 XZ.R XZ.NL XZ.PP XZThe networking in \*(2B runs in supervisor XZmode separate from the main kernel. There is room without overlaying XZto hold both a SL/IP and an Ethernet driver. XZThe networking portion of the kernel resides in ``/netnix'', and is XZloaded after the kernel is running. Since the kernel only looks for the XZfile ``/netnix'', it will panic if it is unable to load ``/netnix''. XZ\fBNOTE\fP: The ``/unix'' and ``/netnix'' imagines must XZhave been created at the same time - do not attempt to use mismatched XZimages or the system will panic. XZ.PP XZ\*(2B provides support for the DARPA standard Internet XZprotocols IP, ICMP, TCP, and UDP. XZNetwork services are split between the XZkernel (communication protocols) and user programs (user XZservices such as TELNET and FTP). This section describes XZhow to configure your system to use the Internet networking support. XZ.PP XZThe ``correct'' use of the networking in \*(2B is almost always with the XZlocal host name and addresses in the \fI/etc/hosts\fP file, your local XZdomain name and a set of nameservers in the \fI/etc/resolv.conf\fP file, XZand a default route to a gateway for all other network traffic. This will be XZexplained in detail below. In particular, do not run \fIrouted(8)\fR or XZ\fInamed(8)\fR unless you're extremely sure that you know what you're doing. XZThis is doubly true if SL/IP is being used as the primary connection to the XZoutside world. XZ.NH 2 XZRequired kernel configuration settings XZ.PP XZTo configure the kernel to include the Internet communication XZprotocols, define the INET option. This automatically defines XZthe NLOOP option. XZInclude the pseudo-device ``pty'' in your machine's configuration XZfile using the NPTY options. XZThe ``pty'' pseudo-device forces the pseudo terminal device driver XZto be configured into the system, see \fIpty\fP\|(4). The NLOOP XZoption forces inclusion of the software loopback interface driver. XZThe loop driver is used in network testing as well as for the XZsystem talking to itself rather than transmitting the data over the wire. XZ.PP XZIf you are planning to use the Internet network facilities on a 10Mb/s\(dg XZ.FS XZ.IP \(dg XZAll DEC PDP-11 Ethernet controllers were 10Mb/s devices. Therefore, we refer XZto any connected Ethernet as 10Mb/s, even when running on an emulator where the XZEthernet speed might be much faster. XZ.FE XZEthernet, the pseudo-device ``ether'' should also be included XZin the configuration using the NETHER option; this forces inclusion of XZthe ARP (Address Resolution Protocol) module used in mapping between 48-bit XZEthernet and 32-bit Internet addresses. XZ.PP XZBefore configuring the appropriate networking hardware, you should XZconsult the manual pages in Section 4 of the Programmer's Manual. XZThe following table lists the devices for which software support exists. XZ.DS XZ.TS XZl l. XZDevice name Manufacturer and product XZ_ XZde DEC DEUNA/DELUA 10Mb/s Ethernet XZqe DEC DEQNA 10Mb/s Ethernet XZqt DEC DELQA-YM (DELQA-T, DELQA-Plus) 10Mb/s Ethernet XZsl Serial line IP (SL/IP) XZec 3Com 10Mb/s Ethernet\(dd XZil Interlan 1010 and 10101A 10Mb/s Ethernet interfaces\(dd XZvv Proteon ProNET - Token Ring Interface\(dd XZacc LH/DH-11 1822 IMP/PSN Interface\(dd XZ.TE XZ.DE XZ.FS XZ.IP \(dd XZThese devices were known to work in 2.11BSD at one time but have not been XZtested (due to lack of suitable hardware) in many years and may not work. XZ.FE XZ.PP XZSL/IP is also available. It is surprisingly efficient. Over a 9600 baud XZline it is not unusual to see \fBftp\fP rates in the 800 bytes per second XZrange. XZ.PP XZ\fBNOTE:\fR Configuring, building and installing a kernel is described in XZAppendix A. XZ.PP XZ\fBNOTE:\fR All of the following information and examples are based on the new XZ\fI/etc/rc.conf\fR configuration method. If you have upgraded from a system XZprior to PL500, your existing network configuration will be preserved and you XZcan skip the following sections. However, while both old-style and new-style XZnetwork startup scripts are supported on PL500, future patch levels will XZlikely only provide changes to the new-style startup scripts. XZ.NH 2 XZBasic network configuration XZ.PP XZBasic network configuration involves setting up enough of the networking that XZyou can connect to the system via \fItelnet\fR and complete the rest of the XZconfiguration tasks from a terminal (real or emulated). This dates back to the XZera when PDP-11 systems often had printing terminals as consoles, which made XZediting files a bit of a chore. If you are running 2.11BSD on a PDP-11 with a XZvideo terminal or emulator, you can continue with the advanced configuration XZsteps via the console if you prefer. XZ.NH 3 XZEnabling networking and basic TCP/IP configuration in rc.conf XZ.PP XZEdit the file \fI/etc/rc.conf\fR and make the following changes: XZ.DS XZ.TS XZlw(0.5i) l. XZrc_configured= - Change from NO to YES XZhostname= - Change to your desired host/domain name (like mypdp.example.com) XZaddress= - Change to the IP address for this system XZnetmask= - Change to the network mask for your network XZgateway= - Change to the default gateway for your network XZinterface= - Change to the name of your network device (refer to the table in Section 5.1) XZ.TE XZ.DE XZ.PP XZIn years past, you would have received the necessary information from your XZnetwork manager. Today, \fIyou\fR are probably your network manager. You can XZlikely determine your domain name, netmask and gateway by looking for this XZinformation on either your router or on other computers on your network. The XZexact procedure depends on the software those devices are running, and all of XZthe possibilities are too extensive to list here. XZ.PP XZYour IP address must be unique on your network, or both your 2.11BSD system XZand the other system assigned the same IP address will have trouble XZcommunicating on the network. On modern systems, the DHCP protocol is normally XZused to automatically assign IP addresses as well as other settings. 2.11BSD XZpre-dates DHCP and requires these settings to be configured manually\(dg. XZ.PP XZThe comments in the \fI/etc/rc.conf\fR file provide some guidance. XZ.NH 3 XZEditing the /etc/hosts file XZ.PP XZEdit the file \fI/etc/hosts\fR and replace the line following "# Define your XZhost's IP address and name (both with and without domain name)" so that it has XZyour IP address (it must match the definition in \fI/etc/rc.conf\fR), a tab, XZthe full hostname with domain, a space character, and the hostname without XZthe domain. The sample line in the file should make this clear. XZ.PP XZNext, edit the line following "# Edit the following line *ONLY* to change the XZdomain name" to match the domain name (without the host name) you selected in XZ\fI/etc/rc.conf\fR above. XZ.FS XZ.IP \(dg XZIt is unlikely that you will have your own domain name or public IP address XZblock allocation. In that case, you will want to use the domain name and an XZunused IP address in the same block that the other systems on your network are XZusing. Note that many mail servers on the Internet will refuse to accept email XZfrom a host/domain name that doesn't exist (example.com is specifically XZreserved for use in sample configurations such as this). That's just the way XZit is in the modern world. XZ.FE XZ.NH 3 XZEditing the /etc/resolv.conf file XZ.PP XZEdit the \fI/etc/resolv.conf\fR file to specify your domain name on the line XZthat begins with "domain". Again, this is just the domain name (such as XZexample.com), not the complete hostname (such as mypdp.example.com). XZ.PP XZThe name servers listed on each line that begins with "nameserver" are XZgenerally sufficient - they are public name servers. If you are operating your XZown name server(s), you may want to change these lines to match your name XZserver(s). XZ.NH 2 XZAdvanced network configuration in /etc/rc.conf XZ.PP XZThere are quite a few optional network services which are enabled or disabled XZvia settings in \fI/etc/rc.conf\fR. Some of those services also have their own XZconfiguration files, which will also be discussed in the appropriate section XZbelow. The sections below are in the order they appear in the XZ\fI/etc/rc.conf\fR file. XZ.NH 3 XZThe rwhod service XZ.PP XZThe rwhod service (when set to YES) enables both the broadcasting of status XZ(host name, uptime, load average, and logged-in users) to other hosts on the XZlocal network as well as receiving the same data from other hosts on the local XZnetwork. When rwhod is enabled, the \fIrwho(1)\fR and \fIruptime(1)\fR XZcommands will display this information. If rwhod is not enabled, these commands XZwill not report any information. \fBNOTE:\fR Whether or not to run the rwhod XZservice can be a matter of some debate, as it broadcasts information across the XZlocal network. If none of your other systems have rwhod enabled, there is no XZpoint in enabling it on 2.11BSD. Otherwise, enabling it will allow you to see XZthe status of those hosts and those hosts will be able to see the status of XZyour 2.11BSD system. XZ.NH 3 XZThe named service XZ.PP XZThe named service (when set to YES) causes the BIND name server to run. You XZalmost definitely do not want to do this as BIND consumes a good amount of XZsystem resources, while there are public name servers (which you configured in XZSection 5.2.3) which you can use. Therefore, configuring BIND is beyond the XZscope of this document. XZ.NH 3 XZThe sendmail service XZ.PP XZsendmail is the utility that processes email. It is normally already enabled, XZbut some additional configuration steps are required. sendmail configuration is XZso arcane that many books have been written about it. However, the necessary XZconfiguration changes for 2.11BSD are relatively simple. XZ.PP XZFirst, edit the \fI/etc/sendmail.cf\fR file and if necessary, change the line XZthat reads "DDEXAMPLE.COM" to use your local domain (if not using example.com). XZAs an example \fBonly\fR, if your domain was FOO.COM\(dg you would change the XZline to read "DDFOO.COM" ("DD" means "Define Domain"). XZ.FS XZ.IP \(dg XZPlease don't use FOO.COM - that is only being used as an example. Use whatever XZyour local domain is, or leave it set to EXAMPLE.COM if you don't have a local XZdomain. XZ.FE XZ.PP XZNext, also in \fI/etc/sendmail.cf\fR, edit the line that reads XZ"DARELAY.EXAMPLE.COM" and change it to the name of a host that will accept XZSMTP email from your 2.11BSD system. Similar to the above section, if your SMTP XZserver was called SMTP.FOO.COM\(dg, you would change this line to read XZ"DASMTP.FOO.COM" ("DA" means "Define ARPANET relay"). XZ.PP XZFinally, you must add a host definition for your SMTP server in the file XZ\fI/etc/hosts\fR in the line following "# Define your SMTP gateway/relay system XZ(used in sendmail.cf)". Like the host IP address and name you set in Section XZ5.2.2, this will be an IP address, a tab, the full host name you used in "DA" XZabove, a space, and then just the host name (without the domain name part). XZ.NH 3 XZThe NTP (Network Time Protocol) service XZ.PP XZNTP is a distributed time service available on the Internet. It provides a XZrelatively high-precision time reference based on GMT.\(dd XZ.FS XZ.IP \(dd XZYou will also need to have correctly set your system's local time zone, as XZdescribed in Section 4.1.2, "Setting the correct time zone". XZ.FE XZ.PP XZEnabling this involves setting both the ntpd and ntp lines to YES. You will XZalso need to edit the \fI/etc/ntp.conf\fR file to define several network time XZservers. First, remove the entire "peer 127.0.0.1" line and replace it XZwith: XZ.DS XZserver 0.pool.ntp.org\(dg XZserver 1.pool.ntp.org XZserver 2.pool.ntp.org XZserver 3.pool.ntp.org XZ.DE XZ.FS XZ.IP \(dg XZThe distributed NTP service relies on all systems "playing by the rules". XZFirst, you should only use "server" lines in the \fI/etc/ntp.conf\fR file, not XZ"peer" (server means you are only asking for the time, while peer means that XZyou are willing to ask for or supply the time). Second, you should only use NTP XZservers that have offered to provide public time service to any system. The XZpool.ntp.org servers are a rotating set of public time servers intended for XZclients like 2.11BSD. XZ.FE XZ.NH 3 XZThe timed service XZ.PP XZ\fItimed\fR is an older method of synchronizing time across multiple systems. XZIt should normally be left disabled unless you have older systems also running XZtimed. XZ.PP XZ.NH 3 XZThe routed service XZ.PP XZ\fIrouted\fR is an older method of discovering and reporting network routes. XZThe routedflags should be set to NO, as modern configurations separate routers XZfrom host systems, and 2.11BSD uses the default gateway configured in Section XZ5.2.1. XZ.NH 2 XZConfiguring network access XZ.PP XZThe previous steps set up basic TCP/IP connectivity and optionally configured XZadditional services. There are a few more steps you will need to take to allow XZusers to access your 2.11BSD system. XZ.NH 3 XZCreating the pseudo terminals XZ.PP XZWhen you configured your kernel (or if you're using one of the "canned" disk XZimages) the number of pseudo terminals was specified in the NPTY section of the XZkernel configuration. If they don't already exist, you will need to create the XZdevice nodes for the pseudo terminals. These device nodes are created in sets XZof 16 at a time. Each pseudo terminal really consists of two files in /dev: a XZmaster and a slave. The master pseudo terminal file is named /dev/ptyp?, while XZthe slave side is /dev/ttyp?. Pseudo terminals are also used by several XZprograms not related to the network. To create 16 pseudo terminals (normally XZplenty) execute the following commands: XZ.DS XZ\fB#\fP cd /dev XZ\fB#\fP MAKEDEV pty0\(dd XZ.DE XZ.FS XZ.IP \(dd XZIf these device nodes already exist, you will receive a bunch of "File exists" XZerror messages. They are harmless and just indicate that your system already XZhas had the pseudo terminals created. XZ.FE XZ.PP XZMore pseudo terminals may be made in groups of 16 by specifying \fIpty1\fP, XZ\fIpty2\fP, \fIpty3\fP, etc. XZ.NH 3 XZEditing /etc/ttys XZ.PP XZNow that you have created the pseudo terminals, you may need to let the XZsystem know to allow logins on them. To do this, edit the \fI/etc/ttys\fR file XZIn addition to creating the pseudo terminals. The file should already contain XZdefinitions for the first 16 pseudo terminals, such as the following example: XZ.DS XZttyp0 none network secure\(sc XZ.DE XZ.PP XZIf you created additional pseudo terminals as shown in the previous section, XZyou should add them to the end of the \fI/etc/ttys\fR file. XZ.FS XZ.IP \(sc XZ"secure" means that root is allowed to log in directly on that terminal. You XZprobably do not want to allow this as it can be a major security hole. Instead, XZusers should log in with their regular username and then use the \fIsu(1)\fR XZcommand to obtain root access (if they are in group ``wheel''). Removing XZ"secure" from any ttyp? lines where it appears is strongly recommended. XZ.FE XZ.NH 3 XZEditing /etc/hosts.allow XZ.PP XZThe \fI/etc/hosts.allow\fR file controls which systems can access various XZnetwork services. As distributed, it looks like this: XZ.DS XZftpd: .example.com LOCAL XZrlogind: .example.com LOCAL XZrshd: .example.com LOCAL XZtftpd: .example.com LOCAL XZpopper: .example.com LOCAL XZtelnetd: .example.com LOCAL XZ.DE XZ.PP XZTo control incoming telnet sessions, you would edit the ``telnetd'' line. The XZformat of each line is described in the \fIhosts_access(5)\fR man page, XZaccessed as follows: XZ.DS XZman 5 hosts_access XZ.DE XZ.PP XZThe format and various options are described in detail in that man page and XZwill not be repeated here. Briefly, you would replace the ``.example.com'' XZline with your local domain is (refer to Section 5.2 for additional XZinformation). XZ.NH 2 XZNetwork servers XZ.PP XZIn \*(2B most of the server programs are started up by a XZ``super server'', the Internet daemon. The Internet XZdaemon, \fIinetd\fP, acts as a master server for XZprograms specified in its configuration file, \fI/etc/inetd.conf\fP, XZlistening for service requests for these servers, and starting XZup the appropriate program whenever a request is received. XZThe configuration file contains lines containing a service XZname (as found in \fI/etc/services\fP), the type of socket the XZserver expects (e.g. stream or dgram), the protocol to be XZused with the socket (as found in \fI/etc/protocols\fP), whether XZto wait for each server to complete before starting up another, XZthe user name as which the server should run, the server XZprogram's name, and at most five arguments to pass to the XZserver program. XZSome trivial services are implemented internally in \fIinetd\fP, XZand their servers are listed as ``internal.'' XZFor example, an entry for the file XZtransfer protocol server would appear as XZ.DS XZftp stream tcp nowait root /usr/libexec/ftpd ftpd -l XZ.DE XZ.PP XZor if you are using the \fItcp_wrapper\fP\(dg program as XZ.DS XZftp stream tcp nowait root /usr/libexec/tcpd ftpd -l XZ.DE XZ.FS XZ.IP \(dg XZThe \fItcp_wrapper\fP program is what consults the \fI/etc/hosts.allow\fR XZfile, discussed above. Not all services can use \fItcp_wrapper\fP, either XZdue to being an internal service or various other conditions. XZ.FE XZ.PP XZConsult XZ.IR inetd (8) XZfor more detail on the format of the configuration file XZand the operation of the Internet daemon. XZ.NH 2 XZNetwork data bases XZ.PP XZSeveral data files are used by the network library routines XZand server programs. Most of these files are host independent XZand updated only rarely. XZ.DS XZ.TS XZl l l. XZFile Manual reference Use XZ_ XZ/etc/hosts \fIhosts\fP\|(5) host IP addresses, names and aliases XZ/etc/networks \fInetworks\fP\|(5) network names XZ/etc/services \fIservices\fP\|(5) list of known services XZ/etc/protocols \fIprotocols\fP\|(5) protocol names XZ/etc/hosts.allow \fIhosts_access\fP\|(5) sites who can connect to services XZ/etc/hosts.deny \fIhosts_access\fP\|(5) sites blocked from services XZ(Continued on next page) XZ.TE XZ.DE XZ.\" This is to force a page break in the middle of a table XZ.bp XZ.DS XZ.TS XZl l l. XZ/etc/hosts.equiv \fIrshd\fP\|(8) list of ``trusted'' hosts XZ/etc/rc.local \fIrc\fP\|(8) command script for starting local servers XZ/etc/ftpusers \fIftpd\fP\|(8) list of ``unwelcome'' ftp users XZ/etc/hosts.lpd \fIlpd\fP\|(8) list of hosts allowed to access printers XZ/etc/inetd.conf \fIinetd\fP\|(8) list of servers started by \fIinetd\fP XZ.TE XZ.DE XZ.NH 3 XZUse of /etc/hosts XZ.PP XZWhen using the host address routines that use Internet name servers, XZthe file \fI/etc/hosts\fP is only used for setting interface addresses XZand at other times when the network is not yet started, XZand therefore it need only contain addresses for local hosts. XZ.PP XZIf you are connected to the Internet, it is highly recommended that XZyou use the default name server resolver routines for host name and XZaddress lookups, as this provides lookup service for all hosts and addresses XZon the Internet. If your system is not connected to the Internet, you can use XZthe \fI/etc/hosts\fR file to list the names and addresses of hosts on your XZlocal network. XZ.NH 3 XZ/etc/hosts.equiv XZ.PP XZThe remote login and shell servers use an XZauthentication scheme based on trusted hosts. The \fIhosts.equiv\fP XZfile contains a list of hosts that are considered trusted XZand, under a single administrative control. When a user XZcontacts a remote login or shell server requesting service, XZthe client process passes the user's name and the official XZname of the host on which the client is located. In the simple XZcase, if the host's name is located in \fIhosts.equiv\fP and XZthe user has an account on the server's machine, then service XZis rendered (i.e. the user is allowed to log in, or the command XZis executed). Users may expand this ``equivalence'' of XZmachines by installing a \fI.rhosts\fP file in their login directory. XZThe root login is handled specially, bypassing the \fIhosts.equiv\fP XZfile, and using only the \fI/.rhosts\fP file. XZ.PP XZThus, to create a class of equivalent machines, the \fIhosts.equiv\fP XZfile should contain the \fIofficial\fP names for those machines. XZ.NH 3 XZ/etc/rc.local XZ.PP XZMost network servers are automatically started up at boot time XZby the network startup scripts or by the Internet daemon (see above). XZThese include the following: XZ.DS XZ.TS XZl l l. XZProgram Server Started by XZ_ XZrshd shell server inetd XZrexecd exec server inetd XZrlogind login server inetd XZtelnetd TELNET server inetd XZftpd FTP server inetd XZfingerd Finger server inetd XZtftpd TFTP server inetd XZrwhod system status daemon /etc/rc.conf XZsyslogd error logging server /etc/rc.conf XZsendmail SMTP server /etc/rc.conf XZntp network time protocol (NTP) /etc/rc.conf XZnamed local name server (DNS) /etc/rc.conf\(dg XZrouted routing table management daemon /etc/rc.conf\(dg XZtimed time distribution service /etc/rc.conf\(dg XZ.TE XZ.DE XZ.FS XZ.IP \(dg XZThese services should normally \fBnot\fR be enabled. XZ.FE XZ.PP XZConsult the manual pages and accompanying documentation (particularly XZfor sendmail) for details about their operation. XZ.PP XZTo have other network servers started up as well, XZthe appropriate line should be added XZto either the Internet daemon's configuration file \fI/etc/inetd.conf\fP\(dg, XZor commands similar to the following should be placed in the site dependent XZfile \fI/etc/rc.local\fP\(dg. XZ.FS XZ.IP \(dg XZThe choice of \fI/etc/inetd.conf\fP or \fI/etc/rc.local\fP depends on whether XZyour network server should be activated "on demand" (use \fI/etc/inetd.conf\fP) XZor "always on" (use \fI/etc/rc.local\fP). XZ.FE XZ.DS XZif [ -f /usr/local/bin/myserver ]; then XZ /usr/local/bin/myserver & echo -n ' myserver' >/dev/console XZf\&i XZ.DE XZ.NH 3 XZ/etc/ftpusers XZ.PP XZThe FTP server included in the system provides support for an XZanonymous FTP account. XZ.PP XZAn anonymous account is enabled by creating a user \fIftp\fP. XZWhen a client uses the anonymous account a \fIchroot\fP\|(2) XZsystem call is performed by the server to restrict the client XZfrom moving outside that part of the filesystem where the XZuser ftp home directory is located. Because a \fIchroot\fP call XZis used, certain programs and files used by the server XZprocess must be placed in the ftp home directory. XZFurther, one must be XZsure that all directories and executable images are unwritable. XZThe following directory setup is recommended. XZ.DS XZ\fB#\fP cd ~ftp XZ\fB#\fP chmod 555 .; chown ftp .; chgrp ftp . XZ\fB#\fP mkdir bin etc pub XZ\fB#\fP chown root bin etc XZ\fB#\fP chmod 555 bin etc XZ\fB#\fP chown ftp pub XZ\fB#\fP chmod 777 pub XZ\fB#\fP cd bin XZ\fB#\fP cp /bin/sh /bin/ls . XZ\fB#\fP chmod 111 sh ls XZ\fB#\fP cd ../etc XZ\fB#\fP cp /etc/passwd /etc/group . XZ\fB#\fP chmod 444 passwd group XZ.DE XZWhen local users wish to place files in the anonymous XZarea, they must be placed in a subdirectory. In the XZsetup here, the directory \fI~ftp/pub\fP is used. XZ.PP XZNOTE: Mode 777 on the 'pub' directory can and has been abused! Changing the XZmode to 555 is a good choice but would require administrative assistance for XZplacing files in the 'pub' directory. Probably not a bad idea though. XZ.PP XZAnother issue to consider is the copy of \fI/etc/passwd\fP XZplaced here. It may be copied by users who use the XZanonymous account. They may then try to break the XZpasswords of users on your machine for further access. XZA good choice of users to include in this copy might XZbe root, daemon, uucp, and the ftp user. XZ.PP XZAside from the problems of directory modes and such, XZthe ftp server may provide a loophole for interlopers XZif certain user accounts are allowed. XZThe file \fI/etc/ftpusers\fP is checked on each connection. XZIf the requested user name is located in the file, the XZrequest for service is denied. This file normally has XZthe following names on our systems. XZ.DS XZuucp XZroot XZ.DE XZAccounts with nonstandard shells should be listed in XZthis file. Accounts without passwords XZneed not be listed in this file, the ftp server will XZnot service these users. XZ.NH 2 XZImportant additional words about security XZ.PP XZ2.11BSD dates from an era when the Internet was a much smaller network, and XZmany users knew "the management" of other Internet sites. As such, it was XZpossible to just call or email someone at another site if people from that site XZwere trying to break into or otherwise damage your system. In the intervening XZ35+ years, the Internet has become much larger, both in terms of the number of XZusers and geographic reach. We also have cases where complaints to the XZmanagement of another site are routinely ignored. Compounding things, recent XZ"tests" of AI agents have sometimes gone rogue and started probing other XZInternet sites for security vulnerabilities. XZ.NH 3 XZDO NOT put a 2.11BSD system directly on the public Internet XZ.PP XZIt is \fBstrongly\fR discouraged to have a 2.11BSD system directly XZaccessible from the public Internet. Many users will be running 2.11BSD behind XZa router that does NAT translations, which will prevent many forms of external XZattacks. Or a separate firewall can be used, depending on your network XZconfiguration. Either NAT or a firewall will generally let your 2.11BSD system XZcontact the outside Internet, while preventing access from outside. XZ.PP XZThere has been 35+ years of security research and bug fixes to the *BSD code XZsince 2.11BSD was first released. While many security fixes have been XZincorporated into 2.11BSD, there is no representation that it is completely XZsecure. XZ.NH 3 XZPlaintext passwords XZ.PP XZWhile 2.11BSD incorporates the password hashing algorithms from 4BSD (meaning XZthat the password file does not have plaintext passwords), limitations of the XZPDP-11 CPU speed\(dg limit the complexity of the hashing. 2.11BSD has neither XZmd5 or sha1 hashing. For similar reasons, this means that 2.11BSD does not XZsupport the SSH (Secure Shell) protocol. Only telnet, rlogin, etc. are XZavailable. This means that anyone who logs into a 2.11BSD system from the XZ"outside world" is doing so by sending a plaintext password over the Internet XZfrom their system to yours, and Bad Guys can intercept that communication and XZrecover your username and password. XZ.FS XZ.IP \(dg XZAs an example, it is possible to emulate a fully-loaded PDP-11/70 system which XZoriginally cost nearly $100,000 (in 1980s dollars!) with a Raspberry Pi Model XZ3B+ or newer, and have the emulation run faster than the original PDP-11/70. XZ.FE XZ.NH 3 XZThe secure keyword in /etc/ttys XZ.PP XZWhen a line in \fI/etc/ttys\fR has the keyword ``secure'', it means that people XZwho know the root password can simply log in as root. This should be disabled XZwhere it is not needed. For maximum security, only the system console should XZpermit direct root logins via the ``secure'' keyword and it should be removed XZfrom all other lines. Users can log in with their regular username and then use XZthe \fIsu\fR command (assuming they are in group ``wheel'') and provide the XZroot password. Usage of \fIsu\fR should be limited to cases where it is XZabsolutely necessary (normally, for system management tasks). Referring to the XZprevious section, you can see that when using \fIsu\fR over the Internet will XZsend the root password in plaintext over the network. XZ.NH 3 XZUsing a VPN XZ.PP XZIf appropriate, you can set up a VPN (Virtual Private Network) on your router XZor firewall. This will allow you to establish a secure connection from the XZInternet to your 2.11BSD system. The VPN will encrypt all data starting at the XZfar end, and will only decrypt it once the data arrives at your router or XZfirewall. XZ.PP XZThere are many different VPN packages available. Consult your router or XZfirewall documentation to find out how to configure that device, as well as XZfinding out what VPN client software works with the device. Depending on the XZVPN software in use, configuring your router or firewall for a VPN may provide XZyou with a file to use on the VPN client. The file will contain all of the XZnecessary information for the VPN client to connect to the VPN server. XSHAR_EOF Xchmod 644 '5.t' Xfi Xif test -f '6.t' Xthen X echo shar: "will not over-write existing file '6.t'" Xelse Xsed 's/^Z//' << \SHAR_EOF > '6.t' XZ.\" Copyright (c) 1980 Regents of the University of California. XZ.\" All rights reserved. The Berkeley software License Agreement XZ.\" specifies the terms and conditions for redistribution. XZ.\" XZ.\" @(#)6.t 3.0 (2.11BSD) 2026/11/09 XZ.\" XZ.de IR XZ\fI\\$1\fP\|\\$2 XZ.. XZ.ds LH "Installing/Operating \*(2B XZ.nr H1 6 XZ.nr H2 0 XZ.ds RH "System Operation XZ.ds CF \*(DY XZ.bp XZ.LG XZ.B XZ.ce XZ6. SYSTEM OPERATION XZ.sp 2 XZ.R XZ.NL XZ.PP XZThis chapter describes procedures used to operate a system running 2.11BSD. XZProcedures described here are used periodically, to reboot the system, XZanalyze error messages from devices, do disk backups, monitor XZsystem performance, recompile system software and control local changes. XZ.NH 2 XZBootstrap and shutdown procedures XZ.PP XZIn a normal reboot, the system checks the disks and comes up multi-user XZwithout intervention at the console. XZSuch a reboot XZcan be stopped (after it prints the date) with a ^C (interrupt). XZThis will leave the system in single-user mode, with only the console XZterminal active. XZIt is also possible to allow the filesystem checks to complete XZand then to return to single-user mode by signaling \fIfsck\fP XZwith a QUIT signal (^\\). XZ.PP XZWhen cold booting via the system console is needed, you will need to determine XZthe correct command(s) or other procedures appropriate to your CPU model or XZemulator type. This information (along with a list of disk type to device name XZmappings) is generally found in the documentation for your CPU model or XZemulator. XZ.PP XZOnce you have succeeded in cold booting your system to the bootstrap prompt XZ(:), pressing the carriage return key will cause the default kernel image XZ(either as distributed or as compiled as described in Appendix A) to be booted. XZ.PP XZDepending on the configuration options as described in Section 7.2, XZ"Configuring automatic boot and restart" the system will either come up in XZsingle-user mode or automatically attempt to enter multi-user mode. XZ.PP XZTo bring the system up to multi-user operation from single-user mode, XZall you have to do is press Control-D (^D) on the console terminal. The system XZwill then execute /etc/rc, XZa multi-user restart script (and /etc/rc.local), XZand come up on the terminals listed as XZactive in the file /etc/ttys. XZSee XZ\fIinit\fP\|(8) XZand XZ\fIttys\fP\|(5). XZ.PP XZ\fBIMPORTANT:\fR If you have the system configured to come up in single-user XZmode and have any reason to suspect the system was not cleanly shut down (power XZfailure, system crash, etc.), you should run ``fsck'' to check the integrity of XZyour filesystem(s). A system configured to boot directly to multi-user mode XZwill try to detect an unclean shutdown and run ``fsck'' for you. This may XZinvolve one or more automatic reboots. It is possible for ``fsck'' to "give up" XZand request manual intervention if it cannot automatically repair any detected XZfilesystem inconsistencies. XZ.PP XZTo take the system down to a single user state you can use XZ.DS XZ\fB#\fP kill 1 XZ.DE XZ.PP XZor use the XZ\fIshutdown\fP\|(8) XZcommand (which is much more polite, if there are other users logged in.) XZwhen you are up multi-user. XZEither command will kill all processes and give you a shell on the console, XZas if you had just booted. Filesystems remain mounted after the XZsystem is taken single-user. If you wish to come up multi-user again, you XZshould do this by: XZ.DS XZ\fB#\fP cd / XZ\fB#\fP umount -a XZ\fB#\fP ^D XZ.DE XZ.PP XZEach system shutdown, crash, processor halt and reboot XZis recorded in the file /usr/adm/shutdownlog XZwith the cause. XZ.NH 2 XZDevice errors and diagnostics XZ.PP XZWhen serious errors occur on peripherals or in the system, the system XZprints a warning diagnostic on the console. XZThese messages are written to the kernel logger where they are retrieved XZby \fIsyslogd\fP\|(8) via \fI/dev/klog\fP - \fIdmesg\fP\|(8) is now XZobsolete. \fIdmesg\fP\|(8) is present in the distribution but no longer XZused. The message buffer is now 4kb in size and external to the kernel. XZ.PP XZError messages printed by the devices in the system are described with the XZdrivers for the devices in Section 4 of the Programmer's Manual. XZSome drivers have been modified to use the kernel logger; others still XZsimply do printf statements. XZIf errors occur suggesting hardware problems, you should contact XZyour hardware support group or field service. It is a good idea to XZexamine the error log files regularly XZ(e.g. with ``tail \-r \fI/usr/adm/messages\fP''). XZ.NH 2 XZFilesystem checks, backups and disaster recovery XZ.PP XZPeriodically (say every week or so in the absence of any problems) XZand always (usually automatically) after a crash, XZall the filesystems should be checked for consistency by XZ\fIfsck\fP\|(8). XZThe procedures of XZ\fIreboot\fP\|(8) XZshould be used to get the system to a state where a filesystem XZcheck can be performed manually or automatically. XZ.PP XZDumping of the filesystems should be done on a regular schedule, XZsince once the system is going it is easy to XZbecome complacent. XZComplete and incremental dumps are easily done with XZ\fIdump\fP\|(8). XZ.PP XZDumping of files by name is best done by XZ\fItar\fP\|(1) XZbut the amount of data that can be moved in this way is limited XZto a single tape. Finally, if there are enough drives entire XZdisks can be copied with XZ\fIdd\fP\|(1) XZusing the raw special files and an appropriate XZblocking factor; the number of sectors per track is usually XZa good value to use, consult \fI/etc/disktab\fP. XZ.PP XZA full backup of the system\(dg in ``bootable'' format, XZ.FS XZ.IP \(dg XZThis excludes any filesystems and directory trees not on a normal distribution XZtape. If you have configured any additional filesystems or created new XZdirectories under / or /usr, you should back those up as well, since they will XZnot be on the bootable recovery tape. XZ.FE XZincluding the standalone programs mentioned in Chapter 2, "Installation XZprocedure" (boot, disklabel, mkfs, restor and icheck) plus system XZbinaries and sources is made by changing directories to /sys/pdpstand, XZediting the Makefile line with "DISK= xp0a" and changing the "xp0a" part XZto your root partition name\(dd, making sure a writable physical or emulated XZtape is attached, and then doing: XZ.DS XZ.TS XZlw(1.5i) l. XZ\fB#\fP make dump (creates a dump of the root filesystem) XZ\fB#\fP make tmscptape (creates the recovery tape\(dd) XZ\fB#\fP make clean (optional, removes the standalone binaries just built) XZ\fB#\fP rm /usr/root.dump (optional, removes the root filesystem dump) XZ.TE XZ.DE XZ.FS XZ.IP \(dd XZThis procedure uses the same utility that created the original installation XZtape. Some harmless warning messages will be displayed during the procedure. A XZfuture Patch Level will likely remove the need for editing the Makefile, XZeliminate the warning messages, and so on. XZ.FE XZ.PP XZIf the root and/or /usr filesystems are damaged by a hardware or software XZfailure you can rebuild a workable disk by doing a restore in the same way XZthat the initial installation was performed, as described in Chapter 2, XZ"Installation procedure". The advantage of having a recovery tape (and updating XZit as needed) is that an install from your recovery tape will contain your XZcustomizations (patches, custom kernel, added users, etc.) XZ.PP XZExhaustion of user filesystem space is certain to occur on an active system XZwith multiple users every now and then and can be managed with a combination XZof disk quotas (the 4.3BSD disk quota system is available as a kernel XZconfiguration option), threatening messages of the day, and personal letters. XZ.PP XZIf you are running 2.11BSD under an emulator, another possibility is to create XZa new, large disk drive and attach it. You can then move some or all users to XZthe new drive using the \fItar(8)\fR command as described in the next section. XZIn this case, \fItar(8)\fR is preferred over \fIdump(8)\fR as you can select XZparticular directories or files, while \fIdump(8)\fR is limited to entire XZfilesystems. XZ.NH 2 XZMoving filesystem data XZ.PP XZIf you have a tape drive (real or emulated), one way to move a filesystem is XZto dump it to tape using XZ\fIdump\fP\|(8), XZuse XZ\fInewfs\fP\|(8) XZto create the new filesystem, and restore the tape using \fIrestor\fP\|(8). XZIf you don't want to or can't use tape, \fIdump\fP accepts an argument telling XZwhere to put the dump. The argument may be a filename or the special XZname ''-'' meaning standard output. A filesystem can be migrated using a XZpipeline. For example, to migrate the root filesystem (/), where rXXXa is XZthe name of the destination: XZ.DS XZ\fB#\fP newfs /dev/r\fIXXX\fRa XZ\fB#\fP dump 0f - / | restor rf - /dev/r\fIXXX\fRa XZ.DE XZ.PP XZThe \fIrestor\fP program accesses the raw device, restoring inodes with their XZoriginal inode number as recorded by dump, while disk blocks are allocated XZfrom the freelist of the destination filesystem. Defragmenting a filesystem is XZperformed using the \fIdump\fP and \fIrestor\fP programs. Unless you have a XZspare disk partition to restore to, you will need to use those commands XZindividually, either with tape or to a work file on a filesystem that is XZ\fBNOT\fR otherwise used by either command. XZ.PP XZIf the destination filesystem has fewer inodes than needed to restore the dump, XZyou will need to reinitialize the destination filesystem, using the \fI-i\fR XZargument to \fInewfs(8)\fR to increase the number of inodes on the destination XZfilesystem. \fBNOTE:\fR lowering the value of \fI-i\fR produces more inodes, XZnot less, as the argument following \fI-i\fR specifies the number of bytes per XZinode, not the number of inodes directly. Care must therefore be taken when XZrestoring a dump into a filesystem smaller than the original filesystem. XZ.PP XZFilesystems may also be moved by piping the output of a \fItar\fP\|(1) XZto another \fItar\fP: XZ.DS XZ\fB#\fP tar -cf - / | cd /dev/r\fIXXX\fRa; tar -xpf - XZ.DE XZ.PP XZThe main difference between the two commands is that the restore command (when XZused with the r argument) should only be used on a newly-initialized (empty) XZfilesystem, while using tar to extract files can extract them into a XZfilesystem with existing data. When using tar, you should make sure you are not XZunintentionally overwriting or commingling existing data when restoring from a XZtar file. XZ.PP XZ\fBNOTE:\fR If you plan on moving filesystem data between a 2.11BSD system and XZanother Unix-like operating system, you should use tar as it is more compatible XZacross different operating systems. XZ.NH 2 XZRecompiling and reinstalling system software XZ.PP XZIt is easy to recompile the system, and it is a good XZidea to try rebuilding pieces of the system to build confidence XZin the procedures. XZThe system consists of two major parts: XZthe kernel itself (/sys) and the user programs XZ(/usr/src and subdirectories). XZThe major part of this is /usr/src. XZ.PP XZThe three major libraries are the C library in /usr/src/lib/libc XZand the \s-2FORTRAN\s0 libraries /usr/src/usr.lib/libI77 and XZ/usr/src/usr.lib/libF77. In each XZcase the library is remade by changing into the corresponding directory XZand doing XZ.DS XZ\fB#\fP make XZ.DE XZ.PP XZand then installed by XZ.DS XZ\fB#\fP make install XZ.DE XZ.PP XZSimilar to the system, XZ.DS XZ\fB#\fP make clean XZ.DE XZ.PP XZcleans up. XZ.PP XZThe source for all other libraries is kept in subdirectories of XZ/usr/src/usr.lib; each has a Makefile and can be recompiled by the above XZrecipe. XZ.PP XZIf you look at /usr/src/Makefile, you will see that XZyou can recompile the entire system source with one command. XZTo recompile a specific program, find XZout where the source resides with the \fIwhereis\fP\|(1) XZcommand, then change to that directory and remake it XZwith the Makefile present in the directory. XZFor instance, to recompile ``date'', XZall one has to do is: XZ.DS XZ\fB#\fP whereis date XZ\fBdate: /usr/src/bin/date.c /bin/date /usr/man/man1/date.1\fP XZ\fB#\fP cd /usr/src/bin XZ\fB#\fP make date XZ.DE XZ.PP XZThis will create an unstripped version of the binary of ``date'' XZin the current directory. To install the binary image, use the XZinstall command as in XZ.DS XZ\fB#\fP install \-s date /bin/date XZ.DE XZ.PP XZThe \-s option will ensure the installed version of date has XZits symbol table stripped. The install command should be used XZinstead of mv or cp as it understands how to install programs XZeven when the program is currently in use. XZ.PP XZIf you wish to recompile and install all programs in a particular XZtarget area you can override the default target by doing: XZ.DS XZ\fB#\fP make XZ\fB#\fP make install XZ.DE XZ.PP XZTo recompile all of the system from source, you can do XZ.DS XZ\fB#\fP cd /usr/src XZ\fB#\fP make XZ.DE XZ.PP XZIf you modify the C library, say to change a system call, XZand want to rebuild and install everything from scratch you XZhave to be a little careful. XZYou must ensure that the libraries are installed before the XZremainder of the source, otherwise the loaded images will not XZcontain the new routine from the library. The following XZsequence will accomplish this. XZ.DS XZ\fB#\fP cd /usr/src XZ\fB#\fP make clean XZ\fB#\fP make build XZ\fB#\fP make installsrc XZ.DE XZ.PP XZThe first \fImake\fP removes any existing binaries in the source trees XZto ensure that everything is reloaded. XZThe next \fImake\fP compiles and installs the libraries and compilers, XZthen compiles the remainder of the sources. XZThe final line installs all of the commands not installed in the first phase. XZThis will take about 12 hours on a reasonably configured 11/44. XZ.NH 2 XZMaking local modifications XZ.PP XZ/usr/new is used by default for the programs that constitute XZthe contributed software portion of the distribution but which may not XZhave man pages installed. XZLocally written commands that aren't distributed (or whose man pages are XZnot up to date) are kept in /usr/src/local and their binaries are XZkept in /usr/local. This allows /usr/bin, /usr/ucb, XZand /bin to correspond to the distribution tape XZPeople using /usr/local commands are made XZaware that the programs may not be in the base system yet. XZ.NH 2 XZAccounting XZ.PP XZUNIX optionally records two kinds of accounting information: XZconnect time accounting and process resource accounting. The connect XZtime accounting information is stored in the file \fI/usr/adm/wtmp\fP, which XZis summarized by the program XZ.IR ac (8). XZThe process time accounting information is stored in the file XZ\fI/usr/adm/acct\fP after it is enabled by XZ.IR accton (8), XZand is analyzed and summarized by the program XZ.IR sa (8). XZ.PP XZIf you need to recharge for computing time, you can develop XZprocedures based on the information provided by these commands. XZA convenient way to do this is to give commands to the clock daemon XZ.I cron XZto be executed every day at a specified time. This is done by adding XZlines to \fI/usr/adm/crontab\fP; see XZ.IR cron (8) XZfor details. XZ.NH 2 XZResource control XZ.PP XZResource control in \*(2B is more XZelaborate than in previous PDP-11 UNIX systems. XZThe resources consumed XZby any single process can be limited by the mechanisms of XZ\fIsetrlimit\fP\|(2). As distributed, the mechanism XZis voluntary, though sites may choose to modify the login XZmechanism to impose limits. Csh now has the \fIlimits\fP XZbuilt-in command enabled. Another available option XZis the 4.3BSD disk quota system. XZ.NH 2 XZFiles that need periodic attention XZ.PP XZThe discussion of system operations is concluded by listing XZthe files that require periodic attention or are system specific XZ.de BP XZ.IP \fB\\$1\fP XZ.br XZ.. XZ.TS XZcenter; XZlb a. XZ/etc/fstab how disk partitions are used XZ/etc/disktab disk partition sizes XZ/etc/printcap printer data base XZ/etc/gettytab terminal type definitions XZ/etc/remote names and phone numbers of remote machines for \fItip\fP(1) XZ/etc/group group memberships XZ/etc/motd message of the day XZ/etc/master.passwd password file; each account has a line XZ/etc/rc.local local system restart script; runs reboot; starts daemons XZ/etc/inetd.conf local internet servers XZ/etc/hosts host name data base XZ/etc/networks network name data base XZ/etc/netstart Startup file to configure network XZ/etc/services network services data base XZ/etc/hosts.equiv hosts under same administrative control XZ/etc/syslog.conf error log configuration for \fIsyslogd\fP\|(8) XZ/etc/ttys enables/disables ports XZ/etc/crontab commands that are run periodically XZ/etc/aliases mail forwarding and distribution groups XZ/usr/adm/acct raw process account data XZ/usr/adm/messages system error log XZ/usr/adm/shutdownlog log of system reboots XZ/usr/adm/wtmp login session accounting XZ.TE XSHAR_EOF Xchmod 644 '6.t' Xfi Xif test -f 'EXAMPLE' Xthen X echo shar: "will not over-write existing file 'EXAMPLE'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'EXAMPLE' XZ# 2026/9/26 - remove RK as BOOTDEV, much too small for a root filesystem XZ# 2026/9/11 - remove TMSCP_DEBUG (not used) XZ# 2026/5/15 - remove NHY XZ# 2025/08/11 - add NDHUL XZ# 2019/10/18 - TIMEZONE set to GMT XZ# 1997/1/21 - RK added to GENERIC kernel (for use with Bob Supnik's emulator) XZ# 1995/12/14 - RX added to GENERIC kernel. XZ# 1995/07/21 - XP_PROBE removed. XZ# XZ# Machine configuration file for 2.11BSD distributed kernel. XZ# XZ# Format: XZ# name value comments XZ# An item's value may be either numerical, boolean or a string; if it's XZ# boolean, use "YES" or "NO" to set it or unset it, respectively. Use XZ# the default value and the comments field as indicators of the type of XZ# field it is. XZ XZ######################################### XZ# MACHINE DEPENDENT PARAMETERS # XZ######################################### XZ XZ# Machine type XZ# Split I/D and hardware floating point are required. XZ# UNIBUS support is always included, it only cost 1kb of text space and XZ# 94 bytes of D space for Qbus systems (obviously Unibus systems incur XZ# no penalty). XZ XZ# The define Q22 has been removed. The references to it were incorrect XZ# (i.e. using it to distinguish between an Emulex CS02 and a DH11) or XZ# inappropriate (the if_il.c driver should have been checking if a Unibus XZ# Map was present at runtime). XZ XZ#LINEHZ 50 # clock frequency European XZLINEHZ 60 # clock frequency USA XZ XZ# PDP-11 machine type; allowable values are GENERIC, 44, 70, 73. GENERIC XZ# should only be used to build a distribution kernel. The only use of this XZ# option is to select the proper in-line PS instructions (references to the XZ# PSW use 'spl', 'mfps/mtps' or 'movb' instructions depending on the cpu type). XZ#PDP11 GENERIC # distribution kernel XZ#PDP11 44 # PDP-11/44 XZ#PDP11 70 # PDP-11/70 XZPDP11 73 # PDP-11/53,73,83,84,93,94 XZ XZ######################################### XZ# GENERAL SYSTEM PARAMETERS # XZ######################################### XZ XZIDENT EXAMPLE # machine name XZMAXUSERS 20 # maxusers on machine XZ XZ# BOOTDEV is the letter combination denoting the autoboot device, XZ# or NONE if not using the autoboot feature. XZBOOTDEV NONE # don't autoboot XZ#BOOTDEV dvhp # DIVA Comp/V boot device XZ#BOOTDEV hk6 # rk06 boot device XZ#BOOTDEV hk7 # rk07 boot device XZ#BOOTDEV ra # MSCP boot device XZ#BOOTDEV rl # rl01/02 boot device XZ#BOOTDEV rm # rm02/03/05 rp06 boot device XZ#BOOTDEV br # Eaton BR1537/BR1711 boot device XZ#BOOTDEV sc11 # Emulex SC11/B boot device XZ#BOOTDEV sc21 # Emulex SC21 boot device XZ#BOOTDEV si # si 9500 boot device XZ XZ# Timezone XZTIMEZONE 0 # kernel uses GMT by default XZ XZ#Filesystem configuration XZ# XZ# PIPEDEV, ROOTDEV, SWAPDEV, DUMPDEV are all in terms of 'makedev(major,minor)' XZ# and the major number from this table. Devices in the you (almost) certainly XZ# do not have category (see below) or not suitable are not listed here: XZ# XZ# XX (Device) major XZ# =========== ===== XZ# hk 4 XZ# ra 5 XZ# rl 7 XZ# xp 10 XZ XZ# The complete list of major numbers is in the script /dev/MAKEDEV XZ# XZ# and the 'minor' number from this table (partitions other than 'a' and XZ# 'b' rarely used but allowed). XZ# XZ# minor partition name XZ# ----- -------------- XZ# 0 a XZ# 1 b XZ# 2 c XZ# 3 d XZ# 4 e XZ# 5 f XZ# 6 g XZ# 7 h XZ XZ# For example: with a SMD drive (xp) ROOTDEV xp0a is makedev(10,0), XZ# PIPEDEV is makedev(10,0) and SWAPDEV is makedev(10,1) XZ XZPIPEDEV makedev(10,0) # makedev(major,0) XX0a XZROOTDEV makedev(10,0) # makedev(major,0) XX0a XZSWAPDEV makedev(10,1) # makedev(major,1) XX0b XZ XZ# DUMPROUTINE indicates which dump routine should be used. DUMPDEV XZ# should be in terms of makedev. If DUMPDEV is NODEV no automatic XZ# dumps will be taken, and DUMPROUTINE needs to be set to "nulldev" to XZ# resolve the reference. XZ XZ# A TMSCP tape device may be used as a dump device. DUMPLO does not apply XZ# in this case and the minor number is almost always 0. XZ# XZ# XX (Device) major XZ# =========== ===== XZ# tmscp 12 XZ XZ# DUMPLO should leave room for the kernel to start swapping on SWAPDEV XZ# without overwriting the dump. XZ XZDUMPLO 512 # dump start address XZDUMPDEV makedev(10,1) # makedev(major,1) XX0b XZ#DUMPROUTINE nulldev # no dump routine. XZ#DUMPROUTINE hkdump # hk driver dump routine XZ#DUMPROUTINE radump # ra driver dump routine XZ#DUMPROUTINE rldump # rl driver dump routine XZ#DUMPROUTINE rmdump # rm driver dump routine XZ#DUMPROUTINE brdump # br driver dump routine XZ#DUMPROUTINE sidump # si driver dump routine XZDUMPROUTINE xpdump # xp driver dump routine XZ#DUMPROUTINE tmsdump # tmscp driver dump routine XZ XZ######################################### XZ# KERNEL CONFIGURATION # XZ######################################### XZ XZBADSECT NO # bad-sector forwarding XZEXTERNALITIMES YES # map out inode time values XZUCB_CLIST YES # clists moved from kernel data space XZQUOTA YES # dynamic file system quotas XZ # NOTE -- *very* expensive XZSOFUB_MAP NO # Software UNIBUS/QBUS map. Permits XZ # use of 18 bit controllers in a 22 bit XZ # Qbus system. Normally NO except for XZ # the GENERIC kernel or if you actually XZ # have an 18 bit RX02 on a Qbus system. XZ XZ# UCB_METER is fairly expensive, but various programs (iostat, vmstat, etc) XZ# use it. XZUCB_METER YES # vmstat performance metering XZ XZ# NBUF is the size of the buffer cache, and is directly related to the UNIBUS XZ# mapping registers. There are 32 total mapping registers, of which 30 are XZ# available. The 0'th is used for CLISTS, and the 31st is used for the I/O XZ# page on some PDP's. It's suggested that you allow 7 mapping registers XZ# per UNIBUS character device so that you can move 56K of data on each device XZ# simultaneously. The rest should be assigned to the block buffer pool. So, XZ# if you have a DR-11 and a TM-11, you would leave 14 unassigned for them and XZ# allocate 16 to the buffer pool. Since each mapping register addresses 8 XZ# buffers for a 1K file system, NBUF would be 128. A possible exception would XZ# be to reduce the buffers to save on data space, as they were 24 bytes each XZ# Should be 'small' for GENERIC, so room for kernel + large program to run. XZNBUF 128 # buffer cache, *must* be <= 240 XZ XZ# DIAGNOSTIC does various run-time checks, some of which are pretty XZ# expensive and at a high priority. Suggested use is when the kernel XZ# is crashing and you don't know why, otherwise run with it off. XZDIAGNOSTIC NO # misc. diagnostic loops and checks XZ XZ######################################### XZ# PERIPHERALS: DISK DRIVES # XZ######################################### XZ XZNHK 0 # RK611, RK06/07 XZ XZNRAC 0 # NRAD controllers XZNRAD 0 # RX50, RC25, RD51/52/53, RA60/80/81 XZ XZNRK 0 # RK05 XZ XZNRL 2 # RL01/02 XZ XZNRX 0 # RX02 XZ XZNXPC 1 # NXPD controllers (RH70/RH11 style) XZNXPD 4 # RM02/03/05, RP04/05/06, CDC 9766, XZ # Ampex 9300, Diva, Fuji 160, SI Eagle. XZ XZNRAM 0 # RAM disk size (512-byte blocks) XZ XZ######################################### XZ# PERIPHERALS: TAPE DRIVES # XZ######################################### XZ XZNHT 0 # TE16, TU45, TU77 XZ XZ# Setting AVIVTM configures the TM driver for the AVIV 800/1600/6250 XZ# controller (the standard DEC TM only supports 800BPI). For more details, XZ# see /sys/pdpuba/tm.c. XZNTM 0 # TM11 XZAVIVTM NO # AVIV 800/1600/6250 controller XZ XZNTS 0 # TS11 XZ XZNTMSCP 1 # TMSCP controllers XZNTMS 2 # TMSCP drives XZ XZ######################################### XZ# PERIPHERALS: TERMINALS # XZ######################################### XZ XZ# NKL includes both KL11's and DL11's. XZ# It should always be at least 1, for the console. XZNKL 2 # KL11, DL11 XZNDH 0 # DH11; NDH is in units of boards (16 each) XZCS02 NO # DH units above are really Emulex CS02 XZ # boards on a 22bit Qbus. XZNDM 0 # DM11; NDM is in units of boards (16 each) XZNDHU 0 # DHU11 XZNDHUL 16 # No. of lines per DHU11 XZNDHV 0 # DHV11 XZNDZ 0 # DZ11; NDZ is in units of boards (8 each) XZ XZ######################################### XZ# PERIPHERALS: OTHER # XZ######################################### XZNLP 0 # Line Printer XZLP_MAXCOL 132 # Maximum number of columns on line printers XZ XZ######################################### XZ# PSEUDO DEVICES, PROTOCOLS, NETWORKING # XZ######################################### XZ# Networking only works with split I/D and SUPERVISOR space, i.e. with the XZ# 11/44/53/70/73/83/84/93/94. NETHER should be non-zero for networking XZ# systems using any ethernet. CHECKSTACK makes sure the networking stack XZ# pointer and the kernel stack pointer don't collide; it's *very* expensive XZ# at 4 extra instructions for EVERY function call AND return, always left XZ# NO unless doing serious debugging. XZINET YES # TCP/IP XZCHECKSTACK NO # Kernel & Supervisor stack pointer checking XZNETHER 1 # ether pseudo-device XZ XZ# Note, PTY's and the select(2) system call do not require the kernel to XZ# be configured for networking (INET). Note that you can allocate PTY's XZ# in any number (multiples of 8, of 16, even, odd, prime, whatever). Nothing XZ# in the kernel cares. PTY's cost 78 bytes apiece in kernel data space. You XZ# should probably have at least 8-10 since several applications use them: XZ# script, jove, window, rlogin, ... XZNPTY 12 # pseudo-terminals - GENERIC sys needs NONE XZ XZNDE 0 # DEUNA/DELUA XZNQE 1 # DEQNA XZNQT 0 # DEQTA (DELQA-YM, DELQA-PLUS) XZNSL 0 # Serial Line IP XZ XZ# The following were known to work in 2.11BSD at one time but are for XZ# hardware you (almost) certainly do not have. XZNSI 0 # SI 9500 driver for CDC 9766 disks XZNBR 0 # EATON BR1537/BR1711, BR1538A, B, C, D XZNDN 0 # DN11 dialer XZNDR 0 # DR11-W XZNEC 0 # 3Com Ethernet XZNIL 0 # Interlan Ethernet XZNVV 0 # V2LNI (Pronet) XZNACC 0 # ACC LH/DH ARPAnet IMP interface XZPLI NO # LH/DH is connected to a PLI XZNIMP 0 # ARPAnet IMP 1822 interface XZ XZ# The following are untested in 2.11BSD; some are untested since before 2.9BSD XZ# Some won't even compile. Most will require modification. Good luck. XZENABLE34 NO # if have the ENABLE34 board XZ XZNCSS 0 # DEC/CSS IMP11-A ARPAnet IMP interface XZNDMC 0 # DMC11 XZNEN 0 # Xerox prototype (3 Mb) Ethernet XZNS 0 # Xerox NS (XNS) XZNSRI 0 # SRI DR11c ARPAnet IMP XZNTB 0 # RS232 interface for Genisco/Hitachi tablets XZ XZ# Defining FPSIM to YES compiles a floating point simulator into the kernel XZ# which will catch floating point instruction traps from user space. XZFPSIM NO # floating point simulator XZ XZ# To enable profiling, the :splfix script must be changed to use spl6 instead XZ# of spl7 (see conf/:splfix.profile), also, you have to have a machine with a XZ# supervisor PAR/PDR pair, i.e. an 11/44/53/70/73/83/84/93/94, as well XZ# as both a KW11-L and a KW11-P. XZ# XZ# Note that profiling is not currently working. We don't have any plans on XZ# fixing it, so this is essentially a non-supported feature. XZPROFILE NO # system profiling with KW11P clock XZ XZ# The Ingres driver works but is not needed unless concurrent database accesses XZ# will be done. XZINGRES NO # include the Ingres lock driver XSHAR_EOF Xchmod 644 'EXAMPLE' Xfi Xif test -f 'GENERIC' Xthen X echo shar: "will not over-write existing file 'GENERIC'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'GENERIC' XZ# 2026/9/26 - remove RK as BOOTDEV, much too small for a root filesystem XZ# 2026/9/11 - remove TMSCP_DEBUG (not used) XZ# 2026/5/15 - remove NHY XZ# 2025/08/11 - add NDHUL XZ# 2019/10/18 - TIMEZONE set to GMT XZ# 1997/1/21 - RK added to GENERIC kernel (for use with Bob Supnik's emulator) XZ# 1995/12/14 - RX added to GENERIC kernel. XZ# 1995/07/21 - XP_PROBE removed. XZ# XZ# Machine configuration file for 2.11BSD distributed kernel. XZ# XZ# Format: XZ# name value comments XZ# An item's value may be either numerical, boolean or a string; if it's XZ# boolean, use "YES" or "NO" to set it or unset it, respectively. Use XZ# the default value and the comments field as indicators of the type of XZ# field it is. XZ XZ######################################### XZ# MACHINE DEPENDENT PARAMETERS # XZ######################################### XZ XZ# Machine type XZ# Split I/D and hardware floating point are required. XZ# UNIBUS support is always included, it only cost 1kb of text space and XZ# 94 bytes of D space for Qbus systems (obviously Unibus systems incur XZ# no penalty). XZ XZ# The define Q22 has been removed. The references to it were incorrect XZ# (i.e. using it to distinguish between an Emulex CS02 and a DH11) or XZ# inappropriate (the if_il.c driver should have been checking if a Unibus XZ# Map was present at runtime). XZ XZ#LINEHZ 50 # clock frequency European XZLINEHZ 60 # clock frequency USA XZ XZ# PDP-11 machine type; allowable values are GENERIC, 44, 70, 73. GENERIC XZ# should only be used to build a distribution kernel. The only use of this XZ# option is to select the proper in-line PS instructions (references to the XZ# PSW use 'spl', 'mfps/mtps' or 'movb' instructions depending on the cpu type). XZPDP11 GENERIC # distribution kernel XZ#PDP11 44 # PDP-11/44 XZ#PDP11 70 # PDP-11/70 XZ#PDP11 73 # PDP-11/53,73,83,84,93,94 XZ XZ######################################### XZ# GENERAL SYSTEM PARAMETERS # XZ######################################### XZ XZIDENT GENERIC # machine name XZMAXUSERS 6 # maxusers on machine XZ XZ# BOOTDEV is the letter combination denoting the autoboot device, XZ# or NONE if not using the autoboot feature. XZBOOTDEV NONE # don't autoboot XZ#BOOTDEV dvhp # DIVA Comp/V boot device XZ#BOOTDEV hk6 # rk06 boot device XZ#BOOTDEV hk7 # rk07 boot device XZ#BOOTDEV ra # MSCP boot device XZ#BOOTDEV rl # rl01/02 boot device XZ#BOOTDEV rm # rm02/03/05 rp06 boot device XZ#BOOTDEV br # Eaton BR1537/BR1711 boot device XZ#BOOTDEV sc11 # Emulex SC11/B boot device XZ#BOOTDEV sc21 # Emulex SC21 boot device XZ#BOOTDEV si # si 9500 boot device XZ XZ# Timezone XZTIMEZONE 0 # kernel uses GMT by default XZ XZ#Filesystem configuration XZ# XZ# PIPEDEV, ROOTDEV, SWAPDEV, DUMPDEV are all in terms of 'makedev(major,minor)' XZ# and the major number from this table. Devices in the you (almost) certainly XZ# do not have category (see below) or not suitable are not listed here: XZ# XZ# XX (Device) major XZ# =========== ===== XZ# hk 4 XZ# ra 5 XZ# rl 7 XZ# xp 10 XZ XZ# The complete list of major numbers is in the script /dev/MAKEDEV XZ# XZ# and the 'minor' number from this table (partitions other than 'a' and XZ# 'b' rarely used but allowed). XZ# XZ# minor partition name XZ# ----- -------------- XZ# 0 a XZ# 1 b XZ# 2 c XZ# 3 d XZ# 4 e XZ# 5 f XZ# 6 g XZ# 7 h XZ XZ# For example: with a SMD drive (xp) ROOTDEV xp0a is makedev(10,0), XZ# PIPEDEV is makedev(10,0) and SWAPDEV is makedev(10,1) XZ XZPIPEDEV makedev(10,0) # makedev(major,0) XX0a XZROOTDEV makedev(10,0) # makedev(major,0) XX0a XZSWAPDEV makedev(10,1) # makedev(major,1) XX0b XZ XZ# DUMPROUTINE indicates which dump routine should be used. DUMPDEV XZ# should be in terms of makedev. If DUMPDEV is NODEV no automatic XZ# dumps will be taken, and DUMPROUTINE needs to be set to "nulldev" to XZ# resolve the reference. XZ XZ# A TMSCP tape device may be used as a dump device. DUMPLO does not apply XZ# in this case and the minor number is almost always 0. XZ# XZ# XX (Device) major XZ# =========== ===== XZ# tmscp 12 XZ XZ# DUMPLO should leave room for the kernel to start swapping on SWAPDEV XZ# without overwriting the dump. XZ XZDUMPLO 512 # dump start address XZDUMPDEV NODEV # makedev(major,1) XX0b XZDUMPROUTINE nulldev # no dump routine. XZ#DUMPROUTINE hkdump # hk driver dump routine XZ#DUMPROUTINE radump # ra driver dump routine XZ#DUMPROUTINE rldump # rl driver dump routine XZ#DUMPROUTINE rmdump # rm driver dump routine XZ#DUMPROUTINE brdump # br driver dump routine XZ#DUMPROUTINE sidump # si driver dump routine XZ#DUMPROUTINE xpdump # xp driver dump routine XZ#DUMPROUTINE tmsdump # tmscp driver dump routine XZ XZ######################################### XZ# KERNEL CONFIGURATION # XZ######################################### XZ XZBADSECT NO # bad-sector forwarding XZEXTERNALITIMES YES # map out inode time values XZUCB_CLIST NO # clists moved from kernel data space XZQUOTA NO # dynamic file system quotas XZ # NOTE -- *very* expensive XZSOFUB_MAP YES # Software UNIBUS/QBUS map. Permits XZ # use of 18 bit controllers in a 22 bit XZ # Qbus system. Normally NO except for XZ # the GENERIC kernel or if you actually XZ # have an 18 bit RX02 on a Qbus system. XZ XZ# UCB_METER is fairly expensive, but various programs (iostat, vmstat, etc) XZ# use it. XZUCB_METER NO # vmstat performance metering XZ XZ# NBUF is the size of the buffer cache, and is directly related to the UNIBUS XZ# mapping registers. There are 32 total mapping registers, of which 30 are XZ# available. The 0'th is used for CLISTS, and the 31st is used for the I/O XZ# page on some PDP's. It's suggested that you allow 7 mapping registers XZ# per UNIBUS character device so that you can move 56K of data on each device XZ# simultaneously. The rest should be assigned to the block buffer pool. So, XZ# if you have a DR-11 and a TM-11, you would leave 14 unassigned for them and XZ# allocate 16 to the buffer pool. Since each mapping register addresses 8 XZ# buffers for a 1K file system, NBUF would be 128. A possible exception would XZ# be to reduce the buffers to save on data space, as they were 24 bytes each XZ# Should be 'small' for GENERIC, so room for kernel + large program to run. XZNBUF 32 # buffer cache, *must* be <= 240 XZ XZ# DIAGNOSTIC does various run-time checks, some of which are pretty XZ# expensive and at a high priority. Suggested use is when the kernel XZ# is crashing and you don't know why, otherwise run with it off. XZDIAGNOSTIC NO # misc. diagnostic loops and checks XZ XZ######################################### XZ# PERIPHERALS: DISK DRIVES # XZ######################################### XZ XZNHK 2 # RK611, RK06/07 XZ XZNRAC 2 # NRAD controllers XZNRAD 3 # RX50, RC25, RD51/52/53, RA60/80/81 XZ XZNRK 8 # RK05 XZ XZNRL 4 # RL01/02 XZ XZNRX 0 # RX02 XZ XZNXPC 1 # NXPD controllers (RH70/RH11 style) XZNXPD 2 # RM02/03/05, RP04/05/06, CDC 9766, XZ # Ampex 9300, Diva, Fuji 160, SI Eagle. XZ XZNRAM 0 # RAM disk size (512-byte blocks) XZ XZ######################################### XZ# PERIPHERALS: TAPE DRIVES # XZ######################################### XZ XZNHT 2 # TE16, TU45, TU77 XZ XZ# Setting AVIVTM configures the TM driver for the AVIV 800/1600/6250 XZ# controller (the standard DEC TM only supports 800BPI). For more details, XZ# see /sys/pdpuba/tm.c. XZNTM 2 # TM11 XZAVIVTM YES # AVIV 800/1600/6250 controller XZ XZNTS 2 # TS11 XZ XZNTMSCP 2 # TMSCP controllers XZNTMS 2 # TMSCP drives XZ XZ######################################### XZ# PERIPHERALS: TERMINALS # XZ######################################### XZ XZ# NKL includes both KL11's and DL11's. XZ# It should always be at least 1, for the console. XZNKL 1 # KL11, DL11 XZNDH 0 # DH11; NDH is in units of boards (16 each) XZCS02 NO # DH units above are really Emulex CS02 XZ # boards on a 22bit Qbus. XZNDM 0 # DM11; NDM is in units of boards (16 each) XZNDHU 0 # DHU11 XZNDHUL 16 # No. of lines per DHU11 XZNDHV 0 # DHV11 XZNDZ 0 # DZ11; NDZ is in units of boards (8 each) XZ XZ######################################### XZ# PERIPHERALS: OTHER # XZ######################################### XZNLP 0 # Line Printer XZLP_MAXCOL 132 # Maximum number of columns on line printers XZ XZ######################################### XZ# PSEUDO DEVICES, PROTOCOLS, NETWORKING # XZ######################################### XZ# Networking only works with split I/D and SUPERVISOR space, i.e. with the XZ# 11/44/53/70/73/83/84/93/94. NETHER should be non-zero for networking XZ# systems using any ethernet. CHECKSTACK makes sure the networking stack XZ# pointer and the kernel stack pointer don't collide; it's *very* expensive XZ# at 4 extra instructions for EVERY function call AND return, always left XZ# NO unless doing serious debugging. XZINET NO # TCP/IP XZCHECKSTACK NO # Kernel & Supervisor stack pointer checking XZNETHER 0 # ether pseudo-device XZ XZ# Note, PTY's and the select(2) system call do not require the kernel to XZ# be configured for networking (INET). Note that you can allocate PTY's XZ# in any number (multiples of 8, of 16, even, odd, prime, whatever). Nothing XZ# in the kernel cares. PTY's cost 78 bytes apiece in kernel data space. You XZ# should probably have at least 8-10 since several applications use them: XZ# script, jove, window, rlogin, ... XZNPTY 0 # pseudo-terminals - GENERIC sys needs NONE XZ XZNDE 0 # DEUNA/DELUA XZNQE 0 # DEQNA XZNQT 0 # DEQTA (DELQA-YM, DELQA-PLUS) XZNSL 0 # Serial Line IP XZ XZ# The following were known to work in 2.11BSD at one time but are for XZ# hardware you (almost) certainly do not have. XZNSI 0 # SI 9500 driver for CDC 9766 disks XZNBR 0 # EATON BR1537/BR1711, BR1538A, B, C, D XZNDN 0 # DN11 dialer XZNDR 0 # DR11-W XZNEC 0 # 3Com Ethernet XZNIL 0 # Interlan Ethernet XZNVV 0 # V2LNI (Pronet) XZNACC 0 # ACC LH/DH ARPAnet IMP interface XZPLI NO # LH/DH is connected to a PLI XZNIMP 0 # ARPAnet IMP 1822 interface XZ XZ# The following are untested in 2.11BSD; some are untested since before 2.9BSD XZ# Some won't even compile. Most will require modification. Good luck. XZENABLE34 NO # if have the ENABLE34 board XZ XZNCSS 0 # DEC/CSS IMP11-A ARPAnet IMP interface XZNDMC 0 # DMC11 XZNEN 0 # Xerox prototype (3 Mb) Ethernet XZNS 0 # Xerox NS (XNS) XZNSRI 0 # SRI DR11c ARPAnet IMP XZNTB 0 # RS232 interface for Genisco/Hitachi tablets XZ XZ# Defining FPSIM to YES compiles a floating point simulator into the kernel XZ# which will catch floating point instruction traps from user space. XZFPSIM NO # floating point simulator XZ XZ# To enable profiling, the :splfix script must be changed to use spl6 instead XZ# of spl7 (see conf/:splfix.profile), also, you have to have a machine with a XZ# supervisor PAR/PDR pair, i.e. an 11/44/53/70/73/83/84/93/94, as well XZ# as both a KW11-L and a KW11-P. XZ# XZ# Note that profiling is not currently working. We don't have any plans on XZ# fixing it, so this is essentially a non-supported feature. XZPROFILE NO # system profiling with KW11P clock XZ XZ# The Ingres driver works but is not needed unless concurrent database accesses XZ# will be done. XZINGRES NO # include the Ingres lock driver XSHAR_EOF Xchmod 644 'GENERIC' Xfi Xif test -f 'Makefile' Xthen X echo shar: "will not over-write existing file 'Makefile'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'Makefile' XZ# XZ# Copyright (c) 1986 Regents of the University of California. XZ# All rights reserved. The Berkeley software License Agreement XZ# specifies the terms and conditions for redistribution. XZ# XZ# @(#)Makefile 7.0 (2.11BSD) 2026/11/10 XZ# XZ# NOTE: You need to generate a new disktab.man on a system with groff XZ# and put that file here, since 2BSD's sed can't handle the ex- XZ# pressions. This only needs to be done if the actual disktab XZ# changes XZ XZ# NOTE: There is no pdf target. Terri Kennedy (terri-decus@glaver.org), who XZ# did the documentation said: That part (pdf target) was done on a XZ# Windows PC. It might be possible to do in Ghostscript (but not XZ# by me, and no guarantees). I do note that the circa-2000 PDF was XZ# created by "Acrobat Distiller 3.0 for Power Macintosh". That's two XZ# whole Apple architectures ago 8-} XZ# XZ# That said "eqn ${SRC} | tbl | groff -T ps ${PAGES} -ms | pstopdf" XZ# should produce something readable. XZ XZSRC= 0.t 1.t 2.t 3.t 4.t 5.t 6.t a.t b.t c.t #d.t XZ XZall: XZ @echo pick one of troff, nroff, or ps XZ XZtroff: ${SRC} XZ expand GENERIC > GENERIC.out XZ expand EXAMPLE > EXAMPLE.out XZ eqn ${SRC} | tbl | troff -t ${PAGES} -ms > setup.out XZ XZnroff: ${SRC} XZ expand GENERIC > GENERIC.out XZ expand EXAMPLE > EXAMPLE.out XZ eqn ${SRC} | tbl | nroff -Tlpr ${PAGES} -ms > setup.out XZ XZps: ${SRC} XZ @if [ "`uname -m`" = "pdp11" ]; then \ XZ echo "This only works on systems with groff and modern sed"; \ XZ exit 1; \ XZ fi XZ ./fixdisktab.sh XZ expand GENERIC > GENERIC.out XZ expand EXAMPLE > EXAMPLE.out XZ eqn ${SRC} | tbl | groff -T ps ${PAGES} -ms > setup.ps XZ XZclean: XZ rm -f setup.out setup.ps ?.t.spell GENERIC.out EXAMPLE.out XZ XZspell: ${SRC} XZ @for i in ${SRC}; do \ XZ echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \ XZ done XSHAR_EOF Xchmod 644 'Makefile' Xfi Xif test -f 'a.t' Xthen X echo shar: "will not over-write existing file 'a.t'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'a.t' XZ.\" Copyright (c) 1980 Regents of the University of California. XZ.\" All rights reserved. The Berkeley software License Agreement XZ.\" specifies the terms and conditions for redistribution. XZ.\" XZ.\" @(#)a.t 3.0 (2.11BSD) 2026/11/09 XZ.\" XZ.de IR XZ\fI\\$1\fP\|\\$2 XZ.. XZ.ds LH "Installing/Operating \*(2B XZ.nr H1 7 XZ.nr H2 0 XZ.ds RH "Appendix A \- configuring and building a new kernel XZ.ds CF \*(DY XZ.bp XZ.LG XZ.B XZ.ce XZAPPENDIX A \- CONFIGURING AND BUILDING A NEW KERNEL XZ.sp 2 XZ.R XZ.NL XZ.PP XZThe \*(2B kernel has a number of parameters and options that can be XZused to tailor the kernel to site specific needs. XZThis appendix lists the parameters and options used in the kernel. The XZparameters have numeric values, usually table sizes. The options flags XZare either defined or undefined (via the values YES or NO respectively.) XZ.PP XZOnce you have identified all of your desired options, this appendix describes XZhow to build, install, and test your new kernel. XZ.NH 2 XZConfiguring the number of mountable filesystems (NMOUNT) XZ.PP XZBecause of time constraints the XZ.B NMOUNT XZconstant was not moved into the kernel configuration file where it belongs. XZ.B NMOUNT XZis used to configure the number of mountable filesystems in \*(2B. Since XZeach slot in the kernel mount table takes up close to a half KB of XZvaluable kernel data space, the distribution kernel comes configured XZwith XZ.B NMOUNT XZset to 6. XZThis may be too small for systems using multiple disk drives and should be XZincreased to the number of filesystems you expect to mount. XZ.PP XZ.B NMOUNT XZis defined in XZ.IR /sys/h/param.h . XZIf you change its value, you must recompile the kernel (obviously) and the XZfollowing applications: XZ.IR mount , XZ.IR quotaon , XZ.IR edquota , XZ.IR umount , XZand XZ.IR df . XZ.NH 2 XZConfiguring automatic boot and restart XZ.PP XZ\fBNOTE:\fR The following only applies to the distribution tape - the "canned" XZ(pre-built images) have automatic boot and restart configured. XZ.PP XZThe distribution tape contains a configuration which will wait for user input XZ(normally a carriage return) before loading the kernel, in order to allow a XZdifferent kernel to be specified. Likewise, after the system is in single user XZmode a Control-D (^D) is needed to switch into multi user mode. There are two XZsettings that control this behavior. XZ.NH 3 XZSetting BOOTDEV XZ.PP XZThe first is the kernel configuration setting "BOOTDEV". As shipped, it is set XZto "NONE". To enable automatic restart and switching to multi user mode after a XZ"shutdown -r" command, this should be set to match the type of disk you are XZusing. For example, "rm" if you are booting from an RM or RP disk. XZ.NH 3 XZConfiguring AUTOMULTIUSER XZ.PP XZThe second setting controls what happens when the system is "cold booted". As XZshipped, this causes the system to wait for the user to either press the return XZkey (for the default \fI/unix\fR kernel) or to enter the name of an alternate XZkernel and then press the return key. XZ.PP XZYou can override this behavior and instead cause a five-second countdown XZbefore the default kernel is loaded. At any time during those five seconds, XZthe user can either press the return key to boot the default kernel, or any XZother key to be prompted to enter the name of an alternate kernel. To enable XZthis option, perform the following steps: XZ.DS XZ\fB#\fP cd /sys/pdpstand XZ[edit the file boot.c and change the definition of AUTOMULTIUSER from "0" to "1" and save the file. XZ\fB#\fP make boot (ignore some harmless warning messages) XZ\fB#\fP install -s -m 744 boot / XZ\fB#\fP make clean XZ.DE XZ.PP XZAfter this, a "cold boot" will display a prompt as shown below: XZ.DS XZPress to boot, or any other key to abort: 5 4 3 2 1 0 XZ.DE XZ.NH 2 XZKernel organization XZ.PP XZOn the distribution tape, the kernel source is in a XZseparate tar image. On "canned" (prebuilt) disk images, XZthe kernel source has already been loaded into the disk XZimage. When installing from tape, the source may be physically XZlocated anywhere within any filesystem so long as XZa symbolic link to the location is created for the XZfile /sys XZ(many files in /usr/include are normally symbolic links XZrelative to /sys). In further discussions of the XZsystem source all path names will be given relative to XZ/sys. XZ.PP XZThe directory /sys/sys XZcontains the mainline machine independent XZoperating system code. XZFiles within this directory are conventionally XZnamed with the following prefixes: XZ.DS XZ.TS XZlw(1.0i) l. XZinit_ system initialization XZkern_ kernel (authentication, process management, etc.) XZquota_ kernel portion of disk quota system XZsubr_ misc. subroutines used throughout the kernel XZsys_ system calls and the like XZtty_ terminal handling XZufs_ filesystem XZuipc_ interprocess communication XZvm_ memory management XZ.TE XZ.DE XZ.PP XZThe remaining directories are organized as follows: XZ.DS XZ.TS XZlw(1.0i) l. XZ/sys/h machine independent include files XZ/sys/conf site configuration files and basic templates XZ/sys/net network independent, but network related code XZ/sys/netinet DARPA Internet code XZ/sys/netimp IMP support code XZ/sys/netns Xerox NS support code XZ/sys/pdp PDP-11 specific mainline code XZ/sys/pdpif PDP-11 network interface code XZ/sys/pdpuba PDP-11 UNIBUS, MASSBUS and QBUS device drivers XZ.TE XZ.DE XZ.PP XZMany of these directories are referenced through /usr/include with XZsymbolic links. For example, /usr/include/sys is a symbolic XZlink to /sys/h. The system code, as distributed, is mostly XZindependent of the include files in /usr/include. Unfortunately, XZnot all references to /usr/include have been eradicated, so XZcompiling the system requires the /usr filesystem to be mounted. XZ.NH 2 XZDevices and device drivers XZ.PP XZDevices supported by UNIX are implemented in the kernel XZby drivers whose source is in /sys/pdp and /sys/pdpuba. XZThese drivers are compiled XZinto the kernel when included in a CPU-specific configuration file XZkept in the conf directory. XZ.PP XZ\fBNOTE:\fR If you are using a "canned" (prebuilt) disk image, you can safely XZskip the sections on /dev, /etc/dtab, and /etc/fstab below, as they have been XZset up correctly for the image you are using. If you add any devices to a XZ"canned" image, you may need to make changes to those files as described below. XZ.NH 3 XZPopulating the /dev tree XZ.PP XZDevices are accessed through special XZfiles in the filesystem, made by the XZ.IR mknod (8) XZprogram and normally kept in the /dev directory. XZFor all the devices supported by the distribution system, the XZfiles in /dev are created by the /dev/MAKEDEV XZshell script. XZ.PP XZDetermine the set of devices your kernel will support, then XZcreate a new directory XZ/newdev, copy /dev/MAKEDEV into it, edit the file MAKEDEV.local if needed XZto provide an entry for local needs, XZand run /newdev/MAKEDEV to populate the /newdev directory. XZFor instance, if your machine has a single DZ11, a single XZDH11, an RM03 disk, an EMULEX UNIBUS SMD disk controller with an XZAMPEX 9300 disk, and a TE16 tape drive you would do: XZ.DS XZ\fB#\fP cd / XZ\fB#\fP mkdir newdev XZ\fB#\fP cp dev/MAKEDEV newdev/MAKEDEV XZ\fB#\fP cd newdev XZ\fB#\fP ./MAKEDEV dz0 dh0 xp0 xp1 ht0 std LOCAL (LOCAL only if needed) XZ.DE XZ.PP XZNote that the ``std'' argument causes standard devices XZsuch as \fI/dev/console\fP (the machine console), \fI/dev/null\fP, XZ\fI/dev/tty\fP, \fI/dev/klog\fP, etc. XZto be created. XZ.PP XZYou can then do XZ.DS XZ\fB#\fP cd / XZ\fB#\fP mv dev olddev ; mv newdev dev XZ\fB#\fP sync XZ.DE XZ.PP XZto install the new device directory.\(dg XZ.FS XZ.IP \(dg XZYou must reboot your system before you can remove the /olddev directory. XZ.FE XZAs distributed almost all of XZthe device nodes are already present and you may wish to remove XZunused entries from /dev to speed up scanning of the directory. XZThe terminal nodes are almost certainly incorrect for your site and XZwill need to be deleted and recreated. Directly connected terminals XZshould have the softcarrier bit on in their minor device numbers. Since XZMAKEDEV by default creates terminal (dh, dz, etc) nodes with the softcarrier XZbit off you will have to delete those nodes and recreate those terminal XZnodes which are directly connected: XZ.DS XZ\fB#\fP cd /dev XZ\fB#\fP rm ttyh0 XZ\fB#\fP mknod ttyh0 c 3 128 XZ.DE XZ.PP XZYou can create the device nodes (if needed) before or after building a new XZkernel. XZ.PP XZ\fBNOTE:\fR The need to use MAKEDEV and mknod to make device nodes XZfor most devices will likely come as a surprise to users of modern Unix-like XZsystems, which automatically populate the /dev directory. This is because XZ2.11BSD would need additional initialization code to create and populate the XZ/dev directory, taking up scarce memory for a function that is only rarely XZneeded. XZ.NH 3 XZUpdating the /etc/dtab file XZ.PP XZIn addition to the device nodes in the /dev directory, the kernel uses a file XZcalled /etc/dtab to attach device drivers to their specific controller XZaddress. XZ.PP XZThe PDP-11 has a complex system of addresses (sometimes called CSRs) and vectors XZthat are set on each device so the rest of the system knows where to find that XZdevice. To complicate matters further, some devices use a "fixed" (unchanging) XZaddress and vector, others use "floating" addresses and vectors, and yet others XZuse a fixed address and vector for the first device of that type and a floating XZaddress and vector for additional devices of that type. Some (relatively) newer XZdevices allow the operating system to specify their vector; those devices do XZnot have a vector that is configured in hardware. Additionally, if you later XZinstall a device with a floating address, it may require changing the addresses XZof other devices. This probably seems very bizarre to modern users accustomed XZto plugging an add-on card into a PC and having it "just work". Bear in mind XZthat the first PDP-11 model was introduced in 1970. XZ.PP XZIf you are running on an emulator, the emulator likely has a command to display XZthis information. For example, on SIMH (with entries for disabled devices not XZshown): XZ.nf XZ.in 0 XZ.cs CW 20 XZ.ft CW XZ XZsim> show dev XZPDP-11 simulator configuration XZ XZCPU 11/70, FPP, autoconfiguration enabled, idle enabled XZSYSTEM PDP-11 model options XZRHA address=17776700-17776753, vector=254, BR5, RH70 XZRHB address=17772440-17772477, vector=224, BR5, RH70 XZCLK 60Hz, address=17777546-17777547, vector=100, BR6 XZPTR address=17777550-17777553, vector=70, BR4 XZPTP address=17777554-17777557, vector=74, BR4 XZTTI 7p, address=17777560-17777563, vector=60, BR4 XZTTO 7p, address=17777564-17777567, vector=64, BR4 XZLPT address=17777514-17777517, vector=200, BR4 XZVH address=17760440-17760457*, vector=300-304*, BR4, lines=16 XZRP Massbus adapter 0 (RHA), 8 units XZTU Massbus adapter 1 (RHB), FORMATTER, TM03, 8 units XZXU address=17774510-17774517, vector=120, BR5, MAC=08:00:2B:A8:02:0B XZROM 4 units XZ.fi XZ.PP XZIf you are running on an actual PDP-11, the commands differ by model, and to XZmake things more complicated, some models (like the PDP-11/70) are "open it up XZand look", at least until you have an operating system running. Newer models XZ(you can tell these by their "chatty" console messages) normally have a command XZlike "map" which will display the contents of the I/O address space. XZ.PP XZThe /etc/dtab file needs to be edited to match the actual hardware XZconfiguration. Here is an /etc/dtab file that matches the above configuration XZ(most lines that are commented out are not shown): XZ.nf XZ.in 0 XZ.cs CW 20 XZ.ft CW XZ XZ# Device Configuration Table XZ XZ#Name Unit# Addr Vector Br Handler(s) # Comments XZ XZdu ? 160440 300 5 dhurint dhuxint # dhu11 terminal mux XZht ? 172440 224 5 htintr # tu 16 massbus tape XZlp ? 177514 200 4 lpintr # lp-11 line printer XZxp ? 176700 254 5 xpintr # xp driver XZ.fi XZ.PP XZYou will need to uncomment lines for your devices and specify their address and XZvector. You don't need to worry about the rest of that device line. It is a XZgood idea to comment out lines for any devices you do not have configured in XZyour kernel. There are a few devices that appear in the SIMH device list but XZnot in the /etc/dtab file. CLK/TTI/TTO are the system clock and console serial XZport - the kernel knows where these are because their addresses and vectors XZare the same on all PDP-11 models. PTR/PTP are the high-speed paper tape XZreader and punch, respectively. The hardware is there, but this kernel does XZnot include support for them. Lastly, networking devices such as XU (SIMH)/de XZ(2,11BSD) device are not enabled in the /etc/dtab file. They appear as XZcommented-out devices to provide a reference for the expected addresses and XZvectors. XZ.PP XZ\fBNOTE:\fR Device naming is not consistent - the PDP-11 console or emulator XZwill refer to them with one set of names, while 2.11BSD may use different XZnames. This is true of other PDP-11 operating systems as well. It's just the XZway things were back then. XZ.PP XZYou may be wondering why the system has both an /etc/dtab file and a /dev XZdirectory, because they seem to be talking about the same type of thing. The XZanswer is that /etc/dtab is used by the kernel to find hardware and attach the XZcorrect device drivers, while the files in /dev are used by programs to talk to XZthe devices via the standard I/O library and kernel. XZ.NH 3 XZUpdating /etc/fstab (if needed) XZ.PP XZIf you added additional disk devices to your configuration, you will need to XZadd them to the /etc/fstab file so they are automatically mounted during system XZstartup. \fBNOTE:\fR Refer to Section 7.1 above regarding adjusting NMOUNT (if XZneeded). XZYou can only mount as many filesystems as NMOUNT allows. For example, consider XZthe following /etc/fstab: XZ.nf XZ.in 0 XZ.cs CW 20 XZ.ft CW XZ XZ/dev/xp0a / ufs rw 1 1 XZ/dev/xp0b none swap sw 0 0 XZ/dev/xp0g /usr ufs rw 1 2 XZ.fi XZ.PP XZThis is a bit of a "trick question". /dev/xp0b is used as a swap device, XZso it doesn't consume a mount point, while /dev/xp0a and /dev/xp0g do. In this XZcase, you have four more available mount points with the default NMOUNT setting XZof 6. XZ.NH 2 XZBuilding a new kernel XZ.PP XZThe kernel configuration of each UNIX system is described by XZa single configuration file, stored in the \fI/sys/conf\fP directory. XZThe format of this file is very simple consisting of lines starting with XZan \fIidentifier\fP followed by a \fIvalue\fP. Blank lines and anything XZpast a ``#'' (including the #) are comments. This file is processed by the XZshell script \fIconfig\fP in the same directory. XZThe manual pages in Section 4 of the UNIX man pages specify the configuration XZlines necessary for various devices. XZ.PP XZThe configuration file \fIGENERIC\fP in the conf directory was used to XZbuild the generic distribution kernel. To build a local configuration XZfile, copy \fIGENERIC\fR to a new file \fIMYSYSTEM\fP, edit \fIMYSYSTEM\fP XZfor your desired system configuration, and then type "./config \fIMYSYSTEM\fP". XZThis will create the directory \fI../MYSYSTEM\fP and copy specially edited XZfiles into based on the definitions in \fIMYSYSTEM\fP. Change directory into XZthe new system directory and type \fImake all\fR.\(dg XZ.FS XZ.IP \(dg XZIf your system does not have a floating-point processor (this only applies to XZthe PDP-11/44 and /70) you will need to enable the floating-point emulator via XZthe FPSIM kernel configuration option, as only the GENERIC kernel has floating XZpoint emulation installed. If you do not enable FPSIM, your new kernel will XZhang after printing the memory sizes. This restriction will likely be lifted in XZa future Patch Level. XZ.FE XZ.PP XZPrototypes for all configurable options can be found in the generic XZkernel configuration file \fI/sys/conf/GENERIC\fP. You can treat the items XZcopied from GENERIC as a ``grocery list'', checking off those options you want, XZcrossing out those you don't and setting numeric parameters to reasonable XZvalues. A An additional kernel configuration file, /sys/conf/EXAMPLE is also XZprovided, showing the changes needed to enable networking support. The exact XZsteps are shown below: XZ.DS XZ\fB#\fP cp GENERIC \fIMYSYSTEM\fP XZ\fB#\fP TERM=\fIterminal_type\fP; export TERM XZ\fB#\fP vi \fIMYSYSTEM\fP (or whatever your favorite editor is) XZ\fB#\fP ./config \fIMYSYSTEM\fP XZ\fB#\fP cd ../\fIMYSYSTEM\fP XZ\fB#\fP make XZ.DE XZ.PP XZNote that the overlay scheme in the Makefile copied into the new system XZdirectory may fail because either the \fIbase segment\fP is too small, too XZlarge or one or more \fIoverlay segments\fP are too large. If this XZhappens the system object files will have to be rearranged in the \fIbase\fP XZand \fIoverlay\fP segments. The comments in the Makefile should make it XZfairly clear what the restrictions on object placement are in the system. XZ.PP XZThe following is an example of the display the Makefile produces when XZreporting the size of the base and overlay segments: XZ.PP XZ.nf XZ.in +0.5i XZ.cs CW 20 XZ.ft CW XZsize unix XZtext data bss dec hex XZ57088 5844 34182 97114 17b5a total text: 108928 XZ overlays: 7808,7488,8128,7296,2240,7744,5440,5696 XZ.fi XZ.PP XZEach of the overlay segments must be kept to under 8KB in size and you cannot XZhave a zero-size overlay between two occupied overlays. You can use XZthe \fIsize\fR command on a file (use the "text" number returned by that XZcommand) to see how much space a given object file would add to or remove XZfrom an overlay when editing the Makefile. Be careful and try to move object XZfiles between overlays, rather than moving things from the base to an XZoverlay - many object files in the base need to remain there. \fBNOTE:\fR XZEach time you use the \fIconfig MYSYSTEM\fR command, the Makefile will be XZoverwritten. If your kernel required editing the Makefile to rearrange the XZoverlays, you should keep track of those changes, as you will need to re-apply XZthem to the new Makefile. XZ.PP XZThe configured system image ``\fIunix\fR''\(dd XZ.FS XZ.IP \(dd XZOn networked systems there are two images, \fIunix\fP and \fInetnix\fP. XZ.FE XZshould be XZcopied to the root, and then booted to try it out. XZIt is best to first save the old kernel file(s) to a known name so as not to XZbreak the working system until you're sure the new one does work. It is a XZ\fBbetter\fP idea to also always keep the generic non network kernel (renamed XZto \fI/genunix\fR) on the system. On "canned" (prebuilt) disk images, the XZ\fI/genunix\fR kernel has already been installed for you. XZ.PP XZFor kernels built without networking, the steps would be: XZ.DS XZ\fB#\fP cp /unix /oldunix XZ\fB#\fP make install XZ\fB#\fP sync XZ.DE XZ.PP XZFor kernels built with networking, the steps would be: XZ.DS XZ\fB#\fP cp /unix /oldunix XZ\fB#\fP cp /netnix /oldnetnix XZ\fB#\fP make install XZ\fB#\fP sync XZ.DE XZ.PP XZ\fBIMPORTANT NOTE: \fR\fI/unix\fR and \fI/netnix\fR are a "matched set" and XZshould be treated as such. A mismatch will lead to a crash at system boot XZtime, as will a \fI/unix\fR built with networking, but missing its matched XZ\fI/netnix\fR. For these reasons, we suggest XZalways keeping the GENERIC distribution kernel as \fI/genunix\fR - it will XZwork on most hardware and does not depend on networking. After you boot XZ\fI/genunix\fR, you can either fall back to your previous kernel (by copying XZthe \fI/old*nix\fR files back to the expected names) or perform other recovery XZtasks as may be needed. XZ.PP XZ\fBNOTE:\fR When booting from a kernel that is not XZnamed \fI/unix\fR (for example, \fI/genunix\fR) you will see a pair of console XZmessages like these: XZ.DS XZautoconfig: /unix is not the running version. XZinit: configuration setup error XZ.DE XZ.PP XZThis is just to warn you that you are in a recovery environment and is XZotherwise harmless. XZ.PP XZIt is advisable to reboot the system relatively soon after installing a new XZkernel, otherwise various utilities that read kernel memory will be using an XZincorrect kernel symbol table and can produce error messages or other XZunexpected results: XZ.DS XZ\fB#\fP shutdown -r \fItime\fR XZ.DE XZ.PP XZIf you are the only user on the system and have no other software running, you XZcan use 'now' for \fItime\fR. If there are other users on the system, it is XZpolite to give them some time to save their work and log off before rebooting. XZ.NH 2 XZGENERIC kernel configuration XZ.PP XZThe GENERIC kernel supports the following devices: XZ.TS XZl n. XZDevice Number XZ_ XZRK05 8 XZRK06/07 2 XZMSCP (RA) Controllers 2 XZMSCP (RA) Disks 3 XZRL01/02 Drives 4 XZSMD (XP) Controllers 1 XZSMD (XP) Disks 2 XZTE16, TU45, TU77 (HT) Tape drives 2 XZTM11 (TM) Tape drives 2 XZTS11 (TS) Tape drives 2 XZTK50/TU81 (TMSCP) Tape drives 2 XZ.TE XZ.PP XZThe generic kernel adapts automatically to the booted device. The `a' XZpartition on the booted device is automatically made the root filesystem XZand the `b' partition the swap area. The size of the swap partition is XZdetermined at run time, the kernel queries the driver for the number of blocks XZin the `b' partition. \fBNOTE:\fP If the swap partition is not labeled as XZbeing of type \fIswap\fP the kernel will panic. XZ.NH 3 XZGENERIC kernel configuration file XZ.PP XZ.nf XZ.in 0 XZ.cs CW 20 XZ.ft CW XZ.so GENERIC.out XZ.fi XZ.NH 2 XZEXAMPLE kernel configuration file with networking XZ.PP XZThis is an example kernel configuration, showing the necessary changes to XZcustomize the GENERIC kernel for specific hardware, add networking, and XZso on. XZ.NH 3 XZEXAMPLE kernel configuration file with networking XZ.PP XZ.nf XZ.in 0 XZ.cs CW 20 XZ.ft CW XZ.so EXAMPLE.out XZ.fi XZ.cs R XSHAR_EOF Xchmod 644 'a.t' Xfi Xif test -f 'b.t' Xthen X echo shar: "will not over-write existing file 'b.t'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'b.t' XZ.\" Placed in the public domain June 17, 1995. XZ.\" XZ.\" @(#)b.t 3.0 (2.11BSD) 2026/11/09 XZ.\" XZ.de IR XZ\fI\\$1\fP\|\\$2 XZ.. XZ.ds LH "Installing/Operating \*(2B XZ.nr H1 8 XZ.nr H2 0 XZ.ds RH "Appendix B \- standalone disklabel program XZ.ds CF \*(DY XZ.bp XZ.LG XZ.B XZ.ce XZAPPENDIX B \- STANDALONE DISKLABEL PROGRAM XZ.sp 2 XZ.R XZ.NL XZ.NH 2 XZStandalone disklabel program XZ.PP XZThe standalone disklabel program is the second file on a boot tape (after XZthe boot blocks and boot program). It is used to place an initial label XZon a disk XZdescribing the disk and its partitions. The program is also used when the XZroot ('a') or swap ('b') partitions of a previously labeled system disk must XZbe modified. The second use is mandated because the XZroot and swap partitions cannot be modified while the kernel has them XZopen. XZ.PP XZ\fIdisklabel\fP effectively runs in CBREAK mode \- you do not need to XZhit the RETURN key except when prompted for a multicharacter response XZsuch as a string (the pack label) or a number (partition size). XZDefaults are placed inside square brackets ([default]). Entering XZRETURN accepts the default. XZ.PP XZThe program is organized into several levels. \fIdisklabel\fP prints the XZcurrent level out before prompting. At each level there is XZalways the choice of d(isplaying) the current label and q(uit)ing the current XZlevel and returning to the previous level. If you are at the top level XZand enter \fBq\fP the program will exit back to \fBBoot\fP unless you have made XZchanges to the disklabel. In that case you will be asked if you wish XZto discard the changes, if you answer \fBy\fP the changes will be discarded. XZIf the answer is \fBn\fP the \fBq\fP is ignored and \fIdisklabel\fP does XZnot exit. XZ.PP XZIn the following paragraphs the convention is to \fBbold\fP the user input XZwhile leaving the output from \fIdisklabel\fP in normal type. The devices XZused were a TK50 and an RD54, thus the tape device is \fBtms\fP and the XZdisk device is \fBra\fP. XZ.PP XZThe TK50 was booted resulting in the usual message from \fBBoot\fP: XZ.DS XZ73Boot from tms(0,0,0) at 0174500 XZ: \fBtms(0,1)\fP XZ.DE XZ.NH 2 XZDisklabel \- tour of the levels XZ.PP XZThe following is an annotated example of the options in \fIdisklabel\fR: XZ.DS XZBoot: bootdev=06001 bootcsr=0174500 XZdisklabel XZDisk? \fBra(0,0)\fP XZd(isplay) D(efault) m(odify) w(write) q(uit)? \fBm\fP XZ.DE XZ.in +0.8i XZThe 'D' option will request \fIdisklabel\fP to create a default label based XZon what the program can determine about the drive. For some devices, such XZas RL01/02, RK06/07, MSCP (RD54, RA81, etc.), \fIdisklabel\fP can XZdetermine what the drive type is and how many sectors it has. For other XZdevices, such as SMD drives supported by the \fBxp\fP driver, the task is XZcomplicated by the number of different controllers and emulations supported. XZSome 3rd party controllers have capabilities that DEC controllers do not and XZthe \fBxp\fP has no way of knowing exactly which type of controller is XZpresent. In this case \fIdisklabel\fP will \fBguess\fP and then depend on XZyou to enter the correct data. XZ.in -0.8i XZ.DS XZmodify XZd(isplay) g(eometry) m(isc) p(artitions) q(uit)? \fBg\fP XZmodify geometry XZd(isplay) s(ector/trk) t(rk/cyl) c(yl) S(ector/cyl) q(uit)? \fBq\fP XZ.DE XZ.in +0.8i XZThe Sector/cyl entry is rarely used. \fIdisklabel\fP will calculate XZthis quantity for you from the sector/trk and trk/cyl quantities. XZ.br XZ.in -0.8i XZ.DS XZmodify XZd(isplay) g(eometry) m(isc) p(artitions) q(uit)? \fBm\fP XZd(isplay) t(ype) n(ame) l(abel) f(lags) r(pm) D(rivedata) q(quit)? \fBf\fP XZ.DE XZ.in +0.8i XZType is one of: SMD, MSCP, old DEC, SCSI, ESDI, ST506, floppy. XZ.sp XZName is a string up to 16 characters in length. It is typically XZsomething like \fBrd54\fP or \fBrm03\fP but may be any meaningful string. XZ.sp XZLabel is an arbitrary string up to 16 characters in length \- nothing in XZthe system checks for or depends on the contents of the pack label string. XZ.sp XZRPM is the rotational speed of the drive. Nothing in the system uses XZor depends on this at the present time. Default is 3600. XZ.sp XZDrivedata consists of 5 longwords of arbitrary data. Reserved for future use. XZ.br XZ.in -0.8i XZ.DS XZmodify misc flags XZd(isplay) c(lear) e(cc) b(adsect) r(emovable) q(uit)? \fBq\fP XZ.DE XZ.in +0.8i XZECC says that the controller/driver can correct errors. XZ.sp XZBadsect indicates that the controller/driver supports bad sector replacement. XZ.sp XZRemovable indicates that the drive uses removable media (floppy, RL02, XZRA60 for example). XZ.br XZ.in -0.8i XZ.DS XZmodify misc XZd(isplay) t(type) n(ame) l(abel) f(lags) r(pm) D(rivedata) q(uit)? \fBq\fP XZmodify XZd(isplay) g(eometry) m(isc) p(artitions) q(uit)? \fBp\fP XZmodify partitions XZd(isplay) n(umber) s(elect) q(uit)? \fBn\fP XZNumber of partitions (8 max) [7]? \fB7\fP XZ.DE XZ.in +0.8i XZThis is the highest partition number considered to be valid. XZ\fIdisklabel\fP will adjust this parameter semi-automatically at the XZ\fBp\fP level but it may be necessary to use \fBn\fP in cases where XZsome partitions are not to be used or contain invalid information. XZ.br XZ.in -0.8i XZ.DS XZmodify partitions XZd(isplay) n(umber) s(elect) q(uit)? \fBs\fP XZa b c d e f g h q(uit)? \fBa\fP XZsizes and offsets may be given as sectors, cylinders XZor cylinders plus sectors: 6200, 32c, 19c10 respectively XZmodify partition 'a' XZd(isplay) z(ero) t(ype) o(ffset) s(ize) f(rag) F(size) q(uit)? \fBq\fP XZ.DE XZ.in +0.8i XZZero clears the size and offset fields of a partition entry and sets the XZfilesystem type to \fBunused\fP. XZ.sp XZType is the filesystem type and of the possible choices only \fB2.11BSD\fP, XZ\fBswap\fP and \fBunused\fP make any sense to specify. XZ.sp XZOffset is the number of sectors from the beginning of the disk at which the XZpartition starts. XZ.sp XZSize is the number of sectors which the partition occupies. XZ.sp XZFrag is the number of fragments a filesystem block can be broken into. XZIt is not presently used and should be left at the default of 1. XZ.sp XZFsize is the filesystem block size and should be left at the default of XZ1024. XZ.in -0.8i XZ.DS XZmodify partitions XZd(isplay) n(umber) s(elect) q(uit)? \fBq\fP XZmodify XZd(isplay) g(eometry) m(isc) p(artitions) q(uit)? \fBq\fP XZd(isplay) D(efault) m(odify) w(write) q(uit)? \fBq\fP XZLabel changed. Discard changes [y/n]? \fBy\fP XZ XZ73Boot from tms(0,0,1) at 0174500 XZ.DE XZ.NH 2 XZDisklabel \- helpful hints and tips. XZ.PP XZDefine only those partitions you actually will use. There is no need to XZset up all 8 partitions. Drives less than 200MB probably will only have XZ3 partitions defined, 'a', 'b' and 'd' for /, swap and /usr respectively. XZRemember to set the number of partitions. Disklabel will attempt to do this XZfor you by keeping track of the highest partition you modify but this is XZnot foolproof. XZ.PP XZFor each of the drives supported in \fI/etc/disktab\fR, the following section XZshows the partitions used, their size, offset, and type. You do not need to XZuse these definitions, but they have been proven to work. So, it is suggested XZthat you perform at least your initial installation using the values found XZin the following section. XZ.PP XZ\fBNOTE:\fR It is a good idea to use cylinder numbers for the size and offset XZparameters, for example a 'g' partition starting at cylinder 45 (offset) and a XZsize of 500 cylinders. This will make the math easier to deal with, as XZotherwise you are dealing with sector numbers, which can get quite large. XZAnother benefit is that both the standalone and system \fIdisklabel\fP XZutilities will display an asterisk (*) if you define a partition which does not XZstart or end on a cylinder boundary. XZ.PP XZDo not define overlapping partitions unless you are sure what you are XZdoing. \fIdisklabel\fP will warn you of overlapping partitions but will XZnot prohibit you from writing such a label to disk. XZ.PP XZThe root `a' partition should be large enough for the kernel, essential XZprograms, /var (for mail, logfiles, etc) and temporary files used by editors, XZcompilers, etc. \fIfsck(1)\fR \fBmust\fR be able to check the root filesystem XZwithout use of a temporary file. A size of 8 to 10MB is usually sufficient, XZbut do not exceed 16MB!\(dg XZ.FS XZ.IP \(dg XZThe reason for the size limitation is that if \fIfsck\fR does not have enough XZmemory available to perform the filesystem check, it will need the use of a XZtemporary file. Since only the root partition is available at this point and XZ\fIfsck\fR can't place the temporary file on the filesystem it is checking, it XZbecomes impossible to perform a filesystem check. XZ.FE XZ.PP XZThe swap `b' partition must be at least 0.5MB larger than the size of main XZmemory so that in the event of a system crash the contents of main memory can XZbe written to the 'b' partition. Since most emulated systems will be running XZwith a full 4MB of memory configured, this works out to a recommended size of XZ4.5 to 5MB for the 'b' partition. The extra space is so that the system can be XZbooted and begin running without overwriting the crash dump. XZ.PP XZRemember that the prompt levels nest in \fIdisklabel\fP. It will be necessary XZin several cases to enter multiple \fBq\fP commands to get back to the top XZlevel. XZ.PP XZ.B IMPORTANT: XZKeep at least 1, preferably more, bootable tape or floppy with XZ\fIdisklabel\fP on it present at all times. If the label on a disk XZever becomes corrupted the kernel will be very unhappy and probably won't XZboot. If this happens you will need to boot the standalone \fIdisklabel\fP XZprogram and relabel the disk. At least \*(2B provides a standalone XZ\fIdisklabel\fP \- previous 4BSD systems which implemented disk labels did not XZand the cold-start of those systems was painful indeed. XZ.PP XZ.B IMPORTANT: XZWrite down in at least one place, and keep with the tape/floppy mentioned XZabove, the geometry and partition layout you assign to the disk. The XZ\fIdisklabel\fR\|(8) program should be used to produce a hardcopy of the XZdisklabel. XZ.NH 2 XZStandalone disklabel example XZ.PP XZThis is a real example of using the disklabel program to place a label XZon a disk. User input is in \fBbold\fP type. The disklabel program was XZloaded from a bootable TK50. The disk being labeled in a RD54. The BOOT> XZprompt is from the 11/73 console ODT, if you are using an 11/44 the prompt XZwill be >>>. XZ.PP XZThe first thing that is done is request disklabel to create a default XZpartition (`a') which spans the entire disk. Some disk types have fixed XZsizes and geometries, for example RK05 (rk), RK06/7 (hk) and RL02 (rl) XZdrives. With this type of disk, the standalone disklabel program will generate XZa label with the correct geometry and `a' partition size. With MSCP (`ra') XZdisks disklabel will query the controller for the information it needs. The XZlast type of disk, SMD (xp), presents many problems, disklabel will attempt XZto determine the drive type and geometry but you will have to verify the XZinformation. XZ.sp XZ.in +0.8i XZIndented paragraphs like this one are explanatory comments and XZare not part of the output from the disklabel program. In the case of MSCP XZdrives the number of cylinders may be 1 too low. This is discussed in the XZexample below. XZ.in -0.8i XZ.DS XZBOOT> \fBMU0\fP XZ XZ73Boot from tms(0,0,0) at 0174500 XZ: \fBtms(0,1)\fP XZBoot: bootdev=06001 bootcsr=0174500 XZdisklabel XZDisk? \fBra(0,0)\fP XZd(isplay) D(efault) m(odify) w(rite) q(uit)? \fBD\fP XZd(isplay) D(efault) m(odify) w(rite) q(uit)? \fBd\fP XZ XZtype: MSCP XZdisk: RD54 XZflags: XZbytes/sector: 512 XZsectors/track: 17 XZtracks/cylinder: 15 XZsectors/cylinder: 255 XZcylinders: 1220 XZrpm: 3600 XZdrivedata: 0 0 0 0 0 XZ XZ1 partitions: XZ# size offset fstype [fsize bsize] XZ a: 311200 0 2.11BSD 1024 1024 # (Cyl. 0 - 1220*) XZ XZ.DE XZ.in +0.8i XZThe columns do not line up nicely under the headings due to limitations XZof the sprintf() routine in the standalone I/O package. There is no XZcapability to justify the output. It should be obvious which column XZbelongs under which heading. The '*' says that the partition does not XZend on a cylinder boundary. This is due to the peculiar way in which XZMSCP returns the geometry information: sectors/track * tracks/cylinder * XZcylinders != sectors per volume. XZ.sp XZ.in -0.8i XZ.DS XZd(isplay) D(efault) m(odify) w(rite) q(uit)? \fBm\fP XZmodify XZd(isplay) g(eometry) m(isc) p(artitions) q(uit)? \fBm\fP XZ.DE XZ.in +0.8i XZIt is normally not necessary to change the geometry of an MSCP disk. On XZthe other hand, it will almost always be necessary to specify the geometry XZof an SMD drive (one which uses the XP driver). Since the drive being XZlabeled is an MSCP drive the next step is to set the pack label to something XZother than DEFAULT. XZ.in -0.8i XZ.DS XZmodify misc XZd(isplay) t(ype) n(ame) l(able) f(lags) r(pm) D(rivedata) q(uit)? \fBl\fP XZlabel [DEFAULT]: \fBTESTING\fP XZmodify misc XZd(isplay) t(ype) n(ame) l(able) f(lags) r(pm) D(rivedata) q(uit)? \fBq\fP XZmodify XZd(isplay) g(eometry) m(isc) p(artitions) q(uit)? \fBp\fP XZmodify partitions XZd(isplay) n(umber) s(elect) q(uit)? \fBd\fP XZ XZtype: MSCP XZdisk: RD54 XZflags: XZbytes/sector: 512 XZsectors/track: 17 XZtracks/cylinder: 15 XZsectors/cylinder: 255 XZcylinders: 1220 XZrpm: 3600 XZdrivedata: 0 0 0 0 0 XZ XZ1 partitions: XZ# size offset fstype [fsize bsize] XZ a: 311200 0 2.11BSD 1024 1024 # (Cyl. 0 - 1220*) XZ XZmodify partitions XZd(isplay) n(umber) s(elect) q(uit)? \fBs\fP XZa b c d e f g h q(uit)? \fBa\fP XZsizes and offsets may be given as sectors, cylinders XZor cylinders plus sectors: 6200, 32c, 19c10s respectively XZmodify partition 'a' XZd(isplay) z(ero) t(ype) o(ffset) s(ize) f(rag) F(size) q(uit)? \fBs\fP XZ\'a' size [311200]: \fB15884\fP XZd(isplay) z(ero) t(ype) o(ffset) s(ize) f(rag) F(size) q(uit)? \fBq\fP XZmodify partitions XZd(isplay) n(umber) s(elect) q(uit)? \fBs\fP XZa b c d e f g h q(uit)? \fBb\fP XZsizes and offsets may be given as sectors, cylinders XZor cylinders plus sectors: 6200, 32c, 19c10s respectively XZmodify partition 'b' XZd(isplay) z(ero) t(ype) o(ffset) s(ize) f(rag) F(size) q(uit)? \fBo\fP XZ\'b' offset [0]: \fB15884\fP XZmodify partition 'b' XZd(isplay) z(ero) t(ype) o(ffset) s(ize) f(rag) F(size) q(uit)? \fBs\fP XZ\'b' size [0]: \fB16720\fP XZmodify partition 'b' XZd(isplay) z(ero) t(ype) o(ffset) s(ize) f(rag) F(size) q(uit)? \fBt\fP XZ\'b' fstype [unused]: \fBswap\fP XZmodify partition 'b' XZd(isplay) z(ero) t(ype) o(ffset) s(ize) f(rag) F(size) q(uit)? \fBq\fP XZmodify partitions XZd(isplay) n(umber) s(elect) q(uit)? \fBs\fP XZa b c d e f g h q(uit)? \fBc\fP XZsizes and offsets may be given as sectors, cylinders XZor cylinders plus sectors: 6200, 32c, 19c10s respectively XZmodify partition 'c' XZd(isplay) z(ero) t(ype) o(ffset) s(ize) f(rag) F(size) q(uit)? \fBo\fP XZ\'c' offset [0]: \fB0\fP XZmodify partitions 'c' XZd(isplay) z(ero) t(ype) o(ffset) s(ize) f(rag) F(size) q(uit)? \fBs\fP XZ\'c' size [0]: \fB311200\fP XZmodify partitions 'c' XZd(isplay) z(ero) t(ype) o(ffset) s(ize) f(rag) F(size) q(uit)? \fBt\fP XZ\'c' fstype [unused]: \fBunused\fP XZmodify partitions 'c' XZd(isplay) z(ero) t(ype) o(ffset) s(ize) f(rag) F(size) q(uit)? \fBq\fP XZmodify partitions XZd(isplay) n(umber) s(elect) q(uit)? \fBs\fP XZa b c d e f g h q(uit)? \fBg\fP XZsizes and offsets may be given as sectors, cylinders XZor cylinders plus sectors: 6200, 32c, 19c10s respectively XZmodify partition 'g' XZd(isplay) z(ero) t(ype) o(ffset) s(ize) f(rag) F(size) q(uit)? \fBo\fP XZ\'g' offset [0]: \fB32604\fP XZmodify partition 'g' XZd(isplay) z(ero) t(ype) o(ffset) s(ize) f(rag) F(size) q(uit)? \fBs\fP XZ\'g' size [0]: \fB278596\fP XZmodify partition 'g' XZd(isplay) z(ero) t(ype) o(ffset) s(ize) f(rag) F(size) q(uit)? \fBt\fP XZ\'g' fstype [unused]: \fB2.11BSD\fP XZmodify partition 'g' XZd(isplay) z(ero) t(ype) o(ffset) s(ize) f(rag) F(size) q(uit)? \fBq\fP XZmodify partitions XZd(isplay) n(umber) s(elect) q(uit)? \fBn\fP XZNumber of partitions (8 max) [7]? \fB7\fP XZmodify partitions XZd(isplay) n(umber) s(elect) q(uit)? \fBq\fP XZmodify XZd(isplay) g(eometry) m(isc) p(artitions) q(uit)? \fBd\fP XZ XZtype: MSCP XZdisk: RD54 XZlabel: TESTING XZflags: XZbytes/sector: 512 XZsectors/track: 17 XZtracks/cylinder: 15 XZsectors/cylinder: 255 XZcylinders: 1220 XZrpm: 3600 XZdrivedata: 0 0 0 0 0 XZ XZ7 partitions: XZ# size offset fstype [fsize bsize] XZ a: 15884 0 2.11BSD 1024 1024 # (Cyl. 0 - 62*) XZ b: 16720 15884 swap # (Cyl. 62*- 127*) XZ c: 311200 0 unused 1024 1024 # (Cyl. 0 - 1220*) XZ g: 278596 32604 2.11BSD 1024 1024 # (Cyl. 127- 1220*) XZ XZmodify XZd(isplay) g(eometry) m(isc) p(artitions) q(uit)? \fBq\fP XZ.DE XZ.in +0.8i XZOn MSCP disks it is possible you will see a warning error like this: XZ.sp XZpartition c: extends past end of unit 0 311200 311100 XZ.br XZpartition g: extends past end of unit 32604 278596 311100 XZ.sp XZThis is not cause for panic. What this is saying is that the number of XZcylinders is one too low. MSCP devices do not necessarily use all of the XZlast cylinder. The total number of blocks is precisely known for MSCP XZdevices (it is returned in the act of bringing the drive online). XZHowever, the number of sectors on the volume is not necessarily evenly XZdivisible by the number of sectors per track (311200 divided by 17*15 gives XZ1220.392). Basically, the last cylinder is not fully used. What must be done XZis raise the number of cylinders by 1. XZ.sp XZ\fBNOTE:\fP For any other disk type, it is cause for concern if the warning XZabove is issued \- it means that incorrect partition or geometry information XZwas entered by the user and needs to be corrected. XZ.sp XZ.in -0.8i XZ.DS XZd(isplay) D(efault) m(odify) w(rite) q(uit)? \fBm\fP XZmodify XZd(isplay) g(eometry) m(isc) p(artitions) q(uit)? \fBg\fP XZmodify geometry XZd(isplay) s(ector/trk) t(rk/cyl) c(yl) S(ector/cyl) q(uit)? \fBc\fP XZcylinders [1220]: \fB1221\fP XZmodify geometry XZd(isplay) s(ector/trk) t(rk/cyl) c(yl) S(ector/cyl) q(uit)? \fBq\fP XZmodify XZd(isplay) g(eometry) m(isc) p(artitions) q(uit)? \fBq\fP XZd(isplay) D(efault) m(odify) w(rite) q(uit)? \fBw\fP XZd(isplay) D(efault) m(odify) w(rite) q(uit)? \fBq\fP XZ XZ73Boot from tms(0,0,1) at 0174500 XZ: \fBra(1,0,0)unix\fP XZra1 csr[00]: \fB0172154\fP XZ.DE XZ.in +0.8i XZThe last string entered shows how I boot from an alternate controller. In XZnormal use, i.e. with a single MSCP controller, the string would simply XZbe \fBra(0,0)unix\fP. XZ.NH 2 XZData extracted from the \fI/etc/disktab\fB file\fR XZ.PP XZThe following list of disk models shows the values from the \fI/etc/disktab\fR XZfile which are relevant to the standalone \fIdisklabel\fR program. XZ.PP XZ.nf XZ.in 0 XZ.cs CW 20 XZ.ft CW XZ.so disktab.out XZ.fi XZ.cs R XSHAR_EOF Xchmod 644 'b.t' Xfi Xif test -f 'c.t' Xthen X echo shar: "will not over-write existing file 'c.t'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'c.t' XZ.\" Copyright (c) 1980 Regents of the University of California. XZ.\" All rights reserved. The Berkeley software License Agreement XZ.\" specifies the terms and conditions for redistribution. XZ.\" XZ.\" @(#)c.t 3.0 (2.11BSD) 2026/11/08 XZ.\" XZ.de IR XZ\fI\\$1\fP\|\\$2 XZ.. XZ.ds LH "Keeping your \*(2B system up-to-date XZ.nr H1 9 XZ.nr H2 0 XZ.ds RH "Appendix C \- keeping your 2.11BSD system up-to-date XZ.ds CF \*(DY XZ.bp XZ.LG XZ.B XZ.ce XZAPPENDIX C \- KEEPING YOUR 2.11BSD SYSTEM UP-TO-DATE XZ.sp 2 XZ.R XZ.NL XZ.NH 2 XZPL499 and earlier XZ.PP XZIt is recommended (particularly if you are using an emulator, as hardware XZis free) that you either perform a new install of the Patch Level 500 tape or XZinstall one of the "canned" (pre-built) Patch Level 500 disk images and then XZmerge or copy your local changes. XZ.NH 3 XZIntentional breaking changes XZ.PP XZIn the 35 years since 2.11BSD was first released, there have been a number of XZ"breaking changes", such as the introduction of longer file names, the XZconversion of the C compiler and system sources to ANSI C, and so on. Even if XZyou have a 2.11BSD system correctly at an earlier patch level, the effort to XZapply multiple patches (many of which have additional manual steps as XZdescribed in the specific patch, so you can't just queue up a dozen or so patch XZinstallations and come back to an updated system) likely does not justify XZincremental patching. XZ.NH 3 XZIncomplete or entirely missing patches XZ.PP XZThere have been a number of unofficial releases, both as distribution tapes as XZwell as bootable disk images, where some patches were missed completely or the XZpatch's post-installation tasks were partially or completely skipped. XZ.PP XZThis can be particularly annoying because (for example) an old file that XZshould have been removed in a post-installation task may cause a subsequent XZpatch to fail. It might not be the next patch, either - you could successfully XZinstall the next dozen or so patches, then run into problems as a new patch XZattempts to patch a file, but fails because a previous patch left the file in XZan incorrect state. You will likely spend more time trying to figure out what XZwent wrong than you would have if you just installed Patch Level 500 from tape XZor one of the "canned" PL500 disk images. XZ.NH 3 XZC library routine prototypes XZ.PP XZMany C library routines that were previously missing prototype declarations XZare now properly prototyped. This means that existing C source files that XZcompiled on earlier 2.11BSD systems may generate new errors. These errors are XZusually caused by either using a variable name which conflicts with a function XZin the C library, or where the source file declared a C library function with XZa different prototype than the new C library declaration. XZ.NH 3 XZRecent changes to the system startup scripts XZ.PP XZPatch Level 500 can leave you with different system startup scripts depending XZon how you got to PL500. XZ.PP XZIf you successfully upgraded to PL500 via patching (and not a fresh install) XZthe system will leave the existing startup scripts unchanged. This is because XZthese are among the most frequently customized parts of the system and XZautomated conversion to the new style would likely be impossible. XZ.PP XZIf you performed a new install of Patch Level 500, you will find the startup XZsettings have been centralized in \fI/etc/rc.conf\fR, more closely following XZwhat the other *BSD flavors do. XZ.PP XZWhile both old-style and new-style startup scripts are supported on PL500, XZfuture patch levels will likely only provide changes to the new-style startup. XZDespite this, if you are determined to manually patch your way to PL500, you XZcan follow the instructions for PL500 and later, found below. XZ.NH 2 XZPL500 and later XZ.PP XZOnce your system is at PL500, keeping it up-to-date should be much less work XZfor you. The following provides a general overview of the installation of a new XZPatch Level. Depending on what is changed in the new Patch Level, you will XZusually need to execute a post-installation script and/or type individual XZcommands yourself. XZ.NH 3 XZNotification of new Patch Levels XZ.PP XZNew Patch Levels are often announced in a number of places. These announcements XZare made by users, so they should be treated as "unofficial". The definitive XZway to check for new patches is at any of the following sites: XZ.DS XZftp://ftp.dfupdate.se/pub/pdp11/2.11BSD XZhttps://www.tuhs.org/Archive/Distributions/UCB/2BSD/2.11BSD XZftp://ftp.2bsd.com/2.11BSD XZhttp://www.2bsd.com/2.11BSD XZ.DE XZ.PP XZUnofficial announcements may appear at: XZ.DS XZThe HECnet mailing list XZThe Vintage Computer Federation's DEC forum XZThe Google Groups PiDP-11 list XZ.DE XZ.NH 3 XZDetermining the current Patch Level XZ.PP XZWhile logged in to your 2.11BSD system, you can issue the command: \fIhead -2 XZ/VERSION\fP, which will report the current Patch Level and date. As of this XZrelease, that command would produce this output: XZ.DS XZCurrent Patch Level: 500 XZDate: October 11, 2026 XZ.DE XZ.PP XZEach time a new Patch Level is installed, this file is updated. You should also XZcheck the Patch Log using the command \fIcat /PATCH-LOG\fP. It will report the XZdate each patch was installed, as well as an optional comment describing the XZpatch. Note that this file contains the history of all patching on the system, XZshowing the date a particular patch was installed (not the patch release date). XZ.PP XZIt is \fBimportant\fP to carefully examine this list to make sure there are no XZmissing Patch Levels, and that they were all applied in the proper order. If XZyou encounter a missing Patch Level, download the patch and look it over. XZSometimes the missing one(s) can simply be applied out of sequence with no ill XZeffects. In other cases, installing a missing one may fail due to system files XZnot having the expected contents. The converse can happen as well, where an XZearlier missed Patch Level causes a more recent one to fail. Recovering from XZeither of these situations will require careful examination of each missed or XZout of sequence one. This will likely require you to have detailed knowledge of XZthe internals of 2.11BSD. Or you can ask for assistance on any of the various XZforums or mailing lists where 2.11BSD is discussed. XZ.PP XZA current \fI/PATCH-LOG\fP file will look like this: XZ.DS XZPatch 500 applied Thu Sep 17 18:47:38 CDT 2026 XZSystem now at 2.11BSD 35th Anniversary Edition (PL500) Thu Sep 17 19:47:38 CDT 2026 XZ.DE XZ.PP XZA hypothetical example of a more complex file will look like this (note that XZthis is a made-up example for this document - as of the writing of this XZdocument, Patch Level 501 has not been released). XZ.DS XZPatch 500 applied Thu Sep 17 18:47:38 CDT 2026 XZSystem now at 2.11BSD 35th Anniversary Edition (PL500) Thu Sep 17 19:47:38 CDT 2026 XZPatch 501 applied Thu Apr 1 22:33:59 EST 2027 XZ.DE XZ.NH 2 XZInstalling a new Patch Level XZ.PP XZInstalling a new Patch Level involves determining which is the most recent one XZinstalled and making sure there are no missing ones, as discussed in the XZprevious section. Then, download any Patch Level(s) newer than the one your XZsystem is currently at, and examine and install each one in order. They are XZdistributed as human-readable files (the filename will contain the particular XZPatch Level number), and you can view them using the \fImore\fR paging utility. XZThe following describes the patching process. \fBIMPORTANT:\fR This is an XZexample only. If you are starting with a PL500 system, all patches through XZPL500 have already been applied. XZ.NH 3 XZBack up your existing system (optional, but strongly recommended) XZ.PP XZInstalling patches can involve "sawing off the branch you're standing on" if XZyou make a typo, miss a step, or execute a step out of order. Therefore, we XZstrongly recommend that you back up your 2.11BSD disk(s) before installing any XZpatches. If you are running 2.11BSD under an emulator, this can be as easy as XZshutting down the emulated PDP-11 system and then making copies of the disk XZcontainer file(s). We suggest that you include the current date or other XZdescriptive information in the backup file name(s), then restart the XZemulator and install the patch(es). If you are running on an actual PDP-11, XZbackup procedures could involve physical disk-to-disk copy processes XZ(mirroring the procedure when using an emulator), backing up to a tape drive, XZand so on. Due to the large number of possible PDP-11 configurations, it is XZimpossible to document all possible cases here. However, if you are lucky XZenough to have an actual PDP-11 system, you are likely familiar with backup XZprocedures already. XZ.NH 3 XZViewing the patch description XZ.PP XZAs explained above, each Patch Level file is distributed as a plain text file. XZEach file begins with a Subject: line which explains what the file fixes or XZimproves, and includes the Patch Level on that line. Next is an Index: line XZwhich (unless you are interested in 2.11BSD internals), you can ignore. XZ.PP XZNext is a Description: section which provides additional details on what the XZfile addresses (expanding on the brief Subject: line mentioned above). That is XZfollowed by the Repeat-By: section which discusses a way to reproduce the XZproblem. The Repeat-By: section will probably also be unimportant to most XZusers. XZ.PP XZThis is followed by the Fix: section which provides actual instructions to XZinstall the file. This will normally include the statement "Cut where indicated XZand save to a file...". This points out the "---cut here---" line, which XZseparates the instructions from the actual patch. XZ.PP XZSome patch files are small, and you can just copy or screenshot the XZinstructions. Other patches are quite large and we suggest that you use the XZfollowing commands to extract the instruction part of the patch from the file. XZ\fIxxx\fR should be replaced with the actual patch number (for example, 501) XZwhich should have already been placed in the \fI/usr/tmp\fR directory: XZ.PP XZ.nf XZ.in 0 XZ.cs CW 20 XZ.ft CW XZ# Optional: To output the text up to (but not including the cut here line) XZ# for easy viewing or printing: XZ# XZcd /usr/tmp XZsed -e '/^---*cut here---.*/,$d' < xxx > xxx.txt XZ.fi XZ.NH 3 XZInstalling the patch XZ.PP XZAt the end of the Fix: section, you'll find a line that ends with Then:, XZfollowed by the instructions actually needed to install the patch. You should XZfollow the instructions \fBexactly\fR, except in cases where an instruction XZsays something like "MYSYSTEM (replace with your actual kernel's name)". XZThese instructions generally include using a utility to extract the main XZpatch contents, followed by steps you need to take after that. A Patch Level XZis not successfully installed until \fBall\fR of the listed steps have been XZperformed. \fBCAUTION: \fRMissing one or more steps, or performing them out XZof sequence can leave your system in (at a minimum) a state where future Patch XZLevels will not apply properly due to errors made when installing a prior patch. XZ.NH 3 XZSample patch file XZ.PP XZThe following is an example of a patch file. Most of the material after the XZ"---cut here---" line has been replaced with "[snip]" to keep this example XZbrief. XZ.PP XZ.nf XZ.in 0 XZ.cs CW 20 XZ.ft CW XZ.so 494-example XZ.fi XSHAR_EOF Xchmod 644 'c.t' Xfi Xif test -f 'd.t' Xthen X echo shar: "will not over-write existing file 'd.t'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'd.t' XZ.\" Copyright (c) 1980 Regents of the University of California. XZ.\" All rights reserved. The Berkeley software License Agreement XZ.\" specifies the terms and conditions for redistribution. XZ.\" XZ.\" @(#)d.t 3.0 (2.11BSD) 2026/11/08 XZ.\" XZ.de IR XZ\fI\\$1\fP\|\\$2 XZ.. XZ.ds LH "Installing/Operating \*(2B XZ.nr H1 10 XZ.nr H2 0 XZ.ds RH "Appendix D \- 2.11BSD for users of modern UNIX-like systems XZ.ds CF \*(DY XZ.bp XZ.LG XZ.B XZ.ce XZAPPENDIX D \- 2.11BSD FOR USERS OF MODERN UNIX-LIKE SYSTEMS XZ.sp 2 XZ.R XZ.NL XZ.NH 2 XZ(to be supplied) XZ.PP XZFIXME to be supplied XZ.NH 2 XZ(to be supplied) XZ.PP XZFIXME to be supplied XSHAR_EOF Xchmod 644 'd.t' Xfi Xif test -f 'disktab' Xthen X echo shar: "will not over-write existing file 'disktab'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'disktab' XZ# @(#)disktab 2.1 (2.11BSD) 2025/12/15 XZ# XZ# Disk geometry and partition layout tables. XZ# Key: XZ# dt controller type XZ# ty type of disk (fixed, removeable, simulated) XZ# d[0-4] drive-type-dependent parameters XZ# ns #sectors/track XZ# nt #tracks/cylinder XZ# nc #cylinders/disk XZ# sc #sectors/cylinder, nc*nt default XZ# su #sectors/unit, sc*nc default XZ# se sector size, 512 default (getdiskbyname always sets 512) XZ# rm rpm, 3600 default XZ# sf supports bad144-style bad sector forwarding XZ# sk sector skew per track, default 0 XZ# cs sector skew per cylinder, default 0 XZ# hs headswitch time, default 0 XZ# ts one-cylinder seek time, default 0 XZ# il sector interleave (n:1), 1 default XZ# bs boot block size, default BBSIZE (getdiskbyname returns BBSIZE) XZ# sb superblock size, default SBSIZE (getdiskbyname returns SBSIZE) XZ# b0 block zero dead start primary bootstrap XZ# o[a-h] partition offsets in sectors XZ# p[a-h] partition sizes in sectors XZ# b[a-h] partition block sizes in bytes XZ# f[a-h] partition fragment sizes in bytes XZ# t[a-h] partition types (filesystem, swap, etc) XZ XZ# On drives that contain bad-sector replacement areas the 'h' partition XZ# does NOT overlap the bad-sector track. However the 'c' partition DOES XZ# contain the bad-sector track to match bad144's internal disk size table. XZ# XZ# Values in this file are used as default values for disklabel(8), not by XZ# the kernel, and have no effect on currently labeled (or in use) disk volumes. XZ XZ# Drives on xp XZ# XZ# These partition tables were a mess. Sane settings have been created. The XZ# 'c' partition spans the entire disk while the 'h' partition excludes XZ# the final track. IF one large partition is desired use "disklabel -e" and XZ# set 'h' to 2.11BSD and remove the others (or set to "unused"). XZ# XZ XZ# RM02/03 XZ# XZrm02|RM02|rm03|RM03|DEC RM02/03:\ XZ :ty=removable:ns#32:nt#5:nc#823:sf:\ XZ :b0=/mdec/rm03uboot:\ XZ :pa#14080:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#8960:ob#14080:bb#1024:fb#1024:tb=swap:\ XZ :pc#131680:oc#0:bc#1024:fc#1024:\ XZ :pg#108480:og#23040:bg#1024:fg#1024:tg=2.11BSD:\ XZ :ph#131520:oh#0:bh#1024:fh#1024 XZ XZ# RM05 XZrm05|RM05|cdc9766|CDC9766:\ XZ :ty=removable:ns#32:nt#19:nc#823:sf:\ XZ :b0=/mdec/rm05uboot:\ XZ :pa#14592:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#9728:ob#14592:bb#1024:fb#1024:tb=swap:\ XZ :pc#500384:oc#0:bc#1024:fc#1024:\ XZ :pg#475456:og#24320:bg#1024:fg#1024:tg=2.11BSD:\ XZ :ph#499776:oh#0:bh#1024:fh#1024 XZ XZrp04|RP04|rp05|RP05|DEC RP04/05:\ XZ :ty=removable:ns#22:nt#19:nc#411:sf:\ XZ :b0=/mdec/hpuboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#9196:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#171798:oc#0:bc#1024:fc#1024:\ XZ :pg#145464:og#25080:bg#1024:fg#1024:tg=2.11BSD:\ XZ :ph#171380:oh#0:bh#1024:fh#1024 XZ XZrp06|RP06|DEC RP06:\ XZ :ty=removable:ns#22:nt#19:nc#815:sf:\ XZ :b0=/mdec/hpuboot:\ XZ :pa#16720:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#10032:ob#16720:bb#1024:fb#1024:tb=swap:\ XZ :pc#340670:oc#0:bc#1024:fc#1024:\ XZ :pg#313500:og#26752:bg#1024:fg#1024:tg=2.11BSD:\ XZ :ph#340252:oh#0:bh#1024:fh#1024 XZ XZrp07|RP07|DEC RP07:\ XZ :ty=fixed:ns#50:nt#32:nc#630:sf:\ XZ :b0=/mdec/rp07uboot:\ XZ :pa#14400:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#9600:ob#14400:bb#1024:fb#1024:tb=swap:\ XZ :pc#1008000:oc#0:bc#1024:fc#1024:\ XZ :pf#491200:of#24000:bf#1024:ff#1024:tf=2.11BSD:\ XZ :pg#491200:og#515200:bg#1024:fg#1024:tg=2.11BSD:\ XZ :ph#1006400:oh#0:bh#1024:fh#1024 XZ XZrm2x|fuji160|Fujitsu 160:\ XZ :ty=fixed:ns#32:nt#10:nc#823:sf:\ XZ :b0=/mdec/si94uboot:\ XZ :pa#12800:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#9600:ob#12800:bb#1024:fb#1024:tb=swap:\ XZ :pc#263360:oc#0:bc#1024:fc#1024:\ XZ :pg#240640:og#22400:bg#1024:fg#1024:tg=2.11BSD:\ XZ :ph#263360:oh#0:bh#1024:fh#1024 XZ XZdiva|DIVA|ampex9300|Diva Comp V, Ampex 9300 (in direct mode):\ XZ :ty=fixed:ns#33:nt#19:nc#815:sf:\ XZ :b0=/mdec/dvhpuboot:\ XZ :pa#12540:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#10032:ob#12540:bb#1024:fb#1024:tb=swap:\ XZ :pc#511005:oc#0:bc#1024:fc#1024:\ XZ :pg#487806:og#22572:bg#1024:fg#1024:tg=2.11BSD:\ XZ :ph#510378:oh#0:bh#1024:fh#1024 XZ XZsi_eagle|SI_Eagle|2351|2351A|Fujitsu Eagle 2351A (48 sectors):\ XZ :ty=fixed:ns#48:nt#20:nc#842:rm#3961:sf:\ XZ :b0=/mdec/si51uboot:\ XZ :pa#12480:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#11520:ob#12480:bb#1024:fb#1024:tb=swap:\ XZ :pc#808320:oc#0:bc#1024:fc#1024:\ XZ :pg#779520:og#24000:bg#1024:fg#1024:tg=2.11BSD:\ XZ :ph#803520:oh#0:bh#1024:fh#1024 XZ XZrk06|RK06|DEC RK06:\ XZ :ty=removable:ns#22:nt#3:nc#411:sf:\ XZ :b0=/mdec/hkuboot:\ XZ :pa#8316:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#8316:ob#8316:bb#1024:fb#1024:tb=swap:\ XZ :pc#27126:oc#0:bc#1024:fc#1024:tc=unused:\ XZ :pg#10428:og#16632:bg#1024:fg#1024:tg=2.11BSD:\ XZ :ph#27060:oh#0:bh#1024:fh#1024 XZ XZrk07|RK07|DEC RK07:\ XZ :ty=removable:ns#22:nt#3:nc#815:sf:bt=hkuboot:\ XZ :b0=/mdec/hkuboot:\ XZ :pa#8316:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#8316:ob#8316:bb#1024:fb#1024:tb=swap:\ XZ :pc#53790:oc#0:bc#1024:fc#1024:tc=unused:\ XZ :pg#37092:og#16632:bg#1024:fg#1024:tg=2.11BSD:\ XZ :ph#53724:oh#0:bh#1024:fh#1024 XZ XZ# The RL02 and RL01 have 256 byte sectors, getdiskbyname ignores 'se' XZ# (thankfully) but partitions are still in units of 512-byte sectors. XZrl01|RL01|DEC RL01:\ XZ :ty=removable:se#256:ns#20:nt#2:nc#256:\ XZ :b0=/mdec/rluboot:\ XZ :pa#10240:oa#0:ba#1024:fa#1024:ta=2.11BSD XZ XZrl02|RL02|DEC RL02:\ XZ :ty=removable:se#256:ns#20:nt#2:nc#512:\ XZ :b0=/mdec/rluboot:\ XZ :pa#15360:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#5120:ob#15360:bb#1024:fb#1024:tb=swap:\ XZ :pc#20480:oc#0:bc#1024:fc#1024 XZ XZrk05|RK05|DEC RK05:\ XZ :ty=removable:ns#12:nt#2:nc#203:bt=rkuboot:\ XZ :b0=/mdec/rkuboot:\ XZ :pa#4872:oa#0:ba#1024:fa#1024:ta=2.11BSD XZ XZ# XZ# Disks on a UDA50 XZ# XZ XZrc25|RC25|rcf25|RCF25|DEC RC25 and RC25F:\ XZ :dt=MSCP:ty=removable:ns#42:nt#4:nc#2382:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#8360:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#50902:oc#0:bc#1024:fc#1024:tc=2.11BSD:\ XZ :pg#26658:og#24244:bg#1024:fg#1024:tg=2.11BSD XZ XZrd31|RD31|DEC RD31:\ XZ :dt=MSCP:ty=fixed:ns#17:nt#4:nc#615:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#8360:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#41560:oc#0:bc#1024:fc#1024:tc=2.11BSD:\ XZ :pg#17316:og#24244:bg#1024:fg#1024:tg=2.11BSD XZ XZrd32|RD32|DEC RD32:\ XZ :dt=MSCP:ty=fixed:ns#17:nt#6:nc#820:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#8360:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#83236:oc#0:bc#1024:fc#1024:tc=2.11BSD:\ XZ :pg#58992:og#24244:bg#1024:fg#1024:tg=2.11BSD XZ XZrd33|RD33|DEC RD33:\ XZ :dt=MSCP:ty=fixed:ns#17:nt#7:nc#1170:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#8360:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#138565:oc#0:bc#1024:fc#1024:tc=2.11BSD:\ XZ :pg#114321:og#24244:bg#1024:fg#1024:tg=2.11BSD XZ XZrd51|RD51|DEC RD51:\ XZ :dt=MSCP:ty=fixed:ns#18:nt#4:nc#300:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#5716:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#21600:oc#0:bc#1024:fc#1024:tc=2.11BSD XZ XZrd52|RD52|DEC RD52:\ XZ :dt=MSCP:ty=fixed:ns#18:nt#7:nc#480:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#8360:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#60480:oc#0:bc#1024:fc#1024:tc=2.11BSD:\ XZ :pg#36236:og#24244:bg#1024:fg#1024:tg=2.11BSD XZ XZrd53|RD53|DEC RD53:\ XZ :dt=MSCP:ty=fixed:ns#17:nt#8:nc#1024:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#8360:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#138672:oc#0:bc#1024:fc#1024:tc=2.11BSD:\ XZ :pg#114428:og#24244:bg#1024:fg#1024:tg=2.11BSD\ XZ XZrd54|RD54|DEC RD54:\ XZ :dt=MSCP:ty=fixed:ns#17:nt#15:nc#1221:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#16720:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#311200:oc#0:bc#1024:fc#1024:tc=unused:\ XZ :pg#278596:og#32604:bg#1024:fg#1024:tg=2.11BSD XZ XZrx23|RX23|DEC RX23:\ XZ :dt=MSCP:ty=floppy:ns#18:nt#2:nc#80:\ XZ :b0=/mdec/rauboot:\ XZ :pa#2880:oa#0:ba#1024:fa#1024:ta=2.11BSD XZ XZrx26|RX26|DEC RX26:\ XZ :dt=MSCP:ty=floppy:ns#36:nt#2:nc#80:\ XZ :b0=/mdec/rauboot:\ XZ :pa#5760:oa#0:ba#1024:fa#1024:ta=2.11BSD XZ XZrx33|RX33|DEC RX33:\ XZ :dt=MSCP:ty=floppy:ns#15:nt#2:nc#80:\ XZ :b0=/mdec/rauboot:\ XZ :pa#2400:oa#0:ba#1024:fa#1024:ta=2.11BSD XZ XZrx50|RX50|DEC RX50:\ XZ :dt=MSCP:ty=removable:ns#10:nt#1:nc#80:\ XZ :b0=/mdec/rauboot:\ XZ :pa#800:oa#0:ba#1024:fa#1024:2.11BSD XZ XZra60|RA60|DEC RA60:\ XZ :dt=MSCP:ty=removable:ns#42:nt#4:nc#2382:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#16720:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#400176:oc#0:bc#1024:fc#1024:\ XZ :pd#227136:od#32604:bd#1024:fd#1024:td=2.11BSD:\ XZ :pe#140436:oe#259740:be#1024:fe#1024:te=2.11BSD:\ XZ :pg#367572:og#32604:bg#1024:fg#1024:tg=2.11BSD XZ XZra70|RA70|DEC RA70:\ XZ :dt=MSCP:ty=fixed:ns#33:nt#11:nc#1507:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#16720:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#547041:oc#0:bc#1024:fc#1024:\ XZ :pd#227136:od#32604:bd#1024:fd#1024:td=2.11BSD:\ XZ :pe#287301:oe#259740:be#1024:fe#1024:te=2.11BSD:\ XZ :pg#514437:og#32604:bg#1024:fg#1024:tg=2.11BSD XZ XZra71|RA71|DEC RA71:\ XZ :dt=MSCP:ty=fixed:ns#51:nt#14:nc#1915:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#16720:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#1367310:oc#0:bc#1024:fc#1024:\ XZ :pd#227136:od#32604:bd#1024:fd#1024:td=2.11BSD:\ XZ :pe#409600:oe#259740:be#1024:fe#1024:te=2.11BSD:\ XZ :pf#182464:of#669340:bf#1024:ff#1024:tf=2.11BSD:\ XZ :pg#819200:og#32604:bg#1024:fg#1024:tg=2.11BSD:\ XZ :ph#515506:oh#851804:bh#1024:fh#1024:th=2.11BSD XZ XZra72|RA72|DEC RA72:\ XZ :dt=MSCP:ty=fixed:ns#51:nt#20:nc#1915:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#16720:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#1953300:oc#0:bc#1024:fc#1024:\ XZ :pd#227136:od#32604:bd#1024:fd#1024:td=2.11BSD:\ XZ :pe#409600:oe#259740:be#1024:fe#1024:te=2.11BSD:\ XZ :pf#182464:of#669340:bf#1024:ff#1024:tf=2.11BSD:\ XZ :pg#819200:og#32604:bg#1024:fg#1024:tg=2.11BSD:\ XZ :ph#1101496:oh#851804:bh#1024:fh#1024:th=2.11BSD XZ XZra73|RA73|DEC RA73:\ XZ :dt=MSCP:ty=fixed:ns#70:nt#21:nc#2667:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#16720:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#3920490:oc#0:bc#1024:fc#1024:\ XZ :pd#227136:od#32604:bd#1024:fd#1024:td=2.11BSD:\ XZ :pe#409600:oe#259740:be#1024:fe#1024:te=2.11BSD:\ XZ :pf#182464:of#669340:bf#1024:ff#1024:tf=2.11BSD:\ XZ :pg#819200:og#32604:bg#1024:fg#1024:tg=2.11BSD:\ XZ :ph#3068686:oh#851804:bh#1024:fh#1024:th=2.11BSD XZ XZra80|RA80|DEC RA80:\ XZ :dt=MSCP:ty=fixed:ns#31:nt#14:nc#546:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#16720:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#237212:oc#0:bc#1024:fc#1024:\ XZ :pg#204608:og#32604:bg#1024:fg#1024:tg=2.11BSD XZ XZra81|RA81|DEC RA81:\ XZ :dt=MSCP:ty=fixed:ns#51:nt#14:nc#1248:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#16720:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#891072:oc#0:bc#1024:fc#1024:\ XZ :pd#227136:od#32604:bd#1024:fd#1024:td=2.11BSD:\ XZ :pe#409600:oe#259740:be#1024:fe#1024:te=2.11BSD:\ XZ :pf#182464:of#669340:bf#1024:ff#1024:tf=2.11BSD:\ XZ :pg#819200:og#32604:bg#1024:fg#1024:tg=2.11BSD:\ XZ :ph#39268:oh#851804:bh#1024:fh#1024:th=2.11BSD XZ XZra81x|RA81X|Extended DEC RA81:\ XZ :dt=MSCP:ty=fixed:ns#51:nt#14:nc#1815:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#33440:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#193282:oc#49324:bc#1024:fc#1024:tc=2.11BSD:\ XZ :pd#15884:od#242606:bd#1024:fd#1024:td=2.11BSD:\ XZ :pe#307200:oe#258490:be#1024:fe#1024:te=2.11BSD:\ XZ :pf#728952:of#565690:bf#1024:ff#1024:tf=2.11BSD:\ XZ :pg#1052036:og#242606:bg#1024:fg#1024:\ XZ :ph#1294642:oh#0:bh#1024:fh#1024:th=2.11BSD XZ XZra82|RA82|DEC RA82:\ XZ :dt=MSCP:ty=fixed:ns#57:nt#15:nc#1423:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#16720:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#1216665:oc#0:bc#1024:fc#1024:\ XZ :pd#227136:od#32604:bd#1024:fd#1024:td=2.11BSD:\ XZ :pe#409600:oe#259740:be#1024:fe#1024:te=2.11BSD:\ XZ :pf#182464:of#669340:bf#1024:ff#1024:tf=2.11BSD:\ XZ :pg#819200:og#32604:bg#1024:fg#1024:tg=2.11BSD:\ XZ :ph#364861:oh#851804:bh#1024:fh#1024:th=2.11BSD XZ XZra90|RA90|DEC RA90:\ XZ :dt=MSCP:ty=fixed:ns#69:nt#13:nc#2649:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#16720:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#2376153:oc#0:bc#1024:fc#1024:\ XZ :pd#227136:od#32604:bd#1024:fd#1024:td=2.11BSD:\ XZ :pe#409600:oe#259740:be#1024:fe#1024:te=2.11BSD:\ XZ :pf#182464:of#669340:bf#1024:ff#1024:tf=2.11BSD:\ XZ :pg#819200:og#32604:bg#1024:fg#1024:tg=2.11BSD:\ XZ :ph#1524349:oh#851804:bh#1024:fh#1024:th=2.11BSD XZ XZra92|RA92|DEC RA92:\ XZ :dt=MSCP:ty=fixed:ns#69:nt#13:nc#3279:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#16720:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#2940951:oc#0:bc#1024:fc#1024:\ XZ :pd#227136:od#32604:bd#1024:fd#1024:td=2.11BSD:\ XZ :pe#409600:oe#259740:be#1024:fe#1024:te=2.11BSD:\ XZ :pf#182464:of#669340:bf#1024:ff#1024:tf=2.11BSD:\ XZ :pg#819200:og#32604:bg#1024:fg#1024:tg=2.11BSD:\ XZ :ph#2089147:oh#851804:bh#1024:fh#1024:th=2.11BSD XZ XZrz22|RZ22|DEC RZ22:\ XZ :dt=MSCP:ty=fixed:ns#33:nt#4:nc#776:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#8360:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#102432:oc#0:bc#1024:fc#1024:\ XZ :pg#78188:og#24244:bg#1024:fg#1024:tg=2.11BSD XZ XZrz23|RZ23|DEC RZ23:\ XZ :dt=MSCP:ty=fixed:ns#33:nt#8:nc#776:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#8360:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#204864:oc#0:bc#1024:fc#1024:\ XZ :pg#180620:og#24244:bg#1024:fg#1024:tg=2.11BSD XZ XZrz23l|RZ23L|DEC RZ23L:\ XZ :dt=MSCP:ty=fixed:ns#39:nt#4:nc#1524:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#8360:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#237588:oc#0:bc#1024:fc#1024:\ XZ :pg#213344:og#24244:bg#1024:fg#1024:tg=2.11BSD XZ XZrz24|RZ24|DEC RZ24:\ XZ :dt=MSCP:ty=fixed:ns#38:nt#8:nc#1348:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#16720:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#409792:oc#0:bc#1024:fc#1024:\ XZ :pd#227136:od#32604:bd#1024:fd#1024:td=2.11BSD:\ XZ :pe#150052:oe#259740:be#1024:fe#1024:te=2.11BSD:\ XZ :pg#377188:og#32604:bg#1024:fg#1024:tg=2.11BSD XZ XZrz24l|RZ24L|DEC RZ24L:\ XZ :dt=MSCP:ty=fixed:ns#65:nt#4:nc#1818:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#16720:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#479350:oc#0:bc#1024:fc#1024:\ XZ :pd#227136:od#32604:bd#1024:fd#1024:td=2.11BSD:\ XZ :pe#219610:oe#259740:be#1024:fe#1024:te=2.11BSD:\ XZ :pg#446746:og#32604:bg#1024:fg#1024:tg=2.11BSD XZ XZrz25|RZ25|DEC RZ25:\ XZ :dt=MSCP:ty=fixed:ns#62:nt#9:nc#1476:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#16720:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#832527:oc#0:bc#1024:fc#1024:\ XZ :pd#227136:od#32604:bd#1024:fd#1024:td=2.11BSD:\ XZ :pe#409600:oe#259740:be#1024:fe#1024:te=2.11BSD:\ XZ :pf#130590:of#669340:bf#1024:ff#1024:tf=2.11BSD:\ XZ :pg#799923:og#32604:bg#1024:fg#1024:tg=2.11BSD: XZ XZrz26|RZ26|DEC RZ26:\ XZ :dt=MSCP:ty=fixed:ns#57:nt#14:nc#2570:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#16720:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#2050860:oc#0:bc#1024:fc#1024:\ XZ :pd#227136:od#32604:bd#1024:fd#1024:td=2.11BSD:\ XZ :pe#409600:oe#259740:be#1024:fe#1024:te=2.11BSD:\ XZ :pf#182464:of#669340:bf#1024:ff#1024:tf=2.11BSD:\ XZ :pg#819200:og#32604:bg#1024:fg#1024:tg=2.11BSD:\ XZ :ph#1199056:oh#851804:bh#1024:fh#1024:th=2.11BSD XZ XZrz55|RZ55|DEC RZ55:\ XZ :dt=MSCP:ty=fixed:ns#36:nt#15:nc#1224:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#16720:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#649040:oc#0:bc#1024:fc#1024:\ XZ :pd#227136:od#32604:bd#1024:fd#1024:td=2.11BSD:\ XZ :pe#389300:oe#259740:be#1024:fe#1024:te=2.11BSD:\ XZ :pg#616436:og#32604:bg#1024:fg#1024:tg=2.11BSD XZ XZrz56|RZ56|DEC RZ56:\ XZ :dt=MSCP:ty=fixed:ns#54:nt#15:nc#1632:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#16720:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#1299174:oc#0:bc#1024:fc#1024:\ XZ :pd#227136:od#32604:bd#1024:fd#1024:td=2.11BSD:\ XZ :pe#409600:oe#259740:be#1024:fe#1024:te=2.11BSD:\ XZ :pf#182464:of#669340:bf#1024:ff#1024:tf=2.11BSD:\ XZ :pg#819200:og#32604:bg#1024:fg#1024:tg=2.11BSD:\ XZ :ph#447370:oh#851804:bh#1024:fh#1024:th=2.11BSD XZ XZrz57|RZ57|DEC RZ57:\ XZ :dt=MSCP:ty=fixed:ns#71:nt#15:nc#1854:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#16720:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#1954050:oc#0:bc#1024:fc#1024:\ XZ :pd#227136:od#32604:bd#1024:fd#1024:td=2.11BSD:\ XZ :pe#409600:oe#259740:be#1024:fe#1024:te=2.11BSD:\ XZ :pf#182464:of#669340:bf#1024:ff#1024:tf=2.11BSD:\ XZ :pg#819200:og#32604:bg#1024:fg#1024:tg=2.11BSD:\ XZ :ph#1102246:oh#851804:bh#1024:fh#1024:th=2.11BSD XZ XZrz58|RZ58|DEC RZ58:\ XZ :dt=MSCP:ty=fixed:ns#85:nt#15:nc#2112:so:\ XZ :b0=/mdec/rauboot:\ XZ :pa#15884:oa#0:ba#1024:fa#1024:ta=2.11BSD:\ XZ :pb#16270:ob#15884:bb#1024:fb#1024:tb=swap:\ XZ :pc#2698061:oc#0:bc#1024:fc#1024:\ XZ :pd#227136:od#32604:bd#1024:fd#1024:td=2.11BSD:\ XZ :pe#409600:oe#259740:be#1024:fe#1024:te=2.11BSD:\ XZ :pf#182464:of#669340:bf#1024:ff#1024:tf=2.11BSD:\ XZ :pg#819200:og#32604:bg#1024:fg#1024:tg=2.11BSD:\ XZ :ph#1846257:oh#851804:bh#1024:fh#1024:th=2.11BSD XZ XZ# The RX driver uses partition 'a' to select single density and 'b' to XZ# select double density. Partition sizes are in units of 512-byte sectors XZ# even though the rx01 uses 128 byte hardware sectors and the rx02 256 byte XZ# sectors. This really doesn't work too well for the RX01 due to the odd XZ# number of sectors - are there any of them still running? XZ XZrx01|RX01|DEC RX01:\ XZ :ty=floppy:se#128:ns#13:nt#1:nc#77:\ XZ :b0=/mdec/rx01uboot:\ XZ :pa#500:ba#1024:fa#1024:\ XZ XZrx02|RX02|DEC RX02:\ XZ :ty=floppy:se#256:ns#13:nt#1:nc#77:\ XZ :b0=/mdec/rx02uboot:\ XZ :pb#1001:bb#1024:fb#1024: XZ XZ# XZ# RAM disk XZ# XZram|RAM|Ram disk:\ XZ :ty=simulated:ns#2:nt#1024:nc#4096: XSHAR_EOF Xchmod 644 'disktab' Xfi Xif test -f 'disktab.out' Xthen X echo shar: "will not over-write existing file 'disktab.out'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'disktab.out' XZ XZrm02|RM02|rm03|RM03|DEC RM02/03 XZ Partition a: size=14080, offset=0, type=2.11BSD XZ Partition b: size=8960, offset=14080, type=swap XZ Partition c: size=131680, offset=0 XZ Partition g: size=108480, offset=23040, type=2.11BSD XZ Partition h: size=131520, offset=0 XZ XZrm05|RM05|cdc9766|CDC9766 XZ Partition a: size=14592, offset=0, type=2.11BSD XZ Partition b: size=9728, offset=14592, type=swap XZ Partition c: size=500384, offset=0 XZ Partition g: size=475456, offset=24320, type=2.11BSD XZ Partition h: size=499776, offset=0 XZ XZrp04|RP04|rp05|RP05|DEC RP04/05 XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=9196, offset=15884, type=swap XZ Partition c: size=171798, offset=0 XZ Partition g: size=145464, offset=25080, type=2.11BSD XZ Partition h: size=171380, offset=0 XZ XZrp06|RP06|DEC RP06 XZ Partition a: size=16720, offset=0, type=2.11BSD XZ Partition b: size=10032, offset=16720, type=swap XZ Partition c: size=340670, offset=0 XZ Partition g: size=313500, offset=26752, type=2.11BSD XZ Partition h: size=340252, offset=0 XZ XZrp07|RP07|DEC RP07 XZ Partition a: size=14400, offset=0, type=2.11BSD XZ Partition b: size=9600, offset=14400, type=swap XZ Partition c: size=1008000, offset=0 XZ Partition f: size=491200, offset=24000, type=2.11BSD XZ Partition g: size=491200, offset=515200, type=2.11BSD XZ Partition h: size=1006400, offset=0 XZ XZrm2x|fuji160|Fujitsu 160 XZ Partition a: size=12800, offset=0, type=2.11BSD XZ Partition b: size=9600, offset=12800, type=swap XZ Partition c: size=263360, offset=0 XZ Partition g: size=240640, offset=22400, type=2.11BSD XZ Partition h: size=263360, offset=0 XZ XZdiva|DIVA|ampex9300|Diva Comp V, Ampex 9300 (in direct mode) XZ Partition a: size=12540, offset=0, type=2.11BSD XZ Partition b: size=10032, offset=12540, type=swap XZ Partition c: size=511005, offset=0 XZ Partition g: size=487806, offset=22572, type=2.11BSD XZ Partition h: size=510378, offset=0 XZ XZsi_eagle|SI_Eagle|2351|2351A|Fujitsu Eagle 2351A (48 sectors) XZ Partition a: size=12480, offset=0, type=2.11BSD XZ Partition b: size=11520, offset=12480, type=swap XZ Partition c: size=808320, offset=0 XZ Partition g: size=779520, offset=24000, type=2.11BSD XZ Partition h: size=803520, offset=0 XZ XZrk06|RK06|DEC RK06 XZ Partition a: size=8316, offset=0, type=2.11BSD XZ Partition b: size=8316, offset=8316, type=swap XZ Partition c: size=27126, offset=0, type=unused XZ Partition g: size=10428, offset=16632, type=2.11BSD XZ Partition h: size=27060, offset=0 XZ XZrk07|RK07|DEC RK07 XZ Partition a: size=8316, offset=0, type=2.11BSD XZ Partition b: size=8316, offset=8316, type=swap XZ Partition c: size=53790, offset=0, type=unused XZ Partition g: size=37092, offset=16632, type=2.11BSD XZ Partition h: size=53724, offset=0 XZ XZrl01|RL01|DEC RL01 XZ Partition a: size=10240, offset=0, type=2.11BSD XZ XZrl02|RL02|DEC RL02 XZ Partition a: size=15360, offset=0, type=2.11BSD XZ Partition b: size=5120, offset=15360, type=swap XZ Partition c: size=20480, offset=0 XZ XZrk05|RK05|DEC RK05 XZ Partition a: size=4872, offset=0, type=2.11BSD XZ XZrc25|RC25|rcf25|RCF25|DEC RC25 and RC25F XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=8360, offset=15884, type=swap XZ Partition c: size=50902, offset=0, type=2.11BSD XZ Partition g: size=26658, offset=24244, type=2.11BSD XZ XZrd31|RD31|DEC RD31 XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=8360, offset=15884, type=swap XZ Partition c: size=41560, offset=0, type=2.11BSD XZ Partition g: size=17316, offset=24244, type=2.11BSD XZ XZrd32|RD32|DEC RD32 XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=8360, offset=15884, type=swap XZ Partition c: size=83236, offset=0, type=2.11BSD XZ Partition g: size=58992, offset=24244, type=2.11BSD XZ XZrd33|RD33|DEC RD33 XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=8360, offset=15884, type=swap XZ Partition c: size=138565, offset=0, type=2.11BSD XZ Partition g: size=114321, offset=24244, type=2.11BSD XZ XZrd51|RD51|DEC RD51 XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=5716, offset=15884, type=swap XZ Partition c: size=21600, offset=0, type=2.11BSD XZ XZrd52|RD52|DEC RD52 XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=8360, offset=15884, type=swap XZ Partition c: size=60480, offset=0, type=2.11BSD XZ Partition g: size=36236, offset=24244, type=2.11BSD XZ XZrd53|RD53|DEC RD53 XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=8360, offset=15884, type=swap XZ Partition c: size=138672, offset=0, type=2.11BSD XZ Partition g: size=114428, offset=24244, type=2.11BSD\ XZ XZrd54|RD54|DEC RD54 XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=16720, offset=15884, type=swap XZ Partition c: size=311200, offset=0, type=unused XZ Partition g: size=278596, offset=32604, type=2.11BSD XZ XZrx23|RX23|DEC RX23 XZ Partition a: size=2880, offset=0, type=2.11BSD XZ XZrx26|RX26|DEC RX26 XZ Partition a: size=5760, offset=0, type=2.11BSD XZ XZrx33|RX33|DEC RX33 XZ Partition a: size=2400, offset=0, type=2.11BSD XZ XZrx50|RX50|DEC RX50 XZ Partition a: size=800, offset=0:2.11BSD XZ XZra60|RA60|DEC RA60 XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=16720, offset=15884, type=swap XZ Partition c: size=400176, offset=0 XZ Partition d: size=227136, offset=32604, type=2.11BSD XZ Partition e: size=140436, offset=259740, type=2.11BSD XZ Partition g: size=367572, offset=32604, type=2.11BSD XZ XZra70|RA70|DEC RA70 XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=16720, offset=15884, type=swap XZ Partition c: size=547041, offset=0 XZ Partition d: size=227136, offset=32604, type=2.11BSD XZ Partition e: size=287301, offset=259740, type=2.11BSD XZ Partition g: size=514437, offset=32604, type=2.11BSD XZ XZra71|RA71|DEC RA71 XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=16720, offset=15884, type=swap XZ Partition c: size=1367310, offset=0 XZ Partition d: size=227136, offset=32604, type=2.11BSD XZ Partition e: size=409600, offset=259740, type=2.11BSD XZ Partition f: size=182464, offset=669340, type=2.11BSD XZ Partition g: size=819200, offset=32604, type=2.11BSD XZ Partition h: size=515506, offset=851804, type=2.11BSD XZ XZra72|RA72|DEC RA72 XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=16720, offset=15884, type=swap XZ Partition c: size=1953300, offset=0 XZ Partition d: size=227136, offset=32604, type=2.11BSD XZ Partition e: size=409600, offset=259740, type=2.11BSD XZ Partition f: size=182464, offset=669340, type=2.11BSD XZ Partition g: size=819200, offset=32604, type=2.11BSD XZ Partition h: size=1101496, offset=851804, type=2.11BSD XZ XZra73|RA73|DEC RA73 XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=16720, offset=15884, type=swap XZ Partition c: size=3920490, offset=0 XZ Partition d: size=227136, offset=32604, type=2.11BSD XZ Partition e: size=409600, offset=259740, type=2.11BSD XZ Partition f: size=182464, offset=669340, type=2.11BSD XZ Partition g: size=819200, offset=32604, type=2.11BSD XZ Partition h: size=3068686, offset=851804, type=2.11BSD XZ XZra80|RA80|DEC RA80 XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=16720, offset=15884, type=swap XZ Partition c: size=237212, offset=0 XZ Partition g: size=204608, offset=32604, type=2.11BSD XZ XZra81|RA81|DEC RA81 XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=16720, offset=15884, type=swap XZ Partition c: size=891072, offset=0 XZ Partition d: size=227136, offset=32604, type=2.11BSD XZ Partition e: size=409600, offset=259740, type=2.11BSD XZ Partition f: size=182464, offset=669340, type=2.11BSD XZ Partition g: size=819200, offset=32604, type=2.11BSD XZ Partition h: size=39268, offset=851804, type=2.11BSD XZ XZra81x|RA81X|Extended DEC RA81 XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=33440, offset=15884, type=swap XZ Partition c: size=193282, offset=49324, type=2.11BSD XZ Partition d: size=15884, offset=242606, type=2.11BSD XZ Partition e: size=307200, offset=258490, type=2.11BSD XZ Partition f: size=728952, offset=565690, type=2.11BSD XZ Partition g: size=1052036, offset=242606 XZ Partition h: size=1294642, offset=0, type=2.11BSD XZ XZra82|RA82|DEC RA82 XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=16720, offset=15884, type=swap XZ Partition c: size=1216665, offset=0 XZ Partition d: size=227136, offset=32604, type=2.11BSD XZ Partition e: size=409600, offset=259740, type=2.11BSD XZ Partition f: size=182464, offset=669340, type=2.11BSD XZ Partition g: size=819200, offset=32604, type=2.11BSD XZ Partition h: size=364861, offset=851804, type=2.11BSD XZ XZra90|RA90|DEC RA90 XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=16720, offset=15884, type=swap XZ Partition c: size=2376153, offset=0 XZ Partition d: size=227136, offset=32604, type=2.11BSD XZ Partition e: size=409600, offset=259740, type=2.11BSD XZ Partition f: size=182464, offset=669340, type=2.11BSD XZ Partition g: size=819200, offset=32604, type=2.11BSD XZ Partition h: size=1524349, offset=851804, type=2.11BSD XZ XZra92|RA92|DEC RA92 XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=16720, offset=15884, type=swap XZ Partition c: size=2940951, offset=0 XZ Partition d: size=227136, offset=32604, type=2.11BSD XZ Partition e: size=409600, offset=259740, type=2.11BSD XZ Partition f: size=182464, offset=669340, type=2.11BSD XZ Partition g: size=819200, offset=32604, type=2.11BSD XZ Partition h: size=2089147, offset=851804, type=2.11BSD XZ XZrz22|RZ22|DEC RZ22 XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=8360, offset=15884, type=swap XZ Partition c: size=102432, offset=0 XZ Partition g: size=78188, offset=24244, type=2.11BSD XZ XZrz23|RZ23|DEC RZ23 XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=8360, offset=15884, type=swap XZ Partition c: size=204864, offset=0 XZ Partition g: size=180620, offset=24244, type=2.11BSD XZ XZrz23l|RZ23L|DEC RZ23L XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=8360, offset=15884, type=swap XZ Partition c: size=237588, offset=0 XZ Partition g: size=213344, offset=24244, type=2.11BSD XZ XZrz24|RZ24|DEC RZ24 XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=16720, offset=15884, type=swap XZ Partition c: size=409792, offset=0 XZ Partition d: size=227136, offset=32604, type=2.11BSD XZ Partition e: size=150052, offset=259740, type=2.11BSD XZ Partition g: size=377188, offset=32604, type=2.11BSD XZ XZrz24l|RZ24L|DEC RZ24L XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=16720, offset=15884, type=swap XZ Partition c: size=479350, offset=0 XZ Partition d: size=227136, offset=32604, type=2.11BSD XZ Partition e: size=219610, offset=259740, type=2.11BSD XZ Partition g: size=446746, offset=32604, type=2.11BSD XZ XZrz25|RZ25|DEC RZ25 XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=16720, offset=15884, type=swap XZ Partition c: size=832527, offset=0 XZ Partition d: size=227136, offset=32604, type=2.11BSD XZ Partition e: size=409600, offset=259740, type=2.11BSD XZ Partition f: size=130590, offset=669340, type=2.11BSD XZ Partition g: size=799923, offset=32604, type=2.11BSD XZ XZrz26|RZ26|DEC RZ26 XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=16720, offset=15884, type=swap XZ Partition c: size=2050860, offset=0 XZ Partition d: size=227136, offset=32604, type=2.11BSD XZ Partition e: size=409600, offset=259740, type=2.11BSD XZ Partition f: size=182464, offset=669340, type=2.11BSD XZ Partition g: size=819200, offset=32604, type=2.11BSD XZ Partition h: size=1199056, offset=851804, type=2.11BSD XZ XZrz55|RZ55|DEC RZ55 XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=16720, offset=15884, type=swap XZ Partition c: size=649040, offset=0 XZ Partition d: size=227136, offset=32604, type=2.11BSD XZ Partition e: size=389300, offset=259740, type=2.11BSD XZ Partition g: size=616436, offset=32604, type=2.11BSD XZ XZrz56|RZ56|DEC RZ56 XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=16720, offset=15884, type=swap XZ Partition c: size=1299174, offset=0 XZ Partition d: size=227136, offset=32604, type=2.11BSD XZ Partition e: size=409600, offset=259740, type=2.11BSD XZ Partition f: size=182464, offset=669340, type=2.11BSD XZ Partition g: size=819200, offset=32604, type=2.11BSD XZ Partition h: size=447370, offset=851804, type=2.11BSD XZ XZrz57|RZ57|DEC RZ57 XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=16720, offset=15884, type=swap XZ Partition c: size=1954050, offset=0 XZ Partition d: size=227136, offset=32604, type=2.11BSD XZ Partition e: size=409600, offset=259740, type=2.11BSD XZ Partition f: size=182464, offset=669340, type=2.11BSD XZ Partition g: size=819200, offset=32604, type=2.11BSD XZ Partition h: size=1102246, offset=851804, type=2.11BSD XZ XZrz58|RZ58|DEC RZ58 XZ Partition a: size=15884, offset=0, type=2.11BSD XZ Partition b: size=16270, offset=15884, type=swap XZ Partition c: size=2698061, offset=0 XZ Partition d: size=227136, offset=32604, type=2.11BSD XZ Partition e: size=409600, offset=259740, type=2.11BSD XZ Partition f: size=182464, offset=669340, type=2.11BSD XZ Partition g: size=819200, offset=32604, type=2.11BSD XZ Partition h: size=1846257, offset=851804, type=2.11BSD XZ XZrx01|RX01|DEC RX01 XZ Partition a: size=500 XZ XZrx02|RX02|DEC RX02 XZ Partition b: size=1001 XZ XSHAR_EOF Xchmod 644 'disktab.out' Xfi Xif test -f 'fixdisktab.sh' Xthen X echo shar: "will not over-write existing file 'fixdisktab.sh'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'fixdisktab.sh' XZ#!/bin/sh XZ# 10-Oct-2026 - tmk - initial version XZ# XZ# The following massages the disktab file and removes XZ# all information except the drive model(s) and par- XZ# tition tables. It also collapses multiple blank lines XZ# and removes the trailing ram disk entry. XZ# XZ# Suggestions and/or patches are welcome. XZ# XZ# Long annoying command string to tease sms who said XZ# I should write a program and use getfsent() instead. XZ# XZgrep -v ^# disktab | sed 's/:\\$//' | sed -E 's/:(b|f)[^#]*#1024//g' | \ XZgrep -v :b0 | grep -v :dt | grep -v :ty | grep -v "Ram disk" | \ XZsed -E ' XZ s/:$//; XZ s/:p(.)#([^:]*):o.#([^:]*):t.=(.*)/Partition \1: size=\2, offset=\3, type=\4/; XZ s/:p(.)#([^:]*):o.#([^:]*)/Partition \1: size=\2, offset=\3/; XZ s/:p(.)#([^:]*)/Partition \1: size=\2/' | \ XZ sed $'s/^ /\t/' | cat -s - > disktab.out XSHAR_EOF Xchmod 755 'fixdisktab.sh' Xfi Xif test -f 'setup.pdf' Xthen X echo shar: "will not over-write existing file 'setup.pdf'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'setup.pdf' XZ%PDF-1.5 %âãÏÓ XZ371 0 obj <> endobj XZ380 0 obj <>/Filter/FlateDecode/ID[]/Index[371 21]/Info 370 0 R/Length 63/Prev 269849/Root 372 0 R/Size 392/Type/XRef/W[1 2 1]>>stream XZhÞbbd``b`Ù $C�Cˆ{ XZH°?É@Âz�àˆµ˜™@ê‰&þ3$}0Zendstream endobj startxref XZ0 XZ%%EOF XZ XZ391 0 obj <>stream XZhÞÔSßKTAž»÷×ÌìUVÛLƒRQb<(¸l[.­„䮿KˆèfáCËRO£y×)6Ò‡j‰ Ö‚žƒzXs!�}HŠŠèEˆ“ÀŠzéÌÜU‹úšá|çž™s¾ï˜‹Rr�C´½Ø —rÁ9p7Ç`mÀw´ß[ÓHË­Üþ§Ížé XZÞ™žÀX¬ú°’¶[ûš=÷,£ß»*`n³±êãÙ�V(k¨ Ã©œ¯o>mnZ�Nãœù8W8ç..ŒÉ2öAȆd<_!Îu^`œ#Ì7¹ NžðM‰Ð–C\¦‰ìßB•ËtéNÚÚÀµµ} •‹Š‘™Ž(úøy˜µJjäô ñÿðêá1Cêòx¬Dþ®=¨=ii¼»n­~`W6Ú{*õ‹ Mj•52éG¿ÌR¤Ë°«à4¤í©/ÄŸ~ 0Zendstream endobj 372 0 obj <> endobj 373 0 obj <> endobj 374 0 obj <>stream XZhÞÄVmOÛ0þ+þ¸ibñKü !µ@ab0D«1 ñ!+Y©mª6Hðïww¶Ó´dÀúE®Ïw¾Ë�ý<¹*'gÊI&¸�Y1apNY*Ìšeí† ‘i,–g 8 XZBƤÎ` é”d‡‡ÉéS}6¬óºZíeKA½ãõª‹ú.¹>$£â©¾?:‚@?®ÙŸ|¶.@¸d"öÂrxÉøW.“Ñ󲨤“TKo'ßÞz\,j–)�çËó¢œLkf¬IN XZo9�Â%ƒY>Y3i¤°ŽÒï÷«§»aÙáÜ8Ç÷däóröüiT΋õg¯)gk}�¨¹Êç�ÓñÅùEï m<èW³2 ëUQ�§ÉUµšç3RÝú¼,çÉ·:Ÿ•ãÞb2+O†u1?gBe$ýIùrÑ KX•˺Z%¿Be©Tv?_¸¥#…ÓŸz(“ä¶\ôë²YÊÕº>žæ+¦äN| –ö=[Dj’áãïs­ JªÉ b?ÔÓõ�ÔxµZk¦áZ0Zendstream endobj 375 0 obj <>stream XZhÞŒWËvÛ6Ýë+°${,|‰¤»‰iNÒ6M#¥�ãt‘�„˜¯ZiÜ®îIÛ³äÝý»yøëO³€pÒ< aBÖ÷³/JÌžÜ4�ôæýŽBi®žÈ{Q ®ùè½Ã·Ü{ò�ðƒdXå3¯òça¼„±�¾ÿÛúÍ,¡!‹§§¿mOÇÖ¡H]‘�…K»Ž‡™s˜‘0Éi̲d:üà­Œ3*²*ð¿}_™?ÇýK·N#–'h9CÞ®õ‹p£KZ´5º=�hœZ¿Fõ…‹î¶U–�Ò±˜ã[ËãÖñžÚ-®° ©õ.D;Žý#É»ÿ"Þ¾þåo¢Ÿ´5Å=ÖÄzœL2W5†”RC\´Ð¤Sm!Ê^ ‡Gž*j<�ÅB⃡+XTT} kž£,BÞ n–µto¸s|Ù·È–”MÆhäHE;>€Õ¶àFÝñBX0c¸Ó¡H–4ci ur Áˆ`´|e#�Ø©„ ‰F'ÚF8¹n•À <ê«sPñTìiaHßYó "GñÄ×4Ë� àZ-±„ pHÌa¯¡ÚyQ´}c¦F¢0£ùh2¯œ>8¬s݉B^øBñ%ѺŸf™ÃV ^Õ*HוEv%;‡2¤ß9 ör–Ÿü Â0µfñ ô`<•!\²ôËÐ�'=x;`ž-‚F˜Êd«‘|[«¹…¬@œ„¦Ä)í7äêÉ_&Þ@NCšz¸ùXh¥@gõP§BrE4 –éÉ¡0HãT×Dï{Sº¹r„�(Ów�D®J ’h� ’]«ÌØ€JÉwM«%$ü"wQ@ótåKÂsd¬SnЖ<Ÿ¤�¹«ã /ûnRÁWZýýÄž�¦¦ \´%�‰`� }ô1Ñ;Åk0'}®Nl—˜çtɲSÒ¼]iAš�b ø¦‚7ιm ‚mcŽ|°Úme^#‡&� Ý”ØÜ XZÃŽMÓÛšîz±€OZn{kF‚E×o]ÙÁbˆbeÇt>x{c: ‡ XZ5ý^�=}q£Š½Dt®ç/îa,9›mîn!{<~HÑÎ8AMÀ XZgzbùÙ:×/œ�éP y:ô£_ýZexÿòîê8ôÀt‹rñaeÕðû›Õj|>e–Z¨ê‰ÅKQsõ¨áîЛ-³9ÚÀ^˜AJ(J�‘{¹“ ¨ä%ŒÍ6°¡8Âät‰pÍâ®U 2¶Ä\ÑŽ‹RW ;ÄvV½ä'hÅ.G y¥ZèßÉZá4rróˆsšÄ üux…×—‘wöúr¼º@Zþ`Zendstream endobj 376 0 obj <>stream XZhÞ|{ ¼$Uyï9UÝ]½TwUuwí½Wï{Uß¾}—¾Ó}çξÏZ„¶>Çï¿îø­7à×2ð¼}ÿ×§^}üº“™·ïýB»÷Àù?»áúß¹æ »É|R7Ütò†;ùÏ#äþ9Ì©í#ÌÃÈ�0ó0óV¸â®Ñ9˜Þ÷Ûþ¯½ùwP XZ¥~ΰúWxׇÑ0Ë�2�âcßͼ—½ÿo¸ì|þ5óC, êðïp–ù]fsïe?ˆÂ$>?œb$”îÃWóXDg‡·á»‡§‡ËŒ…~ ó[@× ¯À´‡‰DôÅáƒè��ŽltÝ�Þ‰Šè1tïEg0‡Þ…>�¾‡.Ç�£·¢Ýè¯ÑkPF]t/ú\ý%äC%„ún·‹ePõ–­©³ln«uü”f�:¶¥V]=¦RŸ~n&ü‰>žž!Ggû3á³xš Öªøì¶[RÛáÎmÇO¥–É�ÖÌY&G.89sI aÂ�a¶Ï—‡GÙgÉȆ¿ãQ’ö~5j@ÃA¦‚.€q´8Üs»ˆ6aí†suh&ŒÏ0s( ×ภXZûV†Ï¸mšM„�¦@‹�ÇÈÞ€{‘ÏH’ç�=ŒÏ²@×2ß@>æ$ÂÞ†¢ýHdý(MÆw (\ËB?ç"ìY¸æô¼5¾Î‚cƒ©Âþxþ7è³D #2î 0ƒ÷/Áœ û³í„gÚ½°×á^ ?L÷:ÙÃxˆÌŽEàƒˆ÷¿}…ô�7"ôåñ}h¸'ó$÷Eé=/"ޫž§|y®+RÀr7Ã~šñÂõ{Ñ~:‡Qæzö h5x×Zð‡ÈZ>IÛH¾ò+>ƒðet^\߈¬Çï�ìEW�ôu¡¡<†çÿ}�¦ XZº\¥:#:Ò9Žm«*à ¤ë[ñŸ|ï¸eë©-ÚmC•XºuÑ­›n= Ùr*ÙzéÖGGüt ×ð´¤gCt+Бž•è6L·:¥}™öºÕè]í›´ÓÉ6NG´Ÿ¤ý=›¦#:bÑ~–nst$O·º-ÒëKt[¦Û XZÝVéÙí×é¶A·M²ެÿøLô7Àãph¡or.yÜv»l–á<6F ° ™hÛ-�ކzÝ^7º+]Ò�¸Ò…ŸÝü¤¹+-)- %ñƒÉÁ²ÆË?J2O®dáàwàï0€G6Q¥ÛšßvÉBà°2Ø5~´JŸ½ÒXAðĘË]‰XuÜžšn9Šå<ꆣûKÁd&Ï XZžçV{ø3L‹©ðöıµ.ÌÀTþ¼¦ ôþ ­ò£HØŽÊr4ááâvÒíŠÅ\´+yŸW’¼dÈ6ÁS¬ªÐ+á†ÉÉxÌÐCî £©ÑˆèädÂänäø}7ãÆeE³ör.–U)]j—ìVh¶P=ºúïåУôx²�‘ç_·alý1ôqþ€q)¿»‚9‹³:´uZ´µ8Ú`¼`q-üM|<¾/~#´cøLø>�Ø¿Ú2>îÞ¾›;¿;ïïî¼@Ňï9þ4ÅFsè¦~×ö¦�!(fš�¼ÓŠ9óØ‰ªjË)»Ü¶Ø±óµª òàéí–S)gÒ*§T+E®áüzu¢<¡‚ï­ôº+âŠxKáY±‹MuLéšÏ»+9yº3ÝžÊÅ(È L�“­v¦�/´Uþµó…|{ª3Ýj·dr̵=œGŽª XZf£¹ØQ9º­ù¦�½úÑN§^4e½”´÷6/´·wze=þíb4^ŒüêINˆuS%Ìï8àýöæc‹W6-ñÄ QòßË,¾_² û9Õ}{|¢/|ÿ?øDµR‹‡@ÅP}¸ŒæA$#«Ïû}ògoE·ô´(7šˆIALòxrª ÓM¼3��}f9—8pz±¥Š�òö&ó Ùž¹äkŸ»d‡›½dûá…Ù·œ9¸P"ï3á}ÉóÞçG—¡,êÁ 7¼,TmSöfÞP;â<æy¯»ÿ·¾m ñ?‚Awõ—öØ]aaF»–€ì.²“ÈÞ‹ìƒÝ™®W¨9V$)8{»òb3ºMÑ^HäÛÍ !jE¶ÝÜ‚ÔP‰O0ŸDI”AÇûe9ò`”ÊØºaèé”ð7Â$J§X&6 �0,BÑ ÕŠî¹nƒhE·KP•ýø†y#ð²ûQ¼ª–Vt�°Ç XZa’ô�o¤FiEZÁÁÛÉD.ëjë*Ö7ºóq..R�C4z‘2­ ['*yKƒüµÓ°D޽±ÔÎDt*»˜8–ŠÉú¬i¼Ô XZ©F¤‚Û—Î_·`lÙk÷v¿ _ü«tlÊê]^0ÿžŽšOå#+¢{¼¡ XZ~¦&t¹p厢$ y{ß.g‰ìásÌÇÁŠ1ä(ŽFä”rŽÛpø„ håžû“øk0=%ðg¹5M%*©:$T‘­üª6“(‚̼-Ñël?rÿ‰K¿ðÞÚN8ÀùM=9³uïÉz^2ä\½ÙkÏÿ¹¾#U>}Å;ÞóÕ”ôi?Ù;»íøÁ»7ÝXË)1#z9}ä�w©Ÿ Y»æ ”ãx‹Ù‚µÝ®€ßy¥¢Û„‚‰8²¤îFôJ¢1â„é+m4ÉPµ`†ÊØþÜ/:öÀvÅ:ÚœK;7”ƒœžMà犂ץŸY¾ó]—�f.øSÆÂ®û¯Ù $t$Ò…ù¾æ[FÇúõL:– '.6V$‘W>îu°á¤ÀZT…gv¢HW:¥®S)´†)] XZ «Aû˜” XZ"©gzÌwÈs¨$«Ž­±¾uZ£¸ž+2‹º8Óxu5¾7S †o×~˾dfW5V\ùÕ+æ�ô¯œÌ&Ää³±ôòàcG‘V“¥Ó�énßX•&Ômêòèh¿–ˆÇÌyç”™NlDœ•ââ±ÿ™¸5Ò¨ÇþŸh#H°ž®Ž±š¯­Ä/ÌÈ!]îØSºƒ?_%é’t HªÆö>vÅìÿ­‡ú:‚0Ê�-¼Z~Â�(lnn(h{? XZ8Z~°6VR¬L€õÛªR«ÆÙ˜K©d¤ß”Ìš@¨~‘Ç‹V��ø'iÍÕ60w¾t¬‰t:ãtztÌáfñàl#¥=hjbsðq'¤ XZái|¨)i�Kž`z XZ§_½Û~H÷…øÓú£ ÏÄú2ˆ&éž{Bâ1,èú¾ð›w½ÀȰ™ßž˜hk?‰T ¼B‘ OT6�Ä:|e�È…º4‹­Õ7ÎÒ#™ß/­üx{#\Ɨ͇µlûôB£øôÓºÇ`$¯ ´iP´äNù‘ø#ö/`vô¦~_bqÛçõúŽáuŒ¤îHZ�JÄHT�Ζ‰[«úÈþÅào«~ëeóWLqá'ó©l{åË_~ÙÕp^w¹ø~iå>fï Ñ©‚ˆ5üÝRBñwˆ�ÛfÄ EÿáO™¿ÚSèŠ~-•Œ„þT…¦éÂ~'ZQ€Ù”“–£"V1ÝvNH<33i—"Y^]MÕW$ ”„®s�#k ²¦Ç:¡Âƒe‹µ^¼ÆEÂHãè©le~S!‚øê×̈0=øØL0¢H6ÞüÖ»çRK_ñE™å¡™:º{«°ò!Ï> XZ*Y�fñgºá�þª‹Ôtyð4ÏK úƒ™¿E³¤F1#"Õ�1êvì¬-zíÚ¬=ƒL#ªas"3 ¢»±®YŸ¦s&Ð3w@¹’x­WÈx8P|SS�kàüj 1Šóð3±pyv¥_Úôö|¼ÒÙò{̓åïŠÇÃÕÎrw1)w—®Ï+KsÇW{Â^›ÀßÝâ,Ùõb#¹3’ŸÙ¾n‡ÂG„_élíÙµx$žj/:—wi�ã�´$È÷6�¯Žõ³’äe¯"N XZ @¹ 'ÊŠLë�–ƒ¿á:ŧìõ?Šg�n#¸® XZ>ª‘¥UÊàÁ=ó’¼»¸'¸ÌăýÒ.YÄ XZI Œ Î|å+§ úÊó Rˆ¢Ós�šË•òN¨a&Ôl”ñLÌTH—·I¹f<Æ"WhM8c`ê®Öê×Üf·Kmß6'+�]å@tr] 3q,c dþ¾ŠðBÜš·§íêR% XZG!H94#iÛwÞTREy�¹Oç‚áÆàŸ¦ì…d>"ú…|:YÚƒ÷͆y78ŸðÂà“W_zaã0¶§¢¦¾…M´§ŸÔÄ€² —ÛðäMÄx¹<î5Ì“2ZwyH{Ó£ÿX—rÇÈ*8`+ÇZ¸Ž)-4“31ÀÈ¡£˜ XZ?cQ$–æ2ºûÍoðÃÜÝ©ÚÊß1Wdpí¡X ÇÅ;•L°Nf>Ïþ•È›ú3U+*„Š%:QM§^³‘Ї\dsÉF".‰Í†�Q3™7rÑÅ9 ‡Î÷‘]BË$ ¡ùg�|;ðòCQß#Ó�ñúþC‘w<"M$ ­ÒGÿm¤±Z¸À¤ã+ÂßT™#9¤&éž°oðnlÓ €i^_$2xZ“8ª¢Ntc�YØÀ Z1õõ\uÝâÑšAO™&ËؾÎXyÿþëj–�–”˜Ìðƒ;4õ矙Ý~aÊÜô¯âÊ]ž@©v5ù~søfüâðïÖVŠ!‹g™ÐÆ•b쮸Óí4~qÀã�V õá/ð³øqÈ07¡Ëû ÜFNoÞéy�žíô,§¬;噘Köº¢v½–´ó1;_fx—¶n•”®}�Ó–IÝxemùÞÝ#y¤:J£ ëj¥�ßRKVÆP\h‡&8ü¸ N§ëÑZf2-+¿uËà×~ÁU¿X5Jü�†¿`| S2„ýFl˜‰†�bÖᘸJÙ~PY–±å(ƒ]ÑHh]t¼.ø¡áÜh gR`à€‘tÓp@*�º˜vÙl XZE8ò XZkbÝ1I«"‰€.µ¦À ޾VËS#éX#mºïN–÷‡´´¨üT«½jÓ3ý[–—›Ó/kÉÅD …V5 Äò¿m�™[ºõÚ;gû×ìmnŠ�rd|dWet]¿“…ü£r©$Q'˜Ër¬Ç±2>Ö æ,9(ŸË°iÛçq«¶dØRîZŸèŒ‘aµn8úøf² Œ7DÇ)#Èå<=›^ýRd‚ r(åggÕâk§ XZµt"žPÂ|2À]|q²¥¹¸`ï­ž®ï×bMÓ²"¡¼Çï‹…“¯«¾ØŠi£õZ?MQ¯� ›ú\ÜH…§Âî�RØiOx¶œyÇØë4ÎÖÔb¨’ÝiCVœíØñžÝBJƒ1t_WJì®L–”ÈÇ\Ô‚&)^ûŠ‹Jï`œd £U[’Õ�lHuÖ/ÞOVq;ä+БƶXkUEÛSìjo¤ø¯4ÕVç«R!¿i±[ììÝxÙi§\ *åty®ßš=nNÇßô¾¿±¦ùÅô–ù…RIð{… XZlñŸ XZB2ßÜ.ÊÉ�#‰�åâÍJ¢ä’øh¶œ1xußt¿æøù�/+‰>¯ØhákúF¡Ÿí˜v96©/{® “ýV0åó;†D#óÕ#á F–q§’!6h:ÄZ ÅZ*µ´•ZµâG…PTNE¨-ü Äî›cí�ã?ªþh»£7óíÌ73ï{ó½ó{/[ë5:Ú²Fgíé.R*>€�quë ÙÑ.ðv¼´c={Û&¾h§Á:žûλó&Üø"cG‡ÃóÎr‹«¶Y'rºþÜš$°æfï&ʼnM"�ªü)ðùBÙ¸¦ðÊÅdÛmqMæâIú™H ñ,/kCé(—ºªÃ’¤T4¨¾›c4E@Y�¦ *kÿUKt´„2D.jõHãz4•dó¥" XZ�¨ÁhcMGEÊ–`ºnèI-`f׉ÈÂå"IL^)!?B@:®†ÅµŸ@D6èâÈHõrÉë6>RHæR8}­�ZcT‚±†Wñ XZŽ‘ÅŠÏMÎcJ­Ñ’D0ÆgU'éª^sr›DÊ÷lO• §Ê&úê½3SŸ¿wúÈ=oÜVØ:P>vâð–òìô©g�<ô�•å·ÒE†ðýè„}õö¸‹rlIKÄÃfÚk¶K¬Éù­„}-AxÁ�Ä4åäUÓË!n“ßì¹YáËüâ…Ëp´±”ÔLTñ¼%&_ö£ù؃ª‚3´„¼kùÏi!–~6†ßb¼khnOÂ(ð,qðo±@r¤cô@a8!_z•—¼è»¾§ÉikšU{ëw|æ>ÿP-je2¦qŒŽ1Œ3io…^®ZÄhïPZ,?8>áâßÞVPÚôª<<Hà,K´˜ zÀaÆ�Œ«–C‹ªJ„qÓTms‹cé»ùÖZÐ.Y‹¯®…Í)Z΢#ýáSbïùëÁ²݈$R*—¯�ø2�™ío­4}Fù,͇¢Lôƒ)­»ÇƒY¢|ÁÌòQÈ–”6?jZ¦!›>« U�¡R&dKI�cSzÕ‰ëI6â­;Ê·¦ĈÕÈ>›WUÅ`–Xfš×ÛKŽ–Ò«å�¿n˜Ø‰¢Åö<× XZ}Cœöž”NÇØØ«,.$·óÞ�zQ’è2¡Š‚‚#÷øÚòQ]þ-q¢KðHdƒ™#×>¾5d"Àº¾å“�…„eSÂJx)у”èGW?Hµi%U3ãP&ácRíÉIŒ–(E9´”Pû—KFµR)'¨xCß«W†ÏÅÆGvw«aãF梕 ºf’%pØnBµ½¼\sDßed°Vf} !jñú_c2Gdc XZŸÕÇRÆM_ÄÐÎau1ÊkgKÊÌi_… ?J�ÝɤVA#Mƒêç^È UüÁ`¹�oO*A�%_ês¯û�¼ª•.âR£æê]ÉNÞØ�f?g3P˵›Pên/Ôúj8ƒ–Œ|Žî+äqžäÕiî†ÌW•F:¢Ãµë&<¢m¾¯S[¼«Ö옹Ã�P±»~@\Z™ð×ÒLþêwluÅ XZ<í笡ó,5¾½•Zc�ŃñqUŒó‘8GGi«ó‰"ßà–0íoo}ê9!t¹mAâQ¤ XZõz" XZú­2�š9%à1tØ$‚²9A½¡šÉ‚HŽºkpæñÑíZÊ©DØCì%Ÿ†4l®'Ãë…¤†V(«*Å:ÅUa"'¼kÖ›[Xe�±Ë‹2^+_Û’Š› –Hmä@ÔªNr¤¥^E¿Ã}1±¾¥T+ÍVcòȈÄW�—ûÒçºE•¦Íîsû“r(8Øûø€¢‡i]x¼6ÉIIJ±\B,S–~CQŽEÌ×ÕÝ ¨µ£¢-ôºjfsmä;Íew][²ä¹æ²»·ên71mÇP6ªúH|‚ª¿èÆU“ë«þˆé ÊþÜßôð&:W%ôÌw­ƒŸxð¼÷iZ'߉ÿ÷,qØm{°=ï¶}ؾϚ¿u/ñ°Û&@"ïqÛ$Ðäi·MAš|Äm{°}Þmû°ý&lƒ9˜‡»`fáü¤KH©Ü íVE5ôãVÃÖN¼z{.aÏy˜�2Œãþ(n: ÃTì£óíI‹ö¿<Îàñî§±ç^¼~Ì>«cËÚO",a�I¼>ƒ×&±};ž›ÃIvå»�7ZwÇþU¼²`?Éyß"Rp XZ÷³xmÖ~Ò¬ý®Ê¶¹ù»fo¹uI/ÜÜ®ýý5}çìñ¹¥»ægÊã3G�êÃc}�v§E}afqfáÄÌteïì±™E}vQŸÔ—&§gŽM.Ü®ÏY½oÔ'�OWçôY¼oñΩÅÙéÙÉ…Ù™ÅÊȶã;†‹ö#Ê[çŽNü‰ÿ�/#8Öˆ÷¼¿Ø„ÅîoÁ»ŽÚ½ÿU¯2Jª9ì3ýoéápà[8B>!Ñœ©CZendstream endobj 377 0 obj <>stream XZhÞ|z ˜W•î½U*í*U©6­%•ö­JêV«¥îV·Ôín۱ݶ»½¯±qlg5Î2/bHaÖ K ¼| K00ð0/�„ؼ°L ,3Ixï›7$!ù†ÇIŒ[ýέ’z1aÔ}«nÝÚÎvÏùϹ…0BȇÞ�h´u˶Êàé›Ç7ÀÈsÐ69qøºãq4B»B?zäÔÉDÖ¬@¿ ç?v캷žøì¿ü0Ÿ‡ã+Þzõ-Ç´\êN„N„6u�=|ÅS¾û5„tàüðq°_ ç¢òpœ>~âäÍ?üXè$oBˆþäÕ×9Œ†n—Ú÷Óœ8|óuø$¥Ãý ¸>qÍáG÷è8„ö¼ Îßwݵ7žºá·ç XZrþºŽ^÷ÈËŸ¿!æ% )íƒøˆA˜z”º®x¿µÇÐ 6ïûk¿É«OÞˆ:(ñ;Šfѿ»N“-õiü}úfê$½žñZã8v~ ß~UØßh^ÿ(ÈøQ8>÷¿J´lò€ég`ìN”#ú‚÷ª„ç‡a_·ô²ø2´˜4¼ XZú¹Ro ,‘ Ž‹=½¨æÐZý¬Ç�‘"ë¢$‰B@çU»#¦s>¯ËÉóÎ8c‹êЇé¸ñzd¸]v†bp& ‡XÆgQà?–¥ZÛç÷Íìä¤j¹<6²öпZž3qZ éÁaÈÈ`Ýz€ÖÃ,’E^6zÒˆS%x1 Ü${±Êš›«"YcøÏ�)>>onnm•Ë­[Í-uσ÷�ZÇ™®»ì®ð;þÍmn¿ýÀm·¼äq-å DF:q?˺9ž‘0ñN€Gx;£xžƒ³f/ÁȽù·¤YÃò XZ `¹NB)?D‚#ÌœzCáÁ;K§j�°Í¡xìJô�Ù¿‡«á ²‹£\vµðP*è·l? %P§õS(Öi›�NZ4b`·!ØuYZG.O);>Њ&©/pâ®Ù£7Í[Û{.›¿÷S'oîþÄÏ»Š¥›&G·Í冀Aæââø Èܼ¨ÖÝÈЦ0¦Èš�jšê¹7˜mDµ$ËB½Iï3(ðsÖ‘»æò½É‡6­ ø|ÿTΣü*3úR+E½÷ ÏöùKit]§‘–I&œNÅÙmŒ‘ˆG†èunÁÝ.F¼48yÕN3:ç—Däq سZg XZp¤ôre+â®âµ—e<Àä#Ò_çÿoÅYû`ºÑ}©‘XbónÑûÁñ‚SyqŸ×9 Vâ #[P�É!06]‚ùYûÿ¢$¸ÊÏY%²¢à'¢g:$$ÕVxsœÎ¥'o/�çCÕ…LÏ}/1¥\Ôí¤o]}ôå¦g>Ó™UäTRç>•ÏëçRF&` ¿�@pæ/ؽ–ÑÁ¨g•é z,šNj4BA…çÜŒKÀÁKõ·‚—»eÅ*«öq.|æÂ?yú9Í ».𜷠E&¸‚ÙžòpʃÅ´¸®E0}9a¶ûÒXb±¢²ÍWƲ™Ñï¾ø¼Å?™JB¦ƒŸXø_T²{ýlMª[ñ½ Š®ÿÉÔ×âkÔ“ �8º¡ÓŒ«>o(h–ëBF ¢ð¬OPe)²Ÿfàß]ºƒ{‹àßaWu—8_fÚÁ}–Ù‹¶ó}Ä‘`{_âS˜^f ¢W½†ÿêÔ“M�ï®·øŠeâŸÇ·Sr  ÌÙ¹ÐÜÂï©t÷ÖSçR¢Ð�ãÍó!I°ªhY1ògzGNÎ@"¤ôºÍ‰�ˆmoZOؘ“\]ÜÉ]’¯à+ß»ÿбýwÞµïØåûÞ·odrzd÷î‘éÉvÿ¡Oþ÷C»vzð“‡ö§×ÏßwÿüÌÌüý÷ͯï!6Õôfy´§Sö©7X.k`)`B€•D0¯PJ·«1�´Ò…¿ð¯ŠA•e×6§A8«Q6»XáCá+µZØ&Vs»Hæ·´&¦¼¹šZfÁh…ß&éƒÛL÷hÇj-åz*´;ciIcÔ‡?ýÛ&LéWF8o|‹o™8¸ãÐÓB¶»ëÈÀÎ];r XZØÊuÁŒåüQ#ÄÊǦ焅 B�¾.h×̰0ã‹W_­ £ÙN*ÂQ XZGŒ†l4ìà÷ iÒý.½4\A(Dé›_ËJ‚Vää;‘žRkNe—Ê!ýz¨yœÊÕäåå¦åÕwÅ\>ù¶b�¡ …Öέs»jcGËÇ\~NV•h|l×H;¬ŸWËÍÁ�ñµšíõàÏfª��òøH­6½k]m,)úž™Î®[S6â¹ñŠV�ž«e¯Ïé#Þ­ŸãÑîN‘ç|4ø3It�_gIˆÆH¢)'ù²ÑÛÏ’Ìb©<ºŒhH)hª°â0‰I>¢ÂžêH˜jô�6øm|¾û\‡÷ okqA;5dú[Û‡a*™êyµ2÷¹ÏÍUº¸ž!t²à­HÕ<‡vu XZQÕyå²Iˆ˜¢ x_PÑY+Æ–àwW"keù{³^æ³DkËôjy[³¢I//] Ĭ¤u[ƒÔ­dbì¡3£qmGF5)}s§ìñæÄé–7wÿóêæñ+›q“„~@��o/l.¥MÌn –ƒˆrxQѱNI�…9Ÿ—|»%‰ºÝSYlŒdÄc>7�Óª×üØÑ XZ ½8Ù‹‰áÈ….È—†ÎßëYþæÊ4¼¸Û XZ”:E“ÈaòDì/Òƒ8ÀѹTRù•ÿõX1…Ýå8Ï9?úa;9ÈÏ„äØÂ�¨Ìd^|A6Ÿº�àkQvF„fñ5úAअnî4šÕD4’Î�µÌ@Ú2ÆÇÊ…ˆM5P¹4V,¨±Ö ÒV©‹2™hyyö,¡‚Vÿ;‹M‹ÑsʯÏßï¹xNþ¿ç[}ÉÚCÄR[¯”˜²>Ú {{ò –”߬æz¬›¹›Ÿ³äêôƒ™¸GË(™¨?“r¾ü'üÙv='¹ƒÕ×&mŽ\¥ÓìIrÞý®Û®‘‰=¤î}ë]k®Þ7´¥y4y´»ç†G>ôÖ_°Òóp|÷nžo©‚À¸‚.=Øý<ÞÆçýaž61;Ì·ÇAbmôÅÎÌØ`¹¤%"<Ѿîge)—“d»ÂèÃÙL£‘™0JÄZ;÷V~¬¢\ï :ŽK6ö�r0>ø¡ÇÕB¾û‹”'.ø„Ëo XZ¹Åäoô¤§ñ©ëS¡läíj¦Z¼Þëd4�4˜øz÷·¥H–b"^MŽþÝGâ¾0+q0³<ÓO„S¶L‘v(DYèšÏu£0!ÒªU³^‚·ßA¡v·™^ 8L;çÕ…t%ÛK鎷»ù XZpT\ï¹×@¦gq·{GÁ/}¥Ló¹²6žä˜òW+ XZ´˜�«Û­ÙY™ã8?#Œ¡Õ2²ÿ6ÎGü0Æñ?º2MEyßÚ3¥Êžý_l¨uBWZ-Ž$›º_û#š‹)ɄӹääËÅHû8ŽÏ|íí GÜeŤ¬$2ˆX|½€žZo[áúX±àÏ:Qh;¦â²Èª XZ[È×uÖÍ6ù“–ßæ øÙjäs¯É2õrW¬9(vw�§nc‹ÿÕn[KŸª.]›.]½˜€Ç¡ªçë4º¾’ãq£FÝ-V U “M•O$ [ÇüÄ}ª˜úÒhÂ:‘ø@&­iω²à¿Ÿ0â’Šø›9�pØ•X»�¸CK”å8õhü‰J4Âq¼_ þÉ'Ì¡n>lÜOƒÞßÙ1Ã!–ó‹Àº`µúÂ~IäxPÀ±pzX¹94^*Ê#�ÀTXî{`3\°n5ÝÕÊv <1<‡]»^uùgΕݪŠ8ThØèÖ‚á›ÇI?K¿ßÊØëj‹µ±{Odu^`”ÙÙÉì\”r‰?eúüW>�fBaVÈ•��ŽÏœYý­pp퉧‹rñô±Ý�i‚Œp´í ÛëzdZ±ÑJ;¶�aCž�¦;)ÅhNí¨¥‹[a¯‡h<µ˜PË1-Ãtt9QÙ”3£ÌÃsñ:'­Dº¼¹4š)EHÚÙ�"Za˶,›ÀÇó\RÂöt)¯ú@Zõ�žè™V3¤*ùBÞ*Áס©bÁ…fƒò…7¤ž¯ÊŽ<;ÒÃg×p3&Ï_i}`PLßµÿù™.‡M;Yé¢Ó”Äž"žÃC,Ökn¹ÚpcØÞ¿—cAy¯J Ê…‰„ñwbL¥õ XZK«ÂG =>x�cŧT�Ýqùn°®ÃaÀ[�2?þžªZÑÒ&%J²p\`¸;ž,°`Ò-v3¥ü5À`ÝÝi�3éXÄH8¡·jµæòcÕn6%ÙÔX:|™sËëÙ H%ZéÔ~µØÕ §_þë?u3ßý›¿úýÚZ«´W¸Ò¡lv7mÔKÎ %>@ ¿Æ“õÁR®4ž-™$›“Óf\£Â*zZK“¾‹{H~˜Ëç§Œµ›W­zNa)‰&gTº™/üD ù1ËÑÑ�L^yAª WFãðñ`DD»:†"Àòù-6aE¬›ømšcm v¯pöêdû$Ä�$¯Xv(Òmu|„]»S÷׊Œúð±µÞ¿3Ƴ÷ÝÇáU¶q;·v«&ÌÚN®/áÄ£°/Mt´d"ÂèšàãÁ×U¶ü J&6Vàt{þúÛ�ÓC눦«–» À`tkÇÃ[•AÈ?ŸiÔ³µÜáf‘'&D¾Ø<œ«•?Óc#õúg¦4š™h?:¥§"lJŸz´=ÁÐZÊÁØüú+èn%Õ¡1²|á´Z a~ K|ÖÍž¼  º P™T #ÂÄÔ>T’åO &±±Sh#TiÆaX¼ŒðÆA+¹›O±¦.fc9ªìÄD6*;@@a‡¡šŒ°“Z* ªÆCµhx¨3JTWéhÛh¨ú‘-¯K À?�†·�  Êv`Ÿ#ì@0€ü>� XZ¥ëm£žýBúº*¥�·dîº3syÿìôéO:T¼ˆ?ƒÖÜþÅvGf0‰1¶¹€zÿ8§öÌ£®ézeÒñZÆÁ2UwgoÌá~xÞAö·¼ž»X!«²YËëµÚ©ñ¤átÚ�•�ì…<+PÑTG…HXZ'�žl'Öhhz@SŽÒØ0™ Õ„�ÊÆÈtHŽo©ÉeŠZ­b¦°0³/-«Z†Wr»~[}ô.]Œq”\ŸÒ•ßÀzsã“ùé¹ñj,ip|„‰¤u)-ro£º\ß� kºÜÊ'jZ"Ί?M±•¼Ù>stream XZhÞìWml[W~Ͻþˆ“ø;±�O_DZ'ñu'NÒ¹ª£|4¬ÍZJd‚m¸‰b×ö¢äƒŒJÕ b�6¶±?›4Šƒn‚ ø±¢iðcª¶!FÄ&�´*S…:1�¦—çߦiÕiüà‚^ûy¿Ï9ïyßs¯}‰‘•¾J2=ò…øÀúêþ{aÙî›[ÊßúPVp˜ˆ¥æV*J¸Î‡Ü ÿ¹“Å…¥þøàw ¿}~aqídé×Ï~�È\C$=ŸËfæ_·> rÍßÌÁ`º(ƒ¯ zgn©²úûsMè˜_~z±0—!:á!²üúsK™Õ"«H1ŒŸ@¼²œYʾùŠÇAd{þ§Š…ryã²�áþb)[üñöK�/#'?ðmö‰I›ÒãˆøV•³‹4ÀĸO»Æ+eJ“rE’mô.ÖZçTú!{C^•*ò4æx޲ÒEºÆ®±ui\û¹ô®t?kg))B¤}¤EØ?Ù´Šd£ßj9í0;Ãê±æ+´�µÇhK XZjÛÚiU;Ï¢ÚtœÜ4KŒ~Fê gèOô7º@GØ ½ÆÞ€­ÂÚéWô(�¢  è(=Kãô]j"3EÒF£A–¨weRÙ�C“ÁLÎÌ}y"Ö»«WUEyUû͈ë'i–áÚFzĵÁ’ÜëeS+ÊAŒœÊä”Y>08²!…x@väþrC´0èemVû’|™[n¹>`WÉ/¤Oª@öëìÍÀnzå1Ú/×R7vÙGì“Ò µ#~z|Šy´Àî XZ@;ÐÔ XZÐ4Z¹[Ðáíåvì|ï‡?»ØÛxÞËx¦îO·˜ *™Œ*3b²d6ÅIÌ&㮦©•ø°�¤¤X<µ“â ÇN XZßþ¾ŸÖ�±'á 8#€Ÿ]ð_?#Û®ýÝ/½¹Ó‡'&Ö�,ÒK4DgÓŸ«ij 5ÕթƨʆºIõz$™1›jìW;d¿ªÄÕÆŽ@¨Ÿ‘Ü')þæp(ÖÚÜÒÓí‘cCƒ’‘úâY¹™�7uZØÆ”ƒÝûBcfsÊhôFÿ°6nº­‘÷£õæ0×øûZ£öZÔçû:›š¤�Cmv»l±w³û®Ÿ[-»ÝêL±Qå¬y::Üý��¿‹»¸‹ÿ°¯ó÷œ›À¬ú¯¸¡ú^šý�_ùëg†ø“ÔÀëså=Mý³¦9Œ»oògÎQG�ïÊÛ¼¸ºü4¦Ïábé²ò)]6A~Œ¯`°ÀâcßÓe ÿ¥Î벌ÿŸ¿Ôeä÷tÙD�’ ™Aƺx¿§i�J”§ÊQ{ë¢9Š‚÷Ó(>Ã�ûŒÈ XZ"‹”¥Mƒ.â£Ð$Uðª~s¦²Ð²àYðÐyD‡IXHœf€ XZ"2ðgáË@~¶�¼ÃÚÕù¨eÄÇá)‰™ªë•QÁ yøòb¦¼XK/×Jù…\Eéš‹*ý££ÃÊáür¡²VÌÆ¦³‹‹ÊØAUAe¥”-gK+Ùyõx~)[Vòe%£TJ™ùìR¦ô°R8¹;•Ìò|¼PRòW~äD9?ŸÏ”òÙ²:9~húÐD�˜"v¬°”Yþw,4‰¶B‰Ñõì)Ø1ÐlpQlìÓ¢bˆ+ˆ2.ÿÇbþoŽIõNüZendstream endobj 379 0 obj <>stream XZhÞ|z ˜e�÷ûVuuuWWu�]U}ßÝÓwwÕt÷=™žÉdrLf&� ��ƒáZ…•[DqÝ•pYåóqU¼V³("}\wÕ…EÐ…O}D¿EeqÕ°"Óýý«º{Ž�o“y«ê}«ªëüþgÂ!ÝŠH´mq{Åx÷­ðòŒ…ýÇö?ðµµß‹~xÿ‰kc©$þÇE8ÿà¡ã—{ìÇæß�ù�ËŽÞxè�û/Ô¢á|ýÉÃ÷øŽþ‘ýͲp¾qœß ç"¬ûS‡�]{Ã?½?øs˜oCˆ|øèUû÷¡Ôöµ^…ùßÛwÃq|%1‰Ð˜£Ø•ûŽ|¶ýBÓ›àü£Ç¯ºæÚîi8ƒ¦‡¬óÇßqðx$Å_�×ã �ïGÂÄ׈÷Àïïíñ·��Iô?ü›:zí5h XZÅþ‹ 5ô <ëôc ò/ñWˆÇÈ+ˆ=¤�?HG@)9ƒ—Ðñ»‰çq‹xºûeü"r8BlD¨{¿Ú5º·¢4þR7‹½ÝÏtçÑ?âOt�âá.ªw÷ ÐQ�õÿ%|'úJ÷\Bm$ ݃žFt9úô"ú*úzç° Ý…ž„§îBƒ;èCè h5Ð% !Šr�*žØ{œLoHî;¬'ï�)—ç½i,öÕîS#ÒçÛ¸1bÍo�H�ㆵX*âÇgOÄ6Â�³ûÇvY7&G'ÒÖGv—¶$ÑÍÂö•îùÝ�äï­•5ÿþŸFQûèÍÞÀó(‹E÷Ã:a�#§Ð"É ­èyt;œËÃ`ýVâãh'z³ûÌkp_«ÝoÀz F  ƒ‡�ûûŒ¹þ^ƒ{ Aø�ÖïX{X¿�ükt‚ØßýŒ7ˆ‡Ð4ñ,ì÷w»Ä~ä"žEÃÖÏÃøZ÷M8OÅîäT÷5â¡î«p¾×!Ø�Ã=€ßµã0?ë[���°þ2¬-À}oâ;�h~ö,þ$ð}ÚæýFë>›Æ¯Ù´ò°�ÂuÇàØCÆ*ð§vo‡u/çà÷-^½0‚ø4àé4òÃo–`p> ó<\ëz û—0^Áwt;€sË辿û'"Œ†àÙEë^ o”¼�ÂñA*¬_H¾¿iÑ5�Lòqxþ<ú4ŒàÚOÂxZµÝn$” á8šœÄ•%„Ëeø…¢ XZ�ÉfêÃ�¦æ¤�´ûM}DšÔ¸?»›«úó±@ÔÉ|Îyäú çÜúʵ¼‘ž¼`óÉú¦ò"N*ÅŠ¢;íU$w,>ä`‰YÅ›dø°L‹LHTå¶âžŽKªßëh'ôZ?~÷î‹oÜrþ�‹¯Ú�‹<<ŸÐÿþ‘�`óòsï8þoßõ¾›w<ý�{vM![–hŠ Év È^Î�ÇRNøUU ›'"H³‚¢rDÝÿ4F-/QoZF2˜Šğ)RPÇ2‰-;n½aëöÅï\W�ްãÙ‘ÆŽìþ·î}¢ÚØ^È’žÎ$´Le|wDrá»Ûæø¹¹|½õPú-Þ)é3­-—,ì>oÏ#Wž³“sÂ!V¼zÿé±wž·q[D•T1HÊÑÍ·ì]ˆè~D9L<Œ‚€òwµÇY XZ#'mèáˆá×u¿Ûeh¡¨¡jš™.ºÀ#ÒÄ¡0IðoH¢®!Q H¬a±/Nm�ø�ü*–H[-+”L³¼ÊLË}µÍE…Zö=€kF£iï•ÎÙ|Ïî­;wÍM%FE£tî%‡6íºîÏ>‘Î ådÞéÃÏ�›wß{ým¯Î©Mïxl¬µùžn½‹v»<� ãnôwèÏD—· Ó¨eCª"(�Ê0n£X*å˜èL™›Èo213ã4‘a (›éGŒ�ÖlGmÙöYÔ7ÐápX£³=_ÆcÃÒ&0GgípØ«9züBÈ_Vu²NÜõùÂw kÔôñ1™r±¤4£Ð¥U%)H÷¬3Æ„uÊÖ/fæ‰û>L, XZš[üt ~§ã*àËŸY`tšŒúÏq}¬¯ZGÝQ,� ƒÎž�UÑ\; øuÊ9 'Æf‘öš §™ øM=XcŒL5‡ËÑÉ2Ážcë»÷å8Uˬ0:ð^�^A*÷âG¦YL§jÒduÃ{Îß’¾:]ðK~5^ÂL!ÏÖ*·ŒÞ6Þ>V<¯Ü,ñ¡o‘» XZñûoúÀÂð&^ö^²CQ8‡ KO„ã³ W~º«²§h騲Ñ.èxÝÝžlòÙhDçXFÉ”aøÔZM5yØpR� õüXÞD¥â¸2þ>4^,�EÂ^’ÓpdÅi–3OÔ‚�åŒ*˾È{Š:e»"Ø ’…ÕhE@0>Ë]“¶X4Ÿ­èI§ûó3lܺ–Çñ¦=ÏÖ‰nÞ#²·“ª0ÔùmI±S�—§I™úo[ýN*=„Ŭc8\vRj•¸Op¹¸R'êe4·dätóÅWO{ÕM9…>ä¯Ë‚@2bñ…‰$;…žìð­ » mkÁ€Æ{mÿi·"Ë XZ8² ÒÖVx ³¡3\V*&›õ¾'võiV«´¸‚£Hf…"‹ˆí|~Iõ:,¬vß„úæ7@SͶ#ÉD eC¡ h2šÉ(>ÛDˆÑ±w‰-¨öÌt-•Vzí]ÑÆš¸J+¶ÈÆ¿Iºtþ²¤QÚPŒ¥uU á¤Ê9]·9�©HØIz�ûn)f}zA�„dVfüø=âÖx #Úê|Ú(¼¯½®‡B¿À¸mÖ|jµªÊŠ�ApC”ÃAY(d=á qlZ ê5®å–Þ(x„�c:ïÉUä<ˆ‰�„ŸwžI XZ” 8§äÍg¾�_”b® Vh7WZF"O} JDÎÕÓ»eÇ�`|T< û#I”ý[n¢)s¦3áØ7¡r©�p%Y–ªðCª¯Z³­*“5tMÓ«vZ�JZ‡ 'M;!¯´¬òJ;§43.ÚD©€‰SµtÊÀ�P²”A„NJÇÒrú¥­ê(N¶zâ;C‚Þ·NêœúÕ@h'_û¯§=+’‘e¤¾-‘ked‰ 2±ºÄ}I/T¢�û¥_8ŽS] ;Ÿ^ïM'?úýä+lù¦¼§ã&b�½bØ yˆ¢¼4:"¾� 1M°ê”Äì' fóà Km9b²Šé WÀ€ÒÅ¡c×Yû4)Щ¬Í¥ð éXÕ¹!žx×m?§µp÷í÷^:¹qé×Nÿþ‹æ&2ñp|Ã…[&²qüØGîý€9}ëGï»glªó¡´ÿð…[®¿lvn¨¼kóµÖk»½»´ƒ¬b±�Œ@†* VÓÆ&âF  ¤Mw­dâœA�À¹0²Š�øËk<—•Yø ®/×>™ìÙ¼•åêòé/Þ8t¬>{g5í«»�üë–7?A±±{6² XZ·;·5Û¦0ñNaëÖ���$õÍ�êѼ~,ÇŽ?Å3~>ýA*飭@ÄMAJñ‡~îŸAut]» ¨`ÙÈ+P´2”5dÊaw*i$I˜fЃL\1¢¡ ÈÀ®m¸5µÍ: ìü¯µQ�Bƒ³ òlÜ[m€AF‹`r�,œDó/ož¡)­tºÀðÜÍr'ÞØwUѸl��ù?S®¨ri9�‰˜QpÃx†zƤ‚^;³e(ÊdÌE:„M›ÚC~½"Öÿ;ªÙéñ�jµÁ�ñù-â!4ŒæÛÉá`@Ç:ÒÌ:$�JÄ)³æ2r ƒ.šH„sËAºWÙå@ÅÄr÷¸­÷*›~Ÿ!úª‡�‡½ªcPÆvZZyà0dI�†CgM|Úˆ<ùÊ ãwyN�ü�WǬDò¤ö©÷ÂÞÉühU÷ôSÉ“?|ý_‡ëžwÿàÓž·%–¡~þÀã~fi€<*˜îwÙí°hA‚Ìdû‰%¬GñJjùþ¨+~ê�”4;¿-Ä=ë`<ÉÈórXᆧŽ\Ή¾v Ejü,áŒDA–V5žîtÊ*x*Þ¯ù?ñw�ÕX@ Ï3c›oÂt‚åa&jtÒóÁǼ†“x[Æh¡oÏEtQ;›J&âžÆ(à7†r¹¡¸™ I– Ÿ¢Èà¶Q2¡áäÙáb‹é…Ï}γ&Û‰”’vÐê#¤ßдË!Ë‚z†20ôI pºð· wX÷©Í‘ù`þë>¿þbX¦¸T½óÓ²æ&æY ‚•@t@8oëÜôú½AÙ¦Áø"�ßlKe)Ø÷Z<Çávµ„µ RÕ°;€Ý»™2‡“&™3½USI"mÄ·(˜ôêËí»^„k ƒLÄþÿ|¿5ÜïÛ/=,Ïbõì´�OÉ:Wúܪ6Ih}·bé•f—âñ¿²»«!7å#Zå\ͨ?±?V"Xr‚渧{Ý�—QÛ¼a]\_œi]É\É»”À6bW"2>~ÕOcj‘¤ÉZí¦ú¥7“’…ŽîLÄo¼ø×€ÿŸF^ÀÇ–v\€´^Éë XZï0CØc&#ï22idDe"¡ãôꬫµÔOf=ð>‡¥´ÕñÍ®npaË$lÞÍþë=àz÷Ò|;+æ6¬Óµ‹æ¦:¿ŽoOS!)ê/DFÆëÓÿríÐw3N1Ñ;o¼H¯=€,M›½áÜuáútóúçR¢¿žð»$ë�hxú”­ÓÙv #Á‡Ì´l²q“ XZš¬Ï¢†[7Cžì^ûÊgE}Ø\V»ÎmëkUùÜk ÇõAÏæñb!]?‘6¿r$¢…ä!^ãwµÌ sÙðåL^ˇ³ý‡°Qi>äd˜;Ï¿É/ƒøîtÀ£ItyÛtä„F¹Þ(çµZÐèàQ7ä£ëÚAftcf“&O›jÔ�†®b^ÇòÛ«‚�*-®³2pM÷xI8£x5› S«g7ˆè-¼R”†.ø<Ü0ZÛ” XZóòsï½.DQQ&•ñ¿Uôíµ½?d³™h%=zôŸg&ŽˆUç+º¢ZoM»Çº5ü¿ˆO¢:Ô6 h(æê�F�3�93Þ°J5XŸ›ô™Îš ¦h¤+FÚIÄk,mÙ¯ôÞÞ½­Õœ5Áæä¦Ùh®à3cÔ®wL:9Èc²Ëèë÷€’ôEñÈè¹]ô >‘ÑêI‰?ê<¶)9V™)&Ýt˹°ÀîÂï�]aìñK*ï÷s¬@±—ÔvÄ:O=4;Æ XZQ/­*"9Ìtz?j½ssu ü#Ð[M£Et ]ó;0ŠÏ3 sä‘e”n›ò¬9D›óŒ9¿…3RáõQ1„ CÂràŒ7²½\m¹¥ÞkÏ.g˜Ö»&ÍŠÌÉ>ÿv6=øÂP�égqVm ª“ì¥ÕV®ÝSFC^Õœoàîk×Óš üðçKC×q”Ê¥Rbf|c8-¹ÇNÅ£sG(2CÝÔl}jK0­§báxuÿU69àˆ0ü¶mSç$£¥ÑyÆéá|š×¯ÔS µ‚ÛMq)"{<Ρ¡é^½l6ñÏâÉñá±Tþ¸ÛäîñOÀ?ÔÑ®v6 b®4”^V7Z3g¾„o¨ËÎþ@È6;¿MÊý¼–†È­‘Ú2¼ˆ¾Ë{†K빂ªÕÃçß^Në.}îv–b4)°mž:AÊ[ÇBàA)×± 5ã÷ ß=ÊyçÛ£sÁ ðëe_Öåe±à–¨ÎfbÖØá‘ XZJçeZŽk`õ5°zñ>F9tI»¤°(’’#)�çu·"Ç‘™�›Ù€Iñ¦�Ć;eDtÃ�Egsë+®°Õ«6—ú €<¸øU¯`$ÛÕÇ–?°•••(ý.Êd"碚S¯—É]$'xdmc@SBAE ½ÃS$A�AaD· ’DçIO•æEÁIñ@ÀNA}};xxK€m\Ü.ºhaÃñ,TÙ™ŒYÔL!j XZ´Ót%sF2`(aC)"!€•3Ãd¯+fóÖ¼Å¯(TA“YÈÆèK«ß¯:ßÎßø&‰ä eì"òpôÂéˆ/¨Ê¼ŸSâþµ�$Nmâ¼4'�ƒ7\É ^÷ñ¬èðL¤‰Ï øÄÈ :ü`·Š®h×TŸ„Q*Áz obçõrȬ•L*�0SÉdÐd XZ¹h2a¤Sº…bn…U«ƒõ<°:x%³‚ååÂZK BTßWº¤�ÿð¯ÿA4ÑÈÏ‚é"3¨Å†K7\’Ũk�NѪ Õ{ÏàZÆ'è(Ð Å/ýTñ\!œ.„åM›m’ Š×ov·ƒ‰d�ÁP¥¸z.}Ýëò9닞À//Xo�Z¥\Òñ„YÊêZkbb4„ÌÅ(oVçL'gÌ„ŒQÆØ4Õ¬‘U ÕäÐÚòyiÕw¶i¡~a°ºî_²?ôYmc½NœåeV>—éÍûÉFS£{Çú„IÄ-¸ —SŸç©Dx(d¨_°š Å}¼.­dX&9–š›+û³KŽùò\c<à!šÍV%ó‡BN7ç¯céª?!3Š—Í(‡[…}wn½Ï#¹’¡¡Vñðcßd—%¾CÌ ï˜b.‰6ÆSQiÏe‡X—*Úøþ#þw�ä0:¯ ,Ä¢!§¢ªÏV3ÄúxͤÓå5‘dxü†˜^i6¬í̆¬~‚±úÃ-±ê3� žZÌDÎßsåÖ¹“‡¦ZùÌÂD#…OÖ²­ýû/_œºê[¾w¹´`\wxO®i½òür×Ä?*¼h ]Ö®4 y×/ˆ¤,’|¦˜È“¦è1cz)o| XZÊ¥"2Â~ \\ûmBk©ß™\Ε—?]’ãE«¨ {‰>ÑélSå±¶:åÊZBÖ7½®POKøæx<µ5[ XZûÎ[ßê|�xˆ"‚D8b4&#�oIÆY†W¹ð÷’¼ÛÅG*î�.áÑr¶}è‘�$Ý÷¤ :é=DÞŸËÄ[×|_¬ Mz}´ØõD'¯þ|ꨋ³{æþn¿ 2 £<ÚÑΤV¬ú\Ö§)š¦»ÌBÜôèC¦h}Ž1¼"&p`å;½Ö™iÂʆ €‚ŠgŸål¿PèUM³÷®—TV XZV'¾ëwÅ!f'ñÿØ7¶ǭ깎�ØqìØ±“8/lj3yN’�=3™Ý�î¦;;Û™�évwº´Û—Jº“î¦�—f¦ [UBPU<«­�¶| TøX`%„à‡ XZµâ¡‚�袂ҢêGţю�Ç„ª]@>ZrdÆjà'ÀŽ CƒÅ 'íZª›åÉç=~»èµƒZý»ZKÓ±Pº^©—ÃÁxúÔÄEZ¼1ÄŠyù‘fhií“£q|1'çRÙLÎl-mÐiA>úµ®�u%ì êI|ïCÐm•''"•qK–$¹:nñ�ZäYÁ:!sœ�b£ü8­ë•rm€¯êÅœ“eA÷‡JBlŒ¥9!0¶Á.ib²ðAëtB£ª¨*GôÎårQFæƒ~¿ÀË3Íy½¤ÈÁˆ<£–Ägt68îDe^Û³\~·a®¥Wt‚âÎÙ;‘³’¬ˆÂ�ûña&Ê¥£3 ŽðÄ„Þç ¤Ó¥w„¨‘¸îHn˜;HA=}ŠáŽùÕº^�RB ý³ç:ÓÑdD’ò¾@<¦ ZUTØh=Dž’F|±¹së¡s¦jhB$›<¼û‹µÇ£)’TSf(J|·Ú XZM e»{_%�‘ëPD²â1 m™¹œ™µK`S;5–sõSªÏI–c¤Œa¬Á˜òïÌ,éÇ KN¤¿ÐÌ„I$êî¶åÆ''öãNgÆÏHi’Ü}µW*²Ä NPÏä9q:ŸÊÔ™º’T2Ioó»×üj°ñÑ>Žf!íõ‡Sµ;BÙaÝU׊!_¡6Aƒ\K‰(„m:ï· „|ÎgÓÉÐ(¤˜“ód»üÙ�똽rõè§“ì¤Éç53Í«qo* Æ©)&°Ôf£)p‹ÔÕBEäöÿQ]ù'àE|Ù,šbˆS?ë�GDXF¸@ç° ó$€˼oø>±ì•÷SZendstream endobj 1 0 obj <> endobj 2 0 obj <>stream XZhÞœYÛrÛ8}÷W`]û@mY ¯"ùèÄ™Y§6Ž7ÖlMU< YŒIB!ÈÑh>`>`>p¿eO H)JƵ•Š%‘Ð8Ý}ú4øêÇŸ=©‹×Ë‹WËå‚ùl¹¾ð=Fÿð‘,‰"¶¬/<ö„ÿËœþì.>9JtýÖ \ßgsÌæ~’žsÛ¨ŽWUÙ<1ÞìÃV´¼£_ôàë‡&Öm»¿¹Ÿûþì—å;Z6°ËfÙ€aäú)K¼”–þäø.»½[~œ…žóáæ§7ËÛwzì‘¡‹…GO»Al,Ä ¿Î|Ï-ýýµ»aA»ÏÀ�ÙÜwã[Þ\¸^ìefärS*Vȼ¯EÓ11ócç·mÅËF±�œ±³›ÍCÏs3§›yŽ~”fó‡½þtwû3mx/ûÖ½êDíÎæ1Ð:^gÕ¶onÍ XZŒUI’«VB4¬´þ¯¥Sæ;™˜+Ö•µPL•M.4ÈÃn oäfq˜/Ì«½èüw¶ü<ÁÃ�…w´¬Óª‹V‚+Áäú°·²a~–â%ª8RåSSÚù†S7�ÂèÅ+&f£9oºq£%ÄjïújoàAld^L Zø‘uy–Ŭ¼êØ®ì6^eG“Àú¢Tϰv%*Å:©o�Yønd\r¼¶bkÙêg/XLÁ kaÜm´]Ë\¸¾çÙ=\7Z«ÀI…èxY1àkÓd;®ÞÈIªùZXª�eà£ÖÂÖ=ò‰,V]Ë·ä Ùw ³Ü› ßv¢špŸ¸‹q:¥F„ g�0P�$kæ.¼(~¡»íÚ‡¥¯4fa·áÈ%½«ãÔD°‡‹Åÿ=?±;¶Öè¨ c7"ÿÓVðÂØ �55ø³€³lÞXŒVeÃÛN¢ ˆ2§h€ãm¾™¤ÈVͣĹžÓ˜¯ôá©Îš‡Â@–_«‘ºk€G.ë-je Ò|yŒh&Ì^J^v�‰÷+qdxEÖ&nàhbÚ#{ÅŽ@dè$êÆX(¯LÜú‰ ‚‹&ÌÇ–ùxC“ì©ÁN¿}jy1M-ìI�:S¢Dí¿J­?gº(Åš…ÀYUÖe‡d㫲*»=‘&Ïuvɪ8M”0u”µ!vÀI™ÊÜÐ÷Ç‚«b ¨aÈšïA+¬§ºÇ×”ô“ Úò¶ÓÔŠúÌ)Ë,êøÃ LÀœ¦xV˜&¼NÀîx2tn;Ú:x£l5Mvò@ï^'ChSø”¸]KÔ¾J樿J®»1 |£‘Äå‘çL¼ŒôQt‹Ãÿ|Û'›–ý8Õð²†ûh”J"�Xm0Ç ¬aè0”·ܵju:¹w«¬<ÎKtJ�.BÙ6¹sm>V²f¨| ô½.OÈ“ïk¥,õG—mù„<®ô8Tµ‘m§Éüò�JYÁ^‹öYK±J q¥H†‡)d7'4y9”GøãK�8„Ójðÿž{œ�ÑJ~ A£ç4|…ܺí‘äòIìlµg¯Kxÿ�Ô…ax¦4¬b~øY’¹ìý!±ÌUÕ¯”øÒ‹æ Š¨xV¶Þ‰âÊ–£yÓƒTJƒ«1Œ‘!¥ÀÍÆÂ+b(o¼�è€8!¥…¾œ”†u�ò_I··Ør2 ©QKø�ÒIQDa@é‰eÓ)ñX‚ÔÑGs³�ÏoÞ¾aÿ™ùaì\ÿl3T=ήŒ"Œ Uˆt.ßÜ¿º½G!4¡ Ûgº¥úíXat–ÕÓ�öºc–…÷BªFÎC¾é«îw”Þó–(KÙâ3¬3*;k–ÝÇÔ‹¸„ìî†BfŒ='ÔÓÈ’Ãù�ŒUÍdBÛˆŠø·E ­ KjYbá4rSç#סŠÞ°¥T[0ˆYäÚ„OXÓ×+|uhY€,<1aˆy# ÙëNtU#hÖšÆê††´°:ÈSË_¹Øv„Ýå=-Ê;ÄÍ¿&ÀWêÒ@ʉŸºV=ªŽË°Âõi`múÖ$lGŒåw0FiZ¶ñz[Á�ý¶]ø†jÿ|’Ž ë8"ôVg�!R]ïÈ)mîïnD‹xžRCˆüHþb[ºFé<„m6"©#¼ö11ßhS„Ö¦žÊ/øJ#ZxS˜Ê¢§…�ŸGIˆèÒ}õ.ì\§òñÐã›OÎDC�ßî t<'FOÌŒ”Ø×òJ—Ê\´èšJ—óI8=›’:.É{뾃ž9G ¾ŸZÐîd£4€²ÛHÖòCH³ËÏŸ‡¹ XZ¾¿„tyÖݞЪ–Éù…Uª£-¬]êIÆž#€Ø³5‘çÝÙZá@]™shS�WwZ3¸ì¶;[bYrH[k¡Û꬜D}Øs…N+’ËV qIÕô´q‚¥ÛôªDko”I�™úú XZËÓ•(ÝÌ<ÈPþ°Œ†Û‰T4£pÊ XZeCBÒÂiͲ žú@>ù¦]mßLO™àD=¬m‹ƒÀxtl\èÞBBê®v¤Íp8‚èŽNfžSÞuQœ®OÁu4È] êÑmF%ºAÉ¿J¼ƒ›L–-Û`_ ÆG÷‚¡ÄÐj¾ê¾Q;èð@±‡Û÷ÿD=?\ÿ– XZ6ç!:Zqé²h×§EÀȪhм™¢m›÷Éį¡qõ!IÑž¯7Äg|EÊþîgWžç åJS8¸Š•�i¨€s:¿°N7TìëÓžÈwSßY{î<Í5Àôé"vzÊ„ͱ„ Q‰Ã¿:Π>ÖEi(èð‰Ðü9óS§3̾™‘¶Ö†?`²ˆ`1͸´ªˆ�FŸ~ÀGÞZAÖ�;ÿfÛ[$`6•y‘[�<¨3ôÍJ·A�Ž¥p¹-{¨v6¹ÙQ*#Éè6Æ4<¯ôã;:!ɹ9ɘú]=1zN�ßp‹ZÊ‹Ø�âÞa XZM—øýpjfë²î)8[Dóç²’«}§5EKdH…*ºFþ[Y÷µîi´{ã^ý…¬©5š©óÄi.?²£ÞÞ¬W tHPRôŒ{™“&Û >¾ˆP»L XZ›CÈvV�âûÝvâ'Ó7§Ç‰„B“Î2�b“¸ÌFÇZn·¸§ñòß¿fºÛhuÐÁÜac±suFÚ¾áGsx¥Ä,²™Ý¾º™À|ÚȰ*i XZøVÂk”²k}òv8®(í»‘7÷?é!&´(ß.�á�>{<>37 ØŽ^ó¼gŸ~C¸S²‹/Ì7ïXPަ¾›e,¯õÅú"¡÷IÕÅÃÅ¿éõVª¯¦ú•V`ÞhiHÿ˜Í8ä£XS·%Ù5€‚rþ m…¿ÚŠº�8Z•…0”J•_4Ìœ²é>–rŠD}©�£ ]}KÒº'ï®$nÅ,ˆìÛ.�ÝMÏ}V4§,ô0 ó?Zendstream endobj 3 0 obj <>stream XZhÞ223R0P°±Ñw­(q.I,I²Ýƒ Œ-@Avvúnùy%@Á�#   HÈ6²- lscK¨â€¢üäàÔ’hýZendstream endobj 4 0 obj <> endobj 5 0 obj <>stream XZhÞ”YÛvÛÆ}×WÌÊØ’wöͱ¼ÙQ¢ZL–[)Cb$ÂÆ­ ûùÌöWºÏ€‘®äå%ŠÂeæÌ>ûìsñù7R<˜³ïgç‹E,¤XÜŸIOÐ?üJ|‘„¡X”gžxÀÏbE�g·Îee:Uyõ T•‰_ݪŽþò])¿¿¹u%ºµ××3)'3™$ièÜè®o\zDÌD0ù}ñëÍ7‹ ,jº¶®Š�hõª.K]e:ûsÊ,ëš—¿oë&2r6“™yN=ñœ{û•6¼¯‹¢žø‘óH�g¹ùbþÆÑ.3ß i+çãOž?Y|¦Ý¥ëÛK¼x*ð™Ð�Å_påÊóqåÊ ø3Ú^¿öB\¹ö"þŒÇë7WvCqçô†¶_ÕŽTº5â1ïÖXæüãµÐe_Z]uy«Ùbaú¥áóW\Þé X@ï) vßÅÆé»ÑÖÛÌbÇ‚©ÁUüð«B- ™Ô�½9BZ7ªÔÌo»Ìl¦�±Ú9ù(œÑ|nMzû5-|–Þ˜r/D·i´¹› Ú ©%‡çíN¶ž;‡4wÔ0¦.ÉÔq‚q½¡Çfå‚·d¶¼ßÇrÉê‡+~´ UÀÓNBϙ҇ &89@ XZ|¨´eìöX"«A$‰—E—-Eâ'íòÍ.GÏcœnp†ýƒÞ&i¶[í2hÏ�äÐ@p¹¶Zœ{‰-˜Ÿ'J~’6^“˜B��Ù=Š]ýŒH´ó‹¡õý2¯õëSQÅÁ co#WA‡O2ÙCcûF[„‘6 «aú2ÔAð„ #n.¯~œ²µ6Ìñ XZBšÌæâ±sßjˆ¼©÷“üj]×FUÎ÷ºè­– ¹Ävv¤�WãЄÛT0¹— ±³ a^agA‹ U^üšB­üèp.„�¯Z0gëwì·=5ç^…œ Éç&§&‚§ñ´ãk­Äîë—ÊVÌÕA§Nò�c„¶� ª3GæÇ²%1 ÝÖLÙéÎS¿pæ$”û2ݪ¶Ñ+ÛbVCA`Íß6N~ðlä´VM£+;Ð㻃˜ûV̽-/o¨Ê¨HÏ©|O‡ç¶Ôüe*ŽöÝ.ÿrÔå¥z gLOñØèŸ®ßZendstream endobj 6 0 obj <>stream XZhÞ223V0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@Á�#   HÈ6²Í l3 ÛÊ6W0¶4€j (ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 7 0 obj <> endobj 8 0 obj <>stream XZhÞÄXÛrÛÈ}çWtù L‰CZ°ÒÉK@š7R•yúÅÚxpeÝFÅó*CHI*Ÿ  Ù_zÌóã‘E’q UZF;4-æ¼øgß;ª?ðC×y¬¢T� é‚d™ µÒ.“RȽ…Æ~Y?â82¹‡%àз­ï�$ ®•:¨6<שûaè0ƒÂg¡.ShiããØbš­€kðʺAÎ'c;¼ï»°„lñ4ã�™ÐN Dœæ´Aº‘­6G­5‡d©,HýZw¸„Y“& º*ÓB±ÖŠo­ b¡ŸZ¬‘V°Ê®ñu�v;ë­�¤Eµ Lж±žÞÜYäÁõ åb±1�ò±ÐõÚüþûUö”F|†TÕå\HÐZ/‡^37ŒŸâDîÅ‚p£3²rþIÒmù(¨HÎ�w”7ÿ.w—M�2èb†0þз~A?Øú=»Â²Õ»të•Pš{çö)1鸽vC#Š”Ô»²‡¬Ûä?89ÿ-Í›œ>7¼P©ÚPZžw*’º³’Weïëžîq²ÛŽ<`6ö¥V¡ö´/-æY“ØÓ×+ûÒ÷Dïÿ£v­‹šÊJŸˆ€áÁó‚?©w6:E™àØe<èªNŸ‘V+I‹&[:áÿR XZ£?+…wgF’Bwø¾û«Ý¥§§7?¦Œð;¼½B½\ço€`õöÊõXo‡·Ïö®‡·7©�ìò‡ì¾¿:Ÿ^¶BnBÿ¾’ß}è�BçxxvþÑþõª¦Ë�×þØã?&éÿ•rG£?¨ÜïÊUQhO›þ #6rN0L|nR©¾Ñn�Åqìi÷ãgõ“,êoE[ŠaŠ˜?êΟ;À^Õk3ܼmUÛe¡7Š…Eë5ä:OsÖùÖÂ!ŰJ“ XZ¢ÌV*Iyƒ­ðŽ:á�*QµŒ(„0繕(¨‘V'6ÝÞjä÷TwÀ\g%Œ®Ì�Ç‘Åz‹2âLè,¡TTBKÂz•ÎW�]CQ+ÍúÄ��Ô+f¦“JÿÖ¸ôˆ XZ Fgçfè!3cÐãÙ‹"¬�øQ;Zvƒ Ø™I�PÀ#£¿£z`”�‘äSZ_ n¼NÅÜÌŽ ŽèÍq’tCwÎ ¾Ôfˆ¶ƒb]6•|³7Á9Óº¹ÍêÞPd¦‰óÿÜóèû‰ØÈ§µþ.pM÷¿€; ž¤ÔûLžý`@±ÏÜM Š!Íss3ïÅú\‘õ¦½�ú3ÃØÜëO c_Y@y¢vìÿÚÄ(¸žmîåªl24È\5U7´� ½ÇÙñÑ go·,Èl03.Ð݇ËçYáù =êÞå�þ苵Ðc»Ô.>îŽ?¨ ­c¸CzëUÒ#—È\ûyãäã[GîÖ�ëd¥Î¸Ü­úJÏt/oSQ7ùn?ÍøÁ„…8fùæó ºÇ¥;sþˆmÝÏÌk¨ãZendstream endobj 9 0 obj <>stream XZhÞ223Q0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@Á�#  Hu�md›AÙf@¶”m®`liZendstream endobj 10 0 obj <> endobj 11 0 obj <>stream XZhÞ¬YËrÛFÝë+z N‰-4OïüJÆS%Gc1UNYY€`‹D 4Yù€d�üDþj¾eÎínHÛªLʶ,Ä}÷9÷^\}{+ØZ_¼X\\-1lq!|Fð_°$ Ù¢¾ðÙÿýx¸øà½Ùê.¯ªr»fùvž۩6ïèSÀ…xqûŠ5[Öm»yu3b6I’†Þ­êö;N_asÍ~\ü‹ÔV­Ïæ’Çlñê‚‘Õ"¸ä!gÏW«²+›m^ÍæAä{«¦Ø×jÛåt±—âŒxÄæ‚GV�f±5Ȩgqä]BT–ñØ»yõ ûy&"Oµ÷5kîay©Y�o÷yÅrÍTeþ'‡¾¿}ýöÍ{rI^^ÛïÀ/–·Šå³À÷~ž‘——U¾¬”1nîl XZÈ$¿û¶©Ÿ±M×íô³««‡‡²‰¯+'�Ì™ù^;‹pµig"õÖW7¥ æU÷1Xê‚ ¯ú_x·þ…ÝyMËø/åînfôŽC!")­nM XZgóÐG|½šîûä£sÎ@3ükX¾ÛU�¬kú_²‡MY)¦›Z±UöMÇÙÂd|Oæ4 ÜO‚ÌšÓÜSÀîU«VäœHjØGa[ªm¡.Ù¦¡o=(úyŸ¹ ž«a.Ûåk¥Y¹-ªý XZâÊns¨H½iöÕŠ-)ÐåÊ*Üw›¦-»|nl\ü£OPWŽ4ñI±Žbë½m:õl¶øiT‡± 3#ãl¤VìÂVÖ#Å‹L9©–w¦Îºq5¥¨˜ŒàÆóíöȤVçí#{§*•kDgIböF¥Blko¬ XZûˆ 2gT…&j÷ûnß*bÀãBA{ð^•ºkK§ Ée&uM[Ãè;¯´˜�Û;¦h›šuùN¹‚üÌ)¥¨(¶ÌuY°ÕTrÕå�lqßT•­‚š²Sµ~f$ .H^jÅÝyân“…ïû^�¯·ª+ ëYÃJ\SÆ`vûæúŸl1ˤ÷üâÉg¬–°©³R¡s•gŸ=ÅZ™Ö(ÛkÕ²jÌ9UÿlÑÔ œ•î‰Õ#Êãò%Û5Z—Ë¡ÛHX¹%Í¡wÒ�ðÂÙ›{ã •À^Û‹©zØA+Z5öhˆÐöß®zõ¾¦â XZ¯_Lø%å2ÏÐYóé™—­²‘> XZÒ!¢FjÚÿÒÍÝá_¿pîO à‹§A|ïö¥ ·†vÈìnÊõEÛ**,µ5ýËFm] ˜Â1`W5[5F°Àç¡Ë‚É2 U�í دà|¬Û¼þ•[ ОŒr.exȹeå%\DZËwh]:Õ–ZqŠM…ô}ÐÒœÜu‰îQp ±8%UJ$‡Ìœ¦%‚»ò‰ÔÛê©ÕHJ*¿Ê¿d¯= b 53;fGyå��‰£/g÷¸£ÙµhFÐÉ ¦qÊe.&BjL׈¿CÿƒâX>á� ©@À±ÂÀ£ôî<çNèÜ‘R~¹rì{:¸œ<Y_wõÇû í že}ê¡7½›M<΢¤?¤íL&žÒq'½¢H†Îç ¤h�…b†AŽ2ú((@U|<‘§Güß�‹Füohš¦!ÏÑ1ƒcVûzGÕ˜Ÿ‡…�A=±ì�ÒÑÕ)5v+Ðf£Ž‰,˜ö2MGw˜NeF~v4}Å™¿¡ØŒÚêîZ‡Zf†©Å{ü>¥g�‡3ÎDêÑh'àæšekÀåÐ9{´Éç(Ë$&L"vš{ýlãÒþN XZsw'tAÏf_ƒ{b%² 1xŠÆÈ¡Ë_ÆWôŸd=Ùýj´àûz+¾Å,ö/Èü‰ñ�=Ðríš}ø¢W¸Q²‹ÿ0a·n¸•‚Z˜ $÷VÔær}!Ÿ[ª‹Û‹ÓÆnØÓ �x2’ÂlÐjëSºß‹ÐWÏæ!îz1B€2{Ö1|DÔÖUSXhŒ80¹/†çŸ!¬¢ Ð éõSß]k¶n\‹‹Sßœn¶…<�®$qv~ÔåL&É3j"�Îi<¶d6ntl›¶ñ³�™�ôï0B¨„„L¦O0(òòœ÷_=£6© ÿ’ÚSÖ¥m—8æ€Þû(gÍ�#3â¿b‘7`ï3ä-ãSsÐsúñYs¿!*e²ÿ8�Kç Y0"Í1²UIQgˆ�Ó(¦0‡ 7”Ñ×(9L‚?Ð.ü>KBïwb×?è·?&@r¤OØûX <„2ËŽ=8„2žx…_wáËxÝw=†DcÓUJ;"´$8G+$cÿl„“‘}A&ÿ?óFÖ‘W“]Š�ØpˆQ:Ž‘Èü¿3FdG‡lšlÔp8C +gÞ~Dœ}ÿöÍ{÷Öî¾ÊüEŸ·9Fàõ—_ÄÒ-ÙI Û˜õºVهǕ6½²SkZê³yX•‡½>stream XZhÞ,ÌA XZ€ …á«Ì ,53W¥[IwÑ"ÂmBÌÂã7Áì>þOš pNlcÆ +9攕4ìދФXФ¨ÿHÖdÃ6dËžA-Û‚Ò†OÒÛî\ñi ¢Ôާ÷ŸZendstream endobj 13 0 obj <> endobj 14 0 obj <>stream XZhÞ”YÛrÛ8}÷Wà‘Úµh€$xÉÛä²»ÞŒÇVªRï-A'©%ÁÄÎ_Ì|K¾g¿eO IŽ“©TJlZÚõNæâúÅ¥}{FŸÁ¥5Œ€°(r—ƒ°�!V[Í.xtÆã3èw¿%ýìë"qŠ_òïÎxº{=èýÁi³;é†~ä V7šuývÛ´Z-n&“i'YÐÞïô½¾xiÕŲ¾£è\]œ]]2µé׈VSÓ*™§"ÀÉO¬2vï-J#É=k±Èé¼^ôˆ\M É9›7µn›õZµ“„§“)­3´Õ$’Áç‰��º º› 9‘ÞvÕn×™uÝ)›½ˆàì}"é3Ë!1J%�ƒ•öV¼ülv°: D1-½ñD®…8›½Ï!÷:’£œˆrèΓ{-9Éañ÷³Ùo1¤sMõÆ“~ Z£¦�ê,ÏíR¼î7Sƒ8 ã(K=ú/ XZWùn!wðilKWQ ØÎVðîh«¨÷íA¦“3Œ|¿]W`Sütçeu2Ó8�ª©üá\Ún¡–”«e¿Ö´gÕÒd 5lË¶ÙØB:Ô Úùѹ!a,øž¿Ï¯m§î°,OáÞÁæ�Á‹ë+ÂKé!æ‘\£H8ß¼º/7ÛµzF XZSÓ¤LåÑ_Èšì•7ÁƒŒð†�Å¢Uñ8‰‹,’8Ùçäî¥Åœ�…@…ö yÎ x©™Ý•µê¿}ÕH”ú°‘a= Ëb—`²hÛ"Eb™œMfÈàù÷ÂëÌMC^µqÈ£ÁQÖÕýƒ—b Jx `&U–C­ö ãȘ4}Ê´\Jgúxh@�¡Þ¦ÙTÚh …÷ *ó8?Ø×ñîÇZ.w5sõÑÖ¶”M�j^zÄN»+…Ò\;Š3(¨ºyßuD‹n =nOÁy„që_o¨×Mói×GyÊ€ XZYt-ÇmƤ˜^Ÿ×;D¢öN¦S¶%Ÿ] ë1–g¯áŽÒ^£¢Iût9]f±Ùð „è3óLüdß3(¶ÞÝî…V%Ý/žjgø?&Yü±Ò(*§üfò'}ýót¬xI”y­Z4\©ø«Ä¸Š)=§›•ˆîDþE™nål*ÂDfÅÏÚ”FƒQörí¿QeMeÃXxpôÎã¿xBฦ¬ ÌJF×ñømQj<ëV•Zendstream endobj 15 0 obj <>stream XZhÞ223S0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@Á�#   HÈ6²Í l3 ÛÊ6W0¶4€j (ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 16 0 obj <> endobj 17 0 obj <>stream XZhÞœZÛ’ÛÆ}߯˜ò˜Zbqè7K²Ù%[©ÝĩҺRCpHÂ"ZE µkqÜVøPË“hËò°Ÿ-°Âi6�óÈ�=9›û¡×Ì„¿% ç,bèG$¢¤aj+±ª*½Â<£Ì_*§^i×��VªûMt²Ù(gšAåÔ(•/¶Š·…?ã�(öƒ0�à08Á»S}yGjör9{ø…žÈÍX-Œó€÷_û›õ®Ÿ¦™ù…t‰�.;ˆÓµ3ˆL¶Ô¢WºW«['7+Ù­CZ“~RÄÙÈ,ašÛ¥ä©=ôÚ‡¢„lûÓ¶Ú)\d©Ÿ{fúCu;¹ßd' Ù)Xµ³(õŽ$Z©�„�ôdÛ(1µbøIÿ™ÉxúsÕâXíÈ›$mMB§�G¾nñG'®)ï|íöÌý4üSÏ�·|ôôã̧Û`?Íä‘”ƒ !Z—ZA³<1‹±Ömg‚eÕUä#1ýaPÝŸöŠ=¥÷ª¬.ˆ~^äé¬ÇÏÐ‰è ’pØîäRíD§äŠU‹#¿Hâ!Ͳ뮭Ï�° l žõw)äíZ4­]”õøTé^۱ߚ¶†Ä²mNˆ¡n�¹Z¿ˆ“ä…j×ýà5&�+€àœ§ýÙwû‘a`Ã¯Äœà ’Á’�ÈOòtË‘¸ªØ‚œ>;Ih;RxGˆö>ªˆTõ;ðM“|E¿"€Cèªû–È�¡‚Ï‹Ng/MMgé\& M3ÔïmOÖ­É}ØíÄ•°ø˜ÝmŽí²E”_Ô£ÏìǶuºY’Ó.G;ë‡ï° XZR‰ÍÁT)B×ZõXe©J ƒ³ŸžäÓh�¨^š¢brî5àb/±<ƒ‹âÀáÑ3„ aszhÉéc£ŒÙJ¢ó…© ’ú<�œ’<("Ý×·îÓR¹ON^*µàJrï¼ê XZãDËù�™r› š“ÉB2 µÂÏ¢IØÐ¾Œ³ \ÎInõGï›ûý#¿GGaïO\á)Â,»Àþöré8 ‡•ÖÖ3 \¿ðÈM0÷NIh‘¼{…½�lÿ£�è2àc°Oà{¦µç8+"�ÃÁ‰¹ågF¬› SwrT£•ùŠv¤OË1lÙ“X#÷ït+¥V&Á“GœÁÏbƒ ¼{5x'(2×t3Tð�¢à‘¦à�näªZBÑZÕ]Ø�“senQ’(ƒS%¶…Ú0º=W�_õåR¥lFŒ­Àq à~2f©�/î+bu U\õ=W .;XÁ– ã)Ö|Mî¢ýyëI�x-¥ü?ïÀ cºÍ¡3]ÜÁÞi;Ô@ôSÌ<@’Z‹&(Dø®péêRÏ6.Ñ^H»,‰†ÁüV ÂÀ–ö ûÍzZ¤¥Q1ˆ¬eF†mÈZê8 ºwfÌ|o5´¨ÈNc(¦n†SW«ÕNM:P~nFÜ£ON:<¢ ;©MNæ,I˜ÅÀ[Ø((`R$AÕÙq#‰Dân(/Ãq@æTçgzÒl”TùXÇÓ½ nѤN"¯ˆ¢—Άc‹t¸Cº,Áˆ™‹Ç~Ī»c‰ÞL¤YÃ#Ò@èV¨¾äÃRƒê«ày WS@{˜#p;œùú"{Šï ê/Â�#q¤3Þ‰?Cä~©ÄÍ¿EhÞØy„P,(Ùˆ²æ/뛜”ßÝÜßü�Þó(øÛ‚Þí(R‚c=yï"YX‚øÛlž³t?Ír>ƒ€‹…ŸxLH)k|1}½AÁ§é4N³ü6œ6»\W&/KÐÛÚ¬q—þú¯÷ÈôÓ•ï¶€Ø�Áp£ÚZõÝi–Ñ=¦B"°Lx¥†š„.1ü`_®8ªn*ŒîÔáÝýë÷3÷¯ïߊUÛ<Í@ÜŸeÿ[ó: ›…oõ$¬ÄTÊ[w[ÅkõÓKí.͉ñ8©7øø�Þ#+ˆõͲ”6¡dÚ(ê[ew¢CW:°þ\k7ÈÔ§—¨ÿ²¦Îžçw€è%Ž4IEÄï!â‡Q?É5Ì4sxýŸZendstream endobj 18 0 obj <>stream XZhÞ223W0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@Á�#   HÈ6²Í l3 ÛÊ6W0¶4€j (ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 19 0 obj <> endobj 20 0 obj <>stream XZhÞŒVÁnã6½û+x”Š˜%Q’ÑS)Šhw±«KÑô@K´ÍF"]’Z¯ûëì·t†”'Y´A[–È™yoæ=úö§OŒlÝâ]»¸mÛŠ0Òn,#øuNê²$í¸ÈÈþÛß‹ß'ý´§9eŒ,I“.Y½â,¹×΋aPzK„îÉû½´Âã7\øîÓ1šø�$î>,Kÿh†xË‚V¤½[ЫN:"Òãw¡±$%é2çeI»“Nž·íæ…Jâ¬bi1B”A=¦ ãΫ¿¦u™|½íc¢[ûåK&NxïtjŽÏm¼75ÉNZIZí0&M—œ×ê>v}mŒ‡Mb�…u²Ÿ 9HrPÃ@ÌÆKMÜ´ÝB`€…|â¦Ë(Y Õ?…›Ka,¯c]kÙ $Åã$ˆê;`«�}$¼ÎK‹¤@…U^'!èœæ<&Ïz�T@ÌžvPã(±8Än‚vê¨�‚ÑUÍA=ÐÙ •䟴ýóJ\”ó*>>ל Ò¡¢ÑÝÄÐÛSàÆe‘S^°Ë´Ä˜“ͤ‘û9øœ½¤uÓ¬bøÿHœ°(°u•:‡óÛ™=RtDˆMJºNjO^ d%å5{#LÈּȆ“Q èZ‹Át�ä›|CçÐWùW´)šúMùcÖe ³ÌhSÕOl&è�xsñ+ð)A¾Í1XH•ý/Ǭ0ÒÝŽˆ¨d XZ ¡¦Wq,„Góce^E–~KkŠ XZ]«œV‰Û™ièÉ4?�iôéwÂ/Gœ¥WhljÜ –ädµHã, ˜-a¨Ö^Nì¼Ü¼œe`™eÍÛXž Î�àªy27Vesó;%uæ!EƵñ�ø,WZ8õ)eMâÁcY3rÖî ‘tKƒš­ò@A“`€ŽðME�UßÃ-³ÁÇÁ�RTy�OîÌ9ôlóa¤èmäGÁ f§Î+£Ñƒ¯Œè` ^÷!ú{ XZÌßuV�J /Á,+4ÌZ'Çi}"{a½ŠXc½UÖ«#s-Ñ�Nn^®Ê«ó«â<&Ép”Dðz<šIT XZ¾â”v˜Ux]Ù4‰ç°ÕrˆGN(q„™A”ú©PÄ2·Ë©¿¡öE/M<Òà÷Éùغãª/@wQ@ûkü §óøÏ­`e—ñÃAÝó”³@^,3¸È HZ~lÿ XZ0Zendstream endobj 21 0 obj <>stream XZhÞ22³P0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@Á�#   HÈ6²- lscK¨â€¢üäàÔ’hýZendstream endobj 22 0 obj <> endobj 23 0 obj <>stream XZhÞŒXÛrÛº}÷Wà‘ìX ¯"™>9N¦u'N2±ÎL;v`²óV�Œ�û'ØoéÚZÉ{ºòÏ{wóž55ë‚}yÿeãyöÆ‹ã$´nD?´ÝÂ6,µÿ½ûmë›m}½-.ÓØÁí,vÚûÖòvõéfg§®uññã…�FÖîêó'ö嫸ÖçËïûúa\î…i̶ÛÄQ~8®Ú…Ý¡èX'²¾€­Âö"ë÷¶äEÝ)ÃïzÉ[ÖÊ&ù >ç=ËxÍî:‘³¾a¢W÷?Úžk Y‹’uCÛ–¾~*ú¾Ä6yÑm”}ß‰ØÆs|¶{?Ʋ—Ží»Ö ,‘C]S ñö¹¤‰à9“ÊÄ.óRtköìé °³dEϰÌÕPò¾‘ ?¸äY?ðÒ,Àºç®•£¬0FD[²Âqã06YÝÓžŒÃ×bNðèÁ±�øáfÑÉf XZÄÍÕõß'KìеÎíMà‡NlÑ·Slº¢:8E]¼ŒŠã¦©¯íéÍPænQ7ÃÃa 8 ód/r c6z;^7*8kKÂÔñ-ºÿ©(KV �EÞ÷<£\ eÏî/°"J#“Þ XZvgé0µö` ¬‹/lßÈŠ÷w¶*ƒ¦ûª�-¹èP\Å XZÁ{dYS÷€l‘k¤žã%°:BÂúŸ½û¶€²!S®Ž�±ÊŽ\_勨`á8ˆ� ]ã’Jž¼âÉóc¬œ³qz’E/ØQ"UtŠŠ?È vêó§C‘Æ�¸#ˆYSµˆÌ})Æúþ\¶Yß ê XZï ÔYEmoüȵq„ç™D\,Å×¾q|ã°w¨g¸¨×ÙKÛK¬¦b6]ÑÎ+ò8*wä cä)jé CP!¾ ëX%ð üN%Ô”ÚEÍ5û¦,òû‰î®ø7`O´Ý[eàAÆ$dË­åkžÏA›í©šº ¬G‘¥ãNÉ·|'ˆ¨³xF1¥€�j XZ—BRS'/ŽNhÞV9´§¨ûIÊ-�#9°ò"É÷Òô•B 5< ’kC7QŠVaDœTlÖ!Aÿ XZ)ŒNEhìøq”.”AàUÜ+Z5„dª� ÷sð(¦±ÐÍ®Ez9å[.öÆÛÐ Òí"¯A`ƾ—ä°]ß\~1ƒä4Wª¼å�èê$ {„7 0ÙQŽ áÓ@" SÝŽ• <ˆ²…ìÁH—q<5O[~2ÙòÃ&!Ž$ô\¬ ôz¨îÉk‚³†ËBw¯ò™ê¢âúŠb� ôÕ�ß� )Gu¬>ü—íÑãl£†¼}?•¨·Ë¥™áXßÔi&¤Qª×ç/@�¾•&¯et? Ìh§<ƒb~Üd‘=ê‚#œ—Â4I¢W‚l”ïÓN·–1º!Dµ1’sœ€œU°Z݀јcB ¯Më.!Å 2‰qGÞ ½ýøÅ‡æ BÓÌæÈ¥'nR uZ^Š:I„|¹³Ï™9u0Ô0.yÝB ’…p¥mºN�•Úø“Óa¨µM…˜ µ¸¼[ëwÞ[5]�§?°þdZ7…[31’æièÛàµüÅØ¦Ž(VÊ't’m¼}-+Ž;K³j†Z‡Ãy-¨}«}iÐ99f£5ºGM“ê;¢“exÛuNÕEó†L±“úÁ’SBo<º™ÌÈ][’¢j2zª?ó†šdPMíá¹+2s†@Ý%Äú4צ{‘j€œ)箺ïWŠåçësRY]<…X%z"5%ö³¦þ!QèôLÍéÂÔ=ZÙšô­¡u„�[ëÓgÚj÷áí XZ*(�xRpÁ|°0 *�ca´T“´ÛåÍ×± îõ!†:J’�âBÐ�t_Ð ¼4ô¨¾ñÖfn"']Õ§E«c XZµ»þhg0Š]A÷Ú XZ$N…c挄´çÂ0’¬9×EÍ%ô�Tc’,2Cû¥#Ú å€ûay/D= XZeà±e±§Are­£¶ÁtÀY7&Á•àµ&f3RCEI²éüıLq5þšþBžkAC¦ë´)“³�ìƒ<ù3š¡ë¹ôP:uÞI¢_™7ÃŒ³ÝõŸ‰!Öw–©m¶I¹û‘¿¥SÓržKsTL—»k:6Ë)i&©DÕÈçñžUù˜³fÒkò¯êL/ÿ6t}¥Ô ¨†½Žc‰ÂÌKPvä>stream XZhÞ22³T0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@Á�#   HÈ6²Í l3 ÛÊ6W0¶4€j (ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 25 0 obj <> endobj 26 0 obj <>stream XZhÞ”WÛrÛ6}×Wà!dÇ‚Þé7_ÒÆí$ÍDtû`u: ™l)R%Á(îô[û-Ý@‰¤•K�ÈìîÙÛÙÕå+NžºÅM²¸L’€p’lœüB‡„žG’Ý‚‘'x%þ:,­NÈ~OÊ9YÂM{ÉCÏçÖ}ÝÉ´ªÊú‰¤uN~Þ‹6•ø„7oVw¤©‰,y÷~ɹý[òãÂ¥Yâ¯änÁ©ãkýŒ;!cdmí›ûÖG{éøÌzÕ×¥¼ 6LJ–­m¥�‘%¢<È©�«›vHžµ ʱA*ùn0Ã_˜á¡ã;ÁÑ?‰(÷-}n'àGcÐŒ{/´µ|P´\+]sZ]Ÿe.$^9ók!p„Z)sÜoÌ�¶ ²“¼%  Tƒª7 ,Œ§”ÿhA�0MÚ‹±oªÃ‚!¨ìlP]wˆzÖÔ2-õV£¯.|˜©}×ãB`†Q]ÒÔ—‚竪V@@¾k*1Œ@ù¼ÆØ�lN#%Q׿pÀ:¤ö¦i$Ù¶6�¬f7Ë¢GýؤÈúôiª€F‘i  ü©á±“²jg†©Åæôb&M­`èS9�ïMn�Í23¡©äŒ \^Û©­ö‘yÑÂÝàXNÙ¸f�¶%÷(;Õ‰u5M¯ÚF�!?°�L‘-±xðþ˜’SCA<Ô+‡·C”€9ÆEX¯MP2Q•b´ÁÌZó¼ 2xÁ6á žcWS0RD#JŠ}®QCƒÅôî^Ô9¼ha±{xwƒ ý°"»t¯h®QG0øòƒjõV�­ZÄí„ÂU(,ß=KƒØ›.0ètø45|)™ULäzÇÆ'u#ëÞ@Y»gìÈ»=ìÚåßè^‘Ž`‹¿úR[y©6ðN@3¥R�ûË»ãü‰\g¶wû4Š¥xHCßóÉÒ£±ùN›Ï;³Ûay*zs|ÿA}¯“Å Zendstream endobj 27 0 obj <>stream XZhÞ227P0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@Á�#   HÈ6²Í l3 ÛÊ6W0¶4€j (ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 28 0 obj <> endobj 29 0 obj <>stream XZhÞœZÙnÜÈ}÷WÔKZ+Ý�$0IãÂц˯g<+<ï<22q†é»Û¾Ü{î£û'Ón‡G�gβ�µ„y¶H®)�•É3¡Áº?âu|Ýïêínð2 S^Ø•_’{ß2á6º]pa‰“ XZ!O¢ÈØþŸ+�;¼xDbð(Œ‚²‡?: XZ½{w ÚÜiºÉØÚWÃØ—¶ï’��Æu’Da|�Góz¬åj)‚¦0†c]Ý"ß ÎÜÀfOÚnتêAº#Û–­ òSªA‡ØævTê[#ì?¨-ÅèëYá ‰Ï4æõ XZÉÜ�ZäÉ¿ÙõÝñv§Ÿ§{ÆQó‡ãõ€8ŽŠÒ2mþhÃjÛõ=ž3‰2>H¥~F¹ö‚ñfuçÇ�(b{�„›„~n©8³O�/Ų,··Âe8\eYÄ`ÇØD �hÎLÈ\Œê`¾É·ì}¿y LMÐhDz5åµj\š¥Oap‡ŒlºÖƒ ú»<¡åÌj á£0w(är‘8lYlßz XZ!/Núo½´�‹"}ÎJEÛ{¨©ŒsíÅ«€Ÿ‰«» XZ<ôÉ(Ÿ#Û+4 É£$@Ùgžx !ˆ§¯ÌÂ\äS\jPx«»Ò%âÓ·¼Å}8õ-ßë?.T—BÓ…s\øÎ/Vi‘<¦‚;»Å¡L£Øä ŽkÃ=Q¶D ûø™‰¯S¡[)AÞ59ûqa�Ù—Aucšò[œ_êFÃݱñûþ*èªú†nÝ_}=*|ûxkÜýN¯j\š¬ý¼XÜ~ë�,e4ÁìUp]nïX9ž…5ê¤oãÔ�ÁžPhf/äø«é�óøT0­±g™±W%@ЇjhŒR÷ÍPu„úsGðÀVÔ8ø;eÖØ¨ØÞ×ãä%Jâmw]½USí¨z$¿Q'%�sß+„ w´©Z‚{ðÛðy­Z©K�¸z´Å&áΊ6w_ëiKÒ [š~ÀÂÇ+-=;¡CÐÍ*§Zº–ø±+W’Ãøø`+™‘ <±(—Åë¥pˆ²íÉ:�Ö1ÇûÑ J#D»"èê-µ?ð9“•]—¤r¯†ýëJ•äõû…ô󤳶´ÂøÍ#ZRM]Í9÷«‘”.y(Z<¾Úy.ܲ)“8—¯ëVN"mKª\.å KWÈEò&Y‚ÂCƒ¼óDœÐ“y@¬vOy7msÃÑJ¢j‚£_ó÷Vu{¸tMÄ3ú�‘βgf½‰ðµbƒ ™/–¶ú�<‹4ûZmJÅÔ0&–Š¡ðèÃׂÈ�gù<- ˜þ‰D! XZHæ�±Œò25æÁ}02YPߘWdpÈôÔ¢Ÿÿð^[xgl_ÚBe±ooQåÊáA³ë¥þ‘€rIú*p.’B:3X�¢*€Û׆¯£êÏ XZ(ŠLdQÉ@/±|øô%øÍ#�0¤&Õ!‘ˆ.¡4ÂÏý¼¡ình•J9�>Ú´þ¯?rÉÔþØè ÖÝÕ°ëŽMÅfÈ^ò8r5â™hÇ8ò)þÃY.~€¢¸ps»<�ȲˆàTäµ–Ùݺ­j“€z>ô?å»äš<¿n8a³É¾Ä™Öôá$P¼læÒÔ¡éd~ÚëF9GAj°-[Ñ“'BÑÍ£d6eIÐMG?Z! ´šÉuÅAŸƒh-€NY.çÇ,‰ÍÆ [ XZ€ºžC§gƒ–Éðó,ÒG+qLsÙòÁ93¡Ô§-vRàC @6�ó—=.³ìÔnæŽi#ºÖñ™UIð´x6îó0r~ŠTÄ©At’žkés'ýBâ%Da,ÅWNÓSù�ÓI`IGÄü‹íÛÏ&`;= XZÚaÿ³épiA)Á¥£ù~>‚æqœœ¶K¼Ôӳ⮢S~Eóáý¡ëÁ_G+}Og…‰Hæ@ÇÆ´¡m¯M<ÙÃMèóˆñâµøe—žá—�Pj—ʺ5ý6Ûê sƒþÏlêÊí’ ÙR?kž­Lו%OÓ„)]tßÜ�žÔ S>ŠªŠ‹Ý°ª&½r½“ž§ú3ÀH¥_ç%éÄÔ&)«iNÚ�æ¸gÓ ×ž›DH‹¢˜ë˜G§1ýÔ$Ö­†M`f´ÅŽPi˜pÁ€ Î˃×q6%ªòèÜ ‘¥©‡ÑQÛ¬j©ßXÿ¯�lN+ApÐWÀµ $—©~é‡Í›ÿ XZ0Zendstream endobj 30 0 obj <>stream XZhÞ,̽ XZ€ †á[9wà/j N¥«¤[4D¸&ļüNàöð~ðI+€ƒ÷l˜ XZ^ØÈ©PNÒ°‡Àb�b­’¢þ#Y“Í´!»i jáÓ”6ó$¿ý. –×Èjx†ð 0Zendstream endobj 31 0 obj <> endobj 32 0 obj <>stream XZhÞÌYÝnÛȾ÷S öŠ*¬ ç‡CÒE°@šE‘b›.6*�ÂÚ ŠYŒERåO¼î[ì>à>KÏ™RäÈŽµÝ\ÔAdI$gÎï÷}gü꯹k¯Þ¬®^­VŠ0²Ú]±�à?øsKIVåUHîàÿ*Ç—‡«Û Õ]¤œ2F–„ñÅ’Å2bÁ»ªí²Ã¡¨îHVmÉ?ŽºÉ:ü„w¾ùð–Ôéöšüðö‡%c‹ŸVƒ—‚*²z «æ5<ßôy§·6÷›– EÕéæ ³ƒÏ¸ÜCq8�½>áRÞè¬Õæöö¨õ–Ô;óÁ¬^ÅÖ+žP!"ð v XZ~[¬>M<¦Q¤Ü•ƒnÛN—ïXrEE XZ.2i(xl#°‚-ª¾Ü€y°áæ±Ó-±¶Ö[M¶,.‹ XZ¾Ü× ‹%O8�ƒ2«, XZ‡ÏæþÖz´Ñ¢WçZ¨Í_± ~¹Ó•nŠüWüð+ä)�§§Læ’ÆIr‘Å«†¤¬˜Ž‹¿Û‘²nô`cÖ`µEeZÀC˜†É‹Q‘R Q­5„øãðJ04ç±îa{Šr±‰«24 i ûnGW_Š*¥6Š[óÔ(Äu(A[ò¬ª 5RìwÈšK‚;øàаÛg¶š°Œ ‰ÓìQí…™ XZÞ¥!•Þº«·½¬¯1å!K罆 Íõ¶oô5iûMÛ]ßYêÉë¦Ñ9äçñhAÆùwªÖ$Š]uǹó ÀÁ¥,€ðž¤*uUlïýÙx qn(Ìýl‡ñR54Ë’†,B.§C ëÏàð(¨ÍkãW�””ÓZ´§L§ôbééáOÆÊ¹M ´˜‚,rˆÏj£QE)‡é£ú´žOÕºwaì ˜ä 0¹ÇÊìôíùÃNnXw8¦1Õ=j¸AMJ¸IÓ¥û XZrb—3£�RxÇê¤ôù XZi³¥[ÊôðAŽè‡8÷�½nÏ¿|øñÜo§ XZa뢵†J(¼ηf*„o¥/TäÍ_0Ðèõ¾E±ÕÍÊkëb´-²»ª¥˜¿ 5Ãñ±oŽu«[3…£(º þµZu)a’\$­ã²„ׯaÕùSáˆi”\~ʆ°¢»6 XZß ð®d_[ÝŠ‹Ôí-ˆuÆ×ÁÁTÈ¿ŽÊO©Ü(Jÿ€Ìµ5‚«Â'Ì^ʰð[�bÁÄQ ~)x’òÔªX¼è$bçL¨ŠÒ™ZÝö¥?�� "‚Ô2Âa0Wx úGã�Ç1¡S XZ}[´÷ßúªÒè!!PâLȃֶ1Ÿ<Á2.Ç¡ÛSBZ0Zendstream endobj 33 0 obj <>stream XZhÞ,̱ XZ€ …áW¹o ©¨�8•®’nÑášwðñ»‚ÛÇà#€ƒslï3ÞXÉ1/ íïYh/R,EPT#’YOk²�6 W>mA*=OÒמ\ñdi ¬ÔŽ—÷¿Zendstream endobj 34 0 obj <> endobj 35 0 obj <>stream XZhÞŒW]oÛ8}ϯ ÐiÓ¢,YrÁîLS :ÀtŠ­ ì"ÙY¢cM$Ñ©düúÚüÀý-{.IÉ-mPÇ‘ÈËûqι—ó_? ö¨¯~Y_Í×ë%l½½£üÊb–% [·W{ÄÿuI/W÷ÁûN›¢iêî‘]ÅþØË¾0ôWÌ…øåÓS3;É>Þ}œ ÎDçIðIšaÏi ›1±ÿ³þí*æ)›-ø’­ï®x”/Vt@°Æ^œÐUE£:É6J¶ïÕc_´ì¥n2Þ±Fºú/¶íUkìie¸þ“âÉ\<ñ’ÇqºBH8Âúüׯðó4]º×G©ÚÈ–ÔÀþ´ae/ #«k1Î"³xÅã\¬ØLðx²ø½z§†¦rî?äŸ EüU”áõH˜vá<‡qý�©-+ÕÐkùÞØüÀËØyIIÂ19Ø$R¢?xÿ/öF¤Ù ûTö,Ç Ë›$¹I"öönÍâ(^’³bò¶úÏ¡ˆÙ“G�êx¼Ñ/U{3t?×xžå‘Ì}÷áÝ?ß¿µþÌ`%扳²ßÑæƒf­lÃYEÁm8‹Ó(HD¾"¶;¢“c ŠÓËÂx��ë†ö²[¶È¢U%vÇúoX:hÙcweq�f½A©:_ÐÜC ²õœ*_Vú>xlˆÒYvSž¸å8!J—'þsÎYÝmUßîÀx±QƒaÅ3â(6�d•­ïs]JͰv4çqfãzZ¶jLQî 8áxMOµ�*øS %^Ðß�CÎÓ<_žâ¡ŒšÙ–•t¹ü¨j'ò¹å3Á4q-¹æŸ?^pp‰# —QâBr`ÂçŽCÉ—Oƒß'#zh^ÝîU�†o&hU‹Ì\³ Õ kбàÇd1CEº¾Œ>å"‰Î¢ŸKSÎ+¬>÷z1†sO`]ˆˆ'AYt€ÈSœŠxÊeÍ3"+«šp|”ªªöª³a\è�žrÜî%gÿ¾bŒ°jÝÔO¶ï’^KoÁNТs· ïdCoõ°§ÜXËgð»Nϱ¨î} Ëx­&®‹”Ȩg'­Å:jEIÓ€?‚rf“†ŸJu¯Ô(�üÚÄÈ“ˆÚxäîÝÚW´ª5Bш ©¤¡6�o?ï÷²«0®ýì„n¶ä‹lq$�ãŠ)ö¨q_»Q�ä•>œü¨­;ˆ``óŽqǰÞOZ;ïÙù®�”Ö ¬†K”§‘]|L(@»<Òõk˜%ÁWÛölÏ¢à•ÙØÄ§WKËÅ¢·xžs }ÄâØ¼R¾Ê´y�.4¾CŒíÁé¾ ªÌDz7ìê�ª^¨‰XÖ4UŠ \[Úzøîµ‚Ò§'XŽ–ÏâZöÚNa¼[_ýO€Zendstream endobj 36 0 obj <>stream XZhÞ4ÌM XZ€ †á«Ì 4@\•m%ÝE‹· 1 �ß¶{xçc„‘ÀÁ{¶t\3žXÉkž@ZA‡-Û�KÕÉŠ¬‡5Ù�Ž[�êß8²ÓÓ®\qgiŽ¬ÔŽG¯Zendstream endobj 37 0 obj <> endobj 38 0 obj <>stream XZhÞ”XÛrã6}×WtÕ¾�)x•&O™Ì$•TÍe˪ʃ�JQ$$qÌÛäØÊ_l>p÷WÒ €ÔÅö&[ã¡)¡ÑèËéÓ /¼°×‹·›År³IAÀf·èþÊBÈâ6Í‚Ãÿo XZz<.î<-‡±g!±ˆ,N„÷S«‡¼®«vy[§^ª| O$ùööt-  Ÿß}„ðÝüLç†ö܈¥ÐcónáýÃß|9³‰e šD e¥ê|+ko�XlÅRÆÃl|¸T!h-²‹w÷ƒ0á^ésOúaâ}­ XZiì 2¶âqAÈb+úƒ/¯CAe÷Húü”7}-ߘ-,Lfñkûà©ç zž’1Á…äcU×PÙˆÁ²)e±<ôã¶ëüvè@ËbèÜíH )Ø|óüZOgjúL�ÖV=ö}§ȕ˭Ñí2±U*ÿž‰&Åê7²™Âÿ~ƒñùq!àgDÛÀ �TAàîW u‰ ,þ…k¦´piÅx l•Aј¯›…KWøZ/nÿ¤²<#n�xmLi!zkM9<ØÜªž.ñ‘‘5§T…,YŶf'P¢úUeA�p=Åw…+£^�Ô'f!£Y«ÝZÍÅ¡@ÖæLDÖ:±2ºúMæûZÎ"Î~„Ò× õ¥³ùÉ’ÙQ'…Å/ñ‘,§²2úfƒ{žÍ‚Ù¼:“¹U|›J XZß“ùÛdY”Å:KÓ¼IÄ¥7Ë0JÄw“ô6žÔ„OËÝø¥)w,äH.p€Ê X›~üDu»yÿfbÄtbÄh®-e1.’µ1ã§VR+©~ Ìù–NHYš…© Hv&k¯û*�DБl½²"†ËIle-@¼CÑ)…Ü€„Ðtz€ºzð²]}„Çj8`©Þ~x—�Á ÷'ž‘(«­í¤"ÊŸxáÞ'3[Wª1 ã$šáɸi0d±ÁPâ!÷Cþì„¡óƒ(ŒYì��†!ïårŠWæ(a• >>ÇÖûïUI’tŠ'v,{r×÷äéq:À¤9°�åˆqÁ† †Nä-ž;Ó§‘2<Ãü Éb– ó Ë(¶Åˆ_šfl�}åÜ´ÿü ÓžLJØmübÎâbŠŸP¡¤í³9£F®~ÇM—¦¢C{•7Ø‚ Ãê �z� ènTD„/‡}+e u——²dƤ:=I­¥éÄ.Ÿ¬Z ZÛ¥[œ: ³‰íÿW€f§jisM½$$Ÿ Ÿ.íØ® ¾ít«2¼„4;h©'”4ºî ÿö³ËÇ {Ðç?ì;ƼéËЀ4ðDcw¾µSÿœøþÎûÎ�ø ª-u $läÚ« XZÇÄÅ‘¾}®Îi–jô²‚"–e«Wnq'BDŠñø ¿÷�ýÛ#Nõ;jãùXT–Ø XZs¥*Ê´’¦3`i\ǾcÐpuýÄÑ;ã“Ýo®S6AޅQÂÄ*;Ôë3]fñL–x p#àÇ÷ÓD‡ nru<¿¹¼ÜœóÓ«5 �–òz�ªÍ‡¹² Íl`yŸo«ºÜ$�Y";®@³•ENóZ¢û¼°}¯�t�Ç7B'çÞÇA�ï[«©µ�²ÆÐkŠýKµb"UXT¶Dƒ8C&¼5*ʰQŸîçH¦,e`‘};ÈÞ¾¥oàVfZ5f|u]¨á fÙò¼îTxv|> D� ä‘‚–�Œ‰8·÷ä}D^%‹Lf0ÖØJ”ŽnpsóFÓ`±kÀl”Pc:•�~ ã�zÀpSö÷¹*Ñ8�Z^™ŠìÚL^4b_ ‰{ßžþÒÙ׳«Å®«kKÊEwÎðö‡Ó)â‡.\¼›~>stream XZhÞ,ÌA XZ€ Ыüh*j ®J·¢î¢E„Û„ø �ßÜ=f†FçØ>0¼°‘cY@ZAEöž…þ …µ XZ XZÿu&+²žÖd;m@®|Ú‚Tzž¤·ß¥áÁÒXmOï?Zendstream endobj 40 0 obj <> endobj 41 0 obj <>stream XZhÞ¼YMsÛF½óWLy}Z³cõœ–…öl¨Ï¬åá Jßÿî9Ý÷uDzýPf§1_ÓqÅÍŠYYåí5»©¼ô,çŒ=9vl*²b‡kc XZÎÃov&Ÿ°‰€MA ƒ1Öpô FAßdËåÝ‘·¸Ñ”æÐµ#£K@d‰v ¶†ÞÎ9¢ID«¤j2¹éãº!‹äÕѺ®XoC¶Çñ#÷ÓXŠz[7"‡×`a³ÈÒeJÒ°¥HêF/ w,7Š¢® Ç?´�„¡~bˆ´´9±-ÙÓþ»„?<+6æÉdÛˆš¢Ugÿà$kM¶?¬‘’“¤Ë-E¹ž/´—|ËqxÐM¡�#Ò-z3“¬Hª «©×kì‰.°£NTì–ž XZ“2[^V%’¿·V]®«TX·æÏ†Nb_�;îF^[IäKi™çdk"–¥: XZšW<åŸØŠCt=H!>ô¡ƒtóub’](èZ[SN=êà…й‘OÊ¥~J‡Ö·¢€·�!4ý zmÜo y˜g x\ càÝFô¨¾S.¦ì€&‚œ>Ýy¹ï8ËvùÞyæåÓÏDÄ_ì§Ÿi±/‡àà;¾w\¦ËÄëy XZK†­«NÒ¥­ËÀ·Å„Ý[AŒYAÄh£Ô%^ž,…<Á XZ–|9]7¢{â$“ÈŠ&ëÒBº É kC•á¾å»~Ô«@Ò©ºþI;ÏiS¹w~ñŠ�/mgD%z|ÁƒÑø½çã# {ôèÃ;ŽvÎý’!ÅQœªrù‚U9{–7Ï^0ktùÇ7çe‹Æ~�+R}0О³×"Î5çÀòÆ!‘=_Ûþï‚¥©Ær)±¼ç€qÁ%÷÷Á’ŸÂr£Á@ÝA«ð–wÆo|@ú§k“£xï¤ü¯€­O:éâòýÛ‹¿³ñ+4ÿ¿„–Kæ÷§’°¸óè³ö õùDrÃCýŒñ(ù�[qËxÆv›çÓéb‘ç=¹ZE­©…賫…Ƕv²ºdG¯·GE²¢”…˜yB¯qª¼á›Õ3˜Cð"…gUÖZÙ>)hý@º€ÀȣйÈ(ç1[h’Š}ZMf̱û1‡~GØCw¨’€ï ')¢êëT¬úuTWé/íøæ�_o�WjˆZß-Ïx /ÌfO–2Nq¼n|l›ë1Œ XZz;ÜÁ²‰�i©úö‚e ¨\J,‘Ô™êÀ!…hzÈjå•¢ÜÍ0é}èÇ¢;èÈÕÐ�šv%©{Û…K‚à`š°óëáž]+ Ã] XZë€ "¸U•ó*É•¶„i*ºÛ®Z¢±¯·ƒ¸åB1íûW¦p+r �-¹6ƒïIÙ*ž­§&¿È/ÇɉªíÔ%gH´¬Qª®Ù×°Ø–Ž=_ =B·ë �i—ç·\Û1ÞNÑzkyp’*]Ü9(™Š• 9€®% ¢Ó™s'K¶uAÀ¹š€ýî°+_/e¿ºz¦Jω™Œd€þxÞ’öÿóäx±å{>~³Þøêû’Voäd c;AËñÿ`Zendstream endobj 42 0 obj <>stream XZhÞ227U0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@Á�#   HÈ6²Í l3 ÛÊ6W0¶4€j (ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 43 0 obj <> endobj 44 0 obj <>stream XZhÞ¼XÛrã6}÷W *y §,ˆà ¤÷Éãñl&™q¦ÆzIÙû@‘�Å5o!AÛÚ­|Dò�ù–t )ÑžØñ¦Ö.Ó  Ý}NsùÏKFnº£·«£åjFV›#æü…Ü%Ü÷ɪ�8ôô>×¢09 ‹â…ä˜çˆQÏÊ»YAù4äN¼ç6иlmY�†b7Œ6æ¡ç™]8 w¡S XZZáI$ÙÕ=1™&SL‘ò÷ƒ™tàd­…Ú;ί‡™j›õ=ß·i<Üô²o9‰„Ð&±@ ¢èÈ5¸³�ìÁB§MNåäL‘~’e¹T%˜€e‚ß®mª6iª&5€«0’&I·)iÀ™Cæªíîô½™€ýT•°�õ<Ùš²XïHVCÜfÌ «¸,Dw£gx`Ó�Ãé8D:Ó‡ë XZ\®{Ùô’lÚº4KúzÉ�FÎþ¢îÛYq0Ê£qL·­û"ƒ*®o!é¥�[L‘kØžÌi�S?÷se½y£œfÊéa¬?Ö gÌX‡‘¡Q™GÎð(2& Ò÷Z®?µz0Nx¯G òp4îÝ÷�ÆçR7˜!æQή0iÇÄ "/"}‡¼Éâ0䔲63«U�”±NÕOÆ5™}P¬ì’´È÷ÐsÑ üoÜ0íÑÀ’zõv®Æ2;VtY&;dAe#5&MSì€iÚVea$9¼ –,PKÀ`ÿ �Pg¢�uHCÇ™q¦•Õi_*!ª�‘‰T ¬"²—ÜBBÝcQ:g(‡zq°4åÔ”ü¥�þÄOˆÐ²éA�*_ûçÞ0gÆÌ¡ç8Û�PeÎCuÎ"%�¾ÊÐ�M�=GÑSúêZÑ�tæ°ë”òÛZö4Zendstream endobj 45 0 obj <>stream XZhÞ4Ì1 XZ€0 …á«äÑ¶Ö XZ%“ÖUl7qéjA2x|#Ôíã!ª·Ð€÷8=8‹çØ‚vJ†•C¹Xb�Ö5_Ô”ì¦Úˆmµ»êôðß;ÐÆÖË]ΘyÃe ˜òÃ;Ñ+ÀZendstream endobj 46 0 obj <> endobj 47 0 obj <>stream XZhÞDQAnà ¼û«ž°ˆ!ÆøÚ$UÕÚHæõàÆÄI p#¶o)WbW°ÃÎ̲~®(´6ÙÊd-eä9¡„å“` òd—dÐú-O!Ü“#zé­«o·kßBÝ7ð>(S»pb„Òmµ݃»(8ì˜ÒSÁÊUÊ� À@Eú!_/‹¼à )@îÂx AÌca§ûT~\q"Dézà¬ý,õ¥Ἀå#jG“Ò©3ž¡ ¨W÷Û„¯Q¿jÀNÖ©îOÊ2LI¹ÉÁ'e”Ó™ëÑÚ± F'=Bmxçgmæ«ÎFÙ ,ÍçÉôÚÁ8´¦n""Ò­`0ú¤<½Ó°»ÔƒSò>stream XZhÞ227W0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@Á�#   HÈ6²- l c3¨â€¢üäàÔ’hýZendstream endobj 49 0 obj <> endobj 50 0 obj <>stream XZhÞ¤X]wÛ¸}÷¯@÷‰Ê±`‚ß|ÌÖiê¶›æl”žÝ“ô&!™5?T‚\¯úÚ÷ý�ý-½€%+Y·=q$Q$3wîÜèæíÁvúêÛÍÕÍf“0Á6Û+á3ú‡·4`i±Mså³þo XZzyºúäi5Œ{p!Øš‰lµi ï®Õƒ¬ëªÝ1Ù–ìÏ{ÕË�®èÉo?ܲ®eÃbïo߯…XýuóÚ7pûv_\¦)Ï‚Œ¥~F›{!gß¿ýþõíÝ»·ìõ;ö懻úüáÇ›7ß­6»è~ž²$ɸ €û±ŸZßï¶ìÐ�LöŠ�û]/Kã.ëU¡Ú�íåP<°Z­‚Øûi%bO­|¯^­Cßç©×áb;]¸ ®™~¬öˆ«ÒL«b¨d…¿A3¬z5 û¾+”*ÙЙÀ×�ÙZð€mn-¬Þëý^µeõ3û-§˜ÜqBO €<°l€àNµÀ¶f²ü©*ÃÖßPPe×þ²™7��9¼§•ð=‰¸†7�“ßpv«ÌFˆ¾>=ȯ…MV&¼(2ƒÞó¸ŸÂúGOʺW²<°~lÛ€ÕxŽZy‹ET^96ûS-Ÿ¦P¼›Óå>stream XZhÞ22·P0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@Á�#   HÈ6²Í l3 ÛÊ6W0¶4€j (ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 52 0 obj <> endobj 53 0 obj <>stream XZhÞœXÛ’Û6}Ÿ¯À#åA¼_�u²ë¤§j”Jª\û@‘�Ę"�ÌDûÙOÉ_í·ìiZøJÁi怰Ù�àÙЈyc�(@7aôeDñ7ëEEsF`@:;B „‡îÎÄóù)qœ¼vÊGBž«�WkhÈ‹(”•Ñ„ù ^8w™‡ÓQ|¢Q'd%JelIÄc;TˆnÞl~ëë.m¡ê¯br< Õôø8YkUej–‚UùDJJ.ÂUFÇD…!­oŠr�R$8w‚õ-MNYŸè²dÓeé¹èŽu�J\ðÙmæ£bÁ¹±JаS¥~ªó›+ È*IÂ×±ÏR-–NB®0ö0ŠZ�÷¸¹]—Ûap(¦K}îDWLö×B,RüÖ�åCÙö‰$Ü蘒p˜,/Ú¬o ÄzVË* ,>¸êjwÖÓ›å¨õ<îà‡]î¯zP˜p&"—« S M8®cŒlq³­Ô8û£ÃÅO4¬PrsG2¹/Jø9Æ0½ëbã &TK3ØfŠ"¯!éwg´sib¢�t…&ûípIY—\íQ„›´òèÇ´Á¸f®ºè�ݼÎú10„ñU¦Y7˜UW ‚”xs�‘}?º�Á&^ íÔêò¦c�,\&40Šæ:ˆpÙX›xBnÛ^4Ƥë+Õ$Øü #MvZ4«’ºÎ‰ ¹¬ÏþP�ÚA!/\V&�`€g×IQPì€ÉЛE÷¨Ì=e¹l“;¢@ùÄÈå4õÃl× ‰ƒŒTnÃÀ©ø�Ò†Å3-/©ˆ9˜6¸/0k^/ Sµ¸0a½ß¿ ®g“Gš[Ì€,ZÁæ�UÃQ`ÆÏ+ß¶0 T}YçÚoêjÕ e XZÎk‡Îš6MС¤ék%ui�º^Çë�•í ¹³¨Œ{$6Ž·zHåŠÞ½BÇI&…ú&–" XZ%¨d–¦gˆViߪ70`¨ÅÕAR£‹6“E£B-S"²¢Ò4–bKw4 )0s7ö¼ÏV¶µ0}‡ß)ÍL�¾‹éNbôAHîŒ`úRCž7ÒtMÝ·lè]~û1I#¹¨IŽé‘I�Яê'‰Zendstream endobj 54 0 obj <>stream XZhÞ22·T0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@Á�#   HÈ6²- lscK(ÛBÁØÄ ª1 (?98µ$Z?ÀÅM?$µ¢$ÖÎ ÀZendstream endobj 55 0 obj <> endobj 56 0 obj <>stream XZhÞ¬XÛŽÛF}×W4°/ÔbDñ~É[ ïÎ"Ž7# LòÐC¶$zxQØM+úŒø÷[rª»IQ�= , Ë&ûV]uêÔ)®¸÷ÙN.ÞlëÍ&a>Ûl¾ÇèþI–FÛ4 �íðwSÐÏqñàH¡†ƒ¸¾ÏV,ð–+?�bßy×JÅëºjwŒ·%ûù z®è‰f¾¹˺–©½`Þ~Xùþò·Í�‹À�Ù*t¶y‹}ßmÙ©˜äËÀs>/ýØKÏ)—« öZ©×ÀÖÔØš¸I[±Öùïróiv 7Ž;R Is;!2B7ôb;CñþrµïF~j0zwL�5¨žŠîаªUãL¸c±geÕ‹Buýi™ÄÎ�±Xò[²_]»ŒÆõê»ñ�9nå{næelå»™6èoW—Iãјæ ÝÜôzOZ„ ƒolX”ÿ¿Ýȑ줛`â®#ëzAj�óOÚ¿CP{¸(MY)„§ÚV£†zA«VuÍd°ž^p¥êÌÂÀiMÏ.àK|sÊÌ�óèu Ü TYÀêvF:â.ɲà[aº±. ðx/¶ˆX[˜'ت),$GÁ„%cÙ}q&jE}óH/qÓÅT�+í¢AF”¸‰“Ø Sò¦ª+ÐXLÇ2rCZvÃy±›‡ÑëRúÒãÇ9¿îE}Ø5Ó0ÇÀ¡C­³ì™¹Qî]ûDVðÝt'¬h�^ £* ¿0‡¬"JÓÉBttéÁÜ ³ì[.|ÐѪ)õKÚ�ö¹@”¼®±ÔOu\`hœØ û–E¬Ê¸�[Þ*Ÿ^ì»F¬v½aü–•öD\¸ì«YfIS�í ÿÔõó™íÐ<ÒŒ^HÑ›ù:_醫o§$²Åiʸ›u²ù L§éÊjk6.º¦_�U cE/¸zìl¬[Ÿž­™Ûþk!âå{ùÿ–©&¥r7K’|vG-05µóGŠ/»† ëCy I²u Jˆ4‘¾ï”-ú¼Ö`‚Ôœ@÷¢ËA£`Ô-½×I®Ø¶ïKÔU{&æ8÷oTÙ[UÕTêB�BÈÊ8Û}�Hx9bRtJ9`ß‹[vY�P"4&}HDXc¬Êñ +‘4Ó9lÛ™@=-}¨kEÍPµv¤ž¶ôŠ` ÐůÎÚžº~„_—ºvq¼·ü�7›ÅÞzó1ó/¡¬ÕY;îY¡OYäy¹ ؽA XZ²nÐüTìy»#-'~*s72ê¥ê ”#¨.SüE]¯žZ›c_èÝ—qRo8H¯®nú‘¼ 'ÇΞ0ž'�õ¢ALoèõ:혩·ª¯)³âÌ5�ÚìÑføÇ×…Ûiy3F‘0ý� úaá³ýO ³�Ô;ýÄ~C”¨ØâwŒé¦ XZCä ‹"ú†�~Ý,ÒÌͨˆÔ‹ûÅ¿©;waXÁ¢Pß©�IQêkVpŽ{�Ø{dƒ7ÝZ2ÍxÉEb÷i0…bçfä©ÁÅû>rãÌî—°pz�yv#è Ù×ðo�š×�îî€ÆØŽ�½¡â&Û–«È÷RÉ ¼Û¨`¡=ïÉx¶]ðÉÕéØ-DV$ýÜ¢Œ€¿z9R¾ ]~ÂIJ̧a } 9¦”&½‘º¬ö <7H ‘!‡ëÞÏO©R#æè¾ë”9Ù XZyç'ëÚŠäÑízÞØbZÅ„dŒÎKý­cú�à! tÙ:k W‡šFZendstream endobj 57 0 obj <>stream XZhÞ2²0P0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@Á�#   HÈ6²Í l3 ÛÊ6W0¶4€j (ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 58 0 obj <> endobj 59 0 obj <>stream XZhÞ´YÛrÜÆ}çWLU^°..ˆëpWI‘+q☪hý�’ò€†»0±�Þü…ý�ù–œž n¤d–œ”Jäb ôôõôéÆÍŸÞùì(¯^ï¯nöûóÙþîÊ÷ýï$`I±ýùÊcGüßôãñê½óm#û¼®«æÈò¦d·-ïòž®×÷_¿{ÃDÃúgoß¼Ýúþfë'A9ïx?´.ݶ,ð7ÿÜÿå*pc¶ ÝÛ¿¹r½]èöxøçM9?—9?‹æúüËfú‘8ƒä«$Ãï’݉Žé›XÛ‰‚KÉ%Ï{V XZÖˆž5wuŸÚ®Ú±óPÕ|ãÇΑK—m¶AìÑyV¸>V(“Dg&U·JWß ”®¾øZWÒfxζ*G¥r ǰ¼(ÄÐôZÅá ‘’I¡•ƒ{H‡ ŽÝ8¶Àýµ8²ªa�UCÏN9‰} ¿’3µ ¹”�ßsDWå]ßy}Qî¿€Ã(Ôzµu^˜gÏ$¶}º2n‹à¸‘sìÄÐ^ÏÓ_“bGÞ³Žç%Y³^(ie%ï¥»ÙÆ!Ý8ÅlŠv)–AƒÜ¢„ÿTÉž—“Îq�h�k…ã6—®UŠÁ±ˆ%<{âøÓ�ƒìI œÄ=T%g9+Ä™²`�ÉC:À^à¦ÎÜ…Œ7}w1j7â ÊË,âÐÍ$Ëx—³»NœYŸ·üæ�÷C+¯•ãšM„L#e‘£œwü_CÕik D¿ç*7T)ø‰›FÙTÆMò”—‚L„ß³Ä��O™�¸ah ?¡»%±UŸr-"±·M­]�.mèÙ ï‹u:²)sÔ!QÞxNc¤|ºf’+ãØÝ”w•$;#ñÛ AõkU�´~ÛÄÍ¢tm~AÒOt¨½Ý˜ƒ´KBc�óÁñ?l®�½FžïîvöïUû¸ôF€ XZ‰§ÇÓO>~¾×V/EZE}Fwªð‹Ž(K~¨J}�ëkBB4ù™S[WÍAú XZú“*!oì^L§¼xÆ€æ„F&ѸnÀ€Ú¢:¯+ÜZym»¾*ü@ ÃOÕ|κÛY +©£¡ô�Â^i¿¦Mˆ×Apà 2ëûèõòrã…™iÈ�Íéiæ&è…MY£-.KÍ þ±ñ ð¡Ô`Ÿ‘ 4hhµ÷¬¨…ä°\“ êá½è/-�ïÔ൥[ˆ™Hƒ—DZG’߸kÄë¥Ï ŠeÕ@i¸»ê-Ã@ëWI°3rÆOÑ©uóÕG¢¥ÎuÙì�MôƒGŒ�ïADHP›w}U ÛI¥(Q-Ý©óN%Ê¥C×�lÃÓ»º£¶¥oÊ Ö¯bd¢ùþ¸.… gŽ�ÒŸè XZZ1yÅr94;�LÄÒ”JeòI€¯4ÈmÉ–¡V÷ß 5¥¨Îªw1Š0xû€^Š€8š—âŒXleQGÓ“Û0€Dp×UOýàp÷xÍÀféÞÊGͨ„ûÍ›>lžãU^šM3ÄY]º�,–€Ã™ª-ÞXŒi+JgÅßf)(‘ƒ«®ìÐÇ“™ÑïdïÉ�‡ ³êü;7 R:¨°nÛIZ$[HÍìV’¶aâFi:+ÒÔ7–>žªâD,Te=i�âïŒ-D,E=^`°@!Hå�ïo‰2í‘Õ¡ïfŽÊ…�ŠÔ§�óíÕS.oå>: U]ª³þëÀCUšÎèi!O çéZb|Ð-ØŸoßí7Yàl  BºÎÂÛÄüîöö¯?¼ýÅI‘ëWÏš¯ÉGÊEƒ„Œ}”›LU'bl5· ýÁ!þ:šm­Ý®ÌµãÌÇ­TÀ³Â|ß º=P•áv$HMe¦Ê  ;æ¶j.jhY¢øª‚|ˆÉ,”)¬™n;[ЧÚÑÕØ*�ÏA7Wò<ç ­Zš¸m$‹NlP¦«z8·UñиýHÎÿ•€Š£\õ ï8iî®m�˜ß.²dÉñéZiŒoÓÓ¨A·Ð9´fÅviÛ ñQ? i`ü2Ƹñ54hc¤ô2rZ ¢}ièÇMk—gnìÛvÚçÝ2Í}€ªa«Ž];¯‹$M³—Ôˆ XZ ü©Ö€†+�pÅÛT&¿@(€ %õåju†Ð)úõ ”S”Šñ|Þæ¾b?µì,�RgÌ f’Ú|¤õõìc;êª0_˜!Z>·V É?�2Ñä0zá©jU-*ƒÕB@'µÅS þún•|‘½ôC¢¨!ºÄ@Ä‹³ÈhÍaħÐ1+<ÌŒ¶ËžôÇÉ�´Hœn@Ó‘¼7œ³G†óá#Ÿyýñì+}Õ!FI/`>stream XZhÞ,ÌA XZ€ …á«Ì 4GË \Un#ÝE‹· 1 �ß³ûø<ã;Ð0Mji]TØ1u€Þð°‡ ÖúÇœ GûG¶e÷bèPÜs÷âpÔâÐz9ÜÞz§B‡ÚæUåÒè á`Zendstream endobj 61 0 obj <> endobj 62 0 obj <>stream XZhÞœYÙŽãÆ}ï¯( /TТ¸/‰a`ì1’à±á‘á =Á D–$z¸(,rÚ=`ò+9·Šd·íŽ1µ’u×sέÚýå­ÏNòæ‹ýÍn¿O˜ÏöÇßcôÒ€¥QÄöÍ�ÇNø¿/èåáæÞ‘b/nàú>Û² Ølý4Š}箕¯ëª=1ޖ웋èù@ŸèÊ/Þ¾f]ˆ³`ß¾þvëû›îÿv¸1Û†nÂö¯o\/Œs½Àg>ˆM;7~ìˆ�çô›m�ÅnîˆZ XZVIV‹ã þV6¾‡¯Ùбƒ`²ðrE¥V€g©ñ,s½4ñáSž8ÿÙìœùîÆq¢žÙR°®g½ø×Xõ‚¼DZf²èG¸FÖ=’e‰sÇ\j^�ËU˪A²™íVÙ³ |×DÎwƒÉ’{gy�e¤ XZ=E¸›mìyÎwâ(zò�BWvÅØˆv@\LŠ²ìÆ¾€a])˜±�÷‡jèy_!&­­ èúJ=�³UdBŠL =ÿå˜85LÒ¿ú·-nL‚Œm7RQ bíLè†.{U–™ÉkD(öœ¢k7‘GÆ ]½$6ô}Õ)J]ß(¯¬mf}U!¾Û ½Ä«ã€° •KãE…§Uñ~ Œ ¨[wëBˆðœ$yi!èá½|”ƒhä-{ìFÖðG•. XZ8-=J˜cžr]'Iýÿs�{ZOä{x¶ä›À»öA©}C¸ð¡µ~ººÂÀ /˜ªËõˆí#{¨†óŠGüO‹‚‘eA ðaE#ÛÈw“$ʧp:gû)âk.µ&Ñ=#(ž«Œ(LC[�y†”PVPx= ²^Á˜Z4!«C-ÞmàvÁm(Ò`è}Cd1Ú¸Á½ 5ºH7Rß XZh?Ž/zÃâÈ;Œ¸b_*eåXYº �ú/eߨÏ&´JÂH_ÿÎÉ`¾aaâ°„d…b±3—ÊÔƒhźL7‹‚à…Ð8-6(Ü6�¹Ò«„Ɔ´­ðË#Ã$Ñ«�}טõ�p1ô€Z‰²tNi–*”²1¬¦³péz•‚g©ÎÝZ„²™çx;0­D”¤³C‚*4|ð\úH=dnã„âZ¸‡i³oàpAµÌ=:&�_˜yý$Í‹U]+B±Q]C‹»-#�õQ XZ�—Ó Ñë¨ÅãwO…o#£s]‰›Çsi&ÑK«áÙ‹¬HµÁçU-;ä²™ éfÄËC7u&è[Þ®òK_7¢9�yãûNMÐG„øŸŠnlÕ›—‚þJ �+ô�fËöùï/‚ÊéV!Uôˆg&K2S÷0'rCª­±êvÕÌ£b×—Ssª»Û}Ãàrm窋ƒ .©ö¦ý�Ê6W-¨¾’ ÐÎqâ-ƨ–7¢Zº’ʬֻw¸B°“ÚE1d "‰®isD[ð‹k]¹ƒ(ÎmfRD¨�›ˆò®*ÎŒ—¥&Èñ=zTçÄn׬ó»Veûfê§Yû}‚é=ÜÛ¡Tá†BZÞ¡)#:çP;±RÿÖ ýå‰÷¥å–†ÿT5ccƒB=¡ç¨ mD¯¨åã_y²xÙžãÖ–^–¤ó1+·¤�!ÃL©§5ÔA…C†¢ª‚×@¤OJBQ]Hµ/¤�³œ®­«¦,˜¾Ä³�È$Š~÷Nj4Û?˜iCnÑí)g«Ü:·ê –|ðã'$övò¦’Ë…Ș)V›,·žñ’ߦ¥Ù®œ-$ð› XZ&ŸÎ¤� Zendstream endobj 63 0 obj <>stream XZhÞšÀ€ XZ‘9Zendstream endobj 64 0 obj <>stream XZhÞìW[lTU]çÜN[ ¶åÕV*í-PÚÒNK§ÒGB+´aJ¢1Š8ÎÜvF¦í834ô�ê+15@�ñ&jRß|05#ñ”ƒQ‰!Z#VËu�=S,¾â‡‰23kŸ½×Þû¼ö¹wî…0 ;`aÉúk|·íX~™ÃDOh(e/|wþO€šNûÁÞx_ÿÁã7ÞOûIÚá¾ØpïÕ½Þ3@Žñï�8Áð%…€c7GHdµ€6öÂHjû›÷–ž¤½°öÇCA`ÐÏ|ög=ÒÜWz�šñö@°ßù¸÷›ZNp5ý�ÇN¼laÁ­€çmÎa9qŸÚ”>¬ïfƽéV½Ÿ²ð7ŸŽX*‰Øg´UŒ÷ØwÇ9«ÔËú µUo¶|ê~G˜žUj?ªÛô‡Ê¯_u_Tï£Zר2Ý ¸cê´ësw R½àV©|÷7€×ÔnLíV.–º›±1œÀÏz¶º/»{”í(„wáU”á<ŒOp¯c¿ªQ¹ê-Ü�#ueæ|ìÆsX…flÚ=ž,K£n¨Óµ*;#% "7­òÖ�·Ó¦mr_i�ùl»jn5Öh{ëÌQÕlHo�í²»™ÙŒØ›Lâ‚ÖQ]iœÖë¼Pf'Ü*ÊSîµîFë;Ã\ðùR�¡\´ñ4TZc«Z¢–Ü ì㤞†Ö¿‹u9)|3V2¿E‹ XZb>QLûòL]ÿZ3KôÙÂϦHôá/¦t®‘— 3O˜2aÊE·…¯f¾è „_(L¥è‹DV‰·ZøÑ‹¬o�H¯Èz‘ â]"ñ�†á¾Lý™{š6÷6õÿ,ä`y{iNV²=MÊ“å³tN¶Oñ&ç±xÐ5ÔÐR‚þ~ÕàŸð pÂÏ_ã’çrá©mšQ1£Š(W/•Ÿ»Ó*þå«r}|¢ŠwÔ�8¡{TǘמgiEªÉÒsØÙ„_Õóò”§¶²bi…î9—«Îž¸ròþ¾ˆ‹ø 쿈ÿÓp÷ù礯‰Ég§m´ÒºÅç�-=‹z"£gS¡Y—�)Q{3ºæÿÇhF·°HÉèYÔ?ÏèÙX¤ó¨+ê—OÖ+1ˆ8†‘@}ˆ Õ¡†m#Úøm¡¶ŽÞF¦‡/VSÆøµùdÜ�ziÓöo=%ÅrØ:l‡(ÃŒÜ@¿°65#ƒDŠAúú‚Ô·’D�Ñd 0¾�ž„ô”/ɼ™2J_TzŠÊXõ+ãÉh_$eW‡jìÆ¶¶{]t`05w¼«�XÌîè®·;ØJPÒN8I'1ä„ë7Dû�¤MÚA;•†�þ`b«=Ø{>›‰vp Ü0˜°£ÌKn»9 Gƒ‰¨“¬ï\¹võUëk¥ ïšT0 ý3 XZ�¬ÌZîòUX�Ú){v5eדµýU”k¸AFEúW£þ7çE®¶/��^C¹|Ë#Ụ6×PúªýtÙk7l)ðÿ`ÞƒÌåé;ñô™É–ïEUÖw|_4×»N_¿¿ XZ0Zendstream endobj 65 0 obj <>stream XZhÞTP±NÄ0 Ýó91¤ H0T]Ž¥¢…=—¸%u"7ú÷$Q{ˆÁ¶üì§÷lyî^:rä;{Óc„Ñ‘e\üÊና#¨XgâÞ•lf@&r¿-çŽFM#äG.‘7¸†‡ûêò�-²£)!�êó+!ýÂÎH*h[°8 XZy~Õá¢gYˆà°Uúz×ö—  ²¦ ¡©ªç§ö(Höÿü`]Gó­YÛJÕªi{Ç3/ßtóaVæd±^Œd Žðö›àCVË!~Zendstream endobj 66 0 obj <>stream XZhÞlRkKÃ@ü+÷±EÊÞåò¤Ð6¶�â¬Púál×x�É Í¿wïRÄOfg‡Ù¹x±Ç8óbÉ„ˆéë3…ìænÏf“e�ð&L:áË|ë¦6Dæ¹G¤oIÂ’Éà“G^pH8¾àˆÉk~1yîšc†fÏÉr<›Ã|N¦‹þˆµaq,a•&$`¡tÛ+ÕnQŸDu3OD°.Uѳˆ»`ËesÞÏDxífLpÁ­ÛÁ תÒå0Éu…ýtdt‰ Çä–xTÂíê~{÷tåt³Ô¨RÝ03šã'<6]¥JGíÆP>ç0 XZuQ"›‰Z/XèÞtÃdqjÞq XZÙWÛ–XÙ¶8õNy³I“ÕÂÏ$;*Šó?ÑÜ_a{ɾÞ�MN»Va¯ð~o�Ý^È`FÁ�Þð[€Zendstream endobj 67 0 obj <> endobj 68 0 obj <>stream XZhÞœXÛrã¸}÷Wà‘JV0Á«˜·Ù™©Ä©šK­µ/ñ¤R YŒy Yë|Æ~`¾%§’")Ë3IM�-™ºqúôénÜþù^°Guóóöæv»�˜`Ûý�pýïØcq°muã²GüßfôãtóàÜÕJ§eYÔ�,­sö¥•]ªé›Ç…øùþkj¦’}ýðu-Äj-bo8÷R[N¯°5óüÕß·ņkŸGlû»>™dÏ+:²S)7Ï=²µà¡y…»IbØ XZŲCZ?JvZ ×I«e&•J»¦Š;‘êEiY)–®<×y^y¡“eº+%Û7Ýèm.鉵\6m%kÍiÎtÃvØã�v27Þ¬{w¼Þ›À³îœ XZ}m5;ŠìÀ~ÝþãóÊ�wŸ>Þßýíãè¨’š¥š‰�¯Öapß¹ÛÃÛñD·p¿©Z º+ÊB¿0<© 7UO~¢“ÕÆŸíàÅ&Ö‹£®Z~09Ù�§¢,q{x:ý`ˆGèèfµöý„ g'‡OU“f_°!îÙñ�¿‰AœØDßùÏjûÏ _xˆà¸�Ñ™7Î!`e±ëÒ®�ÊÚª0öþŸ¨„n´LvS�Ö~‚þ4Þ,È[K™“Ê-T&à" XZñÜ«ŒBû´Zt£_ZÔP6Y XZÆô…«Î)ì="A7�Ë‚ê{šA/áö2‚&Œs†-ñ“‹0[B)ÎÓõ–xC“ëƒ*Ît@î§Ý_dm•/àÃÀF@à¿Î‹±¹Z£¾CHz;ÌÅÓñé|WIAd¿|BcL³ìK©}EhÈ¥™×Ë Ì ÷‡Þûͪnn|©³(ìÜ¥{`ÌUün@þúÖáG¸ìóDÍ å¹^dìÜÞüW€Zendstream endobj 69 0 obj <>stream XZhÞ2²0U0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@Á�#   HÈ6²Í l3 ÛÊ6W0¶4€j (ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 70 0 obj <> endobj 71 0 obj <>stream XZhÞœWÛ’ã¶}Ÿ¯@J/djÄÀ«TÙá cdNxÏY™å,úÐi#Ú¶évDtò±—ƒ0ø W¾ýéQ1{I~x÷ܱøçÕ¿ïÒ¤ s|¬Þ�Ý¥9¿äAÅ,�>Ç<�ĺ•ËNÏR¾ìÌ,_võ¬âéRo—v7%s–pÜ-×ôÍÃa#ë‡á@ÓãZ)³ŒWÿ¹[ýíöb¶((]®ÅŒQž-·1£‘ÿn-Á2Xµö«Ö~•ÿôv`A=c)Ë9,©ý’új µ�1θfƒH¶ÏÛÍã)®Ûùu»Ûãöãq{¿dY¡Cú!µ6y -ÓÔUç{e$äYLö I£I§HÓmÕp€z@àÔ‰ˆµ:rÚ7õžÔ˜ó3Ôn#"H/ÓØµPÒÁhÜ¢¿v|©m8àC>"¡”eÎ_FxÈ¡½ÅÄAœÁCÖ’µÜÝŽ­�TGÝžã"�’xžS–dÑ XZ#˜z}²EÓä~Ê_ƒÑöZºö«ãû$Éó½yŒ �iê‡M£?�G¤1ÎYul7d/bNƒO̺ÏN¡‡C‡¬aKcöXÑjEê½èvØ;/Çe÷bBY«Cß´a©KÎÐÉ6±�±¤( XZ¬Nî{l‹:‰æNÎÊ•çvÏ%ü XZ¢,ÿ<þV’V©Oš´�;ßY6ûF;ÄÏ«„²ݨ܎™[ñãw”?Ðô¶™g¡ —ù\ô»¿¥_Þ½ÿñû–OO¸’�;¿‰B`óØ�/°‡³=òËhE—JÌ^f#Þx–›Ø}´œR©,ÕÚ[¸%³~£²û+�×xf={N8£wŽIh•áÊÝŒ§4{N)f7õî9¿¨ýìÉXŽá×ÃE'‡"`ÿÆ!êYäIu1–ߢ‹#Ö¯ñT&eVd6®ß~Uãa‘l7šÀ,¹ðν…úWõ•;“ئÑ6ü€�PÖŒê *VpÁ€¹šàÃI´í NÌØ˜>7õKº&£Ñ=>@$Á“?ÅphY$i$—‰köwpÍþ°LÛ^ÇjSuV¤°üb5„b]¶Bh«_�AÈpzMCB:g<¹æò´ô�ú¡›Ôµ*!£/•Fï­zTHŽ®?ŸQ$.µ9‚–?£œF<¤¥küQ÷cu € ÄMØ4¨]d% Ÿ ¬7ª“AJßtÕDˇ¢ZJöbêÝ[”ޚˮeïëÌ=F¯Pþ.9@vä….;ä° XZèþ´—Ž]‡È´³y2ó�ŠÚ(éæ³>ö½ŒË¸õ2¥Ø¡Õÿø ÅÆ5fJV"ˆ'ôçÙï44ÆëÁAX…,˜ÛŠ¢®?j¼>CÔ¿‡ ÑV¸\Ë(@è?ƒ ž (KrP�߈ tÚ*/Þ<äC€ jø�>B·©�ÇŸb;Üxò 8d«¿€3J¾ŸÐéa qp˜žÖå÷«»ßZendstream endobj 72 0 obj <>stream XZhÞ,̽ XZ€ †á[9w ù—�8•®’nÑášgðò;�ÛÃûÁ'¬α­cÌxa%Ç<�´‚†Ý{ÚƒKÕÉŠl†5H-‡ u;<ƒ\ø8Io»sŃ¥5°R;žÞ Zendstream endobj 73 0 obj <> endobj 74 0 obj <>stream XZhÞ¤X]oÛH|÷¯hì½P‹")R” ,p›Ø›óaó�Ü"Ù‡9’¸¡8ZiEûcï·\õÌP¢dç.À!HlÊætwuuuM&o–!môÍ«ìf’e3 XZ)[ß„ñ|I#J㘲ÝM@üÍrþçpóÉ{¬u+ªª¬7$ê‚Þïe#Z~Šü0|µ¼'US»•ôáþÃ8 Gã0�æ±·”m·÷ùWhLQ2ú-ûÇ�\ÜÈÆ�(šÎüxAi0çØ^ìÓò×eöð––ÙÇ£ì÷³]¤4›Í}“¯ÄñÔ¦úS‹LJM{UÖ-UGz«ºª ­E�÷4 XZOò?„4Oœ¿ÕGÝʶe¾¥\Ô¤»<—Z¯»ª:ÒJ©–Ö�ÚQQê/„Ãíºª-Ç�– íT!}Sá8ò‡~DÙ½ÅÏ{\SÙR¡¤¦Zµ·ÔZýE#Yq1F( 8ìH¬™¤—Љyb\[µWƒ�†5YAQR^êWT3ìuÝ­zÆ•îª÷ćˆ†¯P¢ó�ŸØiŸùqrÑúéÜùxû¿/ûk„ku.÷œµÆ�ŽŸn@7V-Z$š‚Yð–ã‹òLƒs,søÁUOƧA §IÚÏüZMÞ.³ôí}6Jc×Èé<�M·:ÒÒNico~jJœ!ηµÒ²qå˜wÒÿÊ­[¸%ž”-ßßZM=õmºõYÒ¾™/0jòq9q‰X�÷fx¨wdm\wU;qbàʆž5Zá¶ZÛɱ×e“C˜úi‚…=Ž-ÙÝØ„½Ä2÷a³&ù�‡ìæ? Zendstream endobj 75 0 obj <>stream XZhÞ2²0W0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@A7 ˜©HL?$Ä(oe›Zendstream endobj 76 0 obj <> endobj 77 0 obj <>stream XZhÞ¬YÛnëÆ}÷W ”ª�Æ^D2EŠú\�º8pŒZ@‘ÚE1&Gc^^â*Ÿ‘ì·t홡DÊÎ�PA|$š3³¯k­=¾þþA°m{õa}u½^¯˜`ëÍ•pý‡"�EAÀÖå•˶ø�Ò�׫G§U]¿ç‚-™·š/E„¹­ÚNE^m™¬2öÃ^5²£oô懇O¬®X·SìþÓýRˆù?×ņKŸ¯ØúÓwE›íeöËÜ Y¥ŠUu—§Š³‡ºT¬Þèõ¿Ö•Ê«MÍô0=²¦‡Ü�ýÖc?mªóŸùú§‘s< Wæ×t\dŽ+TËò*-úLeì5ïvG{Ky`Ï8¶ï–õf™É†ü}»Nݼ°¼eûBV=9²Õ¶,aBâ'1[ XZî­xtö²éÈzÉ6}×7Á\ÀÁ.ݱ/Š|ý…¾«âiκšå徯ûäj�3ÛŽÝÞÜÍýй™/½Ðuº_aŠäƒ÷žñ ¡ôx@‡>:Üç̼þ :Ê‚]‹MÛCÛ©’íjì\ÉR Ù y<$ûC“�2NÜÛ7õ¶‘e ãdÇõsŸÃ½iÞ©ßæaè´ó%Š�Gm½`uÃZÊ]›—y!–îd#ÓN5y‹Ìâ÷Ï�ÌM]PN›%SW&šÖÏ$̺>àBS÷ÛÝàFŠ’ké˜MS—Ìæ{¨Á÷Ò‚ðŨ Š:Eè3ØÄ®U—òù2ô��›6Ï”9Š’Ú5i�iT¡—!‹ô´RÝë\èzYà™­¤iŒ ¨ËÈ1™ðc´¶9Ô}£ƒKŸXÙ#gå¾8°V*íPSÇD.hmÅT–›ê™Ã÷¸çGÁ…ÑŒ*”Àu“ò´®6º³‘Ãj«hí›F‰?öÆ�›&ÅfMú/¬šÚð•'—&Åî¶E×d3pQ •‡0Égô¥y™„Ìî~˜QÈf?~~˜-´¥:Æ\‘ÅŠB5ÞJ;r‘ÉyãŽñ=Ú›j¹Û¨ù ¥V}«³J(†µ1­u†C¾³~ƒã~Ç�ò [mÏËõ Ïê�pÖÕ°+À"´‚X™…w?Ì×Y~øö¬o}žPÒx&˜òE¨ûU’Q+žÄ± ò/‡Gtwê_LᾊÂð˜¦TïS[(™Qöu_¦uYªªÃiÇg²e¯ XZ¨![ügÀå k÷¸¾©‹¥Ž;S¸ñ¸ÏÃ@Ø>¬ _éô“3û†Í°¿E‹!È&;(Ý)ǧ¯9{€§uuF^ÌW®wi/X‹LræÁˆÛ�îG‰¨6}UiΣ®5Ny aœWµ´&˜.ÐJUÉçBe ½e»«û‚€ 3$lƒH"swrOA (ôÓzö@d<3l0…n7²ˆi`¶LMÛ2A#Ç—FÄîüèTÊäÖ0vÑ#°§!V|>Ðo†ÀÛZçëã8¹x}ß§ûézRƒî‰]ƒf#"™éf>wR&¯»ú�A¾?1HƒFà�îN˜á Õh ÈÌQ‘ƒŒôÒxšW²9@.Ê-º�êI넼ÊÔ^áGÕq{ð‰È½Ð$�”bÀÙD#6s;uÝý6÷#’sôLQ^Øœ>n¨ÕëæU6DZ²(€ghržìä¬ã!î3ƒ=2ÿŒ à\% êåÔóÿOûþ|T“-! ñ?ŠJPvþiP‡Aý&û ãÝdT×Ú¶ËÁå)rô‚9‡°c·ªÒƒitƒ?à�¯±ð£•b ˆ.«ï?ß}þÛíGf$[1LLl–ê{�ûøåæáïØVÏòöÅÐÍК~aÒo� XZ{¦þîó¢ÓRæ=D>¢ÊìËíÝç¿üƒ­\ l¯»¼PSîo?Ý ñûç{9Fç_¦Ç³áˆÐ…ʹÑ7*#ü \K„ÏÀ0�‡¶13À?¾Ý ]—´òé’¦ÞÓ DË~¶òú�1cÅ£X\:q¦`Ì HÖæÓøI¶­:ø–¡i+Ã6¾`2?…ØM¬P>îáPÖäÁÂX�‘3 8ÆÆua\lÙ6×Cƒ6C"Ò®`Ë×cÙp*ÑݯßÝ͘¦+vG9°”º4^Á"¶D¼r9»ÍÍa¾ XZ� XZiƒŠM8�j<#|Vh'5fœm­oìŽZ"_j6,ë TiâÓ›/a�&¦3f3Ù Î:ÓH÷Ã#ð³öÛQ;½ãHbÓöÎHHF�gµ5ÝâQ7«Óº@ ¿7ཙïµáb£ �ÝQ?y®kûit…F“²Ö4æ:Q¢dqÈû’Àä¸iè>é-ä¸1á[zJ ‘c‡!Ewë{œ7�°U—Q�³Ohp~£^Š�üš„ïµ’÷†â©�ô-â¤×–>h@ŒÕi2Ü8¯M§´ÍÞ¦MþŒÛÚEuËn®iÜ|)ä�zó�+èäâ+èdt­K[˦RS�é9ÀJ›<µóBc„¹MÑÀ t�]šÛkÆ“HO.VÌ•�†Ñ¢–™®ªg ªÎöÖ^5º‚°ÍYΰÌO‚ÉÈ÷•þð�bh8—Â<¹ä579£ÈÒÔwªfThذLæé">i祇*ŒÜ±wÁÊö@§ÿp€íÌߨZÍú‚6¡ù�µÅ�f/YAh"ùè%‹–¿wσ�- XZØ#;Ø„Z§„ÿE;cv"ÊÍŸ¨0Oêcê)D¥kr{o‡ÂG�FGKX–WÈÎNîÍŸ5&¶°ý&ˆ¿}Ás¹¥/ÄM­~´mê~²dzsx>stream XZhÞ,ÌA XZ€ …á«Ì 4›@\•n%ÝE‹· 1 �ßî>þO!‚çÄÖ)fº¨²cž@£âa÷^„öÇRGóG¶aÛaËÆáô"‡´±ã$½íΕ‘Ö Jítzÿ 0Zendstream endobj 79 0 obj <> endobj 80 0 obj <>stream XZhÞ”ZÉrɽë+Ê·†ƒhö¾ŒN’%OÈi¶Cô¡Ð(Znhe²;E2õ’|¯ö"¯ºZôg�×DœeÓåéò\üíÝ›ˆîr¦Í‹‹è[ÕÂx狺�^»e�·FU�4uŒ’qªµäí#üy=ðxN–¯2uE&†ZÞ;›z°Al¼Ø‘ëøp¤Þùî™õŸÍÍ/3+Ù! Ä_�2­¦í¦£\‰¯gG^‰¼¥3ìÅâ¥hêºf§™¬Áò}² XZÕ^ÚN•WØt'³ÏdÊ“jT}¸";IÚaë;vঠáѶ„eWJÀ’^k!ßï:q¬Í;ÈEþ™b &½îÊós¶f«²Q¶´Åni‹öŽ“ç3Å$ÛÆèµô„ïÛnâ¹O³ÔKÖyÎÑnŒÙ‰›$Kc|²²ºÜå•$5E}`õUʼ"½¦À·ΰç“(~=ðë‘_O·Áç©ûb/N5^pÐæÞaB;tÃÿgåQûÖ6KLŽo}×vb¤¿gÇ&Õÿ¾‰BKn«¡'�X¥3¢+òÇð‰£P›\@©KÉ%îN9RúÕë? J�½löÂtíäž\Ùa)–k5{² ÙöçsÝt XZ&!›²ítRƶK3ÛN™]ƒ@e�èÄw½Hœ•)ÞSKjB§ƒùá…s!3Uªª¿£ggZyÛÁHÛ0 ì�‘nÛÕ[:«róGH÷ãÁÏçPÒžØEÀ£L6êФˆÜx@Cz©ó½¨É”_èE5wMÎÈÜ�p伂JêÇÀd5˜;0‰ÃÅi8�W( k.½�¨Ž¢Á+^bt¼µ’Û�-^Ê=`+‰-sÌ AØÌý�ÝQ¹3KGÚ�h\TŸIU`tÎõdL‰�8‹´:}^ªèÚ��Z.…zTÎ:ìÛ‹œhî”ýªîÖaï8‘?XÑ|� æXwywß04uQ F*¤# áä‹Ò™�?x ¸·^êÛÛáí5ßriÿ¼AÖã黊ˆ‰j(iÚìðáZõ˜®�.u/ˆã Ëü]ÖMð{F¿Rê:‰P÷Lž¸¯úVî`lsØ• ò‹ (‚›*:àxD9^�Ø{¯ÔxvO+›PÈ ô’¤"ˆ‹OÝs¶Ržjàñ‘ +R±Î\¤ì"ËP|#7ßLÕqR†"ò Jã/ŒÒ¢†ÀCb‘NTm­Zj{ž7ò4Ñ'ƒòâ¨*ÕäY½kòá}Ï*kÏ4•�­¡<âouû ¸2V�XÄl¨:t=¨„B†Wõ}ŠŠR˜š”Ó»!2/xÞ�ÖV‡õð¡é«§¥!…L[#Lk’!¢ÌÙø 5ñB]%i먢÷‚5Û÷’'RÐ05�ZÕ“®ÿ_ÏbU ÈÞ¤m“⬴öôc*Äà.ªÒMÈì‡kÔþPùCGÀ FDÝå`™ªiêJÕ}«[ŒÇí;uhŒR±fry`aÎÄÉ@B“`й«ÔH0€Fy1¤ºÔjë_7 'Wl�¶oÎ :³ê¨#û XZA&@ ´‰b¯Øhy¦LÚ®éðhMhasU´b6ük9¼éXøQ›~€ñU�º‰«ûNäRI¢•ठO9z'Ýg��¡.ñ·½Z54‘�¢â>µ¡1 Z©YÃ`@D•;µ×Ý"Û}–§aƒ(± XZ¸C5›�``º [žZ­Uœ£“¶Ã ‰VØõMí¼EC�6`ɃøÛ]¹ÞmµhÞ†ÕF2–=�åU·P„âÁÛ—WdÓƒjà© zcâÉÎÛ—TÎuÛæðŸ>$çZrçy8Q9™dÅÈ�vi¸MòcÛšOÆqMÒgmÀ©Y�†©P0г¦/\( ‘rT„®5ã¢=8lXþýˆ›�È‚À�bo nj§(Æ€1�4o ¼u–õç }M@–K,¹«Q·AjßšÚQî.Ö¢G/´2¥ü…æ'¨öÙ#{T\óÂödPÁ¼’0”{føày@Æ`o™·™* XZÉUs�NÓ§ƒÒs½»á”Qp qÇJÕ �‚`×èVš,Ü�;è‘XV—Û‘/»®7@L¡º1©GgäÎ#jÃâZå.†‘[ªY�ø�p¡31d3�µþûøtÉõ €ë^¡þêÄWâÃO'ÂŽoßh Ë l-7¶c×"3DZŠ¡lsT„ºÒ­&r$ïM³ûÙû@¹fo˜ ÷<+=àœáô�+ðÉ:ö�Ô£T`˜ãXÈX†‡N@P’rÑn¨�g•~ûáUP¢²Ù &�ÚL‰4š ¨í Ìø%±%jÁÕ¹'’°…<Í¥;ñ¢g̺‡ 8”f œ¸ÃôèÖ XZQª9jn7W³Œâ™ó}Nœ¸îÓü¤�~ËŽ ô0q0Gjg À”ûD2™¥¢¬£7ÔÉ­dv"ãa‘Ü#|PïåÀk0¥ÂåmœÙ‘x‰Þ••wšà>h&¤�Ò§î4ÒìË XZiOm…•ÃÞ“™Ü°ÙÈ•´Vc“¼yÏz æDµb¹½g{Ž“L†A’á¯{E£�à�Ê&Ÿ‚û�ö¬²üpà†â‚ÍXP0öÔ^.?Ú5rm?ŠÅwœ*–%ï0»\`GFvlÝÜçºvä%óÊöÔ‰Ó(Q·sSY XZôÔŸ´¦A–EÖºYy CÞ¢TC­n\žTæ¶â…–ÄIô€Š_tKáLP:Ú1ï/ìãèAd¥�†TNûÕ8ZÈЊùí–I' `ˆ—`Ž_^bŽ’—]Ô< žî¿À$(S¼\öÍájA¼®´³–1ý¡Õ]`RQ{|¼d£Û~t eÝ\V£ãûs[yèÔz®ZÍr„‡Èë_ß<ûŸZendstream endobj 81 0 obj <>stream XZhÞ2²°T0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@Á�#   HÈ6²Í l3 ÛÊ6W0¶4€j (ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 82 0 obj <> endobj 83 0 obj <>stream XZhÞ”YÛ’ÛÆ}çWÌ#�,g1À Z�(žx†šàÙ$²Z$�"ŤLÈÔzá·LhŽ!üìCÄq øD¸…„Sx%e,=i܆kSÃ)ºLFOÄ}ö„(õ!X,CaíQTë'ûÌcàGJ*/ðC™ XZü¹”¸6*á&2J)áL �‰Ñ(ñT¹Á†²c”NNŒr°A¹63åcÀF�áEc ÒQ£îz8�Á_Cæ‹$NéÝ( Ò¦NqÖåûiï%~vÏ~¾²û´‘Šgœ¸@{–]Ñrƒwg©€¥)†™+!ÌßüÛBa@üº’A0Kbž~Shy¶õr·)}ƒûÁ\WDÏL%Î�ݳ\D¹ XZo¬×¦¿!Ï”�تQcßÕèÐ5º˜aûSfÿT٠ŵ=ã´�Û…š •"—7Yà5¯šÍYŽD7®Åehm­Ã-Ó;Ò¾ÃÄô`ž›�½>ÏÃ8Rº#Q•¥œ.Éé ÙN»þ•y2\]f2“ÄŸ¼{­—fänÇåEg¶3Œœfcá˜Å‰œ•Á¯O†aÉq2´­‡ýí×ý…ú³Jï]Žf XZ1b1Û4F°¬(ìxh6øëe1ßy í`ìQù㮲­�IQ*1ô�J ˜82ßëÜ®f…i#f/Ö…k!*®Šgx™¾c&Rë¦Õ-¦‘~èPŽÜ¢rM© J�=oz3ö»= XZD} !¾ÇDÔ�Zã�C9ìÙ¿Þ¤Á_)Ï®g’n_Þ7´?¦Xn\qÀØ•\%÷"”Fç�œŽzÀ‰—“¶ÈÕ‡ÛcE"P÷ÝïØ8Ûu_<�1ÙÒÔnü„aCçgãúxkJæ©{wš4�]Ør¸¸/‘ {l?d¹úiM7œ øRkº1HSo ݤðÕj5]ì^>ÙšG‚Ñ…Ç8ßB3¯Õ½Q�½^=íóŒ”j}ŸÊé…—³Ü¥-ä9!Ñ(½w;¢É>£_*Ú ÇÛ XZ€"“ëdùèYr¯(ËLI$rÙAõšÁàû†ìqM¥ˆÚ+%º6²‰3É̾=v-Ås[6YWŽCnÊ•¼Jбä_|C6j¤fÁn9P�1³Š.0�Åj XZ:QøÚ ì0qt¾Kð†™"'|¶/ïßÔqô¥íÜI£øÞë¸DL×}›¹»|v°“žILôI|wÓd"gŒz¬›ÁÐ'ájî¾vpœì@¬9Ä1êV]5ÍŽJilg=H'ò•AÎ9Ú€~HŸ.çÛN ˆþ6Ë?¨Îúîe”mýÀÛ�.9=‹ j÷ÞŽ:ë®*Õ% XZáÚËU4‹x“]kF‚®œãfs˜d¥l¶[€kŸ±¥gÇíÞ¢*þU�_?Ï“q�½ôÛkË0Õ‰d<à¹)´î"ËWl>¶Ž¤VøÑ]ø>stream XZhÞ2²4P0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@Á�#   HÈ6²Í l3 ÛÊ6W0›ÒP”ŸœZ­à⦒ZQkg`Zendstream endobj 85 0 obj <> endobj 86 0 obj <>stream XZhÞœYÛ’ÛÆ}߯˜²^ÀÔrƒ;œ'K«8vÊŠS¢S.kýZ? SBÎ|éð$]üÍAüðê›É…Öá|nÚ^te5œú¬ÖÍЉ,Ïu׉CÛT~ÒyzÜæM]ã�.Ä$S4(Æ™™²Ä‘®9ékN"OΞ4&Ñ‘ËDU2㳉z™hs697ºÏoúþ±»|Ø—~¤ì‘;gõ4å¶ùéãá®Yî�Þmî6¢ºé&tQÂ|ÉÖ…2Òhá_妩±Ý&v�ÉE³ÛÞ—™¸ý …jÓía£\'ƒŸEÖ²ç6�‹ÚP¡£k*lÀࣨ³J«œò©¼(Zæ XZ츽½4Ä“i…Ü ÝlùÜÞRð3Q ¢«ìÄöø¾ ÓhŽ˜tý 2öÔCµ×-©w�œKq$ÛÄ�ó¬lZaë ÌõúöÃxÎ>†ŽÜlCŸ¾ÚáQZí% W^_'�ãBJ|êÅ�׸ý{�àó|Ì€^e.òcÖfHŽ–J®i ju}cÊÇ“^.z�1‹TìÏFÝÑ*ßòŒR�­¿"$Š%P}¨Ë^\„ÐwQšýþ£Íƒòg`4?nKÔWÒWnô)hú¨RIGëú%Ó�§PÓÕ‰o ×'QÍf"WÍ ¤ ¼UÖy«³Ž¶Ö�ˆcük½ÈXëÉÝÎhÈ�©ÓcÜö,<Ò1o‹l ‰ª2‹¼y¯E`OƒZËXí£ �£+'ž;Êû;ä· žŽ=å * ™ XZ3sÑ7Íápúõö'œŽ|rŸ÷UDr§'™&‘}äŒ9o‡åõÀo߉~ב ¯@ºO9Ò¼‹C´Trëô ½NÇÝùÀÚï).�|rD…šOÒp‘ ½@¹„šXVZ /¥XпÛ\Ûzûƒ±Úvá=‘”U•½%t×Tè„�Áúæ?KhI5%$‘Ÿ“ÞÚ™“G®F«7Y�VŽr`‘ œ¹®aC£o©¾²e&¸– XZ�Õ†À7`¦Ûn!cvÅÎräl"[sñ¬BãÊÔSáÓ?£ x<%Œ7'Œ  ¬³Ÿ\þ[1Oã­-öØyILŠR—Îá†U9n•�ñ1ŸO XZi°Pjß6&lµÇC3Z¤Jã§âï$@i™7U¥i=CeÓ )¬ ô2ñÛ³ËÎ0ôÄ›sÀ¾˜ø'rÇwÓ`‰iÊ›g XZòQ¯mèJœ¿Ñ] ’ƒ™}cXêØ�ØÉf\‚ ÖFG2HUúTÜSK£aé—ë&pçDЪ+éÏxRQŸ XZ�ŽÔïÛ¬2ÉXbî±VÇÔ�Òň�‰ƒ5‚; -лí‡3¯CtËâFwÏK†ÓÀ¿€†¶¿ƒÔ›†…Q^9O&vý²§æZÅÐãÝ€K#i¢b`èÐ]ÏPŒQ(ã;ƬF²ËÝXÞè?~(3󯺉«r֥㺀ŸøâfèÚ›S¹7Ál*¿¹×4InpÖéúüÕu¿ ¦ìúÎû“‰çÑàNaLSQè9ÏÌw¯ûÅø°ø@ÛžŽ^p­Ÿ:{t4–*|!rrmv!‰¤Þ½ìÛe[`çfêD£â‚ð·ÒN éó¾,LZ}Æv¤ú`ÃÔé¬Í�#³[§FÄðÓ+ÚO¬L–jpY²,t‰¿¢‚L~E”¿æ6̨/;(¦È0üCn3B Ò“6:cÙ`liHŒ�)ÝË®/sj.ÝZÔ§<>stream XZhÞ,̽ XZ€ †á[9wà/¦ N¥«¤[4D¸&ļüNàöð~ðI'€ƒ÷l˜ XZ^ØÈ©PVÒ°‡Àb�b­’¢þ#Y“Í´!Ûé”ãÓ”6ó$¿ý. –×Èjx†ð 0Zendstream endobj 88 0 obj <> endobj 89 0 obj <>stream XZhÞœYÙ’ÛÆ}Ÿ¯èR^@×°KcS¥â[УĖ]%&©D㇢9„ �é¿°?0ß’s{ÁÂɬØešC¢»ïrî¹ç6o¾y°‡îê«ÍÕÍf“°€mvW�Ïè_ü/ Y*Û®|ö€ÿ6[zy¼zïuªŽ<äAÀÖ,òWë qཀྵ»^VUY?0Yìû£jeOÑ“_½{Åššõ{Å~xõÃ:V?nþzñ„­éeóꊹ0û÷ýé賺©ÕjljW«þqø^Ó~`8,ÌrïÎ{Ûôø:Œ}�ö\a±·k†¶ß3½3á í€÷ßÕæ§™Ëg˜¯=U¬ìptÏj¥ XZU°½j¿[ÑŠu�ñHäl ŒÅ~šY“ÿ¹WƹîÔõê@›´C]“÷‡¡êËõЩv%|ïzµŽÂŒ ‘b½je-«KeÏd«XUb=Œ¨Ù�ê·7EÇdç\ XZ�ÅQÄE&sŸšzéTÀ£ Ùó��ydíÜËUè{WAì)z!›Ë–Ñ[$NésÖQÊ£8e뀇&1‰Ír²PÕò¾R_­“DðÐ{³»fÅÐ’«uÓdÅ“ù¦î®YÙS, XZÕ•-ÜêV”­grôžÑÉ×ìÔ l+k¦ XZ¬Ñ9]æQ<ƒä²DVJgL„TšŒ®¼÷¦¨Â–í^ÖJæŒùmÇ^g€8÷=x~ *óc{R³Û�G^8+=ªƒž Ñ)¼“ŒÎެ+ÈoX€/íjaW N›åe]öç›Ç™Íªwl›­êãû+Äß>j­\G>ϳ€|Ïôó8‹Vê\øP‹öËøÉ9ôý,ýÓY gDÀéˆçy6/�(µ�Û¬Rß�NîÊCYɶ:±ûNä„NáH’ þˆ§Q|FtYïÚæ° ¶~¶(¢grGÎUà`±>à~»/Ÿ©?‰sCÍ‘ &|‚G¹˜€jìq²Ä3I?‘h4™ëÍCû±Í�0L«9ÔPO¹ƒ=ÝQmK9BÁ†< £ î6F}£ê‘ñ-!´¤zD,ÝÈ cé|ççœI¢(ž¶�õs}[*SÀ­’=q‰­¶kZPh;±GÂuÕP¨ª[›XDØ­m"7?Ëm[“ÄÍœÆUÛbCl¡aé¹ón†®½éîËúâëân¥{^ßžh‡V�ë¯0µ XZcK¼xŸ ½ºÖèÞ|A�$6F´ê*í]è¾'[ÓHp6™¸Ü �ÚlÖ�‘ã4æ�÷�y°cÍ› ]Óšîb…§AÕÙ–¼mêõdK˜™0wM^î÷Íð°g žk™Üj^gybÍv;´ ö£ô´×@yægñ…r‡? ¦‡ •;²Z¿G‡¯§æhbÏqàÎT—ˆxu?·­kÂ:5šN�f  –1YShOÔry*”=kÕ@H*¾D´}zà‘$ûÒZ`áãГõtÞMaZYëøØ4 L�Ù‚ Ý5×.h´’ýºJ…÷ëcY<¨¾û�þø�Ø1å1Ý£ü¤¶½½�Ò Ñ`öi‹šßuÌágÑ¥÷Süü2!ŽvƲyýò¬p@À¾ˆ§[…x&¹%Ri`@/¨Û–®E}Ï^_­£Œ‡yt^ ÇrûaÖ“Ø»¦pZÛÈGݢ늘¢s»}y$}‚ìg†… J µ£‰TÖ˜q Ee«uÉf3eu„Ö^‚ öCÓj*¯=SÐ(Üf6mY.Ÿ !,h-[ž;ɧJÃøiP½kUá ¶Ó’Ð|s/ÛZ¯<Í¿·†\8]Õtç '5«üôõîìº@„†öÊ×ê} ‡çÏØ z<­û¶©˜‘%N³´$@Cžx“Ôœ®†©,u,(^˜›æ¦}a2ù‰põÍd¬Ÿ[Ñ2—ß{Iúôs‘¤ïûQ¨~Ûíára¶Dâ[TÂ}Óôsɬ»§¹ûd½ì>t×g­ìÌ¿3–wκ.¦çw{žEÔ®q^`gAàì+…¢Q/§Ÿ]ܵ°Ûöå/ã—æwL7¹ÞíÓŽþBn—½_®£À]O1²"n¾)Ìð™Öæ ½ñâ_W D±¾á³^}n¤ {’,½t¤H"'؆ÎÖôòR£!þ™o÷±<>>£ð#ÅAt¶ñ{šs©tˆCõ ’`–²þº1½kœf9Ÿ0ž&YvÁák�~-Äì7ß·÷fÖZÿ‚. XZ&�3Î?È ›Ñϵ[)+{…?WM�—OEQß'»6¢0… å˜ï�Ä ›å¾�µp­C?Lô¢×›«ÿ 0Zendstream endobj 90 0 obj <>stream XZhÞ2²4R0P°±Ñw­(q.I,I²Ýƒ Œ-@Avvúnùy%@Á�#   HÈ6²Í lScSc(Û (ne›+[@ (ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 91 0 obj <> endobj 92 0 obj <>stream XZhÞ”YÝnÜÆ¾×SÌ%·ÐRþ3½²##p»i½*Z(AÁ%gW´¹œ-‡´¢H® ¯×géwæ‡Ë¥dÉ…aJ"‡gÎïw¾3¼úîg{uñzsqµÙ¤Œ³ÍþáG²,ŽÙæp°=þo*ºÜ_Üzo;5”mÛt{Vv5ûËQôå@…>ç¯?\3Ù±áN°¯\s¾Zó,ÌcïƒÆ£OKØšE|õóæ{\G~Ê6×�ZÝ•Ý^è�¥R÷+x²¯“;&q·g£½òõ‹P84 XZCDèÇFDì'>[­Ã$ ÝH%óÇxÔbeÓ2õ qpB¬Õ¡Ÿ°5÷«Êæ|1«d§5hUHÐN¶­\…‰wOVWòp€Ô7Z(÷ùL£«mÓ]iQ«uå‰'ÛÚèvuÙ×f£c/÷}y¸tzÅV¯À�Âñ€0¢híjóq¦yä‡a˜Ú?yü§=_‡‘Ÿ$<%£B«É¨ú«±Ú:m¢ŒÞÍ·¯�6gJ°Z¨ªo¶¢fM·Ô®ÊœF�Õá~ÇO¨ƒÈ„ÑIî§id’Ië¥ÈMJtµÖC‹ÕjõrÔ‰µâXïYý´F›?!hE‘Î…¥l¯ôM-"Äj¯nzQ ²pBb? XZ+D ÕUÙ6¥j&a'{�‹ˆ•–ã¯épû€¬—�“ÌT!s:¡3D¿j…¢¢4õlÂñƒd½Ø®BdiÓÖ o–ý[lZ—C¹…·×,œÛfGûìVë8 XZsÈN�‹[fúyÄm`þ{4¤Š Y¥Mb¢+·­èÕÁã‘åÙ,va23µEž¬xâýBQ]Á8U3ÿ½ ŒvÛËÕ¥8ÈÎ*û1)ú™.X?(xlTzGæ7 XZ@tÚö�!©�Rˆ»hÈSŸµ¢«ÀCZ{‘ë<÷Ó¼Èæz>Ÿñ3Etî;h¸d÷wMuGF›nP`¬d»^vÃYÏ�¢n½?Õ.�âhr¸ð03R5Š ¥Ê=|É4lGw D±êì•A.Ë9öƒÄ©oLte¸Ä™,Ë&3y˜;3s˜‰le¶T}à…Wc¨+ß²Ý˾îÖÀ áÙ�·)5’ÊŸ:®­¨Ñ,ævb°-áëʃZ˜jc‹ö/䍨x¸ EN?õ^íP�‰®<åèKý¸¥h¸Lõƒ<±NÖ¯-Þy°øÉžƒl ›�±º@±ùW%餅!ƒyª±ïŒè³ÔÍý"LÓÿOð-E_ó@ˆ—ìκY#:.Ôa¯QjD:–ì÷U{¿/QÙÉ]Û¦MM”çh¢ç´p�ö€Íg4êá’ù‡imÞMÂj¿ß•Z¢5Qß/LQÈ£À²s¢ˆ©"w ï¥~æg3ŽÕñÜE¡ñø”£�eD“ÝHQ7~ÈJâ°(+<9ßZ{Gvøß7{�m"‰gεíbW< ›… XZ�àQxõ÷ß4dÚ:»—I«’i¼…„ܸ÷?Ö±ãñ(ûAó&Z½Mç2¨©É1i ·CÙtú^W© è‰%¡GW�Ð=UE¼ˆ�»K±!dƒenGi��å‚_¶ÉQ:{k;}‚–`![�·vd;`¤)m Ì¡·ãÚT½›»†æ &l>ž)l�~JnÙ"1wÌŒP¦¦?7Ö�v…Ä{K�ðÄ�wdñet yœ9²aõóô%*jL2¦'K4¬æ@å[Âb5ˆ£®ÌFþ ™}3©f~JÇ3'T &Ó}ߢ*³ó ù=ónÞ¿ýÒ½ºk:aÉcùؼ"|;à (œuAj©Ô|B²}b†Ðd ªz©A’Ò›Ÿ¦Z@(šú…F®µ�ï@ ¼X"'ÍaÕ Ü °‡{Ïmrú•°pFî·ðûV×-Z„4;¶•šaSÕ<-�}™ ãÂOâ?M¶àÖû+:l‘Zendstream endobj 93 0 obj <>stream XZhÞ2²4V0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@Á�#   HÈ6²Í l3 ÛÊ6W0¶4€j (ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 94 0 obj <> endobj 95 0 obj <>stream XZhÞ¼YÝrÛ¸¾÷S`öŠêX0‚¹Ë&ÎN:ÙÍ6Öθ“ô¦`‹�D*$µ^?Æöû,ýZnëÆTî`ÂEÔŸtZ�IžE‘ÿüÓÌB—!ÏóäIèKó½ ;Iÿ#è8ª£ Z×w¬-à6E­i[;‡úÐÎ@£˜§ 5j�û…ñZ}Sï:Ëx_vfgœ-,ãI®¬/ø¬Ülë¦ÓU7a¼˜çJ=Çx –l=!µ¬¬Ø…é XZÇ¡º1/\Ôò|+Ôé\¼›/�óUAP!Œ#k§ ³,õÚ4î’•n–óû²1K–7Î@áQO.€Z)â™Ìž ìÂ……¤x”©=$—Ž­ïÊ¢“º¹Hâ=«?ÁU „º« ˜m©¡JÕ—Õ(Î÷—Íy†‚šP}‚Žg⼬ ˜É¾ºPà"Øm‰ìÜéæFß™#ÂOyœª½_ŠSXŸR»ÝÖ@‹´Ök†6åÕuy3 dêi¾tSR?ÙFû49n…ZÓ8úk<̓²â!ÏܯJê_@r·m �Q°ê²jíG· }—%ôù€ 'aCæ—'óá,UtuSšÖ1 jP&²! Ú "\Α¯8Â:V! XZ‰Ö·� ôž^ÏÙŸ³T¾â³4 þE?Û—#°1Et XZXß1�“|êǶ×[¤âǰ-u§{`¯‡ÀÂàü8÷Bu:,�Ñ Õ9†uý,o²ã¸é±^?ƒ5çJ&§ƒÍyžÉ)G M8f‰”+‘ö!¾Ñ\¡¨õ(’¾ XZÇyÜÛkÉHÁu]èõcv$ |aò-†�RõÝu!©QìƒýH§ëgt²óGöß*¥òé _¨·ø™³Gj¦ðD€‚ † ™ ‰3öS‡�=PèöóôÛšl<“ÆÑ É±8L*ÌïÞÿd+#šûɰEÕɳ XZºï‘gaâøDš~´íFnÀ+¸ë1ðW¿þÿöô¸ Ÿ4þz‡Nå4žÚ¥óÌEÑb–Q{…J»ˆ˜Ô<N–ÏÍ1²?‚Ã^0*ÝC½kü,rÎ »éØÍêß1j«šm"µ>Œˆêž/'×cp £,{€È÷R·T@7Ucb›†•à XZÑMxi÷)Ö.ÆÒT¶¾Þê¶½§uHÝ,§ù {$鳤'†¾!…3ˆÐ5ImMÇv[R�OJ# Þ!´õ]oÑeaò¢ß÷mÀ <ÛN™mhØO/ûe�≌’©B~JƒòpZM3ÜêÍvmÎÙæ�ùQñh SIzÊ"êןá•zcºå̺üL9‡‰žDö´NyÈ3ZÕ~ ¬¢ÙËŠÐøêùr¦ÂàÕoLÈ0d)ü óÔéðÃìþ4ôR0²÷üò=�^ÌrÌí‡öwæz9{Ë€^°ëëëÉBZÄl9úÅHIû›ÞsÐÇ­l¢ýÂfR#1V¤Ï²¦íŽ”‰TÏÓ/ÌãrÔ@ÑÒÍLvÆ®o}ÝqdÑäÁ’2ËRdk× XZö¶vÅAÙ ’1K÷"ë¸0D(ûY�H!Ÿ…gçýùXÏy„6Dfâtžˆ¥§N»íñ ”(DÇfZZ-ÍFÌ}ü‡Ÿ·ì[¶ÆZendstream endobj 96 0 obj <>stream XZhÞ2²4Q0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@Á�  HÈ6²- lscK¨â€¢üäàÔ’hýZendstream endobj 97 0 obj <> endobj 98 0 obj <>stream XZhÞœ”KnÛ0†÷:Å,©…h‘"õ@V \)Ð6€••Ó…,1ŠZI4H©��‘°géP’ÛÝ…¡—ù˜ïÿ‡3«Ïµõnro•ç10È=‚ûá#á�yç…Pã•—îöìmÉmo‡¢m›¾†¢¯àû^™bp_œ2v³YƒîaxRp·¾ ó–ðT��Æ=uS €(òä_“ä·»)ûàCWôîýàq’PIl‡²`"Ã8ɇQ.Òl49@þœ“P)/9HëfªÆ¨rЦÁ¿Æ¾R¦Gª'·EÀSš0‰†`Œi=Ç�ÜòÕhÍÊîµnWN9…�îÔÐtêèÑǺ >Ɔñl‘c+Œ‚V=Q«U]9X«¦‘NÛTa›öZendstream endobj 99 0 obj <>stream XZhÞ2²4U0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@Á�  HÈ6²- lscK¨â€¢üäàÔ’hýZendstream endobj 100 0 obj <> endobj 101 0 obj <>stream XZhÞ”YÉrÛH½ë+êLˆ XZ;zN²¥éV·-ÓV@Z²Èè5‘½µp‹ì: Ú)©¸8QÜ÷ø¡ÈtI›¶Å±uºx¶—Òþ XZ!¿_2`°¤¬ša_Ò XZ±,ÙwŒ�]<[6iR†XRS²Àì'Åv�õd‰$ËZOjtv"BÅž”Ùœ+Ø ÈàÑîDy¹¦–ïòOCÑš<2°‹,‚ïáÔT+&8i. ¬ˆgyä<É# ¯¬.Hobéݱõ‘ºøDzE"¹\; XZ•u–š‹H„ >ŸÔ+ XZÝðÿÈîiÉÒ‹GEfw,‡lV¾S*Ï‘3s…"Ë âç(è‰%µÚŽ XZg³£=,?.”ï…S Ê˘I†0Š$~ìI“#ˆ†i�gÖIGY„ØéqûêÍ›å¨ÈÂwB$ÿÁ*».²f� ©9Z´ Ê ª XZR$e:GÏØçÀ^îM¥ÃÇò¹åFÑdÕ(߈ᡭ%èD¥5¦�§-&ò±›4”]³‘|‰(.ºÝ:I?*€õQ>wbÏ�ä–¥òFëØö…p´Œh .%÷fb³¥*$h¹ª&äȳUÉnGŠèæÍ‹kôrãh†8§ëˆkÚO¤„™Ñ…dÞ£ØãŒ9Îs6<¬ôŸ[Ã|;ë©6”o°šjͺ›-Ze�½¢%`ÊÃТ#ê,`õ�Pßþ Œ-#'´Bð‰yuëy§H�§!b)ÛÖŠ‚IV×£~òµ�;º±iJEzÅĦ,ÐöÈDcX&ðã¶@¯{„Cª%œå­¤�$Gf"À{¿®¸Oô”¦ ¶-tTYÖ‰[áj˜3R)þzñ?Ÿqö+œñ'ƒ´GšI¾fþ€O2Ü(ØÙ'Æå°·"T5æD>¨K+q¹B¡…2ÞåÙÝÙ[ÏÆ›x„9a ç›>ºaUQÿ¯®_Jã]]¿¿5]߸¼¸º~õ^ Fä ‰ vwbCÇ«PÜ}÷Áøt$ê­õ#Ã~êáC?ˆ}c"åÕÛËÅ﯑iòëŠpä|zs‰¤Eª© æ¢?]IR#;@D!xKùl ÒÂn(ƒ%W-€e"_9:eî˦š òÇ|�� {Åœ¨UOcÙZ? �Ëé ¿œ+ËŽêX÷õ üçÏ$Ð ]ƒP%o”<ü V¹`+S�hÛ�t·fï(Ôo¦â&Ò’4%qÜãÆ«_.®~¡YºÔ/B¿y½¼XÞÝžz.æ㡪6®â–c;#�\MZ&â6-ŒcùÎECÿ_æ"DØ\‚] Ô[ŸC¶À˜} l§QÒcœVé4AtšŠàUÂs¬aøJ/£5Çžf‘bI­6Nwð¨¤3þ¤¡͓ۜ³üÀU>>n‘zê…… O5Ë«¡LzQWrÕ’Žèv9ö¬Š‡- rYECV™pà�еª´“š„*âõè«4ÎØ2a=»„‘äM&�I%Õ ^FCÏNÏï)WÄ ŸX/t¾7²A¾ÆZendstream endobXj 102 0 obj <>stream XZhÞ,ÌA XZ€ …á«Ì 4SW¥[IwÑ"ÂmBÌ¢ã7Áì>þOy B당â‰�œëÚ)¶E7RlMQ4$²e[²cÏ ½d;ÐÆòIyÆU;î¢,I´þâã'ÀZendstream endobj 103 0 obj <> endobj 104 0 obj <>stream XZhÞœYÛrÛ8}÷W ²/TÊ‚ ðª­Ú‡IâšÉÔ¬ã-ë%OmQ$d1¦H… íÕÌÌî·lw HIq<[“‘m’ úrúôièêç;ÁôÅ»åÅÕr3Á–ë á3ü~$’%aÈ–Û Ÿ=ÀÿË?ž/¾xkÝeUUÖ,« öi§Ú¬Ã¿$âÝÝÖÔ¬Û(vûáv.Äl.™†Þ�êúÇGØœÑì÷寸¯4ûJ±yÀc¶üZÎ>®Ù¾éÙ&›Iß{B7ÉWÑ�¼~÷Ðf8ºn›-˘ÞëNmÙ®-›–u »ý-òýK|AkCTjJh­ºç™ð½¦}dèˆõÓz$<ŒÅ(2ß÷ÍètŒ,.«Š Rî‹dä¡�©ñp¥ÀF¥Uk*(‡èfžÕL?–»3)×*Ç×kÎ~1)©6"¾×"°.ñBú\xÏ›² 4݆5U1×ÝþÄ�,ì•Q(( Ë·hi`sѼ™ÎÛr×lé~·kÚÎàˆxÝw=ÜÚe]¾aÕÈ´JS@XU>â.ªÚÃ*øØµ Þ* ÅòMV?Z“½Ët™Ïæ2ò½qâgxa”ýÔ¼eÁSœK¾< fLÊó„§ !;ŠMâýÄXC†üZùʸ¹=†¸u™~ÔŽE:ÕnË:«Ø½×*ø\¢¶}•âïgœ-7¥¦ú–>_9ŽG’zoÏjààüÑa: {Þ¨ÚöËTüéàâ&+�´jJ“ÛŠM££ºR¿„Õ%”Ö莩¢Ä'§jä%®Š… µ ¶*) `Óª�k±ÆÛ¾®�:_æl.�R2†¥Û‚5D©±T4—‹hÈÊ ˆŒqñ²M\ozeÞ‹ÁÊŠ'd€¬ÎUq¦B„X-~ÔiFU¡ÞiD§Ã†”•Æ[ âµjgQäñ£Ö=GP-¢�T ›Î •\×Ù XZµÂ ±8ý°¢j_¾¿½úxËNyF XZÈäÈ ù‚eÍÚ™HÏ÷æ¹Xð ¬ã]JÈá)Nxì‡Á€L+™/é ú¡JHB÷(†a›æ7q:ml–ý�$š§`D2„ÜkóŸÔºä‰¯J¿*þ�B÷�›íßÓf¦Òo>au~¾¾3;\&‡nýÅÛ4º«³­ÂWÈE"Ž^KIWJ—°ÃǯŠf›Ašp°‡ëyfÝv¿+v|¤Ô xÛû™kp¬¢ZAZBÓô²=í iwäòhÏB­Í“}Õ±“å³9,Ø»•Ssð�‘=cÕ´©Ú5œå”¬ ñw|Ƽ4ë7Á0R,e®ˆô�Ü’Š\aéÝýÅ".lÒZÐzŒ·»fªº+˜š¸¨Ho[¬8m+B«) •„ñvÌQÛ–¸Ó×å7hñg"s‰A¤)…î8Áa%%:„ž˜�ˆnYXÚÑ*�jeVi¬÷‘54‰œ%;È(V:dq ÆæfðèQ"?ÁpÚª­�ˆ»2et“)Þ‡_ÞßbAtMÞT àT#˜*@v�³9ðKÖw Â+§«Æò‘¹Šà³›á§�€Ñò0Ú@aF†D�–™íI›cðZõ­‡þ¤ÑF@Ž[�Û¯Îèh%2yÕ¯°³×=šþá‚ÈX€,7&œªî°–(JQ‘ò8ޤ*’cUñRϯÔd°Ô äÿ¡/ ”’§ò.†1_žŸaj¼¶*{�-4/’™Øë5;ÒsBðE½npäÕ Þ|ŽŒ:©+zÇwU\(^7%ž‘r©»upfº:„QAº¡A8~'4í*è²dP…Ô<•roþÆ>¨cµò(‰^9˜¹½é£mbÓ�†8ô>_ßš_]MÓ‰†Ñ[È"–bäøè%5á4³ ,Á_€ÃÇmå~öcÆ`úŠnDg÷Ü NÛÒI‡5G© øBÊðµ[ÃêÒ ð“d<Óä¯Ò…NÞßÏ.ÍI L"£p®%‚è’iÄtÎ¥9uê‘#­ö53™‰Ñ%°í0û Ø[hbjôRlŸŽª'k1Ä$z…邚Ôïq‹©•åˆ#¤‡X—¯)|½!}u>stream XZhÞ,̽ XZ€ †á[9w ©øâTºJºEC„kBœÁËïnïŸp8x϶�©à…�œÊÒ XZöXìR¬UPT$+²žÖd;m@:>mA*=OòÛïÒð`y�¬¶�gŸZendstream endobj 106 0 obj <> endobj 107 0 obj <>stream XZhÞ”YÛrÛÈ}×WL1/@Jcp%öÍŽä�·|QVL%[Ò>€àˆ„ \ hEù€Ý÷ýÀ|KNÏ neÉå2%ÀLO÷éÓ§¯~¼l£ÎÞ,Ï^-—1lyw&‰Cì=jt“-…µ0dT7kÙŒ³˜.ï÷2kìG±  Îï úTT“.ªIøœ‡à>Í…y�‚<}¾q?2. ´œádÆÎæ~[¯™K¿aBƲ,m~A¿ äó¼»uî·²"Xƒüry}ëZìÃ5x•ܵjêl�gJ“0 Æo XZÏ›­æ‘sv@bá§ &“`ŠŠ¡ORb6‚n“mð U�²Þläzß`xˆŒÁîm¡º"RÖùQêfHZIÀR¬‘¹,(Þ_ÉLº]í³6ëHÕ&±T~×Ô»mÁÙ¿ÈCÆm…ê˜áüLüQ[øã £ÇnqëN‘ óÓ%ð€½j×HTÑ]mŒgO,OaØ¥œÔÑŽy½ÛaE¥N‡eÉ ‚p’À–%¤á¾Di·1Ú]ÝìtÖëºÔŸ¸ªÛÉ©ÁG“Mô �Ü×M‹hö…ÑwÆ+–Ðã^Œ–}ëÚä/P¬ÍFIR‡i¶©�«lWp'�^û©ª‘Ü–æRZÀQ}éÔb"ì:€A—“ÿ XZ£$OH�”Á Oo'½¡ÅZ1ïì/ìBO¢Òp¿èÀ¿ç ƒðpaeA%GNÛ  t}D�QŠÏìá•{§˜o�ƒ™U±µÜº3ÎÞ_ô¤äÒ4QGùÝÅZÛôO½¤ž£m‡SÆÄœ“ºEŸPº-9ÒÂþ¹É޾÷ªF;€Y›­tëÈŸÌèDë¬ïs†@Ò«à5ˆBà5›ösjŸåvFÓR¿ôù  Eë£(ÐÌ÷¶é+û¬i-É?=Q»"Ú«á�È-¨ò,i\`Å+=®Û:¯Kô/VÊ‹mAÁÚÔ*ÑZ+uá±ôÍ¡€€'"Mª¸½«ZÙ Ý×"ÂZû°Xë^넾Ú›í|ßȼPFÚÃ@àĨ ºš XZ»¯2eÞxüøaé&¡ÃÿÞš #½°ëû/»ßq(Â_éZendstream endobj 108 0 obj <>stream XZhÞ,ÌA XZ€ …á«Ì 4SW¥[IwÑ"ÂmBÌ¢ã7Áì>þOyB당â‰�œëÚ)¶E7RlMQ4$²e[²cÏ ½d;ÐÆòIyÆU;î¢,I´þâã'ÀZendstream endobj 109 0 obj <> endobj 110 0 obj <>stream XZhÞœYÙrãÆ}çWt)/`Jl¡±Ó/©xfì’S–• +)—äl’˜ÁfZ‡?8â4ì@øjZD ðÌë=²Ðˆrѳ}ÞÒ.ÏØêÍýÍí=¥¾"/õÚþ ’Q7ä¶" XZá£Þ’GQð*lX‹LDÓõ:×3¢Z”kÇ5TQòÞ)ÇÀ‰üEÙFùò¬SÖøL{D¼óœŠ ç×}ú‘bfyxŽðéoáL=:0±AG–j j`^d¦À~ZËb—èïZí£¬X- |TÙ©ÆÎ>V'w 2?L…>(êm^u†KøGZkJ/ φúEøúŸÏ°£†‚w+\úõL°o°âã¾Çžéiê[öðV®ñ›œÍ~dB¿Y±Øã®ÏD²^YVªOËYL´VÌÞÏþNO]‰ú4¡ç-/ɳö�èùy¾ˆA\T¾}›?ó¨g†»Õ½Y¨]æÐ&¨'PÅð²qÕ)q<1>…©ÝCÀ\ÑÄï{ÎW96 v]¡Q¢y³«ã£Ó• XZ» V]¨¯*ÿË@�E^iEtyŒÅžïŸÑ½]¡¶6§á‹(ù,…ØkIÐ\+•pÕH˜ˆ>?z%+eZé!Œ‰ò)í>Rl9’€´Â‡Ð[޳ŒF¾ŠÈ5—ìOç’V”UÓéêhüéöMS†KçœÆõºZ_Ž³Í ¶œ*7LzË ‚…• �ƨ˜�lu�hR>$ÒšýS�!Z=±Y`�}•™ü(í›ARÑêÙ{¢]32J»mÝkަy¥¦ï:QNÃÍvo^õ(MXJñÉZ¢¼ÈÇã°™o¹å ´X'Ü>wý¢«à=qƒmIÂÕýÅqâl¾9ä­Ìd~�CçÆiéø]chž^}E8Žë®˜lÛš@Óu4„ê7@3s%‰CñÚ¥m¹¸P9®iD]§†{p|^­óL�S_öerpeêÜ¥—u…¥^n¤á$|nd û›Žß•æô+S#ê¶FÑs¢m$F�Ô[ªëuŽ˜õ€«RXn/æìû¹ †±'>¥OX»¨(õP]õ XZ{cá‚áE‰Ž‹”¹Km+œ…"Á´Oú•æ«TXd8½íjP1£„æšé'SWÆæç¼ßQ¬ò §Äl÷EÚª¥4©È÷ô®A%x®|,œ�nÿèˆÇùéÓ7&ËG®�§™ÈáúIéUóŒóè䓹<Ô±ªœý:�ç×ç�”Å'úöÑÆ?di XZ57äM½SõL'©aŒ)¶ ’ >stream XZhÞ,ÌA XZ€ …á«Ì 4SW¥[IwÑ"ÂmBÌ¢ã7Áì>þOyB당â‰�œëÚ)¶E7RlMQ4$²e[²cÏ ½d;ÐÆòIyÆU;î¢,I´þâã'ÀZendstream endobj 112 0 obj <> endobj 113 0 obj <>stream XZhÞ´YËrÜ6Ý÷W`IN©!¾ÙÅq’r*q<¥ž•”JA$¤fÌ&;éŽ~`öñÎüÊœ €l’²S©”Ë-·÷qî¹ç—ß_ùì^mÞì6—»]Â|¶»Ûø£?ø‘,�"¶;lN›kGÉ~8ò€û>Û²0s·~žó®Q½¨ëª¹g¢)ÙÏGÙ‰ž¾ÑÊ7WoYÛ°~/Ù‡·¶¾ïþ²û�Π̹Û†0a#§Ôùì¹ ½Ó»¦—•_)ä¡m¾�kÄ&òGŽ_¯¿XVLΓ8 MšM+*Ö%,@h_ã$ZvæÑXYY˜M1�B€Ò@$âYŠ m(¯ß ¢Ñ¿ÔS `" &zh"¨ˆ#âì*Ø ƒcÁ„Ï÷-zO{ÙHâ%³±ë9ºf‚…Žÿa-¡2íd!«óò’£eQ~'u¡×ëö±N|‚ÒËÿb¦â Qƒø¾©+A@/J·5~ÕÊlŠr#ä£Éhj«LÏ“Ø_Q�N÷(T–ÆD<�ÂÑš0³Œsãšb(Bµ…Ñ(ýš- ‡¢zzbEÉï9ÒÜIq`ÀAI)÷B†û¶@Ÿi¢# ÔÅ4ÃR›Ôi7¶œÓž¶3ÍŽ_:oóf½Ï¸—úÁ,oׯócçF±cN_ó$k�þ'ApöXƒešã5ñ XZ¨·–³à9šzP|+±B.€.б�yÎ(ŽZða½,yÑÁX [ƒö�n”¡²úÖøŠ�“hæª�Mí(-{ÂkÅÎU‹@@Së*®Ð;GëöTQÜéDM»ÔH0<+½½41Ö^Í„KGÓ½¿ªg iú:žö­-ê† XZ‘NÞÏ/(Z¼l©q{cÝ2F1Ex¥+Ö÷©ºÅ<“½õмí…ácˆùiJSUC´M§}«¯BAû ”>ɶUÜRÐòc|#QÛD5¯�·õ8$”ì®k/ZxC½Œ8h¶^uîõýÕ�;ò�ČҀ8!÷yŸ)!]ÐA¦›Ñm<µªƒÑ)ŒÜÙQgÞª½$�_«RÂ8›†ߨÔI§T4- EF¨Ç‚Ï|!ƒ_¼H÷Ãøy̤YËJƒ¹£¼mÉ•iVç4r“œ~ß‚ìë™–'p j¬†äJuÎâYüZî€CVz”+i¦OóÿÓÈ0Í×Ð>‹kOýjnî”éBg¶§»„8ŠñÓd¿z?sùp‹·/HF0ýO€Zendstream endobj 114 0 obj <>stream XZhÞ260P0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@Á�#   HÈ6²Í l3 ÛÊ6W0¶4€j (ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 115 0 obj <> endobj 116 0 obj <>stream XZhÞŒXÛrÛF}çWÌ#¸%Ž1ƒû>fíM%µöjKL탕‰H@€ÆÅŠ~ ïñî·ìé¹àBR¶ËeI$fzNŸî>݃7?Þ öÔo~ØoÞì÷1lÿ¸>£ø•H–„!Û7>{Âÿ}A?ž7½Ÿš~ÈëºjžXÞ”ìß'Õå}’\ˆîÞ²¶aÃA±Û··;!¶;‘È4ôîÔ0ž8-a;dÛ_÷?o³ýØ¿…Ý7j(ÞÚ~è¹ú4V[yŸõ2À ¼„'2>½¾Û XZßë¥[ã\àYÆf‘àa* ê{/½ß²ºê‡íNF¾×>²­ÀSï¯mz ÝØªüB¾˜Š6¾ËxeÀ*¸$³šƒ·+xÝy½ÝÿvçŽûABìy]aY <‹¥Å©éuqz…^Ñ�à×`é‹®: ì±íÈï4Ýú\Ö«îóVDžê,Ö”Çi2c50‡ÓØÓ’×`zXQ®ñ ä‰N,mJ³i3¬nÛßDz'§$«¨p[Úý¹*•{ªÏ®2ƒrw…ßL4"œ™àÍìÙ>åœçÌP„`¿ ]¬¾ÂñQä�ãd��AÌ“0I–©}‘£‰ËQ?M„MäWóö¡Æq­NÛPð Cý¬ZÓG­3&÷ò£ËÎÙo'Œ @ûkRh‘¦ÜU©Ÿ!šá…ºHÎΛ6öþª¬È(± ¹¼NÛAÀå5PöU¯ššæç#Üi†ªÀ¬Ü}qPH”‡õ«iú·«ƒ]%<£#Îät••&(3úÏçQI‚I{¾Ä–uåj”ëYcæZ×�-¾©ÛQ>YÐpü†�(3$/#�­IZŽU 4[™Qˆø ÔKB8GGummbµ‹¸ÌÄJ¾¢d!ß¹îÃ^A¥±¦žîŒy,ø4ª^«ž-/£àE]!T†¦�æ:©è ñeE^?—�šoªkZØ>®™ŽÑãÂïkdѦ`QQÖ’]°þа–xP±Í'&Ì {CþP“ 7ùn6�%HDäû×íAÖRûŽ‚ü*µwÆZIW‡êa+}oÔ&H¨°ó@ÆQrÅ(ÒK�v%Fµ…tW›àXÖB7}’<`1yŸZendstream endobj 117 0 obj <>stream XZhÞ,̽ XZ€ †á[9wà/¦ N¥«¤[4D¸&ļüNàöð~ð).€ƒ÷l˜ XZ^ØÈ©PVÒ°‡Àb�b­’¢þ#Y“Í´!Ûé”ãÓ”¶ó$¿ý. –×Èjx†ð 0Zendstream endobj 118 0 obj <> endobj 119 0 obj <>stream XZhÞ¤YÛŽÛF}×WôÎ r1jñ~ÙZzÛ–+‹ðo›ÒÇiugt¢îpÛfkæYæÚ=ß6^W]ŸE^XReì×F´IO¿Ñ“/ß¾buÅú£`o^½YÛ¶ù~ûÓÊá>[»<`ÛW+nEN Øš‘eÔôÁÌuóØ8&¦cŸèƒ™®òÀæÚu!À¨!´e•èO¦�×Ú�¬í'Óö Ñv :µ½ÈØÐ°¤c'Q·R‹¤iÚºió¤ : Öë¡ÈØ·² /ô5¹�©íZªksGªë¸ŽÒöuÕ‹dz,e]}1}ßè̵9FZWòMø7Tþ�¹ëÛp0$Ho¿›Û3ÿsßÔmã0�ÿà4ý„–àòÈöbýÌãoBßòt`¹c¹ãkѧÝg*ø<ˆ=õ Œ´ceåç[V·,­ËÁ…[ó2/’–¼DÞÜ×EQ›Žoœ(àWj·ÙÜýèâ:exS$)Üœ+Pt9â�‰FT™¨ú…ɶ ¯}½É<†å­;eqkº¡‘ò¢N“bŒ‹ãñ0ˆ´œÏœä¬m�[¾ x¤dä{vÇÖ{¶ºv#…lvyµ)ÏÞØûïÈœjB·¶üÉ[c"=Öl]±/l~ã ðo»Ahüs“ rï§ âÕÕÅ€4ö¹6ßQ&ÉÄZ»*޾ô9BË=Τ3ö}3à¤îÚ�Z¢\…tD|~ؾ™¥¢–C6 ß¹ëEÉ�RôÀ§<€ÈÐ4uÛ- XZþ"pó\ÖC'å%iZUÏ¥-Û¿£8¾«Ž|±|^?Ëòމ*Ù8zwfi+T‰IÙ2ÆTǸóá½y¶Áèk{mÄX?AÇë”ææÚw|îÿA,!<-rB%ÎèTñxH7Ÿ[A,Àž,�ÚA¾ w.ý¢8�ôX¹ƒÓË FDþ!ÀZendstream endobj 120 0 obj <>stream XZhÞ260R0P°±Ñw­(q.I,I²Ýƒ Œ-@Avvúnùy%@Á�#   HÈ6²Í l3 ÛÊ6W0¶4€j (ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 121 0 obj <> endobj 122 0 obj <>stream XZhÞœYË’Û6Ý÷W`\³ ’̧(.ýÈd:U¶{ÒJ²hg‘h‰i>€t[?�}ò�ó-s.Zy¼½yÏÚ†u[É®ß_σ`6Òp{7²ëwœ.as³_W?`ÁyÄlõþ‚ûIØåuÙIVÞ±�lw•dwª­±œè˜ùáA*É:µ§ýº–­•÷¬lðg«X‹mÕC©%+D-6’íÛ^1½×�¬9»²fáb©¾Ì‚Ä“ V xh ñ³¥5$J¾e{)”¾4÷]Ñ}�ìØVh¶–y[KV÷ù–UBÍ‚¥·‘jûÞål&_zkXƒÍîª5kïÌ"M_¯¥¢O½–J›Z@¬Pù&'HE,�£ÎZ…rŠbÛ‘2h7%˜G«8ŒëmÛW *(aÂ~áf"ËãTg ¨‚:×P»µøZÖ}=¶ìÙ"¡q.ò‘8Hoª´í¤L©ëƒ!¢[¸èvÆXLd…´õÏÔ§f_Jaù8h„¸]sbZL XZ/¤½Å×ÒtD—›5„’à€¤‰KC¾03Sg?¤ÞË™ˆ�‡èÌ)\ɹ)þ˜zÜåÛCBÌÚ�P69‰ú&DDQÞ‘(t*}ŠáNä÷ ý”|‡–ÕWÝßÁËçü¹èzr˜/Ú¼¯‡Y y?Aá(]ž=„ÉP°H.ìfÛ�>"†t¡x†�OK@·~zæq͸ӆàl£mæ¨n¨Ž¨rz?qžI|ö6‹Á!sêÓÕ XZ›Â¼*)›º½³´@iøA�-Û 6�2?žN6ËáHp4›³÷Óó¥Î•ÛÑ¥éñ—O�5ù<Ë‚3ñàv§èÑn§H³÷¥CYÙÙëÆO�z ¥ØZì§mß‘l–§sŸ- ƒ™HŠ£bž,ýsϲ†Õ Ám¤‘&áµi´ìv¼G@èþ�M ¯™0ÀÄqî9Ã(ʆN6mÙQlœ1†y‚ŒXx:í;¸‘Z±ä=胑áቚ%‰g9ê»nýþ"`?ÀØßØ‚=Ð3¤ìöW]à—’]üÎûp‰¥`¼˜·¼6ßÖ)QLuqsñz&µ4ß.é9TÒc(´7þ1›§èÈo,GÇàÜÌpt3|°Â@Ðàéôþ®u‡ØÔ¥jhZzàÁîzH¨yÕ XZÌîáuêÊ$·ª„j7G�y«ijÊÂÜ�w'î &u5üÏÀ÷/}ßG›G^‚léÓ4\AIë ¡;œý(ôn E¶g×%ûвbÑÛo©,‹éñ‰R”¤Ô‡šâ™s|JŽõŠÒ¬úÆu@M#ŽtøËrpëà¶9É:>stream XZhÞ260V0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@Á�#   HÈ6²Í l3 ÛÊ6W0¶4€j (ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 124 0 obj <> endobj 125 0 obj <>stream XZhÞœXÛrÛÖ}×Wœq_À áNÐo¶åvÔ™ØJÄL§cõID €âZ±iÄSÞ«®y ¸|^¸¡%Ë6‚Å…(;ßÓ:À1ª*$ÛlÂû.="œ�o»VÒ_˜¸¦I)vЯ­ê˜x°’=4oá7ºŽ V XZæ}y‡ÇX±¦«Û‡áqãÛž†øS^ &2YxŽ¥§è‚Ï^s@ÀvœÐ Òø&/…Ê ©=pª2À€EVeqf=Œe¢O9@(’´ÍoZ�c‘.N›oqÓRté&Ç�êo’BU¢®”ÊwtT%€ÿŠyÒOĤ¦èã½Öñö7¶.2¾føZÿ]l!ÂþÙ*¤6‰Xá͵ã¸C ¬¾.d«á ¡%}ـݾš{CìÎøîZ/6cMjÜZŸ»¦©QAȨæê¾‹³�:™—Å XZ~5›ꛨiŠ"{meÃU®ú+N”‹‰Zåwº£YÝ ßÕËÑÖÔÓ\3:õº(AT¨³kV�‡|ÎKÝf]¨«š²ulêæW!ú %U›Ó¶gÅ5Þ±î¥ì3U0²ÃØ7gåh-§Ç#ÄAúç+† ´ŸOði¨ÐO�¤<×ø+¤2©0Í&mob´aÑ~w÷ñ‡EàZ»ó=ÓþðNCÑR´Sz·©D•¦(çHZ–ÖGàUã¯~#:‚»Y›%¦uixsû¬Œ0½ÚlEëÄ®Vb”šHŽÈ‰y¯&AuÞ•¸â íF«FôÆh,fúiÄsÑ£.&~Óö¯áÉ»Éådk–õ¿ïpsžuÕ>fÌÍÚ�€WvïJÙ̹è ÃhàUc–áÕÏy2%ëUZg²h"D“0l‚Æë êÌ%t´“Ò†IØz XZÓ^»±í‡A4w%AÆÄ ãö´ß[Š< XZwºÛÿEwøz–“ÓRðÈ´7Ü5h*Zendstream endobj 126 0 obj <>stream XZhÞ260Q0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@Á�#  Hu�md›AÙf@¶”m®`liZendstream endobj 127 0 obj <> endobj 128 0 obj <>stream XZhÞœZÛ’ÛÆ}߯˜R^À9‹Á�¹UÙ‘í’%Ji_R’†À� /nÆZdЪǀZQA0ö´Åi¬dï)~âÎÆQaÄý,še³ò—My¿ ²¬&9b+�ÙæO¾Ÿ¥YÉ�Dæ¦×[é"w' Í�wÞí¨û[YÔ·””è…ÓÆ÷´ÛÍ.˜òx/Ü{Q¨�ï7Ü=˜‡vÂçYœ1È·È<™ðÐeÍ×%�2Ú|ÏïUþZë§K¬‡~]gn XZ4²±véwPŒ,MF,%!#u 5ù¤+ØÑ;€Û'#Ûh |´l0“â�wÔ9bÜÃÊ‚§SrrXÑFþ{/ƒ@aw÷Êí6ÍU1ö� „ö¸ÚtBñH£`� ý&L=uhÛáI(¤‘?å\ÑÖfç™Z¨A�šJJuÆ• @áT¬_¹À¢ØÙ$±Ç/%v XZ~_„„éÞ˱î•m9[ê‘ð$³+Õ°+>PE uSÎ1�iд+µ…šBÙ„3CæžZ”®Dü5‰²½÷ÙZo%õýrZÐ÷fWƒ�„4{ZB»/UY—ƒIS‰atª „d§8ûºl\ XZlç¯Ý—Á$/ú¾iÇÓý’ Î7�X)‘S–úA;ó¶+-»\… XZ¨–%éƒE±¶°H’K¸€])Z¢Z4FáTë\êFÉ“Ì%JõÍ.«QYšº¥Š3VÃʲÀ’È’ XZïV ù-ºd�‡¥nO„{ʤ¡Z“°3]‚fˆ:Ð?¨âùFCìm-øë½ì°ä[ö¶Y’�©¾Z{=R‘ìKr>ëîÏë+rBUC)Z=ʼn`@9Hƒ¹|ìs¢}ÂÉ\íabC¶Á„&Ã2µˆ™Å†2¾šEXã’Zñ©=Y3vðB¯ºMê�×ý3ð1¥ž‘ʃZÀÏOÔð'½Œh·ˆPËeAëåT ª%ðñ¸>˜¸mŠ8’ —“e©/ûØ)ô ÙçP¸ž´ÄAzíñŽH²…áLgè&nò)ÉBÌÏ*šù6¾ûô¨CLÆ ’$[ŒÖ_± %<ó02i¤^´ÍG¬Oƒ»c«¦£¦ gݵø¶p ꈦ÷Sê6‚*kˆÍ¸Ø‹x�{k×Gû`*v XZ ó\uƒ&žeJéˆÓ6(smFñ Mg‡“¸.¢>¤±åùK5¤Ì�a5ŸZá¯ÒrðX*Ö–Á<'4,æ¬0å�7g†Bß2;pšž›�òã¤ò¢œ;dx��Èö$È€•x_”ô]?ªœªÔm¢{ÊýÞÄ iŸïOmw@‹Âgj ZjËõϳP›n¬7úÒüƒË‰ú›ók¼ 8á©Ãr XZ`b‚SŒì©mÝî]‡cN��LF]ðSà~xA ©z ¢«äöÙÜPs’•³/ØqPê7¨7¶Úìïjq°Q¡í ôŒõªÒ´qÕL$ Äe:µ XZŸî&¦3 ÛMX�=S,íáñl,ì¸{”ØC޹_?12 ~¥¿ÞEâ)¢BŠÙ¸j½21ÙД[ %«1qp!A´çqÃ߈=ï<¸ô�YôÐAGZ:üŸZendstream endobj 129 0 obj <>stream XZhÞ,ÌA XZ€ …á«Ì 4GÍ \•m#ÝE‹·1 �ß³ûø<Ô4Œ£š-™Nªì%w€Áð°Å¨ÒsÇR GûG¶e{±t(ö܃¸´8Zendstream endobj 130 0 obj <> endobj 131 0 obj <>stream XZhÞ¬YÛŽÛÈ}Ÿ¯h /T0ê!›Í›÷)»^{a+ˆO(ª5Ã5E XZ$eYA~b÷ó-9ÕФfvd 0¬‘D²ªºêÔ©Ó­»¿~ ØCwóãêænµŠYÀVÛ›ÀgôÁ)Ùjwã³ü_ôr¼ùìuª?ì¹àAÀ–LÊÅ2Hdxoë®Ï«ª¬X^oØû½jóž>Ñ�?~|Íššõ�Šýòú—e,þµú .C³ÕkXU‹ ò¾å»}¥nYß°]ù€ç•~¤mšžé'ib# xfˆO{ÿ]¬~­‚GQl¯Tª;u½Ú±{ïî~qËŽ�ª…ÁOŸ>å¬ì´õ:ß)Ölõû�ê3ânêWÖ¦06—)—YÄ–Oµá?Í\&‘ñøÙ«ÕBDÞqÛ±»�~ûõ®uÁKs·ä™l„ej XZÂÐ^ÌgA$<ò%!^bsØí™¿E…îØX‹e5-kõçç‚¢ŒúñÕQ-ƒˆiÆ–¨¯®¡·zTög‘g2–.¤v&žÄ9¶¦Odhoã� Bƒ³}ÛZ†‰½ÅkháÇ™BÎt Ú\ØÄq�ø˜§š˜£Ø,(͂޾Ôv ÷ã$½2MÖêçó XZóŽm Ù#$Ë8Xv­+mj=ZãTGÖ—yUþ[½°¢”gAtm+;ÓnA·Ïµo³lÊNËrf6Í\"»Ÿ½¼]©÷p âÁJgóã#póÆJ‹Z÷!Fç½—Þ/fÀyD#'™ÉKƒÌ­Ê;“Ëë \[#;4PXÞÌð”ŸO¦äqäæÒˆçS¨K@FÊÖ~u±( ²pÀ˜´³¯j,¬l=ØWúœWR*³<¦ç쟦¢64„n )[°�%,s)ðº`A׉ùˆ,uY[æOy$Ä%åÑæ¢©I¼²#´Ç¶ÔÑ4F´á­>"¸ˆtΔz•ëÚÍÕ-úÆ�Ì?¤³Ù@^ XZÈb¨†§=?•£À�Tág+ AI9ÙWà[ Ú2E; ‘]Wɳñ¡’:®•óáøÄ^¥>µÄ‡½LùmY•¶tF@Ba‹LÌ«Ó §1®AFÅ×û‘œö¬$ÉnªµÇ#k´Q^´M×MØ$>3Ùq—›oŸ¸KšDcJrfÆÁE–KB�ù‚V¤Y:x8Br#®ÙöGÃ1êbŸ0ýBØŽx«—ZëÂübv†Ìo‹Dz¿AGªßéÝï·†qZܺiÀ7Fô¢I¤S ©¡>̽w# ¯�H„/býÀÏ«›ÿ 0Zendstream endobj 132 0 obj <>stream XZhÞ260S0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@Á�#   HÈ6²Í l3 ÛÊ6W0¶4€j (ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 133 0 obj <> endobj 134 0 obj <>stream XZhÞ¬XÛŽ¹}Ÿ¯ �—î`Ä!û.'°Á.’�+@‚q¨nJê¸/J“½ŠòëÌ·¤Š—¾hfìÉ®aŒÜ’x)V�sêP|ÏÉQÝ}»»{Øí2ÂÉîpÇÁð_‘>stream XZhÞ,ÌA XZ€ …á«Ì 4ÇÔ \Un%ÝE‹·1‹Žß³ûø<Ô4Œ£š_J…jìT:À`xXcTË}ÇZ GûG¶e;qØ£Øqb8hqZendstream endobj 136 0 obj <> endobj 137 0 obj <>stream XZhÞŒWÛ’›F}×WÌ#JY³€ZAVK( Y€âŒ cdM8&+9¶&…ĬӚ°«]_ÆÖ8tMAßYÙåN²%DÅOQöˆW½“˜¯ÂÕ9ûÿ^ÏãxPè ¢a6�V~ë XZìu,LµtÏ"Lù*]Žˆ8ÒƒÖ�ÌŠKH \FÎåÿƒñ²KæÁ{šX¾RûøAšìa‡¸½¼!Zú£Boª–¬îª­l©C�t�,;5ŒvN…¯Í&ôy4hËcN¹‚ýäOóh4vtž1è½›]3…yßÂZ`59GOÝMµ‡ÀÖ"ì™–í3-Hù]=ä ôxì]HÏ©ÿÞBï –>ƒ_õd®Ï Ç~îÁ�ã–Ù‰¾ÐsTÂe'Yò`¹¾CG´x ãÃQts\'ýY[ÖÕ9Ú¾¦T‰­šöD¬Zꉓ׾�^õmì8Q%#µbúM›["5 vû kTkô]õ–¹‰PÓp�`®_WûUж 4©Ó*…—·ã=�I”¦§ÚR…u—صm>¼ö¯v…¶°Sêv¯êtûZendstream endobj 138 0 obj <>stream XZhÞ26°P0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@Á�#   HÈ6²Í l3 ÛÊ6W0¶4€j (ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 139 0 obj <> endobj 140 0 obj <>stream XZhÞ¬YíRãÈýÏSt9änÔúöÔÖV1»EvÆP`’l™üV++KŽ$Cž O™¼JÎínÉ’ ‹'•ÙFVwß{Ï=çÜæìç;Ážª“�ó“³ù<`‚ÍW'Âfôþ:,ô<6ßœØì çKúò|²°®òªŽ³,ÍŸXœ'ìz+˸¦Ÿ.ÄÇ» Vä¬^Kvsq3b<¡yÖ�¬w[Naæ…ã¿ÍÿDû:f_Gï‹mŸOÈ…vD›[ç77—³‹«¿²s6žÿ�^ú•€»Q„wæ'?Øvþ¨Ÿš¹êg ‹}ºžýtõóýíÕìgv>»`Ƕî¯>_¨`³Ë¿°_.og—Ÿ›C$c² ˆ¸J·}ÏÑ™˜#Ê&èßhQYæ2cë¸b1Ëw›GY²bŶqod-ËJ%¬ØÖi‘WÈQ\³eœ³GÉv•LX]°:N³¢Téë,Xêd‡ûl"¸Cqq[L]:†U¥µdÕV.S“ Pßå¡p]�U:ëßæA“#?Ð�i1Ó’åR&O|1å.bLqìíVæIú�eiUWêxo¥IóAœ�'ŽoSÂðM0åŽÕy�Ûú:¾%u LJÜN¬Aàêã!«²L—ìëØñ­8ÛÉê{î€Ç$ï1C&ÒJuü àž*Qs¶¦¼&?ŽÍm/òº úÏÛ XZO}$~BÀ¥d2Eˆ%Kd?éÏ92éÍš9r†ªïòáj�|7ú¾Õj¹ëk«*ì3Å~½¼Óùu]îLÑÝM‚Mgã ³kVJS�Ò{º(ÙË8ð-þ0VobcÚVáë·¯ó¥d/Å®_O|Aññ5MdŽEû5ˆxäøþqb' âCÁ©µ°Õ JKÙbðaw1‹ÇË2}Düë‚bzOÜ@Z`yŠÁmÙŠýò‘bkˆU}¾³L×1ô8^ÊSµCÍÿ(~! ¨3ÎÿHFb:Õ§ê¡qƒM1 ¢°Ãc¥À,¬*’°gHU6B/:6Aó)Z3Ò‡­dM¹(óþ”GÚ"lâ22uQ°jC켂š4åÚUä7»¬N·™ÊÈo†\Q9Û=¢¤ì¨ú·ÒôFœ[­‹]–ÐV¨w)ãÆ8õ`7ìg™Ð}¯»ø"SÚõ�¤�6Pàò9�ßs¦{þ{#�Ó é>_jšo(ö�~d�›Ure¶ÌǼ†xì^ç.¬3Du¶>ƒã¢ˆâ _ŒnZ�r(o«4vÿ.gse ib­U©hàqXaÈø¤±"†‡é§¹—Ð;êQêQš6H‹rìc|o¬Y(.Áds'ëºe„�׺»/.ÿ>stream XZhÞ,̱ XZ€ ÆñW¹7ÐÔLAœJWI·hˆp-ˆzü.¸íÇÿ>NKBË‹¹â��œëZendstream endobj 142 0 obj <> endobj 143 0 obj <>stream XZhÞ¤XÛrÛÈ}×WLí˜"G¸“Ü7o¤M”]ÙÊŠN\±R.ŠˆˆËâ²2ó±ù–œî™AHZ+•r™"ˆ™žîÓݧ»çüO·žxhÏ~Øœ�o6±ðÄf{湂þáÏÒË0›âÌø¿Iéãéì³Óª®¯¥/=O,D¸š-¼eyÎUÙvÉ~Ÿ—")3ñ¡VMÒÑ­üáöBT¥èvJÜ\Ü,°Å}\ˆ�à˜EñÚÜœéK™)‹ ‰¸¼µ � ¡,¢˜~ÕíMÃåš/ó^«1/ÞWZDâ ?¯dè¡Qȃ-¶Ù°ÊkÛWr½ŒžÝ q91×jFC»ïüúÝO——íNÁ2Jˆº{é>Ç ã!4õ,­ ¥qC5†IÜœ+ºb21¥ÑP*�w‹`Ë¥3º'2oNXÒ²êgZÕtÂá¥Ê»ölå�Zɵ4§ûŽ,ï^ò5=ñ[�1œ³Wœ0óüµ#é¶s/08�i&CÀꮆîÑ»•]£YU¯¥…íüØJP¿ä�î ÃЄÓ—SlëèÍDÚ7S r8ÙxÒ¯6ÀùR­èœôgWÚ;¹�¾ÞËí‡î}|l4»ø‡ç͇ââÏüXŠ_®Ý€«#?]^üùò“8Î=âöúBOºlªý^5zÌÀêw×7X¼\WßB,%®ftŽî¹â½†—;¨â"|ôå¼érsö_Zendstream endobj 144 0 obj <>stream XZhÞ264P0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@Á�#   HÈ6²Í l3 ÛÊ6W0¶4€j (ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 145 0 obj <> endobj 146 0 obj <>stream XZhÞ´YÛrÛF}×Wty_€-bˆ;@§²U¾È±“8ÖZôV¥¤<€ÀP„… 3Zž´²²½èºtwô�ÁÚŒ•vZù†LÒMK[œ¶¥Âm;�~ ¢ã…º‰££Ä¦³Ýi Q8GB# 9�'3ÿqCôLþeÿ{»Ÿdâ³'X$‰]R]aoSQTáfÅœŽPæÕ†òfî‹k³ òƒ©3ÿúœ3º§kÉ,O&¨™aC�jx/œÑ /ö&ùŠ\OÉàÑ·ôÊQ¿ uâ豬í yz /’g%ÎúÐeaÅÿébâh^*$Ó†þ°çúXg¾Êý¸ßg~1ßÃ:*ߟ‰I¥Ùs˜çDÓÑì;>“é6EèÔcç4¿/ œ6¸ÞHbÅ�¤«Ò2\=�üP÷gåÐvs[§cº§±‡%ùmŠ XZÇ!íéZbØÓ&º%¶²§áöC@É�¡êqCï‘Ìch¸ß «à¿v8f¡§Ùc_#@d‹Në�ÌI’j/êM²AaÒpTn*ª{Ö=îói�QèlPU ÅëZ*}˜¤i× èSRv_tWWê´•œ±H…ÑyW^Ñ8†³²4 è>ŒæÉG4 U�¸~ÂŽ…×sžP hÏ—�ÇnÇŒ³påi«®×“•B(Ôš ÉœÑY—*¨8«Èf}Z¢`:¤mGåÍVÐ�Þ±W4/I_ŽD8Ì‘ÍÕ_˜Èòq¾—”ÌP–7û"¡n#é[!A”RÊ2xEu¨å©â�q­µŒ’ ‰…ysþæíkd‰Åá(‚öÍyƒåçLJ�Ô§¸'—œP]šzóÊéwo¶ëºƒdµh>Ë3£É˿у·hí†Ro�»<�k¼E‡ŽM½Í±%eLúfmòÂxqö�Ž�ð?Ãq–‘�Ù ;¯ÎÎrcqô8†$£À†ÈPþéOýQ}�ã èeÕùÏçëÓ·ÃA¿2­``ªõžìoÁ/Œ÷¯ŸõnéîúÖ‰¢(ŒlÛRoopõF’Ø·nà/àùû`ï_G¶4xºFƒß�8ð=fô#0Ï…[úéâ-\ü‚øÌðJ'¿‚£~Ó€ÈEƒѳ‚´”_–'òp·89?ùûñ/!±¼Óï ¡Œ¼TGRÆï¦áæAo—;(©ÕßÔXnuÞ£˜^oˆ Ó´“¦c0òeÆ*šƒMNÀÂП€]Hœ/ç'”÷ìóÆ_n\Å„’+½¹0ð«Ÿjs tª®í†}ÿ-ÀZendstream endobj 147 0 obj <>stream XZhÞ4Ì1 XZ€0 …á«ä±¶Ö XZ’IÛUl7qéª z|#Ôíã!Z)h`q."œÅ!*Ю•a%B_,ÑK뚯aJ­ì¦Úˆmµ»êôðß;ÐÆÖËsŸ1ó†Ëä1åÂ;Ñ+ÀZendstream endobj 148 0 obj <> endobj 149 0 obj <>stream XZhÞŒYÛnÛH}÷W4’j µ»y• q2³öî8e° {(±eqB‘/v¼Ÿ1¸ß²§º›]2±Û’È®ë©SUôùß?KöXŸ].ÏΗË�I¶ÜœIÁè~E.‹|Ÿ-wg‚=â{¹¦Ïg÷N­š¶ä.—’ÍX &3ù�t®óº‰³,ÍYœ'ì¶TUÜÐ;ºóòóVä¬Ù*öéç™”“ÿ,ÿqvþ«4jg\¸®ËfÙò½õý€TÞ;wW—l2ÃU׉“¤Ruý³Œ¢Èõ}13/¢h:™AÀçI­›¢úÙuý)»¼ ¦ìî*Z•`3É]~ï¼ÿíŸ�ÈP\ý·?=–~8³/¢)³‚¥$8Ô"—?�¹œÌÖQù´¼cûaÞ¡�ÄL´—w~'Œd|:”áw2ŽœŒü2lŠ–ËëÎèüŽag^èõþ…Ú½‘EËåí�u6†C BOÐ(N¿}Zø(»óò8‘B|ßÉ߯È4Ü·(xD?Šô„˜yÂÿIÛ7eÀ«Â±ppùîÓ ö&®ëU[~Çe£*Èpùîa2esÖæiS�"öå‡Ç¥>~Iǽ½»y·\þr7eËá��÷¯/'½¤’3 ôOÄMºÂÀÍ»÷?‹ù…îåÅ;¼p/Ä剴ÜÝÞ0¿“2˜00ƒË]¢’ºF5#p)"+àzÃ^Š–Å•bU›çTø(øÿ×Mg¶ì§šÖÅnލY’n&nàl”Õ Û‰Ê¦š=š‚íâ¯)5™yAÄ=§ÙBf�›*¥M›Á¢¾¨¹�22†@x™¥ë¸QÉ”ÕÅN¹5‚ž¥�H7”÷�dB”Þ» ¿‡–ä/lKJ XZ]®'»šsL“!÷#Ï}%KöJPÀp?ÍMìM¯©r•q††Zù"tý±osÛÍØ@*Wj·µÚ‡¶:wÍzóˆTiˆËºñÍN&œaÛ9×ÛŠ½u›>nGsŽ�í¨&ä»!Uš–Z{=;Õ°RÓ>Ř ëqˆ’nšÓ|�µ \iË‘yA7´êZ:ö‚A%V XZ³¹Êa¿�ÓB¿QÆàĆ }uáþhsïŒàÅ;"q{fhýÞùx;ñ…³üåâ xÜŸwS!æ–ÎÓC„óxG)JMæ©”ÀÄ�³Ñs‡¾ÄàŽÚµYLc‚îÚUŠZ}-G5“�Ïۗmaè XZží Ãìpà8Ö%÷õƒ(Ù(û©Ÿ¨$fçÆÆé$i¥áÖW³þtÄ€¦6L§†Õ2Úk ²{Ô'ÌBÑÄ™f€¡[kzl^JeZ¶Þራ⼦%.µ�jðŸ@ybW¸1_AÅAP|ÉCÿ•ýÕAíáÒÌð{ nÚ&°ÇŸ:bMÛµh�)±“F°�Ž«Øt÷aò<Ìýà•Íqú]ÞjbÀQÖ¼�pÀº.D ¢Ç*ÞiR¢àÛÒ´)ó¹ôEpH3c.{Jc“¦þÂ}½ f骊iæBFÓÇ%‰~#¹w"îs�3S`_ÊD—¥y§3»©)µNºÑ³¦J&Ç£ëx–Ý3€î‰I’&Mi³‰õ’ýõ�•õ¸t<„É÷‚èµÑ—v÷©Ö¿7&à Ã&Ølpñ`…Ŗ쓼W®°{½‰ÕÅP�]w"\¶M�7]ëG»¢Õ»dÒV£§%0¥¢ÇχMIZìÍhÙI¤8´Ë¹ëèÿ3 #˜z".í’� »‘´e‡�G´gWzLV�Ì’ë"ðÃ#F XZ <ºV±:øãAt°ˆ¢qrùãÍí—�Ë}la* XZ<Ø_xÜ€>¢'EEÞ…Ž:ý®[Ž#Ðka#†G,¶‘hkRe§QÎ~%]ÔWõˆïf¶VC.ÝùQ­–8Ý¥i $°mŠNy?@ïâô Žx«¾by:ÿV XZ4Önê~7­žY¿ƒÊÑ«Ãͼ;¿Â,‘+»¾ÖÏ1Ö\†DU5Özjíˆ^Œöáî<ÜhëÊž‡!8Ž/˜a6¸(•�°?ÓßDæþ>Žî)ØG3¦i†Þ­AW¸æ)ö/˳ÿ 0Zendstream endobj 150 0 obj <>stream XZhÞ264R0P°±Ñw­(q.I,I²Ýƒ Œ-@Avvúnùy%@A7 ˜©HL?$Ä(oe›ÙP¶¹‚±¥T_@Q~rpjI´~€‹›~HjEI¬�@€Zendstream endobj 151 0 obj <> endobj 152 0 obj <>stream XZhÞ¤ZÙrÛF}×Wt9/à”¡�-Só'JÊ™x™˜©JÊNMA`KB  Z G©."aô¿lªª¡$¼±ñ3S+ò“,›Xå}^íÔTZT?°w˜ë^€5¶y×#jÿ\$Òûó³�ôã#Ò1¡ßze]T;JT]j?{»`yKæÝl`šn/au‡CC7…òH‡Z­­?·m³4ñšùQ&³‘åÒ(ÓªëŒÉH³îZU£<Üö³PüXˆ‰‡ÔÌ\¸K)qêÕL÷4„"ÁD§70—Ñ&G¡?H„4ò3�›¼Þå,‡à•×xŽ’]šÜP¦Àllˆ.yèË@ÈYΚ·»­*ÊKcƒƒŠ“úQúhµx3!µ"ÓæH&$,3 ¢-›]7ês�©óËØ�Ãd\ŠehܸºKŸÐ™àŸZEüèžEózðȽöÍù‹óïŸ}9}YúÑþ ÚÆÄŸTü2Ó÷-èvA�”š~øJÕ XZ(Ïw@æïôNF] ß-­sc?ˆƒÁ¹>ib„£…ùhÛBf7‹4ðšÅ2LR€‰AbΪ¦Èïêuüˆc#Ÿfî„óäц3èL§h¶´ÓÛY%£æ5-÷8"‚ä`a˜9GhêJ9/4~–eG†Õa`ð½4ïùO¯z½:>W(“‘Ë•Sã�ÄS벟w? XZùàZ‘ŠÐ‰Czé‡î„㈥nnÞ-a5 ‹’¸ÅI7óôؾ¹_ÚùûT7„-ýv«ØÿìPm,;2ŽfÕ3ãÎv�[—´“ÆÛOtà RcY,%—¾ônJ”ø¢Uy¯t¢ vꇥÈjɬ^úþÙÝ e2Z©\ä;WÁE@˜#�S3`ª+·ì€¹´ #á¬Eˆ XZõz!J@~ñþá’êwú À©þXå-U`„kSëÄ�ΡI„|K3·NC[yo-=ÈîfÂ_D|/œêÙD¤CÀÏÐ×B`îiÖì:ß:¨…˜‘|lão«ÐÞ4 a Ý\üC³9  “cáäàZ¢…�î$—òˆ7’Þ…Ò?¡1zaÛR#phgn8Àš ›àeòع$nvGÿ�çVÂÉ11ý qèæ{hg9²Nëoü£�SÝQ\†�.-Bœ8ì_d&è0{œƒ©t7Ûa Ÿ"Ûõ´7m†´˜>Š XZ†Õ•Wû¹UÄ4×Om¾­òBÑ&t³tÔ”Ž ß•�$›0éw§QZuÓß{–•�ùMµÍ’Þ¾ãd�óØÒíså.ZmcJÞtpW1^]¤ðô(f n˜ �ù»€;F¦+!^W·îƒ[z¡<ºFؼϞq¡Â_î*Ã�Z?í6?�Á–ú…ºxJ?½/ì*ÁüXœkI#CÚ :РkÆÿMn¾o•?›%"XgBâZy6ªËl_n”;ãÔ F$Ž8Þ—¦:F—ˆ?õ,ltÅîåT…£ÂéiÛálñ8}(RZ˸8Ò©ŒÆæ`cs�𥹠XZ©Ö®‘!ÊtŒYoh;�š7�m¡Ä�8ÒÒR7tŸò²wØ?¢ÓO1lÐ6„m bݨM£ïVý¦4I‚ðQfݪ4’*š©ðÛeoHŸœ]î0B ø(ðóZendstream endobj 153 0 obj <>stream XZhÞ4Ì1 XZ€0 …á«äQSµBɤuÛMDºZ� ßuûø_Õ8‡Ó#s�C’z5�mtX™ÑçK4zmmõ5Œ±ÑÝuWÜ©mq4ü÷�±åßrç3$Ùp=ÆôÈÎü XZ0Zendstream endobj 154 0 obj <> endobj 155 0 obj <>stream XZhÞÌXËrÛFÝë+º<0%‚h¼é�cy\¾&¾o›ÜÄ”cš�¸9•3´-C;äq<�ð¹àð>‡ëéwk-ÑP!Òeåàœ¶ÿ *9ŒRøRÖdŸ6™ƒ„)QP™8|žŽ`¤m1ñiB(¬Ì¢ð|Z¾›šŒ<ЋhެMå'I½[¦GbŠJˆLdöŒXgƒý žêã¯OC;ðï=ôÕž²·mê42Jp»›äEJ†Í² zò<‡ÿ buŸª›;‹ä‰N[Z XZq>³…NXûÿ×x6'$j”B9¼ôB;v@Ôó²¤yÃê- Uɺ µ”¤ôX‘�çœ"�f’ëÃÜN»¶ÆÖ9¾x>¯[k÷ÒŒv“uBVÓUÕÇàB‚~lã¿b¿a¨æUÞ¾d_8Úsž=ÚÚut/I¨{ MS«ËÀҷרÂH%{8‡Ÿ�hè7¬S)"Q�¡7DCy<=�µ¨¡ySW¥¨ZEV0§šà1OƒÊJ´—´ûÛP�nܘ�D=û0Óì!—é=j? Ðk“23Q &ÅêðâÈd�SÅ{ùèfvºUy!Ø{¤ìÎGŽ=К´!2}m�f³ãú±v#¢ÈÛˆQé Ù>n«R”5ò Ðˆ¶î¤¾¡MÝ ]íx±<–÷5ZQEI©"º<4uÖm„®ás©üI¾.£ XZ¯x¦©¥«&ôÔÙ­œ«Ï Š¿®öä¾k³Z¥«bËæI×:=�’ö˜ZÁd¤¹8h9îôWÊËí€*`]¡V�„ëæzl*J ا4†uEé÷]¼V5j˜9:dYoÛaš:WgPaš}®tŸéž4áãÊjf{ ‰Ç ÜA|¸ðõ.1´·ýòI¨ðLE›œw�D >ÔZSMîP }£ºtؑڽ\ߎÔm‰ê,/èÏÄO&Ù±É#·½ÐO‘ß§Ç}�¦f¸‚NvÇS0i·q3u‡CÝ´Re}[…FZî[ùÓïØëWjtŒ†S˜ïA"°¦²ný-ýÌiÓæJ*úz²õ‹ÃÑÀ5ŸŸ_¦™æü†¦÷TºpØp&w�?Òææ¥ÍOã‚Lÿv?v[Q®ž ¢äÔf”0™ÿW�ì›<v©˜Ð­kNßÎFáH/¢9¯G‡(�¹Žö¼ð?Zendstream endobj 156 0 obj <>stream XZhÞ,Ì; XZÀ Ыì üb ˆU¢­¨]H‚m„°…ÇÏì3Ã(¡�ƒsl ^ØÈ±PVR‘½g¡?Ha­’Â�Éšl¦ ÙN/ V>mAi3OÒÛïÒð`i ¬¶�§÷ŸZendstream endobj 157 0 obj <> endobj 158 0 obj <>stream XZhÞ¬WëvÚFþÏSÌqþH= $!!H~ÙF±�LŒÜæâž!³µnÑ®LxŒò€}–ά$ã ´éi}EÒìÌì÷}3;êžÍ,¸­“ Õ ‚>X,[– ô�ÿ<<Ç� i™p‹¿ADÖ­/ÚE*dÇ<½…0]ÀeΊPÒ•mXÖÉlY XZrÅ`:šv,KïXž=p´“en� tÀíé¿ïÐa§gô!µ k8t*÷\À‚IV$Ìo5¢bÜUÏTsœ­Ãy\·Y¡ XZ¢>kÚà8mðLüí5ì7ÓA†k˜UE`·¥“žXž—œºÖîР#¥95vÂR˨¯ªŽÆ÷ñ‘åÍt©ºmŒzSÍ�èGšyÚ‰i{Ó~ÄXeDæTAOE‹Kö8ŸÎ~Uá·"�·mØ&Ë\t™‹-uô-NÐOü.ÖÖB͵Ռå¥Â¶Qp�‡I@æÎ¡ãô wÿ <ºêœH�+Ç@14çdåÌq^袢º‹Ov[¬Œ=ó�1>yaÜ;dìöÚ^¯=À§=쵇Î3ÙUcñ?YPÇïaöiøã'ÇŠ‡yÿÃÁòˆœ uv$§©œŠšMž½á|îy}:Žá40<¼Iâkæ$£7‹êµM½ Ñ”«|øAë/Zendstream endobj 159 0 obj <>stream XZhÞ,Ì; XZÀ EÑ­¸ƒñ�…X%ÚJ´ )B°�¦Èò3�é÷Á3Ê )b„õÅÒðÄA.M 4 [J�ç�35'ÿ½kÚ-Û’=Û“;c=Ôg^màuÉÐÇ‹GJŸZendstream endobj 160 0 obj <> endobj 161 0 obj <>stream XZhÞ¬V]sê6}çWì /v'¶%Çé�éCÈ�´CÂß4ÓÐ|㯑íú3øÅ] Û8˜ÞËC�‰‘,éìj÷쑬¯ XZ«¼wô¬ ð€B°ìQò||Ç� îXá0—¯�Þ«–ó¢ÌLÛ¤ pÝ ¾ãRí>É Ea²–,à1ゲ'gÞL�&P¬9ŒcƒRýïà÷žuG÷f “ض Æ¥éA0�]Çq¥ÉWmtýòm2|š€n\^]]™®æ¡EÛ÷=löuÃu]lÄlSæ\äÒHÌæë0áÊÃ6‰ùz˜|óø †ÏæÊ¡ˆ0OãY˜ Ë±àIª|—ã¬,ÒYšøõ=œó‹˜šöpªMÔ�‡Ç‡!„K@$(óØ’³¢ÜThÁ/=Çtd¸e€kÿ$îr°±H“]:Nv´¬Æ¨Ô¯š�-Þ×Yipÿ| ·iœYÏÐÚ_ v XZgý&ƒO=Ïm_¼ï|ÿ4‚.‚`2ÿ¶MËG“ÛñÙË£Îrjûl„¸‹Û"—qAdçc&:HCV ÿnž¨{é[øãc•�‰–ϱ¬Ž“<ŒËˆo`rK©us>’ý$û|�ÂÎþr,‘°îüêÒÁ:Y²AóÒCQ7µÜ�†ÉJkŒ’òðÆEÂ#,CžÃ×QZD[Yz ˜•…ä{úÁSÝüZ'b�Xå 4n4¬d1ï²À�Ÿž<¼o Ûô}ß•V´>V9¡õQãš¶ ó¦} ‹¦íZendstream endobj 162 0 obj <>stream XZhÞ264S0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@A7 ˜©HL?$Ä (o•(ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 163 0 obj <> endobj 164 0 obj <>stream XZhÞ¤WÛrâ8}ÏWtí¼À8Ø1�<ìC˜)vȳ›­ÉÖ”°h"[^IÃ~Æ|ñvûNâì¥âTŒ ÒQ÷éÓ­Öñǹ kstÁZ9O”–¦r÷:™¢Ýk%Õ‹Ý W!3�$xâ!àÅØ™T4ë'=ÛXöÈ„dKÉ�}M@èê±÷ÃnÈü¼M¥–*OùygßTž¸ØBÖЗ“ãYÃJ)[sÒŒQq~Nù±÷eb †²õš›œš Æ"×£”j ׎5¡#å™n˜F)Ó.PôÚF0C1$è>=y)B«8£#M>¾݈8“–%Å)w�Ta'gkÇ fŒX'‡@/¥ XZ*m¤JÉÊù¹ê4,H½üªz!»‹„Ñ-ÎÊÙg\ãs'÷j[k]²d¿|“˜æ4…)¦C¸ƒ½¥ 6 XZJ‰œ¢ç±¨šX<¢œçËùvè ‡ƒ!t}ç´Ü‰èp‰çÜ©j»˜utãùqÄëyƒ|ö88ú[€Zendstream endobj 165 0 obj <>stream XZhÞ264W0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@A7 ˜©HL?$Ä (o•(ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 166 0 obj <> endobj 167 0 obj <>stream XZhÞ¬VÛrÚH}ç+º*/(‹¤¡‹½µû€ŽYlB�’òV²B`b¡QiF&ìgø‹·G Ã:röR‘±ÐˆéîÓ§oc¿[PXËÎUÔ±£È XZѪC è?ü XZ\¢m‡Àÿ£Dßv�O]ÉTUXŽE)˜àù†I×£Ýq.Uœe<_Cœ§ð¾`e¬ôJï¼Z„ rP³pfRjüýÖ±¯éÁ¬iÇqÀì[>D¡^º®§M~ê¾1LÏó,¯»¬V+VJX‰b XñŒ�ÜKŶ=˜^}¸†�¨²– ¨sa!.¼ºƒF¾Rò%а¯ +G8õþ “Z޶}nÑ ]Ö,.D³(YZ%¬v§�¥Èø‘i/ÓXÅ ‹8a=ˆ¥Þµ‡+8.,÷ŠI`q²©íFoÏ .6�Or‹\>ÕξMGóñ°R@)Ķ~ùÀÊœeðdq¹fP”b]Æ[�¢¬r뤻æÅ0}J è;È XZ2M_Ò XZ "B¸o·•To5‚_~E¸¤!DZÜä„ãÁ»éûE4B*ХǸ䢒ڼ©ø–êK¤F� ±‚݆'ˆK –)µ�wöµ`¹äH¦N¤Xa¸7|½A9.J®öMhÕzÍ0ü)T’—h‚rìÀN ã(›ERÆrÓäë^TèHþ¤à!;Tµï�@]厣rô XZv\m€+ôeuFð†éA€Š§ï¿¡yËebAÊãu.¤â dB²¶| êÓÝ7ÿö2¢/í4Î0kf7£ùàvñ3„ãÅÂùøãha˜ˆ2À}Gþ³©#Dßò}ÿЦ7ÀÔºè÷4üŒ`>Á¼ë��û|\ß&AcÕÇ®@¼£ø|0l“Ç÷!Jr7¹*E–a±½Hò¬%Ž?Fw:V|]•¬<€oÒ[iYO ýFïƒ BlŒ±}Ç#¯wâSb!ÏZG|žÆe XZáh¨u‹<Ûƒ¬ŠB”Jj­W³ñg£iÐ×hr+°ã§LÅ<“½ø’1°qŠÛEZTËØV[+±NMâT€h­� »ãYâT3G" Ó½¼¼Ä-¿×áÂn|.÷- gUô�6-ZQ,N(\ ÍzÏ ÃY;nýƒq„øzoû[›D¡ïè:VLî—㤦æ‡×Ãh~7žâ#BÂëGTé¯Mn�çIV¥˜ÈKÄ0¹¥ôé01ÃúÑz=oÇ8æÕs†NUq¶‹÷RmðD‘±X*ÀÙÔTF@Ц)��‡ëî€éZGõ¡ÏÇSaP¯û¨ol»Äqˆã×Ò£¨ó—Zendstream endobj 168 0 obj <>stream XZhÞ26´P0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@A7 ˜©HL?$Ä (o•(ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 169 0 obj <> endobj 170 0 obj <>stream XZhÞ´Wms¢Hþž_ÑU[u¥[‚‚/˜ÝO®r/�bö²ëÕÂÙ ãÁ“ûû‹ïÀH ±ö®êHbœîžî~úé¦þy¦Ñ]|öÉ>«Ûv‡4²WgZƒäþ:­Ù›³ÝáÏvåÇîì[eÆÂ ?¼#'ôh¼e‘#äJW5íÓl@<$±f4LM«*š¡w[•ÉV•[H¡¶QýÃþí¬þ«–™UÔ†®ë¤4ÕÙ¹lµÚÒdGít:™YërDÐÖm6uµ]yWUÚí6n.GšV£*¶u*ܧФhª.Uåg¶TUÒM�×:šö‘ä?&?¤$ôEL|EKîD^L‹ŠÖ!æ¸ëE5Uo¿‡Êþ¬¡K�šÖ€ XZk\U \¥ÕFåb¿È4:KþÀȉE |"s“쑤ªT±f¨†Ñy>ü·ƒ¶ü$­Cº¾ô]/“XM¥”WbÖàê”»W™»W?ïnyk´Ÿc9§Ò(ÎóðCà÷ùˆÒmh=Ž‘ÅUiXb1GôBǑћr£7%F¿žòþkæý×7½ï�”tµ%ÃZy÷³WÕþ^€`!‹s:œ\˜ÓÞhö�Æ6îP¸Ø’ûðﬤQ:”ÈhR£›WÈ$òCÁ¢£€�&^õ~ï�e¦š¸*ZSGªt]+ª¹rýM²¡0Ù,‘*DÌåA² STÊÒ6Óÿ�›™óÁ˜æÍ°oÎj4™Ží1Œ[Ë´¿Œ§—Cë3ý÷ LYLìxt/ �‡¨Q¹ˆiç‹5ÅÛZíìä.YB‹Šl€CµË"áø²óå%-�TLñlxʵáþî¼Ýh��裴œûƒ>�H¢çÇ÷… XZµ>MOè3{öØ¢OS­Ý4êøgÈi?]v{¸©Q)8ðs$ViÆ-¼d£�‡&!)QÊžƒ©¦)_ XZÛÌ~Ù¶fŸorÅfÞm 2ÃQ™ÌP’zZendstream endobj 171 0 obj <>stream XZhÞ26´T0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@A7 ˜©HL?$Ä (o•(ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 172 0 obj <> endobj 173 0 obj <>stream XZhÞÄWÛrâH}÷Wdt¿Àº”Ðfž°Q»Ù1˜ZB¶J~­6üÛoµ� ‡_+|ë˜CÜVi·Á`¦CúŽ´,éø›’_ à¯\B¢6[‘q½Ä§3Uº€7‘e�ó—nT*Ö"AW•lwÝ*•BV&/f¥(újg£ë»°ïB×èT5»ï>å¢kwÖíâ9~åUÀö'W*ÎÓÖtÇtkÓg7Ë% XZõ³ñ”Ý5ý¾ƒŸöRÇá�E{&Ó9cÆF‹ùHò‚Ö¹‚çë8á'ñ1œ¶Wç{6žÞÀ9¹Ó›&�è`ƒ�Y8#[ð9gÉÏÕØæªPÅnËá±Ó‡éê± !ú™£M‡pÍȧÀqØyŸjI¸é±ó0[>v�.&ß }?^0–âè|týK§ï¢†€Ìá–K¡e}Eœ< (âUÆ ý‡DÇ×Bˆ?Ì—“) XZ~ —-Ò4İÎT]:[…ªÀ›2‹ T…+Uaâ…•]†ñÛ³Hžk "4ñã‰H�Åš— �Š<ÞjXçj¥æ9è-zv„ÜÚÊJr Z†µÊº.Y{9Zܱg“Ùí"$Šs‡Ãáù^ “¬LëÐØI5ÆÖí3Šœº6í³ñ²J¿é4ô˜� áÃh:¿ »†ãÙ�—.³;1•w™×A�.½Nš<¢ØA3 0Ó8ÔBß®:ÿ%Léõ<¿þºóTæU„fG#¢oY#áòáÏ�¬)*¤ã7²®^kN3œÌ5ǧ0{Õœ€Àfµ“Qƒ/,1NN}‰7[”Y{JT GÞ�w83x¶sÎ=ÿÔBÒÔ¨jE\?+ \§šG(M’â|×Д&êH�¹ÔFü§Îäm8 “›Êƒy¦cûÎ6M=2šÚ‹ÞòDœ˜î›; ªÿÇ &X¨yZÅ"$˜4= p¯â¬Oš]¾…”á›�ïï1õ œØÿ (”æþßµŸ:Y`ºÃ�sZ…:LÍY—£Q‡p»¤.š.oæ¿�ÃëO·ØÉˆ©°¦‡!ȤN]gë[©žÅ<8•ÖmÂÇ_Of¹ã³že¬jà'ÍÆ?Ý�á|Çfh¸m±nŒ&Óð÷³ð¾@…p;�ÎaÃa`1Ë!ÑÆ4­»{S(Í ƒnR©åWY½V+X–[)^¾bOiæ�ã)ðX>zíXÌ%—˜—ŽÚAmÛÃü7ìF×!ÔQKÿJ¯�6cÍbkÂB…�ö~” XZœÉö4ðĪ?¡äƒÊ7qñC{™Û÷ h®2ÆÛÍkœ•|?!ãØ¹Áž¦/%„e-÷M ‘‹¯$à4´£ÎÆ ï Ë Ïñ”õðž¢2ŽL\áž|’O?‚Xã,ðUŸ‰s³½W¥÷ŽÂïèä»Ùý;Ê¡Gô¦”õçæ€H±ÀF˜íÚá䓿gdç¦|—YÑXM„Go[¿1>stream XZhÞ262P0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@A7 ˜)Hq�~HˆPÞÊ6²- lscK˜ c3¨EùÉÁ©%Ñú.nú!©%±vvZendstream endobj 175 0 obj <> endobj 176 0 obj <>stream XZhÞ”W]wÚ8}ϯ˜sò{ÀØÆÆa÷‰·¥§$4vÚl›={„A�my%™”ýüâÉ&qÙeIø�­¹3ºw4÷ÞGÜË“óø¤Çp ^ž86è?ü XZ\<âìĆ{|ljþx<ùÞšäR‘4eù=�|WDé‘k9Îy4žƒZQ˜�g]Çiw�À=óZUeaé)ÐØþ#þxÒ{çTn»–íº.tûÖZ.0 $}$ ,OÒrA@/_3^Jôs“³æ- ¤<äè�ïÍIª6wmkG˜ky¯‹Q©]jf?£+"aNiŽôd|­ÙA ÇLtIÍŒZqMÀ#u$\š¨·E¹k1‹ZPJ­Zý©Gí’äfeJÂEd»F@ãŽs×~h±,'E!x!QÙÒYÇ–²ÔJ`!Øš XZ�+^¦:Ö´ZW²¢Éƒ‰c‰è« §¤€Gä¢TR�1 XZD™+–уl~š\†¾A»ëá«åÛÈ&´óŒ—¤êƒq:º½‰0Fܼý³³3´t÷ÙÏÈOL5!uâÔÀooÞó««x~1i�I–R¥0ٞͱô™\YМ›ƒMß'¥âsÎ^]³„vÞÞ¯� ±\^]†º"R]£_€-)Q¥ �¼ötc W¼‹O#TûÙnä4Ï· XZ“YWÄØ£fìtðÄØb½*ö�Æ“/#¸àYÑû�õ5’}gõ0Ð0ƒ�ßTR<؃ã‚ÃÁ±‚ì©?�.fG›§{æ"µ��Ç"dû™íöì~ÏöAÇ“1{H!Q˜ç׎ßzø`á8M&¦/|)r}ôGXfÎ�GrÿÉ=>"¶·>‰[„=5n¾mïaî§°Eø›çû-j<™†ßôN{rjŠC šùUÕ|}Ix?�a¾ÑÝ)SõÊeëôKiÕbEȗ쾦&¼,ª¦so™Ú‡k?ØYÏ&³ÙèÀuEK¢¯£™ù1¾™ê¦?À¦AlrEfÚÖmF(Òq‡5í�Œå\ܵ·XÝÊéšb&B^fs,cKÁ3s܃ҭȮ!‚¥q…&^â)NÒ ûlì*aØ/ð²hö¾º˜™®/ÁÞðž‹ ¢Hª›@l}LCiê�,™ñnV¨/¤xcó²Â¦á×Fµ:È¡ƒO3N]Éêèo1†Ûç¾·Z º3+¯zž¶ Õ ëYgORÕ•ŸÀ.yÛñ[kýA a®í DŸü#ÀZendstream endobj 177 0 obj <>stream XZhÞ262T0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@A7 ˜©HL?$Ä (o•(ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 178 0 obj <> endobj 179 0 obj <>stream XZhÞ¬–Ýn£F€ïýG›¨fÆM¥^dël•m[k¶�´îÅÆ1k`Ѐcç5üÄ=g0ÛXY);IœÁ3ó�ÿ3ôÿœ2x*zƒ^?|`,zÌúÁC†žAÚsà ÿ‚�>6½oF!Êun»6c`�ï˜zfÜeEÉ“$Ξ€gŒs¡xIO´óãt2ƒr)`2šXŒ™ÿŸ{ýO¬kÙŽëº`]Ù>#zô¼‰dx–Ub/Pã÷×úS£°˜íÒaf;¾?hé{±4õÁ•iùŒ9öÀðô‘àZTÕ"o§‹I³8l-n«ÅÜ´8 V=:µ:®íÚ¢MÀ�ˆ СLóD”’¸(A. åߥ‚l�Î…* ÆßÊaE¨â¼„~$žû÷7ÝŽnÿ92YGéÁwR­S"…„`»4ΤÚíÅÀBÉ¿Ga%Ÿ'fFÎU—±Ì XZ�x@á*Ï`ÇwÕ–õ5x7ß�âJ$/°.Dóu ˜r#¢™i×ÎièÙ%Y;¾ZAhÔ¨åd<âõf‹X£ÞÅls XZ…¸öp8�ã¾W¸`0oæ.„Íü XZ¢fî�hæX4sžšù–4ïŠ¹ÓØVYñ M[N‘ÿ 6q¹ÓûD*~&ïoó™ _ÆãZ´ñ¥öð‹B»³Zl»ïï1D}žIì2yž¼œwfl:FÓ=t‹ y! n„U›Ù·A\äI* j]þR€ófç긙Qâc-qfŒ´ö˜_:ÓN{W÷E†[:šb™aÌý�Eíó(££$¶ø…TÚê•P™H(¶xY«Š z‘.i¼œ÷%tÞ£Ô¯0ÁA> µQ±¾Ü J±: û^Óò®¯¯é^EíѼ›Ûå¨ã\é£3ª8’ßrF�ö?¡Æ«ëA¿'hB•ô¦uíyWml†ñ•Š›hŽO•PÕ};iN°h|µy¹¢³ˆÇñ XZ_"|ÕÀé:P=¥•?�TÅ»¨ XZ©ü=Ôä5y5=GMßA�«.ê©êÔ"î¢H�ˆzÅ·\/ù.ä‘ù[ÈÖ›úßjü!Xžýkóø K¤ÉÆ3}ÝÝ\ÇõõéÛ ÷¿Zendstream endobj 180 0 obj <>stream XZhÞ262R0P°±Ñw­(q.I,I²Ýƒ Œ-@Avvúnùy%@A7 ˜©HL?$Ä (o•(ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 181 0 obj <> endobj 182 0 obj <>stream XZhÞ¬W]sê6}ϯؙû)6¶“vÚ$—&‚M'�ÜÎa Pc[T’¡ôgäwecCÓ�iIb°³Ú�³g�DóÖ³a%/úþEÓ÷]°Á_^Øè|ë:Ðm·Á�/,XáŸèËîâ¹6J¤"QÄ’�$„Ɇ XZ¢ô�cÚvßZ"&•„˜oiKÁcx¡"¡„D�УÏÇùÄïå©�Ë,Ü'$f,YDA1ü–rEòÔÇÔdúرñÄ‚aÀ%’c ô÷ M$2%[e¼_æMnæý¯½iQ\E<¾Tˆ8…ùxÔŸ{ÍG¼ZLAÀ%xQ!z €‹ðù rÝã"•‡ò‹xc.bœÍ=²Ë èFr¢b­ÐÛáx8]Í@±%ìy XZ$P©öR±nM¶ǾHvöd9zÞ ¼IæÏ£O|hÖ< ‘‰À$, ˜oÙ‹,�s["G‡ÁW‚ľÔGÙQ ØÆù;UÁ—ú;š¿•)ó-Wó¨ÉÕÜ= ¨-5–I@!¦ŠŠ“™úXѸ?¿ÑÅhT%û#k§þ¼H—KÔ¡€k,L«%…LàÌbÍ‚FDáD(žç:_Òj£eVÐŽÒ£hº¿¦È@Í–ƒÎPœáƒmC§´[³` -KÛVô–l ‹È"¢f© èºøh½ªµN� 5© |//Kçß²¥zc Žš“ŠH²¢š6’ÇÙ>ñZÖ2R¯H£tµ¢2ƒf�½È(E|Ý�…UyGÈs0!X�lÖ{Ý2ì¥äGŸòXktÜ; O¦F˜Åvì+¼K§‘" E~FûJ¨&rÍÓ(„vFJ¶JŽ�^DÀÕ9}O5Õ'Óܺ`{U:O«³k§ƒ×AÇnvœf§…Ÿ{®Õ¼Â_û]N+œ�©ÐêœÌÛìœ XZ£{ËnZΩÝS¥³§ƒÑÉ—©®Ùíº]0ÜC¡åW(ü~5æuOúBã±c9næ`è_ü)ÀZendstream endobj 183 0 obj <>stream XZhÞ262V0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@A7 ˜©HL?$Ä (o•(ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 184 0 obj <> endobj 185 0 obj <>stream XZhÞ´W[S£H~ϯ8Uó¬piÂÅì<ÅÀL²æÂfgG·¶HÒFF)ºQ3?c~ñž†ÜŒŒ;e¹­b74çþ}§Q?–¬q6Ô0´€@xÛ ˆügë`„«†Kü çâòظn2Ê‹µ¢+„€ –.ÉÄ6LÒ¤ŒGI§KˆÒLÖ4�¸X‰��Y XZüŽ‚çx2!Òßáï õ©ÔÊŠ¦ë:ÈmÅ‚ÐKÃ0…Êëæø‹×I¶Ñ³I$ù¼ÝÖqöA’MÓÄ np`ž¥<Ï’„æ nš~ßÖT¿�2¾Iè�TjÓ@&Š.ä_W/í¥/¥ú#MWµ¶ª™-ð=ÍÀ‰ªY-è9=èØ–Õ*E[±mëHîþýîjMŸ ÓÖ´8ñCÔ‚OÅ·ˆ…ë`ZR»BœÎ“b�U<Ëø\ ùÁJjuÊ©òó¢HZ“ïËë.+’DÉc´AY" �ÒÚC3À²#�”šRuaO £.`+ :)Á±ÓÔróG{b†~B‘Æžì]Eh XZ'Ðh~w ²ëf/Ðô-¾¬i½îï•Äh–= Ãˆ¿œboÚ€»*äe!ê?|k 6­t}søcV°Ê>ôgôš»£ÊÝѯ»û¬ð�þÔFñª.îWC(w`·´Nc4Ρ»4Övhx&ãDé´^é´Fé××¼ÿZyÿõ§ÞŸ;ÀÃ{vâ¬"fí­h=ÁÆÐ«‹Ñû…†—Ç)ßRê!`CïŸQ÷Ko"2ÕÆÑ$m„˜­ëäXÌ(zŠWÅ XZÒb5ÃTaÄæYR¬Ò²*E XZa]IgÿCà÷Ê™`“›znÐÏŸ„4§c7üsâ_ÆŸáíA<æ:ʳü^t𲙊ƒÇI�­Þ@uJÞ ®0�ÓA0ññA4§-ˆªT;‘ÄjZ+!ªa¨f[Åó ÝVÏñ×P;mµc(°WïVeñŒ-‘&Ó,•¿Ó<+92ÝÛX×À7ŒÓƒ‚U‡ß P4'ÇwvÇ€^ßí]a·w «è¡ÇðxRïA°8YÌïkį³2ÉeÄ+÷BtRm‡ÝÃE–þà¢>’xA?ḆWœá¡gsôiMS†]±FvtÜ)ŒÝ„>ñõú,&±¥Q[¾kÃ6±g`áym XZ#¾G"0ˆo£7~ì*çqÊ\%®±¸Ï3ëŠ8!cD›—>8!g.#”ž“8‡ŽËJ±‘ÖXŒw"õ=ø*6ÎÆ¡�óÌò™ý£ê)æ�+O18>,…>GθbJãìÌöŸê4»“6ýÏ2 <ðÄ¡M‘/92¤(ÊQÆBHÀøAM�ñ}Z¡usáÜ“#øJ�'“c!Öh‘¿Ï¯Õé5�—‹1TÐìvAÙœÙ:ÅdȼXÌ_üãÌÊ5pÙÄ‚ZÊuR6­›ß­w�x9;›ù»,r·šˆŠ¼}y&‚åJïUК5º+ðØê5wÛqJ0�YŸFò”my Aüy±šÝÊúÁ,‘B@[_ää6ã�Zendstream endobj 189 0 obj <>stream XZhÞ262U0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@A7 ˜©HL?$Ä (o•(ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 190 0 obj <> endobj 191 0 obj <>stream XZhÞLPËnÂ0¼ç+Fê%©d»I,®ŠèPñ õ�Ç–FÅü~í€Ô®µk­vF³³³õAàd£…ŽfZÐß‘Hžÿ”„Ê2èK”âäSסܣclÉ�W.¹`(²„ •å"ÞëÊ®kÍ ¥i°»ÒPºÐäâ°Doà~ûåž ‘|é�hö.²Œ§RJ°7^@/C›ey�<Æ/ Ëóœç±öÜ�9 dÑ í�ÜûálQ�­…é QC FÓ‘µ¨{S�Ã@Æ¡)]Y•–PÖµ‘�äS0Áeü'so»¡é ñ ¦_ý|³]®HX6ŸÏ=l»K˜òñGlMÝ� MŸ{v}}~.ûðûwgÅ•*X1N^ýÙ·}"òø XZ]*oR¦²˜È+ý XZ0Zendstream endobj 192 0 obj <>stream XZhÞ262S0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@A7 ˜©HL?$Ä (o•(ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 193 0 obj <> endobj 194 0 obj <>stream XZhÞŒXÛnãÈ}÷Wô#X4»y_d³ð¬œÅìÜ [XûТ(‰1EÊ$µ^å3æó-9ÕݼÚƒ±-Rìª:Uuê¯~»çlW_|X^\-—ãl¹½à£ø XZz[.¶ÃÿeB?ž/¬�EÝÈ<ÏŠ“ņ};¦•lè“°9ÿp¿`eÁš}Ên·sÎgsŠÈ³îÓæt´é+lÎöÇòw²+Œ]¡íâ£ëÙAÈB'"ÛÖõííÍ×Ådzl¶ü=Áõ�íº.Y..þî8Qø}לgû¡¾÷`±ûå,v¬ë¯‹™ë[ן¿}½a‹�÷Ÿ>_¸ùÌnïf®c}ûíîú‹ri@8ä„-|yds›Ý7ˆZæe‘ÎæÂw¬MV?ær�ælF�ÕŒGV¹«ä¡�Ñ`+lŸÍ¹íä—Í_ЩÖPÕÝ™¬?îX©SXV+8ë4)·A!4¸Åv¹žŽUåÇúŸùFÐ"ƒÎØdžRŽ$[—eÃyLÙÊ’Û&­”!uu�—Éc­LŸé̹pmÇ�= XZB¨˜2Æ×ÕÌf•� ~¾ZpÿT§Ö”ì˜Ë$Å™,+²&“9Ó�*_(n¶Ië¤ÊÖTL䉺F.dMÍŽ²jðTYÔölîsߎt=J XZîåßà–…vKæu©­?ïS]•E·²¾Ëï«++V?ϸcÉ#][ÓµÞ+·pìX¥H¬õgVžêü¬]Æ�õ¹nÒƒvñpª�XÊå&k“näqÛóâè] ²Ò�­€ö„í8~4Z~EÚ/q–kë�d3­ XZäv/u^æ87ô¿‹I�oXyL ÛØð^镾ůޏv¹�+BÆ•-åk›&M¦7㾕"sÕ ±gûõÃÝÍõ'Š=emð¾i'Ïv}1ˆ}H-]ø�×Û4ÌÀÎå‰mJF¸©®ö}Ö(4în–ÿºûj@!gÎô}B~ÑŸ%é±Qª¡€(Žƒ>ý<ŽbŠýp¤\oQ¹u—7Y²—•L¨y«´>"¿(�S²gÝ b©¨™V4J yÔõ«K_²âtXãÁ•ÕU«³ÿ¦hcB½d(L©Œ`§V©îdôeQg@±~:ÑÅ5üÐQâ[+ëaÓ?õ‡fßq¬›¾Â)Í™šè�Ù XZ�Q1Ìѧq2â}S ز‡vlíd�`ÈKd£F{¸ˆr _˜Y ŸÉµ¼¶Û‚0uÈ#;pþ}ÍüAEƘqÚ›š{”Ñ>­‘™^§"OëZQË^Î„ÓÆ×±ÇAn(²Ø¥u dW™4%#µ†Ë@*‘ :J¹ î—µîUôÇÖܨ÷t XZNHdµ¡Ó™Ó“Þ2Ö.Û‡dQ?Ý‘øŠí�£‘wžb+ü[?è±mƒi�4¾Ð`œû!ɉ�[¦¶ÛNýà±íÇ"/^$–·—B¹–ñÂöîÓ›v^“ºÉvÚuCÝ1b�Í=1Âá Ú˜»ðß–Àƒµ) “¶¾^aBè9!ZI®@Ù–y^R#%J¶üä;ŠØ Kï¾w 'O1¥Œûç^V_xá«æP�ÝäväúÓ‘ xÉßÜs°`ˆ`õƒeñÛÖ};ÌÁV%'µ{F¤XFRbñrûÚÑ3SÅ®‡A­d>`�ˆ U�deº¨Nõ hÀDr—ŽÒÖVŒ‹–3eþ XZ»™Y?é³IÑH] ]zBË€ÝÊr.ñÓ”åðЃb çœ}ÎpÓk[Ì2ÏóÕ¬ ·æ®B^ 5lpÂf‹IAu¥ðùÚOtÄÕ®•MyªhhD¹êÒ?�æõdíƒ~ȧÐ�[•&3– ’åJÊë®—‡cž¶6Ê£ïY1éRèêàÍ^ 8çb¢OÃÊÛOªLÉý m�EW’ºú¹ÍÙ$cdƒÂ"lgþEnW§*Ã:CŒôwü×JTÂbeõŠŸ+ kË–n=¯¬ç*k X;]òËt `im/&f±EÆ�×ÁZIëCfoµ@n4H.­4î)–U©)¬ •à�=ëž*Î…â¤-ô>stream XZhÞ,Ì; XZ€0EÑ­dÑ|$•ÆVL:±Ik@¦Èò}Ât‡;�ÑÊ‹NL“\­‰.*ðšz¡…ÂŒõ!Äœ­ý#¬00l;¶ÅF³úÀöB�?ÜÞz§B‡Üæ(sit†ð 0Zendstream endobj 196 0 obj <> endobj 197 0 obj <>stream XZhÞ´XÛrã6}÷WàJI€w¥¶’Ú±&[ÙÊL¦ÆzZ+ IÌð6Z}Ð}út·_ýë�¡£º{½½{µÝ&ˆ¡íáŽQd~àO 4ŠÐ¶¾£è¿ÛÜ\žî±úÜ‘€0†V(I+–F1Ãß6Jóª*›#âM�¾ï„äÚ<™7_?lPÛ }èýæýбÅÛß…$A+sÙnîpÝåá²ØþvVŒöÃb‡KÕUü²[ ã‹¶Zš‡Ú,äpÓí0—ºÔeÛ(xü´ÃçRï_›�à\�?WFÖ,„“YK~ÍŸyå{£�«z‡/�€› Õæ¦‚›½¨àî°Ã?³r‡»þnvX–‹ Æ?-XŒEÁ5w >yTæØWXAB(M=¬Ã V’,J ¬ÌÁÚ.2jÀ R�3j_¢‡·›%zûpÿ~ÁÃËÅ*ˆ)n«mÞÜ/ÑÃý÷KôæaׇmL“%ê¤AD¢ØøßZÂâ´_”5 gcÂ’ 1c¿(>/(ÖÎÓ5¿ ½ZðT.j �³¶ýxÍâÀóz,OÍÁA]ùÁ–ÃòÙµ(JŽvx.çPMé:kâÍà� Žå}i.`®¾£Á}øgB--®ŸyÝ™÷tL@`a›>lÎæˆ–Ó‚þ¬¶ê¿¢¸¾Lµ˜¤Y|ƒk~qè3®ÍÄîïé:ºÏw½ÏºaߗЀŸÎõ^˜dTZÜ4+n >9Ô瓃Z“d�ê ˆ¼œ® ®:+_ÃÔ—®ÿHJ—( ò%bëÆ@è†:xcd»ºô[> ú•ÿêUk*ô¿@8d;ž¦ÚŽèâgwª/ùn¾ÙYw|NàC²ì–À3Bƒk7AX¯?ÿ (7 �Ó cdæòùŒl“5§ÐoU0Äì+¢ò}ÞÈ?Ð!@žk6²Æþ´kc0&IöMUÂ7¼¦šBâM¸ XZ)‰£t=kÜÏ�É͹HÒ¸Gm£¾rŸ Ý:t ¾e£öSŸÁp8ÈíožÃo:;‡ Š›"Z¥JÓöä§¶ÌMSßT—Y>¯A¬Ã‰Eÿ�‡ù“^n¡Õ™lAÄ+Âïæ“dœô�lóQ2‹’~õ%ׂ~“0› “5÷sí�É~ŒìÛ?HéF™€š)(7 Ê0~�Úï¯ÌõÁh†bîÓd[Û¥½íâŽecfÔa®‚šiª×Ó©ÌO~në9«4ܪ¡±Å&anÚyi‡6ÏÏ])ñÚ@Í\À¿�\¾×>­íÉçéAhô;iå­<^yµ¯ZGÍ�Zendstream endobj 198 0 obj <>stream XZhÞ,ÌA XZ€ …á«Ì 4ÇÌ@\•m%ÝE‹· 1 �ßî>þ• ΉµÑ–è¢ÂÞÒZendstream endobj 199 0 obj <> endobj 200 0 obj <>stream XZhÞ”YÛŽãÆ}Ÿ¯è¼Q†ÔÃæ�A�`cëdmÇ+ fü@Q-‰^ŠÔòâ‰ò~÷|`ò+9Õ’âÌî(X¬Fb³YÕu9uªxûíÁöíÍÛõÍíz1ÁÖ»á2ú‡?±Çâ `ëã�Ëöø¿ÎéãñæÞyWµ]V–EµgYµe?œd“uôËãB¼ýpÇêŠuÉ~¼ûq%Äb%b/ œ²ëOœna+Å‹Ÿ×ßÝ„<ŽØÊç[ßÝ8ß´Å¿%+Zµy±þ…ÔŠµZ�C¨EwýǬ…yFzåÞ)e{n;yd›²Î?2õ8Ò°=Ô}¹eÉJ¹ëXÖ) [¹[×Éú²cõGö®´ZÅ<ˆ —à‰’x¬·ÅîÌNYÓ]QW-iàÒº§Ö·NÑžÊìü°`ÕƒÓ7²Á×öÁ‘¥Ì;|ý„«¾üÅèîcû]žke)Z ºiýÕ¥Ì=ÕGÙ5ôãH 9¾œœAá/¨�ðTøŸSA/Zî/¤ÞAê`@-Xiˆ¯�ÎcStòB,YöB®ð‚ÏË¥ÅQîß²�,Y~Ȫ½ÜòÅ*t]çÇÌš­¹Ú²ûómõó31wãĈ9ÏÅèŕǵûoëºc»¦>²î÷¹Kw)pŒ+âZu XZÝÉ˼\DÑk‰Ã]z©Ô®$’·<#?êVN"ž�ëžey×#ïÏì±(KÖ·’<á‡\8ëƒlTæV5«¤„®5keÇúÖLž4ì¹kŠ…:¿.DèÈ…ë´:÷îyÞàzîFI¨UCr2dó\÷ý[vjêM¶±Ú(­ÙÂsíñÁ€=¡ã�_'ÚJ*ÆTžÏ…k³QùçKÔªävÉž²'|lž”Ÿž¡ëlŸØ®nØí’µ�*INjí¶oÖÈö$ó•>/ÄFQ0æ9"?1Îè&*Ï‹(t`¼ÈK¸çü$�’`Æšð¬RÀCPvamÚ œ!$µ¹²0yêhû¶Æn¸ŽÔ%/oÎì#i,å ˜®”àèïš À XZ$ðPì²íFqj¿AË ¹¢ïô³Ud ³êº„Ûê�ÆY�‡cèr׋̹¿¡×‰f±òâÚË,?X©ÛgqcnjûÓ©n:D_QYß& î‹4žúöVvùíVé²Í¥› aý<(µ´bH‡]]–5iñHe¯ÈÓéQfÔ5]À&±†TA�àbѧ øn< s?Òb¨f-qTzО]êÔ?Ÿ$gÿ\ø&†ËÈœ6Óðxzx+_j�Â_Ó~˜š˜Öz/'NTùt† ’�§Îv7¹†¶ðW¥]ÞHYQ~ÒžÁO•]íð£¶?TrÔÍGÎ>ÔKVtc".k�‰¿¶ßëÉÇ@‚NÅØB÷H ]ʬU„ZÔHµƒ4¥[”‡êÁZKöx(€9ŠÄúêΗ5 ‘8{d¢.t‘Ão*õ\Ò \ñZÍÇOy˜ø×fNê–N³×¬£[WDùé4Ë=_ß·�xíÖæÌʺ2DUÑW#Çb—Ç[õ"Û½â-I‚`ZÜXÖûÕ,§WF3ïºPªï„Ø.7ÐG¼©n‚³xáŠk#kòlEˆtÉm(ƒ¬¼>žŠRÁÄòÈŸxšŽ÷ZmÔÆ=\` 4ëÔl:Mßb·ò¤òé¶?ž^®£‰)1c§iUðRëXÊIwŠâM�àóÆ+‚­Óôª XZ7麄í®iZ :ïÐ4t oý°¡QÉõ€fh'ú4¨yÖ]áZØ�éÛþJ‚з� !–p—ÜÁ 4)A¶È%Y4 & ±¤Q>;Ib\óÖÑEmÓy•óßÏ#b}:QÒP‡šÄ(Ê· XZÝÓ™ì‚Êa2iz„Gv‚G!i_ØùZendstream endobj 201 0 obj <>stream XZhÞ,ÌA XZ€ …á«xKÓ ÂUéVÒ]´ˆp[³ðø½`vÿ> endobj 203 0 obj <>stream XZhÞ´WÛ’Û6}Ÿ¯ÀV^@׈ð¢ËTÙ©8ʦ¼‰w\¹6U£<@"$1æ-Zf ¿öàó@ð�ÿz¬[¦Œî®*Ü|úCó¢Zl�69�éº-k”q¹Ë�kþ?õe°ÇC¾=0ۨʒ;ºr¹ñ!œ$á|Ï9ŽÄÜc!2u9¾¯KäûL„szÎ�Z)< XZÍýÛ%€ùÜ`^£-ÐϲRUÞc¿Â‚PB^/€*ç4Ð=ÓN›2‡ðº' XZ0Ê™çâ> É€9G¶AÊ‚&b¹“�§$¦�µg¾nòÝñ22^ÒpŠÂ„8$ÅBz>stream XZhÞ266P0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@Á�#   HÈ6²- lscK¨â€¢üäàÔ’hýZendstream endobj 205 0 obj <> endobj 206 0 obj <>stream XZhÞäVÍ’›F¾ë)ºÊ—ÁµŒfF .©ØZ»œJœ­ˆœÄZO Áz%©Ê܃™ÍØ ¡c”yÀúOsŒÛ¶"HB2r›×›t5SÙRÎ dÉQé§Š�ްQI ¥[«�V´Î"-Þ6~ðt﨣.Ìfƹ`:�ž­8Vs1LâEë& ¯E3³©øe`4.M:û£¨NÿŸz|}‹„ÔÜŒ›¯“Íöƒ¶–Ô¶»ã q“'âÜ¢#èFa\*]>`;ÝVÕþ©ÿ XZòðZf"¾>�9SP%ªDí nv8Âr<¸ïåÐO8Šª’i�cyí¬°î–Q«p‹Â› iÅ%òœQîºOL¯S1ò9¼‡Õ«˜·Þùˆ:“óΗ®k=xhhýã�ʯ_Ýݪûʼü/­FôŸ^�è¹V£¸ žùÝÉ~żTá4¹¸°­þI8>cñ_䅨煔`!4û à¶#ØÈU«ÿ‹®ÿFÑý#}¿Û«d=®Ý¥|Ö¿—ª�aù`3µú[,ýÿÁ”ñs1%·(—dQ·{·dð¾Ðv­CÝ6LØ�ùµ?ùK€Z� XZendstream endobj 207 0 obj <>stream XZhÞ266T0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@Á�#   HÈ6²- lscK¨â€¢üäàÔ’hýZendstream endobj 208 0 obj <> endobj 209 0 obj <>stream XZhÞÌWÝr›8¾÷Sœ™ÜˆNÀ’Œ€p³3mº�î̦™†;“ Œ1u‹ Ax[÷1ò,}Ÿ}•=’ ;±{ÑÙzphÀZ4£±iÎ2ú‡ÑøÚú9ps�–V³¬6e–ûÀþ [lâ�xaϵÂμÅ¢4’ÌÒy¶È?)máx^;]óyÁw®XW…ùÁ‚ˆÞ‚LuƤ&Ä]eKX%[˜e�÷¨Ë¢dmÙ\P’àPšaK~—CbÔY×+úë(S%þ�+óóåÊü4WzŒwÌÁ=êð¥’iùÙÒe~„.¯XWÜGfôèR)œcÔÍOD}Š-ÙÄï‚7‡ŽƒêTçýofËõq¶$7+®ß[b “}CSÿþ9ôŽ$ýçнÿ-¸‡ÁóÏÙÌÑP¹ÊšZ½¬” ÅA“'O�¸`©MZöûv+´¹ãšÍ�»*„¿ïÞÜ*ÅÞùu¾”_Bøx-Üο"™eEÑÛ»èýÍ»×7¸JþïÐTïĘäRWŒ=<)ζM&Ǧi„ ï,µ}dÜÔIŠN0ÿ©6ô9î÷”‹]cê¦5¸è© Îæœ>u¢ºZ…0ñÌaÏTcÝëYó¤IB Ý¯;ó·Éœâ~ÓÝs·ŸÂ½k�#ÌUæ//‚R]©ývÒñÌB ØL ï5޳Û;í•(QÑ�kÙ>ªâ•H�v÷F¹«æó…Á‹É›má û6¶éW±µKÌ Á<ŸS ò«ÅðPP�eOÔÄá|œkcîüBŠÉ3gem‘· ižvG­DŽä¸pº•€n£p\@;ÙÍÇ¥ÃJó„‹éÂSºY¼YÞ”jÍJjVá”{ÚÚÛhôŸZendstream endobj 210 0 obj <>stream XZhÞ266R0P°±Ñw­(q.I,I²Ýƒ Œ-@Avvúnùy%@Á�#   HÈ6²- lscK¨â€¢üäàÔ’hýZendstream endobj 211 0 obj <> endobj 212 0 obj <>stream XZhÞÌXÛŽÛ6}÷Wð‘ XZÖ\’%yÑ´@²i›¹ k ë<È2×VW–¼$ÇE¾5ßÒáE²¬m.}HQ±(‘œ93s83ÜË_nZëɳùär>OCó» £ÈþƒGÆQ–$h¾�P´†ÿóÒþ&·øe£MQ×U³FE³BovRƾqÂØ³›kÔ6Èl$z{ývÊX4eÏ|#Í~Gì4E‹ÞÍ›Ä$ESû3¿žàm»ªîŽÑüOÐ3e„»�«®ô®.Ž‹­X¶[i”}ÙÚ‰».”©LÕ6^x_™Eô“vñ`WNf,ˬЇ0lž²”d"¶Js;‹ß4èÕÍó·hUé{�*ƒ*�v­ÖÕ²–èØîÑ¡ªk¤¥D:DŒ‚Æ:@*Õ*TW÷ö›Œ¦\Pl6•¾rÖ‚Yœ$^îÌÊ+$#&ð#›¨)´A0BíÚ7 š¢˜1N݃QÚI XZJZERÌSš žåb–ޤ\„R.|�çZf}f¿­Tå¤XÄ.Š Š%d†ÛðËEDzX”²ÔÃúÕc‘ƒ�«(¡øÂþ€ˆÄp -KÓ*Ý�Ñ÷§¸­÷[Ù{èÓ�à^WbåÏÁòØyz‚'ÜC©ƒ�Œ*Ê{´À�Ï�´8d±ì h]�Ù¢ÁŸyB8fœSÏ8ø!øøY¡«~´Ü¹èÖ=}.d/ BgêݾöÄY9JSOèí¶/!"–£6zDþ‹|¶è}xN gxØ_¿±Ñ˜¿¸êÖ„Ä“$K3Ÿ”�Ír�ðg+¼u‘œÆÉŒd¸€—Æ©'¢ëP® `˶÷� XZNŠXŽ-[6=š$dd.¥)/mi7P©½Ê¼pʪOc2‰ÎšZŽ™ ½¨Ïe"õqgYvŠû8Ò׺®®´ëP]oIEÖzÀ‚Ð7 XZ\Ô{hy=ù™Ã§yÞ· XZ‡4*ë�ÊzÚ~ŠF}BgÕZendstream endobj 213 0 obj <>stream XZhÞ4Ì= XZ€0 €Ñ«äQSké¤uÛMDº*H†ßq{|ù!"¨`p*8‹çX¹F«÷î‹%imõ5L©‘¹Q±U·²Cj+Ý©; þ¿u@Æêïå¹Ï˜yÃe ˜ráÝûW€Zendstream endobj 214 0 obj <> endobj 215 0 obj <>stream XZhÞ¤–]Oâ@†ïû+Î%ll9ó=ÝÄ ݸ&»dm¼Ñ�©R ®@C‹º›þø�)Ô–``Ô¦í0ïyOŸœáLïÛ%�qîG^/Š$ˆFA°sQçM=„±ùF÷vxö®;yR,³€„€o–u}¢¸ �óY^Ä��él ñl?³döÉ®<¾ìÃ|Å$�AàÒý}÷zgdeK®”Ÿ¢¾çȹ°–�A¼(Ò"5ÚñWÈÓÉ!W‚ yZªõÛñÚƒ­yc±�aô¥-»[ËB6‰­cTÊü9ζe÷µ›"*Ô›o´¹²ÆG¸à²IŒ XZÔ{“›4.Ì®ÞÉMZZ²¦%]PIEñý¨"£ «UVŒ£TèŠ&°YI¥Ô••q¡‚îa¥,+U³R.¬8ǰ XZeKµŽáRVhªw²½î)BÛ¬8âÞìÆokÝ‹QrÜ]•SúRŽ–)‘Xž™k‘/ÁÜ»ð¦úó¼W1xSɘt*MÃ×¼uƒ›rwbo¹l¦OqÙ?¿:*ãi–¼„ ±ì›98™O3¸:€#; vn:é †é"¹/`:&7]'¬‚~˯‚8pÄ(… W®•ÆVw¡B9oyA�)½‹kžÞ&ñø1)/ÏoO«Ê©†£×¬~€jÎÀårƒv¾ÈÁrý°v˵ÀríV£fÔ©`• XZÛNÿ“W&èîþÇö�‹ºï\8õ͈|?ª ÕêÁeg+B·Í–³ež w4käT·ZœdÎÅHÊ}È”E¦jdUûiU`I XZ|h+¨Ž€×s4ü1ïÑy²C2½K@‘Êê@wyÿZendstream endobj 216 0 obj <>stream XZhÞ266Q0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@A7 ˜©HL?$Ä (o•(ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 217 0 obj <> endobj 218 0 obj <>stream XZhÞÌ–_oÚ0Åßó)î#LM°¯}m3‰—–2í�6TüVí!…@Ù( Vmꇯ�&%(K¦MBˆ‹ƒ||âŸ�÷ÞM8,ÒàÒ=kp°ó€3ð÷£´”` ÷µS_ƒÛÎûušÅ«Õr½€x=ƒ/Ûdgþ XZ#Î/'Cج!»O`<‡œwC®ÑÈÎ$ÉöÛÈw�´è~µ‚Þˆ¿Øb$µ6ŠH�aĤ$oÙÇ»l™-Ý�ñ[H—¿’�\]Àf>O“lÀ. û¹M…u×~swòý0ñÝïÄ/¹>}Œ·^lßTUÓBEB÷YÍs¿Þ§É¬®Z*¡Y_U\)�õ»=–Þ Q }Ç#Wd>³ÝŠñ§›O® ¯¯À7|Ÿ¼K}ò%9ÎP²Sèjè=°ôÀ&$ÔI�ã —ëBªbŒ ƒLv’ÓwFO7]Éçà æ �Ƙ¦è,®\ÙMçys„…�û3ß"¾1jÏÙž©"/Æh’jÖgØÜ­Œ5*EæU†¥ü#¢™piŠ"­®qv0$§6¹-ap]} 4…�–0ðì`�Bµ‡A¦_yà5…!< QÂgƒ CŠþ"\ XZämq�ß(Tnú�…t%¹Íq W¬ÍKdF>íT¦�Î/íêø%Òt}…ªn’¦ËëÓNeÚ韤½rz£µÒÊÈøÑòSÛmÇ�æ>oºœ:?|Iî’ C•ŸÁ®mð,ÀZendstream endobj 219 0 obj <>stream XZhÞ266U0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@A7 ˜©HL?$Ä (o•(ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 220 0 obj <> endobj 221 0 obj <>stream XZhÞÜ–Mo1†ïû+|„*»xÆã��Ä¡)iÕZ”øP)ÊaB•ZÁÿ‹®7n‘2C­4K)3óóíñªån•_§m�­Ÿ~(nÊ9Cî¾Ñþ.xn“¿ Zendstream endobj 222 0 obj <>stream XZhÞ266S0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@A7 ˜©HL?$Ä (o•(ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 223 0 obj <> endobj 224 0 obj <>stream XZhÞìVÁn1½ïW̪ìâÛc»‡¦Ðª=´¨ì¡RÔÃ&,„*Û&­òñ±—ÝZ�ÿ2F)Ho##ÿI¯B¸‹.&‹"»¹OF�Mðy–ϳ"¼Q‚xÞïÀtÅu½N/FlÆhȪF?/~Ì’°b0ºù-ýµÞá²,%Ê ±LÒN'B)J6zÙ¼cŸrôãßyÛ¢#!Î`:.ò¢-‰…:ƒâ×,oW 4Óï¾× XZÉÖR\W)*ÇO9¬F»+IL‰T™gžùðå��î[?šrÉv©¬.¥­UO…Äv�ôÕ:첆±¡Õ«$%tq—ͶqWNzn”[!ÅöÒAµ”È ä},e·âôd'ié9Õkþ¼=XØ}üm1€�¬ÀÓcÀ:†^|¿Ó÷ŽØïz¼/Eÿúн/òÉ Àÿ—_J¥þF~t’ìJ~å_÷Ò3ØÙ*)O-jéM·a[þûf.:½jZ³fw°!Phk>^öýg 9ï>zN’-P0Zendstream endobj 225 0 obj <>stream XZhÞ266W0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@A7 ˜©HL?$Ä (o•(ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 226 0 obj <> endobj 227 0 obj <>stream XZhÞÌ–OoÚ@Åïþs„ª6;³³ÿ*qhJZµB-j|jÔƒ“BEZÖÓ»¼ÏÂi!^Âb<öoÒ'å ûÇâç2ïW­ºé7ÿ²1&ª5jŒ«h‰5ojhíäC5ÒMñ¤[tÔxIZðcÚ뺱"–ì6b«Ð>¤Ž)Qà. ¬2G÷Ÿ_ûapúÂM˜SNÙõ˜mZY»µø¨»‹Z¦ mÍUEJéú6[îê.+9ŒÂmÃÝ©WõT2(u;€-ÓÿSüßc'a²iûùØ¿P»¿9\ìVê礎¯gÚz�ÏX´v›?Å¿ þeí_�l+j�¸n|XO0+ 7†ÇÇ@ÕˆvB)™[3à€€k||{Ÿß”Œ£Co}¨„PÔrë«ÑKcšßß_ï¢/—o–��¾qR‰CÓ'tÅ3é3kú5}૚½:>ôV’"óïÐ7¢*!£ ÄœØàµ<€žwüÁô㢋ªó# ùÍE¾¤Ëãäiý`Zendstream endobj 228 0 obj <>stream XZhÞ26¶P0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@A7 ˜©HL?$Ä (o•(ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 229 0 obj <> endobj 230 0 obj <>stream XZhÞì–MoÚ@†ïþs„ª6;ãÙ¯H\RÒª=´(ì¡j”ƒ“B•Z—hÍ î>0ò·»æ!ºh}�evw7žŒ ›ÜÀ�Y>Ïʰ¢ñtЃéÊÛú½~ŒØŽQ“áÖ /ÿÌ’à1hݾtߢÎg|IK km N®ʼn`–!e«ŸÍËq9ö!ó(Æ�y—…UB|„épXäe—¤Õì—åÿYÞ]TÐv¿}±1&¢­Å.b`*¤]ÅPʦÛb¸ëâÑB¬­µ”.Å))Á›Ú˜ ÞpUÂü‘ÔÓù/ozgŸ ¼ŸÊe³Ê¬®RÃË<;뻪eJÓjo‹ •´xÈf›ºë…Ž„F­”bÓõ¦v%�©Úu¯µ ù½/ÁbÅogÐÒZ潪¾­£µB®¶l$š}°Ké±{ó‚]ÊÃÃ®Ø XZ~wꩱicê58…Šw'Þ8úÐq²î8y€‡d-j>vܶŽcÖ©ÍN꺦®�º•ì?µGêÛ¿³‚|êæØMÀnjìæ=±“~ÓïUY#±oÅnX‘ÔM±ÿøtþÓ› XZ»Ù»Õɯͼ2!­4Äœ˜ ©fÝ‹–Ÿ�¿OÛ([ƒÉï¯ò9�ðƒ[˜\Ï\ô,ÀZendstream endobj 231 0 obj <>stream XZhÞ26¶T0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@A7 ˜©HL?$Ä (o•(ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 232 0 obj <> endobj 233 0 obj <>stream XZhÞLOMOÃ0 ½çW¼czH›¦AH»Œ¨XH‡n„R´uS>„øñ4Ûe²ülKÏ~~ùí’ÐŽbîEî} ‚d�b*ŽáŠ~' Ú)ý&Á·XÉ1ÄσfMw™)r…%y×�±Ùn»¾EÓ¿âñ†&¦)1çË XZûñ= ®jE”½ø{‘ßÐIViÃÌPº„¯ÒX6IÊáÇðßÓóÕâ©Éü‡`m¡Hs"˺b»éüú XZc÷fd %Ú™/«Ù•ªt§­£¡•œŒ>ì3²ò+AØ­ÃZendstream endobj 234 0 obj <>stream XZhÞ261P0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@A7 ˜)Hq�~HˆPÞ*P”ŸœZ­à⦒ZQkg`Zendstream endobj 235 0 obj <> endobj 236 0 obj <>stream XZhÞ”YínÛFýï§äUX ¿?€ÅilÞM£VÑ-’ýA‘#{jŠär†QÕÇèî¾JÏ�R”,;^‰D‘¼s¿Î¹g&o¸óÙ½¼ø~uñvµJ˜ÏV› ßcôiÀÒ(b«í…ÇîñwUÒ?»‹ÏÎM#UQ×¢¹gES±Oï EW�ëûßß]±¶aê�³Û«Û¥ï/–~d‘sÇÕйô[²4_ü{õZ7°ëf]\úžF,õ2ZÛyw{{ýñêæ_ì=[¬~£7|óFâ†Y†WVWó¼,ý»¹kí¹qjî}vØ?¯¯oo>þÀ~]„±óéçŸ&?ï~½[]ÿÈ~¾]®~æ|Z^Ñïy쬞s­}<ÊH’xä•Ä&¹ë»ìöC”ç‹e{åcA_xÑׂ÷c”6»�³¥ïÆ yæzAhª˜�¬çe»Ýò¦âûâtE¯D9Ô°³gbÃöíÀŠž³Aš¼3¾ÅMÕö‹Ès.±zº¾SÀm9^<}µ[øð XZïa�MÏù—JS(mŽ T©g(ß"ðœ¥öui] Œ‡y7m¿ek8¢sv‹e¥nìÓ ¬Ý˜‚/üØ)TùÀ>èç¾Ò5‡KõøBìyLgmϦ—>xSMë7Ï—kòkµ‚×ß²‘mÂê»±Q+!™Ø÷\êNÅ Û"\û^ûP¶%hoª‡¤ô¬nË¢fåCÑà5÷¤M=†E:7ó@Ü4Š7J´MQck½ /©^º'¬Í—{",ÊtJ˜íÑL’¡î%ŸZ×ÔU²ÑXja¹išE¦õuœÿZØ$#0°’w²V/Ú¯æ…äÕ%-‹†y((û6Íø‡È1ºjÍ‘Dt°]£yP¸7ëÞFi|siZÉOÝ,…ÚÉO´Kr@á<Å'Õ·ÕPRêÈZÝÂD?b} +tÓÄeTf‘ÏNÍYSl¹Ô¡Ò !ÅÄÓK»Ýy�{ÛNÔX•šDî¥â[&Ñ %úFµìÝÇ»Qä†~: ȃWz±÷—æåíì²k³L3÷l.ÖéëXV»xÙö`䪄uÃ&¬ÓZ«iZ XZ˃³uQ>ê¬6x±*{¬T‹G"Gº«élZÅh!±Ùq˜²ì9È ˜Õ€wq4²ÜbH%p™a’›†´æŠ›køLTcø… XZ-¤ XZ¶¦ßà—Àæcõ<ÊŸb|hÚÍSª ¼$x-Ռ˖°\h®[¥©Z!ìò쵨³¦¨œ€š×”/95S_ÍLí §)³Q:æSÜgn¦ùÿïMƒ‚rc§ÈÔ…,‡äwÀå;�,Ïc¼má›i¡ÀM¢ÌŸÁ=޵<ÅL¾U¯‚Ìg,v³ÄmƬÅÏÎýZƒŒý*ŠIµCzÑÖ€$FAG*rÚ8賕)Áfš�ËBäæÔÎçHÉ÷m¢�Øç4)h:]Ó‘µÄa”+�wz±5Ó XZZºŠ<Õº‰ �QÔnň�„¦dVÛNfaP¬Å€çõÆçÌ.Ú¶Õ¤o¨å¤Ú1‡9ê�eb ¥'øÅôóIm’,;ª ˆœNŸ4ò* XZ2$›Ÿ?½Ø™úaòÒ nªÌ©JÆÆ1É_+““̹9T:ˆ+*˜|i[`Žó(u3jÄ“¡Þµ®�áD8 ‘ÓéPó-WåÛ~¦Né¢(›ü‚XòñÑKSÒQ¬¬[IUØ´umÀDý¥%ÅÑêIðMŸ§ª/Iìqëó,Ob^ÇÐ.èm]*MîÏ«œ'�¿<`Zendstream endobj 237 0 obj <>stream XZhÞ261T0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@Á�  ©)HÈ6*0�²M€l3(Û È¶€²ÍŒ-  †å'§–D븸釤V”ÄÚÙZendstream endobj 238 0 obj <> endobj 239 0 obj <>stream XZhÞÔXÍrÛ8¾û)Ps"·,ˆà?usloÆ[™ØkfkËÞLB"7Á!Èhýû€ó,Ó €¥XI渕ŠdÚ Ðýu÷×_cùþ‘‘­ºx·¾X®×1ad½¹`Áð•ø$ C²Þ]xd ÿ×9~ì/ž%ú¡¥>eŒ,Hê¹ –„sîÕ󺮚-áMAî[ÑñŸpå»Ç"Ò—‚<Ü<,sÿ½þl¸hLÖ7N.w;xM‘W9tJÔê®ÿƒ†ùÆ0XêÓ—R?B;œ M ä£ì+»45KC¥8kµÅÎÇ[Ñ(ŠÍŸŸœL”�»ð#ϑ҈=yp™çð>/Éá²Èù‚Ï¢VÚâR`NddÁh¤=ZÓ ˜F?ß^7¢‡Å•æ™ü?—ýæÆžS5=ß XZr-wíÐC5ý]š‘dó?7ŠeŠþæö³eØMHáï¥ÜÖðÕÉ¡Uä¡Ò”5w M_‹ÀœŒ„äSb÷pæ®jÀLó ¤¾|èt$Áã34yXŸ�­ê‘e<_³Œóϲ k¹ÝÖ€ÜGêœØV½ª^ì.ñ—$ç 佄&`Kµ+ëJh�Éh¤©�P)xq&Ëßn?=ÞÝ<eBS¦³ê}r.�í"¨g_Vyir%ô°ÊãYpöU]“N´²ëɈ㠊Ô`hð°¡è"W XZi±/¡Œ;Q ®Ä%5ˆ <Û Œ÷fEjz0�V—ƵS®Î¨Çñrëd$ìe˜ª ä_.Ó8Û#x­FrÕMü`²ÜNlÉ|?žu Ï3�zPX¬³Ô;μ­ˆf™,ÜÌs®Ü qÖ×?/>Ü¿?©‰Ž XZ¦W¨N9wZ®‘ ’cײ.¥4 Âà´¿M`qتë«|¨�•Ï€Fž�Fö�ǪÔ;<»TŸtLaƒ3Ñ×»Rî˜P¡*½ãÜ­vAÞôÇÀ€ÈË’`„†…¾µ’tÑf¨ëW¢yõ¿XØ’ZRr}³6úéXe=9�¦~m쬜z¼3BD@'WM3�:Å¡!Þ•νgçáü4?>{ëøSýúV!ì XZÜÒ…`·HJÐù!ÑÛZ'–-8Pð ý§S}ê9déÒÏtþ¹ €M‘ƒéÄs±Qéòç…X ídæÈHM³$=íýèf¼~¿�ù ¥Í É;«ô­Î¨ÂÇE—ßñäZÉ ‰¾`9+ŠQ&ëòÿÏüÑ“ôÜtvdúUÛ¹ ØÊaÖ«(#·�z“dL–·Ì`/—m£WúëüýÕwK/¬˜_äÍnQÒ€úßUÌ XZU7D6†âú1þVÖf%äËa0&zVÄ4ÕZB‚8›õ©ƒÄD©’mÒ­G÷\Œ�r^ÅÁvJ«û‰YÊ˸¡ ZA‡pëæÝœ¨‰äƒ îŒêÒ"hÖA3ÛA-Š ‹›“ÑE=°[‘(XJ‡öÆ{#0ç XZŸ-&¦“�ŽT£Ÿd4ÃŒév Ÿ�Â\MM (æ›éÌÞû•Œf‹þ,p2©€eÞ•ÓÖ(™žu<Þ- !Œ|m3dÀ†ï, ÚùÇêÚiHùæ$�0�úæjõÙ5øÚFo™DZ0ÓhÌO­ŠÿRM{’Ò=Ú‘iª=iÁ)M}?<º�Ž€MX|U€AüL#ËÁ|‹;=ˆ„þUߏ‹ØO!íPU_?Ú©Óêñiôƒ‰"JÑ:ñ#pñÈ´»_î?a¥®µVø¸v“ÐY�Þuã�B3ú¦%˭̃Ùö õ…õÄ‚·ë‹?Zendstream endobj 240 0 obj <>stream XZhÞ,ÌA XZ€ …á«Ì 4GÌ@\•n%ÝE‹· 1‹Žßî>þµ Î‰í£˜é¢ÊŽy´}ؽ¡=ıÅQ÷ÈÖl3lØvx\ä°Ôfœ¤·Ý¹Ò!ÒD©�Þÿ Zendstream endobj 241 0 obj <> endobj 242 0 obj <>stream XZhÞŒYÙrÛÈ}×WtiòZz[—WÛáß:¥ÏWÆ»JtIQäÕŽ%UÆ>6¼M:z瘶ýæþŽÕëž8ût÷ieÛ‹•:‘gÜó®oLº„­Xd/~]ÿ \¹fÀÖwW¦Øêéë§\0üŸTŒ/lßxIʦàxf±_¾a.V®mï–±U/÷uÏ’–3ÕJ3žóî‰%ìÓ/¾e1±/— ³&éÒ'.`\[÷»'}ÅS²p,ã+�%d°Ø7’¢åI¶Ì´M‡Ì”06œW,iš"癹X¡ø9*~¸Ô1=ºôÁˆM×´M<Îñ-ãM’þ¦^õ Û/ߨû–ñ—\H›•™ìѨ›.¯«¤X² ™Õwð«]Ø‘QW»bÏäKžÖeÉ«Œg� ià!Žé“±¾ª‡'9¢�"ÂyµðÈwœT:+'ŠÍȸ ½¦[ê-¼¾¢änÚ¤JŸ‚ÿm§Tü«L^]]³|K_±2ùma[ÃCC#^tû¦^²2H´ta¥-—aH‚Xް4KV· ÒÄ´ï8L_±ª·¸ ãíÂWø3ŽxË·u˗왌kuZƱÇïƒU¡«ËE<õ�DPVSŽžUé©gòL×àZb½Œ%›šÞÏpåºOðôOô¡<ç—yð‹#Ü tQ\H•ƒ)È28uÕµ¹îýdÂäq¬S–vÇŒe;fx/Ó!h�~äoÉ¡c¸›Qª+/4x#MÚ�·´êÒœpAϰîxZ‡Ü÷›/<ín‘Ѝ ‡“à1Ä÷”ÐÓ�º¾ç_ä&Y¦¿Ów›q\àÙh¦Ò‚z ª³�@E­˜Zv#¡„î÷q±rB5ÞTÃÙÒÈ“}Ð)Ua³Ñ XZ×™«MðƒÃï äųØ=}U€qÇÒË«ŽSádã(6ä§P•²?Ñ¥Rüí*ÈUqGåaÅš{¥"gw‡òºey¤nª ‚”SP’,Ë•ŒEEBN‚É Ï§ÖµL?ò£ Ëe4 IÆ9íÐn4Š”Õ0ÄpáÙч~ਛõˆ²is¾esPùÂöc. 6¼&‰m]š„3¶ÙËGý�7<éVoöÇ‘AE§½429¢ÍgÉ�€Æ^qZ‡—µzÙr4ëS>4O4�’ 8PN½%P.Ò\“nì+ê,-dyG_Ö�S½à­8—rÛvãùZ×ï?ß¾_¿}�:Ñœ¢‚.7mšSÔ-mÅ‹o´¿êæÈ� •Åõ0ï!O‚ßiV2µ}�,Õçv¼âí¬éë…ë;Œ¢Ýþo—4d)Š£-Ä�8-•Ú¦DËõ°ã�±¬[Èn‰8“½þã1Á·0äx#†7Ä*¢OiŸ²í•+O8µ?ÇÈ@u’>²¦¬Z3¿k sÐÄL]‚E.Çåáù­¸âgÞÒ.�vßsìZ<"GZ–+JeÒdŒ°5ÚʾDÃK”œÔ%´í;Zs�Ïv¡4«lô„=égX�™ÚVqÚš €1Ó«²éš™zCÝÎÆã áέMfôí™ì^¶jUSZ×é$FêÖºãìêÂ9£;æ©[f8g }¢ Îü‰gKÎl XZG`žë\Lúá8%¼§¡Gã»DŽÚ”3”娰ÙLGûjggÇ´þ;™ÇeÌ5Òõƒ¨òæ×kJ b}@’~ê œ6uÑŒZD·ÜS%rØ•Üý›Ö�_9¡´ê’…‘%k R\EMëQA#~ *ßô; ø/ö =àÈAyØ r{ø‹PÆ©å¶é °ÓdM¿In²ÿ˜ér'ô]Ÿnnpý3ÓAÇôÂ<] XZÑMh†!ø£ x0l‹}˜LÖRM:–ÈÇ¿]_ý_€Zendstream endobj 243 0 obj <>stream XZhÞ4Ì1 XZ€0 …á«äÑ¦Ö XZ¥“ÖUl7qéª z|#Ôíã!¤ p§Âs䃳xŽ-�U2¬Þc¸/–¤uÍ×0%%»®ÖbSmĶºþ{ ¤Mý·<÷3o¸ŒS.¼{ÿ XZ0Zendstream endobj 244 0 obj <> endobj 245 0 obj <>stream XZhÞ”VÑrê6}ç+öÑdjƒ�öá&�ÛI›æfw:Sr§#lûÆX®$ãÐÏÈwW@ „;�’ÁV,éìÑÙ³‹½Ÿ}XêÎUÜñâx>ÄYÇïýá- XZ XZCˆW�,ñ'ti;sG ÓÔ,`¾.Œ‚®ëGáÀwn*mxYÕx•—Z(nè?Zyõ8Y�ÉÜOï]ßï~�éxŸýmØ�…�?·Ï†O;.ë…á€B:þSjn’ÂqŠÊ(™6‰H�ƒÞT†¿€PJ*œ±àÓ?‘UªŠµPÝø2v¤ P)‘N£…ªøJhH8Ž!‘J5µ)�žÌ,HZèºä RT™´Ð²~"*„é"Yæ øAÔ‚÷j3¡ÙݤÏ;IôMQßgŒ+Jh “ï¸î˜"…*+–�éä\„$÷ ¸Ó_gw³[Ü]>|Æûï×Wý6‹g8¾¹›Å»G×·7�8¾aôe^î#à½NëfÁ½ô–ì´Ù³|?9éGÑf/µZ“,[¡iO|q~ñ£áF¬DeþkíøÿZnr^AIÎOŒPš¡‹ñãŰÎôÙp8:XÂðE‰@mQ–°xs�H™ÍܽÞR÷¹x9g‹ã?kd ™ÂѧV*S Ź‚ ݬkilí�OVª…ã×§îëå½lhÏ£”�ðÈ„Úr•âXüm>i™™o\1-v@sçº1ÐæB ´|Z$¨|jKYóµ ®²¢ðäx�VžYÕ^8™­Î§î‘‚ÕÄjøÁÆ)x'ÆÛV¶[÷à'øzr$ÚOk´J¼&Yxxĸ&î¶íå±Ï’Rðê£wœ› 6²�œÈ© •¸ï(»ªÅaEk_1í•l)õd”儦°&•Žö’ecÞ5, ?nÛÉÑã¼ÐVp,�u! M�b¬Qö]”czøš¥ Ï� ”ɲ”-šä„L)1‹Xizr*3õÄóðÊÒl�àañQ ú¾·‹v—SkÜ×¶-3M®™TKïR%9v1oZh£ŠEcãy؇ö Þ=%ShoŸ’Cð`¡S2ýq>stream XZhÞ261Q0P°±Ñw­(q.I,I²Ýƒ Œ-Œ€Avvúnùy%@A7 ˜©HL?$Ä (o•(ÊON-‰ÖpqÓI­(‰µ³0Zendstream endobj 247 0 obj <>stream XZhÞìW[l\WÝçÜyø{ž§íÌ�ŸÌ+3~Œ&��ØN¨ã¤$Q 8�zn<“Œ=Ó™‰‰¥~P¡T(µj¡|¤@ )¥C£¶©”�**”„ ¤VQ‘¨h¢Tª‚p? u.뜹5n”*?| È̬½×Ù{Ÿ³÷yÜ;÷#¢-ôMR辇âÉoÕvß4û^™ÎMyÏ3š¡ðyEJ“”f)-\H«GÈ)¥¥IÊfÓ"ùém•²MZlÒk—Ò!¥SÚÛ%wIî–Ò+{ù%ï�¼Ó'd—´l•< ¹*½Aié––�ä=RöJKŸ”ýRÈøA)¿ eXʈôF%�I—r›�X‘Í?ÜüÅ= w?þq¬´c¢ÃjJ’ÅœdfSBáVK‚gÍ XZN&ͬÄS^Ú™Þ™fñôzZ€lëiüÛ^n sxÈ´÷öjàæ·ÿ'ïø•õÜI[‘ÈËÏÓvztbWª×çmQš“CÉÅÏcÉ€ÿ[~_»âD’”ÃÞ‚¼c©îk8¹¥%Ñáõ $ºÃ‰îZñ¤w²øºm=žF%iÛŸnùyŒê·‹¡Ê/:Íá^Whd45:bî 3{»Çí�á6b� §F‡’nW»%ÔÝ72<šî u[-®¡dj4eowsï�&K‹;gi XZü½ß1>Þ5üø­¿£3dQTÏv{Ëñî®Ù Ëëõ*Žf‹9ÛnÖ¼ÍNÅë5ûqÛŠúZ4Ö¥nõ¶9¬[Ú†zæVåæ©®Î�ÿ˜ì]ÜÅ]ü7€=öYàNY"l¯?›3?`¡ÿñÏ{w1á�BH“XŸïêz]ÚÌOÐÊÇh¦3üºX\ƒŸD‹cØÙQƒ›ÀK·€?*2˜añ²§ Îñ¬÷¢ÁTÉgó™r^«Ä¦wÏîÝ?–CDw Ù;h{2‹õÝOSÞ´Z!1»‚œÕçEEiV¤@ÙÿHÄÿÍé0®À«ÃBó¸f85Ð5Áö0Þﹸfê1—~–xîh[ú£úQòÊ _ÿTã=ºO¹¦œ“×·q÷ü—Zendstream endobj 248 0 obj <>stream XZhÞìWml›W>÷¾þHœ/;vbÇN“7ßIm'��: u§u’V­ÛŠuMÐÔµžíÄ&vbl7jþ hjø˜@«j'²!´v«Ð@ XZÛ`ýQmÓ`b ¡‰©ULhtL+S5•D–¾<÷ÆmSƒü@P¿~Î=ç9çܯsßׯ‰Q-�Böß×ã{xa{˜·€}±L4{±TQ‰Êϱ`l® ¶¾ÑütüßšÌNeÎ]~ð1دÎO¥ç'3üÙSDFøÙ¥d"ÝñdŒÈòøI†—•ù­ÉLáøÏu]�}€Hy"=‹Õ•Êw2ÑãY6Ç��ñI�‰f?õ¼½FT S9›�Í´ x[ø³¹D¶¡µê Dúk;ð v’ôÄøþ"]oÙkäc XZ}Êg8]ÈÓ0©×¹b§_b¬<]Æ,¿É^äç”i~Xñ±Çx–âð„Ùý…=Ì/± Uû!»H�¼‹5ð1"m…]Ó|Úµ±´V©}_‹Ð�ÙÓZš�bmÕÓqJc¯ÿÊmìKô¢všy)DfòÑWéUj ÏÓ·é7tž^£'X+a?§/ÓKu‚žBf3�¢ç(L:BÒëu XZ'Ï܈º¬´�´D“Ž–äѰ×sÛ^7Uõ¼öÊ@õB,0 ¬åÐ@õ2 ÒëaË£sê2G£IuB$¶ ,ó6�øœ—˜Ø ­òª6®R>Ì]Ÿ÷Ø XZ5Jmu,Bì,�Ï…O¦ýЉöÒ%:ßfÀ ~�Ÿ¡C´ª} »y.V«½ ^z�r  XZ`ŶØSlíÈñ.ôqPô#Zð'”ÇiŽÇ´_Z�y-ˆoï–çJHïö[š,@#ûQãͯ(ö�ÿÐÈ/¯uÓòZ/ûÿ.�ÓBhÇ€·±ŽQƒÇdm0Y=þ‰ XZ¿qÌêô÷:¶}¿a~g�¢ð–þP�ßhö™öøÂ}¾v«Ï´Ï6ò�“…‹b=kâ2ã"!†ìÁ5{pHæ5f©Ä—ºY·ü`’a½ÛÚÒïôü¾Ú›¡¥¹}k_`k_K³Ñ`ôûCÌn3@5ÔØü¾þ@¿ªŒ�p3Eš"ÇﳋŠq¸NŒÇÕöáéΠÝjqT´ ·Õ¶ž²¹¬Mz¦«¯õ–—»,5æÖúæ&»Ók³émK»\�ýûݶ*ku¥©ªÔán(/i¬nb_SÓ�ZšmöZkU•bÞÑñEÎu XZ+3Çï{º´Ìe©+õ;ê훞Ûe½ùʱѣŽj[¥³¤ÜRRÍ+îoî\š8sç·+~÷pÿ `—îž¼ëoš6’ïíÌ èüóοÑ‘*¥NìÏõßjÚº4ëo¿™c¿´?~jeôÈmý}±¹Eý,VìÃÊŽuô\Q7@_#èJÁ8ØãE�ã½f¹¨+ÔÎ^*ê:è¿/êjç&è :Æå[h'ÍR–æ)G)š¢$°¶NŠQÚ^ÄÕm/¼3ˆ, 2K òÒ.È4.ÿØÆ¨[¶ëö�žòÒJ M �ƒŒ#ò üɪЄŒDDáOÀ…> n–&ÿÁØë#ЬÄ÷À““=­�—Ç>™‚/%{JɱºwÎfçs©©dAíŒu©½ƒƒýêÞÔÌla>›ðîJ¤ÓêðX·:ŒVåÕ\"ŸÈÍ%âÝS™D^MåÕ¨ZÈEã‰L47­ÎNÞÎF¢�‰÷ÌæÔòòÇʧâ©h.•Èw�ìܳ{8ì–]xw¢éTìߣh•ÙC»±Ö0¹7ìÙg!§°Æ´\Û?‹ò‚+ " &ö�ú¿9/òn{ÑÚ‡{ˆS …È.ɶÃR¤¸ÿÉÎ#UÁ?‹ÿçâöô½õ½ë·Zü_ïP>Tòò~/>Mÿ&ÀZendstream endobj 249 0 obj <>stream XZhÞlxXW×ÿ.ëÌ£‹î8¨;:c‰{c¥ØKZ6l€…"ˆQ˜‹ –XÑKü¢)¯Æ3æìûúÝ]“üÿßó}»ó03÷œ{î)¿ó;«×5³Óéõz‡qîS&¹�ëã³,.<$ÎúèMÔkm›iZ8¦ãæwü» XZ¦£Nw¢MKðt€ÈÖÇ:ˆL:;½>&Þ=&6!.|aØÒN=ƒ{u8Üe¸½`»´]Ù®ƒm×a¶«³íêÒÉuALPH§ K–†D-é4):8&.6&nþÒ�ý:ur�ŒìämÕ¼¤“wÈ’�¸xúôouzú§3Øé¸®:§VºÑ:ÝX�έ½n¶N—¢ÓùÓcéìt]_чëßÚµ´mgwÌîªÝ3;08úvjš›¥5;ŰÌV¦Œub°8–ëÆyp!Ü ûTûëE|TÝœoîÛ|kóŸ?îþñ„�³?®mah1¢EF‹§-÷µ|oÌ36:ôvXèpª•c+ÿVëZnU×êvkŸÖe­ÿc XZ4U˜þÃ/æOó/Ûx´ÙݦJè/|.\tìë˜éø]Ûжm±Ý°v©íž¶ïÙÞ·ý¢ö[�F8•—›`äçi“´›B_–Ï=ˆ•L ‹NP)ôa­7gY#tªgÕô^·/U÷^78U·ðÜÂÚ÷ºØTݹ°÷ºAôáûGÖ7ô?þ2EÛ�„:Ôq_‚3Ã_~¥:±Ù�Àø³)˜Àà'¶?6ÙzÃú°ü×``?Gºòywß—tMsŽ.‰b ë_7»è k!D XZ©tU`ÕkÌ„Áè¤Â+è=©ÎôZ�]zòJ�¨ãt¼oª¶F—"Ë{‘ºa¼sךÉíü }]U�´¬TæéUèíÃñ~ºÙ\äîEÙa[ì_+]¸)z…t5oà–mòú1Lâg¥^‰û:ãr´}~JîŠó¨�‰“fÍÊ:¶Pâwëê}p°ÊQ•§¸âå%«N¯·Ç>œ8jZ‹TSÙF Zò‰ÚUG‚­¸¸’¼’=•;ÊÛ?T±%;?É7v�ÄÇc˜Ãdl]tªÔœWPt¾ôdâ²£Òþj&oÁì}þâð™þÞ!{ÆÉ3S·¤K|u'¯ôa‘f¯’!o‰z ¬Dâ‹f2|õ”²%ÑÑŠ83 èúÍêâ“{d£vs¹ÆÃüNÃíÄŽÁ­ÌUÖØû]²J‰A z×AðaÇ¡Þ�º›±Çì~a TÇ~ç|bcÙu¿H²‰nB©ð›8�½äÃæû1u=Ë:£ÑŒŸ¸£èLE/üpºC³vÆÃSºýîkm¥ÖUH¼…Ÿømƒ~Œ;» ûa÷Ú•Ð9t¶ºþZ‡B+ÆÞªòTƒ–Þ‚ŠÓÁÓ=Ñ˼ÐSOΈ|¡‡I0ÊZ¢Ë�*”ŒØõÝ÷úŸ´mÓ»‘B`®Eÿï«Õñ ¢–H•5#�O Y焪Œg ¤‹asó'ŠË—¯[› »Ä-�:Ü>#rÝœsŸý8ÆÂ´Lˆ|!ùd«¹î‰Ø›޽w(]ZUµæìY3py`»ŠÒ¥ r¥<ÿmÓ7M·7n$Úê¤BŒ-4GÆhG8\éÏ(x3–¹èAA×ĨúW*¦ÆÄ9‚ÉÇr0dæ�'Õ5ÍiGSI acò§‹®ScýfÊ*wývÁùû7F$e$¯M–VEŒôX¼—¢G;êÂU"éG5imÔu|“ ý„ßF ß.ñ¿•æ—<0ŸX}8u¿T¾Ä§x¢8Ñsi¸¯¼w.³ëÀW… â“R_ÿ™ÁÓ:Éë”Ý,ßTP°~M¾\´úL”bž49°Ÿ×g{÷HÉ�ÅÉÌ’K·Òˆ/ÞÖ#Óc¼%ðÕ=<£‡]áHú¾}AúŒàp3þ›™y�ÐŽžÛNËð+ ·YI èS¹ôìë`Œðbâl=;pUB¨þPAð¼À•®fN^©Û˜#þ¢N�â>ݧó´é{s9Ua–_º¶âºc*ÁþºlL!°š€O½é¥ XZ¾ö®ãßðš–¢Î{p¦¯ ÷—]fxÁÞfô‡éO%þÍë{wmšú톆DË›@_ý㣠XZ{^Ë-=—]¹yÓúÍâÆÜM¹Ò—Y7dÊüo‹Að ŸÒÓ{扚x)=ûóüuíÏå],k+*”³2ã–š�¹ñZ6Ñÿ¦BùEƒ¶QË.XºcGõ[(çÐß’Í\b�)õ[¡õìØ .Tùi©0@x>½ha¶Ä¿,Ú[qô±ùzpš»Žöê:-þ™8‰ÿײUペ‡Ý­%p¸u¿Iæ_ºC®0Õo¾{øà¬Ÿ~iÚ^pÿL ]º ÃGÅzöÉùáÕÏ{Ê‚ÆIÆ”ó0©6Q¿¤B!õûðP¸³ò©W­t4"`w€ˆ†±Î}\-/^Í«;!S4w›: Î>-:"#bMúæ5¢Ÿ÷uödéÖ¥24/x:ð4Ï(B“? ô‡’[·ÉÙ¥Iá‡åÜèݳ7Û“ácøÄZ­ŸƒlÐZÀaOâ)ßPZ®‹NÄž,>~¸XÂÝÍþ×3#l¶ XZ}ajÿ E¡mlî"(ðí�×7U´UÂáèôËÔs–.èÂŒâŒ`§þNôßk®VðÙ'‹«Âi®8@P-®>�™^‹¥âûÀYx@…hW¢ùú{ ý2ÐúÆÃib‚–jH½ 8ÖñoµeÚ!oM^j®t5£ÀMôô\™(£�z™Û]X–U&B³<·�^Ø,Þ-YîB.rw÷ƒ¾Z˜ù?±³…ý?€+¹ä»bˆ.]‰¾´øM1´;=K Úe8+4.­ XZ?%�p?ì*âøÞè€CÐx�6x¯ïž-m�“ŠÿÁã'‰c'¿,/+YU{Æ v_Apîõì2h΄™‹c÷Üqh[®T&&”MžÉ�ÄE›RÄÉî}zÇn‰Ù/§dí^}@9zëÑðjñòø­Œ!Û„ÉAN^ákNP«^Ÿ-É J”hñK Š,(5¥CxBÿRûÕ‘øp¸@Ëfp½BÛ?N±1Ó#ØÓÀ2PÎV"ËôRØc°TÀõ,ÿˆzø2cÕPÁÔÏ-'‰„£U@oá�çé);%^ËÎ<¾'ç€ýîCÛ�˜ó©çJwÆo#âå�%h” ,ÿæÒW_V”ÈŽì**2óZ?Z"Ñ©Ññ Rtøœu�"¶„à§l~áÆµrõÚÒ3ÿæ$¢VF.J’CC7̱/@w¶ª:mI©|()'&ÊL1FKRõ×ê5Z9ê%aI5³ÀwbìM½‚A0 :ÖÝ»z12°BþT…pŸé\Ô>&oþ¬_vE3öÅá?b7˜ò°± ò’6µ k/Rኛjpõ°ËAi[TĦ…"®ýëDlEùæÌ2ù�}žÁ³’&x§xÇΑ¦†ŒM¦™`§ýÂ>+[7ï¬|<&ò³Õ‰s Ì£Nì Âr—Ì"¼…ÿS+q„ XZvÀ30†¸˜£¸â˜Çñ(ÇfX–(�,A#özèKI¹G <§™ð¶Ä)�– 1 XZälKõ ýKÏP˜(Ú°Ý…À~¢/"OÅîC0mÙY XZ8a[.~ÊÂUŠˆÃ&G;¦nþrãRX@…<–@¸2‰;0á0õgÏÎÔJgìü €ywîì?rEWk»„YB¨QzÕF$®9’QZЂ¡Ê Á<yH0Lyh=͵‘@{Îõ¡ÓZ}}„´Švcg-œ‰Å¤€‹%]þß‚Î*å�M£‹8.ì¶Ïw¾×ì7Ʀì–hj{3w*Y\ƒi ¤ÑÝ•o,A#h�ÈÀ=~\4çÂØsÎåÛÿ­q±²sŽð¥‚s°”îÜš`©ò‡%¨ó?ûÞ$ðš.ºëHµ *‚Ý8tÄ&lM öTÎX‚¨¥dº´ƒ…î–L9 ]µL–%ÈË,«Žÿ"p�êx¬eS¯VÞZ¦sxRKgp€5¨ÔÄ ‚:m XZ e–ÕÌ-›µ’¡•D_J´þTî<” /üaá¸!8�r—7(Ò´ö3ˆà")ëä=�öè8’†�®ÂZ�$Ìý+‘K -«^Жm¸ž]_&8¶óÔ)³â¸xMܪå’_ä´µÞ"2�E¨ç’g¥uëbÚQÑDRÔ½$:^;ALåõÔZ¾H»'„ËÉ—bÏJ×CÝ®¢N8l¦s ¼80iÆD3¿»ÞDÝ«)?�á£cc£cÃsæ´;Tu,§Z¬*]šrJæ‹2ve¯Ï‹‹vÈ“—U0Éñ‹?_,~þù¦-«e>zwpðþÙbRÒÚõItivæÎÌ�Yö»©÷A÷ܱ»G´h¢§Òש×^Ú’:Mùoqè06âÓÐ�í¹ÑÒìiT3XF\§<ÂÓœÛ× �Ò¢²ó)ªxörvQ©|ªxÏ¥«f¸MK­F #¦/!cµ'áüMJ�¶©W^p8ʆ®ZóÁXåk–âa6ó ŸÑ6fÜøË(+±3í§}aò+´6Á@åW.È2›ÃL0ËW¢=ÂmóŠ`€RÅ^ *®²ÀP>ÒßPòWoSfõ†éZ› „b0xòwøF+¢MáÐÖ3üHÇå«=•Ë,òè†&pc\ca ¨ù&�ë™É XZÄ‘¾,ô„ÙÐ g3Îÿ@B̪&•àgÐnÛŒõSnrØ…‚×'°†ùšà,å ãð ƒ#°•„ºŸ²vp…3ÌßðŪPO«ù #D)8 op£…0µ–þ8G¥4«ˆ³4³3”Cõ&ïèúËtqJoº—é�˜Núwò?ïVÓ9³ª·ð.')`ú·š(Z³_gZñ��ÍH0éh‹‘µ\Õ¦R`O’ôt:$ ¯j…”r2Ÿ˜Š JÉçeÍ�æŸ=Ç?òâN†O<1‚²¹È8õ¾Û ]»w¨æ”Œ­¹~þQØb¤½;}¥TfUí÷ �Ehý žF�êp¢ÒÞ( CGMîÑmÌ�G?~wùgèTÜG±u:›Ãm�~�‚ÓCknfrWâï¡ý¸I¡sü%ÈAYùÞ–±Ä¾àNW_ªh¿Í™©È˜4ÜÖöéñ_‚ƒ rn)„oâƒ'Z¾Zö*¬¯}1æs/¼µéørKQ³²Ö§ï�O,ݺÀŒ'm»Þ¯§ÉöÖàQĽc�Þޝ,YSuXÚ¹+@?1j¶¿Ì7^ÁŽ3ãýq¤k`;WU~£ø’xº>e¼ŒÛ­¡¤„—ΖµDë`¥y#žyCT(�j6»bûW}(Orúù´•(kè1 Y§þô¨éÎchC ÑècÍc<�çÖ<þU…„æ`5,JÒJ’ŽIü£ÇÁ®'G‹C?[¸�¦ç×Và±äP³N[)Õ.ø úQãËW RçXÙ‰aؤáýFÝzóc÷tJo[ˆ¬×ÿܦ†À k¹6H5AZ�=sÇo•Æoí¿nv�}Ò—©{÷š/?ÛuZâ IŒ-—=UäÌåÍñÙ5ƒÎHî¾Cã2c÷%Êu�[î¦ÛóÏ+2j3óBì·®Ù¼2ÝìŠvi¡S•}%ÒEG“JniMͲoDÚ„ Ï?±™ñœ¦rWZî;+„t•Yî76l‚»xKv¬�“V|Ì ©”þb>(x(·pGɬ.¡ö¼+VПoõ‹É:»ÐÄ[amõÃiyÛZH%fp3ƒýæNc£·åÄËQÖ›á¨õ-næ‚vÅJKŽ•®.Kk·Ý¹/ó+&Ò\V#â5bÊ�hè XZ¡Tçcô…*w¬*»á:m>`îŒVž°0Æâ`å"c4ÚÝï+6ÑÃà 0ˆŠ>±‰RnQQg¬ XZyL 댇‡‚j�zœ•BtTÃö!lyˆ[(—ycÓd;ÕBO˜ í`:N�`¾‘†é¾#ÃáhpeøFè}˜F‚Ó•S,èÑ 8æ,Á™ÊCz`o†Ž£Ñ�qU ˆÐ¥H`F‰™fE=_BQÏ” 3°;dþ(k{j³v‚RÏá§XKk ÖÊ”f(×Y˜ŠôÆátOÔ+�I†±P©åüe§ÞZöÖŸd¿p„J<ÄÁCxÄœ³˜ñõ9|ÉÑ\ü†ñ³²’?Wê!ÿœRZòçJÿÿ¬äŒÚËë”i-é ©mh#ÌŒ`±>•@É—tG;Ƙœ­ÝÜ…}²ái.ŽÛÈBjæo-Å›9Òœ|¬½lóß Zendstream endobj 250 0 obj <>stream XZhÞšÀ€ XZ‘9Zendstream endobj 251 0 obj <>stream XZhÞìW[lTEþfÎîöʶ¥P‹¥ÛSzº»Dhq ­¥¥ XZŠ<”x=tÝ m·î®Mû¤©’(‰£&bbƒÁT5ZÄõÁ1QIôMÒDc ¢Àñ›Ædw¿ÿ>3ÿÌ?3{€< ˶Þ×¶bjbíFZfˆ-ƒãY»¹¤º P¥Ô÷ï9òÍC/P�z|hxr—î]ó 8Cý`Âuâ'窂?P_• !pÂÚèBê�‰‘ìÄçûd©‡ëàpjÐR1 à)ê‡Gœ‰1•Õ¶ÿˆñö¨3âž;¾¼Œ 6Ò`,펽1ûúã€ÿ$s¨#žWûà‡Ò3z/[<—ãêV( óéÎfÐ ûmñ-ûž2T¿ª>µ&tÖêc‡á긠.¨)Ýí×ßê*¤bºð~óZÔjõ^Vñ‰—ð6«§U)Ç|k0ì=‰ÓºÁ›õîÇ„wT-ñöa;*1ZêAÓ�5 ?¹iWE{û�œû™Û)ÉÛ̽’y4Q¶È�×ï—ÜEÌ»œíÞ§\@¹’kSNÙ 6¿fÕŒ÷3Ç;èŸ#m΢’ãÎ'¯ ‚ì³Fý€8N¢›|J×b1Ûl•>ga�ÌÞE¬¡½„z�™åuœoˆ<#ñ3\ãê±ýYSe™ƒ²¾¢mZL½8nÈÌ9??‡üÎ\]¼Yâ3Éá,ëÇuÕçѬæÁG}i¾.!±1žÉ£«0QFÛƒŒkT'¼Y©?VÒÞ¡V!`ö�þMDQfr”ºÞZ�'1U"ß&´Z, æz»XjIJP,µBCb¯j ­—˜EB„6Jd“ÈÍÓ"òb±/y©ÐVñ†��3¿úÇ�cî.uŠ÷½Å;umgM�/Š€?ªü¾ˆ¥ ­‚O5zÇÛVWc]l]LµÅ.Æ P~1ÆßòeoÂßzGE}E Q§Þ©»ô´¼ðk�þââ2Þ˜!ÞüU¼Ë-Ôv[Zѵt9;»SQ~؃Où[›êï¬×U— XZÕùÓw_¾_ã·p 7ÁÁ[øOQ‚½Wžƒf‰ËÏF�QËÉÿÎË>Ê�æåZendstream endobj 252 0 obj <>stream XZhÞTP±NÄ0 Ýó91¤�@0T]Ž¥¢…=—¸%u"7ú÷$Q{ˆÁ¶üì§÷lyî^:rä;{Óc„Ñ‘e\üÊና#¨XgâÞ•lf@&r¿-çŽFM#äG.‘7¸†Çûêò�-²£)!êó+!ýÂÎH*h[°8 XZy~Õá¢gYˆà°Uúz×ö—  ²¦ ¡©ªç§ö(Höÿü`]Gó­YÛJÕªi{Ç3/ßtóaVæd±^Œd Žðö›àCVË!~Zendstream endobj 253 0 obj <>stream XZhÞTP±NÄ0 ÝóA i#$ª.wK‡;-ì¹Ä-‘¨¹éп'‰ÚC ¶åg?½gËSwîÈE�ïìM�FG–qñ+„NŽ V`�‰{W²™uZendstream endobj 254 0 obj <>stream XZhÞìWYlTUþι3mYl§”NZzÇ.P;ÓÒ*´5ƒ¶@ uAbpÇÎ¥32íŒ3Cµ‰Cb0FãúZÀ<Ü Ë®¸º«çîÂÊh™&.�ÌÛ­·„¾Ô|êOlÏŒ�ïûtëCÔ_¤KMmo¼nèn ´ŒúÞ„‹Pþp(ÿ‰úŠ %Ç­Í€PoIŒçoÿâ¡ Cý"ÀÚ›J�Æ€t”ùÏQj3eÀ\Únåï2mž™bÌóo>[»­"úcñ& ôÙã)Îß?mÖ1þ64Ï·.>¯¿ 0Zendstream endobj 255 0 obj <>stream XZhÞšÀ€ XZ‘9Zendstream endobj 256 0 obj <>stream XZhÞÌVkOÛHýûüT¡ãרŽTUÊJ¶%PHKwÙ|˜Ø“d¿˜™PÒ_¿×NBžÁ®Ð*r|=�û:÷žÏg–my~`¹~Hoz½#+ð"z7¬0 XZ,�Ù–SO2Çr¢ˆ‘àZ®ã;$x–ëy> >é /�1Ëe¡Ki ¤ž…–E®õþ=š:¹±C›—§BŽ'Æ XZÂZ?PäCä(0†ùQ@‹{‘£ƒ %W"OÅÈ .²ŒÏ¿Ue XZZ>Ð`Zä�wSJýHÞ Ä(…’E‚+tð=tñù4 XZ¥å8Ç9FÅT¡�>¸Á qŒK �o…©--乕±Ü… .0™•òŒ0Æ8Ã)š0%>ã~â(“d[ߢJÆ_¿ÜM…6’\Ì%9Ír".”ÀŸ¸¥É¢Z^Ç"29�¥L†)îð×øe:ÕH…ÖàE¦yž`Èb©âi6JÅ’"M¹:\u€Ã–@tµêZvŽÙß{ r­™ô…¿ìŒÈ_t Ov³wOÙ-ª„̈W²n>*hí¹"¡î8è&” XZif‡¸c©�š4“b(© Ê2Y•)Ò_iè»�3^b¹ �ë:K;mµÈɲ“hoµ¢ XZÂ]o¨Çc7,ðƒg˜ƒ–pJ;­Ð7ÕŒL V}¿têèt£ƒmô‹¯9ñb"«zÓÊ…=fÏ7�Åm»nä¿ÜnÀž5{±~)Ú 6xM°Þˬ¾u�„/¨‘Ðl4y}ƒ^69Ûnò__¨™ý/.ÔÌßÓéo~¡þG€Zendstream endobj 257 0 obj <>stream XZhÞ26µP0P06µT02P°±Ñ÷+Í-ކ(ÅÚÙÅ‚õ]ììZendstream endobj 258 0 obj <>stream XZ XZ XZ XZ XZ Acrobat Distiller 11.0 (Windows) XZ groff version 1.19.2 XZ 2026-11-10T23:19:20-05:00 XZ 2026-11-10T23:19:20-05:00 XZ application/pdf XZ XZ XZ untitled XZ XZ XZ uuid:f1c2c240-2259-4d9d-950f-7a1df448453e XZ uuid:a774890e-5701-40ca-9fe6-35c3c6ba8bab XZ XZ XZ XZ XZ XZ XZ XZ XZ XZ XZ XZ XZ XZ XZ XZ XZ XZ XZ XZ XZ XZ XZ XZ XZ XZendstream endobj 259 0 obj <>stream XZhޜԽNÃ0àWñÄ÷Ï?RÕ…‘¥ªØC%*Ĉ–�·'Î9a5Ó‘“ø~ö�+9ådE’d�S“JÌiÉl\÷ä>Æ‘¢Ô9K*}Yj&Å’4 NŸç¹¦-9þ *WÇÍq/ ¤ƒt�2@Æ2@²ŸlS…ÅíWXVƒÕÐàÖn';¬Žíõµ£lifO3›šÁŠ(3˜dQТÎ$nëû$nÄ�¸wâ¾âA<ˆâe=MÄ ñJ¼¯[ðF¼oÄ;ñN¼¯g™‡9ó4ç`nÀU€«8³òKÉLc&q#nÄíœ XZuÚîÿÎý`Zendstream endobj 260 0 obj <>stream XZhÞ|˱ XZÂ0€áW¹­É`z—¢R)1«à ¸t‰M*�ÒƒKª¯¯âîô/ÿ×캮>Iô%ñâ|‰Ê,Ú¡m¨µ¸Ám…XéßÅ¢ÂÓÏ(ùC€ µÆêúÌá?¿‡uŒ¢Ž£ðÝp)—4ÏQ€È ê––À¯>/Filter/FlateDecode/ID[]/Info 370 0 R/Length 524/Root 372 0 R/Size 371/Type/XRef/W[1 3 1]>>stream XZhÞä•?H•QÆÏù¾ûÝïïíJF9Ùb-AÐÖÔÑÒ*¹5ˆ $µˆ6$T ÎmJAz„› ‚‚ƒ„‹P›(.¦yŸ#½/Ï…rxyù�çý{Îw Lã/°f|ÕÆØ§ [$ð'Ö€d½ 3¢‰gyÞ°ùø_…dÏàCi@ª™D›ÇÖÚš�µÌ¬ä)7sT¥Zendstream endobj startxref XZ116 XZ%%EOF XSHAR_EOF Xchmod 644 'setup.pdf' Xfi Xif test -f 'spell.ok' Xthen X echo shar: "will not over-write existing file 'spell.ok'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'spell.ok' XZ2.10.1BSD XZ2.10BSD XZ2.11BSD XZ4.3BSD XZACC XZACU XZARP XZARPANET XZARPAnet XZAUTOBAUD XZAUTOBOOT XZAVIVTM XZArpanet XZBADSECT XZBHASH XZBOOTDEV XZBPI XZBR XZBR1537 XZBR1538 XZBR1538A XZBR1711 XZBSD XZBSIZE XZBSLOP XZBostic XZCF XZCGL XZCHECKSTACK XZCLIST XZCLISTS XZCOMP XZCOMPAT XZCPU XZCPUs XZCSR XZCSS XZCST XZCX XZComp XZContel XZCyl XZDARPA XZDBLKSIZ XZDBUF XZDEFNAME XZDELUA XZDEQNA XZDESTDIR XZDEUNA XZDEVERR XZDH XZDH's XZDH11 XZDHU11 XZDHV11 XZDHs XZDISKMON XZDL11 XZDL11's XZDM11 XZDMA XZDMC XZDMC11 XZDMR XZDN11 XZDR11 XZDR11C XZDR11c XZDST XZDUMPDEV XZDUMPLO XZDUMPROUTINE XZDZ's XZDZ11 XZDZs XZDialup XZECC XZEGP XZEMULEX XZENABLE34 XZEOT XZEPROTONOSUPPORT XZEXTERNALITIMES XZEmulex XZEthernet XZEthernets XZFILS XZFPSIM XZFRCSWAP XZFSFIX XZFTP XZFilesystem XZFilesystems XZGENALLSYS XZGRPMAST XZGenisco XZHK XZHKADDR XZHT XZHTADDR XZHardcopy XZI&D XZICMP XZIDC XZIDENT XZIDP XZIHASH XZIMP's XZIMP11 XZINET XZINTRLVE XZIP XZIPSENDREDIRECTS XZISI XZISVTX XZIfconfig XZJCL XZJKReynolds XZKA5 XZKB XZKDJ XZKL11 XZKL11's XZKOV XZKW11 XZKW11P XZKarels XZKb XZKirton XZL.aliases XZL.cmds XZL.sys XZLH XZLINEHZ XZLOGFILE XZLP XZLeedom XZLeffler XZMAKEDEV XZMAKEDEV.local XZMAKEHOSTS XZMASSBUS XZMAXCOL XZMAXMEM XZMAXNAMLEN XZMPX XZMSCP XZMakefile XZMakefiles XZMb XZMcKusick XZMicroverter XZMilnet XZN.B XZNACC XZNADDR XZNAMESIZE XZNBPG XZNBR XZNBUF XZNCSS XZNDE XZNDH XZNDHU XZNDM XZNDMC XZNDN XZNDR XZNDZ XZNEC XZNEN XZNHK XZNHT XZNHY XZNIC XZNIMP XZNKB XZNKL XZNLOOP XZNLP XZNMOUNT XZNODEV XZNOKA5 XZNONFP XZNP100 XZNPTY XZNPUP XZNQE XZNRAC XZNRAD XZNRAM XZNRK XZNRL XZNRX XZNSC XZNSI XZNSL XZNSRI XZNSWAP XZNTB XZNTM XZNTS XZNTTY XZNVV XZNXPC XZNXPD XZOLDTTY XZOVLY XZPCL XZPDP XZPDP''Setup.2.10 XZPDP's XZPDP11 XZPDP11s XZPDR XZPDT XZPGRP XZPIPEDEV XZPLI XZPSN's XZPST XZPTY's XZPathnames XZPostel XZPronet XZProteon XZQBUS XZQbus XZRA XZRA60 XZRA80 XZRA80's XZRA81 XZRB XZRC25 XZRD51 XZRD52 XZRD52's XZRD53 XZREADME XZRFC XZRH XZRH11 XZRH70 XZRK XZRK05 XZRK06 XZRK06's XZRK07 XZRK07's XZRK611 XZRKADDR XZRL XZRL01 XZRL01's XZRL02 XZRL02's XZRLADDR XZRLs XZRM XZRM02 XZRM03 XZRM03's XZRM05 XZROM XZROMs XZROOTDEV XZRP XZRP03 XZRP04 XZRP05 XZRP06 XZRPADDR XZRQDX2 XZRQDX3 XZRQZX XZRS232 XZRTP XZRUSAGE XZRX XZRX02 XZRX50 XZRZ XZRestor XZRootdev XZSBI XZSC01B XZSC11 XZSC21 XZSEQF XZSI XZSMD XZSMINO XZSMS XZSMTP XZSPP XZSUBM XZSWAPDEV XZSWAPLO XZSYMLINKS XZSYSLOG XZSendmail XZSep XZStanislaus XZSwapdev XZTC11 XZTCP XZTE XZTE10 XZTE16 XZTELNET XZTFTP XZTIMEZONE XZTIU XZTK XZTM XZTM02 XZTM11 XZTMADDR XZTMSCP XZTQK50 XZTS XZTS03 XZTS05 XZTS11 XZTSADDR XZTU XZTU10 XZTU45 XZTU77 XZTU78 XZTU80 XZTZ XZTimezone XZTurlock XZUCB XZUDA XZUDA50 XZUDP XZUNIBUS XZUPRINTF XZUSENET XZUSERFILE XZUUAIDS XZUltrix XZV2LNI XZVAX XZWST XZWestlake XZXNS XZXO XZXP XZXX XZa.out XZacc XZadiron XZadm XZarp XZautobauding XZautoboot XZautoconfig XZautoconfigures XZbad144 XZbdevsw XZbiff XZbootstrapped XZbostic XZbr XZbr?b XZbrdump XZbruboot XZbsize XZbuf XZc.f XZcacheing XZcalder XZcapricorn XZcasey XZcbosg XZcbosgd XZchico XZchpass XZchroot XZclists XZcomp.bugs.2bsd XZcomsat XZconf XZconf.c XZconfig XZcoremap XZcpu XZcpus XZcrontab XZcshrc XZcss XZcul0 XZdaemon XZdaemon's XZdaemons XZdali XZdate.1 XZdate.c XZdev XZdgram XZdh XZdh0 XZdhrint XZdhu XZdhurint XZdhuxint XZdhxint XZdialcode XZdialcodes XZdialup XZdialups XZdict XZdisklabel XZdisklabels XZdisktab XZdk XZdmc XZdtab XZdvhp XZdvhp?b XZdvhpuboot XZdz XZdz0 XZdzdma XZdzrint XZec XZeg XZen0 XZernie XZes XZethernet XZfiles.HOST XZfilesystem XZfilesystems XZfingerd XZformatter XZfsf XZfstab XZftp XZftpd XZftpusers XZfuji160 XZgenunix XZgetdtablesize XZgethostbyaddr XZgethostbyname XZgethostname XZgetty XZgettytab XZgid XZhangup XZhanoi XZhk XZhk0a XZhk0b XZhk0c XZhk0e XZhk1a XZhk6 XZhk7 XZhk?a XZhk?b XZhk?c XZhk?d XZhkdump XZhkintr XZhkuboot XZhkunix XZhomegrown XZhostname XZhosts.dir XZhosts.equiv XZhosts.lpd XZhosts.pag XZhosts.txt XZhp XZhp0c XZhp?b XZhpdump XZhpreg.h XZhpuboot XZht XZht0 XZhtable XZhtintr XZhy XZifconfig XZifdef XZil XZinetd XZinetd.conf XZinit XZinline.h XZinode XZinodes XZinstallsrc XZint XZintr XZiob XZioconf.c XZisif.arpa XZisize XZjkf XZjove XZjunk.dir XZjunk.orig XZjunk.pag XZkazoo.Berkeley.EDU XZkeith XZkim XZklog XZkmem XZlib XZlibF77 XZlibI77 XZlibc XZlocalgateways XZlocalhosts XZlocalnetworks XZlocalopts.h XZloopback XZlp XZlpd XZlpintr XZlq XZmachparam.h XZmagtape XZmakedev XZmakefile XZman1 XZmanl XZmano XZmaster.passwd XZmatisse XZmax XZmaxusers XZmbufs XZmdec XZmem XZmiro XZmisc XZmkhosts XZmklost XZmkpasswd XZmkproto XZmnt XZmnt:rw:1:2 XZmonet XZmonet.Berkeley.EDU XZmotd XZmov XZmt0 XZmyname.my.domain XZmysitename XZnamed.tar.Z XZnamei XZnameserver XZndbm XZndbm.h XZnetimp XZnetinet XZnetmask XZnetnix XZnetns XZnetstart XZnetstat XZnewaliases XZnewdev XZnewfs XZnewunix XZnic.arpa XZnn XZnowait XZnscf XZnsunix XZnswap XZnulldev XZogin XZolddev XZoldunix XZopr XZout0123456789 XZout2010123456 XZparam.c XZparam.h XZpasswd.dir XZpasswd.pag XZpathname XZpcl XZpdp XZpdpif XZpdpmba XZpdpstand XZpdpuba XZpgms XZphys XZpipedev XZpre XZprintcap XZproNET XZpty XZpty0 XZpty1 XZpty2 XZpty3 XZptyp XZqe XZra XZra0 XZra0a XZra0b XZra0b::sw XZra0c XZra0d XZra0g XZra1 XZra1a XZra1b XZra1c XZra60 XZra80 XZra81 XZra?b XZra?c XZra?g XZradump XZrauboot XZraunix XZrc.local XZrc25 XZrd51 XZrd52 XZrd53 XZrd?b XZrd?c XZrdwri XZrestor XZrew XZrexecd XZrhosts XZrk XZrk06 XZrk07 XZrkuboot XZrl XZrl01 XZrl02 XZrl0h XZrl1h XZrldump XZrlintr XZrlogin XZrlogind XZrluboot XZrlunix XZrm02 XZrm03 XZrm03uboot XZrm05 XZrm05uboot XZrm?b XZrmdump XZrmt12 XZrmunix XZrootdev XZrp XZrp03 XZrp04 XZrp06 XZrp?b XZrq XZrqdx XZrqdx3 XZrrh XZrshd XZrusage XZrw:1:1 XZrwhod XZrxx0a XZsc11 XZsc21 XZsched XZse XZsecretmail XZsecurettys XZseismo XZsendbug XZsendmail XZsendmail.cf XZsetpriority XZsetrlimit XZsetup.2.10 XZsetup.tblms XZshutdownlog XZsi XZsi51uboot XZsi94uboot XZsi95uboot XZsidump XZsms XZspl6 XZspl7 XZsplfix XZsplfix.profile XZsplimp XZsrc XZsri XZstandalone XZstd XZstd.9600 XZstdout XZsunix XZswapdev XZswplo XZsyslog XZsyslog.conf XZsyslogd XZtabset XZtcp XZtelnetd XZtestnet XZtftpd XZtime.h XZtm XZtm.c XZtm0 XZtmac XZtmintr XZtmp XZtmp:rw XZts XZts0 XZtsintr XZtty00 XZtty01 XZtty07 XZttyDD XZttyd XZttyh0 XZttyp XZttyp0 XZttytype XZtzone XZuboot XZucb XZucbarpa XZucbvax XZucbvax.berkeley.edu XZufs XZuid XZuio XZuipc XZumount XZusc XZuserid XZusername XZusr.bin XZusr.lib XZusr:rw:1:2 XZutmp XZutmp.h XZuucico XZuucppublic XZuudecode XZuupoll XZuuq XZuusnap XZuuxqt XZvangogh XZvangogh.berkeley.edu XZvaxif XZventel XZvipw XZvm XZvt100 XZvv XZwildcard XZwlonex.imsd.contel.com XZwlv.imsd.contel.com XZwtmp XZwtmp.h XZxp XZxp.c XZxp0 XZxp0a XZxp0b XZxp0c XZxp0d XZxp0e XZxp0f XZxp1e XZxp?b XZxp?c XZxp?d XZxp?e XZxpb XZxpbf XZxpdump XZxpintr XZxptype XZxpunix XZxx XZxx0a XZyymmddhhmm XZzA XSHAR_EOF Xchmod 644 'spell.ok' Xfi Xchmod 755 . Xcd .. Xcd $STARTDIR Xif test -f './usr/include/err.h' Xthen X echo shar: "will not over-write existing file './usr/include/err.h'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/include/err.h' XZ/*- XZ * Copyright (c) 1993 XZ * The Regents of the University of California. All rights reserved. XZ * XZ * Redistribution and use in source and binary forms, with or without XZ * modification, are permitted provided that the following conditions XZ * are met: XZ * 1. Redistributions of source code must retain the above copyright XZ * notice, this list of conditions and the following disclaimer. XZ * 2. Redistributions in binary form must reproduce the above copyright XZ * notice, this list of conditions and the following disclaimer in the XZ * documentation and/or other materials provided with the distribution. XZ * 3. All advertising materials mentioning features or use of this software XZ * must display the following acknowledgement: XZ * This product includes software developed by the University of XZ * California, Berkeley and its contributors. XZ * 4. Neither the name of the University nor the names of its contributors XZ * may be used to endorse or promote products derived from this software XZ * without specific prior written permission. XZ * XZ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND XZ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE XZ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE XZ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE XZ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL XZ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS XZ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) XZ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT XZ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY XZ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF XZ * SUCH DAMAGE. XZ * XZ * @(#)err.h 8.1.1 (2.11BSD) 2026/7/4 XZ */ XZ XZ#ifndef _ERR_H_ XZ#define _ERR_H_ XZ XZ/* XZ * Don't use va_list in the err/warn prototypes. va_list is typedef'd in two XZ * places ( and ), so if we include one of them here XZ * we may collide with the utility's includes. It's unreasonable for XZ * utilities to have to include one of them to include err.h, so we get XZ * _BSD_VA_LIST_ from and use it. XZ */ XZ#include XZ XZvoid err (int, const char *, ...); XZvoid verr (int, const char *, _BSD_VA_LIST_); XZvoid errx (int, const char *, ...); XZvoid verrx (int, const char *, _BSD_VA_LIST_); XZvoid warn (const char *, ...); XZvoid vwarn (const char *, _BSD_VA_LIST_); XZvoid warnx (const char *, ...); XZvoid vwarnx (const char *, _BSD_VA_LIST_); XZ#endif XSHAR_EOF Xchmod 644 './usr/include/err.h' Xfi Xif test -f './usr/include/inttypes.h' Xthen X echo shar: "will not over-write existing file './usr/include/inttypes.h'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/include/inttypes.h' XZ/*- XZ * Copyright (c) 2001 The NetBSD Foundation, Inc. XZ * All rights reserved. XZ * XZ * This code is derived from software contributed to The NetBSD Foundation XZ * by Klaus Klein. XZ * XZ * Redistribution and use in source and binary forms, with or without XZ * modification, are permitted provided that the following conditions XZ * are met: XZ * 1. Redistributions of source code must retain the above copyright XZ * notice, this list of conditions and the following disclaimer. XZ * 2. Redistributions in binary form must reproduce the above copyright XZ * notice, this list of conditions and the following disclaimer in the XZ * documentation and/or other materials provided with the distribution. XZ * XZ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS XZ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED XZ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR XZ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS XZ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR XZ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF XZ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS XZ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN XZ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) XZ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE XZ * POSSIBILITY OF SUCH DAMAGE. XZ * XZ * @(#)inttypes.h 1.0 (2.11BSD) 2026/1/30 XZ */ XZ XZ#include XZ XZ/* XZ * 7.8.1 Macros for format specifiers XZ */ XZ XZ/* fprintf macros for signed integers */ XZ XZ#define PRId8 "d" /* int8_t */ XZ#define PRId16 "d" /* int16_t */ XZ#define PRId32 "ld" /* int32_t */ XZ#define PRId64 "lld" /* int64_t */ XZ#define PRIdLEAST8 "d" /* int_least8_t */ XZ#define PRIdLEAST16 "d" /* int_least16_t */ XZ#define PRIdLEAST32 "ld" /* int_least32_t */ XZ#define PRIdLEAST64 "lld" /* int_least64_t */ XZ#define PRIdFAST8 "d" /* int_fast8_t */ XZ#define PRIdFAST16 "d" /* int_fast16_t */ XZ#define PRIdFAST32 "ld" /* int_fast32_t */ XZ#define PRIdFAST64 "lld" /* int_fast64_t */ XZ#define PRIdMAX "lld" /* intmax_t */ XZ#define PRIdPTR "d" /* intptr_t */ XZ XZ#define PRIi8 "i" /* int8_t */ XZ#define PRIi16 "i" /* int16_t */ XZ#define PRIi32 "li" /* int32_t */ XZ#define PRIi64 "lli" /* int64_t */ XZ#define PRIiLEAST8 "i" /* int_least8_t */ XZ#define PRIiLEAST16 "i" /* int_least16_t */ XZ#define PRIiLEAST32 "li" /* int_least32_t */ XZ#define PRIiLEAST64 "lli" /* int_least64_t */ XZ#define PRIiFAST8 "i" /* int_fast8_t */ XZ#define PRIiFAST16 "i" /* int_fast16_t */ XZ#define PRIiFAST32 "li" /* int_fast32_t */ XZ#define PRIiFAST64 "lli" /* int_fast64_t */ XZ#define PRIiMAX "lli" /* intmax_t */ XZ#define PRIiPTR "i" /* intptr_t */ XZ XZ/* fprintf macros for unsigned integers */ XZ XZ#define PRIo8 "o" /* uint8_t */ XZ#define PRIo16 "o" /* uint16_t */ XZ#define PRIo32 "lo" /* uint32_t */ XZ#define PRIo64 "llo" /* uint64_t */ XZ#define PRIoLEAST8 "o" /* uint_least8_t */ XZ#define PRIoLEAST16 "o" /* uint_least16_t */ XZ#define PRIoLEAST32 "lo" /* uint_least32_t */ XZ#define PRIoLEAST64 "llo" /* uint_least64_t */ XZ#define PRIoFAST8 "o" /* uint_fast8_t */ XZ#define PRIoFAST16 "o" /* uint_fast16_t */ XZ#define PRIoFAST32 "lo" /* uint_fast32_t */ XZ#define PRIoFAST64 "llo" /* uint_fast64_t */ XZ#define PRIoMAX "llo" /* uintmax_t */ XZ#define PRIoPTR "o" /* uintptr_t */ XZ XZ#define PRIu8 "u" /* uint8_t */ XZ#define PRIu16 "u" /* uint16_t */ XZ#define PRIu32 "lu" /* uint32_t */ XZ#define PRIu64 "llu" /* uint64_t */ XZ#define PRIuLEAST8 "u" /* uint_least8_t */ XZ#define PRIuLEAST16 "u" /* uint_least16_t */ XZ#define PRIuLEAST32 "lu" /* uint_least32_t */ XZ#define PRIuLEAST64 "llu" /* uint_least64_t */ XZ#define PRIuFAST8 "u" /* uint_fast8_t */ XZ#define PRIuFAST16 "u" /* uint_fast16_t */ XZ#define PRIuFAST32 "lu" /* uint_fast32_t */ XZ#define PRIuFAST64 "llu" /* uint_fast64_t */ XZ#define PRIuMAX "llu" /* uintmax_t */ XZ#define PRIuPTR "u" /* uintptr_t */ XZ XZ#define PRIx8 "x" /* uint8_t */ XZ#define PRIx16 "x" /* uint16_t */ XZ#define PRIx32 "lx" /* uint32_t */ XZ#define PRIx64 "llx" /* uint64_t */ XZ#define PRIxLEAST8 "x" /* uint_least8_t */ XZ#define PRIxLEAST16 "x" /* uint_least16_t */ XZ#define PRIxLEAST32 "lx" /* uint_least32_t */ XZ#define PRIxLEAST64 "llx" /* uint_least64_t */ XZ#define PRIxFAST8 "x" /* uint_fast8_t */ XZ#define PRIxFAST16 "x" /* uint_fast16_t */ XZ#define PRIxFAST32 "lx" /* uint_fast32_t */ XZ#define PRIxFAST64 "llx" /* uint_fast64_t */ XZ#define PRIxMAX "llx" /* uintmax_t */ XZ#define PRIxPTR "x" /* uintptr_t */ XZ XZ#define PRIX8 "X" /* uint8_t */ XZ#define PRIX16 "X" /* uint16_t */ XZ#define PRIX32 "lX" /* uint32_t */ XZ#define PRIX64 "llX" /* uint64_t */ XZ#define PRIXLEAST8 "X" /* uint_least8_t */ XZ#define PRIXLEAST16 "X" /* uint_least16_t */ XZ#define PRIXLEAST32 "lX" /* uint_least32_t */ XZ#define PRIXLEAST64 "llX" /* uint_least64_t */ XZ#define PRIXFAST8 "X" /* uint_fast8_t */ XZ#define PRIXFAST16 "X" /* uint_fast16_t */ XZ#define PRIXFAST32 "lX" /* uint_fast32_t */ XZ#define PRIXFAST64 "llX" /* uint_fast64_t */ XZ#define PRIXMAX "llX" /* uintmax_t */ XZ#define PRIXPTR "X" /* uintptr_t */ XZ XZ/* fscanf macros for signed integers */ XZ XZ#define SCNd8 "hhd" /* int8_t */ XZ#define SCNd16 "d" /* int16_t */ XZ#define SCNd32 "ld" /* int32_t */ XZ#define SCNd64 "lld" /* int64_t */ XZ#define SCNdLEAST8 "hhd" /* int_least8_t */ XZ#define SCNdLEAST16 "d" /* int_least16_t */ XZ#define SCNdLEAST32 "ld" /* int_least32_t */ XZ#define SCNdLEAST64 "lld" /* int_least64_t */ XZ#define SCNdFAST8 "hhd" /* int_fast8_t */ XZ#define SCNdFAST16 "d" /* int_fast16_t */ XZ#define SCNdFAST32 "ld" /* int_fast32_t */ XZ#define SCNdFAST64 "lld" /* int_fast64_t */ XZ#define SCNdMAX "lld" /* intmax_t */ XZ#define SCNdPTR "d" /* intptr_t */ XZ XZ#define SCNi8 "hhi" /* int8_t */ XZ#define SCNi16 "i" /* int16_t */ XZ#define SCNi32 "li" /* int32_t */ XZ#define SCNi64 "lli" /* int64_t */ XZ#define SCNiLEAST8 "hhi" /* int_least8_t */ XZ#define SCNiLEAST16 "i" /* int_least16_t */ XZ#define SCNiLEAST32 "li" /* int_least32_t */ XZ#define SCNiLEAST64 "lli" /* int_least64_t */ XZ#define SCNiFAST8 "hhi" /* int_fast8_t */ XZ#define SCNiFAST16 "i" /* int_fast16_t */ XZ#define SCNiFAST32 "li" /* int_fast32_t */ XZ#define SCNiFAST64 "lli" /* int_fast64_t */ XZ#define SCNiMAX "lli" /* intmax_t */ XZ#define SCNiPTR "i" /* intptr_t */ XZ XZ/* fscanf macros for unsigned integers */ XZ XZ#define SCNo8 "hho" /* uint8_t */ XZ#define SCNo16 "o" /* uint16_t */ XZ#define SCNo32 "lo" /* uint32_t */ XZ#define SCNo64 "llo" /* uint64_t */ XZ#define SCNoLEAST8 "hho" /* uint_least8_t */ XZ#define SCNoLEAST16 "o" /* uint_least16_t */ XZ#define SCNoLEAST32 "lo" /* uint_least32_t */ XZ#define SCNoLEAST64 "llo" /* uint_least64_t */ XZ#define SCNoFAST8 "hho" /* uint_fast8_t */ XZ#define SCNoFAST16 "o" /* uint_fast16_t */ XZ#define SCNoFAST32 "lo" /* uint_fast32_t */ XZ#define SCNoFAST64 "llo" /* uint_fast64_t */ XZ#define SCNoMAX "llo" /* uintmax_t */ XZ#define SCNoPTR "o" /* uintptr_t */ XZ XZ#define SCNu8 "hhu" /* uint8_t */ XZ#define SCNu16 "u" /* uint16_t */ XZ#define SCNu32 "lu" /* uint32_t */ XZ#define SCNu64 "llu" /* uint64_t */ XZ#define SCNuLEAST8 "hhu" /* uint_least8_t */ XZ#define SCNuLEAST16 "u" /* uint_least16_t */ XZ#define SCNuLEAST32 "lu" /* uint_least32_t */ XZ#define SCNuLEAST64 "llu" /* uint_least64_t */ XZ#define SCNuFAST8 "hhu" /* uint_fast8_t */ XZ#define SCNuFAST16 "u" /* uint_fast16_t */ XZ#define SCNuFAST32 "lu" /* uint_fast32_t */ XZ#define SCNuFAST64 "llu" /* uint_fast64_t */ XZ#define SCNuMAX "llu" /* uintmax_t */ XZ#define SCNuPTR "u" /* uintptr_t */ XZ XZ#define SCNx8 "hhx" /* uint8_t */ XZ#define SCNx16 "x" /* uint16_t */ XZ#define SCNx32 "lx" /* uint32_t */ XZ#define SCNx64 "llx" /* uint64_t */ XZ#define SCNxLEAST8 "hhx" /* uint_least8_t */ XZ#define SCNxLEAST16 "x" /* uint_least16_t */ XZ#define SCNxLEAST32 "lx" /* uint_least32_t */ XZ#define SCNxLEAST64 "llx" /* uint_least64_t */ XZ#define SCNxFAST8 "hhx" /* uint_fast8_t */ XZ#define SCNxFAST16 "x" /* uint_fast16_t */ XZ#define SCNxFAST32 "lx" /* uint_fast32_t */ XZ#define SCNxFAST64 "llx" /* uint_fast64_t */ XZ#define SCNxMAX "llx" /* uintmax_t */ XZ#define SCNxPTR "x" /* uintptr_t */ XZ XZ/* Type declared as specified in C99 7.8 */ XZtypedef struct { XZ intmax_t quot; XZ intmax_t rem; XZ} imaxdiv_t; XZ XZ/* Functions declared as described in C99 7.8.2 (except wide functions) */ XZintmax_t imaxabs(intmax_t); XZimaxdiv_t imaxdiv(intmax_t, intmax_t); XZintmax_t strtoimax(const char * restrict, char ** restrict, int); XZuintmax_t strtoumax(const char * restrict, char ** restrict, int); XSHAR_EOF Xchmod 644 './usr/include/inttypes.h' Xfi Xif test -f './usr/include/iso646.h' Xthen X echo shar: "will not over-write existing file './usr/include/iso646.h'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/include/iso646.h' XZ/* XZ * Public domain - 2026/1/19 - ragge XZ * XZ * @(#)iso646.c 1.1 (2.11BSD) 2026/1/22 XZ */ XZ XZ#define and && XZ#define and_eq &= XZ#define bitand & XZ#define bitor | XZ#define compl ~ XZ#define not ! XZ#define not_eq != XZ#define or || XZ#define or_eq |= XZ#define xor ^ XZ#define xor_eq ^= XZ XSHAR_EOF Xchmod 644 './usr/include/iso646.h' Xfi Xif test -f './usr/include/locale.h' Xthen X echo shar: "will not over-write existing file './usr/include/locale.h'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/include/locale.h' XZ/* XZ * Copyright (c) 1991, 1993 XZ * The Regents of the University of California. All rights reserved. XZ * XZ * Redistribution and use in source and binary forms, with or without XZ * modification, are permitted provided that the following conditions XZ * are met: XZ * 1. Redistributions of source code must retain the above copyright XZ * notice, this list of conditions and the following disclaimer. XZ * 2. Redistributions in binary form must reproduce the above copyright XZ * notice, this list of conditions and the following disclaimer in the XZ * documentation and/or other materials provided with the distribution. XZ * 3. All advertising materials mentioning features or use of this software XZ * must display the following acknowledgement: XZ * This product includes software developed by the University of XZ * California, Berkeley and its contributors. XZ * 4. Neither the name of the University nor the names of its contributors XZ * may be used to endorse or promote products derived from this software XZ * without specific prior written permission. XZ * XZ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND XZ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE XZ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE XZ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE XZ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL XZ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS XZ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) XZ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT XZ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY XZ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF XZ * SUCH DAMAGE. XZ * XZ * @(#)locale.h 8.2 (2.11BSD) 2026/1/26 XZ */ XZ XZ#ifndef _LOCALE_H_ XZ#define _LOCALE_H_ XZ XZstruct lconv { XZ char *decimal_point; XZ char *thousands_sep; XZ char *grouping; XZ char *mon_decimal_point; XZ char *mon_thousands_sep; XZ char *mon_grouping; XZ char *positive_sign; XZ char *negative_sign; XZ char *currency_symbol; XZ char frac_digits; XZ char p_cs_precedes; XZ char n_cs_precedes; XZ char p_sep_by_space; XZ char n_sep_by_space; XZ char p_sign_posn; XZ char n_sign_posn; XZ XZ char *int_curr_symbol; XZ char int_frac_digits; XZ char int_p_cs_precedes; XZ char int_n_cs_precedes; XZ char int_p_sep_by_space; XZ char int_n_sep_by_space; XZ char int_p_sign_posn; XZ char int_n_sign_posn; XZ}; XZ XZ#define NULL 0 XZ XZ#define LC_ALL 0 XZ#define LC_COLLATE 1 XZ#define LC_CTYPE 2 XZ#define LC_MONETARY 3 XZ#define LC_NUMERIC 4 XZ#define LC_TIME 5 XZ XZ#define _LC_LAST 6 /* marks end */ XZ XZstruct lconv *localeconv(void); XZchar *setlocale(int, const char *); XZ XZ#endif /* _LOCALE_H_ */ XSHAR_EOF Xchmod 644 './usr/include/locale.h' Xfi Xif test -f './usr/src/bin/grep.c' Xthen X echo shar: "will not over-write existing file './usr/src/bin/grep.c'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/bin/grep.c' XZ#if !defined(lint) && defined(DOSCCS) XZstatic char sccsid[] = "@(#)grep.c 4.7 (2.11BSD) 2026/8/14"; XZ#endif XZ XZ/* XZ * grep -- print lines matching (or not matching) a pattern XZ * XZ * status returns: XZ * 0 - ok, and some matches XZ * 1 - ok, but no matches XZ * 2 - some error XZ */ XZ XZ#include XZ#include XZ XZ#define CBRA 1 XZ#define CCHR 2 XZ#define CDOT 4 XZ#define CCL 6 XZ#define NCCL 8 XZ#define CDOL 10 XZ#define CEOF 11 XZ#define CKET 12 XZ#define CBRC 14 XZ#define CLET 15 XZ#define CBACK 18 XZ XZ#define STAR 01 XZ XZ#define LBSIZE BUFSIZ XZ#define ESIZE 256 XZ#define NBRA 9 XZ XZchar expbuf[ESIZE]; XZlong lnum; XZchar linebuf[LBSIZE+1]; XZchar ybuf[ESIZE]; XZint lflag; XZint nflag; XZint cflag; XZint vflag; XZint nfile; XZint hflag = 1; XZint sflag; XZint yflag; XZint wflag; XZint retcode = 0; XZint circf; XZlong tln; XZint nsucc; XZchar *braslist[NBRA]; XZchar *braelist[NBRA]; XZchar bittab[] = { XZ 1, XZ 2, XZ 4, XZ 8, XZ 16, XZ 32, XZ 64, XZ 128 XZ}; XZ XZmain(argc, argv) XZ int argc; XZ char **argv; XZ{ XZ while (--argc > 0 && (++argv)[0][0]=='-') XZ switch (argv[0][1]) { XZ XZ case 'i': XZ case 'y': XZ yflag++; XZ continue; XZ XZ case 'w': XZ wflag++; XZ continue; XZ XZ case 'h': XZ hflag = 0; XZ continue; XZ XZ case 's': XZ sflag++; XZ continue; XZ XZ case 'v': XZ vflag++; XZ continue; XZ XZ case 'l': XZ lflag++; XZ continue; XZ XZ case 'c': XZ cflag++; XZ continue; XZ XZ case 'n': XZ nflag++; XZ continue; XZ XZ case 'e': XZ --argc; XZ ++argv; XZ goto out; XZ XZ default: XZ errexit("grep: unknown flag\n", (char *)NULL); XZ continue; XZ } XZout: XZ if (argc<=0) XZ exit(2); XZ if (yflag) { XZ register char *p, *s; XZ for (s = ybuf, p = *argv; *p; ) { XZ if (*p == '\\') { XZ *s++ = *p++; XZ if (*p) XZ *s++ = *p++; XZ } else if (*p == '[') { XZ while (*p != '\0' && *p != ']') XZ *s++ = *p++; XZ } else if (islower(*p)) { XZ *s++ = '['; XZ *s++ = toupper(*p); XZ *s++ = *p++; XZ *s++ = ']'; XZ } else XZ *s++ = *p++; XZ if (s >= ybuf+ESIZE-5) XZ errexit("grep: argument too long\n", (char *)NULL); XZ } XZ *s = '\0'; XZ *argv = ybuf; XZ } XZ compile(*argv); XZ nfile = --argc; XZ if (argc<=0) { XZ if (lflag) XZ exit(1); XZ execute((char *)NULL); XZ } else while (--argc >= 0) { XZ argv++; XZ execute(*argv); XZ } XZ exit(retcode != 0 ? retcode : nsucc == 0); XZ} XZ XZcompile(astr) XZchar *astr; XZ{ XZ register int c; XZ register char *ep, *sp; XZ char *cstart; XZ char *lastep; XZ int cclcnt; XZ char bracket[NBRA], *bracketp; XZ int closed; XZ char numbra; XZ char neg; XZ XZ ep = expbuf; XZ sp = astr; XZ lastep = 0; XZ bracketp = bracket; XZ closed = numbra = 0; XZ if (*sp == '^') { XZ circf++; XZ sp++; XZ } XZ if (wflag) XZ *ep++ = CBRC; XZ for (;;) { XZ if (ep >= &expbuf[ESIZE]) XZ goto cerror; XZ if ((c = *sp++) != '*') XZ lastep = ep; XZ switch (c) { XZ XZ case '\0': XZ if (wflag) XZ *ep++ = CLET; XZ *ep++ = CEOF; XZ return; XZ XZ case '.': XZ *ep++ = CDOT; XZ continue; XZ XZ case '*': XZ if (lastep==0 || *lastep==CBRA || *lastep==CKET || XZ *lastep == CBRC || *lastep == CLET) XZ goto defchar; XZ *lastep |= STAR; XZ continue; XZ XZ case '$': XZ if (*sp != '\0') XZ goto defchar; XZ *ep++ = CDOL; XZ continue; XZ XZ case '[': XZ if(&ep[17] >= &expbuf[ESIZE]) XZ goto cerror; XZ *ep++ = CCL; XZ neg = 0; XZ if((c = *sp++) == '^') { XZ neg = 1; XZ c = *sp++; XZ } XZ cstart = sp; XZ do { XZ if (c=='\0') XZ goto cerror; XZ if (c=='-' && sp>cstart && *sp!=']') { XZ for (c = sp[-2]; c<*sp; c++) XZ ep[c>>3] |= bittab[c&07]; XZ sp++; XZ } XZ ep[c>>3] |= bittab[c&07]; XZ } while((c = *sp++) != ']'); XZ if(neg) { XZ for(cclcnt = 0; cclcnt < 16; cclcnt++) XZ ep[cclcnt] ^= -1; XZ ep[0] &= 0376; XZ } XZ XZ ep += 16; XZ XZ continue; XZ XZ case '\\': XZ if((c = *sp++) == 0) XZ goto cerror; XZ if(c == '<') { XZ *ep++ = CBRC; XZ continue; XZ } XZ if(c == '>') { XZ *ep++ = CLET; XZ continue; XZ } XZ if(c == '(') { XZ if(numbra >= NBRA) { XZ goto cerror; XZ } XZ *bracketp++ = numbra; XZ *ep++ = CBRA; XZ *ep++ = numbra++; XZ continue; XZ } XZ if(c == ')') { XZ if(bracketp <= bracket) { XZ goto cerror; XZ } XZ *ep++ = CKET; XZ *ep++ = *--bracketp; XZ closed++; XZ continue; XZ } XZ XZ if(c >= '1' && c <= '9') { XZ if((c -= '1') >= closed) XZ goto cerror; XZ *ep++ = CBACK; XZ *ep++ = c; XZ continue; XZ } XZ XZ defchar: XZ default: XZ *ep++ = CCHR; XZ *ep++ = c; XZ } XZ } XZ cerror: XZ errexit("grep: RE error\n", (char *)NULL); XZ} XZ XZexecute(file) XZchar *file; XZ{ XZ register char *p1, *p2; XZ register int c; XZ XZ if (file) { XZ if (freopen(file, "r", stdin) == NULL) { XZ perror(file); XZ retcode = 2; XZ } XZ } XZ lnum = 0; XZ tln = 0; XZ XZ for (;;) { XZ lnum++; XZ p1 = linebuf; XZ while ((c = getchar()) != '\n') { XZ if (c == EOF) { XZ if (cflag) { XZ if (nfile>1) XZ printf("%s:", file); XZ printf("%D\n", tln); XZ fflush(stdout); XZ } XZ return; XZ } XZ *p1++ = c; XZ if (p1 >= &linebuf[LBSIZE-1]) XZ break; XZ } XZ *p1++ = '\0'; XZ p1 = linebuf; XZ p2 = expbuf; XZ if (circf) { XZ if (advance(p1, p2)) XZ goto found; XZ goto nfound; XZ } XZ /* fast check for first character */ XZ if (*p2==CCHR) { XZ c = p2[1]; XZ do { XZ if (*p1!=c) XZ continue; XZ if (advance(p1, p2)) XZ goto found; XZ } while (*p1++); XZ goto nfound; XZ } XZ /* regular algorithm */ XZ do { XZ if (advance(p1, p2)) XZ goto found; XZ } while (*p1++); XZ nfound: XZ if (vflag) XZ succeed(file); XZ continue; XZ found: XZ if (vflag==0) XZ succeed(file); XZ } XZ} XZ XZadvance(lp, ep) XZregister char *lp, *ep; XZ{ XZ register char *curlp; XZ char c; XZ char *bbeg; XZ int ct; XZ XZ for (;;) switch (*ep++) { XZ XZ case CCHR: XZ if (*ep++ == *lp++) XZ continue; XZ return(0); XZ XZ case CDOT: XZ if (*lp++) XZ continue; XZ return(0); XZ XZ case CDOL: XZ if (*lp==0) XZ continue; XZ return(0); XZ XZ case CEOF: XZ return(1); XZ XZ case CCL: XZ c = *lp++ & 0177; XZ if(ep[c>>3] & bittab[c & 07]) { XZ ep += 16; XZ continue; XZ } XZ return(0); XZ case CBRA: XZ braslist[*ep++] = lp; XZ continue; XZ XZ case CKET: XZ braelist[*ep++] = lp; XZ continue; XZ XZ case CBACK: XZ bbeg = braslist[*ep]; XZ if (braelist[*ep]==0) XZ return(0); XZ ct = braelist[*ep++] - bbeg; XZ if(ecmp(bbeg, lp, ct)) { XZ lp += ct; XZ continue; XZ } XZ return(0); XZ XZ case CBACK|STAR: XZ bbeg = braslist[*ep]; XZ if (braelist[*ep]==0) XZ return(0); XZ ct = braelist[*ep++] - bbeg; XZ curlp = lp; XZ while(ecmp(bbeg, lp, ct)) XZ lp += ct; XZ while(lp >= curlp) { XZ if(advance(lp, ep)) return(1); XZ lp -= ct; XZ } XZ return(0); XZ XZ XZ case CDOT|STAR: XZ curlp = lp; XZ while (*lp++); XZ goto star; XZ XZ case CCHR|STAR: XZ curlp = lp; XZ while (*lp++ == *ep); XZ ep++; XZ goto star; XZ XZ case CCL|STAR: XZ curlp = lp; XZ do { XZ c = *lp++ & 0177; XZ } while(ep[c>>3] & bittab[c & 07]); XZ ep += 16; XZ goto star; XZ XZ star: XZ if(--lp == curlp) { XZ continue; XZ } XZ XZ if(*ep == CCHR) { XZ c = ep[1]; XZ do { XZ if(*lp != c) XZ continue; XZ if(advance(lp, ep)) XZ return(1); XZ } while(lp-- > curlp); XZ return(0); XZ } XZ XZ do { XZ if (advance(lp, ep)) XZ return(1); XZ } while (lp-- > curlp); XZ return(0); XZ XZ case CBRC: XZ if (lp == expbuf) XZ continue; XZ#define uletter(c) (isalpha(c) || (c) == '_') XZ if (uletter(*lp) || isdigit(*lp)) XZ if (!uletter(lp[-1]) && !isdigit(lp[-1])) XZ continue; XZ return (0); XZ XZ case CLET: XZ if (!uletter(*lp) && !isdigit(*lp)) XZ continue; XZ return (0); XZ XZ default: XZ errexit("grep RE botch\n", (char *)NULL); XZ } XZ} XZ XZsucceed(f) XZchar *f; XZ{ XZ nsucc = 1; XZ if (sflag) XZ return; XZ if (cflag) { XZ tln++; XZ return; XZ } XZ if (lflag) { XZ printf("%s\n", f); XZ fflush(stdout); XZ fseek(stdin, 0l, 2); XZ return; XZ } XZ if (nfile > 1 && hflag) XZ printf("%s:", f); XZ if (nflag) XZ printf("%ld:", lnum); XZ printf("%s\n", linebuf); XZ fflush(stdout); XZ} XZ XZecmp(a, b, count) XZregister char *a, *b; XZ{ XZ register cc = count; XZ while(cc--) XZ if(*a++ != *b++) return(0); XZ return(1); XZ} XZ XZerrexit(s, f) XZchar *s, *f; XZ{ XZ fprintf(stderr, s, f); XZ exit(2); XZ} XSHAR_EOF Xchmod 644 './usr/src/bin/grep.c' Xfi Xif test ! -d './usr/src/bin/mkdir' Xthen X mkdir './usr/src/bin/mkdir' Xfi Xcd './usr/src/bin/mkdir' Xif test -f 'Makefile' Xthen X echo shar: "will not over-write existing file 'Makefile'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'Makefile' XZ# Makefile 1.0 (2.11BSD) 2026/1/27 XZ XZSRCS= mkdir.c XZOBJS= mkdir.o XZCFLAGS= -O XZLDFLAGS= -i XZ XZall: mkdir mkdir.0 XZ XZmkdir.0: mkdir.1 XZ /usr/man/manroff mkdir.1 > mkdir.0 XZ XZmkdir: ${OBJS} XZ cc ${LDFLAGS} -o mkdir ${OBJS} XZ XZinstall: all XZ install -c -o root -g staff -m 444 mkdir.0 /usr/man/cat1/mkdir.0 XZ install -c -s -o root -g staff -m 755 mkdir /bin/mkdir XZ XZclean: XZ rm -f ${OBJS} *.0 mkdir XSHAR_EOF Xchmod 644 'Makefile' Xfi Xif test -f 'mkdir.1' Xthen X echo shar: "will not over-write existing file 'mkdir.1'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'mkdir.1' XZ.\" Copyright (c) 1989, 1990, 1993 XZ.\" The Regents of the University of California. All rights reserved. XZ.\" XZ.\" This code is derived from software contributed to Berkeley by XZ.\" the Institute of Electrical and Electronics Engineers, Inc. XZ.\" XZ.\" Redistribution and use in source and binary forms, with or without XZ.\" modification, are permitted provided that the following conditions XZ.\" are met: XZ.\" 1. Redistributions of source code must retain the above copyright XZ.\" notice, this list of conditions and the following disclaimer. XZ.\" 2. Redistributions in binary form must reproduce the above copyright XZ.\" notice, this list of conditions and the following disclaimer in the XZ.\" documentation and/or other materials provided with the distribution. XZ.\" 3. All advertising materials mentioning features or use of this software XZ.\" must display the following acknowledgement: XZ.\" This product includes software developed by the University of XZ.\" California, Berkeley and its contributors. XZ.\" 4. Neither the name of the University nor the names of its contributors XZ.\" may be used to endorse or promote products derived from this software XZ.\" without specific prior written permission. XZ.\" XZ.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND XZ.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE XZ.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE XZ.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE XZ.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL XZ.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS XZ.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) XZ.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT XZ.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY XZ.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF XZ.\" SUCH DAMAGE. XZ.\" XZ.\" @(#)mkdir.1 8.3 (2.11BSD) 2026/1/27 XZ.\" XZ.Dd January 25, 1994 XZ.Dt MKDIR 1 XZ.Os XZ.Sh NAME XZ.Nm mkdir XZ.Nd make directories XZ.Sh SYNOPSIS XZ.Nm mkdir XZ.Op Fl p XZ.Op Fl m Ar mode XZ.Ar directory_name ... XZ.Sh DESCRIPTION XZ.Nm mkdir XZcreates the directories named as operands, in the order specified, XZusing mode XZ.Li rwxrwxrwx (\&0777) XZas modified by the current XZ.Xr umask 2 . XZ.Pp XZThe options are as follows: XZ.Pp XZ.Bl -tag -width indent XZ.It Fl m XZSet the file permission bits of the final created directory to XZthe specified mode. XZThe mode argument can be in any of the formats specified to the XZ.Xr chmod 1 XZcommand. XZIf a symbolic mode is specified, the operation characters XZ.Dq + XZand XZ.Dq - XZare interpreted relative to an initial mode of XZ.Dq a=rwx . XZ.It Fl p XZCreate intermediate directories as required. XZIf this option is not specified, the full path prefix of each XZoperand must already exist. XZIntermediate directories are created with permission bits of XZ.Li rwxrwxrwx (\&0777) XZas modified by the current umask, plus write and search XZpermission for the owner. XZ.El XZ.Pp XZThe user must have write permission in the parent directory. XZ.Pp XZ.Nm mkdir XZexits 0 if successful, and >0 if an error occurred. XZ.Sh SEE ALSO XZ.Xr rmdir 1 XZ.Sh STANDARDS XZThe XZ.Nm mkdir XZutility is expected to be XZ.St -p1003.2 XZcompatible. XSHAR_EOF Xchmod 644 'mkdir.1' Xfi Xif test -f 'mkdir.c' Xthen X echo shar: "will not over-write existing file 'mkdir.c'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'mkdir.c' XZ/* XZ * Copyright (c) 1983, 1992, 1993 XZ * The Regents of the University of California. All rights reserved. XZ * XZ * Redistribution and use in source and binary forms, with or without XZ * modification, are permitted provided that the following conditions XZ * are met: XZ * 1. Redistributions of source code must retain the above copyright XZ * notice, this list of conditions and the following disclaimer. XZ * 2. Redistributions in binary form must reproduce the above copyright XZ * notice, this list of conditions and the following disclaimer in the XZ * documentation and/or other materials provided with the distribution. XZ * 3. All advertising materials mentioning features or use of this software XZ * must display the following acknowledgement: XZ * This product includes software developed by the University of XZ * California, Berkeley and its contributors. XZ * 4. Neither the name of the University nor the names of its contributors XZ * may be used to endorse or promote products derived from this software XZ * without specific prior written permission. XZ * XZ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND XZ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE XZ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE XZ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE XZ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL XZ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS XZ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) XZ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT XZ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY XZ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF XZ * SUCH DAMAGE. XZ */ XZ XZ#if !defined(lint) && defined(DOSCCS) XZstatic char copyright[] = XZ"@(#) Copyright (c) 1983, 1992, 1993\n\ XZ The Regents of the University of California. All rights reserved.\n"; XZ XZstatic char sccsid[] = "@(#)mkdir.c 8.3 (2.11BSD) 2026/1/27"; XZ#endif XZ XZ#include XZ#include XZ XZ#include XZ#include XZ#include XZ#include XZ#include XZ XZint build(char *); XZvoid usage(void); XZ XZint XZmain(argc, argv) XZ int argc; XZ char *argv[]; XZ{ XZ int ch, exitval, oct, omode, pflag; XZ mode_t *set; XZ char *ep, *mode; XZ XZ pflag = 0; XZ mode = NULL; XZ while ((ch = getopt(argc, argv, "m:p")) != EOF) XZ switch(ch) { XZ case 'p': XZ pflag = 1; XZ break; XZ case 'm': XZ mode = optarg; XZ break; XZ case '?': XZ default: XZ usage(); XZ } XZ XZ argc -= optind; XZ argv += optind; XZ if (argv[0] == NULL) XZ usage(); XZ XZ if (mode == NULL) { XZ omode = S_IRWXU | S_IRWXG | S_IRWXO; XZ oct = 1; XZ } else if (*mode >= '0' && *mode <= '7') { XZ omode = (int)strtol(mode, &ep, 8); XZ if (omode < 0 || *ep) XZ errx(1, "invalid file mode: %s", mode); XZ oct = 1; XZ } else { XZ if ((set = setmode(mode)) == NULL) XZ errx(1, "invalid file mode: %s", mode); XZ oct = 0; XZ } XZ XZ for (exitval = 0; *argv != NULL; ++argv) { XZ if (pflag && build(*argv)) { XZ exitval = 1; XZ continue; XZ } XZ if (mkdir(*argv, oct ? XZ omode : getmode(set, S_IRWXU | S_IRWXG | S_IRWXO)) < 0) { XZ warn("%s", *argv); XZ exitval = 1; XZ } XZ } XZ exit(exitval); XZ} XZ XZint XZbuild(path) XZ char *path; XZ{ XZ struct stat sb; XZ mode_t numask, oumask; XZ int first; XZ register char *p; XZ XZ p = path; XZ if (p[0] == '/') /* Skip leading '/'. */ XZ ++p; XZ for (first = 1;; ++p) { XZ if (p[0] == '\0' || p[0] == '/' && p[1] == '\0') XZ break; XZ if (p[0] != '/') XZ continue; XZ *p = '\0'; XZ if (first) { XZ /* XZ * POSIX 1003.2: XZ * For each dir operand that does not name an existing XZ * directory, effects equivalent to those cased by the XZ * following command shall occcur: XZ * XZ * mkdir -p -m $(umask -S),u+wx $(dirname dir) && XZ * mkdir [-m mode] dir XZ * XZ * We change the user's umask and then restore it, XZ * instead of doing chmod's. XZ */ XZ oumask = umask(0); XZ numask = oumask & ~(S_IWUSR | S_IXUSR); XZ (void)umask(numask); XZ first = 0; XZ } XZ if (stat(path, &sb)) { XZ if (errno != ENOENT || XZ mkdir(path, S_IRWXU | S_IRWXG | S_IRWXO) < 0) { XZ warn("%s", path); XZ return (1); XZ } XZ } XZ *p = '/'; XZ } XZ if (!first) XZ (void)umask(oumask); XZ return (0); XZ} XZ XZvoid XZusage() XZ{ XZ (void)fprintf(stderr, "usage: mkdir [-p] [-m mode] directory ...\n"); XZ exit (1); XZ} XSHAR_EOF Xchmod 644 'mkdir.c' Xfi Xchmod 755 . Xcd .. Xcd $STARTDIR Xif test ! -d './usr/src/bin/ps' Xthen X mkdir './usr/src/bin/ps' Xfi Xcd './usr/src/bin/ps' Xif test -f 'ps.c' Xthen X echo shar: "will not over-write existing file 'ps.c'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'ps.c' XZ/* XZ * 2026/6/12 - cleanup. Remove allttys[]. Use devname(3). This saves XZ * 1KB of D space and obviates the need for bounds checking XZ * on a static array. Convert to use swapdevname(3) instead XZ * of a fixed string for the swap device name. XZ * XZ * 2026/2/2 - move this program to its own directory and relocate XZ * OLD/psout.h here. XZ * XZ * 2020/3/20 - Revise device name filtering to prevent tty table overflow XZ * if there are too many entries in /dev XZ * XZ * 1999/8/11 - Remove reference to SDETACH. It was removed from the kernel XZ * (finally) because it was not needed. XZ * XZ * 1997/12/16 - Fix coredump when processing -U. XZ * XZ * 1996/11/16 - Move 'psdatabase' in /var/run. XZ * XZ * 12/20/94 - Missing casts caused errors in reporting on swapped XZ * processes - sms XZ * 1/7/93 - Heavily revised when the symbol table format changed - sms XZ */ XZ XZ#include XZ#include XZ#include XZ#include XZ#include XZ#include XZ#include XZ#include XZ#include XZ#include XZ#include XZ#include XZ#include XZ#include XZ#include XZ#include "psout.h" XZ XZ#define within(x,y,z) (((unsigned)(x) >= (y)) && ((unsigned)(x) < (z))) XZ#define round(x,y) ((long) ((((long) (x) + (long) (y) - 1L) / (long) (y)) * (long) (y))) XZ XZ struct nlist nl[4]; XZ#define X_PROC 0 XZ#define X_NPROC 1 XZ#define X_HZ 2 XZ XZ/* XZ * This is no longer the size of a symbol's name, symbols can be much XZ * larger now. This define says how many characters of a symbol's name XZ * to save in the wait channel name. A new define has been created to XZ * limit the size of symbol string read from the string table. XZ*/ XZ#define NNAMESIZ 8 XZ#define MAXSYMLEN 32 XZ XZextern char *__progname; XZ XZ struct proc *mproc, proc[8]; XZ struct user u; XZ int hz; XZ int chkpid = 0; XZ char aflg; /* -a: all processes, not just mine */ XZ char cflg; /* -c: not complete listing of args, just comm. */ XZ char gflg; /* -g: complete listing including group headers, etc */ XZ char lflg; /* -l: long listing form */ XZ char nflg; /* -n: numeric wchans */ XZ char rflg; /* -r: raw output in style */ XZ char uflg; /* -u: user name */ XZ char wflg; /* -w[w]: wide terminal */ XZ char xflg; /* -x: ALL processes, even those without ttys */ XZ char Uflg; /* -U: rebuild the psdatabase */ XZ char *tptr, *mytty; XZ char *uname; XZ int file; XZ int nproc; XZ int nchans; XZ char *psdb = "/var/run/psdatabase"; XZ int npr; /* number of processes found so far */ XZ int twidth; /* terminal width */ XZ int cmdstart; /* start position for command field */ XZ char *memf = "/dev/mem"; /* name of kernel memory file */ XZ char *kmemf = "/dev/kmem"; /* name of physical memory file */ XZ char *swapf = NULL; /* name of swap file to use */ XZ char *nlistf = "/unix"; /* name of symbol table file to use */ XZ static char colon[] = ":"; XZ int kmem, mem, swap; XZ XZstatic void kflgeval(char *arg) XZ { XZ register char *ap; XZ XZ ap = strsep(&arg, colon); XZ if (ap) XZ { XZ if (*ap != '\0') XZ { XZ kmemf = ap; XZ memf = ap; XZ } XZ } XZ ap = strsep(&arg, colon); XZ if (ap) XZ { XZ if (*ap != '\0') XZ nlistf = ap; XZ } XZ ap = strsep(&arg, colon); XZ if (ap) XZ { XZ if (*ap != '\0') XZ swapf = ap; XZ } XZ } XZ XZ/* XZ * Structure for the unix wchan table XZ */ XZtypedef struct wchan { XZ char cname[NNAMESIZ]; XZ unsigned caddr; XZ } WCHAN; XZ XZ WCHAN *wchand; XZ XZ char *gettty(), *getptr(), *getchan(); XZ int pscomp(), wchancomp(); XZ XZstruct map { XZ off_t b1, e1; off_t f1; XZ off_t b2, e2; off_t f2; XZ }; XZ XZ struct winsize ws; XZ struct map datmap; XZ struct psout *outargs; /* info for first npr processes */ XZ XZmain (argc, argv) XZ int argc; XZ char **argv; XZ{ XZ int uid, euid, puid, nread; XZ register int i, j; XZ char *ap = NULL; XZ char sbuff[20]; XZ register struct proc *procp; XZ XZ/* XZ * Can't initialize unions and we need the macros from a.out.h, so the XZ * namelist is set up at run time. XZ*/ XZ nl[X_PROC].n_un.n_name = "_proc"; XZ nl[X_NPROC].n_un.n_name = "_nproc"; XZ nl[X_HZ].n_un.n_name = "_hz"; XZ XZ if ((ioctl(fileno(stdout), TIOCGWINSZ, &ws) != -1 && XZ ioctl(fileno(stderr), TIOCGWINSZ, &ws) != -1 && XZ ioctl(fileno(stdin), TIOCGWINSZ, &ws) != -1) || XZ ws.ws_col == 0) XZ twidth = 80; XZ else XZ twidth = ws.ws_col; XZ XZ/* XZ * XXX - hack to allow "ps ax" to function the same as "ps -ax". getopt() XZ * XXX can't recognize options unless a leading '-' is present. XZ*/ XZ XZ if (argc > 1) XZ { XZ if (argv[1][0] != '-' && !isdigit(argv[1][0])) XZ { XZ ap = malloc(strlen(argv[1]) + 2); XZ ap[0] = '-'; XZ strcpy(ap + 1, argv[1]); XZ argv[1] = ap; XZ } XZ } XZ XZ while ((i = getopt(argc, argv, "acgp:k:lnrt:uUwx")) != EOF) XZ { XZ switch (i) XZ { XZ case 'a': XZ aflg++; XZ break; XZ case 'c': XZ cflg++; XZ break; XZ case 'g': XZ gflg++; XZ break; XZ case 'k': XZ kflgeval(optarg); XZ break; XZ case 'l': XZ lflg = 1; XZ break; XZ case 'n': XZ nflg++; XZ lflg = 1; XZ break; XZ case 'r': XZ rflg++; XZ break; XZ case 't': XZ tptr = optarg; XZ aflg++; XZ gflg++; XZ if (*tptr == '?') XZ xflg++; XZ break; XZ case 'u': XZ uflg = 1; XZ break; XZ case 'U': XZ Uflg++; XZ break; XZ case 'w': XZ if (wflg) XZ twidth = BUFSIZ; XZ else if (twidth < 132) XZ twidth = 132; XZ wflg++; XZ break; XZ case 'x': XZ xflg++; XZ break; XZ case 'p': XZ chkpid = atoi(optarg); XZ aflg++; XZ xflg++; XZ break; XZ default: XZ case '?': XZ fprintf(stderr, "usage: %s [-acglnruwxU] [-p pid] [-k mem[:kern[:swap]]] [-t tt]\n", __progname); XZ exit(EX_USAGE); XZ } XZ } XZ XZ argc -= optind; XZ argv += optind; XZ XZ kmem = open(kmemf, 0); XZ mem = open(memf, 0); XZ XZ if (swapf == NULL) XZ { XZ swapdevname(sbuff, sizeof sbuff); XZ swapf = sbuff; XZ } XZ swap = open(swapf, 0); XZ XZ if (kmem < 0) XZ perrexit(kmemf); XZ if (mem < 0) XZ perrexit(memf); XZ if (swap < 0) XZ perrexit(swapf); XZ XZ getkvars(); XZ lseek(kmem,(off_t)nl[X_PROC].n_value,0); XZ uid = getuid(); XZ euid = geteuid(); XZ mytty = ttyname(0); XZ if (!strncmp(mytty,"/dev/",5)) mytty += 5; XZ if (!strncmp(mytty,"tty",3)) mytty += 3; XZ printhdr(); XZ for (i = 0; i < nproc; i += 8) { XZ j = nproc - i; XZ if (j > 8) XZ j = 8; XZ j *= sizeof (struct proc); XZ if ((nread = read(kmem, (char *) proc, j)) != j) { XZ cantread("proc table", kmemf); XZ if (nread == -1) XZ break; XZ } XZ for (j = nread / sizeof (struct proc) - 1; j >= 0; j--) { XZ mproc = &proc[j]; XZ procp = mproc; XZ /* skip processes that don't exist */ XZ if (procp->p_stat == 0) XZ continue; XZ /* skip those without a tty unless -x */ XZ if (procp->p_pgrp == 0 && xflg == 0) XZ continue; XZ /* skip group leaders on a tty unless -g, -x, or -t.. */ XZ if (!tptr && !gflg && !xflg && procp->p_ppid == 1) XZ continue; XZ /* -g also skips those where **argv is "-" - see savcom */ XZ puid = procp->p_uid; XZ /* skip other peoples processes unless -a or a specific pid */ XZ if ((uid != puid && euid != puid && aflg == 0) || XZ (chkpid != 0 && chkpid != procp->p_pid)) XZ continue; XZ if (savcom(puid)) XZ npr++; XZ } XZ } XZ fixup(npr); XZ for (i = 0; i < npr; i++) { XZ register int cmdwidth = twidth - cmdstart - 2; XZ register struct psout *a = &outargs[i]; XZ XZ if (rflg) { XZ if (write(1, (char *) a, sizeof (*a)) != sizeof (*a)) XZ perror("write"); XZ continue; XZ } XZ else if (lflg) XZ lpr(a); XZ else if (uflg) XZ upr(a); XZ else XZ spr(a); XZ if (cmdwidth < 0) XZ cmdwidth = 80 - cmdstart - 2; XZ if (a->o_stat == SZOMB) XZ printf("%.*s", cmdwidth, " "); XZ else if (a->o_pid == 0) XZ printf("%.*s", cmdwidth, " [swapper]"); XZ else XZ printf(" %.*s", twidth - cmdstart - 2, cflg ? a->o_comm : a->o_args); XZ putchar('\n'); XZ } XZ exit(!npr); XZ} XZ XZsavcom(puid) XZ{ XZ char *tp; XZ off_t addr; XZ off_t daddr, saddr; XZ register struct psout *a; XZ register struct proc *procp = mproc; XZ register struct user *up = &u; XZ long txtsiz, datsiz, stksiz; XZ int septxt; XZ XZ if (procp->p_flag & SLOAD) { XZ addr = ctob((off_t) procp->p_addr); XZ daddr = ctob((off_t) procp->p_daddr); XZ saddr = ctob((off_t) procp->p_saddr); XZ file = mem; XZ } XZ else { XZ addr = (off_t)procp->p_addr << 9; XZ daddr = (off_t)procp->p_daddr << 9; XZ saddr = (off_t)procp->p_saddr << 9; XZ file = swap; XZ } XZ lseek(file, addr, 0); XZ if (read(file, (char *) up, sizeof (u)) != sizeof (u)) XZ return(0); XZ XZ txtsiz = ctob(up->u_tsize); /* set up address maps for user pcs */ XZ datsiz = ctob(up->u_dsize); XZ stksiz = ctob(up->u_ssize); XZ septxt = up->u_sep; XZ datmap.b1 = (septxt ? 0 : round(txtsiz, TXTRNDSIZ)); XZ datmap.e1 = datmap.b1 + datsiz; XZ datmap.f1 = daddr; XZ datmap.f2 = saddr; XZ datmap.b2 = stackbas(stksiz); XZ datmap.e2 = stacktop(stksiz); XZ tp = gettty(); XZ if ((tptr && strncmp(tptr,tp,2)) || (strncmp(mytty, tp, 2) && !aflg)) XZ return(0); XZ a = &outargs[npr]; /* saving com starts here */ XZ a->o_uid = puid; XZ a->o_pid = procp->p_pid; XZ a->o_flag = procp->p_flag; XZ a->o_ppid = procp->p_ppid; XZ a->o_cpu = procp->p_cpu; XZ a->o_pri = procp->p_pri; XZ a->o_nice = procp->p_nice; XZ a->o_addr0 = procp->p_addr; XZ a->o_size = ctod(procp->p_dsize + procp->p_ssize + USIZE); XZ a->o_wchan = procp->p_wchan; XZ a->o_pgrp = procp->p_pgrp; XZ strncpy(a->o_tty, tp, sizeof (a->o_tty)); XZ a->o_ttyd = tp[0] == '?' ? -1 : up->u_ttyd; XZ a->o_stat = procp->p_stat; XZ a->o_flag = procp->p_flag; XZ XZ if (a->o_stat == SZOMB) XZ return(1); XZ a->o_utime = up->u_ru.ru_utime; XZ a->o_stime = up->u_ru.ru_stime; XZ a->o_uname[0] = 0; XZ strncpy(a->o_comm, up->u_comm, MAXCOMLEN); XZ XZ if (cflg) XZ return (1); XZ else XZ return(getcmd(a,saddr)); XZ} XZ XZchar * XZgettty() XZ{ XZ register char *p; XZ XZ if (u.u_ttyp) XZ { XZ p = devname(u.u_ttyd, S_IFCHR); XZ if (!strncmp(p,"tty",3)) XZ p += 3; XZ return(p); XZ } XZ return("?"); XZ} XZ XZ/* XZ * fixup figures out everybodys name and sorts into a nice order. XZ */ XZfixup(np) XZregister int np; XZ{ XZ register int i; XZ register struct passwd *pw; XZ XZ if (uflg) { XZ /* XZ * If we want names, traverse the password file. For each XZ * passwd entry, look for it in the processes. XZ * In case of multiple entries in the password file we believe XZ * the first one (same thing ls does). XZ */ XZ while ((pw = getpwent()) != (struct passwd *) NULL) { XZ for (i = 0; i < np; i++) XZ if (outargs[i].o_uid == pw->pw_uid) { XZ if (outargs[i].o_uname[0] == 0) XZ strcpy(outargs[i].o_uname, pw->pw_name); XZ } XZ } XZ } XZ qsort(outargs, np, sizeof (outargs[0]), pscomp); XZ} XZ XZpscomp(x1, x2) XZregister struct psout *x1, *x2; XZ{ XZ register int c; XZ XZ c = (x1)->o_ttyd - (x2)->o_ttyd; XZ if (c == 0) XZ c = (x1)->o_pid - (x2)->o_pid; XZ return(c); XZ} XZ XZwchancomp(x1, x2) XZregister WCHAN *x1, *x2; XZ{ XZ if (x1->caddr > x2->caddr) XZ return(1); XZ else if (x1->caddr == x2->caddr) XZ return(0); XZ else XZ return(-1); XZ} XZ XZchar * XZgetptr(adr) XZchar **adr; XZ{ XZ char *ptr = 0; XZ register char *p, *pa; XZ register int i; XZ XZ pa = (char *)adr; XZ p = (char *)&ptr; XZ for (i = 0; i < sizeof (ptr); i++) XZ *p++ = getbyte(pa++); XZ return(ptr); XZ} XZ XZgetbyte(adr) XZregister char *adr; XZ{ XZ register struct map *amap = &datmap; XZ char b; XZ off_t saddr; XZ XZ if (!within(adr, amap->b1, amap->e1)) XZ if (within(adr, amap->b2, amap->e2)) XZ saddr = (unsigned) adr + amap->f2 - amap->b2; XZ else return(0); XZ else saddr = (unsigned) adr + amap->f1 - amap->b1; XZ if (lseek(file, saddr, 0) == (off_t) -1 || read (file, &b, 1) < 1) XZ return(0); XZ return((unsigned) b); XZ} XZ XZaddchan(name, caddr) XZ char *name; XZ unsigned caddr; XZ { XZ static int left = 0; XZ register WCHAN *wp; XZ XZ if (left == 0) XZ { XZ if (wchand) XZ { XZ left = 50; XZ wchand = (WCHAN *)realloc(wchand, (nchans + left) * XZ sizeof (struct wchan)); XZ } XZ else XZ { XZ left = 300; XZ wchand = (WCHAN *)malloc(left * sizeof (struct wchan)); XZ } XZ if (!wchand) XZ { XZ fprintf(stderr, "ps: out of wait chan memory\n"); XZ nflg++; XZ return; XZ } XZ } XZ wp = &wchand[nchans++]; XZ left--; XZ strncpy(wp->cname, name, NNAMESIZ - 1); XZ wp->cname[NNAMESIZ-1] = '\0'; XZ wp->caddr = caddr; XZ } XZ XZchar * XZgetchan(chan) XZregister unsigned int chan; XZ{ XZ register int i; XZ register char *prevsym; XZ XZ prevsym = ""; XZ if (chan) XZ for (i = 0; i < nchans; i++) { XZ if (wchand[i].caddr > chan) XZ return (prevsym); XZ prevsym = wchand[i].cname; XZ } XZ return(prevsym); XZ} XZ XZnlist() XZ { XZ register FILE *nlistf_fp; XZ FILE *strfp; XZ register struct nlist *nnn; XZ int flag, nsyms; XZ struct nlist nbuf; XZ struct xexec hbuf; XZ char name[MAXSYMLEN + 2]; XZ int nllen; XZ off_t sa, stroff; XZ XZ bzero(name, sizeof (name)); XZ nllen = sizeof(nl) / sizeof(struct nlist); XZ if (!(nlistf_fp = fopen(nlistf,"r"))) XZ perrexit(nlistf); XZ strfp = fopen(nlistf, "r"); XZ if (fread(&hbuf,sizeof(hbuf),1,nlistf_fp) != 1) XZ { XZ fputs("Invalid symbol table\n",stderr); XZ exit(1); XZ } XZ if (N_BADMAG(hbuf.e)) XZ { XZ fprintf(stderr,"%s: bad magic number\n",nlistf); XZ exit(1); XZ } XZ nsyms = hbuf.e.a_syms / sizeof (struct nlist); XZ if (nsyms == 0) XZ { XZ fprintf(stderr,"%s: no symbols\n",nlistf); XZ exit(1); XZ } XZ sa = N_SYMOFF(hbuf); XZ stroff = N_STROFF(hbuf); XZ fseek(nlistf_fp, sa, L_SET); XZ XZ addchan("u", 0140000); /* XXX - _u on 2.11BSD will _never_ change */ XZ while (nsyms--) XZ { XZ fread(&nbuf,sizeof(nbuf),1,nlistf_fp); XZ/* XZ * Read the symbol string. Can't rely on having enough memory to hold the XZ * entire string table so do a seek+read for each name. XZ * XZ * Skip over anything which isn't an external data or bss symbol. This XZ * greatly reduces the number of seek/read calls done. Also this avoids XZ * matching on absolute symbols created during the unix/netnix cross binding. XZ*/ XZ if ((nbuf.n_type & N_EXT) == 0) XZ continue; XZ flag = nbuf.n_type & N_TYPE; XZ if (!(flag == N_DATA || flag == N_BSS)) XZ continue; XZ XZ fseek(strfp, nbuf.n_un.n_strx + stroff, L_SET); XZ fread(name, MAXSYMLEN, 1, strfp); XZ XZ if (!nflg) XZ addchan(name + 1, nbuf.n_value); XZ if (nllen) XZ { XZ for (nnn = nl; nnn->n_un.n_name; nnn++) XZ { XZ if (!strcmp(nnn->n_un.n_name, name)) XZ { XZ nnn->n_value = nbuf.n_value; XZ nnn->n_type = nbuf.n_type; XZ nnn->n_ovly = nbuf.n_ovly; XZ --nllen; XZ break; XZ } XZ } XZ } XZ } XZ fclose(nlistf_fp); XZ fclose(strfp); XZ if (!nflg) XZ qsort(wchand,nchans,sizeof(WCHAN),wchancomp); XZ } XZ XZperrexit(msg) XZchar *msg; XZ{ XZ perror(msg); XZ exit(1); XZ} XZ XZwritepsdb() XZ{ XZ register FILE *fp; XZ int nllen; XZ XZ setuid(getuid()); XZ if (!(fp = fopen (psdb, "w"))) XZ perrexit(psdb); XZ else XZ fchmod(fileno(fp),0644); XZ nllen = sizeof(nl) / sizeof(struct nlist); XZ fwrite(nlistf,strlen(nlistf) + 1,1,fp); XZ fwrite((char *)&nllen,sizeof(nllen),1,fp); XZ fwrite((char *)&nchans,sizeof(nchans),1,fp); XZ fwrite((char *)nl,sizeof(struct nlist),nllen,fp); XZ fwrite((char *)wchand,sizeof(WCHAN),nchans,fp); XZ fclose(fp); XZ} XZ XZchar * XZreadpsdb() XZ{ XZ register FILE *fp; XZ static char unamebuf[MAXPATHLEN + 1]; XZ char *p = unamebuf; XZ int nllen; XZ XZ if ((fp = fopen(psdb, "r")) == NULL) XZ perrexit(psdb); XZ XZ while ((*p= getc(fp)) != '\0') XZ p++; XZ fread(&nllen, sizeof nllen, 1, fp); XZ fread(&nchans, sizeof nchans, 1, fp); XZ fread(nl, sizeof (struct nlist), nllen, fp); XZ if (!nflg) XZ if (!(wchand = (WCHAN *)calloc(nchans, sizeof(WCHAN)))) XZ { XZ fputs("Too many symbols\n",stderr); XZ exit(1); XZ } XZ else XZ fread(wchand, sizeof(WCHAN), nchans, fp); XZ return(unamebuf); XZ} XZ XZ XZgetkvars() XZ{ XZ struct stat st; XZ XZ if (Uflg) { XZ nlist(); XZ writepsdb(); XZ exit(0); XZ } XZ else if (stat(psdb, &st) == 0) { XZ uname = readpsdb(); XZ if (strcmp(uname,nlistf)) { XZ /* XZ * Let addchan() do the work. XZ */ XZ nchans = 0; XZ free((char *)wchand); XZ wchand = NULL; XZ nlist(); XZ } XZ } XZ else { XZ nlist(); XZ } XZ XZ /* find number of procs */ XZ if (nl[X_NPROC].n_value) { XZ lseek(kmem,(off_t)nl[X_NPROC].n_value,0); XZ if (read(kmem,(char *)&nproc,sizeof(nproc)) != sizeof(nproc)) { XZ perror(kmemf); XZ exit(1); XZ } XZ } XZ else { XZ fputs("nproc not in namelist\n",stderr); XZ exit(1); XZ } XZ outargs = (struct psout *)calloc(nproc, sizeof(struct psout)); XZ if (!outargs) { XZ fputs("ps: out of memory for proc info\n",stderr); XZ exit(1); XZ } XZ XZ /* find value of hz */ XZ lseek(kmem,(off_t)nl[X_HZ].n_value,0); XZ read(kmem,(char *)&hz,sizeof(hz)); XZ} XZ XZ XZchar *uhdr = "USER PID NICE SZ TTY TIME"; XZupr(a) XZregister struct psout *a; XZ{ XZ printf("%-8.8s%6u%4d%4d %-2.2s",a->o_uname,a->o_pid,a->o_nice,a->o_size,a->o_tty); XZ ptime(a); XZ} XZ XZchar *shdr = " PID TTY TIME"; XZspr (a) XZregister struct psout *a; XZ{ XZ printf("%6u %-2.2s",a->o_pid,a->o_tty); XZ ptime(a); XZ} XZ XZchar *lhdr = " F S UID PID PPID CPU PRI NICE ADDR SZ WCHAN TTY TIME"; XZlpr(a) XZregister struct psout *a; XZ{ XZ static char clist[] = "0SWRIZT"; XZ XZ printf("%3o %c%6u%6u%6u%4d%4d%4d%7o%4d", XZ0377 & a->o_flag,clist[a->o_stat],a->o_uid,a->o_pid, XZa->o_ppid,a->o_cpu & 0377,a->o_pri,a->o_nice,a->o_addr0,a->o_size); XZ if (nflg) XZ if (a->o_wchan) XZ printf(" %6o ", a->o_wchan); XZ else XZ fputs(" ",stdout); XZ else XZ printf(" %-*.*s",NNAMESIZ, NNAMESIZ, getchan(a->o_wchan)); XZ printf(" %-2.2s",a->o_tty); XZ ptime(a); XZ} XZ XZptime(a) XZstruct psout *a; XZ{ XZ time_t tm; XZ XZ tm = (a->o_utime + a->o_stime + 30) / hz; XZ printf("%3ld:",tm / 60); XZ tm %= 60; XZ printf(tm < 10 ? "0%ld" : "%ld",tm); XZ} XZ XZgetcmd(a,addr) XZoff_t addr; XZregister struct psout *a; XZ{ XZ /* amount of top of stack to examine for args */ XZ#define ARGLIST (1024/sizeof(int)) XZ register int *ip; XZ register char *cp, *cp1; XZ char c, **ap; XZ int cc, nbad, abuf [ARGLIST]; XZ XZ a->o_args[0] = 0; /* in case of early return */ XZ addr += ctob((off_t) mproc->p_ssize) - ARGLIST*sizeof(int); XZ XZ /* look for sh special */ XZ lseek(file, addr + ARGLIST*sizeof(int) - sizeof (char **), 0); XZ if (read(file, (char *) &ap, sizeof (char *)) != sizeof (char *)) XZ return (1); XZ if (ap) { XZ char b[82]; XZ char *bp = b; XZ while ((cp = getptr(ap++)) && cp && (bp < b+sizeof (a->o_args)) ) { XZ nbad = 0; XZ while ((c = getbyte(cp++)) && (bp < b+sizeof (a->o_args))) { XZ if (c<' ' || c > '~') { XZ if (nbad++ > 3) XZ break; XZ continue; XZ } XZ *bp++ = c; XZ } XZ *bp++ = ' '; XZ } XZ *bp++ = 0; XZ (void)strcpy(a->o_args, b); XZ return(1); XZ } XZ XZ lseek(file, addr, 0); XZ if (read(file, (char *) abuf, sizeof (abuf)) != sizeof (abuf)) XZ return (1); XZ abuf[ARGLIST-1] = 0; XZ for (ip = &abuf[ARGLIST-2]; ip > abuf;) { XZ if (*--ip == -1 || *ip == 0) { XZ cp = (char *) (ip + 1); XZ if (*cp == '\0') XZ cp++; XZ nbad = 0; XZ for (cp1 = cp; cp1 < (char *) &abuf[ARGLIST]; cp1++) { XZ cc = *cp1 & 0177; XZ if (cc == 0) XZ *cp1 = ' '; XZ else if (cc < ' ' || cc > 0176) { XZ if (++nbad >= 5) { XZ *cp1++ = ' '; XZ break; XZ } XZ *cp1 = '?'; XZ } else if (cc == '=') { XZ *cp1 = '\0'; XZ while (cp1 > cp && *--cp1 != ' ') XZ *cp1 = '\0'; XZ break; XZ } XZ } XZ while (*--cp1 == ' ') XZ *cp1 = 0; XZ (void)strcpy(a->o_args, cp); XZgarbage: XZ cp = a->o_args; XZ if (cp[0] == '-' && cp[1] <= ' ' || cp[0] == '?' || cp[0] <= ' ') { XZ strcat(cp, " ("); XZ strcat(cp, u.u_comm); XZ strcat(cp, ")"); XZ } XZ cp[63] = 0; /* max room in psout is 64 chars */ XZ if (xflg || gflg || tptr || cp[0] != '-') XZ return(1); XZ return(0); XZ } XZ } XZ goto garbage; XZ} XZ XZprinthdr() XZ{ XZ register char *hdr, *cmdstr = " COMMAND"; XZ XZ if (rflg) XZ return; XZ if (lflg && uflg) { XZ fputs("ps: specify only one of l and u.\n",stderr); XZ exit(1); XZ } XZ hdr = lflg ? lhdr : (uflg ? uhdr : shdr); XZ fputs(hdr,stdout); XZ cmdstart = strlen(hdr); XZ if (cmdstart + strlen(cmdstr) >= twidth) XZ cmdstr = " CMD"; XZ printf("%s\n", cmdstr); XZ fflush(stdout); XZ} XZ XZcantread(what, fromwhat) XZ char *what, *fromwhat; XZ{ XZ XZ fprintf(stderr, "ps: error reading %s from %s\n", what, fromwhat); XZ} XSHAR_EOF Xchmod 644 'ps.c' Xfi Xif test -f 'Makefile' Xthen X echo shar: "will not over-write existing file 'Makefile'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'Makefile' XZ# @(#)Makefile 1.0 (2.11BSD) 2026/1/30 XZ XZSRCS= ps.c XZOBJS= ps.o XZCFLAGS= -O -I. XZ XZall: ps XZ XZps: ${OBJS} XZ cc -i -o ps ${OBJS} XZ XZinstall: XZ install -c -s -o root -g kmem -m 2755 ps /bin XZ XZclean: XZ rm -f *.o ps XSHAR_EOF Xchmod 644 'Makefile' Xfi Xif test -f 'psout.h' Xthen X echo shar: "will not over-write existing file 'psout.h'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'psout.h' XZ/* XZ * Copyright (c) 1986 Regents of the University of California. XZ * All rights reserved. The Berkeley software License Agreement XZ * specifies the terms and conditions for redistribution. XZ * XZ * @(#)psout.h 5.3 (2.11BSD) 2026/2/2 XZ */ XZ XZ/* XZ * psout: structure used internally by 'ps' XZ */ XZ XZ#include XZ XZstruct psout { XZ dev_t o_ttyd; /* u_ttyd */ XZ int o_flag; /* p_flag */ XZ short o_pid; /* p_pid */ XZ char o_tty[3]; /* 1st 2 chars of tty after 'tty' */ XZ char o_stat; /* p_stat */ XZ short o_uid; /* p_uid */ XZ char o_uname[UT_NAMESIZE]; /* login name of process owner */ XZ short o_ppid; /* p_ppid */ XZ char o_cpu; /* p_cpu */ XZ char o_pri; /* p_pri */ XZ char o_nice; /* p_nice */ XZ short o_addr0; /* p_addr[0] */ XZ short o_size; /* p_size */ XZ caddr_t o_wchan; /* p_wchan */ XZ time_t o_utime; /* u_utime */ XZ time_t o_stime; /* u_stime */ XZ short o_pgrp; /* p_pgrp */ XZ char o_comm[MAXCOMLEN+1]; /* u_comm */ XZ char o_args[64]; /* best guess at args to process */ XZ}; XSHAR_EOF Xchmod 644 'psout.h' Xfi Xchmod 755 . Xcd .. Xcd $STARTDIR Xif test -f './usr/src/etc/acctd.cf' Xthen X echo shar: "will not over-write existing file './usr/src/etc/acctd.cf'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/etc/acctd.cf' XZsuspend=2 XZresume=4 XZchkfreq=30 XZacctfile=/usr/adm/acct XSHAR_EOF Xchmod 640 './usr/src/etc/acctd.cf' Xfi Xif test -f './usr/src/etc/rc.conf' Xthen X echo shar: "will not over-write existing file './usr/src/etc/rc.conf'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/etc/rc.conf' XZ# XZ# @(#)rc.conf 1.1 (2.11BSD) 2026/10/7 XZ# XZ XZ# The following values should all be set to YES or NO XZ XZrc_configured=NO XZ XZrwhod=NO # Run rwho daemon XZnamed=NO # Run local DNS server XZsendmail=YES # Run local sendmail XZntpd=NO # Run ntpd daemon XZntp=NO # Set system time at boot using ntp XZtimed=NO # Run timed daemon XZ XZ# Host definitions and network interface selection. IMPORTANT: The values XZ# set here may also require changes to /etc/hosts and /etc/resolv.conf XZ XZ# hostname is the symbolic name of this host (address set in /etc/hosts) XZ# address is the network address of this host XZ# netmask is network mask, generally assigned by your ISP or router XZ# gateway should be set to the IP address where this host will send packets XZ# to hosts not on your local LAN, generally assigned by your ISP or XZ# router XZ# interface should be the actual interface on your machine XZ# de0 for Unibus XZ# qe0 for Qbus XZ# qt0 for Qbus XZ# This normally is not needed to be set. It will by default XZ# be set to de0 or qe0 based on machine type. XZ XZ# hostname=pidp.example.com XZ# address=192.168.0.40 XZ# netmask=255.255.255.0 XZ# gateway=192.168.0.1 XZ# interface=de0 XZ XZ# XZ# DON'T EVEN THINK ABOUT RUNNING ROUTED ON A PDP-11!!! Just set routedflags XZ# to "NO" and set up a default gateway. XZ# XZ# routedflags=NO XSHAR_EOF Xchmod 744 './usr/src/etc/rc.conf' Xfi Xif test -f './usr/src/etc/root/dot.minimal' Xthen X echo shar: "will not over-write existing file './usr/src/etc/root/dot.minimal'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/etc/root/dot.minimal' XZ# minimal .profile for use by sh after being started by init (single user mode) XZecho 'erase ^H kill ^U intr ^C' XZstty dec XZstty erase \^H kill \^U intr \^C XZPATH=/bin:/sbin:/usr/sbin:/etc:/usr/ucb:/usr/bin XZexport PATH XZHOME=/ XZexport HOME XZumask 22 XSHAR_EOF Xchmod 644 './usr/src/etc/root/dot.minimal' Xfi Xif test -f './usr/src/etc/sendmail.cf' Xthen X echo shar: "will not over-write existing file './usr/src/etc/sendmail.cf'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/etc/sendmail.cf' XZ############################################################ XZ# SENDMAIL CONFIGURATION FILE XZ# Non-uucp version. XZ# Any mail other than local hosts is sent to a relay system. XZ############################################################ XZ XZ# internet hostname and alias(es) XZDj$w XZ XZCwLOCAL XZ XZ###################### XZ# General Macros # XZ###################### XZ XZ# local domain names XZDDEXAMPLE.COM XZ XZ# our arpanet gateway XZDARELAY.EXAMPLE.COM XZ XZ# the UUCP relay XZDU XZ XZ# local hosts (used to avoid uucp hops if we can contact them directly) XZCS XZ XZ############### XZ# Classes # XZ############### XZ XZ# local domains XZCTLOCAL UUCP XZ XZ# Internal domains that we use in rewriting (not known by NIC) XZCILOCAL UUCP XZ XZ###################### XZ# Version Number # XZ###################### XZ XZDZ1.25 XZ XZ###################### XZ# Special macros # XZ###################### XZ XZ# my name XZDnMAILER-DAEMON XZ# UNIX header format XZDlFrom $g $d XZ# delimiter (operator) characters XZDo.:%@!^=/[] XZ# format of a total name XZDq$g$?x ($x)$. XZ# SMTP login message XZDe$j Sendmail $v/$Z ready at $b XZ XZ# forwarding host -- redefine this if you can't talk to the relay directly # XZDF$R XZ XZ############### XZ# Options # XZ############### XZ XZ# location of alias file XZOA/etc/aliases XZ# wait up to ten minutes for alias file rebuild XZOa10 XZ# substitution for space (blank) characters XZOB. XZ# (don't) connect to "expensive" mailers XZ#Oc XZ# default delivery mode (deliver in background) XZOdbackground XZ# temporary file mode XZOF0600 XZ# default GID XZOg1 XZ# location of help file XZOH/usr/share/misc/sendmail.hf XZ# log level XZOL9 XZ# default network name XZONARPA XZ# default messages to old style XZOo XZ# queue directory XZOQ/usr/spool/mqueue XZ# read timeout -- violates protocols XZOr2h XZ# status file XZOS/var/log/sendmail.st XZ# queue up everything before starting transmission XZOs XZ# default timeout interval XZOT2d XZ# time zone names (V6 only) XZOtPST,PDT XZ# default UID XZOu1 XZ# wizard's password XZOW* XZ# load average at which we just queue messages XZOx4 XZ# load average at which we refuse connections XZOX6 XZ XZ########################### XZ# Message precedences # XZ########################### XZ XZPspecial-delivery=100 XZPfirst-class=0 XZPbulk=-60 XZPjunk=-100 XZ XZ##################### XZ# Trusted users # XZ##################### XZ XZTroot XZTdaemon XZTuucp XZTpostmaster XZ XZ######################### XZ# Format of headers # XZ######################### XZ XZH?P?Return-Path: <$g> XZHReceived: $?sfrom $s $.by $j ($v/$Z) XZ id $i; $b XZH?D?Resent-Date: $a XZH?D?Date: $a XZH?F?Resent-From: $q XZH?F?From: $q XZH?x?Full-Name: $x XZHSubject: XZ# HPosted-Date: $a XZ# H?l?Received-Date: $b XZH?M?Resent-Message-Id: <$t.$i@$j> XZH?M?Message-Id: <$t.$i@$j> XZ XZ########################### XZ### Rewriting Rules ### XZ########################### XZ XZ################################ XZ# Sender Field Pre-rewriting # XZ################################ XZS1 XZ#R$*<$*>$* $1$2$3 defocus XZ XZ################################### XZ# Recipient Field Pre-rewriting # XZ################################### XZS2 XZ#R$*<$*>$* $1$2$3 defocus XZ XZ################################# XZ# Final Output Post-rewriting # XZ################################# XZS4 XZ XZR@ $@ handle <> error addr XZ XZ# resolve numeric addresses to name if possible XZR$*<@[$+]>$* $:$1<@$[[$2]$]>$3 lookup numeric internet addr XZ XZ# externalize local domain info XZR$*<@LOCAL> $@$1@$w XZR$*<$*LOCAL>$* $1<$2$D>$3 change local info XZR$*<$*LOCAL.ARPA>$* $1<$2$D>$3 change local info XZR$*<$+>$* $1$2$3 defocus XZR@$+:@$+:$+ @$1,@$2:$3 canonical XZ XZ# UUCP must always be presented in old form (with domains, leave the ".uucp") XZR$+@$-.UUCP $2!$1 u@h.UUCP => h!u XZR$+@$-.$-.UUCP $2.$3.uucp!$1 u@h.UUCP => h!u XZR$+@$-.$-.$-.UUCP $2.$3.$4.uucp!$1 u@h.UUCP => h!u XZR$+@$-.$-.$-.$-.UUCP $2.$3.$4.$5.uucp!$1 u@h.UUCP => h!u XZR$+@$-.$-.$-.$-.$-.UUCP $2.$3.$4.$5.$6.uucp!$1 u@h.UUCP => h!u XZ XZ# delete duplicate local names -- mostly for arpaproto.mc XZR$+%$=w@$=w $1@$w u%UCB@UCB => u@UCB XZR$+%$=w@$=w.ARPA $1@$w u%UCB@UCB => u@UCB XZ XZ########################### XZ# Name Canonicalization # XZ########################### XZS3 XZ XZ# handle "from:<>" special case XZR<> $@@ turn into magic token XZ XZ# basic textual canonicalization -- note RFC733 heuristic here XZR$*<$*<$*<$+>$*>$*>$* $4 3-level <> nesting XZR$*<$*<$+>$*>$* $3 2-level <> nesting XZR$*<$+>$* $2 basic RFC821/822 parsing XZR$+ at $+ $1@$2 "at" -> "@" for RFC 822 XZ XZ# make sure <@a,@b,@c:user@d> syntax is easy to parse -- undone later XZR@$+,$+ @$1:$2 change all "," to ":" XZ XZ# localize and dispose of route-based addresses XZR@$+:$+ $@$>6<@$1>:$2 handle XZ XZ# more miscellaneous cleanup XZR$+ $:$>8$1 host dependent cleanup XZR$+:$*;@$+ $@$1:$2;@$3 list syntax XZR$+:$*; $@$1:$2; list syntax XZR$+@$+ $:$1<@$2> focus on domain XZR$+<$+@$+> $1$2<@$3> move gaze right XZR$+<@$+> $@$>6$1<@$2> already canonical XZ XZ# convert old-style addresses to a domain-based address XZR$+^$+ $1!$2 convert ^ to ! XZR$-!$+ $@$>6$2<@$1.UUCP> resolve uucp names XZR$+.$-!$+ $@$>6$3<@$1.$2> domain uucps XZR$+!$+ $@$>6$2<@$1.UUCP> uucp subdomains XZR$-:$+ $@$>6$2<@$1> host:user XZR$-=$+ $@$>6$2<@$1.BITNET> resolve bitnet names XZR$+%$+ $:$>9$1%$2 user%host XZR$+<@$+> $@$>6$1<@$2> already canonical XZR$-.$+ $@$>6$2<@$1> host.user XZ XZ################################# XZ# special local conversions # XZ################################# XZ XZS6 XZR$*<@$=w>$* $:$1<@LOCAL>$3 check for variations on XZR$*<@$=w.$D>$* $:$1<@LOCAL>$3 local hostname XZR$+<@LOCAL> $@$1<@LOCAL> XZR$+<@$=S.UUCP>$* $1<@$2>$3 XZR$*<@$+.$=T.$=T>$* $1<@$2.$3>$5 make UUCP top level XZ XZ################################ XZ# Change rightmost % to @. # XZ################################ XZ XZS9 XZR$*%$* $1@$2 First make them all @'s. XZR$*@$*@$* $1%$2@$3 Undo all but the last. XZR$*@$* $@$1<@$2> Put back the brackets. XZ XZ################### XZ### Mailers ### XZ################### XZ XZ############################################################ XZ##### Local and Program Mailer specification XZ############################################################ XZ XZMlocal, P=/bin/mail, F=rlsDFMmn, S=10, R=20, A=mail -d $u XZMprog, P=/bin/sh, F=lsDFMe, S=10, R=20, A=sh -c $u XZ XZS10 XZR@ $n errors to mailer-daemon XZ XZ############################################################ XZ##### Local Domain TCP Mailer specification XZ##### XZ##### Messages processed by this specification are assumed to remain XZ##### the local domain -- hence, they must be canonical according to XZ##### RFC822 etc. XZ############################################################ XZ XZMtcpld, P=[IPC], F=mDFMueXLC, S=17, R=27, A=IPC $h, E=\r\n XZ XZS17 XZ XZ# cleanup forwarding a bit XZR$*<$*>$* $1$2$3 defocus XZR$* $:$>3$1 canonicalize XZR$*%$*<@$w> $:$>9$1%$2 user%localhost@localdomain XZ XZ# pass 's through XZR<@$+>$* $@<@$[$1$]>$2 resolve XZ XZ# map colons to dots everywhere XZR$*:$* $1.$2 map colons to dots XZ XZ# output local host as user@host XZR$- $1<@$w> user w/o host XZR$+<@$=w> $1<@$w> or an alias XZR$+<@$-> $:$1<@$[$2$]> ask nameserver XZR$+<@$*.$D> $@$1<@$2.$D> locals have domain now XZR$+<@$-> $@$1<@$2.$D> if nameserver fails XZ XZ# if not local, and not a "fake" domain, ask the nameserver XZR$+<@$+.$~I> $@$1<@$[$2.$3$]> user@host.domain XZR$+<@[$+]> $@$1<@[$2]> already ok XZ XZR$+<@$+.UUCP> $@$2!$1<@$w> user@host.UUCP XZ XZS27 XZ XZ# cleanup XZR$*<$*>$* $1$2$3 defocus XZR$* $:$>3$1 now canonical form XZR$*%$*<@$w> $:$>9$1%$2 user%localhost@localdomain XZ XZ# pass 's through XZR<@$+>$* $@<@$[$1$]>$2 resolve XZ XZ# map colons to dots everywhere XZR$*:$* $1.$2 map colons to dots XZ XZ# output local host as user@host XZR$- $1<@$w> user w/o host XZR$+<@$=w> $1<@$w> or an alias XZR$+<@$-> $:$1<@$[$2$]> ask nameserver XZR$+<@$*.$D> $@$1<@$2.$D> locals have domain now XZR$+<@$-> $@$1<@$2.$D> if nameserver fails XZ XZ# if not local, and not a "fake" domain, ask the nameserver XZ XZR$+<@$+.$~I> $@$1<@$[$2.$3$]> user@host.domain XZR$+<@[$+]> $@$1<@[$2]> already ok XZ XZR$+<@$+.UUCP> $@$2!$1 user@host.UUCP XZ XZ##################### XZ### Rule Zero ### XZ##################### XZ XZ############################################################ XZ##### RULESET ZERO PREAMBLE XZ##### XZ##### The beginning of ruleset zero is constant through all XZ##### configurations. XZ############################################################ XZ XZS0 XZ XZ# first make canonical XZR$*<$*.>$* $1<$2>$3 drop trailing dot XZR$*<$*>$* $1$2$3 defocus XZR$+ $:$>3$1 make canonical XZ XZ# handle special cases..... XZR$*<@[$+]>$* $:$1<@$[[$2]$]>$3 lookup numeric internet addr XZR$*<@[$+]>$* $#tcpld$@$A$:$1@[$2]$3 numeric internet spec - give to relay XZR$+ $:$>6$1 XZR$+%$+<@$=S>$* $>9$1%$2$4 % hack, strip local name XZR$-<@LOCAL> $#local$:$1 XZR@ $#local$:$n handle <> form XZ XZ# canonicalize using the nameserver if not internal domain XZR$*<@$*.$~I>$* $:$1<@$[$2.$3$]>$4 XZR$*<@$->$* $:$1<@$[$2$]>$3 XZ XZ# arrange for local names to be fully qualified XZR$*<$+.ARPA.LOCAL>$* $1<$2.ARPA>$3 because ARPA is a host XZ XZ# now delete the local info XZR$*<$*$=w.$=T>$* $1<$2>$5 thishost.LOCAL XZR$*<$*$=w>$* $1<$2>$4 thishost XZR$*<$*.>$* $1<$2>$3 drop trailing dot XZR<@>:$* $@$>0$1 retry after route strip XZR$*<@> $@$>0$1 strip null trash & retry XZ XZ# forward around hosts with communication problems XZR$*<@$=F.LOCAL>$* $#tcp$@$F$:$1<@$2.LOCAL>$3 reroute message XZ XZ################################## XZ# End of ruleset zero preamble # XZ################################## XZ XZ############################################### XZ### Machine dependent part of Rule Zero ### XZ############################################### XZ XZR$*<@$*.UUCP>$* $#tcpld$@$U$:$2!$1 give to uucp relay XZ XZ# local domain sites XZ XZ# other non-local names XZR$*<@$+>$* $#tcpld$@$A$:$1<@$2>$3 send to big daddy XZ XZ# remaining names must be local XZR$+ $#local$:$1 everything else XSHAR_EOF Xchmod 644 './usr/src/etc/sendmail.cf' Xfi Xif test -f './usr/src/games/atc/atc.6' Xthen X echo shar: "will not over-write existing file './usr/src/games/atc/atc.6'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/games/atc/atc.6' XZ.\" Copyright (c) 1990, 1993 XZ.\" The Regents of the University of California. All rights reserved. XZ.\" XZ.\" This code is derived from software contributed to Berkeley by XZ.\" Ed James. XZ.\" XZ.\" Redistribution and use in source and binary forms, with or without XZ.\" modification, are permitted provided that the following conditions XZ.\" are met: XZ.\" 1. Redistributions of source code must retain the above copyright XZ.\" notice, this list of conditions and the following disclaimer. XZ.\" 2. Redistributions in binary form must reproduce the above copyright XZ.\" notice, this list of conditions and the following disclaimer in the XZ.\" documentation and/or other materials provided with the distribution. XZ.\" 3. All advertising materials mentioning features or use of this software XZ.\" must display the following acknowledgement: XZ.\" This product includes software developed by the University of XZ.\" California, Berkeley and its contributors. XZ.\" 4. Neither the name of the University nor the names of its contributors XZ.\" may be used to endorse or promote products derived from this software XZ.\" without specific prior written permission. XZ.\" XZ.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND XZ.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE XZ.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE XZ.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE XZ.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL XZ.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS XZ.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) XZ.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT XZ.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY XZ.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF XZ.\" SUCH DAMAGE. XZ.\" XZ.\" @(#)atc.6 8.1 (Berkeley) 5/31/93 XZ.\" XZ. \" XP - exdented paragraph XZ.de XP XZ.RT XZ.if \\n(1T .sp \\n(PDu XZ.ne 1.1 XZ.if !\\n(IP .nr IP +1 XZ.in +\\n(I\\n(IRu XZ.ti -\\n(I\\n(IRu XZ.. XZ.\" Copyright (c) 1986 Ed James. All rights reserved. XZ.\" XZ.TH ATC 6 "May 31, 1993" XZ.UC XZ.SH NAME XZatc \- air traffic controller game XZ.SH SYNOPSIS XZ.B atc XZ-[u?lstp] [-[gf] game_name] [-r random seed] XZ.SH DESCRIPTION XZ.LP XZ.I Atc XZlets you try your hand at the nerve wracking duties of the air traffic XZcontroller without endangering the lives of millions of XZtravelers each year. XZYour responsibilities require you to direct the flight of jets XZand prop planes into and out of the flight arena and airports. XZThe speed (update time) and frequency of the planes depend on the XZdifficulty of the chosen arena. XZ.SH OPTIONS XZ.LP XZ.TP 8 XZ.B \-u XZPrint the usage line and exit. XZ.TP XZ.B \-? XZSame as XZ.B \-u. XZ.TP XZ.B \-l XZPrint a list of available games and exit. XZThe first game name printed is the default game. XZ.TP XZ.B \-s XZPrint the score list (formerly the Top Ten list). XZ.TP XZ.B \-t XZSame as XZ.B \-s. XZ.TP XZ.B \-p XZPrint the path to the special directory where XZ.I atc XZexpects to find its private files. This is used during the XZinstallation of the program. XZ.TP XZ.B "\-g game" XZPlay the named game. If the game listed is not one of the XZones printed from the XZ.B \-l XZoption, the default game is played. XZ.TP XZ.B "\-f game" XZSame as XZ.B \-g. XZ.TP XZ.B "\-r seed" XZSet the random seed. The purpose of this flag is questionable. XZ.SH GOALS XZ.LP XZYour goal in XZ.I atc XZis to keep the game going as long as possible. XZThere is no winning state, except to beat the times of other players. XZYou will need to: launch planes at airports (by instructing them to XZincrease their altitude); land planes at airports (by instructing them to XZgo to altitude zero when exactly over the airport); and maneuver planes XZout of exit points. XZ.LP XZSeveral things will cause the end of the game. XZEach plane has a destination (see information area), and XZsending a plane to the wrong destination is an error. XZPlanes can run out of fuel, or can collide. Collision is defined as XZadjacency in any of the three dimensions. A plane leaving the arena XZin any other way than through its destination exit is an error as well. XZ.LP XZScores are sorted in order of the number of planes safe. The other XZstatistics are provided merely for fun. There is no penalty for XZtaking longer than another player (except in the case of ties). XZ.LP XZSuspending a game is not permitted. If you get a talk message, tough. XZWhen was the last time an Air Traffic Controller got called away to XZthe phone? XZ.SH "THE DISPLAY" XZ.LP XZDepending on the terminal you run XZ.I atc XZon, the screen will be divided into 4 areas. XZIt should be stressed that the terminal driver portion of the XZgame was designed to be reconfigurable, so the display format can vary XZdepending the version you are playing. The descriptions here are based XZon the ascii version XZof the game. The game rules and input format, however, XZshould remain consistent. XZControl-L redraws the screen, should it become muddled. XZ.SS RADAR XZ.IP XZThe first screen area is the radar display, showing the relative locations XZof the planes, airports, standard entry/exit points, radar XZbeacons, and "lines" which simply serve to aid you in guiding XZthe planes. XZ.IP XZPlanes are shown as a single letter with an altitude. If XZthe numerical altitude is a single digit, then it represents XZthousands of feet. XZSome distinction is made between the prop XZplanes and the jets. On ascii terminals, prop planes are XZrepresented by a upper case letter, jets by a lower case letter. XZ.IP XZAirports are shown as a number and some indication of the direction XZplanes must be going to land at the airport. XZOn ascii terminals, this is one of '^', '>', '<', and 'v', to indicate XZnorth (0 degrees), east (90), west (270) and south (180), respectively. XZThe planes will also XZtake off in this direction. XZ.IP XZBeacons are represented as circles or asterisks and a number. XZTheir purpose is to offer a place of easy reference to the plane pilots. XZSee 'the delay command' under the input section of this manual. XZ.IP XZEntry/exit points are displayed as numbers along the border of the XZradar screen. Planes will enter the arena from these points without XZwarning. These points have a direction associated with them, and XZplanes will always enter the arena from this direction. On the XZascii version of XZ.I atc, XZthis direction is not displayed. It will become apparent XZwhat this direction is as the game progresses. XZ.IP XZIncoming planes will always enter at the same altitude: 7000 feet. XZFor a plane to successfully depart through an entry/exit point, XZit must be flying at 9000 feet. XZIt is not necessary for the planes to be flying in any particular XZdirection when they leave the arena (yet). XZ.SS "INFORMATION AREA" XZ.IP XZThe second area of the display is the information area, which lists XZthe time (number of updates since start), and the number of planes you XZhave directed safely out of the arena. XZBelow this is a list of planes currently in the air, followed by a XZblank line, and then a list of planes on the ground (at airports). XZEach line lists the plane name and its current altitude, XZan optional asterisk indicating low fuel, the plane's destination, XZand the plane's current command. Changing altitude is not considered XZto be a command and is therefore not displayed. The following are XZsome possible information lines: XZ.IP XZ B4*A0: Circle @ b1 XZ.br XZ g7 E4: 225 XZ.IP XZThe first example shows a prop plane named 'B' that is flying at 4000 XZfeet. It is low on fuel (note the '*'). It's destination is XZAirport #0. XZThe next command it expects XZto do is circle when it reaches Beacon #1. XZThe second example shows a jet named 'g' at 7000 feet, destined for XZExit #4. It is just now executing a turn to 225 degrees (South-West). XZ.SS "INPUT AREA" XZ.IP XZThe third area of the display is the input area. It is here that XZyour input is reflected. See the INPUT heading of this manual XZfor more details. XZ.SS "AUTHOR AREA" XZ.IP XZThis area is used simply to give credit where credit is due. :-) XZ.SH INPUT XZ.LP XZA command completion interface is built into XZthe game. At any time, typing '?' will list possible input characters. XZTyping a backspace (your erase character) backs up, erasing the last part XZof the command. When a command is complete, a return enters it, and XZany semantic checking is done at that time. If no errors are detected, XZthe command is sent to the appropriate plane. If an error is discovered XZduring the check, the offending statement will be underscored and a XZ(hopefully) descriptive message will be printed under it. XZ.LP XZThe command syntax is broken into two parts: XZ.I "Immediate Only" XZand XZ.I Delayable XZcommands. XZ.I "Immediate Only" XZcommands happen on the next XZupdate. XZ.I Delayable XZcommands also happen on the next update unless they XZare followed by an optional predicate called the XZ.I Delay XZcommand. XZ.LP XZIn the following tables, the syntax XZ.B [0\-9] XZmeans any single digit, and XZ.B XZrefers to the keys around the 's' key, namely ``wedcxzaq''. XZIn absolute references, 'q' refers to North-West or 315 degrees, and 'w' XZrefers to North, or 0 degrees. XZIn relative references, 'q' refers to -45 degrees or 45 degrees left, and 'w' XZrefers to 0 degrees, or no change in direction. XZ.LP XZAll commands start with a plane letter. This indicates the recipient XZof the command. Case is ignored. XZ.SS "IMMEDIATE ONLY COMMANDS" XZ.RS XZ.B "\- a Altitude:" XZ.RS XZAffect a plane's altitude (and take off). XZ.RE XZ.RS XZ.B "\- [0\-9] Number:" XZ.RS XZGo to the given altitude (thousands of feet). XZ.RE XZ.B "\- c/+ Climb:" XZ.RS XZRelative altitude change. XZ.RE XZ.RS XZ.B "\- [0\-9] Number:" XZ.RS XZDifference in thousands of feet. XZ.RE XZ.RE XZ.B "\- d/\- Descend:" XZ.RS XZRelative altitude change. XZ.RE XZ.RS XZ.B "\- [0\-9] Number:" XZ.RS XZDifference in thousands of feet. XZ.RE XZ.RE XZ.RE XZ.B "\- m Mark:" XZ.RS XZDisplay in highlighted mode. Command is displayed normally. XZ.RE XZ.B "\- i Ignore:" XZ.RS XZDo not display highlighted. Command is displayed as a XZline of dashes if there is no command. XZ.RE XZ.B "\- u Unmark:" XZ.RS XZSame as ignore, but if a delayed command is processed, XZthe plane will become marked. This is useful if you want XZto forget about a plane during part, but not all, of its XZjourney. XZ.RE XZ.RE XZ.SS "DELAYABLE COMMANDS" XZ.RS XZ.B "\- c Circle:" XZ.RS XZHave the plane circle (clockwise by default). XZ.RE XZ.RS XZ.B "\- l Left:" XZ.RS XZCircle counterclockwise. XZ.RE XZ.B "\- r Right:" XZ.RS XZCircle clockwise. XZ.RE XZ.RE XZ.B "\- t Turn:" XZ.RS XZChange direction. XZ.RE XZ.RS XZ.B "\- l Left:" XZ.RS XZTurn counterclockwise (45 degrees by default). XZ.RE XZ.RS XZ.B "\- Direction:" XZ.RS XZTurn ccw the given number of degrees. XZZero degrees is no turn. A ccw turn XZof -45 degrees is 45 cw. XZ.RE XZ.RE XZ.B "\- r Right:" XZ.RS XZTurn clockwise (45 degrees by default). XZ.RE XZ.RS XZ.B "\- Direction:" XZ.RS XZSame as turn left . XZ.RE XZ.RE XZ.B "\- L Left 90:" XZ.RS XZTurn counterclockwise 90 degrees. XZ.RE XZ.B "\- R Right 90:" XZ.RS XZTurn clockwise 90 degrees. XZ.RE XZ.B "\- Direction:" XZ.RS XZTurn to the absolute compass heading given. XZThe shortest turn will be taken. XZ.RE XZ.B "\- t Towards:" XZ.RS XZTurn towards a beacon, airport or exit. The turn is XZjust an estimate. XZ.RE XZ.RS XZ.B "\- b/* Beacon:" XZ.RS XZTurn towards the beacon. XZ.RE XZ.RS XZ.B "\- [0-9] Number:" XZ.RS XZThe beacon number. XZ.RE XZ.RE XZ.B "\- e Exit:" XZ.RS XZTurn towards the exit. XZ.RE XZ.RS XZ.B "\- [0-9] Number:" XZ.RS XZThe exit number. XZ.RE XZ.RE XZ.B "\- a Airport:" XZ.RS XZTurn towards the airport. XZ.RE XZ.RS XZ.B "\- [0-9] Number:" XZ.RS XZThe airport number. XZ.RE XZ.RE XZ.RE XZ.RE XZ.RE XZ.SS THE DELAY COMMAND XZ.LP XZThe XZ.B Delay XZ(a/@) XZcommand may be appended to any XZ.B Delayable XZcommand. It allows the controller to instruct a plane to do an action XZwhen the plane reaches a particular beacon (or other objects in future XZversions). XZ.sp XZ.RS XZ.B "\- a/@ At:" XZ.RS XZDo the given delayable command when the plane reaches the given beacon. XZ.RE XZ.RS XZ.B "\- b/* Beacon:" XZ.RS XZThis is redundant to allow for expansion. XZ.RE XZ.RS XZ.B "\- [0-9] Number:" XZ.RS XZThe beacon number. XZ.RE XZ.RE XZ.RE XZ.RE XZ.SS "MARKING, UNMARKING AND IGNORING" XZ.LP XZPlanes are XZ.B marked XZwhen they enter the arena. This means they are displayed in highlighted XZmode on the radar display. A plane may also be either XZ.B unmarked XZor XZ.B ignored. XZAn XZ.B unmarked XZplane is drawn in unhighlighted mode, and a line of dashes is displayed in XZthe command field of the information area. The plane will remain this XZway until a mark command has been issued. Any other command will be issued, XZbut the command line will return to a line of dashes when the command XZis completed. XZ.LP XZAn XZ.B ignored XZplane is treated the same as an unmarked plane, except that it will XZautomatically switch to XZ.B marked XZstatus when a delayed command has been processed. This is useful if XZyou want to forget about a plane for a while, but its flight path has XZnot yet been completely set. XZ.LP XZAs with all of the commands, marking, unmarking and ignoring will take effect XZat the beginning of the next update. Do not be surprised if the plane does XZnot immediately switch to unhighlighted mode. XZ.SS EXAMPLES XZ.RS XZ.TP 16 XZatlab1 XZa: turn left at beacon #1 XZ.TP 16 XZcc XZC: circle XZ.TP 16 XZgtte4ab2 XZg: turn towards exit #4 at beacon #2 XZ.TP 16 XZma+2 XZm: altitude: climb 2000 feet XZ.TP 16 XZstq XZS: turn to 315 XZ.TP 16 XZxi XZx: ignore XZ.RE XZ.SH "OTHER INFORMATION" XZ.LP XZJets move every update; prop planes move every other update. XZ.LP XZAll planes turn a most 90 degrees per movement. XZ.LP XZPlanes enter at 7000 feet and leave at 9000 feet. XZ.LP XZPlanes flying at an altitude of 0 crash if they are not over an airport. XZ.LP XZPlanes waiting at airports can only be told to take off (climb in altitude). XZ.SH "NEW GAMES" XZ.LP XZThe XZ.B Game_List XZfile lists the currently available play fields. New field description XZfile names must be placed in this file to be 'playable'. If a player XZspecifies a game not in this file, his score will not be logged. XZ.LP XZThe game field description files are broken into two parts. The first XZpart is the definition section. Here, the four tunable game parameters XZmust be set. These variables are set with the syntax: XZ.IP XZvariable = number; XZ.LP XZVariable may be one of: XZ.B update, XZindicating the number of seconds between forced updates; XZ.B newplane, XZindicating (about) the number of updates between new plane entries; XZ.B width, XZindicating the width of the play field; and XZ.B height, XZindicating the height of the play field. XZ.LP XZThe second part of the field description files describes the locations XZof the exits, the beacons, the airports and the lines. XZThe syntax is as follows: XZ.IP XZbeacon: (x y) ... ; XZ.br XZairport: (x y direction) ... ; XZ.br XZexit: (x y direction) ... ; XZ.br XZline: [ (x1 y1) (x2 y2) ] ... ; XZ.LP XZFor beacons, a simple x, y coordinate pair is used (enclosed in parenthesis). XZAirports and exits require a third value, a direction, which is one XZof XZ.B wedcxzaq. XZFor airports, this is the direction that planes must be going to take XZoff and land, and for exits, this is the direction that planes will going XZwhen they XZ.B enter XZthe arena. This may not seem intuitive, but as there is no restriction on XZdirection of exit, this is appropriate. XZLines are slightly different, since they need two coordinate pairs to XZspecify the line endpoints. These endpoints must be enclosed in XZsquare brackets. XZ.LP XZAll statements are semi-colon (;) terminated. Multiple item statements XZaccumulate. Each definition must occur exactly once, before any XZitem statements. Comments begin with a hash (#) symbol XZand terminate with a newline. XZThe coordinates are between zero and width-1 and height-1 XZinclusive. All of the exit coordinates must lie on the borders, and XZall of the beacons and airports must lie inside of the borders. XZLine endpoints may be anywhere within the field, so long as XZthe lines are horizontal, vertical or XZ.B "exactly diagonal." XZ.SS "FIELD FILE EXAMPLE" XZ.RS XZ.sp XZ.nf XZ.TA 1i 1i XZ.ta 1i 1i XZ# This is the default game. XZ XZupdate = 5; XZnewplane = 5; XZwidth = 30; XZheight = 21; XZ XZexit: ( 12 0 x ) ( 29 0 z ) ( 29 7 a ) ( 29 17 a ) XZ ( 9 20 e ) ( 0 13 d ) ( 0 7 d ) ( 0 0 c ) ; XZ XZbeacon: ( 12 7 ) ( 12 17 ) ; XZ XZairport: ( 20 15 w ) ( 20 18 d ) ; XZ XZline: [ ( 1 1 ) ( 6 6 ) ] XZ [ ( 12 1 ) ( 12 6 ) ] XZ [ ( 13 7 ) ( 28 7 ) ] XZ [ ( 28 1 ) ( 13 16 ) ] XZ [ ( 1 13 ) ( 11 13 ) ] XZ [ ( 12 8 ) ( 12 16 ) ] XZ [ ( 11 18 ) ( 10 19 ) ] XZ [ ( 13 17 ) ( 28 17 ) ] XZ [ ( 1 7 ) ( 11 7 ) ] ; XZ.fi XZ.RE XZ.SH FILES XZ.LP XZFiles are kept in a special directory. See the OPTIONS for a way to XZprint this path out. XZ.TP 16 XZ.B ATC_score XZWhere the scores are kept. XZ.TP 16 XZ.B Game_List XZThe list of playable games. XZ.SH AUTHOR XZ.LP XZEd James, UC Berkeley: edjames@ucbvax.berkeley.edu, ucbvax!edjames XZ.LP XZThis game is based on someone's description of the overall flavor XZof a game written for some unknown PC many years ago, maybe. XZ.SH BUGS XZ.LP XZThe screen sometimes refreshes after you have quit. XZ.LP XZYet Another Curses Bug was discovered during the development of this game. XZIf your curses library clrtobot.o is version 5.1 or earlier, XZyou will have erase problems with the backspace operator in the input XZwindow. XZ XSHAR_EOF Xchmod 644 './usr/src/games/atc/atc.6' Xfi Xif test -f './usr/src/lib/libc/gen/isctype.c' Xthen X echo shar: "will not over-write existing file './usr/src/lib/libc/gen/isctype.c'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/lib/libc/gen/isctype.c' XZ/* XZ * C implementation if the is* and toascii functions. XZ * ragge 2026-01-16. Public domain. XZ * XZ * @(#) isctype.c 1.0 (2.11BSD) 2026/1/16 XZ */ XZ XZ#include XZ XZ#undef isalnum XZ#undef isalpha XZ#undef iscntrl XZ#undef isdigit XZ#undef isgraph XZ#undef islower XZ#undef isprint XZ#undef ispunct XZ#undef isspace XZ#undef isupper XZ#undef isxdigit XZ#undef isascii XZ#undef toascii XZ XZ/* XZ * Use macros to create the is* functions. XZ */ XZ#define ISMAC(n, m) int n(int c) { return ((_ctype_+1)[c]&(m)); } XZ XZISMAC(isalnum, _U|_L|_N) XZISMAC(isalpha, _U|_L) XZISMAC(iscntrl, _C) XZISMAC(isdigit, _N) XZISMAC(isgraph, _P|_U|_L|_N) XZISMAC(islower, _L) XZISMAC(isprint, _P|_U|_L|_N|_B) XZISMAC(ispunct, _P) XZISMAC(isspace, _S) XZISMAC(isupper, _U) XZISMAC(isxdigit, _N|_X) XZ XZint XZisascii(int c) XZ{ XZ return ((unsigned)(c)<=0177); XZ} XZ XZint XZtoascii(int c) XZ{ XZ return (c & 0177); XZ} XZ XSHAR_EOF Xchmod 644 './usr/src/lib/libc/gen/isctype.c' Xfi Xif test -f './usr/src/lib/libc/gen/swapdevname.c' Xthen X echo shar: "will not over-write existing file './usr/src/lib/libc/gen/swapdevname.c'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/lib/libc/gen/swapdevname.c' XZ#if defined(DOSCCS) && !defined(lint) XZstatic char *sccsid = "@(#)swapdevname.c 1.0(2.11BSD) 2026/6/5"; XZ#endif XZ XZ/* XZ * swapdevname(3) XZ * XZ * fetch 'swapdev' from kernel, lookup 'swapdev' in device database XZ * (/var/run/dev) produced by dev_mkdb(8) and prepend /dev/ (e.g. /dev/xp0b). XZ * XZ * If sysctl fails (kernel doesn't support VM_SWAPDEV) or if device not XZ * found in dev_mkdb(8) database the traditional string "/dev/swap" is returned. XZ*/ XZ XZ#include XZ#include XZ#include XZ#include XZ#include XZ XZstatic char swapstr[] = "swap"; XZ XZint XZswapdevname(char *buf, int len) XZ { XZ int mib[2]; XZ int miblen, swapdev; XZ register char *cp; XZ register int i; XZ XZ mib[0] = CTL_VM; XZ mib[1] = VM_SWAPDEV; XZ miblen = sizeof (int); XZ if (sysctl(mib, 2, &swapdev, &miblen, NULL, 0) == -1) XZ cp = swapstr; XZ else XZ { XZ cp = devname(swapdev, S_IFBLK); XZ if (cp[0] == '?' && cp[1] == '?' && cp[2] == '\0') XZ cp = swapstr; XZ } XZ/* XZ * snprintf doesn't include the terminating null even though it occupies XZ * a byte in the buffer so add one in the calculation of bytes needed. XZ*/ XZ i = snprintf(buf, len, "%s%s", _PATH_DEV, cp) - len + 1; XZ devname_close(); XZ/* XZ * i < 0 there were unused bytes remaining in the buffer XZ * i = 0 the string + null exactly fit in the buffer XZ * i > 0 the buffer was 'i' bytes too small. XZ*/ XZ return(i <= 0 ? 0: i); XZ } XSHAR_EOF Xchmod 644 './usr/src/lib/libc/gen/swapdevname.c' Xfi Xif test -f './usr/src/lib/libc/stdio/fgetln.c' Xthen X echo shar: "will not over-write existing file './usr/src/lib/libc/stdio/fgetln.c'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/lib/libc/stdio/fgetln.c' XZ/*- XZ * Copyright (c) 1990, 1993 XZ * The Regents of the University of California. All rights reserved. XZ * XZ * This code is derived from software contributed to Berkeley by XZ * Chris Torek. XZ * XZ * Redistribution and use in source and binary forms, with or without XZ * modification, are permitted provided that the following conditions XZ * are met: XZ * 1. Redistributions of source code must retain the above copyright XZ * notice, this list of conditions and the following disclaimer. XZ * 2. Redistributions in binary form must reproduce the above copyright XZ * notice, this list of conditions and the following disclaimer in the XZ * documentation and/or other materials provided with the distribution. XZ * 3. All advertising materials mentioning features or use of this software XZ * must display the following acknowledgement: XZ * This product includes software developed by the University of XZ * California, Berkeley and its contributors. XZ * 4. Neither the name of the University nor the names of its contributors XZ * may be used to endorse or promote products derived from this software XZ * without specific prior written permission. XZ * XZ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND XZ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE XZ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE XZ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE XZ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL XZ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS XZ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) XZ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT XZ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY XZ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF XZ * SUCH DAMAGE. XZ */ XZ XZ#if defined(LIBC_SCCS) && !defined(lint) XZstatic char sccsid[] = "@(#)fgetln.c 8.2 (Berkeley) 1/2/94"; XZ#endif /* LIBC_SCCS and not lint */ XZ XZ#include XZ#include XZ#include XZ#include "local.h" XZ XZ/* XZ * Expand the line buffer. Return -1 on error. XZ#ifdef notdef XZ * The `new size' does not account for a terminating '\0', XZ * so we add 1 here. XZ#endif XZ */ XZstatic int XZ__slbexpand(FILE *fp, size_t newsize) XZ{ XZ register struct __sfops *sf; XZ void *p; XZ XZ#ifdef notdef XZ ++newsize; XZ#endif XZ if (fp->_fops->_lb._size >= newsize) XZ return (0); XZ if (__scopyfops(fp)) XZ return (-1); XZ sf = fp->_fops; XZ if ((p = realloc(sf->_lb._base, newsize)) == NULL) XZ return (-1); XZ sf->_lb._base = p; XZ sf->_lb._size = newsize; XZ return (0); XZ} XZ XZ/* XZ * Get an input line. The returned pointer often (but not always) XZ * points into a stdio buffer. Fgetln does not alter the text of XZ * the returned line (which is thus not a C string because it will XZ * not necessarily end with '\0'), but does allow callers to modify XZ * it if they wish. Thus, we set __SMOD in case the caller does. XZ */ XZchar * XZfgetln(register FILE *fp, size_t *lenp) XZ{ XZ register struct __sfops *sf; XZ register unsigned char *p; XZ register size_t len; XZ size_t off; XZ XZ /* make sure there is input */ XZ if (fp->_r <= 0 && __srefill(fp)) { XZ *lenp = 0; XZ return (NULL); XZ } XZ XZ /* look for a newline in the input */ XZ if ((p = (void *)memchr((void *)fp->_p, '\n', fp->_r)) != NULL) { XZ register char *ret; XZ XZ /* XZ * Found one. Flag buffer as modified to keep fseek from XZ * `optimising' a backward seek, in case the user stomps on XZ * the text. XZ */ XZ p++; /* advance over it */ XZ ret = (char *)fp->_p; XZ *lenp = len = p - fp->_p; XZ fp->_flags |= __SMOD; XZ fp->_r -= len; XZ fp->_p = p; XZ return (ret); XZ } XZ XZ /* XZ * We have to copy the current buffered data to the line buffer. XZ * As a bonus, though, we can leave off the __SMOD. XZ * XZ * OPTIMISTIC is length that we (optimistically) expect will XZ * accomodate the `rest' of the string, on each trip through the XZ * loop below. XZ */ XZ#define OPTIMISTIC 80 XZ XZ for (len = fp->_r, off = 0;; len += fp->_r) { XZ register size_t diff; XZ XZ /* XZ * Make sure there is room for more bytes. Copy data from XZ * file buffer to line buffer, refill file and look for XZ * newline. The loop stops only when we find a newline. XZ */ XZ if (__slbexpand(fp, len + OPTIMISTIC)) XZ goto error; XZ sf = fp->_fops; XZ (void)memcpy((void *)(sf->_lb._base + off), (void *)fp->_p, XZ len - off); XZ off = len; XZ if (__srefill(fp)) XZ break; /* EOF or error: return partial line */ XZ if ((p = (void *)memchr((void *)fp->_p, '\n', fp->_r)) == NULL) XZ continue; XZ XZ /* got it: finish up the line (like code above) */ XZ p++; XZ diff = p - fp->_p; XZ len += diff; XZ if (__slbexpand(fp, len)) XZ goto error; XZ (void)memcpy((void *)(sf->_lb._base + off), (void *)fp->_p, XZ diff); XZ fp->_r -= diff; XZ fp->_p = p; XZ break; XZ } XZ *lenp = len; XZ#ifdef notdef XZ fp->_lb._base[len] = 0; XZ#endif XZ return ((char *)sf->_lb._base); XZ XZerror: XZ *lenp = 0; /* ??? */ XZ return (NULL); /* ??? */ XZ} XSHAR_EOF Xchmod 644 './usr/src/lib/libc/stdio/fgetln.c' Xfi Xif test -f './usr/src/lib/libc/stdlib/imaxabs.c' Xthen X echo shar: "will not over-write existing file './usr/src/lib/libc/stdlib/imaxabs.c'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/lib/libc/stdlib/imaxabs.c' XZ/* XZ * Public domain - 2026/1/19 - ragge XZ * XZ * @(#)imaxdiv.c 1.1 (2.11BSD) 2026/1/19 XZ */ XZ XZ/* XZ * Get absolute value of integer j (C99 7.8.2.1). XZ */ XZ XZ#include XZ XZintmax_t XZimaxabs(intmax_t j) XZ{ XZ return j < 0 ? -j : j; XZ} XSHAR_EOF Xchmod 644 './usr/src/lib/libc/stdlib/imaxabs.c' Xfi Xif test -f './usr/src/lib/libc/stdlib/imaxdiv.c' Xthen X echo shar: "will not over-write existing file './usr/src/lib/libc/stdlib/imaxdiv.c'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/lib/libc/stdlib/imaxdiv.c' XZ/* XZ * Public domain - 2026/1/19 - ragge XZ * XZ * @(#)imaxdiv.c 1.1 (2.11BSD) 2026/1/19 XZ */ XZ XZ/* XZ * Ansi-correct division. (C99 7.8.2.2). XZ */ XZ XZ#include XZ XZimaxdiv_t XZimaxdiv(intmax_t num, intmax_t denom) XZ{ XZ imaxdiv_t r; XZ XZ r.quot = num / denom; XZ r.rem = num % denom; XZ return r; XZ} XZ XSHAR_EOF Xchmod 644 './usr/src/lib/libc/stdlib/imaxdiv.c' Xfi Xif test -f './usr/src/lib/libc/stdlib/lconv.c' Xthen X echo shar: "will not over-write existing file './usr/src/lib/libc/stdlib/lconv.c'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/lib/libc/stdlib/lconv.c' XZ/* XZ * Copyright (c) 1991, 1993 XZ * The Regents of the University of California. All rights reserved. XZ * XZ * Redistribution and use in source and binary forms, with or without XZ * modification, are permitted provided that the following conditions XZ * are met: XZ * 1. Redistributions of source code must retain the above copyright XZ * notice, this list of conditions and the following disclaimer. XZ * 2. Redistributions in binary form must reproduce the above copyright XZ * notice, this list of conditions and the following disclaimer in the XZ * documentation and/or other materials provided with the distribution. XZ * 3. All advertising materials mentioning features or use of this software XZ * must display the following acknowledgement: XZ * This product includes software developed by the University of XZ * California, Berkeley and its contributors. XZ * 4. Neither the name of the University nor the names of its contributors XZ * may be used to endorse or promote products derived from this software XZ * without specific prior written permission. XZ * XZ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND XZ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE XZ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE XZ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE XZ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL XZ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS XZ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) XZ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT XZ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY XZ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF XZ * SUCH DAMAGE. XZ */ XZ XZ#if defined(LIBC_SCCS) && !defined(lint) XZstatic char sccsid[] = "@(#)lconv.c 8.2 (2.11BSD) 2026/1/26"; XZ#endif XZ XZ#include XZ#include XZ XZstatic char empty[] = ""; XZ XZ/* XZ * Default (C) locale conversion. XZ */ XZstatic struct lconv C_lconv = { XZ ".", /* decimal_point */ XZ empty, /* thousands_sep */ XZ empty, /* grouping */ XZ empty, /* mon_decimal_point */ XZ empty, /* mon_thousands_sep */ XZ empty, /* mon_grouping */ XZ empty, /* positive_sign */ XZ empty, /* negative_sign */ XZ empty, /* currency_symbol */ XZ CHAR_MAX, /* frac_digits */ XZ CHAR_MAX, /* p_cs_precedes */ XZ CHAR_MAX, /* n_cs_precedes */ XZ CHAR_MAX, /* p_sep_by_space */ XZ CHAR_MAX, /* n_sep_by_space */ XZ CHAR_MAX, /* p_sign_posn */ XZ CHAR_MAX, /* n_sign_posn */ XZ XZ empty, /* int_curr_symbol */ XZ CHAR_MAX, /* int_frac_digits */ XZ CHAR_MAX, /* int_p_cs_precedes */ XZ CHAR_MAX, /* int_n_cs_precedes */ XZ CHAR_MAX, /* int_p_sep_by_space */ XZ CHAR_MAX, /* int_n_sep_by_space */ XZ CHAR_MAX, /* int_p_sign_posn */ XZ CHAR_MAX, /* int_n_sign_posn */ XZ}; XZ XZ/* XZ * Current locale conversion. XZ */ XZstruct lconv *__lconv = &C_lconv; XSHAR_EOF Xchmod 644 './usr/src/lib/libc/stdlib/lconv.c' Xfi Xif test -f './usr/src/lib/libc/stdlib/localeconv.c' Xthen X echo shar: "will not over-write existing file './usr/src/lib/libc/stdlib/localeconv.c'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/lib/libc/stdlib/localeconv.c' XZ/* XZ * Public domain - 2026/1/23 - ragge XZ * XZ * @(#)localeconv.c 1.1 (2.11BSD) 2026/1/23 XZ */ XZ XZ/* XZ * Return current locale. (C99 7.11). XZ */ XZ XZ#include XZ XZextern struct lconv *__lconv; XZ XZstruct lconv * XZlocaleconv(void) XZ{ XZ return __lconv; XZ} XZ XSHAR_EOF Xchmod 644 './usr/src/lib/libc/stdlib/localeconv.c' Xfi Xif test -f './usr/src/lib/libc/stdlib/setlocale.c' Xthen X echo shar: "will not over-write existing file './usr/src/lib/libc/stdlib/setlocale.c'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/lib/libc/stdlib/setlocale.c' XZ/* XZ * Public domain - 2026/1/23 - ragge XZ * XZ * @(#)setlocale.c 1.1 (2.11BSD) 2026/1/23 XZ */ XZ XZ/* XZ * Set locale. Currently only supports C locale, so trivial function. XZ * (C99 7.11). XZ */ XZ XZ#include XZ XZchar * XZsetlocale(register int category, register const char *locale) XZ{ XZ if (category < 0 || category >= _LC_LAST) XZ return (NULL); XZ if (locale == NULL || XZ locale[0] == 0 || (locale[0] == 'C' && locale[1] == 0)) XZ return "C"; XZ return NULL; XZ} XZ XSHAR_EOF Xchmod 644 './usr/src/lib/libc/stdlib/setlocale.c' Xfi Xif test -f './usr/src/lib/libc/stdlib/strtomax.c' Xthen X echo shar: "will not over-write existing file './usr/src/lib/libc/stdlib/strtomax.c'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/lib/libc/stdlib/strtomax.c' XZ/* XZ * Public domain - 2026/1/19 - ragge XZ * XZ * @(#)strtomax.c 1.1 (2.11BSD) 2026/1/19 XZ */ XZ XZ/* XZ * Convert string to intmax/uintmax (C99 7.8.2.3). XZ * The same as strtol/strtoul on pdp11. XZ * XXX - change when pdp11 gets long long. XZ */ XZ XZ#include XZ XZintmax_t XZstrtoimax(const char *restrict nptr, char **restrict endptr, int base) XZ{ XZ return strtol(nptr, endptr, base); XZ} XZ XZuintmax_t XZstrtoumax(const char * restrict nptr, char ** restrict endptr, int base) XZ{ XZ return strtoul(nptr, endptr, base); XZ} XSHAR_EOF Xchmod 644 './usr/src/lib/libc/stdlib/strtomax.c' Xfi Xif test -f './usr/src/man/man1/symdump.1' Xthen X echo shar: "will not over-write existing file './usr/src/man/man1/symdump.1'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/man/man1/symdump.1' XZ.\" Public domain 2026 - Steven Schultz XZ.\" XZ.\" @(#)symdump.1 1.0 (2.11BSD) 2026/2/4 XZ.\" XZ.TH symdump 1 "February 4, 2026" XZ.UC 2 XZ.SH NAME XZsymdump \- dump symbol table of a program. XZ.SH SYNOPSIS XZ.B symdump XZ[ executable ] XZ.SH DESCRIPTION XZ.B symdump XZdumps the symbol table of a program to stdout one symbol per line in the form: XZ.sp XZsymbol_string type overlay value XZ.PP XZThe primary use of \fBsymdump\fP XZis by \fBstrcompact\fP(1) when compacting the symbol table of the kernel but XZnothing precludes more general use. XZ.SH DIAGNOSTICS XZneed a file name: an executable's name is required. XZ.sp XZcannot open: read permission to the file not granted XZ.sp XZbad format: magic number of file is not valid for an executable XZ.sp XZno name list: symbol table has been removed by \fBstrip\fP(1) XZ.sp XZno string table: there is no string information for the name list to point to XZ.sp XZno memory for strings: malloc failed to obtain memory to hold the string table XZ.sp XZerror reading strings: I/O error loading string table into memory XZ.PP XZ\fBsymdump\fP exits 0 if successful, and >0 if an error occurred. XZ.SH SEE ALSO XZstrcompact(1), symcompact(1), symorder(1) XZ.PP XZ/usr/include/nlist.h for symbol \fBtype\fP values. XSHAR_EOF Xchmod 444 './usr/src/man/man1/symdump.1' Xfi Xif test -f './usr/src/man/man2/errno.2' Xthen X echo shar: "will not over-write existing file './usr/src/man/man2/errno.2'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/man/man2/errno.2' XZ.so intro.2 XSHAR_EOF Xchmod 644 './usr/src/man/man2/errno.2' Xfi Xif test -f './usr/src/man/man3/isalnum.3' Xthen X echo shar: "will not over-write existing file './usr/src/man/man3/isalnum.3'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/man/man3/isalnum.3' XZ.\" Copyright (c) 1991, 1993 XZ.\" The Regents of the University of California. All rights reserved. XZ.\" XZ.\" This code is derived from software contributed to Berkeley by XZ.\" the American National Standards Committee X3, on Information XZ.\" Processing Systems. XZ.\" XZ.\" Redistribution and use in source and binary forms, with or without XZ.\" modification, are permitted provided that the following conditions XZ.\" are met: XZ.\" 1. Redistributions of source code must retain the above copyright XZ.\" notice, this list of conditions and the following disclaimer. XZ.\" 2. Redistributions in binary form must reproduce the above copyright XZ.\" notice, this list of conditions and the following disclaimer in the XZ.\" documentation and/or other materials provided with the distribution. XZ.\" 3. All advertising materials mentioning features or use of this software XZ.\" must display the following acknowledgement: XZ.\" This product includes software developed by the University of XZ.\" California, Berkeley and its contributors. XZ.\" 4. Neither the name of the University nor the names of its contributors XZ.\" may be used to endorse or promote products derived from this software XZ.\" without specific prior written permission. XZ.\" XZ.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND XZ.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE XZ.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE XZ.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE XZ.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL XZ.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS XZ.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) XZ.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT XZ.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY XZ.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF XZ.\" SUCH DAMAGE. XZ.\" XZ.\" @(#)isalnum.3 8.2 (2.11BSD) 2026/1/26 XZ.\" XZ.Dd January 26, 2026 XZ.Dt ISALNUM 3 XZ.Os XZ.Sh NAME XZ.Nm isalnum XZ.Nd alphanumeric character test XZ.Sh SYNOPSIS XZ.Fd #include XZ.Ft int XZ.Fn isalnum "int c"; XZ.Sh DESCRIPTION XZThe XZ.Fn isalnum XZfunction tests for any character for which XZ.Xr isalpha 3 XZor XZ.Xr isdigit 3 XZis true. XZIn the ASCII character set, this includes the following characters: XZ.sp XZ.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ XZ.It \&060\ ``0'' \t061\ ``1'' \t062\ ``2'' \t063\ ``3'' \t064\ ``4'' XZ.It \&065\ ``5'' \t066\ ``6'' \t067\ ``7'' \t070\ ``8'' \t071\ ``9'' XZ.It \&101\ ``A'' \t102\ ``B'' \t103\ ``C'' \t104\ ``D'' \t105\ ``E'' XZ.It \&106\ ``F'' \t107\ ``G'' \t110\ ``H'' \t111\ ``I'' \t112\ ``J'' XZ.It \&113\ ``K'' \t114\ ``L'' \t115\ ``M'' \t116\ ``N'' \t117\ ``O'' XZ.It \&120\ ``P'' \t121\ ``Q'' \t122\ ``R'' \t123\ ``S'' \t124\ ``T'' XZ.It \&125\ ``U'' \t126\ ``V'' \t127\ ``W'' \t130\ ``X'' \t131\ ``Y'' XZ.It \&132\ ``Z'' \t141\ ``a'' \t142\ ``b'' \t143\ ``c'' \t144\ ``d'' XZ.It \&145\ ``e'' \t146\ ``f'' \t147\ ``g'' \t150\ ``h'' \t151\ ``i'' XZ.It \&152\ ``j'' \t153\ ``k'' \t154\ ``l'' \t155\ ``m'' \t156\ ``n'' XZ.It \&157\ ``o'' \t160\ ``p'' \t161\ ``q'' \t162\ ``r'' \t163\ ``s'' XZ.It \&164\ ``t'' \t165\ ``u'' \t166\ ``v'' \t167\ ``w'' \t170\ ``x'' XZ.It \&171\ ``y'' \t172\ ``z'' XZ.El XZ.Sh RETURN VALUES XZThe XZ.Fn isalnum XZfunction returns zero if the character tests false and XZreturns non-zero if the character tests true. XZ.Sh SEE ALSO XZ.Xr ctype 3 , XZ.Xr ascii 7 XZ.Sh STANDARDS XZThe XZ.Fn isalnum XZfunction conforms to XZ.St -ansiC . XSHAR_EOF Xchmod 644 './usr/src/man/man3/isalnum.3' Xfi Xif test -f './usr/src/man/man3/isalpha.3' Xthen X echo shar: "will not over-write existing file './usr/src/man/man3/isalpha.3'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/man/man3/isalpha.3' XZ.\" Copyright (c) 1991, 1993 XZ.\" The Regents of the University of California. All rights reserved. XZ.\" XZ.\" This code is derived from software contributed to Berkeley by XZ.\" the American National Standards Committee X3, on Information XZ.\" Processing Systems. XZ.\" XZ.\" Redistribution and use in source and binary forms, with or without XZ.\" modification, are permitted provided that the following conditions XZ.\" are met: XZ.\" 1. Redistributions of source code must retain the above copyright XZ.\" notice, this list of conditions and the following disclaimer. XZ.\" 2. Redistributions in binary form must reproduce the above copyright XZ.\" notice, this list of conditions and the following disclaimer in the XZ.\" documentation and/or other materials provided with the distribution. XZ.\" 3. All advertising materials mentioning features or use of this software XZ.\" must display the following acknowledgement: XZ.\" This product includes software developed by the University of XZ.\" California, Berkeley and its contributors. XZ.\" 4. Neither the name of the University nor the names of its contributors XZ.\" may be used to endorse or promote products derived from this software XZ.\" without specific prior written permission. XZ.\" XZ.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND XZ.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE XZ.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE XZ.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE XZ.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL XZ.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS XZ.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) XZ.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT XZ.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY XZ.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF XZ.\" SUCH DAMAGE. XZ.\" XZ.\" @(#)isalpha.3 8.2 (2.11BSD) 2026/1/26 XZ.\" XZ.Dd January 26, 2026 XZ.Dt ISALPHA 3 XZ.Os XZ.Sh NAME XZ.Nm isalpha XZ.Nd alphabetic character test XZ.Sh SYNOPSIS XZ.Fd #include XZ.Ft int XZ.Fn isalpha "int c"; XZ.Sh DESCRIPTION XZThe XZ.Fn isalpha XZfunction tests for any character for which XZ.Xr isupper 3 XZor XZ.Xr islower 3 XZis true. XZIn the ASCII character set, this includes the following characters: XZ.sp XZ.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ XZ.It \&101\ ``A'' \t102\ ``B'' \t103\ ``C'' \t104\ ``D'' \t105\ ``E'' XZ.It \&106\ ``F'' \t107\ ``G'' \t110\ ``H'' \t111\ ``I'' \t112\ ``J'' XZ.It \&113\ ``K'' \t114\ ``L'' \t115\ ``M'' \t116\ ``N'' \t117\ ``O'' XZ.It \&120\ ``P'' \t121\ ``Q'' \t122\ ``R'' \t123\ ``S'' \t124\ ``T'' XZ.It \&125\ ``U'' \t126\ ``V'' \t127\ ``W'' \t130\ ``X'' \t131\ ``Y'' XZ.It \&132\ ``Z'' \t141\ ``a'' \t142\ ``b'' \t143\ ``c'' \t144\ ``d'' XZ.It \&145\ ``e'' \t146\ ``f'' \t147\ ``g'' \t150\ ``h'' \t151\ ``i'' XZ.It \&152\ ``j'' \t153\ ``k'' \t154\ ``l'' \t155\ ``m'' \t156\ ``n'' XZ.It \&157\ ``o'' \t160\ ``p'' \t161\ ``q'' \t162\ ``r'' \t163\ ``s'' XZ.It \&164\ ``t'' \t165\ ``u'' \t166\ ``v'' \t167\ ``w'' \t170\ ``x'' XZ.It \&171\ ``y'' \t172\ ``z'' XZ.El XZ.Sh RETURN VALUES XZThe XZ.Fn isalpha XZfunction returns zero if the character tests false and XZreturns non-zero if the character tests true. XZ.Sh SEE ALSO XZ.Xr ctype 3 , XZ.Xr ascii 7 XZ.Sh STANDARDS XZThe XZ.Fn isalpha XZfunction conforms to XZ.St -ansiC . XSHAR_EOF Xchmod 644 './usr/src/man/man3/isalpha.3' Xfi Xif test -f './usr/src/man/man3/isascii.3' Xthen X echo shar: "will not over-write existing file './usr/src/man/man3/isascii.3'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/man/man3/isascii.3' XZ.\" Copyright (c) 1989, 1991, 1993 XZ.\" The Regents of the University of California. All rights reserved. XZ.\" XZ.\" Redistribution and use in source and binary forms, with or without XZ.\" modification, are permitted provided that the following conditions XZ.\" are met: XZ.\" 1. Redistributions of source code must retain the above copyright XZ.\" notice, this list of conditions and the following disclaimer. XZ.\" 2. Redistributions in binary form must reproduce the above copyright XZ.\" notice, this list of conditions and the following disclaimer in the XZ.\" documentation and/or other materials provided with the distribution. XZ.\" 3. All advertising materials mentioning features or use of this software XZ.\" must display the following acknowledgement: XZ.\" This product includes software developed by the University of XZ.\" California, Berkeley and its contributors. XZ.\" 4. Neither the name of the University nor the names of its contributors XZ.\" may be used to endorse or promote products derived from this software XZ.\" without specific prior written permission. XZ.\" XZ.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND XZ.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE XZ.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE XZ.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE XZ.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL XZ.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS XZ.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) XZ.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT XZ.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY XZ.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF XZ.\" SUCH DAMAGE. XZ.\" XZ.\" @(#)isascii.3 8.3 (2.11BSD) 2026/1/26 XZ.\" XZ.Dd January 26, 2026 XZ.Dt ISASCII 3 XZ.Os XZ.Sh NAME XZ.Nm isascii XZ.Nd test for ASCII character XZ.Sh SYNOPSIS XZ.Fd #include XZ.Ft int XZ.Fn isascii "int c"; XZ.Sh DESCRIPTION XZThe XZ.Fn isascii XZfunction tests for an XZ.Tn ASCII XZcharacter, which is any character with a value less than or XZequal to 0177. XZ.Sh SEE ALSO XZ.Xr ctype 3 , XZ.Xr ascii 7 XZ.Sh STANDARDS XZThe XZ.Fn isascii XZfunction was removed in XZ.St -p1003.1-2024 XZand is currently not in any standard specification. XSHAR_EOF Xchmod 644 './usr/src/man/man3/isascii.3' Xfi Xif test -f './usr/src/man/man3/isblank.3' Xthen X echo shar: "will not over-write existing file './usr/src/man/man3/isblank.3'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/man/man3/isblank.3' XZ.\" Copyright (c) 1991, 1993 XZ.\" The Regents of the University of California. All rights reserved. XZ.\" XZ.\" Redistribution and use in source and binary forms, with or without XZ.\" modification, are permitted provided that the following conditions XZ.\" are met: XZ.\" 1. Redistributions of source code must retain the above copyright XZ.\" notice, this list of conditions and the following disclaimer. XZ.\" 2. Redistributions in binary form must reproduce the above copyright XZ.\" notice, this list of conditions and the following disclaimer in the XZ.\" documentation and/or other materials provided with the distribution. XZ.\" 3. All advertising materials mentioning features or use of this software XZ.\" must display the following acknowledgement: XZ.\" This product includes software developed by the University of XZ.\" California, Berkeley and its contributors. XZ.\" 4. Neither the name of the University nor the names of its contributors XZ.\" may be used to endorse or promote products derived from this software XZ.\" without specific prior written permission. XZ.\" XZ.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND XZ.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE XZ.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE XZ.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE XZ.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL XZ.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS XZ.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) XZ.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT XZ.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY XZ.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF XZ.\" SUCH DAMAGE. XZ.\" XZ.\" @(#)isblank.3 8.2 (2.11BSD) 2026/1/26 XZ.\" XZ.Dd January 26, 2026 XZ.Dt ISBLANK 3 XZ.Os XZ.Sh NAME XZ.Nm isblank XZ.Nd space or tab character test XZ.Sh SYNOPSIS XZ.Fd #include XZ.Ft int XZ.Fn isblank "int c"; XZ.Sh DESCRIPTION XZThe XZ.Fn isblank XZfunction tests for a space or tab character. XZ.Sh RETURN VALUES XZThe XZ.Fn isblank XZfunction returns zero if the character tests false and XZreturns non-zero if the character tests true. XZ.Sh SEE ALSO XZ.Xr ctype 3 , XZ.Xr ascii 7 XSHAR_EOF Xchmod 644 './usr/src/man/man3/isblank.3' Xfi Xif test -f './usr/src/man/man3/iscntrl.3' Xthen X echo shar: "will not over-write existing file './usr/src/man/man3/iscntrl.3'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/man/man3/iscntrl.3' XZ.\" Copyright (c) 1991, 1993 XZ.\" The Regents of the University of California. All rights reserved. XZ.\" XZ.\" This code is derived from software contributed to Berkeley by XZ.\" the American National Standards Committee X3, on Information XZ.\" Processing Systems. XZ.\" XZ.\" Redistribution and use in source and binary forms, with or without XZ.\" modification, are permitted provided that the following conditions XZ.\" are met: XZ.\" 1. Redistributions of source code must retain the above copyright XZ.\" notice, this list of conditions and the following disclaimer. XZ.\" 2. Redistributions in binary form must reproduce the above copyright XZ.\" notice, this list of conditions and the following disclaimer in the XZ.\" documentation and/or other materials provided with the distribution. XZ.\" 3. All advertising materials mentioning features or use of this software XZ.\" must display the following acknowledgement: XZ.\" This product includes software developed by the University of XZ.\" California, Berkeley and its contributors. XZ.\" 4. Neither the name of the University nor the names of its contributors XZ.\" may be used to endorse or promote products derived from this software XZ.\" without specific prior written permission. XZ.\" XZ.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND XZ.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE XZ.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE XZ.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE XZ.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL XZ.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS XZ.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) XZ.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT XZ.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY XZ.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF XZ.\" SUCH DAMAGE. XZ.\" XZ.\" @(#)iscntrl.3 8.2 (2.11BSD) 2026/1/26 XZ.\" XZ.Dd January 26, 2026 XZ.Dt ISCNTRL 3 XZ.Os XZ.Sh NAME XZ.Nm iscntrl XZ.Nd control character test XZ.Sh SYNOPSIS XZ.Fd #include XZ.Ft int XZ.Fn iscntrl "int c"; XZ.Sh DESCRIPTION XZThe XZ.Fn iscntrl XZfunction tests for any control character. XZIn the ASCII character set, this includes the following characters: XZ.sp XZ.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ XZ.It \&000\ nul \t001\ soh \t002\ stx \t003\ etx \t004\ eot XZ.It \&005\ enq \t006\ ack \t007\ bel \t010\ bs \t011\ ht XZ.It \&012\ nl \t013\ vt \t014\ np \t015\ cr \t016\ so XZ.It \&017\ si \t020\ dle \t021\ dc1 \t022\ dc2 \t023\ dc3 XZ.It \&024\ dc4 \t025\ nak \t026\ syn \t027\ etb \t030\ can XZ.It \&031\ em \t032\ sub \t033\ esc \t034\ fs \t035\ gs XZ.It \&036\ rs \t037\ us \t177\ del XZ.El XZ.Sh RETURN VALUES XZThe XZ.Fn iscntrl XZfunction returns zero if the character tests false and XZreturns non-zero if the character tests true. XZ.Sh SEE ALSO XZ.Xr ctype 3 , XZ.Xr ascii 7 XZ.Sh STANDARDS XZThe XZ.Fn iscntrl XZfunction conforms to XZ.St -ansiC . XSHAR_EOF Xchmod 644 './usr/src/man/man3/iscntrl.3' Xfi Xif test -f './usr/src/man/man3/isdigit.3' Xthen X echo shar: "will not over-write existing file './usr/src/man/man3/isdigit.3'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/man/man3/isdigit.3' XZ.\" Copyright (c) 1991, 1993 XZ.\" The Regents of the University of California. All rights reserved. XZ.\" XZ.\" This code is derived from software contributed to Berkeley by XZ.\" the American National Standards Committee X3, on Information XZ.\" Processing Systems. XZ.\" XZ.\" Redistribution and use in source and binary forms, with or without XZ.\" modification, are permitted provided that the following conditions XZ.\" are met: XZ.\" 1. Redistributions of source code must retain the above copyright XZ.\" notice, this list of conditions and the following disclaimer. XZ.\" 2. Redistributions in binary form must reproduce the above copyright XZ.\" notice, this list of conditions and the following disclaimer in the XZ.\" documentation and/or other materials provided with the distribution. XZ.\" 3. All advertising materials mentioning features or use of this software XZ.\" must display the following acknowledgement: XZ.\" This product includes software developed by the University of XZ.\" California, Berkeley and its contributors. XZ.\" 4. Neither the name of the University nor the names of its contributors XZ.\" may be used to endorse or promote products derived from this software XZ.\" without specific prior written permission. XZ.\" XZ.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND XZ.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE XZ.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE XZ.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE XZ.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL XZ.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS XZ.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) XZ.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT XZ.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY XZ.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF XZ.\" SUCH DAMAGE. XZ.\" XZ.\" @(#)isdigit.3 8.2 (2.11BSD) 2026/1/26 XZ.\" XZ.Dd January 26, 2026 XZ.Dt ISDIGIT 3 XZ.Os XZ.Sh NAME XZ.Nm isdigit XZ.Nd decimal-digit character test XZ.Sh SYNOPSIS XZ.Fd #include XZ.Ft int XZ.Fn isdigit "int c"; XZ.Sh DESCRIPTION XZThe XZ.Fn isdigit XZfunction tests for any decimal-digit character. XZIn the ASCII character set, this includes the following characters: XZ.sp XZ.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ XZ.It \&060\ ``0'' \t061\ ``1'' \t062\ ``2'' \t063\ ``3'' \t064\ ``4'' XZ.It \&065\ ``5'' \t066\ ``6'' \t067\ ``7'' \t070\ ``8'' \t071\ ``9'' XZ.El XZ.Sh RETURN VALUES XZThe XZ.Fn isdigit XZfunction returns zero if the character tests false and XZreturns non-zero if the character tests true. XZ.Sh SEE ALSO XZ.Xr ctype 3 , XZ.Xr ascii 7 XZ.Sh STANDARDS XZThe XZ.Fn isdigit XZfunction conforms to XZ.St -ansiC . XSHAR_EOF Xchmod 644 './usr/src/man/man3/isdigit.3' Xfi Xif test -f './usr/src/man/man3/isgraph.3' Xthen X echo shar: "will not over-write existing file './usr/src/man/man3/isgraph.3'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/man/man3/isgraph.3' XZ.\" Copyright (c) 1991, 1993 XZ.\" The Regents of the University of California. All rights reserved. XZ.\" XZ.\" This code is derived from software contributed to Berkeley by XZ.\" the American National Standards Committee X3, on Information XZ.\" Processing Systems. XZ.\" XZ.\" Redistribution and use in source and binary forms, with or without XZ.\" modification, are permitted provided that the following conditions XZ.\" are met: XZ.\" 1. Redistributions of source code must retain the above copyright XZ.\" notice, this list of conditions and the following disclaimer. XZ.\" 2. Redistributions in binary form must reproduce the above copyright XZ.\" notice, this list of conditions and the following disclaimer in the XZ.\" documentation and/or other materials provided with the distribution. XZ.\" 3. All advertising materials mentioning features or use of this software XZ.\" must display the following acknowledgement: XZ.\" This product includes software developed by the University of XZ.\" California, Berkeley and its contributors. XZ.\" 4. Neither the name of the University nor the names of its contributors XZ.\" may be used to endorse or promote products derived from this software XZ.\" without specific prior written permission. XZ.\" XZ.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND XZ.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE XZ.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE XZ.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE XZ.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL XZ.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS XZ.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) XZ.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT XZ.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY XZ.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF XZ.\" SUCH DAMAGE. XZ.\" XZ.\" @(#)isgraph.3 8.3 (2.11BSD) 2026/1/26 XZ.\" XZ.Dd January 26, 2026 XZ.Dt ISGRAPH 3 XZ.Os XZ.Sh NAME XZ.Nm isgraph XZ.Nd printing character test (space character exclusive) XZ.Sh SYNOPSIS XZ.Fd #include XZ.Ft int XZ.Fn isgraph "int c"; XZ.Sh DESCRIPTION XZThe XZ.Fn isgraph XZfunction tests for any printing character except space. XZIn the ASCII character set, this includes the following characters: XZ.sp XZ.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ XZ.It \&041\ ``!'' \t042\ ``"'' \t043\ ``#'' \t044\ ``$'' \t045\ ``%'' XZ.It \&046\ ``&'' \t047\ ``''' \t050\ ``('' \t051\ ``)'' \t052\ ``*'' XZ.It \&053\ ``+'' \t054\ ``,'' \t055\ ``-'' \t056\ ``.'' \t057\ ``/'' XZ.It \&060\ ``0'' \t061\ ``1'' \t062\ ``2'' \t063\ ``3'' \t064\ ``4'' XZ.It \&065\ ``5'' \t066\ ``6'' \t067\ ``7'' \t070\ ``8'' \t071\ ``9'' XZ.It \&072\ ``:'' \t073\ ``;'' \t074\ ``<'' \t075\ ``='' \t076\ ``>'' XZ.It \&077\ ``?'' \t100\ ``@'' \t101\ ``A'' \t102\ ``B'' \t103\ ``C'' XZ.It \&104\ ``D'' \t105\ ``E'' \t106\ ``F'' \t107\ ``G'' \t110\ ``H'' XZ.It \&111\ ``I'' \t112\ ``J'' \t113\ ``K'' \t114\ ``L'' \t115\ ``M'' XZ.It \&116\ ``N'' \t117\ ``O'' \t120\ ``P'' \t121\ ``Q'' \t122\ ``R'' XZ.It \&123\ ``S'' \t124\ ``T'' \t125\ ``U'' \t126\ ``V'' \t127\ ``W'' XZ.It \&130\ ``X'' \t131\ ``Y'' \t132\ ``Z'' \t133\ ``['' \t134\ ``\'' XZ.It \&135\ ``]'' \t136\ ``^'' \t137\ ``_'' \t140\ ```'' \t141\ ``a'' XZ.It \&142\ ``b'' \t143\ ``c'' \t144\ ``d'' \t145\ ``e'' \t146\ ``f'' XZ.It \&147\ ``g'' \t150\ ``h'' \t151\ ``i'' \t152\ ``j'' \t153\ ``k'' XZ.It \&154\ ``l'' \t155\ ``m'' \t156\ ``n'' \t157\ ``o'' \t160\ ``p'' XZ.It \&161\ ``q'' \t162\ ``r'' \t163\ ``s'' \t164\ ``t'' \t165\ ``u'' XZ.It \&166\ ``v'' \t167\ ``w'' \t170\ ``x'' \t171\ ``y'' \t172\ ``z'' XZ.It \&173\ ``{'' \t174\ ``|'' \t175\ ``}'' \t176\ ``~'' XZ.El XZ.Sh RETURN VALUES XZThe XZ.Fn isgraph XZfunction returns zero if the character tests false and XZreturns non-zero if the character tests true. XZ.Sh SEE ALSO XZ.Xr ctype 3 , XZ.Xr ascii 7 XZ.Sh STANDARDS XZThe XZ.Fn isgraph XZfunction conforms to XZ.St -ansiC . XSHAR_EOF Xchmod 644 './usr/src/man/man3/isgraph.3' Xfi Xif test -f './usr/src/man/man3/islower.3' Xthen X echo shar: "will not over-write existing file './usr/src/man/man3/islower.3'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/man/man3/islower.3' XZ.\" Copyright (c) 1991, 1993 XZ.\" The Regents of the University of California. All rights reserved. XZ.\" XZ.\" This code is derived from software contributed to Berkeley by XZ.\" the American National Standards Committee X3, on Information XZ.\" Processing Systems. XZ.\" XZ.\" Redistribution and use in source and binary forms, with or without XZ.\" modification, are permitted provided that the following conditions XZ.\" are met: XZ.\" 1. Redistributions of source code must retain the above copyright XZ.\" notice, this list of conditions and the following disclaimer. XZ.\" 2. Redistributions in binary form must reproduce the above copyright XZ.\" notice, this list of conditions and the following disclaimer in the XZ.\" documentation and/or other materials provided with the distribution. XZ.\" 3. All advertising materials mentioning features or use of this software XZ.\" must display the following acknowledgement: XZ.\" This product includes software developed by the University of XZ.\" California, Berkeley and its contributors. XZ.\" 4. Neither the name of the University nor the names of its contributors XZ.\" may be used to endorse or promote products derived from this software XZ.\" without specific prior written permission. XZ.\" XZ.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND XZ.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE XZ.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE XZ.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE XZ.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL XZ.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS XZ.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) XZ.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT XZ.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY XZ.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF XZ.\" SUCH DAMAGE. XZ.\" XZ.\" @(#)islower.3 8.2 (2.11BSD) 2026/1/26 XZ.\" XZ.Dd January 26, 2026 XZ.Dt ISLOWER 3 XZ.Os XZ.Sh NAME XZ.Nm islower XZ.Nd lower-case character test XZ.Sh SYNOPSIS XZ.Fd #include XZ.Ft int XZ.Fn islower "int c"; XZ.Sh DESCRIPTION XZThe XZ.Fn islower XZfunction tests for any lower-case letters. XZIn the ASCII character set, this includes the following characters: XZ.sp XZ.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ XZ.It \&141\ ``a'' \t142\ ``b'' \t143\ ``c'' \t144\ ``d'' \t145\ ``e'' XZ.It \&146\ ``f'' \t147\ ``g'' \t150\ ``h'' \t151\ ``i'' \t152\ ``j'' XZ.It \&153\ ``k'' \t154\ ``l'' \t155\ ``m'' \t156\ ``n'' \t157\ ``o'' XZ.It \&160\ ``p'' \t161\ ``q'' \t162\ ``r'' \t163\ ``s'' \t164\ ``t'' XZ.It \&165\ ``u'' \t166\ ``v'' \t167\ ``w'' \t170\ ``x'' \t171\ ``y'' XZ.It \&172\ ``z'' XZ.El XZ.Sh RETURN VALUES XZThe XZ.Fn islower XZfunction returns zero if the character tests false and XZreturns non-zero if the character tests true. XZ.Sh SEE ALSO XZ.Xr ctype 3 , XZ.Xr ascii 7 XZ.Sh STANDARDS XZThe XZ.Fn islower XZfunction conforms to XZ.St -ansiC . XSHAR_EOF Xchmod 644 './usr/src/man/man3/islower.3' Xfi Xif test -f './usr/src/man/man3/isprint.3' Xthen X echo shar: "will not over-write existing file './usr/src/man/man3/isprint.3'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/man/man3/isprint.3' XZ.\" Copyright (c) 1991, 1993 XZ.\" The Regents of the University of California. All rights reserved. XZ.\" XZ.\" This code is derived from software contributed to Berkeley by XZ.\" the American National Standards Committee X3, on Information XZ.\" Processing Systems. XZ.\" XZ.\" Redistribution and use in source and binary forms, with or without XZ.\" modification, are permitted provided that the following conditions XZ.\" are met: XZ.\" 1. Redistributions of source code must retain the above copyright XZ.\" notice, this list of conditions and the following disclaimer. XZ.\" 2. Redistributions in binary form must reproduce the above copyright XZ.\" notice, this list of conditions and the following disclaimer in the XZ.\" documentation and/or other materials provided with the distribution. XZ.\" 3. All advertising materials mentioning features or use of this software XZ.\" must display the following acknowledgement: XZ.\" This product includes software developed by the University of XZ.\" California, Berkeley and its contributors. XZ.\" 4. Neither the name of the University nor the names of its contributors XZ.\" may be used to endorse or promote products derived from this software XZ.\" without specific prior written permission. XZ.\" XZ.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND XZ.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE XZ.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE XZ.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE XZ.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL XZ.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS XZ.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) XZ.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT XZ.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY XZ.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF XZ.\" SUCH DAMAGE. XZ.\" XZ.\" @(#)isprint.3 8.2 (2.11BSD) 2026/1/26 XZ.\" XZ.Dd January 26, 2026 XZ.Dt ISPRINT 3 XZ.Os XZ.Sh NAME XZ.Nm isprint XZ.Nd printing character test (space character inclusive) XZ.Sh SYNOPSIS XZ.Fd #include XZ.Ft int XZ.Fn isprint "int c"; XZ.Sh DESCRIPTION XZThe XZ.Fn isprint XZfunction tests for any printing character including space (' '). XZIn the ASCII character set, this includes the following characters: XZ.sp XZ.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ XZ.It \&040\ sp \t041\ ``!'' \t042\ ``"'' \t043\ ``#'' \t044\ ``$'' XZ.It \&045\ ``%'' \t046\ ``&'' \t047\ ``''' \t050\ ``('' \t051\ ``)'' XZ.It \&052\ ``*'' \t053\ ``+'' \t054\ ``,'' \t055\ ``-'' \t056\ ``.'' XZ.It \&057\ ``/'' \t060\ ``0'' \t061\ ``1'' \t062\ ``2'' \t063\ ``3'' XZ.It \&064\ ``4'' \t065\ ``5'' \t066\ ``6'' \t067\ ``7'' \t070\ ``8'' XZ.It \&071\ ``9'' \t072\ ``:'' \t073\ ``;'' \t074\ ``<'' \t075\ ``='' XZ.It \&076\ ``>'' \t077\ ``?'' \t100\ ``@'' \t101\ ``A'' \t102\ ``B'' XZ.It \&103\ ``C'' \t104\ ``D'' \t105\ ``E'' \t106\ ``F'' \t107\ ``G'' XZ.It \&110\ ``H'' \t111\ ``I'' \t112\ ``J'' \t113\ ``K'' \t114\ ``L'' XZ.It \&115\ ``M'' \t116\ ``N'' \t117\ ``O'' \t120\ ``P'' \t121\ ``Q'' XZ.It \&122\ ``R'' \t123\ ``S'' \t124\ ``T'' \t125\ ``U'' \t126\ ``V'' XZ.It \&127\ ``W'' \t130\ ``X'' \t131\ ``Y'' \t132\ ``Z'' \t133\ ``['' XZ.It \&134\ ``\'' \t135\ ``]'' \t136\ ``^'' \t137\ ``_'' \t140\ ```'' XZ.It \&141\ ``a'' \t142\ ``b'' \t143\ ``c'' \t144\ ``d'' \t145\ ``e'' XZ.It \&146\ ``f'' \t147\ ``g'' \t150\ ``h'' \t151\ ``i'' \t152\ ``j'' XZ.It \&153\ ``k'' \t154\ ``l'' \t155\ ``m'' \t156\ ``n'' \t157\ ``o'' XZ.It \&160\ ``p'' \t161\ ``q'' \t162\ ``r'' \t163\ ``s'' \t164\ ``t'' XZ.It \&165\ ``u'' \t166\ ``v'' \t167\ ``w'' \t170\ ``x'' \t171\ ``y'' XZ.It \&172\ ``z'' \t173\ ``{'' \t174\ ``|'' \t175\ ``}'' \t176\ ``~'' XZ.El XZ.Sh RETURN VALUES XZThe XZ.Fn isprint XZfunction returns zero if the character tests false and XZreturns non-zero if the character tests true. XZ.Sh SEE ALSO XZ.Xr ctype 3 , XZ.Xr ascii 7 XZ.Sh STANDARDS XZThe XZ.Fn isprint XZfunction conforms to XZ.St -ansiC . XSHAR_EOF Xchmod 644 './usr/src/man/man3/isprint.3' Xfi Xif test -f './usr/src/man/man3/ispunct.3' Xthen X echo shar: "will not over-write existing file './usr/src/man/man3/ispunct.3'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/man/man3/ispunct.3' XZ.\" Copyright (c) 1991, 1993 XZ.\" The Regents of the University of California. All rights reserved. XZ.\" XZ.\" This code is derived from software contributed to Berkeley by XZ.\" the American National Standards Committee X3, on Information XZ.\" Processing Systems. XZ.\" XZ.\" Redistribution and use in source and binary forms, with or without XZ.\" modification, are permitted provided that the following conditions XZ.\" are met: XZ.\" 1. Redistributions of source code must retain the above copyright XZ.\" notice, this list of conditions and the following disclaimer. XZ.\" 2. Redistributions in binary form must reproduce the above copyright XZ.\" notice, this list of conditions and the following disclaimer in the XZ.\" documentation and/or other materials provided with the distribution. XZ.\" 3. All advertising materials mentioning features or use of this software XZ.\" must display the following acknowledgement: XZ.\" This product includes software developed by the University of XZ.\" California, Berkeley and its contributors. XZ.\" 4. Neither the name of the University nor the names of its contributors XZ.\" may be used to endorse or promote products derived from this software XZ.\" without specific prior written permission. XZ.\" XZ.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND XZ.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE XZ.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE XZ.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE XZ.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL XZ.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS XZ.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) XZ.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT XZ.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY XZ.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF XZ.\" SUCH DAMAGE. XZ.\" XZ.\" @(#)ispunct.3 8.2 (2.11BSD) 2026/1/26 XZ.\" XZ.Dd January 26, 2026 XZ.Dt ISPUNCT 3 XZ.Os XZ.Sh NAME XZ.Nm ispunct XZ.Nd punctuation character test XZ.Sh SYNOPSIS XZ.Fd #include XZ.Ft int XZ.Fn ispunct "int c"; XZ.Sh DESCRIPTION XZThe XZ.Fn ispunct XZfunction tests for any printing character except for space (' ') or a XZcharacter for which XZ.Xr isalnum 3 XZis true. XZIn the ASCII character set, this includes the following characters: XZ.sp XZ.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ XZ.It \&041\ ``!'' \t042\ ``"'' \t043\ ``#'' \t044\ ``$'' \t045\ ``%'' XZ.It \&046\ ``&'' \t047\ ``''' \t050\ ``('' \t051\ ``)'' \t052\ ``*'' XZ.It \&053\ ``+'' \t054\ ``,'' \t055\ ``-'' \t056\ ``.'' \t057\ ``/'' XZ.It \&072\ ``:'' \t073\ ``;'' \t074\ ``<'' \t075\ ``='' \t076\ ``>'' XZ.It \&077\ ``?'' \t100\ ``@'' \t133\ ``['' \t134\ ``\'' \t135\ ``]'' XZ.It \&136\ ``^'' \t137\ ``_'' \t140\ ```'' \t173\ ``{'' \t174\ ``|'' XZ.It \&175\ ``}'' \t176\ ``~'' XZ.El XZ.Sh RETURN VALUES XZThe XZ.Fn ispunct XZfunction returns zero if the character tests false and XZreturns non-zero if the character tests true. XZ.Sh SEE ALSO XZ.Xr ctype 3 , XZ.Xr ascii 7 XZ.Sh STANDARDS XZThe XZ.Fn ispunct XZfunction conforms to XZ.St -ansiC . XSHAR_EOF Xchmod 644 './usr/src/man/man3/ispunct.3' Xfi Xif test -f './usr/src/man/man3/isspace.3' Xthen X echo shar: "will not over-write existing file './usr/src/man/man3/isspace.3'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/man/man3/isspace.3' XZ.\" Copyright (c) 1991, 1993 XZ.\" The Regents of the University of California. All rights reserved. XZ.\" XZ.\" This code is derived from software contributed to Berkeley by XZ.\" the American National Standards Committee X3, on Information XZ.\" Processing Systems. XZ.\" XZ.\" Redistribution and use in source and binary forms, with or without XZ.\" modification, are permitted provided that the following conditions XZ.\" are met: XZ.\" 1. Redistributions of source code must retain the above copyright XZ.\" notice, this list of conditions and the following disclaimer. XZ.\" 2. Redistributions in binary form must reproduce the above copyright XZ.\" notice, this list of conditions and the following disclaimer in the XZ.\" documentation and/or other materials provided with the distribution. XZ.\" 3. All advertising materials mentioning features or use of this software XZ.\" must display the following acknowledgement: XZ.\" This product includes software developed by the University of XZ.\" California, Berkeley and its contributors. XZ.\" 4. Neither the name of the University nor the names of its contributors XZ.\" may be used to endorse or promote products derived from this software XZ.\" without specific prior written permission. XZ.\" XZ.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND XZ.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE XZ.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE XZ.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE XZ.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL XZ.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS XZ.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) XZ.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT XZ.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY XZ.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF XZ.\" SUCH DAMAGE. XZ.\" XZ.\" @(#)isspace.3 8.2 (2.11BSD) 2026/1/26 XZ.\" XZ.Dd January 26, 2026 XZ.Dt ISSPACE 3 XZ.Os XZ.Sh NAME XZ.Nm isspace XZ.Nd white-space character test XZ.Sh SYNOPSIS XZ.Fd #include XZ.Ft int XZ.Fn isspace "int c"; XZ.Sh DESCRIPTION XZThe XZ.Fn isspace XZfunction tests for the standard white-space characters. XZIn the ASCII character set, this includes the following characters: XZ.sp XZ.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ XZ.It \&011\ ht \t012\ nl \t013\ vt \t014\ np \t015\ cr XZ.It \&040\ sp XZ.El XZ.Sh RETURN VALUES XZThe XZ.Fn isspace XZfunction returns zero if the character tests false and XZreturns non-zero if the character tests true. XZ.Sh SEE ALSO XZ.Xr ctype 3 , XZ.Xr ascii 7 XZ.Sh STANDARDS XZThe XZ.Fn isspace XZfunction conforms to XZ.St -ansiC . XSHAR_EOF Xchmod 644 './usr/src/man/man3/isspace.3' Xfi Xif test -f './usr/src/man/man3/isupper.3' Xthen X echo shar: "will not over-write existing file './usr/src/man/man3/isupper.3'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/man/man3/isupper.3' XZ.\" Copyright (c) 1991, 1993 XZ.\" The Regents of the University of California. All rights reserved. XZ.\" XZ.\" This code is derived from software contributed to Berkeley by XZ.\" the American National Standards Committee X3, on Information XZ.\" Processing Systems. XZ.\" XZ.\" Redistribution and use in source and binary forms, with or without XZ.\" modification, are permitted provided that the following conditions XZ.\" are met: XZ.\" 1. Redistributions of source code must retain the above copyright XZ.\" notice, this list of conditions and the following disclaimer. XZ.\" 2. Redistributions in binary form must reproduce the above copyright XZ.\" notice, this list of conditions and the following disclaimer in the XZ.\" documentation and/or other materials provided with the distribution. XZ.\" 3. All advertising materials mentioning features or use of this software XZ.\" must display the following acknowledgement: XZ.\" This product includes software developed by the University of XZ.\" California, Berkeley and its contributors. XZ.\" 4. Neither the name of the University nor the names of its contributors XZ.\" may be used to endorse or promote products derived from this software XZ.\" without specific prior written permission. XZ.\" XZ.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND XZ.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE XZ.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE XZ.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE XZ.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL XZ.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS XZ.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) XZ.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT XZ.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY XZ.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF XZ.\" SUCH DAMAGE. XZ.\" XZ.\" @(#)isupper.3 8.2 (2.11BSD) 2026/1/26 XZ.\" XZ.Dd January 26, 2026 XZ.Dt ISUPPER 3 XZ.Os XZ.Sh NAME XZ.Nm isupper XZ.Nd upper-case character test XZ.Sh SYNOPSIS XZ.Fd #include XZ.Ft int XZ.Fn isupper "int c"; XZ.Sh DESCRIPTION XZThe XZ.Fn isupper XZfunction tests for any upper-case letter. XZIn the ASCII character set, this includes the following characters: XZ.sp XZ.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ XZ.It \&101\ ``A'' \t102\ ``B'' \t103\ ``C'' \t104\ ``D'' \t105\ ``E'' XZ.It \&106\ ``F'' \t107\ ``G'' \t110\ ``H'' \t111\ ``I'' \t112\ ``J'' XZ.It \&113\ ``K'' \t114\ ``L'' \t115\ ``M'' \t116\ ``N'' \t117\ ``O'' XZ.It \&120\ ``P'' \t121\ ``Q'' \t122\ ``R'' \t123\ ``S'' \t124\ ``T'' XZ.It \&125\ ``U'' \t126\ ``V'' \t127\ ``W'' \t130\ ``X'' \t131\ ``Y'' XZ.It \&132\ ``Z'' XZ.El XZ.Sh RETURN VALUES XZThe XZ.Fn isupper XZfunction returns zero if the character tests false and XZreturns non-zero if the character tests true. XZ.Sh SEE ALSO XZ.Xr ctype 3 , XZ.Xr ascii 7 XZ.Sh STANDARDS XZThe XZ.Xr isupper XZfunction conforms to XZ.St -ansiC . XSHAR_EOF Xchmod 644 './usr/src/man/man3/isupper.3' Xfi Xif test -f './usr/src/man/man3/isxdigit.3' Xthen X echo shar: "will not over-write existing file './usr/src/man/man3/isxdigit.3'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/man/man3/isxdigit.3' XZ.\" Copyright (c) 1991, 1993 XZ.\" The Regents of the University of California. All rights reserved. XZ.\" XZ.\" This code is derived from software contributed to Berkeley by XZ.\" the American National Standards Committee X3, on Information XZ.\" Processing Systems. XZ.\" XZ.\" Redistribution and use in source and binary forms, with or without XZ.\" modification, are permitted provided that the following conditions XZ.\" are met: XZ.\" 1. Redistributions of source code must retain the above copyright XZ.\" notice, this list of conditions and the following disclaimer. XZ.\" 2. Redistributions in binary form must reproduce the above copyright XZ.\" notice, this list of conditions and the following disclaimer in the XZ.\" documentation and/or other materials provided with the distribution. XZ.\" 3. All advertising materials mentioning features or use of this software XZ.\" must display the following acknowledgement: XZ.\" This product includes software developed by the University of XZ.\" California, Berkeley and its contributors. XZ.\" 4. Neither the name of the University nor the names of its contributors XZ.\" may be used to endorse or promote products derived from this software XZ.\" without specific prior written permission. XZ.\" XZ.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND XZ.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE XZ.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE XZ.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE XZ.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL XZ.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS XZ.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) XZ.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT XZ.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY XZ.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF XZ.\" SUCH DAMAGE. XZ.\" XZ.\" @(#)isxdigit.3 8.2 (2.11BSD) 2026/1/26 XZ.\" XZ.Dd January 26, 2026 XZ.Dt ISXDIGIT 3 XZ.Os XZ.Sh NAME XZ.Nm isxdigit XZ.Nd hexadecimal-digit character test XZ.Sh SYNOPSIS XZ.Fd #include XZ.Ft int XZ.Fn isxdigit "int c"; XZ.Sh DESCRIPTION XZThe XZ.Fn isxdigit XZfunction tests for any hexadecimal-digit character. XZIn the ASCII character set, this includes the following characters: XZ.sp XZ.Bl -column \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ \&000_``0''__ XZ.It \&060\ ``0'' \t061\ ``1'' \t062\ ``2'' \t063\ ``3'' \t064\ ``4'' XZ.It \&065\ ``5'' \t066\ ``6'' \t067\ ``7'' \t070\ ``8'' \t071\ ``9'' XZ.It \&101\ ``A'' \t102\ ``B'' \t103\ ``C'' \t104\ ``D'' \t105\ ``E'' XZ.It \&106\ ``F'' \t141\ ``a'' \t142\ ``b'' \t143\ ``c'' \t144\ ``d'' XZ.It \&145\ ``e'' \t146\ ``f'' XZ.El XZ.Sh RETURN VALUES XZThe XZ.Fn isxdigit XZfunction returns zero if the character tests false and XZreturns non-zero if the character tests true. XZ.Sh SEE ALSO XZ.Xr ctype 3 , XZ.Xr ascii 7 XZ.Sh STANDARDS XZThe XZ.Fn isxdigit XZfunction conforms to XZ.St -ansiC . XSHAR_EOF Xchmod 644 './usr/src/man/man3/isxdigit.3' Xfi Xif test -f './usr/src/man/man3/math.3' Xthen X echo shar: "will not over-write existing file './usr/src/man/man3/math.3'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/man/man3/math.3' XZ.\" Copyright (c) 1985 Regents of the University of California. XZ.\" All rights reserved. The Berkeley software License Agreement XZ.\" specifies the terms and conditions for redistribution. XZ.\" XZ.\" @(#)math.3 6.8 (2.11BSD) 2026/9/27 XZ.\" XZ.TH MATH 3 "May 27, 1986" XZ.UC 4 XZ.SH NAME XZmath \- introduction to mathematical library functions XZ.SH DESCRIPTION XZThese functions constitute the C math library, XZ.I libm. XZThe link editor searches this library under the \*(lq\-lm\*(rq option. XZDeclarations for these functions may be obtained from the include file XZ.RI < math.h >. XZThe Fortran math library is described in ``man 3f intro''. XZ.SH "LIST OF FUNCTIONS" XZ.sp 2 XZ.nf XZ.ta \w'copysign'u+2n +\w'infnan.3'u+10n +\w'inverse trigonometric func'u XZ\fIName\fP \fIon Page\fP \fIDescription\fP XZ.ta \w'copysign'u+4n +\w'infnan.3'u+4n +\w'inverse trigonometric function'u XZ.sp 5p XZacos sin.3 inverse trigonometric function XZacosh asinh.3 inverse hyperbolic function XZasin sin.3 inverse trigonometric function XZasinh asinh.3 inverse hyperbolic function XZatan sin.3 inverse trigonometric function XZatanh asinh.3 inverse hyperbolic function XZatan2 sin.3 inverse trigonometric function XZcabs hypot.3 complex absolute value XZcbrt sqrt.3 cube root XZceil floor.3 integer no less than XZcos sin.3 trigonometric function XZcosh sinh.3 hyperbolic function XZerf erf.3 error function XZerfc erf.3 complementary error function XZexp exp.3 exponential XZexpm1 exp.3 exp(x)\-1 XZfabs floor.3 absolute value XZfloor floor.3 integer no greater than XZhypot hypot.3 Euclidean distance XZj0 j0.3 bessel function XZj1 j0.3 bessel function XZjn j0.3 bessel function XZlgamma lgamma.3 log gamma function XZlog exp.3 natural logarithm XZlog10 exp.3 logarithm to base 10 XZlog1p exp.3 log(1+x) XZpow exp.3 exponential x**y XZrint floor.3 round to nearest integer XZsin sin.3 trigonometric function XZsinh sinh.3 hyperbolic function XZsqrt sqrt.3 square root XZtan sin.3 trigonometric function XZtanh sinh.3 hyperbolic function XZy0 j0.3 bessel function XZy1 j0.3 bessel function XZyn j0.3 bessel function XZ.ta XZ.fi XZ.SH NOTES XZThe 4.3BSD VAX notes have removed because they inapplicable XZand unimplmentable on a PDP-11 running 2.11BSD. Consult the 4.3BSD XZmath(3) if the notes are missed. XZ.SH AUTHOR XZW. Kahan, with the help of Z\-S. Alex Liu, Stuart I. McDonald, XZDr. Kwok\-Choi Ng, Peter Tang. XSHAR_EOF Xchmod 444 './usr/src/man/man3/math.3' Xfi Xif test -f './usr/src/man/man3/strdup.3' Xthen X echo shar: "will not over-write existing file './usr/src/man/man3/strdup.3'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/man/man3/strdup.3' XZ.\" XZ.\" @(#)strdup.3 8.1.1 (2.11BSD) 1996/1/12 XZ.\" XZ.TH STRDUP 3 "May 27, 2026" XZ.UC 7 XZ.SH NAME XZ\fBstrdup\fP \- save a copy of a string XZ.SH SYNOPSIS XZ.B #include XZ.sp XZ.B char * XZ.br XZ\fBstrdup\fP(\fIconst char *s\fP) XZ.SH DESCRIPTION XZThe XZ.BR strdup () XZfunction XZallocates sufficient memory for a copy of the string \fIs\fP, does the copy XZand returns a pointer to the allocated memory. The pointer may be used as XZan argument to free(3). XZ.SH RETURN VALUES XZThe XZ.BR strdup () XZfunction XZreturns NULL and sets \fBerrno\fP to ENOMEM if insufficient memory is available. XZ.SH SEE ALSO XZmalloc(3), XZbcopy(3) XZ.SH HISTORY XZThe XZ.BR strdup () XZfunction XZfirst appeared in 4.4BSD XSHAR_EOF Xchmod 644 './usr/src/man/man3/strdup.3' Xfi Xif test -f './usr/src/man/man3/swapdevname.3' Xthen X echo shar: "will not over-write existing file './usr/src/man/man3/swapdevname.3'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/man/man3/swapdevname.3' XZ.\" XZ.\" @(#)swapdevname.3 1.0 (2.11BSD) 2026/6/3 XZ.\" XZ.TH SWAPDEVNAME 3 "June 3, 2026" XZ.UC 4 XZ.SH NAME XZswapdevname \- kernel swapdev to device pathname XZ.SH SYNOPSIS XZ.B #include XZ.sp XZ\fBint retval = swapdevname\fP(\fIchar *buf, int len\fP) XZ.SH DESCRIPTION XZThe XZ.B swapdevname XZfunction returns the kernel variable \fIswapdev\fP as a pathname (e.g. /dev/xp0b) XZ.SH DIAGNOSTICS XZIf sysctl(3) fails (kernel lacks VM_SWAPDEV) OR XZif the DBM database (/var/run/dev) can not be opened OR if XZ\fIswapdev\fP can not be found in the database XZ.B swapdevname XZwill use the traditional value \fB/dev/swap\fP XZ.sp XZ.B devname XZprints a warning message to stderr if the device database can not be opened. XZ.PP XZ.SH BUGS XZIf XZ.B len XZis not large enough only \fIlen - 1\fP bytes will be placed in \fIbuf\fP XZfollowed by a terminating '\\0' XZ.SH RETURN VALUE XZ.sp XZ.nf XZ retval < 0 retval bytes unused in \fIbuf\fP XZ retval = 0 the string + '\\0' exactly fit in \fIbuf\fP XZ retval > 0 \fIbuf\fP is retval bytes too small XZ.fi XZ.SH SEE ALSO XZsnprintf(3), sysctl(3), devname(3), dev_mkdb(8), sysctl(8) XZ.SH HISTORY XZThe XZ.B swapdevname XZfunction appeared in \fB2.11BSD 35th Anniversary Edition\fP. XSHAR_EOF Xchmod 644 './usr/src/man/man3/swapdevname.3' Xfi Xif test -f './usr/src/man/man3/toascii.3' Xthen X echo shar: "will not over-write existing file './usr/src/man/man3/toascii.3'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/man/man3/toascii.3' XZ.\" Copyright (c) 1993 XZ.\" The Regents of the University of California. All rights reserved. XZ.\" XZ.\" Redistribution and use in source and binary forms, with or without XZ.\" modification, are permitted provided that the following conditions XZ.\" are met: XZ.\" 1. Redistributions of source code must retain the above copyright XZ.\" notice, this list of conditions and the following disclaimer. XZ.\" 2. Redistributions in binary form must reproduce the above copyright XZ.\" notice, this list of conditions and the following disclaimer in the XZ.\" documentation and/or other materials provided with the distribution. XZ.\" 3. All advertising materials mentioning features or use of this software XZ.\" must display the following acknowledgement: XZ.\" This product includes software developed by the University of XZ.\" California, Berkeley and its contributors. XZ.\" 4. Neither the name of the University nor the names of its contributors XZ.\" may be used to endorse or promote products derived from this software XZ.\" without specific prior written permission. XZ.\" XZ.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND XZ.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE XZ.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE XZ.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE XZ.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL XZ.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS XZ.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) XZ.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT XZ.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY XZ.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF XZ.\" SUCH DAMAGE. XZ.\" XZ.\" @(#)toascii.3 8.2 (2.11BSD) 2026/1/26 XZ.\" XZ.Dd January 26, 2026 XZ.Dt TOASCII 3 XZ.Os XZ.Sh NAME XZ.Nm toascii XZ.Nd convert a byte to 7-bit ASCII XZ.Sh SYNOPSIS XZ.Fd #include XZ.Ft int XZ.Fn toascii "int c" XZ.Sh DESCRIPTION XZThe XZ.Fn toascii XZfunction strips all but the low 7 bits from a letter, XZincluding parity or other marker bits. XZ.Sh RETURN VALUES XZThe XZ.Fn toascii XZfunction always returns a valid ASCII character. XZ.Sh SEE ALSO XZ.Xr isascii 3 , XZ.Xr isalnum 3 , XZ.Xr isalpha 3 , XZ.Xr iscntrl 3 , XZ.Xr isdigit 3 , XZ.Xr isgraph 3 , XZ.Xr islower 3 , XZ.Xr isprint 3 , XZ.Xr ispunct 3 , XZ.Xr isspace 3 , XZ.Xr isupper 3 , XZ.Xr isxdigit 3 , XZ.Xr tolower 3 , XZ.Xr toupper 3 , XZ.Xr stdio 3 , XZ.Xr ascii 7 XZ.Sh STANDARDS XZThe XZ.Fn toascii XZfunction was removed in XZ.St -p1003.1-2024 XZand is currently not in any standard specification. XSHAR_EOF Xchmod 644 './usr/src/man/man3/toascii.3' Xfi Xif test -f './usr/src/man/man3/tolower.3' Xthen X echo shar: "will not over-write existing file './usr/src/man/man3/tolower.3'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/man/man3/tolower.3' XZ.\" Copyright (c) 1989, 1991, 1993 XZ.\" The Regents of the University of California. All rights reserved. XZ.\" XZ.\" This code is derived from software contributed to Berkeley by XZ.\" the American National Standards Committee X3, on Information XZ.\" Processing Systems. XZ.\" XZ.\" Redistribution and use in source and binary forms, with or without XZ.\" modification, are permitted provided that the following conditions XZ.\" are met: XZ.\" 1. Redistributions of source code must retain the above copyright XZ.\" notice, this list of conditions and the following disclaimer. XZ.\" 2. Redistributions in binary form must reproduce the above copyright XZ.\" notice, this list of conditions and the following disclaimer in the XZ.\" documentation and/or other materials provided with the distribution. XZ.\" 3. All advertising materials mentioning features or use of this software XZ.\" must display the following acknowledgement: XZ.\" This product includes software developed by the University of XZ.\" California, Berkeley and its contributors. XZ.\" 4. Neither the name of the University nor the names of its contributors XZ.\" may be used to endorse or promote products derived from this software XZ.\" without specific prior written permission. XZ.\" XZ.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND XZ.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE XZ.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE XZ.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE XZ.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL XZ.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS XZ.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) XZ.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT XZ.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY XZ.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF XZ.\" SUCH DAMAGE. XZ.\" XZ.\" @(#)tolower.3 8.2 (2.11BSD) 2026/1/26[ XZ.\" XZ.Dd January 26, 2026 XZ.Dt TOLOWER 3 XZ.Os XZ.Sh NAME XZ.Nm tolower XZ.Nd upper case to lower case letter conversion XZ.Sh SYNOPSIS XZ.Fd #include XZ.Ft int XZ.Fn tolower "int c" XZ.Sh DESCRIPTION XZThe XZ.Fn tolower XZfunction converts an upper-case letter to the corresponding lower-case XZletter. XZ.Sh RETURN VALUES XZIf the argument is an upper-case letter, the XZ.Fn tolower XZfunction returns the corresponding lower-case letter if there is XZone; otherwise the argument is returned unchanged. XZ.\" In the XZ.\" .Em ``C'' XZ.\" locale, XZ.\" .Fn tolower XZ.\" maps only the characters for which XZ.\" .Xr isupper XZ.\" is true to the corresponding characters for which XZ.\" .Xr islower XZ.\" is true. XZ.Sh SEE ALSO XZ.Xr isascii 3 , XZ.Xr isalnum 3 , XZ.Xr isalpha 3 , XZ.Xr iscntrl 3 , XZ.Xr isdigit 3 , XZ.Xr isgraph 3 , XZ.Xr islower 3 , XZ.Xr isprint 3 , XZ.Xr ispunct 3 , XZ.Xr isspace 3 , XZ.Xr isupper 3 , XZ.Xr isxdigit 3 , XZ.Xr toascii 3 , XZ.Xr toupper 3 , XZ.Xr stdio 3 XZ.Xr ascii 7 XZ.Sh STANDARDS XZThe XZ.Fn tolower XZfunction conforms to XZ.St -ansiC . XSHAR_EOF Xchmod 644 './usr/src/man/man3/tolower.3' Xfi Xif test -f './usr/src/man/man3/toupper.3' Xthen X echo shar: "will not over-write existing file './usr/src/man/man3/toupper.3'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/man/man3/toupper.3' XZ.\" Copyright (c) 1989, 1991, 1993 XZ.\" The Regents of the University of California. All rights reserved. XZ.\" XZ.\" This code is derived from software contributed to Berkeley by XZ.\" the American National Standards Committee X3, on Information XZ.\" Processing Systems. XZ.\" XZ.\" Redistribution and use in source and binary forms, with or without XZ.\" modification, are permitted provided that the following conditions XZ.\" are met: XZ.\" 1. Redistributions of source code must retain the above copyright XZ.\" notice, this list of conditions and the following disclaimer. XZ.\" 2. Redistributions in binary form must reproduce the above copyright XZ.\" notice, this list of conditions and the following disclaimer in the XZ.\" documentation and/or other materials provided with the distribution. XZ.\" 3. All advertising materials mentioning features or use of this software XZ.\" must display the following acknowledgement: XZ.\" This product includes software developed by the University of XZ.\" California, Berkeley and its contributors. XZ.\" 4. Neither the name of the University nor the names of its contributors XZ.\" may be used to endorse or promote products derived from this software XZ.\" without specific prior written permission. XZ.\" XZ.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND XZ.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE XZ.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE XZ.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE XZ.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL XZ.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS XZ.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) XZ.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT XZ.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY XZ.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF XZ.\" SUCH DAMAGE. XZ.\" XZ.\" @(#)toupper.3 8.2 (2.11BSD) 2026/1/26 XZ.\" XZ.Dd January 26, 2026 XZ.Dt TOUPPER 3 XZ.Os XZ.Sh NAME XZ.Nm toupper XZ.Nd lower case to upper case letter conversion XZ.Sh SYNOPSIS XZ.Fd #include XZ.Ft int XZ.Fn toupper "int c" XZ.Sh DESCRIPTION XZThe XZ.Fn toupper XZfunction converts a lower-case letter to the corresponding XZupper-case letter. XZ.SH RETURN VALUES XZIf the argument is a lower-case letter, the XZ.Fn toupper XZfunction returns the corresponding upper-case letter if there is XZone; otherwise the argument is returned unchanged. XZ.\" In the XZ.\" .Em ``C'' XZ.\" locale, XZ.\" .Fn toupper XZ.\" maps only the characters for which XZ.\" .Xr islower XZ.\" is true to the corresponding characters for which XZ.\" .Xr isupper XZ.\" is true. XZ.Sh SEE ALSO XZ.Xr isascii 3 , XZ.Xr isalnum 3 , XZ.Xr isalpha 3 , XZ.Xr iscntrl 3 , XZ.Xr isdigit 3 , XZ.Xr isgraph 3 , XZ.Xr islower 3 , XZ.Xr isprint 3 , XZ.Xr ispunct 3 , XZ.Xr isspace 3 , XZ.Xr isupper 3 , XZ.Xr isxdigit 3 , XZ.Xr toascii 3 , XZ.Xr toupper 3 , XZ.Xr stdio 3 XZ.Xr ascii 7 XZ.Sh STANDARDS XZThe XZ.Fn tolower XZfunction conforms to XZ.St -ansiC . XSHAR_EOF Xchmod 644 './usr/src/man/man3/toupper.3' Xfi Xif test -f './usr/src/man/man4/qt.4' Xthen X echo shar: "will not over-write existing file './usr/src/man/man4/qt.4'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/man/man4/qt.4' XZ.\" XZ.\" @(#)qt.4 1.0 (2.11BSD) 2026/9/26 XZ.\" XZ.TH QT 4 "September 26, 2026" XZ.UC 2 XZ.SH NAME XZqt \- DEC DELQA and DELQA-T Q-BUS 10 Mb/s Ethernet interfaces XZ.SH SYNOPSIS XZ.ft B XZ.nf XZ/sys/conf/SYSTEM: XZ NQT \fIqt_controllers\fP # DELQA XZ.fi XZ.ft R XZ.SH DESCRIPTION XZThe XZ.B qt XZinterface provides access to a 10 Mb/s Ethernet network through XZthe DEC DELQA Q-BUS controller. The DELQA-YM is also supported. XZ.PP XZEach of the host's network addresses XZis specified at boot time with an SIOCSIFADDR XZioctl. The XZ.B qt XZinterface employs the address resolution protocol described in XZarp(4) XZto map dynamically between Internet and Ethernet addresses on the local XZnetwork. XZ.SH NOTES XZThe DELQA-T is also known as the DELQA-PLUS. XZ.SH DIAGNOSTICS XZ.SH SEE ALSO XZinet(4), intro(4), arp(4), qe(4) XSHAR_EOF Xchmod 444 './usr/src/man/man4/qt.4' Xfi Xif test -f './usr/src/share/adb/dkdevice' Xthen X echo shar: "will not over-write existing file './usr/src/share/adb/dkdevice'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/share/adb/dkdevice' XZ./"bopen"8t"copen"8t"open"8t"flags"8t"label"n4xon XZ+$< './usr/src/share/adb/dkpartition' XZ/"size"16t"offset"16t"fsize"8t"fstype"8t"frag"n2Ddbbn XZ+/"size"16t"offset"16t"fsize"8t"fstype"8t"frag"n2Ddbbn XZ+/"size"16t"offset"16t"fsize"8t"fstype"8t"frag"n2Ddbbn XZ+/"size"16t"offset"16t"fsize"8t"fstype"8t"frag"n2Ddbbn XZ+/"size"16t"offset"16t"fsize"8t"fstype"8t"frag"n2Ddbbn XZ+/"size"16t"offset"16t"fsize"8t"fstype"8t"frag"n2Ddbbn XZ+/"size"16t"offset"16t"fsize"8t"fstype"8t"frag"n2Ddbbn XZ+/"size"16t"offset"16t"fsize"8t"fstype"8t"frag"n2Ddbbn XSHAR_EOF Xchmod 644 './usr/src/share/adb/dkpartition' Xfi Xif test -f './usr/src/sys/conf/EXAMPLE' Xthen X echo shar: "will not over-write existing file './usr/src/sys/conf/EXAMPLE'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/sys/conf/EXAMPLE' XZ# 2026/9/26 - remove RK as BOOTDEV, much too small for a root filesystem XZ# 2026/9/11 - remove TMSCP_DEBUG (not used) XZ# 2026/5/15 - remove NHY XZ# 2025/08/11 - add NDHUL XZ# 2019/10/18 - TIMEZONE set to GMT XZ# 1997/1/21 - RK added to GENERIC kernel (for use with Bob Supnik's emulator) XZ# 1995/12/14 - RX added to GENERIC kernel. XZ# 1995/07/21 - XP_PROBE removed. XZ# XZ# Machine configuration file for 2.11BSD distributed kernel. XZ# XZ# Format: XZ# name value comments XZ# An item's value may be either numerical, boolean or a string; if it's XZ# boolean, use "YES" or "NO" to set it or unset it, respectively. Use XZ# the default value and the comments field as indicators of the type of XZ# field it is. XZ XZ######################################### XZ# MACHINE DEPENDENT PARAMETERS # XZ######################################### XZ XZ# Machine type XZ# Split I/D and hardware floating point are required. XZ# UNIBUS support is always included, it only cost 1kb of text space and XZ# 94 bytes of D space for Qbus systems (obviously Unibus systems incur XZ# no penalty). XZ XZ# The define Q22 has been removed. The references to it were incorrect XZ# (i.e. using it to distinguish between an Emulex CS02 and a DH11) or XZ# inappropriate (the if_il.c driver should have been checking if a Unibus XZ# Map was present at runtime). XZ XZ#LINEHZ 50 # clock frequency European XZLINEHZ 60 # clock frequency USA XZ XZ# PDP-11 machine type; allowable values are GENERIC, 44, 70, 73. GENERIC XZ# should only be used to build a distribution kernel. The only use of this XZ# option is to select the proper in-line PS instructions (references to the XZ# PSW use 'spl', 'mfps/mtps' or 'movb' instructions depending on the cpu type). XZ#PDP11 GENERIC # distribution kernel XZ#PDP11 44 # PDP-11/44 XZ#PDP11 70 # PDP-11/70 XZPDP11 73 # PDP-11/53,73,83,84,93,94 XZ XZ######################################### XZ# GENERAL SYSTEM PARAMETERS # XZ######################################### XZ XZIDENT EXAMPLE # machine name XZMAXUSERS 20 # maxusers on machine XZ XZ# BOOTDEV is the letter combination denoting the autoboot device, XZ# or NONE if not using the autoboot feature. XZBOOTDEV NONE # don't autoboot XZ#BOOTDEV dvhp # DIVA Comp/V boot device XZ#BOOTDEV hk6 # rk06 boot device XZ#BOOTDEV hk7 # rk07 boot device XZ#BOOTDEV ra # MSCP boot device XZ#BOOTDEV rl # rl01/02 boot device XZ#BOOTDEV rm # rm02/03/05 rp06 boot device XZ#BOOTDEV br # Eaton BR1537/BR1711 boot device XZ#BOOTDEV sc11 # Emulex SC11/B boot device XZ#BOOTDEV sc21 # Emulex SC21 boot device XZ#BOOTDEV si # si 9500 boot device XZ XZ# Timezone XZTIMEZONE 0 # kernel uses GMT by default XZ XZ#Filesystem configuration XZ# XZ# PIPEDEV, ROOTDEV, SWAPDEV, DUMPDEV are all in terms of 'makedev(major,minor)' XZ# and the major number from this table. Devices in the you (almost) certainly XZ# do not have category (see below) or not suitable are not listed here: XZ# XZ# XX (Device) major XZ# =========== ===== XZ# hk 4 XZ# ra 5 XZ# rl 7 XZ# xp 10 XZ XZ# The complete list of major numbers is in the script /dev/MAKEDEV XZ# XZ# and the 'minor' number from this table (partitions other than 'a' and XZ# 'b' rarely used but allowed). XZ# XZ# minor partition name XZ# ----- -------------- XZ# 0 a XZ# 1 b XZ# 2 c XZ# 3 d XZ# 4 e XZ# 5 f XZ# 6 g XZ# 7 h XZ XZ# For example: with a SMD drive (xp) ROOTDEV xp0a is makedev(10,0), XZ# PIPEDEV is makedev(10,0) and SWAPDEV is makedev(10,1) XZ XZPIPEDEV makedev(10,0) # makedev(major,0) XX0a XZROOTDEV makedev(10,0) # makedev(major,0) XX0a XZSWAPDEV makedev(10,1) # makedev(major,1) XX0b XZ XZ# DUMPROUTINE indicates which dump routine should be used. DUMPDEV XZ# should be in terms of makedev. If DUMPDEV is NODEV no automatic XZ# dumps will be taken, and DUMPROUTINE needs to be set to "nulldev" to XZ# resolve the reference. XZ XZ# A TMSCP tape device may be used as a dump device. DUMPLO does not apply XZ# in this case and the minor number is almost always 0. XZ# XZ# XX (Device) major XZ# =========== ===== XZ# tmscp 12 XZ XZ# DUMPLO should leave room for the kernel to start swapping on SWAPDEV XZ# without overwriting the dump. XZ XZDUMPLO 512 # dump start address XZDUMPDEV makedev(10,1) # makedev(major,1) XX0b XZ#DUMPROUTINE nulldev # no dump routine. XZ#DUMPROUTINE hkdump # hk driver dump routine XZ#DUMPROUTINE radump # ra driver dump routine XZ#DUMPROUTINE rldump # rl driver dump routine XZ#DUMPROUTINE rmdump # rm driver dump routine XZ#DUMPROUTINE brdump # br driver dump routine XZ#DUMPROUTINE sidump # si driver dump routine XZDUMPROUTINE xpdump # xp driver dump routine XZ#DUMPROUTINE tmsdump # tmscp driver dump routine XZ XZ######################################### XZ# KERNEL CONFIGURATION # XZ######################################### XZ XZBADSECT NO # bad-sector forwarding XZEXTERNALITIMES YES # map out inode time values XZUCB_CLIST YES # clists moved from kernel data space XZQUOTA YES # dynamic file system quotas XZ # NOTE -- *very* expensive XZSOFUB_MAP NO # Software UNIBUS/QBUS map. Permits XZ # use of 18 bit controllers in a 22 bit XZ # Qbus system. Normally NO except for XZ # the GENERIC kernel or if you actually XZ # have an 18 bit RX02 on a Qbus system. XZ XZ# UCB_METER is fairly expensive, but various programs (iostat, vmstat, etc) XZ# use it. XZUCB_METER YES # vmstat performance metering XZ XZ# NBUF is the size of the buffer cache, and is directly related to the UNIBUS XZ# mapping registers. There are 32 total mapping registers, of which 30 are XZ# available. The 0'th is used for CLISTS, and the 31st is used for the I/O XZ# page on some PDP's. It's suggested that you allow 7 mapping registers XZ# per UNIBUS character device so that you can move 56K of data on each device XZ# simultaneously. The rest should be assigned to the block buffer pool. So, XZ# if you have a DR-11 and a TM-11, you would leave 14 unassigned for them and XZ# allocate 16 to the buffer pool. Since each mapping register addresses 8 XZ# buffers for a 1K file system, NBUF would be 128. A possible exception would XZ# be to reduce the buffers to save on data space, as they were 24 bytes each XZ# Should be 'small' for GENERIC, so room for kernel + large program to run. XZNBUF 128 # buffer cache, *must* be <= 240 XZ XZ# DIAGNOSTIC does various run-time checks, some of which are pretty XZ# expensive and at a high priority. Suggested use is when the kernel XZ# is crashing and you don't know why, otherwise run with it off. XZDIAGNOSTIC NO # misc. diagnostic loops and checks XZ XZ######################################### XZ# PERIPHERALS: DISK DRIVES # XZ######################################### XZ XZNHK 0 # RK611, RK06/07 XZ XZNRAC 0 # NRAD controllers XZNRAD 0 # RX50, RC25, RD51/52/53, RA60/80/81 XZ XZNRK 0 # RK05 XZ XZNRL 2 # RL01/02 XZ XZNRX 0 # RX02 XZ XZNXPC 1 # NXPD controllers (RH70/RH11 style) XZNXPD 4 # RM02/03/05, RP04/05/06, CDC 9766, XZ # Ampex 9300, Diva, Fuji 160, SI Eagle. XZ XZNRAM 0 # RAM disk size (512-byte blocks) XZ XZ######################################### XZ# PERIPHERALS: TAPE DRIVES # XZ######################################### XZ XZNHT 0 # TE16, TU45, TU77 XZ XZ# Setting AVIVTM configures the TM driver for the AVIV 800/1600/6250 XZ# controller (the standard DEC TM only supports 800BPI). For more details, XZ# see /sys/pdpuba/tm.c. XZNTM 0 # TM11 XZAVIVTM NO # AVIV 800/1600/6250 controller XZ XZNTS 0 # TS11 XZ XZNTMSCP 1 # TMSCP controllers XZNTMS 2 # TMSCP drives XZ XZ######################################### XZ# PERIPHERALS: TERMINALS # XZ######################################### XZ XZ# NKL includes both KL11's and DL11's. XZ# It should always be at least 1, for the console. XZNKL 2 # KL11, DL11 XZNDH 0 # DH11; NDH is in units of boards (16 each) XZCS02 NO # DH units above are really Emulex CS02 XZ # boards on a 22bit Qbus. XZNDM 0 # DM11; NDM is in units of boards (16 each) XZNDHU 0 # DHU11 XZNDHUL 16 # No. of lines per DHU11 XZNDHV 0 # DHV11 XZNDZ 0 # DZ11; NDZ is in units of boards (8 each) XZ XZ######################################### XZ# PERIPHERALS: OTHER # XZ######################################### XZNLP 0 # Line Printer XZLP_MAXCOL 132 # Maximum number of columns on line printers XZ XZ######################################### XZ# PSEUDO DEVICES, PROTOCOLS, NETWORKING # XZ######################################### XZ# Networking only works with split I/D and SUPERVISOR space, i.e. with the XZ# 11/44/53/70/73/83/84/93/94. NETHER should be non-zero for networking XZ# systems using any ethernet. CHECKSTACK makes sure the networking stack XZ# pointer and the kernel stack pointer don't collide; it's *very* expensive XZ# at 4 extra instructions for EVERY function call AND return, always left XZ# NO unless doing serious debugging. XZINET YES # TCP/IP XZCHECKSTACK NO # Kernel & Supervisor stack pointer checking XZNETHER 1 # ether pseudo-device XZ XZ# Note, PTY's and the select(2) system call do not require the kernel to XZ# be configured for networking (INET). Note that you can allocate PTY's XZ# in any number (multiples of 8, of 16, even, odd, prime, whatever). Nothing XZ# in the kernel cares. PTY's cost 78 bytes apiece in kernel data space. You XZ# should probably have at least 8-10 since several applications use them: XZ# script, jove, window, rlogin, ... XZNPTY 12 # pseudo-terminals - GENERIC sys needs NONE XZ XZNDE 0 # DEUNA/DELUA XZNQE 1 # DEQNA XZNQT 0 # DEQTA (DELQA-YM, DELQA-PLUS) XZNSL 0 # Serial Line IP XZ XZ# The following were known to work in 2.11BSD at one time but are for XZ# hardware you (almost) certainly do not have. XZNSI 0 # SI 9500 driver for CDC 9766 disks XZNBR 0 # EATON BR1537/BR1711, BR1538A, B, C, D XZNDN 0 # DN11 dialer XZNDR 0 # DR11-W XZNEC 0 # 3Com Ethernet XZNIL 0 # Interlan Ethernet XZNVV 0 # V2LNI (Pronet) XZNACC 0 # ACC LH/DH ARPAnet IMP interface XZPLI NO # LH/DH is connected to a PLI XZNIMP 0 # ARPAnet IMP 1822 interface XZ XZ# The following are untested in 2.11BSD; some are untested since before 2.9BSD XZ# Some won't even compile. Most will require modification. Good luck. XZENABLE34 NO # if have the ENABLE34 board XZ XZNCSS 0 # DEC/CSS IMP11-A ARPAnet IMP interface XZNDMC 0 # DMC11 XZNEN 0 # Xerox prototype (3 Mb) Ethernet XZNS 0 # Xerox NS (XNS) XZNSRI 0 # SRI DR11c ARPAnet IMP XZNTB 0 # RS232 interface for Genisco/Hitachi tablets XZ XZ# Defining FPSIM to YES compiles a floating point simulator into the kernel XZ# which will catch floating point instruction traps from user space. XZFPSIM NO # floating point simulator XZ XZ# To enable profiling, the :splfix script must be changed to use spl6 instead XZ# of spl7 (see conf/:splfix.profile), also, you have to have a machine with a XZ# supervisor PAR/PDR pair, i.e. an 11/44/53/70/73/83/84/93/94, as well XZ# as both a KW11-L and a KW11-P. XZ# XZ# Note that profiling is not currently working. We don't have any plans on XZ# fixing it, so this is essentially a non-supported feature. XZPROFILE NO # system profiling with KW11P clock XZ XZ# The Ingres driver works but is not needed unless concurrent database accesses XZ# will be done. XZINGRES NO # include the Ingres lock driver XSHAR_EOF Xchmod 644 './usr/src/sys/conf/EXAMPLE' Xfi Xif test -f './usr/src/sys/pdp/ansi.h' Xthen X echo shar: "will not over-write existing file './usr/src/sys/pdp/ansi.h'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/sys/pdp/ansi.h' XZ/*- XZ * Copyright (c) 1990, 1993 XZ * The Regents of the University of California. All rights reserved. XZ * XZ * Redistribution and use in source and binary forms, with or without XZ * modification, are permitted provided that the following conditions XZ * are met: XZ * 1. Redistributions of source code must retain the above copyright XZ * notice, this list of conditions and the following disclaimer. XZ * 2. Redistributions in binary form must reproduce the above copyright XZ * notice, this list of conditions and the following disclaimer in the XZ * documentation and/or other materials provided with the distribution. XZ * 3. All advertising materials mentioning features or use of this software XZ * must display the following acknowledgement: XZ * This product includes software developed by the University of XZ * California, Berkeley and its contributors. XZ * 4. Neither the name of the University nor the names of its contributors XZ * may be used to endorse or promote products derived from this software XZ * without specific prior written permission. XZ * XZ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND XZ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE XZ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE XZ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE XZ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL XZ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS XZ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) XZ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT XZ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY XZ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF XZ * SUCH DAMAGE. XZ * XZ * @(#)ansi.h 8.2.1 (2.11BSD) 2026/7/4 XZ */ XZ XZ#ifndef _ANSI_H_ XZ#define _ANSI_H_ XZ XZ/* XZ * Types which are fundamental to the implementation and may appear in XZ * more than one standard header are defined here. Standard headers XZ * then use: XZ * #ifdef _BSD_SIZE_T_ XZ * typedef _BSD_SIZE_T_ size_t; XZ * #undef _BSD_SIZE_T_ XZ * #endif XZ */ XZ#define _BSD_CLOCK_T_ unsigned long /* clock() */ XZ#define _BSD_PTRDIFF_T_ int /* ptr1 - ptr2 */ XZ#define _BSD_SIZE_T_ unsigned int /* sizeof() */ XZ#define _BSD_SSIZE_T_ int /* byte count or error */ XZ#define _BSD_TIME_T_ long /* time() */ XZ#define _BSD_VA_LIST_ char * /* va_list */ XZ XZ/* XZ * runes and wchars not supported so _BSD_WCHAR_T_ and _BSD_RUNE_T_ removed XZ*/ XZ#endif XSHAR_EOF Xchmod 555 './usr/src/sys/pdp/ansi.h' Xfi Xif test -f './usr/src/sys/pdp/float.h' Xthen X echo shar: "will not over-write existing file './usr/src/sys/pdp/float.h'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/sys/pdp/float.h' XZ/* $NetBSD: float.h,v 1.10 2005/12/11 12:19:34 christos Exp $ */ XZ XZ/* XZ * Copyright (c) 1989 Regents of the University of California. XZ * All rights reserved. XZ * XZ * Redistribution and use in source and binary forms, with or without XZ * modification, are permitted provided that the following conditions XZ * are met: XZ * 1. Redistributions of source code must retain the above copyright XZ * notice, this list of conditions and the following disclaimer. XZ * 2. Redistributions in binary form must reproduce the above copyright XZ * notice, this list of conditions and the following disclaimer in the XZ * documentation and/or other materials provided with the distribution. XZ * 3. Neither the name of the University nor the names of its contributors XZ * may be used to endorse or promote products derived from this software XZ * without specific prior written permission. XZ * XZ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND XZ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE XZ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE XZ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE XZ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL XZ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS XZ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) XZ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT XZ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY XZ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF XZ * SUCH DAMAGE. XZ * XZ * @(#)float.h 7.3 (2.11BSD) 2026/1/26 XZ */ XZ XZ#ifndef _PDP11_FLOAT_H_ XZ#define _PDP11_FLOAT_H_ XZ XZ#define FLT_RADIX 2 /* b */ XZ#define FLT_ROUNDS 1 /* FP addition rounds to nearest */ XZ#define FLT_EVAL_METHOD 1 /* should be 2??? */ XZ#define DECIMAL_DIG 18 /* ceil((1+p*log10(b))-(b==10) */ XZ XZ#define FLT_MANT_DIG 24 /* p */ XZ#define FLT_EPSILON 1.19209290E-7F /* b**(1-p) */ XZ#define FLT_DIG 6 /* floor((p-1)*log10(b))+(b == 10) */ XZ#define FLT_MIN_EXP (-127) /* emin */ XZ#define FLT_MIN 2.93873588E-39F /* b**(emin-1) */ XZ#define FLT_MIN_10_EXP (-38) /* ceil(log10(b**(emin-1))) */ XZ#define FLT_MAX_EXP 127 /* emax */ XZ#define FLT_MAX 1.70141173E+38F /* (1-b**(-p))*b**emax */ XZ#define FLT_MAX_10_EXP 38 /* floor(log10((1-b**(-p))*b**emax)) */ XZ XZ#define DBL_MANT_DIG 56 XZ#define DBL_EPSILON 2.77555756156289135E-17 XZ#define DBL_DIG 16 XZ#define DBL_MIN_EXP (-127) XZ#define DBL_MIN 2.938735877055718770E-39 XZ#define DBL_MIN_10_EXP (-38) XZ#define DBL_MAX_EXP 127 XZ#define DBL_MAX 1.701411834604692294E+38 XZ#define DBL_MAX_10_EXP 38 XZ XZ#define LDBL_MANT_DIG DBL_MANT_DIG XZ#define LDBL_EPSILON DBL_EPSILON XZ#define LDBL_DIG DBL_DIG XZ#define LDBL_MIN_EXP DBL_MIN_EXP XZ#define LDBL_MIN DBL_MIN XZ#define LDBL_MIN_10_EXP DBL_MIN_10_EXP XZ#define LDBL_MAX_EXP DBL_MAX_EXP XZ#define LDBL_MAX DBL_MAX XZ#define LDBL_MAX_10_EXP DBL_MAX_10_EXP XZ XZ#endif /* _PDP11_FLOAT_H_ */ XSHAR_EOF Xchmod 644 './usr/src/sys/pdp/float.h' Xfi Xif test ! -d './usr/src/ucb/mkstr' Xthen X mkdir './usr/src/ucb/mkstr' Xfi Xcd './usr/src/ucb/mkstr' Xif test -f 'Makefile' Xthen X echo shar: "will not over-write existing file 'Makefile'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'Makefile' XZ# XZ# @(#)Makefile 1.0 (2.11BSD) 2026/8/26 XZ# XZ XZCFLAGS= -O XZLDFLAGS= -i XZPROG= mkstr XZSRCS= mkstr.c XZOBJS= mkstr.o XZMAN= mkstr.0 XZMANSRC= mkstr.1 XZ XZall: ${PROG} ${MAN} XZ XZ${PROG}: ${OBJS} XZ ${CC} ${LDFLAGS} -o $@ ${OBJS} XZ XZ${MAN}: ${MANSRC} XZ /usr/man/manroff ${MANSRC} > ${MAN} XZ XZclean: XZ rm -f ${OBJS} ${MAN} ${PROG} XZ XZinstall: ${PROG} ${MAN} XZ install -c -s -o root -g staff -m 755 ${PROG} /usr/ucb XZ install -c -o root -g staff -m 444 ${MAN} /usr/man/cat1 XSHAR_EOF Xchmod 644 'Makefile' Xfi Xif test ! -d 'test' Xthen X mkdir 'test' Xfi Xcd 'test' Xif test -f 'tst1.c' Xthen X echo shar: "will not over-write existing file 'tst1.c'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'tst1.c' XZmain() XZ { XZ error("abc"); XZ error("def"); XZ// error("ghi"); XZ } XSHAR_EOF Xchmod 644 'tst1.c' Xfi Xif test -f 'tst2.c' Xthen X echo shar: "will not over-write existing file 'tst2.c'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'tst2.c' XZmain() XZ { XZ char *cp; XZ XZ cp = "error("; XZ } XSHAR_EOF Xchmod 644 'tst2.c' Xfi Xif test -f 'tst3.c' Xthen X echo shar: "will not over-write existing file 'tst3.c'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'tst3.c' XZmain() { fooerror("bar baz");} XSHAR_EOF Xchmod 644 'tst3.c' Xfi Xif test -f 'tst4.c' Xthen X echo shar: "will not over-write existing file 'tst4.c'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'tst4.c' XZmain() XZ { XZ error("abc"); error("def"); error("ghi"); XZ } XSHAR_EOF Xchmod 644 'tst4.c' Xfi Xif test -f 'tst5.c' Xthen X echo shar: "will not over-write existing file 'tst5.c'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'tst5.c' XZ XZmain() XZ { XZ error("abc XZDEF"); XZ error("XYZ\ XZTUV"); XZ } XSHAR_EOF Xchmod 644 'tst5.c' Xfi Xif test -f 'tst6.c' Xthen X echo shar: "will not over-write existing file 'tst6.c'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'tst6.c' XZmain() XZ { XZ foobar("abc"); error("def"); bazfoo("ghi"); XZ } XSHAR_EOF Xchmod 644 'tst6.c' Xfi Xif test -f 'tst7.c' Xthen X echo shar: "will not over-write existing file 'tst7.c'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'tst7.c' XZ#include XZ XZfoobar(char *str) {puts(str);} XZbazfoo(char *str) {puts(str);} XZerror(char *str) {puts(str);} XZ XZmain() XZ { XZ foobar("abc"); error("def"); bazfoo("ghi"); XZ } XSHAR_EOF Xchmod 644 'tst7.c' Xfi Xif test -f 'tst8.c' Xthen X echo shar: "will not over-write existing file 'tst8.c'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'tst8.c' XZerror("From %s \001d remote from %s\n", bang, buf); XSHAR_EOF Xchmod 644 'tst8.c' Xfi Xchmod 755 . Xcd .. Xif test -f 'mkstr.1' Xthen X echo shar: "will not over-write existing file 'mkstr.1'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'mkstr.1' XZ.\" @(#)mkstr.1 7.0 (2.11BSD) 2026/6/30 XZ.\" XZ.TH MKSTR 1 "August 30, 2026" XZ.UC XZ.SH NAME XZmkstr \- create message file from C source XZ.SH SYNOPSIS XZ.B mkstr XZ[\fB-d\fP] XZ[\fB-l\fP] XZ[\fB-e\fP func] ... XZ[\fB-\fP] XZstrfile prefix file ... XZ.SH DESCRIPTION XZ.B mkstr XZis used to create files of messages. Usually these are error messages but may XZbe any string literal used as the first argument to a function. XZIts use can save much D space in programs with large numbers of XZerror, help, diagnostic strings. XZ.PP XZ.B mkstr XZprocesses each \fIfile\fP, adding found strings to \fIstrfile\fP, XZand placing a modified version of the input file in an output file with XZa name formed by catenating \fIprefix\fP and \fIfile\fP. XZ.PP XZOptions: XZ.TP XZ.B -d XZEnable debug output. This displays the function names, append mode, XZoffset mode and files that would be processed. No files are modified XZor created. XZ.TP XZ.B -l XZEnable long offset mode. The \fIlseek\fP offset that replaces the string XZstring literal is a \fBint\fP by default. Use of \fB-l\fP generates XZa \fBlong\fP offset. Thus "error(91);" becomes "error(91L);". This allows XZa very large string file. \fBbattlestar\fP(6) used this technique to create XZits string file. XZ.TP XZ.B -e XZname XZadds a function name to processed for a string argument. The trailing '(' XZshould not be given. Use of \fB-e\fP XZoverrides the default \fBerror(\fP. If \fBerror(\fP is to be matched add XZan explicit \fB-e error\fP. XZ.TP XZ.B - XZcauses the strings to be appended to \fIstrfile\fP XZThis is used when recompiling parts of a program with multiple files. XZ.PP XZ.B mkstr XZlooks for the start of a string ('\fB"\fP') and if found does XZa search for the names given by \fB-e\fP or the default \fBerror\fP. XZIf a match is found the C string (characters between opening and XZclosing '\fB"\fP' including the null) is placed XZin \fIstrfile\fP followed by a new-line character. XZThe new-line character makes it possible to sensibly XZ.B cat XZ\fIstrfile\fP XZ.sp XZThe modified copy of the input file contains in place of the string a XZ.I lseek XZoffset (either int or long depending on the \fB-l\fP flag) into the XZfile which is used to retrieve the string. XZ.SH EXAMPLES XZThe examples are intentionally simplistic. There are numerous programs XZin the system sources that use \fBmkstr\fP that can be consulted. XZ.sp XZA sample program tst1.c: XZ.IP XZ.nf XZ#include XZfoobar(char *str) {puts(str);} XZbazfoo(char *str) {puts(str);} XZerror(char *str) {puts(str);} XZ XZmain() XZ { foobar("abc"); error("def"); bazfoo("ghi"); } XZ.fi XZ.PP XZTypical usage: XZ.IP XZ mkstr stringfile x tst1.c XZ.PP XZThis command would cause the characters \fBdef\\0\\n\fP XZto be placed in the file \fIstringfile\fP, XZand the line in the output file xtst1.c changed to: XZ.IP XZfoobar("abc"); error(0); bazfoo("ghi"); XZ.PP XZThe function \fBerror(\fP is changed to use the string file: XZ.IP XZ.nf XZ.sp XZerror(a1) XZ int a1; XZ { XZ int efil; XZ char buf[256]; XZ XZ efil = open("stringfile", 0); XZ lseek(efil, (long) a1, 0); XZ read(efil, buf, 256); XZ puts(buf); XZ close(efil); XZ } XZ.fi XZ.sp XZIf the \fB-l\fP option was used when creating \fIstringfile\fP then the XZfunction would change to: XZ.IP XZ.nf XZerror(a1) XZ off_t a1; XZ { XZ int efil; XZ char buf[256]; XZ XZ efil = open("stringfile", 0); XZ lseek(efil, a1, 0); XZ read(efil, buf, 256) XZ puts(buf); XZ close(efil); XZ } XZ.fi XZ.PP XZTo extract strings from functions in addition to \fBerror("\fP: XZ.IP XZ.nf XZmain() XZ { XZ foobar("abc"); error("def"); bazfoo("ghi"); XZ } XZ.fi XZ.PP XZUse \fB-e\fP thus: XZ.IP XZ.B mkstr -e XZfoobar XZ.B -e XZerror XZ.B -e XZbazfoo stringfile x tst1.c XZ.PP XZOf course the functions \fBfoobar(\fP and \fBbazfoo(\fP need to be XZupdated to use the string file. XZ.SH NOTES XZThe function name, its opening paren and the double quote must be adjacent: XZ\fBerror("\fP XZNOT XZ\fBerror ("\fP XZOR XZ\fBerror( "\fP XZ.PP XZPrevious versions of \fBmkstr\fP only looked for the XZfunction \fBerror("...")\fP. The current version of \fBmkstr\fP XZallows 16 functions to be specified with \fB-e\fP. The functions must XZbe, of course, modified to open/lseek/read the string file as shown in the XZexample. XZ.SH BUGS XZThe parse is simplistic. The default usage (no \fP-e\fP) means \fBerror(\fP XZwill match: XZ.sp XZ\fBstrsrerror("foo");\fP XZ.sp XZThis may not be expected but there are scripts in the system XZthat depend on this behaviour. Also XZ.sp XZ\fBcp = "error(";\fP XZ.sp XZwill match and produce corrupt output that will fail to compile. XZ.PP XZThe \fB-e\fP arguments are sorted by string length from longest to shortest. XZ.PP XZIt is now possible to match XZ\fBstrsrerror("foo");\fP XZwithout matching \fBerror("foo");\fP by using \fB-e\fP: XZ.sp XZ\fBmkstr \fB-e\fP strsrerror ... XZ.sp XZ.PP XZContinuation lines without a trailing backslash are rejected by the C XZcompiler but were accepted by the previous version of \fBmkstr\fP. A XZnew-line was inserted into the string file at the break in the string. XZThis version of \fBmkstr\fP preserves that XZbehaviour for backward compatibilty. Proper continuation lines will not have XZthe new-line inserted. XZ.IP XZerror("abc XZ.br XZdef"); XZ.sp XZproduces: abc\\ndef);\\0\\n XZ.sp XZerror("abc\\ XZ.br XZdef); XZ.sp XZproduces: abcdef);\\0\\n XZ.SH SEE ALSO XZopen(2), lseek(2), fgetln(3), read(2) XSHAR_EOF Xchmod 644 'mkstr.1' Xfi Xif test -f 'mkstr.c' Xthen X echo shar: "will not over-write existing file 'mkstr.c'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'mkstr.c' XZ/* XZ * mkstr.c 6.0 (2.11BSD) 2026/7/13 XZ * XZ * Inspired by the mkstr program. Little remains of the original except the XZ * name and function. XZ * XZ * Changes from original mkstr.c are: XZ * XZ * 1) start search from the less frequent '"' instead of the much more common XZ * 'e'. This speeds up processing by attempting a string match only when XZ * the start of a string has been found. XZ * XZ * 2) remove the restriction of 'error(' being the wired in string. Use '-e' XZ * to allow the user to specify what string to search for. The '(' is not XZ * specified as it is added by this program. IF -e is NOT given the string XZ * used is 'error(' as before. XZ * XZ * 3) allow more than one string to be searched for. Multiple '-e str' options XZ * may be given. If -e is used '-e error' must be specified explicitly. Up XZ * to 16 -e options may be used. XZ * XZ * 4) large string file support is requested with the -l option. the offset XZ * substituted for the string has 'L' appended, thus "error(9);" XZ * becomes "error(9L);". See longoff comment below. XZ * XZ * 5) use fgetln() to process input a line at a time. XZ*/ XZ XZ#include XZ#include XZ#include XZ#include XZ#include XZ XZextern char *__progname; XZ XZ void process(), inithash(); XZ int fgetNUL(), match(), octdigit(); XZ char *copystr(char *); XZ off_t hashit(); XZ XZ FILE *mesgread, *mesgwrite; XZ XZ#define MAX_DASHE 16 XZ XZstruct estring XZ { XZ char *str; XZ int len; XZ }; XZ XZ struct estring dashe[MAX_DASHE + 1]; /* +1 for NULL */ XZ int nume = 0; /* number of strings in dashe[] */ XZ XZ char name[100], *strfile, *prefix; XZ int addon = 0; /* '-' add to existing stringfile */ XZ int debug = 0; /* debug info but no file processing */ XZ XZ /* XZ * generate long offset/index number. this allows for a large amount XZ * of general strings as well as error messages to be placed in XZ * the file. See battlestar(6)'s use of strstr() in the XZ * creation of battle_strings XZ */ XZ int longoff = 0; XZ XZvoid XZusage() XZ { XZ errx(1, "usage: %s [-d] [-l] [-e pattern] ... [-] stringfile prefix file ...", __progname); XZ } XZ XZint XZcompar(a, b) XZ struct estring *a, *b; XZ { XZ XZ return(b->len - a->len); XZ } XZ XZint XZmain(argc, argv) XZ int argc; XZ char **argv; XZ { XZ int c; XZ char *cp; XZ XZ/* XZ * If no -e given the program uses the default string "error(" XZ * XZ * use of -e overrides the default. If "error(" is desired a '-e error' XZ * option must be present. XZ*/ XZ while ((c = getopt(argc, argv, "dle:")) != EOF) XZ { XZ switch (c) XZ { XZ case 'd': XZ debug = 1; XZ break; XZ case 'l': XZ longoff = 1; XZ break; XZ case 'e': XZ if (nume < MAX_DASHE) XZ { XZ cp = (char *)malloc(strlen(optarg) + 2); XZ sprintf(cp, "%s(", optarg); XZ dashe[nume].str = cp; XZ dashe[nume].len = strlen(cp); XZ nume++; XZ } XZ break; XZ case '?': XZ default: XZ errx(1, "%s: invalid option '%c'", __progname, c); XZ } XZ } XZ if (nume == 0) XZ { XZ dashe[0].str = "error("; /* default if no -e given */ XZ dashe[0].len = 6; XZ nume = 1; XZ }; XZ XZ argc -= optind; XZ argv += optind; XZ XZ/* XZ * argc = 1 or 2 obviously not enough arguments XZ*/ XZ if (argc < 3) XZ usage(); XZ/* XZ * '-' causes getopt to return EOF leaving optind/optarg pointing at '-' XZ * set addon and skip to the next argument XZ*/ XZ if (argv[0][0] == '-') XZ { XZ addon++; XZ argc--; XZ argv++; XZ } XZ/* XZ * Need at least 3 more arguments for 'stringfile', 'prefix' and at least one XZ * input file. XZ*/ XZ if (argc < 3) XZ usage(); XZ XZ/* XZ * strings file XZ*/ XZ strfile = *argv++; XZ argc--; XZ/* XZ * prefix XZ*/ XZ prefix = *argv++; XZ argc--; XZ XZ/* XZ * sort by length of strings. look for matches on longer strings first XZ*/ XZ qsort(dashe, nume, sizeof(struct estring), compar); XZ XZ if (debug) XZ { XZ for (c = 0; dashe[c].str; c++) XZ printf("-e %s\n", dashe[c].str); XZ XZ printf("addon: %d longoff: %d stringfile: %s prefix: %s\n", addon, longoff, strfile, prefix); XZ } XZ else XZ { XZ mesgwrite = fopen(strfile, addon ? "a" : "w"); XZ if (mesgwrite == NULL) XZ err(1, "%s", strfile); XZ XZ mesgread = fopen(strfile, "r"); XZ if (mesgread == NULL) XZ err(1, "%s", strfile); XZ XZ inithash(); XZ } XZ XZ/* XZ * input files XZ*/ XZ for (; argc-- ; argv++) XZ { XZ if (debug) XZ printf("%s\n", *argv); XZ else XZ { XZ snprintf(name, sizeof(name), "%s%s", prefix, *argv); XZ/* XZ * Attempt to open the input file before creating the prefix'd file. If XZ * the input doesn't exist the prefix'd file will not be created. XZ*/ XZ if (freopen(*argv, "r", stdin) == NULL) XZ err(1, "%s", *argv); XZ if (freopen(name, "w", stdout) == NULL) XZ err(1, "%s", name); XZ process(); XZ } XZ } XZ exit(0); XZ } XZ XZ/* XZ * These are global and shared between ln2c(), process() and copystr() XZ*/ XZ char *gfp, *glp = NULL; XZ XZ/* XZ * read a newline terminated string with fgetln() and convert it to a C string XZ * (nul terminated). If a newline is present (the normal case) overwrite XZ * the newline with '\0'. If the last line of the file does not end with a XZ * newline then calloc a buffer one byte larger than the returned length and XZ * copy the data to the new buffer (this should happen only at the last XZ * line of the file but lets be paranoid). XZ*/ XZ XZchar *ln2c() XZ { XZ size_t len; XZ XZ gfp = fgetln(stdin, &len); XZ if (!gfp) return(NULL); XZ XZ if (glp) XZ { XZ free(glp); XZ glp = NULL; XZ } XZ if (gfp[len - 1] != '\n') XZ { XZ glp = calloc(1, len + 1); XZ bcopy(gfp, glp, len); XZ gfp = glp; XZ } XZ else XZ gfp[len - 1] = '\0'; XZ return(gfp); XZ } XZ XZvoid process() XZ { XZ register char *cp; XZ int inset, n; XZ register struct estring *ep; XZ XZ while (ln2c() != NULL) XZ { XZ for (cp = index(gfp, '"'); cp ; cp = index(cp, '"')) XZ { XZ inset = cp - gfp; /* distance from last match or beginning of line */ XZ for (n = 0, ep = dashe; n < nume; n++, ep++) XZ { XZ if (inset >= ep->len) XZ { XZ if (bcmp(ep->str, cp - ep->len, ep->len)) XZ continue; XZ /* XZ * have a match. output line up to XZ * and including '(' character XZ */ XZ fwrite(gfp, inset, 1, stdout); XZ cp = copystr(cp+1); /* skip '"' */ XZ gfp = cp; /* update start point of scan */ XZ break; /* out of for(nume)), to for(cp) */ XZ } XZ } /* for (dashe) */ XZ/* XZ * if we came out of the for(dashe) loop with no match skip the current '"' XZ * so index() will find the next '"' XZ */ XZ if (n >= nume) XZ cp++; XZ } /* for (cp) */ XZ/* XZ * At this point all matched strings ('"') have been processed or there were XZ * no strings. Either gfp points to the beginning of the line (no '"') OR XZ * there are no '"' from the current (gfp) position till the end of line. The XZ * line was converted to a C string so fputs can be used. The nul'd \n is XZ * then output. XZ*/ XZ fputs(gfp, stdout); XZ putchar('\n'); XZ } /* while(ln2c()) */ XZ } XZ XZchar *copystr(register char *cp) XZ { XZ register int c; XZ int ch; XZ char buf[512], *ep; XZ register char *bp = buf; XZ XZ ep = bp + sizeof(buf) - 1; XZ while (1) XZ { XZ c = *cp++; XZ if (c == '"') XZ break; XZ/* XZ * the old mkstr treated a newline before the closing " as a continuation line XZ * and would output the first part of the string followed by a newline and XZ * then the remainder of the string. The C compiler would complain about XZ * an unterminated literal so it's a broken file. The old behaviour is XZ * emulated for compatibility. XZ * XZ * The behavior changes if a \ is given before the line break because that XZ * is a valid C continuation line. XZ*/ XZ if (c == 0) XZ { XZ if ((cp = ln2c()) == NULL) XZ { XZ cp = ""; XZ goto oops; XZ } XZ *bp++ = '\n'; /* emulate old behaviour */ XZ continue; XZ } XZ if (c == '\\') XZ { XZ c = *cp++; XZ switch (c) XZ { XZ case 'a': XZ c = '\a'; XZ break; XZ case 'b': XZ c = '\b'; XZ break; XZ case 't': XZ c = '\t'; XZ break; XZ case 'r': XZ c = '\r'; XZ break; XZ case 'n': XZ c = '\n'; XZ break; XZ case '\0': /* was '\n' */ XZ/* XZ * When the input line was converted to a C string the \n became \0. Thus XZ * \ followed by \0 is the same as \ followed by \n. Fetch the next line XZ * using ln2c(). If no next line the string is not terminated - return a XZ * pointer to an empty string. XZ*/ XZ if ((cp = ln2c()) == NULL) XZ { XZ cp = ""; XZ goto oops; XZ } XZ continue; XZ case 'f': XZ c = '\f'; XZ break; XZ case 'v': XZ c = '\v'; XZ break; XZ case '\\': XZ break; XZ default: XZ if (!octdigit(c)) XZ break; XZ c -= '0'; XZ ch = *cp; XZ if (!octdigit(ch)) XZ break; XZ c <<= 3, c += ch - '0'; XZ cp++; XZ ch = *cp; XZ if (!octdigit(ch)) XZ break; XZ cp++; XZ c <<= 3, c+= ch - '0'; XZ break; XZ } XZ } XZ if (bp < ep) XZ *bp++ = c; XZ } XZoops: XZ *bp = 0; XZ if (longoff == 0) XZ printf("%u", (unsigned int) hashit(buf, 1, (off_t)0)); XZ else XZ printf("%ldL", hashit(buf, 1, (off_t)0)); XZ return(cp); XZ } XZ XZint XZoctdigit(c) XZ register char c; XZ { XZ return(c >= '0' && c <= '7'); XZ } XZ XZvoid inithash() XZ { XZ char buf[512]; XZ off_t mesgpt = 0; XZ XZ rewind(mesgread); XZ while (fgetNUL(buf, sizeof buf, mesgread) != 0) XZ { XZ (void)hashit(buf, 0, mesgpt); XZ mesgpt += strlen(buf) + 2; XZ } XZ } XZ XZ#define NBUCKETS 511 XZ XZstruct hash { XZ long hval; XZ off_t hpt; XZ struct hash *hnext; XZ} *bucket[NBUCKETS]; XZ XZoff_t hashit(str, really, fakept) XZ char *str; XZ int really; XZ off_t fakept; XZ { XZ int i; XZ register struct hash *hp; XZ char buf[512]; XZ long hashval = 0; XZ register char *cp; XZ XZ if (really) XZ fflush(mesgwrite); XZ for (cp = str; *cp;) XZ hashval = (hashval << 1) + *cp++; XZ i = hashval % NBUCKETS; XZ if (i < 0) XZ i += NBUCKETS; XZ if (really != 0) XZ { XZ for (hp = bucket[i]; hp != 0; hp = hp->hnext) XZ if (hp->hval == hashval) XZ { XZ fseek(mesgread, hp->hpt, 0); XZ (void)fgetNUL(buf, sizeof buf, mesgread); XZ/* XZ fprintf(stderr, "Got (from %ld) %s\n", hp->hpt, buf); XZ*/ XZ if (strcmp(buf, str) == 0) XZ break; XZ } XZ } XZ if (!really || hp == 0) XZ { XZ hp = (struct hash *) calloc(1, sizeof *hp); XZ hp->hnext = bucket[i]; XZ hp->hval = hashval; XZ hp->hpt = really ? ftell(mesgwrite) : fakept; XZ if (really) XZ { XZ fwrite(str, sizeof (char), strlen(str) + 1, mesgwrite); XZ fwrite("\n", sizeof (char), 1, mesgwrite); XZ } XZ bucket[i] = hp; XZ } XZ/* XZ fprintf(stderr, "%s hashed to %ld at %ld\n", str, hp->hval, hp->hpt); XZ*/ XZ return(hp->hpt); XZ } XZ XZint fgetNUL(obuf, rmdr, file) XZ char *obuf; XZ register int rmdr; XZ FILE *file; XZ{ XZ register int c; XZ register char *buf = obuf; XZ XZ while (--rmdr > 0 && (c = getc(file)) != 0 && c != EOF) XZ *buf++ = c; XZ *buf++ = 0; XZ getc(file); XZ return ((feof(file) || ferror(file)) ? 0 : 1); XZ} XSHAR_EOF Xchmod 644 'mkstr.c' Xfi Xchmod 755 . Xcd .. Xcd $STARTDIR Xif test -f './usr/src/usr.bin/shar/traverse.1' Xthen X echo shar: "will not over-write existing file './usr/src/usr.bin/shar/traverse.1'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/usr.bin/shar/traverse.1' XZ.TH TRAVERSE 1 "January 30, 2026" XZ.SH NAME XZtraverse \- print indented list of files in a specified directory XZ.SH SYNOPSIS XZtraverse a directory and show the files that \fIshar\fP(1) would process. XZ.SH DESCRIPTION XZ.I traverse XZis a simple program XZusing the traverse() function from the \fIshar\fP sources to print the XZtab indented list of files that \fIshar\fP(1) would process. XZ.sp XZIf the argument is a directory, XZthen traverse applies func to all its entries. XZThis traversal is in depth first order XZso that files are processed in the order XZthat they are stored in the directory. XZ.SH EXAMPLE XZ.nf XZtraverse /var XZ/var/ XZ db/ XZ find.codes XZ run/ XZ dev.dir XZ syslog.pid XZ dev.pag XZ psdatabase XZ utmp XZ cron.pid XZ acctd.pid XZ log/ XZ learn/ XZ C XZ editor XZ eqn XZ files XZ macros XZ morefiles XZ vi XZ sendmail.st XZ cron/ XZ.fi XZ.SH AUTHOR XZGary Perlman XZ.SH BUGS XZThere are no diagnostics when directories cannot be searched. XSHAR_EOF Xchmod 444 './usr/src/usr.bin/shar/traverse.1' Xfi Xif test ! -d './usr/src/usr.bin/touch' Xthen X mkdir './usr/src/usr.bin/touch' Xfi Xcd './usr/src/usr.bin/touch' Xif test -f 'Makefile' Xthen X echo shar: "will not over-write existing file 'Makefile'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'Makefile' XZ# Makefile 1.0 (2.11BSD) 2026/1/21 XZ XZSRCS= touch.c XZOBJS= touch.o XZCFLAGS= -O XZLDFLAGS= -i XZ XZall: touch touch.0 XZ XZtouch.0: touch.1 XZ /usr/man/manroff touch.1 > touch.0 XZ XZtouch: ${OBJS} XZ cc ${LDFLAGS} -o touch ${OBJS} XZ XZinstall: all XZ install -c -o root -g staff -m 444 touch.0 /usr/man/cat1/touch.0 XZ install -c -s -o root -g staff -m 755 touch /usr/bin/touch XZ XZclean: XZ rm -f ${OBJS} *.0 touch XSHAR_EOF Xchmod 644 'Makefile' Xfi Xif test -f 'touch.1' Xthen X echo shar: "will not over-write existing file 'touch.1'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'touch.1' XZ.\" Copyright (c) 1991, 1993 XZ.\" The Regents of the University of California. All rights reserved. XZ.\" XZ.\" This code is derived from software contributed to Berkeley by XZ.\" the Institute of Electrical and Electronics Engineers, Inc. XZ.\" XZ.\" Redistribution and use in source and binary forms, with or without XZ.\" modification, are permitted provided that the following conditions XZ.\" are met: XZ.\" 1. Redistributions of source code must retain the above copyright XZ.\" notice, this list of conditions and the following disclaimer. XZ.\" 2. Redistributions in binary form must reproduce the above copyright XZ.\" notice, this list of conditions and the following disclaimer in the XZ.\" documentation and/or other materials provided with the distribution. XZ.\" 3. All advertising materials mentioning features or use of this software XZ.\" must display the following acknowledgement: XZ.\" This product includes software developed by the University of XZ.\" California, Berkeley and its contributors. XZ.\" 4. Neither the name of the University nor the names of its contributors XZ.\" may be used to endorse or promote products derived from this software XZ.\" without specific prior written permission. XZ.\" XZ.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND XZ.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE XZ.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE XZ.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE XZ.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL XZ.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS XZ.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) XZ.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT XZ.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY XZ.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF XZ.\" SUCH DAMAGE. XZ.\" XZ.\" @(#)touch.1 8.3 (Berkeley) 4/28/95 XZ.\" XZ.Dd April 28, 1995 XZ.Dt TOUCH 1 XZ.Os XZ.Sh NAME XZ.Nm touch XZ.Nd change file access and modification times XZ.Sh SYNOPSIS XZ.Nm touch XZ.Op Fl acfm XZ.Op Fl r Ar file XZ.Op Fl t Ar [[CC]YY]MMDDhhmm[.SS] XZ.Ar file ... XZ.Sh DESCRIPTION XZThe XZ.Nm touch XZutility sets the modification and access times of files to the XZcurrent time of day. XZIf the file doesn't exist, it is created with default permissions. XZ.Pp XZThe following options are available: XZ.Bl -tag -width Ds XZ.It Fl a XZChange the access time of the file. XZThe modification time of the file is not changed unless the XZ.Fl m XZflag is also specified. XZ.It Fl c XZDo not create the file if it does not exist. XZThe XZ.Nm touch XZutility does not treat this as an error. XZNo error messages are displayed and the exit value is not affected. XZ.It Fl f XZAttempt to force the update, even if the file permissions do not XZcurrently permit it. XZ.It Fl m XZChange the modification time of the file. XZThe access time of the file is not changed unless the XZ.Fl a XZflag is also specified. XZ.It Fl r XZUse the access and modifications times from the specified file XZinstead of the current time of day. XZ.It Fl t XZChange the access and modification times to the specified time. XZThe argument should be in the form XZ.Dq [[CC]YY]MMDDhhmm[.SS] XZwhere each pair of letters represents the following: XZ.Pp XZ.Bl -tag -width Ds -compact -offset indent XZ.It Ar CC XZThe first two digits of the year (the century). XZ.It Ar YY XZThe second two digits of the year. XZIf XZ.Dq YY XZis specified, but XZ.Dq CC XZis not, a value for XZ.Dq YY XZbetween 69 and 99 results in a XZ.Dq YY XZvalue of 19. XZOtherwise, a XZ.Dq YY XZvalue of 20 is used. XZ.It Ar MM XZThe month of the year, from 1 to 12. XZ.It Ar DD XZthe day of the month, from 1 to 31. XZ.It Ar hh XZThe hour of the day, from 0 to 23. XZ.It Ar mm XZThe minute of the hour, from 0 to 59. XZ.It Ar SS XZThe second of the minute, from 0 to 61. XZ.El XZ.Pp XZIf the XZ.Dq CC XZand XZ.Dq YY XZletter pairs are not specified, the values default to the current XZyear. XZIf the XZ.Dq SS XZletter pair is not specified, the value defaults to 0. XZ.El XZ.Pp XZThe XZ.Nm touch XZutility exits 0 on success, and >0 if an error occurs. XZ.Sh SEE ALSO XZ.Xr utimes 2 XZ.Sh COMPATIBILITY XZThe obsolescent form of XZ.Nm touch , XZwhere a time format is specified as the first argument, is supported. XZWhen no XZ.Fl r XZor XZ.Fl t XZoption is specified, there are at least two arguments, and the first XZargument is a string of digits either eight or ten characters in length, XZthe first argument is interpreted as a time specification of the form XZ.Dq MMDDhhmm[YY] . XZ.Pp XZThe XZ.Dq MM , XZ.Dq DD , XZ.Dq hh XZand XZ.Dq mm XZletter pairs are treated as their counterparts specified to the XZ.Fl t XZoption. XZIf the XZ.Dq YY XZletter pair is in the range 69 to 99, the year is set to 1969 to 1999, XZotherwise, the year is set in the 21st century. XZ.Sh HISTORY XZA XZ.Nm touch XZcommand appeared in XZ.At v7 . XZ.Sh STANDARDS XZThe XZ.Nm touch XZfunction is expected to be a superset of the XZ.St -p1003.2 XZspecification. XSHAR_EOF Xchmod 644 'touch.1' Xfi Xif test -f 'touch.c' Xthen X echo shar: "will not over-write existing file 'touch.c'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'touch.c' XZ/* XZ* Copyright (c) 1993 XZ * The Regents of the University of California. All rights reserved. XZ * XZ * Redistribution and use in source and binary forms, with or without XZ * modification, are permitted provided that the following conditions XZ * are met: XZ * 1. Redistributions of source code must retain the above copyright XZ * notice, this list of conditions and the following disclaimer. XZ * 2. Redistributions in binary form must reproduce the above copyright XZ * notice, this list of conditions and the following disclaimer in the XZ * documentation and/or other materials provided with the distribution. XZ * 3. All advertising materials mentioning features or use of this software XZ * must display the following acknowledgement: XZ * This product includes software developed by the University of XZ * California, Berkeley and its contributors. XZ * 4. Neither the name of the University nor the names of its contributors XZ * may be used to endorse or promote products derived from this software XZ * without specific prior written permission. XZ * XZ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND XZ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE XZ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE XZ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE XZ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL XZ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS XZ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) XZ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT XZ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY XZ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF XZ * SUCH DAMAGE. XZ */ XZ XZ#if !defined(lint) && defined(DOSCCS) XZstatic char copyright[] = XZ"@(#) Copyright (c) 1993\n\ XZ The Regents of the University of California. All rights reserved.\n"; XZ XZstatic char sccsid[] = "@(#)touch.c 8.3 (2.11BSD) 2026/1/21"; XZ#endif XZ XZ#include XZ#include XZ#include XZ XZ#include XZ#include XZ#include XZ#include XZ#include XZ#include XZ#include XZ#include XZ XZint rw(char *, struct stat *, int); XZvoid stime_arg1(char *, struct timeval *); XZvoid stime_arg2(char *, int, struct timeval *); XZvoid stime_file(char *, struct timeval *); XZvoid usage(void); XZ XZtime_t mktime(register struct tm *L); XZ XZint XZmain(argc, argv) XZ int argc; XZ char *argv[]; XZ{ XZ struct stat sb; XZ struct timeval tv[2]; XZ int aflag, cflag, fflag, mflag, ch, fd, len, rval, timeset; XZ char *p; XZ XZ aflag = cflag = fflag = mflag = timeset = 0; XZ if (gettimeofday(&tv[0], NULL)) XZ err(1, "gettimeofday"); XZ XZ while ((ch = getopt(argc, argv, "acfmr:t:")) != EOF) XZ switch(ch) { XZ case 'a': XZ aflag = 1; XZ break; XZ case 'c': XZ cflag = 1; XZ break; XZ case 'f': XZ fflag = 1; XZ break; XZ case 'm': XZ mflag = 1; XZ break; XZ case 'r': XZ timeset = 1; XZ stime_file(optarg, tv); XZ break; XZ case 't': XZ timeset = 1; XZ stime_arg1(optarg, tv); XZ break; XZ case '?': XZ default: XZ usage(); XZ } XZ argc -= optind; XZ argv += optind; XZ XZ /* Default is both -a and -m. */ XZ if (aflag == 0 && mflag == 0) XZ aflag = mflag = 1; XZ XZ /* XZ * If no -r or -t flag, at least two operands, the first of which XZ * is an 8 or 10 digit number, use the obsolete time specification. XZ */ XZ if (!timeset && argc > 1) { XZ (void)strtol(argv[0], &p, 10); XZ len = p - argv[0]; XZ if (*p == '\0' && (len == 8 || len == 10)) { XZ timeset = 1; XZ stime_arg2(*argv++, len == 10, tv); XZ } XZ } XZ XZ /* Otherwise use the current time of day. */ XZ if (!timeset) XZ tv[1] = tv[0]; XZ XZ if (*argv == NULL) XZ usage(); XZ XZ for (rval = 0; *argv; ++argv) { XZ /* See if the file exists. */ XZ if (stat(*argv, &sb)) XZ if (!cflag) { XZ /* Create the file. */ XZ fd = open(*argv, XZ O_WRONLY | O_CREAT, 0666); XZ if (fd == -1 || fstat(fd, &sb) || close(fd)) { XZ rval = 1; XZ warn("%s", *argv); XZ continue; XZ } XZ XZ /* If using the current time, we're done. */ XZ if (!timeset) XZ continue; XZ } else XZ continue; XZ XZ if (!aflag) XZ tv[0].tv_sec = sb.st_atime; XZ if (!mflag) XZ tv[1].tv_sec = sb.st_mtime; XZ tv[0].tv_usec = tv[1].tv_usec = 0; XZ XZ /* Try utimes(2). */ XZ if (!utimes(*argv, tv)) XZ continue; XZ XZ /* If the user specified a time, nothing else we can do. */ XZ if (timeset) { XZ rval = 1; XZ warn("%s", *argv); XZ } XZ XZ /* XZ * System V and POSIX 1003.1 require that a NULL argument XZ * set the access/modification times to the current time. XZ * The permission checks are different, too, in that the XZ * ability to write the file is sufficient. Take a shot. XZ */ XZ if (!utimes(*argv, NULL)) XZ continue; XZ XZ /* Try reading/writing. */ XZ if (rw(*argv, &sb, fflag)) XZ rval = 1; XZ } XZ exit(rval); XZ} XZ XZ#define ATOI2(ar) ((ar)[0] - '0') * 10 + ((ar)[1] - '0'); (ar) += 2; XZ XZvoid XZstime_arg1(arg, tvp) XZ char *arg; XZ struct timeval *tvp; XZ{ XZ register struct tm *t; XZ int yearset; XZ char *p; XZ /* Start with the current time. */ XZ if ((t = localtime(&tvp[0].tv_sec)) == NULL) XZ err(1, "localtime"); XZ /* [[CC]YY]MMDDhhmm[.SS] */ XZ if ((p = strchr(arg, '.')) == NULL) XZ t->tm_sec = 0; /* Seconds defaults to 0. */ XZ else { XZ if (strlen(p + 1) != 2) XZ goto terr; XZ *p++ = '\0'; XZ t->tm_sec = ATOI2(p); XZ } XZ XZ yearset = 0; XZ switch(strlen(arg)) { XZ case 12: /* CCYYMMDDhhmm */ XZ t->tm_year = ATOI2(arg); XZ t->tm_year *= 100; XZ yearset = 1; XZ /* FALLTHOUGH */ XZ case 10: /* YYMMDDhhmm */ XZ if (yearset) { XZ yearset = ATOI2(arg); XZ t->tm_year += yearset; XZ } else { XZ yearset = ATOI2(arg); XZ if (yearset < 69) XZ t->tm_year = yearset + 2000; XZ else XZ t->tm_year = yearset + 1900; XZ } XZ t->tm_year -= 1900; /* Convert to UNIX time. */ XZ /* FALLTHROUGH */ XZ case 8: /* MMDDhhmm */ XZ t->tm_mon = ATOI2(arg); XZ --t->tm_mon; /* Convert from 01-12 to 00-11 */ XZ t->tm_mday = ATOI2(arg); XZ t->tm_hour = ATOI2(arg); XZ t->tm_min = ATOI2(arg); XZ break; XZ default: XZ goto terr; XZ } XZ XZ tvp[0].tv_sec = tvp[1].tv_sec = mktime(t); XZ if (tvp[0].tv_sec == -1) XZterr: errx(1, XZ "out of range or illegal time specification: [[CC]YY]MMDDhhmm[.SS]"); XZ XZ tvp[0].tv_usec = tvp[1].tv_usec = 0; XZ} XZ XZvoid XZstime_arg2(arg, year, tvp) XZ char *arg; XZ int year; XZ struct timeval *tvp; XZ{ XZ register struct tm *t; XZ /* Start with the current time. */ XZ if ((t = localtime(&tvp[0].tv_sec)) == NULL) XZ err(1, "localtime"); XZ XZ t->tm_mon = ATOI2(arg); /* MMDDhhmm[yy] */ XZ --t->tm_mon; /* Convert from 01-12 to 00-11 */ XZ t->tm_mday = ATOI2(arg); XZ t->tm_hour = ATOI2(arg); XZ t->tm_min = ATOI2(arg); XZ if (year) XZ t->tm_year = ATOI2(arg); XZ XZ tvp[0].tv_sec = tvp[1].tv_sec = mktime(t); XZ if (tvp[0].tv_sec == -1) XZ errx(1, XZ "out of range or illegal time specification: MMDDhhmm[yy]"); XZ XZ tvp[0].tv_usec = tvp[1].tv_usec = 0; XZ} XZ XZvoid XZstime_file(fname, tvp) XZ char *fname; XZ register struct timeval *tvp; XZ{ XZ struct stat sb; XZ XZ if (stat(fname, &sb)) XZ err(1, "%s", fname); XZ tvp[0].tv_sec = sb.st_atime; XZ tvp[1].tv_sec = sb.st_mtime; XZ tvp[0].tv_usec = tvp[1].tv_usec = 0; XZ} XZ XZint XZrw(fname, sbp, force) XZ char *fname; XZ struct stat *sbp; XZ int force; XZ{ XZ register int fd; XZ int needed_chmod, rval; XZ u_char byte; XZ XZ /* Try regular files and directories. */ XZ if (!S_ISREG(sbp->st_mode) && !S_ISDIR(sbp->st_mode)) { XZ warnx("%s: %s", fname, strerror(EFTYPE)); XZ return (1); XZ } XZ XZ needed_chmod = rval = 0; XZ if ((fd = open(fname, O_RDWR, 0)) == -1) { XZ if (!force || chmod(fname, 0666)) XZ goto err; XZ if ((fd = open(fname, O_RDWR, 0)) == -1) XZ goto err; XZ needed_chmod = 1; XZ } XZ XZ if (sbp->st_size != 0) { XZ if (read(fd, &byte, sizeof(byte)) != sizeof(byte)) XZ goto err; XZ if (lseek(fd, (off_t)0, SEEK_SET) == -1) XZ goto err; XZ if (write(fd, &byte, sizeof(byte)) != sizeof(byte)) XZ goto err; XZ } else { XZ if (write(fd, &byte, sizeof(byte)) != sizeof(byte)) { XZerr: rval = 1; XZ warn("%s", fname); XZ } else if (ftruncate(fd, (off_t)0)) { XZ rval = 1; XZ warn("%s: file modified", fname); XZ } XZ } XZ XZ if (close(fd) && rval != 1) { XZ rval = 1; XZ warn("%s", fname); XZ } XZ if (needed_chmod && chmod(fname, sbp->st_mode) && rval != 1) { XZ rval = 1; XZ warn("%s: permissions modified", fname); XZ } XZ return (rval); XZ} XZ XZvoid XZusage(void) XZ{ XZ (void)fprintf(stderr, XZ "usage: touch [-acfm] [-r file] [-t time] file ...\n"); XZ exit(1); XZ} XZ XZ/* XZ * convert user's time into number of seconds. This function is used in place XZ * of the bloated 4.4BSD mktime() XZ*/ XZ XZstatic int ndays (struct tm *p) { XZ int n = p->tm_mday; XZ register m, y; XZ static char md[] = "\37\34\37\36\37\36\37\37\36\37\36\37"; XZ XZ for (y = 70; y < p->tm_year; ++y) { XZ n += 365; XZ if (isleap(y)) ++n; XZ } XZ for (m = 0; m < p->tm_mon; ++m) XZ n += md[m] + (m == 1 && isleap(y)); XZ return (n); XZ} XZ XZ/* XZ * Convert a broken-down time (such as returned by localtime()) to a `time_t' XZ * XZ * localtime() will set tm_gmtoff taking DST into account XZ */ XZ XZtime_t mktime(register struct tm *tp) XZ { XZ time_t l; XZ struct tm *t2; XZ XZ l = (ndays(tp)) * 86400L + tp->tm_hour * 3600L + tp->tm_min * 60 + tp->tm_sec; XZ if ((t2 = localtime(&l)) == NULL) XZ err(1, "localtime"); XZ XZ l -= t2->tm_gmtoff; XZ return(l); XZ } XSHAR_EOF Xchmod 644 'touch.c' Xfi Xchmod 755 . Xcd .. Xcd $STARTDIR Xif test -f './usr/src/usr.bin/uucp/aculib/dk.h' Xthen X echo shar: "will not over-write existing file './usr/src/usr.bin/uucp/aculib/dk.h'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/usr.bin/uucp/aculib/dk.h' XZ/* XZ * Copyright (c) 1986 Regents of the University of California. XZ * All rights reserved. The Berkeley software License Agreement XZ * specifies the terms and conditions for redistribution. XZ * XZ * @(#)dk.h 5.1 (Berkeley) 12/13/86 XZ */ XZ XZ/* XZ * switch commands XZ */ XZ#define RAM_ON 0226 XZ#define ROM_ON 0322 XZ#define R_CNTL 0264 XZ#define W_CNTL 0170 XZ XZ/* XZ * library routine declarations XZ */ XZextern long cmread(); XZextern long ocmread(); XZ XZ/* XZ * call setup struct XZ */ XZ XZstruct dialout { XZ char srv; XZ char area; XZ char sw; XZ char mch; XZ char chan; XZ char other; XZ short check; XZ}; XZ XZstruct indial { XZ char i_lchan; XZ char i_rhost; XZ char i_rchan; XZ char i_srv; XZ char i_area; XZ char i_sw; XZ char i_mch; XZ char i_chan; XZ char i_other; XZ short i_check; XZ}; XZ#define D_SH 1 XZ#define D_FS 2 XZ#define D_LSTNR 3 XZ XZstruct ring { XZ char r_lchan; XZ char r_srv; XZ}; XSHAR_EOF Xchmod 444 './usr/src/usr.bin/uucp/aculib/dk.h' Xfi Xif test -f './usr/src/usr.lib/libln/README.txt' Xthen X echo shar: "will not over-write existing file './usr/src/usr.lib/libln/README.txt'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/usr.lib/libln/README.txt' XZ2026/5/12 XZ--------- XZThis library is used in only two places in the entire system: XZ XZ./lib/ccom/TEST/Makefile: ${CC} ${LDFLAGS} ${CFLAGS} -o old-assn lex.yy.c -lln XZ./usr.bin/struct/Makefile: cc ${LDFLAGS} -O beauty.o tree.o lextab.o bdef.o -o beautify -lln XZ XSHAR_EOF Xchmod 644 './usr/src/usr.lib/libln/README.txt' Xfi Xif test -f './usr/src/usr.sbin/makewhatis/makewhatis.8' Xthen X echo shar: "will not over-write existing file './usr/src/usr.sbin/makewhatis/makewhatis.8'" Xelse Xsed 's/^Z//' << \SHAR_EOF > './usr/src/usr.sbin/makewhatis/makewhatis.8' XZ.TH MAKEWHATIS 8 "September 16, 2026" XZ.UC 2 XZ.SH NAME XZmakewhatis \- remake the database for the whatis and apropos commands XZ.SH SYNOPSIS XZ.B makewhatis XZ.SH DESCRIPTION XZ.B makewhatis XZis a shell script that uses the \fBsed\fP(1) program XZ\fI/usr/man/makewhatis.sed\fP to create the whatis database in /usr/man XZfrom the manual sections in /usr/man/cat*. XZThe relevant text is extracted extracted from each manpage and sorted XZ.sp XZThe database is used by whatis(8) and apropos(8). XZ.SH FILES XZ.DT XZ/usr/man/whatis constructed data base XZ.SH SEE ALSO XZsed(1), whatis(1), apropos(1) XSHAR_EOF Xchmod 644 './usr/src/usr.sbin/makewhatis/makewhatis.8' Xfi Xif test ! -d './usr/src/usr.sbin/tracebuf' Xthen X mkdir './usr/src/usr.sbin/tracebuf' Xfi Xcd './usr/src/usr.sbin/tracebuf' Xif test -f 'Makefile' Xthen X echo shar: "will not over-write existing file 'Makefile'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'Makefile' XZ# XZ# @(#)Makefile 1.0 (2.11BSD) 2026/5/13 XZ# XZCFLAGS= -O XZLDFLAGS= -i XZSRCS= tracebuf.c XZOBJS= tracebuf.o XZMAN= tracebuf.0 XZMANSRC= tracebuf.1 XZ XZall: tracebuf tracebuf.0 XZ XZtracebuf: ${OBJS} XZ ${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJS} XZ XZtracebuf.0: ${MANSRC} XZ /usr/man/manroff ${MANSRC} > ${MAN} XZ XZclean: XZ rm -f ${OBJS} ${MAN} tracebuf tags XZ XZdepend: ${SRCS} XZ mkdep ${CFLAGS} ${SRCS} XZ XZinstall: tracebuf XZ install -c -o root -g staff -m 444 ${MAN} /usr/man/cat1 XZ install -c -s -o root -g kmem -m 2755 tracebuf /usr/sbin XZ XZlint: ${SRCS} XZ lint -hax ${SRCS} XZ XZtags: ${SRCS} XZ ctags ${SRCS} XZ# DO NOT DELETE THIS LINE -- mkdep uses it. XZ# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. XSHAR_EOF Xchmod 644 'Makefile' Xfi Xif test -f 'tracebuf.c' Xthen X echo shar: "will not over-write existing file 'tracebuf.c'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'tracebuf.c' XZ#if defined(DOSCCS) && !defined(lint) XZstatic char *sccsid = "@(#)tracebuf.c 1.0(2.11BSD) 2026/5/13"; XZ#endif XZ XZ/* XZ * tracebuf - dump the kernel tracebuf[] array in a human readable form XZ * XZ*/ XZ#include XZ#include XZ#include XZ#include XZ#include XZ XZextern char *__progname; XZ void usage(); XZ XZstruct nlist nl[] = XZ { XZ { "_tracebuf" }, XZ { "" }, XZ }; XZ XZ int mf, lines = 1, iter = 1, hdrcnt = 19, secs = 5; XZ void hdr(); XZ XZmain(argc, argv) XZ int argc; XZ char **argv; XZ { XZ register int i; XZ int c; XZ XZ nlist("/unix", nl); XZ if (nl[0].n_type == 0) XZ errx(1, "%s: tracebuf not found in /unix", __progname); XZ XZ mf = open("/dev/kmem", 0); XZ if (mf < 0) XZ { XZ fprintf(stderr, "cannot open /dev/kmem\n"); XZ exit(1); XZ } XZ XZ while ((c = getopt(argc, argv, "i:w:h:")) != EOF) XZ { XZ switch (c) XZ { XZ case 'w': XZ secs = atoi(optarg); XZ break; XZ case 'i': XZ iter = atoi(optarg); XZ break; XZ case 'h': XZ hdrcnt = atoi(optarg); XZ break; XZ case '?': XZ default: XZ usage(); XZ } XZ } XZ XZ if (iter <= 0) /* bogus iteration count set to 1 */ XZ iter = 1; XZ XZ if (secs <= 0) /* bogus interval set to 5 seconds */ XZ secs = 5; XZ XZ signal(SIGCONT, hdr); XZloop: XZ if (--lines == 0) XZ hdr(); XZ nmstats(); XZ fflush(stdout); XZ if (--iter) XZ { XZ sleep(secs); XZ goto loop; XZ } XZ } XZ XZvoid XZhdr() XZ { XZ XZ puts(" breadhit breadmiss bwrite breadhitra breadmissra brelse swapio %bhit"); XZ lines = hdrcnt; XZ } XZ XZnmstats() XZ { XZ float pct; XZ long tracebuf[TR_NUM_210]; XZ XZ lseek(mf, (long)nl[0].n_value, 0); XZ read(mf, tracebuf, sizeof tracebuf); XZ XZ pct = tracebuf[TR_BREADHIT]; XZ pct /= (tracebuf[TR_BREADHIT] + tracebuf[TR_BREADMISS]); XZ pct *= 100.0; XZ XZ printf("%9D %10D %9D %11D %12D %9D %7D %.2f\n", XZ tracebuf[TR_BREADHIT], XZ tracebuf[TR_BREADMISS], XZ tracebuf[TR_BWRITE], XZ tracebuf[TR_BREADHITRA], XZ tracebuf[TR_BREADMISSRA], XZ tracebuf[TR_BRELSE], XZ tracebuf[TR_SWAPIO], XZ pct); XZ } XZ XZvoid XZusage() XZ { XZ errx(1, "Usage: %s [-w secs] [-h lines] [-i iterations]", __progname); XZ } XSHAR_EOF Xchmod 644 'tracebuf.c' Xfi Xif test -f 'tracebuf.1' Xthen X echo shar: "will not over-write existing file 'tracebuf.1'" Xelse Xsed 's/^Z//' << \SHAR_EOF > 'tracebuf.1' XZ.\" XZ.\" @(#) 2.11BSD tracebuf.1 1.0 2026/5/13 XZ.\" XZ.TH TRACEBUF 1 "May 13, 2026" XZ.UC 4 XZ.SH NAME XZtracebuf \- display kernel I/O statistics XZ.SH SYNOPSIS XZ.B tracebuf XZ[\fB\-w secs\fP] XZ[\fB\-i iter\fP] XZ[\fB\-h num\fP] XZ.SH DESCRIPTION XZWith no argument XZ.B tracebuf XZprints the kernel \fBtracebuf\fP array once and exits. XZ.PP XZThe options are: XZ.TP 10 XZ\-i iter XZSpecifies the number of reports. XZ.TP 10 XZ\-h num XZprint the header every XZ.I num XZreports. XZ.TP 10 XZ\-w secs XZwait XZ.I secs XZseconds between reports. XZ.PP XZEach report: XZ.TP 15 XZbreadhit XZbuffer read found in cache XZ.TP 15 XZbreadmiss XZbuffer read not in cache XZ.TP 15 XZbreadhitra XZbuffer read-ahead found in cache XZ.TP 15 XZbreadmissra XZbuffer read-ahead not in cache XZ.TP 15 XZbrelese XZbuffer released with no I/O implied XZ.TP 15 XZswapio XZswap I/o request XZ.TP 15 XZbhit XZread cache rate [breadhit/(breadhit+breadmiss)] XZ.SH FILES XZ/dev/kmem XZ.br XZ/unix XZ.SH HISTORY XZ.B tracebuf XZappeared in 2.11BSD 35th Anniversary Edition XSHAR_EOF Xchmod 640 'tracebuf.1' Xfi Xchmod 755 . Xcd .. Xcd $STARTDIR Xexit 0 X# End of shell archive SHAR_EOF chmod 644 '500.new' fi if test -f '500.rm' then echo shar: "will not over-write existing file '500.rm'" else sed 's/^X//' << \SHAR_EOF > '500.rm' X#!/bin/sh X Xcd / X Xrm -f ./etc/aliases.head Xrm -f ./usr/adm/README Xrm -fr ./usr/doc/2.10/setup.2.11 Xrm -fr ./usr/doc/ps1/14.sccs Xrm -fr ./usr/doc/usd/11.notes Xrm -fr ./usr/games/lib/phantasia Xrm -f ./usr/games/phantasia Xrm -fr ./usr/include/OLD Xrm -f ./usr/include/pdpmba Xrm -fr ./usr/include/stand Xrm -f ./usr/ingres/.joverc Xrm -f ./usr/libexec/getNAME Xrm -f ./usr/local/decompr16 Xrm -f ./usr/local/digestp Xrm -f ./usr/local/filep Xrm -f ./usr/local/filofaxp Xrm -f ./usr/local/franklinp Xrm -fr ./usr/local/lib/mp Xrm -f ./usr/local/mailp Xrm -f ./usr/local/man/cat1/mailp.0 Xrm -f ./usr/local/man/cat1/mp.0 Xrm -fr ./usr/local/man/cat2 Xrm -fr ./usr/local/man/cat3 Xrm -fr ./usr/local/man/cat4 Xrm -fr ./usr/local/man/cat5 Xrm -fr ./usr/local/man/cat6 Xrm -fr ./usr/local/man/cat7 Xrm -fr ./usr/local/man/cat8 Xrm -f ./usr/local/mp Xrm -f ./usr/local/newsp Xrm -f ./usr/local/timemanp Xrm -f ./usr/local/timesysp Xrm -f ./usr/local/trace Xrm -f ./usr/man/cat1/lisp.0 Xrm -f ./usr/man/cat1/lxref.0 Xrm -f ./usr/man/cat1/mkdir.0 Xrm -f ./usr/man/cat1/mkstr.0 Xrm -f ./usr/man/cat1/pdx.0 Xrm -f ./usr/man/cat1/pmerge.0 Xrm -f ./usr/man/cat1/pxref.0 Xrm -f ./usr/man/cat1/sccs.0 Xrm -f ./usr/man/cat1/touch.0 Xrm -f ./usr/man/cat3/copysign.0 Xrm -f ./usr/man/cat3/drem.0 Xrm -f ./usr/man/cat3/exect.0 Xrm -f ./usr/man/cat3/finite.0 Xrm -f ./usr/man/cat3/ieee.0 Xrm -f ./usr/man/cat3/infnan.0 Xrm -f ./usr/man/cat3/logb.0 Xrm -f ./usr/man/cat3/scalb.0 Xrm -f ./usr/man/cat3/traverse.0 Xrm -f ./usr/man/cat4/bk.0 Xrm -f ./usr/man/cat4/hy.0 Xrm -f ./usr/man/cat8/catman.0 Xrm -f ./usr/man/cat8/drtest.0 Xrm -f ./usr/man/cat8/format.0 Xrm -f ./usr/man/cat8/mklost+found.0 Xrm -f ./usr/man/cat8/mkproto.0 Xrm -f ./usr/new/arpatxt Xrm -f ./usr/new/bm Xrm -f ./usr/new/makedb Xrm -f ./usr/new/man/cat1/bm.0 Xrm -f ./usr/new/man/cat1/pathalias.0 Xrm -fr ./usr/new/man/cat2 Xrm -fr ./usr/new/man/cat3 Xrm -fr ./usr/new/man/cat4 Xrm -fr ./usr/new/man/cat6 Xrm -fr ./usr/new/man/cat7 Xrm -fr ./usr/new/man/cat8 Xrm -f ./usr/new/pathalias Xrm -f ./usr/sbin/catman Xrm -f ./usr/sbin/mklost+found Xrm -f ./usr/sbin/mkproto Xrm -f ./usr/share/misc/mkproto.data Xrm -fr ./usr/spool/uucp/D.shemp Xrm -fr ./usr/spool/uucp/D.shempX Xrm -fr ./usr/spool/uucp/D.vernon Xrm -fr ./usr/spool/uucp/D.vernonX Xrm -f ./usr/src/bin/ar/pathnames.h Xrm -f ./usr/src/bin/chpass/pathnames.h Xrm -f ./usr/src/bin/csh/alloc.c Xrm -f ./usr/src/bin/csh/doprnt.c Xrm -f ./usr/src/bin/csh/tags Xrm -f ./usr/src/bin/disklabel/pathnames.h Xrm -f ./usr/src/bin/login/pathnames.h Xrm -f ./usr/src/bin/make/gcos.c Xrm -f ./usr/src/bin/mkdir.c Xrm -f ./usr/src/bin/ps.c Xrm -f ./usr/src/bin/tcsh/tc.sig.c Xrm -f ./usr/src/etc/passwd Xrm -fr ./usr/src/games/PORT Xrm -f ./usr/src/games/mille/foobar Xrm -f ./usr/src/games/monop/:rofix Xrm -f ./usr/src/games/phantasia/phant_run.c Xrm -f ./usr/src/games/phantasia/test.c Xrm -f ./usr/src/games/sail/:file Xrm -f ./usr/src/games/sail/:scene Xrm -f ./usr/src/games/sail/:ship Xrm -f ./usr/src/games/sail/:specs Xrm -f ./usr/src/lib/libc/pdp/README.pdpstdio Xrm -fr ./usr/src/lib/libc/pdp/stdio Xrm -f ./usr/src/lib/libc/stdio/findiop.c Xrm -fr ./usr/src/lib/mip Xrm -fr ./usr/src/lib/pcc Xrm -f ./usr/src/lib/tags Xrm -f ./usr/src/libexec/fingerd/pathnames.h Xrm -f ./usr/src/libexec/ftpd/pathnames.h Xrm -fr ./usr/src/libexec/getNAME Xrm -f ./usr/src/libexec/rshd/pathnames.h Xrm -f ./usr/src/libexec/tcpd/BLURB Xrm -f ./usr/src/libexec/tcpd/README.IRIX Xrm -f ./usr/src/libexec/tcpd/README.NIS Xrm -f ./usr/src/libexec/tcpd/environ.c Xrm -f ./usr/src/libexec/tcpd/myvsyslog.c Xrm -f ./usr/src/libexec/tcpd/printf.ck Xrm -f ./usr/src/libexec/tcpd/setenv.c Xrm -f ./usr/src/libexec/tcpd/strcasecmp.c Xrm -f ./usr/src/libexec/tcpd/vfprintf.c Xrm -f ./usr/src/local/decompr16.c Xrm -fr ./usr/src/local/mp Xrm -f ./usr/src/local/trace.c Xrm -f ./usr/src/local/zmodem/makefile.generic Xrm -f ./usr/src/man/man1/lisp.1 Xrm -f ./usr/src/man/man1/lxref.1 Xrm -f ./usr/src/man/man1/mkdir.1 Xrm -f ./usr/src/man/man1/mkstr.1 Xrm -f ./usr/src/man/man1/pdx.1 Xrm -f ./usr/src/man/man1/pmerge.1 Xrm -f ./usr/src/man/man1/pxref.1 Xrm -f ./usr/src/man/man1/sccs.1 Xrm -f ./usr/src/man/man1/touch.1 Xrm -f ./usr/src/man/man3/ieee.3 Xrm -f ./usr/src/man/man3/infnan.3 Xrm -f ./usr/src/man/man3/math.3 Xrm -f ./usr/src/man/man4/bk.4 Xrm -f ./usr/src/man/man4/hy.4 Xrm -f ./usr/src/man/man6/aardvark.6 Xrm -f ./usr/src/man/man6/bj.6 Xrm -f ./usr/src/man/man6/ching.6 Xrm -f ./usr/src/man/man6/doctor.6 Xrm -f ./usr/src/man/man8/drtest.8 Xrm -f ./usr/src/man/man8/format.8 Xrm -fr ./usr/src/new/bm Xrm -f ./usr/src/new/jove/Makefile.dos Xrm -f ./usr/src/new/jove/Ovmakefile Xrm -f ./usr/src/new/jove/Readme.dos Xrm -f ./usr/src/new/jove/Readme.mac Xrm -f ./usr/src/new/jove/iproc-pipes.c Xrm -f ./usr/src/new/jove/mac.c Xrm -f ./usr/src/new/jove/mac.h Xrm -f ./usr/src/new/jove/malloc.c Xrm -f ./usr/src/new/jove/mjovers.Hqx Xrm -f ./usr/src/new/jove/tune.dos Xrm -fr ./usr/src/new/notes Xrm -fr ./usr/src/new/pathalias Xrm -f ./usr/src/new/rn/.falseactive Xrm -f ./usr/src/sbin/mount/pathnames.h Xrm -fr ./usr/src/share/adb/N Xrm -fr ./usr/src/share/adb/PORT Xrm -f ./usr/src/share/misc/mkproto.data Xrm -f ./usr/src/sys/GENERIC/Make.pdpmba Xrm -f ./usr/src/sys/GENERIC/hy.h Xrm -f ./usr/src/sys/autoconfig/tags Xrm -fr ./usr/src/sys/bootrom Xrm -f ./usr/src/sys/conf/Make.pdpmba Xrm -f ./usr/src/sys/h/signal.h Xrm -f ./usr/src/sys/h/tags Xrm -f ./usr/src/sys/net/tags Xrm -f ./usr/src/sys/netimp/tags Xrm -f ./usr/src/sys/netinet/tags Xrm -f ./usr/src/sys/netns/tags Xrm -f ./usr/src/sys/pdp/tags Xrm -f ./usr/src/sys/pdpif/if_un.h Xrm -f ./usr/src/sys/pdpif/tags Xrm -fr ./usr/src/sys/pdpmba Xrm -fr ./usr/src/sys/pdpstand/NEW Xrm -fr ./usr/src/sys/pdpstand/OLD Xrm -f ./usr/src/sys/pdpuba/tags Xrm -f ./usr/src/sys/sys/tags Xrm -f ./usr/src/sys/sys/vm_swp.c.old Xrm -f ./usr/src/tags Xrm -f ./usr/src/ucb/finger/pathnames.h Xrm -f ./usr/src/ucb/ftp/pathnames.h Xrm -f ./usr/src/ucb/grep.c Xrm -f ./usr/src/ucb/mkstr.c Xrm -f ./usr/src/ucb/netstat/host.c.newimp Xrm -f ./usr/src/ucb/netstat/main.c.newimp Xrm -f ./usr/src/ucb/rdist/pathnames.h Xrm -f ./usr/src/ucb/sccs.c Xrm -f ./usr/src/ucb/tn3270/vaxbsubs.s Xrm -f ./usr/src/ucb/top/psdb.c Xrm -f ./usr/src/ucb/top/psdb.h Xrm -f ./usr/src/ucb/whereis.c Xrm -f ./usr/src/ucb/window/:tt Xrm -f ./usr/src/ucb/window/:tty Xrm -f ./usr/src/ucb/window/:var Xrm -f ./usr/src/ucb/window/:ww Xrm -f ./usr/src/usr.bin/efl/Makefile.43 Xrm -f ./usr/src/usr.bin/f77/:gram.fix Xrm -f ./usr/src/usr.bin/f77/:rofix Xrm -f ./usr/src/usr.bin/f77/README Xrm -f ./usr/src/usr.bin/f77/includes Xrm -f ./usr/src/usr.bin/f77/locdefs Xrm -f ./usr/src/usr.bin/f77/scjdefs Xrm -f ./usr/src/usr.bin/f77/tags Xrm -f ./usr/src/usr.bin/learn/tags Xrm -f ./usr/src/usr.bin/m4/pathnames.h Xrm -f ./usr/src/usr.bin/m4/tags Xrm -f ./usr/src/usr.bin/patch/config.h Xrm -fr ./usr/src/usr.bin/patch/dist Xrm -f ./usr/src/usr.bin/patch/malloc.c Xrm -f ./usr/src/usr.bin/patch/patchlevel.h Xrm -f ./usr/src/usr.bin/patch/version.h Xrm -f ./usr/src/usr.bin/ranlib/pathnames.h Xrm -f ./usr/src/usr.bin/refer/kaiser.c Xrm -f ./usr/src/usr.bin/refer/types.c Xrm -f ./usr/src/usr.bin/refer/what..c Xrm -f ./usr/src/usr.bin/refer/what1.c Xrm -f ./usr/src/usr.bin/refer/what2.c Xrm -f ./usr/src/usr.bin/refer/what3.c Xrm -f ./usr/src/usr.bin/refer/what4.c Xrm -f ./usr/src/usr.bin/shar/traverse.3 Xrm -f ./usr/src/usr.bin/tip/phones-file Xrm -f ./usr/src/usr.bin/tip/remote-file Xrm -f ./usr/src/usr.bin/touch.c Xrm -f ./usr/src/usr.bin/uucp/README.dialino Xrm -f ./usr/src/usr.bin/uucp/UUAIDS/uu.daily.seism Xrm -f ./usr/src/usr.bin/uucp/UUAIDS/uucpsummary.mo Xrm -f ./usr/src/usr.bin/uucp/setline.c Xrm -f ./usr/src/usr.bin/uucp/sysacct.c Xrm -f ./usr/src/usr.bin/uucp/vms.tar.Z Xrm -f ./usr/src/usr.bin/xargs/pathnames.h Xrm -f ./usr/src/usr.bin/xinstall/pathnames.h Xrm -f ./usr/src/usr.lib/libutil/pathnames.h Xrm -fr ./usr/src/usr.sbin/catman Xrm -f ./usr/src/usr.sbin/chroot/pathnames.h Xrm -f ./usr/src/usr.sbin/inetd/pathnames.h Xrm -fr ./usr/src/usr.sbin/mklost+found Xrm -fr ./usr/src/usr.sbin/mkproto Xrm -f ./usr/src/usr.sbin/named/named/databuf Xrm -f ./usr/src/usr.sbin/named/named/databufs Xrm -f ./usr/src/usr.sbin/named/named/namebuf Xrm -f ./usr/src/usr.sbin/named/tools/nslookup/nslookup.8 Xrm -f ./usr/src/usr.sbin/named/tools/nslookup/pathnames.h Xrm -f ./usr/src/usr.sbin/ntp/patchl Xrm -fr ./usr/src/usr.sbin/sendmail.MX/adb Xrm -f ./usr/src/usr.sbin/sendmail.MX/adm/SU.LOG Xrm -f ./usr/src/usr.sbin/sendmail.MX/adm/TraceFlags Xrm -f ./usr/src/usr.sbin/sendmail.MX/adm/cbosgd.sl Xrm -f ./usr/src/usr.sbin/sendmail.MX/adm/jek.sl Xrm -f ./usr/src/usr.sbin/sendmail.MX/adm/sl.sed Xrm -fr ./usr/src/usr.sbin/sendmail.MX/aux Xrm -f ./usr/src/usr.sbin/sendmail.MX/include/asm.sed Xrm -f ./usr/src/usr.sbin/sendmail.MX/include/asm.sed.pdp Xrm -f ./usr/src/usr.sbin/sendmail.MX/include/asm.sed.vax Xrm -f ./usr/src/usr.sbin/sendmail.MX/include/userdbm.h Xrm -f ./usr/src/usr.sbin/sendmail.MX/lib/aliases Xrm -f ./usr/src/usr.sbin/sendmail.MX/md/c.nvmunix.m4 Xrm -f ./usr/src/usr.sbin/sendmail.MX/md/c.v6.m4 Xrm -f ./usr/src/usr.sbin/sendmail.MX/md/c.v7.m4 Xrm -f ./usr/src/usr.sbin/sendmail.MX/md/c.vmunix.m4 Xrm -f ./usr/src/usr.sbin/sendmail.MX/md/config.dst Xrm -f ./usr/src/usr.sbin/sendmail.MX/md/config.m4.mone Xrm -fr ./usr/src/usr.sbin/sendmail/adb Xrm -f ./usr/src/usr.sbin/sendmail/adm/SU.LOG Xrm -f ./usr/src/usr.sbin/sendmail/adm/TraceFlags Xrm -f ./usr/src/usr.sbin/sendmail/adm/cbosgd.sl Xrm -f ./usr/src/usr.sbin/sendmail/adm/jek.sl Xrm -f ./usr/src/usr.sbin/sendmail/adm/sl.sed Xrm -fr ./usr/src/usr.sbin/sendmail/aux Xrm -f ./usr/src/usr.sbin/sendmail/include/asm.sed Xrm -f ./usr/src/usr.sbin/sendmail/include/asm.sed.pdp Xrm -f ./usr/src/usr.sbin/sendmail/include/asm.sed.vax Xrm -f ./usr/src/usr.sbin/sendmail/include/userdbm.h Xrm -f ./usr/src/usr.sbin/sendmail/lib/aliases Xrm -f ./usr/src/usr.sbin/sendmail/md/c.nvmunix.m4 Xrm -f ./usr/src/usr.sbin/sendmail/md/c.v6.m4 Xrm -f ./usr/src/usr.sbin/sendmail/md/c.v7.m4 Xrm -f ./usr/src/usr.sbin/sendmail/md/c.vmunix.m4 Xrm -f ./usr/src/usr.sbin/sendmail/src/FILES Xrm -f ./usr/src/usr.sbin/sendmail/src/bmove.11.s Xrm -f ./usr/src/usr.sbin/sendmail/src/bmove.vax.s Xrm -f ./usr/src/usr.sbin/sendmail/src/tags Xrm -fr ./usr/src/usr.sbin/sendmail/test Xrm -fr ./usr/src/usr.sbin/timed/m68000 Xrm -f ./usr/src/usr.sbin/timed/tags Xrm -fr ./usr/src/usr.sbin/timed/vax Xrm -f ./usr/ucb/grep Xrm -f ./usr/ucb/sccs SHAR_EOF chmod 644 '500.rm' fi if test -f '500.patch' then echo shar: "will not over-write existing file '500.patch'" else sed 's/^X//' << \SHAR_EOF > '500.patch' X*** ./usr/adm/daily.old Sat Feb 15 23:52:33 1997 X--- ./usr/adm/daily Wed Sep 16 09:36:22 2026 X*************** X*** 1,5 **** X #! /bin/sh - X! PATH=/usr/sbin:/usr/local:/usr/ucb:/bin:/usr/bin X echo "Subject: daily run output" X echo "" X msgs -c X--- 1,8 ---- X #! /bin/sh - X! # X! # @(#)daily 1.2 (2.11BSD) 2026/8/9 X! # X! PATH=/usr/sbin:/usr/ucb:/bin:/usr/bin X echo "Subject: daily run output" X echo "" X msgs -c X*************** X*** 14,20 **** X chmod 644 /usr/adm/acct X accton /usr/adm/acct X sa -s -f -v 10 /usr/adm/acct.0 > /dev/null X! compress /usr/adm/acct.0 X X echo "" X echo "Running calendar:" X--- 17,23 ---- X chmod 644 /usr/adm/acct X accton /usr/adm/acct X sa -s -f -v 10 /usr/adm/acct.0 > /dev/null X! compress -f /usr/adm/acct.0 X X echo "" X echo "Running calendar:" X*** ./usr/adm/weekly.old Sun Dec 28 21:47:51 2025 X--- ./usr/adm/weekly Wed Sep 16 09:33:22 2026 X*************** X*** 1,9 **** X #! /bin/sh - X # X! # @(#)weekly 1.1 (2.11BSD) 2025/12/28 X # X X! PATH=/usr/sbin:/usr/local:/usr/ucb:/bin:/usr/bin X echo "Subject: weekly run output" X X #echo "" X--- 1,9 ---- X #! /bin/sh - X # X! # @(#)weekly 1.2 (2.11BSD) 2026/9/16 X # X X! PATH=/usr/sbin:/usr/ucb:/bin:/usr/bin X echo "Subject: weekly run output" X X #echo "" X*************** X*** 42,49 **** X cd / X X echo "" X! echo "Rebuilding catman:" X! catman X X echo "" X echo "Rebuilding find database:" X--- 42,49 ---- X cd / X X echo "" X! echo "Rebuilding whatis database:" X! makewhatis X X echo "" X echo "Rebuilding find database:" X*** ./usr/adm/monthly.old Sat Nov 16 19:50:55 1996 X--- ./usr/adm/monthly Wed Sep 16 09:35:30 2026 X*************** X*** 1,5 **** X #! /bin/sh - X! PATH=/usr/sbin:/usr/local:/usr/ucb:/bin:/usr/bin X echo "Subject: monthly run output" X X echo "" X--- 1,8 ---- X #! /bin/sh - X! # X! # @(#)monthly 1.1 (2.11BSD) 2026/9/16 X! # X! PATH=/usr/sbin:/usr/ucb:/bin:/usr/bin X echo "Subject: monthly run output" X X echo "" X*** ./usr/doc/ps1/00.contents.old Fri Dec 26 21:00:05 2025 X--- ./usr/doc/ps1/00.contents Mon May 18 15:47:42 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)00.contents 5.3 (2.11BSD) 2025/12/26 X .\" X .OH '''PS1 Contents' X .EH 'PS1 Contents''' X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)00.contents 5.4 (2.11BSD) 2026/5/18 X .\" X .OH '''PS1 Contents' X .EH 'PS1 Contents''' X*************** X*** 98,109 **** X RCS is a user-contributed tool for working together with other people X without stepping on each other's toes. X An alternative to \fIsccs\fR for controlling software changes. X- X- .IP X- .tl 'An Introduction to the Source Code Control System''PS1:14' X- .QP X- A useful introductory article for those users with X- installations licensed for SCCS. X X .IP X .tl 'YACC: Yet Another Compiler-Compiler''PS1:15' X--- 98,103 ---- X*** ./usr/doc/usd/00.contents.old Tue Apr 15 19:25:16 1986 X--- ./usr/doc/usd/00.contents Mon May 18 15:49:49 2026 X*************** X*** 79,89 **** X .QP X Describes the customs, protocols, and etiquette of network news, plus answers X to the questions most frequently asked by newcomers to the network. X- .IP X- .tl 'Notesfile Reference Manual''USD:11' X- .QP X- This feature-packed system for maintaining computer-aided discussion groups is X- also useful for reading netnews. X .SH X Text Editing X .IP X--- 79,84 ---- X*** ./usr/include/time.h.old Wed Jul 10 21:56:06 1996 X--- ./usr/include/time.h Sat Jul 25 07:30:31 2026 X*************** X*** 3,11 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)time.h 1.3 (2.11BSD) 96/7/10 X */ X X #include /* for time_t */ X X /* X--- 3,14 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)time.h 1.4 (2.11BSD) 2026/6/7 X */ X X+ #ifndef _TIME_H_ X+ #define _TIME_H_ X+ X #include /* for time_t */ X X /* X*************** X*** 25,30 **** X char *tm_zone; X }; X X! extern struct tm *gmtime(), *localtime(); X! extern char *asctime(), *ctime(); X! extern time_t time(); X--- 28,35 ---- X char *tm_zone; X }; X X! extern size_t strftime(char *, size_t, const char *, const struct tm *); X! extern struct tm *gmtime(time_t *), *localtime(time_t *); X! extern char *asctime(struct tm *), *ctime(time_t *); X! extern time_t time(time_t *); X! #endif X*** ./usr/include/unistd.h.old Sat Feb 22 06:46:47 2025 X--- ./usr/include/unistd.h Wed Sep 23 08:53:21 2026 X*************** X*** 30,36 **** X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X! * @(#)unistd.h 8.12 (2.11BSD) 2025/2/22 X */ X X #ifndef _UNISTD_H_ X--- 30,36 ---- X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X! * @(#)unistd.h 8.13 (2.11BSD) 2026/9/16 X */ X X #ifndef _UNISTD_H_ X*************** X*** 37,42 **** X--- 37,43 ---- X #define _UNISTD_H_ X X #include X+ #include X #include X X #define STDIN_FILENO 0 /* standard input file descriptor */ X*************** X*** 58,71 **** X--- 59,75 ---- X #define W_OK 2 /* test for write permission */ X #define R_OK 4 /* test for read permission */ X X+ int acct(const char *); X int access(const char *, int); X unsigned alarm(unsigned); X char *brk(void *addr); X int chdir(const char *); X int chown(const char *, uid_t, gid_t); X+ int chroot(const char *dirname); X int close(int); X char *crypt(const char *, const char *); X int dup(int); X+ int dup2(int, int); X void _exit(int); X void encrypt(char [64], int); X void endusershell(void); X*************** X*** 81,86 **** X--- 85,91 ---- X pid_t fork(void); X int fsync(int); X int ftruncate(int, off_t); X+ int getdtablesize(void); X /* char *getcwd(char *, size_t); */ X char *getwd(char *buf); X gid_t getegid(void); X*************** X*** 90,103 **** X long gethostid(void); X int gethostname(char *, size_t); X char *getlogin(void); X! int getopt(int, char * const [], const char *); X char *getpass(const char *prompt); X /* pid_t getpgid(pid_t); */ X! pid_t getpgrp(void); X pid_t getpid(void); X pid_t getppid(void); X uid_t getuid(void); X char *getusershell(void); X int isatty(int); X int link(const char *, const char *); X off_t lseek(int, off_t, int); X--- 95,110 ---- X long gethostid(void); X int gethostname(char *, size_t); X char *getlogin(void); X! mode_t getmode(const void *, mode_t); X! int getpagesize(void); X char *getpass(const char *prompt); X /* pid_t getpgid(pid_t); */ X! pid_t getpgrp(pid_t); X pid_t getpid(void); X pid_t getppid(void); X uid_t getuid(void); X char *getusershell(void); X+ int initgroups(const char *, gid_t); X int isatty(int); X int link(const char *, const char *); X off_t lseek(int, off_t, int); X*************** X*** 105,122 **** X int pause(void); X int pipe(int [2]); X ssize_t read(int, void *, size_t); X int rmdir(const char *); X char *sbrk(intptr_t incr); X int setegid(gid_t); X int seteuid(uid_t); X int setgid(gid_t); X int sethostid(long); X! int setpgrp(); /* XXX FIXME not correct */ X int setregid(gid_t, gid_t); X int setreuid(uid_t, uid_t); X int setuid(uid_t); X void setusershell(void); X! unsigned sleep(unsigned); X void swab(const void *restrict, void *restrict, ssize_t); X int symlink(const char *, const char *); X void sync(void); X--- 112,134 ---- X int pause(void); X int pipe(int [2]); X ssize_t read(int, void *, size_t); X+ ssize_t readlink(const char *restrict, char *restrict, size_t); X+ ssize_t readv(int, const struct iovec *, int); X+ int reboot(int); X int rmdir(const char *); X char *sbrk(intptr_t incr); X int setegid(gid_t); X int seteuid(uid_t); X int setgid(gid_t); X+ int setgroups(int, const gid_t *); X int sethostid(long); X! void *setmode(const char *); X! int setpgrp(pid_t, pid_t); X int setregid(gid_t, gid_t); X int setreuid(uid_t, uid_t); X int setuid(uid_t); X void setusershell(void); X! int sleep(int); X void swab(const void *restrict, void *restrict, ssize_t); X int symlink(const char *, const char *); X void sync(void); X*************** X*** 124,134 **** X char *ttyname(int); X unsigned ualarm(unsigned, unsigned); X int unlink(const char *); X! void usleep(unsigned); X pid_t vfork(void); X ssize_t write(int, const void *, size_t); X! X! extern char *optarg; /* getopt(3) external variables */ X! extern int opterr, optind, optopt; X! X #endif /* !_UNISTD_H_ */ X--- 136,143 ---- X char *ttyname(int); X unsigned ualarm(unsigned, unsigned); X int unlink(const char *); X! void usleep(long); X pid_t vfork(void); X ssize_t write(int, const void *, size_t); X! ssize_t writev(int, const struct iovec *, int); X #endif /* !_UNISTD_H_ */ X*** ./usr/include/ctype.h.old Sun Dec 14 20:11:05 1986 X--- ./usr/include/ctype.h Mon Jan 26 12:37:42 2026 X*************** X*** 1,28 **** X! /* ctype.h 4.2 85/09/04 */ X X! #define _U 01 X! #define _L 02 X! #define _N 04 X! #define _S 010 X! #define _P 020 X! #define _C 040 X! #define _X 0100 X! #define _B 0200 X X extern char _ctype_[]; X X #define isalpha(c) ((_ctype_+1)[c]&(_U|_L)) X! #define isupper(c) ((_ctype_+1)[c]&_U) X! #define islower(c) ((_ctype_+1)[c]&_L) X #define isdigit(c) ((_ctype_+1)[c]&_N) X- #define isxdigit(c) ((_ctype_+1)[c]&(_N|_X)) X- #define isspace(c) ((_ctype_+1)[c]&_S) X- #define ispunct(c) ((_ctype_+1)[c]&_P) X- #define isalnum(c) ((_ctype_+1)[c]&(_U|_L|_N)) X- #define isprint(c) ((_ctype_+1)[c]&(_P|_U|_L|_N|_B)) X #define isgraph(c) ((_ctype_+1)[c]&(_P|_U|_L|_N)) X! #define iscntrl(c) ((_ctype_+1)[c]&_C) X! #define isascii(c) ((unsigned)(c)<=0177) X! #define toupper(c) ((c)-'a'+'A') X! #define tolower(c) ((c)-'A'+'a') X #define toascii(c) ((c)&0177) X--- 1,53 ---- X! /* ctype.h 4.3 (2.11BSD) 2026/1/26 */ X X! #ifndef _CTYPE_H_ X! #define _CTYPE_H_ X X+ /* X+ * Prototypes. Must be located before the macros that defines the same X+ * functionality. Specified in ISO C. X+ */ X+ int isalnum(int c); X+ int isalpha(int c); X+ int isblank(int c); X+ int iscntrl(int c); X+ int isdigit(int c); X+ int isgraph(int c); X+ int islower(int c); X+ int isprint(int c); X+ int ispunct(int c); X+ int isspace(int c); X+ int isupper(int c); X+ int isxdigit(int c); X+ int tolower(int c); X+ int toupper(int c); X+ X+ #define _U 01 /* A-Z */ X+ #define _L 02 /* a-z */ X+ #define _N 04 /* 0-9 */ X+ #define _S 010 /* ' '\f\n\r\t\v */ X+ #define _P 020 /* !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ */ X+ #define _C 040 /* \0-\037\177 */ X+ #define _X 0100 /* A-Fa-f */ X+ #define _B 0200 /* ' ' */ X+ X extern char _ctype_[]; X X+ /* Macros to optimize some of the functions above */ X+ #define isalnum(c) ((_ctype_+1)[c]&(_U|_L|_N)) X #define isalpha(c) ((_ctype_+1)[c]&(_U|_L)) X! #define iscntrl(c) ((_ctype_+1)[c]&_C) X #define isdigit(c) ((_ctype_+1)[c]&_N) X #define isgraph(c) ((_ctype_+1)[c]&(_P|_U|_L|_N)) X! #define islower(c) ((_ctype_+1)[c]&_L) X! #define isprint(c) ((_ctype_+1)[c]&(_P|_U|_L|_N|_B)) X! #define ispunct(c) ((_ctype_+1)[c]&_P) X! #define isspace(c) ((_ctype_+1)[c]&_S) X! #define isupper(c) ((_ctype_+1)[c]&_U) X! #define isxdigit(c) ((_ctype_+1)[c]&(_N|_X)) X! X! /* Historical macros */ X #define toascii(c) ((c)&0177) X+ #define isascii(c) ((unsigned)(c)<=0177) X+ X+ #endif /* !_CTYPE_H_ */ X*** ./usr/include/stdint.h.old Fri Jan 21 14:08:16 2022 X--- ./usr/include/stdint.h Fri Sep 18 06:10:50 2026 X*************** X*** 1,33 **** X /* X * Public domain - 2002/1/30 - sms X * X! * @(#)stdint.h 1.1 (2.11BSD) 2022/1/21 X */ X X #ifndef _STDINT_H_ X #define _STDINT_H_ X X! /* Exact-size types */ X! typedef char int8_t; X! typedef unsigned char uint8_t; X! typedef int int16_t; X! typedef unsigned int uint16_t; X! typedef long int32_t; X! typedef unsigned long uint32_t; X #ifdef notyet X! typedef long long int64_t; X typedef unsigned long long uint64_t; X #endif X X! /* BSD compat types */ X! typedef uint8_t u_int8_t; X! typedef uint16_t u_int16_t; X! typedef uint32_t u_int32_t; X #ifdef notyet X! typedef uint64_t u_int64_t; X #endif X X! typedef int intptr_t; X typedef unsigned int uintptr_t; X X #endif /* _STDINT_H_ */ X--- 1,137 ---- X /* X * Public domain - 2002/1/30 - sms X * X! * @(#)stdint.h 1.2 (2.11BSD) 2026/1/26 X */ X X #ifndef _STDINT_H_ X #define _STDINT_H_ X X! /* X! * Note about 64-bit types: X! * C99 requires the presence of 64-bit types (in some form), but currently X! * the pdp11 compiler do not support them (long long is mapped to long). X! * They are #ifdef'd out here so that programs that want them will X! * fail in compilation. X! * The 64-bit macros are however present, since they cannot cause any problem. X! */ X! X! /* C99 7.18.1.1 Exact-width integer types */ X! typedef char int8_t; X! typedef unsigned char uint8_t; X! typedef int int16_t; X! typedef unsigned int uint16_t; X! typedef long int32_t; X! typedef unsigned long uint32_t; X #ifdef notyet X! typedef long long int64_t; X typedef unsigned long long uint64_t; X #endif X X! /* C99 7.18.1.2 Minimum-width integer types */ X! typedef int8_t int_least8_t; X! typedef uint8_t uint_least8_t; X! typedef int16_t int_least16_t; X! typedef uint16_t uint_least16_t; X! typedef int32_t int_least32_t; X! typedef uint32_t uint_least32_t; X #ifdef notyet X! typedef int64_t int_least64_t; X! typedef uint64_t uint_least64_t; X #endif X X! /* C99 7.18.1.3 Fastest minimum-width integer types */ X! typedef int8_t int_fast8_t; X! typedef uint8_t uint_fast8_t; X! typedef int16_t int_fast16_t; X! typedef uint16_t uint_fast16_t; X! typedef int32_t int_fast32_t; X! typedef uint32_t uint_fast32_t; X! #ifdef notyet X! typedef int64_t int_fast64_t; X! typedef uint64_t uint_fast64_t; X! #endif X! X! /* C99 7.18.1.4 Integer types capable of holding object pointers */ X! typedef int intptr_t; X typedef unsigned int uintptr_t; X+ X+ /* C99 7.18.1.5 Greatest-width integer types */ X+ typedef int32_t intmax_t; /* XXX int64_t - change below too */ X+ typedef uint32_t uintmax_t; /* XXX uint64_t - change below too */ X+ X+ /* C99 7.18.3 other integer types */ X+ typedef unsigned int sig_atomic_t; X+ X+ /* BSD compat types */ X+ typedef uint8_t u_int8_t; X+ typedef uint16_t u_int16_t; X+ typedef uint32_t u_int32_t; X+ #ifdef notyet X+ typedef uint64_t u_int64_t; X+ #endif X+ X+ /* C99 7.18.2 Limits of specified-width integer types */ X+ #define INT8_MIN (-0x7f-1) /* int8_t */ X+ #define INT16_MIN (-0x7fff-1) /* int16_t */ X+ #define INT32_MIN (-0x7fffffffL-1) /* int32_t */ X+ #define INT64_MIN (-0x7fffffffffffffffLL-1) /* int64_t */ X+ #define INT8_MAX 0x7f /* int8_t */ X+ #define INT16_MAX 0x7fff /* int16_t */ X+ #define INT32_MAX 0x7fffffffL /* int32_t */ X+ #define INT64_MAX 0x7fffffffffffffffLL /* int64_t */ X+ #define UINT8_MAX 0xffU /* uint8_t */ X+ #define UINT16_MAX 0xffffU /* uint16_t */ X+ #define UINT32_MAX 0xffffffffUL /* uint32_t */ X+ #define UINT64_MAX 0xffffffffffffffffULL /* uint64_t */ X+ #define INT_LEAST8_MIN (-0x7f-1) /* int_least8_t */ X+ #define INT_LEAST16_MIN (-0x7fff-1) /* int_least16_t */ X+ #define INT_LEAST32_MIN (-0x7fffffffL-1) /* int_least32_t */ X+ #define INT_LEAST64_MIN (-0x7fffffffffffffffLL-1) /* int_least64_t */ X+ #define INT_LEAST8_MAX 0x7f /* int_least8_t */ X+ #define INT_LEAST16_MAX 0x7fff /* int_least16_t */ X+ #define INT_LEAST32_MAX 0x7fffffffL /* int_least32_t */ X+ #define INT_LEAST64_MAX 0x7fffffffffffffffLL /* int_least64_t */ X+ #define UINT_LEAST8_MAX 0xffU /* uint_least8_t */ X+ #define UINT_LEAST16_MAX 0xffffU /* uint_least16_t */ X+ #define UINT_LEAST32_MAX 0xffffffffUL /* uint_least32_t */ X+ #define UINT_LEAST64_MAX 0xffffffffffffffffULL /* uint_least64_t */ X+ #define INT_FAST8_MIN (-0x7f-1) /* int_fast8_t */ X+ #define INT_FAST16_MIN (-0x7fff-1) /* int_fast16_t */ X+ #define INT_FAST32_MIN (-0x7fffffffL-1) /* int_fast32_t */ X+ #define INT_FAST64_MIN (-0x7fffffffffffffffLL-1) /* int_fast64_t */ X+ #define INT_FAST8_MAX 0x7f /* int_fast8_t */ X+ #define INT_FAST16_MAX 0x7fff /* int_fast16_t */ X+ #define INT_FAST32_MAX 0x7fffffffL /* int_fast32_t */ X+ #define INT_FAST64_MAX 0x7fffffffffffffffLL /* int_fast64_t */ X+ #define UINT_FAST8_MAX 0xffU /* uint_fast8_t */ X+ #define UINT_FAST16_MAX 0xffffU /* uint_fast16_t */ X+ #define UINT_FAST32_MAX 0xffffffffUL /* uint_fast32_t */ X+ #define UINT_FAST64_MAX 0xffffffffffffffffULL /* uint_fast64_t */ X+ #define INTPTR_MIN (-0x7fff-1) /* intptr_t */ X+ #define INTPTR_MAX 0x7fff /* intptr_t */ X+ #define UINTPTR_MAX 0xffffU /* uintptr_t */ X+ #define INTMAX_MIN (-0x7fffffffL-1) /* intmax_t */ X+ #define INTMAX_MAX 0x7fffffffL /* intmax_t */ X+ #define UINTMAX_MAX 0xffffffffUL /* uintmax_t */ X+ X+ /* C99 7.18.3 Limits of other integer types */ X+ #define PTRDIFF_MIN (-0x7fff-1) /* ptrdiff_t */ X+ #define PTRDIFF_MAX 0x7fff /* ptrdiff_t */ X+ #define SIG_ATOMIC_MIN 0xffffU /* sig_atomic_t */ X+ #define SIG_ATOMIC_MAX 0xffffU /* sig_atomic_t */ X+ #define SIZE_MAX 0xffffU /* size_t */ X+ X+ /* C99 7.18.4 Macros for integer constants */ X+ #define INT8_C(c) c X+ #define INT16_C(c) c X+ #define INT32_C(c) c ## L X+ #define INT64_C(c) c ## LL X+ #define UINT8_C(c) c ## U X+ #define UINT16_C(c) c ## U X+ #define UINT32_C(c) c ## UL X+ #define UINT64_C(c) c ## ULL X+ #define INTMAX_C(c) c ## LL X+ #define UINTMAX_C(c) c ## ULL X X #endif /* _STDINT_H_ */ X*** ./usr/include/fcntl.h.old Tue Nov 29 22:30:46 1994 X--- ./usr/include/fcntl.h Fri May 8 08:43:47 2026 X*************** X*** 35,48 **** X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X! * @(#)fcntl.h 8.3.1 (2.11BSD GTE) 11/25/94 X * X! * Copied from 4.4-Lite and modified for 2.11BSD. The modifications consisted X! * of removing: function prototypes (I don't like them, the compiler does not X! * support them, and it would mean dragging in cdefs.h to leave them in here), X! * #ifndef _POSIX_SOURCE lines (silly) and record locking related definitions X! * If anyone adds any of the above it will be easy enough to modify this file. X! * In the meantime why bog down (or blow up) cpp any further? X */ X X #ifndef _FCNTL_H_ X--- 35,43 ---- X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X! * @(#)fcntl.h 8.3.2 (2.11BSD) 2026/5/8 X * X! * Copied from 4.4-Lite and modified for 2.11BSD. X */ X X #ifndef _FCNTL_H_ X*************** X*** 56,61 **** X--- 51,61 ---- X X #ifndef KERNEL X #include X+ X+ int creat(const char *, mode_t); X+ int open(char *, int, ...); X+ int fcntl(int, int, ...); X+ int flock(int, int); X #endif X X /* X*** ./usr/include/stdlib.h.old Fri Jan 12 20:58:21 1996 X--- ./usr/include/stdlib.h Thu Sep 17 09:52:40 2026 X*************** X*** 30,51 **** X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X! * @(#)stdlib.h 8.3.2 (2.11BSD) 1996/1/12 X * X! * Adapted from the 4.4-Lite CD. The odds of a ANSI C compiler for 2.11BSD X! * being slipped under the door are not distinguishable from 0 - so the X! * prototypes and ANSI ifdefs have been removed from this file. X! * X! * Some functions (strtoul for example) do not exist yet but are retained in X! * this file because additions to libc.a are anticipated shortly. X */ X X #ifndef _STDLIB_H_ X #define _STDLIB_H_ X X! /* #include */ X X! #ifdef notyet X typedef struct { X int quot; /* quotient */ X int rem; /* remainder */ X--- 30,51 ---- X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X! * @(#)stdlib.h 8.3.3 (2.11BSD) 2026/9/16 X * X! * Adapted from the 4.4-Lite CD X */ X X #ifndef _STDLIB_H_ X #define _STDLIB_H_ X X! #include X X! /* X! * XXX - do this here to avoid programs having to include unistd.h first X! * XXX - to get size_t X! */ X! #include X! X typedef struct { X int quot; /* quotient */ X int rem; /* remainder */ X*************** X*** 55,61 **** X long quot; /* quotient */ X long rem; /* remainder */ X } ldiv_t; X- #endif X X #ifndef NULL X #define NULL 0 X--- 55,60 ---- X*************** X*** 66,110 **** X X #define RAND_MAX 0x7fff X X! void abort(); X! int abs(); X! int atexit(); X! double atof(); X! int atoi(); X! long atol(); X! void *calloc(); X! void exit(); X! void free(); X! char *getenv(); X! void *malloc(); X! void qsort(); X! int rand(); X! void *realloc(); X! void srand(); X! double strtod(); X! long strtol(); X! unsigned long strtoul(); X! int system(); X X! int putenv(); X! int setenv(); X X! void *alloca(); X X- int daemon(); X- char *devname(); X- int getloadavg(); X- X extern char *optarg; /* getopt(3) external variables */ X extern int opterr, optind, optopt; X! int getopt(); X X extern char *suboptarg; /* getsubopt(3) external variable */ X! int getsubopt(); X X! long random(); X! char *setstate(); X! void srandom(); X! void unsetenv(); X! X #endif /* _STDLIB_H_ */ X--- 65,111 ---- X X #define RAND_MAX 0x7fff X X! void abort(void); X! int abs(int); X! int atexit(void (*)(void)); X! double atof(const char *); X! int atoi(const char *); X! long atol(const char *); X! void *calloc(size_t, size_t); X! void exit(int); X! void free(void *); X! char *getenv(const char *); X! void *malloc(size_t); X! void qsort(void *, size_t, size_t, int (*)(const void *, const void *)); X! int rand(void); X! void *realloc(void *, size_t); X! void srand(unsigned); X! double strtod(const char *, char **); X! long strtol(const char *, char **, int); X! unsigned long strtoul(const char *, char **, int); X! int system(const char *); X! char *mktemp(char *); X! int mkstemp(char *); X! int putenv(const char *); X! int setenv(const char *, char *, int); X X! void *alloca(size_t); X X! int daemon(int, int); X! char *devname(dev_t, mode_t); X! void devname_close(void); /* 2.11BSD 35th anniversary edition */ X! int swapdevname(char *, int); /* 2.11BSD 35th anniversary edition */ X! int getloadavg(double *, int); X X extern char *optarg; /* getopt(3) external variables */ X extern int opterr, optind, optopt; X! getopt(int, char * const *, const char *); X X extern char *suboptarg; /* getsubopt(3) external variable */ X! int getsubopt(char **, char * const *, char **); X X! long random(void); X! char *setstate(char *); X! void srandom(unsigned); X! void unsetenv(const char *); X #endif /* _STDLIB_H_ */ X*** ./usr/include/pwd.h.old Sat Nov 16 20:56:22 1996 X--- ./usr/include/pwd.h Sun Jul 12 16:24:34 2026 X*************** X*** 14,22 **** X * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X * X! * @(#)pwd.h 4.3.1 (2.11BSD) 1996/11/16 X */ X X #define _PATH_PASSWD "/etc/passwd" X #define _PATH_MASTERPASSWD "/etc/master.passwd" X #define _PATH_MKPASSWD "/sbin/mkpasswd" X--- 14,25 ---- X * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X * X! * @(#)pwd.h 4.3.2 (2.11BSD) 2026/7/12 X */ X X+ #ifndef _PWD_H_ X+ #define _PWD_H_ X+ X #define _PATH_PASSWD "/etc/passwd" X #define _PATH_MASTERPASSWD "/etc/master.passwd" X #define _PATH_MKPASSWD "/sbin/mkpasswd" X*************** X*** 41,43 **** X--- 44,47 ---- X struct passwd *getpwent(), *getpwuid(), *getpwnam(); X void endpwent(), setpwfile(); X int setpassent(), setpwent(); X+ #endif /* !_PWD_H_ */ X*** ./usr/include/utmp.h.old Wed Nov 27 23:12:57 1996 X--- ./usr/include/utmp.h Tue Jul 21 19:40:24 2026 X*************** X*** 14,20 **** X * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X * X! * @(#)utmp.h 5.6.1 (2.11BSD) 1996/11/27 X */ X X #define _PATH_UTMP "/var/run/utmp" X--- 14,20 ---- X * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X * X! * @(#)utmp.h 5.6.2 (2.11BSD) 2026/7/21 X */ X X #define _PATH_UTMP "/var/run/utmp" X*************** X*** 27,31 **** X char ut_line[UT_LINESIZE]; X char ut_name[UT_NAMESIZE]; X char ut_host[UT_HOSTSIZE]; X! long ut_time; X }; X--- 27,31 ---- X char ut_line[UT_LINESIZE]; X char ut_name[UT_NAMESIZE]; X char ut_host[UT_HOSTSIZE]; X! time_t ut_time; X }; X*** ./usr/include/signal.h.old Fri Jan 21 14:07:37 2022 X--- ./usr/include/signal.h Mon Sep 21 22:58:15 2026 X*************** X*** 3,12 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)signal.h 1.3 (2.11BSD) 2022/1/21 X */ X X! #ifndef NSIG X #define NSIG 32 X X #define SIGHUP 1 /* hangup */ X--- 3,14 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)signal.h 1.4 (2.11BSD) 2026/9/21 X */ X X! #ifndef _SIGNAL_H_ X! #define _SIGNAL_H_ X! X #define NSIG 32 X X #define SIGHUP 1 /* hangup */ X*************** X*** 44,57 **** X #define SIGUSR1 30 /* user defined signal 1 */ X #define SIGUSR2 31 /* user defined signal 2 */ X X #define SIG_ERR (int (*)())-1 X #define SIG_DFL (int (*)())0 X #define SIG_IGN (int (*)())1 X! X! #ifndef KERNEL X! int (*signal())(); X #endif X X typedef unsigned long sigset_t; X X /* X--- 46,63 ---- X #define SIGUSR1 30 /* user defined signal 1 */ X #define SIGUSR2 31 /* user defined signal 2 */ X X+ #ifdef KERNEL X #define SIG_ERR (int (*)())-1 X #define SIG_DFL (int (*)())0 X #define SIG_IGN (int (*)())1 X! #else X! #define SIG_ERR (void (*)())-1 X! #define SIG_DFL (void (*)())0 X! #define SIG_IGN (void (*)())1 X #endif X X+ typedef void (*sig_t)(int); /* type of signal function */ X+ X typedef unsigned long sigset_t; X X /* X*************** X*** 58,64 **** X * Signal vector "template" used in sigaction call. X */ X struct sigaction { X! int (*sa_handler)(); /* signal handler */ X sigset_t sa_mask; /* signal mask to apply */ X int sa_flags; /* see signal options below */ X }; X--- 64,70 ---- X * Signal vector "template" used in sigaction call. X */ X struct sigaction { X! sig_t sa_handler; /* signal handler */ X sigset_t sa_mask; /* signal mask to apply */ X int sa_flags; /* see signal options below */ X }; X*************** X*** 75,82 **** X #define SIG_UNBLOCK 2 /* unblock specified signal set */ X #define SIG_SETMASK 3 /* set specified signal set */ X X- typedef int (*sig_t)(); /* type of signal function */ X- X /* X * Structure used in sigaltstack call. X */ X--- 81,86 ---- X*************** X*** 93,99 **** X * Signal vector "template" used in sigvec call. X */ X struct sigvec { X! int (*sv_handler)(); /* signal handler */ X long sv_mask; /* signal mask to apply */ X int sv_flags; /* see signal options below */ X }; X--- 97,103 ---- X * Signal vector "template" used in sigvec call. X */ X struct sigvec { X! sig_t sv_handler; /* signal handler */ X long sv_mask; /* signal mask to apply */ X int sv_flags; /* see signal options below */ X }; X*************** X*** 141,152 **** X #define sigismember(set, signo) ((*(set) & (1L << ((signo) - 1))) != 0) X X #ifndef KERNEL X extern char *sys_siglist[]; X X! extern long sigblock(long); X! extern long sigsetmask(long); X X! #define BADSIG SIG_ERR X! #endif X X! #endif /* NSIG */ X--- 145,172 ---- X #define sigismember(set, signo) ((*(set) & (1L << ((signo) - 1))) != 0) X X #ifndef KERNEL X+ #include /* for pid_t */ X+ X+ #define BADSIG SIG_ERR X extern char *sys_siglist[]; X X! sig_t signal(int, sig_t); X X! int kill(pid_t, int); X! int killpg(pid_t, int); X! void psignal(unsigned int, const char *); X! int sigaction(int, const struct sigaction *restrict, struct sigaction *restrict); X! int sigaltstack(const struct sigaltstack *restrict, struct sigaltstack *restrict); X! long sigblock(long); X! int siginterrupt(int, int); X! int sigpause(long); X! int sigpending(sigset_t *); X! int sigprocmask(int, const sigset_t *restrict, sigset_t *restrict); X! long sigsetmask(long); X! int sigstack(const struct sigstack *restrict, struct sigstack *restrict); X! int sigsuspend(const sigset_t *); X! int sigvec(int, struct sigvec *, struct sigvec *); X! int sigwait(const sigset_t *restrict, int *restrict); X! #endif /* KERNEL */ X X! #endif /* _SIGNAL_H_ */ X*** ./usr/ingres/source/equel/prtout.c.old Sun Feb 5 05:09:11 1995 X--- ./usr/ingres/source/equel/prtout.c Sun May 17 20:11:54 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)prtout.c 1.1 (2.11BSD) 2026/5/17"; X+ #endif X+ X # X # include X X*************** X*** 406,417 **** X { X if (In_quote) X { X! puts("\");\nIIwrite(\"", Out_file); X Charcnt = 9; X } X else X { X! puts("\\\n", Out_file); X Charcnt = 0; X } X } X--- 410,421 ---- X { X if (In_quote) X { X! fputs("\");\nIIwrite(\"", Out_file); X Charcnt = 9; X } X else X { X! fputs("\\\n", Out_file); X Charcnt = 0; X } X } X*************** X*** 422,442 **** X } X Lineout++; X } X- } X- X- /* X- ** PUTS -- put a string on an output file using putc() X- ** X- */ X- X- puts(s, file) X- char *s; X- FILE *file; X- { X- register char *sp; X- register FILE *f; X- X- f = file; X- for (sp = s; *sp; ) X- putc(*sp++, f); X } X--- 426,429 ---- X*** ./usr/ingres/source/monitor/branch.c.old Sat Feb 4 15:19:52 1995 X--- ./usr/ingres/source/monitor/branch.c Sun May 17 18:53:42 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)branch.c 1.1 (2.11BSD) 2026/5/17"; X+ #endif X+ X # include X X # include "../ingres.h" X*************** X*** 73,83 **** X register char c; X X smove(label, target); X! if (rewind(Input)) X! { X! printf("Cannot branch on a terminal\n"); X! return (1); X! } X X /* clear(0); */ X /* search for the label */ X--- 77,83 ---- X register char c; X X smove(label, target); X! rewind(Input); X X /* clear(0); */ X /* search for the label */ X*** ./usr/ingres/source/monitor/main.c.old Sat Feb 18 05:35:52 1995 X--- ./usr/ingres/source/monitor/main.c Sun May 17 20:20:19 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)main.c 1.1 (2.11BSD) 2026/5/17"; X+ #endif X+ X # include X X # include "../ingres.h" X*************** X*** 7,12 **** X--- 11,18 ---- X # include "monitor.h" X X # define ERRDELIM '~' X+ X+ extern char *ztack(); X X /* X ** INTERACTIVE TERMINAL MONITOR X*** ./usr/ingres/source/ovqp/findsimps.c.old Wed Mar 1 14:37:05 1995 X--- ./usr/ingres/source/ovqp/findsimps.c Sun May 17 20:02:32 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)findsimps.c 1.1 (2.11BSD) 2026/5/17"; X+ #endif X+ X # include "../ingres.h" X # include "../symbol.h" X # include "../tree.h" X*************** X*** 265,273 **** X return (-1); /* ok */ X } X X! X! struct symbol *cpsym(const, len, op) X! struct symbol *const; X int len; X int op; X X--- 269,276 ---- X return (-1); /* ok */ X } X X! struct symbol *cpsym(cons, len, op) X! struct symbol *cons; X int len; X int op; X X*************** X*** 294,300 **** X s = (struct symbol *) need(Ovqpbuf, op == opLTLE ? i + 3 : i + 2); X s->type = CHAR; X sp = (char *) s->value; X! cp = (char *) const->value; X X while (i--) X { X--- 297,303 ---- X s = (struct symbol *) need(Ovqpbuf, op == opLTLE ? i + 3 : i + 2); X s->type = CHAR; X sp = (char *) s->value; X! cp = (char *) cons->value; X X while (i--) X { X*************** X*** 341,348 **** X } X X X! add_simp(const, rel, attno) X! struct symbol *const; X int rel; X int attno; X X--- 344,351 ---- X } X X X! add_simp(cons, rel, attno) X! struct symbol *cons; X int rel; X int attno; X X*************** X*** 362,368 **** X s = (struct symbol *) &Simp[Nsimp++]; X X ((struct simp *)s)->att = attno; X! ((struct simp *)s)->const = const; X ((struct simp *)s)->relop = rel; X X # ifdef xOTR1 X--- 365,371 ---- X s = (struct symbol *) &Simp[Nsimp++]; X X ((struct simp *)s)->att = attno; X! ((struct simp *)s)->cons = cons; X ((struct simp *)s)->relop = rel; X X # ifdef xOTR1 X*************** X*** 382,387 **** X X s = ss; X printf("simp:relop=%d,att=%d,val=", s->relop, s->att); X! prsym(s->const); X # endif X } X--- 385,390 ---- X X s = ss; X printf("simp:relop=%d,att=%d,val=", s->relop, s->att); X! prsym(s->cons); X # endif X } X*** ./usr/ingres/source/ovqp/strategy.h.old Tue Dec 16 20:38:24 1980 X--- ./usr/ingres/source/ovqp/strategy.h Sun May 17 20:01:46 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)strategy.h 1.1 (2.11BSD) 2026/5/17"; X+ #endif X+ X # define opGTGE opGT X # define opLTLE opLT X struct simp X*************** X*** 4,10 **** X { X int relop; /* value of relop in simp clause*/ X int att; /* attno of attribute */ X! struct symbol *const; /* pointer to constant value symbol */ X } Simp[NSIMP]; X X int Nsimp; /* Current no. entries in Simp vector */ X--- 8,14 ---- X { X int relop; /* value of relop in simp clause*/ X int att; /* attno of attribute */ X! struct symbol *cons; /* pointer to constant value symbol */ X } Simp[NSIMP]; X X int Nsimp; /* Current no. entries in Simp vector */ X*** ./usr/ingres/source/ovqp/key.c.old Wed Mar 1 14:40:38 1995 X--- ./usr/ingres/source/ovqp/key.c Sun May 17 20:03:30 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)key.c 1.1 (2.11BSD) 2026/5/17"; X+ #endif X+ X # include "../ingres.h" X # include "../aux.h" X # include "../symbol.h" X*************** X*** 47,53 **** X { X if (s->relop == opEQ && s->att == d) X { X! k->keysym = s->const; X k->dnumber = (a->sec_index == TRUE) ? i+1 : d; X k++; X # ifdef xOTR1 X--- 51,57 ---- X { X if (s->relop == opEQ && s->att == d) X { X! k->keysym = s->cons; X k->dnumber = (a->sec_index == TRUE) ? i+1 : d; X k++; X # ifdef xOTR1 X*************** X*** 54,60 **** X if (tTf(25, 1)) X { X printf("exact key on dom %d\tvalue=", d); X! prsym(s->const); X } X # endif X break; X--- 58,64 ---- X if (tTf(25, 1)) X { X printf("exact key on dom %d\tvalue=", d); X! prsym(s->cons); X } X # endif X break; X*************** X*** 134,140 **** X if (tTf(25, 6)) X printf("low key on dom %d\t", d); X # endif X! low->keysym = s->const; X low->dnumber = sec_indx ? i+1 : d; X low++; X } X--- 138,144 ---- X if (tTf(25, 6)) X printf("low key on dom %d\t", d); X # endif X! low->keysym = s->cons; X low->dnumber = sec_indx ? i+1 : d; X low++; X } X*************** X*** 145,157 **** X if (tTf(25, 6)) X printf("high key on dom %d\t", d); X # endif X! high->keysym = s->const; X high->dnumber = sec_indx ? i+1 : d; X high++; X } X # ifdef xOTR1 X if (tTf(25, 6)) X! prsym(s->const); X # endif X if (i == 0) X success = TRUE; X--- 149,161 ---- X if (tTf(25, 6)) X printf("high key on dom %d\t", d); X # endif X! high->keysym = s->cons; X high->dnumber = sec_indx ? i+1 : d; X high++; X } X # ifdef xOTR1 X if (tTf(25, 6)) X! prsym(s->cons); X # endif X if (i == 0) X success = TRUE; X*** ./usr/ingres/source/support/copydb.q.old Sat May 6 20:46:24 1995 X--- ./usr/ingres/source/support/copydb.q Sun May 17 20:18:53 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)copydb.q 1.1 (2.11BSD) 2026/5/17"; X+ #endif X+ X # include X X # define MAXNAME 13 /* one more for the null */ X*************** X*** 12,17 **** X--- 16,23 ---- X ##char Usercode[3]; /* two char usercode plus null */ X char **Wanted; X int Status; X+ X+ extern char *ztack(); X X FILE *Ifile, *Ofile; X X*** ./usr/ingres/source/iutil/getuser.c.old Sat Feb 4 09:54:23 1995 X--- ./usr/ingres/source/iutil/getuser.c Mon May 18 06:01:33 2026 X*************** X*** 1,7 **** X--- 1,13 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)getuser.c 1.1 (2.11BSD) 2026/5/18"; X+ #endif X+ X # include X X # include "../ingres.h" X # include "../aux.h" X+ X+ extern char *ztack(); X X /* X ** GET LINE FROM USER FILE X*** ./usr/ingres/source/iutil/getnuser.c.old Sat Feb 4 09:51:11 1995 X--- ./usr/ingres/source/iutil/getnuser.c Mon May 18 06:05:57 2026 X*************** X*** 1,7 **** X--- 1,13 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)getnuser.c 1.1 (2.11BSD) 2026/5/18"; X+ #endif X+ X # include X X # include "../ingres.h" X # include "../aux.h" X+ X+ extern char *ztack(); X X /* X ** GETNUSER -- get line from user file based on name X*** ./usr/ingres/source/iutil/initucode.c.old Sun Feb 26 14:59:00 1995 X--- ./usr/ingres/source/iutil/initucode.c Mon May 18 06:04:36 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)getuser.c 1.1 (2.11BSD) 2026/5/18"; X+ #endif X+ X # include X X # include "../ingres.h" X*************** X*** 5,10 **** X--- 9,16 ---- X # include "../unix.h" X # include "../access.h" X # include "../lock.h" X+ X+ extern char *ztack(); X X /* X ** INITUCODE -- initialize standalone process X*** ./usr/ingres/source/yyyacc/y5.c.old Sat Feb 18 08:05:15 1995 X--- ./usr/ingres/source/yyyacc/y5.c Mon May 18 08:42:00 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)y5.c 1.1 (2.11BSD) 2026/5/18"; X+ #endif X+ X # include X /* fake portable I/O routines, for those X sites so backward as to not have the X*************** X*** 6,43 **** X FILE *cin, *cout; X FILE *Fin, *Fout; X X! copen( s, c ) char *s; { X! FILE *f; X X! if( c == 'r' ){ X! Fin = f = fopen( s, "r" ); X! } X X! else if( c == 'a' ){ X! f = fopen( s, "a" ); X! } X X- else { /* c == w */ X- f = fopen( s, "w" ); X- } X- X- return( f ); X- } X- X- cflush(x){ /* fake! sets file to x */ X fflush(Fout); X Fout = x; X- } X- X- system(){ X- error( "The function \"system\" is called" ); X- } X- X- cclose(i){ X- fclose(i); X- } X- X- cexit(i){ X- fflush(Fout); X- exit(i); X } X--- 10,41 ---- X FILE *cin, *cout; X FILE *Fin, *Fout; X X! FILE * X! copen(s, c) X! char *s; int c; X! { X! FILE *f; X X! switch (c) X! { X! case 'r': X! Fin = f = fopen( s, "r" ); X! break; X! case 'a': X! f = fopen( s, "a" ); X! case 'w': X! f = fopen( s, "w" ); X! break; X! default: X! error("bad copen"); X! } X! return(f); X! } X X! cflush(x) X! FILE *x; X! { /* fake! sets file to x */ X X fflush(Fout); X Fout = x; X } X*** ./usr/ingres/source/yyyacc/yyy2.c.old Sat Feb 18 08:05:20 1995 X--- ./usr/ingres/source/yyyacc/yyy2.c Mon May 18 08:15:06 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)yyy2.c 1.1 (2.11BSD) 2026/5/18"; X+ #endif X+ X # include X # include "dextern" X X*************** X*** 51,59 **** X if (Foutput == 0) X Foutput = copen("/dev/null", 'w'); X ftable = copen( oflag ? "yacc.tmp" : "y.tab.c" , 'w' ); X! if( ftable<0 ) error( "cannot open table file" ); X! if( argc > 1 ) cin = copen( argv[1], 'r' ); X! if( cin < 0 ) error( "cannot open input" ); X settab(); X fprintf(Fout, "#\n"); X ctokn = "$end"; X--- 55,63 ---- X if (Foutput == 0) X Foutput = copen("/dev/null", 'w'); X ftable = copen( oflag ? "yacc.tmp" : "y.tab.c" , 'w' ); X! if( ftable == NULL ) error( "cannot open table file" ); X! if( argc > 1 ) cin = copen(argv[1], 'r'); X! if( cin == NULL ) error( "cannot open input" ); X settab(); X fprintf(Fout, "#\n"); X ctokn = "$end"; X*** ./usr/ingres/source/yyyacc/yyy1.c.old Sat Feb 18 08:05:17 1995 X--- ./usr/ingres/source/yyyacc/yyy1.c Mon May 18 10:43:07 2026 X*************** X*** 1,7 **** X--- 1,12 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)yyy1.c 1.1 (2.11BSD) 2026/5/18"; X+ #endif X+ X # include X # include "dextern" X X extern FILE *Fout, *Fin; X+ X /* * * * * y a c c * * * * */ X X /* features to be fixed up ... X*************** X*** 34,40 **** X Fin = stdin; X Fout = stdout; X X- whereami(); X setup(argc,argv); /* initialize and read productions */ X tbitset = (nterms+16)/16; X cpres(); /* make table of which productions yield a given nonterminal */ X--- 39,44 ---- X*************** X*** 47,112 **** X windup(); X } X X- whereami(){ /* sets the variable machine to UNIX, GCOS, or IBM */ X- X- int i; X- X- i = 1; X- i = i << 30; X- if( i == 0 ) { X- machine = UNIX; X- return; X- } X- i = i << 4; X- if( i == 0 ){ X- machine = IBM; X- return; X- } X- machine = GCOS; X- } X- X windup(){ X /* no errors, do the optimization if appropriate */ X char *cp; X- int i; X X cflush(stdout); X! if( !oflag ) cexit(0); X X- for( i=3; i<10; ++i ) cclose(i); X- switch( machine ){ X- X- case GCOS: X- if( rflag ){ X- if( Foutput==0 ) system( "./yopt -r" ); X- else system( "./yopt -rv" ); X- } X- else { X- if( Foutput==0 ) system( "./yopt" ); X- else system( "./yopt -v" ); X- } X- cexit(0); /* terminate */ X- X- case UNIX: X cp = "/usr/yacc/yopti"; X! if( rflag ) execl( cp, cp, (Foutput==0)?"-r":"-rv", 0 ); X! else if( Foutput==0 ) execl( cp, cp, 0 ); X! else execl( cp, cp, "-v", 0 ); X! error( "optimization execl call fails" ); X! X! case IBM: X! if( rflag ){ X! if( Foutput==0 ) system( "MH2019.yaccopt -r" ); X! else system( "MH2019.yaccopt -rv" ); X! } X! else { X! if( Foutput==0 ) system( "MH2019.yaccopt" ); X! else system( "MH2019.yaccopt -v" ); X! } X! cexit(0); X! X! } X! X } X X settty() X--- 51,72 ---- X windup(); X } X X windup(){ X /* no errors, do the optimization if appropriate */ X char *cp; X X cflush(stdout); X! if (!oflag) X! exit(0); X X cp = "/usr/yacc/yopti"; X! if (rflag) X! execl( cp, cp, (Foutput==0)?"-r":"-rv", 0 ); X! else if (Foutput==0) X! execl( cp, cp, 0 ); X! else X! execl( cp, cp, "-v", 0 ); X! error("optimization execl call fails"); X } X X settty() X*************** X*** 191,197 **** X fprintf(Fout, "%d goto entries\n", zzgoent ); X fprintf(Fout, "%d entries saved by goto default\n", zzgobest ); X if( zzsrconf!=0 || zzrrconf!=0 ){ X! cflush( stderr ); X cout = stderr; X fprintf(Fout, "\nconflicts: "); X if( zzsrconf )fprintf(Fout, "%d shift/reduce" , zzsrconf ); X--- 151,157 ---- X fprintf(Fout, "%d goto entries\n", zzgoent ); X fprintf(Fout, "%d entries saved by goto default\n", zzgobest ); X if( zzsrconf!=0 || zzrrconf!=0 ){ X! cflush(stderr); X cout = stderr; X fprintf(Fout, "\nconflicts: "); X if( zzsrconf )fprintf(Fout, "%d shift/reduce" , zzsrconf ); X*************** X*** 201,211 **** X } X } X X! error(s,a1){ /* write out error comment */ X X int c; X ++nerrors; X! cflush( stderr ); X cout = stderr; /* set output to tty */ X fprintf(Fout, "\n fatal error: "); X fprintf(Fout, s,a1); X--- 161,174 ---- X } X } X X! /* write out error comment */ X! error(s,a1) X! char *s; X! { X X int c; X ++nerrors; X! cflush(stderr); X cout = stderr; /* set output to tty */ X fprintf(Fout, "\n fatal error: "); X fprintf(Fout, s,a1); X*************** X*** 212,218 **** X fprintf(Fout, ", line %d\n", lineno ); X if( !fatfl ) return; X summary(); X! cexit(1); X } X X arrset(s) char s[]; { X--- 175,181 ---- X fprintf(Fout, ", line %d\n", lineno ); X if( !fatfl ) return; X summary(); X! exit(1); X } X X arrset(s) char s[]; { X*************** X*** 274,287 **** X return( sub ); X } X X! prlook( pp ) int *pp;{ X! int j; X! pp = pp->lset; X! if( pp == 0 ) fprintf(Fout, "\tNULL"); X! else { X fprintf(Fout, " { " ); X! for( j=1; j<=nterms; ++j ){ X! if( (pp[j>>4]>>(j&017) )&01 != 0 ) fprintf(Fout, "%s ", symnam(j) ); X } X fprintf(Fout, "}" ); X } X--- 237,256 ---- X return( sub ); X } X X! prlook(pp) X! int *pp; X! { X! register int j; X! X! if (pp == 0) X! fprintf(Fout, "\tNULL"); X! else X! { X fprintf(Fout, " { " ); X! for (j=1; j<=nterms; ++j) X! { X! if ((pp[j>>4] >> (j&017)) & 01 != 0) X! fprintf(Fout, "%s ", symnam(j) ); X } X fprintf(Fout, "}" ); X } X*** ./usr/ingres/source/yyyacc/dextern.old Sat Feb 18 08:05:13 1995 X--- ./usr/ingres/source/yyyacc/dextern Mon May 18 08:28:40 2026 X*************** X*** 1,5 **** X! # X! /* MANIFEST CONSTANT DEFINITIONS */ X X # define NTBASE 010000 X X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dextern 1.1 (2.11BSD) 2026/5/18"; X! #endif X X # define NTBASE 010000 X X*************** X*** 77,86 **** X extern int *pempty ; /* table of nonterminals nontrivially deriving e */ X extern int nnonter ; /* the number of nonterminals */ X extern int lastred ; /* the number of the last reduction of a state */ X! extern int ftable; /* y.tab.c file */ X! extern int Foutput; /* y.output file */ X! extern int cin; /* current input file */ X! extern int cout; /* current output file */ X extern int arrndx; X extern int zzcwset; X extern int zzpairs ; X--- 78,88 ---- X extern int *pempty ; /* table of nonterminals nontrivially deriving e */ X extern int nnonter ; /* the number of nonterminals */ X extern int lastred ; /* the number of the last reduction of a state */ X! extern FILE *ftable; /* y.tab.c file */ X! extern FILE *Foutput; /* y.output file */ X! extern FILE *cin; /* current input file */ X! extern FILE *cout; /* current output file */ X! extern FILE *copen(); X extern int arrndx; X extern int zzcwset; X extern int zzpairs ; X*************** X*** 116,124 **** X extern int sflag; /* suppress crap output flag */ X extern int oflag; /* optimization flag */ X extern int ndeFout; /* number of defined symbols output */ X- X- extern int machine; X- X- # define UNIX 1 X- # define GCOS 2 X- # define IBM 3 X--- 118,120 ---- X*** ./usr/ingres/source/yyyacc/y4.c.old Sat Feb 18 08:05:15 1995 X--- ./usr/ingres/source/yyyacc/y4.c Mon May 18 08:44:18 2026 X*************** X*** 1,6 **** X # include "dextern" X X- # include X extern FILE *Fin, *Fout; X X output(){ /* print the output for the states */ X--- 1,10 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)y4.c 1.1 (2.11BSD) 2026/5/18"; X+ #endif X+ X+ #include X # include "dextern" X X extern FILE *Fin, *Fout; X X output(){ /* print the output for the states */ X*** ./usr/ingres/source/yyyacc/yyy0.c.old Sat Feb 18 08:05:16 1995 X--- ./usr/ingres/source/yyyacc/yyy0.c Mon May 18 08:32:48 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)yyy0.c 1.1 (2.11BSD) 2026/5/18"; X+ #endif X+ X # include X X # define _actsize 2000 X*************** X*** 103,106 **** X int ndeFout = 3; /* number of defined symbols output */ X int nerrors = 0; /* number of errors */ X int fatfl = 1; /* if on, error is fatal */ X- int machine; /* has a number describing the machine */ X--- 107,109 ---- X*** ./usr/ingres/source/yyyacc/yyy3.c.old Sat Feb 18 08:05:21 1995 X--- ./usr/ingres/source/yyyacc/yyy3.c Mon May 18 10:52:28 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)yyy3.c 1.1 (2.11BSD) 2026/5/18"; X+ #endif X+ X # include X # include "dextern" X X*************** X*** 21,27 **** X fatfl = 1; X if( nerrors ){ X summary(); X! cexit(1); X } X } X X--- 25,31 ---- X fatfl = 1; X if( nerrors ){ X summary(); X! exit(1); X } X } X X*************** X*** 66,72 **** X settty(); X for( i=0; i<=nnonter; i++ ){ X fprintf(Fout, "\n%s: ", nontrst[i].name ); X! prlook( pfirst[i] ); X fprintf(Fout, " %d\n", pempty[i] ); X } X } X--- 70,76 ---- X settty(); X for( i=0; i<=nnonter; i++ ){ X fprintf(Fout, "\n%s: ", nontrst[i].name ); X! prlook(pfirst[i]->lset); X fprintf(Fout, " %d\n", pempty[i] ); X } X } X*************** X*** 349,355 **** X if( wsets[j].flag ) fprintf(Fout, "flag set!\n"); X wsets[j].flag = 0; X fprintf(Fout, "\t%s", writem(&wsets[j].pitem)); X! prlook( wsets[j].ws ); X fprintf(Fout, "\n" ); X } X X--- 353,359 ---- X if( wsets[j].flag ) fprintf(Fout, "flag set!\n"); X wsets[j].flag = 0; X fprintf(Fout, "\t%s", writem(&wsets[j].pitem)); X! prlook(wsets[j].ws); X fprintf(Fout, "\n" ); X } X X*** ./usr/src/sys/pdpuba/dhu.c.old Tue Aug 12 19:36:53 2025 X--- ./usr/src/sys/pdpuba/dhu.c Tue Nov 3 10:18:44 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)dhu.c 2.4 (2.11BSD) 2025/8/112025/8/11 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)dhu.c 2.5 (2.11BSD) 2026/4/30 X */ X X /* X*************** X*** 131,137 **** X--- 131,143 ---- X if ((dhuact&(1<dhucsr = DHU_SELECT(0) | DHU_IE; X+ #ifdef simh_bug X+ /* X+ * SimH does not handle the timer correctly. Other systems, RSX/RSTS, leave X+ * the value at the default X+ */ X addr->dhutimo = dhu_def_timo; X+ #endif X dhuact |= (1<t_line].l_close)(tp, flag); X (void) dhumctl(unit, (long)DHU_BRK, DMBIC); X! (void) dhumctl(unit, DHU_OFF, DMSET); X ttyclose(tp); X if (dhu_overrun[unit]) X { X--- 210,216 ---- X return(EBADF); X (*linesw[tp->t_line].l_close)(tp, flag); X (void) dhumctl(unit, (long)DHU_BRK, DMBIC); X! (void) dhumctl(unit, (long)DHU_OFF, DMSET); X ttyclose(tp); X if (dhu_overrun[unit]) X { X*************** X*** 324,343 **** X if (tp->t_flags&RAW) X c = 0; X else X- #ifdef OLDWAY X- c = tp->t_intrc; X- #else X c = tp->t_brkc; X- #endif X } X- #if NBK > 0 X- if (tp->t_line == NETLDISC) X- { X- c &= 0x7f; X- BKINPUT(c, tp); X- } X- else X- #endif X (*linesw[tp->t_line].l_rint)(c, tp); X } X } X--- 330,337 ---- X*** ./usr/src/sys/pdpuba/dh.c.old Tue Aug 12 18:38:57 2025 X--- ./usr/src/sys/pdpuba/dh.c Thu May 14 21:41:57 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)dh.c 1.6 (2.11BSD) 2025/8/11 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)dh.c 1.7 (2.11BSD) 2026/5/14 X */ X X /* X*************** X*** 285,301 **** X if (tp->t_flags & RAW) X c = 0; X else X- #ifdef OLDWAY X- c = tp->t_intrc; X- #else X c = tp->t_brkc; /* why have brkc if not used? */ X- #endif X- #if NBK > 0 X- if (tp->t_line == NETLDISC) { X- c &= 0177; X- BKINPUT(c, tp); X- } else X- #endif X (*linesw[tp->t_line].l_rint)(c, tp); X } X } X--- 285,291 ---- X*** ./usr/src/sys/pdpuba/dhv.c.old Fri Jan 2 21:30:39 2026 X--- ./usr/src/sys/pdpuba/dhv.c Thu May 14 21:44:30 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)dhv.c 2.6 (2.11BSD) 2026/1/1 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)dhv.c 2.7 (2.11BSD) 2026/5/14 X */ X X /* X*************** X*** 333,353 **** X * the comment in dh.c X */ X if (!(tp->t_flags&RAW)) X- #ifdef OLDWAY X- c = tp->t_intrc; X- #else X c = tp->t_brkc; X } X- #endif X } X- #if NBK > 0 X- if (tp->t_line == NETLDISC) X- { X- c &= 0x7f; X- BKINPUT(c, tp); X- } X- else X- #endif X { X if (!(c & DHV_RB_PE) && dhv_hwxon[(dhv<<3)+line] && X ((c & 0x7f) == CSTOP || (c & 0x7f) == CSTART)) X--- 333,341 ---- X*** ./usr/src/sys/pdpuba/dz.c.old Wed Aug 13 06:07:16 2025 X--- ./usr/src/sys/pdpuba/dz.c Thu May 14 21:45:36 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)dz.c 1.7 (2.11BSD) 2025/8/13 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)dz.c 1.8 (2.11BSD) 2026/5/14 X */ X X /* X*************** X*** 238,248 **** X if (tp->t_flags & RAW) X c = 0; X else X- #ifdef OLDWAY X- c = tp->t_intrc; X- #else X c = tp->t_brkc; X- #endif X if (c&DZ_DO && overrun == 0) { X log(LOG_WARNING, "dz%d,%d: silo overflow\n", dz, (c>>8)&7); X overrun = 1; X--- 238,244 ---- X*************** X*** 251,262 **** X if (((tp->t_flags & (EVENP|ODDP)) == EVENP) X || ((tp->t_flags & (EVENP|ODDP)) == ODDP)) X continue; X- #if NBK > 0 X- if (tp->t_line == NETLDISC) { X- c &= 0177; X- BKINPUT(c, tp); X- } else X- #endif X (*linesw[tp->t_line].l_rint)(c, tp); X } X } X--- 247,252 ---- X*** ./usr/src/sys/pdpuba/tmscp.c.old Sun Jul 25 23:20:08 1999 X--- ./usr/src/sys/pdpuba/tmscp.c Fri May 15 16:07:54 2026 X*************** X*** 1,7 **** X! #define TMSDEBUG 1 X X- /* @(#)tmscp.c 1.12 (2.11BSD) 1999/2/25 */ X- X #if !defined(lint) && defined(DOSCCS) X static char *sccsid = "@(#)tmscp.c 1.24 (ULTRIX) 1/21/86"; X #endif X--- 1,5 ---- X! /* @(#)tmscp.c 1.13 (2.11BSD) 2026/5/15 */ X X #if !defined(lint) && defined(DOSCCS) X static char *sccsid = "@(#)tmscp.c 1.24 (ULTRIX) 1/21/86"; X #endif X*************** X*** 31,36 **** X--- 29,37 ---- X * tmscp.c - TMSCP (TK50/TU81) tape device driver X * X * Modification History: X+ * 15-May-2026 - sms X+ * Remove superfluous TMSDEBUG define at top of file X+ * X * 25-Feb-99 - sms X * Fix density selection to preserve the high byte of m_format. This X * is required devices (such as the TK70) which have a nonzero value X*** ./usr/src/sys/pdpuba/xp.c.old Tue Dec 16 12:34:56 2025 X--- ./usr/src/sys/pdpuba/xp.c Sat Sep 12 15:50:24 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)xp.c 2.8 (2.11BSD) 2025/12/16 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)xp.c 3.0 (2.11BSD) 2026/9/10 X */ X X /* X*************** X*** 86,92 **** X struct xp_controller xp_controller[NXPC]; X struct xp_drive xp_drive[NXPD]; X X- struct buf xptab; X struct buf xputab[NXPD]; X X #ifdef BADSECT X--- 86,91 ---- X*************** X*** 366,372 **** X msg = readdisklabel((dev & ~7) | 0, xpstrategy, lp); /* 'a' */ X if (msg != 0) X { X! log(LOG_NOTICE, "xp%da using labelonly geometry: %s\n", X XPUNIT(dev), msg); X xpdfltlbl(xd, lp); X } X--- 365,371 ---- X msg = readdisklabel((dev & ~7) | 0, xpstrategy, lp); /* 'a' */ X if (msg != 0) X { X! log(LOG_INFO, "xp%da using labelonly geometry: %s\n", X XPUNIT(dev), msg); X xpdfltlbl(xd, lp); X } X*************** X*** 427,435 **** X } X X /* X! * Unit start routine. Seek the drive to where the data are and then generate X * another interrupt to actually start the transfer. If there is only one X! * drive or we are very close to the data, don't bother with the search. If X * called after searching once, don't bother to look where we are, just queue X * for transfer (to avoid positioning forever without transferring). X */ X--- 426,434 ---- X } X X /* X! * Unit start routine. Seek the drive to where the data is and then generate X * another interrupt to actually start the transfer. If there is only one X! * drive or we are very close to the data don't bother with the search. If X * called after searching once, don't bother to look where we are, just queue X * for transfer (to avoid positioning forever without transferring). X */ X*************** X*** 581,595 **** X /* X * No more requests for this drive, remove from controller queue and X * look at next drive. We know we're at the head of the controller queue. X! * The drive may not need anything, in which case it might be shutting X! * down in xpclose() and a wakeup is done. X */ X dp->b_active = 0; X xc->xp_actf = dp->b_forw; X unit = dp - xputab; X xd = &xp_drive[unit]; X! if (xd->xp_open == 0) X wakeup(dp); /* finish close protocol */ X goto loop; X } X /* X--- 580,597 ---- X /* X * No more requests for this drive, remove from controller queue and X * look at next drive. We know we're at the head of the controller queue. X! * The drive may not need anything in which case it might be in xpclose() X! * waiting for the wakeup. X */ X dp->b_active = 0; X xc->xp_actf = dp->b_forw; X unit = dp - xputab; X xd = &xp_drive[unit]; X! if (xd->xp_flags & DKF_CLOSING) X! { X! log(LOG_DEBUG, "xpstart: xp%d CLOSE\n", unit); X wakeup(dp); /* finish close protocol */ X+ } X goto loop; X } X /* X*************** X*** 706,712 **** X /* X * Give up on write locked deviced immediately. X */ X! log(LOG_NOTICE, "xp%d: write locked\n", unit); X bp->b_flags |= B_ERROR; X #ifdef BADSECT X } X--- 708,714 ---- X /* X * Give up on write locked deviced immediately. X */ X! log(LOG_ERR, "xp%d: write lock\n", unit); X bp->b_flags |= B_ERROR; X #ifdef BADSECT X } X*************** X*** 733,739 **** X if (++dp->b_errcnt > 28) { X hard: X harderr(bp, "xp"); X! log(LOG_NOTICE,"cs2=%b er1=%b er2=%b\n", X xpaddr->hpcs2.w, HPCS2_BITS, X xpaddr->hper1, HPER1_BITS, X xpaddr->rmer2, RMER2_BITS); X--- 735,741 ---- X if (++dp->b_errcnt > 28) { X hard: X harderr(bp, "xp"); X! log(LOG_ERR,"cs2=%b er1=%b er2=%b\n", X xpaddr->hpcs2.w, HPCS2_BITS, X xpaddr->hper1, HPER1_BITS, X xpaddr->rmer2, RMER2_BITS); X*************** X*** 772,779 **** X bp->b_resid = - (xpaddr->hpwc << 1); X iodone(bp); X xpaddr->hpcs1.w = HP_IE; X! if (dp->b_actf) X xpustart(unit); X } X as &= ~(1 << xp_drive[unit].xp_unit); X } X--- 774,799 ---- X bp->b_resid = - (xpaddr->hpwc << 1); X iodone(bp); X xpaddr->hpcs1.w = HP_IE; X! if (dp->b_actf) X xpustart(unit); X+ /* X+ * The wakeup in xpstart will not be done if "xc->actf = dp->b_forw" (above) X+ * is NULL because xpstart returns immediately on an empty controller queue. X+ * X+ * That leaves the process sleeping forever and future xpopen calls will X+ * block because DKF_CLOSING is set. IF the controller queue is empty X+ * AND xputab[].b_actf (dp->b_actf above) is NULL AND the drive is sleeping X+ * in xpclose THEN do the wakeup (below). X+ */ X+ else X+ { X+ if (xc->xp_actf == NULL && X+ (xp_drive[unit].xp_flags & DKF_CLOSING)) X+ { X+ log(LOG_DEBUG, "xpintr: xp%d CLOSE\n", unit); X+ wakeup(dp); X+ } X+ } X } X as &= ~(1 << xp_drive[unit].xp_unit); X } X*** ./usr/src/sys/conf/Make.unix.old Tue Nov 25 18:30:08 2025 X--- ./usr/src/sys/conf/Make.unix Wed Mar 25 08:04:05 2026 X*************** X*** 9,15 **** X # software without specific prior written permission. This software X # is provided ``as is'' without express or implied warranty. X # X! # 2.10 (2.11BSD) 2025/11/25 X # X ######################################################### X # Non-networking, non-separate I/D kernel # X--- 9,15 ---- X # software without specific prior written permission. This software X # is provided ``as is'' without express or implied warranty. X # X! # 2.11 (2.11BSD) 2026/2/28 X # X ######################################################### X # Non-networking, non-separate I/D kernel # X*************** X*** 20,26 **** X M= ../machine X S= ../sys X U= ../pdpuba X- MB= ../pdpmba X X DEFS= -DKERNEL ${OPTS} -I. -I${H} X CFLAGS= -O ${DEFS} X--- 20,25 ---- X*************** X*** 30,36 **** X ED= /bin/ed X SED= /bin/sed X X! SUB= sys pdp pdpuba pdpmba X X # GENERAL RULES: X # scb.o MUST be loaded first, param.o MUST be loaded last, X--- 29,35 ---- X ED= /bin/ed X SED= /bin/sed X X! SUB= sys pdp pdpuba X X # GENERAL RULES: X # scb.o MUST be loaded first, param.o MUST be loaded last, X*************** X*** 88,97 **** X size unix X @echo Compacting symbol table X -symcompact unix X- @echo Compacting strings table X- -strcompact unix X @echo rearranging symbols X -symorder ../pdp/symbols.sort unix X ./checksys unix X X vers.o: FRC X--- 87,96 ---- X size unix X @echo Compacting symbol table X -symcompact unix X @echo rearranging symbols X -symorder ../pdp/symbols.sort unix X+ @echo Compacting strings table X+ -strcompact unix X ./checksys unix X X vers.o: FRC X*************** X*** 110,116 **** X ioconf.o: ioconf.c X ${CC} -c ${CFLAGS} ioconf.c X X! sys pdp pdpuba pdpmba: X make -f Make.$@ I=${I} H=${H} M=${M} AS="${AS}" CPP="${CPP}" \ X CFLAGS="${CFLAGS}" SED="${SED}" X X--- 109,115 ---- X ioconf.o: ioconf.c X ${CC} -c ${CFLAGS} ioconf.c X X! sys pdp pdpuba: X make -f Make.$@ I=${I} H=${H} M=${M} AS="${AS}" CPP="${CPP}" \ X CFLAGS="${CFLAGS}" SED="${SED}" X X*************** X*** 129,135 **** X mkdep ${CFLAGS} param.c ioconf.c ../conf/checksys.c X X TAGSFILE= ${S}/tags X! TLIST= ${H} ${I} ${N1} ${N2} ${N3} ${N4} ${N5} ${N6} ${M} ${S} ${U} ${MB} ${SS} X X tags: FRC X rm -f ${TAGSFILE} X--- 128,134 ---- X mkdep ${CFLAGS} param.c ioconf.c ../conf/checksys.c X X TAGSFILE= ${S}/tags X! TLIST= ${H} ${I} ${N1} ${N2} ${N3} ${N4} ${N5} ${N6} ${M} ${S} ${U} ${SS} X X tags: FRC X rm -f ${TAGSFILE} X*** ./usr/src/sys/conf/config.old Tue Aug 12 18:43:28 2025 X--- ./usr/src/sys/conf/config Sat Oct 31 15:15:12 2026 X*************** X*** 1,6 **** X--- 1,10 ---- X #! /bin/sh X # 2.11BSD script to set up a new kernel configuration directory. X # X+ # 2026/10/30 - remove 45, 50, 53 and 55 from case PDP11 X+ # 2026/9/11 - remove TMSCP_DEBUG (not used) X+ # 2026/5/15 - remove NHY X+ # 2026/2/28 - remove pdpmba X # 2025/08/11 - add NDHUL to specify no. of lines per DHU X # 2019/10/18 - the kernel runs on GMT. The kernel timezone structure X # is obsolete, will be initialized to 0 now and only X*************** X*** 76,88 **** X KERN_NONSEP=NO X NETFIX=splfix.movb+mfps.sed X SPLFIX=splfix.mfps.sed;; X! 44|45|50|55|70) X KERN_NONSEP=NO X NETFIX=splfix.movb.sed X SPLFIX=splfix.spl.sed;; X *) X echo "$0: unrecognized PDP11 type $PDP11." X! echo 'use GENERIC, 44, 70, 73' X exit 1;; X esac X X--- 80,92 ---- X KERN_NONSEP=NO X NETFIX=splfix.movb+mfps.sed X SPLFIX=splfix.mfps.sed;; X! 44|70) X KERN_NONSEP=NO X NETFIX=splfix.movb.sed X SPLFIX=splfix.spl.sed;; X *) X echo "$0: unrecognized PDP11 type $PDP11." X! echo 'use GENERIC, 44, 53, 70, 73, 83, 93, 94' X exit 1;; X esac X X*************** X*** 185,191 **** X echo "#define NEN $NEN" > ../$MACHINE/en.h X echo "#define NETHER $NETHER" > ../$MACHINE/ether.h X echo "#define NHT $NHT" > ../$MACHINE/ht.h X- echo "#define NHY $NHY" > ../$MACHINE/hy.h X echo "#define NIL $NIL" > ../$MACHINE/il.h X echo "#define NIMP $NIMP" > ../$MACHINE/imp.h X echo "#define NKL $NKL" > ../$MACHINE/cn.h X--- 189,194 ---- X*************** X*** 208,216 **** X echo "#define NTS $NTS" > ../$MACHINE/ts.h X echo "#define NTMSCP $NTMSCP" > ../$MACHINE/tms.h X echo "#define NTMS $NTMS" >> ../$MACHINE/tms.h X- if [ $TMSCP_DEBUG = YES ]; then X- echo "#define TMSCP_DEBUG" >> ../$MACHINE/tms.h X- fi X if [ $DUMPROUTINE = tmsdump ]; then X echo "#define TMSCP_DUMP 1" >> ../$MACHINE/tms.h X fi X--- 211,216 ---- X*************** X*** 267,273 **** X X echo "OPTS=$OPTS" > ../$MACHINE/Makefile X X! cp Make.sys Make.pdp Make.pdpuba Make.pdpmba ../$MACHINE X X if [ $INET = YES ]; then X cat Make.nsunix >> ../$MACHINE/Makefile X--- 267,273 ---- X X echo "OPTS=$OPTS" > ../$MACHINE/Makefile X X! cp Make.sys Make.pdp Make.pdpuba ../$MACHINE X X if [ $INET = YES ]; then X cat Make.nsunix >> ../$MACHINE/Makefile X*** ./usr/src/sys/conf/GENERIC.old Tue Aug 12 18:44:07 2025 X--- ./usr/src/sys/conf/GENERIC Sat Oct 31 15:29:15 2026 X*************** X*** 1,3 **** X--- 1,6 ---- X+ # 2026/9/26 - remove RK as BOOTDEV, much too small for a root filesystem X+ # 2026/9/11 - remove TMSCP_DEBUG (not used) X+ # 2026/5/15 - remove NHY X # 2025/08/11 - add NDHUL X # 2019/10/18 - TIMEZONE set to GMT X # 1997/1/21 - RK added to GENERIC kernel (for use with Bob Supnik's emulator) X*************** X*** 37,44 **** X # PSW use 'spl', 'mfps/mtps' or 'movb' instructions depending on the cpu type). X PDP11 GENERIC # distribution kernel X #PDP11 44 # PDP-11/44 X! #PDP11 70 # PDP-11/70,45,50,55 X! #PDP11 73 # PDP-11/73,53,83,93,84,94 X X ######################################### X # GENERAL SYSTEM PARAMETERS # X--- 40,47 ---- X # PSW use 'spl', 'mfps/mtps' or 'movb' instructions depending on the cpu type). X PDP11 GENERIC # distribution kernel X #PDP11 44 # PDP-11/44 X! #PDP11 70 # PDP-11/70 X! #PDP11 73 # PDP-11/53,73,83,84,93,94 X X ######################################### X # GENERAL SYSTEM PARAMETERS # X*************** X*** 45,51 **** X ######################################### X X IDENT GENERIC # machine name X! MAXUSERS 4 # maxusers on machine X X # BOOTDEV is the letter combination denoting the autoboot device, X # or NONE if not using the autoboot feature. X--- 48,54 ---- X ######################################### X X IDENT GENERIC # machine name X! MAXUSERS 6 # maxusers on machine X X # BOOTDEV is the letter combination denoting the autoboot device, X # or NONE if not using the autoboot feature. X*************** X*** 54,60 **** X #BOOTDEV hk6 # rk06 boot device X #BOOTDEV hk7 # rk07 boot device X #BOOTDEV ra # MSCP boot device X- #BOOTDEV rk # rk05 boot device X #BOOTDEV rl # rl01/02 boot device X #BOOTDEV rm # rm02/03/05 rp06 boot device X #BOOTDEV br # Eaton BR1537/BR1711 boot device X--- 57,62 ---- X*************** X*** 65,94 **** X # Timezone X TIMEZONE 0 # kernel uses GMT by default X X! # Filesystem configuration X! # Rootdev, swapdev etc. should be in terms of makedev. For example, X! # if you have an SMD drive using the xp driver, rootdev would be xp0a, X! # or "makedev(10,0)". Swapdev would be the b partition, xp0b, or X! # "makedev(10,1)". The 10 is the major number of the device (the offset X! # in the bdevsw table in conf.c) and the 0 and 1 are the minor numbers X! # which correspond to the partitions as described in the section 4 manual X! # pages. You can also get the major numbers from the MAKEDEV script in X! # /dev. X! PIPEDEV makedev(10,0) # makedev(10,0) xp0a X! ROOTDEV makedev(10,0) # makedev(10,0) xp0a X! SWAPDEV makedev(10,1) # makedev(10,1) xp0b X X # DUMPROUTINE indicates which dump routine should be used. DUMPDEV X # should be in terms of makedev. If DUMPDEV is NODEV no automatic X # dumps will be taken, and DUMPROUTINE needs to be set to "nulldev" to X! # resolve the reference. See param.h and ioconf.c for more information. X! # DUMPLO should leave room for the kernel to start swapping without X! # overwriting the dump. X DUMPLO 512 # dump start address X! DUMPDEV NODEV # makedev(10,1) xp0b X DUMPROUTINE nulldev # no dump routine. X #DUMPROUTINE hkdump # hk driver dump routine X- #DUMPROUTINE hpdump # hp driver dump routine X #DUMPROUTINE radump # ra driver dump routine X #DUMPROUTINE rldump # rl driver dump routine X #DUMPROUTINE rmdump # rm driver dump routine X--- 67,127 ---- X # Timezone X TIMEZONE 0 # kernel uses GMT by default X X! #Filesystem configuration X! # X! # PIPEDEV, ROOTDEV, SWAPDEV, DUMPDEV are all in terms of 'makedev(major,minor)' X! # and the major number from this table. Devices in the you (almost) certainly X! # do not have category (see below) or not suitable are not listed here: X! # X! # XX (Device) major X! # =========== ===== X! # hk 4 X! # ra 5 X! # rl 7 X! # xp 10 X X+ # The complete list of major numbers is in the script /dev/MAKEDEV X+ # X+ # and the 'minor' number from this table (partitions other than 'a' and X+ # 'b' rarely used but allowed). X+ # X+ # minor partition name X+ # ----- -------------- X+ # 0 a X+ # 1 b X+ # 2 c X+ # 3 d X+ # 4 e X+ # 5 f X+ # 6 g X+ # 7 h X+ X+ # For example: with a SMD drive (xp) ROOTDEV xp0a is makedev(10,0), X+ # PIPEDEV is makedev(10,0) and SWAPDEV is makedev(10,1) X+ X+ PIPEDEV makedev(10,0) # makedev(major,0) XX0a X+ ROOTDEV makedev(10,0) # makedev(major,0) XX0a X+ SWAPDEV makedev(10,1) # makedev(major,1) XX0b X+ X # DUMPROUTINE indicates which dump routine should be used. DUMPDEV X # should be in terms of makedev. If DUMPDEV is NODEV no automatic X # dumps will be taken, and DUMPROUTINE needs to be set to "nulldev" to X! # resolve the reference. X! X! # A TMSCP tape device may be used as a dump device. DUMPLO does not apply X! # in this case and the minor number is almost always 0. X! # X! # XX (Device) major X! # =========== ===== X! # tmscp 12 X! X! # DUMPLO should leave room for the kernel to start swapping on SWAPDEV X! # without overwriting the dump. X! X DUMPLO 512 # dump start address X! DUMPDEV NODEV # makedev(major,1) XX0b X DUMPROUTINE nulldev # no dump routine. X #DUMPROUTINE hkdump # hk driver dump routine X #DUMPROUTINE radump # ra driver dump routine X #DUMPROUTINE rldump # rl driver dump routine X #DUMPROUTINE rmdump # rm driver dump routine X*************** X*** 95,101 **** X #DUMPROUTINE brdump # br driver dump routine X #DUMPROUTINE sidump # si driver dump routine X #DUMPROUTINE xpdump # xp driver dump routine X! #DUMPROUTINE tmsdump # tms driver dump routine X X ######################################### X # KERNEL CONFIGURATION # X--- 128,134 ---- X #DUMPROUTINE brdump # br driver dump routine X #DUMPROUTINE sidump # si driver dump routine X #DUMPROUTINE xpdump # xp driver dump routine X! #DUMPROUTINE tmsdump # tmscp driver dump routine X X ######################################### X # KERNEL CONFIGURATION # X*************** X*** 138,145 **** X # PERIPHERALS: DISK DRIVES # X ######################################### X X- NBR 0 # EATON BR1537/BR1711, BR1538A, B, C, D X- X NHK 2 # RK611, RK06/07 X X NRAC 2 # NRAD controllers X--- 171,176 ---- X*************** X*** 149,158 **** X X NRL 4 # RL01/02 X X! NRX 2 # RX02 X X- NSI 0 # SI 9500 driver for CDC 9766 disks X- X NXPC 1 # NXPD controllers (RH70/RH11 style) X NXPD 2 # RM02/03/05, RP04/05/06, CDC 9766, X # Ampex 9300, Diva, Fuji 160, SI Eagle. X--- 180,187 ---- X X NRL 4 # RL01/02 X X! NRX 0 # RX02 X X NXPC 1 # NXPD controllers (RH70/RH11 style) X NXPD 2 # RM02/03/05, RP04/05/06, CDC 9766, X # Ampex 9300, Diva, Fuji 160, SI Eagle. X*************** X*** 175,181 **** X X NTMSCP 2 # TMSCP controllers X NTMS 2 # TMSCP drives X- TMSCP_DEBUG NO # debugging code in TMSCP drive (EXPENSIVE) X X ######################################### X # PERIPHERALS: TERMINALS # X--- 204,209 ---- X*************** X*** 196,211 **** X ######################################### X # PERIPHERALS: OTHER # X ######################################### X- NDN 0 # DN11 dialer X NLP 0 # Line Printer X LP_MAXCOL 132 # Maximum number of columns on line printers X- NDR 0 # DR11-W X X ######################################### X # PSEUDO DEVICES, PROTOCOLS, NETWORKING # X ######################################### X # Networking only works with split I/D and SUPERVISOR space, i.e. with the X! # 11/44/53/70/73/83/84/93,94. NETHER should be non-zero for networking X # systems using any ethernet. CHECKSTACK makes sure the networking stack X # pointer and the kernel stack pointer don't collide; it's *very* expensive X # at 4 extra instructions for EVERY function call AND return, always left X--- 224,237 ---- X ######################################### X # PERIPHERALS: OTHER # X ######################################### X NLP 0 # Line Printer X LP_MAXCOL 132 # Maximum number of columns on line printers X X ######################################### X # PSEUDO DEVICES, PROTOCOLS, NETWORKING # X ######################################### X # Networking only works with split I/D and SUPERVISOR space, i.e. with the X! # 11/44/53/70/73/83/84/93/94. NETHER should be non-zero for networking X # systems using any ethernet. CHECKSTACK makes sure the networking stack X # pointer and the kernel stack pointer don't collide; it's *very* expensive X # at 4 extra instructions for EVERY function call AND return, always left X*************** X*** 222,233 **** X # script, jove, window, rlogin, ... X NPTY 0 # pseudo-terminals - GENERIC sys needs NONE X X- NEC 0 # 3Com Ethernet X NDE 0 # DEUNA/DELUA X- NIL 0 # Interlan Ethernet X- NSL 0 # Serial Line IP X NQE 0 # DEQNA X NQT 0 # DEQTA (DELQA-YM, DELQA-PLUS) X NVV 0 # V2LNI (Pronet) X NACC 0 # ACC LH/DH ARPAnet IMP interface X PLI NO # LH/DH is connected to a PLI X--- 248,266 ---- X # script, jove, window, rlogin, ... X NPTY 0 # pseudo-terminals - GENERIC sys needs NONE X X NDE 0 # DEUNA/DELUA X NQE 0 # DEQNA X NQT 0 # DEQTA (DELQA-YM, DELQA-PLUS) X+ NSL 0 # Serial Line IP X+ X+ # The following were known to work in 2.11BSD at one time but are for X+ # hardware you (almost) certainly do not have. X+ NSI 0 # SI 9500 driver for CDC 9766 disks X+ NBR 0 # EATON BR1537/BR1711, BR1538A, B, C, D X+ NDN 0 # DN11 dialer X+ NDR 0 # DR11-W X+ NEC 0 # 3Com Ethernet X+ NIL 0 # Interlan Ethernet X NVV 0 # V2LNI (Pronet) X NACC 0 # ACC LH/DH ARPAnet IMP interface X PLI NO # LH/DH is connected to a PLI X*************** X*** 240,258 **** X NCSS 0 # DEC/CSS IMP11-A ARPAnet IMP interface X NDMC 0 # DMC11 X NEN 0 # Xerox prototype (3 Mb) Ethernet X- NHY 0 # Hyperchannel X NS 0 # Xerox NS (XNS) X NSRI 0 # SRI DR11c ARPAnet IMP X NTB 0 # RS232 interface for Genisco/Hitachi tablets X X # Defining FPSIM to YES compiles a floating point simulator into the kernel X! # which will catch floating point instruction traps from user space. This X! # doesn't work at present. X FPSIM NO # floating point simulator X X # To enable profiling, the :splfix script must be changed to use spl6 instead X # of spl7 (see conf/:splfix.profile), also, you have to have a machine with a X! # supervisor PAR/PDR pair, i.e. an 11/44/45/50/53/55/70/73/83/84, as well X # as both a KW11-L and a KW11-P. X # X # Note that profiling is not currently working. We don't have any plans on X--- 273,289 ---- X NCSS 0 # DEC/CSS IMP11-A ARPAnet IMP interface X NDMC 0 # DMC11 X NEN 0 # Xerox prototype (3 Mb) Ethernet X NS 0 # Xerox NS (XNS) X NSRI 0 # SRI DR11c ARPAnet IMP X NTB 0 # RS232 interface for Genisco/Hitachi tablets X X # Defining FPSIM to YES compiles a floating point simulator into the kernel X! # which will catch floating point instruction traps from user space. X FPSIM NO # floating point simulator X X # To enable profiling, the :splfix script must be changed to use spl6 instead X # of spl7 (see conf/:splfix.profile), also, you have to have a machine with a X! # supervisor PAR/PDR pair, i.e. an 11/44/53/70/73/83/84/93/94, as well X # as both a KW11-L and a KW11-P. X # X # Note that profiling is not currently working. We don't have any plans on X*************** X*** 259,262 **** X--- 290,295 ---- X # fixing it, so this is essentially a non-supported feature. X PROFILE NO # system profiling with KW11P clock X X+ # The Ingres driver works but is not needed unless concurrent database accesses X+ # will be done. X INGRES NO # include the Ingres lock driver X*** ./usr/src/sys/conf/Make.nsunix.old Tue Nov 25 18:29:21 2025 X--- ./usr/src/sys/conf/Make.nsunix Wed Mar 25 08:32:43 2026 X*************** X*** 9,15 **** X # software without specific prior written permission. This software X # is provided ``as is'' without express or implied warranty. X # X! # 2.11 (2.11BSD) 2025/11/25 X # X ######################################################### X # Networking, separate I/D kernel # X--- 9,15 ---- X # software without specific prior written permission. This software X # is provided ``as is'' without express or implied warranty. X # X! # 2.12 (2.11BSD) 2026/2/28 X # X ######################################################### X # Networking, separate I/D kernel # X*************** X*** 25,31 **** X N6= ../pdpif X S= ../sys X U= ../pdpuba X- MB= ../pdpmba X X DEFS= -DKERNEL ${OPTS} -I. -I${H} X CFLAGS= -O ${DEFS} X--- 25,30 ---- X*************** X*** 35,41 **** X ED= /bin/ed X SED= /bin/sed X X! SUB= sys pdp pdpuba pdpmba net pdpnet X X # GENERAL RULES: X # scb.o MUST be loaded first, param.o MUST be loaded last, X--- 34,40 ---- X ED= /bin/ed X SED= /bin/sed X X! SUB= sys pdp pdpuba net pdpnet X X # GENERAL RULES: X # scb.o MUST be loaded first, param.o MUST be loaded last, X*************** X*** 71,78 **** X sys_pipe.o X # OV6 gets the (hopefully) never used routines X OV6= clock.o dn.o init_main.o kern_pdp.o machdep2.o subr_prf.o syscalls.o \ X! subr_log.o toy.o vm_swp.o X! OV7= ufs_disksubr.o ufs_dsort.o ufs_syscalls2.o kern_sig2.o X OV8= mch_fpsim.o kern_sysctl.o kern_xxx.o ingreslock.o vm_text.o X OV9= tmscp.o tmscpdump.o X X--- 70,77 ---- X sys_pipe.o X # OV6 gets the (hopefully) never used routines X OV6= clock.o dn.o init_main.o kern_pdp.o machdep2.o subr_prf.o syscalls.o \ X! subr_log.o vm_swp.o X! OV7= ufs_disksubr.o ufs_dsort.o ufs_syscalls2.o kern_sig2.o toy.o X OV8= mch_fpsim.o kern_sysctl.o kern_xxx.o ingreslock.o vm_text.o X OV9= tmscp.o tmscpdump.o X X*************** X*** 107,116 **** X size unix X @echo Compacting symbol table X -symcompact unix X- @echo Compacting strings table X- -strcompact unix X @echo rearranging symbols X -symorder ../pdp/symbols.sort unix X ./checksys unix X X # d.netnix.o must be the last object file in the dependency list! X--- 106,115 ---- X size unix X @echo Compacting symbol table X -symcompact unix X @echo rearranging symbols X -symorder ../pdp/symbols.sort unix X+ @echo Compacting strings table X+ -strcompact unix X ./checksys unix X X # d.netnix.o must be the last object file in the dependency list! X*************** X*** 119,128 **** X size netnix X @echo Compacting symbol table X -symcompact netnix X- @echo Compacting strings table - this will take a few minutes X- -strcompact netnix X @echo rearranging symbols X -symorder ../pdp/symbols.sort netnix X X # Resolve all references between the kernel and the net. Always regenerate!!! X # This was a constant source of problems during development. Should really X--- 118,127 ---- X size netnix X @echo Compacting symbol table X -symcompact netnix X @echo rearranging symbols X -symorder ../pdp/symbols.sort netnix X+ @echo Compacting strings table - this will take a few minutes X+ -strcompact netnix X X # Resolve all references between the kernel and the net. Always regenerate!!! X # This was a constant source of problems during development. Should really X*************** X*** 158,164 **** X netbind: ../conf/netbind.c X ${CC} ${CFLAGS} -o $@ ../conf/netbind.c X X! sys pdp pdpuba pdpmba: X make -f Make.$@ I=${I} H=${H} M=${M} AS="${AS}" CPP="${CPP}" \ X CFLAGS="${CFLAGS}" SED="${SED}" X X--- 157,163 ---- X netbind: ../conf/netbind.c X ${CC} ${CFLAGS} -o $@ ../conf/netbind.c X X! sys pdp pdpuba: X make -f Make.$@ I=${I} H=${H} M=${M} AS="${AS}" CPP="${CPP}" \ X CFLAGS="${CFLAGS}" SED="${SED}" X X*************** X*** 181,187 **** X mkdep ${CFLAGS} param.c ioconf.c ../conf/checksys.c ../conf/netbind.c X X TAGSFILE= ${S}/tags X! TLIST= ${H} ${I} ${N1} ${N2} ${N3} ${N4} ${N5} ${N6} ${M} ${S} ${U} ${MB} ${SS} X X tags: FRC X rm -f ${TAGSFILE} X--- 180,186 ---- X mkdep ${CFLAGS} param.c ioconf.c ../conf/checksys.c ../conf/netbind.c X X TAGSFILE= ${S}/tags X! TLIST= ${H} ${I} ${N1} ${N2} ${N3} ${N4} ${N5} ${N6} ${M} ${S} ${U} ${SS} X X tags: FRC X rm -f ${TAGSFILE} X*** ./usr/src/sys/conf/checksys.c.old Fri Jan 2 21:30:39 2026 X--- ./usr/src/sys/conf/checksys.c Sun May 17 10:26:17 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)checksys.c 1.7 (2.11BSD) 2025/12/24 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)checksys.c 1.8 (2.11BSD) 2026/5/16 X */ X X /* X*************** X*** 20,25 **** X--- 20,27 ---- X #include "stdio.h" X #include "namei.h" X #include "msgbuf.h" X+ #include "disklabel.h" X+ #include "mount.h" X X /* Round up to a click boundary. */ X #define cround(bytes) ((bytes + ctob(1) - 1) / ctob(1) * ctob(1)); X*************** X*** 38,44 **** X #define N_NAMECACHE 18 X #define N_IOSIZE 19 X #define N_NLOG 20 X! #define N_NUMSYMS 21 X X struct nlist nl[N_NUMSYMS + 1]; /* need null entry for nlist */ X X--- 40,48 ---- X #define N_NAMECACHE 18 X #define N_IOSIZE 19 X #define N_NLOG 20 X! #define N_SOFUBSIZE 21 X! #define N_DLABELNUM 22 X! #define N_NUMSYMS 23 X X struct nlist nl[N_NUMSYMS + 1]; /* need null entry for nlist */ X X*************** X*** 63,69 **** X "_quotdesc", /* 17 */ X "_namecache", /* 18 */ X "__iosize", /* 19 */ X! "_nlog" /* 20 */ X }; X X static struct exec obj; X--- 67,75 ---- X "_quotdesc", /* 17 */ X "_namecache", /* 18 */ X "__iosize", /* 19 */ X! "_nlog", /* 20 */ X! "_sofub_size", /* 21 */ X! "__dlabelnum", /* 22 */ X }; X X static struct exec obj; X*************** X*** 234,241 **** X totsize += getval(N_IOSIZE); X if (nl[N_NLOG].n_type) X totsize += (getval(N_NLOG) * MSG_BSIZE); X totsize += ctob(USIZE); X! printf("System will occupy %ld bytes of memory (including buffers and clists).\n", totsize); X for (i = 0; i < N_NUMSYMS; i++) { X if (!(i % 3)) X putchar('\n'); X--- 240,253 ---- X totsize += getval(N_IOSIZE); X if (nl[N_NLOG].n_type) X totsize += (getval(N_NLOG) * MSG_BSIZE); X+ if (nl[N_SOFUBSIZE].n_type) X+ totsize += getval(N_SOFUBSIZE); X+ if (nl[N_DLABELNUM].n_type) X+ totsize += (getval(N_DLABELNUM) * sizeof (struct disklabel)); X+ totsize += (NMOUNT * sizeof (struct xmount)); X totsize += ctob(USIZE); X! X! printf("System will occupy %ld bytes of memory (including buffers, clists, sofub)\n", totsize); X for (i = 0; i < N_NUMSYMS; i++) { X if (!(i % 3)) X putchar('\n'); X*** ./usr/src/sys/conf/Make.sunix.old Tue Nov 25 18:29:42 2025 X--- ./usr/src/sys/conf/Make.sunix Wed Mar 25 08:03:53 2026 X*************** X*** 9,15 **** X # software without specific prior written permission. This software X # is provided ``as is'' without express or implied warranty. X # X! # 2.15 (2.11BSD) 2025/11/25 X # X ######################################################### X # Non-network, but separate I/D kernel # X--- 9,15 ---- X # software without specific prior written permission. This software X # is provided ``as is'' without express or implied warranty. X # X! # 2.16 (2.11BSD) 2026/2/28 X # X ######################################################### X # Non-network, but separate I/D kernel # X*************** X*** 20,26 **** X M= ../machine X S= ../sys X U= ../pdpuba X- MB= ../pdpmba X X DEFS= -DKERNEL ${OPTS} -I. -I${H} X CFLAGS= -O ${DEFS} X--- 20,25 ---- X*************** X*** 30,36 **** X ED= /bin/ed X SED= /bin/sed X X! SUB= sys pdp pdpuba pdpmba X X # GENERAL RULES: X # scb.o MUST be loaded first, param.o MUST be loaded last, X--- 29,35 ---- X ED= /bin/ed X SED= /bin/sed X X! SUB= sys pdp pdpuba X X # GENERAL RULES: X # scb.o MUST be loaded first, param.o MUST be loaded last, X*************** X*** 86,95 **** X size unix X @echo Compacting symbol table X -symcompact unix X- @echo Compacting strings table X- -strcompact unix X @echo rearranging symbols X -symorder ../pdp/symbols.sort unix X ./checksys unix X X vers.o: FRC X--- 85,94 ---- X size unix X @echo Compacting symbol table X -symcompact unix X @echo rearranging symbols X -symorder ../pdp/symbols.sort unix X+ @echo Compacting strings table X+ -strcompact unix X ./checksys unix X X vers.o: FRC X*************** X*** 108,114 **** X ioconf.o: ioconf.c X ${CC} -c ${CFLAGS} ioconf.c X X! sys pdp pdpuba pdpmba: X make -f Make.$@ I=${I} H=${H} M=${M} AS="${AS}" CPP="${CPP}" \ X CFLAGS="${CFLAGS}" SED="${SED}" X X--- 107,113 ---- X ioconf.o: ioconf.c X ${CC} -c ${CFLAGS} ioconf.c X X! sys pdp pdpuba: X make -f Make.$@ I=${I} H=${H} M=${M} AS="${AS}" CPP="${CPP}" \ X CFLAGS="${CFLAGS}" SED="${SED}" X X*************** X*** 127,133 **** X mkdep ${CFLAGS} param.c ioconf.c ../conf/checksys.c X X TAGSFILE= ${S}/tags X! TLIST= ${H} ${I} ${N1} ${N2} ${N3} ${N4} ${N5} ${N6} ${M} ${S} ${U} ${MB} ${SS} X X tags: FRC X rm -f ${TAGSFILE} X--- 126,132 ---- X mkdep ${CFLAGS} param.c ioconf.c ../conf/checksys.c X X TAGSFILE= ${S}/tags X! TLIST= ${H} ${I} ${N1} ${N2} ${N3} ${N4} ${N5} ${N6} ${M} ${S} ${U} ${SS} X X tags: FRC X rm -f ${TAGSFILE} X*** ./usr/src/sys/sys/ufs_bio.c.old Thu Sep 19 21:59:36 1996 X--- ./usr/src/sys/sys/ufs_bio.c Wed May 13 14:36:10 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)ufs_bio.c 2.2 (2.11BSD) 1996/9/13 X */ X X #include "param.h" X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)ufs_bio.c 2.3 (2.11BSD) 2026/5/13 X */ X X #include "param.h" X*************** X*** 17,22 **** X--- 17,29 ---- X #include "uba.h" X #include "trace.h" X #include "ram.h" X+ X+ /* X+ * moved here from trace.h since all but one entry are used in this file X+ */ X+ #if defined(KERNEL) && defined(UCB_METER) && !defined(SUPERVISOR) X+ u_long tracebuf[TR_NUM_210]; X+ #endif X X /* X * Read in (if necessary) the block and return a buffer pointer. X*** ./usr/src/sys/sys/tty_conf.c.old Thu Dec 15 23:06:55 1994 X--- ./usr/src/sys/sys/tty_conf.c Fri May 15 05:36:08 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)tty_conf.c 1.2 (2.11BSD GTE) 11/30/94 X */ X X #include "param.h" X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)tty_conf.c 1.3 (2.11BSD) 2026/5/15 X */ X X #include "param.h" X*************** X*** 21,32 **** X int ttyopen(),ttylclose(),ttread(),ttwrite(),nullioctl(),ttstart(); X int ttymodem(), nullmodem(), ttyinput(); X X! /* #include "bk.h" */ X! #if NBK > 0 X! int bkopen(),bkclose(),bkread(),bkinput(),bkioctl(); X! #endif X! X! /* #include "tb.h" */ X #if NTB > 0 X int tbopen(),tbclose(),tbread(),tbinput(),tbioctl(); X #endif X--- 21,27 ---- X int ttyopen(),ttylclose(),ttread(),ttwrite(),nullioctl(),ttstart(); X int ttymodem(), nullmodem(), ttyinput(); X X! #include "tb.h" X #if NTB > 0 X int tbopen(),tbclose(),tbread(),tbinput(),tbioctl(); X #endif X*************** X*** 40,52 **** X { X ttyopen, ttylclose, ttread, ttwrite, nullioctl, /* 0- OTTYDISC */ X ttyinput, nodev, nulldev, ttstart, ttymodem, X! #if NBK > 0 X! bkopen, bkclose, bkread, ttwrite, bkioctl, /* 1- NETLDISC */ X! bkinput, nodev, nulldev, ttstart, nullmodem, X! #else X nodev, nodev, nodev, nodev, nodev, X- nodev, nodev, nodev, nodev, nodev, X- #endif X ttyopen, ttylclose, ttread, ttwrite, nullioctl, /* 2- NTTYDISC */ X ttyinput, nodev, nulldev, ttstart, ttymodem, X #if NTB > 0 X--- 35,42 ---- X { X ttyopen, ttylclose, ttread, ttwrite, nullioctl, /* 0- OTTYDISC */ X ttyinput, nodev, nulldev, ttstart, ttymodem, X! nodev, nodev, nodev, nodev, nodev, /* 1 - was bk */ X nodev, nodev, nodev, nodev, nodev, X ttyopen, ttylclose, ttread, ttwrite, nullioctl, /* 2- NTTYDISC */ X ttyinput, nodev, nulldev, ttstart, ttymodem, X #if NTB > 0 X*** ./usr/src/sys/sys/kern_sysctl.c.old Sun Aug 28 06:46:40 2022 X--- ./usr/src/sys/sys/kern_sysctl.c Sat Oct 24 20:09:05 2026 X*************** X*** 33,39 **** X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X! * @(#)kern_sysctl.c 8.7 (2.11BSD) 2022/8/28 X */ X X /* X--- 33,39 ---- X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X! * @(#)kern_sysctl.c 8.8 (2.11BSD) 2026/5/27 X */ X X /* X*************** X*** 52,60 **** X--- 52,62 ---- X #include X #include X #include X+ #include X #include X #include X #include X+ #include X #include X #include X X*************** X*** 206,212 **** X void *newp; X size_t newlen; X { X! int error, level; X u_long longhostid; X extern int Acctthresh; /* kern_acct.c */ X extern char version[]; X--- 208,214 ---- X void *newp; X size_t newlen; X { X! int error, level, tmphz; X u_long longhostid; X extern int Acctthresh; /* kern_acct.c */ X extern char version[]; X*************** X*** 267,272 **** X--- 269,291 ---- X return (error); X case KERN_CLOCKRATE: X return (sysctl_clockrate(oldp, oldlenp)); X+ case KERN_LINEHZ: X+ tmphz = hz; X+ error = sysctl_int(oldp, oldlenp, newp, newlen, &tmphz); X+ if (!error && newp) X+ { X+ if (tmphz == 50 || tmphz == 60) X+ { X+ hz = tmphz; X+ mshz = (1000000L + hz + 1) / hz; X+ #ifdef INET X+ NETSETHZ(); X+ #endif X+ } X+ else X+ error = EINVAL; X+ } X+ return(error); X case KERN_BOOTTIME: X return (sysctl_rdstruct(oldp, oldlenp, newp, &boottime, X sizeof(struct timeval))); X*************** X*** 278,288 **** X return (sysctl_file(oldp, oldlenp)); X case KERN_TEXT: X return (sysctl_text(oldp, oldlenp)); X- #ifdef GPROF X- case KERN_PROF: X- return (sysctl_doprof(name + 1, namelen - 1, oldp, oldlenp, X- newp, newlen)); X- #endif X case KERN_NGROUPS: X return (sysctl_rdint(oldp, oldlenp, newp, NGROUPS)); X case KERN_JOB_CONTROL: X--- 297,302 ---- X*************** X*** 331,336 **** X--- 345,355 ---- X return (sysctl_rdlong(oldp, oldlenp, newp,ctob((long)freemem))); X case HW_PAGESIZE: X return (sysctl_rdint(oldp, oldlenp, newp, NBPG*CLSIZE)); X+ #ifdef UCB_METER X+ case HW_TRACEBUF: X+ return (sysctl_rdstruct(oldp, oldlenp, newp, tracebuf, X+ sizeof(tracebuf))); X+ #endif X default: X return (EOPNOTSUPP); X } X*************** X*** 461,473 **** X averunnable.ldavg[1] = avenrun[1]; X averunnable.ldavg[2] = avenrun[2]; X return (sysctl_rdstruct(oldp, oldlenp, newp, &averunnable, X! sizeof(averunnable))); X case VM_METER: X #ifdef notsure X vmtotal(); /* could be expensive to do this every time */ X #endif X return (sysctl_rdstruct(oldp, oldlenp, newp, &total, X! sizeof(total))); X case VM_SWAPMAP: X if (oldp == NULL) { X *oldlenp = (char *)swapmap[0].m_limit - X--- 480,497 ---- X averunnable.ldavg[1] = avenrun[1]; X averunnable.ldavg[2] = avenrun[2]; X return (sysctl_rdstruct(oldp, oldlenp, newp, &averunnable, X! sizeof(averunnable))); X case VM_METER: X #ifdef notsure X vmtotal(); /* could be expensive to do this every time */ X #endif X return (sysctl_rdstruct(oldp, oldlenp, newp, &total, X! sizeof(total))); X! #ifdef UCB_METER X! case VM_CP_TIME: X! return (sysctl_rdstruct(oldp, oldlenp, newp, cp_time, X! sizeof(cp_time))); X! #endif X case VM_SWAPMAP: X if (oldp == NULL) { X *oldlenp = (char *)swapmap[0].m_limit - X*************** X*** 486,491 **** X--- 510,520 ---- X (int)coremap[0].m_limit - (int)coremap[0].m_map)); X case VM_NSWAP: X return (sysctl_rdint(oldp, oldlenp, newp, nswap)); X+ /* X+ * added for 2.11BSD 35th Anniversary Edition X+ */ X+ case VM_SWAPDEV: X+ return (sysctl_rdint(oldp, oldlenp, newp, swapdev)); X default: X return (EOPNOTSUPP); X } X*************** X*** 720,726 **** X X /* X * This one is in kern_clock.c in 4.4 but placed here for the reasons X! * given earlier (back around line 367). X */ X X int X--- 749,755 ---- X X /* X * This one is in kern_clock.c in 4.4 but placed here for the reasons X! * given earlier (back around line 414). X */ X X int X*** ./usr/src/sys/sys/uipc_mbuf.c.old Thu Dec 24 19:35:53 1992 X--- ./usr/src/sys/sys/uipc_mbuf.c Thu Jul 16 19:43:03 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)uipc_mbuf.c 2.0 (2.11BSD) 12/24/92 X */ X X #include "param.h" X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)uipc_mbuf.c 2.1 (2.11BSD) 2026/7/15 X */ X X #include "param.h" X*************** X*** 14,19 **** X--- 14,32 ---- X #include "domain.h" X #include "protosw.h" X X+ /* X+ * These are global strings used by the panic() statements in the X+ * MGET() and MFREE() macros. Each use of MGET or MFREE used 5 or 6 bytes X+ * of D space! X+ */ X+ char mgetStr[] = "mget"; X+ char mfreeStr[] = "mfree"; X+ X+ /* X+ * One copy here saved 14 bytes of D space. X+ */ X+ static char mcopystr[] = "m_copy"; X+ X struct mbuf *mbuf, *mbutl, xmbuf[NMBUFS + 1]; X struct mbuf xmbutl[(NMBCLUSTERS*CLBYTES/sizeof (struct mbuf))+7]; X memaddr miobase; /* click address of dma region */ X*************** X*** 236,245 **** X if (len == 0) X return (0); X if (off < 0 || len < 0) X! panic("m_copy"); X while (off > 0) { X if (m == 0) X! panic("m_copy"); X if (off < m->m_len) X break; X off -= m->m_len; X--- 249,258 ---- X if (len == 0) X return (0); X if (off < 0 || len < 0) X! panic(mcopystr); X while (off > 0) { X if (m == 0) X! panic(mcopystr); X if (off < m->m_len) X break; X off -= m->m_len; X*************** X*** 250,256 **** X while (len > 0) { X if (m == 0) { X if (len != M_COPYALL) X! panic("m_copy"); X break; X } X MGET(n, M_DONTWAIT, m->m_type); X--- 263,269 ---- X while (len > 0) { X if (m == 0) { X if (len != M_COPYALL) X! panic(mcopystr); X break; X } X MGET(n, M_DONTWAIT, m->m_type); X*** ./usr/src/sys/sys/uipc_usrreq.c.old Sun Jan 19 01:28:07 1997 X--- ./usr/src/sys/sys/uipc_usrreq.c Wed Jul 15 20:32:04 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)uipc_usrreq.c 7.1.2 (2.11BSD GTE) 1997/1/18 X */ X X #include "param.h" X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)uipc_usrreq.c 7.1.3 (2.11BSD) 2026/7/15 X */ X X #include "param.h" X*************** X*** 254,260 **** X break; X X default: X! panic("piusrreq"); X } X release: X if (m) X--- 254,260 ---- X break; X X default: X! panic("uipc 5"); X } X release: X if (m) X*************** X*** 341,347 **** X if (error) X return(error); X if (!ip) X! panic("unp_bind"); X unp->unp_inode = ip; X unp->unp_addr = m_copy(nam, 0, M_COPYALL); X return (0); X--- 341,347 ---- X if (error) X return(error); X if (!ip) X! panic("unp 1"); X unp->unp_inode = ip; X unp->unp_addr = m_copy(nam, 0, M_COPYALL); X return (0); X*************** X*** 406,412 **** X break; X X default: X! panic("unp_connect2"); X } X return (0); X } X--- 406,412 ---- X break; X X default: X! panic("unp 2"); X } X return (0); X } X*************** X*** 428,434 **** X unp2 = unp2->unp_refs; X for (;;) { X if (unp2 == 0) X! panic("unp_disconnect"); X if (unp2->unp_nextref == unp) X break; X unp2 = unp2->unp_nextref; X--- 428,434 ---- X unp2 = unp2->unp_refs; X for (;;) { X if (unp2 == 0) X! panic("unp 3"); X if (unp2->unp_nextref == unp) X break; X unp2 = unp2->unp_nextref; X*************** X*** 495,501 **** X register struct file *fp; X int f; X X- printf("unp_externalize(0%o)\n",rights); X if (newfds > ufavail()) { X for (i = 0; i < newfds; i++) { X fp = *rp; X--- 495,500 ---- X*************** X*** 507,513 **** X for (i = 0; i < newfds; i++) { X f = ufalloc(0); X if (f < 0) X! panic("unp_externalize"); X fp = *rp; X u.u_ofile[f] = fp; X /* -1 added to msgcount, 0 to count */ X--- 506,512 ---- X for (i = 0; i < newfds; i++) { X f = ufalloc(0); X if (f < 0) X! panic("unp 4"); X fp = *rp; X u.u_ofile[f] = fp; X /* -1 added to msgcount, 0 to count */ X*************** X*** 527,533 **** X register int i; X register struct file *fp; X X- printf("unp_internalize(0%o)\n",rights); X rp = mtod(rights, struct file **); X for (i = 0; i < oldfds; i++, rp++) X GETF(fp, *(int *)rp); X--- 526,531 ---- X*** ./usr/src/sys/sys/uipc_syscalls.c.old Sun Feb 13 13:43:59 2000 X--- ./usr/src/sys/sys/uipc_syscalls.c Thu Jul 16 20:24:00 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)uipc_syscalls.c 7.1.3 (2.11BSD) 1999/9/13 X */ X X #include "param.h" X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)uipc_syscalls.c 7.1.4 (2.11BSD) 2026/7/16 X */ X X #include "param.h" X*************** X*** 136,147 **** X sizeof (namelen)); X if (u.u_error) X return; X- #ifndef pdp11 X- if (useracc((caddr_t)uap->name, (u_int)namelen, B_WRITE) == 0) { X- u.u_error = EFAULT; X- return; X- } X- #endif X noname: X fp = gtsockf(uap->s); X if (fp == 0) X--- 136,141 ---- X*************** X*** 519,525 **** X register struct iovec *iov; X register int i; X struct mbuf *from, *rights; X! int len, m_freem(); X X if (netoff) X return(u.u_error = ENETDOWN); X--- 513,519 ---- X register struct iovec *iov; X register int i; X struct mbuf *from, *rights; X! int len; X X if (netoff) X return(u.u_error = ENETDOWN); X*************** X*** 634,640 **** X int *avalsize; X } *uap = (struct a *)u.u_ap; X register struct file *fp; X! struct mbuf *m = NULL, *m_free(); X int valsize; X X if (netoff) X--- 628,634 ---- X int *avalsize; X } *uap = (struct a *)u.u_ap; X register struct file *fp; X! struct mbuf *m = NULL; X int valsize; X X if (netoff) X*************** X*** 649,656 **** X return; X } else X valsize = 0; X! u.u_error = X! SOGETOPT(fp->f_socket, uap->level, uap->name, &m); X if (u.u_error) X goto bad; X if (uap->val && valsize && m != NULL) { X--- 643,649 ---- X return; X } else X valsize = 0; X! u.u_error = SOGETOPT(fp->f_socket, uap->level, uap->name, &m); X if (u.u_error) X goto bad; X if (uap->val && valsize && m != NULL) { X*************** X*** 736,766 **** X return; X u.u_error = copyout((caddr_t)&len, (caddr_t)uap->alen, sizeof (len)); X } X- X- #ifndef pdp11 X- sockargs(aname, name, namelen, type) X- struct mbuf **aname; X- caddr_t name; X- int namelen, type; X- { X- register struct mbuf *m; X- int error; X- struct mbuf *m_free(); X- X- if (namelen > MLEN) X- return (EINVAL); X- m = m_get(M_WAIT, type); X- if (m == NULL) X- return (ENOBUFS); X- m->m_len = namelen; X- error = copyin(name, mtod(m, caddr_t), (u_int)namelen); X- if (error) X- (void) m_free(m); X- else X- *aname = m; X- return (error); X- } X- #endif X X struct file * X gtsockf(fdes) X--- 729,734 ---- X*** ./usr/src/sys/sys/subr_rmap.c.old Mon Dec 28 17:26:47 1992 X--- ./usr/src/sys/sys/subr_rmap.c Thu Jul 16 22:35:22 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)subr_rmap.c 1.2 (2.11BSD GTE) 12/24/92 X */ X X #include "param.h" X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)subr_rmap.c 1.3 (2.11BSD) 2026/7/16 X */ X X #include "param.h" X*************** X*** 54,60 **** X int retry; X X if (!size) X! panic("malloc: size = 0"); X /* X * Search for a piece of the resource map which has enough X * free space to accomodate the request. X--- 54,60 ---- X int retry; X X if (!size) X! panic("malloc(0)"); X /* X * Search for a piece of the resource map which has enough X * free space to accomodate the request. X*************** X*** 85,91 **** X /* no entries big enough */ X if (!retry++) { X if (mp == swapmap) { X! printf("short of swap\n"); X xumount(NODEV); X goto again; X } X--- 85,91 ---- X /* no entries big enough */ X if (!retry++) { X if (mp == swapmap) { X! printf("lo swap\n"); X xumount(NODEV); X goto again; X } X*************** X*** 113,119 **** X return; X /* the address must not be 0, or the protocol has broken down. */ X if (!addr) X! panic("mfree: addr = 0"); X if (mp == coremap) { X if (runin) { X runin = 0; X--- 113,119 ---- X return; X /* the address must not be 0, or the protocol has broken down. */ X if (!addr) X! panic("mfree(0)"); X if (mp == coremap) { X if (runin) { X runin = 0; X*************** X*** 180,186 **** X * use the above "for" loop to find the smallest entry X * and toss it. X */ X! printf("%s: overflow, lost %u clicks at 0%o\n", X mp->m_name, size, addr); X else { X for (ep = bp - 1; ep >= start; *bp-- = *ep--); X--- 180,186 ---- X * use the above "for" loop to find the smallest entry X * and toss it. X */ X! printf("%s overfl lost %u clicks @0%o\n", X mp->m_name, size, addr); X else { X for (ep = bp - 1; ep >= start; *bp-- = *ep--); X*************** X*** 233,239 **** X madd[next]->m_size += sizes[next]; X if (!retry++) X if (mp == swapmap) { X! printf("short of swap\n"); X xumount(NODEV); X goto again; X } X--- 233,239 ---- X madd[next]->m_size += sizes[next]; X if (!retry++) X if (mp == swapmap) { X! printf("lo swap\n"); X xumount(NODEV); X goto again; X } X*** ./usr/src/sys/sys/kern_time.c.old Fri Apr 21 22:24:56 2000 X--- ./usr/src/sys/sys/kern_time.c Fri Sep 18 17:17:42 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)kern_time.c 1.5 (2.11BSD) 2000/4/9 X */ X X #include "param.h" X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)kern_time.c 1.6 (2.11BSD) 2026/9/18 X */ X X #include "param.h" X*************** X*** 296,303 **** X return (0); X } X #endif /* NOT_CURRENTLY_IN_USE */ X- X- #define timevalfix tvfix X X /* X * Add and subtract routines for timevals. X--- 296,301 ---- X*** ./usr/src/sys/sys/kern_sig2.c.old Sun Feb 13 13:43:54 2000 X--- ./usr/src/sys/sys/kern_sig2.c Tue Sep 22 14:05:39 2026 X*************** X*** 35,41 **** X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X! * @(#)kern_sig.c 8.14.2 (2.11BSD) 1999/9/9 X */ X X /* X--- 35,41 ---- X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X! * @(#)kern_sig2.c 8.14.3 (2.11BSD) 2026/9/21 X */ X X /* X*************** X*** 48,54 **** X X #define SIGPROP /* include signal properties table */ X #include X! #include X #include X #include X #include X--- 48,54 ---- X X #define SIGPROP /* include signal properties table */ X #include X! #include X #include X #include X #include X*************** X*** 91,97 **** X } X sa = &vec; X if (uap->osa) { X! sa->sa_handler = u.u_signal[signum]; X sa->sa_mask = u.u_sigmask[signum]; X bit = sigmask(signum); X sa->sa_flags = 0; X--- 91,97 ---- X } X sa = &vec; X if (uap->osa) { X! sa->sa_handler = (sig_t)u.u_signal[signum]; X sa->sa_mask = u.u_sigmask[signum]; X bit = sigmask(signum); X sa->sa_flags = 0; X*************** X*** 126,132 **** X * Change setting atomically. X */ X (void) splhigh(); X! u.u_signal[signum] = sa->sa_handler; X u.u_sigmask[signum] = sa->sa_mask &~ sigcantmask; X if ((sa->sa_flags & SA_RESTART) == 0) X u.u_sigintr |= bit; X--- 126,132 ---- X * Change setting atomically. X */ X (void) splhigh(); X! (sig_t)u.u_signal[signum] = sa->sa_handler; X u.u_sigmask[signum] = sa->sa_mask &~ sigcantmask; X if ((sa->sa_flags & SA_RESTART) == 0) X u.u_sigintr |= bit; X*** ./usr/src/sys/net/af.c.old Wed Apr 27 11:13:24 1988 X--- ./usr/src/sys/net/af.c Thu Jul 9 16:39:59 2026 X*************** X*** 9,15 **** X * software without specific prior written permission. This software X * is provided ``as is'' without express or implied warranty. X * X! * @(#)af.c 7.3 (Berkeley) 12/30/87 X */ X X #include "param.h" X--- 9,15 ---- X * software without specific prior written permission. This software X * is provided ``as is'' without express or implied warranty. X * X! * @(#)af.c 7.4 (2.11BSD) 2026/7/9 X */ X X #include "param.h" X*************** X*** 42,53 **** X #define AFNS AFNULL X #endif X X! struct afswitch afswitch[AF_MAX] = { X! AFNULL, AFNULL, AFINET, AFINET, AFNULL, X! AFNULL, AFNS, AFNULL, AFNULL, AFNULL, X! AFNULL, AFNULL, AFNULL, AFNULL, AFNULL, X! AFNULL, AFNULL, /* through 16 */ X! }; X X null_init() X { X--- 42,49 ---- X #define AFNS AFNULL X #endif X X! /* unspec, unix, inet, implink, pup, ns */ X! struct afswitch afswitch[AF_MAX] = {AFNULL,AFNULL,AFINET,AFINET,AFNULL,AFNS}; X X null_init() X { X*** ./usr/src/sys/h/text.h.old Fri Jan 20 22:50:09 1995 X--- ./usr/src/sys/h/text.h Tue Jan 27 06:20:44 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)text.h 1.2 (2.11BSD GTE) 1/19/95 X */ X X #ifndef _SYS_TEXT_H_ X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)text.h 1.3 (2.11BSD) 2026/1/27 X */ X X #ifndef _SYS_TEXT_H_ X*************** X*** 39,45 **** X #define XLOAD 0x04 /* Currently being read from file */ X #define XLOCK 0x08 /* Being swapped in or out */ X #define XWANT 0x10 /* Wanted for swapping */ X- #define XPAGI 0x20 /* Page in on demand from inode */ X #define XUNUSED 0x40 /* unused since swapped out for cache */ X X /* arguments to xswap: */ X--- 39,44 ---- X*** ./usr/src/sys/h/trace.h.old Thu Jan 28 12:12:07 1988 X--- ./usr/src/sys/h/trace.h Sat Oct 24 20:47:35 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)trace.h 7.1 (Berkeley) 6/4/86 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)trace.h 7.2 (2.11BSD) 2026/5/13 X */ X X /* X*************** X*** 11,18 **** X * X * Slipped into 2.10 in about 15 minutes. Bears only a casual X * relationship to the 4.X code, we just used the same names so X! * someone could do it right if they felt like it. Note that X! * the #defines aren't even sequentially numbered. X */ X #define TR_BREADHIT 0 /* buffer read found in cache */ X #define TR_BREADMISS 1 /* buffer read not in cache */ X--- 11,19 ---- X * X * Slipped into 2.10 in about 15 minutes. Bears only a casual X * relationship to the 4.X code, we just used the same names so X! * someone could do it right if they felt like it. X! * X! * Version 7.2 removed non 2.11BSD defines and relocated tracebuf[] to ufs_bio.c X */ X #define TR_BREADHIT 0 /* buffer read found in cache */ X #define TR_BREADMISS 1 /* buffer read not in cache */ X*************** X*** 20,87 **** X #define TR_BREADHITRA 3 /* buffer read-ahead found in cache */ X #define TR_BREADMISSRA 4 /* buffer read-ahead not in cache */ X #define TR_BRELSE 5 /* brelse */ X! #define TR_SWAPIO 6 /* swap i/o request arrives */ X! #define TR_NUM_210 7 /* size of array for 2.10BSD X X- #define TR_XFODMISS 5 /* exe fod read */ X- #define TR_XFODHIT 6 /* exe fod read */ X- #define TR_BREALLOC 8 /* expand/contract a buffer */ X- X- /* X- * Memory allocator trace points; all trace the amount of memory involved X- */ X- #define TR_MALL 10 /* memory allocated */ X- X- /* X- * Paging trace points: all are X- */ X- #define TR_INTRANS 20 /* page intransit block */ X- #define TR_EINTRANS 21 /* page intransit wait done */ X- #define TR_FRECLAIM 22 /* reclaim from free list */ X- #define TR_RECLAIM 23 /* reclaim from loop */ X- #define TR_XSFREC 24 /* reclaim from free list instead of drum */ X- #define TR_XIFREC 25 /* reclaim from free list instead of fsys */ X- #define TR_WAITMEM 26 /* wait for memory in pagein */ X- #define TR_EWAITMEM 27 /* end memory wait in pagein */ X- #define TR_ZFOD 28 /* zfod page fault */ X- #define TR_EXFOD 29 /* exec fod page fault */ X- #define TR_VRFOD 30 /* vread fod page fault */ X- #define TR_CACHEFOD 31 /* fod in file system cache */ X- #define TR_SWAPIN 32 /* drum page fault */ X- #define TR_PGINDONE 33 /* page in done */ X- X- /* X- * System call trace points. X- */ X- #define TR_VADVISE 40 /* vadvise occurred with */ X- X- /* X- * Miscellaneous X- */ X- #define TR_STAMP 45 /* user said vtrace(VTR_STAMP, value); */ X- X- /* X- * This defines the size of the trace flags array. X- */ X- #define TR_NFLAGS 100 /* generous */ X- X- #define TRCSIZ 4096 X- X- /* X- * Specifications of the vtrace() system call, which takes one argument. X- */ X- #define VTRACE 64+51 X- X- #define VTR_DISABLE 0 /* set a trace flag to 0 */ X- #define VTR_ENABLE 1 /* set a trace flag to 1 */ X- #define VTR_VALUE 2 /* return value of a trace flag */ X- #define VTR_UALARM 3 /* set alarm to go off (sig 16) */ X- /* in specified number of hz */ X- #define VTR_STAMP 4 /* user specified stamp */ X- X #if defined(KERNEL) && defined(UCB_METER) && !defined(SUPERVISOR) X- u_long tracebuf[TR_NUM_210]; X #define trace(a) tracebuf[a]++; X #else X! #define trace(a) ; X #endif X--- 21,32 ---- X #define TR_BREADHITRA 3 /* buffer read-ahead found in cache */ X #define TR_BREADMISSRA 4 /* buffer read-ahead not in cache */ X #define TR_BRELSE 5 /* brelse */ X! #define TR_SWAPIO 6 /* swap i/o request */ X! #define TR_NUM_210 7 /* size of array for 2.10BSD */ X X #if defined(KERNEL) && defined(UCB_METER) && !defined(SUPERVISOR) X #define trace(a) tracebuf[a]++; X+ extern u_long tracebuf[TR_NUM_210]; X #else X! #define trace(a) ; X #endif X*** ./usr/src/sys/h/ioctl.h.old Tue Jan 7 21:50:32 2020 X--- ./usr/src/sys/h/ioctl.h Sun Sep 20 17:30:53 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)ioctl.h 1.5 (2.11BSD) 2020/1/7 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)ioctl.h 1.6 (2.11BSD) 2026/5/14 X */ X X /* X*************** X*** 11,23 **** X */ X #ifndef _IOCTL_ X #define _IOCTL_ X- #ifdef KERNEL X- #include "ttychars.h" X- #include "ttydev.h" X- #else X #include X #include X- #endif X X struct tchars { X char t_intrc; /* interrupt */ X--- 11,18 ---- X*************** X*** 219,225 **** X #define UIOCCMD(n) _IO('u', n) /* usr cntl op "n" */ X X #define OTTYDISC 0 /* old, v7 std tty driver */ X- #define NETLDISC 1 /* line discip for berk net */ X #define NTTYDISC 2 /* new tty discipline */ X #define TABLDISC 3 /* tablet discipline */ X #define SLIPDISC 4 /* serial IP discipline */ X--- 214,219 ---- X*** ./usr/src/sys/h/vmparam.h.old Tue Mar 3 09:24:58 2020 X--- ./usr/src/sys/h/vmparam.h Fri Oct 23 06:05:53 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)vmparam.h 7.2 (2.11BSD) 2020/3/3 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)vmparam.h 7.3 (2.11BSD) 2026/5/27 X */ X X /* X*************** X*** 23,29 **** X #define VM_SWAPMAP 3 /* struct mapent _swapmap[] */ X #define VM_COREMAP 4 /* struct mapent _coremap[] */ X #define VM_NSWAP 5 /* int nswap */ X! #define VM_MAXID 6 /* number of valid vm ids */ X X #ifndef KERNEL X #define CTL_VM_NAMES { \ X--- 23,31 ---- X #define VM_SWAPMAP 3 /* struct mapent _swapmap[] */ X #define VM_COREMAP 4 /* struct mapent _coremap[] */ X #define VM_NSWAP 5 /* int nswap */ X! #define VM_SWAPDEV 6 /* dev_t swapdev */ X! #define VM_CP_TIME 7 /* struct cp_time[] */ X! #define VM_MAXID 8 /* number of valid vm ids */ X X #ifndef KERNEL X #define CTL_VM_NAMES { \ X*************** X*** 33,37 **** X--- 35,41 ---- X { "swapmap", CTLTYPE_STRUCT }, \ X { "coremap", CTLTYPE_STRUCT }, \ X { "nswap", CTLTYPE_INT }, \ X+ { "swapdev", CTLTYPE_INT }, \ X+ { "cp_time", CTLTYPE_STRUCT }, \ X } X #endif X*** ./usr/src/sys/h/param.h.old Thu Jan 1 21:23:52 2026 X--- ./usr/src/sys/h/param.h Fri Oct 30 21:59:57 2026 X*************** X*** 3,12 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)param.h 1.8 (2.11BSD) 2026/1/1 X */ X X! #define BSD 202601 /* System version (year and month) */ X X #include X #include /* for 'offsetof' */ X--- 3,12 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)param.h 1.8 (2.11BSD) 2026/10/30 X */ X X! #define BSD 202610 /* System version (year and month) */ X X #include X #include /* for 'offsetof' */ X*** ./usr/src/sys/h/socket.h.old Wed Oct 11 22:13:16 1995 X--- ./usr/src/sys/h/socket.h Thu Jul 9 16:27:09 2026 X*************** X*** 9,15 **** X * software without specific prior written permission. This software X * is provided ``as is'' without express or implied warranty. X * X! * @(#)socket.h 7.2.2 (2.11BSD GTE) 1995/10/11 X */ X X #ifndef _SYS_SOCKET_H_ X--- 9,15 ---- X * software without specific prior written permission. This software X * is provided ``as is'' without express or implied warranty. X * X! * @(#)socket.h 7.2.3 (2.11BSD) 2026/7/9 X */ X X #ifndef _SYS_SOCKET_H_ X*************** X*** 74,93 **** X #define AF_INET 2 /* internetwork: UDP, TCP, etc. */ X #define AF_IMPLINK 3 /* arpanet imp addresses */ X #define AF_PUP 4 /* pup protocols: e.g. BSP */ X! #define AF_CHAOS 5 /* mit CHAOS protocols */ X! #define AF_NS 6 /* XEROX NS protocols */ X! #define AF_NBS 7 /* nbs protocols */ X! #define AF_ECMA 8 /* european computer manufacturers */ X! #define AF_DATAKIT 9 /* datakit protocols */ X! #define AF_CCITT 10 /* CCITT protocols, X.25 etc */ X! #define AF_SNA 11 /* IBM SNA */ X! #define AF_DECnet 12 /* DECnet */ X! #define AF_DLI 13 /* Direct data link interface */ X! #define AF_LAT 14 /* LAT */ X! #define AF_HYLINK 15 /* NSC Hyperchannel */ X! #define AF_APPLETALK 16 /* Apple Talk */ X X! #define AF_MAX 17 X X /* X * Structure used by kernel to store most X--- 74,82 ---- X #define AF_INET 2 /* internetwork: UDP, TCP, etc. */ X #define AF_IMPLINK 3 /* arpanet imp addresses */ X #define AF_PUP 4 /* pup protocols: e.g. BSP */ X! #define AF_NS 5 /* XEROX NS protocols */ X X! #define AF_MAX 6 X X /* X * Structure used by kernel to store most X*************** X*** 115,132 **** X #define PF_INET AF_INET X #define PF_IMPLINK AF_IMPLINK X #define PF_PUP AF_PUP X- #define PF_CHAOS AF_CHAOS X #define PF_NS AF_NS X- #define PF_NBS AF_NBS X- #define PF_ECMA AF_ECMA X- #define PF_DATAKIT AF_DATAKIT X- #define PF_CCITT AF_CCITT X- #define PF_SNA AF_SNA X- #define PF_DECnet AF_DECnet X- #define PF_DLI AF_DLI X- #define PF_LAT AF_LAT X- #define PF_HYLINK AF_HYLINK X- #define PF_APPLETALK AF_APPLETALK X X #define PF_MAX AF_MAX X X--- 104,110 ---- X*************** X*** 147,164 **** X { "inet", CTLTYPE_NODE }, \ X { "implink", CTLTYPE_NODE }, \ X { "pup", CTLTYPE_NODE }, \ X! { "chaos", CTLTYPE_NODE }, \ X! { "xerox_ns", CTLTYPE_NODE }, \ X! { "iso", CTLTYPE_NODE }, \ X! { "emca", CTLTYPE_NODE }, \ X! { "datakit", CTLTYPE_NODE }, \ X! { "ccitt", CTLTYPE_NODE }, \ X! { "ibm_sna", CTLTYPE_NODE }, \ X! { "decnet", CTLTYPE_NODE }, \ X! { "dec_dli", CTLTYPE_NODE }, \ X! { "lat", CTLTYPE_NODE }, \ X! { "hylink", CTLTYPE_NODE }, \ X! { "appletalk", CTLTYPE_NODE }, \ X } X #endif X X--- 125,131 ---- X { "inet", CTLTYPE_NODE }, \ X { "implink", CTLTYPE_NODE }, \ X { "pup", CTLTYPE_NODE }, \ X! { "xerox_ns", CTLTYPE_NODE } \ X } X #endif X X*** ./usr/src/sys/h/mbuf.h.old Tue Jan 11 00:31:09 1994 X--- ./usr/src/sys/h/mbuf.h Thu Jul 16 20:55:26 2026 X*************** X*** 9,15 **** X * software without specific prior written permission. This software X * is provided ``as is'' without express or implied warranty. X * X! * @(#)mbuf.h 7.8.2 (2.11BSD GTE) 12/31/93 X */ X X /* X--- 9,15 ---- X * software without specific prior written permission. This software X * is provided ``as is'' without express or implied warranty. X * X! * @(#)mbuf.h 7.8.3 (2.11BSD) 2026/7/16 X */ X X /* X*************** X*** 102,108 **** X #define MGET(m, i, t) \ X { int ms = splimp(); \ X if ((m)=mfree) \ X! { if ((m)->m_type != MT_FREE) panic("mget"); (m)->m_type = t; \ X mbstat.m_mtypes[MT_FREE]--; mbstat.m_mtypes[t]++; \ X mfree = (m)->m_next; (m)->m_next = 0; \ X (m)->m_off = MMINOFF; } \ X--- 102,108 ---- X #define MGET(m, i, t) \ X { int ms = splimp(); \ X if ((m)=mfree) \ X! { if ((m)->m_type != MT_FREE) panic(mgetStr); (m)->m_type = t; \ X mbstat.m_mtypes[MT_FREE]--; mbstat.m_mtypes[t]++; \ X mfree = (m)->m_next; (m)->m_next = 0; \ X (m)->m_off = MMINOFF; } \ X*************** X*** 109,114 **** X--- 109,115 ---- X else \ X (m) = m_more((((ms&0340) <= 0100) && (i==M_DONTWAIT)) ? M_DONTWAITLONG : i, t); \ X splx(ms); } X+ X /* X * Mbuf page cluster macros. X * MCLALLOC allocates mbuf page clusters. X*************** X*** 150,156 **** X } X #define MFREE(m, n) \ X { int ms = splimp(); \ X! if ((m)->m_type == MT_FREE) panic("mfree"); \ X mbstat.m_mtypes[(m)->m_type]--; mbstat.m_mtypes[MT_FREE]++; \ X (m)->m_type = MT_FREE; \ X if (M_HASCL(m)) { \ X--- 151,157 ---- X } X #define MFREE(m, n) \ X { int ms = splimp(); \ X! if ((m)->m_type == MT_FREE) panic(mfreeStr); \ X mbstat.m_mtypes[(m)->m_type]--; mbstat.m_mtypes[MT_FREE]++; \ X (m)->m_type = MT_FREE; \ X if (M_HASCL(m)) { \ X*************** X*** 188,193 **** X--- 189,203 ---- X char mclrefcnt[NMBCLUSTERS + 1]; X int m_want; X struct mbuf *m_get(),*m_getclr(),*m_free(),*m_more(),*m_copy(),*m_pullup(); X+ X+ /* X+ * These are defined in uipc_mbuf.c X+ * X+ * Each MGET() used 5 bytes of D space for the panic string. Each MFREE() X+ * used 6 bytes. X+ */ X+ extern char mgetStr[], mfreeStr[]; X+ X #ifndef pdp11 X caddr_t m_clalloc(); X #endif X*** ./usr/src/sys/h/time.h.old Fri Apr 21 22:36:40 2000 X--- ./usr/src/sys/h/time.h Tue Jul 21 19:45:41 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)time.h 1.3 (2.11BSD) 2000/4/21 X */ X X #ifndef _SYS_TIME_H_ X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)time.h 1.4 (2.11BSD) 2026/7/21 X */ X X #ifndef _SYS_TIME_H_ X*************** X*** 16,22 **** X * and used in other calls. X */ X struct timeval { X! long tv_sec; /* seconds */ X long tv_usec; /* and microseconds */ X }; X X--- 16,22 ---- X * and used in other calls. X */ X struct timeval { X! time_t tv_sec; /* seconds */ X long tv_usec; /* and microseconds */ X }; X X*** ./usr/src/sys/h/mount.h.old Mon Nov 18 07:57:12 2019 X--- ./usr/src/sys/h/mount.h Wed Sep 23 18:34:31 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)mount.h 7.3 (2.11BSD) 2019/11/18 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)mount.h 7.4 (2.11BSD) 2026/23 X */ X X /* X*************** X*** 101,106 **** X--- 101,111 ---- X */ X #define MNT_WAIT 1 X #define MNT_NOWAIT 2 X+ X+ #ifndef KERNEL X+ int mount(const char *, const char *, int); X+ int umount(const char *); X+ #endif X X #if defined(KERNEL) && !defined(SUPERVISOR) X struct mount mount[NMOUNT]; X*** ./usr/src/sys/h/sysctl.h.old Tue Aug 17 00:58:49 1999 X--- ./usr/src/sys/h/sysctl.h Mon Oct 26 19:53:37 2026 X*************** X*** 33,39 **** X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X! * @(#)sysctl.h 8.1.3 (2.11BSD) 1999/4/29 X */ X X #ifndef _SYS_SYSCTL_H_ X--- 33,39 ---- X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X! * @(#)sysctl.h 8.1.4 (2.11BSD) 2026/10/22 X */ X X #ifndef _SYS_SYSCTL_H_ X*************** X*** 136,142 **** X #define KERN_MAXTEXTS 22 /* int: # of text entries */ X #define KERN_TEXT 23 /* struct: text entries */ X #define KERN_ACCTTHRESH 24 /* int: accounting daemon threshold */ X! #define KERN_MAXID 25 /* number of valid kern ids */ X X #ifndef KERNEL X #define CTL_KERN_NAMES { \ X--- 136,143 ---- X #define KERN_MAXTEXTS 22 /* int: # of text entries */ X #define KERN_TEXT 23 /* struct: text entries */ X #define KERN_ACCTTHRESH 24 /* int: accounting daemon threshold */ X! #define KERN_LINEHZ 25 /* int: get/set _hz */ X! #define KERN_MAXID 26 /* number of valid kern ids */ X X #ifndef KERNEL X #define CTL_KERN_NAMES { \ X*************** X*** 165,170 **** X--- 166,172 ---- X { "maxtexts", CTLTYPE_INT }, \ X { "text", CTLTYPE_STRUCT }, \ X { "acctthresh", CTLTYPE_INT }, \ X+ { "linehz", CTLTYPE_INT }, \ X } X #endif X X*************** X*** 227,234 **** X #define HW_USERMEM 6 /* int: non-kernel memory */ X #define HW_PAGESIZE 7 /* int: software page size */ X #define HW_DISKNAMES 8 /* strings: disk drive names */ X! #define HW_DISKSTATS 9 /* struct: diskstats[] */ X! #define HW_MAXID 10 /* number of valid hw ids */ X X #ifndef KERNEL X #define CTL_HW_NAMES { \ X--- 229,237 ---- X #define HW_USERMEM 6 /* int: non-kernel memory */ X #define HW_PAGESIZE 7 /* int: software page size */ X #define HW_DISKNAMES 8 /* strings: disk drive names */ X! #define HW_DISKSTATS 9 /* struct: long diskstats[] */ X! #define HW_TRACEBUF 10 /* struct: long tracebuf[] */ X! #define HW_MAXID 11 /* number of valid hw ids */ X X #ifndef KERNEL X #define CTL_HW_NAMES { \ X*************** X*** 242,247 **** X--- 245,251 ---- X { "pagesize", CTLTYPE_INT }, \ X { "disknames", CTLTYPE_STRUCT }, \ X { "diskstats", CTLTYPE_STRUCT }, \ X+ { "tracebuf", CTLTYPE_STRUCT }, \ X } X #endif X X*************** X*** 316,322 **** X * variable. The loader prevents multiple use by issuing errors X * if a variable is initialized in more than one place. They are X * aggregated into an array in debug_sysctl(), so that it can X! * conveniently locate them when querried. If more debugging X * variables are added, they must also be declared here and also X * entered into the array. X */ X--- 320,326 ---- X * variable. The loader prevents multiple use by issuing errors X * if a variable is initialized in more than one place. They are X * aggregated into an array in debug_sysctl(), so that it can X! * conveniently locate them when queried. If more debugging X * variables are added, they must also be declared here and also X * entered into the array. X */ X*** ./usr/src/sys/pdp/symbols.raw.old Sat Jan 22 19:21:11 1994 X--- ./usr/src/sys/pdp/symbols.raw Wed Mar 25 16:05:20 2026 X*************** X*** 1,4 **** X! #symbols.raw 1.0 January 22, 1994 X _version X #checksys X _end X--- 1,4 ---- X! #symbols.raw 1.1 (2.11BSD) February 25, 2026 X _version X #checksys X _end X*************** X*** 25,42 **** X _proc X _nproc X _hz X- #snake X- _avenrun X #trace X _tracebuf X- #welcome X- _avenrun X- #jove X- _avenrun X #ntpd X- _tickadj X _hz X- _tick X #gcore X _proc X _nproc X--- 25,34 ---- X*************** X*** 52,58 **** X _udpstat X _rawcb X _ifnet X- _hosts X _rthost X _rtnet X _icmpstat X--- 44,49 ---- X*************** X*** 59,72 **** X _rtstat X _unixsw X _rthashsize X- _nspcb X- _idpstat X- # _spp_istat X- # _ns_errstat X #w X _proc X _swapdev X- _avenrun X _boottime X _nproc X #vmstat X--- 50,58 ---- X*************** X*** 73,101 **** X _cp_time X _rate X _total X- # _deficit X _forkstat X _sum X- _firstfree X- _maxfree X _boottime X _dk_xfer X- # _rectime X- # _pgintime X _hz X- _phz X _nchstats X- # _intrnames X- # _eintrnames X- # _intrcnt X- # _eintrcnt X _dk_ndrive X _xstats X _dk_name X _dk_unit X _freemem X- # _mbdinit X- # _ubdinit X #acucntrl X _cdevsw X _dzopen X--- 59,75 ---- X*************** X*** 106,115 **** X _dhinfo X _ndh11 X _dhsoftCAR X- _dmfopen X- _dmfinfo X- _ndmf X- _dmfsoftCAR X #iostat X _dk_busy X _dk_time X--- 80,85 ---- X*************** X*** 124,131 **** X _dk_ndrive X _dk_name X _dk_unit X- #sendmail X- _avenrun X #fstat X _proc X _nproc X--- 94,99 ---- X*************** X*** 156,162 **** X _arptab_size X _netdata X #rwhod X- _avenrun X _boottime X #pstat X _inode X--- 124,129 ---- X*************** X*** 176,183 **** X _nfile X _ninode X _pt_tty X- _dmf_tty X- _ndmf X _npty X _dhu_tty X _ndhu X--- 143,148 ---- X*** ./usr/src/sys/pdp/conf.c.old Sat Dec 27 19:21:22 2008 X--- ./usr/src/sys/pdp/conf.c Fri May 15 16:24:04 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)conf.c 3.2 (2.11BSD GTE) 1997/11/12 X */ X X #include "param.h" X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)conf.c 3.3 (2.11BSD) 2026/5/15 X */ X X #include "param.h" X*************** X*** 149,155 **** X #define raioctl nodev X #define raroot nulldev X #define rastrategy nodev X! #define rasize nodev X #endif X X #include "rx.h" X--- 149,155 ---- X #define raioctl nodev X #define raroot nulldev X #define rastrategy nodev X! #define rasize NULL X #endif X X #include "rx.h" X*** ./usr/src/sys/pdp/machdep.c.old Sun Feb 13 13:44:03 2000 X--- ./usr/src/sys/pdp/machdep.c Sat May 16 17:07:08 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)machdep.c 2.4 (2.11BSD) 1999/9/13 X */ X X #include "param.h" X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)machdep.c 2.5 (2.11BSD) 2026/5/16 X */ X X #include "param.h" X*************** X*** 299,305 **** X X size_t sofub_addr, sofub_off; X memaddr sofub_base; X! unsigned sofub_size; X X static int bpxm, bpadd; X static int sofub_flags; X--- 299,305 ---- X X size_t sofub_addr, sofub_off; X memaddr sofub_base; X! unsigned sofub_size = (10240+64); /* initialized for checksys to use */ X X static int bpxm, bpadd; X static int sofub_flags; X*** ./usr/src/sys/pdp/machdep2.c.old Mon Jan 20 09:24:45 2020 X--- ./usr/src/sys/pdp/machdep2.c Sat May 16 17:07:12 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)machdep2.c 2.11 (2.11BSD) 2020/1/20 X */ X X #include "param.h" X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)machdep2.c 2.12 (2.11BSD) 2026/5/16 X */ X X #include "param.h" X*************** X*** 161,176 **** X */ X X #ifdef SOFUB_MAP X! #define B (10240+64) X! X! sofub_size = (unsigned) B; X! X! if ((sofub_base = malloc(coremap, btoc(B))) == 0) X panic("sofmap"); /* Paranoia */ X! else if (((sofub_base + btoc(B)) >> 10) > 3) /* > 256kb! */ X { X printf("sofmap > 256kb\n"); X! mfree(coremap, btoc(B), sofub_base); /* give it back */ X sofub_base = 0; X } X else X--- 161,172 ---- X */ X X #ifdef SOFUB_MAP X! if ((sofub_base = malloc(coremap, btoc(sofub_size))) == 0) X panic("sofmap"); /* Paranoia */ X! else if (((sofub_base + btoc(sofub_size)) >> 10) > 3) /* > 256kb! */ X { X printf("sofmap > 256kb\n"); X! mfree(coremap, btoc(sofub_size), sofub_base); /* give it back */ X sofub_base = 0; X } X else X*************** X*** 178,184 **** X sofub_addr = sofub_base; X sofub_off = (sofub_base>>10)&3; X } X- #undef B X #endif /* SOFUB_MAP */ X X #ifdef EXTERNALITIMES X--- 174,179 ---- X*** ./usr/src/sys/pdp/fperr.h.old Fri Aug 29 21:53:09 1997 X--- ./usr/src/sys/pdp/fperr.h Mon Sep 21 09:59:51 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)fperr.h 1.2 (2.11BSD) 1997/8/28 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)fperr.h 1.3 (2.11BSD) 2026/9/21 X */ X X /* X*************** X*** 16,22 **** X X /* X * These are not used any where and are present here merely for reference. X! * All the of the VAX oriented FP codes were removed from signal.h and the X * kernel. The kernel now passes the unaltered contents of the FEC register to X * the application. The values below were taken from the PDP-11/70 processor X * handbook. X--- 16,22 ---- X X /* X * These are not used any where and are present here merely for reference. X! * All of the VAX oriented FP codes were removed from signal.h and the X * kernel. The kernel now passes the unaltered contents of the FEC register to X * the application. The values below were taken from the PDP-11/70 processor X * handbook. X*************** X*** 30,33 **** X #define FPE_FLTUND_TRAP 0xa /* FP underflow */ X #define FPE_UNDEF_TRAP 0xc /* FP Undefined variable */ X #define FPE_MAINT_TRAP 0xe /* FP Maint trap */ X! #endif /* notnow */ X--- 30,33 ---- X #define FPE_FLTUND_TRAP 0xa /* FP underflow */ X #define FPE_UNDEF_TRAP 0xc /* FP Undefined variable */ X #define FPE_MAINT_TRAP 0xe /* FP Maint trap */ X! #endif X*** ./usr/src/sys/netinet/in.h.old Tue Oct 10 00:16:12 1995 X--- ./usr/src/sys/netinet/in.h Fri Jul 10 21:06:00 2026 X*************** X*** 9,15 **** X * software without specific prior written permission. This software X * is provided ``as is'' without express or implied warranty. X * X! * @(#)in.h 7.5.3 (2.11BSD GTE) 1995/10/09 X */ X X /* X--- 9,15 ---- X * software without specific prior written permission. This software X * is provided ``as is'' without express or implied warranty. X * X! * @(#)in.h 7.5.4 (2.11BSD) 2026/7/10 X */ X X /* X*************** X*** 153,159 **** X #define IPCTL_DEFMTU 4 /* default MTU */ X #endif X #define IPCTL_FORWSRCRT 5 /* forward source-routed dgrams */ X! #define IPCTL_MAXID 6 X X #ifndef KERNEL X #define IPCTL_NAMES { \ X--- 153,160 ---- X #define IPCTL_DEFMTU 4 /* default MTU */ X #endif X #define IPCTL_FORWSRCRT 5 /* forward source-routed dgrams */ X! #define IPCTL_FW2TIMEOUT 6 /* fin_wait_2 timeout */ X! #define IPCTL_MAXID 7 X X #ifndef KERNEL X #define IPCTL_NAMES { \ X*************** X*** 163,168 **** X--- 164,170 ---- X { "ttl", CTLTYPE_INT }, \ X { "mtu", CTLTYPE_INT }, \ X { "forwsrcrt", CTLTYPE_INT }, \ X+ { "tcp_fw2timeout", CTLTYPE_INT }, \ X } X #endif /* KERNEL */ X X*** ./usr/src/sys/netinet/in_proto.c.old Tue Oct 10 01:08:00 1995 X--- ./usr/src/sys/netinet/in_proto.c Fri May 15 06:14:40 2026 X*************** X*** 9,15 **** X * software without specific prior written permission. This software X * is provided ``as is'' without express or implied warranty. X * X! * @(#)in_proto.c 7.2.1 (2.11BSD) 1995/10/09 X */ X X #include "param.h" X--- 9,15 ---- X * software without specific prior written permission. This software X * is provided ``as is'' without express or implied warranty. X * X! * @(#)in_proto.c 7.2.2 (2.11BSD) 2026/5/15 X */ X X #include "param.h" X*************** X*** 111,136 **** X struct domain impdomain = X { AF_IMPLINK, "imp", 0, 0, 0, X impsw, &impsw[sizeof (impsw)/sizeof(impsw[0])] }; X- #endif X- X- #include "hy.h" X- #if NHY > 0 X- /* X- * HYPERchannel protocol family: raw interface. X- */ X- int rhy_output(); X- extern struct domain hydomain; X- X- struct protosw hysw[] = { X- { SOCK_RAW, &hydomain, 0, PR_ATOMIC|PR_ADDR, X- 0, rhy_output, 0, 0, X- raw_usrreq, X- 0, 0, 0, 0, X- }, X- }; X- X- struct domain hydomain = X- { AF_HYLINK, "hy", 0, 0, 0, hysw, &hysw[sizeof (hysw)/sizeof(hysw[0])] }; X #endif X X #ifndef IPFORWARDING X--- 111,116 ---- X*** ./usr/src/sys/netinet/ip_input.c.old Fri Jan 21 20:42:55 2022 X--- ./usr/src/sys/netinet/ip_input.c Thu Jul 16 22:20:19 2026 X*************** X*** 9,15 **** X * software without specific prior written permission. This software X * is provided ``as is'' without express or implied warranty. X * X! * @(#)ip_input.c 7.10 (2.11BSD) 2022/1/21 X */ X X #include "param.h" X--- 9,15 ---- X * software without specific prior written permission. This software X * is provided ``as is'' without express or implied warranty. X * X! * @(#)ip_input.c 7.11 (2.11BSD) 2026/7/10 X */ X X #include "param.h" X*************** X*** 35,40 **** X--- 35,42 ---- X #include "tcp.h" X X extern int ipforwarding, ipsendredirects, ipforward_srcrt, ip_defttl; X+ extern int tcp_fw2timeout; X+ X u_char ip_protox[IPPROTO_MAX]; X int ipqmaxlen = IFQ_MAXLEN; X int ipprintfs = 0; X*************** X*** 748,754 **** X olen = option[IPOPT_OLEN]; X if (olen > sizeof(ip_srcrt) - 1) { X if (ipprintfs) X! printf("save_rte: olen %d\n", olen); X return; X } X bcopy((caddr_t)option, (caddr_t)ip_srcrt.srcopt, olen); X--- 750,756 ---- X olen = option[IPOPT_OLEN]; X if (olen > sizeof(ip_srcrt) - 1) { X if (ipprintfs) X! printf("save_rte %d\n", olen); X return; X } X bcopy((caddr_t)option, (caddr_t)ip_srcrt.srcopt, olen); X*************** X*** 863,869 **** X X dest.s_addr = 0; X if (ipprintfs) X! printf("forward: src %lx dst %lx ttl %x\n", ntohl(ip->ip_src), X ntohl(ip->ip_dst), ip->ip_ttl); X ip->ip_id = htons(ip->ip_id); X if (in_canforward(ip->ip_dst) == 0) { X--- 865,871 ---- X X dest.s_addr = 0; X if (ipprintfs) X! printf("fw src %lx dst %lx ttl %x\n", ntohl(ip->ip_src), X ntohl(ip->ip_dst), ip->ip_ttl); X ip->ip_id = htons(ip->ip_id); X if (in_canforward(ip->ip_dst) == 0) { X*************** X*** 942,948 **** X break; X } X if (ipprintfs) X! printf("redirect (%d) to %x\n", code, dest); X } X } X X--- 944,950 ---- X break; X } X if (ipprintfs) X! printf("redir (%d) to %x\n", code, dest); X } X } X X*************** X*** 1025,1032 **** X return (sysctl_int(oldp, oldlenp, newp, newlen, &ip_mtu)); X #endif X case IPCTL_FORWSRCRT: X! return (sysctl_int(oldp, oldlenp, newp, newlen, X! &ipforward_srcrt)); X default: X return (EOPNOTSUPP); X } X--- 1027,1035 ---- X return (sysctl_int(oldp, oldlenp, newp, newlen, &ip_mtu)); X #endif X case IPCTL_FORWSRCRT: X! return (sysctl_int(oldp, oldlenp, newp, newlen, &ipforward_srcrt)); X! case IPCTL_FW2TIMEOUT: X! return (sysctl_int(oldp, oldlenp, newp, newlen, &tcp_fw2timeout)); X default: X return (EOPNOTSUPP); X } X*** ./usr/src/sys/netinet/tcp_timer.c.old Fri Oct 13 23:54:54 2000 X--- ./usr/src/sys/netinet/tcp_timer.c Fri Jul 10 06:45:07 2026 X*************** X*** 9,15 **** X * software without specific prior written permission. This software X * is provided ``as is'' without express or implied warranty. X * X! * @(#)tcp_timer.c 7.11.1.3 (2.11BSD) 2000/5/17 X */ X X #include "param.h" X--- 9,15 ---- X * software without specific prior written permission. This software X * is provided ``as is'' without express or implied warranty. X * X! * @(#)tcp_timer.c 7.11.1.4 (2.11BSD) 2026/7/10 X */ X X #include "param.h" X*************** X*** 143,150 **** X--- 143,158 ---- X * still waiting for peer to close and connection has been idle X * too long, or if 2MSL time is up from TIME_WAIT, delete connection X * control block. Otherwise, check again in a bit. X+ * X+ * If we are in FIN_WAIT_2 and the 2MSL timer has gone off, X+ * the other end hasn't sent a FIN. Give up on this connection. X */ X case TCPT_2MSL: X+ if (tp->t_state == TCPS_FIN_WAIT_2) { X+ tp = tcp_close(tp); X+ break; X+ } X+ X if (tp->t_state != TCPS_TIME_WAIT && X tp->t_idle <= tcp_maxidle) X tp->t_timer[TCPT_2MSL] = tcp_keepintvl; X*** ./usr/src/sys/netinet/tcp_input.c.old Fri Oct 13 23:54:53 2000 X--- ./usr/src/sys/netinet/tcp_input.c Thu Jul 16 22:26:51 2026 X*************** X*** 9,15 **** X * software without specific prior written permission. This software X * is provided ``as is'' without express or implied warranty. X * X! * @(#)tcp_input.c 7.15.1.3 (2.11BSD) 2000/5/17 X */ X X #include "param.h" X--- 9,15 ---- X * software without specific prior written permission. This software X * is provided ``as is'' without express or implied warranty. X * X! * @(#)tcp_input.c 7.15.1.4 (2.11BSD) 2026/7/10 X */ X X #include "param.h" X*************** X*** 40,45 **** X--- 40,46 ---- X int tcpprintfs = 0; X int tcpcksum = 1; X int tcprexmtthresh = 3; X+ int tcp_fw2timeout = 30 * PR_SLOWHZ; /* set to 0 to disable timer */ X struct tcpiphdr tcp_saveti; X extern tcpnodelack; X X*************** X*** 222,228 **** X ti->ti_len = htons((u_short)ti->ti_len); X if (ti->ti_sum = in_cksum(m, len)) { X if (tcpprintfs) X! printf("tcp sum: src %x\n", ti->ti_src); X tcpstat.tcps_rcvbadsum++; X goto drop; X } X--- 223,229 ---- X ti->ti_len = htons((u_short)ti->ti_len); X if (ti->ti_sum = in_cksum(m, len)) { X if (tcpprintfs) X! printf("tcpsum %x\n", ti->ti_src); X tcpstat.tcps_rcvbadsum++; X goto drop; X } X*************** X*** 235,241 **** X off = ti->ti_off << 2; X if (off < sizeof (struct tcphdr) || off > tlen) { X if (tcpprintfs) X! printf("tcp off: src %x off %d\n", ti->ti_src, off); X tcpstat.tcps_rcvbadoff++; X goto drop; X } X--- 236,242 ---- X off = ti->ti_off << 2; X if (off < sizeof (struct tcphdr) || off > tlen) { X if (tcpprintfs) X! printf("tcpoff %x %d\n", ti->ti_src, off); X tcpstat.tcps_rcvbadoff++; X goto drop; X } X*************** X*** 873,881 **** X * specification, but if we don't get a FIN X * we'll hang forever. X */ X! if (so->so_state & SS_CANTRCVMORE) { X soisdisconnected(so); X! tp->t_timer[TCPT_2MSL] = tcp_maxidle; X } X tp->t_state = TCPS_FIN_WAIT_2; X } X--- 874,883 ---- X * specification, but if we don't get a FIN X * we'll hang forever. X */ X! if ((so->so_state & SS_CANTRCVMORE) && tcp_fw2timeout) { X soisdisconnected(so); X! tcp_canceltimers(tp); X! tp->t_timer[TCPT_2MSL] = tcp_fw2timeout; X } X tp->t_state = TCPS_FIN_WAIT_2; X } X*************** X*** 1211,1217 **** X if (m == 0) X break; X } X! panic("tcp_pulloutofband"); X } X X /* X--- 1213,1219 ---- X if (m == 0) X break; X } X! panic("tcp_pull"); X } X X /* X*** ./usr/src/sys/netinet/if_ether.c.old Sat Aug 30 23:17:56 2025 X--- ./usr/src/sys/netinet/if_ether.c Thu Jul 16 22:29:50 2026 X*************** X*** 9,15 **** X * software without specific prior written permission. This software X * is provided ``as is'' without express or implied warranty. X * X! * @(#)if_ether.c 7.8 (2.11BSD) 2025/8/21 X */ X X /* X--- 9,15 ---- X * software without specific prior written permission. This software X * is provided ``as is'' without express or implied warranty. X * X! * @(#)if_ether.c 7.9 (2.11BSD) 2026/7/16 X */ X X /* X*************** X*** 201,207 **** X } else { X at = arptnew(destip); X if (at == 0) X! panic("arpresolve: no free entry"); X at->at_hold = m; X arpwhohas(ac, destip); X splx(s); X--- 201,207 ---- X } else { X at = arptnew(destip); X if (at == 0) X! panic("arp !free"); X at->at_hold = m; X arpwhohas(ac, destip); X splx(s); X*************** X*** 287,300 **** X goto out; /* it's from me, ignore it. */ X if (!bcmp((caddr_t)ea->arp_sha, (caddr_t)etherbroadcastaddr, X sizeof (ea->arp_sha))) { X! printf("arp: ether address is broadcast for IP address %x!\n", X! ntohl(isaddr.s_addr)); X goto out; X } X if (isaddr.s_addr == myaddr.s_addr) { X! printf("%s: %s\n", X! "duplicate IP address!! sent from ethernet address", X! ether_sprintf(ea->arp_sha)); X itaddr = myaddr; X if (op == ARPOP_REQUEST) X goto reply; X--- 287,297 ---- X goto out; /* it's from me, ignore it. */ X if (!bcmp((caddr_t)ea->arp_sha, (caddr_t)etherbroadcastaddr, X sizeof (ea->arp_sha))) { X! printf("eth=bcast %x\n", ntohl(isaddr.s_addr)); X goto out; X } X if (isaddr.s_addr == myaddr.s_addr) { X! printf("dup IP frm %s\n", ether_sprintf(ea->arp_sha)); X itaddr = myaddr; X if (op == ARPOP_REQUEST) X goto reply; X*** ./usr/src/sys/netinet/tcp_output.c.old Fri Oct 13 23:54:54 2000 X--- ./usr/src/sys/netinet/tcp_output.c Thu Jul 16 22:28:17 2026 X*************** X*** 9,15 **** X * software without specific prior written permission. This software X * is provided ``as is'' without express or implied warranty. X * X! * @(#)tcp_output.c 7.13.1.5 (2.11BSD) 2000/5/17 X */ X X #include "param.h" X--- 9,15 ---- X * software without specific prior written permission. This software X * is provided ``as is'' without express or implied warranty. X * X! * @(#)tcp_output.c 7.13.1.5 (2.11BSD) 2026/7/16 X */ X X #include "param.h" X*************** X*** 240,246 **** X X ti = mtod(m, struct tcpiphdr *); X if (tp->t_template == 0) X! panic("tcp_output"); X bcopy((caddr_t)tp->t_template, (caddr_t)ti, sizeof (struct tcpiphdr)); X X /* X--- 240,246 ---- X X ti = mtod(m, struct tcpiphdr *); X if (tp->t_template == 0) X! panic("tcpo 1"); X bcopy((caddr_t)tp->t_template, (caddr_t)ti, sizeof (struct tcpiphdr)); X X /* X*************** X*** 421,427 **** X register t = ((tp->t_srtt >> 2) + tp->t_rttvar) >> 1; X X if (tp->t_timer[TCPT_REXMT]) X! panic("tcp_output REXMT"); X /* X * Start/restart persistance timer. X */ X--- 421,427 ---- X register t = ((tp->t_srtt >> 2) + tp->t_rttvar) >> 1; X X if (tp->t_timer[TCPT_REXMT]) X! panic("tcpo 2"); X /* X * Start/restart persistance timer. X */ X*** ./usr/src/sys/pdpstand/Makefile.old Thu Jan 8 16:24:16 2026 X--- ./usr/src/sys/pdpstand/Makefile Fri Mar 6 08:46:04 2026 X*************** X*** 1,4 **** X! # Makefile (2.11BSD) 2.6 2026/1/4 X # X # The limitations on program size have been removed. The addition X # of disklabel support pushed 'restor' over the limit. Even with X--- 1,4 ---- X! # Makefile (2.11BSD) 2.7 2026/3/6 X # X # The limitations on program size have been removed. The addition X # of disklabel support pushed 'restor' over the limit. Even with X*************** X*** 13,18 **** X--- 13,20 ---- X # It is still possible to hand craft a version of the utilities by leaving X # out all but the necessary drivers. X # X+ # 2026/3/6 - make clean after running ./maketape so that executables, objects X+ # and libsa.a are not included in the tar of the sources. X # 2020/1/4 - remove unmaintained copy of the system include files in src/ and X # the unused sed scripts asm.sed* X # 2000/11/13 - use libkern instead of libc because the libc routines use X*************** X*** 68,73 **** X--- 70,76 ---- X X tmscptape: ${ALL} ${DUMP} X ./maketape /dev/nr${TAPE} maketape.data X+ make clean X dd if=${DUMP} of=/dev/nr${TAPE} bs=20b X cd ${ROOT}/usr; tar cfb /dev/nr${TAPE} 20 \ X adm bin crash dict doc games guest include ingres \ X*************** X*** 82,87 **** X--- 85,91 ---- X X tape1: ${ALL} ${DUMP} X ./maketape /dev/nr${TAPE} maketape.data X+ make clean X dd if=${DUMP} of=/dev/nr${TAPE} bs=20b X cd ${ROOT}/usr; tar cfb /dev/nr${TAPE} 20 \ X adm bin crash dict doc games guest include ingres \ X*************** X*** 168,174 **** X FRC: X X clean: X! rm -f ${ALL} ${AUX} libsa.a *.o tags X X boot.o: boot.c X conf.o: conf.c X--- 172,178 ---- X FRC: X X clean: X! rm -f ${ALL} libsa.a *.o tags X X boot.o: boot.c X conf.o: conf.c X*** ./usr/src/sys/GENERIC/param.c.old Thu Oct 31 22:44:35 2019 X--- ./usr/src/sys/GENERIC/param.c Sat May 16 16:41:36 2026 X*************** X*** 32,38 **** X * X */ X X! #define MAXUSERS 4 X #define NBUF 32 X X int hz = 60; X--- 32,38 ---- X * X */ X X! #define MAXUSERS 6 X #define NBUF 32 X X int hz = 60; X*** ./usr/src/sys/GENERIC/Makefile.old Mon Jan 26 18:27:26 2026 X--- ./usr/src/sys/GENERIC/Makefile Wed Mar 25 08:15:45 2026 X*************** X*** 10,16 **** X # software without specific prior written permission. This software X # is provided ``as is'' without express or implied warranty. X # X! # 2.15 (2.11BSD) 2025/11/25 X # X ######################################################### X # Non-network, but separate I/D kernel # X--- 10,16 ---- X # software without specific prior written permission. This software X # is provided ``as is'' without express or implied warranty. X # X! # 2.16 (2.11BSD) 2026/2/28 X # X ######################################################### X # Non-network, but separate I/D kernel # X*************** X*** 21,27 **** X M= ../machine X S= ../sys X U= ../pdpuba X- MB= ../pdpmba X X DEFS= -DKERNEL ${OPTS} -I. -I${H} X CFLAGS= -O ${DEFS} X--- 21,26 ---- X*************** X*** 31,37 **** X ED= /bin/ed X SED= /bin/sed X X! SUB= sys pdp pdpuba pdpmba X X # GENERAL RULES: X # scb.o MUST be loaded first, param.o MUST be loaded last, X--- 30,36 ---- X ED= /bin/ed X SED= /bin/sed X X! SUB= sys pdp pdpuba X X # GENERAL RULES: X # scb.o MUST be loaded first, param.o MUST be loaded last, X*************** X*** 87,96 **** X size unix X @echo Compacting symbol table X -symcompact unix X- @echo Compacting strings table X- -strcompact unix X @echo rearranging symbols X -symorder ../pdp/symbols.sort unix X ./checksys unix X X vers.o: FRC X--- 86,95 ---- X size unix X @echo Compacting symbol table X -symcompact unix X @echo rearranging symbols X -symorder ../pdp/symbols.sort unix X+ @echo Compacting strings table X+ -strcompact unix X ./checksys unix X X vers.o: FRC X*************** X*** 109,115 **** X ioconf.o: ioconf.c X ${CC} -c ${CFLAGS} ioconf.c X X! sys pdp pdpuba pdpmba: X make -f Make.$@ I=${I} H=${H} M=${M} AS="${AS}" CPP="${CPP}" \ X CFLAGS="${CFLAGS}" SED="${SED}" X X--- 108,114 ---- X ioconf.o: ioconf.c X ${CC} -c ${CFLAGS} ioconf.c X X! sys pdp pdpuba: X make -f Make.$@ I=${I} H=${H} M=${M} AS="${AS}" CPP="${CPP}" \ X CFLAGS="${CFLAGS}" SED="${SED}" X X*************** X*** 128,134 **** X mkdep ${CFLAGS} param.c ioconf.c ../conf/checksys.c X X TAGSFILE= ${S}/tags X! TLIST= ${H} ${I} ${N1} ${N2} ${N3} ${N4} ${N5} ${N6} ${M} ${S} ${U} ${MB} ${SS} X X tags: FRC X rm -f ${TAGSFILE} X--- 127,133 ---- X mkdep ${CFLAGS} param.c ioconf.c ../conf/checksys.c X X TAGSFILE= ${S}/tags X! TLIST= ${H} ${I} ${N1} ${N2} ${N3} ${N4} ${N5} ${N6} ${M} ${S} ${U} ${SS} X X tags: FRC X rm -f ${TAGSFILE} X*** ./usr/src/sys/GENERIC/rx.h.old Mon Jun 17 22:03:54 1996 X--- ./usr/src/sys/GENERIC/rx.h Sat Oct 24 16:37:25 2026 X*************** X*** 1 **** X! #define NRX 2 X--- 1 ---- X! #define NRX 0 X*** ./usr/src/bin/adb/format.c.old Wed Jan 12 22:54:12 1994 X--- ./usr/src/bin/adb/format.c Mon Sep 21 20:23:38 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)format.c 2.0 (2.11BSD) 2026/9/21"; X+ #endif X+ X #include "defs.h" X #include X X*************** X*** 9,16 **** X char *lp; X char *printptr, printbuf[]; X int maxoff; X! int sigint; X! int sigqit; X char *errflg; X char lastc; X long dot; X--- 13,20 ---- X char *lp; X char *printptr, printbuf[]; X int maxoff; X! extern sig_t sigint; X! extern sig_t sigqit; X char *errflg; X char lastc; X long dot; X*************** X*** 237,243 **** X exit(16); X ELIF unixpid == -1 X THEN error(NOFORK); X! ELSE signal(SIGINT,SIG_IGN); X WHILE (rc = wait(&status)) != unixpid ANDF rc != -1 DONE X signal(SIGINT,sigint); X printc('!'); lp--; X--- 241,247 ---- X exit(16); X ELIF unixpid == -1 X THEN error(NOFORK); X! ELSE signal(SIGINT, SIG_IGN); X WHILE (rc = wait(&status)) != unixpid ANDF rc != -1 DONE X signal(SIGINT,sigint); X printc('!'); lp--; X*** ./usr/src/bin/adb/runpcs.c.old Tue Aug 12 07:12:04 2025 X--- ./usr/src/bin/adb/runpcs.c Mon Sep 21 20:24:38 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)runpcs.c 2.0 (2.11BSD) 2026/9/21"; X+ #endif X+ X #include "defs.h" X #include X X*************** X*** 5,12 **** X MSG ENDPCS; X MSG BADWAIT; X char *lp; X! int sigint; X! int sigqit; X BKPTR bkpthead; X REGLIST reglist[]; X char lastc; X--- 9,16 ---- X MSG ENDPCS; X MSG BADWAIT; X char *lp; X! extern sig_t sigint; X! extern sig_t sigqit; X BKPTR bkpthead; X REGLIST reglist[]; X char lastc; X*** ./usr/src/bin/adb/main.c.old Mon Oct 21 23:26:16 1996 X--- ./usr/src/bin/adb/main.c Mon Sep 21 20:24:10 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)main.c 2.0 (2.11BSD) 2026/9/21"; X+ #endif X+ X #include "defs.h" X X MSG NOEOR; X*************** X*** 9,16 **** X char *lp; X int maxoff; X int maxpos; X! int (*sigint)(); X! int (*sigqit)(); X int wtflag; X int kernel; X long maxfile; X--- 13,20 ---- X char *lp; X int maxoff; X int maxpos; X! sig_t sigint; X! sig_t sigqit; X int wtflag; X int kernel; X long maxfile; X*************** X*** 59,64 **** X--- 63,69 ---- X longjmp(erradb,1); X } X X+ void X fault(a) X { X signal(a,fault); X*************** X*** 113,122 **** X THEN var[VARO] = ovlsiz; X FI X X! IF (sigint=signal(SIGINT,SIG_IGN))!=SIG_IGN X THEN sigint=fault; signal(SIGINT,fault); X FI X! sigqit=signal(SIGQUIT,SIG_IGN); X siginterrupt(SIGINT, 1); X siginterrupt(SIGQUIT, 1); X setjmp(erradb); X--- 118,127 ---- X THEN var[VARO] = ovlsiz; X FI X X! IF (sigint=signal(SIGINT, SIG_IGN))!=SIG_IGN X THEN sigint=fault; signal(SIGINT,fault); X FI X! sigqit=signal(SIGQUIT, SIG_IGN); X siginterrupt(SIGINT, 1); X siginterrupt(SIGQUIT, 1); X setjmp(erradb); X*** ./usr/src/bin/awk/b.c.old Sun Feb 8 17:24:16 1987 X--- ./usr/src/bin/awk/b.c Sun May 10 16:49:19 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)b.c 4.2 8/11/83"; X #endif X X #include "awk.def" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)b.c 4.3 (2.11BSD) 2026/5/10"; X #endif X X #include "awk.def" X*** ./usr/src/bin/awk/lib.c.old Sun Feb 8 17:24:17 1987 X--- ./usr/src/bin/awk/lib.c Wed May 13 21:19:44 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)lib.c 4.4 9/17/84"; X #endif X X #include "stdio.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)lib.c 4.5 (2.11BSD) 2026/5/10"; X #endif X X #include "stdio.h" X*************** X*** 207,213 **** X errorflag = 2; X } X X! error(f, s, a1, a2, a3, a4, a5, a6, a7) { X fprintf(stderr, "awk: "); X fprintf(stderr, s, a1, a2, a3, a4, a5, a6, a7); X fprintf(stderr, "\n"); X--- 207,215 ---- X errorflag = 2; X } X X! error(f, s, a1, a2, a3, a4, a5, a6, a7) X! char *s, *a1, *a2, *a3, *a4, *a5, *a6, *a7; X! { X fprintf(stderr, "awk: "); X fprintf(stderr, s, a1, a2, a3, a4, a5, a6, a7); X fprintf(stderr, "\n"); X*** ./usr/src/bin/awk/freeze.c.old Sun Feb 8 17:24:16 1987 X--- ./usr/src/bin/awk/freeze.c Sun May 10 16:49:30 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)freeze.c 4.2 8/11/83"; X #endif X X #include "stdio.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)freeze.c 4.3 (2.11BSD) 2026/5/10"; X #endif X X #include "stdio.h" X*** ./usr/src/bin/awk/main.c.old Sun Feb 8 17:24:18 1987 X--- ./usr/src/bin/awk/main.c Sun May 10 16:46:50 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)main.c 4.4 (Berkeley) 12/8/84"; X #endif X X #include "stdio.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)main.c 4.5 (2.11BSD) 2026/5/10"; X #endif X X #include "stdio.h" X*** ./usr/src/bin/awk/parse.c.old Sun Feb 8 17:24:18 1987 X--- ./usr/src/bin/awk/parse.c Sun May 10 16:47:16 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)parse.c 4.2 8/11/83"; X #endif X X #include "awk.def" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)parse.c 4.3 (2.11BSD) 2026/5/10"; X #endif X X #include "awk.def" X*** ./usr/src/bin/awk/proc.c.old Sun Feb 8 17:24:18 1987 X--- ./usr/src/bin/awk/proc.c Sun May 10 16:47:36 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)proc.c 4.3 8/11/83"; X #endif X X #include "awk.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)proc.c 4.4 (2.11BSD) 2026/5/10"; X #endif X X #include "awk.h" X*** ./usr/src/bin/awk/run.c.old Sun Feb 8 17:24:18 1987 X--- ./usr/src/bin/awk/run.c Sun May 10 16:50:02 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)run.c 4.5 12/4/84"; X #endif X X #include "awk.def" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)run.c 4.6 (2.11BSD) 2026/5/10"; X #endif X X #include "awk.def" X*************** X*** 15,21 **** X int type; X char *fname; X } files[FILENUM]; X- FILE *popen(); X X extern obj execute(), nodetoobj(), fieldel(), dopa2(), gettemp(); X #define PA2NUM 29 X--- 15,20 ---- X*** ./usr/src/bin/awk/token.c.old Sun May 10 16:29:44 2026 X--- ./usr/src/bin/awk/token.c Thu Oct 1 17:34:37 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)token.c 4.3 (Berkeley) 12/8/84"; X #endif X X #include "awk.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)token.c 4.4 (2.11BSD) 2026/5/10"; X #endif X X #include "awk.h" X*** ./usr/src/bin/awk/tran.c.old Sun Feb 8 17:24:19 1987 X--- ./usr/src/bin/awk/tran.c Sun May 10 16:48:55 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)tran.c 4.4 12/9/83"; X #endif X X #include "stdio.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)tran.c 4.5 (2.11BSD) 2026/5/10"; X #endif X X #include "stdio.h" X*** ./usr/src/bin/tp/tp0.c.old Sun Feb 8 17:24:20 1987 X--- ./usr/src/bin/tp/tp0.c Sun May 10 16:54:45 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)tp0.c 4.1 12/18/82"; X #endif X X #include "tp.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)tp0.c 4.2 (2.11BSD) 2026/5/10"; X #endif X X #include "tp.h" X*** ./usr/src/bin/tp/tp1.c.old Sun Feb 8 17:24:20 1987 X--- ./usr/src/bin/tp/tp1.c Sun May 10 16:55:09 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)tp1.c 4.2 6/28/84"; X #endif X X #include "tp.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)tp1.c 4.3 (2.11BSD) 2026/5/10"; X #endif X X #include "tp.h" X*** ./usr/src/bin/tp/tp2.c.old Sun Feb 8 17:24:20 1987 X--- ./usr/src/bin/tp/tp2.c Sun May 10 16:55:33 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)tp2.c 4.1 12/18/82"; X #endif X X #include "tp.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)tp2.c 4.2 (2.11BSD) 2026/5/10"; X #endif X X #include "tp.h" X*** ./usr/src/bin/tp/tp3.c.old Sun Feb 8 17:24:20 1987 X--- ./usr/src/bin/tp/tp3.c Sun May 10 16:55:53 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)tp3.c 4.1 12/18/82"; X #endif X X #include "tp.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)tp3.c 4.2 (2.11BSD) 2026/5/10"; X #endif X X #include "tp.h" X*** ./usr/src/bin/sh/args.c.old Mon Aug 5 13:59:49 1985 X--- ./usr/src/bin/sh/args.c Mon May 11 06:31:43 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)args.c 4.4 7/31/85"; X #endif X X # X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)args.c 4.5 (2.11BSD) 2026/5/11"; X #endif X X # X*************** X*** 8,14 **** X * X * S. R. Bourne X * Bell Telephone Laboratories X- * X */ X X #include "defs.h" X--- 8,13 ---- X*** ./usr/src/bin/sh/blok.c.old Thu Aug 11 22:20:54 1983 X--- ./usr/src/bin/sh/blok.c Mon May 11 06:31:48 2026 X*************** X*** 1,19 **** X! #ifndef lint X! static char sccsid[] = "@(#)blok.c 4.2 8/11/83"; X #endif X X- # X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X- * X */ X X #include "defs.h" X X- X /* X * storage allocator X * (circular first fit strategy) X--- 1,16 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)blok.c 4.3 (2.11BSD) 2026/5/11"; X #endif X X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X */ X X #include "defs.h" X X /* X * storage allocator X * (circular first fit strategy) X*************** X*** 25,32 **** X POS brkincr=BRKINCR; X BLKPTR blokp; /*current search pointer*/ X BLKPTR bloktop=BLK(end); /*top of arena (last blok)*/ X- X- X X ADDRESS alloc(nbytes) X POS nbytes; X--- 22,27 ---- X*** ./usr/src/bin/sh/builtin.c.old Thu Aug 11 22:20:55 1983 X--- ./usr/src/bin/sh/builtin.c Mon May 11 06:23:48 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)builtin.c 4.2 8/11/83"; X #endif X X builtin() X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)builtin.c 4.3 (2.11BSD) 2026/5/11"; X #endif X X builtin() X*** ./usr/src/bin/sh/cmd.c.old Thu Aug 11 22:20:58 1983 X--- ./usr/src/bin/sh/cmd.c Mon May 11 06:31:58 2026 X*************** X*** 1,14 **** X! #ifndef lint X! static char sccsid[] = "@(#)cmd.c 4.2 8/11/83"; X #endif X X- # X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X- * X */ X X #include "defs.h" X--- 1,12 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cmd.c 4.3 (2.11BSD) 2026/5/11"; X #endif X X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X */ X X #include "defs.h" X*************** X*** 26,37 **** X PROC VOID prsym(); X PROC VOID synbad(); X X- X /* ======== command line decoding ========*/ X X- X- X- X TREPTR makefork(flgs, i) X INT flgs; X TREPTR i; X--- 24,31 ---- X*************** X*** 60,66 **** X X /* X * cmd X! * empty X * list X * list & [ cmd ] X * list [ ; cmd ] X--- 54,60 ---- X X /* X * cmd X! empty X * list X * list & [ cmd ] X * list [ ; cmd ] X*** ./usr/src/bin/sh/ctype.c.old Sun Jan 11 02:56:33 1987 X--- ./usr/src/bin/sh/ctype.c Mon May 11 06:32:03 2026 X*************** X*** 1,14 **** X! #ifndef lint X! static char sccsid[] = "@(#)ctype.c 4.2 8/11/83"; X #endif X X- # X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X- * X */ X X #include "defs.h" X--- 1,12 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ctype.c 4.3 (2.11BSD) 2026/5/11"; X #endif X X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X */ X X #include "defs.h" X*** ./usr/src/bin/sh/error.c.old Thu Aug 11 22:21:02 1983 X--- ./usr/src/bin/sh/error.c Mon May 11 06:32:07 2026 X*************** X*** 1,18 **** X! #ifndef lint X! static char sccsid[] = "@(#)error.c 4.2 8/11/83"; X #endif X X- # X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X- * X */ X X #include "defs.h" X- X X /* ======== error handling ======== */ X X--- 1,15 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)error.c 4.3 (2.11BSD) 2026/5/11"; X #endif X X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X */ X X #include "defs.h" X X /* ======== error handling ======== */ X X*** ./usr/src/bin/sh/expand.c.old Thu Aug 11 22:21:05 1983 X--- ./usr/src/bin/sh/expand.c Mon May 11 06:32:12 2026 X*************** X*** 1,14 **** X! #ifndef lint X! static char sccsid[] = "@(#)expand.c 4.5 8/11/83"; X #endif X X- # X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X- * X */ X X #include "defs.h" X--- 1,12 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)expand.c 4.6 (2.11BSD) 2026/5/11"; X #endif X X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X */ X X #include "defs.h" X*************** X*** 15,22 **** X #include X #include X #include X- X- X X /* globals (file name generation) X * X--- 13,18 ---- X*** ./usr/src/bin/sh/fault.c.old Thu Aug 11 22:21:07 1983 X--- ./usr/src/bin/sh/fault.c Mon May 11 06:32:17 2026 X*************** X*** 1,25 **** X! #ifndef lint X! static char sccsid[] = "@(#)fault.c 4.3 8/11/83"; X #endif X X- # X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X- * X */ X X #include "defs.h" X X- X STRING trapcom[MAXTRAP]; X BOOL trapflg[MAXTRAP]; X BOOL trapjmp[MAXTRAP]; X X /* ======== fault handling routines ======== */ X- X X VOID fault(sig) X REG INT sig; X--- 1,21 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)fault.c 4.4 (2.11BSD) 2026/5/11"; X #endif X X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X */ X X #include "defs.h" X X STRING trapcom[MAXTRAP]; X BOOL trapflg[MAXTRAP]; X BOOL trapjmp[MAXTRAP]; X X /* ======== fault handling routines ======== */ X X VOID fault(sig) X REG INT sig; X*** ./usr/src/bin/sh/io.c.old Tue Mar 19 21:44:37 1985 X--- ./usr/src/bin/sh/io.c Mon May 11 06:32:22 2026 X*************** X*** 1,18 **** X! #ifndef lint X! static char sccsid[] = "@(#)io.c 4.3 3/19/85"; X #endif X X- # X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X- * X */ X X #include "defs.h" X- X X /* ======== input output and file copying ======== */ X X--- 1,15 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)io.c 4.4 (2.11BSD) 2026/5/11"; X #endif X X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X */ X X #include "defs.h" X X /* ======== input output and file copying ======== */ X X*** ./usr/src/bin/sh/macro.c.old Thu Aug 11 22:21:12 1983 X--- ./usr/src/bin/sh/macro.c Mon May 11 06:27:16 2026 X*************** X*** 1,14 **** X! #ifndef lint X! static char sccsid[] = "@(#)macro.c 4.3 8/11/83"; X #endif X X- # X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X- * X */ X X #include "defs.h" X--- 1,12 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)macro.c 4.4 (2.11BSD) 2026/5/11"; X #endif X X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X */ X X #include "defs.h" X*************** X*** 16,23 **** X X LOCAL CHAR quote; /* used locally */ X LOCAL CHAR quoted; /* used locally */ X- X- X X LOCAL STRING copyto(endch) X REG CHAR endch; X--- 14,19 ---- X*** ./usr/src/bin/sh/main.c.old Thu Oct 31 19:38:39 1985 X--- ./usr/src/bin/sh/main.c Mon May 11 06:32:32 2026 X*************** X*** 1,14 **** X! #ifndef lint X! static char sccsid[] = "@(#)main.c 4.3 3/19/85"; X #endif X X- # X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X- * X */ X X #include "defs.h" X--- 1,12 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)main.c 4.4 (2.11BSD) 2026/5/11"; X #endif X X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X */ X X #include "defs.h" X*************** X*** 29,37 **** X #endif X X PROC VOID exfile(); X- X- X- X X main(c, v) X INT c; X--- 27,32 ---- X*** ./usr/src/bin/sh/msg.c.old Sun Jan 11 02:58:56 1987 X--- ./usr/src/bin/sh/msg.c Mon May 11 06:32:37 2026 X*************** X*** 1,16 **** X! #ifndef lint X! static char sccsid[] = "@(#)msg.c 4.4 5/22/85"; X #endif X X- # X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X- * X */ X- X X #include "defs.h" X #include "sym.h" X--- 1,13 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)msg.c 4.5 (2.11BSD) 2026/5/11"; X #endif X X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X */ X X #include "defs.h" X #include "sym.h" X*** ./usr/src/bin/sh/name.c.old Sun Nov 10 18:32:05 1985 X--- ./usr/src/bin/sh/name.c Mon May 11 06:38:38 2026 X*************** X*** 1,14 **** X! #ifndef lint X! static char sccsid[] = "@(#)name.c 4.4 10/31/85"; X #endif X X- # X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X- * X */ X X #include "defs.h" X--- 1,12 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)name.c 4.5 (2.11BSD) 2026/5/11"; X #endif X X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X */ X X #include "defs.h" X*************** X*** 15,21 **** X X PROC BOOL chkid(); X X- X NAMNOD ps2nod = { NIL, NIL, ps2name}, X fngnod = { NIL, NIL, fngname}, X pathnod = { NIL, NIL, pathname}, X--- 13,18 ---- X*************** X*** 25,31 **** X mailnod = { &homenod, &ps1nod, mailname}; X X NAMPTR namep = &mailnod; X- X X /* ======== variable and string handling ======== */ X X--- 22,27 ---- X*** ./usr/src/bin/sh/print.c.old Thu Aug 11 22:21:24 1983 X--- ./usr/src/bin/sh/print.c Mon May 11 06:32:46 2026 X*************** X*** 1,20 **** X! #ifndef lint X! static char sccsid[] = "@(#)print.c 4.2 8/11/83"; X #endif X X- # X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X- * X */ X X #include "defs.h" X X CHAR numbuf[6]; X- X X /* printing and io conversion */ X X--- 1,17 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)print.c 4.3 (2.11BSD) 2026/5/11"; X #endif X X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X */ X X #include "defs.h" X X CHAR numbuf[6]; X X /* printing and io conversion */ X X*** ./usr/src/bin/sh/setbrk.c.old Thu Aug 11 22:21:29 1983 X--- ./usr/src/bin/sh/setbrk.c Mon May 11 06:33:04 2026 X*************** X*** 1,14 **** X! #ifndef lint X! static char sccsid[] = "@(#)setbrk.c 4.2 8/11/83"; X #endif X X- # X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X- * X */ X X #include "defs.h" X--- 1,12 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)setbrk.c 4.3 (2.11BSD) 2026/5/11"; X #endif X X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X */ X X #include "defs.h" X*** ./usr/src/bin/sh/stak.c.old Thu Aug 11 22:21:31 1983 X--- ./usr/src/bin/sh/stak.c Mon May 11 06:33:10 2026 X*************** X*** 1,21 **** X! #ifndef lint X! static char sccsid[] = "@(#)stak.c 4.2 8/11/83"; X #endif X X- # X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X- * X */ X X #include "defs.h" X X STKPTR stakbot=nullstr; X- X- X X /* ======== storage allocation ======== */ X X--- 1,17 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)stak.c 4.3 (2.11BSD) 2026/5/11"; X #endif X X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X */ X X #include "defs.h" X X STKPTR stakbot=nullstr; X X /* ======== storage allocation ======== */ X X*** ./usr/src/bin/sh/string.c.old Thu Aug 11 22:21:32 1983 X--- ./usr/src/bin/sh/string.c Mon May 11 06:33:16 2026 X*************** X*** 1,21 **** X! #ifndef lint X! static char sccsid[] = "@(#)string.c 4.2 8/11/83"; X #endif X X- # X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X- * X */ X X #include "defs.h" X X- X /* ======== general purpose string handling ======== */ X- X X STRING movstr(a,b) X REG STRING a, b; X--- 1,17 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)string.c 4.3 (2.11BSD) 2026/5/11"; X #endif X X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X */ X X #include "defs.h" X X /* ======== general purpose string handling ======== */ X X STRING movstr(a,b) X REG STRING a, b; X*** ./usr/src/bin/sh/word.c.old Sun Nov 10 18:10:52 1985 X--- ./usr/src/bin/sh/word.c Mon May 11 06:31:07 2026 X*************** X*** 1,22 **** X! #ifndef lint X! static char sccsid[] = "@(#)word.c 4.6 10/31/85"; X #endif X X- # X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X- * X */ X X #include "defs.h" X #include "sym.h" X X- X /* ======== character handling for command lines ========*/ X- X X word() X { X--- 1,18 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)word.c 4.7 (2.11BSD) 2026/5/11"; X #endif X X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X */ X X #include "defs.h" X #include "sym.h" X X /* ======== character handling for command lines ========*/ X X word() X { X*** ./usr/src/bin/sh/xec.c.old Sun Jan 11 02:51:12 1987 X--- ./usr/src/bin/sh/xec.c Mon May 11 06:31:36 2026 X*************** X*** 1,14 **** X! #ifndef lint X! static char sccsid[] = "@(#)xec.c 4.3 8/11/83"; X #endif X X- # X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X- * X */ X X #include "defs.h" X--- 1,12 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)xec.c 4.4 (2.11BSD) 2026/5/11"; X #endif X X /* X * UNIX shell X * X * S. R. Bourne X * Bell Telephone Laboratories X */ X X #include "defs.h" X*************** X*** 18,27 **** X X SYSTAB commands; X X- X- X /* ======== command execution ========*/ X- X X execute(argt, execflg, pf1, pf2) X TREPTR argt; X--- 16,22 ---- X*** ./usr/src/bin/sh/service.c.old Fri Dec 9 23:19:48 1994 X--- ./usr/src/bin/sh/service.c Mon May 11 06:36:04 2026 X*************** X*** 1,8 **** X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)service.c 4.4.1 12/9/94"; X #endif X X- # X /* X * UNIX shell X * X--- 1,7 ---- X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)service.c 4.4.2 (2.11BSD) 2026/5/11"; X #endif X X /* X * UNIX shell X * X*************** X*** 12,17 **** X--- 11,17 ---- X */ X X #include "defs.h" X+ #include X #include X X PROC VOID gsort(); X*************** X*** 18,35 **** X X #define ARGMK 01 X X- INT errno; X STRING sysmsg[]; X INT num_sysmsg; X- X- /* fault handling */ X- #define ENOMEM 12 X- #define ENOEXEC 8 X- #define E2BIG 7 X- #define ENOENT 2 X- #define ETXTBSY 26 X- X- X X /* service routines for `execute' */ X X--- 18,25 ---- X*** ./usr/src/bin/csh/sh.h.old Fri Sep 20 03:27:43 1996 X--- ./usr/src/bin/csh/sh.h Mon Sep 21 17:28:51 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley Software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)sh.h 5.3.2 (2.11BSD GTE) 1996/9/20 X */ X X #include X--- 3,9 ---- X * All rights reserved. The Berkeley Software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)sh.h 5.3.3 (2.11BSD) 2026/9/21 X */ X X #include X*************** X*** 10,16 **** X #include X #include X #include X! #include X #include X #include X #include "sh.local.h" X--- 10,16 ---- X #include X #include X #include X! #include X #include X #include X #include "sh.local.h" X*************** X*** 126,133 **** X #define resexit(a) copy((char *)reslab, ((char *)(a)), sizeof reslab) X X char *gointr; /* Label for an onintr transfer */ X! int (*parintr)(); /* Parents interrupt catch */ X! int (*parterm)(); /* Parents terminate catch */ X X /* X * Lexical definitions. X--- 126,133 ---- X #define resexit(a) copy((char *)reslab, ((char *)(a)), sizeof reslab) X X char *gointr; /* Label for an onintr transfer */ X! sig_t parintr; /* Parents interrupt catch */ X! sig_t parterm; /* Parents terminate catch */ X X /* X * Lexical definitions. X*************** X*** 426,434 **** X struct biltins *isbfunc(); X off_t lseek(); X char *operate(); X! int phup(); X! int pintr(); X! int pchild(); X char *putn(); X char *rindex(); X char **saveblk(); X--- 426,434 ---- X struct biltins *isbfunc(); X off_t lseek(); X char *operate(); X! void phup(); X! void pintr(); X! void pchild(); X char *putn(); X char *rindex(); X char **saveblk(); X*** ./usr/src/bin/csh/Makefile.old Thu Dec 25 22:41:05 2025 X--- ./usr/src/bin/csh/Makefile Mon Jul 27 21:22:38 2026 X*************** X*** 3,9 **** X # All rights reserved. The Berkeley Software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.5 (2.11BSD) 2025/12/25 X # X # C Shell with process control; VM/UNIX VAX Makefile X # Bill Joy UC Berkeley; Jim Kulp IIASA, Austria X--- 3,9 ---- X # All rights reserved. The Berkeley Software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.5 (2.11BSD) 2026/4/25 X # X # C Shell with process control; VM/UNIX VAX Makefile X # Bill Joy UC Berkeley; Jim Kulp IIASA, Austria X*************** X*** 54,64 **** X mv -f xs.o strings.o X rm -f xs.c X X- lint: X- lint -z ${DEFS} sh*.c alloc.c X- X install: csh X! install -m 755 -o bin -g bin -s csh ${DESTDIR}/bin/csh X X clean: X rm -f a.out strings x.c xs.c csh errs *.o X--- 54,61 ---- X mv -f xs.o strings.o X rm -f xs.c X X install: csh X! install -m 755 -o bin -g bin -s csh /bin/csh X X clean: X rm -f a.out strings x.c xs.c csh errs *.o X*** ./usr/src/bin/csh/sh.func.c.old Sat Aug 31 02:07:46 1991 X--- ./usr/src/bin/csh/sh.func.c Mon Sep 21 20:29:00 2026 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)sh.func.c 5.3 (Berkeley) 5/13/86"; X #endif X X #include "sh.h" X--- 5,11 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)sh.func.c 5.4 (2.11BSD) 2026/9/21"; X #endif X X #include "sh.h" X*************** X*** 1084,1090 **** X dosuspend() X { X int ldisc, ctpgrp; X! int (*old)(); X X if (loginsh) X error("Can't suspend a login shell (yet)"); X--- 1084,1090 ---- X dosuspend() X { X int ldisc, ctpgrp; X! sig_t old; X X if (loginsh) X error("Can't suspend a login shell (yet)"); X*** ./usr/src/bin/csh/sh.c.old Sat Aug 31 02:04:45 1991 X--- ./usr/src/bin/csh/sh.c Mon Sep 21 20:27:43 2026 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)sh.c 5.3 (Berkeley) 3/29/86"; X #endif X X #include "sh.h" X--- 5,11 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)sh.c 5.4 (2.11BSD) 2026/9/21"; X #endif X X #include "sh.h" X*************** X*** 279,286 **** X tpgrp != -1) { X int ldisc; X if (tpgrp != shpgrp) { X! int (*old)() = signal(SIGTTIN, SIG_DFL); X! (void) kill(0, SIGTTIN); X (void) signal(SIGTTIN, old); X goto retry; X } X--- 279,286 ---- X tpgrp != -1) { X int ldisc; X if (tpgrp != shpgrp) { X! sig_t old = signal(SIGTTIN, SIG_DFL); X! (void) kill((pid_t)0, SIGTTIN); X (void) signal(SIGTTIN, old); X goto retry; X } X*************** X*** 604,609 **** X--- 604,610 ---- X /* X * in the event of a HUP we want to save the history X */ X+ void X phup() X { X rechist(); X*************** X*** 618,623 **** X--- 619,625 ---- X * and finally go through the normal error mechanism, which X * gets a chance to make the shell go away. X */ X+ void X pintr() X { X pintr1(1); X*** ./usr/src/bin/csh/sh.proc.c.old Thu Mar 21 01:50:07 1996 X--- ./usr/src/bin/csh/sh.proc.c Mon Sep 21 20:30:22 2026 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)sh.proc.c 5.5.1 (2.11BSD) 1996/3/20"; X #endif X X #include "sh.h" X--- 5,11 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)sh.proc.c 5.5.2 (2.11BSD) 2026/9/21"; X #endif X X #include "sh.h" X*************** X*** 28,33 **** X--- 28,34 ---- X * childs status. Top level routines (like pwait) must be sure X * to mask interrupts when playing with the proclist data structures! X */ X+ void X pchild() X { X register struct process *pp; X*** ./usr/src/bin/csh/sh.sem.c.old Fri Dec 9 23:19:59 1994 X--- ./usr/src/bin/csh/sh.sem.c Mon Sep 21 20:31:24 2026 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)sh.sem.c 5.4.1 (2.11BSD GTE) 12/9/94"; X #endif X X #include "sh.h" X--- 5,11 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)sh.sem.c 5.4.2 (2.11BSD) 2026/9/21"; X #endif X X #include "sh.h" X*************** X*** 13,18 **** X--- 13,32 ---- X #include X #include X X+ #ifdef VFORK X+ void X+ vffree() X+ { X+ register char **v; X+ X+ if (v = gargv) X+ gargv = 0, blkfree(v); X+ if (v = pargv) X+ pargv = 0, blkfree(v); X+ _exit(1); X+ } X+ #endif X+ X /* X * C shell X */ X*************** X*** 119,125 **** X { forked++; pid = pfork(t, wanttty); } X #ifdef VFORK X else { X- int vffree(); X int ochild, osetintr, ohaderr, odidfds; X int oSHIN, oSHOUT, oSHDIAG, oOLDSTD, otpgrp; X long omask; X--- 133,138 ---- X*************** X*** 313,331 **** X if (didfds && !(t->t_dflg & FREDO)) X donefds(); X } X- X- #ifdef VFORK X- vffree() X- { X- register char **v; X- X- if (v = gargv) X- gargv = 0, blkfree(v); X- if (v = pargv) X- pargv = 0, blkfree(v); X- _exit(1); X- } X- #endif X X /* X * Perform io redirection. X--- 326,331 ---- X*** ./usr/src/bin/make/doname.c.old Fri Apr 21 22:25:01 2000 X--- ./usr/src/bin/make/doname.c Tue Sep 15 18:00:13 2026 X*************** X*** 1,4 **** X! /* static char *sccsid = "@(#)doname.c 4.9.2 (2.11BSD) 2000/2/12"; */ X #include "defs" X #include X #include X--- 1,4 ---- X! /* static char *sccsid = "@(#)doname.c 4.9.3 (2.11BSD) 2026/9/15"; */ X #include "defs" X #include X #include X*************** X*** 29,42 **** X struct shblock *implcom, *explcom; X register struct lineblock *lp; X struct lineblock *lp1, *lp2; X! #ifdef pdp11 X! /* temp and sourcename are mutually exclusive - save 254 bytes of stack by X * reusing sourcename's buffer X */ X char sourcename[256], prefix[256], *temp = sourcename, concsuff[20]; X! #else X! char sourcename[BUFSIZ], prefix[BUFSIZ], temp[BUFSIZ], concsuff[20]; X! #endif X char *pnamep, *p1namep, *cp, *savenamep = NULL; X char *mkqlist(); X struct chain *qchain, *appendq(); X--- 29,41 ---- X struct shblock *implcom, *explcom; X register struct lineblock *lp; X struct lineblock *lp1, *lp2; X! X! /* X! * temp and sourcename are mutually exclusive - save 254 bytes of stack by X * reusing sourcename's buffer X */ X char sourcename[256], prefix[256], *temp = sourcename, concsuff[20]; X! X char *pnamep, *p1namep, *cp, *savenamep = NULL; X char *mkqlist(); X struct chain *qchain, *appendq(); X*************** X*** 217,229 **** X break; X } X } X! else if(keepgoing) X { X! printf("Don't know how to make %s\n", p->namep); X ++errstat; X } X else X! fatal1(" Don't know how to make %s", p->namep); X X setvar("@", (char *) NULL); X if(noexflag || (ptime = exists(p)) == 0) X--- 216,233 ---- X break; X } X } X! else if (keepgoing) X { X! /* X! * output the newline explicitly. xstr can then share the string X! * literals in the printf and fatal1 calls X! */ X! printf("Don't know how to make %s", p->namep); X! fputc('\n', stdout); X ++errstat; X } X else X! fatal1("Don't know how to make %s", p->namep); X X setvar("@", (char *) NULL); X if(noexflag || (ptime = exists(p)) == 0) X*************** X*** 245,251 **** X *tval = ptime; X return(errstat); X } X! X docom(q) X struct shblock *q; X { X--- 249,255 ---- X *tval = ptime; X return(errstat); X } X! X docom(q) X struct shblock *q; X { X*************** X*** 299,305 **** X X if(!silflag && (!noprint || noexflag) ) X { X! printf("%s%s\n", (noexflag ? "" : prompt), comstring); X fflush(stdout); X } X X--- 303,309 ---- X X if(!silflag && (!noprint || noexflag) ) X { X! printf("%s\n", comstring); X fflush(stdout); X } X X*************** X*** 326,332 **** X X return(status); X } X- X X /* X If there are any Shell meta characters in the name, X--- 330,335 ---- X*** ./usr/src/bin/make/main.c.old Sun Jul 25 23:18:17 1999 X--- ./usr/src/bin/make/main.c Mon Sep 21 20:37:50 2026 X*************** X*** 1,4 **** X! /* static char *sccsid = "@(#)main.c 4.10 (2.11BSD) 98/9/15"; */ X X #include "defs" X X--- 1,4 ---- X! /* static char *sccsid = "@(#)main.c 4.11 (2.11BSD) 2026/9/15"; */ X X #include "defs" X X*************** X*** 43,53 **** X int okdel = YES; X int doenvlast = NO; X int inarglist; X- #ifdef pwb X- char *prompt = ">"; /* other systems -- pick what you want */ X- #else X- char *prompt = ""; /* other systems -- pick what you want */ X- #endif X int nopdir = 0; X char junkname[20]; X char funny[128]; X--- 43,48 ---- X*************** X*** 63,74 **** X TIMETYPE tjunk; X char c, *s; X static char onechar[2] = 'X'; X- #ifdef unix X int intrupt(); X- #endif X char *op = options + 1; X X- X #ifdef METERFILE X meter(METERFILE); X #endif X--- 58,66 ---- X*************** X*** 166,177 **** X setmachine(); X X if( !descset ) X- #ifdef unix X if( rddescf("makefile") ) rddescf("Makefile"); X- #endif X- #ifdef gcos X- rddescf("makefile"); X- #endif X X if (doenvlast == YES) X readenv(); X--- 158,164 ---- X*************** X*** 183,193 **** X if(p=srchname(".SUFFIXES")) sufflist = p->linep; X if( !sufflist ) fprintf(stderr,"No suffix list.\n"); X X- #ifdef unix X sigivalue = (int) signal(SIGINT, SIG_IGN) & 01; X sigqvalue = (int) signal(SIGQUIT, SIG_IGN) & 01; X enbint(intrupt); X- #endif X X nfargs = 0; X X--- 170,178 ---- X*************** X*** 221,227 **** X X #include X X- #ifdef unix X intrupt() X { X struct varblock *varptr(); X--- 206,211 ---- X*************** X*** 244,252 **** X exit(2); X } X X- X- X- X isprecious(p) X char *p; X { X--- 228,233 ---- X*************** X*** 265,271 **** X X X enbint(k) X! int (*k)(); X { X if(sigivalue == 0) X signal(SIGINT,k); X--- 246,252 ---- X X X enbint(k) X! sig_t k; X { X if(sigivalue == 0) X signal(SIGINT,k); X*************** X*** 272,279 **** X if(sigqvalue == 0) X signal(SIGQUIT,k); X } X! #endif X! X extern char *builtin[]; X X char **linesptr = builtin; X--- 253,259 ---- X if(sigqvalue == 0) X signal(SIGQUIT,k); X } X! X extern char *builtin[]; X X char **linesptr = builtin; X*************** X*** 296,318 **** X X if (doenvlast == NO) X readenv(); X- X- #ifdef pwb X- { X- char *nlog, s[BUFSIZ]; X- nlog = logdir(); X- if ( (k=fopen( concat(nlog,"/makecomm",s), "r")) != NULL) X- rdd1(k); X- else if ( (k=fopen( concat(nlog,"/Makecomm",s), "r")) != NULL) X- rdd1(k); X- X- if ( (k=fopen("makecomm", "r")) != NULL) X- rdd1(k); X- else if ( (k=fopen("Makecomm", "r")) != NULL) X- rdd1(k); X- } X- #endif X- X } X if(! unequal(descfile, "-")) X return( rdd1(stdin) ); X--- 276,281 ---- X*************** X*** 355,361 **** X struct shblock *sp; X struct lineblock *lp; X X- #ifdef unix X if(prntflag) X { X printf("Open directories:\n"); X--- 318,323 ---- X*************** X*** 362,368 **** X for (od = firstod; od; od = od->nxtopendir) X printf("\t%d: %s\n", od->dirfc->dd_fd, od->dirn); X } X- #endif X X if(firstvar != 0) printf("Macros:\n"); X for(vp = firstvar; vp ; vp = vp->nxtvarblock) X--- 324,329 ---- X*** ./usr/src/bin/make/misc.c.old Sat Jul 8 17:02:54 1989 X--- ./usr/src/bin/make/misc.c Tue Sep 15 18:05:08 2026 X*************** X*** 1,10 **** X! /* static char *sccsid = "@(#)misc.c 4.4 (Berkeley) 87/05/21"; */ X #include "defs" X X FSTATIC struct nameblock *hashtab[HASHSIZE]; X FSTATIC int nhashed = 0; X X- X /* simple linear hash. hash function is sum of X characters mod hash table size. X */ X--- 1,9 ---- X! /* static char *sccsid = "@(#)misc.c 4.5 (2.11BSD) 2026/9/15"; */ X #include "defs" X X FSTATIC struct nameblock *hashtab[HASHSIZE]; X FSTATIC int nhashed = 0; X X /* simple linear hash. hash function is sum of X characters mod hash table size. X */ X*************** X*** 29,35 **** X return(i); X } X X- X struct nameblock *srchname(s) X char *s; X { X--- 28,33 ---- X*************** X*** 36,43 **** X return( hashtab[hashloc(s)] ); X } X X- X- X struct nameblock *makename(s) X char *s; X { X--- 34,39 ---- X*************** X*** 67,74 **** X return(p); X } X X- X- X hasslash(s) X char *s; X { X--- 63,68 ---- X*************** X*** 77,85 **** X return(YES); X return(NO); X } X- X X- X char *copys(s) X register char *s; X { X--- 71,77 ---- X*************** X*** 93,100 **** X return(t0); X } X X- X- X char *concat(a,b,c) /* c = concatenation of a and b */ X register char *a,*b; X char *c; X--- 85,90 ---- X*************** X*** 107,114 **** X return(c); X } X X- X- X suffix(a,b,p) /* is b the suffix of a? if so, set p = prefix */ X register char *a,*b,*p; X { X--- 97,102 ---- X*************** X*** 130,140 **** X return(1); X } X X- X- X- X- X- X int *ckalloc(n) X register int n; X { X--- 118,123 ---- X*************** X*** 146,152 **** X fatal("out of memory"); X /* NOTREACHED */ X } X! X /* copy string a into b, substituting for arguments */ X char *subst(a,b) X register char *a,*b; X--- 129,135 ---- X fatal("out of memory"); X /* NOTREACHED */ X } X! X /* copy string a into b, substituting for arguments */ X char *subst(a,b) X register char *a,*b; X*************** X*** 191,197 **** X return(b); X } X X- X setvar(v,s) X char *v, *s; X { X--- 174,179 ---- X*************** X*** 231,237 **** X return(NO); X } X X- X struct varblock *varptr(v) X char *v; X { X--- 213,218 ---- X*************** X*** 249,255 **** X return(vp); X } X X- X fatal1(s, t) X char *s, *t; X { X--- 230,235 ---- X*************** X*** 258,280 **** X fatal(buf); X } X X- X- X fatal(s) X char *s; X { X if(s) fprintf(stderr, "Make: %s. Stop.\n", s); X else fprintf(stderr, "\nStop.\n"); X- #ifdef unix X exit(1); X- #endif X- #ifdef gcos X- exit(0); X- #endif X } X X- X- X yyerror(s) X char *s; X { X--- 238,251 ---- X*************** X*** 285,292 **** X fatal(buf); X } X X- X- X struct chain *appendq(head, tail) X struct chain *head; X char *tail; X--- 256,261 ---- X*************** X*** 306,315 **** X else X return(p); X } X- X- X- X- X X char *mkqlist(p) X struct chain *p; X--- 275,280 ---- X*** ./usr/src/bin/diff/diff.c.old Tue Nov 12 15:31:26 1991 X--- ./usr/src/bin/diff/diff.c Mon Sep 21 17:43:38 2026 X*************** X*** 1,5 **** X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)diff.c 4.6 4/3/86"; X #endif X X #include "diff.h" X--- 1,5 ---- X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)diff.c 4.7 (2.11BSD) 2026/9/21"; X #endif X X #include "diff.h" X*************** X*** 176,181 **** X--- 176,182 ---- X return (a > b ? a : b); X } X X+ void X done() X { X if (tempfile) X*************** X*** 198,204 **** X char *p; X { X register char *q; X- char *realloc(); X X if ((q = realloc(p, (unsigned)n)) == NULL) X noroom(); X--- 199,204 ---- X*** ./usr/src/bin/diff/diff.h.old Wed Aug 28 16:44:35 1985 X--- ./usr/src/bin/diff/diff.h Mon Sep 21 17:42:19 2026 X*************** X*** 1,4 **** X! /* diff.h 4.7 85/08/16 */ X X /* X * diff - common declarations X--- 1,4 ---- X! /* diff.h 4.8 (2.11BSD) 2026/9/21 */ X X /* X * diff - common declarations X*************** X*** 10,15 **** X--- 10,17 ---- X #include X #include X #include X+ #include X+ #include X X /* X * Output format options X*************** X*** 77,85 **** X char *file1, *file2, *efile1, *efile2; X struct stat stb1, stb2; X X! char *malloc(), *talloc(), *ralloc(); X char *savestr(), *splice(), *splicen(); X! char *mktemp(), *copytemp(), *rindex(); X! int done(); X X extern char diffh[], diff[], pr[]; X--- 79,87 ---- X char *file1, *file2, *efile1, *efile2; X struct stat stb1, stb2; X X! char *talloc(), *ralloc(); X char *savestr(), *splice(), *splicen(); X! char *copytemp(); X! void done(); X X extern char diffh[], diff[], pr[]; X*** ./usr/src/bin/stty/stty.c.old Tue Jan 7 20:18:27 2020 X--- ./usr/src/bin/stty/stty.c Tue May 19 21:54:05 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)stty.c 5.5 (2.11BSD) 2020/1/7"; X #endif X X /* X--- 9,15 ---- X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)stty.c 5.6 (2.11BSD) 2026/5/19"; X #endif X X /* X*************** X*** 391,399 **** X int any, i; X register struct special *sp; X X! if(ldisc==NETLDISC) X! fprintf(stderr, "net discipline, "); X! else if (ldisc==NTTYDISC) X fprintf(stderr, "new tty, "); X else if (ldisc == 0) X fprintf(stderr, "old tty, "); X--- 391,397 ---- X int any, i; X register struct special *sp; X X! if (ldisc==NTTYDISC) X fprintf(stderr, "new tty, "); X else if (ldisc == 0) X fprintf(stderr, "old tty, "); X*** ./usr/src/bin/ld/ld.1.old Sat Oct 13 20:20:04 2001 X--- ./usr/src/bin/ld/ld.1 Mon Sep 7 17:36:00 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)ld.1 6.5 (2.11BSD) 2001/08/14 X .\" X! .TH LD 1 "August 14, 2001" X .UC 2 X .SH NAME X ld \- link editor (2BSD) X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)ld.1 6.6 (2.11BSD) 2026/5/20 X .\" X! .TH LD 1 "May 20, 2026" X .UC 2 X .SH NAME X ld \- link editor (2BSD) X*************** X*** 168,174 **** X This option allows the creation of a `replacement executable' X format. X .TP X! .B \-o X The X .I name X argument after X--- 168,174 ---- X This option allows the creation of a `replacement executable' X format. X .TP X! .B \-o X The X .I name X argument after X*************** X*** 178,184 **** X output file, instead of X .BR a.out . X .TP X! .B \-r X Generate relocation bits in the output file X so that it can be the subject of another X .I ld X--- 178,184 ---- X output file, instead of X .BR a.out . X .TP X! .B \-r X Generate relocation bits in the output file X so that it can be the subject of another X .I ld X*************** X*** 190,201 **** X since they cannot be reloaded.) X .TP X .B \-s X! `Strip' the output, that is, remove the symbol table X and relocation bits to save space (but impair the X usefulness of the debuggers). X This information can also be removed by X .IR strip (1). X .TP X .B \-q X ("quiet") Suppress the reporting of undefined symbols. Normally only X used when building networked kernels \- the large number of undefined X--- 190,204 ---- X since they cannot be reloaded.) X .TP X .B \-s X! `strip' the output, that is, remove the symbol table X and relocation bits to save space (but impair the X usefulness of the debuggers). X This information can also be removed by X .IR strip (1). X .TP X+ .B \-S X+ discard all symbols except locals and globals. X+ .TP X .B \-q X ("quiet") Suppress the reporting of undefined symbols. Normally only X used when building networked kernels \- the large number of undefined X*************** X*** 232,238 **** X This option saves some space in the output file. X It also allows X temporary labels to be discarded to prevent redefinition in X! sucessive \fBld\fP's. X Warning: \fIadb\fP uses these local symbols, X especially when debugging overlaid programs, X so some debugging information is necessarily lost if this option is used. X--- 235,241 ---- X This option saves some space in the output file. X It also allows X temporary labels to be discarded to prevent redefinition in X! successive \fBld\fP runs. X Warning: \fIadb\fP uses these local symbols, X especially when debugging overlaid programs, X so some debugging information is necessarily lost if this option is used. X*** ./usr/src/bin/ld/ld.c.old Tue Dec 4 23:27:40 2001 X--- ./usr/src/bin/ld/ld.c Mon Sep 21 20:35:15 2026 X*************** X*** 1,8 **** X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)ld.c 4.6 1998/01/19"; X #endif X X /* X * 4.6 1998/01/19 - Tim Shoppa (shoppa@triumf.ca) X * Minor bug fix: when tsize was being incremented by THUNKSZ, X * no check was being made for 16-bit overflow. Fix was to X--- 1,10 ---- X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)ld.c 4.7 (2.11BSD) 2026/9/21"; X #endif X X /* X+ * 4.7 2026/09/21 - sms. signal prototype and typedef changes X+ * X * 4.6 1998/01/19 - Tim Shoppa (shoppa@triumf.ca) X * Minor bug fix: when tsize was being incremented by THUNKSZ, X * no check was being made for 16-bit overflow. Fix was to X*************** X*** 294,300 **** X short *lookup(), *slookup(), *lookloc(); X char *rstrtab; /* ranlib string table pointer */ X u_int add(); X! int delexit(); X VADDR sym2va(); X off_t skip(); X X--- 296,302 ---- X short *lookup(), *slookup(), *lookloc(); X char *rstrtab; /* ranlib string table pointer */ X u_int add(); X! void delexit(); X VADDR sym2va(); X off_t skip(); X X*************** X*** 496,501 **** X--- 498,504 ---- X exit(0); X } X X+ void X delexit() X { X X*** ./usr/src/bin/login/login.c.old Tue Mar 25 21:58:55 2025 X--- ./usr/src/bin/login/login.c Wed Sep 23 21:37:15 2026 X*************** X*** 20,26 **** X "@(#) Copyright (c) 1980, 1987, 1988 The Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)login.c 5.43 (2.11BSD) 2025/3/26"; X #endif X X /* X--- 20,26 ---- X "@(#) Copyright (c) 1980, 1987, 1988 The Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)login.c 5.44 (2.11BSD) 2026/9/19"; X #endif X X /* X*************** X*** 46,56 **** X #include X #include X #include X #include X #include X #include X #include X- #include "pathnames.h" X #include "../../libexec/getty/gettytab.h" X X #ifdef KERBEROS X--- 46,57 ---- X #include X #include X #include X+ #include X+ #include X #include X #include X #include X #include X #include "../../libexec/getty/gettytab.h" X X #ifdef KERBEROS X*************** X*** 60,65 **** X--- 61,73 ---- X int kerror = KSUCCESS, notickets = 1; X #endif X X+ #include X+ X+ #define _PATH_DEFPATH "/bin:/usr/ucb:/usr/bin:/usr/games:" X+ #define _PATH_HUSHLOGIN ".hushlogin" X+ #define _PATH_MAILDIR "/usr/spool/mail" X+ #define _PATH_MOTDFILE "/etc/motd" X+ X #define TTYGRPNAME "tty" /* name of group to own ttys */ X X /* X*************** X*** 101,108 **** X int argc; X char **argv; X { X! extern int errno, optind; X! extern char *optarg, **environ; X struct timeval tp; X struct tm *ttp; X struct group *gr; X--- 109,115 ---- X int argc; X char **argv; X { X! extern char **environ; X struct timeval tp; X struct tm *ttp; X struct group *gr; X*************** X*** 109,120 **** X register int ch; X register char *p; X int ask, fflag, hflag, pflag, cnt; X! int quietlog, passwd_req, ioctlval, oldioctlval, timedout(); X char *domain, *salt, *envinit[1], *ttyn, *pp; X char tbuf[MAXPATHLEN + 2], tname[sizeof(_PATH_TTY) + 10]; X! char *ctime(), *ttyname(), *stypeof(), *crypt(), *getpass(); X! time_t time(); X! off_t lseek(); X long allflags; X int someflags; X X--- 116,126 ---- X register int ch; X register char *p; X int ask, fflag, hflag, pflag, cnt; X! int quietlog, passwd_req, ioctlval, oldioctlval; X! void timedout(); X char *domain, *salt, *envinit[1], *ttyn, *pp; X char tbuf[MAXPATHLEN + 2], tname[sizeof(_PATH_TTY) + 10]; X! char *stypeof(); X long allflags; X int someflags; X X*************** X*** 319,330 **** X (void)ioctl(0, TIOCHPCL, (struct sgttyb *)NULL); X sleepexit(1); X } X! sleep((u_int)((cnt - 3) * 5)); X } X } X X /* committed to login -- turn off timeout */ X! (void)alarm((u_int)0); X X /* paranoia... */ X endpwent(); X--- 325,336 ---- X (void)ioctl(0, TIOCHPCL, (struct sgttyb *)NULL); X sleepexit(1); X } X! sleep(((cnt - 3) * 5)); X } X } X X /* committed to login -- turn off timeout */ X! (void)alarm(0); X X /* paranoia... */ X endpwent(); X*************** X*** 521,527 **** X motd() X { X register int fd, nchars; X! int (*oldint)(), sigint(); X char tbuf[BUFSIZ]; X X if ((fd = open(_PATH_MOTDFILE, O_RDONLY, 0)) < 0) X--- 527,534 ---- X motd() X { X register int fd, nchars; X! sig_t oldint; X! void sigint(); X char tbuf[BUFSIZ]; X X if ((fd = open(_PATH_MOTDFILE, O_RDONLY, 0)) < 0) X*************** X*** 534,539 **** X--- 541,547 ---- X (void)close(fd); X } X X+ void X sigint() X { X longjmp(motdinterrupt, 1); X*************** X*** 612,617 **** X sleepexit(eval) X int eval; X { X! sleep((u_int)5); X exit(eval); X } X--- 620,625 ---- X sleepexit(eval) X int eval; X { X! sleep(5); X exit(eval); X } X*** ./usr/src/bin/ar/delete.c.old Fri Sep 24 23:05:56 1993 X--- ./usr/src/bin/ar/delete.c Wed Oct 21 09:37:13 2026 X*************** X*** 35,41 **** X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)delete.c 5.6 (Berkeley) 3/12/91"; X #endif X X #include X--- 35,41 ---- X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)delete.c 5.7 (2.11BSD) 2026/10/21"; X #endif X X #include X*************** X*** 47,53 **** X #include X #include "archive.h" X #include "extern.h" X- #include "pathnames.h" X X extern CHDR chdr; /* converted header */ X extern char *archive; /* archive name */ X--- 47,52 ---- X*** ./usr/src/bin/ar/misc.c.old Sun Feb 13 13:45:43 2000 X--- ./usr/src/bin/ar/misc.c Wed Oct 21 09:39:57 2026 X*************** X*** 35,41 **** X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)misc.c 5.7.1 (2.11BSD) 1999/10/25"; X #endif X X #include X--- 35,41 ---- X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)misc.c 5.7.2 (2.11BSD) 2026/10/21"; X #endif X X #include X*************** X*** 46,52 **** X #include X #include "archive.h" X #include "extern.h" X- #include "pathnames.h" X X extern CHDR chdr; /* converted header */ X extern char *archive; /* archive name */ X--- 46,51 ---- X*************** X*** 66,74 **** X } X X if (envtmp) X! (void)sprintf(path, "%s/%s", envtmp, _NAME_ARTMP); X else X! bcopy(_PATH_ARTMP, path, sizeof(_PATH_ARTMP)); X X sigfillset(&set); X (void)sigprocmask(SIG_BLOCK, &set, &oset); X--- 65,73 ---- X } X X if (envtmp) X! (void)sprintf(path, "%s/ar.XXXXXX", envtmp); X else X! strcpy(path, "/tmp/ar.XXXXXX"); X X sigfillset(&set); X (void)sigprocmask(SIG_BLOCK, &set, &oset); X*** ./usr/src/bin/ar/move.c.old Fri Sep 24 23:06:14 1993 X--- ./usr/src/bin/ar/move.c Wed Oct 21 09:36:46 2026 X*************** X*** 35,41 **** X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)move.c 5.6 (Berkeley) 3/12/91"; X #endif X X #include X--- 35,41 ---- X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)move.c 5.7 (2.11BSD) 2026/10/21"; X #endif X X #include X*************** X*** 47,53 **** X #include X #include "archive.h" X #include "extern.h" X- #include "pathnames.h" X X extern CHDR chdr; /* converted header */ X extern char *archive; /* archive name */ X--- 47,52 ---- X*** ./usr/src/bin/passwd/passwd.c.old Tue Dec 25 08:49:41 2018 X--- ./usr/src/bin/passwd/passwd.c Mon Sep 21 20:40:36 2026 X*************** X*** 15,33 **** X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1988 The Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif /* not lint */ X X! #ifndef lint X! static char sccsid[] = "@(#)passwd.c 4.36 (2.11BSD) 12/25/2018"; X! #endif /* not lint */ X X #include X #include X! #include X #include X #include X #include X--- 15,31 ---- X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1988 The Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)passwd.c 4.37 (2.11BSD) 2026/5/10"; X! #endif X X #include X #include X! #include X #include X #include X #include X*************** X*** 36,41 **** X--- 34,40 ---- X #include X #include X #include X+ #include X X uid_t uid; X X*************** X*** 43,49 **** X int argc; X char **argv; X { X- extern int errno; X struct passwd *pw; X struct rlimit rlim; X FILE *temp_fp; X--- 42,47 ---- X*************** X*** 213,220 **** X char *temp; X { X register char *p, *t; X! char buf[10], salt[2], *crypt(), *getpass(); X! time_t time(); X X if (uid && pw->pw_passwd && X strcmp(crypt(getpass("Old password:"), pw->pw_passwd), X--- 211,217 ---- X char *temp; X { X register char *p, *t; X! char buf[10], salt[2]; X X if (uid && pw->pw_passwd && X strcmp(crypt(getpass("Old password:"), pw->pw_passwd), X*** ./usr/src/bin/disklabel/disklabel.c.old Sat Dec 20 22:09:32 2025 X--- ./usr/src/bin/disklabel/disklabel.c Wed Sep 23 21:12:35 2026 X*************** X*** 39,49 **** X "@(#) Copyright (c) 1987, 1993\n\ X The Regents of the University of California. All rights reserved.\n"; X X! static char sccsid[] = "@(#)disklabel.c 8.1.4 (2.11BSD) 2025/12/11"; X #endif X X #include X! #include X #include X #include X #include X--- 39,49 ---- X "@(#) Copyright (c) 1987, 1993\n\ X The Regents of the University of California. All rights reserved.\n"; X X! static char sccsid[] = "@(#)disklabel.c 8.1.5 (2.11BSD) 2026/9/21"; X #endif X X #include X! #include X #include X #include X #include X*************** X*** 56,62 **** X #include X #include X #include X! #include "pathnames.h" X X /* X * Disklabel: read and write disklabels. X--- 56,66 ---- X #include X #include X #include X! #include X! X! #define _PATH_BOOTDIR "/mdec" X! #undef _PATH_TMP X! #define _PATH_TMP "/tmp/EdDk.aXXXXXX" X X /* X * Disklabel: read and write disklabels. X*** ./usr/src/bin/ping/ping.c.old Fri Jan 19 01:20:46 1996 X--- ./usr/src/bin/ping/ping.c Mon Sep 21 20:41:10 2026 X*************** X*** 39,46 **** X "@(#) Copyright (c) 1989, 1993\n\ X The Regents of the University of California. All rights reserved.\n"; X X! static char sccsid[] = "@(#)ping.c 8.1.2 (2.11BSD) 1996/1/18"; X! #endif /* not lint */ X X /* X * P I N G . C X--- 39,46 ---- X "@(#) Copyright (c) 1989, 1993\n\ X The Regents of the University of California. All rights reserved.\n"; X X! static char sccsid[] = "@(#)ping.c 8.1.3 (2.11BSD) 2026/9/21"; X! #endif X X /* X * P I N G . C X*************** X*** 64,70 **** X #include X #include X #include X! #include X X #include X #include X--- 64,70 ---- X #include X #include X #include X! #include X X #include X #include X*************** X*** 77,82 **** X--- 77,83 ---- X #include X #include X #include X+ #include X X #define DEFDATALEN (64 - 8) /* default data length */ X #define MAXIPLEN 60 X*************** X*** 141,148 **** X int argc; X char **argv; X { X- extern int errno, optind; X- extern char *optarg; X struct timeval timeout; X struct hostent *hp; X struct sockaddr_in *to; X--- 142,147 ---- X*************** X*** 150,156 **** X register int i; X int ch, fdmask, hold, packlen, preload; X u_char *datap, *packet; X! char *target, hnamebuf[MAXHOSTNAMELEN], *malloc(); X #ifdef IP_OPTIONS X char rspace[3 + 4 * NROUTES + 1]; /* record route space */ X #endif X--- 149,155 ---- X register int i; X int ch, fdmask, hold, packlen, preload; X u_char *datap, *packet; X! char *target, hnamebuf[MAXHOSTNAMELEN]; X #ifdef IP_OPTIONS X char rspace[3 + 4 * NROUTES + 1]; /* record route space */ X #endif X*************** X*** 376,381 **** X--- 375,381 ---- X * launched exactly at 1-second intervals). This does not affect the X * quality of the delay and loss statistics. X */ X+ X void X catcher() X { X*** ./usr/src/bin/tcsh/sh.h.old Fri Mar 22 02:20:19 1996 X--- ./usr/src/bin/tcsh/sh.h Mon Sep 21 18:12:04 2026 X*************** X*** 1,5 **** X- /* $Header: src/sys/tcsh-6.00/RCS/sh.h,v 3.1.1 1996/03/21 19:07:20 christos Exp $ */ X /* X * sh.h: Catch it all globals and includes file! X */ X /*- X--- 1,6 ---- X /* X+ * @(#)sh.h 2.0 (2.11BSD) 2026/6/1 X+ * X * sh.h: Catch it all globals and includes file! X */ X /*- X*************** X*** 38,54 **** X #define _h_sh X X X- /* X- * Sanity X- */ X- #if defined(_POSIX_SOURCE) && !defined(POSIX) X- # define POSIX X- #endif X- X- #if defined(POSIXJOBS) && !defined(BSDJOBS) X- # define BSDJOBS X- #endif X- X #ifdef SHORT_STRINGS X typedef short Char; X # define SAVE(a) (Strsave(str2short(a))) X--- 39,44 ---- X*************** X*** 57,87 **** X # define SAVE(a) (strsave(a)) X #endif X X- /* X- * If your comp_r complains, then you can either X- * throw it away and get gcc or, use the following define X- * and get rid of the typedef. X- * [The 4.2/3BSD vax comp_r does not like that] X- */ X- #ifdef SIGVOID X- # if defined(vax) && !defined(__GNUC__) X- # define sigret_t void X- # else X- typedef void sigret_t; X- # endif X- #else X typedef int sigret_t; X- #endif /* SIGVOID */ X X /* X * Fundamental definitions which may vary from system to system. X * X! * BUFSIZ The i/o buffering size; also limits word size X * MAILINTVL How often to mailcheck; more often is more expensive X */ X- #ifndef BUFSIZ X- #define BUFSIZ 1024 /* default buffer size */ X- #endif /* BUFSIZ */ X X #define FORKSLEEP 10 /* delay loop on non-interactive fork failure */ X #define MAILINTVL 600 /* 10 minutes */ X--- 47,60 ---- X # define SAVE(a) (strsave(a)) X #endif X X typedef int sigret_t; X X /* X * Fundamental definitions which may vary from system to system. X * X! * BUFSIZ set in tc.os.h X * MAILINTVL How often to mailcheck; more often is more expensive X */ X X #define FORKSLEEP 10 /* delay loop on non-interactive fork failure */ X #define MAILINTVL 600 /* 10 minutes */ X*************** X*** 102,260 **** X #endif X X #include X- #ifdef _SEQUENT_ X- # include X- #endif /* _SEQUENT_ */ X- #if defined(POSIX) || SVID > 0 X- # include X- #endif /* POSIX || SVID > 0 */ X X- #ifdef NLS X- # include X- #endif X- X #include X #include X X! #ifdef BSDTIMES X! # include X! # include X! #endif /* BSDTIMES */ X X! #ifndef POSIX X! # ifdef TERMIO X! # ifdef _IBMR2 X! /* Aix redefines NOFLSH when _BSD_INCLUDES is defined! */ X! # undef _BSD X! # undef _BSD_INCLUDES X! # endif /* _IBMR2 */ X! # include X! # ifdef _IBMR2 X! /* but we need it. */ X! # define _BSD X! # define _BSD_INCLUDES X! # endif /* _IBMR2 */ X! # else X! # include X! # endif /* TERMIO */ X! #else /* POSIX */ X! # include X! #endif /* POSIX */ X X! #ifdef POSIX X! /* X! * We should be using setpgid and setpgid X! * by now, but in some systems we use the X! * old routines... X! */ X! # define getpgrp __getpgrp X! # define setpgrp __setpgrp X! # include X! # undef getpgrp X! # undef setpgrp X! extern int getpgrp(); X! extern int setpgrp(); X! X! /* X! * the gcc+protoize version of X! * redefines malloc(), so we define the following X! * to avoid it. X! */ X! # define _GNU_STDLIB_H X! # define malloc __malloc X! # define free __free X! # define calloc __calloc X! # define realloc __realloc X! # include X! # undef malloc X! # undef free X! # undef calloc X! # undef realloc X! # include X! #endif /* POSIX */ X! X! #if SVID > 0 X! # if !defined(pyr) || !defined(aiws) X! # include X! # endif /* !aiws || !pyr */ X! #endif /* SVID > 0 */ X! X! #if !(defined(sun) && defined(TERMIO)) X! # include X! #endif X! X! #if !defined(FIOCLEX) && defined(sun) X! # include X! #endif /* !FIOCLEX && sun */ X! X! X #include X! X! #if !defined(O_RDONLY) || !defined(O_NDELAY) X! # include X! #endif X! X #include X- X #include X X! #if __STDC__ X! # include X! #else X! # include X! #endif X! X! #ifdef DIRENT X! # include X! #else X! # include X! # define dirent direct X! #endif /* DIRENT */ X! #ifdef hpux X! # include /* So the fgetpwent() prototypes work */ X! #endif X #include X! #ifdef BSD X! # include X! # define strchr(a, b) index(a, b) X! # define strrchr(a, b) rindex(a, b) X! #else X! # include X! #endif /* BSD */ X X typedef int bool; X X #include "sh.types.h" X X- #ifndef lint X typedef ptr_t memalign_t; X- #else X- typedef union { X- char am_ch, *am_char_p; X- short am_sh, *am_short_p; X- int am_in, *am_int_p; X- long am_lo, *am_long_p; X- float am_fl, *am_float_p; X- double am_do, *am_double_p; X- } *memalign_t; X X- # define malloc lint_malloc X- # define free lint_free X- # define realloc lint_realloc X- # define calloc lint_calloc X- #endif X- X- #ifdef SYSMALLOC X # define xmalloc(i) Malloc(i) X # define xrealloc(p, i) Realloc(p, i) X # define xcalloc(n, s) Calloc(n, s) X # define xfree(p) Free(p) X! #else X! # define xmalloc(i) malloc(i) X! # define xrealloc(p, i) realloc(p, i) X! # define xcalloc(n, s) calloc(n, s) X! # define xfree(p) free(p) X! #endif /* SYSMALLOC */ X #include "sh.char.h" X #include "sh.err.h" X #include "sh.dir.h" X--- 75,112 ---- X #endif X X #include X X #include X #include X X! #include X! #include X X! #include X X! #include X #include X! #include X #include X #include X+ #include X X! #include X! #include /* So the fgetpwent() prototypes work */ X #include X! #include X X typedef int bool; X X #include "sh.types.h" X X typedef ptr_t memalign_t; X X # define xmalloc(i) Malloc(i) X # define xrealloc(p, i) Realloc(p, i) X # define xcalloc(n, s) Calloc(n, s) X # define xfree(p) Free(p) X! X #include "sh.char.h" X #include "sh.err.h" X #include "sh.dir.h" X*************** X*** 262,268 **** X X #include "pathnames.h" X X- X /* X * C shell X * X--- 114,119 ---- X*************** X*** 286,293 **** X # define MAXHOSTNAMELEN 255 X #endif /* MAXHOSTNAMELEN */ X X- X- X #define eq(a, b) (Strcmp(a, b) == 0) X X /* globone() flags */ X--- 137,142 ---- X*************** X*** 337,358 **** X extern int errno; /* Error from C library routines */ X Char *shtemp; /* Temp name for << shell files in /tmp */ X X- #ifdef BSDTIMES X struct timeval time0; /* Time at which the shell started */ X struct rusage ru0; X- #else X- # ifdef _SEQUENT_ X- tmval_t time0; /* Time at which the shell started */ X- struct pro_stats ru0; X- # else /* _SEQUENT_ */ X- # ifndef POSIX X- time_t time0; /* time at which shell started */ X- # else /* POSIX */ X- clock_t time0; /* time at which shell started */ X- # endif /* POSIX */ X- struct tms shtimes; /* shell and child times for process timing */ X- # endif /* _SEQUENT_ */ X- #endif /* BSDTIMES */ X X /* X * Miscellany X--- 186,193 ---- X*************** X*** 420,427 **** X X Char *gointr; /* Label for an onintr transfer */ X X! sigret_t (*parintr) (); /* Parents interrupt catch */ X! sigret_t (*parterm) (); /* Parents terminate catch */ X X /* X * Lexical definitions. X--- 255,262 ---- X X Char *gointr; /* Label for an onintr transfer */ X X! sig_t parintr; /* Parents interrupt catch */ X! sig_t parterm; /* Parents terminate catch */ X X /* X * Lexical definitions. X*************** X*** 661,674 **** X /* X * Variables for filename expansion X */ X! extern Char **gargv; /* Pointer to the (stack) arglist */ X! extern long gargc; /* Number args in gargv */ X X /* X * Variables for command expansion. X */ X! extern Char **pargv; /* Pointer to the argv list space */ X! extern long pargc; /* Count of arguments in pargv */ X Char *pargs; /* Pointer to start current word */ X long pnleft; /* Number of chars left in pargs */ X Char *pargcp; /* Cur_ index into pargs */ X--- 496,509 ---- X /* X * Variables for filename expansion X */ X! extern Char **gargv; /* Pointer to the (stack) arglist */ X! extern int gargc; /* Number args in gargv */ X X /* X * Variables for command expansion. X */ X! extern Char **pargv; /* Pointer to the argv list space */ X! extern int pargc; /* Count of arguments in pargv */ X Char *pargs; /* Pointer to start current word */ X long pnleft; /* Number of chars left in pargs */ X Char *pargcp; /* Cur_ index into pargs */ X*** ./usr/src/bin/tcsh/sh.c.old Mon Jan 3 01:47:24 1994 X--- ./usr/src/bin/tcsh/sh.c Mon Sep 21 20:16:12 2026 X*************** X*** 1,7 **** X- /* $Header: /home/hyperion/mu/christos/src/sys/tcsh-6.00/RCS/sh.c,v 3.0 1991/07/04 23:34:26 christos Exp $ */ X- /* X- * sh.c: Main shell routines X- */ X /*- X * Copyright (c) 1980, 1991 The Regents of the University of California. X * All rights reserved. X--- 1,3 ---- X*************** X*** 35,49 **** X * SUCH DAMAGE. X */ X #include "config.h" X! #if !defined(lint) && !defined(pdp11) X char copyright[] = X "@(#) Copyright (c) 1991 The Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif /* not lint */ X X- #if !defined(lint) && !defined(pdp11) X static char *rcsid() X! { return "$Id: sh.c,v 3.0 1991/07/04 23:34:26 christos Exp $"; } X #endif X X #include "sh.h" X--- 31,43 ---- X * SUCH DAMAGE. X */ X #include "config.h" X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1991 The Regents of the University of California.\n\ X All rights reserved.\n"; X X static char *rcsid() X! { return "$Id: sh.c,v 3.1 2026/6/1 23:34:26 (2.11BSD) Exp $"; } X #endif X X #include "sh.h" X*************** X*** 83,92 **** X * ported to Apple Unix (TM) (OREO) 26 -- 29 Jun 1987 X */ X X- #ifdef TESLA X- static int do_logout; X- #endif /* TESLA */ X- X Char *dumphist[] = {STRhsto, STRmh, 0, 0}; X Char *loadhist[] = {STRsource, STRmh, STRhstf, 0}; X X--- 77,82 ---- X*************** X*** 95,104 **** X bool dflag = 0; X #endif X X- #if defined(convex) || defined(__convex__) X- bool use_fork = 0; /* use fork() instead of vfork()? */ X- #endif X- X int nofile = 0; X bool reenter = 0; X bool nverbose = 0; X--- 85,90 ---- X*************** X*** 116,122 **** X X static int srccat __P((Char *, Char *)); X static int srcfile __P((char *, bool, bool)); X! static sigret_t phup __P((int)); X static void srcunit __P((int, bool, bool)); X static void mailchk __P((void)); X static Char **d_path __P((void)); X--- 102,108 ---- X X static int srccat __P((Char *, Char *)); X static int srcfile __P((char *, bool, bool)); X! static void phup __P((void)); X static void srcunit __P((int, bool, bool)); X static void mailchk __P((void)); X static Char **d_path __P((void)); X*************** X*** 131,147 **** X register int f; X register char **tempv; X X- #ifdef BSDSIGS X sigvec_t osv; X- #endif /* BSDSIGS */ X X settimes(); /* Immed. estab. timing base */ X- #ifdef TESLA X- do_logout = 0; X- #endif /* TESLA */ X X- osinit(); /* Os dependent initialization */ X- X /* X * Initialize non constant strings X */ X--- 117,126 ---- X*************** X*** 332,343 **** X X Char buff[BUFSIZ]; X X- #ifdef apollo X- int oid = getoid(); X- X- Itoa(oid, buff); X- set(STRoid, Strsave(buff)); X- #endif /* apollo */ X Itoa(uid, buff); X set(STRuid, Strsave(buff)); X X--- 311,316 ---- X*************** X*** 365,375 **** X * HOSTTYPE, too. Just set it again. X */ X Setenv(STRHSTTYPE, GetHostType()); X- #ifdef apollo X- if ((tcp = getenv("SYSTYPE")) == NULL) X- tcp = "bsd4.3"; X- Setenv(STRSYSTYPE, str2short(tcp)); X- #endif /* apollo */ X X /* X * set editing on by default, unless running under Emacs as an inferior X--- 338,343 ---- X*************** X*** 413,430 **** X * be either. Our children inherit termination from our parent. We catch it X * only if we are the login shell. X */ X- #ifdef BSDSIGS X /* parents interruptibility */ X (void) mysigvec(SIGINT, NULL, &osv); X! parintr = (sigret_t(*) ()) osv.sv_handler; X (void) mysigvec(SIGTERM, NULL, &osv); X! parterm = (sigret_t(*) ()) osv.sv_handler; X! #else /* BSDSIGS */ X! parintr = signal(SIGINT, SIG_IGN); /* parents interruptibility */ X! (void) sigset(SIGINT, parintr); /* ... restore */ X! parterm = signal(SIGTERM, SIG_IGN); /* parents terminability */ X! (void) sigset(SIGTERM, parterm); /* ... restore */ X! #endif /* BSDSIGS */ X X if (loginsh) { X (void) signal(SIGHUP, phup); /* exit processing on HUP */ X--- 381,391 ---- X * be either. Our children inherit termination from our parent. We catch it X * only if we are the login shell. X */ X /* parents interruptibility */ X (void) mysigvec(SIGINT, NULL, &osv); X! parintr = osv.sv_handler; X (void) mysigvec(SIGTERM, NULL, &osv); X! parterm = osv.sv_handler; X X if (loginsh) { X (void) signal(SIGHUP, phup); /* exit processing on HUP */ X*************** X*** 436,446 **** X #endif /* SIGXFSZ */ X } X X- #ifdef TCF X- /* Enable process migration on ourselves and our progeny */ X- (void) signal(SIGMIGRATE, SIG_DFL); X- #endif /* TCF */ X- X /* X * Process the arguments. X * X--- 397,402 ---- X*************** X*** 551,566 **** X setNS(STRecho); /* NOW! */ X break; X X- #if defined(__convex__) || defined(convex) X- case 'F': /* Undocumented flag */ X- /* X- * This will cause children to be created using fork instead of X- * vfork. X- */ X- use_fork = 1; X- break; X- #endif X- X } while (*tcp); X tempv++, argc--; X } X--- 507,512 ---- X*************** X*** 692,698 **** X #ifdef BSDJOBS /* if we have tty job control */ X if ((tpgrp = tcgetpgrp(f)) != -1) { X if (tpgrp != shpgrp) { X! sigret_t(*old) () = signal(SIGTTIN, SIG_DFL); X (void) kill(0, SIGTTIN); X (void) signal(SIGTTIN, old); X goto retry; X--- 638,644 ---- X #ifdef BSDJOBS /* if we have tty job control */ X if ((tpgrp = tcgetpgrp(f)) != -1) { X if (tpgrp != shpgrp) { X! sig_t old = signal(SIGTTIN, SIG_DFL); X (void) kill(0, SIGTTIN); X (void) signal(SIGTTIN, old); X goto retry; X*************** X*** 787,797 **** X { X int osetintr = setintr; X X- #ifdef BSDSIGS X sigmask_t omask = sigblock(sigmask(SIGINT)); X- #else X- sighold(SIGINT); X- #endif X setintr = 0; X #ifdef _PATH_DOTCSHRC X (void) srcfile(_PATH_DOTCSHRC, 0, 0); X--- 733,739 ---- X*************** X*** 802,812 **** X if (loginsh) X (void) srcfile(_PATH_DOTLOGIN, 0, 0); X #endif X- #ifdef BSDSIGS X (void) sigsetmask(omask); X- #else X- (void) sigrelse(SIGINT); X- #endif X setintr = osetintr; X } X #ifdef LOGINFIRST X--- 744,750 ---- X*************** X*** 880,888 **** X xprintf("logout\n"); X (void) close(SHIN); X child = 1; X- #ifdef TESLA X- do_logout = 1; X- #endif /* TESLA */ X goodbye(); X } X else { X--- 818,823 ---- X*************** X*** 1022,1030 **** X char OHIST = HIST; X bool otell = cantell; X struct Bin saveB; X- #ifdef BSDSIGS X volatile sigmask_t omask = (sigmask_t) 0; X- #endif X jmp_buf oldexit; X X /* The (few) real local variables */ X--- 957,963 ---- X*************** X*** 1059,1069 **** X getexit(oldexit); X X if (setintr) X- #ifdef BSDSIGS X omask = sigblock(sigmask(SIGINT)); X- #else X- (void) sighold(SIGINT); X- #endif X /* X * Bugfix for running out of memory by: Jak Kirman X * . Solution: pay attention to what X--- 992,998 ---- X*************** X*** 1088,1098 **** X * interrupted. X */ X if (setintr) X- #ifdef BSDSIGS X (void) sigsetmask(omask); X- #else X- (void) sigrelse(SIGINT); X- #endif X settell(); X X /* PWP: think of this as like a LISP (unwind-protect ...) */ X--- 1017,1023 ---- X*************** X*** 1102,1117 **** X } X X if (setintr) X- #ifdef BSDSIGS X (void) sigsetmask(omask); X- #else X- (void) sigrelse(SIGINT); X- #endif X if (oSHIN >= 0) { X register int i; X X /* We made it to the new state... free up its storage */ X- /* This code could get run twice but xfree doesn't care */ X for (i = 0; i < fblocks; i++) X xfree((ptr_t) fbuf[i]); X xfree((ptr_t) fbuf); X--- 1027,1037 ---- X*************** X*** 1186,1194 **** X #endif X if (adrof(STRhome)) X (void) srccat(value(STRhome), STRs_logout); X- #ifdef TESLA X- do_logout = 1; X- #endif /* TESLA */ X } X exitstat(); X } X--- 1106,1111 ---- X*************** X*** 1212,1220 **** X /* X * in the event of a HUP we want to save the history X */ X! static sigret_t X! phup(i) X! int i; X { X rechist(); X #ifdef CSHDIRS X--- 1129,1136 ---- X /* X * in the event of a HUP we want to save the history X */ X! static void X! phup() X { X rechist(); X #ifdef CSHDIRS X*************** X*** 1223,1232 **** X */ X recdirs(); X #endif X! xexit(i); X! #ifndef SIGVOID X! return (i); X! #endif X } X X Char *jobargv[2] = {STRjobs, 0}; X--- 1139,1145 ---- X */ X recdirs(); X #endif X! xexit(0); X } X X Char *jobargv[2] = {STRjobs, 0}; X*************** X*** 1240,1254 **** X */ X int just_signaled; /* bugfix by Michael Bloom (mg@ttidca.TTI.COM) */ X X! sigret_t X! pintr(i) X! int i; X { X just_signaled = 1; X pintr1(1); X- #ifndef SIGVOID X- return (i); X- #endif X } X X void X--- 1153,1163 ---- X */ X int just_signaled; /* bugfix by Michael Bloom (mg@ttidca.TTI.COM) */ X X! void X! pintr() X { X just_signaled = 1; X pintr1(1); X } X X void X*************** X*** 1256,1274 **** X bool wantnl; X { X register Char **v; X- #ifdef BSDSIGS X sigmask_t omask; X- #endif X X- #ifdef BSDSIGS X omask = sigblock((sigmask_t) 0); X! #endif X if (setintr) { X- #ifdef BSDSIGS X (void) sigsetmask(omask & ~sigmask(SIGINT)); X- #else X- (void) sigrelse(SIGINT); X- #endif X if (pjobs) { X pjobs = 0; X xprintf("\n"); X--- 1165,1176 ---- X bool wantnl; X { X register Char **v; X sigmask_t omask; X X omask = sigblock((sigmask_t) 0); X! X if (setintr) { X (void) sigsetmask(omask & ~sigmask(SIGINT)); X if (pjobs) { X pjobs = 0; X xprintf("\n"); X*************** X*** 1283,1295 **** X (void) Cookedmode(); X GettingInput = 0; X } X- #ifdef BSDSIGS X (void) sigsetmask(omask & ~sigmask(SIGCHLD)); X- #else X- if (setintr) X- (void) sighold(SIGINT); X- (void) sigrelse(SIGCHLD); X- #endif X draino(); X (void) endpwent(); X X--- 1185,1191 ---- X*************** X*** 1353,1365 **** X * Interruptible during interactive reads X */ X if (setintr) X- #ifdef BSDSIGS X (void) sigsetmask(sigblock((sigmask_t) 0) & ~sigmask(SIGINT)); X- #else X- (void) sigrelse(SIGINT); X- #endif X- X- X /* X * For the sake of reset() X */ X--- 1249,1255 ---- X*************** X*** 1436,1446 **** X * The parser may lose space if interrupted. X */ X if (setintr) X- #ifdef BSDSIGS X (void) sigblock(sigmask(SIGINT)); X- #else X- (void) sighold(SIGINT); X- #endif X X /* X * Save input text on the history list if reading in old history, or it X--- 1326,1332 ---- X*************** X*** 1511,1517 **** X freesyn(savet), savet = NULL; X #ifdef SIG_WINDOW X if (catch && intty && !whyles && !tellwhat) X! window_change(0); /* for window systems */ X #endif /* SIG_WINDOW */ X } X savet = t; X--- 1397,1403 ---- X freesyn(savet), savet = NULL; X #ifdef SIG_WINDOW X if (catch && intty && !whyles && !tellwhat) X! window_change(); /* for window systems */ X #endif /* SIG_WINDOW */ X } X savet = t; X*************** X*** 1573,1583 **** X for (; *vp; vp++) { X if (stat(short2str(*vp), &stb) < 0) X continue; X- #if defined(BSDTIMES) || defined(_SEQUENT_) X new = stb.st_mtime > time0.tv_sec; X- #else X- new = stb.st_mtime > time0; X- #endif X if (stb.st_size == 0 || stb.st_atime > stb.st_mtime || X (stb.st_atime < chktim && stb.st_mtime < chktim) || X loginsh && !new) X--- 1459,1465 ---- X*************** X*** 1661,1683 **** X #endif X int i; X { X- #ifdef TESLA X- if (loginsh && do_logout) { X- /* this is to send hangup signal to the develcon */ X- /* we toggle DTR. clear dtr - sleep 1 - set dtr */ X- /* ioctl will return ENOTTY for pty's but we ignore it */ X- /* exitstat will run after disconnect */ X- /* we sleep for 2 seconds to let things happen in */ X- /* .logout and rechist() */ X- #ifdef TIOCCDTR X- (void) sleep(2); X- (void) ioctl(FSHTTY, TIOCCDTR, NULL); X- (void) sleep(1); X- (void) ioctl(FSHTTY, TIOCSDTR, NULL); X- #endif /* TIOCCDTR */ X- } X- #endif /* TESLA */ X- X untty(); X _exit(i); X } X--- 1543,1548 ---- X*************** X*** 1705,1714 **** X X #ifdef _PATH_USRUCB X DIRAPPEND(_PATH_USRUCB); X- #endif X- X- #ifdef _PATH_USRBSD X- DIRAPPEND(_PATH_USRBSD); X #endif X X #ifdef _PATH_BIN X--- 1570,1575 ---- X*** ./usr/src/bin/tcsh/alloc11.c.old Thu Apr 4 23:48:49 1996 X--- ./usr/src/bin/tcsh/alloc11.c Thu Aug 20 07:29:17 2026 X*************** X*** 1,5 **** X! #if !defined(lint) && !defined(NOSCCS) X! static char *sccsid = "@(#)alloc.c 4.1.1 1996/4/4"; X #endif X X #include "config.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)alloc.c 4.1.2 2026/5/10"; X #endif X X #include "config.h" X*************** X*** 74,83 **** X #define setbusy(p) (union store *)((INT)(p)|BUSY) X #define clearbusy(p) (union store *)((INT)(p)&~BUSY) X X! union store { union store *ptr; X! ALIGN dummy[NALIGN]; X! int calloc; /*calloc clears an array of integers*/ X! }; X X static union store allocs[2]; /*initial arena*/ X static union store *allocp; /*search ptr*/ X--- 74,83 ---- X #define setbusy(p) (union store *)((INT)(p)|BUSY) X #define clearbusy(p) (union store *)((INT)(p)&~BUSY) X X! union store { X! union store *ptr; X! ALIGN dummy[NALIGN]; X! }; X X static union store allocs[2]; /*initial arena*/ X static union store *allocp; /*search ptr*/ X*** ./usr/src/bin/tcsh/pathnames.h.old Wed Aug 21 16:39:10 1991 X--- ./usr/src/bin/tcsh/pathnames.h Mon Jun 1 18:09:12 2026 X*************** X*** 1,4 **** X! /* $Header: /home/hyperion/mu/christos/src/sys/tcsh-6.00/RCS/pathnames.h,v 3.0 1991/07/04 21:54:11 christos Exp $ */ X /* X * pathnames.h: Location of things to find X */ X--- 1,4 ---- X! /* $Header: /home/hyperion/mu/christos/src/sys/tcsh-6.00/RCS/pathnames.h,v 3.1 2026/5/31 21:54:11 (2.11BSD) Exp $ */ X /* X * pathnames.h: Location of things to find X */ X*************** X*** 37,63 **** X #ifndef _h_pathnames X #define _h_pathnames X X! #ifdef CMUCS X! #define _PATH_LOCAL "/usr/cs/bin" X! #else X! #define _PATH_LOCAL "/usr/local" X! #endif X X #define _PATH_USRBIN "/usr/bin" X #define _PATH_USRUCB "/usr/ucb" X- #define _PATH_USRBSD "/usr/bsd" X #define _PATH_BIN "/bin" X X- #if defined(convex) || defined(__convex__) X- # define _PATH_DOTLOGIN "/etc/login" X- # define _PATH_DOTLOGOUT "/etc/logout" X- # define _PATH_DOTCSHRC "/etc/cshrc" X- #endif /* convex || __convex__ */ X- X- #if defined(IRIS4D) || defined(OREO) X- # define _PATH_DOTLOGIN "/etc/cshrc" X- #endif /* IRIS4D || OREO */ X- X #ifndef _PATH_DOTLOGIN X # define _PATH_DOTCSHRC "/etc/csh.cshrc" X # define _PATH_DOTLOGIN "/etc/csh.login" X--- 37,49 ---- X #ifndef _h_pathnames X #define _h_pathnames X X! #include X X+ #define _PATH_LOCAL "/usr/local" X #define _PATH_USRBIN "/usr/bin" X #define _PATH_USRUCB "/usr/ucb" X #define _PATH_BIN "/bin" X X #ifndef _PATH_DOTLOGIN X # define _PATH_DOTCSHRC "/etc/csh.cshrc" X # define _PATH_DOTLOGIN "/etc/csh.login" X*************** X*** 65,81 **** X #endif X X #define _PATH_DEVNULL "/dev/null" X- X- #define _PATH_BSHELL "/bin/sh" X- #ifdef notdef X- # define _PATH_CSHELL "/bin/csh" X- #endif X #define _PATH_TCSHELL "/bin/tcsh" X X #define _PATH_LOGIN "/bin/login" X- #ifdef NEWGRP X- # define _PATH_BIN_NEWGRP "/bin/newgrp" X- # define _PATH_USRBIN_NEWGRP "/usr/bin/newgrp" X- #endif X- X #endif /* _h_pathnames */ X--- 51,57 ---- X*** ./usr/src/bin/tcsh/tc.vers.c.old Wed Aug 21 16:37:37 1991 X--- ./usr/src/bin/tcsh/tc.vers.c Sat Aug 15 21:48:31 2026 X*************** X*** 1,4 **** X- /* $Header: /home/hyperion/mu/christos/src/sys/tcsh-6.00/RCS/tc.vers.c,v 3.0 1991/07/04 21:49:28 christos Exp $ */ X /* X * tc.vers.c: Version dependent stuff X */ X--- 1,3 ---- X*************** X*** 35,322 **** X * SUCH DAMAGE. X */ X #include "config.h" X! #if !defined(lint) && !defined(pdp11) X static char *rcsid() X! { return "$Id: tc.vers.c,v 3.0 1991/07/04 21:49:28 christos Exp $"; } X #endif X X #include "sh.h" X #include "patchlevel.h" X X- X Char * X GetHostType() X { X! Char *hosttype; X! X! #ifdef vax X! # define _havehosttype_ X! hosttype = str2short("vax"); X! #endif /* vax */ X X- #ifdef pdp11 X- # define _havehosttype_ X- hosttype = str2short("pdp11"); X- #endif /* pdp */ X X- #ifdef hp9000 /* hp9000 running MORE/bsd */ X- # ifdef hp300 X- # define _havehosttype_ X- hosttype = str2short("hp300"); X- # endif X- # ifdef hp800 X- # define _havehosttype_ X- hosttype = str2short("hp800"); X- # endif X- # ifndef _havehosttype_ X- # define _havehosttype_ X- hosttype = str2short("hp9000"); X- # endif X- #endif /* hp9000 */ X- X- #ifdef sun X- # ifdef mc68010 X- # define _havehosttype_ X- hosttype = str2short("sun2"); X- # endif /* mc68010 */ X- # ifdef mc68020 X- # define _havehosttype_ X- hosttype = str2short("sun3"); X- # endif /* mc68020 */ X- # ifdef sparc X- # define _havehosttype_ X- hosttype = str2short("sun4"); X- # endif /* sparc */ X- # ifdef i386 X- # define _havehosttype_ X- hosttype = str2short("sun386i"); X- # endif /* i386 */ X- # ifndef _havehosttype_ X- # define _havehosttype_ X- hosttype = str2short("sun"); X- # endif X- #endif /* sun */ X- X- #ifdef pyr /* pyramid */ X- # define _havehosttype_ X- hosttype = str2short("pyramid"); X- #endif /* pyr */ X- X- #ifdef ibm032 /* from Jak Kirman X- * . */ X- # define _havehosttype_ X- hosttype = str2short("rt"); X- #endif /* ibm032 */ X- X- #ifdef aiws /* not to be confused with the above */ X- # define _havehosttype_ X- hosttype = str2short("rtpc"); X- #endif /* aiws */ X- X- #ifdef _AIX370 X- # define _havehosttype_ X- hosttype = str2short("aix370"); X- #endif /* _AIX370 */ X- X- #ifdef _IBMR2 X- # define _havehosttype_ X- hosttype = str2short("rs6000"); X- #endif /* _IBMR2 */ X- X- #ifdef _AIXPS2 /* AIX on a PS/2 */ X- # define _havehosttype_ X- hosttype = str2short("ps2"); X- #endif /* _AIXPS2 */ X- X- #ifdef OREO X- # define _havehosttype_ X- hosttype = str2short("mac2"); X- #endif /* OREO */ X- X- #ifdef hpux X- # if defined(__hp9000s700) && !defined(_havehosttype_) X- # define _havehosttype_ X- hosttype = str2short("hp9000s700"); X- # endif /* __hp9000s700 */ X- # if defined(hp9000s800) && !defined(_havehosttype_) X- # define _havehosttype_ X- hosttype = str2short("hp9000s800"); /* maybe "spectrum" */ X- # endif /* hp9000s800 */ X- # if defined(hp9000s300) && !defined(_havehosttype_) X- # define _havehosttype_ X- hosttype = str2short("hp9000s300"); X- # endif /* hp9000s300 */ X- # ifndef _havehosttype_ X- # define _havehosttype_ X- hosttype = str2short("hp"); X- # endif /* _havehosttype_ */ X- #endif /* hpux */ X- X- #ifdef apollo X- # define _havehosttype_ X- hosttype = str2short("apollo"); X- #endif X- X- #ifdef u3b20d X- # define _havehosttype_ X- hosttype = str2short("att3b20"); X- #endif /* u3b20d */ X- X- #ifdef u3b15 X- # define _havehosttype_ X- hosttype = str2short("att3b15"); X- #endif /* u3b15 */ X- X- #ifdef u3b5 X- # define _havehosttype_ X- hosttype = str2short("att3b5"); X- #endif /* u3b5 */ X- X- #ifdef u3b2 X- # define _havehosttype_ X- hosttype = str2short("att3b2"); X- #endif /* u3b2 */ X- X- #if defined(i386) && SVID > 0 X- # define _havehosttype_ X- hosttype = str2short("iAPX386"); X- #endif X- X- #ifdef alliant X- # define _havehosttype_ X- hosttype = str2short("alliant"); /* for Alliant FX Series */ X- #endif X- X- #if defined(i386) && defined(MACH) X- # define _havehosttype_ X- hosttype = str2short("i386-mach"); X- #endif X- X- #if defined(sequent) || defined(_SEQUENT_) X- # define _havehosttype_ X- # ifdef i386 X- # ifdef sequent X- hosttype = str2short("symmetry");/* Sequent Symmetry Dynix/3 */ X- # ifndef LOCALSTR X- # define LOCALSTR " (Dynix/3)" X- # endif /* LOCALSTR */ X- # else X- hosttype = str2short("ptx"); /* Sequent Symmetry Dynix/ptx */ X- # ifndef LOCALSTR X- # define LOCALSTR " (Dynix/ptx)" X- # endif /* LOCALSTR */ X- # endif X- # else X- hosttype = str2short("balance"); /* for Sequent Balance Series */ X- # ifndef LOCALSTR X- # define LOCALSTR " (Dynix/3)" X- # endif /* LOCALSTR */ X- # endif X- #else /* !sequent */ X- # ifdef ns32000 X- # ifdef CMUCS /* hack for Mach (in the true spirit of CMU) */ X- hosttype = str2short("multimax"); X- # else /* CMUCS */ X- hosttype = str2short((!access("/Umax.image", F_OK) ? "multimax" : "ns32000")); X- # endif /* CMUCS */ X- # endif /* ns32000 */ X- #endif /* sequent */ X- X- #if defined(convex) || defined(__convex__) X- # define _havehosttype_ X- /* From: Brian Allison */ X- hosttype = str2short("convex"); X- #endif /* convex */ X- X- #ifdef butterfly X- # define _havehosttype_ X- /* this will work _until_ the bfly with 88000s comes out */ X- hosttype = str2short("butterfly"); /* BBN Butterfly 1000 */ X- #endif /* butterfly */ X- X- #ifdef NeXT X- # define _havehosttype_ X- hosttype = str2short("next"); X- #endif /* NeXT */ X- X- /* From Kazuhiro Honda */ X- #ifdef sony_news X- # define _havehosttype_ X- # ifdef mips /* Sony NEWS based on a r3000 */ X- hosttype = str2short("news_mips"); X- # else X- hosttype = str2short("news"); X- # endif X- #endif /* sony_news */ X- X- #ifdef mips X- # define _havehosttype_ X- # ifdef MIPSEL X- # ifdef ultrix X- /* decstation XXXX */ X- hosttype = str2short("decstation"); X- # else X- hosttype = str2short("mips"); X- # endif /* ultrix */ X- # endif /* MIPSEL */ X- # ifdef MIPSEB X- # ifdef sgi /* sgi iris 4d */ X- hosttype = str2short("iris4d"); X- # else X- # ifdef sony_news X- hosttype = str2short("news_mips"); X- # else X- hosttype = str2short("mips"); X- # endif /* sony_news */ X- # endif /* sgi */ X- # endif /* MIPSEB */ X- #endif /* mips */ X- X- #ifdef m88k X- # define _havehosttype_ X- hosttype = str2short("m88k"); /* Motorola 88100 system */ X- #endif X- X- #ifdef masscomp /* Added, DAS DEC-90. */ X- # define _havehosttype_ X- hosttype = str2short("masscomp");/* masscomp == concurrent */ X- #endif /* masscomp */ X- X- #ifdef GOULD_NP1 X- # define _havehosttype_ X- hosttype = str2short("gould_np1"); X- #endif /* GOULD_NP1 */ X- X- #ifdef SXA X- # define _havehosttype_ X- hosttype = str2short("pfa50"); X- # ifdef _BSDX_ X- # ifndef LOCALSTR X- # define LOCALSTR " (SX/A E60+BSDX)" X- # endif /* LOCALSTR */ X- # else X- # ifndef LOCALSTR X- # define LOCALSTR " (SX/A E60)" X- # endif /* LOCALSTR */ X- # endif X- #endif /* PFU/Fujitsu A-xx computer */ X- X- #ifdef titan X- # define _havehosttype_ X- /* Ken Laprade */ X- hosttype = str2short("titan"); X- #endif /* titan */ X- X- #ifndef _havehosttype_ X- # define _havehosttype_ X- /* Default to something reasonable */ X- hosttype = str2short("unknown"); X- #endif X- #undef _havehosttype_ X- return hosttype; X- } /* end GetHostType */ X- X- X /* fix_version(): X * Print a reasonable version string, printing all comp_ time X * options that might affect the user. X--- 34,55 ---- X * SUCH DAMAGE. X */ X #include "config.h" X! X! #if !defined(lint) && defined(DOSCCS) X static char *rcsid() X! { return "$Id: tc.vers.c,v 3.1 2026/6/1 21:49:28 (2.11BSD) Exp $"; } X #endif X X #include "sh.h" X #include "patchlevel.h" X X Char * X GetHostType() X { X! return("pdp11"); /* Don't str2short() because Setenv does it in sh.c */ X! } X X X /* fix_version(): X * Print a reasonable version string, printing all comp_ time X * options that might affect the user. X*************** X*** 351,366 **** X #else X # define VISTR "" X #endif X- #ifdef TESLA X- # define DTRSTR ",dtr" X- #else X- # define DTRSTR "" X- #endif X- #ifdef KAI X- # define BYESTR ",bye" X- #else X- # define BYESTR "" X- #endif X #ifdef AUTOLOGOUT X # define ALSTR ",al" X #else X--- 84,89 ---- X*************** X*** 371,386 **** X #else X # define DIRSTR "" X #endif X- #ifdef KANJI X- # define KANSTR ",kan" X- #else X- # define KANSTR "" X- #endif X- #ifdef SYSMALLOC X # define SMSTR ",sm" X- #else X- # define SMSTR "" X- #endif X /* if you want your local version to say something */ X #ifndef LOCALSTR X # define LOCALSTR "" X--- 94,100 ---- X*************** X*** 387,396 **** X #endif /* LOCALSTR */ X X xsprintf(version, X! "tcsh %d.%.2d.%.2d (%s) %s options %s%s%s%s%s%s%s%s%s%s%s%s", X REV, VERS, PATCHLEVEL, ORIGIN, DATE, X! SSSTR, NLSSTR, LFSTR, DLSTR, VISTR, DTRSTR, X! BYESTR, ALSTR, DIRSTR, KANSTR, SMSTR, LOCALSTR); X set(STRversion, SAVE(version)); X xsprintf(version, "%d.%.2d.%.2d", REV, VERS, PATCHLEVEL); X set(STRtcsh, SAVE(version)); X--- 101,110 ---- X #endif /* LOCALSTR */ X X xsprintf(version, X! "tcsh %d.%.2d.%.2d (%s) %s options %s%s%s%s%s%s%s%s%s", X REV, VERS, PATCHLEVEL, ORIGIN, DATE, X! SSSTR, NLSSTR, LFSTR, DLSTR, VISTR, X! ALSTR, DIRSTR, SMSTR, LOCALSTR); X set(STRversion, SAVE(version)); X xsprintf(version, "%d.%.2d.%.2d", REV, VERS, PATCHLEVEL); X set(STRtcsh, SAVE(version)); X*** ./usr/src/bin/tcsh/sh.func.c.old Tue Jan 7 20:23:56 2020 X--- ./usr/src/bin/tcsh/sh.func.c Mon Sep 21 20:16:35 2026 X*************** X*** 36,42 **** X #include "config.h" X X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)sh.func.c 3.2 (2.11BSD) 2020/1/7"; X #endif X X #include "sh.h" X--- 36,42 ---- X #include "config.h" X X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)sh.func.c 3.3 (2.11BSD) 2026/6/1"; X #endif X X #include "sh.h" X*************** X*** 151,184 **** X gointr = 0; X xfree((ptr_t) cp); X if (vv == 0) { X- #ifdef BSDSIGS X if (setintr) X (void) sigblock(sigmask(SIGINT)); X else X (void) signal(SIGINT, SIG_DFL); X- #else X- if (setintr) X- (void) sighold(SIGINT); X- else X- (void) sigset(SIGINT, SIG_DFL); X- #endif X gointr = 0; X } X else if (eq((vv = strip(vv)), STRminus)) { X- #ifdef BSDSIGS X (void) signal(SIGINT, SIG_IGN); X- #else X- (void) sigset(SIGINT, SIG_IGN); X- #endif X gointr = Strsave(STRminus); X } X else { X gointr = Strsave(vv); X- #ifdef BSDSIGS X (void) signal(SIGINT, pintr); X- #else X- (void) sigset(SIGINT, pintr); X- #endif X } X } X X--- 151,169 ---- X*************** X*** 260,281 **** X xexit(1); X } X X- X- #ifdef NEWGRP X- void X- donewgrp(v) X- Char **v; X- { X- if (chkstop == 0 && setintr) X- panystop(0); X- (void) signal(SIGTERM, parterm); X- (void) execl(_PATH_BIN_NEWGRP, "newgrp", short2str(v[1]), NULL); X- (void) execl(_PATH_USRBIN_NEWGRP, "newgrp", short2str(v[1]), NULL); X- untty(); X- xexit(1); X- } X- #endif X- X static void X islogin() X { X--- 245,250 ---- X*************** X*** 508,525 **** X { X whyles->w_end = -1; X if (setintr) X- #ifdef BSDSIGS X (void) sigsetmask(sigblock((sigmask_t) 0) & ~sigmask(SIGINT)); X- #else X- (void) sigrelse(SIGINT); X- #endif X search(T_BREAK, 0, NOSTR); /* read the expression in */ X if (setintr) X- #ifdef BSDSIGS X (void) sigblock(sigmask(SIGINT)); X- #else X- (void) sighold(SIGINT); X- #endif X whyles->w_end = btell(); X } X X--- 477,486 ---- X*************** X*** 568,603 **** X { X register int i; X X- #ifdef BSDSIGS X sigmask_t omask = 0; X X- #endif X- X i = getn(v[1]); X if (setintr) X- #ifdef BSDSIGS X omask = sigblock(sigmask(SIGINT)) & ~sigmask(SIGINT); X- #else X- (void) sighold(SIGINT); X- #endif X lshift(v, 2); X while (i > 0) { X if (setintr) X- #ifdef BSDSIGS X (void) sigsetmask(omask); X- #else X- (void) sigrelse(SIGINT); X- #endif X reexecute(kp); X --i; X } X donefds(); X if (setintr) X- #ifdef BSDSIGS X (void) sigsetmask(omask); X- #else X- (void) sigrelse(SIGINT); X- #endif X } X X void X--- 529,549 ---- X*************** X*** 911,921 **** X int nonl = 0; X X if (setintr) X- #ifdef BSDSIGS X (void) sigsetmask(sigblock((sigmask_t) 0) & ~sigmask(SIGINT)); X- #else X- (void) sigrelse(SIGINT); X- #endif X v++; X if (*v == 0) X return; X--- 857,863 ---- X*************** X*** 934,1008 **** X while (cp = *v++) { X register int c; X X! while (c = *cp++) { X! #if SVID > 0 X! #ifndef OREO X! if (c == '\\') { X! switch (c = *cp++) { X! case 'b': X! c = '\b'; X! break; X! case 'c': X! nonl = 1; X! goto done; X! case 'f': X! c = '\f'; X! break; X! case 'n': X! c = '\n'; X! break; X! case 'r': X! c = '\r'; X! break; X! case 't': X! c = '\t'; X! break; X! case 'v': X! c = '\v'; X! break; X! case '\\': X! c = '\\'; X! break; X! case '0': X! c = 0; X! if (*cp >= '0' && *cp < '8') X! c = c * 8 + *cp++ - '0'; X! if (*cp >= '0' && *cp < '8') X! c = c * 8 + *cp++ - '0'; X! if (*cp >= '0' && *cp < '8') X! c = c * 8 + *cp++ - '0'; X! break; X! case '\0': X! c = *--cp; X! break; X! default: X! xputchar('\\' | QUOTE); X! break; X! } X! } X! #endif /* OREO */ X! #endif /* SVID > 0 */ X xputchar(c | QUOTE); X- X- } X if (*v) X xputchar(sep | QUOTE); X } X! #if SVID > 0 X! #ifndef OREO X! done: X! #endif /* OREO */ X! #endif /* SVID > 0 */ X if (sep && nonl == 0) X xputchar('\n'); X else X flush(); X if (setintr) X- #ifdef BSDSIGS X (void) sigblock(sigmask(SIGINT)); X- #else X- (void) sighold(SIGINT); X- #endif X if (gargv) X blkfree(gargv), gargv = 0; X } X--- 876,893 ---- X while (cp = *v++) { X register int c; X X! while (c = *cp++) X xputchar(c | QUOTE); X if (*v) X xputchar(sep | QUOTE); X } X! X if (sep && nonl == 0) X xputchar('\n'); X else X flush(); X if (setintr) X (void) sigblock(sigmask(SIGINT)); X if (gargv) X blkfree(gargv), gargv = 0; X } X*************** X*** 1021,1031 **** X register Char **ep; X X if (setintr) X- #ifdef BSDSIGS X (void) sigsetmask(sigblock((sigmask_t) 0) & ~sigmask(SIGINT)); X- #else X- (void) sigrelse(SIGINT); X- #endif X for (ep = STR_environ; *ep; ep++) X xprintf("%s\n", short2str(*ep)); X return; X--- 906,912 ---- X*************** X*** 1037,1046 **** X importpath(lp); X dohash(); X } X- #ifdef apollo X- else if (eq(vp, STRSYSTYPE)) X- dohash(); X- #endif /* apollo */ X else if (eq(vp, STRLANG) || eq(vp, STRLC_CTYPE)) { X #ifdef NLS X int k; X--- 918,923 ---- X*************** X*** 1100,1109 **** X maxi = 1; X if (eq(name, STRNOREBIND)) X NoNLSRebind = 0; X- #ifdef apollo X- else if (eq(name, STRSYSTYPE)) X- dohash(); X- #endif /* apollo */ X else if (eq(name, STRLANG) || eq(name, STRLC_CTYPE)) { X #ifdef NLS X int k; X--- 977,982 ---- X*************** X*** 1134,1141 **** X Setenv(name, val) X Char *name, *val; X { X- #ifdef SETENV_IN_LIB X- #undef setenv X char nameBuf[BUFSIZ]; X char *cname = short2str(name); X X--- 1007,1012 ---- X*************** X*** 1143,1177 **** X return; X (void) strcpy(nameBuf, cname); X setenv(nameBuf, short2str(val), 1); X- #else X- register Char **ep = STR_environ; X- register Char *cp, *dp; X- Char *blk[2]; X- Char **oep = ep; X- X- X- for (; *ep; ep++) { X- for (cp = name, dp = *ep; *cp && *cp == *dp; cp++, dp++) X- continue; X- if (*cp != 0 || *dp != '=') X- continue; X- cp = Strspl(STRequal, val); X- xfree((ptr_t) * ep); X- *ep = strip(Strspl(name, cp)); X- xfree((ptr_t) cp); X- blkfree((Char **) environ); X- environ = short2blk(STR_environ); X- return; X- } X- cp = Strspl(name, STRequal); X- blk[0] = strip(Strspl(cp, val)); X- xfree((ptr_t) cp); X- blk[1] = 0; X- STR_environ = blkspl(STR_environ, blk); X- blkfree((Char **) environ); X- environ = short2blk(STR_environ); X- xfree((ptr_t) oep); X- #endif /* SETENV_IN_LIB */ X } X X static void X--- 1014,1019 ---- X*************** X*** 1219,1245 **** X (void) umask(i); X } X X- #ifndef BSDTIMES X typedef long RLIM_TYPE; X X- #ifndef RLIM_INFINITY X- extern RLIM_TYPE ulimit(); X- X- #define RLIM_INFINITY 0x003fffff X- #define RLIMIT_FSIZE 1 X- #endif /* RLIM_INFINITY */ X- #ifdef aiws X- #define toset(a) (((a) == 3) ? 1004 : (a) + 1) X- #define RLIMIT_STACK 1005 X- #else /* aiws */ X- #define toset(a) ((a) + 1) X- #endif /* aiws */ X- #else /* BSDTIMES */ X- typedef int RLIM_TYPE; X- X- #endif /* BSDTIMES */ X- X- X static struct limits { X int limconst; X char *limname; X--- 1061,1068 ---- X*************** X*** 1300,1323 **** X static void plim(); X static int setlim(); X X- #if defined(convex) || defined(__convex__) X- static RLIM_TYPE X- restrict_limit(value) X- double value; X- { X- /* X- * is f too large to cope with? return the maximum or minimum int X- */ X- if (value > (double) INT_MAX) X- return (INT_MAX); X- else if (value < (double) INT_MIN) X- return (INT_MIN); X- else X- return ((int) value); X- } X- #endif /* convex */ X- X- X static struct limits * X findlim(cp) X Char *cp; X--- 1123,1128 ---- X*************** X*** 1371,1379 **** X register struct limits *lp; X Char **v; X { X- #if defined(convex) || defined(__convex__) X- RLIM_TYPE restrict_limit(); X- #endif /* convex */ X X register float f; X double atof(); X--- 1176,1181 ---- X*************** X*** 1381,1405 **** X X f = atof(short2str(cp)); X X- #if defined(convex)||defined(__convex__) X- /* X- * is f too large to cope with. limit f to minint, maxint - X-6768 by X- * strike X- */ X- if ((f < (double) INT_MIN) || (f > (double) INT_MAX)) { X- stderror(ERR_NAME | ERR_TOOLARGE); X- } X- #endif /* convex */ X- X while (Isdigit(*cp) || *cp == '.' || *cp == 'e' || *cp == 'E') X cp++; X if (*cp == 0) { X if (*v == 0) X- #if defined(convex) || defined(__convex__) X- return ((RLIM_TYPE) restrict_limit((f + 0.5) * lp->limdiv)); X- #else /* convex */ X return ((RLIM_TYPE) ((f + 0.5) * lp->limdiv)); X- #endif /* convex */ X cp = *v; X } X switch (*cp) { X--- 1183,1193 ---- X*************** X*** 1407,1418 **** X case ':': X if (lp->limconst != RLIMIT_CPU) X goto badscal; X- #if defined(convex) || defined(__convex__) X- return ((RLIM_TYPE) X- restrict_limit((f * 60.0 + atof(short2str(cp + 1))))); X- #else /* convex */ X return ((RLIM_TYPE) (f * 60.0 + atof(short2str(cp + 1)))); X- #endif /* convex */ X case 'h': X if (lp->limconst != RLIMIT_CPU) X goto badscal; X--- 1195,1201 ---- X*************** X*** 1461,1471 **** X #endif /* RLIMIT_CPU */ X stderror(ERR_NAME | ERR_SCALEF); X } X- #if defined(convex) || defined(__convex__) X- return ((RLIM_TYPE) restrict_limit((f + 0.5))); X- #else X return ((RLIM_TYPE) (f + 0.5)); X- #endif X } X X static void X--- 1244,1250 ---- X*************** X*** 1486,1505 **** X register struct limits *lp; X Char hard; X { X- #ifdef BSDTIMES X struct rlimit rlim; X- X- #endif /* BSDTIMES */ X RLIM_TYPE limit; X X xprintf("%s \t", lp->limname); X X- #ifndef BSDTIMES X- limit = ulimit(lp->limconst, 0); X- #else /* BSDTIMES */ X (void) getrlimit(lp->limconst, &rlim); X limit = hard ? rlim.rlim_max : rlim.rlim_cur; X- #endif /* BSDTIMES */ X X if (limit == RLIM_INFINITY) X xprintf("unlimited"); X--- 1265,1277 ---- X*************** X*** 1508,1522 **** X psecs((long) limit); X #endif /* RLIMIT_CPU */ X else X- #ifndef BSDTIMES X- if (lp->limconst == RLIMIT_FSIZE) X- /* X- * Christos: filesize comes in 512 blocks. we divide by 2 to get 1024 X- * blocks. Note we cannot pre-multiply cause we might overflow (A/UX) X- */ X- xprintf("%ld %s", (long) (limit / 2), lp->limscale); X- else X- #endif /* BSDTIMES */ X xprintf("%ld %s", (long) (limit / lp->limdiv), lp->limscale); X xprintf("\n"); X } X--- 1280,1285 ---- X*************** X*** 1555,1561 **** X Char hard; X RLIM_TYPE limit; X { X- #ifdef BSDTIMES X struct rlimit rlim; X X (void) getrlimit(lp->limconst, &rlim); X--- 1318,1323 ---- X*************** X*** 1568,1578 **** X rlim.rlim_cur = limit; X X if (setrlimit(lp->limconst, &rlim) < 0) { X- #else /* BSDTIMES */ X- if (limit != RLIM_INFINITY && lp->limconst == RLIMIT_FSIZE) X- limit /= 512; X- if (ulimit(toset(lp->limconst), limit) < 0) { X- #endif /* BSDTIMES */ X xprintf("%s: %s: Can't %s%s limit\n", bname, lp->limname, X limit == RLIM_INFINITY ? "remove" : "set", X hard ? " hard" : ""); X--- 1330,1335 ---- X*************** X*** 1587,1610 **** X int ctpgrp; X sigmask_t omask; X X! sigret_t(*old) (); X X if (loginsh) X stderror(ERR_SUSPLOG); X untty(); X X- #ifdef BSDJOBS X old = signal(SIGTSTP, SIG_DFL); X- #ifndef pdp11 X- (void) kill(0, SIGTSTP); X- #else X (void) kill(0, SIGSTOP); /* jpn: TSTP doesn't do anything. why? */ X- #endif X /* the shell stops here */ X (void) signal(SIGTSTP, old); X- #else X- stderror(ERR_JOBCONTROL); X- #endif /* BSDJOBS */ X X #ifdef BSDJOBS X if (tpgrp != -1) { X--- 1344,1359 ---- X int ctpgrp; X sigmask_t omask; X X! sig_t old; X X if (loginsh) X stderror(ERR_SUSPLOG); X untty(); X X old = signal(SIGTSTP, SIG_DFL); X (void) kill(0, SIGSTOP); /* jpn: TSTP doesn't do anything. why? */ X /* the shell stops here */ X (void) signal(SIGTSTP, old); X X #ifdef BSDJOBS X if (tpgrp != -1) { X*** ./usr/src/bin/tcsh/tc.os.c.old Wed Aug 21 13:20:58 1991 X--- ./usr/src/bin/tcsh/tc.os.c Thu Jul 23 08:16:08 2026 X*************** X*** 1,4 **** X- /* $Header: /home/hyperion/mu/christos/src/sys/tcsh-6.00/RCS/tc.os.c,v 3.0 1991/07/05 00:05:11 christos Exp $ */ X /* X * tc.os.c: OS Dependent builtin functions X */ X--- 1,3 ---- X*************** X*** 35,640 **** X * SUCH DAMAGE. X */ X #include "config.h" X! #if !defined(lint) && !defined(pdp11) X static char *rcsid() X! { return "$Id: tc.os.c,v 3.0 1991/07/05 00:05:11 christos Exp $"; } X #endif X X #include "sh.h" X #include "ed.h" X- #include "ed.defns.h" /* for the function names */ X X- #ifdef titan X- int end; X- #endif /* titan */ X- X- /*** X- *** MACH X- ***/ X- X- #ifdef MACH X- /* dosetpath -- setpath built-in command X- * X- ********************************************************************** X- * HISTORY X- * 08-May-88 Richard Draves (rpd) at Carnegie-Mellon University X- * Major changes to remove artificial limits on sizes and numbers X- * of paths. X- * X- ********************************************************************** X- */ X- X- #ifdef MACH X- static Char STRCPATH[] = {'C', 'P', 'A', 'T', 'H', '\0'}; X- static Char STRLPATH[] = {'L', 'P', 'A', 'T', 'H', '\0'}; X- static Char STRMPATH[] = {'M', 'P', 'A', 'T', 'H', '\0'}; X- static Char STREPATH[] = {'E', 'P', 'A', 'T', 'H', '\0'}; X- #endif /* MACH */ X- X- static Char *syspaths[] = {STRPATH, STRCPATH, STRLPATH, STRMPATH, STREPATH, 0}; X- #define LOCALSYSPATH "/usr/cs" X- X- void X- dosetpath(arglist) X- Char **arglist; X- { X- extern char *getenv(); X- X- Char **pathvars, **cmdargs; X- Char **paths; X- char **spaths, **cpaths, **cmds; X- char *tcp; X- unsigned int npaths, ncmds; X- int i, sysflag; X- X- for (i = 1; arglist[i] && (arglist[i][0] != '-'); i++); X- npaths = i - 1; X- X- cmdargs = &arglist[i]; X- for (; arglist[i]; i++); X- ncmds = i - npaths - 1; X- X- if (npaths) { X- sysflag = 0; X- pathvars = &arglist[1]; X- } X- else { X- sysflag = 1; X- npaths = (sizeof syspaths / sizeof *syspaths) - 1; X- pathvars = syspaths; X- } X- X- /* note that npaths != 0 */ X- X- spaths = (char **) xmalloc(npaths * sizeof *spaths); X- setzero((char *) spaths, npaths * sizeof *spaths); X- paths = (Char **) xmalloc((npaths + 1) * sizeof *paths); X- setzero((char *) paths, (npaths + 1) * sizeof *paths); X- cpaths = (char **) xmalloc((npaths + 1) * sizeof *cpaths); X- setzero((char *) cpaths, (npaths + 1) * sizeof *cpaths); X- cmds = (char **) xmalloc((ncmds + 1) * sizeof *cmds); X- setzero((char *) cmds, (ncmds + 1) * sizeof *cmds); X- for (i = 0; i < npaths; i++) { X- char *val = getenv(short2str(pathvars[i])); X- X- if (val == NULL) X- val = ""; X- X- spaths[i] = xmalloc((Strlen(pathvars[i]) + strlen(val) X- + 2) * sizeof **spaths); X- (void) strcpy(spaths[i], short2str(pathvars[i])); X- (void) strcat(spaths[i], "="); X- (void) strcat(spaths[i], val); X- cpaths[i] = spaths[i]; X- } X- X- for (i = 0; i < ncmds; i++) { X- Char *val = globone(cmdargs[i], G_ERROR); X- X- if (val == NOSTR) X- goto abortpath; X- cmds[i] = xmalloc(Strlen(val) + 1); X- (void) strcpy(cmds[i], short2str(val)); X- } X- X- if (setpath(cpaths, cmds, LOCALSYSPATH, sysflag, 1) < 0) { X- abortpath: X- if (spaths) { X- for (i = 0; i < npaths; i++) X- if (spaths[i]) X- xfree((ptr_t) spaths[i]); X- xfree((ptr_t) spaths); X- } X- if (paths) { X- for (i = 0; i < npaths; i++) X- if (paths[i]) X- xfree((ptr_t) paths[i]); X- xfree((ptr_t) paths); X- } X- if (cpaths) X- xfree((ptr_t) cpaths); X- if (cmds) { X- for (i = 0; i < ncmds; i++) X- if (cmds[i]) X- xfree((ptr_t) cmds[i]); X- xfree((ptr_t) cmds); X- } X- X- for (i = 0; i < npaths; i++) { X- paths[i] = SAVE(cpaths[i]); X- xfree((ptr_t) cpaths[i]); X- } X- return; X- } X- X- for (i = 0; i < npaths; i++) { X- Char *val; X- X- for (val = paths[i]; val && *val && *val != '='; val++); X- if (val && *val == '=') { X- *val++ = '\0'; X- setenv(paths[i], val); X- if (Strcmp(paths[i], STRPATH) == 0) { X- importpath(val); X- if (havhash) X- dohash(); X- } X- *--val = '='; X- } X- } X- } X- #endif /* MACH */ X- X- /*** X- *** AIX X- ***/ X- #ifdef TCF X- /* VARARGS *//* ARGSUSED */ X- void X- dogetxvers(v) X- Char **v; X- { X- char xvers[MAXPATHLEN]; X- X- if (getxvers(xvers, MAXPATHLEN) == -1) X- stderror(ERR_SYSTEM, "getxvers", strerror(errno)); X- xprintf("%s\n", xvers); X- flush(); X- } X- X- void X- dosetxvers(v) X- Char **v; X- { X- char *xvers; X- X- ++v; X- if (!*v || *v[0] == '\0') X- xvers = ""; X- else X- xvers = short2str(*v); X- if (setxvers(xvers) == -1) X- stderror(ERR_SYSTEM, "setxvers", strerror(errno)); X- } X- X- #include X- #ifdef _AIXPS2 X- # define XC_PDP11 0x01 X- # define XC_23 0x02 X- # define XC_Z8K 0x03 X- # define XC_8086 0x04 X- # define XC_68K 0x05 X- # define XC_Z80 0x06 X- # define XC_VAX 0x07 X- # define XC_16032 0x08 X- # define XC_286 0x09 X- # define XC_386 0x0a X- # define XC_S370 0x0b X- #else X- # include X- #endif /* _AIXPS2 */ X- X- static struct xc_cpu_t { X- short xc_id; X- char *xc_name; X- } xcpu[] = X- { X- { XC_PDP11, "pdp11" }, X- { XC_23, "i370" }, X- { XC_Z8K, "z8000" }, X- { XC_8086, "i86" }, X- { XC_68K, "mc68000" }, X- { XC_Z80, "x80" }, X- { XC_VAX, "vax" }, X- { XC_16032, "ns16032" }, X- { XC_286, "i286" }, X- { XC_386, "i386" }, X- { XC_S370, "xa370" }, X- { 0, NULL } X- }; X- X- /* X- * our local hack table, stolen from x.out.h X- */ X- static char * X- getxcode(xcid) X- short xcid; X- { X- int i; X- X- for (i = 0; xcpu[i].xc_name != NULL; i++) X- if (xcpu[i].xc_id == xcid) X- return (xcpu[i].xc_name); X- return (NULL); X- } X- X- static short X- getxid(xcname) X- char *xcname; X- { X- int i; X- X- for (i = 0; xcpu[i].xc_name != NULL; i++) X- if (strcmp(xcpu[i].xc_name, xcname) == 0) X- return (xcpu[i].xc_id); X- return ((short) -1); X- } X- X- X- void X- dogetspath(v) X- Char **v; X- { X- int i, j; X- sitepath_t p[MAXSITE]; X- struct sf *st; X- static char *local = "LOCAL "; X- X- if ((j = getspath(p, MAXSITE)) == -1) X- stderror(ERR_SYSTEM, "getspath", strerror(errno)); X- for (i = 0; i < j && (p[i] & SPATH_CPU) != NOSITE; i++) { X- if (p[i] & SPATH_CPU) { X- if ((p[i] & SPATH_MASK) == NULLSITE) X- xprintf(local); X- else if ((st = sfxcode((short) (p[i] & SPATH_MASK))) != NULL) X- xprintf("%s ", st->sf_ctype); X- else { X- char *xc = getxcode(p[i] & SPATH_MASK); X- X- if (xc != NULL) X- xprintf("%s ", xc); X- else X- xprintf("*cpu %d* ", (int) (p[i] & SPATH_MASK)); X- /* X- * BUG in the aix code... needs that cause if X- * sfxcode fails once it fails for ever X- */ X- endsf(); X- } X- } X- else { X- if (p[i] == NULLSITE) X- xprintf(local); X- else if ((st = sfnum(p[i])) != NULL) X- xprintf("%s ", st->sf_sname); X- else X- xprintf("*site %d* ", (int) (p[i] & SPATH_MASK)); X- } X- } X- xprintf("\n"); X- flush(); X- } X- X- void X- dosetspath(v) X- Char **v; X- { X- int i; X- short j; X- char *s; X- sitepath_t p[MAXSITE]; X- struct sf *st; X- X- for (i = 0, v++; *v && *v[0] != '\0'; v++, i++) { X- s = short2str(*v); X- if (Isdigit(*s)) X- p[i] = atoi(s); X- else if (strcmp(s, "LOCAL") == 0) X- p[i] = NULLSITE; X- else if ((st = sfctype(s)) != NULL) X- p[i] = SPATH_CPU | st->sf_ccode; X- else if ((j = getxid(s)) != -1) X- p[i] = SPATH_CPU | j; X- else if ((st = sfname(s)) != NULL) X- p[i] = st->sf_id; X- else { X- setname(s); X- stderror(ERR_NAME | ERR_STRING, "Bad cpu/site name"); X- } X- if (i == MAXSITE - 1) X- stderror(ERR_NAME | ERR_STRING, "Site path too long"); X- } X- if (setspath(p, i) == -1) X- stderror(ERR_SYSTEM, "setspath", strerror(errno)); X- } X- X- /* sitename(): X- * Return the site name where the process is running X- */ X- char * X- sitename(pid) X- pid_t pid; X- { X- siteno_t ss; X- struct sf *st; X- X- if ((ss = site(pid)) == -1 || (st = sfnum(ss)) == NULL) X- return ("unknown"); X- else X- return (st->sf_sname); X- } X- X- static int X- migratepid(pid, new_site) X- pid_t pid; X- siteno_t new_site; X- { X- struct sf *st; X- int need_local; X- X- need_local = (pid == 0) || (pid == getpid()); X- X- if (kill3((pid_t) pid, SIGMIGRATE, new_site) < 0) { X- xprintf("%d: %s\n", pid, strerror(errno)); X- return (-1); X- } X- X- if (need_local) { X- if ((new_site = site(0)) == -1) { X- xprintf("site: %s\n", strerror(errno)); X- return (-1); X- } X- if ((st = sfnum(new_site)) == NULL) { X- xprintf("%d: Site not found\n", new_site); X- return (-1); X- } X- if (setlocal(st->sf_local, strlen(st->sf_local)) == -1) { X- xprintf("setlocal: %s: %s\n", st->sf_local, strerror(errno)); X- return (-1); X- } X- } X- return (0); X- } X- X- void X- domigrate(v) X- Char **v; X- { X- struct sf *st; X- char *s; X- Char *cp; X- struct process *pp; X- int pid, err1 = 0; X- siteno_t new_site = 0; X- sigmask_t omask; X- X- #ifdef BSDSIGS X- omask = sigmask(SIGCHLD); X- if (setintr) X- omask |= sigmask(SIGINT); X- omask = sigblock(omask) & ~omask; X- #else X- if (setintr) X- (void) sighold(SIGINT); X- (void) sighold(SIGCHLD); X- #endif /* BSDSIGS */ X- X- ++v; X- if (*v[0] == '-') { X- /* X- * Do the -site. X- */ X- s = short2str(&v[0][1]); X- if ((st = sfname(s)) == NULL) { X- setname(s); X- stderror(ERR_NAME | ERR_STRING, "Site not found"); X- } X- new_site = st->sf_id; X- ++v; X- } X- X- if (!*v || *v[0] == '\0') { X- if (migratepid(0, new_site) == -1) X- err1++; X- } X- else { X- gflag = 0, tglob(v); X- if (gflag) { X- v = globall(v); X- if (v == 0) X- stderror(ERR_NAME | ERR_NOMATCH); X- } X- else { X- v = gargv = saveblk(v); X- trim(v); X- } X- X- while (v && (cp = *v)) { X- if (*cp == '%') { X- pp = pfind(cp); X- if (kill3((pid_t) - pp->p_jobid, SIGMIGRATE, new_site) < 0) { X- xprintf("%s: %s\n", short2str(cp), strerror(errno)); X- err1++; X- } X- } X- else if (!(Isdigit(*cp) || *cp == '-')) X- stderror(ERR_NAME | ERR_JOBARGS); X- else { X- pid = atoi(short2str(cp)); X- if (migratepid(pid, new_site) == -1) X- err1++; X- } X- v++; X- } X- if (gargv) X- blkfree(gargv), gargv = 0; X- } X- X- done: X- #ifdef BSDSIGS X- (void) sigsetmask(omask); X- #else X- (void) sigrelse(SIGCHLD); X- if (setintr) X- (void) sigrelse(SIGINT); X- #endif /* BSDSIGS */ X- if (err1) X- stderror(ERR_SILENT); X- } X- X- #endif /* TCF */ X- X- /*** X- *** CONVEX Warps. X- ***/ X- X- #ifdef WARP X- /* X- * handle the funky warping of symlinks X- */ X- #include X- #include X- X- static jmp_buf sigsys_buf; X- X- static sigret_t X- catch_sigsys() X- { X- longjmp(sigsys_buf, 1); X- } X- X- X- void X- dowarp(v) X- Char **v; X- { X- int warp, oldwarp; X- struct warpent *we; X- void (*old_sigsys_handler) () = 0; X- char *newwarp; X- X- if (setjmp(sigsys_buf)) { X- signal(SIGSYS, old_sigsys_handler); X- stderror(ERR_NAME | ERR_STRING, X- "You're trapped in a universe you never made"); X- return; X- } X- old_sigsys_handler = signal(SIGSYS, catch_sigsys); X- X- warp = getwarp(); X- X- v++; X- if (*v == 0) { /* display warp value */ X- if (warp < 0) X- stderror(ERR_NAME | ERR_STRING, "Getwarp failed"); X- we = getwarpbyvalue(warp); X- if (we) X- printf("%s\n", we->w_name); X- else X- printf("%d\n", warp); X- } X- else { /* set warp value */ X- oldwarp = warp; X- newwarp = short2str(*v); X- if (Isdigit(*v[0])) X- warp = atoi(newwarp); X- else { X- we = getwarpbyname(newwarp); X- if (we) X- warp = we->w_value; X- else X- warp = -1; X- } X- if ((warp < 0) || (warp >= WARP_MAXLINK)) X- stderror(ERR_NAME | ERR_STRING, "Invalid warp"); X- if ((setwarp(warp) < 0) || (getwarp() != warp)) { X- (void) setwarp(oldwarp); X- stderror(ERR_NAME | ERR_STRING, "Setwarp failed"); X- } X- } X- signal(SIGSYS, old_sigsys_handler); X- return; X- } X- #endif /* WARP */ X- X- /*** X- *** Masscomp X- ***/ X- /* Added, DAS DEC-90. */ X- #ifdef masscomp X- void X- douniverse(v) X- register Char **v; X- { X- register Char *cp = v[1]; X- char ubuf[100]; X- X- if (cp == 0) { X- (void) getuniverse(ubuf); X- xprintf("%s\n", ubuf); X- } X- else if (*cp == '\0' || setuniverse(short2str(cp)) != 0) X- stderror(ERR_NAME | ERR_STRING, "Illegal universe"); X- } X- #endif /* masscomp */ X- X- X- #ifdef _SEQUENT_ X- /* X- * Compute the difference in process stats. X- */ X- void X- pr_stat_sub(p2, p1, pr) X- struct pro_stats *p2, *p1, *pr; X- { X- pr->ps_utime.tv_sec = p2->ps_utime.tv_sec - p1->ps_utime.tv_sec; X- pr->ps_utime.tv_usec = p2->ps_utime.tv_usec - p1->ps_utime.tv_usec; X- if (pr->ps_utime.tv_usec < 0) { X- pr->ps_utime.tv_sec -= 1; X- pr->ps_utime.tv_usec += 1000000; X- } X- pr->ps_stime.tv_sec = p2->ps_stime.tv_sec - p1->ps_stime.tv_sec; X- pr->ps_stime.tv_usec = p2->ps_stime.tv_usec - p1->ps_stime.tv_usec; X- if (pr->ps_stime.tv_usec < 0) { X- pr->ps_stime.tv_sec -= 1; X- pr->ps_stime.tv_usec += 1000000; X- } X- X- pr->ps_maxrss = p2->ps_maxrss - p1->ps_maxrss; X- pr->ps_pagein = p2->ps_pagein - p1->ps_pagein; X- pr->ps_reclaim = p2->ps_reclaim - p1->ps_reclaim; X- pr->ps_zerofill = p2->ps_zerofill - p1->ps_zerofill; X- pr->ps_pffincr = p2->ps_pffincr - p1->ps_pffincr; X- pr->ps_pffdecr = p2->ps_pffdecr - p1->ps_pffdecr; X- pr->ps_swap = p2->ps_swap - p1->ps_swap; X- pr->ps_syscall = p2->ps_syscall - p1->ps_syscall; X- pr->ps_volcsw = p2->ps_volcsw - p1->ps_volcsw; X- pr->ps_involcsw = p2->ps_involcsw - p1->ps_involcsw; X- pr->ps_signal = p2->ps_signal - p1->ps_signal; X- pr->ps_lread = p2->ps_lread - p1->ps_lread; X- pr->ps_lwrite = p2->ps_lwrite - p1->ps_lwrite; X- pr->ps_bread = p2->ps_bread - p1->ps_bread; X- pr->ps_bwrite = p2->ps_bwrite - p1->ps_bwrite; X- pr->ps_phread = p2->ps_phread - p1->ps_phread; X- pr->ps_phwrite = p2->ps_phwrite - p1->ps_phwrite; X- } X- X- #endif /* _SEQUENT_ */ X- X- X- #ifdef NEEDtcgetpgrp X int X! xtcgetpgrp(fd) X int fd; X { X int pgrp; X--- 34,49 ---- X * SUCH DAMAGE. X */ X #include "config.h" X! #if !defined(lint) && defined(DOSCCS) X static char *rcsid() X! { return "$Id: tc.os.c,v 3.1 2026/6/1 00:05:11 (2.11BSD) Exp $"; } X #endif X X #include "sh.h" X #include "ed.h" X X int X! tcgetpgrp(fd) X int fd; X { X int pgrp; X*************** X*** 644,1008 **** X return (-1); X return (pgrp); X } X- X- #endif /* tcgetpgrp */ X- X- X- #ifdef YPBUGS X- void X- fix_yp_bugs() X- { X- char *mydomain; X- X- /* X- * PWP: The previous version assumed that yp domain was the same as the X- * internet name domain. This isn't allways true. (Thanks to Mat Landau X- * for the original version of this.) X- */ X- if (yp_get_default_domain(&mydomain) == 0) { /* if we got a name */ X- extern void yp_unbind(); X- X- yp_unbind(mydomain); X- } X- } X- X- #endif /* YPBUGS */ X- X- X- void X- osinit() X- { X- extern ptr_t membot; X- X- membot = (char *) sbrk(0); X- X- #ifdef OREO X- set42sig(); X- sigignore(SIGIO); /* ignore SIGIO */ X- #endif /* OREO */ X- X- #ifdef aiws X- struct sigstack inst; X- X- inst.ss_sp = xmalloc(4192) + 4192; X- inst.ss_onstack = 0; X- sigstack(&inst, NULL); X- #endif /* aiws */ X- X- #ifdef hpux X- (void) sigspace(4192); X- #endif /* hpux */ X- #ifdef titan X- end = sbrk(0); X- #endif /* titan */ X- X- #ifdef apollo X- (void) isapad(); X- #endif X- } X- X- #ifdef NEEDgethostname X- #include X- X- int X- xgethostname(name, namlen) X- char *name; X- int namlen; X- { X- int i, retval; X- struct utsname uts; X- X- retval = uname(&uts); X- X- #ifdef DEBUG X- xprintf("sysname: %s\n", uts.sysname); X- xprintf("nodename: %s\n", uts.nodename); X- xprintf("release: %s\n", uts.release); X- xprintf("version: %s\n", uts.version); X- xprintf("machine: %s\n", uts.machine); X- #endif /* DEBUG */ X- i = strlen(uts.nodename) + 1; X- (void) strncpy(name, uts.nodename, i < namlen ? i : namlen); X- X- return retval; X- } /* end gethostname */ X- X- #endif /* gethostname */ X- X- X- #ifdef NEEDgetwd X- static char *strrcpy __P((char *, char *)); X- X- /* xgetwd(): X- * Return the pathname of the current directory, or return X- * an error message in pathname. X- */ X- char * X- xgetwd(pathname) X- char *pathname; X- { X- DIR *dp; X- struct dirent *d; X- X- struct stat st_root, st_cur, st_next, st_dot; X- char pathbuf[MAXPATHLEN], next_path_buf[MAXPATHLEN * 2]; X- char *cur_name_add; X- char *pathptr, *nextpathptr; X- X- /* find the inode of root */ X- if (stat("/", &st_root) == -1) { X- (void) xsprintf(pathname, X- "getwd: Cannot stat \"/\" (%s)", strerror(errno)); X- return (NULL); X- } X- pathbuf[MAXPATHLEN - 1] = '\0'; X- pathptr = &pathbuf[MAXPATHLEN - 1]; X- next_path_buf[MAXPATHLEN - 1] = '\0'; X- cur_name_add = nextpathptr = &next_path_buf[MAXPATHLEN - 1]; X- X- /* find the inode of the current directory */ X- if (lstat("./", &st_cur) == -1) { X- (void) xsprintf(pathname, X- "getwd: Cannot stat \".\" (%s)", strerror(errno)); X- return (NULL); X- } X- nextpathptr = strrcpy(nextpathptr, "../"); X- X- /* Descend to root */ X- for (;;) { X- X- /* look if we found root yet */ X- if (st_cur.st_ino == st_root.st_ino && X- st_cur.st_dev == st_root.st_dev) { X- if (*pathptr != '/') X- return ("/"); X- (void) strcpy(pathname, pathptr); X- return (pathname); X- } X- X- /* open the parent directory */ X- if ((dp = opendir(nextpathptr)) == NULL) { X- (void) xsprintf(pathname, X- "getwd: Cannot open directory \"%s\" (%s)", X- nextpathptr, strerror(errno)); X- return (NULL); X- } X- X- /* look in the parent for the entry with the same inode */ X- for (d = readdir(dp); d != NULL; d = readdir(dp)) { X- (void) strcpy(cur_name_add, d->d_name); X- if (lstat(nextpathptr, &st_next) == -1) { X- (void) xsprintf(pathname, "getwd: Cannot stat \"%s\" (%s)", X- d->d_name, strerror(errno)); X- return (NULL); X- } X- if (d->d_name[0] == '.' && d->d_name[1] == '\0') X- st_dot = st_next; X- X- /* check if we found it yet */ X- if (st_next.st_ino == st_cur.st_ino && X- st_next.st_dev == st_cur.st_dev) { X- st_cur = st_dot; X- pathptr = strrcpy(pathptr, d->d_name); X- pathptr = strrcpy(pathptr, "/"); X- nextpathptr = strrcpy(nextpathptr, "../"); X- *cur_name_add = '\0'; X- (void) closedir(dp); X- break; X- } X- } X- if (d == NULL) { X- (void) xsprintf(pathname, "getwd: Cannot find \".\" in \"..\""); X- return (NULL); X- } X- } X- } /* end getwd */ X- X- /* strrcpy(): X- * Like strcpy, going backwards and returning the new pointer X- */ X- static char * X- strrcpy(ptr, str) X- register char *ptr, *str; X- { X- register int len = strlen(str); X- X- while (len) X- *--ptr = str[--len]; X- X- return (ptr); X- } /* end strrcpy */ X- X- #endif /* getwd */ X- #ifdef iconuxv X- #include X- #include X- X- int X- vfork() X- { X- return sys_local(VEND_ICON_BSD, 66); X- } X- X- #endif /* iconuxv */ X- X- #ifdef apollo X- /*** X- *** Domain/OS X- ***/ X- #undef value /* XXX: Careful here */ X- #include X- #include X- #include X- X- X- static char * X- apperr(st) X- status_$t *st; X- { X- static char buf[BUFSIZ]; X- short e_subl, e_modl, e_codel; X- error_$string_t e_sub, e_mod, e_code; X- X- error_$get_text(*st, e_sub, &e_subl, e_mod, &e_modl, e_code, &e_codel); X- e_sub[e_subl] = '\0'; X- e_code[e_codel] = '\0'; X- e_mod[e_modl] = '\0'; X- (void) xsprintf(buf, "%s (%s/%s)", e_code, e_sub, e_mod); X- X- return(buf); X- } X- X- static int X- llib(s) X- Char *s; X- { X- short len = Strlen(s); X- status_$t st; X- char *t; X- X- loader_$inlib(t = short2str(s), len, &st); X- if (st.all != status_$ok) X- stderror(ERR_SYSTEM, t, apperr(&st)); X- } X- X- void X- doinlib(v) X- Char **v; X- { X- setname(short2str(*v++)); X- gflag = 0, tglob(v); X- if (gflag) { X- v = globall(v); X- if (v == 0) X- stderror(ERR_NAME | ERR_NOMATCH); X- } X- else { X- v = gargv = saveblk(v); X- trim(v); X- } X- X- while (v && *v) X- llib(*v++); X- if (gargv) X- blkfree(gargv), gargv = 0; X- } X- X- int X- getv(v) X- Char *v; X- { X- if (eq(v, STRbsd43)) X- return(1); X- else if (eq(v, STRsys53)) X- return(0); X- else X- stderror(ERR_NAME | ERR_SYSTEM, short2str(v), "Invalid system type"); X- /*NOTREACHED*/ X- return(0); X- } X- X- void X- dover(v) X- Char **v; X- { X- Char *p; X- X- setname(short2str(*v++)); X- if (!*v) { X- if (!(p = Getenv(STRSYSTYPE))) X- stderror(ERR_NAME | ERR_STRING, "System type is not set"); X- xprintf("%s\n", short2str(p)); X- } X- else { X- Setenv(STRSYSTYPE, getv(*v) ? STRbsd43 : STRsys53); X- dohash(); X- } X- } X- X- /* X- * Many thanks to rees@citi.umich.edu (Jim Rees) and X- * mathys@ssdt-tempe.sps.mot.com (Yves Mathys) X- * For figuring out how to do this... I could have never done X- * it without their help. X- */ X- typedef short enum { X- name_$wdir_type, X- name_$ndir_type, X- name_$node_dir_type, X- } name_$dir_type_t; X- X- void X- dorootnode(v) X- Char **v; X- { X- name_$dir_type_t dirtype = name_$node_dir_type; X- uid_$t uid; X- status_$t st; X- char *name; X- short namelen; X- X- setname(short2str(*v++)); X- X- name = short2str(*v); X- namelen = strlen(name); X- X- name_$resolve(name, &namelen, &uid, &st); X- if (st.all != status_$ok) X- stderror(ERR_SYSTEM, name, apperr(&st)); X- namelen = 0; X- name_$set_diru(&uid, "", &namelen, &dirtype, &st); X- if (st.all != status_$ok) X- stderror(ERR_SYSTEM, name, apperr(&st)); X- dohash(); X- } X- X- int X- isapad() X- { X- static int res = -1; X- static status_$t st; X- X- if (res == -1) { X- int strm; X- if (isatty(0)) X- strm = 0; X- if (isatty(1)) X- strm = 1; X- if (isatty(2)) X- strm = 2; X- else { X- res = 0; X- st.all = status_$ok; X- return(res); X- } X- res = stream_$isavt(&strm, &st); X- res = res ? 1 : 0; X- } X- else { X- if (st.all != status_$ok) X- stderror(ERR_SYSTEM, "stream_$isavt", apperr(&st)); X- } X- return(res); X- } X- #endif X--- 53,55 ---- X*** ./usr/src/bin/tcsh/Makefile.old Fri Jan 2 21:30:41 2026 X--- ./usr/src/bin/tcsh/Makefile Thu Aug 20 17:22:21 2026 X*************** X*** 1,4 **** X! # Makefile 4.6 (2.11BSD) 2025/11/25 X # X # C Shell with process control; VM/UNIX VAX Makefile X # Bill Joy UC Berkeley; Jim Kulp IIASA, Austria X--- 1,4 ---- X! # Makefile 4.7 (2.11BSD) 2026/6/1 X # X # C Shell with process control; VM/UNIX VAX Makefile X # Bill Joy UC Berkeley; Jim Kulp IIASA, Austria X*************** X*** 55,65 **** X X TCSRCS= tc.alloc.c tc.bind.c tc.const.c tc.decls.h tc.disc.c \ X tc.func.c tc.os.c tc.os.h tc.printf.c tc.prompt.c \ X! tc.sched.c tc.sig.c tc.sig.h tc.str.c sh.types.h tc.vers.c tc.wait.h \ X tc.who.c tc.h X TCOBJS= tc.alloc.o tc.bind.o tc.const.o tc.disc.o \ X tc.func.o tc.os.o tc.printf.o \ X! tc.prompt.o tc.sched.o tc.sig.o tc.str.o \ X tc.vers.o tc.who.o X X # STRINGS must be last, to keep in sync with mkstr and xstr ouput X--- 55,65 ---- X X TCSRCS= tc.alloc.c tc.bind.c tc.const.c tc.decls.h tc.disc.c \ X tc.func.c tc.os.c tc.os.h tc.printf.c tc.prompt.c \ X! tc.sched.c tc.sig.h tc.str.c sh.types.h tc.vers.c tc.wait.h \ X tc.who.c tc.h X TCOBJS= tc.alloc.o tc.bind.o tc.const.o tc.disc.o \ X tc.func.o tc.os.o tc.printf.o \ X! tc.prompt.o tc.sched.o tc.str.o \ X tc.vers.o tc.who.o X X # STRINGS must be last, to keep in sync with mkstr and xstr ouput X*************** X*** 100,106 **** X tc.os.o \ X tc.printf.o \ X tc.sched.o \ X- tc.sig.o \ X tc.str.o \ X tc.who.o \ X tc.vers.o \ X--- 100,105 ---- X*************** X*** 196,229 **** X cp sh.c sh.prof.c X ${CC} -c ${CFLAGS} -DPROF sh.prof.c X X- lint: tc.const.h ed.defns.h X- lint ${LFLAGS} sh*.c tw*.c ed*.c tc.*.c ${LIBES} X- X- print: X- @pr READ_ME X- @pr makefile makefile.* X- @(size -l a.out; size *.o) | pr -h SIZES X- @${CXREF} sh*.c | pr -h XREF X- @ls -l | pr X- @pr sh*.h [a-rt-z]*.h sh*.c alloc.c X- X # tcsh tcsh.${CATSECT} X install: all X -mv -f ${BINDIR}/tcsh ${BINDIR}/tcsh.old X install -s -m 755 -o root -g staff tcsh ${BINDIR}/tcsh X! install -c -m 644 -o root -g staff ${STRINGFILE} ${STRINGDIR} X! install -c -m 644 -o root -g staff tcsh.${CATSECT} ${DESTCAT} X X tcsh.${CATSECT}: tcsh.man X /usr/man/manroff tcsh.man > tcsh.${CATSECT} X X clean: X! ${RM} -f a.out strings x.c xs.c tcsh _MAKE_LOG core ./mkprstr X ${RM} -f *.o sh.prof.c ed.defns.h tc.const.h sh.err.h X ${RM} -f ${STRINGFILE} tcsh.${CATSECT} X- X- veryclean: clean X- ${RM} -f *~ #* X X tags: /tmp X ${CTAGS} sh*.c X--- 195,214 ---- X cp sh.c sh.prof.c X ${CC} -c ${CFLAGS} -DPROF sh.prof.c X X # tcsh tcsh.${CATSECT} X install: all X -mv -f ${BINDIR}/tcsh ${BINDIR}/tcsh.old X install -s -m 755 -o root -g staff tcsh ${BINDIR}/tcsh X! install -c -m 444 -o root -g staff ${STRINGFILE} ${STRINGDIR} X! install -c -m 444 -o root -g staff tcsh.${CATSECT} ${DESTCAT} X X tcsh.${CATSECT}: tcsh.man X /usr/man/manroff tcsh.man > tcsh.${CATSECT} X X clean: X! ${RM} -f a.out strings x.c xs.c tcsh ./mkprstr X ${RM} -f *.o sh.prof.c ed.defns.h tc.const.h sh.err.h X ${RM} -f ${STRINGFILE} tcsh.${CATSECT} X X tags: /tmp X ${CTAGS} sh*.c X*** ./usr/src/bin/tcsh/sh.file.c.old Fri Aug 30 11:39:04 1991 X--- ./usr/src/bin/tcsh/sh.file.c Mon Jun 1 16:08:36 2026 X*************** X*** 1,4 **** X- /* $Header: /home/hyperion/mu/christos/src/sys/tcsh-6.00/RCS/sh.file.c,v 3.0 1991/07/04 21:49:28 christos Exp $ */ X /* X * sh.file.c: File completion for csh. X */ X--- 1,3 ---- X*************** X*** 36,44 **** X */ X #ifdef FILEC X #include "config.h" X! #ifndef lint X static char *rcsid() X! { return "$Id: sh.file.c,v 3.0 1991/07/04 21:49:28 christos Exp $"; } X #endif X X #include "sh.h" X--- 35,43 ---- X */ X #ifdef FILEC X #include "config.h" X! #if !definec(lint) && defined(DOSCCS) X static char *rcsid() X! { return "$Id: sh.file.c,v 3.1 2026/6/1 21:49:28 (2.11BSD) Exp $"; } X #endif X X #include "sh.h" X*************** X*** 438,444 **** X int look_lognames; X { X register struct passwd *pw; X! register struct dirent *dirp; X X if (look_lognames) { X if ((pw = getpwent()) == NULL) X--- 437,443 ---- X int look_lognames; X { X register struct passwd *pw; X! register struct direct *dirp; X X if (look_lognames) { X if ((pw = getpwent()) == NULL) X*** ./usr/src/bin/tcsh/sh.proc.c.old Tue Aug 20 16:29:33 1991 X--- ./usr/src/bin/tcsh/sh.proc.c Mon Sep 21 23:10:59 2026 X*************** X*** 1,4 **** X- /* $Header: /home/hyperion/mu/christos/src/sys/tcsh-6.00/RCS/sh.proc.c,v 3.1 1991/07/05 02:00:43 christos Exp $ */ X /* X * sh.proc.c: Job manipulations X */ X--- 1,3 ---- X*************** X*** 35,105 **** X * SUCH DAMAGE. X */ X #include "config.h" X! #if !defined(lint) && !defined(pdp11) X static char *rcsid() X! { return "$Id: sh.proc.c,v 3.1 1991/07/05 02:00:43 christos Exp $"; } X #endif X X #include "sh.h" X #include "ed.h" X X! /* X! * a little complicated #include ! :-( X! */ X! #if SVID > 0 X! # ifdef hpux X! # ifndef __hpux X! # include "tc.wait.h" /* 6.5 broke */ X! # else X! # ifndef POSIX X! # define _BSD X! # endif X! # ifndef _CLASSIC_POSIX_TYPES X! # define _CLASSIC_POSIX_TYPES X! # endif X! # include /* 7.0 fixed it again */ X! # endif /* __hpux */ X! # else /* hpux */ X! # if defined(OREO) || defined(IRIS4D) || defined(POSIX) X! # include X! # else /* OREO || IRIS4D || POSIX */ X! # include "tc.wait.h" X! # endif /* OREO || IRIS4D || POSIX */ X! # endif /* hpux */ X! #else /* SVID == 0 */ X! # include X! #endif /* SVID == 0 */ X X #if !defined(NSIG) && defined(SIGMAX) X # define NSIG (SIGMAX+1) X #endif /* !NSIG && SIGMAX */ X X- #ifdef aiws X- # undef HZ X- # define HZ 16 X- #endif /* aiws */ X- X #ifndef HZ X # define HZ 100 /* for division into seconds */ X #endif X X #ifndef WTERMSIG X! # define WTERMSIG(w) (((union wait *) &(w))->w_termsig) X! # define BSDWAIT X #endif /* !WTERMSIG */ X! #ifndef WEXITSTATUS X! # define WEXITSTATUS(w) (((union wait *) &(w))->w_retcode) X! #endif /* !WEXITSTATUS */ X #ifndef WSTOPSIG X! # define WSTOPSIG(w) (((union wait *) &(w))->w_stopsig) X #endif /* WSTOPSIG */ X X #ifndef WCOREDUMP X! # ifdef BSDWAIT X! # define WCOREDUMP(w) (((union wait *) &(w))->w_coredump) X! # else /* !BSDWAIT */ X! # define WCOREDUMP(w) ((w) & 0200) X! # endif /* !BSDWAIT */ X #endif /* !WCOREDUMP */ X X /* X--- 34,68 ---- X * SUCH DAMAGE. X */ X #include "config.h" X! #if !defined(lint) && defined(DOSCCS) X static char *rcsid() X! { return "$Id: sh.proc.c,v 3.2 2026/6/1 02:00:43 (2.11BSD) Exp $"; } X #endif X X #include "sh.h" X #include "ed.h" X X! #include X X #if !defined(NSIG) && defined(SIGMAX) X # define NSIG (SIGMAX+1) X #endif /* !NSIG && SIGMAX */ X X #ifndef HZ X # define HZ 100 /* for division into seconds */ X #endif X X #ifndef WTERMSIG X! #define WTERMSIG(w) (((union wait *) &(w))->w_termsig) X! #define BSDWAIT X #endif /* !WTERMSIG */ X! X #ifndef WSTOPSIG X! #define WSTOPSIG(w) (((union wait *) &(w))->w_stopsig) X #endif /* WSTOPSIG */ X X #ifndef WCOREDUMP X! #define WCOREDUMP(w) (((union wait *) &(w))->w_coredump) X #endif /* !WCOREDUMP */ X X /* X*************** X*** 108,139 **** X X #define BIGINDEX 9 /* largest desirable job index */ X X- #ifdef BSDTIMES X- # if defined(sun) || defined(hp9000) X- static struct rusage zru = {{0L, 0L}, {0L, 0L}, 0L, 0L, 0L, 0L, X- 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L}; X- X- # else /* !sun && !hp9000 */ X- # ifdef masscomp X- /* X- * Initialization of this structure under RTU 4.1A & RTU 5.0 is problematic X- * because the first two elements are unions of a time_t and a struct timeval. X- * So we'll just have to trust the loader to do the "right thing", DAS DEC-90. X- */ X- static struct rusage zru; X- # else /* masscomp */ X static struct rusage zru = {{0L, 0L}, {0L, 0L}, 0, 0, 0, 0, 0, 0, 0, X 0, 0, 0, 0, 0, 0}; X- # endif /* masscomp */ X- # endif /* !sun && !hp9000 */ X- #else /* ! BSDTIMES */ X- # ifdef _SEQUENT_ X- static struct pro_stats zru = {{0L, 0L}, {0L, 0L}, 0, 0, 0, 0, 0, 0, 0, X- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; X- # else /* !_SEQUENT_ */ X- static struct tms zru = {0L, 0L, 0L, 0L}, lru = {0L, 0L, 0L, 0L}; X- # endif /* !_SEQUENT_ */ X- #endif /* !BSDTIMES */ X X #ifndef RUSAGE_CHILDREN X # define RUSAGE_CHILDREN -1 X--- 71,78 ---- X*************** X*** 157,194 **** X * childs status. Top level routines (like pwait) must be sure X * to mask interrupts when playing with the proclist data structures! X */ X! sigret_t X /*ARGSUSED*/ X! pchild(snum) X! int snum; X { X register struct process *pp; X register struct process *fp; X register int pid; X extern int insource; X- #ifdef BSDWAIT X union wait w; X- #else /* !BSDWAIT */ X- int w; X- #endif /* !BSDWAIT */ X int jobflags; X- #ifdef BSDTIMES X struct rusage ru; X- #else /* !BSDTIMES */ X- # ifdef _SEQUENT_ X- struct pro_stats ru; X- struct pro_stats cpst1, cpst2; X- tmval_t tv; X- # else /* !_SEQUENT_ */ X- struct tms proctimes; X X- if (!timesdone) { X- timesdone++; X- (void) times(&shtimes); X- } X- # endif /* _SEQUENT_ */ X- #endif /* BSDTIMES */ X- X #ifdef JOBDEBUG X xprintf("pchild()\n"); X #endif /* JOBDEBUG */ X--- 96,113 ---- X * childs status. Top level routines (like pwait) must be sure X * to mask interrupts when playing with the proclist data structures! X */ X! void X /*ARGSUSED*/ X! pchild(int snum) X { X register struct process *pp; X register struct process *fp; X register int pid; X extern int insource; X union wait w; X int jobflags; X struct rusage ru; X X #ifdef JOBDEBUG X xprintf("pchild()\n"); X #endif /* JOBDEBUG */ X*************** X*** 215,270 **** X xprintf("Waiting...\n"); X flush(); X #endif X! #ifdef BSDJOBS X! # ifdef BSDTIMES X /* both a wait3 and rusage */ X- # ifndef BSDWAIT X- pid = wait3(&w, X- (setintr && (intty || insource) ? WNOHANG | WUNTRACED : WNOHANG), &ru); X- # else /* BSDWAIT */ X pid = wait3(&w.w_status, X (setintr && (intty || insource) ? WNOHANG | WUNTRACED : WNOHANG), &ru); X- # endif /* BSDWAIT */ X- # else /* !BSDTIMES */ X- # ifdef _SEQUENT_ X- (void) get_pro_stats(&tv, PS_SELF, 0, &cpst1); X- pid = waitpid(-1, &w, X- (setintr && (intty || insource) ? WNOHANG | WUNTRACED : WNOHANG)); X- (void) get_pro_stats(&tv, PS_SELF, 0, &cpst2); X- pr_stat_sub(&cpst2, &cpst1, &ru); X- # else /* !_SEQUENT_ */ X- # ifndef POSIX X- /* we have a wait3, but no rusage stuff */ X- pid = wait3(&w.w_status, X- (setintr && (intty || insource) ? WNOHANG | WUNTRACED : WNOHANG), 0); X- # else /* POSIX */ X- pid = waitpid(-1, &w, X- (setintr && (intty || insource) ? WNOHANG | WUNTRACED : WNOHANG)); X- # endif /* POSIX */ X- # endif /* !_SEQUENT_ */ X- # endif /* !BSDTIMES */ X- #else /* !BSDJOBS */ X- # ifdef BSDTIMES X- /* both a wait3 and rusage */ X- # ifdef hpux X- pid = wait3(&w.w_status, WNOHANG, 0); X- # else /* !hpux */ X- pid = wait3(&w.w_status, WNOHANG, &ru); X- # endif /* !hpux */ X- # else /* !BSDTIMES */ X- # if SVID < 3 X- /* no wait3, therefore no rusage */ X- /* on Sys V, this may hang. I hope it's not going to be a problem */ X- pid = ourwait(&w.w_status); X- # else /* SVID >= 3 */ X- /* X- * XXX: for greater than 3 we should use waitpid(). X- * but then again, SVR4 falls into the POSIX/BSDJOBS category. X- */ X- pid = wait(&w.w_status); X- # endif /* SVID >= 3 */ X- # endif /* BSDTIMES */ X- #endif /* BSDJOBS */ X X #ifdef JOBDEBUG X { X--- 134,143 ---- X xprintf("Waiting...\n"); X flush(); X #endif X! X /* both a wait3 and rusage */ X pid = wait3(&w.w_status, X (setintr && (intty || insource) ? WNOHANG | WUNTRACED : WNOHANG), &ru); X X #ifdef JOBDEBUG X { X*************** X*** 285,306 **** X goto loop; X } X pnoprocesses = pid == -1; X- #ifndef SIGVOID X- return (0); X- #else /* !SIGVOID */ X return; X- #endif /* SIGVOID */ X } X for (pp = proclist.p_next; pp != PNULL; pp = pp->p_next) X if (pid == pp->p_pid) X goto found; X- #ifndef BSDJOBS X- /* this should never have happened */ X- stderror(ERR_SYNC, pid); X- xexit(0); X- #else /* BSDJOBS */ X goto loop; X- #endif /* BSDJOBS */ X found: X if (pid == atoi(short2str(value(STRchild)))) X unsetv(STRchild); X--- 158,169 ---- X*************** X*** 311,335 **** X } X else { X if (pp->p_flags & (PTIME | PPTIME) || adrof(STRtime)) X- #ifndef BSDTIMES X- # ifdef _SEQUENT_ X- (void) get_pro_stats(&pp->p_etime, PS_SELF, NULL, NULL); X- # else /* !_SEQUENT_ */ X- pp->p_etime = times(&proctimes); X- # endif /* !_SEQUENT_ */ X- #else /* BSDTIMES */ X (void) gettimeofday(&pp->p_etime, NULL); X- #endif /* BSDTIMES */ X X- X- #if defined(BSDTIMES) || defined(_SEQUENT_) X pp->p_rusage = ru; X- #else /* !BSDTIMES && !_SEQUENT_ */ X- (void) times(&proctimes); X- pp->p_utime = proctimes.tms_cutime - shtimes.tms_cutime; X- pp->p_stime = proctimes.tms_cstime - shtimes.tms_cstime; X- shtimes = proctimes; X- #endif /* !BSDTIMES && !_SEQUENT_ */ X if (WIFSIGNALED(w)) { X if (WTERMSIG(w) == SIGINT) X pp->p_flags |= PINTERRUPTED; X--- 174,182 ---- X*************** X*** 352,370 **** X do { X if ((fp->p_flags & (PPTIME | PRUNNING | PSTOPPED)) == 0 && X !child && adrof(STRtime) && X- #ifdef BSDTIMES X fp->p_rusage.ru_utime.tv_sec + fp->p_rusage.ru_stime.tv_sec X- #else /* !BSDTIMES */ X- # ifdef _SEQUENT_ X- fp->p_rusage.ps_utime.tv_sec + fp->p_rusage.ps_stime.tv_sec X- # else /* !_SEQUENT_ */ X- # ifndef POSIX X- (fp->p_utime + fp->p_stime) / HZ X- # else /* POSIX */ X- (fp->p_utime + fp->p_stime) / CLK_TCK X- # endif /* POSIX */ X- # endif /* !_SEQUENT_ */ X- #endif /* !BSDTIMES */ X >= atoi(short2str(value(STRtime)))) X fp->p_flags |= PTIME; X jobflags |= fp->p_flags; X--- 199,205 ---- X*************** X*** 391,399 **** X pclrcurr(fp); X if (jobflags & PFOREGND) { X if (jobflags & (PSIGNALED | PSTOPPED | PPTIME) || X- #ifdef IIASA X- jobflags & PAEXITED || X- #endif /* IIASA */ X !eq(dcwd->di_name, fp->p_cwd->di_name)) { X ; /* print in pjwait */ X } X--- 226,231 ---- X*************** X*** 404,413 **** X #else /* !SHORT_STRINGS */ X xprintf("\215\n"); /* \215 is a quoted ^M */ X #endif /* !SHORT_STRINGS */ X- #ifdef notdef X- else if ((jobflags & (PTIME|PSTOPPED)) == PTIME) X- ptprint(fp); X- #endif X } X else { X if (jobflags & PNOTIFY || adrof(STRnotify)) { X--- 236,241 ---- X*************** X*** 437,445 **** X } X } X } X- #ifdef BSDJOBS X goto loop; X- #endif /* BSDJOBS */ X } X X void X--- 265,271 ---- X*************** X*** 447,473 **** X { X register struct process *pp; X int flags; X- #ifdef BSDSIGS X sigmask_t omask; X- #endif /* BSDSIGS */ X X neednote = 0; X for (pp = proclist.p_next; pp != PNULL; pp = pp->p_next) { X if (pp->p_flags & PNEEDNOTE) { X- #ifdef BSDSIGS X omask = sigblock(sigmask(SIGCHLD)); X- #else /* !BSDSIGS */ X- (void) sighold(SIGCHLD); X- #endif /* !BSDSIGS */ X pp->p_flags &= ~PNEEDNOTE; X flags = pprint(pp, NUMBER | NAME | REASON); X if ((flags & (PRUNNING | PSTOPPED)) == 0) X pflush(pp); X- #ifdef BSDSIGS X (void) sigsetmask(omask); X- #else /* !BSDSIGS */ X- (void) sigrelse(SIGCHLD); X- #endif /* !BSDSIGS */ X } X } X } X--- 273,289 ---- X*************** X*** 480,497 **** X pwait() X { X register struct process *fp, *pp; X- #ifdef BSDSIGS X sigmask_t omask; X- #endif /* BSDSIGS */ X X /* X * Here's where dead procs get flushed. X */ X- #ifdef BSDSIGS X omask = sigblock(sigmask(SIGCHLD)); X! #else /* !BSDSIGS */ X! (void) sighold(SIGCHLD); X! #endif /* !BSDSIGS */ X for (pp = (fp = &proclist)->p_next; pp != PNULL; pp = (fp = pp)->p_next) X if (pp->p_pid == 0) { X fp->p_next = pp->p_next; X--- 296,308 ---- X pwait() X { X register struct process *fp, *pp; X sigmask_t omask; X X /* X * Here's where dead procs get flushed. X */ X omask = sigblock(sigmask(SIGCHLD)); X! X for (pp = (fp = &proclist)->p_next; pp != PNULL; pp = (fp = pp)->p_next) X if (pp->p_pid == 0) { X fp->p_next = pp->p_next; X*************** X*** 502,520 **** X xfree((ptr_t) pp); X pp = fp; X } X- #ifdef BSDSIGS X (void) sigsetmask(omask); X- #else /* !BSDSIGS */ X- (void) sigrelse(SIGCHLD); X- # ifdef notdef X- if (setintr) X- sigignore(SIGINT); X- # endif X- #endif /* !BSDSIGS */ X pjwait(pcurrjob); X } X X- X /* X * pjwait - wait for a job to finish or become stopped X * It is assumed to be in the foreground state (PFOREGND) X--- 313,322 ---- X*************** X*** 525,533 **** X { X register struct process *fp; X int jobflags, reason; X- #ifdef BSDSIGS X sigmask_t omask; X- #endif /* BSDSIGS */ X X while (pp->p_pid != pp->p_jobid) X pp = pp->p_friends; X--- 327,333 ---- X*************** X*** 542,554 **** X * target process, or any of its friends, are running X */ X fp = pp; X- #ifdef BSDSIGS X omask = sigblock(sigmask(SIGCHLD)); X! #endif /* BSDSIGS */ X for (;;) { X- #ifndef BSDSIGS X- (void) sighold(SIGCHLD); X- #endif /* !BSDSIGS */ X jobflags = 0; X do X jobflags |= fp->p_flags; X--- 342,350 ---- X * target process, or any of its friends, are running X */ X fp = pp; X omask = sigblock(sigmask(SIGCHLD)); X! X for (;;) { X jobflags = 0; X do X jobflags |= fp->p_flags; X*************** X*** 558,575 **** X #ifdef JOBDEBUG X xprintf("starting to sigpause for SIGCHLD on %d\n", fp->p_pid); X #endif /* JOBDEBUG */ X- #ifdef BSDSIGS X /* sigpause(sigblock((sigmask_t) 0) &~ sigmask(SIGCHLD)); */ X (void) sigpause(omask & ~sigmask(SIGCHLD)); X- #else /* !BSDSIGS */ X- (void) sigpause(SIGCHLD); X- #endif /* !BSDSIGS */ X } X- #ifdef BSDSIGS X (void) sigsetmask(omask); X! #else /* !BSDSIGS */ X! (void) sigrelse(SIGCHLD); X! #endif /* !BSDSIGS */ X #ifdef BSDJOBS X if (tpgrp > 0) /* get tty back */ X (void) tcsetpgrp(FSHTTY, tpgrp); X--- 354,364 ---- X #ifdef JOBDEBUG X xprintf("starting to sigpause for SIGCHLD on %d\n", fp->p_pid); X #endif /* JOBDEBUG */ X /* sigpause(sigblock((sigmask_t) 0) &~ sigmask(SIGCHLD)); */ X (void) sigpause(omask & ~sigmask(SIGCHLD)); X } X (void) sigsetmask(omask); X! X #ifdef BSDJOBS X if (tpgrp > 0) /* get tty back */ X (void) tcsetpgrp(FSHTTY, tpgrp); X*************** X*** 627,661 **** X dowait() X { X register struct process *pp; X- #ifdef BSDSIGS X sigmask_t omask; X- #endif /* BSDSIGS */ X X pjobs++; X- #ifdef BSDSIGS X omask = sigblock(sigmask(SIGCHLD)); X loop: X- #else /* !BSDSIGS */ X- if (setintr) X- (void) sigrelse(SIGINT); X- loop: X- (void) sighold(SIGCHLD); X- #endif /* !BSDSIGS */ X for (pp = proclist.p_next; pp; pp = pp->p_next) X if (pp->p_pid && /* pp->p_pid == pp->p_jobid && */ X pp->p_flags & PRUNNING) { X- #ifdef BSDSIGS X (void) sigpause((sigmask_t) 0); X- #else /* !BSDSIGS */ X- (void) sigpause(SIGCHLD); X- #endif /* !BSDSIGS */ X goto loop; X } X- #ifdef BSDSIGS X (void) sigsetmask(omask); X- #else /* !BSDSIGS */ X- (void) sigrelse(SIGCHLD); X- #endif /* !BSDSIGS */ X pjobs = 0; X } X X--- 416,433 ---- X*************** X*** 800,818 **** X } X pp->p_next = proclist.p_next; X proclist.p_next = pp; X- #ifdef BSDTIMES X (void) gettimeofday(&pp->p_btime, NULL); X- #else /* !BSDTIMES */ X- # ifdef _SEQUENT_ X- (void) get_pro_stats(&pp->p_btime, PS_SELF, NULL, NULL); X- # else /* !_SEQUENT_ */ X- { X- struct tms tmptimes; X- X- pp->p_btime = times(&tmptimes); X- } X- # endif /* !_SEQUENT_ */ X- #endif /* !BSDTIMES */ X } X X static void X--- 572,578 ---- X*************** X*** 990,1012 **** X (pp == pprevious ? '-' : ' ')); X else X xprintf(" "); X! if (flag & FANCY) { X! #ifdef TCF X! extern char *sitename(); X! X! #endif /* TCF */ X xprintf("%5d ", pp->p_pid); X- #ifdef TCF X- xprintf("%11s ", sitename(pp->p_pid)); X- #endif /* TCF */ X- } X if (flag & (REASON | AREASON)) { X if (flag & NAME) X- #ifdef SUSPENDED X format = "%-23s"; X- #else /* !SUSPENDED */ X- format = "%-21s"; X- #endif /* !SUSPENDED */ X else X format = "%s"; X if (pstatus == status) X--- 750,760 ---- X (pp == pprevious ? '-' : ' ')); X else X xprintf(" "); X! if (flag & FANCY) X xprintf("%5d ", pp->p_pid); X if (flag & (REASON | AREASON)) { X if (flag & NAME) X format = "%-23s"; X else X format = "%s"; X if (pstatus == status) X*************** X*** 1048,1058 **** X case PAEXITED: X if (flag & REASON) X if (pp->p_reason) X- #ifdef SUSPENDED X xprintf("Exit %-18d", pp->p_reason); X- #else /* SUSPENDED */ X- xprintf("Exit %-16d", pp->p_reason); X- #endif /* SUSPENDED */ X else X xprintf(format, "Done"); X break; X--- 796,802 ---- X*************** X*** 1085,1102 **** X if (pp->p_flags & PPTIME && !(status & (PSTOPPED | PRUNNING))) { X if (linp != linbuf) X xprintf("\n\t"); X- #if defined(BSDTIMES) || defined(_SEQUENT_) X prusage(&zru, &pp->p_rusage, &pp->p_etime, X &pp->p_btime); X- #else /* !BSDTIMES && !SEQUENT */ X- lru.tms_utime = pp->p_utime; X- lru.tms_stime = pp->p_stime; X- lru.tms_cutime = 0; X- lru.tms_cstime = 0; X- prusage(&zru, &lru, pp->p_etime, X- pp->p_btime); X- #endif /* !BSDTIMES && !SEQUENT */ X- X } X if (tp == pp->p_friends) { X if (linp != linbuf) X--- 829,836 ---- X*************** X*** 1120,1126 **** X ptprint(tp) X register struct process *tp; X { X! #ifdef BSDTIMES X struct timeval tetime, diff; X static struct timeval ztime; X struct rusage ru; X--- 854,860 ---- X ptprint(tp) X register struct process *tp; X { X! X struct timeval tetime, diff; X static struct timeval ztime; X struct rusage ru; X*************** X*** 1136,1201 **** X tetime = diff; X } while ((pp = pp->p_friends) != tp); X prusage(&zru, &ru, &tetime, &ztime); X- #else /* !BSDTIMES */ X- # ifdef _SEQUENT_ X- # define timercmp(tvp, uvp, cmp) \ X- ((tvp)->tv_sec cmp (uvp)->tv_sec || \ X- (tvp)->tv_sec == (uvp)->tv_sec && (tvp)->tv_usec cmp (uvp)->tv_usec) X- tmval_t tetime, diff; X- static tmval_t ztime; X- struct pro_stats ru; X- static struct pro_stats zru; X- register struct process *pp = tp; X- X- ru = zru; X- tetime = ztime; X- do { X- ruadd(&ru, &pp->p_rusage); X- tvsub(&diff, &pp->p_etime, &pp->p_btime); X- if (timercmp(&diff, &tetime, >)) X- tetime = diff; X- } while ((pp = pp->p_friends) != tp); X- prusage(&zru, &ru, &tetime, &ztime); X- # else /* !_SEQUENT_ */ X- # ifndef POSIX X- static time_t ztime = 0; X- static time_t zu_time = 0; X- static time_t zs_time = 0; X- time_t tetime, diff; X- time_t u_time, s_time; X- X- # else /* POSIX */ X- static clock_t ztime = 0; X- static clock_t zu_time = 0; X- static clock_t zs_time = 0; X- clock_t tetime, diff; X- clock_t u_time, s_time; X- X- # endif /* POSIX */ X- struct tms zts, rts; X- register struct process *pp = tp; X- X- u_time = zu_time; X- s_time = zs_time; X- tetime = ztime; X- do { X- u_time += pp->p_utime; X- s_time += pp->p_stime; X- diff = pp->p_etime - pp->p_btime; X- if (diff > tetime) X- tetime = diff; X- } while ((pp = pp->p_friends) != tp); X- zts.tms_utime = zu_time; X- zts.tms_stime = zs_time; X- zts.tms_cutime = 0; X- zts.tms_cstime = 0; X- rts.tms_utime = u_time; X- rts.tms_stime = s_time; X- rts.tms_cutime = 0; X- rts.tms_cstime = 0; X- prusage(&zts, &rts, tetime, ztime); X- # endif /* !_SEQUENT_ */ X- #endif /* !BSDTIMES */ X } X X /* X--- 870,875 ---- X*************** X*** 1240,1251 **** X do { X pp = pfind(*v); X pstart(pp, 1); X- #ifndef BSDSIGS X- # ifdef notdef X- if (setintr) X- sigignore(SIGINT); X- # endif X- #endif /* !BSDSIGS */ X pjwait(pp); X } while (*v && *++v); X } X--- 914,919 ---- X*************** X*** 1262,1273 **** X okpcntl(); X pp = pfind(v[0]); X pstart(pp, 1); X- #ifndef BSDSIGS X- # ifdef notdef X- if (setintr) X- sigignore(SIGINT); X- # endif X- #endif /* !BSDSIGS */ X pjwait(pp); X } X X--- 930,935 ---- X*************** X*** 1308,1316 **** X dostop(v) X Char **v; X { X- #ifdef BSDJOBS X pkill(++v, SIGSTOP); X- #endif /* BSDJOBS */ X } X X /* X--- 970,976 ---- X*************** X*** 1369,1389 **** X register struct process *pp, *np; X register int jobflags = 0; X int pid, err1 = 0; X- #ifdef BSDSIGS X sigmask_t omask; X- #endif /* BSDSIGS */ X Char *cp; X X- #ifdef BSDSIGS X omask = sigmask(SIGCHLD); X if (setintr) X omask |= sigmask(SIGINT); X omask = sigblock(omask) & ~omask; X! #else /* !BSDSIGS */ X! if (setintr) X! (void) sighold(SIGINT); X! (void) sighold(SIGCHLD); X! #endif /* !BSDSIGS */ X gflag = 0, tglob(v); X if (gflag) { X v = globall(v); X--- 1029,1042 ---- X register struct process *pp, *np; X register int jobflags = 0; X int pid, err1 = 0; X sigmask_t omask; X Char *cp; X X omask = sigmask(SIGCHLD); X if (setintr) X omask |= sigmask(SIGINT); X omask = sigblock(omask) & ~omask; X! X gflag = 0, tglob(v); X if (gflag) { X v = globall(v); X*************** X*** 1401,1407 **** X do X jobflags |= np->p_flags; X while ((np = np->p_friends) != pp); X- #ifdef BSDJOBS X switch (signum) { X X case SIGSTOP: X--- 1054,1059 ---- X*************** X*** 1409,1421 **** X case SIGTTIN: X case SIGTTOU: X if ((jobflags & PRUNNING) == 0) { X- # ifdef SUSPENDED X xprintf("%s: Already suspended\n", X short2str(cp)); X- # else /* !SUSPENDED */ X- xprintf("%s: Already stopped\n", X- short2str(cp)); X- # endif /* !SUSPENDED */ X err1++; X goto cont; X } X--- 1061,1068 ---- X*************** X*** 1428,1442 **** X pstart(pp, 0); X goto cont; X } X- #endif /* BSDJOBS */ X if (killpg((pid_t) pp->p_jobid, signum) < 0) { X xprintf("%s: %s\n", short2str(cp), strerror(errno)); X err1++; X } X- #ifdef BSDJOBS X if (signum == SIGTERM || signum == SIGHUP) X (void) killpg((pid_t) pp->p_jobid, SIGCONT); X- #endif /* BSDJOBS */ X } X else if (!(Isdigit(*cp) || *cp == '-')) X stderror(ERR_NAME | ERR_JOBARGS); X--- 1075,1086 ---- X*************** X*** 1447,1456 **** X err1++; X goto cont; X } X- #ifdef BSDJOBS X if (signum == SIGTERM || signum == SIGHUP) X (void) kill((pid_t) pid, SIGCONT); X- #endif /* BSDJOBS */ X } X cont: X v++; X--- 1091,1098 ---- X*************** X*** 1457,1469 **** X } X if (gargv) X blkfree(gargv), gargv = 0; X- #ifdef BSDSIGS X (void) sigsetmask(omask); X- #else /* !BSDSIGS */ X- (void) sigrelse(SIGCHLD); X- if (setintr) X- (void) sigrelse(SIGINT); X- #endif /* !BSDSIGS */ X if (err1) X stderror(ERR_SILENT); X } X--- 1099,1105 ---- X*************** X*** 1477,1492 **** X int foregnd; X { X register struct process *np; X- #ifdef BSDSIGS X sigmask_t omask; X- #endif /* BSDSIGS */ X long jobflags = 0; X X- #ifdef BSDSIGS X omask = sigblock(sigmask(SIGCHLD)); X! #else /* !BSDSIGS */ X! (void) sighold(SIGCHLD); X! #endif X np = pp; X do { X jobflags |= np->p_flags; X--- 1113,1123 ---- X int foregnd; X { X register struct process *np; X sigmask_t omask; X long jobflags = 0; X X omask = sigblock(sigmask(SIGCHLD)); X! X np = pp; X do { X jobflags |= np->p_flags; X*************** X*** 1502,1518 **** X if (!foregnd) X pclrcurr(pp); X (void) pprint(pp, foregnd ? NAME | JOBDIR : NUMBER | NAME | AMPERSAND); X! #ifdef BSDJOBS X if (foregnd) X (void) tcsetpgrp(FSHTTY, pp->p_jobid); X if (jobflags & PSTOPPED) X (void) killpg((pid_t) pp->p_jobid, SIGCONT); X! #endif /* BSDJOBS */ X! #ifdef BSDSIGS X (void) sigsetmask(omask); X- #else /* !BSDSIGS */ X- (void) sigrelse(SIGCHLD); X- #endif /* !BSDSIGS */ X } X X void X--- 1133,1145 ---- X if (!foregnd) X pclrcurr(pp); X (void) pprint(pp, foregnd ? NAME | JOBDIR : NUMBER | NAME | AMPERSAND); X! X if (foregnd) X (void) tcsetpgrp(FSHTTY, pp->p_jobid); X if (jobflags & PSTOPPED) X (void) killpg((pid_t) pp->p_jobid, SIGCONT); X! X (void) sigsetmask(omask); X } X X void X*************** X*** 1633,1645 **** X register int pid; X bool ignint = 0; X int pgrp; X- #ifdef BSDSIGS X sigmask_t omask; X- #endif /* BSDSIGS */ X- #if SIGSYNCH X- sigvec_t osv; X- static sigvec_t nsv = {synch_handler, ~0, 0}; X- #endif /* SIGSYNCH */ X X /* X * A child will be uninterruptible only under very special conditions. X--- 1260,1266 ---- X*************** X*** 1660,1684 **** X /* X * Hold SIGCHLD until we have the process installed in our table. X */ X- #ifdef SIGSYNCH X- if (mysigvec(SIGSYNCH, &nsv, &osv)) X- stderror(ERR_SYSTEM, "pfork: sigvec set", strerror(errno)); X- #endif /* SIGSYNCH */ X- #ifdef BSDSIGS X omask = sigblock(sigmask(SIGCHLD)); X! #else /* !BSDSIGS */ X! (void) sighold(SIGCHLD); X! #endif /* !BSDSIGS */ X while ((pid = fork()) < 0) X if (setintr == 0) X (void) sleep(FORKSLEEP); X else { X- #ifdef BSDSIGS X (void) sigsetmask(omask); X- #else /* !BSDSIGS */ X- (void) sigrelse(SIGINT); X- (void) sigrelse(SIGCHLD); X- #endif /* !BSDSIGS */ X stderror(ERR_NOPROC); X } X if (pid == 0) { X--- 1281,1293 ---- X /* X * Hold SIGCHLD until we have the process installed in our table. X */ X omask = sigblock(sigmask(SIGCHLD)); X! X while ((pid = fork()) < 0) X if (setintr == 0) X (void) sleep(FORKSLEEP); X else { X (void) sigsetmask(omask); X stderror(ERR_NOPROC); X } X if (pid == 0) { X*************** X*** 1686,1700 **** X pgrp = pcurrjob ? pcurrjob->p_jobid : getpid(); X pflushall(); X pcurrjob = PNULL; X- #if !defined(BSDTIMES) && !defined(_SEQUENT_) X- timesdone = 0; X- #endif /* !defined(BSDTIMES) && !defined(_SEQUENT_) */ X child++; X if (setintr) { X setintr = 0; /* until I think otherwise */ X- #ifndef BSDSIGS X- (void) sigrelse(SIGCHLD); X- #endif /* !BSDSIGS */ X /* X * Children just get blown away on SIGINT, SIGQUIT unless "onintr X * -" seen. X--- 1295,1303 ---- X*************** X*** 1701,1707 **** X */ X (void) signal(SIGINT, ignint ? SIG_IGN : SIG_DFL); X (void) signal(SIGQUIT, ignint ? SIG_IGN : SIG_DFL); X- #ifdef BSDJOBS X if (wanttty >= 0) { X /* make stoppable */ X (void) signal(SIGTSTP, SIG_DFL); X--- 1304,1309 ---- X*************** X*** 1708,1714 **** X (void) signal(SIGTTIN, SIG_DFL); X (void) signal(SIGTTOU, SIG_DFL); X } X- #endif /* BSDJOBS */ X (void) signal(SIGTERM, parterm); X } X else if (tpgrp == -1 && (t->t_dflg & F_NOINTERRUPT)) { X--- 1310,1315 ---- X*************** X*** 1715,1723 **** X (void) signal(SIGINT, SIG_IGN); X (void) signal(SIGQUIT, SIG_IGN); X } X- #ifdef OREO X- sigignore(SIGIO); /* ignore SIGIO in child too */ X- #endif /* OREO */ X X pgetty(wanttty, pgrp); X /* X--- 1316,1321 ---- X*************** X*** 1728,1738 **** X if (t->t_dflg & F_NOHUP) X (void) signal(SIGHUP, SIG_IGN); X if (t->t_dflg & F_NICE) X- #ifdef BSDNICE X (void) setpriority(PRIO_PROCESS, 0, t->t_nice); X- #else /* !BSDNICE */ X- (void) nice(t->t_nice); X- #endif /* !BSDNICE */ X #ifdef F_VER X if (t->t_dflg & F_VER) { X Setenv(STRSYSTYPE, t->t_systype ? STRbsd43 : STRsys53); X--- 1326,1332 ---- X*************** X*** 1739,1777 **** X dohash(); X } X #endif /* F_VER */ X- #ifdef SIGSYNCH X- /* rfw 8/89 now parent can continue */ X- if (kill(getppid(), SIGSYNCH)) X- stderror(ERR_SYSTEM, "pfork child: kill", strerror(errno)); X- #endif /* SIGSYNCH */ X- X } X else { X- #ifdef POSIXJOBS X- if (wanttty >= 0) X- (void) setpgid(pid, pcurrjob ? pcurrjob->p_jobid : pid); X- #endif /* POSIXJOBS */ X palloc(pid, t); X- #ifdef SIGSYNCH X- /* X- * rfw 8/89 Wait for child to own terminal. Solves half of ugly X- * synchronization problem. With this change, we know that the only X- * reason setpgrp to a previous process in a pipeline can fail is that X- * the previous process has already exited. Without this hack, he may X- * either have exited or not yet started to run. Two uglies become X- * one. X- */ X- sigpause(omask & ~SYNCHMASK); X- if (mysigvec(SIGSYNCH, &osv, NULL)) X- stderror(ERR_SYSTEM, "pfork parent: sigvec restore", X- strerror(errno)); X- #endif /* SIGSYNCH */ X- X- #ifdef BSDSIGS X (void) sigsetmask(omask); X- #else /* !BSDSIGS */ X- (void) sigrelse(SIGCHLD); X- #endif /* !BSDSIGS */ X } X return (pid); X } X--- 1333,1342 ---- X*************** X*** 1797,1863 **** X pgetty(wanttty, pgrp) X int wanttty, pgrp; X { X- #ifdef BSDJOBS X- # if defined(BSDSIGS) && defined(POSIXJOBS) X- sigmask_t omask = 0; X- # endif /* BSDSIGS && POSIXJOBS */ X X # ifdef JOBDEBUG X xprintf("wanttty %d\n", wanttty); X # endif X X- # ifdef POSIXJOBS X- /* X- * christos: I am blocking the tty signals till I've set things X- * correctly.... X- */ X if (wanttty > 0) X- # ifdef BSDSIGS X- omask = sigblock(sigmask(SIGTSTP)|sigmask(SIGTTIN)|sigmask(SIGTTOU)); X- # else /* !BSDSIGS */ X- { X- (void) sighold(SIGTSTP); X- (void) sighold(SIGTTIN); X- (void) sighold(SIGTTOU); X- } X- # endif /* !BSDSIGS */ X- X- /* X- * From: Michael Schroeder X- * Don't check for tpgrp >= 0 so even non-interactive shells give X- * background jobs process groups Same for the comparison in the other part X- * of the #ifdef X- */ X- if (wanttty >= 0) X- if (setpgid(0, pgrp) == -1) { X- xprintf("tcsh: setpgid error.\n"); X- xexit(0); X- } X- # endif /* POSIXJOBS */ X- X- if (wanttty > 0) X (void) tcsetpgrp(FSHTTY, pgrp); X X- # ifndef POSIXJOBS X if (wanttty >= 0) X if (setpgid(0, pgrp) == -1) { X xprintf("tcsh: setpgid error.\n"); X xexit(0); X } X- # else /* POSIXJOBS */ X- if (wanttty > 0) X- # ifdef BSDSIGS X- (void) sigsetmask(omask); X- # else /* BSDSIGS */ X- { X- (void) sigrelse(SIGTSTP); X- (void) sigrelse(SIGTTIN); X- (void) sigrelse(SIGTTOU); X- } X- # endif /* !BSDSIGS */ X- # endif /* POSIXJOBS */ X X if (tpgrp > 0) X tpgrp = 0; /* gave tty away */ X- #endif /* BSDJOBS */ X } X--- 1362,1381 ---- X*** ./usr/src/bin/tcsh/ed.init.c.old Fri Mar 28 17:38:03 1997 X--- ./usr/src/bin/tcsh/ed.init.c Mon Sep 21 20:15:17 2026 X*************** X*** 34,42 **** X * SUCH DAMAGE. X */ X #include "config.h" X! #if !defined(lint) && !defined(pdp11) X static char *rcsid() X! { return "$Id: ed.init.c,v 3.1 1997/3/28 21:49:28 sms Exp $"; } X #endif X X #include "sh.h" X--- 34,42 ---- X * SUCH DAMAGE. X */ X #include "config.h" X! #if !defined(lint) && defined(DOSCCS) X static char *rcsid() X! { return "$Id: ed.init.c,v 3.2 2026/6/1 21:49:28 (2.11BSD) Exp $"; } X #endif X X #include "sh.h" X*************** X*** 44,126 **** X #include "ed.h" X #include "ed.defns.h" X X- #if defined(TERMIO) || defined(POSIX) X- /* X- * Aix compatible names X- */ X- # if defined(VWERSE) && !defined(VWERASE) X- # define VWERASE VWERSE X- # endif /* VWERSE && !VWERASE */ X- X- # if defined(VDISCRD) && !defined(VDISCARD) X- # define VDISCARD VDISCRD X- # endif /* VDISCRD && !VDISCARD */ X- X- # if defined(VSTRT) && !defined(VSTART) X- # define VSTART VSTRT X- # endif /* VSTRT && ! VSTART */ X- X- # if defined(VSTAT) && !defined(VSTATUS) X- # define VSTATUS VSTAT X- # endif /* VSTAT && ! VSTATUS */ X- X- # ifndef ONLRET X- # define ONLRET 0 X- # endif /* ONLRET */ X- X- # ifndef TAB3 X- # ifdef OXTABS X- # define TAB3 OXTABS X- # else X- # define TAB3 0 X- # endif /* OXTABS */ X- # endif /* !TAB3 */ X- X- # ifndef ONLCR X- # define ONLCR 0 X- # endif /* ONLCR */ X- X- # ifndef IEXTEN X- # define IEXTEN 0 X- # endif /* IEXTEN */ X- X- # ifndef ECHOCTL X- # define ECHOCTL 0 X- # endif /* ECHOCTL */ X- X- # ifndef PARENB X- # define PARENB 0 X- # endif /* PARENB */ X- X- # ifndef EXTPROC X- # define EXTPROC 0 X- # endif /* EXTPROC */ X- X- # ifndef FLUSHO X- # define FLUSHO 0 X- # endif /* FLUSHO */ X- X- # if defined(VDISABLE) && !defined(_POSIX_VDISABLE) X- # define _POSIX_VDISABLE VDISABLE X- # endif /* VDISABLE && ! _POSIX_VDISABLE */ X- X- # ifndef _POSIX_VDISABLE X- # define _POSIX_VDISABLE -1 X- # endif /* _POSIX_VDISABLE */ X- X- /* X- * Work around ISC's definition of IEXTEN which is X- * XCASE! X- */ X- # ifdef ISC X- # ifdef IEXTEN X- # undef IEXTEN X- # endif /* IEXTEN */ X- # define IEXTEN 0 X- # endif /* ISC */ X- #endif /* TERMIO || POSIX */ X- X- X /* ed.init.c -- init routines for the line editor */ X X int Tty_raw_mode = 0; /* Last tty change was to raw mode */ X--- 44,49 ---- X*************** X*** 132,143 **** X X extern bool GotTermCaps; X X- #ifdef _IBMR2 X- static bool edit_discipline = 0; X- union txname tx_disc; X- extern char strPOSIX[]; X- #endif /* _IBMR2 */ X- X static int dosetkey __P((char *, char *)); X X #ifdef SIG_WINDOW X--- 55,60 ---- X*************** X*** 145,161 **** X check_window_size(force) X int force; X { X- #ifdef BSDSIGS X sigmask_t omask; X- #endif /* BSDSIGS */ X int lins, cols; X X /* don't want to confuse things here */ X- #ifdef BSDSIGS X omask = sigblock(sigmask(SIG_WINDOW)) & ~sigmask(SIG_WINDOW); X- #else /* BSDSIGS */ X- (void) sighold(SIG_WINDOW); X- #endif /* BSDSIGS */ X X /* X * From: bret@shark.agps.lanl.gov (Bret Thaeler) Avoid sunview bug, where a X--- 62,72 ---- X*************** X*** 175,196 **** X ChangeSize(lins, cols); X } X X- #ifdef BSDSIGS X (void) sigsetmask(omask); /* can change it again */ X- #else /* BSDSIGS */ X- (void) sigrelse(SIG_WINDOW); X- #endif /* BSDSIGS */ X } X X! sigret_t X! /*ARGSUSED*/ X! window_change(snum) X! int snum; X { X check_window_size(0); X- #ifndef SIGVOID X- return (snum); X- #endif X } X X #endif /* SIG_WINDOW */ X--- 86,98 ---- X ChangeSize(lins, cols); X } X X (void) sigsetmask(omask); /* can change it again */ X } X X! void X! window_change() X { X check_window_size(0); X } X X #endif /* SIG_WINDOW */ X*************** X*** 349,376 **** X nio.c_cc[VPAGE] = '\015'; /* ^M */ X # endif /* VPAGE */ X X- # if defined(OREO) || defined(hpux) || defined(_IBMR2) X- X- (void) ioctl(SHIN, TIOCGLTC, (ioctl_t) & nlc); X- xlc = nlc; X- X- nlc.t_suspc = '\032'; /* stop process signal */ X- nlc.t_dsuspc = '\031'; /* delayed stop process signal */ X- # ifdef hpux X- /* X- * These must be 0377. (Reserved) X- */ X- nlc.t_rprntc = _POSIX_VDISABLE; /* reprint line */ X- nlc.t_flushc = _POSIX_VDISABLE; /* flush output (toggles) */ X- nlc.t_werasc = _POSIX_VDISABLE; /* word erase */ X- nlc.t_lnextc = _POSIX_VDISABLE; /* literal next character */ X- # else X- nlc.t_rprntc = '\022'; /* reprint line */ X- nlc.t_flushc = '\017'; /* flush output (toggles) */ X- nlc.t_werasc = '\027'; /* word erase */ X- nlc.t_lnextc = '\026'; /* literal next character */ X- # endif /* hpux */ X- # endif /* OREO || hpux || _IBMR2 */ X # ifdef SIG_WINDOW X (void) sigset(SIG_WINDOW, window_change); /* for window systems */ X # endif X--- 251,256 ---- X*************** X*** 403,414 **** X ntc.t_startc = '\021'; /* start output */ X ntc.t_stopc = '\023'; /* stop output */ X ntc.t_eofc = '\004'; /* no eof char during input... */ X- # ifdef masscomp X- /* NUL is prefered to in this char, DAS DEC-90. */ X- ntc.t_brkc = '\0'; /* input delimiter (like nl) */ X- # else X ntc.t_brkc = -1; /* input delimiter (like nl) */ X- # endif X X nlc.t_suspc = '\032'; /* stop process signal */ X nlc.t_dsuspc = '\031'; /* delayed stop process signal */ X--- 283,289 ---- X*************** X*** 503,526 **** X xio.c_cc[VPAGE] = '\015'; /* ^M */ X # endif /* VPAGE */ X X- # if defined(OREO) || defined(hpux) || defined(_IBMR2) X- xlc.t_suspc = -1; /* stop process signal */ X- xlc.t_dsuspc = -1; /* delayed stop process signal */ X- # ifdef hpux X- /* X- * These must be 0377. (Reserved) X- */ X- xlc.t_rprntc = '\377'; /* reprint line */ X- xlc.t_flushc = '\377'; /* flush output (toggles) */ X- xlc.t_werasc = '\377'; /* word erase */ X- xlc.t_lnextc = '\377'; /* literal next character */ X- # else X- xlc.t_rprntc = -1; /* reprint line */ X- xlc.t_flushc = '\017'; /* flush output */ X- xlc.t_werasc = -1; /* word erase */ X- xlc.t_lnextc = -1; /* literal next character */ X- # endif /* hpux */ X- # endif /* OREO || hpux || _IBMR2 */ X #else /* GSTTY */ X if (T_Tabs) { X xb.sg_flags &= ~(RAW | ECHO | XTABS); X--- 378,383 ---- X*************** X*** 540,551 **** X xtc.t_startc = '\021'; /* start output */ X xtc.t_stopc = '\023'; /* stop output */ X xtc.t_eofc = -1; /* no eof char during input... */ X- # ifdef masscomp X- /* NUL is prefered to in this char, DAS DEC-90. */ X- xtc.t_brkc = '\0'; /* input delimiter (like nl) */ X- # else X xtc.t_brkc = -1; /* input delimiter (like nl) */ X- # endif X X xlc.t_suspc = -1; /* stop process signal (was CTRL(z)) */ X xlc.t_dsuspc = -1; /* delayed stop process signal */ X--- 397,403 ---- X*************** X*** 600,615 **** X X if (Tty_raw_mode) X return (0); X- #ifdef _IBMR2 X- tx_disc.tx_which = 0; X- if (ioctl(FSHTTY, TXGETLD, (ioctl_t) & tx_disc) < 0) X- return (-1); X- if (strcmp(tx_disc.tx_name, strPOSIX) != 0) { X- edit_discipline = 1; X- if (ioctl(FSHTTY, TXSETLD, (ioctl_t) strPOSIX) < 0) X- return (-1); X- } X- #endif /* _IBMR2 */ X X #ifndef POSIX X # ifdef TERMIO X--- 452,457 ---- X*************** X*** 772,793 **** X return (-1); X # endif /* POSIX */ X X- # if defined(OREO) || defined(hpux) || defined(_IBMR2) X- /* get and set the new local chars */ X- if (ioctl(SHIN, TIOCGLTC, (ioctl_t) & testlc) < 0) X- return (-1); X- X- (void) dosetkey((char *) &testlc.t_suspc, (char *) &nlc.t_suspc); X- (void) dosetkey((char *) &testlc.t_dsuspc, (char *) &nlc.t_dsuspc); X- (void) dosetkey((char *) &testlc.t_rprntc, (char *) &nlc.t_rprntc); X- if (dosetkey((char *) &testlc.t_flushc, (char *) &nlc.t_flushc)) X- xlc.t_flushc = nlc.t_flushc; X- (void) dosetkey((char *) &testlc.t_werasc, (char *) &nlc.t_werasc); X- (void) dosetkey((char *) &testlc.t_lnextc, (char *) &nlc.t_lnextc); X- if (ioctl(SHIN, TIOCSLTC, (ioctl_t) & xlc) < 0) X- return (-1); X- # endif /* OREO || hpux || _IBMR2 */ X- X #else /* GSTTY */ /* for BSD... */ X X if (testsgb.sg_ispeed != nb.sg_ispeed) { X--- 614,619 ---- X*************** X*** 918,948 **** X int X Cookedmode() X { /* set tty in normal setup */ X! sigret_t(*orig_intr) (); X X- #ifdef _IBMR2 X- if (edit_discipline) { X- if (ioctl(SHIN, TXSETLD, (ioctl_t) & tx_disc) < 0) X- return (-1); X- edit_discipline = 0; X- } X- #endif /* _IBMR2 */ X if (!Tty_raw_mode) X return (0); X X- #ifdef BSDSIGS X orig_intr = signal(SIGINT, SIG_IGN); /* hold this for reseting tty */ X- #else X- orig_intr = sigset(SIGINT, SIG_IGN); /* hold this for reseting tty */ X- #endif /* BSDSIGS */ X #ifndef POSIX X # ifdef TERMIO X if (ioctl(SHIN, TCSETAW, (ioctl_t) & nio) < 0) X return (-1); X- # if defined(OREO) || defined(hpux) || defined(_IBMR2) X- if (ioctl(SHIN, TIOCSLTC, (ioctl_t) & nlc) < 0) X- return (-1); X- # endif /* OREO || hpux || _IBMR2 */ X # else /* GSTTY */ /* for BSD... */ X if (ioctl(SHIN, TIOCSETN, (ioctl_t) & nb) < 0) X return (-1); X--- 744,759 ---- X int X Cookedmode() X { /* set tty in normal setup */ X! sig_t orig_intr; X X if (!Tty_raw_mode) X return (0); X X orig_intr = signal(SIGINT, SIG_IGN); /* hold this for reseting tty */ X #ifndef POSIX X # ifdef TERMIO X if (ioctl(SHIN, TCSETAW, (ioctl_t) & nio) < 0) X return (-1); X # else /* GSTTY */ /* for BSD... */ X if (ioctl(SHIN, TIOCSETN, (ioctl_t) & nb) < 0) X return (-1); X*************** X*** 950,959 **** X return (-1); X if (ioctl(SHIN, TIOCSLTC, (ioctl_t) & nlc) < 0) X return (-1); X- # ifdef TIOCGPAGE X- if (ioctl(SHIN, TIOCSPAGE, (ioctl_t) & npc) < 0) X- return (-1); X- # endif /* TIOCGPAGE */ X if (ioctl(SHIN, TIOCLSET, (ioctl_t) & nlb) < 0) X return (-1); X # endif /* TERMIO */ X--- 761,766 ---- X*************** X*** 960,976 **** X #else /* POSIX */ X if (tcsetattr(SHIN, TCSADRAIN, &nio) < 0) X return (-1); X- # if defined(OREO) || defined(hpux) || defined(_IBMR2) X- if (ioctl(SHIN, TIOCSLTC, (ioctl_t) & nlc) < 0) X- return (-1); X- # endif /* OREO || hpux || _IBMR2 */ X #endif /* POSIX */ X Tty_raw_mode = 0; X- #ifdef BSDSIGS X (void) signal(SIGINT, orig_intr); /* take these again */ X- #else X- (void) sigset(SIGINT, orig_intr); /* take these again */ X- #endif /* BSDSIGS */ X return (0); X } X X--- 767,775 ---- X*** ./usr/src/bin/tcsh/glob.c.old Mon Oct 3 16:38:52 2022 X--- ./usr/src/bin/tcsh/glob.c Fri Aug 21 20:54:00 2026 X*************** X*** 36,42 **** X */ X #include "config.h" X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)glob.c 5.13 (2.11BSD) 2022/10/2"; X #endif X /* X * Glob: the interface is a superset of the one defined in POSIX 1003.2, X--- 36,42 ---- X */ X #include "config.h" X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)glob.c 5.14 (2.11BSD) 2026/6/1"; X #endif X /* X * Glob: the interface is a superset of the one defined in POSIX 1003.2, X*************** X*** 57,71 **** X * Number of matches in the current invocation of glob. X */ X X- #ifdef notdef X- #include X- #include X- #include X- #include X- #include X- typedef void * ptr_t; X- #endif X- X #include "sh.h" X #undef QUOTE X #undef TILDE X--- 57,62 ---- X*************** X*** 72,97 **** X #undef META X #undef CHAR X #undef ismeta X- #undef Strchr X X #include X X- #ifndef S_ISDIR X- #define S_ISDIR(a) (((a) & S_IFMT) == S_IFDIR) X- #endif X- X- #if !defined(S_ISLNK) && defined(S_IFLNK) X- #define S_ISLNK(a) (((a) & S_IFMT) == S_IFLNK) X- #endif X- X- #if !defined(S_ISLNK) && !defined(lstat) X- #define lstat stat X- #endif X- X- #ifdef notdef X- typedef unsigned short Char; X- #endif X- X static int glob1 __P((Char *, glob_t *, int)); X static int glob2 __P((Char *, Char *, Char *, glob_t *, int)); X static int glob3 __P((Char *, Char *, Char *, Char *, X--- 63,71 ---- X*************** X*** 100,109 **** X static int match __P((Char *, Char *, Char *, int)); X static int compare __P((const void *, const void *)); X static DIR *Opendir __P((Char *)); X- #ifdef S_IFLNK X- static int Lstat __P((Char *, struct stat *)); X- #endif X- static Char *Strchr __P((Char *, int)); X #ifdef DEBUG X static void qprintf __P((Char *)); X #endif X--- 74,79 ---- X*************** X*** 147,156 **** X #define ismeta(c) (((c)&M_META) != 0) X X /* X! * Need to dodge two kernel bugs: X * opendir("") != opendir(".") X- * NAMEI_BUG: on plain files trailing slashes are ignored in some kernels. X- * POSIX specifies that they should be ignored in directories. X */ X X static DIR * X--- 117,124 ---- X #define ismeta(c) (((c)&M_META) != 0) X X /* X! * Need to dodge a kernel bug: X * opendir("") != opendir(".") X */ X X static DIR * X*************** X*** 157,233 **** X Opendir(str) X register Char *str; X { X- char buf[MAXPATHLEN]; X- register char *dc = buf; X X if (!*str) X return (opendir(".")); X! while (*dc++ = *str++); X! return (opendir(buf)); X } X X- #ifdef S_IFLNK X- static int X- Lstat(fn, sb) X- register Char *fn; X- struct stat *sb; X- { X- char buf[MAXPATHLEN]; X- register char *dc = buf; X- X- while (*dc++ = *fn++); X- # ifdef NAMEI_BUG X- { X- int st; X- X- st = lstat(buf, sb); X- if (*buf) X- dc--; X- return (*--dc == '/' && !S_ISDIR(sb->st_mode) ? -1 : st); X- } X- # else X- return (lstat(buf, sb)); X- # endif /* NAMEI_BUG */ X- } X- #else X- #define Lstat Stat X- #endif /* S_IFLNK */ X- X- static int X- Stat(fn, sb) X- register Char *fn; X- struct stat *sb; X- { X- char buf[MAXPATHLEN]; X- register char *dc = buf; X- X- while (*dc++ = *fn++); X- #ifdef NAMEI_BUG X- { X- int st; X- X- st = lstat(buf, sb); X- if (*buf) X- dc--; X- return (*--dc == '/' && !S_ISDIR(sb->st_mode) ? -1 : st); X- } X- #else X- return (stat(buf, sb)); X- #endif /* NAMEI_BUG */ X- } X- X- static Char * X- Strchr(str, ch) X- register Char *str; X- int ch; X- { X- do X- if (*str == ch) X- return (str); X- while (*str++); X- return (NULL); X- } X- X #ifdef DEBUG X static void X qprintf(s) X--- 125,136 ---- X Opendir(str) X register Char *str; X { X X if (!*str) X return (opendir(".")); X! return (opendir(str)); X } X X #ifdef DEBUG X static void X qprintf(s) X*************** X*** 333,339 **** X if (c == not) X ++qpatnext; X if (*qpatnext == EOS || X! Strchr(qpatnext + 1, RBRACKET) == NULL) { X *bufnext++ = LBRACKET; X if (c == not) X --qpatnext; X--- 236,242 ---- X if (c == not) X ++qpatnext; X if (*qpatnext == EOS || X! strchr(qpatnext + 1, RBRACKET) == NULL) { X *bufnext++ = LBRACKET; X if (c == not) X --qpatnext; X*************** X*** 443,459 **** X for (;;) { X if (*pattern == EOS) { /* end of pattern? */ X *pathend = EOS; X! if (Lstat(pathbuf, &sbuf)) X return (0); X X if (((pglob->gl_flags & GLOB_MARK) && X pathend[-1] != SEP) && X (S_ISDIR(sbuf.st_mode) X- #ifdef S_IFLNK X || (S_ISLNK(sbuf.st_mode) && X! (Stat(pathbuf, &sbuf) == 0) && X S_ISDIR(sbuf.st_mode)) X- #endif X )) { X *pathend++ = SEP; X *pathend = EOS; X--- 346,360 ---- X for (;;) { X if (*pattern == EOS) { /* end of pattern? */ X *pathend = EOS; X! if (lstat(pathbuf, &sbuf)) X return (0); X X if (((pglob->gl_flags & GLOB_MARK) && X pathend[-1] != SEP) && X (S_ISDIR(sbuf.st_mode) X || (S_ISLNK(sbuf.st_mode) && X! (stat(pathbuf, &sbuf) == 0) && X S_ISDIR(sbuf.st_mode)) X )) { X *pathend++ = SEP; X *pathend = EOS; X*************** X*** 492,498 **** X { X extern int errno; X DIR *dirp; X! struct dirent *dp; X int err; X Char m_not = (pglob->gl_flags & GLOB_ALTNOT) ? M_ALTNOT : M_NOT; X X--- 393,399 ---- X { X extern int errno; X DIR *dirp; X! struct direct *dp; X int err; X Char m_not = (pglob->gl_flags & GLOB_ALTNOT) ? M_ALTNOT : M_NOT; X X*** ./usr/src/bin/tcsh/tc.func.c.old Wed Aug 21 13:16:54 1991 X--- ./usr/src/bin/tcsh/tc.func.c Mon Sep 21 18:44:20 2026 X*************** X*** 1,4 **** X- /* $Header: /home/hyperion/mu/christos/src/sys/tcsh-6.00/RCS/tc.func.c,v 3.0 1991/07/04 21:49:28 christos Exp $ */ X /* X * tc.func.c: New tcsh builtins. X */ X--- 1,3 ---- X*************** X*** 35,43 **** X * SUCH DAMAGE. X */ X #include "config.h" X! #if !defined(lint) && !defined(pdp11) X static char *rcsid() X! { return "$Id: tc.func.c,v 3.0 1991/07/04 21:49:28 christos Exp $"; } X #endif X X #include "sh.h" X--- 34,42 ---- X * SUCH DAMAGE. X */ X #include "config.h" X! #if !defined(lint) && defined(DOSCCS) X static char *rcsid() X! { return "$Id: tc.func.c,v 3.1 2026/6/1 21:49:28 (2.11BSD) Exp $"; } X #endif X X #include "sh.h" X*************** X*** 206,219 **** X struct wordent cmd, *nextword, *lastword; X Char *cp; X X- #ifdef BSDSIGS X sigmask_t omask = 0; X X if (setintr) X omask = sigblock(sigmask(SIGINT)) & ~sigmask(SIGINT); X- #else X- sighold(SIGINT); X- #endif X if (seterr) { X xfree((ptr_t) seterr); X seterr = NULL; X--- 205,214 ---- X*************** X*** 251,261 **** X /* done. free the lex list and parse tree. */ X freelex(&cmd), freesyn(t); X if (setintr) X- #ifdef BSDSIGS X (void) sigsetmask(omask); X- #else X- (void) sigrelse(SIGINT); X- #endif X } X else { X Char *dp, *tmp, buf[MAXPATHLEN]; X--- 246,252 ---- X*************** X*** 264,272 **** X tmp = dnormalize(v[k]); X dp = &tmp[Strlen(tmp) - 1]; X if (*dp == '/' && dp != tmp) X- #ifdef apollo X- if (dp != &tmp[1]) X- #endif X *dp = '\0'; X if (stat(short2str(tmp), &st) == -1) { X if (k != i) { X--- 255,260 ---- X*************** X*** 437,455 **** X fg_proc_entry(pp) X register struct process *pp; X { X- #ifdef BSDSIGS X sigmask_t omask; X- #endif X jmp_buf osetexit; X bool ohaderr; X X getexit(osetexit); X X- #ifdef BSDSIGS X omask = sigblock(sigmask(SIGINT)); X- #else X- (void) sighold(SIGINT); X- #endif X X ohaderr = haderr; /* we need to ignore setting of haderr due to X * process getting stopped by a signal */ X--- 425,437 ---- X*************** X*** 462,473 **** X resexit(osetexit); X haderr = ohaderr; X X- #ifdef BSDSIGS X (void) sigsetmask(omask); X- #else X- (void) sigrelse(SIGINT); X- #endif X- X } X X static void X--- 444,450 ---- X*************** X*** 480,495 **** X (void) close(SHIN); X set(STRlogout, Strsave(STRa_matic)); X child = 1; X- #ifdef TESLA X- do_logout = 1; X- #endif /* TESLA */ X goodbye(); X } X X! sigret_t X /*ARGSUSED*/ X! alrmcatch(snum) X! int snum; X { X time_t cl, nl; X X--- 457,468 ---- X (void) close(SHIN); X set(STRlogout, Strsave(STRa_matic)); X child = 1; X goodbye(); X } X X! void X /*ARGSUSED*/ X! alrmcatch() X { X time_t cl, nl; X X*************** X*** 501,509 **** X else X auto_logout(); X setalarm(); X- #ifndef SIGVOID X- return (snum); X- #endif X } X X /* X--- 474,479 ---- X*************** X*** 518,532 **** X void X precmd() X { X- #ifdef BSDSIGS X sigmask_t omask; X- #endif X X- #ifdef BSDSIGS X omask = sigblock(sigmask(SIGINT)); X! #else X! (void) sighold(SIGINT); X! #endif X if (precmd_active) { /* an error must have been caught */ X aliasrun(2, STRunalias, STRprecmd); X xprintf("Faulty alias 'precmd' removed.\n"); X--- 488,497 ---- X void X precmd() X { X sigmask_t omask; X X omask = sigblock(sigmask(SIGINT)); X! X if (precmd_active) { /* an error must have been caught */ X aliasrun(2, STRunalias, STRprecmd); X xprintf("Faulty alias 'precmd' removed.\n"); X*************** X*** 537,547 **** X aliasrun(1, STRprecmd, NULL); X leave: X precmd_active = 0; X- #ifdef BSDSIGS X (void) sigsetmask(omask); X- #else X- (void) sigrelse(SIGINT); X- #endif X } X X /* X--- 502,508 ---- X*************** X*** 553,567 **** X void X cwd_cmd() X { X- #ifdef BSDSIGS X sigmask_t omask; X- #endif X X- #ifdef BSDSIGS X omask = sigblock(sigmask(SIGINT)); X! #else X! (void) sighold(SIGINT); X! #endif X if (cwdcmd_active) { /* an error must have been caught */ X aliasrun(2, STRunalias, STRcwdcmd); X xprintf("Faulty alias 'cwdcmd' removed.\n"); X--- 514,523 ---- X void X cwd_cmd() X { X sigmask_t omask; X X omask = sigblock(sigmask(SIGINT)); X! X if (cwdcmd_active) { /* an error must have been caught */ X aliasrun(2, STRunalias, STRcwdcmd); X xprintf("Faulty alias 'cwdcmd' removed.\n"); X*************** X*** 572,585 **** X aliasrun(1, STRcwdcmd, NULL); X leave: X cwdcmd_active = 0; X- #ifdef BSDSIGS X (void) sigsetmask(omask); X- #else X- (void) sigrelse(SIGINT); X- #endif X } X X- X /* X * Karl Kleinpaste, 18 Jan 1984. X * Added period_cmd(), which executes the alias "periodic" every X--- 528,536 ---- X*************** X*** 590,604 **** X { X register Char *vp; X time_t t, interval; X- #ifdef BSDSIGS X sigmask_t omask; X- #endif X X- #ifdef BSDSIGS X omask = sigblock(sigmask(SIGINT)); X! #else X! (void) sighold(SIGINT); X! #endif X if (periodic_active) { /* an error must have been caught */ X aliasrun(2, STRunalias, STRperiodic); X xprintf("Faulty alias 'periodic' removed.\n"); X--- 541,550 ---- X { X register Char *vp; X time_t t, interval; X sigmask_t omask; X X omask = sigblock(sigmask(SIGINT)); X! X if (periodic_active) { /* an error must have been caught */ X aliasrun(2, STRunalias, STRperiodic); X xprintf("Faulty alias 'periodic' removed.\n"); X*************** X*** 618,628 **** X } X leave: X periodic_active = 0; X- #ifdef BSDSIGS X (void) sigsetmask(omask); X- #else X- (void) sigrelse(SIGINT); X- #endif X } X X /* X--- 564,570 ---- X*** ./usr/src/bin/tcsh/tw.help.c.old Tue Aug 20 14:13:19 1991 X--- ./usr/src/bin/tcsh/tw.help.c Mon Sep 21 18:32:38 2026 X*************** X*** 1,4 **** X- /* $Header: /home/hyperion/mu/christos/src/sys/tcsh-6.00/RCS/tw.help.c,v 3.0 1991/07/04 21:49:28 christos Exp $ */ X /* tw.help.c: actually look up and print documentation on a file. X * Look down the path for an appropriate file, then print it. X * Note that the printing is NOT PAGED. This is because the X--- 1,3 ---- X*************** X*** 38,46 **** X * SUCH DAMAGE. X */ X #include "config.h" X! #if !defined(lint) && !defined(pdp11) X static char *rcsid() X! { return "$Id: tw.help.c,v 3.0 1991/07/04 21:49:28 christos Exp $"; } X #endif X X #include "sh.h" X--- 37,45 ---- X * SUCH DAMAGE. X */ X #include "config.h" X! #if !defined(lint) && defined(DOSCCS) X static char *rcsid() X! { return "$Id: tw.help.c,v 3.1 2026/6/1 21:49:28 (2.11BSD) Exp $"; } X #endif X X #include "sh.h" X*************** X*** 48,54 **** X X X static int f = -1; X! static sigret_t cleanf __P((int)); X static Char *skipslist __P((Char *)); X static void nextslist __P((Char *, Char *)); X X--- 47,53 ---- X X X static int f = -1; X! static void cleanf(); X static Char *skipslist __P((Char *)); X static void nextslist __P((Char *, Char *)); X X*************** X*** 64,70 **** X Char *cmd_p, *ep; X char **sp; X X! sigret_t(*orig_intr) (); X Char curdir[MAXPATHLEN]; /* Cur_ directory being looked at */ X register Char *hpath; /* The environment parameter */ X Char full[MAXPATHLEN]; X--- 63,69 ---- X Char *cmd_p, *ep; X char **sp; X X! sig_t orig_intr; X Char curdir[MAXPATHLEN]; /* Cur_ directory being looked at */ X register Char *hpath; /* The environment parameter */ X Char full[MAXPATHLEN]; X*************** X*** 139,155 **** X } X } X X! static sigret_t X /*ARGSUSED*/ X! cleanf(snum) X! int snum; X { X if (f != -1) X (void) close(f); X f = -1; X- #ifndef SIGVOID X- return (snum); X- #endif X } X X /* these next two are stolen from CMU's man(1) command for looking down X--- 138,150 ---- X } X } X X! static void X /*ARGSUSED*/ X! cleanf() X { X if (f != -1) X (void) close(f); X f = -1; X } X X /* these next two are stolen from CMU's man(1) command for looking down X*** ./usr/src/bin/tcsh/tw.h.old Tue Aug 20 14:13:19 1991 X--- ./usr/src/bin/tcsh/tw.h Mon Jun 1 17:39:09 2026 X*************** X*** 1,6 **** X- /* $Header: /home/hyperion/mu/christos/src/sys/tcsh-6.00/RCS/tw.h,v 3.0 1991/07/04 21:49:28 christos Exp $ */ X /* X * tw.h: TwENEX functions headers X */ X /*- X * Copyright (c) 1980, 1991 The Regents of the University of California. X--- 1,7 ---- X /* X * tw.h: TwENEX functions headers X+ * X+ * @(#)tw.h 2.0 (2.11BSD) 2026/6/1 X */ X /*- X * Copyright (c) 1980, 1991 The Regents of the University of California. X*************** X*** 37,88 **** X #ifndef _h_tw X #define _h_tw X X! #ifdef BSDSIGS X! X! # define FREE_ITEMS(items,num)\ X {\ X sigmask_t omask;\ X! omask = sighold (SIGINT);\ X! free_items (items,num);\ X items = NULL;\ X (void) sigsetmask(omask);\ X } X X! # define FREE_DIR(fd)\ X {\ X sigmask_t omask;\ X! omask = sighold (SIGINT);\ X! (void) closedir (fd);\ X fd = NULL;\ X (void) sigsetmask(omask);\ X } X X- #else X- X- # define FREE_ITEMS(items,num)\ X- {\ X- sighold (SIGINT);\ X- free_items (items,num);\ X- items = NULL;\ X- (void) sigrelse (SIGINT);\ X- } X- X- # define FREE_DIR(fd)\ X- {\ X- sighold (SIGINT);\ X- (void) closedir (fd);\ X- fd = NULL;\ X- (void) sigrelse (SIGINT);\ X- } X- X- #endif X- X #ifndef TRUE X! # define TRUE 1 X #endif X #ifndef FALSE X! # define FALSE 0 X #endif X #define ON 1 X #define OFF 0 X #define FILSIZ 256 /* Max reasonable file name length */ X--- 38,68 ---- X #ifndef _h_tw X #define _h_tw X X! #define FREE_ITEMS(items,num)\ X {\ X sigmask_t omask;\ X! omask = sighold(SIGINT);\ X! free_items(items,num);\ X items = NULL;\ X (void) sigsetmask(omask);\ X } X X! #define FREE_DIR(fd)\ X {\ X sigmask_t omask;\ X! omask = sighold(SIGINT);\ X! (void) closedir(fd);\ X fd = NULL;\ X (void) sigsetmask(omask);\ X } X X #ifndef TRUE X! #define TRUE 1 X #endif X #ifndef FALSE X! #define FALSE 0 X #endif X+ X #define ON 1 X #define OFF 0 X #define FILSIZ 256 /* Max reasonable file name length */ X*************** X*** 93,99 **** X X #define BUILTINS "/usr/local/lib/builtins/" /* fake builtin bin */ X #define SEARCHLIST "HPATH" /* Env. param for helpfile searchlist */ X! #define DEFAULTLIST ":/usr/man/cat1:/usr/man/cat8:/usr/man/cat6:/usr/local/man/cat1:/usr/local/man/cat8:/usr/local/man/cat6" /* if no HPATH */ X X extern Char PromptBuf[]; X X--- 73,79 ---- X X #define BUILTINS "/usr/local/lib/builtins/" /* fake builtin bin */ X #define SEARCHLIST "HPATH" /* Env. param for helpfile searchlist */ X! #define DEFAULTLIST ":/usr/man/cat1:/usr/man/cat8:/usr/man/cat6:/usr/local/man/cat1" /* if no HPATH */ X X extern Char PromptBuf[]; X X*************** X*** 102,119 **** X VARS_EXPAND X } COMMAND; X X- X- #ifndef pdp11 X- #define NUMCMDS_START 512 /* was 800 */ X- #define NUMCMDS_INCR 256 X- #define ITEMS_START 512 X- #define ITEMS_INCR 256 X- #else X #define NUMCMDS_START 256 /* was 800 */ X! #define NUMCMDS_INCR 128 X! #define ITEMS_START 256 X! #define ITEMS_INCR 128 X! #endif /* pdp11 */ X X #ifndef DONT_EXTERN X X--- 82,91 ---- X VARS_EXPAND X } COMMAND; X X #define NUMCMDS_START 256 /* was 800 */ X! #define NUMCMDS_INCR 128 /* was 128 */ X! #define ITEMS_START 256 /* was 512 */ X! #define ITEMS_INCR 128 /* was 256 */ X X #ifndef DONT_EXTERN X X*************** X*** 125,132 **** X X extern Char dirflag[5]; /* ' nn\0' - dir #s - . 1 2 ... */ X X- X #endif X #include "tw.decls.h" X X #endif /* _h_tw */ X--- 97,104 ---- X X extern Char dirflag[5]; /* ' nn\0' - dir #s - . 1 2 ... */ X X #endif X+ X #include "tw.decls.h" X X #endif /* _h_tw */ X*** ./usr/src/bin/tcsh/sh.exec.c.old Wed Aug 21 12:47:20 1991 X--- ./usr/src/bin/tcsh/sh.exec.c Thu Aug 20 21:49:56 2026 X*************** X*** 1,4 **** X- /* $Header: /home/hyperion/mu/christos/src/sys/tcsh-6.00/RCS/sh.exec.c,v 3.0 1991/07/04 21:49:28 christos Exp $ */ X /* X * sh.exec.c: Search, find, and execute a command! X */ X--- 1,3 ---- X*************** X*** 35,43 **** X * SUCH DAMAGE. X */ X #include "config.h" X! #if !defined(lint) && !defined(pdp11) X static char *rcsid() X! { return "$Id: sh.exec.c,v 3.0 1991/07/04 21:49:28 christos Exp $"; } X #endif X X #include "sh.h" X--- 34,42 ---- X * SUCH DAMAGE. X */ X #include "config.h" X! #if !defined(lint) && defined(DOSCCS) X static char *rcsid() X! { return "$Id: sh.exec.c,v 3.1 2026/6/1 21:49:28 (2.11BSD) Exp $"; } X #endif X X #include "sh.h" X*************** X*** 189,200 **** X * We must do this AFTER any possible forking (like `foo` in glob) so that X * this shell can still do subprocesses. X */ X- #ifdef BSDSIGS X (void) sigsetmask((sigmask_t) 0); X- #else /* BSDSIGS */ X- (void) sigrelse(SIGINT); X- (void) sigrelse(SIGCHLD); X- #endif /* BSDSIGS */ X X /* X * If no path, no words in path, or a / in the filename then restrict the X--- 188,194 ---- X*************** X*** 301,318 **** X Vt = t; X #endif X errno = 0; /* don't use a previous error */ X- #ifdef apollo X- /* X- * If we try to execute an nfs mounted directory on the apollo, we X- * hang forever. So until apollo fixes that.. X- */ X- { X- struct stat stb; X- if (stat(f, &stb) == 0 && S_ISDIR(stb.st_mode)) X- errno = EISDIR; X- } X- if (errno == 0) X- #endif X (void) execv(f, t); X #ifdef VFORK X Vt = 0; X--- 295,300 ---- X*************** X*** 442,452 **** X void X dohash() X { X- #ifdef COMMENT X- struct stat stb; X- #endif X DIR *dirp; X! register struct dirent *dp; X register int cnt; X int i = 0; X struct varent *v = adrof(STRpath); X--- 424,431 ---- X void X dohash() X { X DIR *dirp; X! register struct direct *dp; X register int cnt; X int i = 0; X struct varent *v = adrof(STRpath); X*************** X*** 465,477 **** X dirp = opendir(short2str(*pv)); X if (dirp == NULL) X continue; X- #ifdef COMMENT /* this isn't needed. opendir won't open X- * non-dirs */ X- if (fstat(dirp->dd_fd, &stb) < 0 || !S_ISDIR(stb.st_mode)) { X- (void) closedir(dirp); X- continue; X- } X- #endif X while ((dp = readdir(dirp)) != NULL) { X if (dp->d_ino == 0) X continue; X--- 444,449 ---- X*************** X*** 518,524 **** X return ((int) h); X } X X! int X iscommand(name) X Char *name; X { X--- 490,496 ---- X return ((int) h); X } X X! static int X iscommand(name) X Char *name; X { X*** ./usr/src/bin/tcsh/sh.glob.c.old Tue Jan 7 20:25:04 2020 X--- ./usr/src/bin/tcsh/sh.glob.c Mon Sep 21 18:19:56 2026 X*************** X*** 33,39 **** X #include "config.h" X X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)sh.glob.c 3.2 (2.11BSD) 2020/1/7"; X #endif X X #include "sh.h" X--- 33,39 ---- X #include "config.h" X X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)sh.glob.c 3.3 (2.11BSD) 2026/7/23"; X #endif X X #include "sh.h" X*************** X*** 59,71 **** X X Char **gargv = NULL; X Char **pargv = NULL; X! #ifdef notdef X int gargc = 0; X int pargc = 0; X- #else X- long gargc = 0; X- long pargc = 0; X- #endif /* pdp11 */ X X /* X * globbing is now done in two stages. In the first pass we expand X--- 59,67 ---- X X Char **gargv = NULL; X Char **pargv = NULL; X! X int gargc = 0; X int pargc = 0; X X /* X * globbing is now done in two stages. In the first pass we expand X*************** X*** 90,98 **** X Char **nv, *s; X { X Char gbuf[MAXPATHLEN], *gstart, *b, *u, *e; X- #ifdef apollo X- int slash; X- #endif X X gstart = gbuf; X *gstart++ = *s++; X--- 86,91 ---- X*************** X*** 108,125 **** X stderror(ERR_NOHOME); X } X b = &gstart[Strlen(gstart)]; X- #ifdef apollo X- slash = gstart[0] == '/' && gstart[1] == '\0'; X- #endif X while (*s) X *b++ = *s++; X *b = EOS; X --u; X xfree((ptr_t) u); X- #ifdef apollo X- if (slash && gstart[1] == '/') X- gstart++; X- #endif X return (Strsave(gstart)); X } X X--- 101,111 ---- X*************** X*** 781,789 **** X X for (;; ++string) { X stringc = *string & TRIM; X- /* X- * apollo comp_r bug: switch (pat_c = *pattern++) { dies X- */ X pat_c = *pattern++; X switch (pat_c) { X case 0: X--- 767,772 ---- X*** ./usr/src/bin/tcsh/tc.const.c.old Wed Aug 21 12:50:30 1991 X--- ./usr/src/bin/tcsh/tc.const.c Thu Aug 20 15:59:31 2026 X*************** X*** 1,4 **** X- /* $Header: /home/hyperion/mu/christos/src/sys/tcsh-6.00/RCS/tc.const.c,v 3.0 1991/07/04 21:49:28 christos Exp $ */ X /* X * sh.const.c: String constants for tcsh. X */ X--- 1,3 ---- X*************** X*** 35,44 **** X * SUCH DAMAGE. X */ X #include "config.h" X! #if !defined(lint) && !defined(pdp11) X! static char *rcsid() X! { return "$Id: tc.const.c,v 3.0 1991/07/04 21:49:28 christos Exp $"; } X #endif X #include "sh.h" X X Char STRlogout[] = { 'l', 'o', 'g', 'o', 'u', 't', '\0' }; X--- 34,43 ---- X * SUCH DAMAGE. X */ X #include "config.h" X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)tc.const.c 3.1 (2.11BSD) 2026/7/23"; X #endif X+ X #include "sh.h" X X Char STRlogout[] = { 'l', 'o', 'g', 'o', 'u', 't', '\0' }; X*************** X*** 247,257 **** X #ifdef WARP X Char STRwarp[] = { 'w', 'a', 'r', 'p', '\0' }; X #endif /* WARP */ X- X- #ifdef apollo X- Char STRSYSTYPE[] = { 'S', 'Y', 'S', 'T', 'Y', 'P', 'E', '\0' }; X- Char STRoid[] = { 'o', 'i', 'd', '\0' }; X- Char STRbsd43[] = { 'b', 's', 'd', '4', '.', '3', '\0' }; X- Char STRsys53[] = { 's', 'y', 's', '5', '.', '3', '\0' }; X- Char STRver[] = { 'v', 'e', 'r', '\0' }; X- #endif /* apollo */ X--- 246,248 ---- X*** ./usr/src/bin/tcsh/ed.screen.c.old Wed Aug 21 12:24:30 1991 X--- ./usr/src/bin/tcsh/ed.screen.c Thu Aug 20 21:47:47 2026 X*************** X*** 1,4 **** X- /* $Header: /home/hyperion/mu/christos/src/sys/tcsh-6.00/RCS/ed.screen.c,v 3.0 1991/07/04 21:49:28 christos Exp $ */ X /* X * ed.screen.c: Editor/t_c_-curses interface X */ X--- 1,3 ---- X*************** X*** 35,43 **** X * SUCH DAMAGE. X */ X #include "config.h" X! #if !defined(lint) && !defined(pdp11) X! static char *rcsid() X! { return "$Id: ed.screen.c,v 3.0 1991/07/04 21:49:28 christos Exp $"; } X #endif X X #include "sh.h" X--- 34,41 ---- X * SUCH DAMAGE. X */ X #include "config.h" X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)ed.screen.c 3.1 (2.11BSD) 2026/7/23"; X #endif X X #include "sh.h" X*************** X*** 1178,1197 **** X extern char *getenv(); X struct t_c_str *t; X X- X- #ifdef SIG_WINDOW X- #ifdef BSDSIGS X sigmask_t omask; X- #endif /* BSDSIGS */ X int lins, cols; X X /* don't want to confuse things here */ X- #ifdef BSDSIGS X omask = sigblock(sigmask(SIG_WINDOW)) & ~sigmask(SIG_WINDOW); X! #else /* BSDSIGS */ X! (void) sighold(SIG_WINDOW); X! #endif /* BSDSIGS */ X! #endif /* SIG_WINDOW */ X area = buf; X X GotTermCaps = 1; X--- 1176,1187 ---- X extern char *getenv(); X struct t_c_str *t; X X sigmask_t omask; X int lins, cols; X X /* don't want to confuse things here */ X omask = sigblock(sigmask(SIG_WINDOW)) & ~sigmask(SIG_WINDOW); X! X area = buf; X X GotTermCaps = 1; X*************** X*** 1198,1225 **** X X setname("gett_c_s"); X ptr = getenv("TERM"); X- #ifdef apollo X- /* X- * If we are on a pad, we pretend that we are dumb. Otherwise the t_c_ X- * library will put us in a weird screen mode, thinking that we are going X- * to use curses X- */ X- if (isapad()) X- ptr = "dumb"; X- #endif X if (!ptr || !ptr[0]) X ptr = "dumb"; X X! setzero(bp, TC_BUFSIZ); X X i = tgetent(bp, ptr); X if (i <= 0) { X if (i == -1) { X- #if SVID == 0 X- xprintf("tcsh: Cannot open /etc/t_c_.\n"); X- } X- else if (i == 0) { X- #endif /* SVID */ X xprintf("tcsh: No entry for terminal type \"%s\"\n", X getenv("TERM")); X } X--- 1188,1201 ---- X X setname("gett_c_s"); X ptr = getenv("TERM"); X if (!ptr || !ptr[0]) X ptr = "dumb"; X X! bzero(bp, TC_BUFSIZ); X X i = tgetent(bp, ptr); X if (i <= 0) { X if (i == -1) { X xprintf("tcsh: No entry for terminal type \"%s\"\n", X getenv("TERM")); X } X*************** X*** 1280,1290 **** X (void) GetSize(&lins, &cols); /* get the correct window size */ X ChangeSize(lins, cols); X X- # ifdef BSDSIGS X (void) sigsetmask(omask); /* can change it again */ X- # else /* BSDSIGS */ X- (void) sigrelse(SIG_WINDOW); X- # endif /* BSDSIGS */ X #else /* SIG_WINDOW */ X ChangeSize(Val(T_li), Val(T_co)); X #endif /* SIG_WINDOW */ X--- 1256,1262 ---- X*** ./usr/src/bin/tcsh/config_f.h.old Wed Aug 21 12:24:27 1991 X--- ./usr/src/bin/tcsh/config_f.h Thu Aug 20 14:01:43 2026 X*************** X*** 1,4 **** X! /* $Header: /home/hyperion/mu/christos/src/sys/tcsh-6.00/RCS/config_f.h,v 3.0 1991/07/04 21:54:11 christos Exp $ */ X /* X * config_f.h -- configure various defines for tcsh X * X--- 1,6 ---- X! #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)config_f.h 2.0 (2.11BSD) 2026/7/23"; X! #endif X /* X * config_f.h -- configure various defines for tcsh X * X*************** X*** 69,91 **** X #undef VIDEFAULT X X /* X- * KAI use "bye" command and rename "log" to "watchlog" X- */ X- #undef KAI X- X- /* X * CSHDIRS save a history like stack of directories X */ X #define CSHDIRS X X /* X- * TESLA drops DTR on logout. Historical note: X- * tesla.ee.cornell.edu was a vax11/780 with a develcon X- * switch that sometimes would not hang up. X- */ X- #undef TESLA X- X- /* X * DOTLAST put "." last in the default path, for security reasons X */ X #define DOTLAST X--- 71,81 ---- X*************** X*** 98,121 **** X #undef AUTOLOGOUT X X /* X- * SUSPENDED Newer shells say 'Suspended' instead of 'Stopped'. X- * Define to get the same type of messages. X- */ X- #define SUSPENDED X- X- /* X * KANJI Ignore meta-next, and the ISO character set. Should X * be used with SHORT_STRINGS X * X */ X #undef KANJI X- X- /* X- * SYSMALLOC Use the system provided version of malloc and friends. X- * This can be much slower and no memory statistics will be X- * provided. X- */ X- #define SYSMALLOC X X /* X * TCLONGNAME print descriptive strings as well t_c_ names X--- 88,98 ---- X*** ./usr/src/bin/tcsh/sh.err.c.old Fri Dec 27 01:05:19 1991 X--- ./usr/src/bin/tcsh/sh.err.c Thu Jul 23 21:55:22 2026 X*************** X*** 1,4 **** X- /* $Header: /home/hyperion/mu/christos/src/sys/tcsh-6.00/RCS/sh.err.c,v 3.0 1991/07/04 21:49:28 christos Exp $ */ X /* X * sh.err.c: Error printing routines. There are lots of them X * and none does the right thing! X--- 1,3 ---- X*************** X*** 36,44 **** X * SUCH DAMAGE. X */ X #include "config.h" X! #if !defined(lint) && !defined(pdp11) X! static char *rcsid() X! { return "$Id: sh.err.c,v 3.0 1991/07/04 21:49:28 christos Exp $"; } X #endif X X #define _h_tc_err /* Don't redefine the errors */ X--- 35,43 ---- X * SUCH DAMAGE. X */ X #include "config.h" X! X! #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)sh.err.c 3.1 (2.11BSD) 2026/7/26"; X #endif X X #define _h_tc_err /* Don't redefine the errors */ X*************** X*** 195,205 **** X #define ERR_SYNC 64 X "Sunc fault: Process %d not found", X #define ERR_STOPPED 65 X- #ifdef SUSPENDED X "%sThere are suspended jobs", X- #else X- "%sThere are stopped jobs", X- #endif /* SUSPENDED */ X #define ERR_NODIR 66 X "No other directory", X #define ERR_EMPTY 67 X--- 194,200 ---- X*** ./usr/src/bin/tcsh/jpnerror.c.old Mon Aug 19 09:43:55 1991 X--- ./usr/src/bin/tcsh/jpnerror.c Fri Jul 24 21:46:31 2026 X*************** X*** 1,4 **** X--- 1,9 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)jpnerror.c 1.1 (2.11BSD) 2026/7/24"; X+ #endif X+ X #include X+ #include X #include "config.h" X #include "sh.h" X X*************** X*** 24,41 **** X */ X efil = open(efilname, O_RDONLY); X if (efil < 0) { X! perror(efilname); X exit(2); X } X if (lseek(efil, (long)a1,0) == -1) { X! printf("lseek of mkstr file failed\n"); X! perror(efilname); X! exit(2); X } X if (read(efil, buf, 256) <= 0) { X! printf("read of mkstr file failed\n"); X! perror(efilname); X! exit(2); X } X close(efil); X xprintf(buf, a2, a3, a4); X--- 29,44 ---- X */ X efil = open(efilname, O_RDONLY); X if (efil < 0) { X! printf("open %s %d\n", efilname, errno); X exit(2); X } X if (lseek(efil, (long)a1,0) == -1) { X! printf("lseek %s %d\n", efilname, errno); X! exit(2); X } X if (read(efil, buf, 256) <= 0) { X! printf("read %s %d\n", efilname, errno); X! exit(2); X } X close(efil); X xprintf(buf, a2, a3, a4); X*** ./usr/src/bin/tcsh/sh.types.h.old Thu Jan 5 21:28:48 1995 X--- ./usr/src/bin/tcsh/sh.types.h Thu Aug 20 15:58:52 2026 X*************** X*** 1,16 **** X! /* $Header: /home/hyperion/mu/christos/src/sys/tcsh-6.00/RCS/sh.types.h,v 3.0 1991/07/04 23:38:32 christos Exp $ */ X /* sh.types.h: Do the necessary typedefs for each system. X- * Up till now I avoided making this into a separate file X- * But I just wanted to eliminate the whole mess from sh.h X * In reality this should not be here! It is OS and MACHINE X * dependent, even between different revisions of OS's... X! * Ideally there should be a way in c, to find out if something X! * was typedef'ed, but unfortunately we rely in cpp kludges. X! * Someday, this file will be removed... X! * X! * christos X! */ X! /*- X * Copyright (c) 1980, 1991 The Regents of the University of California. X * All rights reserved. X * X--- 1,12 ---- X! /* @(#)sh.types.h 2.0 (2.11BSD) 2026/8/20 */ X! X /* sh.types.h: Do the necessary typedefs for each system. X * In reality this should not be here! It is OS and MACHINE X * dependent, even between different revisions of OS's... X! * X! * Reduce to only defines necessary for 2.11BSD. Anyone wants to port this X! * back to hpux, dgux, sunos, aix can start from the original sources. X! * X * Copyright (c) 1980, 1991 The Regents of the University of California. X * All rights reserved. X * X*************** X*** 45,351 **** X #ifndef _h_sh_types X #define _h_sh_types X X X! /*** X! *** Suns running sunos4.1 X! ***/ X! #ifdef sun X! /* This used to be long, but lint dissagrees... */ X! # ifndef _SIGMASK_T X! # define _SIGMASK_T X! typedef int sigmask_t; X! # endif /* _SIGMASK_T */ X! # ifndef _PTR_T X! # define _PTR_T X! # ifdef __GNUC__ X! typedef void * ptr_t; X! # else X! typedef char * ptr_t; X! # endif /* __GNUC__ */ X! # endif /* _PTR_T */ X! # ifndef _SIZE_T X! # define _SIZE_T X! # endif /* _SIZE_T */ X! # ifndef __sys_stdtypes_h X! # define __sys_stdtypes_h X! typedef int pid_t; X! typedef unsigned int speed_t; X! # endif /* __sys_stdtypes.h */ X! # ifndef _PID_T X! # define _PID_T X! # endif /* _PID_T */ X! # ifndef _SPEED_T X! # define _SPEED_T X! # endif /* _SPEED_T */ X! # ifdef notdef X! /* X! * This is what sun's lint wants, but the .h file disagree X! */ X! extern char *getwd(); X! extern time_t time(); X! extern int getuid(), geteuid(); X! extern int getgid(), getguid(); X! extern int _exit(); X! extern int abort(); X! extern int alarm(); X! extern void endpwent(); X! extern char *sbrk(); X! extern int sleep(); X! # endif /* notdef */ X! #endif /*sun */ X! X! X! /*** X! *** Hp's running hpux 7.0 X! ***/ X! #ifdef __hpux X! # ifndef _SIZE_T X! # define _SIZE_T X! typedef unsigned int size_t; X! # endif /* _SIZE_T */ X! X! # ifndef _PTR_T X! # define _PTR_T X! typedef void * ptr_t; X! # endif /* _PTR_T */ X! X! # ifndef _PID_T X! # define _PID_T X! typedef long pid_t; X! # endif /* _PID_T */ X! X! # ifndef _SIGMASK_T X! # define _SIGMASK_T X! typedef long sigmask_t; X! # endif /* _SIGMASK_T */ X X- # ifndef _SPEED_T X- /* I thought POSIX was supposed to protect all typedefs! */ X- # define _SPEED_T X- # endif /* _SPEED_T */ X- X- extern uid_t getuid(), geteuid(); X- extern gid_t getgid(), getegid(); X- extern sigmask_t sigblock(); X- extern sigmask_t sigsetmask(); X- #ifndef __hp9000s700 X- extern void sigpause(); X- extern sigmask_t sigspace(); X- #endif X- extern pid_t getpid(); X- extern pid_t fork(); X- extern void perror(); X- extern void _exit(); X- extern void abort(); X- extern void qsort(); X- extern void free(); X- extern unsigned int alarm(); X- extern unsigned int sleep(); X- #ifndef __hp9000s700 X- extern int lstat(); X- extern int readlink(); X- extern int sigvector(); X- extern int gethostname(); X- extern int ioctl(); X- extern int nice(); X- extern char *sbrk(); X- #endif X- #endif /* __hpux */ X- X- X- /*** X- *** Data General 88000, running dgux ??? X- ***/ X- #ifdef DGUX X /* X! * DGUX types X */ X! # ifndef _SIZE_T X! # define _SIZE_T X! typedef unsigned int size_t; X! # endif /* _SIZE_T */ X! #endif X! X! X! /*** X! *** a PFU/Fujitsu A-xx computer SX/A Edition 60 or later X! ***/ X! #ifdef SXA X! # ifndef _SIZE_T X! # define _SIZE_T X! # endif /* _SIZE_T */ X! #endif /* SXA */ X! X! X! /*** X! *** BSD systems, pre and post 4.3 X! ***/ X! #ifdef BSD X! extern uid_t getuid(), geteuid(); X! extern gid_t getgid(), getegid(); X! # ifndef _SIZE_T X! # define _SIZE_T X! # endif /* _SIZE_T */ X! #endif /* BSD */ X! /*** X! *** BSD 2_10 has some special needs X! ***/ X! #ifdef pdp11 X! # ifndef _SIGMASK_T X! # define _SIGMASK_T X! # ifndef sigmask_t X! # define sigmask_t sigm_t X! # endif X! typedef long sigm_t; X! # endif /* _SIGMASK_T */ X! #endif /* pdp11 */ X! X! /*** X! *** BSD RENO advertises itself as POSIX, but X! *** it is missing speed_t (newer versions of RENO have it) X! ***/ X! #ifdef RENO X! # ifndef _SPEED_T X! # define _SPEED_T X! /* typedef unsigned int speed_t; */ X! # endif /* _SPEED_T */ X! #endif /* RENO */ X! X! X! /*** X! *** rs6000, ibm370, ps2: running flavors of aix. X! ***/ X! #ifdef IBMAIX X! # ifndef _SIZE_T X! # define _SIZE_T X! # endif /* _SIZE_T */ X! # ifndef _PID_T X! # define _PID_T X! # endif /* _PID_T */ X! # ifdef _IBMR2 X! # ifndef _SPEED_T X! # define _SPEED_T X! # endif /* _SPEED_T */ X! # endif /* _IBMR2 */ X! #endif /* IBMAIX */ X! X! X! /*** X! *** Ultrix... X! ***/ X! #ifdef ultrix X! # ifndef _SIZE_T X! # define _SIZE_T X! # endif /* _SIZE_T */ X! # ifndef _PID_T X! # define _PID_T X! # endif /* _PID_T */ X! #endif /* ultrix */ X! X! X! /*** X! *** Silicon graphics IRIS4D running IRIX3_3 X! ***/ X! #if defined(IRIS4D) && defined(IRIX3_3) X! # ifndef _PID_T X! # define _PID_T X! # endif /* _PID_T */ X! #endif /* IRIS4D && IRIX3_3 */ X! X! X! /*** X! *** Sequent X! ***/ X! #ifdef sequent X! # ifndef _SIZE_T X! # define _SIZE_T X! # endif /* _SIZE_T */ X! #endif /* sequent */ X! X! /*** X! *** Apple AUX. X! ***/ X! #ifdef OREO X! # ifndef _SIZE_T X! # define _SIZE_T X! # endif /* _SIZE_T */ X! # ifndef _PID_T X! # define _PID_T X! # endif /* _PID_T */ X! #endif /* OREO */ X! X! /*** X! *** Intel 386, Hypercube X! ***/ X! #ifdef HYPERCUBE X! # ifndef _SIZE_T X! # define _SIZE_T X! # endif /* _SIZE_T */ X! #endif /* HYPERCUBE */ X! X! /*** X! *** Concurrent (Masscomp) running RTU 4.1A & RTU 5.0. X! *** Added, DAS DEC-90. X! ***/ X! #ifdef masscomp X! # ifndef _SIZE_T X! # define _SIZE_T X! # endif /* _SIZE_T */ X! #endif /* masscomp */ X! X! /*** X! *** Catch all for non POSIX systems. X! *** Posix things *should* define these automatically X! *** I am open to suggestions on how to do this correctly! X! ***/ X! #ifndef POSIX X! #ifndef pdp11 X! # ifndef _SIZE_T X! # define _SIZE_T X! typedef int size_t; /* As sun comments ??? : meaning I take it */ X! # endif /* _SIZE_T */ /* Until we make the world POSIX... */ X! X! # ifndef _PID_T X! # define _PID_T X! typedef int pid_t; X! # endif /* _PID_T */ X! #endif /* !pdp11 */ X! X! # ifndef _SPEED_T X! # define _SPEED_T X! typedef unsigned int speed_t; X! # endif /* _SPEED_T */ X! X! #ifndef _PTR_T X! # define _PTR_T X! typedef char * ptr_t; X! #endif /* _PTR_T */ X! X! #ifndef _IOCTL_T X! # define _IOCTL_T X! typedef char * ioctl_t; /* Third arg of ioctl */ X! #endif /* _IOCTL_T */ X! X! #endif /* ! POSIX */ X! X! X! X! /*** X! *** This is our own junk types. X! ***/ X! #ifndef _PTR_T X! # define _PTR_T X! typedef void * ptr_t; X! #endif /* _PTR_T */ X! X! #ifndef _SIGMASK_T X! # define _SIGMASK_T X! typedef int sigmask_t; X! #endif /* _SIGMASK_T */ X! X! #ifndef _IOCTL_T X! # define _IOCTL_T X! typedef void * ioctl_t; /* Third arg of ioctl */ X! #endif /* _IOCTL_T */ X X #endif /* _h_sh_types */ X--- 41,56 ---- X #ifndef _h_sh_types X #define _h_sh_types X X+ /* BSD systems, pre and post 4.3 */ X X! /** BSD 2_10 and 2_11 - special needs */ X! typedef long sigmask_t; X X /* X! * Catch all for non POSIX systems. X */ X! typedef unsigned int speed_t; X! typedef char * ptr_t; X! typedef char * ioctl_t; /* Third arg of ioctl */ X X #endif /* _h_sh_types */ X*** ./usr/src/bin/tcsh/tcsh.man.old Wed Dec 31 10:46:58 2008 X--- ./usr/src/bin/tcsh/tcsh.man Thu Aug 20 09:12:53 2026 X*************** X*** 1,5 **** X! .\" $Id: tcsh.man,v 3.0 1991/07/04 21:54:11 christos Exp $ X! .TH TCSH 1 "27 November 1996" X .SH NAME X tcsh \- C shell with file name completion and command line editing X .SH SYNOPSIS X--- 1,5 ---- X! .\" @(#)tcsh.man 3.1 (2.11BSD) 2026/8/20 X! .TH TCSH 1 "20 August 2026" X .SH NAME X tcsh \- C shell with file name completion and command line editing X .SH SYNOPSIS X*************** X*** 11,17 **** X .I argument .\|.\|. X ] X .SH DESCRIPTION X! .I Tcsh X is an enhanced version of the Berkeley UNIX C shell X .IR csh (1). X It behaves exactly like the C shell, X--- 11,17 ---- X .I argument .\|.\|. X ] X .SH DESCRIPTION X! .I tcsh X is an enhanced version of the Berkeley UNIX C shell X .IR csh (1). X It behaves exactly like the C shell, X*************** X*** 131,137 **** X Commands that the user types in may be edited using the same control X characters that Gnu Emacs or vi uses. Arrow and function key sequences are X also allowed. X! .I Tcsh X allows this by setting the terminal to `CBREAK' mode and reading the input X one character at a time. X .PP X--- 131,137 ---- X Commands that the user types in may be edited using the same control X characters that Gnu Emacs or vi uses. Arrow and function key sequences are X also allowed. X! .I tcsh X allows this by setting the terminal to `CBREAK' mode and reading the input X one character at a time. X .PP X*************** X*** 207,213 **** X escaping the special meaning of \e and ^. X Delete is written as "^?" (caret-question mark). X .PP X! .I Tcsh X always binds the arrow keys as defined by the termcap entry to: X .RS +.6i X .nf X--- 207,213 ---- X escaping the special meaning of \e and ^. X Delete is written as "^?" (caret-question mark). X .PP X! .I tcsh X always binds the arrow keys as defined by the termcap entry to: X .RS +.6i X .nf X*************** X*** 545,551 **** X been changed, then X .I tcsh X will change to using that speed. X! .I Tcsh X will also obey changes in the padding needed by the tty. X Some changes to the command keys will be obeyed, however if a command key X is unset, X--- 545,551 ---- X been changed, then X .I tcsh X will change to using that speed. X! .I tcsh X will also obey changes in the padding needed by the tty. X Some changes to the command keys will be obeyed, however if a command key X is unset, X*************** X*** 868,874 **** X > cd /uxr/spol/news[ESC s] X .RE X .sp X! .I Tcsh X will check the path for spelling, correct the mistakes, and redraw the X line as X .sp X--- 868,874 ---- X > cd /uxr/spol/news[ESC s] X .RE X .sp X! .I tcsh X will check the path for spelling, correct the mistakes, and redraw the X line as X .sp X*************** X*** 927,933 **** X not manual pages (although it can do manual pages also). X .PP X .SH "8. ENHANCED HISTORY MECHANISM" X! .I Tcsh X will save the history list between login sessions. It does this by X writing the current list to the file "~/.history" on logout, and X reading it in on login. For example, placing the line X--- 927,933 ---- X not manual pages (although it can do manual pages also). X .PP X .SH "8. ENHANCED HISTORY MECHANISM" X! .I tcsh X will save the history list between login sessions. It does this by X writing the current list to the file "~/.history" on logout, and X reading it in on login. For example, placing the line X*************** X*** 969,975 **** X .fi X .RE X .sp X! .I Tcsh X also supports the history escape X .I !#. X This undocumented X--- 969,975 ---- X .fi X .RE X .sp X! .I tcsh X also supports the history escape X .I !#. X This undocumented X*************** X*** 1027,1033 **** X .I autologout. X .PP X .SH "10. EXECUTION OF A COMMAND PRIOR TO EACH PROMPT" X! .I Tcsh X supports a special alias, X .I precmd, X which if set holds a command that will be executed before printing X--- 1027,1033 ---- X .I autologout. X .PP X .SH "10. EXECUTION OF A COMMAND PRIOR TO EACH PROMPT" X! .I tcsh X supports a special alias, X .I precmd, X which if set holds a command that will be executed before printing X*************** X*** 1044,1050 **** X should be used. X .PP X .SH "11. PERIODIC COMMAND EXECUTION" X! .I Tcsh X is now capable of providing periodic command execution X through the use of the shell variable X .I tperiod X--- 1044,1050 ---- X should be used. X .PP X .SH "11. PERIODIC COMMAND EXECUTION" X! .I tcsh X is now capable of providing periodic command execution X through the use of the shell variable X .I tperiod X*************** X*** 1192,1198 **** X -t switch to the \fIhistory\fR command. X .PP X .SH "14. DIRECTORY ACCESS" X! .I Tcsh X supports three new flags to control directory style printing for X cd, pushd, popd, and dirs: X .TP 4 X--- 1192,1198 ---- X -t switch to the \fIhistory\fR command. X .PP X .SH "14. DIRECTORY ACCESS" X! .I tcsh X supports three new flags to control directory style printing for X cd, pushd, popd, and dirs: X .TP 4 X*************** X*** 1208,1214 **** X Note that popd +n can be used to pop out stack entries of directories that X do not exist any more. X .PP X! .I Tcsh X will now allow the user to access all elements in the directory stack directly. X The syntax "=" is recognized by X .I tcsh X--- 1208,1214 ---- X Note that popd +n can be used to pop out stack entries of directories that X do not exist any more. X .PP X! .I tcsh X will now allow the user to access all elements in the directory stack directly. X The syntax "=" is recognized by X .I tcsh X*************** X*** 1241,1247 **** X .RE X .sp X .fi X! .I Tcsh X will complain if you ask for a directory stack item X which does not exist. X .PP X--- 1241,1247 ---- X .RE X .sp X .fi X! .I tcsh X will complain if you ask for a directory stack item X which does not exist. X .PP X*************** X*** 1326,1332 **** X .I chase_symlinks. X .PP X .SH "15. WATCHING FOR LOGINS AND LOGOUTS" X! .I Tcsh X has a mechanism so that the user can watch for login and logout X activity of any user or terminal in the system. X This is accomplished using the new special shell variable X--- 1326,1332 ---- X .I chase_symlinks. X .PP X .SH "15. WATCHING FOR LOGINS AND LOGOUTS" X! .I tcsh X has a mechanism so that the user can watch for login and logout X activity of any user or terminal in the system. X This is accomplished using the new special shell variable X*************** X*** 1443,1449 **** X "%n has %a %l." on systems that don't store the hostname. X .PP X .SH "16. TIMED EVENT LIST" X! .I Tcsh X now supports a scheduled-event list through the use of the command X .I sched. X This command gives the user a mechanism by which to arrange for other X--- 1443,1449 ---- X "%n has %a %l." on systems that don't store the hostname. X .PP X .SH "16. TIMED EVENT LIST" X! .I tcsh X now supports a scheduled-event list through the use of the command X .I sched. X This command gives the user a mechanism by which to arrange for other X*************** X*** 1661,1742 **** X .I HOST X to the result. X .PP X! .I Tcsh X also initializes the environment variable X .I HOSTTYPE X to a symbolic name for the type of computer that it is running on. X! This is useful when sharing a single X! physical directory between several types of machines (running NFS, for X! instance). For example, if the following is in X! .I .login: X! .sp X! .RS +.3i X! set path = (~/bin.$HOSTTYPE /usr/ucb /bin /usr/bin /usr/games .) X! .RE X! .sp X! and the user has directories named "bin.\fImachine\fR" (where X! .I machine X! is a name from the above list), then the user can have the same X! programs compiled for different machines in the appropriate X! "bin.\fImachine\fR" directories and X! .I tcsh X! will run the binary for the correct machine. X! .sp X! The current possible values are: X! .sp X! .ta 1.5i X! .nf X! \fIaix370\fR an IBM 370, running aix X! \fIalliant\fR an Alliant FX series X! \fIapollo\fR an Apollo running DomainOS X! \fIatt3b15\fR an AT&T 3b15 X! \fIatt3b20\fR an AT&T 3b20 X! \fIatt3b2\fR an AT&T 3b2 X! \fIatt3b5\fR an AT&T 3b5 X! \fIbalance\fR a Sequent Balance (32000 based) X! \fIbutterfly\fR a BBN Computer Butterfly 1000 X! \fIconvex\fR a Convex X! \fIdecstation\fR a DecStation XXXX X! \fIgould-np1\fR a Gould NP1 X! \fIhp300\fR an HP 9000, series 300, running mtXinu X! \fIhp800\fR an HP 9000, series 800, running mtXinu X! \fIhp9000s300\fR an HP 9000, series 300, running hpux X! \fIhp9000s700\fR an HP 9000, series 700, running hpux X! \fIhp9000s800\fR an HP 9000, series 800, running hpux X! \fIhp\fR an HP, running hpux X! \fIi386-mach\fR an Intel 386, running mach X! \fIiris4d\fR a Silicon Graphics Iris 4D X! \fIm88k\fR an mc88000 CPU machine X! \fImac2\fR an Apple Computer Macintosh II, running AUX X! \fImasscomp\fR a Concurrent (Masscomp), running RTU X! \fImips\fR another mips CPU X! \fImultimax\fR an Encore Computer Corp. Multimax (32000 based) X! \fInext\fR a NeXT computer X! \fInews\fR a Sony NEWS 800 or 1700 workstation X! \fInews_mips\fR a NeWS machine with mips CPU X! \fIns32000\fR an NS32000 CPU machine X! \fIpfa50\fR a PFU/Fujitsu A-xx computer X! \fIps2\fR an IBM PS/2, running aix X! \fIptx\fR a Sequent Symmetry running DYNIX/ptx (386/486 based) X! \fIpyramid\fR a Pyramid Technology computer (of any flavor) X! \fIrs6000\fR an IBM RS6000, running aix X! \fIrt\fR an IBM PC/RT, running BSD (AOS 4.3) or mach X! \fIrtpc\fR an IBM PC/RT, running aix X! \fIsun2\fR a Sun Microsystems series 2 workstation (68010 based) X! \fIsun386i\fR a Sun Microsystems 386i workstation (386 based) X! \fIsun3\fR a Sun Microsystems series 3 workstation (68020 based) X! \fIsun4\fR a Sun Microsystems series 4 workstation (SPARC based) X! \fIsun\fR a Sun workstation of none of the above types X! \fIsymmetry\fR a Sequent Symmetry running DYNIX 3 (386/486 based) X! \fItitan\fR an Stardent Titan X! \fIvax\fR a Digital Equipment Corp. Vax (of any flavor) X! .DT X! .fi X! .sp X! (The names of the machines are usually trade marks of the X! corresponding companies.) X .PP X! .I Tcsh X also initializes the shell variables X .I uid X and X--- 1661,1674 ---- X .I HOST X to the result. X .PP X! .I tcsh X also initializes the environment variable X .I HOSTTYPE X to a symbolic name for the type of computer that it is running on. X! This is useful when sharing a single \.tcshrc X! file between several types of machines. X .PP X! .I tcsh X also initializes the shell variables X .I uid X and X*************** X*** 1818,1824 **** X can do this even more easily. X .PP X .SH "24. STATUS LINE SUPPORT X! .I Tcsh X has a new builtin called X .I echotc X that allows the user to access the terminal capabilities from the command X--- 1750,1756 ---- X can do this even more easily. X .PP X .SH "24. STATUS LINE SUPPORT X! .I tcsh X has a new builtin called X .I echotc X that allows the user to access the terminal capabilities from the command X*************** X*** 1901,1907 **** X X .PP X .SH "25. EXECUTION OF A COMMAND AFTER CHANGING THE CURRENT WORKING DIRECTORY" X! .I Tcsh X now supports a special alias, X .I cwdcmd, X which if set holds a command that will be executed after changing the X--- 1833,1839 ---- X X .PP X .SH "25. EXECUTION OF A COMMAND AFTER CHANGING THE CURRENT WORKING DIRECTORY" X! .I tcsh X now supports a special alias, X .I cwdcmd, X which if set holds a command that will be executed after changing the X*************** X*** 1926,1932 **** X author's opinion that said user will get what he deserves. X .PP X .SH "26. NATIVE LANGUAGE SYSTEM" X! .I Tcsh X is eight bit clean (if so compiled, see the description of the X .I version X shell variable below), and will thus support character sets needing this X--- 1858,1864 ---- X author's opinion that said user will get what he deserves. X .PP X .SH "26. NATIVE LANGUAGE SYSTEM" X! .I tcsh X is eight bit clean (if so compiled, see the description of the X .I version X shell variable below), and will thus support character sets needing this X*************** X*** 1973,1979 **** X characters) will be printed using the \ennn format. X If the tty is not in 8 bit mode, other 8 bit characters will be printed by X converting them to ascii and using standout mode. X! .I Tcsh X will never change the 7/8 bit mode of the tty, and will track user-initiated X settings for this - i.e. it may be necessary for NLS users X (or, for that matter, those that want to use a Meta key) to explicitly set X--- 1905,1911 ---- X characters) will be printed using the \ennn format. X If the tty is not in 8 bit mode, other 8 bit characters will be printed by X converting them to ascii and using standout mode. X! .I tcsh X will never change the 7/8 bit mode of the tty, and will track user-initiated X settings for this - i.e. it may be necessary for NLS users X (or, for that matter, those that want to use a Meta key) to explicitly set X*************** X*** 2041,2170 **** X .sp X The default time format is "%Uu %Ss %E %P %X+%Dk %I+%Oio %Fpf+%Ww" for X systems that support resource usage reporting and "%Uu %Ss %E %P" for X! systems that do not. On 2BSD the default is "%Uu %Ss %E %P %I+%Oio %Vov %Wsw". X! .PP X! For Sequent's DYNIX/ptx %X, %D, %K, %r and %s are not supported. X! However, the following additional sequences are available. X .sp X! .RS +.6i X! .ta 1.2i 1.7i X! .nf X! %Y The number of system calls performed. X! %Z The number of pages which are zero-filled X! on demand. X! %i The number of times a process' resident X! set size was increased by the kernel. X! %d The number of times a process' resident X! set size was decreased by the kernel. X! %l The number of read system calls performed. X! %m The number of write system calls performed. X! %p the number of reads from raw disk devices. X! %q the number of writes to raw disk devices. X! .RE X! .DT X! .fi X! .sp X! The default time format for Sequent's DYNIX/ptx is X! "%Uu %Ss $E %P %I+%Oio %Fpf+%Ww". Also note that the X! CPU percentage can be higher than 100% on multi-processors. X! .PP X! .SH "28. OS/DEPENDENT BUILTIN SUPPORT" X! .sp X! .br X! .I "TRANSPARENT COMPUTING FACILITY" X! .PP X! On systems that support TCF (aix-ibm370, aix-ps2) the following builtins X! have been added: X! .TP 10 X! .B getspath X! Print the current system execution path. X! .TP 10 X! .B setspath LOCAL|| ... X! Set the current execution path. X! .sp X! .TP X! .B getxvers X! Print the current experimental version prefix. X! .sp X! .TP X! .B setxvers [] X! If the optional string is ommited, any experimental version prefix is removed. X! Otherwise the experimental version prefix is set to string. X! .sp X! .TP X! .B migrate [-] |% ... X! .PD 0 X! .TP X! .B migrate - X! .PD X! The first form migrates the process or job to the site specified or the X! default site determined by the system path. X! The second form, is equivalent to 'migrate - $$', i.e. migrates the X! current process to the site specified. Note: migrating X! .I tcsh X! itself can cause unexpected behavior, since the shell X! does not like to lose its tty. X! .sp X! .PP X! In addition, jobs will print the site the job is executing. X! .PP X! .sp X! .br X! .I "Domain/OS Support" X! .PP X! .TP X! .B inlib ... X! Inlib adds shared libraries to the current enviroment. There is no way X! to remove them... X! .TP X! .B rootnode // X! Change the name of the current rootnode. From now on, X! .I / X! will resolve to X! .I // X! .TP X! .B ver [] [] X! Without arguments, print X! .I $SYSTYPE; X! with the X! .I X! provided, set X! .I SYSTYPE X! to the one provided. Valid systypes are bsd4.3 and sys5.3. If a X! .I X! is X! argument is given, then X! .I X! is executed under the X! .I X! specified. X! .PP X! .sp X! .br X! .I "Mach" X! .PP X! .TP X! .B setpath ... X! XXX: What does it do? X! .PP X! .sp X! .br X! .I "Masscomp/RTU" X! .PP X! .TP X! .B universe ... X! Sets the current universe to the specified parameter. X! .PP X! .sp X! .br X! .I "Convex/OS" X! .PP X! .TP X! .B warp [] ... X! Without arguments prints the current value of the universe. With a universe X! argument it sets the current universe to the value of the argument. X! .sp X! .SH "29. WINDOW SIZE TRACKING" X On systems that support SIGWINCH or SIGWINDOW, X .I tcsh X adapts to window resizing automatically and adjusts the environment X--- 1973,1982 ---- X .sp X The default time format is "%Uu %Ss %E %P %X+%Dk %I+%Oio %Fpf+%Ww" for X systems that support resource usage reporting and "%Uu %Ss %E %P" for X! systems that do not. X .sp X! On 2BSD the default is "%Uu %Ss %E %P %I+%Oio %Vov %Wsw". X! .SH "28. WINDOW SIZE TRACKING" X On systems that support SIGWINCH or SIGWINDOW, X .I tcsh X adapts to window resizing automatically and adjusts the environment X*************** X*** 2171,2178 **** X variables LINES and COLUMNS if set. Also if the environment variable X TERMCAP contains li#, and co# fields, these will be adjusted also to X reflect the new window size. X! X! .SH "30. INPUT FILES" X On startup X .I tcsh X will try to source X--- 1983,1989 ---- X variables LINES and COLUMNS if set. Also if the environment variable X TERMCAP contains li#, and co# fields, these will be adjusted also to X reflect the new window size. X! .SH "29. INPUT FILES" X On startup X .I tcsh X will try to source X*************** X*** 2195,2217 **** X and then X .I "$HOME/.logout" X if the shell was a login shell. X! .sp X! Note: On X! .I convexos X! the names of the system default files are X! .I "/etc/cshrc", X! .I "/etc/login" X! and X! .I "/etc/logout" X! respectively and on X! .I irix X! or X! .I A/UX X! only the file X! .I "/etc/cshrc" X! is executed if the shell is a login shell. X! X! .SH "31. COMMAND LINE OPTIONS" X This section describes options that are either undocumented in X .I csh X (*) X--- 2006,2012 ---- X and then X .I "$HOME/.logout" X if the shell was a login shell. X! .SH "30. COMMAND LINE OPTIONS" X This section describes options that are either undocumented in X .I csh X (*) X*************** X*** 2269,2276 **** X COLUMNS -- Number of columns in terminal (see WINDOW SIZE) X .br X TERMCAP -- Terminal capability string (see WINDOW SIZE) X- .br X- SYSTYPE -- The current system type (Domain OS only) X .PP X .SH "NEW SHELL VARIABLES" X .br X--- 2064,2069 ---- X*** ./usr/src/bin/tcsh/sh.misc.c.old Tue Aug 20 14:13:02 1991 X--- ./usr/src/bin/tcsh/sh.misc.c Thu Aug 20 15:49:29 2026 X*************** X*** 1,4 **** X- /* $Header: /home/hyperion/mu/christos/src/sys/tcsh-6.00/RCS/sh.misc.c,v 3.2 1991/07/05 02:23:28 christos Exp $ */ X /* X * sh.misc.c: Miscelaneous functions X */ X--- 1,3 ---- X*************** X*** 37,43 **** X #include "config.h" X #if !defined(lint) && !defined(pdp11) X static char *rcsid() X! { return "$Id: sh.misc.c,v 3.2 1991/07/05 02:23:28 christos Exp $"; } X #endif X X #include "sh.h" X--- 36,42 ---- X #include "config.h" X #if !defined(lint) && !defined(pdp11) X static char *rcsid() X! { return "$Id: sh.misc.c,v 3.3 2026/8/20 02:23:28 (2.11BSD) Exp $"; } X #endif X X #include "sh.h" X*************** X*** 61,77 **** X return (0); X } X X- void X- setzero(cp, i) X- char *cp; X- int i; X- { X- if (i != 0) X- do X- *cp++ = 0; X- while (--i); X- } X- X char * X strsave(s) X register char *s; X--- 60,65 ---- X*************** X*** 303,309 **** X X if (i == j || i < 0) X return (i); X! #ifdef DUP2 X if (j >= 0) { X (void) dup2(i, j); X if (j != i) X--- 291,297 ---- X X if (i == j || i < 0) X return (i); X! X if (j >= 0) { X (void) dup2(i, j); X if (j != i) X*************** X*** 310,316 **** X (void) close(i); X return (j); X } X! #endif X j = dcopy(i, j); X if (j != i) X (void) close(i); X--- 298,304 ---- X (void) close(i); X return (j); X } X! X j = dcopy(i, j); X if (j != i) X (void) close(i); X*************** X*** 324,335 **** X X if (i == j || i < 0 || j < 0 && i > 2) X return (i); X! #ifdef DUP2 X if (j >= 0) { X (void) dup2(i, j); X return (j); X } X! #endif X (void) close(j); X return (renum(i, j)); X } X--- 312,323 ---- X X if (i == j || i < 0 || j < 0 && i > 2) X return (i); X! X if (j >= 0) { X (void) dup2(i, j); X return (j); X } X! X (void) close(j); X return (renum(i, j)); X } X*** ./usr/src/bin/tcsh/tc.sig.h.old Wed Aug 21 13:18:34 1991 X--- ./usr/src/bin/tcsh/tc.sig.h Mon Sep 21 20:13:01 2026 X*************** X*** 1,7 **** X- /* $Header: /home/hyperion/mu/christos/src/sys/tcsh-6.00/RCS/tc.sig.h,v 3.0 1991/07/04 23:34:26 christos Exp $ */ X /* X! * tc.sig.h: Signal handling X! * X */ X /*- X * Copyright (c) 1980, 1991 The Regents of the University of California. X--- 1,5 ---- X /* X! * @(#)tc.sig.h 2.0 (2.11BSD) 2026/8/20 X */ X /*- X * Copyright (c) 1980, 1991 The Regents of the University of California. X*************** X*** 38,178 **** X #ifndef _h_tc_sig X #define _h_tc_sig X X! #if SVID > 0 X! # include X! # ifndef SIGCHLD X! # define SIGCHLD SIGCLD X! # endif /* SIGCHLD */ X! #else /* SVID == 0 */ X! # include X! #endif /* SVID > 0 */ X X- #ifdef sun X- # define SAVESIGVEC X- #endif X- X- #ifdef BSDSIGS X /* X * sigvec is not the same everywhere X */ X! # ifdef _SEQUENT_ X! # define HAVE_SIGVEC X! # define mysigvec(a, b, c) sigaction(a, b, c) X! typedef struct sigaction sigvec_t; X! # define sv_handler sa_handler X! # endif /* _SEQUENT */ X! X! # ifdef hpux X! # define HAVE_SIGVEC X! # define mysigvec(a, b, c) sigvector(a, b, c) X! # define NEEDsignal X! typedef struct sigvec sigvec_t; X! # endif /* hpux */ X! X! # ifndef HAVE_SIGVEC X # define mysigvec(a, b, c) sigvec(a, b, c) X typedef struct sigvec sigvec_t; X! # endif /* HAVE_SIGVEC */ X X- # undef HAVE_SIGVEC X- #endif /* BSDSIGS */ X- X- #if SVID > 0 X- # ifdef BSDJOBS X- /* here I assume that systems that have bsdjobs implement the X- * the setpgrp call correctly. Otherwise defining this would X- * work, but it would kill the world, because all the setpgrp X- * code is the the part defined when BSDJOBS are defined X- * NOTE: we don't want killpg(a, b) == kill(-getpgrp(a), b) X- * cause process a might be already dead and getpgrp would fail X- */ X- # define killpg(a, b) kill(-(a), (b)) X- # else X- /* this is the poor man's version of killpg()! Just kill the X- * current process and don't worry about the rest. Someday X- * I hope I get to fix that. X- */ X- # define killpg(a, b) kill((a), (b)) X- # endif /* BSDJOBS */ X- #endif /* SVID > 0 */ X- X- X- #ifdef BSDSIGS X /* X * For 4.2bsd signals. X */ X # ifdef sigmask X! # undef sigmask X # endif /* sigmask */ X # define sigmask(s) ((sigmask_t)1 << ((s)-1)) X! # ifdef _SEQUENT_ X! # define sigpause(a) b_sigpause(a) X! # define signal(a, b) sigset(a, b) X! # else /* _SEQUENT_ */ X! # define sighold(s) sigblock(sigmask(s)) X! # define sigignore(s) signal(s, SIG_IGN) X! # define sigset(s, a) signal(s, a) X! # endif /* _SEQUENT_ */ X! # ifdef aiws X! # define sigrelse(a) sigsetmask(sigblock(0) & ~sigmask(a)) X! # undef killpg X! # define killpg(a, b) kill(-getpgrp(a), b) X! # define NEEDsignal X! # endif /* aiws */ X! #endif /* BSDSIGS */ X X- X /* X * We choose a define for the window signal if it exists.. X */ X! #ifdef SIGWINCH X! # define SIG_WINDOW SIGWINCH X! #else X! # ifdef SIGWINDOW X! # define SIG_WINDOW SIGWINDOW X! # endif /* SIGWINDOW */ X! #endif /* SIGWINCH */ X! X! #if defined(convex) || defined(__convex__) X! # define SIGSYNCH 0 X! # ifdef SIGSYNCH X! # define SYNCHMASK (sigmask(SIGCHLD)|sigmask(SYNCH_SIG)) X! # else X! # define SYNCHMASK (sigmask(SIGCHLD)) X! # endif X! extern sigret_t synch_handler(); X! #endif /* convex || __convex__ */ X! X! #ifdef SAVESIGVEC X! # define NSIGSAVED 7 X! /* X! * These are not inline for speed. gcc -traditional -O on the sparc ignores X! * the fact that vfork() corrupts the registers. Calling a routine is not X! * nice, since it can make the comp_r put some things that we want saved X! * into registers - christos X! */ X! # define savesigvec(sv) \ X! (mysigvec(SIGINT, (sigvec_t *) 0, &(sv)[0]), \ X! mysigvec(SIGQUIT, (sigvec_t *) 0, &(sv)[1]), \ X! mysigvec(SIGTSTP, (sigvec_t *) 0, &(sv)[2]), \ X! mysigvec(SIGTTIN, (sigvec_t *) 0, &(sv)[3]), \ X! mysigvec(SIGTTOU, (sigvec_t *) 0, &(sv)[4]), \ X! mysigvec(SIGTERM, (sigvec_t *) 0, &(sv)[5]), \ X! mysigvec(SIGHUP, (sigvec_t *) 0, &(sv)[6]), \ X! sigblock(sigmask(SIGINT) | sigmask(SIGQUIT) | \ X! sigmask(SIGTSTP) | sigmask(SIGTTIN) | \ X! sigmask(SIGTTOU) | sigmask(SIGTERM) | \ X! sigmask(SIGHUP))) X! X! # define restoresigvec(sv, sm) \ X! (void) (mysigvec(SIGINT, &(sv)[0], (sigvec_t *) 0), \ X! mysigvec(SIGQUIT, &(sv)[1], (sigvec_t *) 0), \ X! mysigvec(SIGTSTP, &(sv)[2], (sigvec_t *) 0), \ X! mysigvec(SIGTTIN, &(sv)[3], (sigvec_t *) 0), \ X! mysigvec(SIGTTOU, &(sv)[4], (sigvec_t *) 0), \ X! mysigvec(SIGTERM, &(sv)[5], (sigvec_t *) 0), \ X! mysigvec(SIGHUP, &(sv)[6], (sigvec_t *) 0), \ X! sigsetmask(sm)) X! # endif /* SAVESIGVEC */ X! X #endif /* _h_tc_sig */ X--- 36,65 ---- X #ifndef _h_tc_sig X #define _h_tc_sig X X! #include X X /* X * sigvec is not the same everywhere X */ X! #ifndef HAVE_SIGVEC X # define mysigvec(a, b, c) sigvec(a, b, c) X typedef struct sigvec sigvec_t; X! #endif /* HAVE_SIGVEC */ X! #undef HAVE_SIGVEC X X /* X * For 4.2bsd signals. X */ X # ifdef sigmask X! # undef sigmask X # endif /* sigmask */ X # define sigmask(s) ((sigmask_t)1 << ((s)-1)) X! # define sighold(s) sigblock(sigmask(s)) X! # define sigignore(s) signal(s, SIG_IGN) X! # define sigset(s, a) signal(s, a) X X /* X * We choose a define for the window signal if it exists.. X */ X! #define SIG_WINDOW SIGWINCH X #endif /* _h_tc_sig */ X*** ./usr/src/bin/tcsh/tc.os.h.old Wed Aug 21 13:18:33 1991 X--- ./usr/src/bin/tcsh/tc.os.h Mon Jun 1 16:29:32 2026 X*************** X*** 1,5 **** X- /* $Header: /home/hyperion/mu/christos/src/sys/tcsh-6.00/RCS/tc.os.h,v 3.1 1991/07/05 19:07:33 christos Exp $ */ X /* X * tc.os.h: Shell os dependent defines X */ X /*- X--- 1,6 ---- X /* X+ * @(#)tc.os.h 2.0 (2.11BSD) 2026/6/1 X+ * X * tc.os.h: Shell os dependent defines X */ X /*- X*************** X*** 37,406 **** X #ifndef _h_tc_os X #define _h_tc_os X X! #ifdef OREO X #include X- #include X- #endif /* OREO */ X X! #ifdef titan X! extern int end; X! #endif /* titan */ X X! #ifdef hpux X! # ifdef lint X! /* X! * Hpux defines struct ucred, in , but if I include that X! * then I need to include the *world* X! * [all this to pass lint cleanly!!!] X! * so I define struct ucred here... X! */ X! struct ucred { X! int foo; X! }; X! # endif /* lint */ X X- /* X- * hpux 7.0 does not define it X- */ X- # ifndef CSUSP X- # define CSUSP 032 X- # endif /* CSUSP */ X- X- # include X- X- # ifndef POSIX X- # ifdef BSDJOBS X- # define getpgrp(a) getpgrp2(a) X- # define setpgrp(a, b) setpgrp2(a, b) X- # endif /* BSDJOBS */ X- # endif /* POSIX */ X- #endif /* hpux */ X- X- #ifdef HYPERCUBE X- /* X- * for struct winsiz X- */ X- # include X- # include X- # define NEEDgethostname X- #endif /* HYPERCUBE */ X- X- #ifdef IRIS4D X- # include X- # include X- /* X- * BSDsetpgrp() and BSDgetpgrp() are BSD versions of setpgrp, etc. X- */ X- # define setpgrp BSDsetpgrp X- # define getpgrp BSDgetpgrp X- #endif /* IRIS4D */ X- X- /* X- * Stat X- */ X- #ifdef ISC X- /* these are not defined for _POSIX_SOURCE under ISC 2.2 */ X- # ifndef S_IFMT X- # define S_IFMT 0170000 /* type of file */ X- # define S_IFDIR 0040000 /* directory */ X- # define S_IFCHR 0020000 /* character special */ X- # define S_IFBLK 0060000 /* block special */ X- # define S_IFREG 0100000 /* regular */ X- # define S_IFIFO 0010000 /* fifo */ X- # define S_IFNAM 0050000 /* special named file */ X- # endif /* S_IFMT */ X- #endif /* ISC */ X- X- #ifdef S_IFMT X- # if !defined(S_ISDIR) && defined(S_IFDIR) X- # define S_ISDIR(a) (((a) & S_IFMT) == S_IFDIR) X- # endif /* ! S_ISDIR && S_IFDIR */ X- # if !defined(S_ISCHR) && defined(S_IFCHR) X- # define S_ISCHR(a) (((a) & S_IFMT) == S_IFCHR) X- # endif /* ! S_ISCHR && S_IFCHR */ X- # if !defined(S_ISBLK) && defined(S_IFBLK) X- # define S_ISBLK(a) (((a) & S_IFMT) == S_IFBLK) X- # endif /* ! S_ISBLK && S_IFBLK */ X- # if !defined(S_ISREG) && defined(S_IFREG) X- # define S_ISREG(a) (((a) & S_IFMT) == S_IFREG) X- # endif /* ! S_ISREG && S_IFREG */ X- # if !defined(S_ISFIFO) && defined(S_IFIFO) X- # define S_ISFIFO(a) (((a) & S_IFMT) == S_IFIFO) X- # endif /* ! S_ISFIFO && S_IFIFO */ X- # if !defined(S_ISNAM) && defined(S_IFNAM) X- # define S_ISNAM(a) (((a) & S_IFMT) == S_IFNAM) X- # endif /* ! S_ISNAM && S_IFNAM */ X- # if !defined(S_ISNAM) && defined(S_IFNAM) X- # define S_ISNAM(a) (((a) & S_IFMT) == S_IFNAM) X- # endif /* ! S_ISNAM && S_IFNAM */ X- # if !defined(S_ISLNK) && defined(S_IFLNK) X- # define S_ISLNK(a) (((a) & S_IFMT) == S_IFLNK) X- # endif /* ! S_ISLNK && S_IFLNK */ X- # if !defined(S_ISSOCK) && defined(S_IFSOCK) X- # define S_ISSOCK(a) (((a) & S_IFMT) == S_IFSOCK) X- # endif /* ! S_ISSOCK && S_IFSOCK */ X- #endif /* S_IFMT */ X- X- #ifndef S_IEXEC X- # define S_IEXEC 0000100 X- #endif /* S_IEXEC */ X- #ifndef S_IXOTH X- # define S_IXOTH (S_IEXEC >> 6) X- #endif /* S_IXOTH */ X- #ifndef S_IXGRP X- # define S_IXGRP (S_IEXEC >> 3) X- #endif /* S_IXGRP */ X- #ifndef S_IXUSR X- # define S_IXUSR S_IEXEC X- #endif /* S_IXUSR */ X- X- /* X- * Access() X- */ X- #ifndef F_OK X- # define F_OK 0 X- #endif /* F_OK */ X- #ifndef X_OK X- # define X_OK 1 X- #endif /* X_OK */ X- #ifndef W_OK X- # define W_OK 2 X- #endif /* W_OK */ X- #ifndef R_OK X- # define R_OK 4 X- #endif /* R_OK */ X- X- /* X- * Open() X- */ X- #ifndef O_RDONLY X- # define O_RDONLY 0 X- #endif /* O_RDONLY */ X- #ifndef O_WRONLY X- # define O_WRONLY 1 X- #endif /* O_WRONLY */ X- #ifndef O_RDWR X- # define O_RDWR 2 X- #endif /* O_RDWR */ X- X- /* X- * Lseek() X- */ X- #ifndef L_SET X- # ifdef SEEK_SET X- # define L_SET SEEK_SET X- # else X- # define L_SET 0 X- # endif /* SEEK_SET */ X- #endif /* L_SET */ X- #ifndef L_INCR X- # ifdef SEEK_CUR X- # define L_INCR SEEK_CUR X- # else X- # define L_INCR 1 X- # endif /* SEEK_CUR */ X- #endif /* L_INCR */ X- #ifndef L_XTND X- # ifdef SEEK_END X- # define L_XTND SEEK_END X- # else X- # define L_XTND 2 X- # endif /* SEEK_END */ X- #endif /* L_XTND */ X- X- #ifdef _SEQUENT_ X- # define NEEDgethostname X- #endif /* _SEQUENT_ */ X- X- #if defined(BSD) && defined(POSIXJOBS) X- # define setpgid(pid, pgrp) setpgrp(pid, pgrp) X- #endif /* BSD && POSIXJOBS */ X- X- #if defined(BSDJOBS) && !(defined(POSIX) && defined(POSIXJOBS)) X- # if !defined(_AIX370) && !defined(_AIXPS2) X- # define setpgid(pid, pgrp) setpgrp(pid, pgrp) X- # endif /* !_AIX370 && !_AIXPS2 */ X- # define tcsetpgrp(fd, pgrp) ioctl((fd), TIOCSPGRP, (ioctl_t) &(pgrp)) X- # define NEEDtcgetpgrp X- #endif /* BSDJOBS && !(POSIX && POSIXJOBS) */ X- X- #ifdef RENO X- /* X- * Older versions of RENO had this broken. It is fixed now. X- * In any case, we use ours... X- */ X- # define tcsetpgrp(fd, pgrp) ioctl((fd), TIOCSPGRP, (ioctl_t) &(pgrp)) X- # define NEEDtcgetpgrp X- #endif /* RENO */ X- X- #ifdef DGUX X- # define setpgrp(a, b) setpgrp2(a, b) X- # define getpgrp(a) getpgrp2(a) X- #endif /* DGUX */ X- X- #ifdef SXA X- # ifndef BSDNICE X- /* X- * We check BSDNICE cause this is not defined in config.sxa. X- * Only needed in the system V environment. X- */ X- # define setrlimit(a, b) b_setrlimit(a, b) X- # define getrlimit(a, b) b_getrlimit(a, b) X- # endif /* BSDNICE */ X- # ifndef NOFILE X- # define NOFILE 64 X- # endif /* NOFILE */ X- #endif /* SXA */ X- X- #ifndef POSIX X- # define mygetpgrp() getpgrp(0) X- #else /* POSIX */ X- # if defined(BSD) || defined(sun) X- # define mygetpgrp() getpgrp(0) X- # else /* BSD || sun */ X- # define mygetpgrp() getpgrp() X- # endif /* BSD || sun */ X- #endif /* POSIX */ X- X- X- #if SVID > 0 && !defined(OREO) && !defined(IRIS4D) X- # define NEEDgetwd X- #endif /* SVID > 0 && !OREO && !IRIS4D */ X- X- #ifndef S_IFLNK X- # define lstat stat X- #endif /* S_IFLNK */ X- X- X- #if defined(BSDTIMES) && !defined(_SEQUENT_) X typedef struct timeval tmval_t; X- #endif /* BSDTIMES && ! _SEQUENT_ */ X X! #ifdef NeXT X! /* X! * From Tony_Mason@transarc.com, override NeXT's malloc stuff. X! */ X! # define malloc tcsh_malloc X! # define calloc tcsh_calloc X! # define realloc tcsh_realloc X! # define free tcsh_free X! #endif /* NeXT */ X! X! X! #if !defined(POSIX) || defined(sun) X! extern time_t time(); X! extern char *getenv(); X! extern int atoi(); X! extern char *ttyname(); X! X! # ifndef hpux X! extern int abort(); X! extern int qsort(); X! # else X! extern void abort(); X! extern void qsort(); X! # endif X! extern void perror(); X! X! # ifndef NEEDgethostname X! extern int gethostname(); X! # endif X! X! # ifdef pdp11 X! # ifdef BUFSIZ X! # undef BUFSIZ X! # endif X! # define BUFSIZ 512 X! # endif X! X! # ifdef BSDSIGS X! # if defined(_AIX370) || defined(MACH) || defined(NeXT) || defined(_AIXPS2) X! extern int sigvec(); X! extern int sigpause(); X! # else /* _AIX370 || MACH || NeXT || _AIXPS2 */ X! extern sigret_t sigvec(); X! extern void sigpause(); X! # endif /* _AIX370 || MACH || NeXT || _AIXPS2 */ X! # ifndef pdp11 X! extern sigmask_t sigblock(); X! extern sigmask_t sigsetmask(); X! # else X! /* #define sigmask_t sigm_t in compat.h to avoid 7-char conflict with sigmask */ X! extern sigmask_t sigblock(); X! extern sigmask_t sigsetmask(); X! # endif /* pdp11 */ X! # endif /* BSDSIGS */ X! X! # ifndef killpg X! extern int killpg(); X! # endif /* killpg */ X! X! # ifndef lstat X! extern int lstat(); X! # endif /* lstat */ X! X! # ifdef SYSMALLOC X! extern memalign_t malloc(); X! extern memalign_t realloc(); X! extern memalign_t calloc(); X! extern void free(); X! # endif /* SYSMALLOC */ X! X! # ifdef BSDTIMES X! extern int getrlimit(); X! extern int setrlimit(); X! extern int getrusage(); X! extern int gettimeofday(); X! # endif /* BSDTIMES */ X! X! # if defined(NLS) && !defined(NOSTRCOLL) && !defined(NeXT) X! extern int strcoll(); X! # endif X! X! # ifdef BSDJOBS X! # ifdef BSDTIMES X! extern int wait3(); X! # else /* ! BSDTIMES */ X! # if !defined(POSIXJOBS) && !defined(_SEQUENT_) X! extern int wait3(); X! # else /* POSIXJOBS || _SEQUENT_ */ X! extern int waitpid(); X! # endif /* POSIXJOBS || _SEQUENT_ */ X! # endif /* ! BSDTIMES */ X! # else /* !BSDJOBS */ X! # if SVID < 3 X! extern int ourwait(); X! # else /* SVID >= 3 */ X! extern int wait(); X! # endif /* SVID >= 3 */ X! # endif /* ! BSDJOBS */ X! X! # ifdef BSDNICE X! extern int setpriority(); X! # else /* !BSDNICE */ X! extern int nice(); X! # endif /* !BSDNICE */ X! X! #ifdef pdp11 X! extern int setpwent(); X! #else X! extern void setpwent(); X #endif X- extern void endpwent(); X- extern struct passwd *getpwuid(), *getpwnam(), *getpwent(); X- X- # ifndef getwd X- extern char *getwd(); X- # endif /* getwd */ X- #else /* POSIX */ X- X- # if defined(sun) && !defined(__GNUC__) X- extern char *getwd(); X- # endif /* sun && ! __GNUC__ */ X- X- # ifdef RENO X- extern void perror(); /* Reno declares that in stdio.h :-( */ X- # endif /* RENO */ X- #endif /* POSIX */ X X #endif /* _h_tc_os */ X--- 38,58 ---- X #ifndef _h_tc_os X #define _h_tc_os X X! #include X! #include X #include X X! #define S_ISLNK(a) (((a) & S_IFMT) == S_IFLNK) X X! #define setpgid(pid, pgrp) setpgrp(pid, pgrp) X! #define tcsetpgrp(fd, pgrp) ioctl((fd), TIOCSPGRP, (ioctl_t) &(pgrp)) X! #define mygetpgrp() getpgrp(0) X X typedef struct timeval tmval_t; X X! #ifdef BUFSIZ X! #undef BUFSIZ X! #define BUFSIZ 512 X #endif X X #endif /* _h_tc_os */ X*** ./usr/src/bin/tcsh/tc.decls.h.old Tue Jan 7 20:29:40 2020 X--- ./usr/src/bin/tcsh/tc.decls.h Mon Sep 21 17:58:27 2026 X*************** X*** 36,42 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)tw.decls.h 3.1 (2.11BSD) 2020/1/7"; X #endif X X #ifndef _h_tc_decls X--- 36,42 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)tw.decls.h 3.2 (2.11BSD) 2026/6/1"; X #endif X X #ifndef _h_tc_decls X*************** X*** 45,62 **** X /* X * tc.alloc.c X */ X- #ifndef SYSMALLOC X- extern void free __P((ptr_t)); X- extern memalign_t malloc __P((size_t)); X- extern memalign_t realloc __P((ptr_t, size_t)); X- extern memalign_t calloc __P((size_t, size_t)); X- X- #else /* SYSMALLOC */ X extern void Free __P((ptr_t)); X extern memalign_t Malloc __P((size_t)); X extern memalign_t Realloc __P((ptr_t, size_t)); X extern memalign_t Calloc __P((size_t, size_t)); X- #endif /* SYSMALLOC */ X extern void showall __P((void)); X X /* X--- 45,54 ---- X*************** X*** 88,94 **** X extern void dowhich __P((Char **)); X extern struct process *find_stop_ed __P((void)); X extern void fg_proc_entry __P((struct process *)); X! extern sigret_t alrmcatch __P((int)); X extern void precmd __P((void)); X extern void cwd_cmd __P((void)); X extern void period_cmd __P((void)); X--- 80,86 ---- X extern void dowhich __P((Char **)); X extern struct process *find_stop_ed __P((void)); X extern void fg_proc_entry __P((struct process *)); X! extern void alrmcatch __P((void)); X extern void precmd __P((void)); X extern void cwd_cmd __P((void)); X extern void period_cmd __P((void)); X*************** X*** 103,162 **** X extern Char *getusername __P((Char **)); X extern void do_aliases __P((Char **)); X X- X /* X- * tc.os.c X- */ X- #ifdef MACH X- extern void dosetpath __P((Char **)); X- #endif X- #ifdef TCF X- extern void dogetxvers __P((Char **)); X- extern void dosetxvers __P((Char **)); X- extern void dogetspath __P((Char **)); X- extern void dosetspath __P((Char **)); X- extern char *sitename __P((pid_t)); X- extern void domigrate __P((Char **)); X- #endif X- #ifdef WARP X- extern void dowarp __P((Char **)); X- #endif X- #ifdef masscomp X- extern void douniverse __P((Char **)); X- #endif X- #ifdef _SEQUENT_ X- extern void pr_stat_sub __P((struct pro_stats *, X- struct pro_stats *, X- struct pro_stats *)); X- #endif X- #ifdef NEEDtcgetpgrp X- extern int xtcgetpgrp __P((int)); X- #define tcgetpgrp(a) xtcgetpgrp(a) X- #endif X- #ifdef YPBUGS X- extern void fix_yp_bugs __P((void)); X- #endif X- extern void osinit __P((void)); X- #ifdef NEEDgetwd X- extern char *xgetwd __P((char *)); X- #define getwd(a) xgetwd(a) X- #endif X- #ifdef NEEDgethostname X- extern int gethostname __P((char *, int)); X- #define gethostname(a, b) xgethostname(a, b) X- #endif X- #ifdef iconuxv X- extern int vfork __P((void)); X- #endif X- #ifdef apollo X- extern void doinlib __P((Char **)); X- extern void dover __P((Char **)); X- extern void dorootnode __P((Char **)); X- extern int getv __P((Char *)); X- #endif X- X- X- /* X * tc.printf.h X */ X extern void xprintf __P((char *, ...)); X--- 95,101 ---- X*************** X*** 178,217 **** X extern time_t sched_next __P((void)); X extern void dosched __P((Char **)); X extern void sched_run __P((void)); X- X- /* X- * tc.sig.c X- */ X- #ifndef BSDSIGS X- # if SVID < 3 X- # ifdef UNIXPC X- extern sigret_t (*sigset __P((int, sigret_t (*)())) (); X- extern void sigrelse __P((int)); X- extern void sighold __P((int)); X- extern void sigignore __P((int)); X- extern void sigpause __P((int)); X- # endif /* UNIXPC */ X- extern int ourwait __P((int *)); X- # endif X- # ifdef SXA X- extern void sigpause __P((int)); X- # endif X- #endif X- #ifdef NEEDsignal X- extern sigret_t (*xsignal __P((int, sigret_t (*)()))) (); X- #define signal(a, b) xsignal(a, b) X- #endif X- #ifdef _SEQUENT_ X- extern sigmask_t sigsetmask __P((sigmask_t)); X- extern sigmask_t sigblock __P((sigmask_t)); X- extern void b_sigpause __P((sigmask_t)); X- #endif X- #ifdef SIGSYNCH X- extern sigret_t synch_handler __P((int)); X- #endif X- X- X- X X /* X * tc.str.c: X--- 117,122 ---- X*** ./usr/src/bin/tcsh/config.h.old Sun Oct 6 17:05:26 1991 X--- ./usr/src/bin/tcsh/config.h Fri Aug 21 06:29:53 2026 X*************** X*** 1,9 **** X /* X * config.h -- configure various defines for tcsh X * X * All source files should #include this FIRST. X- * X- * Edit this to match your system type. X */ X X /****************** System dependant compilation flags ****************/ X--- 1,9 ---- X /* X+ * @(#)config.h 2.0 (2.11BSD) 2026/6/1 X+ * X * config.h -- configure various defines for tcsh X * X * All source files should #include this FIRST. X */ X X /****************** System dependant compilation flags ****************/ X*************** X*** 68,107 **** X #undef TERMIO X X /* X- * SVID Your machine is SVID complient (Sys V, HPUX, A/UX) X- * NOTE: don't do this if you are on a Pyramid -- tcsh is X- * built in a BSD universe. X- * Set SVID to 1, 2, or 3, depending the version of System V X- * you are running. Or set it to 0 if you are not SVID based X- */ X- #define SVID 0 X- X- /* X- * YPBUGS Work around Sun YP bugs that cause expansion of ~username X- * to send command output to /dev/null X- */ X- #undef YPBUGS X- X- /* X- * SIGVOID Define this if your signal handlers return void. On older X- * systems, signal returns int, but on newer ones, it returns void. X- */ X- #undef SIGVOID X- X- /* X- * DUP2 Define this if your system supports dup2(). X- */ X- #define DUP2 X- X- /* X * UTHOST Does the utmp file have a host field? X */ X #define UTHOST X X- /* X- * DIRENT Your system has instead of X- */ X- #undef DIRENT X /****************** local defines *********************/ X /****************** configurable hacks ****************/ X /* have been moved to config_f.h */ X--- 68,77 ---- X*** ./usr/src/bin/tcsh/sh.decls.h.old Tue Jan 7 20:18:52 2020 X--- ./usr/src/bin/tcsh/sh.decls.h Tue Sep 22 14:02:48 2026 X*************** X*** 1,5 **** X /* X! * @(#)sh.decls.h 2.1 (2.11BSD) 2020/1/7 X */ X /* X * sh.decls External declarations from sh*.c X--- 1,5 ---- X /* X! * @(#)sh.decls.h 2.2 (2.11BSD) 2026/9/22 X */ X /* X * sh.decls External declarations from sh*.c X*************** X*** 48,54 **** X extern void goodbye __P((void)); X extern void importpath __P((Char *)); X extern void initdesc __P((void)); X! extern sigret_t pintr __P((int)); X extern void pintr1 __P((bool)); X extern void process __P((bool)); X extern void rechist __P((void)); X--- 48,54 ---- X extern void goodbye __P((void)); X extern void importpath __P((Char *)); X extern void initdesc __P((void)); X! extern void pintr __P((int)); X extern void pintr1 __P((bool)); X extern void process __P((bool)); X extern void rechist __P((void)); X*************** X*** 288,294 **** X extern void dowait __P((void)); X extern void palloc __P((int, struct command *)); X extern void panystop __P((bool)); X! extern sigret_t pchild __P((int)); X extern void pendjob __P((void)); X extern struct process *pfind __P((Char *)); X extern int pfork __P((struct command *, int)); X--- 288,294 ---- X extern void dowait __P((void)); X extern void palloc __P((int, struct command *)); X extern void panystop __P((bool)); X! extern void pchild __P((int)); X extern void pendjob __P((void)); X extern struct process *pfind __P((Char *)); X extern int pfork __P((struct command *, int)); X*** ./usr/src/bin/tcsh/tw.parse.c.old Wed Nov 27 08:21:44 2019 X--- ./usr/src/bin/tcsh/tw.parse.c Mon Jun 1 17:41:43 2026 X*************** X*** 1,4 **** X- /* $Header: $ */ X /* X * tw.parse.c: Everyone has taken a shot in this futile effort to X * lexically analyze a csh line... Well we cannot good X--- 1,3 ---- X*************** X*** 38,46 **** X * SUCH DAMAGE. X */ X #include "config.h" X! #if !defined(lint) && !defined(pdp11) X static char *rcsid() X! { return "$Id: tw.parse.c,v 3.2 2019/11/27 19:12:00 bqt Exp $"; } X #endif X X #include "sh.h" X--- 37,45 ---- X * SUCH DAMAGE. X */ X #include "config.h" X! #if !defined(lint) && defined(DOSCCS) X static char *rcsid() X! { return "$Id: tw.parse.c,v 3.2 2026/6/1 19:12:00 (2.11BSD) Exp $"; } X #endif X X #include "sh.h" X*************** X*** 47,54 **** X #include "tw.h" X #include "ed.h" X X- /* #define TENEDEBUG */ X- X /* true if the path has relative elements */ X static bool relatives_in_path; X X--- 46,51 ---- X*************** X*** 63,72 **** X */ X int non_unique_match = FALSE; X X- #ifdef notdef X- int dirctr = 0; /* -1 0 1 2 ... */ X- X- #endif X Char dirflag[5]; /* ' nn\0' - dir #s - . 1 2 ... */ X X static bool SearchNoDirErr = 0; /* t_search returns -2 if dir is unreadable */ X--- 60,65 ---- X*************** X*** 150,172 **** X X X X- #ifdef masscomp X- /* X- * Avoid a nasty message from the RTU 4.1A & RTU 5.0 comp_r concerning X- * the "overuse of registers". According to the comp_r release notes, X- * incorrect code may be produced unless the offending expression is X- * rewritten. Therefore, we can't just ignore it, DAS DEC-90. X- */ X- space_left = in_li_size; X- space_left -= word_start - in_line + 1; X- #else X space_left = in_li_size - (word_start - in_line) - 1; X- #endif X X is_a_cmd = starting_a_command(word_start, in_line); X- #ifdef TENEDEBUG X- xprintf("starting_a_command %d\n", is_a_cmd); X- #endif X X /* X * Quote args X--- 143,151 ---- X*************** X*** 227,241 **** X return (-1); X *wp = '\0'; X X- X- #ifdef TENEDEBUG X- xprintf("\ncmd_st:%s:\n", short2str(cmd_st)); X- xprintf("word:%s:\n", short2str(word)); X- xprintf("word:"); X- for (wp = word; *wp; wp++) X- xprintf("%c", *wp & QUOTE ? '-' : ' '); X- xprintf(":\n"); X- #endif X switch ((int) command) { X Char buffer[FILSIZ + 1], *bptr; X Char *slshp; X--- 206,211 ---- X*************** X*** 914,922 **** X goto again; X } X if (look_lognames) { X- #ifdef YPBUGS X- fix_yp_bugs(); X- #endif /* YPBUGS */ X (void) endpwent(); X } X else if (look_file || look_shellvar || X--- 884,889 ---- X*************** X*** 1047,1093 **** X X /* stuff for general command line hacking */ X X- /* X- * Strip next directory from path; return ptr to next unstripped directory. X- */ X- X- #ifdef notdef X- Char * extct_dir_from_path(path, dir) X- Char *path, dir[]; X- { X- register Char *d = dir; X- X- while (*path && (*path == ' ' || *path == ':')) X- path++; X- while (*path && (*path != ' ' && *path != ':')) X- *(d++) = *(path++); X- while (*path && (*path == ' ' || *path == ':')) X- path++; X- X- ++dirctr; X- if (*dir == '.') X- (void) Strcpy(dirflag, STRdotsp); X- else { X- dirflag[0] = ' '; X- if (dirctr <= 9) { X- dirflag[1] = '0' + dirctr; X- dirflag[2] = '\0'; X- } X- else { X- dirflag[1] = '0' + dirctr / 10; X- dirflag[2] = '0' + dirctr % 10; X- dirflag[3] = '\0'; X- } X- } X- *(d++) = '/'; X- *d = 0; X- X- return path; X- } X- X- #endif X- X- X static void X free_items(items, numitems) X register Char **items; X--- 1014,1019 ---- X*************** X*** 1102,1108 **** X maxitems = 0; X } X X- X /* X * parse full path in file into 2 parts: directory and file names X * Should leave final slash (/) at end of dir. X--- 1028,1033 ---- X*************** X*** 1133,1150 **** X register struct passwd *pw; X static Char retname[MAXPATHLEN]; X X! register struct dirent *dirp; X X if (look_lognames) { /* Is it login names we want? */ X X pw = getpwent(); X! X! if (pw == NULL) { X! #ifdef YPBUGS X! fix_yp_bugs(); X! #endif X return (NULL); X- } X (void) Strcpy(retname, str2short(pw->pw_name)); X return (retname); X } X--- 1058,1070 ---- X register struct passwd *pw; X static Char retname[MAXPATHLEN]; X X! register struct direct *dirp; X X if (look_lognames) { /* Is it login names we want? */ X X pw = getpwent(); X! if (pw == NULL) X return (NULL); X (void) Strcpy(retname, str2short(pw->pw_name)); X return (retname); X } X*************** X*** 1461,1467 **** X tw_get_comm_list() X { /* stolen from sh.exec.c dohash() */ X register DIR *dirp; X! register struct dirent *dp; X register Char *dir; X register Char **pv; X struct varent *v = adrof(STRpath); X--- 1381,1387 ---- X tw_get_comm_list() X { /* stolen from sh.exec.c dohash() */ X register DIR *dirp; X! register struct direct *dp; X register Char *dir; X register Char **pv; X struct varent *v = adrof(STRpath); X*** ./usr/src/bin/tcsh/sh.init.c.old Tue Aug 20 14:13:01 1991 X--- ./usr/src/bin/tcsh/sh.init.c Thu Jul 23 21:25:16 2026 X*************** X*** 1,4 **** X- /* $Header: /home/hyperion/mu/christos/src/sys/tcsh-6.00/RCS/sh.init.c,v 3.0 1991/07/04 21:49:28 christos Exp $ */ X /* X * sh.init.c: Function and signal tables X */ X--- 1,3 ---- X*************** X*** 35,43 **** X * SUCH DAMAGE. X */ X #include "config.h" X! #if !defined(lint) && !defined(pdp11) X static char *rcsid() X! { return "$Id: sh.init.c,v 3.0 1991/07/04 21:49:28 christos Exp $"; } X #endif X X #include "sh.h" X--- 34,42 ---- X * SUCH DAMAGE. X */ X #include "config.h" X! #if !defined(lint) && defined(DOSCCS) X static char *rcsid() X! { return "$Id: sh.init.c,v 3.1 2026/6/1 21:49:28 (2.11BSD) Exp $"; } X #endif X X #include "sh.h" X*************** X*** 58,66 **** X "bindkey", dobindkey, 0, 8, X "break", dobreak, 0, 0, X "breaksw", doswbrk, 0, 0, X- #if defined(IIASA) || defined(KAI) X- "bye", goodbye, 0, 0, X- #endif X "case", dozip, 0, 1, X "cd", dochngd, 0, INF, X "chdir", dochngd, 0, INF, X--- 57,62 ---- X*************** X*** 78,90 **** X "exit", doexit, 0, INF, X "fg", dofg, 0, INF, X "foreach", doforeach, 3, INF, X- #ifdef TCF X- "getspath", dogetspath, 0, 0, X- "getxvers", dogetxvers, 0, 0, X- #endif /* TCF */ X- #ifdef IIASA X- "gd", dopushd, 0, INF, X- #endif X "glob", doglob, 0, INF, X "goto", dogoto, 1, 1, X #ifdef VFORK X--- 74,79 ---- X*************** X*** 92,116 **** X #endif X "history", dohist, 0, 2, X "if", doif, 1, INF, X- #ifdef apollo X- "inlib", doinlib, 1, INF, X- #endif X "jobs", dojobs, 0, 1, X "kill", dokill, 1, INF, X "limit", dolimit, 0, 3, X "linedit", doecho, 0, INF, X- #ifndef KAI X "log", dolog, 0, 0, X- #endif X "login", dologin, 0, 1, X "logout", dologout, 0, 0, X "ls-F", dolist, 0, INF, X- #ifdef TCF X- "migrate", domigrate, 1, INF, X- #endif /* TCF */ X- #ifdef NEWGRP X- "newgrp", donewgrp, 1, 1, X- #endif X "nice", donice, 0, INF, X "nohup", donohup, 0, INF, X "notify", donotify, 0, INF, X--- 81,94 ---- X*************** X*** 117,143 **** X "onintr", doonintr, 0, 2, X "popd", dopopd, 0, INF, X "pushd", dopushd, 0, INF, X- #ifdef IIASA X- "rd", dopopd, 0, INF, X- #endif X "rehash", dohash, 0, 0, X "repeat", dorepeat, 2, INF, X- #ifdef apollo X- "rootnode", dorootnode, 1, 1, X- #endif X "sched", dosched, 0, INF, X "set", doset, 0, INF, X "setenv", dosetenv, 0, 2, X- #ifdef MACH X- "setpath", dosetpath, 0, INF, X- #endif /* MACH */ X- #ifdef TCF X- "setspath", dosetspath, 1, INF, X- #endif /* TCF */ X "settc", dosettc, 2, 2, X- #ifdef TCF X- "setxvers", dosetxvers, 0, 1, X- #endif /* TCF */ X "shift", shift, 0, 1, X "source", dosource, 1, 2, X "stop", dostop, 1, INF, X--- 95,106 ---- X*************** X*** 148,169 **** X "umask", doumask, 0, 1, X "unalias", unalias, 1, INF, X "unhash", dounhash, 0, 0, X- #ifdef masscomp X- "universe", douniverse, 0, 1, X- #endif X "unlimit", dounlimit, 0, INF, X "unset", unset, 1, INF, X "unsetenv", dounsetenv, 1, INF, X- #ifdef apollo X- "ver", dover, 0, INF, X- #endif X "wait", dowait, 0, 0, X- #ifdef WARP X- "warp", dowarp, 0, 2, X- #endif X- #ifdef KAI X- "watchlog", dolog, 0, 0, X- #endif X "which", dowhich, 1, INF, X "while", dowhile, 1, INF, X }; X--- 111,120 ---- X*************** X*** 190,201 **** X }; X int nsrchn = sizeof srchn / sizeof *srchn; X X- /* X- * Note: For some machines, (hpux eg.) X- * NSIG = number of signals + 1... X- * so we define 33 signals for X- * everybody X- */ X struct mesg mesg[] = { X /* 0 */ 0, "", X /* 1 */ "HUP", "Hangup", X--- 141,146 ---- X*************** X*** 204,632 **** X /* 4 */ "ILL", "Illegal instruction", X /* 5 */ "TRAP", "Trace/BPT trap", X /* 6 */ "IOT", "IOT trap", X- #ifdef aiws X- /* 7 */ "DANGER", "System Crash Imminent", X- #else /* aiws */ X /* 7 */ "EMT", "EMT trap", X! #endif /* aiws */ X! /* 8 */ "FPE", "Floating exception", X /* 9 */ "KILL", "Killed", X /* 10 */ "BUS", "Bus error", X /* 11 */ "SEGV", "Segmentation fault", X! /* 12 */ "SYS", "Bad system call", X /* 13 */ "PIPE", "Broken pipe", X! /* 14 */ "ALRM", "Alarm clock", X /* 15 */ "TERM", "Terminated", X! X! #if (SVID > 0) || defined(DGUX) || defined(IBMAIX) || defined(apollo) X! X! # ifdef _sigextra_ X! # undef _sigextra_ X! # endif /* _sigextra_ */ X! X! #ifndef IBMAIX X! /* these are the real svid signals */ X! /* 16 */ "USR1", "User signal 1", X! /* 17 */ "USR2", "User signal 2", X! # ifdef apollo X! /* 18 */ "CLD", "Death of child", X! /* 19 */ "APOLLO", "Apollo-specific fault", X! # else X! /* 18 */ "CHLD", "Child exited", X! /* 19 */ "PWR", "Power failure", X! # endif /* apollo */ X! #endif /* IBMAIX */ X! X! # ifdef OREO X! # define _sigextra_ X! # ifdef SUSPENDED X! /* 20 */ "TSTP", "Suspended", X! /* 21 */ "TTIN", "Suspended (tty input)", X! /* 22 */ "TTOU", "Suspended (tty output)", X! /* 23 */ "STOP", "Suspended (signal)", X! # else X! /* 20 */ "TSTP", "Stopped", X! /* 21 */ "TTIN", "Stopped (tty input)", X! /* 22 */ "TTOU", "Stopped (tty output)", X! /* 23 */ "STOP", "Stopped (signal)", X! # endif /* SUSPENDED */ X! /* 24 */ "XCPU", "Cputime limit exceeded", X! /* 25 */ "XFSZ", "Filesize limit exceeded", X! /* 26 */ "VTALRM", "Virtual time alarm", X! /* 27 */ "PROF", "Profiling time alarm", X! /* 28 */ "WINCH", "Window changed", X! /* 29 */ "CONT", "Continued", X! /* 30 */ "URG", "Urgent condition on IO channel", X! /* 31 */ "IO", "Asynchronous I/O (select)", X! /* 32 */ 0, "Signal 32", X! # endif /* OREO */ X! X! # ifdef hpux X! # define _sigextra_ X! /* 20 */ "VTALRM", "Virtual time alarm", X! /* 21 */ "PROF", "Profiling time alarm", X! /* 22 */ "IO", "Asynchronous I/O (select)", X! /* 23 */ "WINDOW", "Window changed", X! # ifdef SUSPENDED X! /* 24 */ "STOP", "Suspended (signal)", X! /* 25 */ "TSTP", "Suspended", X! # else /* SUSPENDED */ X! /* 24 */ "STOP", "Stopped (signal)", X! /* 25 */ "TSTP", "Stopped", X! # endif /* SUSPENDED */ X! /* 26 */ "CONT", "Continued", X! # ifdef SUSPENDED X! /* 27 */ "TTIN", "Suspended (tty input)", X! /* 28 */ "TTOU", "Suspended (tty output)", X! # else /* SUSPENDED */ X! /* 27 */ "TTIN", "Stopped (tty input)", X! /* 28 */ "TTOU", "Stopped (tty output)", X! # endif /* SUSPENDED */ X! /* 29 */ "URG", "Urgent condition on IO channel", X! /* 30 */ "LOST", "Remote lock lost (NFS)", X! /* 31 */ 0, "Reserved", /* Reserved */ X! /* 32 */ "DIL", "DIL signal", X! # endif /* hpux */ X! X! # if defined(ISC) && defined(POSIX) X! # define _sigextra_ X! /* 20 */ "WINCH", "Window change", X! /* 21 */ 0, "Unused", /* SIGPHONE used only for UNIXPC */ X! /* 22 */ "POLL", "Pollable event occured", X! /* 23 */ "CONT", "Continued", X! # ifdef SUSPENDED X! /* 24 */ "STOP", "Suspended (signal)", X! /* 25 */ "TSTP", "Suspended", X! /* 26 */ "TTIN", "Suspended (tty input)", X! /* 27 */ "TTOU", "Suspended (tty output)", X! # else /* SUSPENDED */ X! /* 24 */ "STOP", "Stopped (signal)", X! /* 25 */ "TSTP", "Stopped", X! /* 26 */ "TTIN", "Stopped (tty input)", X! /* 27 */ "TTOU", "Stopped (tty output)", X! # endif /* SUSPENDED */ X! /* 28 */ 0, "number of signals", X! /* 29 */ 0, "Reserved", /* Reserved */ X! /* 30 */ 0, "Reserved", /* Reserved */ X! /* 31 */ 0, "Reserved", /* Reserved */ X! /* 32 */ 0, "Maximum number of signals", X! # endif /* ISC && POSIX */ X! X! # ifdef IRIS4D X! # define _sigextra_ X! # ifdef SUSPENDED X! /* 20 */ "STOP", "Suspended (signal)", X! /* 21 */ "TSTP", "Suspended", X! # else /* SUSPENDED */ X! /* 20 */ "STOP", "Stopped (signal)", X! /* 21 */ "TSTP", "Stopped", X! # endif /* SUSPENDED */ X! /* 22 */ "POLL", "Stream I/O pending", X! /* 23 */ "IO", "Asynchronous I/O (select)", X! /* 24 */ "URG", "Urgent condition on IO channel", X! /* 25 */ "WINCH", "Window changed", X! /* 26 */ "VTALRM", "Virtual time alarm", X! /* 27 */ "PROF", "Profiling time alarm", X! /* 28 */ "CONT", "Continued", X! # ifdef SUSPENDED X! /* 29 */ "TTIN", "Suspended (tty input)", X! /* 30 */ "TTOU", "Suspended (tty output)", X! # else /* SUSPENDED */ X! /* 29 */ "TTIN", "Stopped (tty input)", X! /* 30 */ "TTOU", "Stopped (tty output)", X! # endif /* SUSPENDED */ X! /* 31 */ 0, "Signal 31", X! /* 32 */ 0, "Signal 32", X! # endif /* IRIS4D */ X! X! # ifdef apollo X! # define _sigextra_ X! # ifdef SUSPENDED X! /* 20 */ "STOP", "Suspended (signal)", X! /* 21 */ "TSTP", "Suspended", X! # else /* SUSPENDED */ X! /* 20 */ "STOP", "Stopped (signal)", X! /* 21 */ "TSTP", "Stopped", X! # endif /* SUSPENDED */ X! /* 22 */ "CONT", "Continued", X! /* 23 */ "CHLD", "Child stopped or exited", X! # ifdef SUSPENDED X! /* 24 */ "TTIN", "Suspended (tty input)", X! /* 25 */ "TTOU", "Suspended (tty output)", X! # else /* SUSPENDED */ X! /* 24 */ "TTIN", "Stopped (tty input)", X! /* 25 */ "TTOU", "Stopped (tty output)", X! # endif /* SUSPENDED */ X! /* 26 */ "IO", "Asynchronous I/O (select)", X! /* 27 */ "XCPU", "Cputime limit exceeded", X! /* 28 */ "XFSZ", "Filesize limit exceeded", X! /* 29 */ "VTALRM", "Virtual time alarm", X! /* 30 */ "PROF", "Profiling time alarm", X! /* 31 */ "URG", "Urgent condition on IO channel", X! /* 32 */ "WINCH", "Window changed", X! # endif /* apollo */ X! X! # ifdef aiws X! # define _sigextra_ X! /* 20 */ 0, "Signal 20", X! /* 21 */ 0, "Signal 21", X! /* 22 */ 0, "Signal 22" X! /* 23 */ "AIO", "LAN Asyncronous I/O", X! /* 24 */ "PTY", "PTY read/write availability", X! /* 25 */ "IOINT", "I/O intervention required", X! /* 26 */ "GRANT", "monitor mode granted", X! /* 27 */ "RETRACT", "monitor mode retracted", X! /* 28 */ "WINCH","Window size changed", X! /* 29 */ 0, "Signal 29", X! /* 30 */ "SOUND", "sound completed", X! /* 31 */ "MSG", "input hft data pending", X! /* 32 */ 0, "Signal 32", X! # endif /* aiws */ X! X! # ifdef m88k /* ICON/UXV 4.10 (mday@iconsys.UUCP) */ X! # define _sigextra_ X! /* 20 */ "WINCH", "Window changed", X! # ifdef DGUX X! /* 21 */ 0, "Signal 21", X! # else X! # ifdef SUSPENDED X! /* 21 */ "TTIN", "Suspended (tty input)", X! # else /* SUSPENDED */ X! /* 21 */ "TTIN", "Stopped (tty input)", X! # endif /* SUSPENDED */ X! # endif /* DGUX */ X! /* 22 */ "POLL", "Stream I/O pending", X! # ifdef SUSPENDED X! /* 23 */ "STOP", "Suspended (signal)", X! /* 24 */ "TSTP", "Suspended", X! # else /* SUSPENDED */ X! /* 23 */ "STOP", "Stopped (signal)", X! /* 24 */ "TSTP", "Stopped", X! # endif /* SUSPENDED */ X! /* 25 */ "CONT", "Continued", X! # ifdef SUSPENDED X! /* 26 */ "TTIN", "Suspended (tty input)", X! /* 27 */ "TTOU", "Suspended (tty output)", X! # else /* SUSPENDED */ X! /* 26 */ "TTIN", "Stopped (tty input)", X! /* 27 */ "TTOU", "Stopped (tty output)", X! # endif /* SUSPENDED */ X! /* 28 */ 0, "Signal 28", X! /* 29 */ 0, "Signal 29", X! /* 30 */ 0, "Signal 30", X! /* 31 */ 0, "Signal 31", X! /* 32 */ 0, "Signal 32", X! /* 33 */ "URG", "Urgent condition on IO channel", X! /* 34 */ "IO", "Asynchronous I/O (select)", X! /* 35 */ "XCPU", "Cputime limit exceeded", X! /* 36 */ "XFSZ", "Filesize limit exceeded", X! /* 37 */ "VTALRM", "Virtual time alarm", X! /* 38 */ "PROF", "Profiling time alarm", X! /* 39 */ 0, "Signal 39", X! /* 40 */ "LOST", "Resource lost", X! /* 41 */ 0, "Signal 41", X! /* 42 */ 0, "Signal 42", X! /* 43 */ 0, "Signal 43", X! /* 44 */ 0, "Signal 44", X! /* 45 */ 0, "Signal 45", X! /* 46 */ 0, "Signal 46", X! /* 47 */ 0, "Signal 47", X! /* 48 */ 0, "Signal 48", X! /* 49 */ 0, "Signal 49", X! /* 50 */ 0, "Signal 50", X! /* 51 */ 0, "Signal 51", X! /* 52 */ 0, "Signal 52", X! /* 53 */ 0, "Signal 53", X! /* 54 */ 0, "Signal 54", X! /* 55 */ 0, "Signal 55", X! /* 56 */ 0, "Signal 56", X! /* 57 */ 0, "Signal 57", X! /* 58 */ 0, "Signal 58", X! /* 59 */ 0, "Signal 59", X! /* 60 */ 0, "Signal 60", X! /* 61 */ 0, "Signal 61", X! /* 62 */ 0, "Signal 62", X! /* 63 */ 0, "Signal 63", X! /* 64 */ 0, "Signal 64", X! # endif /* m88k */ X! X! X! #ifdef IBMAIX X! # define _sigextra_ X! X! /* 16 */ "URG", "Urgent condition on IO channel", X! # ifdef SUSPENDED X! /* 17 */ "STOP", "Suspended (signal)", X! /* 18 */ "TSTP", "Suspended", X! # else /* SUSPENDED */ X /* 17 */ "STOP", "Stopped (signal)", X /* 18 */ "TSTP", "Stopped", X- # endif /* SUSPENDED */ X /* 19 */ "CONT", "Continued", X /* 20 */ "CHLD", "Child exited", X- # ifdef SUSPENDED X- /* 21 */ "TTIN", "Suspended (tty input)", X- /* 22 */ "TTOU", "Suspended (tty output)", X- # else /* SUSPENDED */ X /* 21 */ "TTIN", "Stopped (tty input)", X /* 22 */ "TTOU", "Stopped (tty output)", X! # endif /* SUSPENDED */ X! /* 23 */ "IO", "IO possible interrupt", X! /* 24 */ "XCPU", "Cputime limit exceeded", X! /* 25 */ "XFSZ", "Filesize limit exceeded", X! /* 26 */ 0, "Signal 26", X! /* 27 */ "MSG", "Data in HFT ring buffer", X! /* 28 */ "WINCH", "Window size changed", X! /* 29 */ "PWR", "Power failure", X! /* 30 */ "USR1", "User signal 1", X! /* 31 */ "USR2", "User signal 2", X! /* 32 */ "PROF", "Profiling time alarm", X! /* 33 */ "DANGER", "System Crash Imminent", X! /* 34 */ "VTALRM", "Virtual time alarm", X! /* 35 */ "MIGRATE", "Migrate process", X! /* 36 */ "PRE", "Programming exception", X! /* 37 */ 0, "Signal 37", X! /* 38 */ 0, "Signal 38", X! /* 39 */ 0, "Signal 39", X! /* 40 */ 0, "Signal 40", X! /* 41 */ 0, "Signal 41", X! /* 42 */ 0, "Signal 42", X! /* 43 */ 0, "Signal 43", X! /* 44 */ 0, "Signal 44", X! /* 45 */ 0, "Signal 45", X! /* 46 */ 0, "Signal 46", X! /* 47 */ 0, "Signal 47", X! /* 48 */ 0, "Signal 48", X! /* 49 */ 0, "Signal 49", X! /* 50 */ 0, "Signal 50", X! /* 51 */ 0, "Signal 51", X! /* 52 */ 0, "Signal 52", X! /* 53 */ 0, "Signal 53", X! /* 54 */ 0, "Signal 54", X! /* 55 */ 0, "Signal 55", X! /* 56 */ 0, "Signal 56", X! /* 57 */ 0, "Signal 57", X! /* 58 */ 0, "Signal 58", X! /* 59 */ 0, "Signal 59", X! /* 60 */ "GRANT", "HFT monitor mode granted", X! /* 61 */ "RETRACT", "HFT monitor mode should be relinguished", X! /* 62 */ "SOUND", "HFT sound control has completed", X! #ifdef SIGSAK X! /* 63 */ "SAK", "Secure attention key", X! #else X! /* 63 */ 0, "Signal 63", X! #endif X! /* 64 */ 0, "Signal 64", X! #endif /* IBMAIX */ X! X! # ifdef _SEQUENT_ X! # define _sigextra_ X! /* 20 */ "WINCH", "Window changed", X! /* 21 */ 0, "Signal 21", X! /* 22 */ "POLL", "Stream I/O pending", X! # ifdef SUSPENDED X! /* 23 */ "STOP", "Suspended (signal)", X! /* 24 */ "TSTP", "Suspended", X! /* 25 */ "CONT", "Continued", X! /* 26 */ "TTIN", "Suspended (tty input)", X! /* 27 */ "TTOU", "Suspended (tty output)", X! # else /* SUSPENDED */ X! /* 23 */ "STOP", "Stopped (signal)", X! /* 24 */ "TSTP", "Stopped", X! /* 25 */ "CONT", "Continued", X! /* 26 */ "TTIN", "Stopped (tty input)", X! /* 27 */ "TTOU", "Stopped (tty output)", X! # endif /* SUSPENDED */ X! /* 28 */ 0, "Signal 28", X! /* 29 */ 0, "Signal 29", X! /* 30 */ 0, "Signal 30", X! /* 31 */ 0, "Signal 31", X! /* 32 */ 0, "Signal 32", X! # endif /* _SEQUENT_ */ X! X! # ifndef _sigextra_ X! /* 20 */ 0, "Signal 20", X! /* 21 */ 0, "Signal 21", X! /* 22 */ 0, "Signal 22", X! /* 23 */ 0, "Signal 23", X! /* 24 */ 0, "Signal 24", X! /* 25 */ 0, "Signal 25", X! /* 26 */ 0, "Signal 26", X! /* 27 */ 0, "Signal 27", X! /* 28 */ 0, "Signal 28", X! /* 29 */ 0, "Signal 29", X! /* 30 */ 0, "Signal 30", X! /* 31 */ 0, "Signal 31", X! /* 32 */ 0, "Signal 32", X! # endif /* _sigextra_ */ X! X! X! #else /* bsd */ X! X! # ifdef _sigextra_ X! # undef _sigextra_ X! # endif /* _sigextra_ */ X! X! /* 16 */ "URG", "Urgent condition on IO channel", X! # ifdef SUSPENDED X! /* 17 */ "STOP", "Suspended (signal)", X! /* 18 */ "TSTP", "Suspended", X! # else /* SUSPENDED */ X! /* 17 */ "STOP", "Stopped (signal)", X! /* 18 */ "TSTP", "Stopped", X! # endif /* SUSPENDED */ X! /* 19 */ "CONT", "Continued", X! /* 20 */ "CHLD", "Child exited", X! # ifdef SUSPENDED X! /* 21 */ "TTIN", "Suspended (tty input)", X! /* 22 */ "TTOU", "Suspended (tty output)", X! # else /* SUSPENDED */ X! /* 21 */ "TTIN", "Stopped (tty input)", X! /* 22 */ "TTOU", "Stopped (tty output)", X! # endif /* SUSPENDED */ X! /* 23 */ "IO", "IO possible interrupt", X! /* 24 */ "XCPU", "Cputime limit exceeded", X! /* 25 */ "XFSZ", "Filesize limit exceeded", X! /* 26 */ "VTALRM", "Virtual time alarm", X! /* 27 */ "PROF", "Profiling time alarm", X! X! # if defined(sun) || defined(ultrix) || defined(hp9000) || defined(convex) || defined(__convex__) X! # define _sigextra_ X /* 28 */ "WINCH", "Window changed", X! /* 29 */ "LOST", "Resource lost", X! /* 30 */ "USR1", "User signal 1", X! /* 31 */ "USR2", "User signal 2", X! /* 32 */ 0, "Signal 32", X! # endif /* sun */ X! X! # ifdef pyr X! # define _sigextra_ X! /* 28 */ "USR1", "User signal 1", X! /* 29 */ "USR2", "User signal 2", X! /* 30 */ "PWR", "Power failure", X! /* 31 */ 0, "Signal 31", X! /* 32 */ 0, "Signal 32", X! # endif /* pyr */ X! X! # ifndef _sigextra_ X! /* 28 */ "WINCH", "Window size changed", X! # ifdef RENO X! /* 29 */ "INFO", "Information request", X! # else X! /* 29 */ 0, "Signal 29", X! # endif /* RENO */ X! /* 30 */ "USR1", "User defined signal 1", X! /* 31 */ "USR2", "User defined signal 2", X! /* 32 */ 0, "Signal 32", X! # endif /* _sigextra_ */ X! X! X! #endif /* (SVID > 0) || DGUX || IBMAIX */ X! X! /* These are here for systems with bad NSIG */ X! #ifndef POSIX X! /* 33 */ 0, "Signal 33" X! #else /* POSIX */ X! /* 65 */ 0, "Signal 65" X! #endif /* POSIX */ X }; X--- 149,177 ---- X /* 4 */ "ILL", "Illegal instruction", X /* 5 */ "TRAP", "Trace/BPT trap", X /* 6 */ "IOT", "IOT trap", X /* 7 */ "EMT", "EMT trap", X! /* 8 */ "FPE", "FP exception", X /* 9 */ "KILL", "Killed", X /* 10 */ "BUS", "Bus error", X /* 11 */ "SEGV", "Segmentation fault", X! /* 12 */ "SYS", "Bad syscall", X /* 13 */ "PIPE", "Broken pipe", X! /* 14 */ "ALRM", "Alarm", X /* 15 */ "TERM", "Terminated", X! /* 16 */ "URG", "Urgent I/O", X /* 17 */ "STOP", "Stopped (signal)", X /* 18 */ "TSTP", "Stopped", X /* 19 */ "CONT", "Continued", X /* 20 */ "CHLD", "Child exited", X /* 21 */ "TTIN", "Stopped (tty input)", X /* 22 */ "TTOU", "Stopped (tty output)", X! /* 23 */ "IO", "I/O possible", X! /* 24 */ "XCPU", "Cputime limit", X! /* 25 */ "XFSZ", "Filesize limit", X! /* 26 */ "VTALRM", "Virtual timer", X! /* 27 */ "PROF", "Profiling timer", X /* 28 */ "WINCH", "Window changed", X! /* 29 */ 0, 0, X! /* 30 */ "USR1", "User sig 1", X! /* 31 */ "USR2", "User sig 2", X }; X*** ./usr/src/bin/tcsh/sh.dir.c.old Fri Apr 5 00:11:17 1996 X--- ./usr/src/bin/tcsh/sh.dir.c Thu Jul 23 17:37:28 2026 X*************** X*** 36,42 **** X #include "config.h" X #if !defined(lint) && !defined(pdp11) X static char *rcsid() X! { return "$Id: sh.dir.c,v 3.0.1 1996/04/04 21:49:28 sms Exp $"; } X #endif X X X--- 36,42 ---- X #include "config.h" X #if !defined(lint) && !defined(pdp11) X static char *rcsid() X! { return "$Id: sh.dir.c,v 3.0.2 2026/07/23 21:49:28 sms Exp $"; } X #endif X X X*************** X*** 51,56 **** X--- 51,57 ---- X static Char *dgoto __P((Char *)); X static void dnewcwd __P((struct directory *)); X static void dset __P((Char *)); X+ static void dextract __P((struct directory *)); X X struct directory dhead; /* "head" of loop */ X int printd; /* force name to be printed */ X*************** X*** 97,103 **** X } X } X else { X- #ifdef S_IFLNK X struct stat swd, shp; X X /* X--- 98,103 ---- X*************** X*** 120,128 **** X } X cp = dcanon(str2short(tcp), STRNULL); X } X- #else /* S_IFLNK */ X- cp = dcanon(str2short(tcp), STRNULL); X- #endif /* S_IFLNK */ X } X X dp = (struct directory *) xcalloc(sizeof(struct directory), 1); X--- 120,125 ---- X*************** X*** 275,294 **** X if ((unsigned char) cp[0] == '/') X return (Strsave(cp)); X X- #ifdef S_IFLNK X if (adrof(STRig__symlinks)) { X int dotdot = 0; X register Char *dp, *cwd; X- #ifdef apollo X- bool slashslash; X- #endif X X cwd = (Char *) xmalloc((size_t) ((Strlen(dcwd->di_name) + 3) * X sizeof(Char))); X (void) Strcpy(cwd, dcwd->di_name); X- #ifdef apollo X- slashslash = cwd[0] == '/' && cwd[1] == '/'; X- #endif X X /* X * Ignore . and count ..'s X--- 272,284 ---- X*************** X*** 309,318 **** X } X while (dotdot > 0) X if ((dp = Strrchr(cwd, '/'))) { X- #ifdef apollo X- if (dp == &cwd[1]) X- slashslash = 1; X- #endif X *dp = '\0'; X dotdot--; X } X--- 299,304 ---- X*************** X*** 330,352 **** X else { X if (!*cwd) { X cwd[0] = '/'; X- #ifdef apollo X- cwd[1] = '/'; X- cwd[2] = '\0'; X- #else X cwd[1] = '\0'; X- #endif X } X- #ifdef apollo X- else if (slashslash && cwd[1] == '\0') { X- cwd[1] = '/'; X- cwd[2] = '\0'; X- } X- #endif X return cwd; X } X } X- #endif X return Strsave(cp); X } X X--- 316,326 ---- X*************** X*** 444,464 **** X int serrno; X X cp = globone(cp, G_ERROR); X! #ifdef apollo X! if (Strchr(cp, '`')) { X! char *dptr, *ptr; X! if (chdir(dptr = short2str(cp)) < 0) X! stderror(ERR_SYSTEM, dptr, strerror(errno)); X! else if ((ptr = getwd(ebuf)) && *ptr != '\0') { X! xfree((ptr_t) cp); X! cp = Strsave(str2short(ptr)); X! return dgoto(cp); X! } X! else X! stderror(ERR_SYSTEM, dptr, ebuf); X! } X! #endif X! X /* X * if we are ignoring symlinks, try to fix relatives now. X */ X--- 418,424 ---- X int serrno; X X cp = globone(cp, G_ERROR); X! X /* X * if we are ignoring symlinks, try to fix relatives now. X */ X*************** X*** 695,710 **** X register Char *sp; X register Char *p1, *p2; /* general purpose */ X bool slash; X- #ifdef apollo X- bool slashslash; X- #endif X- X- #ifdef S_IFLNK /* if we have symlinks */ X Char link[MAXPATHLEN]; X char tlink[MAXPATHLEN]; X int cc; X Char *newcp; X- #endif /* S_IFLNK */ X X /* X * christos: if the path given does not start with a slash prepend cwd. If X--- 655,664 ---- X*************** X*** 730,739 **** X abort(); X #endif X X- #ifdef apollo X- slashslash = (cp[0] == '/' && cp[1] == '/'); X- #endif X- X while (*p) { /* for each component */ X sp = p; /* save slash address */ X while (*++p == '/') /* flush extra slashes */ X--- 684,689 ---- X*************** X*** 749,758 **** X break; X } X X- #ifdef apollo X- if (&cp[1] == sp && sp[0] == '.' && sp[1] == '.' && sp[2] == '\0') X- slashslash = 1; X- #endif X if (*sp == '\0') /* if component is null */ X if (--sp == cp) /* if path is one char (i.e. /) */ X break; X--- 699,704 ---- X*************** X*** 774,780 **** X * symbolic link. X */ X *--sp = 0; /* form the pathname for readlink */ X- #ifdef S_IFLNK /* if we have symlinks */ X if (sp != cp && !adrof(STRig__symlinks) && X (cc = readlink(short2str(cp), tlink, X sizeof tlink)) >= 0) { X--- 720,725 ---- X*************** X*** 836,842 **** X cp = newcp; X continue; /* canonicalize the link */ X } X- #endif /* S_IFLNK */ X *sp = '/'; X if (sp != cp) X while (*--sp != '/'); X--- 781,786 ---- X*************** X*** 851,857 **** X } X else { /* normal dir name (not . or .. or nothing) */ X X- #ifdef S_IFLNK /* if we have symlinks */ X if (sp != cp && adrof(STRchase_symlinks) && X !adrof(STRig__symlinks) && X (cc = readlink(short2str(cp), tlink, X--- 795,800 ---- X*************** X*** 920,926 **** X cp = newcp; X continue; /* canonicalize the link */ X } X- #endif /* S_IFLNK */ X if (slash) X *p = '/'; X } X--- 863,868 ---- X*************** X*** 929,935 **** X /* X * fix home... X */ X- #ifdef S_IFLNK X p1 = value(STRhome); X cc = Strlen(p1); X /* X--- 871,876 ---- X*************** X*** 983,1007 **** X cp = newcp; X } X } X- #endif /* S_IFLNK */ X- X- #ifdef apollo X- if (slashslash) { X- if (cp[1] != '/') { X- p = (Char *) xmalloc((size_t) (Strlen(cp) + 2) * sizeof(Char)); X- *p = '/'; X- (void) Strcpy(&p[1], cp); X- xfree((ptr_t) cp); X- cp = p; X- } X- } X- if (cp[1] == '/' && cp[2] == '/') X- (void) Strcpy(&cp[1], &cp[2]); X- #endif X return cp; X } X X- X /* X * dnewcwd - make a new directory in the loop the current one X */ X--- 924,932 ---- X*************** X*** 1058,1064 **** X * lets the user have the nth dir extracted from its current X * position, and pushes it onto the top. X */ X! void X dextract(dp) X register struct directory *dp; X { X--- 983,989 ---- X * lets the user have the nth dir extracted from its current X * position, and pushes it onto the top. X */ X! void static X dextract(dp) X register struct directory *dp; X { X*** ./usr/src/bin/tcsh/tc.alloc.c.old Fri Apr 5 00:08:28 1996 X--- ./usr/src/bin/tcsh/tc.alloc.c Thu Aug 20 07:47:34 2026 X*************** X*** 1,14 **** X- /* X- * tc.alloc.c (Caltech) 2/21/82 X- * Chris Kingsley, kingsley@cit-20. X- * X- * This is a very fast storage allocator. It allocates blocks of a small X- * number of different sizes, and keeps free lists of each size. Blocks that X- * don't exactly fit are passed up to the next larger size. In this X- * implementation, the available sizes are 2^n-4 (or 2^n-12) bytes long. X- * This is designed for use in a program that uses vast quantities of memory, X- * but bombs when it runs out. X- */ X /*- X * Copyright (c) 1980, 1991 The Regents of the University of California. X * All rights reserved. X--- 1,3 ---- X*************** X*** 41,470 **** X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X */ X! #include "config.h" X! #if !defined(lint) && !defined(pdp11) X static char *rcsid() X! { return "$Id: tc.alloc.c,v 3.0.1 1996/04/04 21:49:28 sms Exp $"; } X #endif X X! X #include "sh.h" X X- char *memtop = NULL; /* PWP: top of current memory */ X- char *membot = NULL; /* PWP: bottom of allocatable memory */ X- X- #ifndef SYSMALLOC X- X- #define RCHECK X- #define DEBUG X- X- X- #ifndef NULL X- #define NULL 0 X- #endif X- X- typedef unsigned char U_char; /* we don't really have signed chars */ X- #ifdef pdp11 X- typedef u_long U_int; X- #else X- typedef unsigned int U_int; X- #endif X- typedef unsigned short U_short; X- X- X- /* X- * The overhead on a block is at least 4 bytes. When free, this space X- * contains a pointer to the next free block, and the bottom two bits must X- * be zero. When in use, the first byte is set to MAGIC, and the second X- * byte is the size index. The remaining bytes are for alignment. X- * If range checking is enabled and the size of the block fits X- * in two bytes, then the top two bytes hold the size of the requested block X- * plus the range checking words, and the header word MINUS ONE. X- */ X- X- X- #define MEMALIGN(a) (((a) + ROUNDUP) & ~ROUNDUP) X- X- union overhead { X- union overhead *ov_next; /* when free */ X- struct { X- U_char ovu_magic; /* magic number */ X- U_char ovu_index; /* bucket # */ X- #ifdef RCHECK X- U_short ovu_size; /* actual block size */ X- U_int ovu_rmagic; /* range magic number */ X- #endif X- } ovu; X- #define ov_magic ovu.ovu_magic X- #define ov_index ovu.ovu_index X- #define ov_size ovu.ovu_size X- #define ov_rmagic ovu.ovu_rmagic X- }; X- X- #define MAGIC 0xfd /* magic # on accounting info */ X- #define RMAGIC 0x55555555 /* magic # on range info */ X- #ifdef RCHECK X- #define RSLOP sizeof (U_int) X- #else X- #define RSLOP 0 X- #endif X- X- X- #ifdef SUNOS4 X- /* X- * SunOS localtime() overwrites the 9th byte on an 8 byte malloc().... X- * So we align to 16 bytes... X- */ X- #define ROUNDUP 15 X- #else X- #define ROUNDUP 7 X- #endif X- X- /* X- * nextf[i] is the pointer to the next free block of size 2^(i+3). The X- * smallest allocatable block is 8 bytes. The overhead information X- * precedes the data area returned to the user. X- */ X- #define NBUCKETS 30 X- static union overhead *nextf[NBUCKETS]; X- X- #ifdef notdef X- extern char *sbrk(); X- X- #endif X- X- /* X- * nmalloc[i] is the difference between the number of mallocs and frees X- * for a given block size. X- */ X- static U_int nmalloc[NBUCKETS]; X- X- static int findbucket __P((union overhead *, int)); X- static void morecore __P((int)); X- X- X- #ifdef DEBUG X- #define CHECK(a, str, p) \ X- if (a) { \ X- xprintf(str, p); \ X- xprintf("memtop = %lx membot = %lx.\n", memtop, membot); \ X- abort(); \ X- } \ X- else X- #else X- #define CHECK(a, str, p) \ X- if (a) { \ X- xprintf(str, p); \ X- xprintf("memtop = %lx membot = %lx.\n", memtop, membot); \ X- return; \ X- } \ X- else X- #endif X- X- memalign_t X- malloc(nbytes) X- register size_t nbytes; X- { X- #ifndef lint X- register union overhead *p; X- register int bucket = 0; X- register unsigned shiftr; X- X- /* X- * Convert amount of memory requested into closest block size stored in X- * hash buckets which satisfies request. Account for space used per block X- * for accounting. X- */ X- nbytes = MEMALIGN(MEMALIGN(sizeof(union overhead)) + nbytes + RSLOP); X- shiftr = (nbytes - 1) >> 2; X- X- /* apart from this loop, this is O(1) */ X- while (shiftr >>= 1) X- bucket++; X- /* X- * If nothing in hash bucket right now, request more memory from the X- * system. X- */ X- if (nextf[bucket] == NULL) X- morecore(bucket); X- if ((p = (union overhead *) nextf[bucket]) == NULL) { X- child++; X- #ifndef DEBUG X- stderror(ERR_NOMEM); X- #else X- showall(); X- xprintf("nbytes=%d: Out of memory\n", nbytes); X- abort(); X- #endif X- /* fool lint */ X- return ((memalign_t) 0); X- } X- /* remove from linked list */ X- nextf[bucket] = nextf[bucket]->ov_next; X- p->ov_magic = MAGIC; X- p->ov_index = bucket; X- nmalloc[bucket]++; X- #ifdef RCHECK X- /* X- * Record allocated size of block and bound space with magic numbers. X- */ X- if (nbytes <= 0x10000) X- p->ov_size = nbytes - 1; X- p->ov_rmagic = RMAGIC; X- *((U_int *) (((caddr_t) p) + nbytes - RSLOP)) = RMAGIC; X- #endif X- return ((memalign_t) (((caddr_t) p) + MEMALIGN(sizeof(union overhead)))); X- #else X- if (nbytes) X- return ((memalign_t) 0); X- else X- return ((memalign_t) 0); X- #endif /* !lint */ X- } X- X- #ifndef lint X- /* X- * Allocate more memory to the indicated bucket. X- */ X- static void X- morecore(bucket) X- register bucket; X- { X- register union overhead *op; X- register int rnu; /* 2^rnu bytes will be requested */ X- register int nblks; /* become nblks blocks of the desired size */ X- register int siz; X- X- if (nextf[bucket]) X- return; X- /* X- * Insure memory is allocated on a page boundary. Should make getpageize X- * call? X- */ X- op = (union overhead *) sbrk(0); X- memtop = (char *) op; X- if (membot == NULL) X- membot = memtop; X- if ((int) op & 0x3ff) { X- memtop = (char *) sbrk(1024 - ((int) op & 0x3ff)); X- memtop += 1024 - ((int) op & 0x3ff); X- } X- X- /* take 2k unless the block is bigger than that */ X- rnu = (bucket <= 8) ? 11 : bucket + 3; X- nblks = 1 << (rnu - (bucket + 3)); /* how many blocks to get */ X- if (rnu < bucket) X- rnu = bucket; X- memtop = (char *) sbrk(1 << rnu); /* PWP */ X- op = (union overhead *) memtop; X- memtop += 1 << rnu; X- /* no more room! */ X- if ((int) op == -1) X- return; X- /* X- * Round up to minimum allocation size boundary and deduct from block count X- * to reflect. X- */ X- if (((U_int) op) & ROUNDUP) { X- op = (union overhead *) (((U_int) op + (ROUNDUP + 1)) & ~ROUNDUP); X- nblks--; X- } X- /* X- * Add new memory allocated to that on free list for this hash bucket. X- */ X- nextf[bucket] = op; X- siz = 1 << (bucket + 3); X- while (--nblks > 0) { X- op->ov_next = (union overhead *) (((caddr_t) op) + siz); X- op = (union overhead *) (((caddr_t) op) + siz); X- } X- } X- X- #endif X- X- void X- free(cp) X- ptr_t cp; X- { X- #ifndef lint X- register int size; X- register union overhead *op; X- X- if (cp == NULL) X- return; X- CHECK(!memtop || !membot, "free(%lx) called before any allocations.", cp); X- CHECK(cp > (ptr_t) memtop, "free(%lx) above top of memory.", cp); X- CHECK(cp < (ptr_t) membot, "free(%lx) above top of memory.", cp); X- op = (union overhead *) (((caddr_t) cp) - MEMALIGN(sizeof(union overhead))); X- CHECK(op->ov_magic != MAGIC, "free(%lx) bad block.", cp); X- X- #ifdef RCHECK X- if (op->ov_index <= 13) X- CHECK(*(U_int *) ((caddr_t) op + op->ov_size + 1 - RSLOP) != RMAGIC, X- "free(%lx) bad range check.", cp); X- #endif X- CHECK(op->ov_index >= NBUCKETS, "free(%lx) bad block index.", cp); X- size = op->ov_index; X- op->ov_next = nextf[size]; X- nextf[size] = op; X- X- nmalloc[size]--; X- X- #else X- if (cp == NULL) X- return; X- #endif X- } X- X- memalign_t X- calloc(i, j) X- size_t i, j; X- { X- #ifndef lint X- register char *cp, *scp; X- X- i *= j; X- scp = cp = (char *) xmalloc((size_t) i); X- if (i != 0) X- do X- *cp++ = 0; X- while (--i); X- X- return (scp); X- #else X- if (i && j) X- return ((memalign_t) 0); X- else X- return ((memalign_t) 0); X- #endif X- } X- X- #ifndef lint X- /* PWP: a bcopy that does overlapping extents correctly */ X- static void X- mybcopy(from, to, len) X- char *from, *to; X- register unsigned len; X- { X- register char *sp, *dp; X- X- if (from == to) X- return; X- if (from < to) { X- /* len is unsigned, len > 0 is equivalent to len != 0 */ X- for (sp = &from[len - 1], dp = &to[len - 1]; len != 0; len--, sp--, dp--) X- *dp = *sp; X- } X- else { X- /* len is unsigned, len > 0 is equivalent to len != 0 */ X- for (sp = from, dp = to; len != 0; len--, sp++, dp++) X- *dp = *sp; X- } X- } X- X- #endif X- X- /* X- * When a program attempts "storage compaction" as mentioned in the X- * old malloc man page, it realloc's an already freed block. Usually X- * this is the last block it freed; occasionally it might be farther X- * back. We have to search all the free lists for the block in order X- * to determine its bucket: 1st we make one pass thru the lists X- * checking only the first block in each; if that fails we search X- * ``realloc_srchlen'' blocks in each list for a match (the variable X- * is extern so the caller can modify it). If that fails we just copy X- * however many bytes was given to realloc() and hope it's not huge. X- */ X- #ifndef lint X- int realloc_srchlen = 4; /* 4 should be plenty, -1 =>'s whole list */ X- X- #endif /* lint */ X- X- memalign_t X- realloc(cp, nbytes) X- ptr_t cp; X- size_t nbytes; X- { X- #ifndef lint X- register U_int onb; X- union overhead *op; X- char *res; X- register int i; X- int was_alloced = 0; X- X- if (cp == NULL) X- return (malloc(nbytes)); X- op = (union overhead *) (((caddr_t) cp) - MEMALIGN(sizeof(union overhead))); X- if (op->ov_magic == MAGIC) { X- was_alloced++; X- i = op->ov_index; X- } X- else X- /* X- * Already free, doing "compaction". X- * X- * Search for the old block of memory on the free list. First, check the X- * most common case (last element free'd), then (this failing) the last X- * ``realloc_srchlen'' items free'd. If all lookups fail, then assume X- * the size of the memory block being realloc'd is the smallest X- * possible. X- */ X- if ((i = findbucket(op, 1)) < 0 && X- (i = findbucket(op, realloc_srchlen)) < 0) X- i = 0; X- X- onb = MEMALIGN(nbytes + MEMALIGN(sizeof(union overhead)) + RSLOP); X- X- /* avoid the copy if same size block */ X- if (was_alloced && (onb < (1 << (i + 3))) && (onb >= (1 << (i + 2)))) X- return ((memalign_t) cp); X- if ((res = malloc(nbytes)) == NULL) X- return (NULL); X- if (cp != res) /* common optimization */ X- mybcopy(cp, res, nbytes); X- if (was_alloced) X- free(cp); X- return (res); X- #else X- if (cp && nbytes) X- return ((memalign_t) 0); X- else X- return ((memalign_t) 0); X- #endif /* !lint */ X- } X- X- X- X- #ifndef lint X- /* X- * Search ``srchlen'' elements of each free list for a block whose X- * header starts at ``freep''. If srchlen is -1 search the whole list. X- * Return bucket number, or -1 if not found. X- */ X- static int X- findbucket(freep, srchlen) X- union overhead *freep; X- int srchlen; X- { X- register union overhead *p; X- register int i, j; X- X- for (i = 0; i < NBUCKETS; i++) { X- j = 0; X- for (p = nextf[i]; p && j != srchlen; p = p->ov_next) { X- if (p == freep) X- return (i); X- j++; X- } X- } X- return (-1); X- } X- X- #endif X- X- X- #else /* SYSMALLOC */ X- X /** X ** ``Protected versions'' of malloc, realloc, calloc, and free X ** X--- 30,44 ---- X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X */ X! X! #if !defined(lint) && defined(DOSCCS) X static char *rcsid() X! { return "$Id: tc.alloc.c,v 3.0.2 2026/8/15 22:09:28 (2.11BSD) Exp $"; } X #endif X X! #include "config.h" X #include "sh.h" X X /** X ** ``Protected versions'' of malloc, realloc, calloc, and free X ** X*************** X*** 511,518 **** X Calloc(s, n) X register size_t s, n; X { X! register char *sptr; X! ptr_t ptr; X X n *= s; X n = n ? n : 1; X--- 85,91 ---- X Calloc(s, n) X register size_t s, n; X { X! register ptr_t ptr; X X n *= s; X n = n ? n : 1; X*************** X*** 520,532 **** X child++; X stderror(ERR_NOMEM); X } X! X! sptr = (char *) ptr; X! if (n != 0) X! do X! *sptr++ = 0; X! while (--n); X! X return ((memalign_t) ptr); X } X X--- 93,99 ---- X child++; X stderror(ERR_NOMEM); X } X! bzero(ptr, n); X return ((memalign_t) ptr); X } X X*************** X*** 534,587 **** X Free(p) X ptr_t p; X { X! if (p) { X free(p); X- /* X- * jpn: free() doesn't NULL pointers on all systems X- * but tcsh seems to expect it: see sh.c where comment that X- * xfree doesn't care if called twice on same pointers, X- * and fact that Free here tests pointer before freeing it. X- */ X- p = NULL; X- } X } X- X- #endif /* SYSMALLOC */ X- X- #ifndef pdp11 X- /* X- * mstats - print out statistics about malloc X- * X- * Prints two lines of numbers, one showing the length of the free list X- * for each size category, the second showing the number of mallocs - X- * frees for each size category. X- */ X- void X- showall() X- { X- #ifndef SYSMALLOC X- register int i, j; X- register union overhead *p; X- int totfree = 0, totused = 0; X- X- xprintf("tcsh current memory allocation:\nfree:\t"); X- for (i = 0; i < NBUCKETS; i++) { X- for (j = 0, p = nextf[i]; p; p = p->ov_next, j++); X- xprintf(" %4d", j); X- totfree += j * (1 << (i + 3)); X- } X- xprintf("\nused:\t"); X- for (i = 0; i < NBUCKETS; i++) { X- xprintf(" %4d", nmalloc[i]); X- totused += nmalloc[i] * (1 << (i + 3)); X- } X- xprintf("\n\tTotal in use: %d, total free: %d\n", X- totused, totfree); X- xprintf("\tAllocated memory from 0x%lx to 0x%lx. Real top at 0x%lx\n", X- membot, memtop, (char *) sbrk(0)); X- #else X- xprintf("Allocated memory from 0x%lx to 0x%lx (%ld).\n", X- (long)membot, (long)(memtop = (char *) sbrk(0)),(long)(memtop - membot)); X- #endif /* SYSMALLOC */ X- } X- #endif /* pdp11 */ X--- 101,106 ---- X Free(p) X ptr_t p; X { X! if (p) X free(p); X } X*** ./usr/src/bin/tcsh/sh.sem.c.old Fri Aug 30 12:31:27 1991 X--- ./usr/src/bin/tcsh/sh.sem.c Mon Sep 21 20:17:37 2026 X*************** X*** 56,62 **** X #endif /* sparc */ X X #ifdef VFORK X! static sigret_t vffree __P((int)); X #endif X static void doio __P((struct command *t, int *, int *)); X static void chkclob __P((char *)); X--- 56,62 ---- X #endif /* sparc */ X X #ifdef VFORK X! static void vffree __P((void)); X #endif X static void doio __P((struct command *t, int *, int *)); X static void chkclob __P((char *)); X*************** X*** 591,600 **** X } X X #ifdef VFORK X! static sigret_t X /*ARGSUSED*/ X! vffree(snum) X! int snum; X { X register Char **v; X X--- 591,599 ---- X } X X #ifdef VFORK X! void X /*ARGSUSED*/ X! vffree() X { X register Char **v; X X*** ./usr/src/bin/tcsh/ed.decls.h.old Tue Aug 20 23:03:10 1991 X--- ./usr/src/bin/tcsh/ed.decls.h Mon Sep 21 18:42:06 2026 X*************** X*** 1,5 **** X- /* $Header: /home/hyperion/mu/christos/src/sys/tcsh-6.00/RCS/ed.decls.h,v 3.0 1991/07/04 21:49:28 christos Exp $ */ X /* X * ed.decls.h: Editor external definitions X */ X /*- X--- 1,6 ---- X /* X+ * @(#)ed.decls.h 2.0 (2.11BSD) 2026/9/21 X+ * X * ed.decls.h: Editor external definitions X */ X /*- X*************** X*** 48,54 **** X */ X extern void check_window_size __P((int)); X #ifdef SIG_WINDOW X! extern sigret_t window_change __P((int)); X #endif X extern void ed_I __P((void)); X extern int Cookedmode __P((void)); X--- 49,55 ---- X */ X extern void check_window_size __P((int)); X #ifdef SIG_WINDOW X! extern void window_change __P((void)); X #endif X extern void ed_I __P((void)); X extern int Cookedmode __P((void)); X*** ./usr/src/bin/chpass/chpass.c.old Fri Jan 12 21:43:11 1996 X--- ./usr/src/bin/chpass/chpass.c Mon Sep 21 20:26:33 2026 X*************** X*** 20,35 **** X "@(#) Copyright (c) 1988 The Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)chpass.c 5.10.1 (2.11BSD) 1996/1/12"; X! #endif /* not lint */ X X #include X #include X #include X- #include X #include X #include X #include X #include X #include X #include X--- 20,35 ---- X "@(#) Copyright (c) 1988 The Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)chpass.c 5.10.2 (2.11BSD) 2026/9/21"; X! #endif X X #include X #include X #include X #include X #include X #include X+ #include X #include X #include X #include X*** ./usr/src/bin/chpass/field.c.old Mon May 15 00:09:06 1989 X--- ./usr/src/bin/chpass/field.c Sun May 31 06:29:53 2026 X*************** X*** 15,23 **** X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)field.c 5.8 (Berkeley) 3/16/89"; X! #endif /* not lint */ X X #include X #include X--- 15,23 ---- X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)field.c 5.9 (2.11BSD) 2026/5/10"; X! #endif X X #include X #include X*************** X*** 26,36 **** X #include X #include X #include X! #include "pathnames.h" X X /* ARGSUSED */ X p_login(p, pw, ep) X! char *p; X struct passwd *pw; X struct entry *ep; X { X--- 26,36 ---- X #include X #include X #include X! #include X X /* ARGSUSED */ X p_login(p, pw, ep) X! register char *p; X struct passwd *pw; X struct entry *ep; X { X*** ./usr/src/bin/chpass/util.c.old Fri Jan 12 21:47:13 1996 X--- ./usr/src/bin/chpass/util.c Sun May 31 06:30:34 2026 X*************** X*** 16,22 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)util.c 5.9.1 (2.11BSD) 1996/1/12"; X #endif X X #include X--- 16,22 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)util.c 5.9.2 (2.11BSD) 2026/5/31"; X #endif X X #include X*************** X*** 26,32 **** X #include X #include X #include X! #include "pathnames.h" X X static char dmsize[] = X { -1, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; X--- 26,32 ---- X #include X #include X #include X! #include X X static char dmsize[] = X { -1, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; X*** ./usr/src/bin/Makefile.old Sun Dec 28 22:06:19 2025 X--- ./usr/src/bin/Makefile Wed Apr 1 20:16:37 2026 X*************** X*** 3,9 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.19.11 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X LDFLAGS= -i X--- 3,9 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.19.12 (2.11BSD) 2026/1/27 X # X CFLAGS= -O X LDFLAGS= -i X*************** X*** 11,17 **** X # Programs that live in subdirectories, and have makefiles of their own. X # X SUBDIR= adb ar as awk chflags chpass csh diff disklabel hostname ld login \ X! ls make nm passwd ping sed sh stty sysctl tcsh test tp X X # Shell scripts that need only be installed and are never removed. X # X--- 11,17 ---- X # Programs that live in subdirectories, and have makefiles of their own. X # X SUBDIR= adb ar as awk chflags chpass csh diff disklabel hostname ld login \ X! ls make mkdir nm passwd ps ping sed sh stty sysctl tcsh test tp X X # Shell scripts that need only be installed and are never removed. X # X*************** X*** 21,27 **** X # explicit make lines. X # X STD= cat cc chgrp chmod cmp cp date dd du echo ed hostid \ X! kill ln mkdir mt mv nice od pagesize pr \ X pwd rm rmail rmdir size sync tar tee time who X X # C programs that live in the current directory and need explicit make lines. X--- 21,27 ---- X # explicit make lines. X # X STD= cat cc chgrp chmod cmp cp date dd du echo ed hostid \ X! grep kill ln mt mv nice od pagesize pr \ X pwd rm rmail rmdir size sync tar tee time who X X # C programs that live in the current directory and need explicit make lines. X*************** X*** 36,45 **** X # X OPERATOR= df X X- # Programs that must run set-group-id kmem. X- # X- KMEM= ps X- X # Programs that must run set-group-id tty. X # X TTY= wall write X--- 36,41 ---- X*************** X*** 47,53 **** X # 'strip' is handled specially because 'install -s' now uses 'strip' and X # thus we can't do a 'install -s strip /bin/strip' without an error. X # X! BINS= ${STD} ${NSTD} ${SETUID} ${OPERATOR} ${KMEM} ${TTY} strip X X all: ${SUBDIR} ${BINS} X X--- 43,49 ---- X # 'strip' is handled specially because 'install -s' now uses 'strip' and X # thus we can't do a 'install -s strip /bin/strip' without an error. X # X! BINS= ${STD} ${NSTD} ${SETUID} ${OPERATOR} ${TTY} strip X X all: ${SUBDIR} ${BINS} X X*************** X*** 57,63 **** X FRC: X X X! ${STD} ${SETUID} ${KMEM} ${OPERATOR} ${TTY} strip: X ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.c X X install: ${BINS} X--- 53,59 ---- X FRC: X X X! ${STD} ${SETUID} ${OPERATOR} ${TTY} strip: X ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $@.c X X install: ${BINS} X*************** X*** 69,76 **** X (install -c -o root -m 4755 -s $$i /bin/$$i); done X -for i in ${OPERATOR}; do \ X (install -c -o root -g operator -m 2755 -s $$i /bin/$$i); done X- -for i in ${KMEM}; do \ X- (install -c -o root -g kmem -m 2755 -s $$i /bin/$$i); done X -for i in ${TTY}; do \ X (install -c -o root -g tty -m 2755 -s $$i /bin/$$i); done X -install -c -s -m 755 -g staff strip /bin/xstrip X--- 65,70 ---- X*** ./usr/src/bin/ls/ls.c.old Mon Dec 23 14:29:03 1996 X--- ./usr/src/bin/ls/ls.c Wed Aug 19 17:04:31 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)ls.c 5.9.2 (2.11BSD GTE) 1996/12/23"; X #endif X X /* X--- 9,15 ---- X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)ls.c 5.9.3 (2.11BSD) 2026/1/21"; X #endif X X /* X*************** X*** 51,57 **** X } *subdirs; X X char aflg, dflg, gflg, lflg, sflg, tflg, uflg, iflg, fflg, cflg, rflg = 1; X! char oflg, qflg, Aflg, Cflg, Fflg, Lflg, Rflg, usetabs; X X time_t now, sixmonthsago; X X--- 51,57 ---- X } *subdirs; X X char aflg, dflg, gflg, lflg, sflg, tflg, uflg, iflg, fflg, cflg, rflg = 1; X! char oflg, qflg, Aflg, Cflg, Fflg, Lflg, Rflg, Tflg, usetabs; X X time_t now, sixmonthsago; X X*************** X*** 60,65 **** X--- 60,67 ---- X struct winsize win; X int twidth; X X+ extern int stat(), lstat(); X+ X struct afile *gstat(); X int fcmp(); X char *cat(), *savestr(); X*************** X*** 75,81 **** X register struct afile *fp; X struct sgttyb sgbuf; X int ch, i; X- time_t time(); X X Aflg = !getuid(); X (void) time(&now); sixmonthsago = now - 6L*30L*24L*60L*60L; now += 60; X--- 77,82 ---- X*************** X*** 89,95 **** X usetabs = 1; X } else X usetabs = 1; X! while ((ch = getopt(argc, argv, "1ACLFRacdfgiloqrstu")) != EOF) X switch((char)ch) { X /* X * The -1, -C, and -l options override each other so shell aliasing X--- 90,96 ---- X usetabs = 1; X } else X usetabs = 1; X! while ((ch = getopt(argc, argv, "1ACTLFRacdfgiloqrstu")) != EOF) X switch((char)ch) { X /* X * The -1, -C, and -l options override each other so shell aliasing X*************** X*** 98,103 **** X--- 99,107 ---- X case '1': X lflg = 0; X Cflg = 0; break; X+ case 'T': X+ Tflg = 1; X+ break; X case 'C': X lflg = 0; X Cflg = 1; break; X*************** X*** 199,206 **** X t = subdirs; subdirs = t->sd_next; X putchar('\n'); X formatd(t->sd_name, 1); X! cfree(t->sd_name); X! cfree((char *)t); X } X if (++fp == fplast) X break; X--- 203,210 ---- X t = subdirs; subdirs = t->sd_next; X putchar('\n'); X formatd(t->sd_name, 1); X! free(t->sd_name); X! free((char *)t); X } X if (++fp == fplast) X break; X*************** X*** 242,252 **** X } X for (fp = dfp0; fp < dfplast; fp++) { X if ((fp->fmode&ISARG) == 0 && fp->fname) X! cfree(fp->fname); X if (fp->flinkto) X! cfree(fp->flinkto); X } X! cfree((char *)dfp0); X } X X long X--- 246,256 ---- X } X for (fp = dfp0; fp < dfplast; fp++) { X if ((fp->fmode&ISARG) == 0 && fp->fname) X! free(fp->fname); X if (fp->flinkto) X! free(fp->flinkto); X } X! free((char *)dfp0); X } X X long X*************** X*** 305,312 **** X return (kbytes(dbtob(nb))); X } X X- int stat(), lstat(); X- X struct afile * X gstat(fp, file, statarg, pnb) X register struct afile *fp; X--- 309,314 ---- X*************** X*** 566,576 **** X { X static char lstuffbuf[256]; X char gname[32], uname[32], fsize[32], ftime[32], fflags[64]; X! register char *lp = lstuffbuf; X X /* type mode uname gname fsize ftime */ X /* get uname */ X! { char *cp = getname(p->fuid); X if (cp) X (void) sprintf(uname, "%-9.9s", cp); X else X--- 568,579 ---- X { X static char lstuffbuf[256]; X char gname[32], uname[32], fsize[32], ftime[32], fflags[64]; X! register char *lp = lstuffbuf, *cp; X X /* type mode uname gname fsize ftime */ X /* get uname */ X! { X! cp = getname(p->fuid); X if (cp) X (void) sprintf(uname, "%-9.9s", cp); X else X*************** X*** 578,584 **** X } X /* get gname */ X if (gflg) { X! char *cp = getgroup(p->fgid); X if (cp) X (void) sprintf(gname, "%-9.9s", cp); X else X--- 581,587 ---- X } X /* get gname */ X if (gflg) { X! cp = getgroup(p->fgid); X if (cp) X (void) sprintf(gname, "%-9.9s", cp); X else X*************** X*** 597,608 **** X else X (void) sprintf(fsize, "%8ld", p->fsize); X /* get ftime */ X! { char *cp = ctime(&p->fmtime); X! if ((p->fmtime < sixmonthsago) || (p->fmtime > now)) X! (void) sprintf(ftime, " %-7.7s %-4.4s ", cp+4, cp+20); X! else X! (void) sprintf(ftime, " %-12.12s ", cp+4); X! } X /* splat */ X *lp++ = p->ftype; X lp = fmtmode(lp, p->fmode); X--- 600,616 ---- X else X (void) sprintf(fsize, "%8ld", p->fsize); X /* get ftime */ X! cp = ctime(&p->fmtime); X! if (Tflg) X! sprintf(ftime, " %-15.15s %-4.4s ", cp+4, cp+20); X! else X! { X! if ((p->fmtime < sixmonthsago) || (p->fmtime > now)) X! (void) sprintf(ftime, " %-7.7s %-4.4s ", cp+4, cp+20); X! else X! (void) sprintf(ftime, " %-12.12s ", cp+4); X! } X! X /* splat */ X *lp++ = p->ftype; X lp = fmtmode(lp, p->fmode); X*** ./usr/src/bin/sysctl/sysctl.c.old Fri Apr 3 22:37:16 1998 X--- ./usr/src/bin/sysctl/sysctl.c Sat Oct 24 20:56:43 2026 X*************** X*** 36,43 **** X "@(#) Copyright (c) 1993\n\ X The Regents of the University of California. All rights reserved.\n"; X X! static char sccsid[] = "@(#)sysctl.c 8.1.4 (2.11BSD GTE) 1998/4/3"; X! #endif /* not lint */ X X #include X #include X--- 36,43 ---- X "@(#) Copyright (c) 1993\n\ X The Regents of the University of California. All rights reserved.\n"; X X! static char sccsid[] = "@(#)sysctl.c 8.1.5 (2.11BSD) 2026/9/14"; X! #endif X X #include X #include X*************** X*** 44,49 **** X--- 44,51 ---- X #include X #include X #include X+ #include /* for CPUSTATES */ X+ #include /* for TR_NUM_210 */ X X #include X #include X*************** X*** 182,188 **** X char *string; X int flags; X { X! int indx, type, state, size, len; X int special = 0; X void *newval = (void *)0; X int intval, newsize = 0; X--- 184,190 ---- X char *string; X int flags; X { X! int indx, type, state, size, len, dev; X int special = 0; X void *newval = (void *)0; X int intval, newsize = 0; X*************** X*** 257,262 **** X--- 259,279 ---- X break; X X case CTL_HW: X+ if (mib[1] == HW_TRACEBUF) { X+ u_long trbuf[TR_NUM_210]; X+ X+ mib[0] = CTL_HW; X+ mib[1] = HW_TRACEBUF; X+ len = sizeof (trbuf); X+ if (sysctl(mib, 2, trbuf, &len, NULL, 0) < 0) X+ return; X+ if (!nflag) X+ printf("%s: ", string); X+ printf("%ld %ld %ld %ld %ld %ld %ld\n", X+ trbuf[0], trbuf[1], trbuf[2], trbuf[3], X+ trbuf[4], trbuf[5], trbuf[6]); X+ return; X+ } X break; X X case CTL_VM: X*************** X*** 265,275 **** X X getloadavg(loads, 3); X if (!nflag) X! fprintf(stdout, "%s: ", string); X! fprintf(stdout, "%.2f %.2f %.2f\n", X! loads[0], loads[1], loads[2]); X return; X } X if (flags == 0) X return; X fprintf(stderr, X--- 282,318 ---- X X getloadavg(loads, 3); X if (!nflag) X! printf("%s: ", string); X! printf("%.2f %.2f %.2f\n",loads[0], loads[1], loads[2]); X return; X } X+ if (mib[1] == VM_NSWAP) { X+ if (!nflag) X+ printf("%s: ", string); X+ printf("%d\n", sysctl_vm_nswap()); X+ return; X+ } X+ if (mib[1] == VM_SWAPDEV) { X+ if (!nflag) X+ printf("%s: ", string); X+ dev = sysctl_vm_swapdev(); X+ printf("%d,%d\n", major(dev), minor(dev)); X+ return; X+ } X+ if (mib[1] == VM_CP_TIME) { X+ long cptime[CPUSTATES]; X+ X+ mib[0] = CTL_VM; X+ mib[1] = VM_CP_TIME; X+ len = sizeof (cptime); X+ if (sysctl(mib, 2, cptime, &len, NULL, 0) < 0) X+ return; X+ if (!nflag) X+ printf("%s: ", string); X+ printf("%ld %ld %ld %ld\n", X+ cptime[0], cptime[1], cptime[2], cptime[3]); X+ return; X+ } X if (flags == 0) X return; X fprintf(stderr, X*************** X*** 542,547 **** X--- 585,614 ---- X { 0, 0 }, X { udpname, UDPCTL_MAXID }, /* udp */ X }; X+ X+ sysctl_vm_nswap() X+ { X+ int mib[2], nsw, len; X+ X+ mib[0] = CTL_VM; X+ mib[1] = VM_NSWAP; X+ len = sizeof (int); X+ X+ sysctl(mib, 2, &nsw, &len, NULL, 0); X+ return(nsw); X+ } X+ X+ sysctl_vm_swapdev() X+ { X+ int mib[2], swapdev, len; X+ X+ mib[0] = CTL_VM; X+ mib[1] = VM_SWAPDEV; X+ len = sizeof (int); X+ X+ sysctl(mib, 2, &swapdev, &len, NULL, 0); X+ return(swapdev); X+ } X X /* X * handle internet requests X*** ./usr/src/bin/sysctl/sysctl.8.old Tue Aug 17 00:58:50 1999 X--- ./usr/src/bin/sysctl/sysctl.8 Sat Oct 24 21:10:22 2026 X*************** X*** 29,37 **** X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)sysctl.8 8.1.5 (2.11BSD) 1999/4/29 X .\" X! .TH SYSCTL 8 "April 24, 1999" X .UC 4 X .SH NAME X sysctl \- get or set kernel state X--- 29,37 ---- X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)sysctl.8 8.1.6 (2.11BSD) 2026/6/3 X .\" X! .TH SYSCTL 8 "June 3, 2026" X .UC 4 X .SH NAME X sysctl \- get or set kernel state X*************** X*** 109,115 **** X .ta 0.5i 3.0i 4.0i X .nf X Name Type Changeable X- kern.acctthresh int yes X kern.ostype string no X kern.osrelease string no X kern.osrevision long no X--- 109,114 ---- X*************** X*** 117,143 **** X kern.maxinodes integer no X kern.maxproc integer no X kern.maxfiles integer no X- kern.maxtext integer no X kern.argmax integer no X kern.securelevel integer raise only X kern.hostname string yes X kern.hostid long yes X kern.clockrate struct no X kern.posix1version integer no X kern.ngroups integer no X kern.job_control integer no X kern.saved_ids integer no X- .\" kern.link_max integer no X- .\" kern.max_canon integer no X- .\" kern.max_input integer no X- .\" kern.name_max integer no X- .\" kern.path_max integer no X- .\" kern.pipe_buf integer no X- .\" kern.chown_restricted integer no X- .\" kern.no_trunc integer no X- .\" kern.vdisable integer no X kern.boottime struct no X vm.loadavg struct no X machdep.console_device dev_t no X machdep.mscp.printf integer yes X machdep.tmscp.cache integer yes X--- 116,145 ---- X kern.maxinodes integer no X kern.maxproc integer no X kern.maxfiles integer no X kern.argmax integer no X kern.securelevel integer raise only X kern.hostname string yes X kern.hostid long yes X kern.clockrate struct no X+ kern.inode struct no X+ kern.proc struct no X+ kern.file struct no X kern.posix1version integer no X kern.ngroups integer no X kern.job_control integer no X kern.saved_ids integer no X kern.boottime struct no X+ kern.maxtext integer no X+ kern.text struct no X+ kern.acctthresh int yes X+ kern.linehz int yes X+ vm.vmmeter struct no X vm.loadavg struct no X+ vm.swapmap struct no X+ vm.coremap struct no X+ vm.nswap integer no X+ vm.swapdev integer no X+ vm.cp_time struct no X machdep.console_device dev_t no X machdep.mscp.printf integer yes X machdep.tmscp.cache integer yes X*************** X*** 145,150 **** X--- 147,154 ---- X net.inet.ip.forwarding integer yes X net.inet.ip.redirect integer yes X net.inet.ip.ttl integer yes X+ net.inet.ip.forwsrcrt integer yes X+ net.inet.ip.tcp_fw2timeout integer yes X net.inet.icmp.maskrepl integer yes X net.inet.udp.checksum integer yes X hw.machine string no X*************** X*** 154,159 **** X--- 158,164 ---- X hw.physmem long no X hw.usermem long no X hw.pagesize integer no X+ hw.tracebuf struct no X user.cs_path string no X user.bc_base_max integer no X user.bc_dim_max integer no X*************** X*** 198,203 **** X--- 203,227 ---- X .br X .in -1.0i X .PP X+ The number of process accouting records buffered before the accounting X+ daemon \fBacctd\fP is notified can be changed from the default value of 10 X+ with: X+ .sp X+ .in +1.0i X+ sysctl -w kern.acctthresh=20 X+ .br X+ .in -1.0i X+ .br X+ .PP X+ The system clock frequency can be modified. This is useful if the kernel X+ was compiled with a different LINEHZ value than the local power grid. X+ Only values 50 and 60 are allowed. Set the kernel \fBhz\fP value with: X+ .sp X+ .in +1.0i X+ sysctl -w kern.linehz=50 X+ .br X+ .in -1.0i X+ .PP X Information about the load average history may be obtained with X .sp X .in +1.0i X*************** X*** 212,220 **** X .TP 15 X X definitions for second level network identifiers X- .TP 15 X- X- definitions for third level profiling identifiers X .TP 15 X X definitions for second and third level machine dependent identifiers X--- 236,241 ---- X*** ./usr/src/bin/nm/nm.c.old Sun Feb 6 02:17:33 1994 X--- ./usr/src/bin/nm/nm.c Wed May 20 07:30:44 2026 X*************** X*** 1,8 **** X #if !defined(lint) && !defined(DOSCCS) X! static char sccsid[] = "@(#)nm.c 2.11BSD 1/22/94"; X #endif X /* X! * nm - print name list. string table version X */ X #include X #include X--- 1,8 ---- X #if !defined(lint) && !defined(DOSCCS) X! static char sccsid[] = "@(#)nm.c 2.1 (2.11BSD) 2026/5/19"; X #endif X /* X! * nm - print symbol table of object/executable X */ X #include X #include X*************** X*** 13,24 **** X #include X #include "archive.h" X #include X X CHDR chdr; X X #define SELECT archive ? chdr.name : *xargv X X! char aflg, gflg, nflg, oflg, pflg, uflg, rflg = 1, archive; X char **xargv; X char *strp; X union { X--- 13,25 ---- X #include X #include "archive.h" X #include X+ #include X X CHDR chdr; X X #define SELECT archive ? chdr.name : *xargv X X! char gflg, nflg, oflg, pflg, uflg, rflg = 1, archive; X char **xargv; X char *strp; X union { X*************** X*** 27,35 **** X } mag_un; X X off_t off, skip(); X- extern off_t ftell(); X- extern char *malloc(); X- extern long strtol(); X int compare(), narg, errs; X X main(argc, argv) X--- 28,33 ---- X*************** X*** 58,66 **** X continue; X case 'o': X oflg++; X- continue; X- case 'a': X- aflg++; X continue; X default: X fprintf(stderr, "nm: invalid argument -%c\n", X--- 56,61 ---- X*** ./usr/src/bin/cp.c.old Sun Feb 8 17:24:49 1987 X--- ./usr/src/bin/cp.c Tue May 5 21:58:57 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)cp.c 4.13 (Berkeley) 10/11/85"; X! #endif not lint X X /* X * cp X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)cp.c 4.14 (2.11BSD) 2026/5/5"; X! #endif X X /* X * cp X*************** X*** 22,32 **** X #include X #include X #include X X int iflag; X int rflag; X int pflag; X- char *rindex(); X X main(argc, argv) X int argc; X--- 20,30 ---- X #include X #include X #include X+ #include X X int iflag; X int rflag; X int pflag; X X main(argc, argv) X int argc; X*************** X*** 184,190 **** X char *from, *to; X { X DIR *fold = opendir(from); X! struct direct *dp; X struct stat statb; X int errs = 0; X char fromname[MAXPATHLEN + 1]; X--- 182,188 ---- X char *from, *to; X { X DIR *fold = opendir(from); X! register struct direct *dp; X struct stat statb; X int errs = 0; X char fromname[MAXPATHLEN + 1]; X*************** X*** 219,225 **** X int X setimes(path, statp) X char *path; X! struct stat *statp; X { X struct timeval tv[2]; X X--- 217,223 ---- X int X setimes(path, statp) X char *path; X! register struct stat *statp; X { X struct timeval tv[2]; X X*** ./usr/src/bin/cmp.c.old Sun Jul 3 17:56:45 1988 X--- ./usr/src/bin/cmp.c Fri May 8 08:59:12 2026 X*************** X*** 10,24 **** X * is provided ``as is'' without express or implied warranty. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1987 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif /* !lint */ X X! #ifndef lint X! static char sccsid[] = "@(#)cmp.c 4.8 (Berkeley) 12/21/87"; X! #endif /* !lint */ X X #include X #include X--- 10,22 ---- X * is provided ``as is'' without express or implied warranty. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1987 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)cmp.c 4.9 (2.11BSD) 2026/5/7"; X! #endif X X #include X #include X*************** X*** 26,31 **** X--- 24,30 ---- X #include X #include X #include X+ #include X X #define DIFF 1 /* found differences */ X #define ERR 2 /* error during run */ X*************** X*** 44,51 **** X int argc; X char **argv; X { X- extern char *optarg; X- extern int optind; X int ch; X u_long otoi(); X X--- 43,48 ---- X*************** X*** 91,97 **** X */ X static X skip(dist, fd, fname) X! register u_long dist; /* length in bytes, to skip */ X register int fd; /* file descriptor */ X char *fname; /* file name for error */ X { X--- 88,94 ---- X */ X static X skip(dist, fd, fname) X! u_long dist; /* length in bytes, to skip */ X register int fd; /* file descriptor */ X char *fname; /* file name for error */ X { X*************** X*** 115,122 **** X register u_char *C1, *C2; /* traveling pointers */ X register int cnt, /* counter */ X len1, len2; /* read lengths */ X! register long byte, /* byte count */ X! line; /* line count */ X short dfound = NO; /* if difference found */ X X for (byte = 0, line = 1;;) { X--- 112,119 ---- X register u_char *C1, *C2; /* traveling pointers */ X register int cnt, /* counter */ X len1, len2; /* read lengths */ X! long byte, /* byte count */ X! line; /* line count */ X short dfound = NO; /* if difference found */ X X for (byte = 0, line = 1;;) { X*************** X*** 196,202 **** X otoi(C) X register char *C; /* argument string */ X { X! register u_long val; /* return value */ X register int base; /* number base */ X X base = (*C == '0') ? 8 : 10; X--- 193,199 ---- X otoi(C) X register char *C; /* argument string */ X { X! u_long val; /* return value */ X register int base; /* number base */ X X base = (*C == '0') ? 8 : 10; X*************** X*** 213,219 **** X error(filename) X char *filename; X { X- extern int errno; X int sverrno; X X if (!silent) { X--- 210,215 ---- X*** ./usr/src/bin/chgrp.c.old Sat Nov 5 00:43:13 1994 X--- ./usr/src/bin/chgrp.c Tue May 19 22:04:33 2026 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)chgrp.c 5.7.1 (2.11BSD GTE) 11/4/94"; X #endif X X /* X--- 5,11 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)chgrp.c 5.7.2 (2.11BSD) 2026/5/19"; X #endif X X /* X*************** X*** 21,28 **** X #include X #include X X! struct group *gr, *getgrnam(), *getgrgid(); X! struct passwd *getpwuid(), *pwd; X struct stat stbuf; X gid_t gid; X uid_t uid; X--- 21,28 ---- X #include X #include X X! struct group *gr; X! struct passwd *pwd; X struct stat stbuf; X gid_t gid; X uid_t uid; X*** ./usr/src/bin/tee.c.old Sun Feb 8 17:24:53 1987 X--- ./usr/src/bin/tee.c Mon Sep 21 20:44:29 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)tee.c 5.4 (Berkeley) 12/14/85"; X #endif X /* X * tee-- pipe fitting X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)tee.c 5.5 (2.11BSD) 2026/5/7"; X #endif X /* X * tee-- pipe fitting X*************** X*** 9,14 **** X--- 9,15 ---- X #include X #include X #include X+ #include X X #define BUFSIZ 8192 X int openf[20] = { 1 }; X*************** X*** 20,28 **** X X char out[BUFSIZ]; X X- extern errno; X- long lseek(); X- X main(argc,argv) X char **argv; X { X--- 21,26 ---- X*************** X*** 83,91 **** X X stash(p) X { X! int k; X! int i; X! int d; X d = t ? 16 : p; X for(i=0; i X X main(argc,argv) X int argc; X char **argv; X { X! int errors = 0; X X! if (argc < 2) { X! fprintf(stderr, "usage: %s directory ...\n", argv[0]); X! exit(1); X! } X while (--argc) X if (rmdir(*++argv) < 0) { X! fprintf(stderr, "rmdir: "); X! perror(*argv);; X errors++; X } X exit(errors != 0); X--- 4,34 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)rmdir.c 5.2 (2.11BSD) 2026/5/7"; X! #endif X X /* X * Remove directory X */ X #include X+ #include X X main(argc,argv) X int argc; X char **argv; X { X! register int errors = 0; X X! if (argc < 2) X! errx(1, "usage: %s directory ...", argv[0]); X while (--argc) X if (rmdir(*++argv) < 0) { X! warn("%s", *argv); X errors++; X } X exit(errors != 0); X*** ./usr/src/bin/sync.c.old Sun Feb 8 17:24:52 1987 X--- ./usr/src/bin/sync.c Thu May 7 18:22:49 2026 X*************** X*** 1,4 **** X! static char *sccsid = "@(#)sync.c 4.1 (Berkeley) 10/1/80"; X main() X { X X--- 1,7 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)sync.c 4.2 (2.11BSD) 2026/5/7"; X! #endif X! X main() X { X X*** ./usr/src/bin/pagesize.c.old Sun Feb 8 17:24:56 1987 X--- ./usr/src/bin/pagesize.c Thu May 7 18:24:28 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)pagesize.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X main() X { X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)pagesize.c 5.2 (2.11BSD) 2026/5/7"; X! #endif X X main() X { X*** ./usr/src/bin/cat.c.old Sun Feb 8 17:24:47 1987 X--- ./usr/src/bin/cat.c Thu May 7 18:29:47 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)cat.c 5.2 (Berkeley) 12/6/85"; X! #endif not lint X X /* X * Concatenate files. X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cat.c 5.3 (2.11BSD) 2026/5/7"; X! #endif X X /* X * Concatenate files. X*************** X*** 16,23 **** X #include X #include X X- /* #define OPTSIZE BUFSIZ /* define this only if not 4.2 BSD or beyond */ X- X int bflg, eflg, nflg, sflg, tflg, uflg, vflg; X int spaced, col, lno, inline, ibsize, obsize; X X--- 16,21 ---- X*************** X*** 70,78 **** X dev = statb.st_dev; X ino = statb.st_ino; X } X- #ifndef OPTSIZE X obsize = statb.st_blksize; X- #endif X } X else X obsize = 0; X--- 68,74 ---- X*************** X*** 99,107 **** X retval = 1; X continue; X } X- #ifndef OPTSIZE X ibsize = statb.st_blksize; X- #endif X } X else X ibsize = 0; X--- 95,101 ---- X*************** X*** 173,186 **** X } X X fastcat(fd) X! register int fd; X { X! register int buffsize, n, nwritten, offset; X register char *buff; X struct stat statbuff; X- char *malloc(); X X- #ifndef OPTSIZE X if (obsize) X buffsize = obsize; /* common case, use output blksize */ X else if (ibsize) X--- 167,179 ---- X } X X fastcat(fd) X! int fd; X { X! int buffsize, n; X! register int nwritten, offset; X register char *buff; X struct stat statbuff; X X if (obsize) X buffsize = obsize; /* common case, use output blksize */ X else if (ibsize) X*************** X*** 187,197 **** X buffsize = ibsize; X else X buffsize = BUFSIZ; X- #else X- buffsize = OPTSIZE; X- #endif X X! if ((buff = malloc(buffsize)) == NULL) { X perror("cat: no memory"); X return (1); X } X--- 180,187 ---- X buffsize = ibsize; X else X buffsize = BUFSIZ; X X! if ((buff = (char *)malloc(buffsize)) == NULL) { X perror("cat: no memory"); X return (1); X } X*** ./usr/src/bin/kill.c.old Thu Mar 21 22:46:33 1996 X--- ./usr/src/bin/kill.c Thu May 7 18:31:51 2026 X*************** X*** 1,4 **** X! static char *sccsid = "@(#)kill.c 4.4.1 (2.11BSD) 1996/3/21"; X /* X * kill - send signal to process X */ X--- 1,7 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)kill.c 4.4.2 (2.11BSD) 2026/5/7"; X! #endif X! X /* X * kill - send signal to process X */ X*************** X*** 5,10 **** X--- 8,14 ---- X X #include X #include X+ #include X X char *signm[] = { 0, X "HUP", "INT", "QUIT", "ILL", "TRAP", "IOT", "EMT", "FPE", /* 1-8 */ X*************** X*** 18,24 **** X { X register signo, pid, res; X int errlev; X- extern errno; X X errlev = 0; X if (argc <= 1) { X--- 22,27 ---- X*** ./usr/src/bin/ed.c.old Sun Feb 8 17:24:48 1987 X--- ./usr/src/bin/ed.c Mon Sep 21 20:33:21 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)ed.c 4.5.1.1 (Berkeley) 8/12/86"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ed.c 4.5.2 (2.11BSD) 2026/5/7"; X #endif X X /* X*************** X*** 10,15 **** X--- 10,18 ---- X #include X #undef CEOF X #include X+ #include X+ #include X+ X #define NULL 0 X #define FNSIZE 64 X #define LBSIZE 512 X*************** X*** 55,63 **** X int ninbuf; X int io; X int pflag; X! long lseek(); X! int (*oldhup)(); X! int (*oldquit)(); X int vflag = 1; X X X--- 58,65 ---- X int ninbuf; X int io; X int pflag; X! sig_t oldhup; X! sig_t oldquit; X int vflag = 1; X X X*************** X*** 92,100 **** X char *getline(); X char *getblock(); X char *place(); X! char *mktemp(); X! char *malloc(); X! char *realloc(); X jmp_buf savej; X X main(argc, argv) X--- 94,100 ---- X char *getline(); X char *getblock(); X char *place(); X! extern char *mktemp(); X jmp_buf savej; X X main(argc, argv) X*************** X*** 101,108 **** X char **argv; X { X register char *p1, *p2; X! extern int onintr(), quit(), onhup(); X! int (*oldintr)(); X X oldquit = signal(SIGQUIT, SIG_IGN); X oldhup = signal(SIGHUP, SIG_IGN); X--- 101,108 ---- X char **argv; X { X register char *p1, *p2; X! void onintr(), quit(), onhup(); X! sig_t oldintr; X X oldquit = signal(SIGQUIT, SIG_IGN); X oldhup = signal(SIGHUP, SIG_IGN); X*************** X*** 546,551 **** X--- 546,552 ---- X } X } X X+ void X onintr() X { X signal(SIGINT, onintr); X*************** X*** 554,559 **** X--- 555,561 ---- X error(Q); X } X X+ void X onhup() X { X signal(SIGINT, SIG_IGN); X*************** X*** 744,750 **** X X callunix() X { X! register (*savint)(), pid, rpid; X int retcode; X X setnoaddr(); X--- 746,753 ---- X X callunix() X { X! sig_t savint; X! register pid_t pid, rpid; X int retcode; X X setnoaddr(); X*** ./usr/src/bin/echo.c.old Sun Feb 8 17:24:51 1987 X--- ./usr/src/bin/echo.c Thu May 7 18:36:50 2026 X*************** X*** 1,4 **** X! static char *sccsid = "@(#)echo.c 4.2 (Berkeley) 5/27/85"; X #include X X main(argc, argv) X--- 1,7 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)echo.c 4.3 (2.11BSD) 2026/5/7"; X! #endif X! X #include X X main(argc, argv) X*** ./usr/src/bin/pwd.c.old Sun Feb 8 17:24:56 1987 X--- ./usr/src/bin/pwd.c Thu May 7 18:39:18 2026 X*************** X*** 4,26 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)pwd.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X /* X * Print working (current) directory X */ X #include X #include X- X- char *getwd(); X X main() X { X--- 4,23 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)pwd.c 5.2 (2.11BSD) 2026/5/7"; X! #endif X X /* X * Print working (current) directory X */ X #include X+ #include X #include X X main() X { X*** ./usr/src/bin/nice.c.old Sun Feb 8 17:24:56 1987 X--- ./usr/src/bin/nice.c Thu May 7 18:41:08 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)nice.c 5.2 (Berkeley) 1/12/86"; X! #endif not lint X X #include X X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)nice.c 5.3 (2.11BSD) 2026/5/7"; X! #endif X X #include X X*************** X*** 23,29 **** X int argc; X char *argv[]; X { X! int nicarg = 10; X X if (argc > 1 && argv[1][0] == '-') { X nicarg = atoi(&argv[1][1]); X--- 21,27 ---- X int argc; X char *argv[]; X { X! register int nicarg = 10; X X if (argc > 1 && argv[1][0] == '-') { X nicarg = atoi(&argv[1][1]); X*** ./usr/src/bin/time.c.old Fri Mar 13 16:09:37 1987 X--- ./usr/src/bin/time.c Mon Sep 21 20:45:06 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)time.c 4.5 (Berkeley) 7/1/83"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)time.c 4.6 (2.11BSD) 2026/5/7"; X #endif X X /* X*************** X*** 53,59 **** X X printt(s, tv) X char *s; X! struct timeval *tv; X { X X fprintf(stderr, "%9ld.%01ld %s ", tv->tv_sec, tv->tv_usec/100000, s); X--- 53,59 ---- X X printt(s, tv) X char *s; X! register struct timeval *tv; X { X X fprintf(stderr, "%9ld.%01ld %s ", tv->tv_sec, tv->tv_usec/100000, s); X*** ./usr/src/bin/ln.c.old Sun Feb 8 17:24:50 1987 X--- ./usr/src/bin/ln.c Sat Jul 18 21:37:45 2026 X*************** X*** 1,10 **** X! static char sccsid[] = "@(#)ln.c 4.6 11/15/85"; X! /* X! * ln X! */ X #include X #include X #include X #include X X struct stat stb; X--- 1,12 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ln.c 4.7 (2.11BSD) 2026/7/18"; X! #endif X! X #include X #include X #include X+ #include X+ #include X #include X X struct stat stb; X*************** X*** 11,18 **** X int fflag; /* force flag set? */ X int sflag; X char name[BUFSIZ]; X- char *rindex(); X- extern int errno; X X main(argc, argv) X int argc; X--- 13,18 ---- X*************** X*** 52,59 **** X fprintf(stderr, "Usage: ln [ -s ] f1\nor: ln [ -s ] f1 f2\nln [ -s ] f1 ... fn d2\n"); X exit(1); X } X- X- int link(), symlink(); X X linkit(from, to) X char *from, *to; X--- 52,57 ---- X*** ./usr/src/bin/wall.c.old Sat Nov 16 21:03:38 1996 X--- ./usr/src/bin/wall.c Tue Jul 21 20:39:37 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)wall.c 5.3.2 (2.11BSD GTE) 1996/11/16"; X #endif X X /* X--- 9,15 ---- X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)wall.c 5.3.3 (2.11BSD) 2026/7/21"; X #endif X X /* X*************** X*** 23,32 **** X #include X #include X #include X #include X #include X- #include X #include X X #define IGNOREUSER "sleeper" X X--- 23,34 ---- X #include X #include X #include X+ #include X+ #include X #include X #include X #include X+ #include X X #define IGNOREUSER "sleeper" X X*************** X*** 34,48 **** X char mesg[3000]; X int msize,sline; X struct utmp *utmp; X- char *strcpy(); X- char *strcat(); X- char *malloc(); X char who[UT_NAMESIZE + 1] = "???"; X! long clock, time(); X! struct tm *localtime(); X struct tm *localclock; X- X- extern errno; X X main(argc, argv) X char *argv[]; X--- 36,44 ---- X char mesg[3000]; X int msize,sline; X struct utmp *utmp; X char who[UT_NAMESIZE + 1] = "???"; X! time_t clock; X struct tm *localclock; X X main(argc, argv) X char *argv[]; X*** ./usr/src/bin/rm.c.old Sun Feb 8 17:24:49 1987 X--- ./usr/src/bin/rm.c Fri Jul 31 22:51:49 2026 X*************** X*** 1,4 **** X! static char *sccsid = "@(#)rm.c 4.18 (Berkeley) 1/6/86"; X X /* X * rm - for ReMoving files, directories & trees. X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)rm.c 4.19 (2.11BSD) 2026/7/31"; X! #endif X X /* X * rm - for ReMoving files, directories & trees. X*************** X*** 9,72 **** X #include X #include X #include X X int fflg; /* -f force - supress error messages */ X int iflg; /* -i interrogate user on each file */ X! int rflg; /* -r recurse */ X! X int errcode; /* true if errors occured */ X! X! char *strcpy(), *malloc(), *realloc(); X! X main(argc, argv) X! char *argv[]; X! { X! register char *arg; X X fflg = !isatty(0); X iflg = 0; X rflg = 0; X- while (argc > 1 && argv[1][0] == '-') { X- arg = *++argv; X- argc--; X X! /* X! * all files following a null option are considered file names X! */ X! if (arg[1] == '\0') X! break; X! X! while (*++arg != '\0') X! switch(*arg) { X case 'f': X fflg++; X break; X- X case 'i': X iflg++; X break; X- X case 'R': X case 'r': X rflg++; X break; X- X default: X! fprintf(stderr, "usage: rm [-rif] file ...\n"); X! exit(1); X } X! } X X! if (argc < 2 && !fflg) { X! fprintf(stderr, "usage: rm [-rif] file ...\n"); X! exit(1); X! } X X! while (--argc > 0) X! (void) rm(*++argv, 0); X X exit(errcode != 0); X! } X X char *path; /* pointer to malloc'ed buffer for path */ X char *pathp; /* current pointer to end of path */ X--- 11,69 ---- X #include X #include X #include X+ #include X+ #include X+ #include X X+ extern char *__progname; X+ X int fflg; /* -f force - supress error messages */ X int iflg; /* -i interrogate user on each file */ X! int rflg; /* -r or -R recurse */ X int errcode; /* true if errors occured */ X! X main(argc, argv) X! int argc; X! char *argv[]; X! { X! register int c; X X fflg = !isatty(0); X iflg = 0; X rflg = 0; X X! while ((c = getopt(argc, argv, "fiRr")) != EOF) X! { X! switch (c) X! { X case 'f': X fflg++; X break; X case 'i': X iflg++; X break; X case 'R': X case 'r': X rflg++; X break; X default: X! errx(1, "%s: invalid option '%c'", __progname, c); X } X! } X! argc -= optind; X! argv += optind; X X! /* X! * argc = 0 obviously not enough arguments X! */ X! if (argc == 0) X! errx(1, "usage: %s [-Rrif] file ...", __progname); X X! while (argc-- > 0) X! (void) rm(*argv++, 0); X X exit(errcode != 0); X! } X X char *path; /* pointer to malloc'ed buffer for path */ X char *pathp; /* current pointer to end of path */ X*************** X*** 80,89 **** X { X int ok; /* true if recursive rm succeeded */ X struct stat buf; /* for finding out what a file is */ X! struct direct *dp; /* for reading a directory */ X DIR *dirp; /* for reading a directory */ X char prevname[MAXNAMLEN + 1]; /* previous name for -r */ X! char *cp; X X if (dotname(arg)) { X fprintf(stderr, "rm: cannot remove `.' or `..'\n"); X--- 77,86 ---- X { X int ok; /* true if recursive rm succeeded */ X struct stat buf; /* for finding out what a file is */ X! register struct direct *dp; /* for reading a directory */ X DIR *dirp; /* for reading a directory */ X char prevname[MAXNAMLEN + 1]; /* previous name for -r */ X! register char *cp; X X if (dotname(arg)) { X fprintf(stderr, "rm: cannot remove `.' or `..'\n"); X*** ./usr/src/bin/mv.c.old Sat Dec 27 09:02:17 2025 X--- ./usr/src/bin/mv.c Thu Aug 6 20:42:41 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)mv.c 5.3.2 (2.11BSD) 2025/12/25"; X #endif X X /* X--- 9,15 ---- X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)mv.c 5.3.3 (2.11BSD) 2026/8/6"; X #endif X X /* X*************** X*** 18,28 **** X #include X #include X #include X- X #include X #include X #include X #include X X #define DELIM '/' X #define MODEBITS 07777 X--- 18,29 ---- X #include X #include X #include X #include X #include X #include X #include X+ #include X+ #include X X #define DELIM '/' X #define MODEBITS 07777 X*************** X*** 33,38 **** X--- 34,41 ---- X #define ISDEV(st) \ X (((st).st_mode&S_IFMT) == S_IFCHR || ((st).st_mode&S_IFMT) == S_IFBLK) X X+ extern char *__progname; X+ X char *dname(); X struct stat s1, s2; X int iflag = 0; /* interactive mode */ X*************** X*** 45,95 **** X register char *arg; X char *dest; X X! if (argc < 2) X! goto usage; X! while (argc > 1 && *argv[1] == '-') { X! argc--; X! arg = *++argv; X! X! /* X! * all files following a null option X! * are considered file names X! */ X! if (*(arg+1) == '\0') X! break; X! while (*++arg != '\0') switch (*arg) { X! X! case 'i': X! iflag++; X! break; X! X! case 'f': X! fflag++; X! break; X! X! default: X! goto usage; X } X! } X! if (argc < 3) X goto usage; X dest = argv[argc-1]; X! if (stat(dest, &s2) >= 0 && ISDIR(s2)) { X r = 0; X! for (i = 1; i < argc-1; i++) X r |= movewithshortname(argv[i], dest); X exit(r); X! } X! if (argc > 3) X goto usage; X! r = move(argv[1], argv[2]); X exit(r); X- /*NOTREACHED*/ X usage: X! fprintf(stderr, X! "usage: mv [-if] f1 f2 or mv [-if] f1 ... fn d1 (`fn' is a file or directory)\n"); X! return (1); X! } X X movewithshortname(src, dest) X char *src, *dest; X--- 48,101 ---- X register char *arg; X char *dest; X X! while ((i = getopt(argc, argv, "if")) != EOF) X! { X! switch (i) X! { X! case 'i': X! iflag++; X! break; X! case 'f': X! fflag++; X! break; X! default: X! errx(1, "%s: invalid option '%c'", __progname, i); X! } X } X! argc -= optind; X! argv += optind; X! X! /* X! * argc 0 or 1 obviously not enough arguments X! */ X! if (argc < 2) X goto usage; X+ X+ /* X+ * Check if last argument is a directory X+ */ X dest = argv[argc-1]; X! if (stat(dest, &s2) >= 0 && ISDIR(s2)) X! { X r = 0; X! for (i = 0; i < argc-1; i++) X r |= movewithshortname(argv[i], dest); X exit(r); X! } X! /* X! * More than 2 args but last arg is not a directory is an error. X! */ X! if (argc > 2) X goto usage; X! X! /* X! * simple case "mv f1 f2" X! */ X! r = move(argv[0], argv[1]); X exit(r); X usage: X! errx(1, "usage: %s [-if] f1 f2 or mv [-if] f1 ... fn d1 (`fn' is file or directory)", __progname); X! } X X movewithshortname(src, dest) X char *src, *dest; X*************** X*** 99,106 **** X X shortname = dname(src); X if (strlen(dest) + strlen(shortname) > MAXPATHLEN - 1) { X! error("%s/%s: pathname too long", dest, X! shortname); X return (1); X } X sprintf(target, "%s/%s", dest, shortname); X--- 105,111 ---- X X shortname = dname(src); X if (strlen(dest) + strlen(shortname) > MAXPATHLEN - 1) { X! error("%s/%s: pathname too long", dest, shortname); X return (1); X } X sprintf(target, "%s/%s", dest, shortname); X*************** X*** 113,119 **** X int targetexists; X X if (lstat(source, &s1) < 0) { X! Perror2(source, "Cannot access"); X return (1); X } X /* X--- 118,124 ---- X int targetexists; X X if (lstat(source, &s1) < 0) { X! Perror(source, "Cannot access"); X return (1); X } X /* X*************** X*** 140,146 **** X if (rename(source, target) >= 0) X return (0); X if (errno != EXDEV) { X! Perror2(errno == ENOENT && targetexists == 0 ? target : source, X "rename"); X return (1); X } X--- 145,151 ---- X if (rename(source, target) >= 0) X return (0); X if (errno != EXDEV) { X! Perror(errno == ENOENT && targetexists == 0 ? target : source, X "rename"); X return (1); X } X*************** X*** 149,155 **** X return (1); X } X if (targetexists && unlink(target) < 0) { X! Perror2(target, "Cannot unlink"); X return (1); X } X /* X--- 154,160 ---- X return (1); X } X if (targetexists && unlink(target) < 0) { X! Perror(target, "Cannot unlink"); X return (1); X } X /* X*************** X*** 163,169 **** X X m = readlink(source, symln, sizeof (symln) - 1); X if (m < 0) { X! Perror(source); X return (1); X } X symln[m] = '\0'; X--- 168,174 ---- X X m = readlink(source, symln, sizeof (symln) - 1); X if (m < 0) { X! Perror(source, ""); X return (1); X } X symln[m] = '\0'; X*************** X*** 170,176 **** X X m = umask(~(s1.st_mode & MODEBITS)); X if (symlink(symln, target) < 0) { X! Perror(target); X return (1); X } X (void) umask(m); X--- 175,181 ---- X X m = umask(~(s1.st_mode & MODEBITS)); X if (symlink(symln, target) < 0) { X! Perror(target, ""); X return (1); X } X (void) umask(m); X*************** X*** 180,186 **** X struct timeval tv[2]; X X if (mknod(target, s1.st_mode, s1.st_rdev) < 0) { X! Perror(target); X return (1); X } X X--- 185,191 ---- X struct timeval tv[2]; X X if (mknod(target, s1.st_mode, s1.st_rdev) < 0) { X! Perror(target,""); X return (1); X } X X*************** X*** 198,210 **** X X fi = open(source, 0); X if (fi < 0) { X! Perror(source); X return (1); X } X X fo = creat(target, s1.st_mode & MODEBITS); X if (fo < 0) { X! Perror(target); X close(fi); X return (1); X } X--- 203,215 ---- X X fi = open(source, 0); X if (fi < 0) { X! Perror(source, ""); X return (1); X } X X fo = creat(target, s1.st_mode & MODEBITS); X if (fo < 0) { X! Perror(target, ""); X close(fi); X return (1); X } X*************** X*** 214,225 **** X if (n == 0) { X break; X } else if (n < 0) { X! Perror2(source, "read"); X close(fi); X close(fo); X return (1); X } else if (write(fo, buf, n) != n) { X! Perror2(target, "write"); X close(fi); X close(fo); X return (1); X--- 219,230 ---- X if (n == 0) { X break; X } else if (n < 0) { X! Perror(source, "read"); X close(fi); X close(fo); X return (1); X } else if (write(fo, buf, n) != n) { X! Perror(target, "write"); X close(fi); X close(fo); X return (1); X*************** X*** 241,247 **** X X cleanup: X if (unlink(source) < 0) { X! Perror2(source, "Cannot unlink"); X return (1); X } X return (0); X--- 246,252 ---- X X cleanup: X if (unlink(source) < 0) { X! Perror(source, "Cannot unlink"); X return (1); X } X return (0); X*************** X*** 278,302 **** X char *fmt; X { X X! fprintf(stderr, "mv: "); X fprintf(stderr, fmt, a1, a2); X fprintf(stderr, "\n"); X } X X! Perror(s) X! char *s; X! { X! char buf[MAXPATHLEN + 10]; X! X! sprintf(buf, "mv: %s", s); X! perror(buf); X! } X! X! Perror2(s1, s2) X char *s1, *s2; X { X char buf[MAXPATHLEN + 20]; X X! sprintf(buf, "mv: %s: %s", s1, s2); X perror(buf); X } X--- 283,298 ---- X char *fmt; X { X X! fprintf(stderr, "%s: ", __progname); X fprintf(stderr, fmt, a1, a2); X fprintf(stderr, "\n"); X } X X! Perror(s1, s2) X char *s1, *s2; X { X char buf[MAXPATHLEN + 20]; X X! sprintf(buf, "%s: %s: %s", s1, s2, __progname); X perror(buf); X } X*** ./usr/src/bin/cc.c.old Sat Aug 16 20:08:33 2025 X--- ./usr/src/bin/cc.c Mon Sep 21 20:25:42 2026 X*************** X*** 1,5 **** X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cc.c 5.1 (2.11BSD) 2025/8/16"; X #endif X X /* X--- 1,5 ---- X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cc.c 5.2 (2.11BSD) 2026/8/29"; X #endif X X /* X*************** X*** 24,30 **** X char *tmp1, *tmp2, *tmp3, *tmp4, *tmp5; X char *outfile; X char *savestr(), *strspl(), *setsuf(); X! int idexit(); X char **av, **clist, **llist, **plist; X int cflag, eflag, oflag, pflag, sflag, wflag, exflag, proflag; X int Mflag, debug; X--- 24,30 ---- X char *tmp1, *tmp2, *tmp3, *tmp4, *tmp5; X char *outfile; X char *savestr(), *strspl(), *setsuf(); X! void idexit(); X char **av, **clist, **llist, **plist; X int cflag, eflag, oflag, pflag, sflag, wflag, exflag, proflag; X int Mflag, debug; X*************** X*** 84,92 **** X exflag++; X case 'P': X pflag++; X- if (argv[i][1]=='P') X- fprintf(stderr, X- "cc: warning: -P option obsolete; you should use -E instead\n"); X plist[np++] = argv[i]; X case 'c': X cflag++; X--- 84,89 ---- X*************** X*** 117,123 **** X error("-B overwrites earlier option", 0); X npassname = argv[i]+2; X if (npassname[0]==0) X! npassname = "/usr/c/o"; X continue; X case 'd': X if (argv[i][2] == '\0') { X--- 114,120 ---- X error("-B overwrites earlier option", 0); X npassname = argv[i]+2; X if (npassname[0]==0) X! npassname = "/usr/c/"; X continue; X case 'd': X if (argv[i][2] == '\0') { X*************** X*** 141,147 **** X if (npassname && chpass ==0) X chpass = "012p"; X if (chpass && npassname==0) X! npassname = "/usr/new"; X if (chpass) X for (t=chpass; *t; t++) { X switch (*t) { X--- 138,144 ---- X if (npassname && chpass ==0) X chpass = "012p"; X if (chpass && npassname==0) X! npassname = "/usr/new/"; X if (chpass) X for (t=chpass; *t; t++) { X switch (*t) { X*************** X*** 281,286 **** X--- 278,284 ---- X dexit(); X } X X+ void X idexit() X { X X*** ./usr/src/bin/size.c.old Thu Mar 19 21:44:21 2020 X--- ./usr/src/bin/size.c Sun Sep 13 20:43:04 2026 X*************** X*** 1,5 **** X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)size.c 4.5 (2.11BSD) 2020/3/19"; X #endif X X /* X--- 1,5 ---- X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)size.c 4.6 (2.11BSD) 2026/9/13"; X #endif X X /* X*************** X*** 18,31 **** X { X struct exec buf; X long sum; X! int gorp,i; X! int err = 0; X! FILE *f; X! #ifdef pdp11 X struct ovlhdr ovlbuf; /* overlay structure */ X long coresize; /* total text size */ X short skip; /* skip over overlay sizes of 0 */ X- #endif X X if (argc==1) { X *argv = "a.out"; X--- 18,29 ---- X { X struct exec buf; X long sum; X! register int i; X! int gorp, err = 0; X! register FILE *f; X struct ovlhdr ovlbuf; /* overlay structure */ X long coresize; /* total text size */ X short skip; /* skip over overlay sizes of 0 */ X X if (argc==1) { X *argv = "a.out"; X*************** X*** 56,62 **** X printf("%ld\t%lx", sum, sum); X if (gorp>2) X printf("\t%s", *argv); X- #ifdef pdp11 X if (buf.a_magic == A_MAGIC5 || buf.a_magic == A_MAGIC6) { X fread(&ovlbuf,sizeof(ovlbuf),1,f); X coresize = buf.a_text; X--- 54,59 ---- X*************** X*** 75,81 **** X printf("%u", ovlbuf.ov_siz[i]); X } X } X- #endif X printf("\n"); X fclose(f); X } X--- 72,77 ---- X*** ./usr/src/bin/mt.c.old Sun Jul 25 23:21:21 1999 X--- ./usr/src/bin/mt.c Sun Sep 13 20:49:20 2026 X*************** X*** 11,24 **** X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)mt.c 2.2 (2.11BSD) 1999/3/20"; X! #endif not lint X X /* X! * mt -- X! * magnetic tape manipulation program X */ X #include X #include X #include X #include X--- 11,24 ---- X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)mt.c 2.3 (2.11BSD) 2026/9/13"; X! #endif X X /* X! * mt -- magnetic tape manipulation program X */ X #include X+ #include X #include X #include X #include X*************** X*** 54,60 **** X main(argc, argv) X char **argv; X { X! char line[80], *getenv(); X register char *cp; X register struct commands *comp; X X--- 54,60 ---- X main(argc, argv) X char **argv; X { X! char line[80]; X register char *cp; X register struct commands *comp; X X*************** X*** 103,130 **** X } X } X X- #ifdef vax X- #include X- #include X- X- #include X- #include X- #undef b_repcnt /* argh */ X- #include X- #endif X- X- #ifdef sun X- #include X- #include X- #endif X- X- #ifdef pdp11 X #include X #include X- #undef b_repcnt /* argh */ X #include X #include X- #endif X X struct tape_desc { X short t_type; /* type of magtape device */ X--- 103,112 ---- X*************** X*** 132,154 **** X char *t_dsbits; /* "drive status" register */ X char *t_erbits; /* "error" register */ X } tapes[] = { X- #ifdef vax X { MT_ISTS, "ts11", 0, TSXS0_BITS }, X- { MT_ISHT, "tm03", HTDS_BITS, HTER_BITS }, X- { MT_ISTM, "tm11", 0, TMER_BITS }, X- { MT_ISMT, "tu78", MTDS_BITS, 0 }, X- { MT_ISUT, "tu45", UTDS_BITS, UTER_BITS }, X- #endif X- #ifdef sun X- { MT_ISCPC, "TapeMaster", TMS_BITS, 0 }, X- { MT_ISAR, "Archive", ARCH_CTRL_BITS, ARCH_BITS }, X- #endif X- #ifdef pdp11 X- { MT_ISTS, "ts11", 0, TSXS0_BITS }, X { MT_ISHT, "tm03", HTFS_BITS, HTER_BITS }, X { MT_ISTM, "tm11", 0, TMER_BITS }, X { MT_ISTMSCP, "tmscp", 0, 0 }, X- #endif X { 0 } X }; X X--- 114,123 ---- X*** ./usr/src/bin/od.c.old Thu Dec 25 19:42:59 2025 X--- ./usr/src/bin/od.c Sun Sep 13 20:52:21 2026 X*************** X*** 1,5 **** X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)od.c 5.14 (2.11BSD) 2025/12/25"; X #endif X X /* X--- 1,5 ---- X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)od.c 5.15 (2.11BSD) 2026/9/13"; X #endif X X /* X*************** X*** 437,452 **** X struct dfmt *d; X { X char fbuf[24]; X- struct l { long n[2]; }; X X! #if vax X! if ((((struct l *)f)->n[0] & 0xff00) == 0x8000) /* Vax illegal f.p. */ X! sprintf(fbuf, " %08x %08x", X! ((struct l *)f)->n[0], ((struct l *)f)->n[1]); X! else X! #endif X! X! sprintf(fbuf, "%21.14e", *f); X printf(d->df_fmt, fbuf); X return(d->df_size); X } X--- 437,444 ---- X struct dfmt *d; X { X char fbuf[24]; X X! sprintf(fbuf, "%21.14e", *f); X printf(d->df_fmt, fbuf); X return(d->df_size); X } X*************** X*** 457,468 **** X { X char fbuf[16]; X X! #if vax X! if ((*(long *)f & 0xff00) == 0x8000) /* Vax illegal f.p. form */ X! sprintf(fbuf, " %08x", *(long *)f); X! else X! #endif X! sprintf(fbuf, "%14.7e", *f); X printf(d->df_fmt, fbuf); X return(d->df_size); X } X--- 449,455 ---- X { X char fbuf[16]; X X! sprintf(fbuf, "%14.7e", *f); X printf(d->df_fmt, fbuf); X return(d->df_size); X } X*** ./usr/src/bin/rcp.c.old Sat Aug 30 21:42:47 2025 X--- ./usr/src/bin/rcp.c Mon Sep 21 20:42:18 2026 X*************** X*** 20,27 **** X "@(#) Copyright (c) 1983 The Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)rcp.c 5.20.2 (2.11BSD) 2025/8/30"; X! #endif /* not lint */ X X /* X * rcp X--- 20,27 ---- X "@(#) Copyright (c) 1983 The Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)rcp.c 5.20.3 (2.11BSD) 2026/9/21"; X! #endif X X /* X * rcp X*************** X*** 32,39 **** X #include X #include X #include X- #include X #include X #include X #include X #include X--- 32,39 ---- X #include X #include X #include X #include X+ #include X #include X #include X #include X*************** X*** 76,82 **** X int ch, fflag, tflag; X char *targ, *colon(); X struct passwd *getpwuid(); X! int lostconn(); X X #ifdef KERBEROS X sp = getservbyname("kshell", "tcp"); X--- 76,82 ---- X int ch, fflag, tflag; X char *targ, *colon(); X struct passwd *getpwuid(); X! void lostconn(); X X #ifdef KERBEROS X sp = getservbyname("kshell", "tcp"); X*************** X*** 396,402 **** X char *s; X { X int status, pid, w; X! register int (*istat)(), (*qstat)(); X X if ((pid = vfork()) == 0) { X (void)setuid(userid); X--- 396,402 ---- X char *s; X { X int status, pid, w; X! register sig_t istat, qstat; X X if ((pid = vfork()) == 0) { X (void)setuid(userid); X*************** X*** 581,586 **** X--- 581,587 ---- X /*NOTREACHED*/ X } X X+ void X lostconn() X { X if (!iamremote) X*** ./usr/src/bin/who.c.old Tue Jul 29 21:48:22 1997 X--- ./usr/src/bin/who.c Thu Sep 24 20:09:46 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)who.c 5.1.3 (2.11BSD GTE) 1997/7/29"; X #endif X X #include X--- 9,15 ---- X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)who.c 5.1.4 (2.11BSD) 2026/9/24"; X #endif X X #include X*************** X*** 37,43 **** X register FILE *fi; X X s = _PATH_UTMP; X! if(argc == 2) X s = argv[1]; X if (argc == 3) { X tp = ttyname(0); X--- 37,43 ---- X register FILE *fi; X X s = _PATH_UTMP; X! if (argc == 2) X s = argv[1]; X if (argc == 3) { X tp = ttyname(0); X*************** X*** 61,67 **** X gethostname(hostname, sizeof (hostname)); X if (strcmp(utmp.ut_line, tp)) X continue; X! printf("%s!", hostname); X putline(); X exit(0); X } X--- 61,67 ---- X gethostname(hostname, sizeof (hostname)); X if (strcmp(utmp.ut_line, tp)) X continue; X! printf("%s@", hostname); X putline(); X exit(0); X } X*** ./usr/src/bin/hostid.c.old Thu Jul 11 21:45:31 1996 X--- ./usr/src/bin/hostid.c Mon Sep 28 19:56:52 2026 X*************** X*** 8,14 **** X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X! static char sccsid[] = "@(#)hostid.c 1.3 (2.11BSD GTE) 96/7/10"; X #endif X X #include X--- 8,14 ---- X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X! static char sccsid[] = "@(#)hostid.c 1.4 (2.11BSD) 2026/9/28"; X #endif X X #include X*************** X*** 18,24 **** X--- 18,32 ---- X #include X #include X #include X+ #include X X+ void X+ catchsigsys(int signo) X+ { X+ X+ exit(0); X+ } X+ X main(argc, argv) X int argc; X char **argv; X*************** X*** 32,37 **** X--- 40,52 ---- X printf("0x%lx\n", gethostid()); X exit(0); X } X+ X+ /* X+ * gethostbyname() will attempt to connect(2) to a nameserver. With a X+ * non-networking (e.g. GENERIC) kernel a SIGSYS will result due to an X+ * illegal system call. Catch the signal and quietly exit. X+ */ X+ signal(SIGSYS, catchsigsys); X X id = argv[1]; X if (hp = gethostbyname(id)) { X*** ./usr/src/bin/su.c.old Thu Oct 2 22:36:13 1997 X--- ./usr/src/bin/su.c Thu Sep 17 08:36:19 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)su.c 5.4.1 (2.11BSD) 1997/10/2"; X #endif X X #include X--- 9,15 ---- X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)su.c 5.4.2 (2.11BSD) 2026/9/17"; X #endif X X #include X*************** X*** 32,37 **** X--- 32,44 ---- X int fulllogin; X int fastlogin; X X+ /* X+ * Extremely bad coding practice to re-use libc function names! getenv and X+ * setenv renamed to xgetenv and xsetenv to avoid conflict with stdlib.h X+ */ X+ static void xsetenv(char *, char *, char *); X+ static char *xgetenv(char *); X+ X extern char **environ; X struct passwd *pwd; X X*************** X*** 122,134 **** X if (pwd->pw_shell && *pwd->pw_shell) X shell = pwd->pw_shell; X if (fulllogin) { X! cleanenv[4] = getenv("TERM"); X environ = cleanenv; X } X if (strcmp(user, "root")) X! setenv("USER", pwd->pw_name, userbuf); X! setenv("SHELL", shell, shellbuf); X! setenv("HOME", pwd->pw_dir, homebuf); X setpriority(PRIO_PROCESS, 0, 0); X if (fastlogin) { X *argv-- = "-f"; X--- 129,141 ---- X if (pwd->pw_shell && *pwd->pw_shell) X shell = pwd->pw_shell; X if (fulllogin) { X! cleanenv[4] = xgetenv("TERM"); X environ = cleanenv; X } X if (strcmp(user, "root")) X! xsetenv("USER", pwd->pw_name, userbuf); X! xsetenv("SHELL", shell, shellbuf); X! xsetenv("HOME", pwd->pw_dir, homebuf); X setpriority(PRIO_PROCESS, 0, 0); X if (fastlogin) { X *argv-- = "-f"; X*************** X*** 146,152 **** X exit(7); X } X X! setenv(ename, eval, buf) X char *ename, *eval, *buf; X { X register char *cp, *dp; X--- 153,160 ---- X exit(7); X } X X! static void X! xsetenv(ename, eval, buf) X char *ename, *eval, *buf; X { X register char *cp, *dp; X*************** X*** 166,173 **** X } X } X X! char * X! getenv(ename) X char *ename; X { X register char *cp, *dp; X--- 174,181 ---- X } X } X X! static char * X! xgetenv(ename) X char *ename; X { X register char *cp, *dp; X*** ./usr/src/bin/tar.c.old Thu Dec 25 21:23:54 2025 X--- ./usr/src/bin/tar.c Mon Sep 21 20:43:39 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)tar.c 5.8 (2.11BSD) 2025/12/25"; X #endif X X /* X--- 9,15 ---- X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)tar.c 5.9 (2.11BSD) 2026/9/21"; X #endif X X /* X*************** X*** 25,30 **** X--- 25,31 ---- X #include X #include X #include X+ #include X #include X X #define TBLOCK 512 X*************** X*** 86,96 **** X int prtlinkerr; X int freemem = 1; X int nblock = 0; X! int onintr(); X! int onquit(); X! int onhup(); X #ifdef notdef X! int onterm(); X #endif X X daddr_t low; X--- 87,97 ---- X int prtlinkerr; X int freemem = 1; X int nblock = 0; X! void onintr(); X! void onquit(); X! void onhup(); X #ifdef notdef X! void onterm(); X #endif X X daddr_t low; X*************** X*** 102,108 **** X char tname[] = "/tmp/tarXXXXXX"; X char *usefile; X char magtape[] = "/dev/rmt8"; X- char *malloc(); X char *getmem(); X char *getcwd(); X X--- 103,108 ---- X*************** X*** 904,909 **** X--- 904,910 ---- X return (cp[-1]=='/'); X } X X+ void X onintr() X { X (void) signal(SIGINT, SIG_IGN); X*************** X*** 910,920 **** X--- 911,923 ---- X term++; X } X X+ void X onquit() X { X (void) signal(SIGQUIT, SIG_IGN); X term++; X } X+ void X X onhup() X { X*************** X*** 923,928 **** X--- 926,932 ---- X } X X #ifdef notdef X+ void X onterm() X { X (void) signal(SIGTERM, SIG_IGN); X*** ./usr/src/bin/dd.c.old Tue Nov 25 09:15:13 2025 X--- ./usr/src/bin/dd.c Mon Sep 21 20:34:53 2026 X*************** X*** 1,5 **** X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)dd.c 5.2 (2.11BSD) 2025/11/25"; X #endif X X #include X--- 1,5 ---- X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)dd.c 5.3 (2.11BSD) 2026/9/21"; X #endif X X #include X*************** X*** 167,173 **** X int (*conv)(); X register char *ip; X register c; X! int ebcdic(), ibm(), ascii(), null(), cnull(), term(), stats(); X int block(), unblock(); X unsigned long number(); X int a; X--- 167,174 ---- X int (*conv)(); X register char *ip; X register c; X! void term(), stats(); X! int ebcdic(), ibm(), ascii(), null(), cnull(); X int block(), unblock(); X unsigned long number(); X int a; X*************** X*** 683,688 **** X--- 684,690 ---- X null(c); X } X X+ void X term(status) X int status; X { X*************** X*** 691,696 **** X--- 693,699 ---- X exit(status); X } X X+ void X stats() X { X char buf[100]; X*** ./usr/src/bin/pr.c.old Thu Dec 25 23:07:08 2025 X--- ./usr/src/bin/pr.c Mon Sep 21 20:41:51 2026 X*************** X*** 1,5 **** X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)pr.c 4.6 (2.11BSD) 2025/12/25"; X #endif X X /* X--- 1,5 ---- X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)pr.c 4.7 (2.11BSD) 2026/9/21"; X #endif X X /* X*************** X*** 53,59 **** X char **argv; X { X int nfdone; X! int onintr(); X X setbuf(stdout, obuf); X if (signal(SIGINT, SIG_IGN) != SIG_IGN) X--- 53,59 ---- X char **argv; X { X int nfdone; X! void onintr(); X X setbuf(stdout, obuf); X if (signal(SIGINT, SIG_IGN) != SIG_IGN) X*************** X*** 145,150 **** X--- 145,151 ---- X return(1); X } X X+ void X onintr() X { X X*** ./usr/src/bin/write.c.old Sat Nov 16 21:32:28 1996 X--- ./usr/src/bin/write.c Mon Sep 21 19:09:46 2026 X*************** X*** 1,5 **** X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)write.c 4.13.2 1996/11/16"; X #endif X /* X * write to another user X--- 1,5 ---- X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)write.c 4.13.3 (2.11BSD) 2026/9/21"; X #endif X /* X * write to another user X*************** X*** 30,36 **** X char *histtya; X int logcnt; X int eof(); X! int timout(); X FILE *tf; X X main(argc, argv) X--- 30,36 ---- X char *histtya; X int logcnt; X int eof(); X! void timout(); X FILE *tf; X X main(argc, argv) X*************** X*** 195,200 **** X--- 195,201 ---- X } X } X X+ void X timout() X { X X*************** X*** 236,242 **** X } X X sigs(sig) X! int (*sig)(); X { X register i; X X--- 237,243 ---- X } X X sigs(sig) X! sig_t sig; X { X register i; X X*** ./usr/src/etc/root/Makefile.old Tue Nov 25 13:03:27 2025 X--- ./usr/src/etc/root/Makefile Mon Jan 26 16:21:29 2026 X*************** X*** 1,10 **** X- # X # Public domain - 1997/1/10 - sms X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X # DESTDIR is defined here to be something which does *NOT* exist and should be X # the same as specified in ../Makefile (See the comments in ../Makefile) X X DESTDIR=/foobar X OWN=root X--- 1,12 ---- X # Public domain - 1997/1/10 - sms X # X! # @(#)Makefile 1.2 (2.11BSD) 2026/1/26 X # X # DESTDIR is defined here to be something which does *NOT* exist and should be X # the same as specified in ../Makefile (See the comments in ../Makefile) X+ # X+ # $HOME of 'root' is now /root BUT a minimal /.profile must be present to set X+ # PATH in single user mode. Without /.profile sh can't find fsck (for example) X X DESTDIR=/foobar X OWN=root X*************** X*** 14,19 **** X all install depend lint clean tags: X X distribution: X! install -c -o ${OWN} -g ${GRP} -m 644 dot.cshrc ${DESTDIR}/.cshrc X! install -c -o ${OWN} -g ${GRP} -m 644 dot.login ${DESTDIR}/.login X! install -c -o ${OWN} -g ${GRP} -m 644 dot.profile ${DESTDIR}/.profile X--- 16,22 ---- X all install depend lint clean tags: X X distribution: X! install -c -o ${OWN} -g ${GRP} -m 644 dot.cshrc ${DESTDIR}/root/.cshrc X! install -c -o ${OWN} -g ${GRP} -m 644 dot.login ${DESTDIR}/root/.login X! install -c -o ${OWN} -g ${GRP} -m 644 dot.profile ${DESTDIR}/root/.profile X! install -c -o ${OWN} -g ${GRP} -m 644 dot.minimal ${DESTDIR}/.profile X*** ./usr/src/etc/root/dot.profile.old Wed Oct 30 01:09:22 1996 X--- ./usr/src/etc/root/dot.profile Mon Feb 2 08:18:41 2026 X*************** X*** 1,8 **** X! echo 'erase, kill ^U, intr ^C' X stty dec X! stty erase X PATH=/bin:/sbin:/usr/sbin:/etc:/usr/ucb:/usr/bin:/usr/new X export PATH X! HOME=/ X export HOME X export TERM X--- 1,9 ---- X! echo 'erase ^H, kill ^U, intr ^C' X stty dec X! stty erase \^H kill \^U intr \^C X PATH=/bin:/sbin:/usr/sbin:/etc:/usr/ucb:/usr/bin:/usr/new X export PATH X! HOME=/root X export HOME X export TERM X+ umask 22 X*** ./usr/src/etc/root/dot.cshrc.old Wed Oct 30 01:08:07 1996 X--- ./usr/src/etc/root/dot.cshrc Sun Feb 1 21:38:36 2026 X*************** X*** 1,3 **** X--- 1,4 ---- X+ umask 22 X set history=30 X set path=(/bin /sbin /etc /usr/sbin /usr/ucb /usr/bin /usr/new /usr/local) X if ($?prompt) then X*************** X*** 11,14 **** X alias mail /usr/ucb/Mail X alias pwd 'echo $cwd' X alias h history X- alias q5 'tail -5 /usr/spool/mqueue/syslog' X--- 12,14 ---- X*** ./usr/src/etc/root/dot.login.old Wed Oct 30 01:08:50 1996 X--- ./usr/src/etc/root/dot.login Mon Feb 2 08:19:33 2026 X*************** X*** 1,6 **** X unset noglob X set path=(/bin /etc /sbin /usr/sbin /usr/ucb /usr/bin /usr/local /usr/new) X- umask 26 X stty dec erase ^H kill ^U eof ^D X set prompt="[\!] root--> " X X--- 1,5 ---- X*** ./usr/src/etc/uucp/clean.weekly.old Fri Oct 25 23:31:10 1996 X--- ./usr/src/etc/uucp/clean.weekly Wed Jun 24 09:14:54 2026 X*************** X*** 1,8 **** X #!/bin/csh -f X # X! # Once a week, produce a report and mail to people X # X! set people=( sms ) X set spooldir=/usr/spool/uucp X set archdir=uucplog.archives X X--- 1,10 ---- X #!/bin/csh -f X # X! # @(#)clean.weekly 1.1 (2.11BSD) 2026/6/24 X # X! # Once a week, produce a report and mail to people X! X! set people=( root ) X set spooldir=/usr/spool/uucp X set archdir=uucplog.archives X X*** ./usr/src/etc/fstab.old Sat Sep 21 22:47:05 1996 X--- ./usr/src/etc/fstab Tue Apr 7 21:08:42 2026 X*************** X*** 1,6 **** X! /dev/ra0a / ufs rw 1 1 X! /dev/ra0b none swap sw 0 0 X! /dev/ra0d /usr ufs rw 1 2 X! /dev/ra0e /tmp ufs rw,async 1 3 X! /dev/ra0f /user ufs rw,quotas 1 4 X! /dev/ra0g /xxx ufs rw 1 5 X--- 1,3 ---- X! /dev/xp0a / ufs rw 1 1 X! /dev/xp0b none swap sw 0 0 X! /dev/xp0h /usr ufs rw 1 2 X*** ./usr/src/etc/master.passwd.old Fri Jan 10 23:56:24 1997 X--- ./usr/src/etc/master.passwd Tue Sep 1 14:54:45 2026 X*************** X*** 1,8 **** X! root::0:1::0:0:The Man:/:/bin/sh X daemon:*:1:1::::The devil himself:/:/bin/sh X- sys:*:4:2::::Operating System:/tmp:nologin X operator:*:2:5::::System &:/usr/guest/operator:/bin/csh X bin:*:3:20::::Binaries Commands and Source:/:/bin/csh X nobody:*:32767:31::::Nobody:/nonexistent:/bin/sh X uucp:*:66:1::0:0:UNIX-to-UNIX Copy:/usr/spool/uucppublic:/usr/sbin/uucico X ingres:*:39:74::0:0:INGRES Owner:/usr/ingres:/bin/csh X--- 1,9 ---- X! root::0:1::0:0:System Administrator:/root:/bin/sh X daemon:*:1:1::::The devil himself:/:/bin/sh X operator:*:2:5::::System &:/usr/guest/operator:/bin/csh X bin:*:3:20::::Binaries Commands and Source:/:/bin/csh X+ sys:*:4:2::::Operating System:/tmp:nologin X+ games:*:5:31::::Games:/usr/guest/games:/bin/sh X nobody:*:32767:31::::Nobody:/nonexistent:/bin/sh X uucp:*:66:1::0:0:UNIX-to-UNIX Copy:/usr/spool/uucppublic:/usr/sbin/uucico X ingres:*:39:74::0:0:INGRES Owner:/usr/ingres:/bin/csh X*** ./usr/src/etc/rc.old Mon Dec 9 23:53:11 1996 X--- ./usr/src/etc/rc Sat Oct 17 16:29:39 2026 X*************** X*** 1,6 **** X- X # X! # @(#)rc 2.1 (2.111BSD) 1996/10/21 X # X HOME=/; export HOME X PATH=/bin:/sbin:/usr/sbin:/usr/ucb:/usr/bin; export PATH X--- 1,5 ---- X # X! # @(#)rc 2.2 (2.11BSD) 2026/03/31 X # X HOME=/; export HOME X PATH=/bin:/sbin:/usr/sbin:/usr/ucb:/usr/bin; export PATH X*************** X*** 16,21 **** X--- 15,44 ---- X RAMGROUP=wheel X RAMMODE=1777 X X+ # Figure out if we are a qbus system X+ qbus=YES X+ model=`sysctl -n hw.model` X+ if [ $model = 70 -o $model = 44 -o $model = 84 -o $model = 94 ]; then X+ qbus=NO X+ fi X+ X+ # Provide defaults for configuration values X+ rc_configured=NO X+ hostname=pidp.example.com X+ address=169.254.11.70 X+ netmask=255.255.0.0 X+ interface=de0 X+ if [ $qbus = YES ]; then X+ interface=qe0 X+ fi X+ X+ # Read in rc configuration X+ if [ -s /etc/rc.conf ] X+ then X+ . /etc/rc.conf X+ fi X+ X+ # Setup ramdisk X if [ ${RAMSIZE} != 0 ] X then X mkfs /dev/ram ${RAMSIZE} 1 2 X*************** X*** 31,36 **** X--- 54,64 ---- X echo Fast boot ... skipping disk checks >/dev/console 2>&1 X elif [ "$1" = autoboot ] X then X+ if [ ${rc_configured-NO} != YES ]; then X+ echo "/etc/rc.conf is not configured. Automatic multiuser boot aborted." >/dev/console 2>&1 X+ exit 1 X+ fi X+ X echo Automatic reboot in progress... >/dev/console 2>&1 X date >/dev/console 2>&1 X # this will *only* work if fsck can do your root file system X*************** X*** 106,112 **** X . /etc/netstart X X if [ $INET = YES ]; then X! echo 'starting system logger' >/dev/console 2>&1 X rm -f /dev/log X syslogd X fi X--- 134,140 ---- X . /etc/netstart X X if [ $INET = YES ]; then X! echo 'starting system logger' >/dev/console 2>&1 X rm -f /dev/log X syslogd X fi X*************** X*** 114,158 **** X # /etc/crash should be a symbolic link to the crash directory X # if core dumps are to be saved. X if [ -d /etc/crash ]; then X! echo 'checking for core dump... ' >/dev/console 2>&1 X savecore /etc/crash >/dev/console 2>&1 X fi X X! echo preserving editor files >/dev/console 2>&1 X! (cd /tmp; /usr/sbin/expreserve -a) X! echo clearing /tmp >/dev/console 2>&1 X (cd /tmp; find . ! -name . ! -name lost+found ! -name quotas -exec rm -r {} \; ) X X! echo -n standard daemons: >/dev/console 2>&1 X update; echo -n ' update' >/dev/console 2>&1 X cron; echo -n ' cron' >/dev/console 2>&1 X accton /usr/adm/acct; echo -n ' accounting' >/dev/console 2>&1 X! echo '.' >/dev/console 2>&1 X X if [ $INET = YES ]; then X! echo -n starting network daemons: >/dev/console 2>&1 X X! # $routedflags is imported from /etc/netstart; X! # if $routedflags == NO, routed isn't run. X! if [ "${routedflags-NO}" != NO ]; then X routed $routedflags; echo -n ' routed' >/dev/console 2>&1 X fi X X! # $named is imported from /etc/netstart; X! # if $named is set to something other than NO, named is run. X! if [ "${named-NO}" != NO ]; then X named; echo -n ' named'>/dev/console 2>&1 X fi X /usr/sbin/inetd; echo -n ' inetd'>/dev/console 2>&1 X X! # $rwhod is imported from /etc/netstart; X! # if $rwhod is set to something other than NO, rwhod is run. X! if [ "${rwhod}" != NO ]; then X rwhod; echo -n ' rwhod' >/dev/console 2>&1 X fi X rm -f /dev/printer X /usr/sbin/lpd; echo -n ' printer' >/dev/console 2>&1 X! echo '.' >/dev/console 2>&1 X else X # lpd will run even with out networking. X echo starting lpd >/dev/console 2>&1 X--- 142,202 ---- X # /etc/crash should be a symbolic link to the crash directory X # if core dumps are to be saved. X if [ -d /etc/crash ]; then X! echo 'checking for core dump... ' >/dev/console 2>&1 X savecore /etc/crash >/dev/console 2>&1 X fi X X! echo preserving editor files >/dev/console 2>&1 X! (cd /tmp; /usr/sbin/expreserve -a) X! echo clearing /tmp >/dev/console 2>&1 X (cd /tmp; find . ! -name . ! -name lost+found ! -name quotas -exec rm -r {} \; ) X X! echo -n standard daemons: >/dev/console 2>&1 X update; echo -n ' update' >/dev/console 2>&1 X cron; echo -n ' cron' >/dev/console 2>&1 X+ X+ # accton will not start acctd if acctd.pid is corrupt or truncated (due to X+ # an unclean shutdown or crash). X+ rm -f /var/run/acctd.pid X+ X accton /usr/adm/acct; echo -n ' accounting' >/dev/console 2>&1 X! echo '.' >/dev/console 2>&1 X X if [ $INET = YES ]; then X! if [ "${ntp-NO}" = YES ]; then X! echo 'Setting date via ntp' >/dev/console 2>&1 X! ntp -s -f pool.ntp.org >/dev/console 2>&1 X! fi X X! echo -n starting network daemons: >/dev/console 2>&1 X! X! if [ "${routedflags-NO}" = YES ]; then X routed $routedflags; echo -n ' routed' >/dev/console 2>&1 X fi X X! if [ "${named-NO}" = YES ]; then X named; echo -n ' named'>/dev/console 2>&1 X fi X+ X /usr/sbin/inetd; echo -n ' inetd'>/dev/console 2>&1 X X! if [ "${rwhod-NO}" = YES ]; then X rwhod; echo -n ' rwhod' >/dev/console 2>&1 X fi X+ X+ if [ "${timed-NO}" = YES ] -a -f /usr/sbin/timed ]; then X+ timed; echo -n ' timed' >/dev/console 2>&1 X+ fi X+ X+ if [ "${ntpd-NO}" = YES ]; then X+ ntpd; echo -n ' ntpd' >/dev/console 2>&1 X+ fi X+ X rm -f /dev/printer X /usr/sbin/lpd; echo -n ' printer' >/dev/console 2>&1 X! X! echo '.' >/dev/console 2>&1 X! X else X # lpd will run even with out networking. X echo starting lpd >/dev/console 2>&1 X*************** X*** 159,165 **** X /usr/sbin/lpd X fi X X! /etc/rc.local X X date >/dev/console 2>&1 X exit 0 X--- 203,209 ---- X /usr/sbin/lpd X fi X X! . /etc/rc.local X X date >/dev/console 2>&1 X exit 0 X*** ./usr/src/etc/Makefile.old Tue Nov 25 13:00:21 2025 X--- ./usr/src/etc/Makefile Wed Sep 23 07:25:25 2026 X*************** X*** 1,7 **** X # X # Public domain - 1997/1/10 - sms X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X # This file is not intended to be run but rather to serve as a guide when X # (manually) creating a distribution image. To guard against corrupting a X--- 1,7 ---- X # X # Public domain - 1997/1/10 - sms X # X! # @(#)Makefile 1.2 (2.11BSD) 2026/9/23 X # X # This file is not intended to be run but rather to serve as a guide when X # (manually) creating a distribution image. To guard against corrupting a X*************** X*** 13,23 **** X GRP=wheel X X SUBDIR= root uucp X- FILES= aliases crontab disktab dtab fstab ftpusers gettytab group hosts \ X- hosts.allow hosts.deny inetd.conf inetd.conf.nowrappers \ X- motd netstart networks ntp.conf passwd phones printcap protocols \ X- rc rc.local remote services shells syslog.conf ttys X X # NOP targets X all install depend lint clean tags: X X--- 13,30 ---- X GRP=wheel X X SUBDIR= root uucp X X+ FILES= acctd.cf aliases crontab disktab dtab fstab ftpusers gettytab group \ X+ hosts hosts.allow hosts.deny inetd.conf inetd.conf.nowrappers \ X+ motd netstart networks ntp.conf printcap protocols rc rc.conf \ X+ rc.local remote sendmail.cf services shells syslog.conf ttys X+ X+ # The phones file can contain sensitive information (see phones(5)) so is X+ # installed readable only by uucp/tip and group daemon. A local site can use X+ # less restrictive permissions. X+ X+ PHONES= phones X+ X # NOP targets X all install depend lint clean tags: X X*************** X*** 33,46 **** X @chown ${OWN}.${GRP} ${DESTDIR}/usr/spool/mqueue X X install -c -o ${OWN} -g ${GRP} -m 644 ${FILES} ${DESTDIR}/etc X! install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc X install -c -o ${OWN} -g ${GRP} -m 600 hosts.equiv ${DESTDIR}/etc X install -c -o ${OWN} -g ${GRP} -m 555 MAKEDEV.local MAKEDEV \ X ${DESTDIR}/dev X install -c -o ${OWN} -g operator -m 664 /dev/null \ X ${DESTDIR}/etc/dumpdates X- install -c -o ${OWN} -g operator -m 664 /dev/null \ X- ${DESTDIR}/etc/sendmail.cw X install -c -o ${OWN} -g operator -m 664 /dev/null \ X ${DESTDIR}/etc/sendmail.fc X -@mkdir -p ${DESTDIR}/usr/adm ${DESTDIR}/var/run ${DESTDIR}/var/db X--- 40,60 ---- X @chown ${OWN}.${GRP} ${DESTDIR}/usr/spool/mqueue X X install -c -o ${OWN} -g ${GRP} -m 644 ${FILES} ${DESTDIR}/etc X! X! install -c -m 440 -o uucp -g daemon ${PHONES} ${DESTDIR}/etc X! X! mkpasswd -p master.passwd X! install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc X! install -c -o root -g wheel -m 644 master.passwd.dir ${DESTDIR}/etc/passwd.dir X! install -c -o root -g wheel -m 644 master.passwd.pag ${DESTDIR}/etc/passwd.pag X! install -c -o root -g wheel -m 644 master.passwd.orig ${DESTDIR}/etc/passwd X! rm -f master.passwd.dir master.passwd.pag master.passwd.orig X! X install -c -o ${OWN} -g ${GRP} -m 600 hosts.equiv ${DESTDIR}/etc X install -c -o ${OWN} -g ${GRP} -m 555 MAKEDEV.local MAKEDEV \ X ${DESTDIR}/dev X install -c -o ${OWN} -g operator -m 664 /dev/null \ X ${DESTDIR}/etc/dumpdates X install -c -o ${OWN} -g operator -m 664 /dev/null \ X ${DESTDIR}/etc/sendmail.fc X -@mkdir -p ${DESTDIR}/usr/adm ${DESTDIR}/var/run ${DESTDIR}/var/db X*** ./usr/src/etc/rc.local.old Fri Oct 13 23:54:54 2000 X--- ./usr/src/etc/rc.local Tue Mar 31 15:14:17 2026 X*************** X*** 7,16 **** X chmod 644 /etc/motd X X echo -n starting local daemons: >/dev/console 2>&1 X! #if [ $INET = YES -a -f /usr/sbin/timed ]; then X! # timed & echo -n ' timed' >/dev/console 2>&1 X! #fi X! if [ -f /usr/sbin/sendmail ]; then X (cd /usr/spool/mqueue; rm -f lf*) X if [ $INET = YES ]; then X /usr/sbin/sendmail -bd -q1h; echo -n ' sendmail'>/dev/console 2>&1 X--- 7,14 ---- X chmod 644 /etc/motd X X echo -n starting local daemons: >/dev/console 2>&1 X! X! if [ "${sendmail-NO}" = YES -a -f /usr/sbin/sendmail ]; then X (cd /usr/spool/mqueue; rm -f lf*) X if [ $INET = YES ]; then X /usr/sbin/sendmail -bd -q1h; echo -n ' sendmail'>/dev/console 2>&1 X*************** X*** 18,23 **** X /usr/sbin/sendmail -q1h; echo -n ' sendmail' >/dev/console 2>&1 X fi X fi X- echo '.' >/dev/console 2>&1 X X! ntpd X--- 16,20 ---- X /usr/sbin/sendmail -q1h; echo -n ' sendmail' >/dev/console 2>&1 X fi X fi X X! echo '.' >/dev/console 2>&1 X*** ./usr/src/etc/netstart.old Mon Jan 12 17:29:37 2026 X--- ./usr/src/etc/netstart Sat Oct 17 19:13:28 2026 X*************** X*** 3,69 **** X # @(#)netstart 5.5 (2.11BSD) 2026/1/12 X X INET=`testnet` X if [ $INET = YES ]; then X echo Assuming NETWORKING system ... >/dev/console 2>&1 X else X echo Assuming non-networking system ... >/dev/console 2>&1 X fi X- export INET X X- # DON'T EVEN THINK ABOUT RUNNING ROUTED ON A PDP-11!!! Just set routedflags X- # to "NO" and set up a default gateway below. X- # X- routedflags=NO X- rwhod=YES X- named=NO X- X- # Host definitions and network interface selection. IMPORTANT: The values X- # set here also require changes to /etc/hosts and /etc/resolv.conf X- X- # hostname is the symbolic name of this host (address set in /etc/hosts) X- # netmask is network mask, generally assigned by your ISP or router X- # Broadcast is the broadcast address for your local LAN, generally assigned X- # by your ISP or router X- # gateway should be set to the IP address where this host will send packets X- # to hosts not on your local LAN, generally assigned by your ISP or X- # router X- # X- X- hostname=211bsd.example.com X- netmask=255.255.255.0 X- broadcast=192.168.0.255 X- gateway=192.168.0.1 X- X hostname $hostname >/dev/console 2>&1 X hostid $hostname >/dev/console 2>&1 X X if [ $INET = YES ]; then X! # Un-comment the ifconfig line below for your specific network adapter X # X- # DEC DEUNA/DELUA Unibus Ethernet X- # ifconfig de0 inet netmask $netmask $hostname broadcast $broadcast up >/dev/console 2>&1 X- # X- # DEC DEQNA Q-bus Ethernet X- # ifconfig qe0 inet netmask $netmask $hostname broadcast $broadcast up >/dev/console 2>&1 X- # X- # DEC DELQA/DEQTA improved Q-bus Ethernet (missing manpage) X- # ifconfig qt0 inet netmask $netmask $hostname broadcast $broadcast up >/dev/console 2>&1 X- # X- # It is very unlikely you will have any of the following, many of which X- # have received limited (or no) testing in recent 2BSD releases X- # X- # ARPAnet IMP 1822 interface (limited manpage, API only) X- # ifconfig imp0 inet netmask $netmask $hostname broadcast $broadcast up >/dev/console 2>&1 X- # X- # Xerox 3 Mb/s Ethernet X- # ifconfig en0 inet netmask $netmask $hostname broadcast $broadcast up >/dev/console 2>&1 X- # X- # 3Com 10 Mb/s Ethernet X- # ifconfig ec0 inet netmask $netmask $hostname broadcast $broadcast up >/dev/console 2>&1 X- # X- # Interlan NI1010 10 Mb/s Ethernet X- # ifconfig il0 inet netmask $netmask $hostname broadcast $broadcast up >/dev/console 2>&1 X- # X # SLIP (Serial Line Internet Protocol) (missing manpage) X # The first address is your local IP address, the second is the address X # at the far end of the connection X--- 3,22 ---- X # @(#)netstart 5.5 (2.11BSD) 2026/1/12 X X INET=`testnet` X+ X if [ $INET = YES ]; then X echo Assuming NETWORKING system ... >/dev/console 2>&1 X else X echo Assuming non-networking system ... >/dev/console 2>&1 X fi X X hostname $hostname >/dev/console 2>&1 X hostid $hostname >/dev/console 2>&1 X X if [ $INET = YES ]; then X! ifconfig $interface inet netmask $netmask $address up >/dev/console 2>&1 X! X # X # SLIP (Serial Line Internet Protocol) (missing manpage) X # The first address is your local IP address, the second is the address X # at the far end of the connection X*************** X*** 70,80 **** X # ifconfig sl0 inet 192.254.254.2 192.254.254.1 -arp >/dev/console 2>&1 X # slattach /dev/ttyS6 9600 X # X! # Loopback interface, should always be left alone X ifconfig lo0 inet localhost up >/dev/console 2>&1 X X! # This is not routing (as warned about above), just definitions of X! # where to send packets, should always be left alone X! route add $hostname localhost 0 >/dev/console 2>&1 X! route add default $gateway 1 >/dev/console 2>&1 X fi X--- 23,34 ---- X # ifconfig sl0 inet 192.254.254.2 192.254.254.1 -arp >/dev/console 2>&1 X # slattach /dev/ttyS6 9600 X # X! # Loopback interface. Leave this line alone. X ifconfig lo0 inet localhost up >/dev/console 2>&1 X X! # This is not routing, as explained in rc.conf. Leave these lines alone. X! route add $address localhost 0 >/dev/console 2>&1 X! if [ ${gateway-NO} != NO ]; then X! route add default $gateway 1 >/dev/console 2>&1 X! fi X fi X*** ./usr/src/etc/hosts.equiv.old Fri Jan 10 23:50:17 1997 X--- ./usr/src/etc/hosts.equiv Tue Mar 31 21:21:44 2026 X*************** X*** 1 **** X! localhost.2bsd.com X--- 1 ---- X! localhost.example.com X*** ./usr/src/etc/hosts.old Tue Jan 13 07:59:24 2026 X--- ./usr/src/etc/hosts Sun Nov 1 06:44:41 2026 X*************** X*** 1,9 **** X # X! # @(#)hosts 1.0 (2.11BSD) 2026/1/12 X # X # Settings in this file must match /etc/netstart and /etc/resolv.conf X # X # Define your host's IP address and name (both with and without domain name) X! 192.168.0.2 211bsd.example.com 211bsd X # Edit the following line *ONLY* to change the domain name X 127.0.0.1 localhost.example.com localhost X--- 1,11 ---- X # X! # @(#)hosts 1.1 (2.11BSD) 2026/4/1 X # X # Settings in this file must match /etc/netstart and /etc/resolv.conf X # X # Define your host's IP address and name (both with and without domain name) X! 192.168.0.2 pidp.example.com pidp X! # Define your SMTP gateway/relay system (used in sendmail.cf) X! 192.168.0.4 relay.example.com relay X # Edit the following line *ONLY* to change the domain name X 127.0.0.1 localhost.example.com localhost X*** ./usr/src/etc/phones.old Sat Jul 11 05:50:06 1992 X--- ./usr/src/etc/phones Wed Jun 24 07:42:54 2026 X*************** X*** 1,2 **** X information 5221212 X- wlbr 18188894490 X--- 1 ---- X*** ./usr/src/etc/MAKEDEV.local.old Fri Jan 10 23:47:17 1997 X--- ./usr/src/etc/MAKEDEV.local Mon Sep 7 18:33:10 2026 X*************** X*** 1,23 **** X! rm -f swap X! ln ra0a swap X! chgrp kmem swap X! chmod 640 swap X X rm -f ttyi6 ttyd0; mknod ttyd0 c 3 22 X- rm -f ttyi7 ttyd1; mknod ttyd1 c 3 23 X- rm -f ttyi8 ttyd2; mknod ttyd2 c 3 24 X- rm -f ttyi9 ttyd3; mknod ttyd3 c 3 25 X- rm -f ttyia ttyd4; mknod ttyd4 c 3 26 X- rm -f ttyic ttyd5; mknod ttyd5 c 3 156 X X- rm -f ttyh1 dir-shasta; mknod dir-shasta c 3 1 X- rm -f ttyh6 dir-rose; mknod dir-rose c 3 6 X- rm -f ttyh7 dir-namsan; mknod dir-namsan c 3 7 X- rm -f ttyid dir-ps; mknod dir-ps c 3 157 X- rm -f ttyie cua0; mknod cua0 c 3 158 X- rm -f ttyif dir-scgl; mknod dir-scgl c 3 159 X- chown uucp dir-* X- chmod 660 dir-* X # Cua* can't be owned by anyone real who wants to use the dialer if the mode X # 060 below and the dialer group is to work. Note that the uucp programs X # must be in the dialer group. X--- 1,10 ---- X! # @(#)MAKEDEV 2.0 (2.11BSD) 2026/5/5 X! # X! # These are examples and almost certainly will need to be adjusted to local X! # conventions. X X rm -f ttyi6 ttyd0; mknod ttyd0 c 3 22 X X # Cua* can't be owned by anyone real who wants to use the dialer if the mode X # 060 below and the dialer group is to work. Note that the uucp programs X # must be in the dialer group. X*** ./usr/src/etc/syslog.conf.old Tue Aug 17 01:17:49 1999 X--- ./usr/src/etc/syslog.conf Mon Jun 8 06:32:12 2026 X*************** X*** 1,7 **** X local7.debug /dev/null X *.crit;*.err;kern.debug;auth.notice,local7.none /dev/console X X! *.err;auth.notice;*.info;kern.debug;local3,local7,mail,daemon,lpr.none /usr/adm/messages X X cron.debug /usr/adm/cron X lpr.debug /usr/adm/lpd-errs X--- 1,7 ---- X local7.debug /dev/null X *.crit;*.err;kern.debug;auth.notice,local7.none /dev/console X X! *.err;auth.notice;*.info;kern.debug;local7,mail,daemon,lpr,cron.none /usr/adm/messages X X cron.debug /usr/adm/cron X lpr.debug /usr/adm/lpd-errs X*** ./usr/src/etc/remote.old Sat Jul 11 19:51:36 1992 X--- ./usr/src/etc/remote Thu Sep 10 16:50:19 2026 X*************** X*** 1,6 **** X--- 1,10 ---- X # X+ # @(#)remote 1.2 (2.11BSD) 2026/6/24 X+ # X # General dialer definitions used below X # X+ dial19200|19200 Baud Hayes attributes:\ X+ :br#19200:at=hayes:du: X dial9600|9600 Baud Hayes attributes:\ X :br#9600:at=hayes:du: X dial1200|1200 Baud DN11 attributes:\ X*************** X*** 19,25 **** X cu0|cu300:tc=UNIX-300: X cu1200:tc=UNIX-1200: X dialer:dv=/dev/cul0:br#1200: X- wlbr:dv=/dev/ttyS7:cu=/dev/ttyS7:pn=@:tc=dial9600: X X #-------------------------------------------------------------------- X #The attributes are: X--- 23,28 ---- X*** ./usr/src/etc/dtab.old Tue Jan 21 23:11:36 1997 X--- ./usr/src/etc/dtab Mon Sep 7 18:16:33 2026 X*************** X*** 1,3 **** X--- 1,5 ---- X+ # @(#)dtab 2.0 (2.11BSD) 2026/9/7 X+ # X # Device Configuration Table X X #Name Unit# Addr Vector Br Handler(s) # Comments X*************** X*** 11,17 **** X # dh ? 160020 320 5 dhrint dhxint # dh11 terminal mux X # dz ? 160100 310 5 dzrint dzdma # dz11 terminal mux X hk ? 177440 210 5 hkintr # rk611/711 rk06/07 X- # hp ? 176700 254 5 hpintr # rjp04/06, rwp04/06 X ht ? 172440 224 5 htintr # tu 16 massbus tape X # vp ? 177500 174 4 vpintr # Versatec; should be before lp X # lp ? 177514 200 4 lpintr # lp-11 line printer X--- 13,18 ---- X*************** X*** 18,24 **** X ra ? 172150 154 5 raintr # uda50, rqdx1/2/3 X rk ? 177400 220 5 rkintr # rk05 X rl ? 174400 160 5 rlintr # rl-01/02 X- # rm ? 176700 254 5 rmintr # rjm02/rwm03, rm02/03/05 X # br ? 176710 254 5 brintr # Eaton br1537/br1711 X # rx ? 177170 264 5 rxintr # rx01/02 X # si ? 176700 170 5 siintr # si9500 X--- 19,24 ---- X*** ./usr/src/etc/inetd.conf.old Sat Dec 14 00:29:55 1996 X--- ./usr/src/etc/inetd.conf Sun Oct 11 12:59:30 2026 X*************** X*** 1,5 **** X # X! # Internet server configuration database X # X ftp stream tcp nowait root /usr/libexec/tcpd ftpd -l X telnet stream tcp nowait root /usr/libexec/tcpd telnetd X--- 1,5 ---- X # X! # @(#)inetd.conf 2.0 (2.11BSD) 2026/10/11 X # X ftp stream tcp nowait root /usr/libexec/tcpd ftpd -l X telnet stream tcp nowait root /usr/libexec/tcpd telnetd X*************** X*** 6,21 **** X shell stream tcp nowait root /usr/libexec/tcpd rshd X login stream tcp nowait root /usr/libexec/tcpd rlogind X #exec stream tcp nowait root /usr/libexec/rexecd rexecd X! uucpd stream tcp nowait root /usr/libexec/uucpd uucpd X #nntp stream tcp nowait usenet /usr/libexec/nntpd nntpd X finger stream tcp nowait nobody /usr/libexec/fingerd fingerd -s -l X! tftp dgram udp wait nobody /usr/libexec/tcpd tftpd X comsat dgram udp wait root /usr/libexec/comsat comsat X #talk dgram udp wait root /usr/libexec/talkd talkd X #ntalk dgram udp wait root /usr/libexec/ntalkd ntalkd X! ident stream tcp wait sys /usr/libexec/identd identd -l -w -t120 X echo stream tcp nowait root internal X! discard stream tcp nowait root internal X #chargen stream tcp nowait root internal X #daytime stream tcp nowait root internal X tcpmux stream tcp nowait root internal X--- 6,21 ---- X shell stream tcp nowait root /usr/libexec/tcpd rshd X login stream tcp nowait root /usr/libexec/tcpd rlogind X #exec stream tcp nowait root /usr/libexec/rexecd rexecd X! #uucpd stream tcp nowait root /usr/libexec/uucpd uucpd X #nntp stream tcp nowait usenet /usr/libexec/nntpd nntpd X finger stream tcp nowait nobody /usr/libexec/fingerd fingerd -s -l X! #tftp dgram udp wait nobody /usr/libexec/tcpd tftpd X comsat dgram udp wait root /usr/libexec/comsat comsat X #talk dgram udp wait root /usr/libexec/talkd talkd X #ntalk dgram udp wait root /usr/libexec/ntalkd ntalkd X! #ident stream tcp wait sys /usr/libexec/identd identd -l -w -t120 X echo stream tcp nowait root internal X! #discard stream tcp nowait root internal X #chargen stream tcp nowait root internal X #daytime stream tcp nowait root internal X tcpmux stream tcp nowait root internal X*** ./usr/src/etc/inetd.conf.nowrappers.old Fri Jan 10 23:52:22 1997 X--- ./usr/src/etc/inetd.conf.nowrappers Sun Oct 11 10:19:32 2026 X*************** X*** 1,5 **** X # X! # Internet server configuration database X # X ftp stream tcp nowait root /usr/libexec/ftpd -l X telnet stream tcp nowait root /usr/libexec/telnetd X--- 1,5 ---- X # X! # @(#)inetd.conf.nowrapper 2.0 (2.11BSD) 2026/10/11 X # X ftp stream tcp nowait root /usr/libexec/ftpd -l X telnet stream tcp nowait root /usr/libexec/telnetd X*************** X*** 6,12 **** X shell stream tcp nowait root /usr/libexec/rshd X login stream tcp nowait root /usr/libexec/rlogind X #exec stream tcp nowait root /usr/libexec/rexecd X! uucpd stream tcp nowait root /usr/libexec/uucpd uucpd X #nntp stream tcp nowait usenet /usr/libexec/nntpd nntpd X finger stream tcp nowait nobody /usr/libexec/fingerd fingerd -s -l X #tftp dgram udp wait nobody /usr/libexec/tftpd X--- 6,12 ---- X shell stream tcp nowait root /usr/libexec/rshd X login stream tcp nowait root /usr/libexec/rlogind X #exec stream tcp nowait root /usr/libexec/rexecd X! #uucpd stream tcp nowait root /usr/libexec/uucpd uucpd X #nntp stream tcp nowait usenet /usr/libexec/nntpd nntpd X finger stream tcp nowait nobody /usr/libexec/fingerd fingerd -s -l X #tftp dgram udp wait nobody /usr/libexec/tftpd X*************** X*** 13,21 **** X comsat dgram udp wait root /usr/libexec/comsat comsat X #talk dgram udp wait root /usr/libexec/talkd talkd X #ntalk dgram udp wait root /usr/libexec/ntalkd ntalkd X! ident stream tcp wait sys /usr/libexec/identd identd -l -w -t120 X echo stream tcp nowait root internal X! discard stream tcp nowait root internal X #chargen stream tcp nowait root internal X #daytime stream tcp nowait root internal X tcpmux stream tcp nowait root internal X--- 13,21 ---- X comsat dgram udp wait root /usr/libexec/comsat comsat X #talk dgram udp wait root /usr/libexec/talkd talkd X #ntalk dgram udp wait root /usr/libexec/ntalkd ntalkd X! #ident stream tcp wait sys /usr/libexec/identd identd -l -w -t120 X echo stream tcp nowait root internal X! #discard stream tcp nowait root internal X #chargen stream tcp nowait root internal X #daytime stream tcp nowait root internal X tcpmux stream tcp nowait root internal X*** ./usr/src/etc/hosts.allow.old Fri Jan 10 23:49:57 1997 X--- ./usr/src/etc/hosts.allow Sun Oct 11 12:49:15 2026 X*************** X*** 1,4 **** X! tftpd: LOCAL X! rshd: LOCAL X! zyncd: LOCAL X! popper: LOCAL X--- 1,9 ---- X! # X! # @(#)hosts.allow 2.0 (2.11BSD) 2026/10/11 X! # X! ftpd: .example.com LOCAL X! rlogind: .example.com LOCAL X! rshd: .example.com LOCAL X! tftpd: .example.com LOCAL X! popper: .example.com LOCAL X! telnetd: .example.com LOCAL X*** ./usr/src/games/fortune/strfile.c.old Sat Dec 29 10:49:27 2018 X--- ./usr/src/games/fortune/strfile.c Tue Jul 21 20:18:10 2026 X*************** X*** 1,4 **** X! /* @(#)strfile.c 2.0 (2.11BSD) 2018/12/29 */ X X #include X #include X--- 1,4 ---- X! /* @(#)strfile.c 2.1 (2.11BSD) 2026/7/21 */ X X #include X #include X*************** X*** 356,362 **** X long tmp, *origsp; X X Tbl.str_flags |= STR_RANDOM; X! srandom(time((long *) NULL) + getpid()); X origsp = seekpts; X X for (j = 0; j <= Delim; j++) { X--- 356,362 ---- X long tmp, *origsp; X X Tbl.str_flags |= STR_RANDOM; X! srandom(time((time_t *) NULL) + getpid()); X origsp = seekpts; X X for (j = 0; j <= Delim; j++) { X*** ./usr/src/games/backgammon/save.c.old Wed May 29 13:37:14 1985 X--- ./usr/src/games/backgammon/save.c Mon May 11 07:17:28 2026 X*************** X*** 4,17 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)save.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "back.h" X X- extern int errno; X- X static char confirm[] = "Are you sure you want to leave now?"; X static char prompt[] = "Enter a file name: "; X static char exist1[] = "The file '"; X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)save.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "back.h" X+ #include X X static char confirm[] = "Are you sure you want to leave now?"; X static char prompt[] = "Enter a file name: "; X static char exist1[] = "The file '"; X*************** X*** 25,31 **** X X save (n) X register int n; X- X { X register int fdesc; X register char *fs; X--- 24,29 ---- X*************** X*** 113,122 **** X clend(); X getout (); X } X! X recover (s) X char *s; X- X { X register int i; X int fdesc; X--- 111,119 ---- X clend(); X getout (); X } X! X recover (s) X char *s; X { X register int i; X int fdesc; X*************** X*** 140,146 **** X X norec (s) X register char *s; X- X { X register char *c; X X--- 137,142 ---- X*** ./usr/src/games/backgammon/fancy.c.old Wed Aug 26 00:18:53 1987 X--- ./usr/src/games/backgammon/fancy.c Mon May 11 07:19:17 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)fancy.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "back.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)fancy.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "back.h" X X*************** X*** 44,53 **** X X int oldr; X int oldw; X! /* "real" cursor positions, so X! * it knows when to reposition. X! * These are -1 if curr and curc X! * are accurate */ X int realr; X int realc; X X--- 44,53 ---- X X int oldr; X int oldw; X! /* "real" cursor positions, so X! * it knows when to reposition. X! * These are -1 if curr and curc X! * are accurate */ X int realr; X int realc; X X*************** X*** 148,154 **** X oldr = (off[1] < 0? off[1]+15: off[1]); X oldw = -(off[0] < 0? off[0]+15: off[0]); X } X! X /* X * bsect (b,rpos,cpos,cnext) X * Print the contents of a board position. "b" has the value of the X--- 148,154 ---- X oldr = (off[1] < 0? off[1]+15: off[1]); X oldw = -(off[0] < 0? off[0]+15: off[0]); X } X! X /* X * bsect (b,rpos,cpos,cnext) X * Print the contents of a board position. "b" has the value of the X*************** X*** 218,224 **** X } X } X } X! X refresh() { X register int i, r, c; X X--- 218,224 ---- X } X } X } X! X refresh() { X register int i, r, c; X X*************** X*** 275,281 **** X newpos(); X buflush(); X } X! X fixpos (old,new,r,c,inc) X int old, new, r, c, inc; X X--- 275,281 ---- X newpos(); X buflush(); X } X! X fixpos (old,new,r,c,inc) X int old, new, r, c, inc; X X*************** X*** 360,366 **** X fancyc (ch); X } X } X! X curmove (r,c) X register int r, c; X X--- 360,366 ---- X fancyc (ch); X } X } X! X curmove (r,c) X register int r, c; X X*************** X*** 542,548 **** X realr = -1; X realc = -1; X } X! X clear () { X register int i; X int addbuf(); X--- 542,548 ---- X realr = -1; X realc = -1; X } X! X clear () { X register int i; X int addbuf(); X*************** X*** 564,570 **** X tos () { /* home cursor */ X curmove (0,0); X } X! X fancyc (c) X register char c; /* character to output */ X { X--- 564,570 ---- X tos () { /* home cursor */ X curmove (0,0); X } X! X fancyc (c) X register char c; /* character to output */ X { X*************** X*** 620,626 **** X /* use cursor movement routine */ X curmove (curr,curc+1); X } X! X clend() { X register int i; X register char *s; X--- 620,626 ---- X /* use cursor movement routine */ X curmove (curr,curc+1); X } X! X clend() { X register int i; X register char *s; X*************** X*** 674,680 **** X else X curmove (curr+1,0); X } X! X getcaps (s) X register char *s; X X--- 674,680 ---- X else X curmove (curr+1,0); X } X! X getcaps (s) X register char *s; X X*** ./usr/src/games/backgammon/ttext2.c.old Wed May 29 13:40:08 1985 X--- ./usr/src/games/backgammon/ttext2.c Mon May 11 07:20:15 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)ttext2.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "back.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ttext2.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "back.h" X X*************** X*** 42,48 **** X "tional hints on strategy are presented in the practice game.", X "", X 0}; X! X char *prog[] = { X "\nThe Program and How It Works:", X "\n A general rule of thumb is when you don't know what to do,", X--- 42,48 ---- X "tional hints on strategy are presented in the practice game.", X "", X 0}; X! X char *prog[] = { X "\nThe Program and How It Works:", X "\n A general rule of thumb is when you don't know what to do,", X*************** X*** 95,110 **** X "torial starts.", X "", X 0}; X! X text (txt) X char **txt; X- X { X char **begin; X char *a; X char b; X char *c; X! int i; X X fixtty (noech); X begin = txt; X--- 95,109 ---- X "torial starts.", X "", X 0}; X! X text (txt) X char **txt; X { X char **begin; X char *a; X char b; X char *c; X! register int i; X X fixtty (noech); X begin = txt; X*** ./usr/src/games/backgammon/allow.c.old Wed May 29 13:29:32 1985 X--- ./usr/src/games/backgammon/allow.c Mon May 11 07:20:40 2026 X*************** X*** 4,17 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)allow.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "back.h" X X movallow () { X- X register int i, m, iold; X int r; X X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)allow.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "back.h" X X movallow () { X register int i, m, iold; X int r; X X*** ./usr/src/games/backgammon/board.c.old Wed May 29 13:30:52 1985 X--- ./usr/src/games/backgammon/board.c Mon May 11 07:21:13 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)board.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "back.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)board.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "back.h" X X*************** X*** 128,134 **** X } X fixtty(raw); X } X! X wrbsub () { X register int m; X register char d; X--- 128,134 ---- X } X fixtty(raw); X } X! X wrbsub () { X register int m; X register char d; X*** ./usr/src/games/backgammon/check.c.old Wed May 29 13:31:23 1985 X--- ./usr/src/games/backgammon/check.c Mon May 11 07:21:43 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)check.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "back.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)check.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "back.h" X X*************** X*** 72,81 **** X } X } X } X! X movokay (mv) X register int mv; X- X { X register int i, m; X X--- 72,80 ---- X } X } X } X! X movokay (mv) X register int mv; X { X register int i, m; X X*** ./usr/src/games/backgammon/extra.c.old Wed May 29 13:32:32 1985 X--- ./usr/src/games/backgammon/extra.c Mon May 11 07:22:19 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)extra.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "back.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)extra.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "back.h" X X*************** X*** 73,79 **** X return; X } X } X! X /* X * dblgood () X * Returns 1 if the computer would double in this position. This X--- 73,79 ---- X return; X } X } X! X /* X * dblgood () X * Returns 1 if the computer would double in this position. This X*************** X*** 159,165 **** X return(1); X return (0); X } X! X freemen (b) X int b; X X--- 159,165 ---- X return(1); X return (0); X } X! X freemen (b) X int b; X X*************** X*** 178,184 **** X return ((36-count())/5); X return (count()/5); X } X! X trapped (n,inc) X int n, inc; X X--- 178,184 ---- X return ((36-count())/5); X return (count()/5); X } X! X trapped (n,inc) X int n, inc; X X*************** X*** 205,211 **** X } X return (ct/5); X } X! X eval () { X X register int i, j; X--- 205,211 ---- X } X return (ct/5); X } X! X eval () { X X register int i, j; X*** ./usr/src/games/backgammon/init.c.old Wed May 29 13:33:43 1985 X--- ./usr/src/games/backgammon/init.c Mon May 11 07:23:40 2026 X*************** X*** 4,20 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)init.c 5.1 (Berkeley) 5/29/85"; X #endif not lint X X- #include X- X /* X * variable initialization. X */ X X- /* name of executable object programs */ X char EXEC[] = "/usr/games/backgammon"; X char TEACH[] = "/usr/games/teachgammon"; X X--- 4,17 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)init.c 5.2 (2.11BSD) 2026/5/11"; X #endif not lint X X /* X * variable initialization. X */ X X char EXEC[] = "/usr/games/backgammon"; X char TEACH[] = "/usr/games/teachgammon"; X X*** ./usr/src/games/backgammon/move.c.old Wed May 29 13:35:37 1985 X--- ./usr/src/games/backgammon/move.c Mon May 11 07:24:31 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)move.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "back.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)move.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "back.h" X X*************** X*** 55,61 **** X static int cg[5]; /* candidate finish position */ X X static int race; /* game reduced to a race */ X! X move (okay) X int okay; /* zero if first move */ X { X--- 55,61 ---- X static int cg[5]; /* candidate finish position */ X X static int race; /* game reduced to a race */ X! X move (okay) X int okay; /* zero if first move */ X { X*************** X*** 145,151 **** X } X fixtty (raw); /* no more tty interrupt */ X } X! X trymove (mvnum,swapped) X register int mvnum; /* number of move (rel zero) */ X int swapped; /* see if swapped also tested */ X--- 145,151 ---- X } X fixtty (raw); /* no more tty interrupt */ X } X! X trymove (mvnum,swapped) X register int mvnum; /* number of move (rel zero) */ X int swapped; /* see if swapped also tested */ X*************** X*** 200,206 **** X if ((!swapped) && D0 != D1) X trymove (0,1); X } X! X struct BOARD * X bsave () { X register int i; /* index */ X--- 200,206 ---- X if ((!swapped) && D0 != D1) X trymove (0,1); X } X! X struct BOARD * X bsave () { X register int i; /* index */ X*************** X*** 221,227 **** X } X return (now); X } X! X binsert (new) X struct BOARD *new; /* item to insert */ X { X--- 221,227 ---- X } X return (now); X } X! X binsert (new) X struct BOARD *new; /* item to insert */ X { X*************** X*** 264,270 **** X p->b_next = new; X new->b_next = -1; X } X! X bcomp (a,b) X struct BOARD *a; X struct BOARD *b; X--- 264,270 ---- X p->b_next = new; X new->b_next = -1; X } X! X bcomp (a,b) X struct BOARD *a; X struct BOARD *b; X*************** X*** 281,287 **** X } X return (0); /* same position */ X } X! X mvcheck (incumbent,candidate) X register struct BOARD *incumbent; X register struct BOARD *candidate; X--- 281,287 ---- X } X return (0); /* same position */ X } X! X mvcheck (incumbent,candidate) X register struct BOARD *incumbent; X register struct BOARD *candidate; X*************** X*** 303,309 **** X incumbent->b_fn[i] = candidate->b_fn[i]; X } X } X! X makefree (dead) X struct BOARD *dead; /* dead position */ X { X--- 303,309 ---- X incumbent->b_fn[i] = candidate->b_fn[i]; X } X } X! X makefree (dead) X struct BOARD *dead; /* dead position */ X { X*************** X*** 328,334 **** X new = freeq; X freeq = freeq->b_next; X } X! X pickmove () { X /* current game position */ X register struct BOARD *now = bsave(); X--- 328,334 ---- X new = freeq; X freeq = freeq->b_next; X } X! X pickmove () { X /* current game position */ X register struct BOARD *now = bsave(); X*************** X*** 350,356 **** X X bcopy (now); X } X! X bcopy (s) X register struct BOARD *s; /* game situation */ X { X--- 350,356 ---- X X bcopy (now); X } X! X bcopy (s) X register struct BOARD *s; /* game situation */ X { X*************** X*** 367,373 **** X g[i] = s->b_fn[i]; X } X } X! X movcmp () { X register int i; X register int c; X--- 367,373 ---- X g[i] = s->b_fn[i]; X } X } X! X movcmp () { X register int i; X register int c; X*************** X*** 440,446 **** X } X #endif X } X! X movegood () { X register int n; X X--- 440,446 ---- X } X #endif X } X! X movegood () { X register int n; X X*** ./usr/src/games/backgammon/odds.c.old Wed May 29 13:36:14 1985 X--- ./usr/src/games/backgammon/odds.c Mon May 11 07:25:00 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)odds.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "back.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)odds.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "back.h" X X*************** X*** 46,52 **** X total += table[i][j]; X return (total); X } X! X canhit (i,c) X int i, c; X X--- 46,52 ---- X total += table[i][j]; X return (total); X } X! X canhit (i,c) X int i, c; X X*** ./usr/src/games/backgammon/one.c.old Wed May 29 13:36:40 1985 X--- ./usr/src/games/backgammon/one.c Mon May 11 07:25:24 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)one.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "back.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)one.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "back.h" X X*************** X*** 63,69 **** X } X return (0); X } X! X moverr (i) X register int i; X X--- 63,69 ---- X } X return (0); X } X! X moverr (i) X register int i; X X*************** X*** 103,109 **** X if (board[i]*cturn > 0) X return (abs(home-i)); X } X! X movback (i) X register int i; X X--- 103,109 ---- X if (board[i]*cturn > 0) X return (abs(home-i)); X } X! X movback (i) X register int i; X X*** ./usr/src/games/backgammon/data.c.old Wed May 29 13:32:00 1985 X--- ./usr/src/games/backgammon/data.c Mon May 11 07:25:49 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)data.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "tutor.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)data.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "tutor.h" X X*** ./usr/src/games/backgammon/teach.c.old Wed May 29 13:38:26 1985 X--- ./usr/src/games/backgammon/teach.c Mon May 11 07:26:19 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)teach.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "back.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)teach.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "back.h" X X*** ./usr/src/games/backgammon/text.c.old Wed May 29 13:38:53 1985 X--- ./usr/src/games/backgammon/text.c Mon May 11 07:26:48 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)text.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "back.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)text.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "back.h" X X*************** X*** 75,81 **** X " Now you should be ready to begin the game. Good luck!", X "", X 0}; X! X X text (t) X char **t; X--- 75,81 ---- X " Now you should be ready to begin the game. Good luck!", X "", X 0}; X! X X text (t) X char **t; X*** ./usr/src/games/backgammon/ttext1.c.old Wed May 29 13:39:38 1985 X--- ./usr/src/games/backgammon/ttext1.c Mon May 11 07:27:20 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)ttext1.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "back.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ttext1.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "back.h" X X*************** X*** 71,77 **** X "have any pieces of either color.", X "", X 0}; X! X char *moves[] = { X "\nMoves and Points:", X "\n Moves are made along the positions on the board according to", X--- 71,77 ---- X "have any pieces of either color.", X "", X 0}; X! X char *moves[] = { X "\nMoves and Points:", X "\n Moves are made along the positions on the board according to", X*************** X*** 126,132 **** X "many moves as possible.", X "", X 0}; X! X char *hits[] = { X "\nHitting Blots:", X "\n Although two men on a position form an impenetrable point, a", X--- 126,132 ---- X "many moves as possible.", X "", X 0}; X! X char *hits[] = { X "\nHitting Blots:", X "\n Although two men on a position form an impenetrable point, a", X*************** X*** 143,149 **** X "bar, as well as being set back the full distance of the board.", X "", X 0}; X! X char *endgame[] = { X "\nEnding the Game and Scoring:", X "\n Winning a game usually wins one point, the normal value of a", X--- 143,149 ---- X "bar, as well as being set back the full distance of the board.", X "", X 0}; X! X char *endgame[] = { X "\nEnding the Game and Scoring:", X "\n Winning a game usually wins one point, the normal value of a", X*** ./usr/src/games/backgammon/tutor.c.old Wed May 29 13:40:31 1985 X--- ./usr/src/games/backgammon/tutor.c Mon May 11 07:27:41 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)tutor.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "back.h" X #include "tutor.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)tutor.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "back.h" X #include "tutor.h" X*** ./usr/src/games/backgammon/main.c.old Mon Oct 3 16:21:36 2022 X--- ./usr/src/games/backgammon/main.c Thu Sep 17 08:36:49 2026 X*************** X*** 9,18 **** X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)main.c 5.1 (2.11BSD) 2022/10/3"; X #endif X X #include X #include "back.h" X X #define MVPAUSE 5 /* time to sleep when stuck */ X--- 9,19 ---- X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)main.c 5.2 (2.11BSD) 2026/7/21"; X #endif X X #include X+ #include X #include "back.h" X X #define MVPAUSE 5 /* time to sleep when stuck */ X*************** X*** 67,78 **** X main (argc,argv) X int argc; X char **argv; X- X { X register int i; /* non-descript index */ X register int l; /* non-descript index */ X register char c; /* non-descript character storage */ X! long t,time(); /* time for random num generator */ X X /* initialization */ X bflag = 2; /* default no board */ X--- 68,78 ---- X main (argc,argv) X int argc; X char **argv; X { X register int i; /* non-descript index */ X register int l; /* non-descript index */ X register char c; /* non-descript character storage */ X! time_t t; /* time for random num generator */ X X /* initialization */ X bflag = 2; /* default no board */ X*************** X*** 96,102 **** X getout(); X } X # endif X- X /* get terminal X * capabilities, and X * decide if it can X--- 96,101 ---- X*************** X*** 106,112 **** X * for text */ X if (tflag) X begscr = 0; X! t = time(0); X srandom(t); /* 'random' seed */ X X #ifdef V7 X--- 105,111 ---- X * for text */ X if (tflag) X begscr = 0; X! t = time((time_t *)0); X srandom(t); /* 'random' seed */ X X #ifdef V7 X*************** X*** 149,155 **** X X tflag = 0; /* error! */ X writel (noteach); X! exit(); X } else { /* if not rules, then X * instructions */ X writel (need); X--- 148,154 ---- X X tflag = 0; /* error! */ X writel (noteach); X! exit(1); X } else { /* if not rules, then X * instructions */ X writel (need); X*** ./usr/src/games/backgammon/subs.c.old Mon Oct 3 16:24:21 2022 X--- ./usr/src/games/backgammon/subs.c Thu Sep 17 08:37:51 2026 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)subs.c 5.2 (2.11BSD) 2022/10/3"; X #endif X X #include X--- 5,11 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)subs.c 5.3 (2.11BSD) 2026/9/17"; X #endif X X #include X*************** X*** 399,405 **** X X /* fix terminal status */ X fixtty (old); X! exit(); X } X roll () { X register char c; X--- 399,405 ---- X X /* fix terminal status */ X fixtty (old); X! exit(0); X } X roll () { X register char c; X*** ./usr/src/games/battlestar/mkstr.c.old Wed Jul 29 18:40:16 1987 X--- ./usr/src/games/battlestar/mkstr.c Tue Jul 14 06:36:39 2026 X*************** X*** 10,31 **** X * a (long) pointer. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)mkstr.c 5.1 (Berkeley) 5/31/85"; X! #endif not lint X X #include X X! #define ungetchar(c) ungetc(c, stdin) X X- long ftell(); X- char *calloc(); X /* X * mkstr - create a string error message file by massaging C source X * X--- 10,34 ---- X * a (long) pointer. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)mkstr.c 5.2 (2.11BSD) 2026/5/10"; X! #endif X X #include X+ #include X+ #include X+ #include X+ #include X+ #include X X! void process(), copystr(), inithash(); X! int fgetNUL(), match(); X! long hashit(); X X /* X * mkstr - create a string error message file by massaging C source X * X*************** X*** 52,80 **** X * existing error message file for recompilation of single routines. X */ X X X FILE *mesgread, *mesgwrite; X! char *progname; X! char usagestr[] = "usage: %s [ - ] mesgfile prefix file ...\n"; X char name[100], *np; X X! main(argc, argv) X int argc; X char *argv[]; X { X char addon = 0; X X! argc--, progname = *argv++; X if (argc > 1 && argv[0][0] == '-') X addon++, argc--, argv++; X if (argc < 3) X! fprintf(stderr, usagestr, progname), exit(1); X mesgwrite = fopen(argv[0], addon ? "a" : "w"); X if (mesgwrite == NULL) X! perror(argv[0]), exit(1); X mesgread = fopen(argv[0], "r"); X if (mesgread == NULL) X! perror(argv[0]), exit(1); X inithash(); X argc--, argv++; X strcpy(name, argv[0]); X--- 55,83 ---- X * existing error message file for recompilation of single routines. X */ X X+ extern char *__progname; X X FILE *mesgread, *mesgwrite; X! char usagestr[] = "usage: %s [ - ] mesgfile prefix file ..."; X char name[100], *np; X X! int main(argc, argv) X int argc; X char *argv[]; X { X char addon = 0; X X! argc--, argv++; X if (argc > 1 && argv[0][0] == '-') X addon++, argc--, argv++; X if (argc < 3) X! errx(1, usagestr, __progname); X mesgwrite = fopen(argv[0], addon ? "a" : "w"); X if (mesgwrite == NULL) X! err(1, "%s", argv[0]); X mesgread = fopen(argv[0], "r"); X if (mesgread == NULL) X! err(1, "%s", argv[0]); X inithash(); X argc--, argv++; X strcpy(name, argv[0]); X*************** X*** 83,91 **** X do { X strcpy(np, argv[0]); X if (freopen(name, "w", stdout) == NULL) X! perror(name), exit(1); X if (freopen(argv[0], "r", stdin) == NULL) X! perror(argv[0]), exit(1); X process(); X argc--, argv++; X } while (argc > 0); X--- 86,94 ---- X do { X strcpy(np, argv[0]); X if (freopen(name, "w", stdout) == NULL) X! err(1, "%s", name); X if (freopen(argv[0], "r", stdin) == NULL) X! err(1, "%s", argv[0]); X process(); X argc--, argv++; X } while (argc > 0); X*************** X*** 92,101 **** X exit(0); X } X X! process() X { X register char *cp; X! register c; X X for (;;) { X c = getchar(); X--- 95,104 ---- X exit(0); X } X X! void process() X { X register char *cp; X! register int c; X X for (;;) { X c = getchar(); X*************** X*** 116,126 **** X } X } X X! match(ocp) X char *ocp; X { X register char *cp; X! register c; X X for (cp = ocp + 1; *cp; cp++) { X c = getchar(); X--- 119,129 ---- X } X } X X! int match(ocp) X char *ocp; X { X register char *cp; X! register int c; X X for (cp = ocp + 1; *cp; cp++) { X c = getchar(); X*************** X*** 127,133 **** X if (c != *cp) { X while (ocp < cp) X putchar(*ocp++); X! ungetchar(c); X return (0); X } X } X--- 130,136 ---- X if (c != *cp) { X while (ocp < cp) X putchar(*ocp++); X! ungetc(c, stdin); X return (0); X } X } X*************** X*** 134,218 **** X return (1); X } X X! copystr() X! { X! register c, ch; X char buf[512]; X! register char *cp = buf; X! long hashit(); X X! for (;;) { X! c = getchar(); X! if (c == EOF) X break; X! switch (c) { X! X! case '"': X! *cp++ = 0; X! goto out; X! case '\\': X c = getchar(); X! switch (c) { X! X! case 'b': X! c = '\b'; X! break; X! case 't': X! c = '\t'; X! break; X! case 'r': X! c = '\r'; X! break; X! case 'n': X! c = '\n'; X! break; X! case '\n': X! continue; X! case 'f': X! c = '\f'; X! break; X! case '0': X! c = 0; X! break; X! case '\\': X! break; X! default: X! if (!octdigit(c)) X break; X! c -= '0'; X! ch = getchar(); X! if (!octdigit(ch)) X break; X! c <<= 7, c += ch - '0'; X! ch = getchar(); X! if (!octdigit(ch)) X break; X! c <<= 3, c+= ch - '0', ch = -1; X! break; X! } X } X- *cp++ = c; X- } X- out: X *cp = 0; X! printf("%ld", hashit(buf, 1, NULL)); X! } X X octdigit(c) X! char c; X! { X! X return (c >= '0' && c <= '7'); X! } X X! inithash() X { X char buf[512]; X int mesgpt = 0; X X rewind(mesgread); X! while (fgetNUL(buf, sizeof buf, mesgread) != NULL) { X! hashit(buf, 0, mesgpt); X mesgpt += strlen(buf) + 2; X } X } X--- 137,221 ---- X return (1); X } X X! void copystr() X! { X! register int c, ch; X char buf[512]; X! register char *cp = buf, *ep; X X! for (ep = cp + sizeof(buf) - 1; (c = getchar()) != EOF;) X! { X! if (c == '"') X break; X! if (c == '\\') X! { X c = getchar(); X! switch (c) X! { X! case 'a': X! c = '\a'; X break; X! case 'b': X! c = '\b'; X break; X! case 't': X! c = '\t'; X break; X! case 'r': X! c = '\r'; X! break; X! case 'n': X! c = '\n'; X! break; X! case '\n': X! continue; X! case 'f': X! c = '\f'; X! break; X! case 'v': X! c = '\v'; X! break; X! case '0': X! c = 0; X! break; X! case '\\': X! break; X! default: X! if (!octdigit(c)) X! break; X! c -= '0'; X! ch = getchar(); X! if (!octdigit(ch)) X! break; X! c <<= 7, c += ch - '0'; X! ch = getchar(); X! if (!octdigit(ch)) X! break; X! c <<= 3, c+= ch - '0'; X! break; X! } X! } X! if (cp < ep) X! *cp++ = c; X } X *cp = 0; X! printf("%ldL", hashit(buf, 1, NULL)); X! } X X octdigit(c) X! register char c; X! { X return (c >= '0' && c <= '7'); X! } X X! void inithash() X { X char buf[512]; X int mesgpt = 0; X X rewind(mesgread); X! while (fgetNUL(buf, sizeof buf, mesgread) != 0) { X! (void)hashit(buf, 0, mesgpt); X mesgpt += strlen(buf) + 2; X } X } X*************** X*** 225,235 **** X struct hash *hnext; X } *bucket[NBUCKETS]; X X! long X! hashit(str, really, fakept) X char *str; X char really; X! unsigned fakept; X { X int i; X register struct hash *hp; X--- 228,237 ---- X struct hash *hnext; X } *bucket[NBUCKETS]; X X! long hashit(str, really, fakept) X char *str; X char really; X! unsigned int fakept; X { X int i; X register struct hash *hp; X*************** X*** 248,257 **** X for (hp = bucket[i]; hp != 0; hp = hp->hnext) X if (hp->hval == hashval) { X fseek(mesgread, (long) hp->hpt, 0); X! fgetNUL(buf, sizeof buf, mesgread); X! #ifdef DEBUG X fprintf(stderr, "Got (from %ld) %s\n", hp->hpt, buf); X! #endif X if (strcmp(buf, str) == 0) X break; X } X--- 250,259 ---- X for (hp = bucket[i]; hp != 0; hp = hp->hnext) X if (hp->hval == hashval) { X fseek(mesgread, (long) hp->hpt, 0); X! (void)fgetNUL(buf, sizeof buf, mesgread); X! /* X fprintf(stderr, "Got (from %ld) %s\n", hp->hpt, buf); X! */ X if (strcmp(buf, str) == 0) X break; X } X*************** X*** 262,286 **** X hp->hpt = really ? ftell(mesgwrite) : fakept; X if (really) { X fwrite(str, sizeof (char), strlen(str) + 1, mesgwrite); X! fwrite("\n", sizeof (char), 1, mesgwrite); X } X bucket[i] = hp; X } X! #ifdef DEBUG X fprintf(stderr, "%s hashed to %ld at %ld\n", str, hp->hval, hp->hpt); X! #endif X return (hp->hpt); X } X X! #include X! #include X! X! fgetNUL(obuf, rmdr, file) X char *obuf; X register int rmdr; X FILE *file; X { X! register c; X register char *buf = obuf; X X while (--rmdr > 0 && (c = getc(file)) != 0 && c != EOF) X--- 264,285 ---- X hp->hpt = really ? ftell(mesgwrite) : fakept; X if (really) { X fwrite(str, sizeof (char), strlen(str) + 1, mesgwrite); X! fputc('\n', mesgwrite); X } X bucket[i] = hp; X } X! /* X fprintf(stderr, "%s hashed to %ld at %ld\n", str, hp->hval, hp->hpt); X! */ X return (hp->hpt); X } X X! int fgetNUL(obuf, rmdr, file) X char *obuf; X register int rmdr; X FILE *file; X { X! register int c; X register char *buf = obuf; X X while (--rmdr > 0 && (c = getc(file)) != 0 && c != EOF) X*************** X*** 287,291 **** X *buf++ = c; X *buf++ = 0; X getc(file); X! return ((feof(file) || ferror(file)) ? NULL : 1); X } X--- 286,290 ---- X *buf++ = c; X *buf++ = 0; X getc(file); X! return ((feof(file) || ferror(file)) ? 0 : 1); X } X*** ./usr/src/games/battlestar/externs.h.old Sat Oct 26 19:22:19 1996 X--- ./usr/src/games/battlestar/externs.h Mon Sep 21 08:01:38 2026 X*************** X*** 4,17 **** X * the terms of the Berkeley Software License Agreement. X */ X X! /* @(#)externs.h 1.3.1 1996/10/26 */ X X! #include X #include X X! #define PATH(x) "/usr/games/lib/x" X! #define logfile PATH(battlestar.log) X! #define BATTLESTRINGS PATH(battle_strings) X X #define BITS (8 * sizeof (int)) X X--- 4,16 ---- X * the terms of the Berkeley Software License Agreement. X */ X X! /* @(#)externs.h 1.3.2 (2.11BSD) 2026/7/11 */ X X! #include X #include X X! #define logfile "/usr/games/lib/battlestar.log" X! #define BATTLESTRINGS "/usr/games/lib/battle_strings" X X #define BITS (8 * sizeof (int)) X X*************** X*** 191,197 **** X X struct room { X #ifdef pdp11 X! unsigned name; X #else X char *name; X #endif X--- 190,196 ---- X X struct room { X #ifdef pdp11 X! off_t name; X #else X char *name; X #endif X*************** X*** 205,211 **** X #define down link[6] X #define flyhere link[7] X #ifdef pdp11 X! unsigned desc; X #else X char *desc; X #endif X--- 204,210 ---- X #define down link[6] X #define flyhere link[7] X #ifdef pdp11 X! off_t desc; X #else X char *desc; X #endif X*** ./usr/src/games/battlestar/room.c.old Sat Dec 27 09:09:48 2025 X--- ./usr/src/games/battlestar/room.c Sat Jul 11 22:10:20 2026 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)room.c 1.4 (2.11BSD) 2025/12/27"; X #endif X X #include "externs.h" X--- 5,11 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)room.c 1.5 (2.11BSD) 2026/7/11"; X #endif X X #include "externs.h" X*************** X*** 26,37 **** X if (desc < 0) X desc = open(BATTLESTRINGS, O_RDONLY, 0666); X X! lseek(desc, (off_t) location[position].name, L_SET); X read(desc, &buf, sizeof(buf)); X printf("\n\t%s\n", &buf); X if (beenthere[position] < 3) { X compass = NORTH; X! lseek(desc, (off_t) location[position].desc, L_SET); X read(desc, &buf, sizeof(buf)); X for (p = buf; c = *p++;) X if (c != '-' && c != '*' && c != '+') X--- 26,37 ---- X if (desc < 0) X desc = open(BATTLESTRINGS, O_RDONLY, 0666); X X! lseek(desc, location[position].name, L_SET); X read(desc, &buf, sizeof(buf)); X printf("\n\t%s\n", &buf); X if (beenthere[position] < 3) { X compass = NORTH; X! lseek(desc, location[position].desc, L_SET); X read(desc, &buf, sizeof(buf)); X for (p = buf; c = *p++;) X if (c != '-' && c != '*' && c != '+') X*** ./usr/src/games/battlestar/init.c.old Tue Sep 22 02:47:45 2026 X--- ./usr/src/games/battlestar/init.c Tue Sep 22 02:48:29 2026 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && !defined(pdp11) X! static char sccsid[] = "@(#)init.c 1.3.1 1996/10/26"; X #endif X X #include "externs.h" X--- 5,11 ---- X */ X X #if !defined(lint) && !defined(pdp11) X! static char sccsid[] = "@(#)init.c 1.3.2 2026/9/22"; X #endif X X #include "externs.h" X*************** X*** 15,21 **** X char startup; X { X register struct objs *p; X! int die(); X X puts("Version 4.2, fall 1984."); X puts("First Adventure game written by His Lordship, the honorable"); X--- 15,21 ---- X char startup; X { X register struct objs *p; X! void die(); X X puts("Version 4.2, fall 1984."); X puts("First Adventure game written by His Lordship, the honorable"); X*** ./usr/src/games/battlestar/fly.c.old Fri Jul 31 22:48:09 1987 X--- ./usr/src/games/battlestar/fly.c Tue Sep 22 02:51:16 2026 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && !defined(pdp11) X! static char sccsid[] = "@(#)fly.c 1.3 4/24/85"; X #endif X X #include "externs.h" X--- 5,11 ---- X */ X X #if !defined(lint) && !defined(pdp11) X! static char sccsid[] = "@(#)fly.c 1.4 (2.11BSD) 2026/9/22"; X #endif X X #include "externs.h" X*************** X*** 21,28 **** X char destroyed; X int clock = 120; /* time for all the flights in the game */ X char cross = 0; X! int (*oldsig)(); X X succumb() X { X switch (oldsig) { X--- 21,29 ---- X char destroyed; X int clock = 120; /* time for all the flights in the game */ X char cross = 0; X! sig_t oldsig; X X+ void X succumb() X { X switch (oldsig) { X*************** X*** 33,45 **** X break; X default: X endfly(); X! (*oldsig)(); X } X } X X visual() X { X! int moveenemy(); X X destroyed = 0; X savetty(); X--- 34,46 ---- X break; X default: X endfly(); X! (*oldsig)(0); X } X } X X visual() X { X! void moveenemy(); X X destroyed = 0; X savetty(); X*************** X*** 209,214 **** X--- 210,216 ---- X alarm(1); X } X X+ void X moveenemy() X { X double d; X*** ./usr/src/games/monop/Makefile.old Mon Dec 8 16:05:57 2025 X--- ./usr/src/games/monop/Makefile Thu Aug 27 15:47:06 2026 X*************** X*** 1,4 **** X! # Makefile 2.0 (2.11BSD) 2025/11/25 X X DATFILES=brd.dat mon.dat prop.dat X CFILES= monop.c cards.c execute.c getinp.c houses.c jail.c misc.c morg.c \ X--- 1,4 ---- X! # Makefile 2.1 (2.11BSD) 2026/7/11 X X DATFILES=brd.dat mon.dat prop.dat X CFILES= monop.c cards.c execute.c getinp.c houses.c jail.c misc.c morg.c \ X*************** X*** 5,22 **** X print.c prop.c rent.c roll.c spec.c strcmp.c trade.c X OBJS= monop.o cards.o execute.o getinp.o houses.o jail.o misc.o morg.o \ X print.o prop.o rent.o roll.o spec.o strcmp.o trade.o strings.o X- HEADERS=monop.h deck.h X BINDIR= /usr/games X LIBDIR= /usr/games/lib X- LIB= X LDFLAGS= -i X CFLAGS= -O -w X DAT= brd.dat monop.dat prop.dat X CC= cc X XSTR= xstr X- ED= ed X- AS= as X- RM= rm -f X CTAGS= ctags X X # X--- 5,17 ---- X*************** X*** 27,50 **** X ${CC} -c ${CFLAGS} x.c X mv x.o $*.o X X! it: monop cards.pck X X monop: ${OBJS} X! ${CC} -o monop ${LDFLAGS} ${OBJS} ${LIB} X X install: monop cards.pck X! ${RM} ${BINDIR}/monop ${LIBDIR}/cards.pck X install -c -s -m 755 monop ${BINDIR} X mv cards.pck ${LIBDIR} X X- new: clean ctags monop X- X strings.o: strings X ${XSTR} X! ${CC} -S xs.c X! ${ED} - < :rofix xs.s X! ${AS} -o strings.o xs.s X! ${RM} xs.s xs.c X X monop.o: ${DATFILES} monop.def X ${CC} -E ${CFLAGS} monop.c | ${XSTR} -c - X--- 22,41 ---- X ${CC} -c ${CFLAGS} x.c X mv x.o $*.o X X! all: monop cards.pck X X monop: ${OBJS} X! ${CC} -o monop ${LDFLAGS} ${OBJS} X X install: monop cards.pck X! rm -f ${BINDIR}/monop ${LIBDIR}/cards.pck X install -c -s -m 755 monop ${BINDIR} X mv cards.pck ${LIBDIR} X X strings.o: strings X ${XSTR} X! ${CC} -c -o strings.o xs.c X! rm -f xs.c X X monop.o: ${DATFILES} monop.def X ${CC} -E ${CFLAGS} monop.c | ${XSTR} -c - X*************** X*** 56,64 **** X ${CC} -c ${CFLAGS} x.c X mv x.o cards.o X X- newone: X- ${CC} ${LDFLAGS} -o monop ${CFLAGS} ${CFILES} ${LIB} X- X ctags: X ${CTAGS} ${CFILES} monop.h deck.h monop.def initdeck.c X X--- 47,52 ---- X*************** X*** 66,83 **** X ./initdeck X X initdeck: initdeck.c deck.h X! ${CC} -o initdeck ${CFLAGS} initdeck.c ${LIB} X X- monop.tar: X- tar crvf monop.tar ${CFILES} ${DATFILES} ${HEADERS} :rofix Makefile cards.inp initdeck.c monop.def monop.ext X- X clean: X! ${RM} ${OBJS} monop core tags x.c x.o monop.tar initdeck cards.pck errs X! cp /dev/null strings X! X! printall: X! -/usr/bin/eecs/pr monop.h deck.h monop.def monop.ext ${CFILES} ${DATFILES} | /usr/bin/lpr X! -/usr/bin/lpq X! X! lint: X! lint ${CFILES} > lint.out ; X--- 54,60 ---- X ./initdeck X X initdeck: initdeck.c deck.h X! ${CC} -o initdeck ${CFLAGS} initdeck.c X X clean: X! rm -f ${OBJS} monop tags x.c x.o monop.tar initdeck cards.pck errs strings X*** ./usr/src/games/monop/monop.c.old Wed Aug 26 00:59:48 1987 X--- ./usr/src/games/monop/monop.c Wed Aug 19 16:34:55 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "monop.c 1.2 (2.11BSD) 2026/8/19"; X+ #endif X+ X # include "monop.def" X X /* X*************** X*** 70,77 **** X else X printf("\"done\" is a reserved word. Please try again\n"); X for (i = 0; i < num_play; i++) X! cfree(play[i].name); X! cfree(play); X goto blew_it; X } X } X--- 74,81 ---- X else X printf("\"done\" is a reserved word. Please try again\n"); X for (i = 0; i < num_play; i++) X! free(play[i].name); X! free(play); X goto blew_it; X } X } X*** ./usr/src/games/monop/prop.c.old Tue Jun 8 21:37:15 1982 X--- ./usr/src/games/monop/prop.c Wed Aug 19 16:35:56 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "prop.c 4.1 (2.11BSD) 2026/8/19"; X+ #endif X+ X # include "monop.ext" X X /* X*************** X*** 31,37 **** X last_tp = NULL; X for (tp = *head; tp && value(tp->sqr) < val; tp = tp->next) X if (val == value(tp->sqr)) { X! cfree(op); X return; X } X else X--- 35,41 ---- X last_tp = NULL; X for (tp = *head; tp && value(tp->sqr) < val; tp = tp->next) X if (val == value(tp->sqr)) { X! free(op); X return; X } X else X*************** X*** 76,82 **** X *head = op->next; X else { X last_op->next = op->next; X! cfree(op); X } X } X /* X--- 80,86 ---- X *head = op->next; X else { X last_op->next = op->next; X! free(op); X } X } X /* X*** ./usr/src/games/warp/intrp.c.old Thu Oct 2 22:41:07 1997 X--- ./usr/src/games/warp/intrp.c Tue Jan 27 10:52:40 2026 X*************** X*** 349,361 **** X X char * X dointerp(dest,destsize,pattern,stoppers) X! Reg1 char *dest; X! Reg2 int destsize; X! Reg3 char *pattern; X! char *stoppers; X { X! Reg4 char *s; X! Reg5 int i; X char scrbuf[512]; X bool upper = FALSE; X bool lastcomp = FALSE; X--- 349,361 ---- X X char * X dointerp(dest,destsize,pattern,stoppers) X! char *dest; X! int destsize; X! register char *pattern; X! char *stoppers; X { X! register char *s; X! int i; X char scrbuf[512]; X bool upper = FALSE; X bool lastcomp = FALSE; X*************** X*** 455,461 **** X pattern = dointerp(scrbuf,(sizeof scrbuf),pattern+1,"\""); X fputs(scrbuf,stdout); X resetty(); X! gets(scrbuf); X crmode(); X raw(); X noecho(); X--- 455,463 ---- X pattern = dointerp(scrbuf,(sizeof scrbuf),pattern+1,"\""); X fputs(scrbuf,stdout); X resetty(); X! fgets(scrbuf, sizeof (scrbuf), stdin); X! s = index(scrbuf, '\n'); X! if (s) *s = '\0'; X crmode(); X raw(); X noecho(); X*** ./usr/src/games/warp/init.c.old Fri Jun 19 12:07:38 1987 X--- ./usr/src/games/warp/init.c Mon May 11 09:33:12 2026 X*************** X*** 1,4 **** X! /* $Header: init.c,v 7.0.1.4 86/12/12 16:58:03 lwall Exp $ */ X X /* $Log: init.c,v $ X * Revision 7.0.1.4 86/12/12 16:58:03 lwall X--- 1,4 ---- X! /* $Header: init.c,v 7.0.1.5 (2.11BSD) 2026/5/11 16:58:03 sms Exp $ */ X X /* $Log: init.c,v $ X * Revision 7.0.1.4 86/12/12 16:58:03 lwall X*************** X*** 245,255 **** X x = rand_mod(XSIZE); /* pick from 0..39, uniform */ X break; X case 1: case 2: case 3: X- #ifndef lint X x = (int)((((double)(myrand()-HALFRAND)) * X ((double)(myrand()-HALFRAND))/RANDRAND) X * 20.0) + xoff; /* pick from -20..20, clumped */ X- #endif X break; X case 4: X if (fscanf(mapfp,"%d %d\n",&ypred,&xpred) == EOF) X--- 245,253 ---- X*************** X*** 270,296 **** X y = rand_mod(YSIZE); X break; X case 1: X- #ifndef lint X y = (int)((((double)(myrand()-HALFRAND)) * X ((double)(myrand()-HALFRAND))/RANDRAND) X * 12.0) + yoff; /* pick from -12..12, clumped */ X- #endif X break; X case 2: X- #ifndef lint X y = (int)((((double)(myrand()-HALFRAND)) * X ((double)(myrand()-HALFRAND))/RANDRAND) X * 12.0) + yoff + x*YSIZE/XSIZE; X /* clumped & skewed */ X- #endif X break; X case 3: X- #ifndef lint X y = (int)((((double)(myrand()-HALFRAND)) * X ((double)(myrand()-HALFRAND))/RANDRAND) X * 12.0) + yoff - x*YSIZE/XSIZE; X /* clumped & skewed */ X- #endif X break; X case 4: X y = ypred + yoff; X--- 268,288 ---- X*************** X*** 300,308 **** X break; X case 6: X y += rand_mod(3) - 1; X- #ifdef lint X- walksplit = walksplit; X- #endif X if (!rand_mod(walksplit)) { X y = rand_mod(YSIZE); X x = rand_mod(XSIZE); X--- 292,297 ---- X*************** X*** 450,460 **** X e = (ENTBOUNDARY - possiblescore) / 5; X else X e = 250 + (sm50-1) * 30 * 20 / numenemies+1; X- #ifndef lint X e = exdis((int)e) + e - exdis((int)e); X obj = make_object(Enemy,ch,y,x,0,0, X e + rand_mod(super*200+2) + 10000*massacre,e/4,&root); X- #endif X e /= 4; X switch (ch) { X case 'K': X--- 439,447 ---- X*************** X*** 483,491 **** X y = rand_mod(YSIZE); X } while (occupant[y][x]); X e = 250 + (sm50-1) * 30 * 20 / numenemies+1; X- #ifndef lint X e = exdis((int)e) + e - exdis((int)e); X- #endif X { X static char let[] = "QWYUISDHJLZVMFFFFFFFFF"; X X--- 470,476 ---- X*** ./usr/src/games/warp/sig.c.old Sun Feb 13 13:45:48 2000 X--- ./usr/src/games/warp/sig.c Mon May 11 09:34:12 2026 X*************** X*** 1,4 **** X! /* $Header: /usr/src/games/warp/RCS/sig.c,v 1.1 87/07/03 01:47:11 games Exp $ */ X X /* $Log: sig.c,v $ X * Revision 7.0.1.2 99/10/24 X--- 1,4 ---- X! /* $Header: /usr/src/games/warp/RCS/sig.c,v 1.2 (2.11BSD) 2026/5/11 01:47:11 sms Exp $ */ X X /* $Log: sig.c,v $ X * Revision 7.0.1.2 99/10/24 X*************** X*** 28,36 **** X void X sig_init() X { X- #ifdef lint X- ; X- #else X sigignore(SIGINT); /* for inquiry of existence via kill call */ X #ifdef SIGTTOU X sigignore(SIGTTOU); X--- 28,33 ---- X*************** X*** 56,62 **** X sigset(SIGTSTP, stop_catcher); X sigset(SIGSTOP, stop_catcher); X #endif X- #endif /* lint */ X } X X #ifdef SIGTSTP X--- 53,58 ---- X*************** X*** 63,71 **** X void X cont_catcher() X { X- #ifndef lint X sigset(SIGCONT,cont_catcher); X- #endif X savetty(); X crmode(); X raw(); X--- 59,65 ---- X*************** X*** 153,161 **** X #endif X X #ifdef SIGTTOU X- #ifndef lint X sigignore(SIGTTOU); X- #endif /* lint */ X #endif X #ifdef DEBUGGING X if (debug) { X--- 147,153 ---- X*** ./usr/src/games/warp/object.c.old Fri Jun 19 12:09:23 1987 X--- ./usr/src/games/warp/object.c Mon May 11 09:35:57 2026 X*************** X*** 1,9 **** X! /* $Header: object.c,v 7.0 86/10/08 15:12:55 lwall Exp $ */ X X /* $Log: object.c,v $ X * Revision 7.0 86/10/08 15:12:55 lwall X * Split into separate files. Added amoebas and pirates. X- * X */ X X #include "EXTERN.h" X--- 1,8 ---- X! /* $Header: object.c,v 7.1 (2.11BSD) 2026/5/11 15:12:55 sms Exp $ */ X X /* $Log: object.c,v $ X * Revision 7.0 86/10/08 15:12:55 lwall X * Split into separate files. Added amoebas and pirates. X */ X X #include "EXTERN.h" X*************** X*** 11,22 **** X #include "INTERN.h" X #include "object.h" X X- void X- object_init() X- { X- ; X- } X- X OBJECT * X make_object(typ, img, py, px, vy, vx, energ, mas, where) X char typ; X--- 10,15 ---- X*************** X*** 28,38 **** X Reg1 OBJECT *obj; X X if (free_root.next == &free_root) X- #ifndef lint X obj = (OBJECT *) malloc(sizeof root); X- #else X- obj = Null(OBJECT*); X- #endif X else { X obj = free_root.next; X free_root.next = obj->next; X--- 21,27 ---- X*** ./usr/src/games/warp/warp.c.old Fri Jun 19 12:08:29 1987 X--- ./usr/src/games/warp/warp.c Mon May 11 09:42:56 2026 X*************** X*** 1,4 **** X! char rcsid[] = "@(#)$Header: warp.c,v 7.0.1.3 86/12/12 17:07:44 lwall Exp $"; X X /* warp -- a real-time space war program X * author: Larry Wall X--- 1,4 ---- X! char rcsid[] = "@(#)$Header: warp.c,v 7.0.1.4 (2.11BSD) 2026/5/11 17:07:44 sms Exp $"; X X /* warp -- a real-time space war program X * author: Larry Wall X*************** X*** 160,174 **** X #endif X rand_ok: X X- #ifdef lint /* to suppress "defined but never used" */ X- # ifdef SIGTSTP X- (void)stop_catcher(); X- # endif X- # ifdef SIGCONT X- (void)cont_catcher(); X- # endif X- #endif X- X while (--argc > 0 && (*++argv)[0] == '-') X for (s = argv[0]+1; *s != '\0'; s++) X switch (*s) { X--- 160,165 ---- X*************** X*** 291,301 **** X } X bang_init(); X move_init(); X- object_init(); X play_init(); X them_init(); X us_init(); X- util_init(); X weapon_init(); X X tcbuf = malloc(1024); X--- 282,290 ---- X*** ./usr/src/games/warp/score.c.old Sat Jan 21 21:09:41 1995 X--- ./usr/src/games/warp/score.c Tue Jul 21 20:13:40 2026 X*************** X*** 1,4 **** X! /* $Header: /usr/src/games/warp/RCS/score.c,v 1.1.1 95/01/21 02:13:26 games Exp $ */ X X /* $Log: score.c,v $ X * Revision 7.0.1.2a 87/07/03 02:13:26 games X--- 1,4 ---- X! /* $Header: /usr/src/games/warp/RCS/score.c,v 1.1.2 (2.11BSD) 2026/5/11 02:13:26 sms Exp $ */ X X /* $Log: score.c,v $ X * Revision 7.0.1.2a 87/07/03 02:13:26 games X*************** X*** 12,18 **** X * X * Revision 7.0 86/10/08 15:13:14 lwall X * Split into separate files. Added amoebas and pirates. X- * X */ X X #include "EXTERN.h" X--- 12,17 ---- X*************** X*** 27,32 **** X--- 26,33 ---- X #include "weapon.h" X #include "INTERN.h" X #include "score.h" X+ #include X+ #include X X void X score_init() X*************** X*** 239,247 **** X printf("WHO SCORE DF CDF E B WV FLAGS\r\n"); X resetty(); X Sprintf(spbuf,"/bin/cat %ssave.*",SAVEDIR); X- #ifndef lint X execl("/bin/sh", "sh", "-c", spbuf, 0); X- #endif X finalize(1); X } X X--- 240,246 ---- X*************** X*** 378,387 **** X long tmp; X FILE *mapfp; X int row; X- double pow(); X- #ifndef lint X- double atan2(); X- #endif X X clear(); X if (curscore > possiblescore) X--- 377,382 ---- X*************** X*** 400,411 **** X power += (350.0 - (double)inumstars) * ((double)inumenemies - 5.0); X if (inumstars > 850 && inumenemies > 2) X power += ((double)inumstars - 850.0) * ((double)inumenemies - 2.0); X- #ifndef lint X effectscore = ((double)curscore / possiblescore) * X atan2(power, (double) timer + 1.0) / pi_over_2; X- #else X- effectscore = pi_over_2; X- #endif X if (inumstars) X starscore = (double) numstars / (double) inumstars; X else X--- 395,402 ---- X*************** X*** 427,436 **** X Sprintf(spbuf,"Star save ratio: %1.8f (%d/%d)", X starscore, numstars, inumstars); X mvaddstr( 6,5, spbuf); X- #ifndef lint X bonuses += tmp = (long) (((double)curscore / possiblescore) * X (starscore*starscore) * smarts * 20); X- #endif X Sprintf(spbuf, "%6ld", tmp); X mvaddstr( 6, 68, spbuf); X row = 7; X--- 418,425 ---- X*************** X*** 535,546 **** X Reg1 FILE *logfd; X Reg2 FILE *outfd; X Reg3 int i; X! long nowtime, time(); X char *scoreboard; X X for (i=0; link(LOGFILE, LOCKFILE) == -1 && i<10; i++) X sleep(1); X! nowtime = time((long *)0); X strcpy(cdate,ctime(&nowtime)); X if ((logfd = fopen(LOGFILE,"a")) != NULL) { X fprintf(logfd, X--- 524,535 ---- X Reg1 FILE *logfd; X Reg2 FILE *outfd; X Reg3 int i; X! long nowtime; X char *scoreboard; X X for (i=0; link(LOGFILE, LOCKFILE) == -1 && i<10; i++) X sleep(1); X! nowtime = time((time_t *)0); X strcpy(cdate,ctime(&nowtime)); X if ((logfd = fopen(LOGFILE,"a")) != NULL) { X fprintf(logfd, X*** ./usr/src/games/warp/term.c.old Fri Jun 19 12:06:27 1987 X--- ./usr/src/games/warp/term.c Mon May 11 09:41:35 2026 X*************** X*** 1,4 **** X! /* $Header: term.c,v 7.0.1.2 86/12/12 17:04:09 lwall Exp $ */ X X /* $Log: term.c,v $ X * Revision 7.0.1.2 86/12/12 17:04:09 lwall X--- 1,4 ---- X! /* $Header: term.c,v 7.0.1.3 (2.11BSD) 2026/5/11 17:04:09 sms Exp $ */ X X /* $Log: term.c,v $ X * Revision 7.0.1.2 86/12/12 17:04:09 lwall X*************** X*** 377,387 **** X Reg1 int i; X Reg2 KEYMAP *map; X X- #ifndef lint X map = (KEYMAP*)safemalloc(sizeof(KEYMAP)); X- #else X- map = Null(KEYMAP*); X- #endif /* lint */ X for (i=127; i>=0; --i) { X map->km_ptr[i].km_km = Null(KEYMAP*); X map->km_type[i] = KM_NOTHIN; X--- 377,383 ---- X*************** X*** 607,615 **** X char *addr; X int size; /* ignored for now */ X { X- #ifdef lint X- size = size; X- #endif X if (nextout != nextin) { X *addr = circlebuf[nextout++]; X nextout %= PUSHSIZE; X--- 603,608 ---- X*** ./usr/src/games/warp/util.c.old Fri Jun 19 12:06:30 1987 X--- ./usr/src/games/warp/util.c Mon May 11 09:43:22 2026 X*************** X*** 1,4 **** X! /* $Header: util.c,v 7.0.1.2 86/10/20 12:07:46 lwall Exp $ */ X X /* $Log: util.c,v $ X * Revision 7.0.1.2 86/10/20 12:07:46 lwall X--- 1,4 ---- X! /* $Header: util.c,v 7.0.1.3 (2.11BSD) 2026/5/11 12:07:46 sms Exp $ */ X X /* $Log: util.c,v $ X * Revision 7.0.1.2 86/10/20 12:07:46 lwall X*************** X*** 22,41 **** X #include "util.h" X X void X- util_init() X- { X- ; X- } X- X- void X movc3(len,src,dest) X- #ifdef vax X- char *dest, *src; X- int len; X- { X- asm("movc3 4(ap),*8(ap),*12(ap)"); X- } X- #else X Reg1 char *dest; X Reg2 char *src; X Reg3 int len; X--- 22,28 ---- X*************** X*** 53,59 **** X } X } X } X- #endif X X void X no_can_do(what) X--- 40,45 ---- X*************** X*** 72,82 **** X double log(); X X temp = (double) maxnum; X- #ifndef lint X temp2 = (double) myrand(); X- #else X- temp2 = 0.0; X- #endif X #if RANDBITS == 15 X return (int) exp(temp2 * log(temp)/0x7fff); X #else X--- 58,64 ---- X*** ./usr/src/games/hangman/main.c.old Fri Jan 7 14:01:32 1983 X--- ./usr/src/games/hangman/main.c Tue Sep 22 08:24:06 2026 X*************** X*** 1,3 **** X--- 1,5 ---- X+ /* @(#)main.c 1.1 (2.11BSD) 2022/9/22 */ X+ X # include "hangman.h" X X /* X*************** X*** 20,25 **** X--- 22,28 ---- X * die: X * Die properly. X */ X+ void X die() X { X mvcur(0, COLS - 1, LINES - 1, 0); X*** ./usr/src/games/hangman/hangman.h.old Sun Jul 3 00:32:12 1983 X--- ./usr/src/games/hangman/hangman.h Tue Sep 22 08:25:51 2026 X*************** X*** 1,3 **** X--- 1,5 ---- X+ /* @(#)hangman.h 1.1 (2.11BSD) 2026/9/22 */ X+ X # include X # include X # include X*************** X*** 41,46 **** X X extern off_t Dict_size; X X! int die(); X X off_t abs(); X--- 43,48 ---- X X extern off_t Dict_size; X X! void die(); X X off_t abs(); X*** ./usr/src/games/boggle/comp.c.old Thu May 30 21:41:13 1985 X--- ./usr/src/games/boggle/comp.c Mon May 11 07:35:38 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)comp.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X #include X #define MAX ' ' X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)comp.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include X #define MAX ' ' X*** ./usr/src/games/boggle/boggle.c.old Thu Oct 2 22:56:50 1997 X--- ./usr/src/games/boggle/boggle.c Tue Sep 22 02:53:36 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)boggle.c 5.1.1 (2.11BSD) 1997/10/2"; X #endif X X #include X--- 9,15 ---- X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)boggle.c 5.1.2 (2.11BSD) 2026/9/17"; X #endif X X #include X*************** X*** 49,55 **** X int column; X int *timept; X int timeint[] = {60,60,50,7,1,1,1,0}; X! long timein; X struct sgttyb origttyb, tempttyb; X int ctlecho = 0; X int lctlech = LCTLECH; X--- 49,55 ---- X int column; X int *timept; X int timeint[] = {60,60,50,7,1,1,1,0}; X! time_t timein; X struct sgttyb origttyb, tempttyb; X int ctlecho = 0; X int lctlech = LCTLECH; X*************** X*** 104,109 **** X--- 104,110 ---- X } X } X X+ void X timeout () X { X if (*timept > 0) { X*************** X*** 113,118 **** X--- 114,120 ---- X putchar('\007'); X } X X+ void X interrupt () X { X signal(SIGINT, interrupt); X*************** X*** 515,521 **** X if (setjmp(env) != 0) X goodbye(0); X signal (SIGINT, interrupt); X! timein = time(0L); X if (argv[0][0] != 'a' && (logfile = open("/usr/games/lib/boglog", 1)) >= 0) { X p = &logbuff[5]; X q = getlogin(); X--- 517,523 ---- X if (setjmp(env) != 0) X goodbye(0); X signal (SIGINT, interrupt); X! timein = time((time_t *)0); X if (argv[0][0] != 'a' && (logfile = open("/usr/games/lib/boglog", 1)) >= 0) { X p = &logbuff[5]; X q = getlogin(); X*** ./usr/src/games/mille/varpush.c.old Sat Jan 11 14:47:39 1986 X--- ./usr/src/games/mille/varpush.c Tue Jan 27 15:09:33 2026 X*************** X*** 1,7 **** X # include "mille.h" X X /* X! * @(#)varpush.c 1.1 (Berkeley) 4/1/82 X */ X X int read(), write(); X--- 1,8 ---- X # include "mille.h" X+ #include X X /* X! * @(#)varpush.c 1.2 (2.11BSD) 2026/1/27 X */ X X int read(), write(); X*************** X*** 11,18 **** X * channel file. func() is either read or write. X */ X varpush(file, func) X! reg int file; X! reg int (*func)(); { X X int temp; X X--- 12,19 ---- X * channel file. func() is either read or write. X */ X varpush(file, func) X! register int file; X! register int (*func)(); { X X int temp; X X*************** X*** 34,42 **** X Topcard = &Deck[temp]; X if (Debug) { X char buf[80]; X over: X printf("Debug file:"); X! gets(buf); X if ((outf = fopen(buf, "w")) == NULL) { X perror(buf); X goto over; X--- 35,47 ---- X Topcard = &Deck[temp]; X if (Debug) { X char buf[80]; X+ register char *cp; X over: X printf("Debug file:"); X! buf[0] = '\0'; X! fgets(buf, sizeof buf, stdin); X! cp = index(buf, '\n'); X! if (cp) *cp = '\0'; X if ((outf = fopen(buf, "w")) == NULL) { X perror(buf); X goto over; X*** ./usr/src/games/mille/mille.c.old Sat Dec 29 17:55:51 2018 X--- ./usr/src/games/mille/mille.c Tue Sep 22 08:32:29 2026 X*************** X*** 4,13 **** X #include X X /* X! * @(#)mille.c 1.4 (2.11BSD) 2018/12/29 X */ X X! int rub(); X X char _sobuf[BUFSIZ]; X X--- 4,13 ---- X #include X X /* X! * @(#)mille.c 1.5 (2.11BSD) 2026/9/22 X */ X X! void rub(); X X char _sobuf[BUFSIZ]; X X*************** X*** 102,107 **** X--- 102,108 ---- X /* X * Routine to trap rubouts, and make sure they really want to quit. X */ X+ void X rub() { X X signal(SIGINT, SIG_IGN); X*** ./usr/src/games/quiz/quiz.c.old Sat Dec 27 09:11:26 2025 X--- ./usr/src/games/quiz/quiz.c Tue Sep 22 08:38:10 2026 X*************** X*** 1,6 **** X X- static char sccsid[] = " quiz.c 4.3 (2.11BSD) 2025/12/25"; X- X #include X #include X #define NF 10 X--- 1,5 ---- X+ /* quiz.c 4.4 (2.11BSD) 2026/9/22 */ X X #include X #include X #define NF 10 X*************** X*** 307,313 **** X char *info; X int tvec[2]; X char *t; X! extern done(); X int count; X info = "/usr/games/lib/quiz.k/index"; X time(tvec); X--- 306,312 ---- X char *info; X int tvec[2]; X char *t; X! extern void done(); X int count; X info = "/usr/games/lib/quiz.k/index"; X time(tvec); X*************** X*** 420,425 **** X--- 419,425 ---- X return(ptr); X } X X+ void X done() X { X printf("\nRights %d, wrongs %d, ", rights, wrongs); X*** ./usr/src/games/cribbage/score.c.old Thu May 30 21:45:54 1985 X--- ./usr/src/games/cribbage/score.c Mon May 11 07:38:14 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)score.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X #include X #include "deck.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)score.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include X #include "deck.h" X*** ./usr/src/games/cribbage/extern.c.old Thu May 30 21:44:59 1985 X--- ./usr/src/games/cribbage/extern.c Mon May 11 07:38:33 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)extern.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include X # include "deck.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)extern.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X # include X # include "deck.h" X*** ./usr/src/games/cribbage/cards.c.old Thu Dec 25 23:28:46 2025 X--- ./usr/src/games/cribbage/cards.c Tue Jul 21 20:20:49 2026 X*************** X*** 5,29 **** X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)cards.c 5.2 (2.11BSD) 2025/12/25"; X #endif X X #include X #include "deck.h" X X- X /* X * initialize a deck of cards to contain one of each type X */ X X makedeck( d ) X- X CARD d[]; X { X register int i, j, k; X- long time(); X X! i = time( (long *) 0 ); X i = ( (i&0xff) << 8 ) | ( (i >> 8)&0xff ) | 1; X srand( i ); X k = 0; X--- 5,27 ---- X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)cards.c 5.3 (2.11BSD) 2026/7/21"; X #endif X X #include X+ #include X #include "deck.h" X X /* X * initialize a deck of cards to contain one of each type X */ X X makedeck( d ) X CARD d[]; X { X register int i, j, k; X X! i = time((time_t *) 0); X i = ( (i&0xff) << 8 ) | ( (i >> 8)&0xff ) | 1; X srand( i ); X k = 0; X*************** X*** 35,42 **** X } X } X X- X- X /* X * given a deck of cards, shuffle it -- i.e. randomize it X * see Knuth, vol. 2, page 125 X--- 33,38 ---- X*************** X*** 43,49 **** X */ X X shuffle( d ) X- X CARD d[]; X { X register int j, k; X--- 39,44 ---- X*************** X*** 57,83 **** X } X } X X- X- X /* X * return true if the two cards are equal... X */ X X eq( a, b ) X- X CARD a, b; X { X return( ( a.rank == b.rank ) && ( a.suit == b.suit ) ); X } X X- X- X /* X * isone returns TRUE if a is in the set of cards b X */ X X isone( a, b, n ) X- X CARD a, b[]; X int n; X { X--- 52,72 ---- X*************** X*** 89,102 **** X return( FALSE ); X } X X- X- X /* X * remove the card a from the deck d of n cards X */ X X cremove( a, d, n ) X- X CARD a, d[]; X int n; X { X--- 78,88 ---- X*************** X*** 109,116 **** X if( j < n ) d[j].suit = d[j].rank = EMPTY; X } X X- X- X /* X * sorthand: X * Sort a hand of n cards X--- 95,100 ---- X*************** X*** 131,134 **** X *cp = c; X } X } X- X--- 115,117 ---- X*** ./usr/src/games/cribbage/crib.c.old Thu Dec 25 23:38:51 2025 X--- ./usr/src/games/cribbage/crib.c Tue Sep 22 02:55:34 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)crib.c 5.2 (2.11BSD) 2025/12/25"; X #endif X X # include X--- 9,15 ---- X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)crib.c 5.3 (2.11BSD) 2026/9/22"; X #endif X X # include X*************** X*** 34,40 **** X FILE *f; X FILE *fopen(); X char *getline(); X! int bye(); X X while (--argc > 0) { X if ((*++argv)[0] != '-') { X--- 34,40 ---- X FILE *f; X FILE *fopen(); X char *getline(); X! void bye(); X X while (--argc > 0) { X if ((*++argv)[0] != '-') { X*** ./usr/src/games/cribbage/io.c.old Thu Dec 25 23:58:57 2025 X--- ./usr/src/games/cribbage/io.c Tue Sep 22 02:56:52 2026 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)io.c 5.2 (2.11BSD) 2025/12/25"; X #endif X X # include X--- 5,11 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)io.c 5.3 (2.11BSD) 2026/9/22"; X #endif X X # include X*************** X*** 564,569 **** X--- 564,570 ---- X * bye: X * Leave the program, cleaning things up as we go. X */ X+ void X bye() X { X signal(SIGINT, SIG_IGN); X*** ./usr/src/games/robots/extern.c.old Thu May 30 20:33:25 1985 X--- ./usr/src/games/robots/extern.c Tue May 12 08:49:01 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)extern.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "robots.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)extern.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "robots.h" X X*** ./usr/src/games/robots/flush_in.c.old Thu May 30 20:37:24 1985 X--- ./usr/src/games/robots/flush_in.c Tue May 12 08:49:01 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)flush_in.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)flush_in.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include X X*** ./usr/src/games/robots/init_field.c.old Thu May 30 20:33:57 1985 X--- ./usr/src/games/robots/init_field.c Tue May 12 08:49:01 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)init_field.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "robots.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)init_field.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "robots.h" X X*** ./usr/src/games/robots/main.c.old Thu May 30 20:34:14 1985 X--- ./usr/src/games/robots/main.c Tue Sep 22 08:39:04 2026 X*************** X*** 4,22 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! char copyright[] = X! "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X! All rights reserved.\n"; X! #endif not lint X X- #ifndef lint X- static char sccsid[] = "@(#)main.c 5.1 (Berkeley) 5/30/85"; X- #endif not lint X- X # include "robots.h" X # include X # include X X main(ac, av) X int ac; X--- 4,17 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)main.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "robots.h" X # include X # include X+ #include X X main(ac, av) X int ac; X*************** X*** 27,33 **** X register bool show_only; X extern char *Scorefile; X extern int Max_per_uid; X- extern char *rindex(); X X show_only = FALSE; X if (ac > 1) { X--- 22,27 ---- X*************** X*** 123,128 **** X--- 117,123 ---- X * quit: X * Leave the program elegantly. X */ X+ void X quit() X { X extern int _putchar(); X*** ./usr/src/games/robots/make_level.c.old Thu May 30 20:34:30 1985 X--- ./usr/src/games/robots/make_level.c Tue May 12 08:49:01 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)make_level.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "robots.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)make_level.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "robots.h" X X*** ./usr/src/games/robots/move.c.old Thu May 30 20:34:49 1985 X--- ./usr/src/games/robots/move.c Tue May 12 08:49:01 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)move.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "robots.h" X # include X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)move.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "robots.h" X # include X*** ./usr/src/games/robots/move_robs.c.old Tue Mar 25 17:35:16 2025 X--- ./usr/src/games/robots/move_robs.c Tue Sep 22 08:41:52 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)move_robs.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "robots.h" X # include X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)move_robs.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "robots.h" X # include X*************** X*** 15,20 **** X--- 15,21 ---- X * move_robots: X * Move the robots around X */ X+ void X move_robots(was_sig) X bool was_sig; X { X*** ./usr/src/games/robots/play_level.c.old Sun Nov 10 18:10:45 1985 X--- ./usr/src/games/robots/play_level.c Tue May 12 08:49:48 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)play_level.c 5.2 (Berkeley) 9/23/85"; X! #endif not lint X X # include "robots.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)play_level.c 5.3 (2.11BSD) 2026/5/12"; X! #endif X X # include "robots.h" X X*** ./usr/src/games/robots/query.c.old Thu May 30 20:35:45 1985 X--- ./usr/src/games/robots/query.c Tue May 12 08:49:02 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)query.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "robots.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)query.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "robots.h" X X*** ./usr/src/games/robots/rnd_pos.c.old Thu May 30 20:35:58 1985 X--- ./usr/src/games/robots/rnd_pos.c Tue May 12 08:49:02 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)rnd_pos.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "robots.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)rnd_pos.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "robots.h" X X*** ./usr/src/games/robots/score.c.old Thu May 30 20:36:18 1985 X--- ./usr/src/games/robots/score.c Tue May 12 08:49:02 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)score.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "robots.h" X # include X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)score.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "robots.h" X # include X*** ./usr/src/games/robots/robots.h.old Thu May 30 20:36:32 1985 X--- ./usr/src/games/robots/robots.h Tue Sep 22 08:41:26 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)robots.h 5.1 (Berkeley) 5/30/85 X */ X X # include X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)robots.h 5.2 (2.11BSD) 2026/9/22 X */ X X # include X*************** X*** 78,83 **** X * functions types X */ X X! int quit(), cmp_sc(), move_robots(); X X COORD *rnd_pos(); X--- 78,84 ---- X * functions types X */ X X! void quit(), move_robots(); X! int cmp_sc(); X X COORD *rnd_pos(); X*** ./usr/src/games/snake/snscore.c.old Thu May 30 10:45:42 1985 X--- ./usr/src/games/snake/snscore.c Mon May 11 07:42:00 2026 X*************** X*** 4,20 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)snscore.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X #include X #include X char *recfile = "/usr/games/lib/snakerawscores"; X #define MAXPLAYERS 256 X X struct passwd *getpwuid(); X- char *malloc(); X X struct player { X short uids; X--- 4,21 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)snscore.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include X #include X+ #include X+ X char *recfile = "/usr/games/lib/snakerawscores"; X #define MAXPLAYERS 256 X X struct passwd *getpwuid(); X X struct player { X short uids; X*** ./usr/src/games/snake/snake.c.old Fri Dec 26 00:00:38 2025 X--- ./usr/src/games/snake/snake.c Tue Sep 22 08:51:27 2026 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)snake.c 5.3 (2.11BSD) 2025/12/25"; X #endif X X /* X--- 5,11 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)snake.c 5.4 (2.11BSD) 2026/7/21"; X #endif X X /* X*************** X*** 21,26 **** X--- 21,27 ---- X X #include "snake.h" X #include X+ #include X X /* X * If CHECKBUSY is defined, the file BUSY must be executable X*************** X*** 86,93 **** X { X int i,k; X int j; X! long time(); X! int stop(); X char stdbuf[BUFSIZ]; X X argcount = argc; X--- 87,93 ---- X { X int i,k; X int j; X! void stop(); X char stdbuf[BUFSIZ]; X X argcount = argc; X*************** X*** 865,872 **** X } X } X X stop(){ X! signal(SIGINT,1); X ll(); X length(moves); X done(); X--- 865,873 ---- X } X } X X+ void X stop(){ X! signal(SIGINT, SIG_IGN); X ll(); X length(moves); X done(); X*************** X*** 900,906 **** X char *msg; X { X FILE *logfile; X! long t; X X if ((logfile=fopen(LOGFILE, "a")) != NULL) { X time(&t); X--- 901,907 ---- X char *msg; X { X FILE *logfile; X! time_t t; X X if ((logfile=fopen(LOGFILE, "a")) != NULL) { X time(&t); X*** ./usr/src/games/snake/move.c.old Fri Dec 26 00:00:21 2025 X--- ./usr/src/games/snake/move.c Tue Sep 22 08:52:27 2026 X*************** X*** 530,536 **** X char *term; X char *xPC; X struct point z; X! int stop(); X X term = getenv("TERM"); X if (term==0) { X--- 530,536 ---- X char *term; X char *xPC; X struct point z; X! void stop(); X X term = getenv("TERM"); X if (term==0) { X*** ./usr/src/games/trek/abandon.c.old Thu May 30 10:47:49 1985 X--- ./usr/src/games/trek/abandon.c Tue May 12 06:47:45 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)abandon.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)abandon.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/attack.c.old Thu May 30 10:48:16 1985 X--- ./usr/src/games/trek/attack.c Tue May 12 06:47:45 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)attack.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)attack.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/autover.c.old Thu May 30 10:48:31 1985 X--- ./usr/src/games/trek/autover.c Tue May 12 06:47:45 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)autover.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)autover.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/capture.c.old Thu May 30 10:48:49 1985 X--- ./usr/src/games/trek/capture.c Tue May 12 06:47:46 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)capture.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)capture.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/cgetc.c.old Thu May 30 10:49:02 1985 X--- ./usr/src/games/trek/cgetc.c Tue May 12 06:47:46 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)cgetc.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cgetc.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include X X*** ./usr/src/games/trek/check_out.c.old Thu May 30 10:49:16 1985 X--- ./usr/src/games/trek/check_out.c Tue May 12 06:47:46 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)check_out.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)check_out.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/checkcond.c.old Thu May 30 10:49:30 1985 X--- ./usr/src/games/trek/checkcond.c Tue May 12 06:47:46 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)checkcond.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)checkcond.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/compkl.c.old Thu May 30 10:49:44 1985 X--- ./usr/src/games/trek/compkl.c Tue May 12 06:47:46 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)compkl.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)compkl.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/computer.c.old Sat Feb 1 16:52:48 1986 X--- ./usr/src/games/trek/computer.c Tue May 12 06:48:37 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)computer.c 4.3 (Berkeley) 1/29/86"; X! #endif not lint X X # include "trek.h" X # include "getpar.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)computer.c 4.4 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X # include "getpar.h" X*** ./usr/src/games/trek/damage.c.old Thu May 30 10:50:51 1985 X--- ./usr/src/games/trek/damage.c Tue May 12 06:47:46 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)damage.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)damage.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/damaged.c.old Thu May 30 10:51:12 1985 X--- ./usr/src/games/trek/damaged.c Tue May 12 06:47:46 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)damaged.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)damaged.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/dcrept.c.old Thu May 30 10:51:29 1985 X--- ./usr/src/games/trek/dcrept.c Tue May 12 06:47:46 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)dcrept.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dcrept.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/destruct.c.old Thu May 30 10:51:46 1985 X--- ./usr/src/games/trek/destruct.c Tue May 12 06:47:46 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)destruct.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)destruct.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/dock.c.old Thu May 30 10:52:01 1985 X--- ./usr/src/games/trek/dock.c Tue May 12 06:47:46 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)dock.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dock.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/dumpgame.c.old Sat Feb 1 16:52:50 1986 X--- ./usr/src/games/trek/dumpgame.c Tue May 12 06:48:43 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)dumpgame.c 4.3 (Berkeley) 1/29/86"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dumpgame.c 4.4 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/dumpme.c.old Thu May 30 10:52:37 1985 X--- ./usr/src/games/trek/dumpme.c Tue May 12 06:47:47 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)dumpme.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dumpme.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/dumpssradio.c.old Thu May 30 10:52:56 1985 X--- ./usr/src/games/trek/dumpssradio.c Tue May 12 06:47:47 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)dumpssradio.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dumpssradio.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/events.c.old Thu May 30 10:53:21 1985 X--- ./usr/src/games/trek/events.c Tue May 12 06:47:47 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)events.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)events.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/externs.c.old Thu May 30 10:53:37 1985 X--- ./usr/src/games/trek/externs.c Tue May 12 06:47:47 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)externs.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)externs.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/getcodi.c.old Thu May 30 10:53:51 1985 X--- ./usr/src/games/trek/getcodi.c Tue May 12 06:47:47 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)getcodi.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "getpar.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)getcodi.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "getpar.h" X X*** ./usr/src/games/trek/getpar.c.old Sat Feb 1 16:52:52 1986 X--- ./usr/src/games/trek/getpar.c Tue May 12 06:48:58 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)getpar.c 4.4 (Berkeley) 1/29/86"; X! #endif not lint X X # include X # include "getpar.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)getpar.c 4.5 (2.11BSD) 2026/5/12"; X! #endif X X # include X # include "getpar.h" X*** ./usr/src/games/trek/help.c.old Thu May 30 10:54:27 1985 X--- ./usr/src/games/trek/help.c Tue May 12 06:47:47 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)help.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)help.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/impulse.c.old Thu May 30 10:54:41 1985 X--- ./usr/src/games/trek/impulse.c Tue May 12 06:47:47 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)impulse.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)impulse.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/initquad.c.old Thu May 30 10:55:05 1985 X--- ./usr/src/games/trek/initquad.c Tue May 12 06:47:47 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)initquad.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)initquad.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/kill.c.old Sat Feb 1 16:52:57 1986 X--- ./usr/src/games/trek/kill.c Tue May 12 06:47:48 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)kill.c 5.1 (Berkeley) 1/29/86"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)kill.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/klmove.c.old Sat Feb 1 16:53:00 1986 X--- ./usr/src/games/trek/klmove.c Tue May 12 06:47:48 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)klmove.c 5.1 (Berkeley) 1/29/86"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)klmove.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/lose.c.old Sun Nov 20 22:48:12 1994 X--- ./usr/src/games/trek/lose.c Tue May 12 06:47:48 2026 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)lose.c 5.1.1 (2.11BSD GTE) 11/20/94"; X #endif X X # include "trek.h" X--- 5,11 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)lose.c 5.2 (2.11BSD) 2026/5/12"; X #endif X X # include "trek.h" X*** ./usr/src/games/trek/lrscan.c.old Thu May 30 10:56:23 1985 X--- ./usr/src/games/trek/lrscan.c Tue May 12 06:47:48 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)lrscan.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)lrscan.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/main.c.old Sat Dec 27 09:19:32 2025 X--- ./usr/src/games/trek/main.c Tue May 12 06:47:48 2026 X*************** X*** 5,15 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! char copyright[] = X! "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X! All rights reserved.\n"; X! X! static char sccsid[] = "@(#)main.c 5.1.2 (2.11BSD) 2025/12/27"; X #endif X X # include "trek.h" X--- 5,11 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)main.c 5.2 (2.11BSD) 2026/5/12"; X #endif X X # include "trek.h" X*** ./usr/src/games/trek/move.c.old Thu May 30 11:00:19 1985 X--- ./usr/src/games/trek/move.c Tue May 12 06:47:48 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)move.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)move.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/nova.c.old Thu May 30 11:00:45 1985 X--- ./usr/src/games/trek/nova.c Tue May 12 06:47:48 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)nova.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)nova.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/out.c.old Thu May 30 11:01:07 1985 X--- ./usr/src/games/trek/out.c Tue May 12 06:47:48 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)out.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)out.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/phaser.c.old Sat Feb 1 16:53:05 1986 X--- ./usr/src/games/trek/phaser.c Tue May 12 06:47:48 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)phaser.c 5.1 (Berkeley) 1/29/86"; X! #endif not lint X X # include "trek.h" X # include "getpar.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)phaser.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X # include "getpar.h" X*** ./usr/src/games/trek/play.c.old Sun Nov 20 22:50:36 1994 X--- ./usr/src/games/trek/play.c Tue May 12 06:47:49 2026 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)play.c 5.1.1 (2.11BSD GTE) 11/20/94"; X #endif X X # include "trek.h" X--- 5,11 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)play.c 5.2 (2.11BSD) 2026/5/12"; X #endif X X # include "trek.h" X*** ./usr/src/games/trek/ram.c.old Thu May 30 11:01:53 1985 X--- ./usr/src/games/trek/ram.c Tue May 12 06:47:49 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)ram.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ram.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/ranf.c.old Thu May 30 11:02:11 1985 X--- ./usr/src/games/trek/ranf.c Tue May 12 06:47:49 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)ranf.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ranf.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include X X*** ./usr/src/games/trek/rest.c.old Thu May 30 11:02:40 1985 X--- ./usr/src/games/trek/rest.c Tue May 12 06:47:49 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)rest.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X # include "getpar.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)rest.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X # include "getpar.h" X*** ./usr/src/games/trek/schedule.c.old Thu May 30 11:02:55 1985 X--- ./usr/src/games/trek/schedule.c Tue May 12 06:47:49 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)schedule.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)schedule.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/score.c.old Thu May 30 11:03:26 1985 X--- ./usr/src/games/trek/score.c Tue May 12 06:47:49 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)score.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X # include "getpar.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)score.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X # include "getpar.h" X*** ./usr/src/games/trek/setup.c.old Sat Feb 1 16:53:08 1986 X--- ./usr/src/games/trek/setup.c Tue May 12 06:47:49 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)setup.c 5.1 (Berkeley) 1/29/86"; X! #endif not lint X X # include "trek.h" X # include "getpar.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)setup.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X # include "getpar.h" X*** ./usr/src/games/trek/setwarp.c.old Thu May 30 11:03:55 1985 X--- ./usr/src/games/trek/setwarp.c Tue May 12 06:47:49 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)setwarp.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X # include "getpar.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)setwarp.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X # include "getpar.h" X*** ./usr/src/games/trek/shell.c.old Thu May 30 11:04:12 1985 X--- ./usr/src/games/trek/shell.c Tue May 12 06:47:49 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)shell.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X /* X ** CALL THE SHELL X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)shell.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X /* X ** CALL THE SHELL X*** ./usr/src/games/trek/shield.c.old Sat Feb 1 16:53:10 1986 X--- ./usr/src/games/trek/shield.c Tue May 12 06:47:49 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)shield.c 5.1 (Berkeley) 1/29/86"; X! #endif not lint X X # include "trek.h" X # include "getpar.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)shield.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X # include "getpar.h" X*** ./usr/src/games/trek/snova.c.old Thu May 30 11:04:44 1985 X--- ./usr/src/games/trek/snova.c Tue May 12 06:47:49 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)snova.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)snova.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/srscan.c.old Sat Feb 1 16:53:11 1986 X--- ./usr/src/games/trek/srscan.c Tue May 12 06:47:50 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)srscan.c 5.1 (Berkeley) 1/29/86"; X! #endif not lint X X # include "trek.h" X # include "getpar.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)srscan.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X # include "getpar.h" X*** ./usr/src/games/trek/systemname.c.old Sat Feb 1 16:53:12 1986 X--- ./usr/src/games/trek/systemname.c Tue May 12 06:47:50 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)systemname.c 5.1 (Berkeley) 1/29/86"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)systemname.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/torped.c.old Sat Feb 1 16:53:14 1986 X--- ./usr/src/games/trek/torped.c Tue May 12 06:47:50 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)torped.c 5.1 (Berkeley) 1/29/86"; X! #endif not lint X X # include X # include "trek.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)torped.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include X # include "trek.h" X*** ./usr/src/games/trek/utility.c.old Thu May 30 11:05:47 1985 X--- ./usr/src/games/trek/utility.c Tue May 12 06:47:50 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)utility.c 5.1 (Berkeley) 5/30/85"; X! #endif not lint X X /* X ** ASSORTED UTILITY ROUTINES X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)utility.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X /* X ** ASSORTED UTILITY ROUTINES X*** ./usr/src/games/trek/visual.c.old Sat Feb 1 16:53:18 1986 X--- ./usr/src/games/trek/visual.c Tue May 12 06:47:50 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)visual.c 5.1 (Berkeley) 1/29/86"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)visual.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/warp.c.old Sat Feb 1 16:53:19 1986 X--- ./usr/src/games/trek/warp.c Tue May 12 06:47:50 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)warp.c 5.1 (Berkeley) 1/29/86"; X! #endif not lint X X # include "trek.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)warp.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X # include "trek.h" X X*** ./usr/src/games/trek/win.c.old Sun Nov 20 22:52:33 1994 X--- ./usr/src/games/trek/win.c Tue May 12 06:47:50 2026 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)win.c 5.1.1 (2.11BSD GTE) 11/20/94"; X #endif X X # include "trek.h" X--- 5,11 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)win.c 5.2 (2.11BSD) 2026/5/12"; X #endif X X # include "trek.h" X*** ./usr/src/games/hack/Makefile.old Sun Dec 28 06:28:32 2025 X--- ./usr/src/games/hack/Makefile Wed Aug 26 06:07:52 2026 X*************** X*** 1,4 **** X! # #(@) Makefile 1.4 (2.11BSD) 2025/11/25 X # X # on some systems the termcap library is in -ltermcap X TERMLIB = -ltermlib X--- 1,4 ---- X! # #(@) Makefile 1.5 (2.11BSD) 2026/8/26 X # X # on some systems the termcap library is in -ltermcap X TERMLIB = -ltermlib X*************** X*** 132,145 **** X X hack.onames.h: makedefs def.objects.h X ./makedefs > hack.onames.h X- X- lint: X- # lint cannot have -p here because (i) capitals are meaningful: X- # [Ww]izard, (ii) identifiers may coincide in the first six places: X- # doweararm() versus dowearring(). X- # _flsbuf comes from , a bug in the system libraries. X- @echo lint -axbh -DLINT ... X- @lint -axbh -DLINT $(HACKCSRC) | sed '/_flsbuf/d' X X install: $(GAME) X install -o $(GAMEUID) -m 4711 $(GAME) $(BINDIR)/$(GAME) X--- 132,137 ---- X*** ./usr/src/games/hack/alloc.c.old Mon Sep 30 18:11:37 1985 X--- ./usr/src/games/hack/alloc.c Wed Aug 26 06:08:39 2026 X*************** X*** 1,26 **** X! /* alloc.c - version 1.0.2 */ X! #ifdef LINT X X! /* X! a ridiculous definition, suppressing X! "possible pointer alignment problem" for (long *) malloc() X! "enlarg defined but never used" X! "ftell defined (in ) but never used" X! from lint X! */ X! #include X! long * X! alloc(n) unsigned n; { X! long dummy = ftell(stderr); X! if(n) dummy = 0; /* make sure arg is used */ X! return(&dummy); X! } X X- #else X- X- extern char *malloc(); X- extern char *realloc(); X- X long * X alloc(lth) X register unsigned lth; X--- 1,7 ---- X! /* alloc.c - version 1.0.3 (2.11BSD) 2026/8/26 */ X X! #include X X long * X alloc(lth) X register unsigned lth; X*************** X*** 43,47 **** X panic("Cannot reallocate %d bytes", lth); X return((long *) nptr); X } X- X- #endif LINT X--- 24,26 ---- X*** ./usr/src/games/hack/hack.dog.c.old Mon Sep 30 18:12:02 1985 X--- ./usr/src/games/hack/hack.dog.c Wed Aug 26 06:09:20 2026 X*************** X*** 1,5 **** X /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ X! /* hack.dog.c - version 1.0.3 */ X X #include "hack.h" X #include "hack.mfndpos.h" X--- 1,5 ---- X /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ X! /* hack.dog.c - version 1.0.4 (2.11BSD) 2026/8/26 */ X X #include "hack.h" X #include "hack.mfndpos.h" X*************** X*** 179,187 **** X X /* first we look for food */ X gtyp = UNDEF; /* no goal as yet */ X- #ifdef LINT X- gx = gy = 0; /* suppress 'used before set' message */ X- #endif LINT X for(obj = fobj; obj; obj = obj->nobj) { X otyp = dogfood(obj); X if(otyp > gtyp || otyp == UNDEF) continue; X--- 179,184 ---- X*** ./usr/src/games/hack/hack.end.c.old Sun Dec 15 18:13:35 1985 X--- ./usr/src/games/hack/hack.end.c Tue Sep 22 03:09:11 2026 X*************** X*** 1,5 **** X /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ X! /* hack.end.c - version 1.0.3 */ X X #include "hack.h" X #include X--- 1,5 ---- X /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ X! /* hack.end.c - version 1.0.4 (2.11BSD) */ X X #include "hack.h" X #include X*************** X*** 10,15 **** X--- 10,16 ---- X X xchar maxdlevel = 1; X X+ void X done1() X { X (void) signal(SIGINT,SIG_IGN); X*************** X*** 19,25 **** X clrlin(); X (void) fflush(stdout); X if(multi > 0) nomul(0); X! return(0); X } X done("quit"); X /* NOTREACHED */ X--- 20,26 ---- X clrlin(); X (void) fflush(stdout); X if(multi > 0) nomul(0); X! return; X } X done("quit"); X /* NOTREACHED */ X*************** X*** 28,33 **** X--- 29,35 ---- X int done_stopprint; X int done_hup; X X+ void X done_intr(){ X done_stopprint++; X (void) signal(SIGINT, SIG_IGN); X*************** X*** 34,39 **** X--- 36,42 ---- X (void) signal(SIGQUIT, SIG_IGN); X } X X+ void X done_hangup(){ X done_hup++; X (void) signal(SIGHUP, SIG_IGN); X*** ./usr/src/games/hack/hack.main.c.old Thu Oct 2 23:04:11 1997 X--- ./usr/src/games/hack/hack.main.c Tue Sep 22 08:19:26 2026 X*************** X*** 1,5 **** X /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ X! /* hack.main.c - version 1.0.4 */ X X #include X #include X--- 1,5 ---- X /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ X! /* hack.main.c - version 1.0.5 (2.11BSD) 2026/9/22 */ X X #include X #include X*************** X*** 19,26 **** X int (*occupation)(); X char *occtxt; /* defined when occupation != NULL */ X X! int done1(); X! int hangup(); X X int hackpid; /* current pid */ X int locknum; /* max num of players */ X--- 19,26 ---- X int (*occupation)(); X char *occtxt; /* defined when occupation != NULL */ X X! void done1(); X! void hangup(); X X int hackpid; /* current pid */ X int locknum; /* max num of players */ X*** ./usr/src/games/hack/hack.pager.c.old Fri Oct 3 00:30:30 1997 X--- ./usr/src/games/hack/hack.pager.c Tue Sep 22 08:21:51 2026 X*************** X*** 1,5 **** X /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ X! /* hack.pager.c - version 1.0.4 */ X X /* This file contains the command routine dowhatis() and a pager. */ X /* Also readmail() and doshell(), and generally the things that X--- 1,5 ---- X /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ X! /* hack.pager.c - version 1.0.5 (2.11BSD) 2026/9/22 */ X X /* This file contains the command routine dowhatis() and a pager. */ X /* Also readmail() and doshell(), and generally the things that X*************** X*** 12,18 **** X extern int CO, LI; /* usually COLNO and ROWNO+2 */ X extern char *CD; X extern char quitchars[]; X! int done1(); X X dowhatis() X { X--- 12,18 ---- X extern int CO, LI; /* usually COLNO and ROWNO+2 */ X extern char *CD; X extern char quitchars[]; X! void done1(); X X dowhatis() X { X*************** X*** 58,63 **** X--- 58,64 ---- X /* make the paging of a file interruptible */ X static int got_intrup; X X+ void X intruph(){ X got_intrup++; X } X*************** X*** 68,74 **** X int strip; /* nr of chars to be stripped from each line (0 or 1) */ X { X register char *bufr, *ep; X! int (*prevsig)() = signal(SIGINT, intruph); X X set_pager(0); X bufr = (char *) alloc((unsigned) CO); X--- 69,75 ---- X int strip; /* nr of chars to be stripped from each line (0 or 1) */ X { X register char *bufr, *ep; X! sig_t prevsig = signal(SIGINT, intruph); X X set_pager(0); X bufr = (char *) alloc((unsigned) CO); X*** ./usr/src/games/phantasia/phant.h.old Tue Jan 7 20:47:42 2020 X--- ./usr/src/games/phantasia/phant.h Tue Sep 22 08:34:47 2026 X*************** X*** 3,9 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)phant.h 1.1 (2.11BSD) 2020/1/7"; X #endif X X #include X--- 3,9 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)phant.h 1.2 (2.11BSD) 2026/9/22"; X #endif X X #include X*************** X*** 147,158 **** X #define voidfile PATH"/void" X #define enemyfile PATH"/enemy" X X! /* library functions and system calls */ X! unsigned sleep(); X! long time(), ftell(); X! char *getlogin(), *getpass(), *ctime(); X! struct passwd *getpwuid(); X! char *strcpy(), *strncpy(); X X /* function and global variable declarations */ X void adjuststats(), callmonster(), checkinterm(), checkmov(), checktampered(), X--- 147,156 ---- X #define voidfile PATH"/void" X #define enemyfile PATH"/enemy" X X! #include X! #include X! #include X! #include X X /* function and global variable declarations */ X void adjuststats(), callmonster(), checkinterm(), checkmov(), checktampered(), X*************** X*** 161,167 **** X paws(), printhelp(), printmonster(), printplayers(), printstats(), purge(), X showall(), showusers(), statread(), talk(), tampered(), titlestuff(), X trade(), treasure(), trunc(), update(), voidupdate(); X! int allocvoid(), findchar(), findspace(), gch(), interrupt(), rgetch(), rngcalc(); X unsigned level(); X double inflt(); X char *printloc(); X--- 159,166 ---- X paws(), printhelp(), printmonster(), printplayers(), printstats(), purge(), X showall(), showusers(), statread(), talk(), tampered(), titlestuff(), X trade(), treasure(), trunc(), update(), voidupdate(); X! int allocvoid(), findchar(), findspace(), gch() , rgetch(), rngcalc(); X! void interrupt(); X unsigned level(); X double inflt(); X char *printloc(); X*** ./usr/src/games/phantasia/Makefile.old Tue Dec 23 20:06:58 2025 X--- ./usr/src/games/phantasia/Makefile Sun Jul 12 16:40:35 2026 X*************** X*** 1,9 **** X! # Makefile for Phantasia 3.3 (1.4 2.11BSD - 2025/11/25) X X- # MODIFIED TO COMPILE WITHOUT 'XSTR'. X- X- # To create game: X- # X # 1) Set up a directory where the game and its support files will live. X # (It is suggested that the source be kept somewhere else.) X # 2) Set up the variables in Makefile to reflect your particular situation. X--- 1,5 ---- X! # Makefile for Phantasia 3.3 (1.5 2.11BSD - 2026/7/12) X X # 1) Set up a directory where the game and its support files will live. X # (It is suggested that the source be kept somewhere else.) X # 2) Set up the variables in Makefile to reflect your particular situation. X*************** X*** 11,27 **** X # code to restrict access at certain times. X # 4) 'make install' and watch it fly. X X- RM = -rm X- X- # Add '-ljobs' to LIBS if 4.1bsd X LIBS = -lm -lcurses -ltermlib X- # May need '-I/usr/include/sys' for 4.2bsd X CFLAGS = -I. -Dpdp11 X LDFLAGS= -i X X! # DEST is where the program and its support files reside X! # If this changes then the symbolic link in the 'install' target must change. X! DEST = /usr/games/lib/phantasia X X # The following are program constants which are implementation dependent. X # X--- 7,18 ---- X # code to restrict access at certain times. X # 4) 'make install' and watch it fly. X X LIBS = -lm -lcurses -ltermlib X CFLAGS = -I. -Dpdp11 X LDFLAGS= -i X X! # DEST is where the support files reside X! DEST = /usr/games/lib/phantasia X X # The following are program constants which are implementation dependent. X # X*************** X*** 33,55 **** X # 32768.0 (for 15 bit rand()) X # 65536.0 (for 16 bit rand()) X # 2147483648.0 (for 31 bit rand()) X! # ACCESS is fopen() access to open a file for writing, but no X! # clearing the file, e.g. "a", or "r+". (Use "r+" if you have it.) X # define OK_TO_PLAY to restrict playing access. Also see function ok_to_play() X # in main.c, and tailor to your own needs. X # define ENEMY to include code for checking of a 'hit list' of resricted X # accounts. The list of logins goes in the file 'enemy'. X! # define BSD41 for 4.1bsd X! # define BSD42 for 4.2bsd X! # define USG3 for System III, or similar X! # define USG5 for System V X FLAGS = -DPATH=\"${DEST}\" \ X -DWIZARD=\"daemon\" \ X -DUID=1 \ X -DRAND=32768.0 \ X! -DACCESS=\"r+\" \ X! -DENEMY \ X! -DBSD42 X X OFILES = main.o func0.o func1.o func2.o X NOOPT= fight.o X--- 24,40 ---- X # 32768.0 (for 15 bit rand()) X # 65536.0 (for 16 bit rand()) X # 2147483648.0 (for 31 bit rand()) X! # X # define OK_TO_PLAY to restrict playing access. Also see function ok_to_play() X # in main.c, and tailor to your own needs. X # define ENEMY to include code for checking of a 'hit list' of resricted X # accounts. The list of logins goes in the file 'enemy'. X! X FLAGS = -DPATH=\"${DEST}\" \ X -DWIZARD=\"daemon\" \ X -DUID=1 \ X -DRAND=32768.0 \ X! -DENEMY X X OFILES = main.o func0.o func1.o func2.o X NOOPT= fight.o X*************** X*** 56,91 **** X X all: phantasia setfiles phant.help phantasia.0 X X- # need separate i/d space on small machines X- #phantasia: ${OFILES} ${NOOPT} strings.o X phantasia: ${OFILES} ${NOOPT} X! # ${CC} ${OFILES} ${NOOPT} strings.o ${LIBS} -o phantasia X! -if [ X${LDFLAGS} = "X-i" ]; then \ X! ${CC} main.o fight.o -Z func0.o -Z func1.o \ X! -Z func2.o -Y ${LIBS} -i -o phantasia; \ X! elif [ X${LDFLAGS} = "X-n" ]; then \ X! @echo "Need overlay scheme (HA!)"; \ X! else \ X! ${CC} ${OFILES} ${NOOPT} ${LIBS} -o phantasia; \ X! fi X X ${OFILES}: phant.h X ${CC} -O -c ${CFLAGS} ${FLAGS} $*.c X- # ${CC} -E ${CFLAGS} ${FLAGS} $*.c | ${XSTR} -c - X- # ${CC} -O -c ${CFLAGS} x.c X- # mv x.o $*.o X X ${NOOPT}: phant.h X ${CC} -c ${CFLAGS} ${FLAGS} $*.c X- # ${CC} -E ${CFLAGS} ${FLAGS} $*.c | ${XSTR} -c - X- # ${CC} -c ${CFLAGS} x.c X- # mv x.o $*.o X X- strings.o: ${OFILES} ${NOOPT} strings X- ${XSTR} X- ${CC} -c xs.c X- mv xs.o strings.o X- X setfiles: phant.h setfiles.c X ${CC} ${CFLAGS} ${FLAGS} setfiles.c -o setfiles -lm X X--- 41,56 ---- X X all: phantasia setfiles phant.help phantasia.0 X X phantasia: ${OFILES} ${NOOPT} X! ${CC} main.o fight.o -Z func0.o -Z func1.o \ X! -Z func2.o -Y ${LIBS} -i -o phantasia X X ${OFILES}: phant.h X ${CC} -O -c ${CFLAGS} ${FLAGS} $*.c X X ${NOOPT}: phant.h X ${CC} -c ${CFLAGS} ${FLAGS} $*.c X X setfiles: phant.h setfiles.c X ${CC} ${CFLAGS} ${FLAGS} setfiles.c -o setfiles -lm X X*************** X*** 93,114 **** X phant.help: phant.nr X tbl -TX phant.nr | nroff -man -Ttn300 > phant.help X X! # DO NOT use an absolute pathname in the symbolic link below. Figure out X! # what the relative path is. X! X! install: all phantasia.0 X! rm -f /usr/games/phantasia X! ln -s lib/phantasia/phantasia /usr/games/phantasia X -mkdir ${DEST} X- cp phantasia monsters phant.help ${DEST} X chmod 755 ${DEST} X! chmod 4711 ${DEST}/phantasia X! chmod 644 ${DEST}/phant.help X ./setfiles X install -c -m 444 -o root -g staff phantasia.0 /usr/man/cat6 X X phantasia.0: phant.nr X /usr/man/manroff phant.nr > phantasia.0 X X clean: X! ${RM} -f *.o phantasia phant.help strings x.c xs.c setfiles phantasia.0 X--- 58,74 ---- X phant.help: phant.nr X tbl -TX phant.nr | nroff -man -Ttn300 > phant.help X X! install: all X! install -c -s -m 4711 -o daemon phantasia /usr/games X -mkdir ${DEST} X chmod 755 ${DEST} X! install -c -m 444 monsters phant.help ${DEST} X ./setfiles X install -c -m 444 -o root -g staff phantasia.0 /usr/man/cat6 X+ chown -R daemon ${DEST} X X phantasia.0: phant.nr X /usr/man/manroff phant.nr > phantasia.0 X X clean: X! rm -f *.o phantasia phant.help strings setfiles phantasia.0 X*** ./usr/src/games/phantasia/func1.c.old Mon May 19 20:12:30 1986 X--- ./usr/src/games/phantasia/func1.c Tue Jul 21 20:23:47 2026 X*************** X*** 1,5 **** X /* X! * func1.c Phantasia support routines X */ X X #include "phant.h" X--- 1,5 ---- X /* X! * func1.c 1.2 (2.11BSD) 2026/7/12 X */ X X #include "phant.h" X*************** X*** 42,48 **** X ++loc; X } X fclose(fp); X! fp = fopen(peoplefile,ACCESS); X fseek(fp,(long) loc * sizeof(buf),0); X initchar(&buf); X strcpy(buf.name,"inuse"); X--- 42,48 ---- X ++loc; X } X fclose(fp); X! fp = fopen(peoplefile, "r+"); X fseek(fp,(long) loc * sizeof(buf),0); X initchar(&buf); X strcpy(buf.name,"inuse"); X*************** X*** 95,101 **** X void leave(stat) /* save character in file */ X reg struct stats *stat; X { X! long ltemp; X X if (!stat->lvl) X strcpy(stat->name,""); X--- 95,101 ---- X void leave(stat) /* save character in file */ X reg struct stats *stat; X { X! time_t ltemp; X X if (!stat->lvl) X strcpy(stat->name,""); X*************** X*** 104,116 **** X stat->age += ltemp - secs; X update(stat,fileloc); X exit1(); X- /*NOTREACHED*/ X } X X void talk(name) /* send message to all players */ X! reg char *name; X { X! FILE *fp; X char aline[160]; X X mvaddstr(5,0,"Message ? "); X--- 104,115 ---- X stat->age += ltemp - secs; X update(stat,fileloc); X exit1(); X } X X void talk(name) /* send message to all players */ X! char *name; X { X! reg FILE *fp; X char aline[160]; X X mvaddstr(5,0,"Message ? "); X*************** X*** 175,181 **** X fgets(aline,100,fp); X ltemp = ftell(fp); X fclose(fp); X! fp = fopen(monsterfile,ACCESS); X fseek(fp,ltemp,0); X fprintf(fp,"%-20s",stat->name); X fclose(fp); X--- 174,180 ---- X fgets(aline,100,fp); X ltemp = ftell(fp); X fclose(fp); X! fp = fopen(monsterfile, "r+"); X fseek(fp,ltemp,0); X fprintf(fp,"%-20s",stat->name); X fclose(fp); X*************** X*** 217,228 **** X } X X void update(stat,place) /* update charac file */ X! reg struct stats *stat; X! reg int place; X { X! FILE *fp; X X! fp = fopen(peoplefile,ACCESS); X fseek(fp,(long) place*sizeof(*stat),0); X fwrite((char *) stat,sizeof(*stat),1,fp); X fclose(fp); X--- 216,227 ---- X } X X void update(stat,place) /* update charac file */ X! reg struct stats *stat; X! int place; X { X! reg FILE *fp; X X! fp = fopen(peoplefile, "r+"); X fseek(fp,(long) place*sizeof(*stat),0); X fwrite((char *) stat,sizeof(*stat),1,fp); X fclose(fp); X*************** X*** 290,296 **** X X void titlestuff() /* print out a header */ X { X! FILE *fp; X char instr[80], hiname[21], nxtname[21], aline[80]; X bool cowfound = FALSE, kingfound = FALSE; X struct stats buf; X--- 289,295 ---- X X void titlestuff() /* print out a header */ X { X! reg FILE *fp; X char instr[80], hiname[21], nxtname[21], aline[80]; X bool cowfound = FALSE, kingfound = FALSE; X struct stats buf; X*************** X*** 396,432 **** X void init1() /* set up for screen updating */ X { X /* catch/ingnore signals */ X! #ifdef BSD41 X! sigignore(SIGQUIT); X! sigignore(SIGALRM); X! sigignore(SIGTERM); X! sigignore(SIGTSTP); X! sigignore(SIGTTIN); X! sigignore(SIGTTOU); X! sighold(SIGINT); X! #endif X! #ifdef BSD42 X! signal(SIGQUIT,interrupt,1); X! signal(SIGALRM,interrupt,1); X! signal(SIGTERM,interrupt,1); X! signal(SIGTSTP,interrupt,1); X! signal(SIGTTIN,interrupt,1); X! signal(SIGTTOU,interrupt,1); X! signal(SIGINT,interrupt,1); X! #endif X! #ifdef USG3 X! signal(SIGINT,SIG_IGN); X! signal(SIGQUIT,SIG_IGN); X! signal(SIGTERM,SIG_IGN); X! signal(SIGALRM,SIG_IGN); X! #endif X! #ifdef USG5 X! signal(SIGINT,SIG_IGN); X! signal(SIGQUIT,SIG_IGN); X! signal(SIGTERM,SIG_IGN); X! signal(SIGALRM,SIG_IGN); X! #endif X! srand((unsigned) time((long *) NULL)); /* prime random numbers */ X initscr(); X noecho(); X crmode(); X--- 395,409 ---- X void init1() /* set up for screen updating */ X { X /* catch/ingnore signals */ X! signal(SIGQUIT,interrupt); X! signal(SIGALRM,interrupt); X! signal(SIGTERM,interrupt); X! signal(SIGTSTP,interrupt); X! signal(SIGTTIN,interrupt); X! signal(SIGTTOU,interrupt); X! signal(SIGINT,interrupt); X! X! srand((unsigned)time((time_t *) NULL)); /* prime random numbers */ X initscr(); X noecho(); X crmode(); X*************** X*** 434,445 **** X refresh(); X } X X! void getstring(cp,mx) /* get a string from the stdscr at current y,x */ X! reg char *cp; X! reg int mx; X { X! reg int loop = 0, x, y, xorig; X! int ch; X X getyx(stdscr,y,xorig); X clrtoeol(); X--- 411,422 ---- X refresh(); X } X X! void getstring(cp,mx) /* get a string from the stdscr at current y,x */ X! char *cp; X! int mx; X { X! int x, y, xorig; X! reg int ch, loop = 0; X X getyx(stdscr,y,xorig); X clrtoeol(); X*************** X*** 494,503 **** X void kingstuff(stat) /* stuff upon entering throne */ X reg struct stats *stat; X { X! FILE *fp; X struct stats buf; X struct nrgvoid vbuf; X! reg int loc = 0; X X if (stat->typ < 10) /* check to see if king -- assumes crown */ X { X--- 471,480 ---- X void kingstuff(stat) /* stuff upon entering throne */ X reg struct stats *stat; X { X! reg FILE *fp; X struct stats buf; X struct nrgvoid vbuf; X! int loc = 0; X X if (stat->typ < 10) /* check to see if king -- assumes crown */ X { X*************** X*** 552,559 **** X { X struct stats charac; X char s[60], flag[2]; X! FILE *fp; X! reg int loc = 0; X int c, temp, today; X long ltemp; X double dtemp; X--- 529,536 ---- X { X struct stats charac; X char s[60], flag[2]; X! reg FILE *fp; X! int loc = 0; X int c, temp, today; X long ltemp; X double dtemp; X*************** X*** 864,869 **** X--- 841,847 ---- X reg char *str; X { X reg int loop; X+ X loop = strlen(str) - 1; X while (str[--loop] == ' ') X str[loop] = '\0'; X*************** X*** 892,899 **** X reg struct stats *stat; X { X double buf[5], temp; X! reg int first, second; X! reg double *bp; X X bp = buf; X *bp++ = stat->str; X--- 870,877 ---- X reg struct stats *stat; X { X double buf[5], temp; X! reg int first, second; X! double *bp; X X bp = buf; X *bp++ = stat->str; X*** ./usr/src/games/phantasia/func2.c.old Mon May 19 20:12:31 1986 X--- ./usr/src/games/phantasia/func2.c Tue Sep 22 08:36:08 2026 X*************** X*** 1,5 **** X /* X! * func2.c Phantasia support routines X */ X X #include "phant.h" X--- 1,5 ---- X /* X! * func2.c 1.2 (2.11BSD) 2026/7/12 X */ X X #include "phant.h" X*************** X*** 209,215 **** X { X FILE *fp; X X! fp = fopen(voidfile,ACCESS); X fseek(fp,(long) loc*sizeof(*vp),0); X fwrite((char *) vp,sizeof(*vp),1,fp); X fclose(fp); X--- 209,215 ---- X { X FILE *fp; X X! fp = fopen(voidfile, "r+"); X fseek(fp,(long) loc*sizeof(*vp),0); X fwrite((char *) vp,sizeof(*vp),1,fp); X fclose(fp); X*************** X*** 538,544 **** X foeplace = who * BLOCK; X fin = fopen(peoplefile,"r"); X setbuf(fin, (char *) NULL); X! fout = fopen(peoplefile,ACCESS); X stat->status = INBATTLE; X myhits = stat->nrg; X stat->tampered = oldtags = 1; /* this must be non-zero to prevent a king or valar from trashing it */ X--- 538,544 ---- X foeplace = who * BLOCK; X fin = fopen(peoplefile,"r"); X setbuf(fin, (char *) NULL); X! fout = fopen(peoplefile, "r+"); X stat->status = INBATTLE; X myhits = stat->nrg; X stat->tampered = oldtags = 1; /* this must be non-zero to prevent a king or valar from trashing it */ X*************** X*** 746,763 **** X clrtobot(); X } X X! int interrupt() /* call when break key is hit */ X { X char line[81]; X reg int loop; X int x, y, ch; X X- #ifdef USG3 X- signal(SIGINT,SIG_IGN); X- #endif X- #ifdef USG5 X- signal(SIGINT,SIG_IGN); X- #endif X getyx(stdscr,y,x); X for (loop = 79; loop >= 0; --loop) /* snarf line */ X { X--- 746,757 ---- X clrtobot(); X } X X! void interrupt() /* call when break key is hit */ X { X char line[81]; X reg int loop; X int x, y, ch; X X getyx(stdscr,y,x); X for (loop = 79; loop >= 0; --loop) /* snarf line */ X { X*************** X*** 787,798 **** X mvaddstr(4,0,line); /* return screen to previous state */ X move(y,x); X refresh(); X- #ifdef USG3 X- signal(SIGINT,interrupt); X- #endif X- #ifdef USG5 X- signal(SIGINT,interrupt); X- #endif X } X X int rgetch() /* refresh, then get a char. */ X--- 781,786 ---- X*************** X*** 812,818 **** X time(<ime); X today = localtime(<ime)->tm_yday; X fin = fopen(peoplefile,"r"); X! fout = fopen(peoplefile,ACCESS); X while(fread((char *) &sbuf,sizeof(sbuf),1,fin)) X { X temp = today - sbuf.lastused; X--- 800,806 ---- X time(<ime); X today = localtime(<ime)->tm_yday; X fin = fopen(peoplefile,"r"); X! fout = fopen(peoplefile, "r+"); X while(fread((char *) &sbuf,sizeof(sbuf),1,fin)) X { X temp = today - sbuf.lastused; X*** ./usr/src/games/phantasia/setfiles.c.old Wed Dec 24 09:38:25 2025 X--- ./usr/src/games/phantasia/setfiles.c Sun Jul 12 15:28:47 2026 X*************** X*** 9,15 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)setfiles.c 1.2 (2.11BSD) 2025/12/23"; X #endif X X #include "phant.h" X--- 9,15 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)setfiles.c 1.3 (2.11BSD) 2026/7/12"; X #endif X X #include "phant.h" X*************** X*** 106,113 **** X fclose(fp); X } X #endif X- if (getuid() != UID) X- fprintf(stderr,"Warning: UID (%d) is not equal to current uid.\n",UID); X exit(0); X } X X--- 106,111 ---- X*** ./usr/src/games/phantasia/main.c.old Sun Nov 17 01:04:38 1996 X--- ./usr/src/games/phantasia/main.c Sun Jul 12 16:24:48 2026 X*************** X*** 3,8 **** X--- 3,10 ---- X * X * Edward A. Estes X * AT&T Teletype Corp., September 4, 1984 X+ * X+ * main.c 1.2 (2.11BSD) 2026/7/12 X */ X X /* X*************** X*** 26,36 **** X */ X X /* X- * The support functions are split between various files with no apparent X- * order. Use of 'ctags' is recommended to find a particular function. X- */ X- X- /* X * Put one line of text into the file 'motd' for announcements, etc. X */ X X--- 28,33 ---- X*************** X*** 80,86 **** X char aline[200], *login = NULL; X double x = 0.0, y = 0.0; X int ch, ch2; X! reg int loop, temp; X FILE *fp; X bool shrt = FALSE, examine = FALSE, header = FALSE; X X--- 77,83 ---- X char aline[200], *login = NULL; X double x = 0.0, y = 0.0; X int ch, ch2; X! register int loop, temp; X FILE *fp; X bool shrt = FALSE, examine = FALSE, header = FALSE; X X*************** X*** 102,108 **** X fclose (fp); X } X #endif X- setbuf(stdin, (char *) NULL); /* this may or may not be necessary */ X su = (getuid() == UID); X fghting = FALSE; X users = 0; X--- 99,104 ---- X*************** X*** 240,257 **** X charac.lastused = localtime(&secs)->tm_yday; X update(&charac,fileloc); X clear(); X- #ifdef BSD41 X- sigset(SIGINT,interrupt); X- #endif X- #ifdef BSD42 X- signal(SIGINT,interrupt,-1); X- #endif X- #ifdef USG3 X signal(SIGINT,interrupt); X- #endif X- #ifdef USG5 X- signal(SIGINT,interrupt); X- #endif X X /* all set for now */ X X--- 236,242 ---- X*************** X*** 258,290 **** X TOP: switch (setjmp(mainenv)) X { X case QUIT: X- #ifdef BSD41 X- sigrelse(SIGINT); X- #endif X- #ifdef BSD42 X- signal(SIGINT,interrupt,-1); X- #endif X- #ifdef USG3 X signal(SIGINT,interrupt); X- #endif X- #ifdef USG5 X- signal(SIGINT,interrupt); X- #endif X leave(&charac); X /*NOTREACHED*/ X case DIE: X- #ifdef BSD41 X- sigrelse(SIGINT); X- #endif X- #ifdef BSD42 X- signal(SIGINT,interrupt,-1); X- #endif X- #ifdef USG3 X signal(SIGINT,interrupt); X- #endif X- #ifdef USG5 X- signal(SIGINT,interrupt); X- #endif X death(&charac); X break; X } X--- 243,253 ---- X*************** X*** 556,563 **** X bool ok_to_play() /* return FALSE if playing is not allowed at this time */ X { X #define MAXUSERS 8 /* max. number of people on system */ X! reg struct tm *tp; X! reg int numusers = 0; X FILE *fp; X long now; X struct utmp ubuf; X--- 519,526 ---- X bool ok_to_play() /* return FALSE if playing is not allowed at this time */ X { X #define MAXUSERS 8 /* max. number of people on system */ X! register struct tm *tp; X! register int numusers = 0; X FILE *fp; X long now; X struct utmp ubuf; X*************** X*** 572,583 **** X /* check # of users */ X fp = fopen(_PATH_UTMP,"r"); X while (fread((char *) &ubuf,sizeof(ubuf),1,fp)) X- #ifdef USG5 X- if (ubuf.ut_type == USER_PROCESS) X- #else X if (*ubuf.ut_name) X! #endif X! ++numusers; X fclose(fp); X if (numusers > MAXUSERS) X return (FALSE); X--- 535,542 ---- X /* check # of users */ X fp = fopen(_PATH_UTMP,"r"); X while (fread((char *) &ubuf,sizeof(ubuf),1,fp)) X if (*ubuf.ut_name) X! ++numusers; X fclose(fp); X if (numusers > MAXUSERS) X return (FALSE); X*** ./usr/src/games/sail/pl_main.c.old Tue Jan 27 15:11:29 2026 X--- ./usr/src/games/sail/pl_main.c Tue Sep 22 08:46:24 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)pl_main.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "player.h" X #include X #include X X! int choke(), child(); X X /*ARGSUSED*/ X pl_main() X--- 4,19 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)pl_main.c 5.2 (2.11BSD) 2026/1/27"; X! #endif X X #include "player.h" X #include X #include X+ #include X X! void choke(), child(); X X /*ARGSUSED*/ X pl_main() X*************** X*** 36,42 **** X char message[60]; X int load; X register int n; X! char *nameptr; X int nat[NNATION]; X X if (game < 0) { X--- 37,43 ---- X char message[60]; X int load; X register int n; X! char *nameptr, *cp; X int nat[NNATION]; X X if (game < 0) { X*************** X*** 170,178 **** X (void) strncpy(captain, nameptr, sizeof captain); X else { X (void) printf("Your name, Captain? "); X! (void) fflush(stdout); X! (void) gets(captain); X! if (!*captain) X (void) strcpy(captain, "no name"); X } X captain[sizeof captain - 1] = '\0'; X--- 171,181 ---- X (void) strncpy(captain, nameptr, sizeof captain); X else { X (void) printf("Your name, Captain? "); X! captain[0] = '\0'; X! (void) fgets(captain, sizeof captain, stdin); X! cp = index(captain, '\n'); X! if (cp) *cp = '\0'; X! if (captain[0] == '\0') X (void) strcpy(captain, "no name"); X } X captain[sizeof captain - 1] = '\0'; X*** ./usr/src/games/sail/pl_7.c.old Tue Jan 7 20:49:06 2020 X--- ./usr/src/games/sail/pl_7.c Tue Sep 22 08:48:16 2026 X*************** X*** 5,12 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)pl_7.c 5.2 (2.11BSD) 2020/1/7"; X! #endif not lint X X #include "player.h" X X--- 5,12 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)pl_7.c 5.3 (2.11BSD) 2026/5/12"; X! #endif X X #include "player.h" X X*************** X*** 32,43 **** X (void) leaveok(slot_w, 1); X (void) leaveok(stat_w, 1); X (void) leaveok(turn_w, 1); X- #ifdef SIGTSTP X { X! int susp(); X (void) signal(SIGTSTP, susp); X } X- #endif X noecho(); X crmode(); X } X--- 32,41 ---- X (void) leaveok(slot_w, 1); X (void) leaveok(stat_w, 1); X (void) leaveok(turn_w, 1); X { X! void susp(); X (void) signal(SIGTSTP, susp); X } X noecho(); X crmode(); X } X*************** X*** 53,58 **** X--- 51,57 ---- X } X } X X+ void X newturn() X { X repaired = loaded = fired = changed = 0; X*************** X*** 440,445 **** X--- 439,445 ---- X } X X #ifdef SIGTSTP X+ void X susp() X { X blockalarm(); X*** ./usr/src/games/sail/assorted.c.old Wed May 29 17:58:18 1985 X--- ./usr/src/games/sail/assorted.c Tue May 12 07:45:13 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)assorted.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "externs.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)assorted.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "externs.h" X X*** ./usr/src/games/sail/dr_1.c.old Wed May 29 17:59:28 1985 X--- ./usr/src/games/sail/dr_1.c Tue May 12 07:45:13 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)dr_1.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "driver.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dr_1.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "driver.h" X X*** ./usr/src/games/sail/dr_2.c.old Wed May 29 17:59:59 1985 X--- ./usr/src/games/sail/dr_2.c Tue May 12 07:45:13 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)dr_2.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "driver.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dr_2.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "driver.h" X X*** ./usr/src/games/sail/dr_3.c.old Wed May 29 18:00:35 1985 X--- ./usr/src/games/sail/dr_3.c Tue May 12 07:45:14 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)dr_3.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "driver.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dr_3.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "driver.h" X X*** ./usr/src/games/sail/dr_4.c.old Wed May 29 18:00:58 1985 X--- ./usr/src/games/sail/dr_4.c Tue May 12 07:45:14 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)dr_4.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "externs.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dr_4.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "externs.h" X X*** ./usr/src/games/sail/dr_5.c.old Wed May 29 18:01:22 1985 X--- ./usr/src/games/sail/dr_5.c Tue May 12 07:45:14 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)dr_5.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "externs.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dr_5.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "externs.h" X X*** ./usr/src/games/sail/dr_main.c.old Tue Jan 21 21:10:26 1986 X--- ./usr/src/games/sail/dr_main.c Tue May 12 07:45:42 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)dr_main.c 5.2 (Berkeley) 1/21/86"; X! #endif not lint X X #include "driver.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dr_main.c 5.3 (2.11BSD) 2026/5/12"; X! #endif X X #include "driver.h" X X*** ./usr/src/games/sail/game.c.old Wed May 29 18:02:21 1985 X--- ./usr/src/games/sail/game.c Tue May 12 07:45:14 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)game.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "externs.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)game.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "externs.h" X X*** ./usr/src/games/sail/globals.c.old Wed May 29 18:03:11 1985 X--- ./usr/src/games/sail/globals.c Tue May 12 07:45:14 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)globals.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "externs.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)globals.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "externs.h" X X*** ./usr/src/games/sail/lo_main.c.old Wed May 29 18:03:36 1985 X--- ./usr/src/games/sail/lo_main.c Tue May 12 07:45:14 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)lo_main.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X /* X * Print out the top ten SAILors X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)lo_main.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X /* X * Print out the top ten SAILors X*** ./usr/src/games/sail/misc.c.old Wed May 29 18:06:16 1985 X--- ./usr/src/games/sail/misc.c Tue May 12 07:45:14 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)misc.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "externs.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)misc.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "externs.h" X X*** ./usr/src/games/sail/parties.c.old Wed May 29 18:07:04 1985 X--- ./usr/src/games/sail/parties.c Tue May 12 07:45:14 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)parties.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "externs.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)parties.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "externs.h" X X*** ./usr/src/games/sail/pl_1.c.old Wed May 29 18:07:52 1985 X--- ./usr/src/games/sail/pl_1.c Tue Sep 22 08:47:15 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)pl_1.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "player.h" X #include X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)pl_1.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "player.h" X #include X*************** X*** 86,96 **** X--- 86,98 ---- X exit(0); X } X X+ void X choke() X { X leave(LEAVE_QUIT); X } X X+ void X child() X { X union wait status; X*** ./usr/src/games/sail/pl_2.c.old Wed May 29 18:08:36 1985 X--- ./usr/src/games/sail/pl_2.c Tue May 12 07:45:15 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)pl_2.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "player.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)pl_2.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "player.h" X X*** ./usr/src/games/sail/pl_3.c.old Wed May 29 18:08:58 1985 X--- ./usr/src/games/sail/pl_3.c Tue May 12 07:45:15 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)pl_3.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "player.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)pl_3.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "player.h" X X*** ./usr/src/games/sail/pl_4.c.old Wed May 29 18:09:24 1985 X--- ./usr/src/games/sail/pl_4.c Tue May 12 07:45:15 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)pl_4.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "player.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)pl_4.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "player.h" X X*** ./usr/src/games/sail/pl_5.c.old Wed May 29 18:09:46 1985 X--- ./usr/src/games/sail/pl_5.c Tue May 12 07:45:15 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)pl_5.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "player.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)pl_5.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "player.h" X X*** ./usr/src/games/sail/pl_6.c.old Wed May 29 18:10:06 1985 X--- ./usr/src/games/sail/pl_6.c Tue May 12 07:45:15 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)pl_6.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include "player.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)pl_6.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "player.h" X X*** ./usr/src/games/sail/sync.c.old Tue Jan 21 21:09:55 1986 X--- ./usr/src/games/sail/sync.c Tue Sep 22 08:49:42 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)sync.c 5.2 (Berkeley) 1/21/86"; X! #endif not lint X X #include "externs.h" X #include X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)sync.c 5.3 (2.11BSD) 2026/5/12"; X! #endif X X #include "externs.h" X #include X*************** X*** 110,121 **** X X Sync() X { X! int (*sighup)(), (*sigint)(); X register n; X int type, shipnum, isstr, a, b, c, d; X char buf[80]; X char erred = 0; X- extern errno; X X sighup = signal(SIGHUP, SIG_IGN); X sigint = signal(SIGINT, SIG_IGN); X--- 110,120 ---- X X Sync() X { X! sig_t sighup, sigint; X register n; X int type, shipnum, isstr, a, b, c, d; X char buf[80]; X char erred = 0; X X sighup = signal(SIGHUP, SIG_IGN); X sigint = signal(SIGINT, SIG_IGN); X*** ./usr/src/games/sail/version.c.old Wed May 29 18:12:05 1985 X--- ./usr/src/games/sail/version.c Tue May 12 07:45:15 2026 X*************** X*** 4,11 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)version.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X char version[] = "Wooden Ships and Iron Men, Version 5.1 (85/05/29)"; X--- 4,11 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)version.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X char version[] = "Wooden Ships and Iron Men, Version 5.1 (85/05/29)"; X*** ./usr/src/games/sail/sail.6.old Sun Dec 14 18:08:29 1986 X--- ./usr/src/games/sail/sail.6 Thu Jun 25 11:07:18 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)sail.6 6.2 (Berkeley) 5/6/86 X .\" X .TH SAIL 6 "May 6, 1986" X .UC 6 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)sail.6 6.3 (2.11BSD) 2026/6/25 X .\" X .TH SAIL 6 "May 6, 1986" X .UC 6 X*************** X*** 869,872 **** X .SH "SEE ALSO" X midway(PUBLIC) X .SH BUGS X! Probably a few, and please report them to "riggle@ernie" and "edward@arpa." X--- 869,874 ---- X .SH "SEE ALSO" X midway(PUBLIC) X .SH BUGS X! If the window size is too large the program goes into an infinite curses X! loop and eventually segment faults. This will leave incorrect or corrupt X! lock (/tmp/#saillock.pid) and sync (/tmp/#sailsink.#) files behind. X*** ./usr/src/games/btlgammon/btlgammon.c.old Sun Oct 24 20:25:10 1982 X--- ./usr/src/games/btlgammon/btlgammon.c Mon Jan 26 20:18:33 2026 X*************** X*** 1,5 **** X! X static char sccsid[] = " backgammon.c 4.1 82/10/24 "; X X /* X ** The game of Backgammon X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X static char sccsid[] = " backgammon.c 4.1 82/10/24 "; X+ #endif X X /* X ** The game of Backgammon X*************** X*** 60,66 **** X srand(time(0)); X go[5] = NIL; X fprintf(stdout, "Instructions? "); X! gets(s); X if(*s == 'y') X instructions(); X putchar('\n'); X--- 61,67 ---- X srand(time(0)); X go[5] = NIL; X fprintf(stdout, "Instructions? "); X! fgets(s, sizeof (s), stdin); X if(*s == 'y') X instructions(); X putchar('\n'); X*************** X*** 67,73 **** X fprintf(stdout, "Opponent's level: b - beginner,\n"); X fprintf(stdout, "i - intermediate, e - expert? "); X level='e'; X! gets(s); X if(*s == 'b') X level = 'b'; X else if(*s == 'i') X--- 68,74 ---- X fprintf(stdout, "Opponent's level: b - beginner,\n"); X fprintf(stdout, "i - intermediate, e - expert? "); X level='e'; X! fgets(s, sizeof (s), stdin); X if(*s == 'b') X level = 'b'; X else if(*s == 'i') X*************** X*** 75,86 **** X putchar('\n'); X fprintf(stdout, "You will play brown.\n\n"); X fprintf(stdout, "Would you like to roll your own dice? "); X! gets(s); X putchar('\n'); X if(*s == 'y') X nobroll = 1; X fprintf(stdout, "Would you like to go first? "); X! gets(s); X putchar('\n'); X if(*s == 'y') X goto nowhmove; X--- 76,87 ---- X putchar('\n'); X fprintf(stdout, "You will play brown.\n\n"); X fprintf(stdout, "Would you like to roll your own dice? "); X! fgets(s, sizeof (s), stdin); X putchar('\n'); X if(*s == 'y') X nobroll = 1; X fprintf(stdout, "Would you like to go first? "); X! fgets(s, sizeof (s), stdin); X putchar('\n'); X if(*s == 'y') X goto nowhmove; X*************** X*** 107,113 **** X retry: X fprintf(stdout, "\nYour roll is %d %d\n", die1, die2); X fprintf(stdout, "Move? "); X! gets(s); X switch(*s) { X case '\0': /* empty line */ X fprintf(stdout, "Brown's move skipped.\n"); X--- 108,114 ---- X retry: X fprintf(stdout, "\nYour roll is %d %d\n", die1, die2); X fprintf(stdout, "Move? "); X! fgets(s, sizeof (s), stdin); X switch(*s) { X case '\0': /* empty line */ X fprintf(stdout, "Brown's move skipped.\n"); X*************** X*** 328,334 **** X X if(who == BROWN && nobroll) { X fprintf(stdout, "Roll? "); X! gets(s); X n = sscanf(s, "%d%d", &die1, &die2); X if(n != 2 || die1 < 1 || die1 > 6 || die2 < 1 || die2 > 6) X fprintf(stdout, "Illegal - I'll do it!\n"); X--- 329,335 ---- X X if(who == BROWN && nobroll) { X fprintf(stdout, "Roll? "); X! fgets(s, sizeof (s), stdin); X n = sscanf(s, "%d%d", &die1, &die2); X if(n != 2 || die1 < 1 || die1 > 6 || die2 < 1 || die2 > 6) X fprintf(stdout, "Illegal - I'll do it!\n"); X*** ./usr/src/games/hunt/hunt.c.old Tue Jan 7 20:44:01 2020 X--- ./usr/src/games/hunt/hunt.c Tue Sep 22 08:28:28 2026 X*************** X*** 9,15 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)hunt.c 1.1 (2.11BSD) 2020/1/7"; X #endif X X # include X--- 9,15 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)hunt.c 1.2 (2.11BSD) 2026/9/22"; X #endif X X # include X*************** X*** 58,64 **** X char *term; X extern int errno; X extern int Otto_mode; X! int dumpit(), intr(), sigterm(), sigemt(), tstp(); X X for (ac--, av++; ac > 0 && av[0][0] == '-'; ac--, av++) { X switch (av[0][1]) { X--- 58,64 ---- X char *term; X extern int errno; X extern int Otto_mode; X! void dumpit(), intr(), sigterm(), sigemt(), tstp(); X X for (ac--, av++; ac > 0 && av[0][0] == '-'; ac--, av++) { X switch (av[0][1]) { X*************** X*** 282,288 **** X static initial = TRUE; X static struct in_addr local_address; X register struct hostent *hp; X! int (*oldsigalrm)(), sigalrm(); X extern int errno; X # ifdef BROADCAST X static int brdc; X--- 282,289 ---- X static initial = TRUE; X static struct in_addr local_address; X register struct hostent *hp; X! sig_t oldsigalrm; X! void sigalrm(); X extern int errno; X # ifdef BROADCAST X static int brdc; X*************** X*** 564,569 **** X--- 565,571 ---- X * intr: X * Handle a interrupt signal X */ X+ void X intr() X { X register int ch; X*************** X*** 635,640 **** X--- 637,643 ---- X * tstp: X * Handle stop and start signals X */ X+ void X tstp() X { X static struct sgttyb tty; X*** ./usr/src/games/hunt/driver.c.old Wed Sep 10 00:08:40 1997 X--- ./usr/src/games/hunt/driver.c Tue Sep 22 08:29:59 2026 X*************** X*** 8,13 **** X--- 8,14 ---- X * specifies the terms and conditions for redistribution. X * X * 1997/9/9 - updated to use sigprocmask (and compute the alarm mask correctly) X+ * 2026/9/22 - fix signal prototypes X */ X X # include "hunt.h" X*************** X*** 190,196 **** X SOCKET test_port; X auto int msg; X # endif INTERNET X! int cleanup(); X X # ifndef DEBUG X (void) ioctl(fileno(stdout), TIOCNOTTY, NULL); X--- 191,197 ---- X SOCKET test_port; X auto int msg; X # endif INTERNET X! void cleanup(); X X # ifndef DEBUG X (void) ioctl(fileno(stdout), TIOCNOTTY, NULL); X*************** X*** 644,649 **** X--- 645,651 ---- X * cleanup: X * Exit with the given value, cleaning up any droppings lying around X */ X+ void X cleanup(eval) X int eval; X { X*** ./usr/src/games/rogue/curses.c.old Wed Nov 25 18:25:06 1987 X--- ./usr/src/games/rogue/curses.c Tue May 12 08:59:09 2026 X*************** X*** 10,18 **** X * X */ X X! #ifndef lint X! static char sccsid[] = "@(#)curses.c 5.1 (Berkeley) 11/25/87"; X! #endif /* not lint */ X X #ifdef CURSES X X--- 10,18 ---- X * X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)curses.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #ifdef CURSES X X*** ./usr/src/games/rogue/hit.c.old Wed Nov 25 18:25:06 1987 X--- ./usr/src/games/rogue/hit.c Tue May 12 08:59:33 2026 X*************** X*** 10,18 **** X * X */ X X! #ifndef lint X! static char sccsid[] = "@(#)hit.c 5.1 (Berkeley) 11/25/87"; X! #endif /* not lint */ X X #include "rogue.h" X X--- 10,18 ---- X * X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)hit.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "rogue.h" X X*** ./usr/src/games/rogue/init.c.old Wed Nov 25 18:25:07 1987 X--- ./usr/src/games/rogue/init.c Tue Sep 22 08:44:36 2026 X*************** X*** 10,18 **** X * X */ X X! #ifndef lint X! static char sccsid[] = "@(#)init.c 5.1 (Berkeley) 11/25/87"; X! #endif /* not lint */ X X #include X #include "rogue.h" X--- 10,18 ---- X * X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)init.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include X #include "rogue.h" X*************** X*** 165,170 **** X--- 165,171 ---- X md_control_keybord(1); X } X X+ void X byebye() X { X md_ignore_signals(); X*************** X*** 176,181 **** X--- 177,183 ---- X md_heed_signals(); X } X X+ void X onintr() X { X md_ignore_signals(); X*************** X*** 188,193 **** X--- 190,196 ---- X md_heed_signals(); X } X X+ void X error_save() X { X save_is_interactive = 0; X*** ./usr/src/games/rogue/inventory.c.old Sat Jan 2 20:44:19 1988 X--- ./usr/src/games/rogue/inventory.c Tue May 12 09:00:15 2026 X*************** X*** 10,18 **** X * X */ X X! #ifndef lint X! static char sccsid[] = "@(#)inventory.c 5.2 (Berkeley) 1/2/88"; X! #endif /* not lint */ X X #include "rogue.h" X X--- 10,18 ---- X * X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)inventory.c 5.3 (2.11BSD) 2026/5/12"; X! #endif X X #include "rogue.h" X X*** ./usr/src/games/rogue/level.c.old Wed Nov 25 18:25:09 1987 X--- ./usr/src/games/rogue/level.c Tue May 12 09:00:38 2026 X*************** X*** 10,18 **** X * X */ X X! #ifndef lint X! static char sccsid[] = "@(#)level.c 5.1 (Berkeley) 11/25/87"; X! #endif /* not lint */ X X #include "rogue.h" X X--- 10,18 ---- X * X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)level.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "rogue.h" X X*** ./usr/src/games/rogue/machdep.c.old Wed Nov 25 18:27:31 1987 X--- ./usr/src/games/rogue/machdep.c Tue May 12 09:11:14 2026 X*************** X*** 10,18 **** X * X */ X X! #ifndef lint X! static char sccsid[] = "@(#)machdep.c 5.2 (Berkeley) 11/25/87"; X! #endif /* not lint */ X X /* Included in this file are all system dependent routines. Extensive use X * of #ifdef's will be used to compile the appropriate code on each system: X--- 10,18 ---- X * X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)machdep.c 5.3 (2.11BSD) 2026/5/12"; X! #endif X X /* Included in this file are all system dependent routines. Extensive use X * of #ifdef's will be used to compile the appropriate code on each system: X*************** X*** 88,108 **** X X md_slurp() X { X! long ln = 0; X! X! #ifdef UNIX_BSD4_2 X! ioctl(0, FIONREAD, &ln); X! #endif X! #ifdef UNIX_SYSV X! ioctl(0, TCFLSH, &ln); X! ln = 0; X! #endif X! X! ln += stdin->_cnt; X! X! for (; ln > 0; ln--) { X! (void) getchar(); X! } X } X X /* md_control_keyboard(): X--- 88,94 ---- X X md_slurp() X { X! fpurge(stdin); X } X X /* md_control_keyboard(): X*** ./usr/src/games/rogue/main.c.old Wed Nov 25 18:25:12 1987 X--- ./usr/src/games/rogue/main.c Tue May 12 09:01:37 2026 X*************** X*** 10,18 **** X * X */ X X! #ifndef lint X! static char sccsid[] = "@(#)main.c 5.1 (Berkeley) 11/25/87"; X! #endif /* not lint */ X X #include "rogue.h" X X--- 10,18 ---- X * X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)main.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "rogue.h" X X*** ./usr/src/games/rogue/message.c.old Wed Nov 25 18:25:12 1987 X--- ./usr/src/games/rogue/message.c Tue May 12 09:01:59 2026 X*************** X*** 10,18 **** X * X */ X X! #ifndef lint X! static char sccsid[] = "@(#)message.c 5.1 (Berkeley) 11/25/87"; X! #endif /* not lint */ X X #include X #include "rogue.h" X--- 10,18 ---- X * X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)message.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include X #include "rogue.h" X*** ./usr/src/games/rogue/monster.c.old Wed Nov 25 18:25:14 1987 X--- ./usr/src/games/rogue/monster.c Tue May 12 09:02:20 2026 X*************** X*** 10,18 **** X * X */ X X! #ifndef lint X! static char sccsid[] = "@(#)monster.c 5.1 (Berkeley) 11/25/87"; X! #endif /* not lint */ X X #include "rogue.h" X X--- 10,18 ---- X * X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)monster.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "rogue.h" X X*** ./usr/src/games/rogue/move.c.old Wed Nov 25 18:25:15 1987 X--- ./usr/src/games/rogue/move.c Tue May 12 09:02:45 2026 X*************** X*** 10,18 **** X * X */ X X! #ifndef lint X! static char sccsid[] = "@(#)move.c 5.1 (Berkeley) 11/25/87"; X! #endif /* not lint */ X X #include "rogue.h" X X--- 10,18 ---- X * X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)move.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "rogue.h" X X*** ./usr/src/games/rogue/object.c.old Wed Nov 25 18:25:17 1987 X--- ./usr/src/games/rogue/object.c Tue May 12 09:03:18 2026 X*************** X*** 10,18 **** X * X */ X X! #ifndef lint X! static char sccsid[] = "@(#)object.c 5.1 (Berkeley) 11/25/87"; X! #endif /* not lint */ X X #include "rogue.h" X X--- 10,18 ---- X * X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)object.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "rogue.h" X X*** ./usr/src/games/rogue/pack.c.old Wed Nov 25 18:25:18 1987 X--- ./usr/src/games/rogue/pack.c Tue May 12 09:03:42 2026 X*************** X*** 10,18 **** X * X */ X X! #ifndef lint X! static char sccsid[] = "@(#)pack.c 5.1 (Berkeley) 11/25/87"; X! #endif /* not lint */ X X #include "rogue.h" X X--- 10,18 ---- X * X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)pack.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "rogue.h" X X*** ./usr/src/games/rogue/play.c.old Wed Nov 25 18:25:20 1987 X--- ./usr/src/games/rogue/play.c Tue May 12 09:04:04 2026 X*************** X*** 10,18 **** X * X */ X X! #ifndef lint X! static char sccsid[] = "@(#)play.c 5.1 (Berkeley) 11/25/87"; X! #endif /* not lint */ X X #include "rogue.h" X X--- 10,18 ---- X * X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)play.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "rogue.h" X X*** ./usr/src/games/rogue/random.c.old Wed Nov 25 18:25:21 1987 X--- ./usr/src/games/rogue/random.c Tue May 12 09:04:24 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)random.c 5.1 (Berkeley) 11/25/87"; X! #endif /* not lint */ X X static long rntb[32] = { X 3, 0x9a319039, 0x32d9c024, 0x9b663182, 0x5da1f342, X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)random.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X static long rntb[32] = { X 3, 0x9a319039, 0x32d9c024, 0x9b663182, 0x5da1f342, X*** ./usr/src/games/rogue/ring.c.old Wed Nov 25 18:25:22 1987 X--- ./usr/src/games/rogue/ring.c Tue May 12 09:04:45 2026 X*************** X*** 10,18 **** X * X */ X X! #ifndef lint X! static char sccsid[] = "@(#)ring.c 5.1 (Berkeley) 11/25/87"; X! #endif /* not lint */ X X #include "rogue.h" X X--- 10,18 ---- X * X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ring.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "rogue.h" X X*** ./usr/src/games/rogue/room.c.old Wed Nov 25 18:25:24 1987 X--- ./usr/src/games/rogue/room.c Tue May 12 09:05:07 2026 X*************** X*** 10,18 **** X * X */ X X! #ifndef lint X! static char sccsid[] = "@(#)room.c 5.1 (Berkeley) 11/25/87"; X! #endif /* not lint */ X X #include "rogue.h" X X--- 10,18 ---- X * X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)room.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "rogue.h" X X*** ./usr/src/games/rogue/save.c.old Wed Nov 25 18:25:25 1987 X--- ./usr/src/games/rogue/save.c Tue May 12 09:05:28 2026 X*************** X*** 10,18 **** X * X */ X X! #ifndef lint X! static char sccsid[] = "@(#)save.c 5.1 (Berkeley) 11/25/87"; X! #endif /* not lint */ X X #include X #include "rogue.h" X--- 10,18 ---- X * X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)save.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include X #include "rogue.h" X*** ./usr/src/games/rogue/score.c.old Wed Nov 25 18:27:58 1987 X--- ./usr/src/games/rogue/score.c Tue May 12 09:05:53 2026 X*************** X*** 10,18 **** X * X */ X X! #ifndef lint X! static char sccsid[] = "@(#)score.c 5.2 (Berkeley) 11/25/87"; X! #endif /* not lint */ X X #include X #include "rogue.h" X--- 10,18 ---- X * X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)score.c 5.3 (2.11BSD) 2026/5/12"; X! #endif X X #include X #include "rogue.h" X*** ./usr/src/games/rogue/spec_hit.c.old Wed Nov 25 18:25:26 1987 X--- ./usr/src/games/rogue/spec_hit.c Tue May 12 09:06:15 2026 X*************** X*** 10,18 **** X * X */ X X! #ifndef lint X! static char sccsid[] = "@(#)spec_hit.c 5.1 (Berkeley) 11/25/87"; X! #endif /* not lint */ X X #include "rogue.h" X X--- 10,18 ---- X * X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)spec_hit.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "rogue.h" X X*** ./usr/src/games/rogue/throw.c.old Wed Nov 25 18:25:26 1987 X--- ./usr/src/games/rogue/throw.c Tue May 12 09:06:41 2026 X*************** X*** 10,18 **** X * X */ X X! #ifndef lint X! static char sccsid[] = "@(#)throw.c 5.1 (Berkeley) 11/25/87"; X! #endif /* not lint */ X X #include "rogue.h" X X--- 10,18 ---- X * X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)throw.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "rogue.h" X X*** ./usr/src/games/rogue/trap.c.old Wed Nov 25 18:25:27 1987 X--- ./usr/src/games/rogue/trap.c Tue May 12 09:07:01 2026 X*************** X*** 10,18 **** X * X */ X X! #ifndef lint X! static char sccsid[] = "@(#)trap.c 5.1 (Berkeley) 11/25/87"; X! #endif /* not lint */ X X #include "rogue.h" X X--- 10,18 ---- X * X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)trap.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "rogue.h" X X*** ./usr/src/games/rogue/use.c.old Wed Nov 25 18:25:27 1987 X--- ./usr/src/games/rogue/use.c Tue May 12 09:07:24 2026 X*************** X*** 10,18 **** X * X */ X X! #ifndef lint X! static char sccsid[] = "@(#)use.c 5.1 (Berkeley) 11/25/87"; X! #endif /* not lint */ X X #include "rogue.h" X X--- 10,18 ---- X * X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)use.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "rogue.h" X X*** ./usr/src/games/rogue/zap.c.old Wed Nov 25 18:25:28 1987 X--- ./usr/src/games/rogue/zap.c Tue May 12 09:07:43 2026 X*************** X*** 10,18 **** X * X */ X X! #ifndef lint X! static char sccsid[] = "@(#)zap.c 5.1 (Berkeley) 11/25/87"; X! #endif /* not lint */ X X #include "rogue.h" X X--- 10,18 ---- X * X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)zap.c 5.2 (2.11BSD) 2026/5/12"; X! #endif X X #include "rogue.h" X X*** ./usr/src/games/rogue/Makefile.old Mon Dec 8 16:08:36 2025 X--- ./usr/src/games/rogue/Makefile Wed Jul 22 16:52:54 2026 X*************** X*** 9,17 **** X # software without specific written prior permission. This software X # is provided ``as is'' without express or implied warranty. X # X! # @(#)Makefile 5.3.2 (2.11BSD) 2025/11/25 X! # X CFLAGS= -O -DUNIX -DUNIX_BSD4_2 X SRCS= curses.c \ X hit.c \ X init.c \ X--- 9,18 ---- X # software without specific written prior permission. This software X # is provided ``as is'' without express or implied warranty. X # X! # @(#)Makefile 5.3.3 (2.11BSD) 2026/5/12 X! X CFLAGS= -O -DUNIX -DUNIX_BSD4_2 X+ X SRCS= curses.c \ X hit.c \ X init.c \ X*************** X*** 35,68 **** X trap.c \ X use.c \ X zap.c X! OBJS= curses.o \ X hit.o \ X- init.o \ X inventory.o \ X- level.o \ X machdep.o \ X main.o \ X- message.o \ X monster.o \ X move.o \ X object.o \ X- pack.o \ X play.o \ X random.o \ X- ring.o \ X- room.o \ X- save.o \ X- score.o \ X spec_hit.o \ X throw.o \ X! trap.o \ X! use.o \ X! zap.o X X all: rogue X X rogue: ${OBJS} X! ${CC} -i ${OBJS} -o $@ -lcurses -ltermlib X X clean: FRC X rm -f ${OBJS} core rogue X--- 36,68 ---- X trap.c \ X use.c \ X zap.c X! X! OV1= score.o zap.o X! OV2= init.o save.o X! OV3= message.o room.o X! OV4= level.o X! OV5= pack.o trap.o ring.o X! X! BASE= curses.o \ X hit.o \ X inventory.o \ X machdep.o \ X main.o \ X monster.o \ X move.o \ X object.o \ X play.o \ X random.o \ X spec_hit.o \ X throw.o \ X! use.o X X+ OBJS= ${BASE} ${OV1} ${OV2} ${OV3} ${OV4} ${OV5} X+ X all: rogue X X rogue: ${OBJS} X! ${CC} -i ${BASE} -Z ${OV1} -Z ${OV2} -Z ${OV3} -Z ${OV4} -Z ${OV5} -Y -o $@ -lcurses -ltermlib X X clean: FRC X rm -f ${OBJS} core rogue X*************** X*** 71,78 **** X mkdep ${CFLAGS} ${SRCS} X X install: rogue X! install -c -s -o games -g staff -m 4700 rogue /usr/games/hide X! (cd /usr/games; rm -f rogue; ln -s dm rogue; chown games.bin rogue) X X lint: FRC X lint ${CFLAGS} ${SRCS} X--- 71,78 ---- X mkdep ${CFLAGS} ${SRCS} X X install: rogue X! install -c -s -m 4711 -o daemon -g staff rogue /usr/games X! install -c -m 644 -o daemon /dev/null /usr/games/lib/rogue.scores X X lint: FRC X lint ${CFLAGS} ${SRCS} X*************** X*** 84,158 **** X X # DO NOT DELETE THIS LINE -- mkdep uses it. X # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. X- X- curses.o: curses.c X- hit.o: hit.c rogue.h /usr/include/curses.h /usr/include/stdio.h X- hit.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X- hit.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- init.o: init.c /usr/include/stdio.h rogue.h /usr/include/curses.h X- init.o: /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h X- init.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- inventory.o: inventory.c rogue.h /usr/include/curses.h /usr/include/stdio.h X- inventory.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X- inventory.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- level.o: level.c rogue.h /usr/include/curses.h /usr/include/stdio.h X- level.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X- level.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- machdep.o: machdep.c /usr/include/stdio.h /usr/include/sys/types.h X- machdep.o: /usr/include/sys/file.h /usr/include/sys/stat.h /usr/include/pwd.h X- machdep.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/sgtty.h X- machdep.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h X- machdep.o: /usr/include/sys/ttydev.h /usr/include/signal.h X- machdep.o: /usr/include/machine/trap.h rogue.h /usr/include/curses.h X- machdep.o: /usr/include/stdio.h /usr/include/sgtty.h X- main.o: main.c rogue.h /usr/include/curses.h /usr/include/stdio.h X- main.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X- main.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- message.o: message.c /usr/include/stdio.h rogue.h /usr/include/curses.h X- message.o: /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h X- message.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- monster.o: monster.c rogue.h /usr/include/curses.h /usr/include/stdio.h X- monster.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X- monster.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- move.o: move.c rogue.h /usr/include/curses.h /usr/include/stdio.h X- move.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X- move.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- object.o: object.c rogue.h /usr/include/curses.h /usr/include/stdio.h X- object.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X- object.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- pack.o: pack.c rogue.h /usr/include/curses.h /usr/include/stdio.h X- pack.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X- pack.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- play.o: play.c rogue.h /usr/include/curses.h /usr/include/stdio.h X- play.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X- play.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- random.o: random.c X- ring.o: ring.c rogue.h /usr/include/curses.h /usr/include/stdio.h X- ring.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X- ring.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- room.o: room.c rogue.h /usr/include/curses.h /usr/include/stdio.h X- room.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X- room.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- save.o: save.c /usr/include/stdio.h rogue.h /usr/include/curses.h X- save.o: /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h X- save.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- score.o: score.c /usr/include/stdio.h rogue.h /usr/include/curses.h X- score.o: /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h X- score.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- spec_hit.o: spec_hit.c rogue.h /usr/include/curses.h /usr/include/stdio.h X- spec_hit.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X- spec_hit.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- throw.o: throw.c rogue.h /usr/include/curses.h /usr/include/stdio.h X- throw.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X- throw.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- trap.o: trap.c rogue.h /usr/include/curses.h /usr/include/stdio.h X- trap.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X- trap.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- use.o: use.c rogue.h /usr/include/curses.h /usr/include/stdio.h X- use.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X- use.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- zap.o: zap.c rogue.h /usr/include/curses.h /usr/include/stdio.h X- zap.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X- zap.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- X- # IF YOU PUT ANYTHING HERE IT WILL GO AWAY X--- 84,86 ---- X*** ./usr/src/games/rogue/rogue.h.old Mon Jan 18 11:56:20 1993 X--- ./usr/src/games/rogue/rogue.h Tue Sep 22 08:44:23 2026 X*************** X*** 8,14 **** X * 3.) This code is not to be traded, sold, or used for personal X * gain or profit. X * X! * @(#)rogue.h 5.2 (Berkeley) 11/25/87 X */ X X #define boolean char X--- 8,14 ---- X * 3.) This code is not to be traded, sold, or used for personal X * gain or profit. X * X! * @(#)rogue.h 5.3 (2.11BSD) 2026/9/22 X */ X X #define boolean char X*************** X*** 427,433 **** X long rrandom(); X long lget_number(); X long xxx(); X! int byebye(), onintr(), error_save(); X X struct rogue_time { X short year; /* >= 1987 */ X--- 427,433 ---- X long rrandom(); X long lget_number(); X long xxx(); X! void byebye(), onintr(), error_save(); X X struct rogue_time { X short year; /* >= 1987 */ X*** ./usr/src/games/rain.c.old Wed Aug 26 00:04:59 1987 X--- ./usr/src/games/rain.c Tue Sep 22 03:00:22 2026 X*************** X*** 4,49 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)rain.c 5.2 (Berkeley) 7/15/85"; X! #endif not lint X X- #define BSD X- X #include X- #ifdef USG X- #include X- #else X #include X- #endif X #include X! /* rain 11/3/1980 EPS/CITHEP */ X! /* cc rain.c -o rain -O -ltermlib */ X #define cursor(col,row) tputs(tgoto(CM,col,row),1,fputchar) X extern char *UP; X extern short ospeed; X- #ifdef USG X- struct termio old_tty; X- #else X struct sgttyb old_tty; X- #endif X char *LL, *TE, *TI; X main(argc,argv) X int argc; X char *argv[]; X { X extern fputchar(); X- char *malloc(); X- char *getenv(); X char *tgetstr(), *tgoto(); X float ranf(); X! int onsig(); X register int x, y, j; X static int xpos[5], ypos[5]; X register char *CM, *BC, *DN, *ND; X--- 4,37 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)rain.c 5.3 (2.11BSD) 2026/5/10"; X! #endif X X #include X #include X #include X! #include X! X #define cursor(col,row) tputs(tgoto(CM,col,row),1,fputchar) X+ X extern char *UP; X extern short ospeed; X struct sgttyb old_tty; X char *LL, *TE, *TI; X+ X main(argc,argv) X int argc; X char *argv[]; X { X extern fputchar(); X char *tgetstr(), *tgoto(); X float ranf(); X! void onsig(); X register int x, y, j; X static int xpos[5], ypos[5]; X register char *CM, *BC, *DN, *ND; X*************** X*** 51,61 **** X char *tcp; X register char *term; X char tcb[100]; X- #ifdef USG X- struct termio sg; X- #else X struct sgttyb sg; X- #endif X float cols, lines; X X setbuf(stdout,malloc(BUFSIZ)); X--- 39,45 ---- X*************** X*** 85,112 **** X TI=tgetstr("ti",&tcp); X UP=tgetstr("up",&tcp); X if (!(LL=tgetstr("ll",&tcp))) strcpy(LL=malloc(10),tgoto(CM,0,23)); X- #ifdef USG X- ioctl(1, TCGETA, &sg); X- ospeed=sg.c_cflag&CBAUD; X- #else X gtty(1, &sg); X ospeed=sg.sg_ospeed; X- #endif X for (j=SIGHUP;j<=SIGTERM;j++) X if (signal(j,SIG_IGN)!=SIG_IGN) signal(j,onsig); X- #ifdef USG X- ioctl(1, TCGETA, &old_tty); /* save tty bits for exit */ X- ioctl(1, TCGETA, &sg); X- sg.c_iflag&=~ICRNL; X- sg.c_oflag&=~ONLCR; X- sg.c_lflag&=~ECHO; X- ioctl(1, TCSETAW, &sg); X- #else X gtty(1, &old_tty); /* save tty bits for exit */ X gtty(1, &sg); X sg.sg_flags&=~(CRMOD|ECHO); X stty(1, &sg); X- #endif X if (TI) tputs(TI,1,fputchar); X tputs(tgetstr("cl",&tcp),1,fputchar); X fflush(stdout); X--- 69,82 ---- X*************** X*** 153,176 **** X fflush(stdout); X } X } X onsig(n) X int n; X { X- #ifdef USG X- struct termio sg; X- #else X struct sgttyb sg; X- #endif X int fputchar(); X X tputs(LL, 1, fputchar); X if (TE) tputs(TE, 1, fputchar); X fflush(stdout); X- #ifdef USG X- ioctl(1, TCSETAW, &old_tty); X- #else X stty(1, &old_tty); X- #endif X kill(getpid(),n); X _exit(0); X } X--- 123,140 ---- X fflush(stdout); X } X } X+ X+ void X onsig(n) X int n; X { X struct sgttyb sg; X int fputchar(); X X tputs(LL, 1, fputchar); X if (TE) tputs(TE, 1, fputchar); X fflush(stdout); X stty(1, &old_tty); X kill(getpid(),n); X _exit(0); X } X*************** X*** 180,186 **** X putchar(c); X } X float ranf() { X! #if defined(BSD) && !defined(pdp11) X return((float)rand()/2147483647.); X #else X return((float)rand()/32767.); X--- 144,150 ---- X putchar(c); X } X float ranf() { X! #if !defined(pdp11) X return((float)rand()/2147483647.); X #else X return((float)rand()/32767.); X*** ./usr/src/games/banner.c.old Sun Oct 24 20:25:44 1982 X--- ./usr/src/games/banner.c Tue Jan 27 12:02:11 2026 X*************** X*** 1,6 **** X X- static char sccsid[] = " banner.c 4.1 82/10/24 "; X- X /* X * banner - prints large signs X * banner [-w#] [-d] [-t] message ... X--- 1,7 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = " banner.c 4.2 2026/1/27"; X+ #endif X X /* X * banner - prints large signs X * banner [-w#] [-d] [-t] message ... X*************** X*** 7,15 **** X */ X X #include X! #define dir(f) "/e1/mrh/ucb/lib/f" X! #define INDTBL dir(ban.dat.indtbl) X! #define OBJECT dir(ban.dat.object) X #define MAXMSG 100 X #define DWIDTH 132 X #define NCHARS 128 X--- 8,15 ---- X */ X X #include X! #include X! X #define MAXMSG 100 X #define DWIDTH 132 X #define NCHARS 128 X*************** X*** 987,993 **** X char *messp; X int nchars; X int linen; X- int x,y; X int term,dup; X int pc; X int max; X--- 987,992 ---- X*************** X*** 996,1001 **** X--- 995,1003 ---- X int argc; X char **argv; X { X+ register int x,y; X+ char *cp; X+ X if (argc > 1 && argv[1][0] == '-') { X switch(argv[1][1]) { X case 'w': X*************** X*** 1021,1038 **** X j = i * 132 / width; X print[j] = 1; X } X- #ifdef notdef X- fd = fopen(INDTBL, "r"); X- for (i=0; i 1) { X strcpy(message, argv[1]); X--- 1023,1029 ---- X*************** X*** 1042,1048 **** X } X } else { X fprintf(stderr,"Message: "); X! gets(message); X } X nchars = strlen(message); X X--- 1033,1043 ---- X } X } else { X fprintf(stderr,"Message: "); X! { X! fgets(message, sizeof (message), stdin); X! cp = index(message, '\n'); X! if (cp) *cp = '\0'; X! } X } X nchars = strlen(message); X X*************** X*** 1115,1124 **** X else { X y = data_table[pc+1]; X /* compensate for narrow teminals */ X- #ifdef notdef X- x = (x*width + (DWIDTH/2)) / DWIDTH; X- y = (y*width + (DWIDTH/2)) / DWIDTH; X- #endif X max = x+y; X while (x < max) line[x++] = '#'; X pc += 2; X--- 1110,1115 ---- X*************** X*** 1127,1132 **** X } X } X } X- X exit(0); X } X--- 1118,1122 ---- X*** ./usr/src/games/factor.c.old Mon Jun 13 02:57:43 1983 X--- ./usr/src/games/factor.c Sun May 10 21:54:55 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)factor.c 4.1 (Wollongong) 6/13/83"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)factor.c 4.2 (2.11BSD) 2026/5/10"; X #endif X X /* X*** ./usr/src/games/cfscores.c.old Wed May 29 13:20:33 1985 X--- ./usr/src/games/cfscores.c Mon May 11 07:33:49 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)cfscores.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X #include X X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)cfscores.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include X X*** ./usr/src/games/fish.c.old Wed May 29 13:21:49 1985 X--- ./usr/src/games/fish.c Mon May 11 07:37:05 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)fish.c 5.1 (Berkeley) 5/29/85"; X! #endif not lint X X # include X X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)fish.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X # include X X*** ./usr/src/games/worms.c.old Tue Jun 5 19:17:47 1990 X--- ./usr/src/games/worms.c Tue Sep 22 03:03:46 2026 X*************** X*** 1,12 **** X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)worms.c 5.3 (Berkeley) 7/15/85"; X! #endif not lint X X #define BSD X X--- 1,10 ---- X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)worms.c 5.4 (2.11BSD) 2026/5/11"; X! #endif X X #define BSD X X*************** X*** 28,38 **** X X */ X #include X- #ifdef USG X- #include X- #else X #include X- #endif X #include X int fputchar(); X #define cursor(col,row) tputs(tgoto(CM,col,row),1,fputchar) X--- 26,32 ---- X*************** X*** 147,153 **** X char *malloc(); X char *getenv(); X char *tgetstr(), *tgoto(); X! int quit(); X float ranf(); X register int x, y; X register int n; X--- 141,147 ---- X char *malloc(); X char *getenv(); X char *tgetstr(), *tgoto(); X! void quit(); X float ranf(); X register int x, y; X register int n; X*************** X*** 160,170 **** X char *tcp; X register char *term; X char tcb[100]; X- #ifdef USG X- struct termio sg; X- #else X struct sgttyb sg; X! #endif X setbuf(stdout,malloc(BUFSIZ)); X for (x=1;x X #include X #define MAX 100 X--- 1,5 ---- X+ /* arithmetic.c 4.2 (2.11BSD) 2026/9/22"; */ X X #include X #include X #define MAX 100 X*************** X*** 21,27 **** X char line[100]; X int ans,pans,i,j,t; X char dir,sense; X! extern delete(); X X signal(SIGINT, delete); X X--- 20,26 ---- X char line[100]; X int ans,pans,i,j,t; X char dir,sense; X! extern void delete(); X X signal(SIGINT, delete); X X*** ./usr/src/games/canfield.c.old Tue Jan 17 02:03:26 1995 X--- ./usr/src/games/canfield.c Tue Sep 22 08:56:45 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)canfield.c 5.4.2 (2.11BSD GTE) 1/16/95"; X #endif X X /* X--- 9,15 ---- X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)canfield.c 5.4.3 (2.11BSD) 2026/9/22"; X #endif X X /* X*************** X*** 1560,1565 **** X--- 1560,1566 ---- X /* X * Field an interrupt. X */ X+ void X askquit() X { X move(msgrow, msgcol); X*************** X*** 1576,1581 **** X--- 1577,1583 ---- X /* X * procedure to clean up and exit X */ X+ void X cleanup() X { X X*** ./usr/src/lib/ccom/c01.c.old Fri Jan 21 14:13:17 2022 X--- ./usr/src/lib/ccom/c01.c Mon Jan 26 12:39:02 2026 X*************** X*** 3,9 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)c01.c 2.1 (2.11BSD) 2022/1/21"; X #endif X X #include "c0.h" X--- 3,9 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)c01.c 2.2 (2.11BSD) 2026/1/26"; X #endif X X #include "c0.h" X*************** X*** 290,304 **** X if (leftc) X cvn = leftc; X leftc = 0; X! } else if (op==COLON || op==MAX || op==MIN) { X if (t1>=PTR && t1==t2) X cvn = 0; X- if (op!=COLON && (t1>=PTR || t2>=PTR)) X- op += MAXP-MAX; X /* X * Allow "e ? i : p" and "e ? p : i" with warning. X */ X! if (op==COLON && (cvn==ITP || cvn==LTP)) { X p3 = leftc? p1: p2; X if ((p3->t.op!=CON || p3->c.value!=0) X && (p3->t.op!=LCON || p3->l.lvalue!=0)) { X--- 290,302 ---- X if (leftc) X cvn = leftc; X leftc = 0; X! } else if (op==COLON) { X if (t1>=PTR && t1==t2) X cvn = 0; X /* X * Allow "e ? i : p" and "e ? p : i" with warning. X */ X! if (cvn==ITP || cvn==LTP) { X p3 = leftc? p1: p2; X if ((p3->t.op!=CON || p3->c.value!=0) X && (p3->t.op!=LCON || p3->l.lvalue!=0)) { X*** ./usr/src/lib/ccom/c02.c.old Tue Jan 7 13:22:11 2020 X--- ./usr/src/lib/ccom/c02.c Mon Jan 26 12:39:15 2026 X*************** X*** 2,8 **** X * C compiler X */ X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)c02.c 2.0 (2.11BSD) 2020/1/7"; X #endif X X #include "c0.h" X--- 2,8 ---- X * C compiler X */ X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)c02.c 2.1 (2.11BSD) 2026/1/26"; X #endif X X #include "c0.h" X*************** X*** 329,335 **** X return; X } X peeksym = o; X! statement(); X } X error("Missing '}'"); X return; X--- 329,341 ---- X return; X } X peeksym = o; X! if ((o == KEYW && cval <= STRTAG) || X! (o == NAME && csym->hclass == TYPEDEF)) { X! /* declaration in middle of statement */ X! blklev--; /* blockhead() will increase */ X! blockhead(); X! } else X! statement(); X } X error("Missing '}'"); X return; X*** ./usr/src/lib/ccom/c03.c.old Fri Aug 29 20:34:27 2025 X--- ./usr/src/lib/ccom/c03.c Mon Jan 26 12:39:28 2026 X*************** X*** 6,12 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)c03.c 2.2 (2.11BSD) 2025/8/29"; X #endif X #include "c0.h" X X--- 6,12 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)c03.c 2.3 (2.11BSD) 2026/1/26"; X #endif X #include "c0.h" X X*************** X*** 91,96 **** X--- 91,97 ---- X case CONST: X case VOLATIL: X case SIGNED: X+ case RESTR: X continue; X X case UNION: X*************** X*** 180,186 **** X mosflg = mosf; X do { X o = symbol(); X! } while (o == KEYW && (cval == CONST || cval == VOLATIL)); X if (o==LBRACE && ssym->hblklevhclass && ssym->hclass!=tagkind) { X--- 181,188 ---- X mosflg = mosf; X do { X o = symbol(); X! } while (o == KEYW && X! (cval == CONST || cval == VOLATIL || cval == RESTR)); X if (o==LBRACE && ssym->hblklevhclass && ssym->hclass!=tagkind) { X*************** X*** 585,591 **** X type = 0; X more: switch(o=symbol()) { X case KEYW: X! if (cval == CONST || cval == VOLATIL) { X mosflg = mossym; X mossym = 0; X goto more; X--- 587,593 ---- X type = 0; X more: switch(o=symbol()) { X case KEYW: X! if (cval == CONST || cval == VOLATIL || cval == RESTR) { X mosflg = mossym; X mossym = 0; X goto more; X*** ./usr/src/lib/ccom/c10.c.old Fri Dec 26 00:01:01 2025 X--- ./usr/src/lib/ccom/c10.c Wed Jan 28 07:27:03 2026 X*************** X*** 6,12 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)c10.c 2.2 (2.11BSD) 2025/12/25"; X #endif X X #include "c1.h" X--- 6,12 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)c10.c 2.3 (2.11BSD) 2026/1/28"; X #endif X X #include "c1.h" X*************** X*** 1172,1177 **** X--- 1172,1178 ---- X lbuf.type = tree->t.type; X lbuf.degree = tree->t.degree; X lbuf.tr1 = tree; X+ lbuf.tr2 = NULL; X return(rcexpr((union tree *)&lbuf, table, reg)); X } X X*** ./usr/src/lib/ccom/c0.h.old Tue Jan 7 13:20:27 2020 X--- ./usr/src/lib/ccom/c0.h Mon Jan 26 12:38:28 2026 X*************** X*** 3,9 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)c0.h 2.0 (2.11BSD) 2020/1/7"; X #endif X #include X X--- 3,9 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)c0.h 2.1 (2.11BSD) 2026/1/26"; X #endif X #include X X*************** X*** 304,312 **** X #define ASSIGN 80 X X #define QUEST 90 X! #define MAX 93 X #define MAXP 94 X! #define MIN 95 X #define MINP 96 X #define SEQNC 97 X #define CALL 100 X--- 304,312 ---- X #define ASSIGN 80 X X #define QUEST 90 X! /* #define MAX 93 */ X #define MAXP 94 X! /* #define MIN 95 */ X #define MINP 96 X #define SEQNC 97 X #define CALL 100 X*************** X*** 370,375 **** X--- 370,376 ---- X #define SIGNED 5 X #define CONST 16 X #define VOLATIL 17 X+ #define RESTR 18 X X /* X keywords X*** ./usr/src/lib/ccom/c00.c.old Tue Sep 24 09:46:15 2024 X--- ./usr/src/lib/ccom/c00.c Mon Jan 26 12:38:48 2026 X*************** X*** 7,13 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)c00.c 2.4 (2.11BSD) 2024/9/24"; X #endif X X #include "c0.h" X--- 7,13 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)c00.c 2.5 (2.11BSD) 2026/1/26"; X #endif X X #include "c0.h" X*************** X*** 57,62 **** X--- 57,63 ---- X "const", CONST, X "volatile", VOLATIL, X "signed", SIGNED, X+ "restrict", RESTR, X 0, 0, X }; X X*************** X*** 293,305 **** X return(subseq('=',EXCLA,NEQUAL)); X X case BSLASH: X- if (subseq('/', 0, 1)) X- return(MAX); X goto unkn; X X case DIVIDE: X- if (subseq('\\', 0, 1)) X- return(MIN); X if (subseq('*',1,0)) X return(DIVIDE); X while ((c = spnextchar()) != EOFC) { X--- 294,302 ---- X*** ./usr/src/lib/libc/gen/devname.c.old Sat Feb 4 00:08:23 1995 X--- ./usr/src/lib/libc/gen/devname.c Fri May 29 21:46:59 2026 X*************** X*** 32,39 **** X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)devname.c 8.1.1 (2.11BSD GTE) 2/3/95"; X! #endif /* LIBC_SCCS and not lint */ X X #include X #include X--- 32,39 ---- X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)devname.c 8.1.2 (2.11BSD) 2026/5/27"; X! #endif X X #include X #include X*************** X*** 41,46 **** X--- 41,49 ---- X #include X #include X X+ static DBM *db; X+ static int failure; X+ X char * X devname(dev, type) X dev_t dev; X*************** X*** 51,58 **** X dev_t dev; X } bkey; X char *devdb = _PATH_DEVDB; X- static DBM *db; X- static int failure; X datum data, key; X X if (!db && !failure && X--- 54,59 ---- X*************** X*** 76,78 **** X--- 77,96 ---- X data = dbm_fetch(db, key); X return(data.dptr == NULL ? "??" : (char *)data.dptr); X } X+ X+ /* X+ * New for 2.11BSD 35th Anniversary Edition. X+ * X+ * Programs such as 'top' need to map dev_t(s) to name(s) at startup but have X+ * high D space needs. This interface frees the DBM memory for other uses. X+ */ X+ X+ void X+ devname_close() X+ { X+ X+ if (db) X+ dbm_close(db); X+ db = NULL; X+ failure = 0; X+ } X*** ./usr/src/lib/libc/gen/Makefile.old Fri Jan 2 18:45:20 2026 X--- ./usr/src/lib/libc/gen/Makefile Fri Jun 5 14:12:15 2026 X*************** X*** 3,9 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.7.12 (2.11BSD) 2025/11/29 X # X # Several routines have been rewritten in assembly language for the VAX and X # the PDP. If you are not running on a VAX or PDP, you should use the X--- 3,9 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.7.13 (2.11BSD) 2026/6/5 X # X # Several routines have been rewritten in assembly language for the VAX and X # the PDP. If you are not running on a VAX or PDP, you should use the X*************** X*** 20,26 **** X getgrouplist.c gethostname.c getpagesize.c \ X getpass.c getpwent.c getloadavg.c getmntinfo.c \ X getttyent.c getttynam.c getusershell.c getwd.c \ X! initgroups.c isatty.c malloc.c mktemp.c ndbm.c nlist.c \ X opendir.c perror.c popen.c psignal.c qsort.c random.c readdir.c \ X regex.c scandir.c seekdir.c \ X setmode.c sethostname.c \ X--- 20,26 ---- X getgrouplist.c gethostname.c getpagesize.c \ X getpass.c getpwent.c getloadavg.c getmntinfo.c \ X getttyent.c getttynam.c getusershell.c getwd.c \ X! initgroups.c isatty.c isctype.c malloc.c mktemp.c ndbm.c nlist.c \ X opendir.c perror.c popen.c psignal.c qsort.c random.c readdir.c \ X regex.c scandir.c seekdir.c \ X setmode.c sethostname.c \ X*************** X*** 27,32 **** X--- 27,33 ---- X setenv.c siglist.c signal.c siginterrupt.c \ X sigsetops.c \ X sleep.c strcasecmp.c strftime.c swab.c sysctl.c syslog.c system.c \ X+ swapdevname.c \ X syserrlst.c \ X telldir.c time.c timezone.c ttyname.c ttyslot.c ualarm.c usleep.c \ X valloc.c strdup.c uname.c wait.c wait3.c waitpid.c X*************** X*** 37,43 **** X getgrouplist.o gethostname.o getpagesize.o \ X getpass.o getpwent.o getloadavg.o getmntinfo.o \ X getttyent.o getttynam.o getusershell.o getwd.o \ X! initgroups.o isatty.o malloc.o mktemp.o ndbm.o nlist.o \ X opendir.o perror.o popen.o psignal.o qsort.o random.o readdir.o \ X regex.o scandir.o seekdir.o \ X setmode.o sethostname.o \ X--- 38,44 ---- X getgrouplist.o gethostname.o getpagesize.o \ X getpass.o getpwent.o getloadavg.o getmntinfo.o \ X getttyent.o getttynam.o getusershell.o getwd.o \ X! initgroups.o isatty.o isctype.o malloc.o mktemp.o ndbm.o nlist.o \ X opendir.o perror.o popen.o psignal.o qsort.o random.o readdir.o \ X regex.o scandir.o seekdir.o \ X setmode.o sethostname.o \ X*************** X*** 44,49 **** X--- 45,51 ---- X setenv.o siglist.o signal.o siginterrupt.o \ X sigsetops.o \ X sleep.o strcasecmp.o strftime.o swab.o sysctl.o syslog.o system.o \ X+ swapdevname.o \ X syserrlst.o \ X telldir.o time.o timezone.o ttyname.o ttyslot.o ualarm.o usleep.o \ X valloc.o strdup.o uname.o wait.o wait3.o waitpid.o X*** ./usr/src/lib/libc/gen/ctype_.c.old Sun Mar 9 22:45:42 1986 X--- ./usr/src/lib/libc/gen/ctype_.c Mon Jan 26 12:40:18 2026 X*************** X*** 1,6 **** X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)ctype_.c 5.4 (Berkeley) 3/9/86"; X! #endif LIBC_SCCS and not lint X X #include X X--- 1,6 ---- X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)ctype_.c 5.5 (2.11BSD) 2026/1/26"; X! #endif X X #include X X*************** X*** 23,25 **** X--- 23,43 ---- X _L, _L, _L, _L, _L, _L, _L, _L, X _L, _L, _L, _P, _P, _P, _P, _C X }; X+ X+ int X+ isblank(int c) X+ { X+ return c == ' ' || c == '\t'; X+ } X+ X+ int X+ tolower(int c) X+ { X+ return (isupper(c) ? ((c)-'A'+'a') : c); X+ } X+ X+ int X+ toupper(int c) X+ { X+ return (islower(c) ? ((c)-'a'+'A') : c); X+ } X*** ./usr/src/lib/libc/gen/strftime.c.old Mon Apr 3 01:04:07 1995 X--- ./usr/src/lib/libc/gen/strftime.c Sun Jun 7 16:38:59 2026 X*************** X*** 32,39 **** X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)strftime.c 8.1.1 (2.11BSD) 1995/04/01"; X! #endif /* LIBC_SCCS and not lint */ X X #include X #include X--- 32,39 ---- X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)strftime.c 8.1.2 (2.11BSD) 2026/6/7"; X! #endif X X #include X #include X*************** X*** 106,112 **** X case 'h': X if (t->tm_mon < 0 || t->tm_mon > 11) X return(0); X! if (ch == 'b') X { X bcopy(Bfmt[t->tm_mon], junk, 3); X junk[3] = '\0'; X--- 106,112 ---- X case 'h': X if (t->tm_mon < 0 || t->tm_mon > 11) X return(0); X! if (ch != 'B') X { X bcopy(Bfmt[t->tm_mon], junk, 3); X junk[3] = '\0'; X*** ./usr/src/lib/libc/gen/calloc.c.old Sun Mar 9 22:44:46 1986 X--- ./usr/src/lib/libc/gen/calloc.c Thu Sep 17 07:59:46 2026 X*************** X*** 1,15 **** X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)calloc.c 5.2 (Berkeley) 3/9/86"; X #endif LIBC_SCCS and not lint X X /* X * Calloc - allocate and clear memory block X */ X! char * X calloc(num, size) X register unsigned num, size; X { X- extern char *malloc(); X register char *p; X X size *= num; X--- 1,17 ---- X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)calloc.c 5.3 (2.11BSD) 2026/8/19"; X #endif LIBC_SCCS and not lint X X+ #include X+ #include X+ X /* X * Calloc - allocate and clear memory block X */ X! void * X calloc(num, size) X register unsigned num, size; X { X register char *p; X X size *= num; X*************** X*** 16,27 **** X if (p = malloc(size)) X bzero(p, size); X return (p); X- } X- X- cfree(p, num, size) X- char *p; X- unsigned num; X- unsigned size; X- { X- free(p); X } X--- 18,21 ---- X*** ./usr/src/lib/libc/gen/malloc.c.old Sun Jul 25 23:19:30 1999 X--- ./usr/src/lib/libc/gen/malloc.c Fri Aug 21 19:47:29 2026 X*************** X*** 1,4 **** X! /* @(#)malloc.c 2.3 (2.11BSD) 1999/1/18 */ X X #include X X--- 1,4 ---- X! /* @(#)malloc.c 2.4 (2.11BSD) 2026/8/20 */ X X #include X X*************** X*** 55,61 **** X * Uses circular first-fit strategy. Works with a noncontiguous, but X * monotonically linked, arena. Each block is preceded by a ptr to the X * pointer of the next following block. Blocks are exact number of words X! * long aligned to the data type requirements of ALIGN. X * X * Bit 0 (LSB) of pointers is used to indicate whether the block associated X * with the pointer is in use. A 1 indicates a busy block and a 0 a free X--- 55,61 ---- X * Uses circular first-fit strategy. Works with a noncontiguous, but X * monotonically linked, arena. Each block is preceded by a ptr to the X * pointer of the next following block. Blocks are exact number of words X! * aligned to the data type requirements of ALIGN. X * X * Bit 0 (LSB) of pointers is used to indicate whether the block associated X * with the pointer is in use. A 1 indicates a busy block and a 0 a free X*************** X*** 82,89 **** X union store { X union store *ptr; X ALIGN dummy[NALIGN]; X! int calloc; /* calloc clears an array of integers */ X! }; X X static union store allocs[2]; /* initial arena */ X static union store *allocp; /* search ptr */ X--- 82,88 ---- X union store { X union store *ptr; X ALIGN dummy[NALIGN]; X! }; X X static union store allocs[2]; /* initial arena */ X static union store *allocp; /* search ptr */ X*************** X*** 92,98 **** X X extern char *sbrk(); X X! char * X malloc(nbytes) X unsigned nbytes; X { X--- 91,97 ---- X X extern char *sbrk(); X X! void * X malloc(nbytes) X unsigned nbytes; X { X*************** X*** 164,169 **** X--- 163,169 ---- X /* X * Freeing strategy tuned for LIFO allocation. X */ X+ void X free(ap) X register char *ap; X { X*************** X*** 182,188 **** X * since last call of malloc() to have new size nbytes, and old content X * returns new location, or 0 on failure. X */ X! char * X realloc(p, nbytes) X register union store *p; X unsigned nbytes; X--- 182,188 ---- X * since last call of malloc() to have new size nbytes, and old content X * returns new location, or 0 on failure. X */ X! void * X realloc(p, nbytes) X register union store *p; X unsigned nbytes; X*** ./usr/src/lib/libc/gen/usleep.c.old Fri Sep 26 12:21:42 1997 X--- ./usr/src/lib/libc/gen/usleep.c Sat Sep 19 11:09:35 2026 X*************** X*** 1,13 **** X /* X! * Program: sleep.c X * Copyright: 1997, sms X * Author: Steven M. Schultz X * X * Version Date Modification X * 1.0 1997/9/26 1. Initial release. X */ X X! #include /* For NULL */ X #include X #include X X--- 1,15 ---- X /* X! * Program: usleep.c X * Copyright: 1997, sms X * Author: Steven M. Schultz X * X * Version Date Modification X * 1.0 1997/9/26 1. Initial release. X+ * 1.1 2026/9/17 2. Fix Program: name X+ * Document limitation of select(). X */ X X! #include X #include X #include X X*************** X*** 18,25 **** X--- 20,32 ---- X * X * Nothing is returned and if less than ~20000 microseconds is specified the X * select will return without any delay at all. X+ * X+ * select() can sleep for a maximum of 32767 clock ticks. This is about X+ * 9 minutes with a 60Hz clock and 13 minutes with a 50Hz clock. sleep(3) X+ * uses a loop for longer sleeps. X */ X X+ void X usleep(micros) X long micros; X { X*** ./usr/src/lib/libc/gen/sleep.c.old Fri Sep 26 12:11:25 1997 X--- ./usr/src/lib/libc/gen/sleep.c Sat Sep 19 14:43:47 2026 X*************** X*** 5,13 **** X * X * Version Date Modification X * 1.0 1997/9/25 1. Initial release. X */ X X! #include /* For NULL */ X #include X #include X X--- 5,19 ---- X * X * Version Date Modification X * 1.0 1997/9/25 1. Initial release. X+ * 2.0 2026/9/19 2. select() can only sleep for 32767 ticks (~9min with X+ * 60Hz clock, 13min with 50Hz clock). Loop unless X+ * the select() was interrupted by a signal. X+ * Change the return value and argument to be int X+ * and NOT unsigned so that "if (seconds < 0)" works. X */ X X! #include X! #include X #include X #include X X*************** X*** 18,45 **** X * time left unslept if an interrupt occurs. X * X * The error status of gettimeofday is not checked because if that fails the X! * program has scrambled the stack so badly that a sleep() failure is the least X! * problem the program has. The select() call either completes successfully X! * or is interrupted - no errors to be checked for. X */ X X u_int X sleep(seconds) X! u_int seconds; X { X! struct timeval f, s; X X! if (seconds) X { X gettimeofday(&f, NULL); X s.tv_sec = seconds; X s.tv_usec = 0; X! select(0, NULL, NULL, NULL, &s); X gettimeofday(&s, NULL); X seconds -= (s.tv_sec - f.tv_sec); X /* X! * ONLY way this can happen is if the system time gets set back while we're X! * in the select() call. In this case return 0 instead of a bogus number. X */ X if (seconds < 0) X seconds = 0; X--- 24,60 ---- X * time left unslept if an interrupt occurs. X * X * The error status of gettimeofday is not checked because if that fails the X! * program has scrambled the stack so badly that a sleep() failure is the X! * smallest problem the program has. X */ X X u_int X sleep(seconds) X! int seconds; X { X! int intr = 0; X! struct timeval f, s; X X! while (seconds && intr == 0) X { X gettimeofday(&f, NULL); X s.tv_sec = seconds; X s.tv_usec = 0; X! /* X! * with no file descriptors specified select() can only return an error X! * if the 'seconds' is bad (EINVAL) or if a signal occurred (EINTR). If the X! * latter set 'intr' to break out of the loop after computing the number of X! * seconds remaining. X! */ X! if (select(0, NULL, NULL, NULL, &s) < 0 && (errno == EINTR)) X! intr = 1; X gettimeofday(&s, NULL); X seconds -= (s.tv_sec - f.tv_sec); X /* X! * This can happen if the system time gets set back while we're in the X! * select() call OR if we slept a little longer than expected due to system X! * activity. Return 0 instead of a bogus number OR because we're done. X! * Otherwise there are seconds remaing so continue the loop. X */ X if (seconds < 0) X seconds = 0; X*** ./usr/src/lib/libc/gen/alarm.c.old Sun Mar 9 22:44:15 1986 X--- ./usr/src/lib/libc/gen/alarm.c Sat Sep 19 13:35:32 2026 X*************** X*** 5,11 **** X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)alarm.c 5.2 (Berkeley) 3/9/86"; X #endif LIBC_SCCS and not lint X X /* X--- 5,11 ---- X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)alarm.c 5.3 (2.11BSD) 2026/9/19"; X #endif LIBC_SCCS and not lint X X /* X*************** X*** 13,20 **** X */ X #include X X alarm(secs) X! int secs; X { X struct itimerval it, oitv; X register struct itimerval *itp = ⁢ X--- 13,21 ---- X */ X #include X X+ unsigned int X alarm(secs) X! unsigned int secs; X { X struct itimerval it, oitv; X register struct itimerval *itp = ⁢ X*** ./usr/src/lib/libc/gen/initgroups.c.old Sun Apr 27 04:41:09 1986 X--- ./usr/src/lib/libc/gen/initgroups.c Sun Sep 20 19:27:11 2026 X*************** X*** 5,27 **** X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)initgroups.c 5.3 (Berkeley) 4/27/86"; X! #endif LIBC_SCCS and not lint X X- /* X- * initgroups X- */ X #include X #include X #include X X- struct group *getgrent(); X- X initgroups(uname, agroup) X char *uname; X! int agroup; X { X! int groups[NGROUPS], ngroups = 0; X register struct group *grp; X register int i; X X--- 5,24 ---- X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)initgroups.c 5.4 (2.11BSD) 2026/9/20"; X! #endif X X #include X #include X #include X+ #include X X initgroups(uname, agroup) X char *uname; X! gid_t agroup; X { X! gid_t groups[NGROUPS]; X! int ngroups = 0; X register struct group *grp; X register int i; X X*************** X*** 34,40 **** X for (i = 0; grp->gr_mem[i]; i++) X if (!strcmp(grp->gr_mem[i], uname)) { X if (ngroups == NGROUPS) { X! fprintf(stderr, "initgroups: %s is in too many groups\n", uname); X goto toomany; X } X groups[ngroups++] = grp->gr_gid; X--- 31,37 ---- X for (i = 0; grp->gr_mem[i]; i++) X if (!strcmp(grp->gr_mem[i], uname)) { X if (ngroups == NGROUPS) { X! fprintf(stderr, "initgroups: %s too many groups\n", uname); X goto toomany; X } X groups[ngroups++] = grp->gr_gid; X*** ./usr/src/lib/libc/gen/popen.c.old Sun Feb 13 13:45:40 2000 X--- ./usr/src/lib/libc/gen/popen.c Mon Sep 21 07:27:50 2026 X*************** X*** 35,48 **** X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)popen.c 5.15.1 (2.11BSD) 1999/10/24"; X! #endif /* LIBC_SCCS and not lint */ X X #include X! #include X #include X #include X- #include X X static int *pids; X X--- 35,48 ---- X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)popen.c 5.15.2 (2.11BSD) 2026/9/21"; X! #endif X X+ #include X #include X! #include X #include X #include X X static int *pids; X X*** ./usr/src/lib/libc/gen/system.c.old Sun Feb 13 13:45:40 2000 X--- ./usr/src/lib/libc/gen/system.c Mon Sep 21 20:46:56 2026 X*************** X*** 32,43 **** X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)system.c 5.10.1 (2.11BSD) 1999/10/24"; X! #endif /* LIBC_SCCS and not lint */ X X #include X #include X- #include X #include X X system(command) X--- 32,43 ---- X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)system.c 5.10.2 (2.11BSD) 2026/9/21"; X! #endif X X #include X+ #include X #include X #include X X system(command) X*************** X*** 46,52 **** X union wait pstat; X register int pid; X sigset_t omask, nmask; X! int (*intsave)(), (*quitsave)(); X X if (!command) /* just checking... */ X return(1); X--- 46,52 ---- X union wait pstat; X register int pid; X sigset_t omask, nmask; X! sig_t intsave, quitsave; X X if (!command) /* just checking... */ X return(1); X*** ./usr/src/lib/libc/gen/getpass.c.old Sun Mar 9 22:48:08 1986 X--- ./usr/src/lib/libc/gen/getpass.c Mon Sep 21 20:46:28 2026 X*************** X*** 1,5 **** X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)getpass.c 5.2 (Berkeley) 3/9/86"; X #endif LIBC_SCCS and not lint X X #include X--- 1,5 ---- X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)getpass.c 5.3 (2.11BSD) 2026/9/21"; X #endif LIBC_SCCS and not lint X X #include X*************** X*** 16,23 **** X register c; X FILE *fi; X static char pbuf[9]; X! int (*signal())(); X! int (*sig)(); X X if ((fi = fdopen(open("/dev/tty", 2), "r")) == NULL) X fi = stdin; X--- 16,22 ---- X register c; X FILE *fi; X static char pbuf[9]; X! sig_t sig; X X if ((fi = fdopen(open("/dev/tty", 2), "r")) == NULL) X fi = stdin; X*** ./usr/src/lib/libc/gen/psignal.c.old Sun Mar 9 22:52:54 1986 X--- ./usr/src/lib/libc/gen/psignal.c Mon Sep 21 13:33:57 2026 X*************** X*** 5,11 **** X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)psignal.c 5.2 (Berkeley) 3/9/86"; X #endif LIBC_SCCS and not lint X X /* X--- 5,11 ---- X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)psignal.c 5.3 (2.11BSD) 2026/9/21"; X #endif LIBC_SCCS and not lint X X /* X*************** X*** 14,21 **** X */ X #include X X! extern char *sys_siglist[]; X! X psignal(sig, s) X unsigned sig; X char *s; X--- 14,20 ---- X */ X #include X X! void X psignal(sig, s) X unsigned sig; X char *s; X*** ./usr/src/lib/libc/gen/signal.c.old Thu Feb 2 11:24:01 1995 X--- ./usr/src/lib/libc/gen/signal.c Mon Sep 21 16:23:14 2026 X*************** X*** 32,39 **** X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)signal.c 8.1 (Berkeley) 6/4/93"; X! #endif /* LIBC_SCCS and not lint */ X X /* X * Almost backwards compatible signal. X--- 32,39 ---- X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)signal.c 8.2 (2.11BSD) 2026/9/21"; X! #endif X X /* X * Almost backwards compatible signal. X*************** X*** 55,60 **** X if (!sigismember(&_sigintr, s)) X sa.sa_flags |= SA_RESTART; X if (sigaction(s, &sa, &osa) < 0) X! return (SIG_ERR); X return (osa.sa_handler); X } X--- 55,60 ---- X if (!sigismember(&_sigintr, s)) X sa.sa_flags |= SA_RESTART; X if (sigaction(s, &sa, &osa) < 0) X! return ((sig_t)SIG_ERR); X return (osa.sa_handler); X } X*** ./usr/src/lib/libc/net/rcmd.c.old Wed Mar 26 19:57:24 2025 X--- ./usr/src/lib/libc/net/rcmd.c Mon Sep 21 07:30:29 2026 X*************** X*** 16,22 **** X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)rcmd.c 5.22 (2.11BSD) 2025/3/26"; X #endif X X #include X--- 16,22 ---- X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)rcmd.c 5.23 (2.11BSD) 2026/9/21"; X #endif X X #include X*************** X*** 23,31 **** X #include X #include X #include X #include X #include X- #include X #include X #include X X--- 23,31 ---- X #include X #include X #include X+ #include X #include X #include X #include X #include X X*** ./usr/src/lib/libc/net/Makefile.old Sat Jan 1 16:52:51 1994 X--- ./usr/src/lib/libc/net/Makefile Mon Sep 21 07:31:47 2026 X*************** X*** 9,15 **** X # software without specific prior written permission. This software X # is provided ``as is'' without express or implied warranty. X # X! # @(#)Makefile 5.16 (Berkeley) 3/14/88 X # X SRCS= getnbyaddr.c getnbyname.c getnent.c getpent.c getpname.c \ X getproto.c getsbyname.c getsbyport.c getsent.c herror.c \ X--- 9,15 ---- X # software without specific prior written permission. This software X # is provided ``as is'' without express or implied warranty. X # X! # @(#)Makefile 5.17 (2.11BSD) 2026/9/21 X # X SRCS= getnbyaddr.c getnbyname.c getnent.c getpent.c getpname.c \ X getproto.c getsbyname.c getsbyport.c getsent.c herror.c \ X*************** X*** 23,29 **** X res_query.o res_send.o rexec.o ruserpass.o X X CFLAGS= -O ${DEFS} X- TAGSFILE=tags X X .c.o: X ${CC} -p -c ${CFLAGS} $*.c X--- 23,28 ---- X*************** X*** 39,111 **** X @echo "building normal netlib" X @ar cru netlib ${OBJS} X X- tags: X- cwd=`pwd`; \ X- for i in ${SRCS}; do \ X- ctags -a -f ${TAGSFILE} $$cwd/$$i; \ X- done X- X clean: X rm -f *.o profiled/*.o errs a.out core netlib netlib_p tags X X depend: X mkdep ${CFLAGS} ${SRCS} X- X- # DO NOT DELETE THIS LINE -- mkdep uses it. X- # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. X- X- getnbyaddr.o: getnbyaddr.c /usr/include/netdb.h X- getnbyname.o: getnbyname.c /usr/include/netdb.h X- getnent.o: getnent.c /usr/include/stdio.h /usr/include/sys/types.h X- getnent.o: /usr/include/sys/socket.h /usr/include/arpa/inet.h X- getnent.o: /usr/include/netdb.h /usr/include/ctype.h X- getpent.o: getpent.c /usr/include/stdio.h /usr/include/sys/types.h X- getpent.o: /usr/include/sys/socket.h /usr/include/netdb.h /usr/include/ctype.h X- getpname.o: getpname.c /usr/include/netdb.h X- getproto.o: getproto.c /usr/include/netdb.h X- getsbyname.o: getsbyname.c /usr/include/netdb.h X- getsbyport.o: getsbyport.c /usr/include/netdb.h X- getsent.o: getsent.c /usr/include/stdio.h /usr/include/sys/types.h X- getsent.o: /usr/include/sys/socket.h /usr/include/netinet/in.h X- getsent.o: /usr/include/netdb.h /usr/include/ctype.h X- herror.o: herror.c /usr/include/sys/types.h /usr/include/sys/uio.h X- rcmd.o: rcmd.c /usr/include/stdio.h /usr/include/ctype.h /usr/include/pwd.h X- rcmd.o: /usr/include/sys/param.h /usr/include/sys/localopts.h X- rcmd.o: /usr/include/machine/machparam.h /usr/include/sys/types.h X- rcmd.o: /usr/include/signal.h /usr/include/sys/types.h /usr/include/sys/file.h X- rcmd.o: /usr/include/sys/signal.h /usr/include/sys/socket.h X- rcmd.o: /usr/include/sys/stat.h /usr/include/netinet/in.h /usr/include/netdb.h X- rcmd.o: /usr/include/errno.h X- res_comp.o: res_comp.c /usr/include/sys/types.h /usr/include/stdio.h X- res_comp.o: /usr/include/arpa/nameser.h X- res_debug.o: res_debug.c /usr/include/sys/types.h /usr/include/netinet/in.h X- res_debug.o: /usr/include/stdio.h /usr/include/arpa/nameser.h X- res_init.o: res_init.c /usr/include/sys/types.h /usr/include/sys/socket.h X- res_init.o: /usr/include/netinet/in.h /usr/include/stdio.h X- res_init.o: /usr/include/arpa/nameser.h /usr/include/resolv.h X- res_mkquery.o: res_mkquery.c /usr/include/stdio.h /usr/include/sys/types.h X- res_mkquery.o: /usr/include/netinet/in.h /usr/include/arpa/nameser.h X- res_mkquery.o: /usr/include/resolv.h X- res_query.o: res_query.c /usr/include/sys/param.h /usr/include/sys/localopts.h X- res_query.o: /usr/include/machine/machparam.h /usr/include/sys/types.h X- res_query.o: /usr/include/signal.h /usr/include/sys/types.h X- res_query.o: /usr/include/sys/socket.h /usr/include/netinet/in.h X- res_query.o: /usr/include/ctype.h /usr/include/netdb.h /usr/include/stdio.h X- res_query.o: /usr/include/errno.h /usr/include/strings.h X- res_query.o: /usr/include/arpa/inet.h /usr/include/arpa/nameser.h X- res_query.o: /usr/include/resolv.h X- res_send.o: res_send.c /usr/include/sys/param.h /usr/include/sys/localopts.h X- res_send.o: /usr/include/machine/machparam.h /usr/include/sys/types.h X- res_send.o: /usr/include/signal.h /usr/include/sys/types.h X- res_send.o: /usr/include/sys/time.h /usr/include/time.h X- res_send.o: /usr/include/sys/socket.h /usr/include/sys/uio.h X- res_send.o: /usr/include/netinet/in.h /usr/include/stdio.h /usr/include/errno.h X- res_send.o: /usr/include/arpa/nameser.h /usr/include/resolv.h X- rexec.o: rexec.c /usr/include/sys/types.h /usr/include/sys/socket.h X- rexec.o: /usr/include/netinet/in.h /usr/include/stdio.h /usr/include/netdb.h X- rexec.o: /usr/include/errno.h X- ruserpass.o: ruserpass.c /usr/include/stdio.h /usr/include/utmp.h X- ruserpass.o: /usr/include/ctype.h /usr/include/sys/types.h X- ruserpass.o: /usr/include/sys/stat.h /usr/include/errno.h X- X- # IF YOU PUT ANYTHING HERE IT WILL GO AWAY X--- 38,45 ---- X*** ./usr/src/lib/libc/stdio/pfcom.c.old Thu Dec 25 19:54:32 2025 X--- ./usr/src/lib/libc/stdio/pfcom.c Sat Feb 21 07:21:09 2026 X*************** X*** 1,5 **** X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)pfcom.c 1.0 (2.11BSD) 2025/12/25"; X #endif X X #include X--- 1,5 ---- X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)pfcom.c 1.1 (2.11BSD) 2026/2/21"; X #endif X X #include X*************** X*** 62,67 **** X--- 62,68 ---- X *--fend = *--dbeg; X #else X fend = fbeg = fcvt(d, nd, &decpt, &sign); X+ if (*fbeg == 0) fend = fbeg = "0"; X while (*fend++); fend--; X X if (nd | falt) { X*** ./usr/src/lib/libc/stdio/wbuf.c.old Thu Dec 25 19:58:24 2025 X--- ./usr/src/lib/libc/stdio/wbuf.c Sat Jun 6 13:50:34 2026 X*************** X*** 35,41 **** X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)wbuf.c 8.2 (2.11BSD) 2025/12/25"; X #endif /* LIBC_SCCS and not lint */ X X #include X--- 35,41 ---- X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)wbuf.c 8.3 (2.11BSD) 2026/6/5"; X #endif /* LIBC_SCCS and not lint */ X X #include X*************** X*** 51,56 **** X--- 51,64 ---- X { X register int n; X X+ /* X+ * snprintf() will end up here when the output buffer is full, X+ * so just return without doing else. X+ * This routine will get called for each extra character, X+ * but we ignore that. X+ */ X+ if (fp->_flags & __SSTR) X+ return 0; X /* X * In case we cannot write, or longjmp takes us out early, X * make sure _w is 0 (if fully- or un-buffered) or -_bf._size X*** ./usr/src/lib/libc/stdio/Makefile.old Tue Dec 23 08:38:03 2025 X--- ./usr/src/lib/libc/stdio/Makefile Wed Jul 29 14:55:53 2026 X*************** X*** 3,9 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.4.2 (2.11BSD) 2025/11/29 X X CFLAGS= -O ${DEFS} X X--- 3,9 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.4.3 (2.11BSD) 2026/7/29 X X CFLAGS= -O ${DEFS} X X*************** X*** 14,20 **** X setvbuf.c snprintf.c sscanf.c stdio.c tmpfile.c tmpnam.c tempnam.c \ X sprintf.c ungetc.c vfprintf.c vfscanf.c vprintf.c vscanf.c fpfcom.c \ X vsnprintf.c vsprintf.c wbuf.c flags.c refill.c wsetup.c pfcom.c acvt.c \ X! puts.c fputs.c fgetc.c fgets.c gets.c X OBJS= clrerr.o exit.o fclose.o fdopen.o findfp.o fflush.o fopen.o \ X fprintf.o fpurge.o fread.o freopen.o fseek.o ftell.o fwrite.o fscanf.o \ X fvwrite.o getc.o getchar.o getw.o makebuf.o rget.o fputc.o \ X--- 14,20 ---- X setvbuf.c snprintf.c sscanf.c stdio.c tmpfile.c tmpnam.c tempnam.c \ X sprintf.c ungetc.c vfprintf.c vfscanf.c vprintf.c vscanf.c fpfcom.c \ X vsnprintf.c vsprintf.c wbuf.c flags.c refill.c wsetup.c pfcom.c acvt.c \ X! puts.c fputs.c fgetc.c fgets.c gets.c fgetln.c X OBJS= clrerr.o exit.o fclose.o fdopen.o findfp.o fflush.o fopen.o \ X fprintf.o fpurge.o fread.o freopen.o fseek.o ftell.o fwrite.o fscanf.o \ X fvwrite.o getc.o getchar.o getw.o makebuf.o rget.o fputc.o \ X*************** X*** 22,28 **** X setvbuf.o snprintf.o sscanf.o stdio.o tmpfile.o tmpnam.o tempnam.o \ X sprintf.o ungetc.o vfprintf.o vfscanf.o vprintf.o vscanf.o fpfcom.o \ X vsnprintf.o vsprintf.o wbuf.o flags.o refill.o wsetup.o pfcom.o acvt.o \ X! puts.o fputs.o fgetc.o fgets.o gets.o X TAGSFILE=tags X X .c.o: X--- 22,29 ---- X setvbuf.o snprintf.o sscanf.o stdio.o tmpfile.o tmpnam.o tempnam.o \ X sprintf.o ungetc.o vfprintf.o vfscanf.o vprintf.o vscanf.o fpfcom.o \ X vsnprintf.o vsprintf.o wbuf.o flags.o refill.o wsetup.o pfcom.o acvt.o \ X! puts.o fputs.o fgetc.o fgets.o gets.o fgetln.o X! X TAGSFILE=tags X X .c.o: X*************** X*** 70,77 **** X findfp.o: findfp.c /usr/include/sys/param.h /usr/include/sys/localopts.h X findfp.o: /usr/include/sys/stddef.h /usr/include/machine/machparam.h X findfp.o: /usr/include/sys/types.h /usr/include/sys/select.h X! findfp.o: /usr/include/sys/types.h /usr/include/signal.h X! findfp.o: /usr/include/sys/types.h /usr/include/unistd.h X findfp.o: /usr/include/sys/types.h /usr/include/stdint.h /usr/include/stdio.h X findfp.o: /usr/include/sys/types.h /usr/include/stdarg.h /usr/include/errno.h X findfp.o: /usr/include/stdlib.h /usr/include/string.h /usr/include/sys/types.h X--- 71,78 ---- X findfp.o: findfp.c /usr/include/sys/param.h /usr/include/sys/localopts.h X findfp.o: /usr/include/sys/stddef.h /usr/include/machine/machparam.h X findfp.o: /usr/include/sys/types.h /usr/include/sys/select.h X! findfp.o: /usr/include/sys/types.h /usr/include/machine/limits.h X! findfp.o: /usr/include/signal.h /usr/include/sys/types.h /usr/include/unistd.h X findfp.o: /usr/include/sys/types.h /usr/include/stdint.h /usr/include/stdio.h X findfp.o: /usr/include/sys/types.h /usr/include/stdarg.h /usr/include/errno.h X findfp.o: /usr/include/stdlib.h /usr/include/string.h /usr/include/sys/types.h X*************** X*** 187,197 **** X tempnam.o: tempnam.c /usr/include/sys/param.h /usr/include/sys/localopts.h X tempnam.o: /usr/include/sys/stddef.h /usr/include/machine/machparam.h X tempnam.o: /usr/include/sys/types.h /usr/include/sys/select.h X! tempnam.o: /usr/include/sys/types.h /usr/include/signal.h X! tempnam.o: /usr/include/sys/types.h /usr/include/errno.h /usr/include/stdio.h X! tempnam.o: /usr/include/sys/types.h /usr/include/stdarg.h /usr/include/stdlib.h X! tempnam.o: /usr/include/unistd.h /usr/include/sys/types.h /usr/include/stdint.h X! tempnam.o: /usr/include/paths.h X sprintf.o: sprintf.c /usr/include/stdio.h /usr/include/sys/types.h X sprintf.o: /usr/include/sys/select.h /usr/include/sys/types.h X sprintf.o: /usr/include/stdarg.h /usr/include/stdarg.h /usr/include/limits.h X--- 188,198 ---- X tempnam.o: tempnam.c /usr/include/sys/param.h /usr/include/sys/localopts.h X tempnam.o: /usr/include/sys/stddef.h /usr/include/machine/machparam.h X tempnam.o: /usr/include/sys/types.h /usr/include/sys/select.h X! tempnam.o: /usr/include/sys/types.h /usr/include/machine/limits.h X! tempnam.o: /usr/include/signal.h /usr/include/sys/types.h /usr/include/errno.h X! tempnam.o: /usr/include/stdio.h /usr/include/sys/types.h /usr/include/stdarg.h X! tempnam.o: /usr/include/stdlib.h /usr/include/unistd.h /usr/include/sys/types.h X! tempnam.o: /usr/include/stdint.h /usr/include/paths.h X sprintf.o: sprintf.c /usr/include/stdio.h /usr/include/sys/types.h X sprintf.o: /usr/include/sys/select.h /usr/include/sys/types.h X sprintf.o: /usr/include/stdarg.h /usr/include/stdarg.h /usr/include/limits.h X*************** X*** 264,268 **** X--- 265,273 ---- X gets.o: /usr/include/sys/select.h /usr/include/sys/types.h X gets.o: /usr/include/stdint.h /usr/include/stdio.h /usr/include/sys/types.h X gets.o: /usr/include/stdarg.h X+ fgetln.o: fgetln.c /usr/include/stdio.h /usr/include/sys/types.h X+ fgetln.o: /usr/include/sys/select.h /usr/include/sys/types.h X+ fgetln.o: /usr/include/stdarg.h /usr/include/stdlib.h /usr/include/string.h X+ fgetln.o: /usr/include/sys/types.h local.h X X # IF YOU PUT ANYTHING HERE IT WILL GO AWAY X*** ./usr/src/lib/libc/stdio/findfp.c.old Thu Jan 1 10:04:33 2026 X--- ./usr/src/lib/libc/stdio/findfp.c Mon Sep 28 17:36:54 2026 X*************** X*** 35,41 **** X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)findfp.c 8.3 (2.11BSD) 2025/12/25"; X #endif /* LIBC_SCCS and not lint */ X X #include X--- 35,41 ---- X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)findfp.c 8.4 (2.11BSD) 2026/9/28"; X #endif /* LIBC_SCCS and not lint */ X X #include X*************** X*** 140,147 **** X for (n = 0, fp = __sF; n < FOPEN_MAX; n++, fp++) X if (fp->_flags != 0) X ret |= (*function)(fp); X! for (g = fpole; g; g->next) X! if (g->sfile._flags == 0) X ret |= (*function)(&g->sfile); X return (ret); X } X--- 140,147 ---- X for (n = 0, fp = __sF; n < FOPEN_MAX; n++, fp++) X if (fp->_flags != 0) X ret |= (*function)(fp); X! for (g = fpole; g; g = g->next) X! if (g->sfile._flags != 0) X ret |= (*function)(&g->sfile); X return (ret); X } X*** ./usr/src/lib/libc/stdlib/Makefile.old Sat Nov 29 07:49:22 2025 X--- ./usr/src/lib/libc/stdlib/Makefile Mon Jan 26 10:07:26 2026 X*************** X*** 1,5 **** X # X! # @(#)Makefile 1.0 (2.11BSD) 2025/11/29 X # X # This is the Makefile for 'stdlib'. New routines ported from 4.4BSD's X # libc/stdlib directory go here but existing libc/gen files are being left X--- 1,5 ---- X # X! # @(#)Makefile 1.1 (2.11BSD) 2026/1/26 X # X # This is the Makefile for 'stdlib'. New routines ported from 4.4BSD's X # libc/stdlib directory go here but existing libc/gen files are being left X*************** X*** 10,17 **** X CFLAGS= -O ${DEFS} X CC= cc X X! SRCS= getopt.c getsubopt.c strtol.c strtoul.c X! OBJS= getopt.o getsubopt.o strtol.o strtoul.o X X .c.o: X ${CC} -p ${CFLAGS} -c $*.c X--- 10,19 ---- X CFLAGS= -O ${DEFS} X CC= cc X X! SRCS= getopt.c getsubopt.c strtol.c strtoul.c imaxabs.c imaxdiv.c lconv.c \ X! localeconv.c setlocale.c strtomax.c X! OBJS= getopt.o getsubopt.o strtol.o strtoul.o imaxabs.o imaxdiv.o lconv.o \ X! localeconv.o setlocale.o strtomax.o X X .c.o: X ${CC} -p ${CFLAGS} -c $*.c X*** ./usr/src/lib/libc/compat-43/creat.c.old Thu Aug 28 15:32:52 1997 X--- ./usr/src/lib/libc/compat-43/creat.c Fri May 8 08:35:06 2026 X*************** X*** 32,44 **** X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)creat.c 8.1.1 (2.11BSD) 1997/8/28"; X #endif /* LIBC_SCCS and not lint */ X X #include X X creat(path, mode) X! char *path; X mode_t mode; X { X return(open(path, O_WRONLY|O_CREAT|O_TRUNC, mode)); X--- 32,44 ---- X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)creat.c 8.1.2 (2.11BSD) 2026/5/8"; X #endif /* LIBC_SCCS and not lint */ X X #include X X creat(path, mode) X! const char *path; X mode_t mode; X { X return(open(path, O_WRONLY|O_CREAT|O_TRUNC, mode)); X*** ./usr/src/libexec/tcpd/Makefile.old Mon Dec 8 20:51:01 2025 X--- ./usr/src/libexec/tcpd/Makefile Tue Jun 9 21:52:25 2026 X*************** X*** 1,9 **** X! # @(#) Makefile 1.21 (2.11BSD) 2025/12/8 X X REAL_DAEMON_DIR=/usr/libexec X RANLIB = ranlib # have ranlib (BSD-ish UNIX) X ARFLAGS = rv # most systems X- AUX_OBJ= environ.o X FACILITY= LOG_DAEMON # LOG_MAIL is what most sendmail daemons use X SEVERITY= LOG_INFO # LOG_INFO is normally not logged to the console X X--- 1,8 ---- X! # @(#) Makefile 1.22 (2.11BSD) 2026/1/13 X X REAL_DAEMON_DIR=/usr/libexec X RANLIB = ranlib # have ranlib (BSD-ish UNIX) X ARFLAGS = rv # most systems X FACILITY= LOG_DAEMON # LOG_MAIL is what most sendmail daemons use X SEVERITY= LOG_INFO # LOG_INFO is normally not logged to the console X X*************** X*** 39,45 **** X $(HOSTNAME) X X LIB_OBJ= hosts_access.o options.o shell_cmd.o rfc931.o eval.o \ X! hosts_ctl.o refuse.o percent_x.o clean_exit.o $(AUX_OBJ) \ X fix_options.o socket.o tli.o workarounds.o \ X update.o misc.o diag.o percent_m.o X X--- 38,44 ---- X $(HOSTNAME) X X LIB_OBJ= hosts_access.o options.o shell_cmd.o rfc931.o eval.o \ X! hosts_ctl.o refuse.o percent_x.o clean_exit.o \ X fix_options.o socket.o tli.o workarounds.o \ X update.o misc.o diag.o percent_m.o X X*************** X*** 122,128 **** X -DREAL_DAEMON_DIR=\"$(REAL_DAEMON_DIR)\" \ X tcpd.c fromhost.c socket.c tli.c hosts_access.c \ X shell_cmd.c refuse.c rfc931.c eval.c percent_x.c clean_exit.c \ X! options.c setenv.c fix_options.c workarounds.c update.c misc.c \ X diag.c percent_m.c X X miscd_lint: X--- 121,127 ---- X -DREAL_DAEMON_DIR=\"$(REAL_DAEMON_DIR)\" \ X tcpd.c fromhost.c socket.c tli.c hosts_access.c \ X shell_cmd.c refuse.c rfc931.c eval.c percent_x.c clean_exit.c \ X! options.c fix_options.c workarounds.c update.c misc.c \ X diag.c percent_m.c X X miscd_lint: X*************** X*** 133,139 **** X -DREAL_DAEMON_DIR=\"$(REAL_DAEMON_DIR)\" \ X miscd.c fromhost.c socket.c tli.c hosts_access.c \ X shell_cmd.c refuse.c rfc931.c eval.c percent_x.c clean_exit.c \ X! options.c setenv.c fix_options.c workarounds.c update.c misc.c \ X diag.c percent_m.c X X match_lint: X--- 132,138 ---- X -DREAL_DAEMON_DIR=\"$(REAL_DAEMON_DIR)\" \ X miscd.c fromhost.c socket.c tli.c hosts_access.c \ X shell_cmd.c refuse.c rfc931.c eval.c percent_x.c clean_exit.c \ X! options.c fix_options.c workarounds.c update.c misc.c \ X diag.c percent_m.c X X match_lint: X*************** X*** 141,147 **** X -DPARANOID $(TABLES) -DNETGROUP -DPROCESS_OPTIONS -DRFC931_TIMEOUT=10 \ X -DREAL_DAEMON_DIR=\"$(REAL_DAEMON_DIR)\" \ X tcpdmatch.c hosts_access.c eval.c percent_x.c options.c workarounds.c \ X! update.c socket.c misc.c diag.c percent_m.c setenv.c \ X inetcf.c scaffold.c X X chk_lint: X--- 140,146 ---- X -DPARANOID $(TABLES) -DNETGROUP -DPROCESS_OPTIONS -DRFC931_TIMEOUT=10 \ X -DREAL_DAEMON_DIR=\"$(REAL_DAEMON_DIR)\" \ X tcpdmatch.c hosts_access.c eval.c percent_x.c options.c workarounds.c \ X! update.c socket.c misc.c diag.c percent_m.c \ X inetcf.c scaffold.c X X chk_lint: X*************** X*** 149,175 **** X -DPARANOID $(TABLES) -DNETGROUP -DPROCESS_OPTIONS -DRFC931_TIMEOUT=10 \ X -DREAL_DAEMON_DIR=\"$(REAL_DAEMON_DIR)\" \ X tcpdchk.c eval.c percent_x.c options.c update.c workarounds.c \ X! setenv.c misc.c diag.c percent_m.c inetcf.c scaffold.c X X- printfck: X- printfck -f printf.ck \ X- tcpd.c fromhost.c socket.c tli.c hosts_access.c \ X- shell_cmd.c refuse.c rfc931.c eval.c percent_x.c clean_exit.c \ X- options.c setenv.c fix_options.c workarounds.c update.c misc.c \ X- diag.c percent_m.c >aap.c X- lint -DFACILITY=LOG_MAIL -DHOSTS_ACCESS -DPARANOID -DNETGROUP \ X- -DGETPEERNAME_BUG -DDAEMON_UMASK=022 -DSEVERITY=$(SEVERITY) \ X- $(TABLES) -DKILL_IP_OPTIONS -DPROCESS_OPTIONS \ X- -DRFC931_TIMEOUT=$(RFC931_TIMEOUT) -DALWAYS_RFC931 \ X- -DREAL_DAEMON_DIR=\"$(REAL_DAEMON_DIR)\" aap.c X- printfck -f printf.ck \ X- tcpdchk.c eval.c percent_x.c options.c update.c workarounds.c \ X- setenv.c misc.c diag.c percent_m.c inetcf.c scaffold.c \ X- >aap.c X- lint -DFACILITY=LOG_MAIL -DSEVERITY=$(SEVERITY) -DHOSTS_ACCESS \ X- -DPARANOID $(TABLES) -DNETGROUP -DPROCESS_OPTIONS -DRFC931_TIMEOUT=10 \ X- -DREAL_DAEMON_DIR=\"$(REAL_DAEMON_DIR)\" X- X # Internal compilation dependencies. X X clean_exit.o: cflags X--- 148,155 ---- X -DPARANOID $(TABLES) -DNETGROUP -DPROCESS_OPTIONS -DRFC931_TIMEOUT=10 \ X -DREAL_DAEMON_DIR=\"$(REAL_DAEMON_DIR)\" \ X tcpdchk.c eval.c percent_x.c options.c update.c workarounds.c \ X! misc.c diag.c percent_m.c inetcf.c scaffold.c X X # Internal compilation dependencies. X X clean_exit.o: cflags X*************** X*** 177,183 **** X diag.o: cflags X diag.o: mystdarg.h X diag.o: tcpd.h X- environ.o: cflags X eval.o: cflags X eval.o: tcpd.h X fakelog.o: cflags X--- 157,162 ---- X*************** X*** 216,227 **** X scaffold.o: cflags X scaffold.o: scaffold.h X scaffold.o: tcpd.h X- setenv.o: cflags X shell_cmd.o: cflags X shell_cmd.o: tcpd.h X socket.o: cflags X socket.o: tcpd.h X- strcasecmp.o: cflags X tcpd.o: cflags X tcpd.o: patchlevel.h X tcpd.o: tcpd.h X--- 195,204 ---- X*************** X*** 242,247 **** X update.o: cflags X update.o: mystdarg.h X update.o: tcpd.h X- vfprintf.o: cflags X workarounds.o: cflags X workarounds.o: tcpd.h X--- 219,223 ---- X*** ./usr/src/libexec/tcpd/diag.c.old Wed Dec 28 11:42:20 1994 X--- ./usr/src/libexec/tcpd/diag.c Mon May 11 19:46:05 2026 X*************** X*** 9,16 **** X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #ifndef lint X! static char sccsid[] = "@(#) diag.c 1.1 94/12/28 17:42:20"; X #endif X X /* System libraries */ X--- 9,16 ---- X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#) diag.c 1.2 (2.11BSD) 2026/5/11"; X #endif X X /* System libraries */ X*** ./usr/src/libexec/tcpd/clean_exit.c.old Wed Dec 28 11:42:20 1994 X--- ./usr/src/libexec/tcpd/clean_exit.c Mon May 11 19:45:04 2026 X*************** X*** 8,20 **** X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #ifndef lint X! static char sccsid[] = "@(#) clean_exit.c 1.4 94/12/28 17:42:19"; X #endif X X #include X! X! extern void exit(); X X #include "tcpd.h" X X--- 8,19 ---- X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#) clean_exit.c 1.5 (2.11BSD) 2026/5/11"; X #endif X X #include X! #include X X #include "tcpd.h" X X*** ./usr/src/libexec/tcpd/eval.c.old Mon Jan 30 13:51:46 1995 X--- ./usr/src/libexec/tcpd/eval.c Mon May 11 19:51:55 2026 X*************** X*** 18,25 **** X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #ifndef lint X! static char sccsid[] = "@(#) eval.c 1.3 95/01/30 19:51:45"; X #endif X X /* System libraries. */ X--- 18,25 ---- X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#) eval.c 1.4 (2.11BSD) 2026/5/11"; X #endif X X /* System libraries. */ X*** ./usr/src/libexec/tcpd/fakelog.c.old Wed Dec 28 11:42:22 1994 X--- ./usr/src/libexec/tcpd/fakelog.c Mon May 11 19:52:30 2026 X*************** X*** 5,12 **** X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #ifndef lint X! static char sccsid[] = "@(#) fakelog.c 1.3 94/12/28 17:42:21"; X #endif X X #include X--- 5,12 ---- X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#) fakelog.c 1.4 (2.11BSD) 2026/5/11"; X #endif X X #include X*** ./usr/src/libexec/tcpd/fix_options.c.old Wed Dec 28 11:42:22 1994 X--- ./usr/src/libexec/tcpd/fix_options.c Mon May 11 19:52:58 2026 X*************** X*** 5,12 **** X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #ifndef lint X! static char sccsid[] = "@(#) fix_options.c 1.3 94/12/28 17:42:22"; X #endif X X #include X--- 5,12 ---- X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#) fix_options.c 1.4 (2.11BSD) 2026/5/11"; X #endif X X #include X*** ./usr/src/libexec/tcpd/fromhost.c.old Wed Dec 28 11:42:24 1994 X--- ./usr/src/libexec/tcpd/fromhost.c Mon May 11 19:53:17 2026 X*************** X*** 10,17 **** X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #ifndef lint X! static char sccsid[] = "@(#) fromhost.c 1.17 94/12/28 17:42:23"; X #endif X X #if defined(TLI) || defined(PTX) || defined(TLI_SEQUENT) X--- 10,17 ---- X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#) fromhost.c 1.18 (2.11BSD) 2026/5/11"; X #endif X X #if defined(TLI) || defined(PTX) || defined(TLI_SEQUENT) X*** ./usr/src/libexec/tcpd/hosts_access.c.old Mon Jan 30 13:51:48 1995 X--- ./usr/src/libexec/tcpd/hosts_access.c Mon May 11 19:53:57 2026 X*************** X*** 17,24 **** X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #ifndef lint X! static char sccsid[] = "@(#) hosts_access.c 1.19 95/01/30 19:51:47"; X #endif X X /* System libraries. */ X--- 17,24 ---- X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#) hosts_access.c 1.20 (2.11BSD) 2026/5/11"; X #endif X X /* System libraries. */ X*************** X*** 33,41 **** X #include X #include X #include X- X- extern char *fgets(); X- extern int errno; X X #ifndef INADDR_NONE X #define INADDR_NONE (-1) /* XXX should be 0xffffffff */ X--- 33,38 ---- X*** ./usr/src/libexec/tcpd/hosts_ctl.c.old Wed Dec 28 11:42:28 1994 X--- ./usr/src/libexec/tcpd/hosts_ctl.c Mon May 11 19:54:20 2026 X*************** X*** 11,18 **** X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #ifndef lint X! static char sccsid[] = "@(#) hosts_ctl.c 1.4 94/12/28 17:42:27"; X #endif X X #include X--- 11,18 ---- X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#) hosts_ctl.c 1.5 (2.11BSD) 2026/5/11"; X #endif X X #include X*** ./usr/src/libexec/tcpd/inetcf.c.old Mon Jan 30 13:51:49 1995 X--- ./usr/src/libexec/tcpd/inetcf.c Mon May 11 19:55:25 2026 X*************** X*** 5,12 **** X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #ifndef lint X! static char sccsid[] = "@(#) inetcf.c 1.5 95/01/30 19:51:48"; X #endif X X #include X--- 5,12 ---- X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#) inetcf.c 1.6 (2.11BSD) 2026/5/11"; X #endif X X #include X*************** X*** 14,22 **** X #include X #include X #include X! X! extern int errno; X! extern void exit(); X X #include "tcpd.h" X #include "inetcf.h" X--- 14,20 ---- X #include X #include X #include X! #include X X #include "tcpd.h" X #include "inetcf.h" X*** ./usr/src/libexec/tcpd/misc.c.old Wed Dec 28 11:42:32 1994 X--- ./usr/src/libexec/tcpd/misc.c Mon May 11 19:56:00 2026 X*************** X*** 4,11 **** X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #ifndef lint X! static char sccsic[] = "@(#) misc.c 1.1 94/12/28 17:42:31"; X #endif X X #include X--- 4,11 ---- X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsic[] = "@(#) misc.c 1.2 (2.11BSD) 2026/5/11"; X #endif X X #include X*************** X*** 16,23 **** X #include X X #include "tcpd.h" X- X- extern char *fgets(); X X #ifndef INADDR_NONE X #define INADDR_NONE (-1) /* XXX should be 0xffffffff */ X--- 16,21 ---- X*** ./usr/src/libexec/tcpd/miscd.c.old Wed Dec 28 11:42:33 1994 X--- ./usr/src/libexec/tcpd/miscd.c Mon May 11 19:56:43 2026 X*************** X*** 13,20 **** X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #ifndef lint X! static char sccsid[] = "@(#) miscd.c 1.9 94/12/28 17:42:32"; X #endif X X /* System libraries. */ X--- 13,20 ---- X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#) miscd.c 1.10 (2.11BSD) 2026/5/11"; X #endif X X /* System libraries. */ X*** ./usr/src/libexec/tcpd/ncr.c.old Wed Dec 28 11:42:34 1994 X--- ./usr/src/libexec/tcpd/ncr.c Mon May 11 19:57:25 2026 X*************** X*** 7,14 **** X * can figure out network addresses, and then restore the original state. X */ X X! #ifndef lint X! static char sccsid[] = "@(#) ncr.c 1.1 94/12/28 17:42:34"; X #endif X X #include X--- 7,14 ---- X * can figure out network addresses, and then restore the original state. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#) ncr.c 1.2 (2.11BSD) 2026/5/11"; X #endif X X #include X*** ./usr/src/libexec/tcpd/options.c.old Sun Jan 8 11:00:29 1995 X--- ./usr/src/libexec/tcpd/options.c Mon May 11 19:57:51 2026 X*************** X*** 28,35 **** X * course of action. X */ X X! #ifndef lint X! static char sccsid[] = "@(#) options.c 1.16 95/01/08 17:00:28"; X #endif X X /* System libraries. */ X--- 28,35 ---- X * course of action. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#) options.c 1.17 (2.11BSD) 2026/5/11"; X #endif X X /* System libraries. */ X*** ./usr/src/libexec/tcpd/percent_x.c.old Wed Dec 28 11:42:38 1994 X--- ./usr/src/libexec/tcpd/percent_x.c Mon May 11 19:58:27 2026 X*************** X*** 10,17 **** X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #ifndef lint X! static char sccsid[] = "@(#) percent_x.c 1.4 94/12/28 17:42:37"; X #endif X X /* System libraries. */ X--- 10,17 ---- X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#) percent_x.c 1.5 (2.11BSD) 2026/5/11"; X #endif X X /* System libraries. */ X*************** X*** 19,26 **** X #include X #include X #include X! X! extern void exit(); X X /* Local stuff. */ X X--- 19,25 ---- X #include X #include X #include X! #include X X /* Local stuff. */ X X*** ./usr/src/libexec/tcpd/ptx.c.old Wed Dec 28 11:42:39 1994 X--- ./usr/src/libexec/tcpd/ptx.c Mon May 11 19:58:46 2026 X*************** X*** 8,15 **** X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #ifndef lint X! static char sccsid[] = "@(#) ptx.c 1.3 94/12/28 17:42:38"; X #endif X X #ifdef PTX X--- 8,15 ---- X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#) ptx.c 1.4 (2.11BSD) 2026/5/11"; X #endif X X #ifdef PTX X*** ./usr/src/libexec/tcpd/refuse.c.old Wed Dec 28 11:42:40 1994 X--- ./usr/src/libexec/tcpd/refuse.c Mon May 11 19:59:08 2026 X*************** X*** 7,14 **** X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #ifndef lint X! static char sccsid[] = "@(#) refuse.c 1.5 94/12/28 17:42:39"; X #endif X X /* System libraries. */ X--- 7,14 ---- X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#) refuse.c 1.6 (2.11BSD) 2026/5/11"; X #endif X X /* System libraries. */ X*** ./usr/src/libexec/tcpd/rfc931.c.old Mon Jan 2 10:11:34 1995 X--- ./usr/src/libexec/tcpd/rfc931.c Mon May 11 19:59:34 2026 X*************** X*** 9,16 **** X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #ifndef lint X! static char sccsid[] = "@(#) rfc931.c 1.10 95/01/02 16:11:34"; X #endif X X /* System libraries. */ X--- 9,16 ---- X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#) rfc931.c 1.11 (2.11BSD) 2026/5/11"; X #endif X X /* System libraries. */ X*** ./usr/src/libexec/tcpd/safe_finger.c.old Wed Dec 28 11:42:42 1994 X--- ./usr/src/libexec/tcpd/safe_finger.c Mon May 11 20:25:34 2026 X*************** X*** 14,21 **** X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #ifndef lint X! static char sccsid[] = "@(#) safe_finger.c 1.4 94/12/28 17:42:41"; X #endif X X /* System libraries */ X--- 14,21 ---- X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#) safe_finger.c 1.5 (2.11BSD) 2026/5/11"; X #endif X X /* System libraries */ X*************** X*** 26,37 **** X #include X #include X #include X X- extern void exit(); X- X /* Local stuff */ X X! char path[] = "PATH=/bin:/usr/bin:/usr/ucb:/usr/bsd:/etc:/usr/etc:/usr/sbin"; X X #define TIME_LIMIT 60 /* Do not keep listinging forever */ X #define INPUT_LENGTH 100000 /* Do not keep listinging forever */ X--- 26,36 ---- X #include X #include X #include X+ #include X X /* Local stuff */ X X! char path[] = "/bin:/usr/bin:/usr/ucb:/usr/sbin"; X X #define TIME_LIMIT 60 /* Do not keep listinging forever */ X #define INPUT_LENGTH 100000 /* Do not keep listinging forever */ X*************** X*** 76,83 **** X /* X * Redirect our standard input through the raw finger command. X */ X! if (putenv(path)) { X! fprintf(stderr, "%s: putenv: out of memory", argv[0]); X exit(1); X } X argv[0] = FINGER_PROGRAM; X--- 75,82 ---- X /* X * Redirect our standard input through the raw finger command. X */ X! if (setenv("PATH", path, 1)) { X! fprintf(stderr, "%s: setenv: out of memory", argv[0]); X exit(1); X } X argv[0] = FINGER_PROGRAM; X*** ./usr/src/libexec/tcpd/scaffold.c.old Tue Jan 3 03:13:48 1995 X--- ./usr/src/libexec/tcpd/scaffold.c Mon May 11 20:02:22 2026 X*************** X*** 4,11 **** X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #ifndef lint X! static char sccs_id[] = "@(#) scaffold.c 1.5 95/01/03 09:13:48"; X #endif X X /* System libraries. */ X--- 4,11 ---- X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccs_id[] = "@(#) scaffold.c 1.6 (2.11BSD) 2026/5/11"; X #endif X X /* System libraries. */ X*************** X*** 20,31 **** X #include X #include X #include X X #ifndef INADDR_NONE X #define INADDR_NONE (-1) /* XXX should be 0xffffffff */ X #endif X- X- extern char *malloc(); X X /* Application-specific. */ X X--- 20,30 ---- X #include X #include X #include X+ #include X X #ifndef INADDR_NONE X #define INADDR_NONE (-1) /* XXX should be 0xffffffff */ X #endif X X /* Application-specific. */ X X*** ./usr/src/libexec/tcpd/shell_cmd.c.old Wed Dec 28 11:42:44 1994 X--- ./usr/src/libexec/tcpd/shell_cmd.c Mon May 11 20:03:20 2026 X*************** X*** 8,15 **** X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #ifndef lint X! static char sccsid[] = "@(#) shell_cmd.c 1.5 94/12/28 17:42:44"; X #endif X X /* System libraries. */ X--- 8,15 ---- X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#) shell_cmd.c 1.6 (2.11BSD) 2026/5/11"; X #endif X X /* System libraries. */ X*************** X*** 20,27 **** X #include X #include X #include X! X! extern void exit(); X X /* Local stuff. */ X X--- 20,26 ---- X #include X #include X #include X! #include X X /* Local stuff. */ X X*** ./usr/src/libexec/tcpd/socket.c.old Mon Jan 30 13:51:51 1995 X--- ./usr/src/libexec/tcpd/socket.c Mon May 11 20:04:34 2026 X*************** X*** 15,22 **** X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #ifndef lint X! static char sccsid[] = "@(#) socket.c 1.14 95/01/30 19:51:50"; X #endif X X /* System libraries. */ X--- 15,22 ---- X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#) socket.c 1.15 (2.11BSD) 2026/5/11"; X #endif X X /* System libraries. */ X*************** X*** 25,36 **** X #include X #include X #include X #include X #include X #include X #include X- X- extern char *inet_ntoa(); X X /* Local stuff. */ X X--- 25,35 ---- X #include X #include X #include X+ #include X #include X #include X #include X #include X X /* Local stuff. */ X X*** ./usr/src/libexec/tcpd/tcpd.c.old Wed Dec 28 11:42:47 1994 X--- ./usr/src/libexec/tcpd/tcpd.c Mon May 11 20:04:56 2026 X*************** X*** 10,17 **** X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #ifndef lint X! static char sccsid[] = "@(#) tcpd.c 1.9 94/12/28 17:42:46"; X #endif X X /* System libraries. */ X--- 10,17 ---- X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#) tcpd.c 1.10 (2.11BSD) 2026/5/11"; X #endif X X /* System libraries. */ X*** ./usr/src/libexec/tcpd/tcpdchk.c.old Mon Jan 30 13:51:51 1995 X--- ./usr/src/libexec/tcpd/tcpdchk.c Mon May 11 20:06:02 2026 X*************** X*** 14,21 **** X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #ifndef lint X! static char sccsid[] = "@(#) tcpdchk.c 1.6 95/01/30 19:51:51"; X #endif X X /* System libraries. */ X--- 14,21 ---- X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#) tcpdchk.c 1.7 (2.11BSD) 2026/5/11"; X #endif X X /* System libraries. */ X*************** X*** 30,40 **** X #include X #include X #include X! X! extern int errno; X! extern void exit(); X! extern int optind; X! extern char *optarg; X X #ifndef INADDR_NONE X #define INADDR_NONE (-1) /* XXX should be 0xffffffff */ X--- 30,37 ---- X #include X #include X #include X! #include X! #include X X #ifndef INADDR_NONE X #define INADDR_NONE (-1) /* XXX should be 0xffffffff */ X*** ./usr/src/libexec/tcpd/tcpdmatch.c.old Sun Jan 1 07:34:08 1995 X--- ./usr/src/libexec/tcpd/tcpdmatch.c Mon May 11 20:06:40 2026 X*************** X*** 13,20 **** X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #ifndef lint X! static char sccsid[] = "@(#) tcpdmatch.c 1.4 95/01/01 13:34:07"; X #endif X X /* System libraries. */ X--- 13,20 ---- X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#) tcpdmatch.c 1.5 (2.11BSD) 2026/5/11"; X #endif X X /* System libraries. */ X*************** X*** 29,38 **** X #include X #include X #include X! X! extern void exit(); X! extern int optind; X! extern char *optarg; X X #ifndef INADDR_NONE X #define INADDR_NONE (-1) /* XXX should be 0xffffffff */ X--- 29,35 ---- X #include X #include X #include X! #include X X #ifndef INADDR_NONE X #define INADDR_NONE (-1) /* XXX should be 0xffffffff */ X*** ./usr/src/libexec/tcpd/try-from.c.old Wed Dec 28 11:42:55 1994 X--- ./usr/src/libexec/tcpd/try-from.c Mon May 11 20:07:01 2026 X*************** X*** 10,17 **** X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #ifndef lint X! static char sccsid[] = "@(#) try-from.c 1.2 94/12/28 17:42:55"; X #endif X X /* System libraries. */ X--- 10,17 ---- X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#) try-from.c 1.3 (2.11BSD) 2026/5/11"; X #endif X X /* System libraries. */ X*** ./usr/src/libexec/tcpd/update.c.old Wed Dec 28 11:42:56 1994 X--- ./usr/src/libexec/tcpd/update.c Mon May 11 20:07:22 2026 X*************** X*** 13,20 **** X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #ifndef lint X! static char sccsid[] = "@(#) update.c 1.1 94/12/28 17:42:56"; X #endif X X /* System libraries */ X--- 13,20 ---- X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#) update.c 1.2 (2.11BSD) 2026/5/11"; X #endif X X /* System libraries */ X*** ./usr/src/libexec/tcpd/workarounds.c.old Sun Jan 8 15:08:00 1995 X--- ./usr/src/libexec/tcpd/workarounds.c Mon May 11 20:07:48 2026 X*************** X*** 7,14 **** X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #ifndef lint X! char sccsid[] = "@(#) workarounds.c 1.4 95/01/08 21:08:00"; X #endif X X #include X--- 7,14 ---- X * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. X */ X X! #if !defined(lint) && defined(DOSCCS) X! char sccsid[] = "@(#) workarounds.c 1.5 (2.11BSD) 2026/5/11"; X #endif X X #include X*************** X*** 20,27 **** X #include X #include X #include X- X- extern int errno; X X #include "tcpd.h" X X--- 20,25 ---- X*** ./usr/src/libexec/makekey/makekey.c.old Wed Feb 18 04:10:48 1987 X--- ./usr/src/libexec/makekey/makekey.c Mon May 11 08:15:02 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)makekey.c 5.1 (Berkeley) 6/6/85"; X! #endif not lint X X /* X * You send it 10 bytes. X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)makekey.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * You send it 10 bytes. X*** ./usr/src/libexec/telnetd/telnetd.c.old Tue Aug 12 18:44:54 2025 X--- ./usr/src/libexec/telnetd/telnetd.c Tue Sep 22 09:16:32 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)telnetd.c 5.23 (2.11BSD) 2025/8/11"; X #endif X X /* X--- 9,15 ---- X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)telnetd.c 5.24 (2.11BSD) 2026/9/22"; X #endif X X /* X*************** X*** 187,193 **** X X char *terminaltype = 0; X char *env[128]; X! int cleanup(); X X /* X * ttloop X--- 187,193 ---- X X char *terminaltype = 0; X char *env[128]; X! void cleanup(); X X /* X * ttloop X*************** X*** 1288,1293 **** X--- 1288,1294 ---- X } X } X X+ void X cleanup() X { X X*** ./usr/src/libexec/rshd/rshd.c.old Fri Nov 29 23:37:54 1996 X--- ./usr/src/libexec/rshd/rshd.c Wed Sep 23 22:05:42 2026 X*************** X*** 20,26 **** X "@(#) Copyright (c) 1983, 1988, 1989 The Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)rshd.c 5.17.1.4 (Berkeley) 1996/11/29"; X #endif X X /* X--- 20,26 ---- X "@(#) Copyright (c) 1983, 1988, 1989 The Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)rshd.c 5.17.1.5 (2.11BSD) 2026/9/21"; X #endif X X /* X*************** X*** 35,41 **** X #include X #include X #include X- #include X #include X X #include X--- 35,40 ---- X*************** X*** 49,59 **** X #include X #include X #include X #include X #include X! #include "pathnames.h" X X! int errno; X int keepalive = 1; X int check_all = 0; X /*VARARGS1*/ X--- 48,60 ---- X #include X #include X #include X+ #include X #include X #include X! #include X X! #define _PATH_DEFPATH "PATH=/bin:/usr/ucb:/usr/bin:/usr/sbin" X! X int keepalive = 1; X int check_all = 0; X /*VARARGS1*/ X*** ./usr/src/libexec/rlogind/rlogind.c.old Sat Mar 23 02:10:27 1996 X--- ./usr/src/libexec/rlogind/rlogind.c Tue Sep 22 09:14:41 2026 X*************** X*** 20,26 **** X "@(#) Copyright (c) 1983, 1988 The Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)rlogind.c 5.22.1.8 (2.11BSD) 1996/3/22"; X #endif X X /* X--- 20,26 ---- X "@(#) Copyright (c) 1983, 1988 The Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)rlogind.c 5.22.1.9 (2.11BSD) 2026/9/16"; X #endif X X /* X*************** X*** 42,50 **** X #include X #include X #include X- #ifdef FOURdotFOUR X- #include X- #endif X X #include X X--- 42,47 ---- X*************** X*** 51,57 **** X #include X #include X #include X- #include X #include X #include X #include X--- 48,53 ---- X*************** X*** 118,124 **** X } X X int child; X! int cleanup(); X int netf; X char *line; X extern char *inet_ntoa(); X--- 114,120 ---- X } X X int child; X! void cleanup(); X int netf; X char *line; X extern char *inet_ntoa(); X*************** X*** 475,480 **** X--- 471,477 ---- X } X } X X+ void X cleanup() X { X char *p; X*** ./usr/src/libexec/fingerd/fingerd.c.old Sun Apr 2 02:52:16 1995 X--- ./usr/src/libexec/fingerd/fingerd.c Thu Oct 1 17:55:59 2026 X*************** X*** 35,45 **** X static char copyright[] = X "@(#) Copyright (c) 1983, 1993\n\ X The Regents of the University of California. All rights reserved.\n"; X- #endif /* not lint */ X X! #if defined(DOSCCS) & !defined(lint) X! static char sccsid[] = "@(#)fingerd.c 8.1.1 (2.11BSD) 1995/04/01"; X! #endif /* not lint */ X X #include X #include X--- 35,43 ---- X static char copyright[] = X "@(#) Copyright (c) 1983, 1993\n\ X The Regents of the University of California. All rights reserved.\n"; X X! static char sccsid[] = "@(#)fingerd.c 8.1.2 (2.11BSD) 2026/9/30"; X! #endif X X #include X #include X*************** X*** 46,60 **** X #include X #include X #include X! X #include X #include X #include X #include X- #include "pathnames.h" X X! extern char *optarg; X! extern int optind, opterr, errno; X X int X main(argc, argv) X--- 44,57 ---- X #include X #include X #include X! #include X #include X #include X #include X+ #include X #include X X! #define _PATH_FINGER "/usr/ucb/finger" X X int X main(argc, argv) X*** ./usr/src/libexec/tftpd/tftpd.c.old Tue Jan 11 00:50:38 1994 X--- ./usr/src/libexec/tftpd/tftpd.c Tue Sep 22 09:17:28 2026 X*************** X*** 22,29 **** X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)tftpd.c 5.12.1 (2.11BSD GTE) 1/1/94"; X! #endif /* not lint */ X X /* X * Trivial file transfer protocol server. X--- 22,29 ---- X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)tftpd.c 5.12.2 (2.11BSD) 2026/9/21"; X! #endif X X /* X * Trivial file transfer protocol server. X*************** X*** 36,42 **** X #include X #include X #include X! #include X X #include X X--- 36,42 ---- X #include X #include X #include X! #include X X #include X X*************** X*** 288,293 **** X--- 288,294 ---- X int timeout; X jmp_buf timeoutbuf; X X+ void X timer() X { X X*************** X*** 359,364 **** X--- 360,366 ---- X (void) fclose(file); X } X X+ void X justquit() X { X exit(0); X*** ./usr/src/libexec/ftpd/logwtmp.c.old Thu Apr 20 16:19:46 1989 X--- ./usr/src/libexec/ftpd/logwtmp.c Mon May 11 06:43:11 2026 X*************** X*** 16,29 **** X * X */ X X! #ifndef lint X! static char sccsid[] = "@(#)logwtmp.c based on 5.5 (Berkeley) 4/2/89"; X! #endif /* not lint */ X X #include X #include X! #include X #include X #include X X #ifndef _PATH_WTMP X--- 16,30 ---- X * X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)logwtmp.c 5.6 (2.11BSD) 2026/5/11"; X! #endif X X #include X #include X! #include X #include X+ #include X #include X X #ifndef _PATH_WTMP X*************** X*** 42,49 **** X { X struct utmp ut; X struct stat buf; X- time_t time(); X- char *strncpy(); X X if (fd < 0 && (fd = open(_PATH_WTMP, O_WRONLY|O_APPEND, 0)) < 0) X return; X--- 43,48 ---- X*** ./usr/src/libexec/ftpd/ftpd.c.old Fri Dec 26 00:08:41 2025 X--- ./usr/src/libexec/ftpd/ftpd.c Wed Sep 23 21:57:04 2026 X*************** X*** 20,26 **** X "@(#) Copyright (c) 1985, 1988 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)ftpd.c 5.28.4 (2.11BSD) 2025/12/26"; X #endif X X /* X--- 20,26 ---- X "@(#) Copyright (c) 1985, 1988 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)ftpd.c 5.28.5 (2.11BSD) 2026/9/19"; X #endif X X /* X*************** X*** 50,57 **** X #include X #include X #include X! #include "pathnames.h" X X #ifndef MAXHOSTNAMELEN X #define MAXHOSTNAMELEN 64 X #endif X--- 50,59 ---- X #include X #include X #include X! #include X X+ #define _PATH_FTPUSERS "/etc/ftpusers" X+ X #ifndef MAXHOSTNAMELEN X #define MAXHOSTNAMELEN 64 X #endif X*************** X*** 119,126 **** X int swaitmax = SWAITMAX; X int swaitint = SWAITINT; X X! int lostconn(); X! int myoob(); X FILE *getdatasock(), *dataconn(); X X #ifdef SETPROCTITLE X--- 121,128 ---- X int swaitmax = SWAITMAX; X int swaitint = SWAITINT; X X! void lostconn(); X! void myoob(); X FILE *getdatasock(), *dataconn(); X X #ifdef SETPROCTITLE X*************** X*** 216,223 **** X (void) freopen(_PATH_DEVNULL, "w", stderr); X (void) signal(SIGPIPE, lostconn); X (void) signal(SIGCHLD, SIG_IGN); X! if ((int)signal(SIGURG, myoob) < 0) X! syslog(LOG_ERR, "signal: %m"); X X /* handle urgent data inline */ X /* Sequent defines this, but it doesn't work */ X--- 218,224 ---- X (void) freopen(_PATH_DEVNULL, "w", stderr); X (void) signal(SIGPIPE, lostconn); X (void) signal(SIGCHLD, SIG_IGN); X! signal(SIGURG, myoob); X X /* handle urgent data inline */ X /* Sequent defines this, but it doesn't work */ X*************** X*** 247,252 **** X--- 248,254 ---- X /* NOTREACHED */ X } X X+ void X lostconn() X { X X*************** X*** 390,396 **** X * attempt to slow down passwd-guessing programs. X */ X if (login_attempts) X! sleep((unsigned) login_attempts); X } X X /* X--- 392,398 ---- X * attempt to slow down passwd-guessing programs. X */ X if (login_attempts) X! sleep(login_attempts); X } X X /* X*************** X*** 710,716 **** X while (connect(data, (struct sockaddr *)&data_dest, X sizeof (data_dest)) < 0) { X if (errno == EADDRINUSE && retry < swaitmax) { X! sleep((unsigned) swaitint); X retry += swaitint; X continue; X } X--- 712,718 ---- X while (connect(data, (struct sockaddr *)&data_dest, X sizeof (data_dest)) < 0) { X if (errno == EADDRINUSE && retry < swaitmax) { X! sleep(swaitint); X retry += swaitint; X continue; X } X*************** X*** 1157,1162 **** X--- 1159,1165 ---- X _exit(status); X } X X+ void X myoob() X { X char *cp; X*** ./usr/src/libexec/ftpd/popen.c.old Sun Feb 13 13:45:46 2000 X--- ./usr/src/libexec/ftpd/popen.c Mon Sep 21 07:18:07 2026 X*************** X*** 20,33 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)popen.c 5.7.1 (2.11BSD) 1999/10/25"; X #endif X X #include X- #include X #include X #include X #include X X /* X * Special version of popen which avoids call to shell. This insures noone X--- 20,34 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)popen.c 5.7.2 (2.11BSD) 2026/9/21"; X #endif X X #include X #include X+ #include X #include X #include X+ #include X X /* X * Special version of popen which avoids call to shell. This insures noone X*************** X*** 45,51 **** X FILE *iop; X int argc, gargc, pdes[2], pid; X char **pop, *argv[100], *gargv[1000], *vv[2], **ppop, *endprogram; X! extern char **glob(), **copyblk(), *malloc(); X X if (*type != 'r' && *type != 'w' || type[1]) X return(NULL); X--- 46,52 ---- X FILE *iop; X int argc, gargc, pdes[2], pid; X char **pop, *argv[100], *gargv[1000], *vv[2], **ppop, *endprogram; X! extern char **glob(), **copyblk(); X X if (*type != 'r' && *type != 'w' || type[1]) X return(NULL); X*** ./usr/src/libexec/ftpd/ftpcmd.y.old Mon May 14 21:41:57 2001 X--- ./usr/src/libexec/ftpd/ftpcmd.y Tue Sep 22 09:05:29 2026 X*************** X*** 14,20 **** X * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. X * X! * @(#)ftpcmd.y 5.20.1 (2.11BSD) 2001/2/7 X */ X X /* X--- 14,20 ---- X * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. X * X! * @(#)ftpcmd.y 5.20.2 (2.11BSD) 2026/9/22 X */ X X /* X*************** X*** 825,831 **** X return (s); X } X X! static int X toolong() X { X time_t now; X--- 825,831 ---- X return (s); X } X X! static void X toolong() X { X time_t now; X*** ./usr/src/libexec/comsat/comsat.c.old Sun Feb 13 13:44:03 2000 X--- ./usr/src/libexec/comsat/comsat.c Tue Sep 22 09:00:39 2026 X*************** X*** 15,21 **** X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)comsat.c 5.11.2 (2.11BSD) 1999/9/15"; X #endif X X #include X--- 15,21 ---- X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)comsat.c 5.11.3 (2.11BSD) 2026/9/22"; X #endif X X #include X*************** X*** 58,64 **** X register int cc; X char msgbuf[100]; X struct sockaddr_in from; X! int fromlen, reapchildren(), onalrm(); X sigset_t set, oset; X X /* verify proper invocation */ X--- 58,65 ---- X register int cc; X char msgbuf[100]; X struct sockaddr_in from; X! int fromlen; X! void onalrm(), reapchildren(); X sigset_t set, oset; X X /* verify proper invocation */ X*************** X*** 102,107 **** X--- 103,109 ---- X } X } X X+ void X reapchildren() X { X while (wait4(-1, NULL, WNOHANG, NULL) > 0) X*************** X*** 108,113 **** X--- 110,116 ---- X ; X } X X+ void X onalrm() X { X static u_int utmpsize; /* last malloced size for utmp */ X*** ./usr/src/libexec/talkd/talkd.c.old Tue Jan 11 00:48:49 1994 X--- ./usr/src/libexec/talkd/talkd.c Tue Sep 22 09:15:42 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)talkd.c 5.2.1 (2.11BSD GTE) 1/1/94"; X #endif X X /* X--- 9,15 ---- X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)talkd.c 5.2.2 (2.11BSD) 2026/7/21"; X #endif X X /* X*************** X*** 22,27 **** X--- 22,28 ---- X #include X #include X #include X+ #include X X #include X X*************** X*** 30,38 **** X X int sockt; X int debug = 0; X! int timeout(); X! long time(); X! long lastmsgtime; X X char hostname[32]; X X--- 31,38 ---- X X int sockt; X int debug = 0; X! void timeout(); X! time_t lastmsgtime; X X char hostname[32]; X X*************** X*** 64,70 **** X signal(SIGALRM, timeout); X alarm(TIMEOUT); X for (;;) { X- extern int errno; X X cc = recv(0, (char *)mp, sizeof (*mp), 0); X if (cc != sizeof (*mp)) { X--- 64,69 ---- X*************** X*** 82,87 **** X--- 81,87 ---- X } X } X X+ void X timeout() X { X X*** ./usr/src/libexec/talkd/process.c.old Sun Nov 17 00:23:54 1996 X--- ./usr/src/libexec/talkd/process.c Tue Sep 15 06:25:29 2026 X*************** X*** 5,11 **** X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)process.c 5.4.2 (2.11BSD GTE) 1996/11/16"; X #endif X X /* X--- 5,11 ---- X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)process.c 5.4.3 (2.11BSD) 2026/9/15"; X #endif X X /* X*************** X*** 20,31 **** X #include X #include X #include X #include X #include X- X #include X X- char *strcpy(); X CTL_MSG *find_request(); X CTL_MSG *find_match(); X X--- 20,30 ---- X #include X #include X #include X+ #include X #include X #include X #include X X CTL_MSG *find_request(); X CTL_MSG *find_match(); X X*** ./usr/src/libexec/talkd/print.c.old Tue Jan 11 00:49:36 1994 X--- ./usr/src/libexec/talkd/print.c Tue Sep 15 06:26:18 2026 X*************** X*** 5,20 **** X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)print.c 5.2.1 (2.11BSD GTE) 1/1/94"; X #endif X X- /* debug print routines */ X- X #include X #include X #include X #include X- X #include X X static char *types[] = X--- 5,17 ---- X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)print.c 5.2.2 (2.11BSD) 2026/9/15"; X #endif X X #include X #include X #include X #include X #include X X static char *types[] = X*** ./usr/src/libexec/talkd/table.c.old Tue Jan 11 00:50:11 1994 X--- ./usr/src/libexec/talkd/table.c Tue Sep 15 06:27:08 2026 X*************** X*** 5,11 **** X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)table.c 5.2.1 (2.11BSD GTE) 1/1/94"; X #endif X X /* X--- 5,11 ---- X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)table.c 5.2.2 (2.11BSD) 2026/9/15"; X #endif X X /* X*************** X*** 20,27 **** X #include X #include X #include X #include X- X #include X X #define MAX_ID 16000 /* << 2^15 so I don't have sign troubles */ X--- 20,27 ---- X #include X #include X #include X+ #include X #include X #include X X #define MAX_ID 16000 /* << 2^15 so I don't have sign troubles */ X*************** X*** 44,50 **** X TABLE_ENTRY *table = NIL; X CTL_MSG *find_request(); X CTL_MSG *find_match(); X- char *malloc(); X X /* X * Look in the table for an invitation that matches the current X--- 44,49 ---- X*** ./usr/src/libexec/talkd/announce.c.old Tue Jan 11 00:49:17 1994 X--- ./usr/src/libexec/talkd/announce.c Tue Sep 15 06:22:44 2026 X*************** X*** 5,11 **** X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)announce.c 5.3.1 (2.11BSD GTE) 1/1/94"; X #endif X X #include X--- 5,11 ---- X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)announce.c 5.3.2 (2.11BSD) 2026/9/15"; X #endif X X #include X*************** X*** 20,26 **** X X #include X X- extern int errno; X extern char hostname[]; X X /* X--- 20,25 ---- X*** ./usr/src/libexec/getty/main.c.old Sat Mar 22 15:09:12 2025 X--- ./usr/src/libexec/getty/main.c Tue Sep 22 09:08:35 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)main.c 5.5.3 (2.11BSD) 2025/3/10"; X #endif X X /* X--- 9,15 ---- X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)main.c 5.5.4 (2.11BSD) 2026/9/22"; X #endif X X /* X*************** X*** 90,95 **** X--- 90,96 ---- X X jmp_buf timeout; X X+ void X dingdong() X { X X*************** X*** 100,105 **** X--- 101,107 ---- X X jmp_buf intrupt; X X+ void X interrupt() X { X X*** ./usr/src/libexec/popper/pop_updt.c.old Fri Mar 22 01:04:29 1996 X--- ./usr/src/libexec/popper/pop_updt.c Sun May 10 16:17:52 2026 X*************** X*** 4,13 **** X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(lint) X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X static char SccsId[] = "@(#)@(#)pop_updt.c 2.3.1 (2.11BSD) 1996/3/21"; X! #endif not lint X X #include X #include X--- 4,13 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X static char SccsId[] = "@(#)@(#)pop_updt.c 2.3.1 (2.11BSD) 1996/3/21"; X! #endif X X #include X #include X*** ./usr/src/libexec/popper/pop_dele.c.old Wed Jun 24 18:16:41 1992 X--- ./usr/src/libexec/popper/pop_dele.c Tue May 12 06:17:29 2026 X*************** X*** 4,13 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_dele.c 2.1 2.1 3/18/91"; X! #endif not lint X X #include X #include X--- 4,13 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_dele.c 2.2 (2.11BSD) 2026/5/12"; X! #endif X X #include X #include X*** ./usr/src/libexec/popper/pop_get_command.c.old Wed Apr 3 18:25:31 1991 X--- ./usr/src/libexec/popper/pop_get_command.c Tue May 12 06:18:10 2026 X*************** X*** 4,13 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_get_command.c 2.1 2.1 3/18/91"; X! #endif not lint X X #include X #include X--- 4,13 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_get_command.c 2.2 (2.11BSD) 2026/5/12"; X! #endif X X #include X #include X*** ./usr/src/libexec/popper/pop_get_subcommand.c.old Wed Apr 3 18:25:32 1991 X--- ./usr/src/libexec/popper/pop_get_subcommand.c Tue May 12 06:18:39 2026 X*************** X*** 4,13 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_get_subcommand.c 2.1 2.1 3/18/91"; X! #endif not lint X X #include X #include X--- 4,13 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_get_subcommand.c 2.2 (2.11BSD) 2026/5/12"; X! #endif X X #include X #include X*** ./usr/src/libexec/popper/pop_init.c.old Wed Apr 3 18:25:28 1991 X--- ./usr/src/libexec/popper/pop_init.c Tue May 12 06:19:12 2026 X*************** X*** 4,13 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_init.c 2.1 2.1 3/18/91"; X! #endif not lint X X #include X #include X--- 4,13 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_init.c 2.2 (2.11BSD) 2026/5/12"; X! #endif X X #include X #include X*** ./usr/src/libexec/popper/pop_last.c.old Wed Apr 3 18:25:31 1991 X--- ./usr/src/libexec/popper/pop_last.c Tue May 12 06:19:31 2026 X*************** X*** 4,13 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_last.c 2.1 2.1 3/18/91"; X! #endif not lint X X #include X #include X--- 4,13 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_last.c 2.2 (2.11BSD) 2026/5/12"; X! #endif X X #include X #include X*** ./usr/src/libexec/popper/pop_list.c.old Wed Jun 24 18:18:00 1992 X--- ./usr/src/libexec/popper/pop_list.c Tue May 12 06:19:49 2026 X*************** X*** 4,13 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_list.c 2.1 2.1 3/18/91"; X! #endif not lint X X #include X #include X--- 4,13 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_list.c 2.2 (2.11BSD) 2026/5/12"; X! #endif X X #include X #include X*** ./usr/src/libexec/popper/pop_lower.c.old Wed Apr 3 18:25:34 1991 X--- ./usr/src/libexec/popper/pop_lower.c Tue May 12 06:20:12 2026 X*************** X*** 4,13 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_lower.c 2.1 2.1 3/18/91"; X! #endif not lint X X #include X #include X--- 4,13 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_lower.c 2.2 (2.11BSD) 2026/5/12"; X! #endif X X #include X #include X*** ./usr/src/libexec/popper/pop_parse.c.old Wed Apr 3 18:25:35 1991 X--- ./usr/src/libexec/popper/pop_parse.c Tue May 12 06:20:37 2026 X*************** X*** 4,13 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_parse.c 2.1 2.1 3/18/91"; X! #endif not lint X X #include X #include X--- 4,13 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_parse.c 2.2 (2.11BSD) 2026/5/12"; X! #endif X X #include X #include X*** ./usr/src/libexec/popper/pop_pass.c.old Wed Jun 24 18:18:36 1992 X--- ./usr/src/libexec/popper/pop_pass.c Tue May 12 06:22:39 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_pass.c 2.3 2.3 4/2/91"; X! #endif not lint X X #include X #include X #include X #include X #include "popper.h" X X /* X--- 4,19 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_pass.c 2.4 (2.11BSD) 2026/5/12"; X! #endif X X #include X #include X #include X #include X+ #include X #include "popper.h" X X /* X*************** X*** 23,29 **** X POP * p; X { X register struct passwd * pw; X- char *crypt(); X X /* Look for the user in the password file */ X if ((pw = getpwnam(p->user)) == NULL) X--- 24,29 ---- X*** ./usr/src/libexec/popper/pop_quit.c.old Wed Apr 3 18:25:36 1991 X--- ./usr/src/libexec/popper/pop_quit.c Tue May 12 06:23:02 2026 X*************** X*** 4,13 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_quit.c 2.1 2.1 3/18/91"; X! #endif not lint X X #include X #include X--- 4,13 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_quit.c 2.2 (2.11BSD) 2026/5/12"; X! #endif X X #include X #include X*** ./usr/src/libexec/popper/pop_rset.c.old Wed Jun 24 18:11:40 1992 X--- ./usr/src/libexec/popper/pop_rset.c Tue May 12 06:23:25 2026 X*************** X*** 4,13 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_rset.c 2.1 2.1 3/18/91"; X! #endif not lint X X #include X #include X--- 4,13 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_rset.c 2.2 (2.11BSD) 2026/5/12"; X! #endif X X #include X #include X*** ./usr/src/libexec/popper/pop_send.c.old Wed Jun 24 18:18:54 1992 X--- ./usr/src/libexec/popper/pop_send.c Tue May 12 06:23:48 2026 X*************** X*** 4,13 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_send.c 2.1 2.1 3/18/91"; X! #endif not lint X X #include X #include X--- 4,13 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_send.c 2.2 (2.11BSD) 2026/5/12"; X! #endif X X #include X #include X*** ./usr/src/libexec/popper/pop_stat.c.old Wed Jun 24 18:19:05 1992 X--- ./usr/src/libexec/popper/pop_stat.c Tue May 12 06:24:11 2026 X*************** X*** 4,13 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_stat.c 2.2 2.2 3/18/91"; X! #endif not lint X X #include X #include X--- 4,13 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_stat.c 2.3 (2.11BSD) 2026/5/12"; X! #endif X X #include X #include X*** ./usr/src/libexec/popper/pop_user.c.old Wed Apr 3 18:25:41 1991 X--- ./usr/src/libexec/popper/pop_user.c Tue May 12 06:24:32 2026 X*************** X*** 4,13 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_user.c 2.1 2.1 3/18/91"; X! #endif not lint X X #include X #include X--- 4,13 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_user.c 2.2 (2.11BSD) 2026/5/12"; X! #endif X X #include X #include X*** ./usr/src/libexec/popper/pop_xmit.c.old Wed Apr 3 18:25:41 1991 X--- ./usr/src/libexec/popper/pop_xmit.c Tue May 12 06:24:54 2026 X*************** X*** 4,13 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_xmit.c 2.1 2.1 3/18/91"; X! #endif not lint X X #include X #include X--- 4,13 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_xmit.c 2.2 (2.11BSD) 2026/5/12"; X! #endif X X #include X #include X*** ./usr/src/libexec/popper/pop_xtnd.c.old Wed Apr 3 18:25:42 1991 X--- ./usr/src/libexec/popper/pop_xtnd.c Tue May 12 06:25:12 2026 X*************** X*** 4,13 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_xtnd.c 2.1 2.1 3/18/91"; X! #endif not lint X X #include X #include X--- 4,13 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)pop_xtnd.c 2.2 (2.11BSD) 2026/5/12"; X! #endif X X #include X #include X*** ./usr/src/libexec/popper/popper.c.old Wed Apr 3 18:25:42 1991 X--- ./usr/src/libexec/popper/popper.c Tue May 12 06:25:31 2026 X*************** X*** 4,13 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)popper.c 2.1 2.1 3/18/91"; X! #endif not lint X X #include X #include X--- 4,13 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X static char copyright[] = "Copyright (c) 1990 Regents of the University of California.\nAll rights reserved.\n"; X! static char SccsId[] = "@(#)@(#)popper.c 2.2 (2.11BSD) 2026/5/12"; X! #endif X X #include X #include X*** ./usr/src/libexec/identd/src/kernel/2.11bsd.c.old Thu Dec 5 19:36:48 1996 X--- ./usr/src/libexec/identd/src/kernel/2.11bsd.c Wed Jun 17 09:42:41 2026 X*************** X*** 1,10 **** X /* X! ** kernel/2.11bsd.c Low level kernel access functions for 2.11BSD X ** X ** This program is in the public domain and may be used freely by anyone X ** who wants to. X ** X! ** Last update: 05 December 1999 X ** X ** Please send bug fixes/bug reports to: Steven Schultz X */ X--- 1,10 ---- X /* X! ** kernel/2.11bsd.c - Low level kernel access functions for 2.11BSD X ** X ** This program is in the public domain and may be used freely by anyone X ** who wants to. X ** X! ** Last update: 17 June 2026 use swapdevname(3) in place of fixed swap device X ** X ** Please send bug fixes/bug reports to: Steven Schultz X */ X*************** X*** 62,71 **** X #define _PATH_MEM "/dev/mem" X #endif X X- #ifndef _PATH_SWAP X- #define _PATH_SWAP "/dev/swap" X- #endif X- X #ifndef _PATH_UNIX X #define _PATH_UNIX "/unix" X #endif X--- 62,67 ---- X*************** X*** 79,85 **** X static char Msg_sysctl[] = "sysctl %s"; X static char Msg_readu[] = "can't read u pid %d"; X static char Msg_malloc[] = "malloc(%d)"; X! static char Swap[] = _PATH_SWAP; X static char Netnix[] = _PATH_NETNIX; X X static struct file *sockp2fp(); X--- 75,81 ---- X static char Msg_sysctl[] = "sysctl %s"; X static char Msg_readu[] = "can't read u pid %d"; X static char Msg_malloc[] = "malloc(%d)"; X! static char Swap[20]; X static char Netnix[] = _PATH_NETNIX; X X static struct file *sockp2fp(); X*************** X*** 99,104 **** X--- 95,101 ---- X if (memfd < 0) X error1(Msg_open, p); X X+ swapdevname(Swap, sizeof (Swap)); X swapfd = open(Swap, O_RDONLY); X if (swapfd < 0) X error1(Msg_open, Swap); X*** ./usr/src/libexec/identd/src/identd.c.old Fri Oct 18 06:42:01 1996 X--- ./usr/src/libexec/identd/src/identd.c Tue Sep 22 09:13:15 2026 X*************** X*** 1,11 **** X /* X! ** identd.c A TCP/IP link identification protocol server X ** X ** This program is in the public domain and may be used freely by anyone X ** who wants to. X ** X- ** Last update: 7 Oct 1993 X- ** X ** Please send bug fixes/bug reports to: Peter Eriksson X */ X X--- 1,11 ---- X /* X! * @(#)identd.c 1.1 (2.11BSD) 2026/9/22 X! * X! ** identd.c A TCP/IP link identification protocol server X ** X ** This program is in the public domain and may be used freely by anyone X ** who wants to. X ** X ** Please send bug fixes/bug reports to: Peter Eriksson X */ X X*************** X*** 222,252 **** X #endif X X X- #if !defined(hpux) && !defined(__hpux) && !defined(SVR4) && \ X- !defined(_CRAY) && !defined(sco) && !defined(LINUX) X /* X ** This is used to clean up zombie child processes X ** if the -w or -b options are used. X */ X! static SIGRETURN_TYPE X child_handler() X { X- #if defined(NeXT) || (defined(__sgi) && defined(__SVR3)) X- union wait status; X- #else X int status; X- #endif X X while (wait3(&status, WNOHANG, NULL) > 0) X ; X- X- #ifndef SIGRETURN_TYPE_IS_VOID X- return 0; X- #endif X } X- #endif X X- X char *clearmem(vbp, len) X void *vbp; X int len; X--- 222,240 ---- X #endif X X X /* X ** This is used to clean up zombie child processes X ** if the -w or -b options are used. X */ X! static void X child_handler() X { X int status; X X while (wait3(&status, WNOHANG, NULL) > 0) X ; X } X X char *clearmem(vbp, len) X void *vbp; X int len; X*************** X*** 627,633 **** X struct sockaddr sad; X int sadlen; X X- X /* X ** Set up the SIGCHLD signal child termination handler so X ** that we can avoid zombie processes hanging around and X--- 615,620 ---- X*************** X*** 634,645 **** X ** handle childs terminating before being able to complete the X ** handshake. X */ X! #if (defined(SVR4) || defined(hpux) || defined(__hpux) || defined(IRIX) || \ X! defined(_CRAY) || defined(_AUX_SOURCE)) || defined(sco) || defined(LINUX) X! signal(SIGCHLD, SIG_IGN); X! #else X! signal(SIGCHLD, (SIGRETURN_TYPE (*)()) child_handler); X! #endif X X /* X ** Loop and dispatch client handling processes X--- 621,627 ---- X ** handle childs terminating before being able to complete the X ** handshake. X */ X! signal(SIGCHLD, child_handler); X X /* X ** Loop and dispatch client handling processes X*** ./usr/src/libexec/acctd/acctd.8.old Tue Aug 17 00:58:07 1999 X--- ./usr/src/libexec/acctd/acctd.8 Mon Jun 22 20:17:27 2026 X*************** X*** 1,5 **** X .\" X! .\" @(#) 2.11BSD acctd.8 1.1 1999/4/28 X .\" X .TH ACCTD 8 "April 28, 1999" X .UC 4 X--- 1,5 ---- X .\" X! .\" @(#) 2.11BSD acctd.8 1.2 2026/6/22 X .\" X .TH ACCTD 8 "April 28, 1999" X .UC 4 X*************** X*** 8,21 **** X .SH SYNOPSIS X .B acctd [\fB\-d\fP] X .SH DESCRIPTION X! .B Acctd X reads accounting records from the kernel's accounting driver (/dev/acctlog) X and writes the records to a file for later analysis. The X .BR accton (8) X program is used to update (or create) the config file (/etc/acctd.cf). X .PP X! .BR Acctd (8) X! reads the config file upon startup and reciept of a SIGHUP signal. X If a SIGTERM signal is received the accounting file is closed and the X daemon exits. X The one option is: X--- 8,21 ---- X .SH SYNOPSIS X .B acctd [\fB\-d\fP] X .SH DESCRIPTION X! .B acctd X reads accounting records from the kernel's accounting driver (/dev/acctlog) X and writes the records to a file for later analysis. The X .BR accton (8) X program is used to update (or create) the config file (/etc/acctd.cf). X .PP X! .BR acctd (8) X! reads the config file upon startup and receipt of a SIGHUP signal. X If a SIGTERM signal is received the accounting file is closed and the X daemon exits. X The one option is: X*************** X*** 33,37 **** X accton(8), X sa(8) X .SH HISTORY X! .B Acctd X first appeared in 2.11BSD X--- 33,37 ---- X accton(8), X sa(8) X .SH HISTORY X! .B acctd X first appeared in 2.11BSD X*** ./usr/src/libexec/acctd/acctd.c.old Fri Dec 26 00:07:59 2025 X--- ./usr/src/libexec/acctd/acctd.c Tue Sep 22 08:58:36 2026 X*************** X*** 1,7 **** X /* X * Steven Schultz - sms@2bsd.com X * X! * @(#)acctd.c 1.1 (2.11BSD) 2025/12/25 X * X * acctd - process accounting daemon X */ X--- 1,7 ---- X /* X * Steven Schultz - sms@2bsd.com X * X! * @(#)acctd.c 1.2 (2.11BSD) 2026/9/17 X * X * acctd - process accounting daemon X */ X*************** X*** 39,45 **** X struct ACCTPARM Acctparms; X FILE *Acctfp; X char *Acctdcf = _PATH_ACCTDCF; X! int checkacctspace(), hupcatch(), terminate(); X void usage(), errline(); X void die(), reportit(); X X--- 39,45 ---- X struct ACCTPARM Acctparms; X FILE *Acctfp; X char *Acctdcf = _PATH_ACCTDCF; X! void checkacctspace(), hupcatch(), terminate(); X void usage(), errline(); X void die(), reportit(); X X*************** X*** 204,209 **** X--- 204,210 ---- X } X } X X+ void X checkacctspace() X { X struct statfs fsb; X*************** X*** 219,225 **** X if (!Disabled) X reportit("less than %d%% freespace on %s, accounting suspended\n", Acctparms.suspend, fsb.f_mntfromname); X Disabled = 1; X! return(0); X } X /* X * If accounting is not disabled then just return. If it has been disabled X--- 220,226 ---- X if (!Disabled) X reportit("less than %d%% freespace on %s, accounting suspended\n", Acctparms.suspend, fsb.f_mntfromname); X Disabled = 1; X! return; X } X /* X * If accounting is not disabled then just return. If it has been disabled X*************** X*** 226,232 **** X * check if enough space is free to resume accounting. X */ X if (!Disabled) X! return(0); X X resumefree = ((float)fsb.f_blocks * (float)Acctparms.resume) / 100.0; X if (totalfree >= resumefree) X--- 227,233 ---- X * check if enough space is free to resume accounting. X */ X if (!Disabled) X! return; X X resumefree = ((float)fsb.f_blocks * (float)Acctparms.resume) / 100.0; X if (totalfree >= resumefree) X*************** X*** 235,241 **** X Acctparms.resume, fsb.f_mntfromname); X Disabled = 0; X } X! return(0); X } X X /* X--- 236,242 ---- X Acctparms.resume, fsb.f_mntfromname); X Disabled = 0; X } X! return; X } X X /* X*************** X*** 243,248 **** X--- 244,250 ---- X * in the signal handler because other signals are blocked. X */ X X+ void X hupcatch() X { X struct ACCTPARM ajunk; X*************** X*** 270,275 **** X--- 272,278 ---- X * assumption is made here as in doit() - that the reads are atomic, we X * either get all that we asked for or nothing. X */ X+ void X terminate() X { X register int i, cnt; X*************** X*** 281,287 **** X { X while ((cnt = read(Alogfd, &a, sizeof (a)) > 0)) X fwrite(&a, sizeof (a), 1, Acctfp); X! usleep(1000000L); X } X if (Acctfp) X fclose(Acctfp); X--- 284,290 ---- X { X while ((cnt = read(Alogfd, &a, sizeof (a)) > 0)) X fwrite(&a, sizeof (a), 1, Acctfp); X! usleep(1100000L); X } X if (Acctfp) X fclose(Acctfp); X*** ./usr/src/libexec/Makefile.old Tue Nov 25 14:30:14 2025 X--- ./usr/src/libexec/Makefile Thu Jun 25 06:55:49 2026 X*************** X*** 1,12 **** X # X! # Steven Schultz - put in the public domain 1996/6/25. X # X- # @(#)Makefile 1.7 (2.11BSD) 2025/11/25 X- # X CFLAGS= -O X TAGSFILE=tags X X! SUBDIR= acctd comsat ctimed fingerd ftpd getNAME getty identd makekey \ X popper rexecd rlogind rshd talkd tcpd telnetd tftpd X X all: ${SUBDIR} X--- 1,10 ---- X # X! # @(#)Makefile 1.8 (2.11BSD) 2026/6/25 X # X CFLAGS= -O X TAGSFILE=tags X X! SUBDIR= acctd comsat ctimed fingerd ftpd getty identd makekey \ X popper rexecd rlogind rshd talkd tcpd telnetd tftpd X X all: ${SUBDIR} X*** ./usr/src/local/zmodem/crc.1.old Fri Jun 5 15:50:05 1992 X--- ./usr/src/local/zmodem/crc.1 Wed Jun 17 13:35:42 2026 X*************** X*** 1,32 **** X! .TH CRC 1 OMEN X! .SH NAME X! crc \- checksum files X! .SH SYNOPSIS X! .B crc X! file ... X! .SH DESCRIPTION X! For each file, X! .I crc\^ X! calculates and prints a 32-bit CRC, X! the byte count, and the file name. X! It is typically used to validate files transferred between X! different systems, and is useful in detecting subtle disk corruption. X! .I Crc\^ X! uses a checksum compatible with the X! DOS X! version of crc, X! the 32 bit CRC used by PKZIP version 0.9, X! as well as the "crc" command in ZCOMM and Professional-YAM X! (high reliability communications programs). X! X! The 32-bit CRC used is the frame X! check sequence in ADCCP (ANSI X3.66, also known as FIPS PUB 71 X! and FED-STD-1003, the U.S. versions of CCITT's X.25 link-level X! protocol). X! X! 32 bit CRC code courtesy Gary S. Brown. X! .SH BUGS X! Although extremely unlikely, X! files with different data may still produce the same crc value. X! .SH "SEE ALSO" X! chek(1), undos(OMEN), todos(OMEN), tocpm(OMEN), sum(1), wc(1). X--- 1,35 ---- X! \" X! .\" @(#)crc.1 2.0 (2.11BSD) 2026/6/17 X! .\" X! .TH CRC 1 "June 17, 2026" X! .SH NAME X! \fBcrc\fP \- checksum files X! .SH SYNOPSIS X! .B crc X! file ... X! .SH DESCRIPTION X! For each file, X! .B crc X! calculates and prints a 32-bit CRC, X! the byte count, and the file name. X! It is typically used to validate files transferred between X! different systems, and is useful in detecting subtle disk corruption. X! .B crc X! uses a checksum compatible with the X! DOS X! version of \fBcrc\fP, X! the 32 bit CRC used by PKZIP version 0.9, X! as well as the \fBcrc\fP command in ZCOMM and Professional-YAM X! (high reliability communications programs). X! X! The 32-bit CRC used is the frame X! check sequence in ADCCP (ANSI X3.66, also known as FIPS PUB 71 X! and FED-STD-1003, the U.S. versions of CCITT's X.25 link-level X! protocol). X! X! 32 bit CRC code courtesy Gary S. Brown. X! .SH BUGS X! Although extremely unlikely, X! files with different data may still produce the same CRC value. X! .SH "SEE ALSO" X! sum(1), wc(1). X*** ./usr/src/local/zmodem/crc.c.old Sun Jun 14 02:16:05 1992 X--- ./usr/src/local/zmodem/crc.c Thu Jun 18 06:09:20 2026 X*************** X*** 1,8 **** X- /*% cc -O -K -dos % -o crc.exe X- */ X- X /* X * Crc - 32 BIT ANSI X3.66 CRC checksum files X */ X #include X #define OK 0 X--- 1,7 ---- X /* X * Crc - 32 BIT ANSI X3.66 CRC checksum files X+ * X+ * crc.c 1.1 (2.11BSD) 2026/6/17 X */ X #include X #define OK 0 X*************** X*** 124,141 **** X char *name; X { X register FILE *fin; X! register unsigned long oldcrc32; X! register unsigned long crc32; X! register unsigned long oldcrc; X! register c; X! register long charcnt; X X oldcrc32 = 0xFFFFFFFF; charcnt = 0; X- #ifdef M_I86SM X- if ((fin=fopen(name, "rb"))==NULL) X- #else X if ((fin=fopen(name, "r"))==NULL) X- #endif X { X perror(name); X return ERROR; X--- 123,136 ---- X char *name; X { X register FILE *fin; X! unsigned long oldcrc32; X! unsigned long crc32; X! unsigned long oldcrc; X! register int c; X! long charcnt; X X oldcrc32 = 0xFFFFFFFF; charcnt = 0; X if ((fin=fopen(name, "r"))==NULL) X { X perror(name); X return ERROR; X*************** X*** 153,160 **** X X crc32 = oldcrc32; oldcrc = oldcrc32 = ~oldcrc32; X X! printf("%08lX %7ld %s\n", oldcrc, charcnt, name); X X return OK; X } X- X--- 148,154 ---- X X crc32 = oldcrc32; oldcrc = oldcrc32 = ~oldcrc32; X X! printf("%8lX %7ld %s\n", oldcrc, charcnt, name); X X return OK; X } X*** ./usr/src/local/zmodem/Makefile.old Mon Dec 8 15:33:53 2025 X--- ./usr/src/local/zmodem/Makefile Wed Jun 17 07:09:38 2026 X*************** X*** 1,27 **** X! # Makefile 2.0 (2.11BSD) 2025/11/25 X! # Driver makefile for zmodem. Calls makefile.generic. X X CC=cc X CFLAGS=-O -DV7 -DMD=2 -DTXBSIZE=8192 -DNFGVMIN X LDFLAGS=-i X- ROFF = /usr/man/manroff X DESTBIN = /usr/local X DESTMAN = /usr/local/man/cat1 X X INSTALL = /usr/bin/install X X! OBJ = sz rz X X! all: $(OBJ) rz.0 sz.0 X X sz: sz.o X $(CC) ${LDFLAGS} sz.o -o sz X- size sz X X rz: rz.o X $(CC) ${LDFLAGS} rz.o -o rz X- size rz X X rz.0: rz.1 X /usr/man/manroff rz.1 > rz.0 X X--- 1,29 ---- X! # Makefile 2.1 (2.11BSD) 2026/6/17 X X CC=cc X CFLAGS=-O -DV7 -DMD=2 -DTXBSIZE=8192 -DNFGVMIN X LDFLAGS=-i X DESTBIN = /usr/local X DESTMAN = /usr/local/man/cat1 X X INSTALL = /usr/bin/install X X! OBJ = sz rz crc X X! all: $(OBJ) rz.0 sz.0 crc.0 X X sz: sz.o X $(CC) ${LDFLAGS} sz.o -o sz X X rz: rz.o X $(CC) ${LDFLAGS} rz.o -o rz X X+ crc: crc.o X+ $(CC) ${SEPFLAG} crc.o -o crc X+ X+ crc.0: crc.1 X+ /usr/man/manroff crc.1 > crc.0 X+ X rz.0: rz.1 X /usr/man/manroff rz.1 > rz.0 X X*************** X*** 28,37 **** X sz.0: sz.1 X /usr/man/manroff sz.1 > sz.0 X X! install: rz sz rz.0 sz.0 X install -c -s -m 755 rz ${DESTBIN} X install -c -s -m 755 sz ${DESTBIN} X install -c -m 444 rz.0 ${DESTMAN} X install -c -m 444 -o root -g staff sz.0 ${DESTMAN} X rm -f $(DESTBIN)/sb $(DESTBIN)/sx X ln $(DESTBIN)/sz $(DESTBIN)/sb X--- 30,41 ---- X sz.0: sz.1 X /usr/man/manroff sz.1 > sz.0 X X! install: rz sz rz.0 sz.0 crc.0 X install -c -s -m 755 rz ${DESTBIN} X install -c -s -m 755 sz ${DESTBIN} X+ install -c -s -m 755 crc ${DESTBIN} X install -c -m 444 rz.0 ${DESTMAN} X+ install -c -m 444 crc.0 ${DESTMAN} X install -c -m 444 -o root -g staff sz.0 ${DESTMAN} X rm -f $(DESTBIN)/sb $(DESTBIN)/sx X ln $(DESTBIN)/sz $(DESTBIN)/sb X*************** X*** 48,51 **** X ln $(DESTMAN)/rz.0 $(DESTMAN)/rx.0 X X clean: X! rm -f $(OBJ) sb sx rb rx rz sz *.o *.0 X--- 52,55 ---- X ln $(DESTMAN)/rz.0 $(DESTMAN)/rx.0 X X clean: X! rm -f $(OBJ) sb sx rb rx rz sz crc *.o *.0 X*** ./usr/src/local/zmodem/sz.c.old Sat Dec 27 09:28:40 2025 X--- ./usr/src/local/zmodem/sz.c Tue Sep 22 09:40:41 2026 X*************** X*** 1,4 **** X! #define VERSION "sz 3.08 (2.11BSD) 2025/12/27" X #define PUBDIR "/usr/spool/uucppublic" X X /**************************************************************************** X--- 1,4 ---- X! #define VERSION "sz 3.09 (2.11BSD) 2026/9/22" X #define PUBDIR "/usr/spool/uucppublic" X X /**************************************************************************** X*************** X*** 325,330 **** X--- 325,331 ---- X X X /* called by signal interrupt or terminate to clean things up */ X+ void X bibi(n) X { X canit(); fflush(stdout); mode(0); X*************** X*** 339,344 **** X--- 340,346 ---- X exit(128+n); X } X /* Called when ZMODEM gets an interrupt (^X) */ X+ void X onintr() X { X signal(SIGINT, SIG_IGN); X*************** X*** 1190,1195 **** X--- 1192,1198 ---- X } X X X+ void X alrm() X { X longjmp(tohere, -1); X*** ./usr/src/local/zmodem/rz.c.old Sat Dec 27 09:30:35 2025 X--- ./usr/src/local/zmodem/rz.c Tue Sep 22 09:41:57 2026 X*************** X*** 1,4 **** X! #define VERSION "3.03 (2.11BSD) 2025/12/27" X #define PUBDIR "/usr/spool/uucppublic" X X /* X--- 1,4 ---- X! #define VERSION "3.04 (2.11BSD) 2026/9/22" X #define PUBDIR "/usr/spool/uucppublic" X X /* X*************** X*** 217,222 **** X--- 217,223 ---- X X int tryzhdrtype=ZRINIT; /* Header type to send corresponding to Last rx close */ X X+ void X alrm() X { X longjmp(tohere, -1); X*************** X*** 223,228 **** X--- 224,230 ---- X } X X /* called by signal interrupt or terminate to clean things up */ X+ void X bibi(n) X { X if (Zmodem) X*** ./usr/src/local/afio/afio.c.old Fri Mar 22 00:38:59 1996 X--- ./usr/src/local/afio/afio.c Mon Sep 21 20:47:33 2026 X*************** X*** 24,34 **** X * o Define CTC3B2 to support AT&T 3B2 streaming cartridge tape. X */ X X! static char *ident = "$Header: afio.c,v 1.68.1 96/3/21 13:07:11 mdb Exp $"; X X #include X #include X! #include X #include X #include X #include X--- 24,37 ---- X * o Define CTC3B2 to support AT&T 3B2 streaming cartridge tape. X */ X X! /* X! * afio.c 1.68.2 (2.11BSD) 2026/9/21 X! */ X X #include X #include X! #include X! #include X #include X #include X #include X*************** X*** 46,56 **** X # include X #endif /* SYSTIME */ X X- #ifdef CTC3B2 X- # include X- # include X- #endif /* CTC3B2 */ X- X /* X * Address link information base. X */ X--- 49,54 ---- X*************** X*** 288,311 **** X * External functions. X */ X void _exit(); X- void exit(); X- void free(); X- char *getenv(); X- ushort getgid(); X- Group *getgrgid(); X- Passwd *getpwuid(); X- ushort getuid(); X- Time *localtime(); X- off_t lseek(); X- char *malloc(); X- VOIDFN (*signal())(); X- uint sleep(); X- char *strcat(); X- char *strchr(); X- char *strcpy(); X- char *strncpy(); X- char *strrchr(); X- time_t time(); X ushort umask(); X X /* X--- 286,291 ---- X*************** X*** 454,460 **** X if (uid == 0) X ++xflag; X VOID signal(SIGPIPE, SIG_IGN); X! while (c = options(ac, av, "ioptIOVCb:c:de:fghjklmns:uvxXy:Y:z")) { X switch (c) { X case 'i': X if (fn) X--- 434,440 ---- X if (uid == 0) X ++xflag; X VOID signal(SIGPIPE, SIG_IGN); X! while (c = options(ac, av, "ioptIOVb:c:de:fghjklmns:uvxXy:Y:z")) { X switch (c) { X case 'i': X if (fn) X*************** X*** 487,502 **** X fn = copyout; X break; X case 'V': X! VOID printf("%s\n", ident); X exit(0); X- #ifdef CTC3B2 X- case 'C': X- ++Cflag; X- arbsize = 31 * 512; X- group = 10; X- aruntil = 1469 * 31 * 512; X- break; X- #endif /* CTC3B2 */ X case 'b': X if ((arbsize = (uint) optsize(optarg)) == 0) X fatal(optarg, "Bad block size"); X--- 467,474 ---- X fn = copyout; X break; X case 'V': X! VOID printf("1.68.2\n"); X exit(0); X case 'b': X if ((arbsize = (uint) optsize(optarg)) == 0) X fatal(optarg, "Bad block size"); X*************** X*** 1851,1857 **** X openq() X { X reg int fd; X! reg VOIDFN (*intr)(); X X if ((intr = signal(SIGINT, SIG_IGN)) == SIG_IGN) X return (-1); X--- 1823,1829 ---- X openq() X { X reg int fd; X! sig_t intr; X X if ((intr = signal(SIGINT, SIG_IGN)) == SIG_IGN) X return (-1); X*** ./usr/src/local/ddd/Makefile.old Mon Dec 8 21:04:02 2025 X--- ./usr/src/local/ddd/Makefile Thu May 14 06:19:31 2026 X*************** X*** 1,4 **** X! # Makefile 2.0 (2.11BSD) 2025/11/25 X X DEFS = -DBSD X CFLAGS = -O $(DEFS) X--- 1,4 ---- X! # Makefile 2.1 (2.11BSD) 2026/5/14 X X DEFS = -DBSD X CFLAGS = -O $(DEFS) X*************** X*** 11,17 **** X OBJ = ddd.o X HEAD = X BIN = ddd X- SHAR = ddd.shar X X BINDIR = /usr/local X X--- 11,16 ---- X*************** X*** 36,42 **** X /usr/man/manroff $(MANSRC) > $(MAN) X X clean: X! -$(RM) $(BIN) $(OBJ) all lint a.out core *~ #* $(SHAR) $(MAN) X! X! shar: lint README $(MAN) Makefile $(HEAD $(SRC) X! shar README $(MAN) Makefile $(HEAD) $(SRC) > $(SHAR) X--- 35,38 ---- X /usr/man/manroff $(MANSRC) > $(MAN) X X clean: X! -$(RM) $(BIN) $(OBJ) all lint a.out core *~ $(MAN) X*** ./usr/src/local/ddd/ddd.c.old Fri Dec 26 00:34:33 2025 X--- ./usr/src/local/ddd/ddd.c Tue Sep 22 09:32:54 2026 X*************** X*** 1,5 **** X /* X! * ddd.c - double dd 2.1 (2.11BSD) 2025/12/26 X * X * Copyright 1988 Helsinki University of Technology. X * All rights reserved. X--- 1,5 ---- X /* X! * ddd.c - double dd 2.2 (2.11BSD) 2026/9/22 X * X * Copyright 1988 Helsinki University of Technology. X * All rights reserved. X*************** X*** 80,86 **** X #define DEFBS 512 /* default block size */ X X /* forward declarations */ X! int doerror(); X X /* global variables */ X static int X--- 80,86 ---- X #define DEFBS 512 /* default block size */ X X /* forward declarations */ X! void doerror(); X X /* global variables */ X static int X*************** X*** 136,141 **** X--- 136,142 ---- X (void) signal(*sigp, doerror); X } /* end of catchsignals() */ X X+ void X doerror() X /* what we do if we get an error or catch a signal */ X { X*** ./usr/src/local/cxref/cxrfilt.c.old Tue Nov 5 13:32:15 1991 X--- ./usr/src/local/cxref/cxrfilt.c Mon Feb 2 21:16:13 2026 X*************** X*** 22,28 **** X--- 22,33 ---- X ** provided this header is included. X */ X X+ #if !defined(LINT) && defined(DOSCCS) X+ static char sccsid[] = "@(#)cxrfilt.c 1.1 (2.11BSD) 2026/2/2"; X+ #endif X+ X #include X+ #include X #include "constdefs.h" X X #define MAXFILE 120 X*************** X*** 38,46 **** X int argc; X char **argv; X { X char buf[BUFSIZ]; X char file1[MAXFILE], file2[MAXFILE]; X! int i; X X name = basename(argv[0]); X X--- 43,52 ---- X int argc; X char **argv; X { X+ register char *cp; X char buf[BUFSIZ]; X char file1[MAXFILE], file2[MAXFILE]; X! register int i; X X name = basename(argv[0]); X X*************** X*** 98,105 **** X exit (3); X } X X! while (gets(buf) != NULL) X { X if (buf[0] != '~') X printf("%s\n", buf); X else X--- 104,114 ---- X exit (3); X } X X! while (fgets(buf, sizeof buf, stdin) != NULL) X { X+ cp = index(buf, '\n'); X+ if (cp) *cp = '\0'; X+ X if (buf[0] != '~') X printf("%s\n", buf); X else X*************** X*** 248,254 **** X int val; X int type; X X! while (gets(buf) != NULL) X { X sscanf(buf, "%d %s %s %d", &val, file, number, &type); X X--- 257,263 ---- X int val; X int type; X X! while (fgets(buf, sizeof buf, stdin) != NULL) X { X sscanf(buf, "%d %s %s %d", &val, file, number, &type); X X*************** X*** 282,288 **** X char file[MAXLINE], number[MAXLINE]; X char mantissa[MAXLINE], exponent[MAXLINE]; X X! while (gets(buf) != NULL) X { X sscanf(buf, "%s %s %s %s", mantissa, exponent, file, number); X X--- 291,297 ---- X char file[MAXLINE], number[MAXLINE]; X char mantissa[MAXLINE], exponent[MAXLINE]; X X! while (fgets(buf, sizeof buf, stdin) != NULL) X { X sscanf(buf, "%s %s %s %s", mantissa, exponent, file, number); X X*** ./usr/src/local/cxref/fmtxref.c.old Tue Nov 5 13:32:16 1991 X--- ./usr/src/local/cxref/fmtxref.c Mon Feb 2 21:15:56 2026 X*************** X*** 13,20 **** X--- 13,25 ---- X ** provided this header is included. X */ X X+ #if !defined(LINT) && defined(DOSCCS) X+ static char sccsid[] = "@(#)fmtxref.c 1.1 (2.11BSD) 2026/2/2"; X+ #endif X+ X #include X #include X+ #include X X #define TRUE 1 X #define FALSE 0 X*************** X*** 48,54 **** X char **argv; X { X char inline[BUFSIZ]; X- char *gets(); X int val; X X name = basename(argv[0]); X--- 53,58 ---- X*************** X*** 71,77 **** X /* else X use default width */ X X! if(gets(inline) == NULL) X { X fprintf(stderr, "%s: standard input is empty.\n", name); X exit(1); X--- 75,81 ---- X /* else X use default width */ X X! if (fgets(inline, sizeof inline, stdin) == NULL) X { X fprintf(stderr, "%s: standard input is empty.\n", name); X exit(1); X*************** X*** 85,91 **** X X output(val); /* does proper formatting */ X X! while(gets(inline) != NULL && val != ERROR) X { X val = breakup(inline); X output(val); X--- 89,95 ---- X X output(val); /* does proper formatting */ X X! while(fgets(inline, sizeof inline, stdin) != NULL && val != ERROR) X { X val = breakup(inline); X output(val); X*************** X*** 104,110 **** X char *text; X { X int retval; X! int i, j; X X if(text[0] == '"' || text[0] == '\'') X { X--- 108,118 ---- X char *text; X { X int retval; X! register int i, j; X! char *cp; X! X! cp = index(text, '\n'); X! if (cp) *cp = '\0'; X X if(text[0] == '"' || text[0] == '\'') X { X*** ./usr/src/local/cxref/makefile.old Sun Sep 25 21:21:53 2022 X--- ./usr/src/local/cxref/makefile Mon Feb 2 21:11:10 2026 X*************** X*** 1,4 **** X! # makefile for cxref -- C cross referencing program X # X # Arnold Robbins, Information and Computer Science, Georgia Tech X # gatech!arnold X--- 1,4 ---- X! # @(#)Makefile 1.1 (2.11BSD) 2026/2/2 X # X # Arnold Robbins, Information and Computer Science, Georgia Tech X # gatech!arnold X*************** X*** 10,18 **** X # some files are system dependant, e.g. where sort is. X # change the appropriate macro definitions and recompile. X X- X- ### definitions of files to compile and load, and other targets for make X- X SCANOBJS= docxref.o cscan.o X SCANSRCS= docxref.c cscan.l X X--- 10,15 ---- X*************** X*** 22,31 **** X SRCS= $(SCANSRCS) fmtxref.c cxrfilt.c $(CXREF).c X DOCS= README makefile cxref.1 X X- PRINTS= $(INCLS) $(SRCS) $(DOCS) X- X CFLAGS= -O X! LFLAGS= X X ### system dependant definitions, change when you install cxref X X--- 19,26 ---- X SRCS= $(SCANSRCS) fmtxref.c cxrfilt.c $(CXREF).c X DOCS= README makefile cxref.1 X X CFLAGS= -O X! LDFLAGS=-i X X ### system dependant definitions, change when you install cxref X X*************** X*** 38,73 **** X # may be /bin/sort on some systems X SORT=/usr/bin/sort X X- # printer program, prt is for me, use pr on other systems X- P=pr X- X all: $(PROGS) cxref.0 X- @echo " all" done X X docxref: $(SCANOBJS) X! $(CC) $(LFLAGS) $(SCANOBJS) $(LEXLIB) -o $@ X X cscan.o docxref.o cxrfilt.o: $(INCLS) X X fmtxref: fmtxref.c X! $(CC) $(LFLAGS) $(CFLAGS) $@.c $(LDFLAGS) -o $@ X X cxrfilt: cxrfilt.c X! $(CC) $(LFLAGS) $(CFLAGS) $@.c $(LDFLAGS) -o $@ X X $(CXREF): $(CXREF).c X! $(CC) $(LFLAGS) $(CFLAGS) -DSRCDIR='"$(LIB)"' -DSORT='"$(SORT)"' $@.c $(LDFLAGS) -o $@ X X- print: X- $(P) $(PRINTS) | lpr -b 'Cxref Source' X- touch print2 X- X- print2: $(PRINTS) X- $(P) $? | lpr -b 'Cxref New Source' X- touch print2 X- X- ### edit this before installing!! X- X install: $(PROGS) cxref.0 X # don't remove my bin! X rm -f ${BIN}/cxref X--- 33,54 ---- X # may be /bin/sort on some systems X SORT=/usr/bin/sort X X all: $(PROGS) cxref.0 X X docxref: $(SCANOBJS) X! $(CC) $(LDFLAGS) $(SCANOBJS) $(LEXLIB) -o $@ X X cscan.o docxref.o cxrfilt.o: $(INCLS) X X fmtxref: fmtxref.c X! $(CC) $(LDFLAGS) $(CFLAGS) $@.c $(LDFLAGS) -o $@ X X cxrfilt: cxrfilt.c X! $(CC) $(LDFLAGS) $(CFLAGS) $@.c $(LDFLAGS) -o $@ X X $(CXREF): $(CXREF).c X! $(CC) $(LDFLAGS) $(CFLAGS) -DSRCDIR='"$(LIB)"' -DSORT='"$(SORT)"' $@.c $(LDFLAGS) -o $@ X X install: $(PROGS) cxref.0 X # don't remove my bin! X rm -f ${BIN}/cxref X*************** X*** 82,88 **** X /usr/man/manroff cxref.1 > cxref.0 X X clean: X! rm -f $(SCANOBJS) cxref.0 X! X! clobber: clean X! rm -f $(PROGS) print2 X--- 63,66 ---- X /usr/man/manroff cxref.1 > cxref.0 X X clean: X! rm -f $(PROGS) $(SCANOBJS) cxref.0 X*** ./usr/src/local/cxref/cxref.c.old Tue Nov 5 13:32:14 1991 X--- ./usr/src/local/cxref/cxref.c Mon Sep 21 20:48:41 2026 X*************** X*** 1,19 **** X /* X! ** cxref.c X! ** X! ** C driver for Cxref program. X! ** does argument handling, then builds the right X! ** shell commands for passing to the system() routine. X! ** X! ** Set up the argument vectors ourselves, the i/o with a pipe() X! ** call, and do all the forking and execing ourselves. X! ** X! ** Arnold Robbins, Information and Computer Science, Georgia Tech X! ** gatech!arnold X! ** Copyright (c) 1984 by Arnold Robbins X! ** All rights reserved X! ** This program may not be sold, but may be distributed X! ** provided this header is included. X */ X X #include X--- 1,19 ---- X /* X! * @(#)cxref.c 1.1 (2.11BSD) 2026/9/21 X! * X! * C driver for Cxref program. X! * does argument handling, then builds the right X! * shell commands for passing to the system() routine. X! * X! * Set up the argument vectors ourselves, the i/o with a pipe() X! * call, and do all the forking and execing ourselves. X! * X! * Arnold Robbins, Information and Computer Science, Georgia Tech X! * gatech!arnold X! * Copyright (c) 1984 by Arnold Robbins X! * All rights reserved X! * This program may not be sold, but may be distributed X! * provided this header is included. X */ X X #include X*************** X*** 50,56 **** X char **argv; X { X int i; X! int catchem(); X X signal (SIGQUIT, catchem); X signal (SIGINT, catchem); X--- 50,56 ---- X char **argv; X { X int i; X! void catchem(); X X signal (SIGQUIT, catchem); X signal (SIGINT, catchem); X*************** X*** 609,614 **** X--- 609,615 ---- X return ( strcmp(cp, "-") == 0 ? "stdin" : cp); X } X X+ void X catchem() /* simple signal catcher */ X { X signal(SIGQUIT, SIG_IGN); X*** ./usr/src/local/mtools/Makefile.old Mon Dec 8 21:04:21 2025 X--- ./usr/src/local/mtools/Makefile Sat Mar 21 07:37:46 2026 X*************** X*** 1,20 **** X! # Makefile 2.0 (2.11BSD) 2025/11/25 X X # check the Configure file for some examples of device-specific setups X- # Berkeley flavors of Unix should include -DBSD in the CFLAGS X X! CFLAGS = -O -DBSD X LDFLAGS = -i X LD = cc X LINT = lint X- SHLIB = X- SHAR = shar -a X BINDIR = /usr/local X MANDIR = /usr/local/man/cat1 X- # X- # for AT&T Unix PC 7300/3b1 style shared libraries. X- #SHOBJ = /lib/crt0s.o /lib/shlib.ifile X- #LD = ld X X PROGS = mattrib mcd mcopy mdel mdir mformat mlabel mmd mrd mread mren \ X mtype mwrite mkmanifest X--- 1,13 ---- X! # Makefile 2.1 (2.11BSD) 2026/3/21 X X # check the Configure file for some examples of device-specific setups X X! CFLAGS = -O X LDFLAGS = -i X LD = cc X LINT = lint X BINDIR = /usr/local X MANDIR = /usr/local/man/cat1 X X PROGS = mattrib mcd mcopy mdel mdir mformat mlabel mmd mrd mread mren \ X mtype mwrite mkmanifest X*************** X*** 55,100 **** X all: $(PROGS) $(MANPAGES) X X mattrib: $(MATTRIB) X! $(LD) $(LDFLAGS) $(MATTRIB) $(SHOBJ) -o mattrib $(SHLIB) X X mcd: $(MCD) X! $(LD) $(LDFLAGS) $(MCD) $(SHOBJ) -o mcd $(SHLIB) X X mcopy: $(MCOPY) X! $(LD) $(LDFLAGS) $(MCOPY) $(SHOBJ) -o mcopy $(SHLIB) X X mdel: $(MDEL) X! $(LD) $(LDFLAGS) $(MDEL) $(SHOBJ) -o mdel $(SHLIB) X X mdir: $(MDIR) X! $(LD) $(LDFLAGS) $(MDIR) $(SHOBJ) -o mdir $(SHLIB) X X mformat: $(MFORMAT) X! $(LD) $(LDFLAGS) $(MFORMAT) $(SHOBJ) -o mformat $(SHLIB) X X mlabel: $(MLABEL) X! $(LD) $(LDFLAGS) $(MLABEL) $(SHOBJ) -o mlabel $(SHLIB) X X mmd: $(MMD) X! $(LD) $(LDFLAGS) $(MMD) $(SHOBJ) -o mmd $(SHLIB) X X mrd: $(MRD) X! $(LD) $(LDFLAGS) $(MRD) $(SHOBJ) -o mrd $(SHLIB) X X mread: $(MREAD) X! $(LD) $(LDFLAGS) $(MREAD) $(SHOBJ) -o mread $(SHLIB) X X mren: $(MREN) X! $(LD) $(LDFLAGS) $(MREN) $(SHOBJ) -o mren $(SHLIB) X X mtype: $(MTYPE) X! $(LD) $(LDFLAGS) $(MTYPE) $(SHOBJ) -o mtype $(SHLIB) X X mwrite: $(MWRITE) X! $(LD) $(LDFLAGS) $(MWRITE) $(SHOBJ) -o mwrite $(SHLIB) X X mkmanifest: $(MKMANIFEST) X! $(LD) $(LDFLAGS) $(MKMANIFEST) $(SHOBJ) -o mkmanifest $(SHLIB) X X mattrib.0: Mattrib.1 X nroff -man Mattrib.1 > mattrib.0 X--- 48,93 ---- X all: $(PROGS) $(MANPAGES) X X mattrib: $(MATTRIB) X! $(LD) $(LDFLAGS) $(MATTRIB) -o mattrib X X mcd: $(MCD) X! $(LD) $(LDFLAGS) $(MCD) -o mcd X X mcopy: $(MCOPY) X! $(LD) $(LDFLAGS) $(MCOPY) -o mcopy X X mdel: $(MDEL) X! $(LD) $(LDFLAGS) $(MDEL) -o mdel X X mdir: $(MDIR) X! $(LD) $(LDFLAGS) $(MDIR) -o mdir X X mformat: $(MFORMAT) X! $(LD) $(LDFLAGS) $(MFORMAT) -o mformat X X mlabel: $(MLABEL) X! $(LD) $(LDFLAGS) $(MLABEL) -o mlabel X X mmd: $(MMD) X! $(LD) $(LDFLAGS) $(MMD) -o mmd X X mrd: $(MRD) X! $(LD) $(LDFLAGS) $(MRD) -o mrd X X mread: $(MREAD) X! $(LD) $(LDFLAGS) $(MREAD) -o mread X X mren: $(MREN) X! $(LD) $(LDFLAGS) $(MREN) -o mren X X mtype: $(MTYPE) X! $(LD) $(LDFLAGS) $(MTYPE) -o mtype X X mwrite: $(MWRITE) X! $(LD) $(LDFLAGS) $(MWRITE) -o mwrite X X mkmanifest: $(MKMANIFEST) X! $(LD) $(LDFLAGS) $(MKMANIFEST) -o mkmanifest X X mattrib.0: Mattrib.1 X nroff -man Mattrib.1 > mattrib.0 X*************** X*** 164,182 **** X dir_read.c dir_write.c expand.c fat_free.c fat_read.c fat_write.c \ X file_write.c init.c is_dir.c match.c parse.c subdir.c X $(LINT) mkmanifest.c X- X- shar: X- $(SHAR) Configure Makefile *.1 Readme Release.notes buf_read.c \ X- buf_write.c devices.c dir_make.c dir_read.c dir_write.c expand.c \ X- fat_free.c > mtools_sh.1 X- $(SHAR) fat_read.c fat_write.c file_read.c file_write.c init.c \ X- is_dir.c match.c mattrib.c mcd.c mcopy.c mdel.c mdir.c mformat.c \ X- mkmanifest.c mlabel.c mmd.c > mtools_sh.2 X- $(SHAR) mrd.c mread.c mren.c msdos.h mtype.c mwrite.c parse.c \ X- patchlevel.h subdir.c > mtools_sh.3 X- $(SHAR) Mattrib.out Mcd.out Mcopy.out Mdel.out Mdir.out Mformat.out \ X- Mkmanifest.out Mlabel.out Mmd.out Mrd.out Mread.out Mren.out \ X- Mtools.out Mtype.out Mwrite.out > mtools_sh.4 X X buf_read.o: msdos.h X buf_write.o: msdos.h X--- 157,162 ---- X*** ./usr/src/local/mtools/mlabel.c.old Tue Jun 23 18:47:09 1992 X--- ./usr/src/local/mtools/mlabel.c Sat Mar 21 07:11:16 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ #if defined(DOSCCS) && !defined(lint) X+ static char *sccsid = "@(#)mlabel.c 2.0 (2.11BSD) 2026/3/21"; X+ #endif X+ X /* X * Make an MSDOS volume label X * X*************** X*** 10,15 **** X--- 14,21 ---- X X #include X #include X+ #include X+ #include X #include "msdos.h" X #include "patchlevel.h" X X*************** X*** 26,37 **** X char *argv[]; X { X int entry, slot, fargn, verbose, oops; X! char filename[30], *strncpy(), drive, ans[10], *strncat(); X! char *strcpy(), *fix_mcwd(); X unsigned char fixed[12], vol[12]; X void exit(), dir_write(), dir_flush(), disk_flush(); X struct directory *dir, *dir_read(), *mk_entry(); X! long time(), now; X X fargn = 1; X verbose = 0; X--- 32,44 ---- X char *argv[]; X { X int entry, slot, fargn, verbose, oops; X! char filename[30], drive, ans[10]; X! register char *cp; X! char *fix_mcwd(); X unsigned char fixed[12], vol[12]; X void exit(), dir_write(), dir_flush(), disk_flush(); X struct directory *dir, *dir_read(), *mk_entry(); X! long now; X X fargn = 1; X verbose = 0; X*************** X*** 98,104 **** X X /* ask for new label */ X printf("Enter the new volume label (11 characters): "); X! gets(filename); X if (filename[0] != '\0') { X sprintf((char *) fixed, "%-11.11s", filename); X if (strlen(filename) > 11 && verbose) X--- 105,115 ---- X X /* ask for new label */ X printf("Enter the new volume label (11 characters): "); X! filename[0] = '\0'; X! fgets(filename, sizeof (filename), stdin); X! cp = index(filename, '\n'); X! if (cp) *cp = '\0'; X! X if (filename[0] != '\0') { X sprintf((char *) fixed, "%-11.11s", filename); X if (strlen(filename) > 11 && verbose) X*************** X*** 109,115 **** X exit(0); X X printf("Delete volume label (y/n): "); X! gets(ans); X if (ans[0] == 'y' || ans[0] == 'Y') { X strcpy((char *) fixed, (char *) vol); X fixed[0] = 0xe5; X--- 120,130 ---- X exit(0); X X printf("Delete volume label (y/n): "); X! ans[0] = '\0'; X! fgets(ans, sizeof (ans), stdin); X! cp = index(ans, '\n'); X! if (cp) *cp = '\0'; X! X if (ans[0] == 'y' || ans[0] == 'Y') { X strcpy((char *) fixed, (char *) vol); X fixed[0] = 0xe5; X*************** X*** 118,124 **** X exit(0); X } X /* make directory entry */ X! time(&now); X dir = mk_entry(fixed, 0x08, 0, 0L, now); X dir_write(slot, dir); X X--- 133,139 ---- X exit(0); X } X /* make directory entry */ X! (void)time(&now); X dir = mk_entry(fixed, 0x08, 0, 0L, now); X dir_write(slot, dir); X X*** ./usr/src/local/mtools/patchlevel.h.old Tue Jun 23 18:47:12 1992 X--- ./usr/src/local/mtools/patchlevel.h Sat Mar 21 07:13:20 2026 X*************** X*** 1,5 **** X! #define VERSION "2.0.5" X! #define DATE "25 Aug 91" X X /* X * Version 1.0 13 Oct 86 X--- 1,5 ---- X! #define VERSION "2.1" X! #define DATE "21 Mar 2026" X X /* X * Version 1.0 13 Oct 86 X*************** X*** 15,18 **** X--- 15,19 ---- X * patch #3 28 Nov 90 X * patch #4 11 Apr 91 X * patch #5 25 Aug 91 X+ * Version 2.1 21 Mar 26 X */ X*** ./usr/src/local/mtools/mdel.c.old Tue Jun 23 18:47:07 1992 X--- ./usr/src/local/mtools/mdel.c Tue Sep 22 09:34:17 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ #if defined(DOSCCS) && !defined(lint) X+ static char *sccsid = "@(#)mdel.c 2.1 (2.11BSD) 2026/3/21"; X+ #endif X+ X /* X * Delete an MSDOS file X * X*************** X*** 10,15 **** X--- 14,20 ---- X X #include X #include X+ #include X #include "msdos.h" X #include "patchlevel.h" X X*************** X*** 21,27 **** X char *mcwd; /* the Current Working Directory */ X int fat_error; /* FAT error detected? */ X X! static int got_signal(); X X main(argc, argv) X int argc; X--- 26,32 ---- X char *mcwd; /* the Current Working Directory */ X int fat_error; /* FAT error detected? */ X X! static void got_signal(); X X main(argc, argv) X int argc; X*************** X*** 29,42 **** X { X int i, ismatch, entry, nogo, verbose, fargn; X unsigned int start; X char *filename, *newfile, *get_name(), *unix_name(), *get_path(); X char *pathname, ans[10], drive, get_drive(), last_drive, *fix_mcwd(); X void exit(), fat_write(), dir_write(), dir_flush(), disk_flush(); X struct directory *dir, *dir_read(); X /* catch signals */ X! signal(SIGINT, (SIG_TYPE(*) ()) got_signal); X! signal(SIGTERM, (SIG_TYPE(*) ()) got_signal); X! signal(SIGQUIT, (SIG_TYPE(*) ()) got_signal); X X if (argc > 1 && !strcmp(argv[1], "-v")) { X verbose = 1; X--- 34,48 ---- X { X int i, ismatch, entry, nogo, verbose, fargn; X unsigned int start; X+ register char *cp; X char *filename, *newfile, *get_name(), *unix_name(), *get_path(); X char *pathname, ans[10], drive, get_drive(), last_drive, *fix_mcwd(); X void exit(), fat_write(), dir_write(), dir_flush(), disk_flush(); X struct directory *dir, *dir_read(); X /* catch signals */ X! signal(SIGINT, got_signal); X! signal(SIGTERM, got_signal); X! signal(SIGQUIT, got_signal); X X if (argc > 1 && !strcmp(argv[1], "-v")) { X verbose = 1; X*************** X*** 97,103 **** X if (dir->attr & 0x01) { X while (!nogo) { X printf("%s: \"%s\" is read only, erase anyway (y/n) ? ", argv[0], newfile); X! gets(ans); X if (ans[0] == 'y' || ans[0] == 'Y') X break; X if (ans[0] == 'n' || ans[0] == 'N') X--- 103,113 ---- X if (dir->attr & 0x01) { X while (!nogo) { X printf("%s: \"%s\" is read only, erase anyway (y/n) ? ", argv[0], newfile); X! ans[0] = '\0'; X! fgets(ans, sizeof ans, stdin); X! cp = index(ans, '\n'); X! if (cp) *cp = '\0'; X! X if (ans[0] == 'y' || ans[0] == 'Y') X break; X if (ans[0] == 'n' || ans[0] == 'N') X*************** X*** 133,139 **** X * a user abort. X */ X X! static int X got_signal() X { X void exit(), disk_flush(), fat_write(), dir_flush(); X--- 143,149 ---- X * a user abort. X */ X X! static void X got_signal() X { X void exit(), disk_flush(), fat_write(), dir_flush(); X*** ./usr/src/local/mtools/mread.c.old Tue Jun 23 18:47:10 1992 X--- ./usr/src/local/mtools/mread.c Sat Mar 21 07:22:38 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ #if defined(DOSCCS) && !defined(lint) X+ static char *sccsid = "@(#)mread.c 2.1 (2.11BSD) 2026/3/21"; X+ #endif X+ X /* X * Read (copy) an MSDOS file to Unix X * X*************** X*** 12,24 **** X X #include X #include X #include X #include X- #ifdef BSD X #include X- #else /* BSD */ X #include X- #endif /* BSD */ X #include "msdos.h" X #include "patchlevel.h" X X--- 16,27 ---- X X #include X #include X+ #include X+ #include X #include X #include X #include X #include X #include "msdos.h" X #include "patchlevel.h" X X*************** X*** 39,53 **** X char *argv[]; X { X FILE *fp; X- extern int optind; X- extern char *optarg; X int i, ismatch, entry, single, c, oops, preserve, nowarn, textmode; X unsigned int fat; X long size, mtime; X char *filename, *newfile, *get_name(), *unix_name(), *pathname; X! char *get_path(), *target, tmp[MAX_PATH], *strcat(), *strcpy(), drive; X char get_drive(), last_drive, *fix_mcwd(), *s; X- void exit(); X struct directory *dir, *dir_read(); X struct stat stbuf; X X--- 42,53 ---- X char *argv[]; X { X FILE *fp; X int i, ismatch, entry, single, c, oops, preserve, nowarn, textmode; X unsigned int fat; X long size, mtime; X char *filename, *newfile, *get_name(), *unix_name(), *pathname; X! char *get_path(), *target, tmp[MAX_PATH], drive; X char get_drive(), last_drive, *fix_mcwd(), *s; X struct directory *dir, *dir_read(); X struct stat stbuf; X X*************** X*** 201,206 **** X--- 201,207 ---- X { X static FILE *fp; X char ans[10]; X+ register char *cp; X struct stat stbuf; X X if (!nowarn) { X*************** X*** 208,214 **** X /* CONSTCOND */ X while (1) { X printf("File \"%s\" exists, overwrite (y/n) ? ", target); X! gets(ans); X if (ans[0] == 'n' || ans[0] == 'N') X return(NULL); X if (ans[0] == 'y' || ans[0] == 'Y') X--- 209,219 ---- X /* CONSTCOND */ X while (1) { X printf("File \"%s\" exists, overwrite (y/n) ? ", target); X! ans[0] = '\0'; X! fgets(ans, sizeof ans, stdin); X! cp = index(ans, '\n'); X! if (cp) *cp = '\0'; X! X if (ans[0] == 'n' || ans[0] == 'N') X return(NULL); X if (ans[0] == 'y' || ans[0] == 'Y') X*************** X*** 239,251 **** X conv_stamp(time_field, date_field) X unsigned char *time_field, *date_field; X { X- #ifdef BSD X struct timeval tv; X struct timezone tz; X- #else /* BSD */ X- extern long timezone; X- void tzset(); X- #endif /* BSD */ X struct tm *tmbuf, *localtime(); X int year, mon, mday, hour, min, sec, old_leaps; X long answer, sec_year, sec_mon, sec_mday, sec_hour, sec_min, sec_leap; X--- 244,251 ---- X*************** X*** 271,283 **** X sec_hour = hour * 60L * 60L; X sec_min = min * 60L; X /* correct for Time Zone */ X- #ifdef BSD X gettimeofday(&tv, &tz); X tzone = tz.tz_minuteswest * 60L; X- #else /* BSD */ X- tzset(); X- tzone = timezone; X- #endif /* BSD */ X X answer = sec_leap + sec_year + sec_mon + sec_mday + sec_hour + sec_min + sec + tzone; X /* correct for Daylight Saving Time */ X--- 271,278 ---- X*************** X*** 297,303 **** X char *target; X long mtime; X { X- #ifdef BSD X struct timeval tv[2]; X X if (mtime != 0L) { X--- 292,297 ---- X*************** X*** 307,324 **** X tv[1].tv_usec = 0; X utimes(target, tv); X } X- #else /* BSD */ X- struct { X- time_t actime; X- time_t modtime; X- } utbuf; X- X- if (mtime != 0L) { X- utbuf.actime = mtime; X- utbuf.modtime = mtime; X- utime(target, &utbuf); X- } X- #endif /* BSD */ X return; X } X X--- 301,306 ---- X*** ./usr/src/local/mtools/mren.c.old Tue Jun 23 18:47:10 1992 X--- ./usr/src/local/mtools/mren.c Sat Mar 21 07:26:24 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ #if defined(DOSCCS) && !defined(lint) X+ static char *sccsid = "@(#)mren.c 2.1 (2.11BSD) 2026/3/21"; X+ #endif X+ X /* X * Rename an existing MSDOS file X * X*************** X*** 9,14 **** X--- 13,19 ---- X */ X X #include X+ #include X #include "msdos.h" X #include "patchlevel.h" X X*************** X*** 25,34 **** X char *argv[]; X { X int entry, ismatch, nogo, fargn, verbose; X! char filename[13], *newfile, *strncpy(), *unix_name(); X! char new[13], ans[10], *temp, *strcpy(), drive, get_drive(); X char *get_path(), *pathname, *get_name(), *fix_mcwd(); X unsigned char *target, *dos_name(); X void exit(), dir_write(), disk_flush(), dir_flush(); X struct directory *dir, *dir_read(); X X--- 30,40 ---- X char *argv[]; X { X int entry, ismatch, nogo, fargn, verbose; X! char filename[13], *newfile, *unix_name(); X! char new[13], ans[10], *temp, drive, get_drive(); X char *get_path(), *pathname, *get_name(), *fix_mcwd(); X unsigned char *target, *dos_name(); X+ register char *cp; X void exit(), dir_write(), disk_flush(), dir_flush(); X struct directory *dir, *dir_read(); X X*************** X*** 66,72 **** X if (strcmp(temp, new) && verbose) { X while (!nogo) { X printf("Do you accept \"%s\" as the new filename (y/n) ? ", new); X! gets(ans); X if (ans[0] == 'y' || ans[0] == 'Y') X break; X if (ans[0] == 'n' || ans[0] == 'N') X--- 72,82 ---- X if (strcmp(temp, new) && verbose) { X while (!nogo) { X printf("Do you accept \"%s\" as the new filename (y/n) ? ", new); X! ans[0] = '\0'; X! fgets(ans, sizeof ans, stdin); X! cp = index(ans, '\n'); X! if (cp) *cp = '\0'; X! X if (ans[0] == 'y' || ans[0] == 'Y') X break; X if (ans[0] == 'n' || ans[0] == 'N') X*** ./usr/src/local/mtools/mwrite.c.old Tue Jun 23 18:47:11 1992 X--- ./usr/src/local/mtools/mwrite.c Tue Sep 22 09:38:47 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ #if defined(DOSCCS) && !defined(lint) X+ static char *sccsid = "@(#)mwrite.c 2.1 (2.11BSD) 2026/3/21"; X+ #endif X+ X /* X * Write (copy) a Unix file to MSDOS X * X*************** X*** 10,15 **** X--- 14,20 ---- X X #include X #include X+ #include X #include X #include X #include "msdos.h" X*************** X*** 26,32 **** X int full = 0; X int textmode = 0; X int nowarn = 0; X! static int got_signal(); X static struct directory *writeit(); X static long free_space(); X X--- 31,37 ---- X int full = 0; X int textmode = 0; X int nowarn = 0; X! static void got_signal(); X static struct directory *writeit(); X static long free_space(); X X*************** X*** 41,54 **** X unsigned int dot, start; X char *filename, *newfile, *get_name(), get_drive(); X char *unix_name(), ans[10], *pathname, *get_path(), *fix_mcwd(); X! char tmp[MAX_PATH], target[13], *strcat(), *strcpy(), drive; X unsigned char *fixed, *dos_name(); X void exit(), fat_write(), dir_write(), disk_flush(), dir_flush(); X struct directory *dir, *dir_read(); X /* catch signals */ X! signal(SIGINT, (SIG_TYPE(*) ()) got_signal); X! signal(SIGTERM, (SIG_TYPE(*) ()) got_signal); X! signal(SIGQUIT, (SIG_TYPE(*) ()) got_signal); X /* get command line options */ X oops = 0; X verbose = 0; X--- 46,60 ---- X unsigned int dot, start; X char *filename, *newfile, *get_name(), get_drive(); X char *unix_name(), ans[10], *pathname, *get_path(), *fix_mcwd(); X! char tmp[MAX_PATH], target[13], drive; X! register char *cp; X unsigned char *fixed, *dos_name(); X void exit(), fat_write(), dir_write(), disk_flush(), dir_flush(); X struct directory *dir, *dir_read(); X /* catch signals */ X! signal(SIGINT, got_signal); X! signal(SIGTERM, got_signal); X! signal(SIGQUIT, got_signal); X /* get command line options */ X oops = 0; X verbose = 0; X*************** X*** 175,181 **** X /* CONSTCOND */ X while (1) { X printf("File \"%s\" exists, overwrite (y/n) ? ", target); X! gets(ans); X if (ans[0] == 'n' || ans[0] == 'N') { X nogo = 1; X break; X--- 181,191 ---- X /* CONSTCOND */ X while (1) { X printf("File \"%s\" exists, overwrite (y/n) ? ", target); X! ans[0] = '\0'; X! fgets(ans, sizeof ans, stdin); X! cp = index(ans, '\n'); X! if (cp) *cp = '\0'; X! X if (ans[0] == 'n' || ans[0] == 'N') { X nogo = 1; X break; X*************** X*** 315,321 **** X * a user abort. X */ X X! static int X got_signal() X { X void exit(), disk_flush(), fat_write(), dir_flush(); X--- 325,331 ---- X * a user abort. X */ X X! static void X got_signal() X { X void exit(), disk_flush(), fat_write(), dir_flush(); X*** ./usr/src/local/mtools/mkmanifest.c.old Tue Jun 23 18:47:08 1992 X--- ./usr/src/local/mtools/mkmanifest.c Sat Mar 21 07:33:51 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ #if defined(DOSCCS) && !defined(lint) X+ static char *sccsid = "@(#)mkmanifest.c 2.1 (2.11BSD) 2026/3/21"; X+ #endif X+ X /* X * A program to create a manifest (shiping list) that is a shell script X * to return a Unix file name to it's original state after it has been X*************** X*** 6,17 **** X * This code also used in arc, mtools, and pcomm X */ X X- #ifdef BSD X- #define strrchr rindex X- #endif /* BSD */ X- X #include X #include X X main(argc, argv) X int argc; X--- 10,19 ---- X * This code also used in arc, mtools, and pcomm X */ X X #include X #include X+ #include X+ #include X X main(argc, argv) X int argc; X*************** X*** 18,25 **** X char *argv[]; X { X int i; X! char *name, *new_name, *dos_name(), *strrchr(); X! void exit(); X X if (argc == 1) { X fprintf(stderr, "Usage: mkmanifest \n"); X--- 20,26 ---- X char *argv[]; X { X int i; X! char *name, *new_name, *dos_name(); X X if (argc == 1) { X fprintf(stderr, "Usage: mkmanifest \n"); X*************** X*** 47,53 **** X { X static char *dev[9] = {"con", "aux", "com1", "com2", "lpt1", "prn", X "lpt2", "lpt3", "nul"}; X! char *s, *temp, *ext, *strcpy(), *strpbrk(), *strcat(); X char buf[15]; X int i, dot; X static char ans[13]; X--- 48,54 ---- X { X static char *dev[9] = {"con", "aux", "com1", "com2", "lpt1", "prn", X "lpt2", "lpt3", "nul"}; X! register char *s, *temp, *ext; X char buf[15]; X int i, dot; X static char ans[13]; X*************** X*** 94,121 **** X } X return(ans); X } X- X- #ifdef BSD X- /* X- * Return ptr to first occurrence of any character from `brkset' X- * in the character string `string'; NULL if none exists. X- */ X- X- char * X- strpbrk(string, brkset) X- register char *string, *brkset; X- { X- register char *p; X- X- if (!string || !brkset) X- return(0); X- do { X- for (p = brkset; *p != '\0' && *p != *string; ++p) X- ; X- if (*p != '\0') X- return(string); X- } X- while (*string++); X- return(0); X- } X- #endif /* BSD */ X--- 95,97 ---- X*** ./usr/src/local/mtools/expand.c.old Tue Jun 23 18:46:58 1992 X--- ./usr/src/local/mtools/expand.c Sat Mar 21 07:37:21 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ #if defined(DOSCCS) && !defined(lint) X+ static char *sccsid = "@(#)expand.c 2.1 (2.11BSD) 2026/3/21"; X+ #endif X+ X /* X * Do filename expansion with the shell. Returns a pointer to a X * static area. X*************** X*** 6,11 **** X--- 10,17 ---- X #define EXPAND_BUF 2048 X X #include X+ #include X+ #include X X char * X expand(input) X*************** X*** 13,19 **** X { X FILE *fp, *popen(); X int last; X! char buf[256], *strpbrk(), *strcpy(); X static char ans[EXPAND_BUF]; X X if (input == NULL) X--- 19,25 ---- X { X FILE *fp, *popen(); X int last; X! char buf[256]; X static char ans[EXPAND_BUF]; X X if (input == NULL) X*************** X*** 52,114 **** X X return(ans); X } X- X- /* X- * Miscellaneous routines probably missing from Bezerkely X- */ X- X- #ifdef BSD X- /* X- * Return ptr to first occurrence of any character from `brkset' X- * in the character string `string'; NULL if none exists. X- */ X- X- char * X- strpbrk(string, brkset) X- register char *string, *brkset; X- { X- register char *p; X- X- if (!string || !brkset) X- return(0); X- do { X- for (p = brkset; *p != '\0' && *p != *string; ++p) X- ; X- if (*p != '\0') X- return(string); X- } X- while (*string++); X- return(0); X- } X- X- /* X- * Copies the character c, n times to string s X- */ X- X- char * X- memset(s, c, n) X- char *s, c; X- int n; X- { X- char *s1 = s; X- X- while (n > 0) { X- --n; X- *s++ = c; X- } X- return(s1); X- } X- X- /* X- * Copy contents of memory (with possible overlapping). X- */ X- X- char * X- memcpy(s1, s2, n) X- char *s1, *s2; X- int n; X- { X- bcopy(s2, s1, n); X- return(s1); X- } X- #endif /* BSD */ X--- 58,60 ---- X*** ./usr/src/local/mtools/mmd.c.old Tue Jun 23 18:47:09 1992 X--- ./usr/src/local/mtools/mmd.c Tue Sep 22 09:35:52 2026 X*************** X*** 1,4 **** X--- 1,6 ---- X /* X+ * @(#)mmd.c 1.1 (2.11BSD) 2026/9/22 X+ * X * Make an MSDOS subdirectory X * X * Emmet P. Gray US Army, HQ III Corps & Fort Hood X*************** X*** 21,27 **** X char *mcwd; /* the Current Working Directory */ X int fat_error; /* FAT error detected? */ X X! static int got_signal(); X static void empty_dir(); X X main(argc, argv) X--- 23,29 ---- X char *mcwd; /* the Current Working Directory */ X int fat_error; /* FAT error detected? */ X X! static void got_signal(); X static void empty_dir(); X X main(argc, argv) X*************** X*** 38,46 **** X struct directory *dir, *dir_read(), *mk_entry(); X long time(), now; X /* catch signals */ X! signal(SIGINT, (SIG_TYPE(*) ()) got_signal); X! signal(SIGTERM, (SIG_TYPE(*) ()) got_signal); X! signal(SIGQUIT, (SIG_TYPE(*) ()) got_signal); X X fargn = 1; X verbose = 0; X--- 40,48 ---- X struct directory *dir, *dir_read(), *mk_entry(); X long time(), now; X /* catch signals */ X! signal(SIGINT, got_signal); X! signal(SIGTERM, got_signal); X! signal(SIGQUIT, got_signal); X X fargn = 1; X verbose = 0; X*************** X*** 194,200 **** X * a user abort. X */ X X! static int X got_signal() X { X void exit(), disk_flush(), fat_write(), dir_flush(); X--- 196,202 ---- X * a user abort. X */ X X! static void X got_signal() X { X void exit(), disk_flush(), fat_write(), dir_flush(); X*** ./usr/src/local/mtools/mrd.c.old Tue Jun 23 18:47:09 1992 X--- ./usr/src/local/mtools/mrd.c Tue Sep 22 09:37:41 2026 X*************** X*** 1,4 **** X--- 1,6 ---- X /* X+ * @(#)mrd.c 1.1 (2.11BSD) 2026/9/22 X+ * X * Delete an MSDOS subdirectory X * X * Emmet P. Gray US Army, HQ III Corps & Fort Hood X*************** X*** 21,27 **** X char *mcwd; /* the Current Working Directory */ X int fat_error; /* FAT error detected? */ X X! static int got_signal(), is_empty(); X X main(argc, argv) X int argc; X--- 23,30 ---- X char *mcwd; /* the Current Working Directory */ X int fat_error; /* FAT error detected? */ X X! static void got_signal(); X! static int is_empty(); X X main(argc, argv) X int argc; X*************** X*** 34,42 **** X void exit(), fat_write(), dir_write(), disk_flush(), dir_flush(); X struct directory *dir, *dir_read(); X /* catch signals */ X! signal(SIGINT, (SIG_TYPE(*) ()) got_signal); X! signal(SIGTERM, (SIG_TYPE(*) ()) got_signal); X! signal(SIGQUIT, (SIG_TYPE(*) ()) got_signal); X X if (argc == 1) { X fprintf(stderr, "Mtools version %s, dated %s\n", VERSION, DATE); X--- 37,45 ---- X void exit(), fat_write(), dir_write(), disk_flush(), dir_flush(); X struct directory *dir, *dir_read(); X /* catch signals */ X! signal(SIGINT, got_signal); X! signal(SIGTERM, got_signal); X! signal(SIGQUIT, got_signal); X X if (argc == 1) { X fprintf(stderr, "Mtools version %s, dated %s\n", VERSION, DATE); X*************** X*** 170,176 **** X * a user abort. X */ X X! static int X got_signal() X { X void exit(), disk_flush(), fat_write(), dir_flush(); X--- 173,179 ---- X * a user abort. X */ X X! static void X got_signal() X { X void exit(), disk_flush(), fat_write(), dir_flush(); X*** ./usr/src/local/less/signal.c.old Fri Dec 26 00:40:18 2025 X--- ./usr/src/local/less/signal.c Mon Sep 21 20:49:35 2026 X*************** X*** 12,18 **** X */ X X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)signal.c 1.1 (2.11BSD) 2025/12/25"; X #endif X X #include "less.h" X--- 12,18 ---- X */ X X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)signal.c 1.2 (2.11BSD) 2026/9/21"; X #endif X X #include "less.h" X*************** X*** 20,31 **** X #include X X /* X- * The type of signal handler functions. X- * Usually int, although it should be void. X- */ X- typedef int HANDLER; X- X- /* X * "sigs" contains bits indicating signals which need to be processed. X */ X public int sigs; X--- 20,25 ---- X*************** X*** 41,47 **** X /* X * Interrupt signal handler. X */ X! static HANDLER X interrupt() X { X SIGNAL(SIGINT, interrupt); X--- 35,41 ---- X /* X * Interrupt signal handler. X */ X! static void X interrupt() X { X SIGNAL(SIGINT, interrupt); X*************** X*** 54,60 **** X /* X * "Stop" (^Z) signal handler. X */ X! static HANDLER X stop() X { X SIGNAL(SIGTSTP, stop); X--- 48,54 ---- X /* X * "Stop" (^Z) signal handler. X */ X! static void X stop() X { X SIGNAL(SIGTSTP, stop); X*** ./usr/src/local/Makefile.old Mon Dec 8 15:33:52 2025 X--- ./usr/src/local/Makefile Thu May 14 09:48:26 2026 X*************** X*** 1,53 **** X # X! # #(@)Makefile 2.1 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X LDFLAGS= -i X X # Programs that live in subdirectories, and have makefiles of their own. X! SUBDIR= afio cxref ddd less mkovmake mp mtools welcome qterm zmodem X X- # C source that lives in the current directory X- SRCS= decompr16.c trace.c X- X # C programs that live in the current directory and do not need X # explicit make lines. X- STD= decompr16 trace X X # Manpage directory X MANDIR= /usr/local/man X X! all: ${SUBDIR} ${STD} X X ${SUBDIR}: FRC X! cd $@; make ${MFLAGS} X X FRC: X X! ${STD}: X! cc ${CFLAGS} ${LDFLAGS} -o $@ $@.c X! X! install: ${STD} X! -mkdir ${MANDIR} X! -chmod a+r ${MANDIR} X! -for i in 1 2 3 4 5 6 7 8; do \ X! (mkdir ${MANDIR}/cat$$i; chmod a+r ${MANDIR}/cat$$i); done X -for i in ${SUBDIR}; do \ X! (cd $$i; make ${MFLAGS} install); done X! -install -s -o root -g staff decompr16 /usr/local/decompr16 X! -install -s -o root -g kmem -m 2755 trace /usr/local/trace X -sh /usr/sbin/makewhatis ${MANDIR} X X clean: X! rm -f a.out core *.s *.o ${STD} X! for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done X X depend: X- -chmod +w Makefile X- mkdep -p ${CFLAGS} ${SRCS} X- X- # DO NOT DELETE THIS LINE -- make depend uses it X- X- # DEPENDENCIES MUST END AT END OF FILE X- # IF YOU PUT STUFF HERE IT WILL GO AWAY X- # see make depend above X--- 1,33 ---- X # X! # #(@)Makefile 2.2 (2.11BSD) 2026/5/13 X # X CFLAGS= -O X LDFLAGS= -i X X # Programs that live in subdirectories, and have makefiles of their own. X! SUBDIR= afio cxref ddd less mkovmake mtools welcome qterm zmodem X X # C programs that live in the current directory and do not need X # explicit make lines. X X # Manpage directory X MANDIR= /usr/local/man X X! all: ${SUBDIR} X X ${SUBDIR}: FRC X! cd $@; make X X FRC: X X! install: FRC X! -mkdir -p ${MANDIR}/cat1 X! -chmod 755 ${MANDIR} ${MANDIR}/cat1 X -for i in ${SUBDIR}; do \ X! (cd $$i; make install); done X -sh /usr/sbin/makewhatis ${MANDIR} X X clean: X! for i in ${SUBDIR}; do (cd $$i; make clean); done X X depend: X*** ./usr/src/man/man1/ls.1.old Mon Dec 23 23:51:48 1996 X--- ./usr/src/man/man1/ls.1 Thu Jan 22 20:42:35 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)ls.1 6.4.2 (2.11BSD GTE) 1996/12/23 X .\" X! .TH LS 1 "December 20, 1994" X .UC X .SH NAME X ls \- list contents of directory X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)ls.1 6.4.3 (2.11BSD) 2026/1/22 X .\" X! .TH LS 1 "January 22, 2026" X .UC X .SH NAME X ls \- list contents of directory X*************** X*** 34,40 **** X List in long format, giving mode, number of links, owner, X size in bytes, and time of last modification X for each file. X! (See below.) X If the file is a special file the size field will instead contain X the major and minor device numbers. X If the file is a symbolic link the pathname of X--- 34,44 ---- X List in long format, giving mode, number of links, owner, X size in bytes, and time of last modification X for each file. X! .sp X! If the modification time of the file is more than 6 months in the past or X! is in the future, and the \fB\-T\fP is not specified, then the year of the last X! modification is displayed in place of the hour and minute fields. X! .sp X If the file is a special file the size field will instead contain X the major and minor device numbers. X If the file is a symbolic link the pathname of X*************** X*** 96,101 **** X--- 100,109 ---- X .TP X .B \-R X recursively list subdirectories encountered. X+ .TP X+ .B \-T X+ When printing in the long (\fB\-l\fP) format display complete time X+ information for the file including month, day, hour, minute, second, and year. X .TP X .B \-1 X force one entry per line output format; this is the default when X*** ./usr/src/man/man1/man.1.old Fri Aug 12 13:23:00 1988 X--- ./usr/src/man/man1/man.1 Tue Sep 15 10:03:49 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)man.1 6.7 (Berkeley) 4/19/88 X .\" X .TH MAN 1 "April 19, 1988" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)man.1 6.8 (2.11BSD) 2026/9/15 X .\" X .TH MAN 1 "April 19, 1988" X .UC 4 X*************** X*** 25,65 **** X .SH DESCRIPTION X \fIMan\fP is the program which provides on-line access to the UNIX manual. X If a \fIsection\fP specifier is given, \fIman\fP looks in that section of X! the manual for the given \fItitle\fP(s). \fISection\fP is either an Arabic X! section number (``3'' for example), or one of the words ``local'', ``new,'' X! or ``old''. (The abbreviations ``l'', ``n'', and ``o'' are also allowed.) X If \fIsection\fP is omitted, \fIman\fP searches all sections of the manual, X giving preference to commands over library subroutines, and displays the X! first manual page it finds, if any. If the \fI-a\fP option is supplied, X \fIman\fP displays all applicable manual pages. X .PP X! Normally \fIman\fP checks in standard locations (/usr/man and /usr/local/man) X! for manual information. This can be changed by supplying a search path (a X! la the Bourne shell) with the \fB-M\fP flag. The search path is a colon X! (``:'') separated list of directories in which \fIman\fP expects to find X! the standard manual subdirectories. This search path can also be set with X! the environmental variable \fIMANPATH\fP. X .PP X- Since some manual pages are intended for use only on certain machines, X- \fIman\fP only searches those directories applicable to the current X- machine. \fIMan\fP's determination of the current machine type can X- be overridden by setting the environmental variable \fIMACHINE\fP. X- .PP X If the standard output is a teletype, and the \fB-\fP flag is not provided, X \fIman\fP uses \fImore\fP(1), or the pager provided by the environmental X variable \fIPAGER\fP, to display the manual page. X .PP X! The FORTRAN version of section 3 of the manual may be specified by supplying X! \fIman\fP with the \fIsection\fP ``3f''. Also, a specific section of the X! local manual may be specified by appending a number to the \fIsection\fP, X! i.e. ``l5'' would indicate section 5 of the local manual. X .SH FILES X .nf X! .ta \w'/usr/local/man/man?/* 'u X! /usr/man standard manual area X! /usr/man/cat?/* directories containing standard manual pages X! /usr/local/man/cat?/* directories containing local manual pages X! /usr/src/man directories containing unformatted manual pages X .fi X .SH SEE\ ALSO X apropos(1), more(1), whatis(1), whereis(1) X--- 25,59 ---- X .SH DESCRIPTION X \fIMan\fP is the program which provides on-line access to the UNIX manual. X If a \fIsection\fP specifier is given, \fIman\fP looks in that section of X! the manual for the given \fItitle\fP(s). \fISection\fP is an Arabic X! section number ('3' for example). X If \fIsection\fP is omitted, \fIman\fP searches all sections of the manual, X giving preference to commands over library subroutines, and displays the X! first manual page it finds. X! If the \fI-a\fP option is supplied, X \fIman\fP displays all applicable manual pages. X .PP X! Normally \fIman\fP checks in standard locations (/usr/man, /usr/new/man, X! /usr/local/man) X! for manual information. This can be changed by supplying a search path X! with the \fB-M\fP flag. The search path is a colon X! (':') separated list of directories in which \fIman\fP expects to find X! standard manual subdirectory structure (e.g. cat3). This search path can X! also be set with the environmental variable \fIMANPATH\fP. X .PP X If the standard output is a teletype, and the \fB-\fP flag is not provided, X \fIman\fP uses \fImore\fP(1), or the pager provided by the environmental X variable \fIPAGER\fP, to display the manual page. X .PP X! The FORTRAN version of section 3 of the manual may be specified by using X! the \fIsection\fP '3f'. X .SH FILES X .nf X! .ta \w'/usr/new/man/man? 'u X! /usr/man/cat? standard formatted manual pages X! /usr/new/man/cat? additional standard formatted pages X! /usr/local/man/cat? local formatted pages X! /usr/src/man standard unformatted manual pages X .fi X .SH SEE\ ALSO X apropos(1), more(1), whatis(1), whereis(1) X*** ./usr/src/man/man1/lpr.1.old Tue Oct 22 22:00:46 1996 X--- ./usr/src/man/man1/lpr.1 Sun Sep 27 21:06:34 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)lpr.1 6.1.1 (2.11BSD) 1996/10/22 X .\" X .TH LPR 1 "October 22, 1996" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)lpr.1 6.1.2 (2.11BSD) 2026/9/27 X .\" X .TH LPR 1 "October 22, 1996" X .UC 4 X*************** X*** 38,44 **** X name ... X ] X .SH DESCRIPTION X! .B Lpr X uses a spooling daemon to print the named files when facilities X become available. If no names appear, the standard input is assumed. X The X--- 38,44 ---- X name ... X ] X .SH DESCRIPTION X! .B lpr X uses a spooling daemon to print the named files when facilities X become available. If no names appear, the standard input is assumed. X The X*************** X*** 52,80 **** X use the appropriate filters to print the data accordingly. X .IP \fB\-p\fP 5 X Use X! .IR pr (1) X! to format the files (equivalent to X! .IR print ). X .IP \fB\-l\fP 5 X Use a filter which allows control characters to be printed and suppresses X page breaks. X .IP \fB\-t\fP 5 X The files are assumed to contain data from X! .IR troff (1) X (cat phototypesetter commands). X .IP \fB\-n\fP 5 X The files are assumed to contain data from X! .I ditroff X (device independent troff). X .IP \fB\-d\fP 5 X The files are assumed to contain data from X! .IR tex (l) X (DVI format from Stanford). X .IP \fB\-g\fP 5 X The files are assumed to contain standard plot data as produced by the X! .IR plot (3X) X routines (see also X! .IR plot (1G) X for the filters used by the printer spooler). X .IP \fB\-v\fP 5 X The files are assumed to contain a raster image for devices like the X--- 52,79 ---- X use the appropriate filters to print the data accordingly. X .IP \fB\-p\fP 5 X Use X! .BR pr (1) X! to format the files. X .IP \fB\-l\fP 5 X Use a filter which allows control characters to be printed and suppresses X page breaks. X .IP \fB\-t\fP 5 X The files are assumed to contain data from X! .BR troff (1) X (cat phototypesetter commands). X .IP \fB\-n\fP 5 X The files are assumed to contain data from X! .B ditroff X (device independent troff). X .IP \fB\-d\fP 5 X The files are assumed to contain data from X! .BR tex (l) X (DVI format from Stanford). X .IP \fB\-g\fP 5 X The files are assumed to contain standard plot data as produced by the X! .BR plot (3) X routines (see also X! .BR plot (1) X for the filters used by the printer spooler). X .IP \fB\-v\fP 5 X The files are assumed to contain a raster image for devices like the X*************** X*** 118,124 **** X The X .B \-T X option uses the next argument as the title used by X! .IR pr (1) X instead of the file name. X .PP X To get multiple copies of output, use the X--- 117,123 ---- X The X .B \-T X option uses the next argument as the title used by X! .BR pr (1) X instead of the file name. X .PP X To get multiple copies of output, use the X*************** X*** 154,160 **** X The X .B \-s X option will use X! .IR symlink (2) X to link data files rather than trying to copy them so large files can be X printed. This means the files should X not be modified or removed until they have been printed. X--- 153,159 ---- X The X .B \-s X option will use X! .BR symlink (2) X to link data files rather than trying to copy them so large files can be X printed. This means the files should X not be modified or removed until they have been printed. X*************** X*** 170,176 **** X /etc/passwd personal identification X /etc/printcap printer capabilities data base X /usr/sbin/lpd line printer daemon X! /usr/spool/* directories used for spooling X /usr/spool/*/cf* daemon control files X /usr/spool/*/df* data files specified in "cf" files X /usr/spool/*/tf* temporary copies of "cf" files X--- 169,175 ---- X /etc/passwd personal identification X /etc/printcap printer capabilities data base X /usr/sbin/lpd line printer daemon X! Busr/spool/* directories used for spooling X /usr/spool/*/cf* daemon control files X /usr/spool/*/df* data files specified in "cf" files X /usr/spool/*/tf* temporary copies of "cf" files X*************** X*** 185,207 **** X lpd(8) X .SH DIAGNOSTICS X If you try to spool too large a file, it will be truncated. X! .I Lpr X will object to printing binary files. X If a user other than root prints a file and spooling is disabled, X! .I lpr X will print a message saying so and will not put jobs in the queue. X If a connection to X! .I lpd X on the local machine cannot be made, X! .I lpr X will say that the daemon cannot be started. X Diagnostics may be printed in the daemon's log file X regarding missing spool files by X! .IR lpd . X .SH BUGS X Fonts for X! .I troff X and X! .I tex X reside on the host with the printer. It is currently not possible to X use local font libraries. X--- 184,206 ---- X lpd(8) X .SH DIAGNOSTICS X If you try to spool too large a file, it will be truncated. X! .B lpr X will object to printing binary files. X If a user other than root prints a file and spooling is disabled, X! .B lpr X will print a message saying so and will not put jobs in the queue. X If a connection to X! .B lpd X on the local machine cannot be made, X! .B lpr X will say that the daemon cannot be started. X Diagnostics may be printed in the daemon's log file X regarding missing spool files by X! .BR lpd . X .SH BUGS X Fonts for X! .B troff X and X! .B tex X reside on the host with the printer. It is currently not possible to X use local font libraries. X*** ./usr/src/man/man1/nm.1.old Mon Feb 16 05:24:36 1987 X--- ./usr/src/man/man1/nm.1 Thu Mar 26 21:12:04 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)nm.1 6.1 (Berkeley) 4/29/85 X .\" X! .TH NM 1 "April 29, 1985" X .UC 2 X .SH NAME X nm \- print name list (2BSD) X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)nm.1 6.2 (2.11BSD) 2026/3/26 X .\" X! .TH NM 1 "March 26, 2026" X .UC 2 X .SH NAME X nm \- print name list (2BSD) X*************** X*** 74,77 **** X .B \-u X Print only undefined symbols. X .SH SEE ALSO X! ar(1), ar(5), a.out(5), stab(5) X--- 74,77 ---- X .B \-u X Print only undefined symbols. X .SH SEE ALSO X! ar(1), ar(5), a.out(5) X*** ./usr/src/man/man1/ps.1.old Sun Nov 17 01:32:49 1996 X--- ./usr/src/man/man1/ps.1 Sat Aug 15 21:31:29 2026 X*************** X*** 1,67 **** X! .TH PS 1 X .UC X .SH NAME X ps \- process status X .SH SYNOPSIS X .B ps X! [ X! .B acgklnrtuwxU# X! [ core [ swap [ system ] ] ] ] X .SH DESCRIPTION X! .I Ps X! prints certain indicia about active processes. X To get a complete printout on the console or lpr, use X! ``ps\ axlw'' X For a quick snapshot of system activity, X! ``ps\ au'' X is recommended. X! A hyphen may precede options with no effect. X! The following options may be specified. X .TP X .B a X! asks for information about all processes with terminals (ordinarily X only one's own processes are displayed). X .TP X .B c X! causes only the X .I comm X! field to be displayed instead of the arguments. X! (The comm field is the tail of the path name of the file X! the process last exec'ed.) X! This option speeds up X! .I ps X! somewhat and reduces the amount of output. X! It is also more reliable since the process can't scribble on top of it. X .TP X .B g X! asks for all processes. X Without this option, X .I ps X! only prints ``interesting'' processes. X! Processes are deemed to be uninteresting if they are process group leaders, X! or if their arguments begin with a `\-'. X This normally eliminates shells and getty processes. X .TP X .B k X! causes the file X! .I /usr/sys/core X! is used in place of X! .IR /dev/kmem " and " /dev/mem. X! This is used for X! postmortem system debugging. X .TP X .B l X! asks for a long listing. X The short listing contains the user name, process ID, tty, X the cumulative execution time of the process and an X approximation to the command line. X .TP X .B n X! asks for numeric rather than symbolic wchans. This flag X! implies the ``l'' flag. X .TP X .B r X! asks for ``raw'' output. X A non-human readable sequence of structures is output on the standard output. X There is one structure for each process, the format is defined by X X--- 1,78 ---- X! .\" @(#)ps.1 2.0 (2.11BSD) 2026/6/12 X! .\" X! .TH PS 1 "June 12, 2026" X .UC X .SH NAME X ps \- process status X .SH SYNOPSIS X .B ps X! [\fB-acglnruwxU\fP] [\fB-p pid\fP] [\fB-k mem:kern:swap\fP] [\fB-t tt\fP] X .SH DESCRIPTION X! .I ps X! prints information about active processes. X To get a complete printout on the console or lpr, use X! `ps\ \-axlw' X For a quick snapshot of system activity, X! `ps\ \-au' X is recommended. X! .sp X! The following options may be specified: X .TP X .B a X! display information about all processes with terminals (ordinarily X only one's own processes are displayed). X .TP X .B c X! only the X .I comm X! field is displayed instead of the arguments. X! The comm field is the tail of the path name of the file X! the process last exec'd. X! This option reduces the amount of output. X! It is also more reliable since the process can't scribble on it. X .TP X .B g X! do all processes. X Without this option, X .I ps X! only prints `interesting' processes. X! Processes are deemed to be uninteresting if their X! their arguments begin with a `\-'. X This normally eliminates shells and getty processes. X .TP X+ .B p X+ argument is the process number to print information about. \fB-x\fP and X+ \fB-a\fP are implicitly enabled by \fB-p\fP. X+ .TP X .B k X! files to use for the memory image (/dev/kmem, /dev/mem), kernel (/unix) and X! swap (as returned from swapdevname(3)). X! Examples: X! .sp X! -k /usr/crash/core.1 X! .sp X! -k savedcore.1:genunix X! .sp X! -k /usr/crash/core.1:/unix:/dev/xp1b X! .sp X! Empty fields default. Thus '-k ::/dev/xp1b' only affects the swap filename X! and '-k core.9:unix.9' sets the memory and kernel files and defaults the X! swap file. X! .sp X! This is used for postmortem system debugging. X .TP X .B l X! long listing. X The short listing contains the user name, process ID, tty, X the cumulative execution time of the process and an X approximation to the command line. X .TP X .B n X! numeric rather than symbolic wchans. This flag X! implies the `l' flag. X .TP X .B r X! `raw' output. X A non-human readable sequence of structures is output on the standard output. X There is one structure for each process, the format is defined by X X*************** X*** 68,79 **** X .TP X .BI t ttyname X restricts output to processes whose controlling tty is the X! specified ttyname (which should be specified as printed by X! .I ps, X! including X .I t? X! for processes with no tty). X! This option must be the last one given. X .TP X .B u X A user oriented output is produced. X--- 79,90 ---- X .TP X .BI t ttyname X restricts output to processes whose controlling tty is the X! specified ttyname (e.g. p0 not /dev/ttyp0) including X .I t? X! for processes with no tty. X! .sp X! The space after \fB-t\fP is optional. Thus this option may be either X! \fB-tp0\fP or \fB-t p0\fP. X .TP X .B u X A user oriented output is produced. X*************** X*** 90,96 **** X tells X .I ps X you are on a wide terminal (132 columns). X! .I Ps X normally assumes X you are on an 80 column terminal. X This information is used to decide how much of long commands to print. X--- 101,107 ---- X tells X .I ps X you are on a wide terminal (132 columns). X! .I ps X normally assumes X you are on an 80 column terminal. X This information is used to decide how much of long commands to print. X*************** X*** 97,139 **** X The X .B w X option may be repeated, e.g. X! .B ww, X and the entire command, up to 128 characters, will be printed X without regard to terminal width. X .TP X .B x X! asks even about processes with no terminal. X .TP X .B U X causes ps to update a private database where is keeps system X! information. Thus ``ps \-U'' should be included in the /etc/rc file. X! .TP X! .B # X! A process number may be given, X! (indicated here by #), X! in which case the output X! is restricted to that process. X! This option must also be last. X .PP X- A second argument tells X- .I ps X- where to look for X- .I core X- if the X- .I k X- option is given, instead of /usr/sys/core. X- A third argument is the name of a swap file to use instead of X- the default /dev/swap. X- If a fourth argument is given, X- it is taken to be the file containing the system's namelist. X- Otherwise, ``/unix'' is used. X- .PP X The output is sorted by tty, then by process ID. X .PP X The long listing is columnar and contains X .IP F X Flags associated with the process. X! These are defined by #define lines in /usr/include/sys/proc.h. X .IP S X The state of the process. X 0: nonexistent; X--- 108,131 ---- X The X .B w X option may be repeated, e.g. X! .B ww X and the entire command, up to 128 characters, will be printed X without regard to terminal width. X .TP X .B x X! reports about processes with no terminal. X .TP X .B U X causes ps to update a private database where is keeps system X! information. `ps \-U' should be included in the system startup script X! /etc/rc X .PP X The output is sorted by tty, then by process ID. X .PP X The long listing is columnar and contains X .IP F X Flags associated with the process. X! These are defined in /usr/include/sys/proc.h. X .IP S X The state of the process. X 0: nonexistent; X*************** X*** 176,182 **** X .PP X A process that has exited and has a parent, but has not X yet been waited for by the parent is marked . X! .I Ps X makes an educated guess as to the file name X and arguments given when the process was created X by examining memory or the swap area. X--- 168,174 ---- X .PP X A process that has exited and has a parent, but has not X yet been waited for by the parent is marked . X! .I ps X makes an educated guess as to the file name X and arguments given when the process was created X by examining memory or the swap area. X*************** X*** 191,216 **** X .br X /dev/swap swap device X .br X- /usr/sys/core core file X- .br X- /dev searched to find swap device and tty names X- .br X /var/run/psdatabase system namelist and device information X .SH "SEE ALSO" X! kill(1), w(1), pstat(8) X .SH BUGS X Things can change while X .I ps X is running; the picture it gives is only a close X approximation to reality. X- ...br X- ..Some data printed for defunct processes is irrelevant. X .PP X Some processes, typically those in the background, are X! printed with null or garbaged arguments, even though X the process has not swapped. X- (Sometimes ps even loses on its own arguments!) X In these cases, the name of the command is printed in parentheses. X .PP X! When automatic crash dumps are enabled, /usr/sys/core is not X! a sensible default core file name. X--- 183,204 ---- X .br X /dev/swap swap device X .br X /var/run/psdatabase system namelist and device information X .SH "SEE ALSO" X! kill(1), w(1), pstat(8), devname(3) X .SH BUGS X Things can change while X .I ps X is running; the picture it gives is only a close X approximation to reality. X .PP X Some processes, typically those in the background, are X! printed with null or nonsense arguments, even though X the process has not swapped. X In these cases, the name of the command is printed in parentheses. X .PP X! Use of the running system's swap device during postmortem system debugging X! is likely to produce unexpected results. X! .PP X! The raw output produced by \fB-r\fP isn't used by anything in the system, X! is deprecated and likely to removed in the future. X*** ./usr/src/man/man1/f77.1.old Tue Oct 22 00:09:11 1996 X--- ./usr/src/man/man1/f77.1 Sun Aug 9 17:04:02 2026 X*************** X*** 1,3 **** X--- 1,5 ---- X+ .\" @(#)f77.1 1.1 (2.11BSD) 2026/6/29 X+ .\" X .TH F77 1 X .UC X .SH NAME X*************** X*** 6,12 **** X .B f77 X [ option ] ... file ... X .SH DESCRIPTION X! .I F77 X is the UNIX Fortran77 compiler. X It accepts several types of arguments: X .PP X--- 8,14 ---- X .B f77 X [ option ] ... file ... X .SH DESCRIPTION X! .B f77 X is the UNIX Fortran77 compiler. X It accepts several types of arguments: X .PP X*************** X*** 29,120 **** X See \fIld\fP\|(1) X for load-time options. X .TP X! .B \-\^c X Suppress loading and produce `.o' files for each source X file. X .TP X! .B \-\^p X Prepare object files for profiling, see \fIprof\fP\|(1) X .TP X .SM X! .B \-\^O X Invoke an X object-code optimizer. X .TP X .SM X! .B \-\^S X Compile the named programs, and leave the X assembler-language output on corresponding files suffixed `.s'. X (No `.o' is created.). X .TP X! .B \-\^f X Use a floating point interpreter (for PDP11's that lack X 11/70-style floating point). X .TP X! .BR \-\^o " output" X Name the final output file X .I output X instead of `a.out'. X .PP X The following options are peculiar to X! .IR f77 : X .TP X .SM X! .BR \-\^onetrip X Compile DO loops that are performed at least once if reached. X (Fortran77 DO loops are not performed at all if the upper limit is smaller than the lower limit.) X .TP X! .BR \-\^u X Make the default type of a variable `undefined' rather than using the default Fortran rules. X .TP X! .BR \-\^C X Compile code to check that subscripts are within declared array bounds. X .TP X! .BR \-\^w X Suppress all warning messages. X If the option is `\-w66', only Fortran 66 compatibility warnings are suppressed. X .TP X! .BR \-\^F X Apply EFL and Ratfor preprocessor to relevant files, put the result in the file X with the suffix changed to `.f', but do not compile. X .TP X! .BR \-\^m X Apply the M4 preprocessor to each `.r' or `.e' file before transforming X it with the Ratfor or EFL preprocessor. X .TP X! .TP X! .BI \-\^E x X Use the string X .I x X as an EFL option in processing `.e' files. X .TP X! .BI \-\^R x X Use the string X .I x X as a Ratfor option in processing `.r' files. X .TP X! .BR \-\^U X Do not convert upper case letters to lower case. X .TP X! .BR \-\^I 2 X! Make default integer size 16 bit. X .TP X! .BR \-\^I 4 X! Make default integer size 32 bit (default). X .TP X! .BR \-\^v X! Verbose. Print information showing what compiler is doing. X .TP X! .BR \-\^d X! Debug prints out intermediate information, leaves temporary files in X! \fI/tmp\fP and often produces a core file. X .PP X Other arguments X are taken X! to be either loader option arguments, or F77-compatible X object programs, typically produced by an earlier X run, X! or perhaps libraries of F77-compatible routines. X These programs, together with the results of any X compilations specified, are loaded (in the order X given) to produce an executable program with name X--- 31,121 ---- X See \fIld\fP\|(1) X for load-time options. X .TP X! .B \-c X Suppress loading and produce `.o' files for each source X file. X .TP X! .B \-p X Prepare object files for profiling, see \fIprof\fP\|(1) X .TP X .SM X! .B \-O X Invoke an X object-code optimizer. X .TP X .SM X! .B \-S X Compile the named programs, and leave the X assembler-language output on corresponding files suffixed `.s'. X (No `.o' is created.). X .TP X! .B \-f X Use a floating point interpreter (for PDP11's that lack X 11/70-style floating point). X .TP X! .BR \-o " output" X Name the final output file X .I output X instead of `a.out'. X .PP X The following options are peculiar to X! .B f77 : X .TP X .SM X! .BR \-onetrip X Compile DO loops that are performed at least once if reached. X (Fortran77 DO loops are not performed at all if the upper limit is smaller than the lower limit.) X .TP X! .BR \-u X Make the default type of a variable `undefined' rather than using the default Fortran rules. X .TP X! .BR \-C X Compile code to check that subscripts are within declared array bounds. X .TP X! .BR \-w X Suppress all warning messages. X If the option is `\-w66', only Fortran 66 compatibility warnings are suppressed. X .TP X! .BR \-F X Apply EFL and Ratfor preprocessor to relevant files, put the result in the file X with the suffix changed to `.f', but do not compile. X .TP X! .BR \-m X Apply the M4 preprocessor to each `.r' or `.e' file before transforming X it with the Ratfor or EFL preprocessor. X .TP X! .BI \-E x X Use the string X .I x X as an EFL option in processing `.e' files. X .TP X! .BI \-R x X Use the string X .I x X as a Ratfor option in processing `.r' files. X .TP X! .BR \-U X Do not convert upper case letters to lower case. X .TP X! .BR \-I 2 X! default integer size 16 bit X .TP X! .BR \-I 4 X! default integer size 32 bit (default) X .TP X! .BR \-v X! Print information showing what compiler is doing. X .TP X! .BR \-d X! prints out compiler processing information and leaves the intermediate files X! in \fI/tmp\fP instead of removing them. X .PP X Other arguments X are taken X! to be either loader option arguments, or f77 compatible X object programs, typically produced by an earlier X run, X! or perhaps libraries of f77 compatible routines. X These programs, together with the results of any X compilations specified, are loaded (in the order X given) to produce an executable program with name X*************** X*** 121,127 **** X `a.out'. X .SH FILES X .nf X! .ta 2i X file.[fresc] input file X file.o object file X a.out loaded output X--- 122,128 ---- X `a.out'. X .SH FILES X .nf X! .ta 2.5i X file.[fresc] input file X file.o object file X a.out loaded output X*************** X*** 132,138 **** X /usr/lib/libF77.a intrinsic function library X /usr/lib/libI77.a Fortran I/O library X /usr/lib/libU77.a Fortran system call library X! /lib/libc.a C library, see section 3 X /temp/fortPID.[xsad SopzA] temporary files X .fi X .PP X--- 133,139 ---- X /usr/lib/libF77.a intrinsic function library X /usr/lib/libI77.a Fortran I/O library X /usr/lib/libU77.a Fortran system call library X! /lib/libc.a C library X /temp/fortPID.[xsad SopzA] temporary files X .fi X .PP X*************** X*** 161,170 **** X itself are intended to be X self-explanatory. X Occasional messages may be produced by the loader. X- .TP X- \-d X- causes the intermediate files to be saves in \fI/tmp\fP and causes the X- compiler to print out what it is doing. X .PP X Run-time diagnostics for the input/output library are as follows: X .sp X--- 162,167 ---- X*************** X*** 278,301 **** X exercised extensively; X the newer features have not. X .PP X- Fortran style read/write routines take up 23 Kbytes of X- addressing space. X- .PP X The compiler is not intelligent enough to know when to X split up assemblies and loads. Occasionally this causes X the loader \fIld\fP\|(1) to produce the informative \fBlocal symbol botch\fP X error message when local symbols like argument names are X! defined with different types. Thus one must split up such X! offensive modules into separate compilations. X .PP X All mathematics for reals is done in double precision. X .br X! Integer*4 byte alignment is unlike DEC and everyone else's. X .br X! There is no symbolic debugger. X! .PP X! The optimizer should be used with caution. It is known to occasionally X! produce incorrect code. X .SH EXAMPLES X .TP X \fBf77 \-O \-c myprog.f\fP X--- 275,315 ---- X exercised extensively; X the newer features have not. X .PP X The compiler is not intelligent enough to know when to X split up assemblies and loads. Occasionally this causes X the loader \fIld\fP\|(1) to produce the informative \fBlocal symbol botch\fP X error message when local symbols like argument names are X! defined with different types. The offending modules must be split X! into separate compilation units. X .PP X+ Unlike the \fBC\fP compiler \fBf77\fP does not remove the object (.o) files X+ after loading. While X+ .sp X+ cc foo.c X+ .sp X+ will create a.out but NO foo.o X+ .sp X+ f77 foo.f X+ .sp X+ will create a.out AND foo.o X+ .PP X All mathematics for reals is done in double precision. X+ .SH CAVEAT X+ Most of the f77 runtime (libU77, libF77, libI77) is written for \fB-I\fP4 X+ integers. If \fB-I\fP2 is used the programmer must explicitly declare X+ system routines and arguments as INTEGER*4. X+ .sp X+ Using, for example, \fB-I\fP2 with: X+ .sp X+ INTEGER time, tgm(9) X .br X! call gmtime(time(), tgm) X! .sp X! would require the program to change thus: X! .sp X! INTEGER*4 time, tgm(9) X .br X! call gmtime(time(), tgm) X .SH EXAMPLES X .TP X \fBf77 \-O \-c myprog.f\fP X*** ./usr/src/man/man1/Makefile.old Wed Dec 24 19:22:01 2025 X--- ./usr/src/man/man1/Makefile Sat Sep 19 22:08:08 2026 X*************** X*** 14,20 **** X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 2.1 (2.11BSD) 2025/11/25 X # X MDIR= /usr/man/cat1 X SRCS= adb.1 addbib.1 apply.1 apropos.1 as.1 at.1 atq.1 atrm.1 \ X--- 14,20 ---- X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 2.2 (2.11BSD) 2026/9/13 X # X MDIR= /usr/man/cat1 X SRCS= adb.1 addbib.1 apply.1 apropos.1 as.1 at.1 atq.1 atrm.1 \ X*************** X*** 26,45 **** X find.1 fmt.1 fold.1 fpr.1 from.1 fsplit.1 gcore.1 \ X graph.1 grep.1 head.1 hostid.1 indent.1 \ X intro.1 iostat.1 join.1 kill.1 last.1 lastcomm.1 \ X! learn.1 leave.1 lex.1 lisp.1 ln.1 logger.1 login.1 \ X look.1 lookbib.1 lorder.1 lpq.1 lpr.1 lprm.1 lptest.1 ls.1 \ X! lxref.1 m4.1 mail.1 make.1 man.1 mesg.1 mkdep.1 mkdir.1 mkstr.1 \ X more.1 mset.1 msgs.1 mt.1 mv.1 netstat.1 newaliases.1 nice.1 nm.1 X! SRCS1= nroff.1 nslookup.1 od.1 pagesize.1 pdx.1 pi.1 pix.1 \ X! plot.1 pmerge.1 pr.1 printenv.1 prof.1 ps.1 ptx.1 pwd.1 px.1 pxp.1 \ X! pxref.1 quota.1 ratfor.1 rcp.1 rdist.1 refer.1 rev.1 \ X rm.1 rmail.1 rmdir.1 roffbib.1 rsh.1 ruptime.1 rwho.1 \ X! sccs.1 script.1 sed.1 sendbug.1 sh.1 size.1 sleep.1 soelim.1 \ X sort.1 sortbib.1 spell.1 spline.1 split.1 strcompact.1 strings.1 \ X! strip.1 struct.1 style.1 su.1 sum.1 symcompact.1 symorder.1 \ X tabs.1 tail.1 talk.1 \ X tar.1 tbl.1 tc.1 tcopy.1 tee.1 telnet.1 time.1 \ X! tip.1 tk.1 tn3270.1 touch.1 tp.1 tr.1 troff.1 true.1 \ X tsort.1 tty.1 ul.1 unifdef.1 uniq.1 units.1 uptime.1 users.1 \ X uucp.1 uuencode.1 uulog.1 uuname.1 uuq.1 uusend.1 uux.1 \ X vacation.1 vgrind.1 vi.1 vmstat.1 vwidth.1 w.1 wait.1 wall.1 wc.1 \ X--- 26,45 ---- X find.1 fmt.1 fold.1 fpr.1 from.1 fsplit.1 gcore.1 \ X graph.1 grep.1 head.1 hostid.1 indent.1 \ X intro.1 iostat.1 join.1 kill.1 last.1 lastcomm.1 \ X! learn.1 leave.1 lex.1 ln.1 logger.1 login.1 \ X look.1 lookbib.1 lorder.1 lpq.1 lpr.1 lprm.1 lptest.1 ls.1 \ X! m4.1 mail.1 make.1 man.1 mesg.1 mkdep.1 \ X more.1 mset.1 msgs.1 mt.1 mv.1 netstat.1 newaliases.1 nice.1 nm.1 X! SRCS1= nroff.1 nslookup.1 od.1 pagesize.1 pi.1 pix.1 \ X! plot.1 pr.1 printenv.1 prof.1 ps.1 ptx.1 pwd.1 px.1 pxp.1 \ X! quota.1 ratfor.1 rcp.1 rdist.1 refer.1 rev.1 \ X rm.1 rmail.1 rmdir.1 roffbib.1 rsh.1 ruptime.1 rwho.1 \ X! script.1 sed.1 sendbug.1 sh.1 size.1 sleep.1 soelim.1 \ X sort.1 sortbib.1 spell.1 spline.1 split.1 strcompact.1 strings.1 \ X! strip.1 struct.1 style.1 su.1 sum.1 symcompact.1 symdump.1 symorder.1 \ X tabs.1 tail.1 talk.1 \ X tar.1 tbl.1 tc.1 tcopy.1 tee.1 telnet.1 time.1 \ X! tip.1 tk.1 tn3270.1 tp.1 tr.1 troff.1 true.1 \ X tsort.1 tty.1 ul.1 unifdef.1 uniq.1 units.1 uptime.1 users.1 \ X uucp.1 uuencode.1 uulog.1 uuname.1 uuq.1 uusend.1 uux.1 \ X vacation.1 vgrind.1 vi.1 vmstat.1 vwidth.1 w.1 wait.1 wall.1 wc.1 \ X*************** X*** 54,73 **** X find.0 fmt.0 fold.0 fpr.0 from.0 fsplit.0 gcore.0 \ X graph.0 grep.0 head.0 hostid.0 indent.0 \ X intro.0 iostat.0 join.0 kill.0 last.0 lastcomm.0 \ X! learn.0 leave.0 lex.0 lisp.0 ln.0 logger.0 login.0 \ X look.0 lookbib.0 lorder.0 lpq.0 lpr.0 lprm.0 lptest.0 ls.0 \ X! lxref.0 m4.0 mail.0 make.0 man.0 mesg.0 mkdep.0 mkdir.0 mkstr.0 \ X more.0 mset.0 msgs.0 mt.0 mv.0 netstat.0 newaliases.0 nice.0 nm.0 X! OBJS2= nroff.0 nslookup.0 od.0 pagesize.0 pdx.0 pi.0 pix.0 \ X! plot.0 pmerge.0 pr.0 printenv.0 prof.0 ps.0 ptx.0 pwd.0 px.0 pxp.0 \ X! pxref.0 quota.0 ratfor.0 rcp.0 rdist.0 refer.0 rev.0 \ X rm.0 rmail.0 rmdir.0 roffbib.0 rsh.0 ruptime.0 rwho.0 \ X! sccs.0 script.0 sed.0 sendbug.0 sh.0 size.0 sleep.0 soelim.0 \ X sort.0 sortbib.0 spell.0 spline.0 split.0 strcompact.0 strings.0 \ X! strip.0 struct.0 style.0 su.0 sum.0 symcompact.0 symorder.0 \ X tabs.0 tail.0 talk.0 \ X tar.0 tbl.0 tc.0 tcopy.0 tee.0 telnet.0 time.0 \ X! tip.0 tk.0 tn3270.0 touch.0 tp.0 tr.0 troff.0 true.0 \ X tsort.0 tty.0 ul.0 unifdef.0 uniq.0 units.0 uptime.0 users.0 \ X uucp.0 uuencode.0 uulog.0 uuname.0 uuq.0 uusend.0 uux.0 \ X vacation.0 vgrind.0 vi.0 vmstat.0 vwidth.0 w.0 wait.0 wall.0 wc.0 \ X--- 54,73 ---- X find.0 fmt.0 fold.0 fpr.0 from.0 fsplit.0 gcore.0 \ X graph.0 grep.0 head.0 hostid.0 indent.0 \ X intro.0 iostat.0 join.0 kill.0 last.0 lastcomm.0 \ X! learn.0 leave.0 lex.0 ln.0 logger.0 login.0 \ X look.0 lookbib.0 lorder.0 lpq.0 lpr.0 lprm.0 lptest.0 ls.0 \ X! m4.0 mail.0 make.0 man.0 mesg.0 mkdep.0 \ X more.0 mset.0 msgs.0 mt.0 mv.0 netstat.0 newaliases.0 nice.0 nm.0 X! OBJS2= nroff.0 nslookup.0 od.0 pagesize.0 pi.0 pix.0 \ X! plot.0 pr.0 printenv.0 prof.0 ps.0 ptx.0 pwd.0 px.0 pxp.0 \ X! quota.0 ratfor.0 rcp.0 rdist.0 refer.0 rev.0 \ X rm.0 rmail.0 rmdir.0 roffbib.0 rsh.0 ruptime.0 rwho.0 \ X! script.0 sed.0 sendbug.0 sh.0 size.0 sleep.0 soelim.0 \ X sort.0 sortbib.0 spell.0 spline.0 split.0 strcompact.0 strings.0 \ X! strip.0 struct.0 style.0 su.0 sum.0 symcompact.0 symdump.0 symorder.0 \ X tabs.0 tail.0 talk.0 \ X tar.0 tbl.0 tc.0 tcopy.0 tee.0 telnet.0 time.0 \ X! tip.0 tk.0 tn3270.0 tp.0 tr.0 troff.0 true.0 \ X tsort.0 tty.0 ul.0 unifdef.0 uniq.0 units.0 uptime.0 users.0 \ X uucp.0 uuencode.0 uulog.0 uuname.0 uuq.0 uusend.0 uux.0 \ X vacation.0 vgrind.0 vi.0 vmstat.0 vwidth.0 w.0 wait.0 wall.0 wc.0 \ X*** ./usr/src/man/man1/strcompact.1.old Thu Jan 27 00:09:27 1994 X--- ./usr/src/man/man1/strcompact.1 Tue Apr 7 21:25:28 2026 X*************** X*** 1,8 **** X .\" Public domain 1994 - Steven Schultz X .\" X! .\" @(#)strcompact.1 1.0 (2.11BSD GTE) 1/25/94 X .\" X! .TH strcompact 1 "January 25, 1994" X .UC 2 X .SH NAME X strcompact \- string compaction for object files X--- 1,8 ---- X .\" Public domain 1994 - Steven Schultz X .\" X! .\" @(#)strcompact.1 1.1 (2.11BSD) 2026/2/4 X .\" X! .TH strcompact 1 "February 4, 2026" X .UC 2 X .SH NAME X strcompact \- string compaction for object files X*************** X*** 26,39 **** X strcompact X exits 0 if successful, and >0 if an error occurred. X .SH SEE ALSO X! sort(1), symcompact(1), symorder(1), uniq(1) X .SH BUGS X- Execution speed leaves much to be desired - on a 11/73 it takes about X- 4 minutes to process the string table of the kernel. Fortunately this X- is only done once when the kernel is created. X- .PP X Although X .B strcompact X! may be run on .o files as well as executables but this is probably not X! worth the trouble since the linker will not create shared strings in the X final executable. X--- 26,35 ---- X strcompact X exits 0 if successful, and >0 if an error occurred. X .SH SEE ALSO X! sort(1), symcompact(1), symdump(1), symorder(1) X .SH BUGS X Although X .B strcompact X! may be run on .o files as well as executables this is not X! worth doing since the linker will not create shared strings in the X final executable. X*** ./usr/src/man/man1/vmstat.1.old Fri Sep 20 14:06:59 2024 X--- ./usr/src/man/man1/vmstat.1 Fri Feb 6 13:42:55 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)vmstat.1 6.4 (2.11BSD) 2024/9/20 X .\" X! .TH VMSTAT 1 "Sep 20, 2024" X .UC 4 X .de s1 X .if n .sp X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)vmstat.1 6.5 (2.11BSD) 2026/2/6 X .\" X! .TH VMSTAT 1 "Feb 6, 2026" X .UC 4 X .de s1 X .if n .sp X*************** X*** 42,52 **** X .I sum X structure, giving the total number of several kinds of paging related X events which have occurred since boot. X- If given a X- .B \-i X- argument, it instead reports on the number of X- .I interrupts X- taken by each device since system startup. X .PP X If none of these options are given, X .I vmstat X--- 42,47 ---- X*************** X*** 153,157 **** X .SH FILES X /dev/kmem, /unix X .SH SEE ALSO X- .IR systat (1), X .IR iostat (1) X--- 148,151 ---- X*** ./usr/src/man/man1/symcompact.1.old Thu Jan 27 00:09:28 1994 X--- ./usr/src/man/man1/symcompact.1 Thu Jun 25 08:05:50 2026 X*************** X*** 1,13 **** X .\" Public domain 1994 - Steven Schultz X .\" X! .\" @(#)symcompact.1 1.0 (2.11BSD GTE) 1/25/94 X .\" X! .TH symcompact 1 "January 25, 1994" X .UC 2 X .SH NAME X! symcompact \- string compaction for object files X .SH SYNOPSIS X! symcompact [ \fBobject_name\fP ... ] X .SH DESCRIPTION X symcompact X reduces the symbol table size of an executable file. This is done by X--- 1,13 ---- X .\" Public domain 1994 - Steven Schultz X .\" X! .\" @(#)symcompact.1 1.1 (2.11BSD) 2026/3/28 X .\" X! .TH symcompact 1 "March 28, 2026" X .UC 2 X .SH NAME X! symcompact \- string compaction for executable files X .SH SYNOPSIS X! symcompact [ \fBfilename\fP ... ] X .SH DESCRIPTION X symcompact X reduces the symbol table size of an executable file. This is done by X*************** X*** 25,53 **** X If \fBsymcompact\fP runs out of memory it will be necessary to reverse the X order and run \fBsymcompact\fP a second time - see the BUGS note below. X .PP X! The user must have write permission to the object/executable file. X .PP X .B X symcompact X! writes to \fIstderr\fP the count of symbols removed from the symbol table. X .PP X .B X symcompact X exits 0 if successful, and >0 if an error occurred. X! .SH SEE ALSO X! symcompact(1), symorder(1) X! .SH BUGS X! This program can partially negate the benefits of \fBstrcompact\fP because X! multiple references to identical strings cause additional strings to be X! placed in the string table. Running \fBstrcompact\fP again after running X! this program fixes this problem. X .PP X! The \fIregister\fP local symbol type is removed from the executable/object X! file. Since the debugger really doesn't know how to deal with those symbols X this is not much of a loss and saves quite a bit of space both in the X symbol table and the string table. X .PP X .B symcompact X should not be run on .o files that will be passed to the linker. The linker X will need the tilde form of the symbol if an overlaid executable is being X created. X--- 25,69 ---- X If \fBsymcompact\fP runs out of memory it will be necessary to reverse the X order and run \fBsymcompact\fP a second time - see the BUGS note below. X .PP X! The user must have write permission to the executable file. X .PP X .B X symcompact X! writes to \fIstderr\fP the initial number of symbols, number of excluded X! symbols, number of removed symbols, current number of symbols, X! the initial and final string table size, and the maximum program (Data space) X! size. X .PP X .B X symcompact X exits 0 if successful, and >0 if an error occurred. X! .SH NOTES X! .B symcompact X! is usually used only with the kernel. X! Almost all executables in the system have been processed with X! .I strip(1) X! and do not have a symbol table. Running X! .B symcompact X! on such files is silly. X .PP X! The \fIregister\fP local symbol type is removed from the executable X! file. Since the debugger doesn't know how to deal with those symbols X this is not much of a loss and saves quite a bit of space both in the X symbol table and the string table. X .PP X+ The \fIfilename\fP symbol type is removed from the executable file. It X+ is not useful to have the name of object files in the symbol table of an X+ executable. Nothing in the system except \fBnm(1)\fP knows what to do X+ with the N_FN symbol type anyhow. X+ .PP X .B symcompact X should not be run on .o files that will be passed to the linker. The linker X will need the tilde form of the symbol if an overlaid executable is being X created. X+ .SH BUGS X+ This program can partially negate the benefits of \fBstrcompact\fP because X+ multiple symbols that refer to the same string result in multiple strings X+ being placed in the string table. Running \fBstrcompact\fP again after running X+ this program fixes this problem. X+ .SH SEE ALSO X+ strcompact(1), symorder(1) X*** ./usr/src/man/man1/hostid.1.old Sun Dec 14 18:06:40 1986 X--- ./usr/src/man/man1/hostid.1 Mon Oct 19 12:30:12 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)hostid.1 6.2 (Berkeley) 5/5/86 X .\" X! .TH HOSTID 1 "May 5, 1986" X .UC 5 X .SH NAME X hostid \- set or print identifier of current host system X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)hostid.1 6.3 (2.11BSD) 2026/10/19 X .\" X! .TH HOSTID 1 "October 19, 2026" X .UC 5 X .SH NAME X hostid \- set or print identifier of current host system X*************** X*** 13,24 **** X [ identifier ] X .SH DESCRIPTION X The X! .I hostid X command prints the identifier of the current host in hexadecimal. X This numeric value is expected to be unique across all hosts and X is commonly set to the host's Internet address. X The super-user can set the hostid by giving a hexadecimal X! argument or the hostname; X! this is usually done in the startup script /etc/rc.local. X .SH SEE ALSO X! gethostid(2), sethostid(2) X--- 13,48 ---- X [ identifier ] X .SH DESCRIPTION X The X! .B hostid X command prints the identifier of the current host in hexadecimal. X This numeric value is expected to be unique across all hosts and X is commonly set to the host's Internet address. X The super-user can set the hostid by giving a hexadecimal X! number, a dotted quad (a.b.c.d) or hostname. X! This is usually done in the startup script /etc/netstart. X! .PP X! If the hostname form is used then the network interface must be \fBup\fP X! so that the the resolver routines can be used OR the name must be present X! in the /etc/hosts file. The IP (dotted quad) a.b.c.d should be used if X! neither of those conditions are satisfied. X! .SH NOTES X! If the kernel is not configured for networking X! .B hostid X! prints 0x0 if X! .I identifier X! is not given. X! .PP X! .B hostid X! uses X! .BR gethostbyname (3) X! to look up X! .IR identifier . X! This results in a SIGSYS (illegal system call). The signal is caught and X! .B hostid X! exits quietly rather than crashing and creating a core dump. X! .SH BUGS X! The hexadecimal number ( 0xNNNNNNNN) X! is interpreted in native not network byte order. Remember to swap the bytes X! within each short of the long. X .SH SEE ALSO X! gethostid(2), sethostid(2), gethostbyname(3) X*** ./usr/src/man/man1/file.1.old Mon Dec 3 21:49:23 1990 X--- ./usr/src/man/man1/file.1 Tue Sep 15 17:27:04 2026 X*************** X*** 1,18 **** X! .\" @(#)file.1 6.1 (Berkeley) 4/29/85 X .\" X .TH FILE 1 "April 29, 1985" X .AT 3 X .SH NAME X! file \- determine file type X .SH SYNOPSIS X .B file X file ... X .SH DESCRIPTION X! .I File X! performs a series of tests on each argument X in an attempt to classify it. X! If an argument appears to be ascii, X! .I file X examines the first 512 bytes X and tries to guess its language. X .SH BUGS X--- 1,23 ---- X! .\" @(#)file.1 6.2 (2.11BSD) 2026/9/15 X .\" X .TH FILE 1 "April 29, 1985" X .AT 3 X .SH NAME X! file - determine file type X .SH SYNOPSIS X .B file X file ... X+ .sp X+ \fBfile -f\fP \fIlist\fP X .SH DESCRIPTION X! In the first form \fBfile\fP X! performs a series of tests on each file X in an attempt to classify it. X! .PP X! In the second form \fIlist\fP contains the names of the files to be tested. X! .PP X! If a file appears to contain ASCII characters X! .B file X examines the first 512 bytes X and tries to guess its language. X .SH BUGS X*** ./usr/src/man/man1/rmail.1.old Sun Dec 14 18:06:42 1986 X--- ./usr/src/man/man1/rmail.1 Sat Jul 18 21:50:12 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)rmail.1 6.1 (Berkeley) 4/29/85 X .\" X .TH RMAIL 1 "April 29, 1985" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)rmail.1 6.2 (2.11BSD) 2026/7/18 X .\" X .TH RMAIL 1 "April 29, 1985" X .UC 5 X*************** X*** 12,36 **** X .B rmail X user ... X .SH DESCRIPTION X! .I Rmail X interprets incoming mail received via X! .IR uucp (1C), X collapsing ``From'' lines in the form generated X by X! .IR binmail (1) X into a single line of the form ``return-path!sender'', X and passing the processed mail on to X .IR sendmail (8). X .PP X! .I Rmail X is explicitly designed for use with X .I uucp X and X .IR sendmail . X .SH "SEE ALSO" X! binmail(1), X! uucp(1C), X sendmail(8) X- .SH BUGS X- .I Rmail X- should not reside in /bin. X--- 12,33 ---- X .B rmail X user ... X .SH DESCRIPTION X! .I rmail X interprets incoming mail received via X! .IR uucp (1) X collapsing ``From'' lines in the form generated X by X! .IR mail (1) X into a single line of the form ``return-path!sender'', X and passing the processed mail on to X .IR sendmail (8). X .PP X! .I rmail X is explicitly designed for use with X .I uucp X and X .IR sendmail . X .SH "SEE ALSO" X! mail(1), X! uucp(1), X sendmail(8) X*** ./usr/src/man/man1/rm.1.old Sun Dec 14 18:06:15 1986 X--- ./usr/src/man/man1/rm.1 Fri Aug 7 06:30:21 2026 X*************** X*** 2,13 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)rm.1 6.1 (Berkeley) 4/29/85 X .\" X .TH RM 1 "April 29, 1985" X .UC 4 X .SH NAME X! rm, rmdir \- remove (unlink) files or directories X .SH SYNOPSIS X .B rm X [ X--- 2,13 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)rm.1 6.2 (2.11BSD) 2026/7/31 X .\" X .TH RM 1 "April 29, 1985" X .UC 4 X .SH NAME X! rm \- remove (unlink) files or directories X .SH SYNOPSIS X .B rm X [ X*************** X*** 16,65 **** X .B \-r X ] [ X .B \-i X! ] [ X! .B \- X! ] file ... X .PP X- .B rmdir X- dir ... X- .PP X .SH DESCRIPTION X! .I Rm X removes the entries for one or more files from a directory. X If an entry was the last link to the file, the file is destroyed. X! Removal of a file requires write permission in its directory, X but neither read nor write permission on the file itself. X .PP X If a file has no write permission and the standard input is a terminal, X its permissions are printed and a line is read from the standard input. X! If that line begins with `y' the file is deleted, otherwise the file remains. X No questions are asked and no errors are reported when the X .B \-f X (force) option is given. X .PP X! If a designated file is a directory, X an error comment is printed unless the optional argument X .B \-r X has been used. In that case, X! .I rm X! recursively deletes the entire contents of the specified directory, X and the directory itself. X .PP X If the X .B \-i X (interactive) option is in effect, X .I rm X! asks whether to delete each file, and, under X .BR \-r , X whether to examine each directory. X- .PP X- The null option X- .B \- X- indicates that all the arguments following it are to be treated as X- file names. This allows the specification of file names starting with X- a minus. X- .PP X- .I Rmdir X- removes entries for the named directories, which must be empty. X .SH "SEE ALSO" X rm(1), unlink(2), rmdir(2) X--- 16,55 ---- X .B \-r X ] [ X .B \-i X! ] X! file ... X .PP X .SH DESCRIPTION X! .B rm X removes the entries for one or more files from a directory. X If an entry was the last link to the file, the file is destroyed. X! Removal of a file requires write permission in its directory X but neither read nor write permission on the file itself. X .PP X If a file has no write permission and the standard input is a terminal, X its permissions are printed and a line is read from the standard input. X! If that line begins with `y' the file is deleted otherwise the file remains. X No questions are asked and no errors are reported when the X .B \-f X (force) option is given. X .PP X! If a designated file is a directory X an error comment is printed unless the optional argument X .B \-r X has been used. In that case, X! .B rm X! recursively deletes the entire contents of the specified directory X and the directory itself. X+ .sp X+ .B \-R X+ is a synonym for \fB-r\fP X .PP X If the X .B \-i X (interactive) option is in effect, X .I rm X! asks whether to delete each file and, under X .BR \-r , X whether to examine each directory. X .SH "SEE ALSO" X rm(1), unlink(2), rmdir(2) X*** ./usr/src/man/man1/mv.1.old Sun Dec 14 18:06:12 1986 X--- ./usr/src/man/man1/mv.1 Fri Aug 7 06:29:32 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)mv.1 6.1 (Berkeley) 4/29/85 X .\" X .TH MV 1 "April 29, 1985" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)mv.1 6.2 (2.11BSD) 2026/8/6 X .\" X .TH MV 1 "April 29, 1985" X .UC 4 X*************** X*** 14,21 **** X .B \-i X ] [ X .B \-f X- ] [ X- .B \- X ] file1 file2 X .PP X .B mv X--- 14,19 ---- X*************** X*** 23,33 **** X .B \-i X ] [ X .B \-f X- ] [ X- .B \- X ] file ... directory X .SH DESCRIPTION X! .I Mv X moves (changes the name of) X .I file1 X to X--- 21,29 ---- X .B \-i X ] [ X .B \-f X ] file ... directory X .SH DESCRIPTION X! .I mv X moves (changes the name of) X .I file1 X to X*************** X*** 49,61 **** X .I mv X exits. X .PP X! In the second form, one or more X .I files X (plain files or directories) are moved to the X .I directory X with their original file-names. X .PP X! .I Mv X refuses to move a file onto itself. X .PP X Options: X--- 45,57 ---- X .I mv X exits. X .PP X! In the second form one or more X .I files X (plain files or directories) are moved to the X .I directory X with their original file-names. X .PP X! .I mv X refuses to move a file onto itself. X .PP X Options: X*************** X*** 64,70 **** X stands for interactive mode. Whenever a move is to supercede an X existing file, the user is prompted by the name of the file X followed by a question mark. If he answers with a line starting X! with 'y', the move continues. Any other reply prevents the move from X occurring. X .TP X .B \-f X--- 60,66 ---- X stands for interactive mode. Whenever a move is to supercede an X existing file, the user is prompted by the name of the file X followed by a question mark. If he answers with a line starting X! with 'y' the move continues. Any other reply prevents the move from X occurring. X .TP X .B \-f X*************** X*** 71,80 **** X stands for force. This option overrides any mode restrictions or the X \-i switch. X .TP X- .B \- X- means interpret all the following arguments to X- .I mv X- as file names. This allows file names starting with minus. X .SH "SEE ALSO" X cp(1), ln(1) X .SH BUGS X--- 67,72 ---- X*************** X*** 82,88 **** X .I file1 X and X .I file2 X! lie on different file systems, X .I mv X must copy the file and delete the original. X In this case the owner name becomes that of the copying process and any X--- 74,80 ---- X .I file1 X and X .I file2 X! lie on different file systems X .I mv X must copy the file and delete the original. X In this case the owner name becomes that of the copying process and any X*** ./usr/src/man/man1/grep.1.old Sun Dec 14 18:06:09 1986 X--- ./usr/src/man/man1/grep.1 Fri Aug 14 18:52:40 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)grep.1 6.1 (Berkeley) 4/29/85 X .\" X! .TH GREP 1 "April 29, 1985" X .UC 4 X .SH NAME X grep, egrep, fgrep \- search a file for a pattern X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)grep.1 6.2 (2.11BSD) 2026/8/14 X .\" X! .TH GREP 1 "August 14, 2026" X .UC 4 X .SH NAME X grep, egrep, fgrep \- search a file for a pattern X*************** X*** 29,42 **** X .I files X (standard input default) for lines matching a pattern. X Normally, each line found is copied to the standard output. X! .I Grep X patterns are limited regular expressions in the style of X .IR ex (1); X it uses a compact nondeterministic algorithm. X! .I Egrep X patterns are full regular expressions; it uses a fast deterministic X algorithm that sometimes needs exponential space. X! .I Fgrep X patterns are fixed strings; it is fast and compact. X The following options are recognized. X .TP X--- 29,42 ---- X .I files X (standard input default) for lines matching a pattern. X Normally, each line found is copied to the standard output. X! .I grep X patterns are limited regular expressions in the style of X .IR ex (1); X it uses a compact nondeterministic algorithm. X! .I egrep X patterns are full regular expressions; it uses a fast deterministic X algorithm that sometimes needs exponential space. X! .I fgrep X patterns are fixed strings; it is fast and compact. X The following options are recognized. X .TP X*************** X*** 58,65 **** X Each line is preceded by its relative line number in the file. X .TP X .B \-b X! Each line is preceded by the block number on which it was found. X! This is sometimes useful in locating disk block numbers by context. X .TP X .B \-i X The case of letters is ignored in making comparisons \(em that is, upper and X--- 58,69 ---- X Each line is preceded by its relative line number in the file. X .TP X .B \-b X! For X! .I egrep X! and X! .I fgrep X! each line is preceded by the block number in which it was found. X! This is infrequently useful (locating disk block numbers by context). X .TP X .B \-i X The case of letters is ignored in making comparisons \(em that is, upper and X*************** X*** 98,108 **** X .I expression X argument in single quotes \' \'. X .LP X! .I Fgrep X searches for lines that contain one of the (newline-separated) X .I strings. X .LP X! .I Egrep X accepts extended regular expressions. X In the following description `character' excludes newline: X .IP X--- 102,112 ---- X .I expression X argument in single quotes \' \'. X .LP X! .I fgrep X searches for lines that contain one of the (newline-separated) X .I strings. X .LP X! .I egrep X accepts extended regular expressions. X In the following description `character' excludes newline: X .IP X*** ./usr/src/man/man1/cc.1.old Wed Sep 18 20:28:46 2024 X--- ./usr/src/man/man1/cc.1 Mon Aug 31 06:46:12 2026 X*************** X*** 2,20 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)cc.1 6.3 (2.11BSD) 2024/9/18 X .\" X .TH CC 1 "September 18, 2024" X .UC 2 X .SH NAME X! cc \- C compiler (2BSD) X .SH SYNOPSIS X .B cc X [ option ] ... file ... X .SH DESCRIPTION X! .I Cc X is the UNIX C compiler. X! .I Cc X accepts several types of arguments: X .PP X Arguments whose names end with `.c' are taken to be X--- 2,20 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)cc.1 6.4 (2.11BSD) 2026/8/29 X .\" X .TH CC 1 "September 18, 2024" X .UC 2 X .SH NAME X! cc \- C compiler X .SH SYNOPSIS X .B cc X [ option ] ... file ... X .SH DESCRIPTION X! .B cc X is the UNIX C compiler. X! .B cc X accepts several types of arguments: X .PP X Arguments whose names end with `.c' are taken to be X*************** X*** 55,71 **** X use of X .IR prof (1). X .TP X- .SM X .B \-O X Invoke an X object-code improver. X .TP X- .SM X .B \-S X Compile the named C programs, and leave the X assembler-language output on corresponding files suffixed `.s'. X .TP X- .SM X .B \-M X Run only the macro preprocessor X on the named C programs, X--- 55,68 ---- X*************** X*** 72,84 **** X requesting it to generate Makefile dependencies X and send the result to the standard output. X .TP X- .SM X .B \-E X Run only the macro preprocessor X on the named C programs, and send the result to the X standard output. X .TP X! .SM X .B \-C X prevent the macro preprocessor from eliding comments. X .TP X--- 69,82 ---- X requesting it to generate Makefile dependencies X and send the result to the standard output. X .TP X .B \-E X Run only the macro preprocessor X on the named C programs, and send the result to the X standard output. X .TP X! .B \-P X! Inhibit line marker generation. This flag is also passed thru to \fBcpp(\fP1\fB)\fP X! .TP X .B \-C X prevent the macro preprocessor from eliding comments. X .TP X*************** X*** 87,98 **** X .IR output . X If this option is used the file `a.out' will be left undisturbed. X .TP X- .SM X .BI \-D name=def X .br X .ns X .TP X- .SM X .BI \-D \*Sname X Define the X .I name X--- 85,94 ---- X*************** X*** 101,112 **** X `#define'. X If no definition is given, the name is defined as "1". X .TP X- .SM X .BI \-U \*Sname X Remove any initial definition of X .IR name . X .TP X- .SM X .BI \-I \*Sdir X `#include' files X whose names do not begin with `/' are always X--- 97,106 ---- X*************** X*** 119,125 **** X options, X then in directories on a standard list. X .TP X- .SM X .BI \-L \*Sdir X Library archives are sought first in X directories named in X--- 113,118 ---- X*************** X*** 127,154 **** X options, X then in directories on a standard list. X .TP X- .SM X .BI \-B \*Sstring X! Find substitute compiler passes in the files named X! .I string X! with the suffixes cpp, c0, c1 and c2. X! If X! .I string X! is empty, use a standard backup version. X .TP X- .SM X .BR \-t [ p012 ] X Find only the designated compiler passes in the X! files whose names are constructed by a X .B \-B X option. X! In the absence of a X .B \-B X! option, the X! .I string X! is taken to be `/usr/c/'. X .TP X- .SM X .BR \-d X Debug; print what programs the compiler is calling, X with their arguments. X--- 120,140 ---- X options, X then in directories on a standard list. X .TP X .BI \-B \*Sstring X! Find substitute compiler passes (cpp, c0, c1, c2) in the directory X! \fIstring\fP. If \fPstring\fP is not given X! the directory \fB/usr/new/\fP is used. X .TP X .BR \-t [ p012 ] X Find only the designated compiler passes in the X! directory specified with the X .B \-B X option. X! If X .B \-B X! has not been given X! the directory \fB/usr/c/\fP is used. X .TP X .BR \-d X Debug; print what programs the compiler is calling, X with their arguments. X*************** X*** 216,222 **** X or loader. X .SH BUGS X The compiler currently ignores advice to put X! \fBchar\fR, \fBunsigned char\fR, X! \fBlong\fR, X! \fBfloat\fR, or \fBdouble\fR X variables in registers. X--- 202,207 ---- X or loader. X .SH BUGS X The compiler currently ignores advice to put X! \fBlong\fP, X! \fBfloat\fP, or \fBdouble\fP X variables in registers. X*** ./usr/src/man/man1/intro.1.old Sun Dec 14 18:06:33 1986 X--- ./usr/src/man/man1/intro.1 Fri Sep 4 14:48:54 2026 X*************** X*** 1,30 **** X! .\" @(#)intro.1 6.1 (Berkeley) 4/29/85 X .\" X! .TH INTRO 1 "April 29, 1985" X! .AT 3 X .SH NAME X intro \- introduction to commands X .SH DESCRIPTION X This section describes publicly accessible commands in alphabetic order. X- Certain distinctions of purpose are made in the headings: X- .TP X- (1) X- Commands of general utility. X- .TP X- (1C) X- Commands for communication with other systems. X- .TP X- (1G) X- Commands used primarily for graphics and computer-aided design. X .PP X! N.B.: Commands related to system maintenance used to appear in X! section 1 manual pages and were distinguished by (1M) at the top of the X! page. These manual pages now appear in section 8. X .SH SEE ALSO X Section (6) for computer games. X- .PP X- .I How to get started, X- in the Introduction. X .SH DIAGNOSTICS X Upon termination each command returns two bytes of status, X one supplied by the system giving the cause for X--- 1,17 ---- X! .\" @(#)intro.1 6.2 (2.11BSD) 2026/9/4 X .\" X! .TH INTRO 1 "September 4, 2026" X! .UC 2 X .SH NAME X intro \- introduction to commands X .SH DESCRIPTION X This section describes publicly accessible commands in alphabetic order. X .PP X! Commands related to system maintenance used to appear in X! section 1. X! Those manual pages were relocated to section 8. X .SH SEE ALSO X Section (6) for computer games. X .SH DIAGNOSTICS X Upon termination each command returns two bytes of status, X one supplied by the system giving the cause for X*** ./usr/src/man/man1/cp.1.old Sun Dec 14 18:06:07 1986 X--- ./usr/src/man/man1/cp.1 Sun Sep 27 22:48:36 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)cp.1 6.2 (Berkeley) 6/8/85 X .\" X .TH CP 1 "June 8, 1985" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)cp.1 6.3 (2.11BSD) 2026/9/27 X .\" X .TH CP 1 "June 8, 1985" X .UC 4 X*************** X*** 19,25 **** X .B \-ipr X ] file ... directory X .SH DESCRIPTION X! .I File1 X is copied onto X .IR file2 . X By default, the mode and owner of X--- 19,25 ---- X .B \-ipr X ] file ... directory X .SH DESCRIPTION X! .I file1 X is copied onto X .IR file2 . X By default, the mode and owner of X*************** X*** 26,39 **** X .I file2 X are preserved if it already X existed; otherwise the mode of the source file modified by the current X! .IR umask (2) X is used. The X .B \-p X option causes X! .I cp X to attempt to preserve (duplicate) in its copies the modification X times and modes of the source files, ignoring the present X! .IR umask . X .PP X In the second form, one or more X .I files X--- 26,39 ---- X .I file2 X are preserved if it already X existed; otherwise the mode of the source file modified by the current X! .BR umask (2) X is used. The X .B \-p X option causes X! .B cp X to attempt to preserve (duplicate) in its copies the modification X times and modes of the source files, ignoring the present X! .BR umask . X .PP X In the second form, one or more X .I files X*************** X*** 41,57 **** X .I directory X with their original file-names. X .PP X! .I Cp X refuses to copy a file onto itself. X .PP X If the X .B \-i X option is specified, X! .I cp X will prompt the user with the name of the file X whenever the copy will cause an old file to be X overwritten. An answer of 'y' will cause X! .I cp X to continue. Any other answer will prevent it X from overwriting the file. X .PP X--- 41,57 ---- X .I directory X with their original file-names. X .PP X! .B cp X refuses to copy a file onto itself. X .PP X If the X .B \-i X option is specified, X! .B cp X will prompt the user with the name of the file X whenever the copy will cause an old file to be X overwritten. An answer of 'y' will cause X! .B cp X to continue. Any other answer will prevent it X from overwriting the file. X .PP X*************** X*** 58,65 **** X If the X .B \-r X option is specified and any of the source files are directories, X! .I cp X copies each subtree rooted at that name; in this case X the destination must be a directory. X .SH "SEE ALSO" X! cat(1), mv(1), rcp(1C) X--- 58,65 ---- X If the X .B \-r X option is specified and any of the source files are directories, X! .B cp X copies each subtree rooted at that name; in this case X the destination must be a directory. X .SH "SEE ALSO" X! cat(1), mv(1), rcp(1) X*** ./usr/src/man/man1/tc.1.old Sun Dec 14 18:06:25 1986 X--- ./usr/src/man/man1/tc.1 Sun Sep 27 22:51:56 2026 X*************** X*** 1,4 **** X! .\" @(#)tc.1 6.1 (Berkeley) 4/29/85 X .\" X .TH TC 1 "April 29, 1985" X .AT 3 X--- 1,4 ---- X! .\" @(#)tc.1 6.2 (2.11BSD) 2026/9/27 X .\" X .TH TC 1 "April 29, 1985" X .AT 3 X*************** X*** 21,32 **** X file X ] X .SH DESCRIPTION X! .I Tc X interprets its X input (standard input default) X as device codes for a Graphic Systems phototypesetter (cat). X The standard output of X! .I tc X is intended for a Tektronix 4015 (a 4014 terminal X with ASCII and APL character sets). X The sixteen typesetter sizes are mapped into the 4014's X--- 21,32 ---- X file X ] X .SH DESCRIPTION X! .B tc X interprets its X input (standard input default) X as device codes for a Graphic Systems phototypesetter (cat). X The standard output of X! .B tc X is intended for a Tektronix 4015 (a 4014 terminal X with ASCII and APL character sets). X The sixteen typesetter sizes are mapped into the 4014's X*************** X*** 39,45 **** X troff \-t file | tc X .PP X At the end of each page X! .I tc X waits for a newline (empty line) from the keyboard before X continuing on to the next page. X In this wait state, the command X--- 39,45 ---- X troff \-t file | tc X .PP X At the end of each page X! .B tc X waits for a newline (empty line) from the keyboard before X continuing on to the next page. X In this wait state, the command X*************** X*** 79,85 **** X .I l/w. X .SH "SEE ALSO" X troff(1), X! plot(1G) X .SH BUGS X Font distinctions are lost. X .br X--- 79,85 ---- X .I l/w. X .SH "SEE ALSO" X troff(1), X! plot(1) X .SH BUGS X Font distinctions are lost. X .br X*** ./usr/src/man/man1/uusend.1.old Sun Dec 14 18:06:17 1986 X--- ./usr/src/man/man1/uusend.1 Mon Sep 28 08:07:38 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)uusend.1c 6.2 (Berkeley) 4/24/86 X .\" X! .TH UUSEND 1C "April 24, 1986" X .UC 4 X .SH NAME X uusend \- send a file to a remote host X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)uusend.1 6.3 (2.11BSD) 2026/9/28 X .\" X! .TH UUSEND 1 "April 24, 1986" X .UC 4 X .SH NAME X uusend \- send a file to a remote host X*************** X*** 17,27 **** X sourcefile X sys1!sys2!..!remotefile X .SH DESCRIPTION X! .I Uusend X sends a file to a given location on a remote system. X The system need not be directly connected to the local X system, but a chain of X! .IR uucp (1) X links needs to connect the two systems. X .PP X If the X--- 17,27 ---- X sourcefile X sys1!sys2!..!remotefile X .SH DESCRIPTION X! .B uusend X sends a file to a given location on a remote system. X The system need not be directly connected to the local X system, but a chain of X! .BR uucp (1) X links needs to connect the two systems. X .PP X If the X*************** X*** 34,40 **** X can be ``\-'', X meaning to use the standard input. X Both of these options are primarily intended for internal use of X! .IR uusend . X .PP X The remotefile can include the ~userid syntax. X .SH DIAGNOSTICS X--- 34,40 ---- X can be ``\-'', X meaning to use the standard input. X Both of these options are primarily intended for internal use of X! .BR uusend . X .PP X The remotefile can include the ~userid syntax. X .SH DIAGNOSTICS X*************** X*** 48,58 **** X should handle it. X .PP X All systems along the line must have the X! .I uusend X command available and allow remote execution of it. X .PP X Some uucp systems have a bug where binary files cannot be the X input to a X! .I uux X command. If this bug exists in any system along the line, X the file will show up severly munged. X--- 48,58 ---- X should handle it. X .PP X All systems along the line must have the X! .B uusend X command available and allow remote execution of it. X .PP X Some uucp systems have a bug where binary files cannot be the X input to a X! .B uux X command. If this bug exists in any system along the line, X the file will show up severly munged. X*** ./usr/src/man/man1/uuq.1.old Sun Dec 14 18:06:47 1986 X--- ./usr/src/man/man1/uuq.1 Mon Sep 28 08:09:25 2026 X*************** X*** 1,6 **** X! .\" @(#)uuq.1c 6.2 (Berkeley) 4/24/86 X .\" X! .TH UUQ 1C "April 24, 1986" X .UC 6 X .SH NAME X uuq \- examine or manipulate the uucp queue X--- 1,6 ---- X! .\" @(#)uuq.1 6.3 (2.11BSD) 2026/9/28 X .\" X! .TH UUQ 1 "April 24, 1986" X .UC 6 X .SH NAME X uuq \- examine or manipulate the uucp queue X*************** X*** 22,34 **** X .BI -b baud X ] X .SH DESCRIPTION X! .I Uuq X is used to examine (and possibly delete) entries in the uucp queue. X .PP X When listing jobs, X! .I uuq X uses a format reminiscent of X! .IR ls . X For the long format, X information for each job listed includes X job number, number of files to transfer, user who X--- 22,34 ---- X .BI -b baud X ] X .SH DESCRIPTION X! .B uuq X is used to examine (and possibly delete) entries in the uucp queue. X .PP X When listing jobs, X! .B uuq X uses a format reminiscent of X! .BR ls . X For the long format, X information for each job listed includes X job number, number of files to transfer, user who X*************** X*** 53,59 **** X Limit output to jobs for users whose login names begin with \fIuser\fP. X .TP 10 X .BI \-d jobno X! Delete job number \fIjobno\fP (as obtained from a previous \fIuuq\fP command) X from the uucp queue. X Only the UUCP Administrator is permitted to delete jobs. X .TP 10 X--- 53,59 ---- X Limit output to jobs for users whose login names begin with \fIuser\fP. X .TP 10 X .BI \-d jobno X! Delete job number \fIjobno\fP (as obtained from a previous \fBuuq\fP command) X from the uucp queue. X Only the UUCP Administrator is permitted to delete jobs. X .TP 10 X*************** X*** 68,84 **** X .ta \w'/usr/spool/uucp/D.hostname/D.* 'u X /usr/spool/uucp/ Default spool directory X /usr/spool/uucp/C./C.* Control files X! .br X /usr/spool/uucp/D\fIhostname\fP./D.* Outgoing data files X /usr/spool/uucp/X./X.* Outgoing execution files X .SH SEE ALSO X! uucp(1C), uux(1C), uulog(1C), uusnap(8C) X .SH BUGS X No information is available on work requested by the remote machine. X .PP X The user who requests a remote uucp command is unknown. X .PP X! .B "Uuq -l" X can be horrendously slow. X .SH AUTHOR X Lou Salkind, New York University X--- 68,84 ---- X .ta \w'/usr/spool/uucp/D.hostname/D.* 'u X /usr/spool/uucp/ Default spool directory X /usr/spool/uucp/C./C.* Control files X! .sp X /usr/spool/uucp/D\fIhostname\fP./D.* Outgoing data files X /usr/spool/uucp/X./X.* Outgoing execution files X .SH SEE ALSO X! uucp(1), uux(1), uulog(1), uusnap(8) X .SH BUGS X No information is available on work requested by the remote machine. X .PP X The user who requests a remote uucp command is unknown. X .PP X! .B "uuq -l" X can be horrendously slow. X .SH AUTHOR X Lou Salkind, New York University X*** ./usr/src/man/man1/uuname.1.old Sun Dec 14 18:06:38 1986 X--- ./usr/src/man/man1/uuname.1 Mon Sep 28 08:13:59 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)uuname.1c 6.1 (Berkeley) 4/24/86 X .\" X! .TH UUNAME 1C "April 24, 1986" X .UC 6 X .SH NAME X uuname \- list names of \s-1UUCP\s0 hosts X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)uuname.1 6.2 (2.11BSD) 2026/9/28 X .\" X! .TH UUNAME 1 "April 24, 1986" X .UC 6 X .SH NAME X uuname \- list names of \s-1UUCP\s0 hosts X*************** X*** 14,20 **** X .B \-l X ] X .SH DESCRIPTION X! .I Uuname X lists the \s-1UUCP\s0 names of known systems. X The X .B \-l X--- 14,20 ---- X .B \-l X ] X .SH DESCRIPTION X! .B uuname X lists the \s-1UUCP\s0 names of known systems. X The X .B \-l X*************** X*** 24,27 **** X .I hostname X is very long. X .SH SEE ALSO X! uucp(1C), uux(1C). X--- 24,27 ---- X .I hostname X is very long. X .SH SEE ALSO X! uucp(1), uux(1). X*** ./usr/src/man/man1/uulog.1.old Sun Dec 14 18:06:38 1986 X--- ./usr/src/man/man1/uulog.1 Mon Sep 28 08:19:20 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)uulog.1c 6.1 (Berkeley) 4/24/86 X .\" X! .TH UULOG 1C "April 24, 1986" X .UC 6 X .SH NAME X uulog \- display \s-1UUCP\s0 log files X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)uulog.1 6.2 (2.11BSD) 2026/9/28 X .\" X! .TH UULOG 1 "April 24, 1986" X .UC 6 X .SH NAME X uulog \- display \s-1UUCP\s0 log files X*************** X*** 18,34 **** X .I user X ] X .SH DESCRIPTION X! .I Uulog X queries a log X of X! .IR uucp (1C) X and X! .IR uux (1C) X transactions in the file X .B /usr/spool/uucp/\s-1LOGFILE.\s0 X .PP X The options command X! .I uulog X to print logging information: X .TP 8 X .BI \-s sys\^ X--- 18,34 ---- X .I user X ] X .SH DESCRIPTION X! .B uulog X queries a log X of X! .BR uucp (1) X and X! .BR uux (1) X transactions in the file X .B /usr/spool/uucp/\s-1LOGFILE.\s0 X .PP X The options command X! .B uulog X to print logging information: X .TP 8 X .BI \-s sys\^ X*************** X*** 41,51 **** X .SH FILES X /usr/spool/uucp/\s-1LOGFILE\s0 X .SH SEE ALSO X! uucp(1C), uux(1C). X .SH NOTES X Very early releases of \s-1UUCP\s0 used separate log files X for each of the \s-1UUCP\s0 utilities; X! .I uulog X was used to merge the individual logs into a master file. X This capability has not been necessary for some time and is X no longer supported. X--- 41,51 ---- X .SH FILES X /usr/spool/uucp/\s-1LOGFILE\s0 X .SH SEE ALSO X! uucp(1), uux(1). X .SH NOTES X Very early releases of \s-1UUCP\s0 used separate log files X for each of the \s-1UUCP\s0 utilities; X! .B uulog X was used to merge the individual logs into a master file. X This capability has not been necessary for some time and is X no longer supported. X*************** X*** 52,57 **** X .SH BUGS X \s-1UUCP\s0's recording of which user issued a request is unreliable. X .PP X! .I Uulog X is little more than an overspecialized version of X! .IR grep (1). X--- 52,57 ---- X .SH BUGS X \s-1UUCP\s0's recording of which user issued a request is unreliable. X .PP X! .B uulog X is little more than an overspecialized version of X! .BR grep (1). X*** ./usr/src/man/man1/rcp.1.old Mon Sep 28 09:28:14 2026 X--- ./usr/src/man/man1/rcp.1 Mon Sep 28 09:30:06 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)rcp.1c 6.4 (Berkeley) 5/12/86 X .\" X! .TH RCP 1C "May 12, 1986" X .UC 5 X .SH NAME X rcp \- remote file copy X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)rcp.1 6.5 (2.11BSD) 2026/9/28 X .\" X! .TH RCP 1 "May 12, 1986" X .UC 5 X .SH NAME X rcp \- remote file copy X*************** X*** 21,27 **** X .B \-r X ] file ... directory X .SH DESCRIPTION X! .I Rcp X copies files between machines. Each X .I file X or X--- 21,27 ---- X .B \-r X ] file ... directory X .SH DESCRIPTION X! .B rcp X copies files between machines. Each X .I file X or X*************** X*** 34,40 **** X .B \-r X option X is specified and any of the source files are directories, X! .I rcp X copies each subtree rooted at that name; in this case X the destination must be a directory. X .PP X--- 34,40 ---- X .B \-r X option X is specified and any of the source files are directories, X! .B rcp X copies each subtree rooted at that name; in this case X the destination must be a directory. X .PP X*************** X*** 47,53 **** X The X .B \-p X option causes X! .I rcp X to attempt to preserve (duplicate) in its copies the modification X times and modes of the source files, ignoring the X .IR umask . X--- 47,53 ---- X The X .B \-p X option causes X! .B rcp X to attempt to preserve (duplicate) in its copies the modification X times and modes of the source files, ignoring the X .IR umask . X*************** X*** 62,75 **** X on a remote host may be quoted (using \e, ", or \(aa) X so that the metacharacters are interpreted remotely. X .PP X! .I Rcp X does not prompt for passwords; your current local user name X must exist on X .I rhost X and allow remote command execution via X! .IR rsh (1C). X .PP X! .I Rcp X handles third party copies, where neither source nor target files X are on the current machine. X Hostnames may also take the form ``rname@rhost'' to use X--- 62,75 ---- X on a remote host may be quoted (using \e, ", or \(aa) X so that the metacharacters are interpreted remotely. X .PP X! .B rcp X does not prompt for passwords; your current local user name X must exist on X .I rhost X and allow remote command execution via X! .BR rsh (1). X .PP X! .B rcp X handles third party copies, where neither source nor target files X are on the current machine. X Hostnames may also take the form ``rname@rhost'' to use X*************** X*** 78,89 **** X The destination hostname may also take the form ``rhost.rname'' to X support destination machines that are running 4.2BSD X versions of X! .I rcp. X .SH SEE ALSO X! cp(1), ftp(1C), rsh(1C), rlogin(1C) X .SH BUGS X Doesn't detect all cases where the target of a copy might X be a file in cases where only a directory should be legal. X! .br X Is confused by any output generated by commands in a X \&.login, \&.profile, or \&.cshrc file on the remote host. X--- 78,89 ---- X The destination hostname may also take the form ``rhost.rname'' to X support destination machines that are running 4.2BSD X versions of X! .B rcp. X .SH SEE ALSO X! cp(1), ftp(1), rsh(1), rlogin(1) X .SH BUGS X Doesn't detect all cases where the target of a copy might X be a file in cases where only a directory should be legal. X! .sp X Is confused by any output generated by commands in a X \&.login, \&.profile, or \&.cshrc file on the remote host. X*** ./usr/src/man/man1/awk.1.old Sun Dec 14 18:06:18 1986 X--- ./usr/src/man/man1/awk.1 Mon Sep 28 08:21:53 2026 X*************** X*** 97,103 **** X .I printf X statement formats its expression list according to the format X (see X! .IR printf (3S)). X .PP X The built-in function X .I length X--- 97,103 ---- X .I printf X statement formats its expression list according to the format X (see X! .BR printf (3)). X .PP X The built-in function X .I length X*************** X*** 122,128 **** X .IR sprintf(fmt,\ expr,\ expr,\ ...) X formats the expressions X according to the X! .IR printf (3S) X format given by X .I fmt X and returns the resulting string. X--- 122,128 ---- X .IR sprintf(fmt,\ expr,\ expr,\ ...) X formats the expressions X according to the X! .BR printf (3) X format given by X .I fmt X and returns the resulting string. X*** ./usr/src/man/man1/uuencode.1.old Sun Dec 14 18:06:17 1986 X--- ./usr/src/man/man1/uuencode.1 Mon Sep 28 08:25:53 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)uuencode.1c 6.2 (Berkeley) 4/24/86 X .\" X! .TH UUENCODE 1C "April 24, 1986" X .UC 4 X .SH NAME X uuencode, uudecode \- encode/decode a binary file for transmission via mail X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)uuencode.1 6.3 (2.11BSD) 2026/9/28 X .\" X! .TH UUENCODE 1 "April 24, 1986" X .UC 4 X .SH NAME X uuencode, uudecode \- encode/decode a binary file for transmission via mail X*************** X*** 17,32 **** X .B uudecode X [ file ] X .SH DESCRIPTION X! .I Uuencode X and X! .I uudecode X are used to send a binary file via uucp (or other) mail. X This combination can be used over indirect mail links X even when X! .IR uusend (1C) X is not available. X .PP X! .I Uuencode X takes the named source file (default standard input) and X produces an encoded version on the standard output. X The encoding uses only printing ASCII characters, X--- 17,32 ---- X .B uudecode X [ file ] X .SH DESCRIPTION X! .B uuencode X and X! .B uudecode X are used to send a binary file via uucp (or other) mail. X This combination can be used over indirect mail links X even when X! .BR uusend (1) X is not available. X .PP X! .B uuencode X takes the named source file (default standard input) and X produces an encoded version on the standard output. X The encoding uses only printing ASCII characters, X*************** X*** 34,40 **** X .I remotedest X for recreation on the remote system. X .PP X! .I Uudecode X reads an encoded file, X strips off any leading and trailing lines added by mailers, X and recreates the original file with the specified mode and name. X--- 34,40 ---- X .I remotedest X for recreation on the remote system. X .PP X! .B uudecode X reads an encoded file, X strips off any leading and trailing lines added by mailers, X and recreates the original file with the specified mode and name. X*************** X*** 41,60 **** X .PP X The intent is that all mail to the user ``decode'' should be filtered X through the X! .I uudecode X program. This way the file is created automatically X without human intervention. X This is possible on the uucp network by either using X! .I sendmail X or by making X! .I rmail X be a link to X! .I Mail X instead of X! .IR mail . X In each case, an alias must be created in a master file to get X the automatic invocation of X! .IR uudecode . X .PP X If these facilities are not available, the file can be sent to a X user on the remote machine who can uudecode it manually. X--- 41,60 ---- X .PP X The intent is that all mail to the user ``decode'' should be filtered X through the X! .B uudecode X program. This way the file is created automatically X without human intervention. X This is possible on the uucp network by either using X! .B sendmail X or by making X! .B rmail X be a link to X! .B Mail X instead of X! .BR mail . X In each case, an alias must be created in a master file to get X the automatic invocation of X! .BR uudecode . X .PP X If these facilities are not available, the file can be sent to a X user on the remote machine who can uudecode it manually. X*************** X*** 62,74 **** X The encode file has an ordinary text form and can be edited X by any text editor to change the mode or remote name. X .SH SEE ALSO X! atob(n), uusend(1C), uucp(1C), uux(1C), mail(1), uuencode(5) X .SH BUGS X The file is expanded by 35% (3 bytes become 4 plus control information) X causing it to take longer to transmit. X .PP X The user on the remote system who is invoking X! .I uudecode X (often X! .IR uucp ) X must have write permission on the specified file. X--- 62,74 ---- X The encode file has an ordinary text form and can be edited X by any text editor to change the mode or remote name. X .SH SEE ALSO X! atob(n), uusend(1), uucp(1), uux(1), mail(1), uuencode(5) X .SH BUGS X The file is expanded by 35% (3 bytes become 4 plus control information) X causing it to take longer to transmit. X .PP X The user on the remote system who is invoking X! .B uudecode X (often X! .BR uucp ) X must have write permission on the specified file. X*** ./usr/src/man/man1/telnet.1.old Sun Dec 14 18:06:43 1986 X--- ./usr/src/man/man1/telnet.1 Mon Sep 28 08:50:47 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)telnet.1c 6.5 (Berkeley) 5/10/86 X .\" X! .TH TELNET 1C "May 10, 1986" X .UC 5 X .SH NAME X telnet \- user interface to the \s-1TELNET\s0 protocol X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)telnet.1 6.6 (2.11BSD) 2026/9/28 X .\" X! .TH TELNET 1 "May 10, 1986" X .UC 5 X .SH NAME X telnet \- user interface to the \s-1TELNET\s0 protocol X*************** X*** 11,22 **** X .SH SYNOPSIS X telnet [ host [ port ] ] X .SH DESCRIPTION X! .I Telnet X! is used to communicate with another host using the X! .B TELNET X! protocol. X If X! .I telnet X is invoked without arguments, it enters command mode, X indicated by its prompt (\*(lqtelnet>\*(rq). X In this mode, it accepts and executes the commands listed below. X--- 11,20 ---- X .SH SYNOPSIS X telnet [ host [ port ] ] X .SH DESCRIPTION X! .B telnet X! is used to communicate with another host using the TELNET protocol. X If X! .B telnet X is invoked without arguments, it enters command mode, X indicated by its prompt (\*(lqtelnet>\*(rq). X In this mode, it accepts and executes the commands listed below. X*************** X*** 25,31 **** X command (see below) with those arguments. X .PP X Once a connection has been opened, X! .I telnet X enters an input mode. X The input mode entered will be either \*(lqcharacter at a time\*(rq X or \*(lqline by line\*(rq X--- 23,29 ---- X command (see below) with those arguments. X .PP X Once a connection has been opened, X! .B telnet X enters an input mode. X The input mode entered will be either \*(lqcharacter at a time\*(rq X or \*(lqline by line\*(rq X*************** X*** 49,56 **** X .IR intr , X and X .I flush X! characters are trapped locally, and sent as X! .B TELNET X protocol sequences to the remote side. X There are options (see X .B toggle X--- 47,53 ---- X .IR intr , X and X .I flush X! characters are trapped locally, and sent as TELNET X protocol sequences to the remote side. X There are options (see X .B toggle X*************** X*** 60,67 **** X .I autosynch X below) X which cause this action to flush subsequent output to the terminal X! (until the remote host acknowledges the X! .B TELNET X sequence) and flush previous terminal input X (in the case of X .I quit X--- 57,63 ---- X .I autosynch X below) X which cause this action to flush subsequent output to the terminal X! (until the remote host acknowledges the TELNET X sequence) and flush previous terminal input X (in the case of X .I quit X*************** X*** 69,77 **** X .IR intr ). X .PP X While connected to a remote host, X! .I telnet X command mode may be entered by typing the X! .I telnet X \*(lqescape character\*(rq (initially \*(lq^]\*(rq). X When in command mode, the normal terminal editing conventions are available. X .PP X--- 65,73 ---- X .IR intr ). X .PP X While connected to a remote host, X! .B telnet X command mode may be entered by typing the X! .B telnet X \*(lqescape character\*(rq (initially \*(lq^]\*(rq). X When in command mode, the normal terminal editing conventions are available. X .PP X*************** X*** 94,131 **** X If no port number X is specified, X .I telnet X! will attempt to contact a X! .B TELNET X server at the default port. X The host specification may be either a host name (see X! .IR hosts (5)) X or an Internet address specified in the \*(lqdot notation\*(rq (see X! .IR inet (3N)). X .TP X .B close X .br X! Close a X! .B TELNET X session and return to command mode. X .TP X .B quit X .br X! Close any open X! .B TELNET X session and exit X! .IR telnet . X An end of file (in command mode) will also close a session and exit. X .TP X .B z X .br X Suspend X! .IR telnet . X This command only works when the user is using the X! .IR csh (1). X .TP X .B mode \fItype\fP X .br X! .I Type X is either X .I line X (for \*(lqline by line\*(rq mode) X--- 90,124 ---- X If no port number X is specified, X .I telnet X! will attempt to contact a TELNET X server at the default port. X The host specification may be either a host name (see X! .BR hosts (5)) X or an Internet address specified in the \*(lqdot notation\*(rq (see X! .BR inet (3)). X .TP X .B close X .br X! Close a TELNET X session and return to command mode. X .TP X .B quit X .br X! Close any open TELNET X session and exit X! .BR telnet . X An end of file (in command mode) will also close a session and exit. X .TP X .B z X .br X Suspend X! .BR telnet . X This command only works when the user is using the X! .BR csh (1). X .TP X .B mode \fItype\fP X .br X! .I type X is either X .I line X (for \*(lqline by line\*(rq mode) X*************** X*** 139,145 **** X .B status X .br X Show the current status of X! .IR telnet . X This includes the peer one is connected to, as well X as the current mode. X .TP X--- 132,138 ---- X .B status X .br X Show the current status of X! .BR telnet . X This includes the peer one is connected to, as well X as the current mode. X .TP X*************** X*** 154,163 **** X .B ? \fR[\fP \fIcommand\fP \fR]\fP X .br X Get help. With no arguments, X! .I telnet X prints a help summary. X If a command is specified, X! .I telnet X will print the help information for just that command. X .TP X .B send \fIarguments\fP X--- 147,156 ---- X .B ? \fR[\fP \fIcommand\fP \fR]\fP X .br X Get help. With no arguments, X! .B telnet X prints a help summary. X If a command is specified, X! .B telnet X will print the help information for just that command. X .TP X .B send \fIarguments\fP X*************** X*** 186,207 **** X .TP X .I brk X .br X! Sends the X! .B TELNET BRK X (Break) sequence, which may have significance to the remote X system. X .TP X .I ip X .br X! Sends the X! .B TELNET IP X (Interrupt Process) sequence, which should cause the remote X system to abort the currently running process. X .TP X .I ao X .br X! Sends the X! .B TELNET AO X (Abort Output) sequence, which should cause the remote system to flush X all output X .B from X--- 179,197 ---- X .TP X .I brk X .br X! Sends the TELNET BRK X (Break) sequence, which may have significance to the remote X system. X .TP X .I ip X .br X! Sends the TELNET IP X (Interrupt Process) sequence, which should cause the remote X system to abort the currently running process. X .TP X .I ao X .br X! Sends the TELNET AO X (Abort Output) sequence, which should cause the remote system to flush X all output X .B from X*************** X*** 211,225 **** X .TP X .I ayt X .br X! Sends the X! .B TELNET AYT X (Are You There) X sequence, to which the remote system may or may not choose to respond. X .TP X .I ec X .br X! Sends the X! .B TELNET EC X (Erase Character) X sequence, which should cause the remote system to erase the last character X entered. X--- 201,213 ---- X .TP X .I ayt X .br X! Sends the TELNET AYT X (Are You There) X sequence, to which the remote system may or may not choose to respond. X .TP X .I ec X .br X! Sends the TELNET EC X (Erase Character) X sequence, which should cause the remote system to erase the last character X entered. X*************** X*** 226,233 **** X .TP X .I el X .br X! Sends the X! .B TELNET EL X (Erase Line) X sequence, which should cause the remote system to erase the line currently X being entered. X--- 214,220 ---- X .TP X .I el X .br X! Sends the TELNET EL X (Erase Line) X sequence, which should cause the remote system to erase the line currently X being entered. X*************** X*** 234,248 **** X .TP X .I ga X .br X! Sends the X! .B TELNET GA X (Go Ahead) X sequence, which likely has no significance to the remote system. X .TP X .I nop X .br X! Sends the X! .B TELNET NOP X (No OPeration) X sequence. X .TP X--- 221,233 ---- X .TP X .I ga X .br X! Sends the TELNET GA X (Go Ahead) X sequence, which likely has no significance to the remote system. X .TP X .I nop X .br X! Sends the TELNET NOP X (No OPeration) X sequence. X .TP X*************** X*** 256,262 **** X .B set \fIargument value\fP X .br X Set any one of a number of X! .I telnet X variables to a specific value. X The special value \*(lqoff\*(rq turns off the function associated with X the variable. X--- 241,247 ---- X .B set \fIargument value\fP X .br X Set any one of a number of X! .B telnet X variables to a specific value. X The special value \*(lqoff\*(rq turns off the function associated with X the variable. X*************** X*** 276,291 **** X .I escape X .br X This is the X! .I telnet X escape character (initially \*(lq^[\*(rq) which causes entry X into X! .I telnet X command mode (when connected to a remote system). X .TP X .I interrupt X .br X If X! .I telnet X is in X .I localchars X mode (see X--- 261,276 ---- X .I escape X .br X This is the X! .B telnet X escape character (initially \*(lq^[\*(rq) which causes entry X into X! .B telnet X command mode (when connected to a remote system). X .TP X .I interrupt X .br X If X! .B telnet X is in X .I localchars X mode (see X*************** X*** 294,301 **** X below) X and the X .I interrupt X! character is typed, a X! .B TELNET IP X sequence (see X .B send X .I ip X--- 279,285 ---- X below) X and the X .I interrupt X! character is typed, a TELNET IP X sequence (see X .B send X .I ip X*************** X*** 309,315 **** X .I quit X .br X If X! .I telnet X is in X .I localchars X mode (see X--- 293,299 ---- X .I quit X .br X If X! .B telnet X is in X .I localchars X mode (see X*************** X*** 318,325 **** X below) X and the X .I quit X! character is typed, a X! .B TELNET BRK X sequence (see X .B send X .I brk X--- 302,308 ---- X below) X and the X .I quit X! character is typed, a TELNET BRK X sequence (see X .B send X .I brk X*************** X*** 333,339 **** X .I flushoutput X .br X If X! .I telnet X is in X .I localchars X mode (see X--- 316,322 ---- X .I flushoutput X .br X If X! .B telnet X is in X .I localchars X mode (see X*************** X*** 342,349 **** X below) X and the X .I flushoutput X! character is typed, a X! .B TELNET AO X sequence (see X .B send X .I ao X--- 325,331 ---- X below) X and the X .I flushoutput X! character is typed, a TELNET AO X sequence (see X .B send X .I ao X*************** X*** 357,363 **** X .I erase X .br X If X! .I telnet X is in X .I localchars X mode (see X--- 339,345 ---- X .I erase X .br X If X! .B telnet X is in X .I localchars X mode (see X*************** X*** 366,375 **** X below), X .B and X if X! .I telnet X is operating in \*(lqcharacter at a time\*(rq mode, then when this X! character is typed, a X! .B TELNET EC X sequence (see X .B send X .I ec X--- 348,356 ---- X below), X .B and X if X! .B telnet X is operating in \*(lqcharacter at a time\*(rq mode, then when this X! character is typed, a TELNET EC X sequence (see X .B send X .I ec X*************** X*** 383,389 **** X .I kill X .br X If X! .I telnet X is in X .I localchars X mode (see X--- 364,370 ---- X .I kill X .br X If X! .B telnet X is in X .I localchars X mode (see X*************** X*** 392,401 **** X below), X .B and X if X! .I telnet X is operating in \*(lqcharacter at a time\*(rq mode, then when this X! character is typed, a X! .B TELNET EL X sequence (see X .B send X .I el X--- 373,381 ---- X below), X .B and X if X! .B telnet X is operating in \*(lqcharacter at a time\*(rq mode, then when this X! character is typed, a TELNET EL X sequence (see X .B send X .I el X*************** X*** 409,415 **** X .I eof X .br X If X! .I telnet X is operating in \*(lqline by line\*(rq mode, entering this character X as the first character on a line will cause this character to be X sent to the remote system. X--- 389,395 ---- X .I eof X .br X If X! .B telnet X is operating in \*(lqline by line\*(rq mode, entering this character X as the first character on a line will cause this character to be X sent to the remote system. X*************** X*** 425,431 **** X and X FALSE) X various flags that control how X! .I telnet X responds to events. X More than one argument may be specified. X The state of these flags may be interrogated with the X--- 405,411 ---- X and X FALSE) X various flags that control how X! .B telnet X responds to events. X More than one argument may be specified. X The state of these flags may be interrogated with the X*************** X*** 448,454 **** X characters (see X .B set X above) are recognized locally, and transformed into (hopefully) appropriate X! .B TELNET X control sequences X (respectively X .IR ao , X--- 428,434 ---- X characters (see X .B set X above) are recognized locally, and transformed into (hopefully) appropriate X! TELNET X control sequences X (respectively X .IR ao , X*************** X*** 476,498 **** X .IR intr , X or X .I quit X! characters are recognized (and transformed into X! .B TELNET X sequences; see X .B set X above for details), X .I telnet X refuses to display any data on the user's terminal X! until the remote system acknowledges (via a X! .B TELNET X .I Timing Mark X option) X! that it has processed those X! .B TELNET X sequences. X The initial value for this toggle is TRUE if the terminal user had not X done an "stty noflsh", otherwise FALSE (see X! .IR stty(1)). X .TP X .I autosynch X If X--- 456,475 ---- X .IR intr , X or X .I quit X! characters are recognized (and transformed into TELNET X sequences; see X .B set X above for details), X .I telnet X refuses to display any data on the user's terminal X! until the remote system acknowledges (via a TELNET X .I Timing Mark X option) X! that it has processed those TELNET X sequences. X The initial value for this toggle is TRUE if the terminal user had not X done an "stty noflsh", otherwise FALSE (see X! .BR stty (1)). X .TP X .I autosynch X If X*************** X*** 511,526 **** X .I intr X and X .I quit X! characters), the resulting X! .B TELNET X sequence sent is followed by the X! .B TELNET SYNCH X sequence. X! This procedure X! .B should X cause the remote system to begin throwing away all previously X! typed input until both of the X! .B TELNET X sequences have been read and acted upon. X The initial value of this toggle is FALSE. X .TP X--- 488,500 ---- X .I intr X and X .I quit X! characters), the resulting TELNET X sequence sent is followed by the X! TELNET SYNCH X sequence. X! This procedure should X cause the remote system to begin throwing away all previously X! typed input until both of the TELNET X sequences have been read and acted upon. X The initial value of this toggle is FALSE. X .TP X*************** X*** 544,553 **** X .TP X .I options X .br X! Toggles the display of some internal X! .I telnet X! protocol processing (having to do with X! .B TELNET X options). X The initial value for this toggle is FALSE. X .TP X--- 518,525 ---- X .TP X .I options X .br X! Toggles the display of some internal TELNET X! protocol processing (having to do with TELNET X options). X The initial value for this toggle is FALSE. X .TP X*************** X*** 570,580 **** X \*(lqline by line\*(rq mode. X .PP X There is enough settable state to justify a X! .RI . telnetrc X file. X .PP X No capability for a X! .RI . telnetrc X file is provided. X .PP X In \*(lqline by line\*(rq mode, the terminal's X--- 542,552 ---- X \*(lqline by line\*(rq mode. X .PP X There is enough settable state to justify a X! .RB . telnetrc X file. X .PP X No capability for a X! .RB . telnetrc X file is provided. X .PP X In \*(lqline by line\*(rq mode, the terminal's X*** ./usr/src/man/man1/uucp.1.old Tue Oct 22 23:10:30 1996 X--- ./usr/src/man/man1/uucp.1 Mon Sep 28 08:31:41 2026 X*************** X*** 1,4 **** X! .\" @(#)uucp.1 6.3.1 (2.11BSD) 1996/10/22 X .\" X .TH UUCP 1 "April 24, 1986" X .AT 3 X--- 1,4 ---- X! .\" @(#)uucp.1 6.3.2 (2.11BSD) 2026/9/28 X .\" X .TH UUCP 1 "April 24, 1986" X .AT 3 X*************** X*** 18,24 **** X .BI \-x debug X ] source-file.... destination-file X .SH DESCRIPTION X! .I Uucp X copies files named by the source-file arguments X to the destination-file argument. X A file name may be a pathname on your machine, or may X--- 18,24 ---- X .BI \-x debug X ] source-file.... destination-file X .SH DESCRIPTION X! .B uucp X copies files named by the source-file arguments X to the destination-file argument. X A file name may be a pathname on your machine, or may X*************** X*** 28,34 **** X .LP X where `system-name' is taken from a list of system names X that X! .I uucp X knows about. X Shell metacharacters ?*[] appearing in the pathname part X will be expanded on the appropriate system. X--- 28,34 ---- X .LP X where `system-name' is taken from a list of system names X that X! .B uucp X knows about. X Shell metacharacters ?*[] appearing in the pathname part X will be expanded on the appropriate system. X*************** X*** 60,78 **** X If a simple X .I ~user X destination is inaccessible to X! .IR uucp , X data is copied to a spool directory and the user X is notified by X .IR mail (1). X .. X .PP X! .I Uucp X preserves execute permissions across the transmission X and gives 0666 read and write permissions (see X! .IR chmod (2)). X .PP X The following options are interpreted by X! .IR uucp . X .TP X .B \-a X Avoid doing a X--- 60,78 ---- X If a simple X .I ~user X destination is inaccessible to X! .BR uucp , X data is copied to a spool directory and the user X is notified by X .IR mail (1). X .. X .PP X! .B uucp X preserves execute permissions across the transmission X and gives 0666 read and write permissions (see X! .BR chmod (2)). X .PP X The following options are interpreted by X! .BR uucp . X .TP X .B \-a X Avoid doing a X*************** X*** 101,107 **** X is a single letter/number; lower ASCII sequence characters X will cause a job to be transmitted earlier during a particular conversation. X Default is `n'. By way of comparison, X! .IR uux (1C) X defaults to `A'; mail is usually sent at `C'. X .TP X .B \-m X--- 101,107 ---- X is a single letter/number; lower ASCII sequence characters X will cause a job to be transmitted earlier during a particular conversation. X Default is `n'. By way of comparison, X! .BR uux (1) X defaults to `A'; mail is usually sent at `C'. X .TP X .B \-m X*************** X*** 127,136 **** X .I debug. X .SH FILES X /usr/spool/uucp - spool directory X! .br X /etc/uucp/* - data and configuration files X .SH SEE ALSO X! uux(1C), mail(1) X .PP X D. A. Nowitz and M. E. Lesk, X .IR "A Dial-Up Network of UNIX Systems" . X--- 127,136 ---- X .I debug. X .SH FILES X /usr/spool/uucp - spool directory X! .sp X /etc/uucp/* - data and configuration files X .SH SEE ALSO X! uux(1), mail(1) X .PP X D. A. Nowitz and M. E. Lesk, X .IR "A Dial-Up Network of UNIX Systems" . X*************** X*** 148,156 **** X For the same reasons you will probably not be able X to send files to arbitrary pathnames. X .SH BUGS X- .br X All files received by X! .I uucp X will be owned by the uucp administrator (usually UID 5). X .PP X The X--- 148,155 ---- X For the same reasons you will probably not be able X to send files to arbitrary pathnames. X .SH BUGS X All files received by X! .B uucp X will be owned by the uucp administrator (usually UID 5). X .PP X The X*************** X*** 164,170 **** X option.) X .PP X At present X! .I uucp X cannot copy to a system several "hops" away, that is, a command of X the form X .PP X--- 163,169 ---- X option.) X .PP X At present X! .B uucp X cannot copy to a system several "hops" away, that is, a command of X the form X .PP X*************** X*** 173,189 **** X .fi X .PP X is not permitted. Use X! .IR uusend (1C) X instead. X .PP X When invoking X! .I uucp X from X! .IR csh (1), X the `!' character must be prefixed by the `\e' escape to inhibit X! .IR csh 's X history mechanism. (Quotes are not sufficient.) X .PP X! .I Uucp X refuses to copy a file that does not give read access to ``other''; X that is, the file must have at least 0444 modes. X--- 172,188 ---- X .fi X .PP X is not permitted. Use X! .IR uusend (1) X instead. X .PP X When invoking X! .B uucp X from X! .BR csh (1), X the `!' character must be prefixed by the `\e' escape to inhibit X! .BR csh 's X history mechanism. (Quotes are not sufficient.) X .PP X! .B uucp X refuses to copy a file that does not give read access to ``other''; X that is, the file must have at least 0444 modes. X*** ./usr/src/man/man1/rsh.1.old Sun Dec 14 18:06:43 1986 X--- ./usr/src/man/man1/rsh.1 Mon Sep 28 08:54:07 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)rsh.1c 6.1 (Berkeley) 4/29/85 X .\" X! .TH RSH 1C "April 29, 1985" X .UC 5 X .SH NAME X rsh \- remote shell X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)rsh.1 6.2 (2.11BSD) 2026/9/28 X .\" X! .TH RSH 1 "April 29, 1985" X .UC 5 X .SH NAME X rsh \- remote shell X*************** X*** 26,36 **** X .B \-n X ] command X .SH DESCRIPTION X! .I Rsh X connects to the specified X .I host, X and executes the specified \fIcommand\fR. X! .I Rsh X copies its standard input to the remote command, the standard X output of the remote command to its standard output, and the X standard error of the remote command to its standard error. X--- 26,36 ---- X .B \-n X ] command X .SH DESCRIPTION X! .B rsh X connects to the specified X .I host, X and executes the specified \fIcommand\fR. X! .B rsh X copies its standard input to the remote command, the standard X output of the remote command to its standard output, and the X standard error of the remote command to its standard error. X*************** X*** 42,48 **** X .B \-l X option. X This remote name must be equivalent (in the sense of X! .IR rlogin (1C)) X to the originating account; no provision X is made for specifying a password with a command. X .PP X--- 42,48 ---- X .B \-l X option. X This remote name must be equivalent (in the sense of X! .BR rlogin (1)) X to the originating account; no provision X is made for specifying a password with a command. X .PP X*************** X*** 50,56 **** X .I command, X then instead of executing a single command, you will be logged in X on the remote host using X! .IR rlogin (1C). X .PP X Shell metacharacters which are not quoted are interpreted X on local machine, while quoted metacharacters are interpreted on X--- 50,56 ---- X .I command, X then instead of executing a single command, you will be logged in X on the remote host using X! .BR rlogin (1). X .PP X Shell metacharacters which are not quoted are interpreted X on local machine, while quoted metacharacters are interpreted on X*************** X*** 87,98 **** X /usr/hosts/* X .DT X .SH SEE ALSO X! rlogin(1C) X .SH BUGS X If you are using X .IR csh (1) X and put a X! .IR rsh (1C) X in the background without redirecting its input X away from the terminal, it will block even if no reads X are posted by the remote command. If no input is desired X--- 87,98 ---- X /usr/hosts/* X .DT X .SH SEE ALSO X! rlogin(1) X .SH BUGS X If you are using X .IR csh (1) X and put a X! .BR rsh (1) X in the background without redirecting its input X away from the terminal, it will block even if no reads X are posted by the remote command. If no input is desired X*************** X*** 104,114 **** X .PP X You cannot run an interactive command X (like X! .IR rogue (6) X or X! .IR vi (1)); X use X! .IR rlogin (1C). X .PP X Stop signals stop the local \fIrsh\fP process only; this is arguably X wrong, but currently hard to fix for reasons too complicated to X--- 104,114 ---- X .PP X You cannot run an interactive command X (like X! .BR rogue (6) X or X! .BR vi (1)); X use X! .BR rlogin (1). X .PP X Stop signals stop the local \fIrsh\fP process only; this is arguably X wrong, but currently hard to fix for reasons too complicated to X*** ./usr/src/man/man1/tip.1.old Sun Dec 14 18:06:27 1986 X--- ./usr/src/man/man1/tip.1 Mon Sep 28 08:38:04 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)tip.1c 6.3 (Berkeley) 5/5/86 X .\" X! .TH TIP 1C "May 5, 1986" X .UC 4 X .SH NAME X tip, cu \- connect to a remote system X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)tip.1 6.4 (2.11BSD) 2026/9/28 X .\" X! .TH TIP 1 "May 5, 1986" X .UC 4 X .SH NAME X tip, cu \- connect to a remote system X*************** X*** 40,60 **** X .B \-# X ] X .SH DESCRIPTION X! .I Tip X and X! .I cu X establish a full-duplex connection to another machine, X giving the appearance of being logged in directly on the X remote cpu. It goes without saying that you must have a login X on the machine (or equivalent) to which you wish to connect. X The preferred interface is X! .IR tip . X The X! .I cu X interface is included for those people attached to the X ``call UNIX'' command of version 7. This manual page X describes only X! .IR tip . X .PP X Typed characters are normally transmitted directly to the remote X machine (which does the echoing as well). A tilde (`~') appearing X--- 40,60 ---- X .B \-# X ] X .SH DESCRIPTION X! .B tip X and X! .B cu X establish a full-duplex connection to another machine, X giving the appearance of being logged in directly on the X remote cpu. It goes without saying that you must have a login X on the machine (or equivalent) to which you wish to connect. X The preferred interface is X! .bR tip . X The X! .B cu X interface is included for those people attached to the X ``call UNIX'' command of version 7. This manual page X describes only X! .BR tip . X .PP X Typed characters are normally transmitted directly to the remote X machine (which does the echoing as well). A tilde (`~') appearing X*************** X*** 76,87 **** X .TP 10 X .B ~> X Copy file from local to remote. X! .I Tip X prompts for the name of a local file to transmit. X .TP 10 X .B ~< X Copy file from remote to local. X! .I Tip X prompts first for the name of the file to be sent, then for X a command to be executed on the remote machine. X .TP 10 X--- 76,87 ---- X .TP 10 X .B ~> X Copy file from local to remote. X! .B tip X prompts for the name of a local file to transmit. X .TP 10 X .B ~< X Copy file from remote to local. X! .B tip X prompts first for the name of the file to be sent, then for X a command to be executed on the remote machine. X .TP 10 X*************** X*** 88,94 **** X \fB~p\fP \fIfrom\fP [ \fIto\fP ] X Send a file to a remote UNIX host. The put command causes the remote UNIX X system to run the command string ``cat > 'to''', while X! .I tip X sends it the ``from'' X file. If the ``to'' file isn't specified the ``from'' file name is used. X This command is actually a UNIX specific version of the ``~>'' command. X--- 88,94 ---- X \fB~p\fP \fIfrom\fP [ \fIto\fP ] X Send a file to a remote UNIX host. The put command causes the remote UNIX X system to run the command string ``cat > 'to''', while X! .B tip X sends it the ``from'' X file. If the ``to'' file isn't specified the ``from'' file name is used. X This command is actually a UNIX specific version of the ``~>'' command. X*************** X*** 99,105 **** X defaults to the ``from'' file name if it isn't specified. X The remote host X executes the command string ``cat 'from';echo ^A'' to send the file to X! .IR tip . X .TP 10 X .B ~| X Pipe the output from a remote command to a local UNIX process. X--- 99,105 ---- X defaults to the ``from'' file name if it isn't specified. X The remote host X executes the command string ``cat 'from';echo ^A'' to send the file to X! .BR tip . X .TP 10 X .B ~| X Pipe the output from a remote command to a local UNIX process. X*************** X*** 113,119 **** X Send a BREAK to the remote system. X For systems which don't support the X necessary X! .I ioctl X call the break is simulated by a sequence of line speed changes X and DEL characters. X .TP 10 X--- 113,119 ---- X Send a BREAK to the remote system. X For systems which don't support the X necessary X! .B ioctl X call the break is simulated by a sequence of line speed changes X and DEL characters. X .TP 10 X*************** X*** 122,136 **** X .TP 10 X .B ~^Z X Stop X! .I tip X (only available with job control). X .TP 10 X .B ~^Y X Stop only the ``local side'' of X! .I tip X (only available with job control); X the ``remote side'' of X! .IR tip , X the side that displays output from the remote host, is left running. X .TP 10 X .B ~? X--- 122,136 ---- X .TP 10 X .B ~^Z X Stop X! .B tip X (only available with job control). X .TP 10 X .B ~^Y X Stop only the ``local side'' of X! .B tip X (only available with job control); X the ``remote side'' of X! .BR tip , X the side that displays output from the remote host, is left running. X .TP 10 X .B ~? X*************** X*** 137,148 **** X Get a summary of the tilde escapes X .sp X .PP X! .I Tip X uses the file /etc/remote to find how to reach a particular X system and to find out how it should operate while talking X to the system; X refer to X! .IR remote (5) X for a full description. X Each system has a default baud rate with which to X establish a connection. If this value is not suitable, the baud rate X--- 137,148 ---- X Get a summary of the tilde escapes X .sp X .PP X! .B tip X uses the file /etc/remote to find how to reach a particular X system and to find out how it should operate while talking X to the system; X refer to X! .BR remote (5) X for a full description. X Each system has a default baud rate with which to X establish a connection. If this value is not suitable, the baud rate X*************** X*** 149,161 **** X to be used may be specified on the command line, e.g. ``tip -300 mds''. X .PP X When X! .I tip X establishes a connection it sends out a X connection message to the remote system; the default value, if any, X is defined in /etc/remote. X .PP X When X! .I tip X prompts for an argument (e.g. during setup of X a file transfer) the line typed may be edited with the standard X erase and kill characters. A null line in response to a prompt, X--- 149,161 ---- X to be used may be specified on the command line, e.g. ``tip -300 mds''. X .PP X When X! .B tip X establishes a connection it sends out a X connection message to the remote system; the default value, if any, X is defined in /etc/remote. X .PP X When X! .B tip X prompts for an argument (e.g. during setup of X a file transfer) the line typed may be edited with the standard X erase and kill characters. A null line in response to a prompt, X*************** X*** 162,175 **** X or an interrupt, will abort the dialogue and return you to the X remote machine. X .PP X! .I Tip X guards against multiple users connecting to a remote system X by opening modems and terminal lines with exclusive access, X and by honoring the locking protocol used by X! .IR uucp (1C). X .PP X During file transfers X! .I tip X provides a running count of the number of lines transferred. X When using the ~> and ~< commands, the ``eofread'' and ``eofwrite'' X variables are used to recognize end-of-file when reading, and X--- 162,175 ---- X or an interrupt, will abort the dialogue and return you to the X remote machine. X .PP X! .B tip X guards against multiple users connecting to a remote system X by opening modems and terminal lines with exclusive access, X and by honoring the locking protocol used by X! .BR uucp (1). X .PP X During file transfers X! .B tip X provides a running count of the number of lines transferred. X When using the ~> and ~< commands, the ``eofread'' and ``eofwrite'' X variables are used to recognize end-of-file when reading, and X*************** X*** 177,191 **** X normally depend on tandem mode for flow control. If the remote X system does not support tandem mode, ``echocheck'' may be set X to indicate X! .I tip X should synchronize with the remote system on the echo of each X transmitted character. X .PP X When X! .I tip X must dial a phone number to connect to a system it will print X various messages indicating its actions. X! .I Tip X supports the DEC DN-11 and Racal-Vadic 831 auto-call-units; X the DEC DF02 and DF03, Ventel 212+, Racal-Vadic 3451, and X Bizcomp 1031 and 1032 integral call unit/modems. X--- 177,191 ---- X normally depend on tandem mode for flow control. If the remote X system does not support tandem mode, ``echocheck'' may be set X to indicate X! .B tip X should synchronize with the remote system on the echo of each X transmitted character. X .PP X When X! .B tip X must dial a phone number to connect to a system it will print X various messages indicating its actions. X! .B tip X supports the DEC DN-11 and Racal-Vadic 831 auto-call-units; X the DEC DF02 and DF03, Ventel 212+, Racal-Vadic 3451, and X Bizcomp 1031 and 1032 integral call unit/modems. X*************** X*** 193,199 **** X .SM X .B VARIABLES X .PP X! .I Tip X maintains a set of X .I variables X which control its operation. X--- 193,199 ---- X .SM X .B VARIABLES X .PP X! .B tip X maintains a set of X .I variables X which control its operation. X*************** X*** 201,209 **** X to change anything of interest). Variables may be displayed X and set through the ``s'' escape. The syntax for variables is patterned X after X! .IR vi (1) X and X! .IR Mail (1). X Supplying ``all'' X as an argument to the set command displays all variables readable by X the user. Alternatively, the user may request display of a particular X--- 201,209 ---- X to change anything of interest). Variables may be displayed X and set through the ``s'' escape. The syntax for variables is patterned X after X! .BR vi (1) X and X! .BR Mail (1). X Supplying ``all'' X as an argument to the set command displays all variables readable by X the user. Alternatively, the user may request display of a particular X*************** X*** 222,228 **** X in one's home directory). The X .B \-v X option causes X! .I tip X to display the sets as they are made. X Certain common variables have abbreviations. X The following is a list of common variables, X--- 222,228 ---- X in one's home directory). The X .B \-v X option causes X! .B tip X to display the sets as they are made. X Certain common variables have abbreviations. X The following is a list of common variables, X*************** X*** 267,273 **** X .B eol X .br X (str) The set of characters which indicate an end-of-line. X! .I Tip X will recognize escape characters only after an end-of-line. X .TP X .B escape X--- 267,273 ---- X .B eol X .br X (str) The set of characters which indicate an end-of-line. X! .B tip X will recognize escape characters only after an end-of-line. X .TP X .B escape X*************** X*** 318,324 **** X .IR off . X When this mode is enabled, all lower case letters will be mapped to X upper case by X! .I tip X for transmission to the remote machine. X .TP X .B raisechar X--- 318,324 ---- X .IR off . X When this mode is enabled, all lower case letters will be mapped to X upper case by X! .B tip X for transmission to the remote machine. X .TP X .B raisechar X*************** X*** 345,351 **** X .I script X is X .IR true , X! .I tip X will record everything transmitted by the remote machine in X the script record file specified in X .IR record . X--- 345,351 ---- X .I script X is X .IR true , X! .B tip X will record everything transmitted by the remote machine in X the script record file specified in X .IR record . X*************** X*** 373,379 **** X default is X .IR true . X When verbose mode is enabled, X! .I tip X prints messages while dialing, shows the current number X of lines transferred during a file transfer operations, X and more. X--- 373,379 ---- X default is X .IR true . X When verbose mode is enabled, X! .B tip X prints messages while dialing, shows the current number X of lines transferred during a file transfer operations, X and more. X*** ./usr/src/man/man1/spline.1.old Sun Dec 14 18:06:24 1986 X--- ./usr/src/man/man1/spline.1 Mon Sep 28 09:01:23 2026 X*************** X*** 1,6 **** X! .\" @(#)spline.1g 6.1 (Berkeley) 4/29/85 X .\" X! .TH SPLINE 1G "April 29, 1985" X .AT 3 X .SH NAME X spline \- interpolate smooth curve X--- 1,6 ---- X! .\" @(#)spline.1 6.2 (2.11BSD) 2026/9/28 X .\" X! .TH SPLINE 1 "April 29, 1985" X .AT 3 X .SH NAME X spline \- interpolate smooth curve X*************** X*** 8,14 **** X .B spline X [ option ] ... X .SH DESCRIPTION X! .I Spline X takes pairs of numbers from the standard input as abcissas and ordinates X of a function. X It produces a similar set, which X--- 8,14 ---- X .B spline X [ option ] ... X .SH DESCRIPTION X! .B spline X takes pairs of numbers from the standard input as abcissas and ordinates X of a function. X It produces a similar set, which X*************** X*** 23,29 **** X has two continuous derivatives, X and sufficiently many points to look smooth when plotted, for X example by X! .IR graph (1G). X .PP X The following options are recognized, X each as a separate argument. X--- 23,29 ---- X has two continuous derivatives, X and sufficiently many points to look smooth when plotted, for X example by X! .BR graph (1). X .PP X The following options are recognized, X each as a separate argument. X*************** X*** 183,189 **** X Automatic abcissas start at lower limit X (default 0). X .SH "SEE ALSO" X! graph(1G), plot(1G) X .SH DIAGNOSTICS X When data is not strictly monotone in X .I x, X--- 183,189 ---- X Automatic abcissas start at lower limit X (default 0). X .SH "SEE ALSO" X! graph(1), plot(1) X .SH DIAGNOSTICS X When data is not strictly monotone in X .I x, X*** ./usr/src/man/man1/rwho.1.old Sun Dec 14 18:06:43 1986 X--- ./usr/src/man/man1/rwho.1 Mon Sep 28 09:03:48 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)rwho.1c 6.1 (Berkeley) 4/29/85 X .\" X! .TH RWHO 1C "April 29, 1985" X .UC 5 X .SH NAME X rwho \- who's logged in on local machines X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)rwho.1 6.2 (2.11BSD) 2026/9/28 X .\" X! .TH RWHO 1 "April 29, 1985" X .UC 5 X .SH NAME X rwho \- who's logged in on local machines X*************** X*** 15,36 **** X ] X .SH DESCRIPTION X The X! .I rwho X command produces output similar to X! .I who, X but for all machines on the local network. X If no report has been X received from a machine for 5 minutes then X! .I rwho X assumes the machine is down, and does not report users last known X to be logged into that machine. X .PP X If a users hasn't typed to the system for a minute or more, then X! .I rwho X reports this idle time. If a user hasn't typed to the system for X an hour or more, then X the user will be omitted from the output of X! .I rwho X unless the X .B \-a X flag is given. X--- 15,36 ---- X ] X .SH DESCRIPTION X The X! .B rwho X command produces output similar to X! .B who, X but for all machines on the local network. X If no report has been X received from a machine for 5 minutes then X! .B rwho X assumes the machine is down, and does not report users last known X to be logged into that machine. X .PP X If a users hasn't typed to the system for a minute or more, then X! .B rwho X reports this idle time. If a user hasn't typed to the system for X an hour or more, then X the user will be omitted from the output of X! .B rwho X unless the X .B \-a X flag is given. X*************** X*** 37,44 **** X .SH FILES X /usr/spool/rwho/whod.* information about other machines X .SH SEE ALSO X! ruptime(1C), X! rwhod(8C) X .SH BUGS X This is unwieldy when the number of machines X on the local net is large. X--- 37,44 ---- X .SH FILES X /usr/spool/rwho/whod.* information about other machines X .SH SEE ALSO X! ruptime(1), X! rwhod(8) X .SH BUGS X This is unwieldy when the number of machines X on the local net is large. X*** ./usr/src/man/man1/graph.1.old Sun Dec 14 18:06:21 1986 X--- ./usr/src/man/man1/graph.1 Mon Sep 28 09:06:22 2026 X*************** X*** 1,6 **** X! .\" @(#)graph.1g 6.1 (Berkeley) 4/29/85 X .\" X! .TH GRAPH 1G "April 29, 1985" X .AT 3 X .SH NAME X graph \- draw a graph X--- 1,6 ---- X! .\" @(#)graph.1 6.2 (2.11BSD) 2026/9/28 X .\" X! .TH GRAPH 1 "April 29, 1985" X .AT 3 X .SH NAME X graph \- draw a graph X*************** X*** 8,14 **** X .B graph X [ option ] ... X .SH DESCRIPTION X! .I Graph X with no options takes pairs of numbers from the X standard input as abscissas and X ordinates of a graph. X--- 8,14 ---- X .B graph X [ option ] ... X .SH DESCRIPTION X! .B graph X with no options takes pairs of numbers from the X standard input as abscissas and X ordinates of a graph. X*************** X*** 15,21 **** X Successive points are connected by straight lines. X The graph is encoded on the standard output X for display by the X! .IR plot (1G) X filters. X .PP X If the coordinates of a point are followed by X--- 15,21 ---- X Successive points are connected by straight lines. X The graph is encoded on the standard output X for display by the X! .BR plot (1) X filters. X .PP X If the coordinates of a point are followed by X*************** X*** 104,115 **** X the axis X is reversed. X .SH "SEE ALSO" X! spline(1G), plot(1G) X .SH BUGS X! .I Graph X stores all points internally and drops those for which X there isn't room. X! .br X Segments that run out of bounds are dropped, not windowed. X! .br X Logarithmic axes may not be reversed. X--- 104,115 ---- X the axis X is reversed. X .SH "SEE ALSO" X! spline(1), plot(1) X .SH BUGS X! .B graph X stores all points internally and drops those for which X there isn't room. X! .sp X Segments that run out of bounds are dropped, not windowed. X! .sp X Logarithmic axes may not be reversed. X*** ./usr/src/man/man1/ruptime.1.old Sun Dec 14 18:06:43 1986 X--- ./usr/src/man/man1/ruptime.1 Mon Sep 28 09:10:29 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)ruptime.1c 6.1 (Berkeley) 4/29/85 X .\" X! .TH RUPTIME 1C "April 29, 1985" X .UC 5 X .SH NAME X ruptime \- show host status of local machines X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)ruptime.1 6.2 (2.11BSD) 2026/9/28 X .\" X! .TH RUPTIME 1 "April 29, 1985" X .UC 5 X .SH NAME X ruptime \- show host status of local machines X*************** X*** 22,28 **** X .B \-u X ] X .SH DESCRIPTION X! .I Ruptime X gives a status line like X .I uptime X for each machine on the local network; X--- 22,28 ---- X .B \-u X ] X .SH DESCRIPTION X! .B ruptime X gives a status line like X .I uptime X for each machine on the local network; X*************** X*** 53,56 **** X .DT X /usr/spool/rwho/whod.* data files X .SH SEE ALSO X! rwho(1C) X--- 53,56 ---- X .DT X /usr/spool/rwho/whod.* data files X .SH SEE ALSO X! rwho(1) X*** ./usr/src/man/man1/prof.1.old Sun May 24 16:21:44 1987 X--- ./usr/src/man/man1/prof.1 Mon Sep 28 09:34:11 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)prof.1 6.1 (Berkeley) 4/29/85 X .\" X .TH PROF 1 "April 29, 1985" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)prof.1 6.2 (2.11BSD) 2026/9/28 X .\" X .TH PROF 1 "April 29, 1985" X .UC 4 X*************** X*** 28,34 **** X [ a.out X [ mon.out ... ] ] X .SH DESCRIPTION X! .I Prof X interprets the file X produced by the X .I monitor X--- 28,34 ---- X [ a.out X [ mon.out ... ] ] X .SH DESCRIPTION X! .B prof X interprets the file X produced by the X .I monitor X*************** X*** 57,64 **** X option of X .I cc, X .I f77 X- or X- .I pc X must have been given when the file containing the X routine was compiled. X This option also arranges for the X--- 57,62 ---- X*************** X*** 87,93 **** X and a graphic version of the profile X is produced X on the standard output for display by the X! .IR plot (1) X filters. X When plotting, the numbers X .I low X--- 85,91 ---- X and a graphic version of the profile X is produced X on the standard output for display by the X! .BR plot (1) X filters. X When plotting, the numbers X .I low X*************** X*** 108,117 **** X .br X mon.sum for summary profile X .SH "SEE ALSO" X! monitor(3), profil(2), cc(1), plot(1G) X .SH BUGS X Beware of quantization errors. X .PP X Is confused by X! .I f77 X which puts the entry points at the bottom of subroutines and functions. X--- 106,115 ---- X .br X mon.sum for summary profile X .SH "SEE ALSO" X! monitor(3), profil(2), cc(1), plot(1) X .SH BUGS X Beware of quantization errors. X .PP X Is confused by X! .B f77 X which puts the entry points at the bottom of subroutines and functions. X*** ./usr/src/man/man1/plot.1.old Sun Dec 14 18:06:22 1986 X--- ./usr/src/man/man1/plot.1 Mon Sep 28 09:37:12 2026 X*************** X*** 1,6 **** X! .\" @(#)plot.1g 6.3 (Berkeley) 9/21/85 X .\" X! .TH PLOT 1G "September 21, 1985" X .AT 3 X .SH NAME X plot \- graphics filters X--- 1,6 ---- X! .\" @(#)plot.1 6.4 (2.11BSD) 2026/9/28 X .\" X! .TH PLOT 1 "September 21, 1985" X .AT 3 X .SH NAME X plot \- graphics filters X*************** X*** 14,20 **** X [ files... ] X .SH DESCRIPTION X These commands read plotting instructions (see X! .IR plot (5)) X from the standard input or the specified X .IR files , X and in general X--- 14,20 ---- X [ files... ] X .SH DESCRIPTION X These commands read plotting instructions (see X! .BR plot (5)) X from the standard input or the specified X .IR files , X and in general X*************** X*** 31,37 **** X .I terminal X type is specified, the environment parameter $TERM X (see X! .IR environ (7)) X is used. X Known X .I terminals X--- 31,37 ---- X .I terminal X type is specified, the environment parameter $TERM X (see X! .BR environ (7)) X is used. X Known X .I terminals X*************** X*** 64,70 **** X .TP X .B crt X Any crt terminal capable of running X! .IR vi (1). X .TP X .B dumb X Dumb terminals without cursor addressing or line printers. X--- 64,70 ---- X .TP X .B crt X Any crt terminal capable of running X! .BR vi (1). X .TP X .B dumb X Dumb terminals without cursor addressing or line printers. X*************** X*** 82,92 **** X Benson Varian printer-plotter. X .IP X These versions of X! .I plot X use the X .B \-g X option of X! .IR lpr (1) X to send the result directly to the plotter device rather than to X the standard output. X .SH FILES X--- 82,92 ---- X Benson Varian printer-plotter. X .IP X These versions of X! .B plot X use the X .B \-g X option of X! .BR lpr (1) X to send the result directly to the plotter device rather than to X the standard output. X .SH FILES X*************** X*** 116,119 **** X .br X /usr/ucb/lpr X .SH "SEE ALSO" X! plot(3X), plot(3F), plot(5), lpr(1) X--- 116,119 ---- X .br X /usr/ucb/lpr X .SH "SEE ALSO" X! plot(3), plot(3F), plot(5), lpr(1) X*** ./usr/src/man/man1/netstat.1.old Fri Sep 20 14:03:35 2024 X--- ./usr/src/man/man1/netstat.1 Mon Sep 28 09:43:02 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)netstat.1 6.6 (2.11BSD) 2024/9/20 X .\" X .TH NETSTAT 1 "Sep 20, 2024" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)netstat.1 6.7 (2.11BSD) 2026/9/28 X .\" X .TH NETSTAT 1 "Sep 20, 2024" X .UC 5 X*************** X*** 48,54 **** X ] X .SH DESCRIPTION X The X! .I netstat X command symbolically displays the contents of various network-related X data structures. X There are a number of output formats, X--- 48,54 ---- X ] X .SH DESCRIPTION X The X! .B netstat X command symbolically displays the contents of various network-related X data structures. X There are a number of output formats, X*************** X*** 60,66 **** X Using the third form, with an X .I interval X specified, X! .I netstat X will continuously display the information regarding packet X traffic on the configured network interfaces. X .PP X--- 60,66 ---- X Using the third form, with an X .I interval X specified, X! .B netstat X will continuously display the information regarding packet X traffic on the configured network interfaces. X .PP X*************** X*** 96,102 **** X .TP X .B \-n X Show network addresses as numbers (normally X! .I netstat X interprets addresses and attempts to display them X symbolically). X This option may be used with any of the display formats. X--- 96,102 ---- X .TP X .B \-n X Show network addresses as numbers (normally X! .B netstat X interprets addresses and attempts to display them X symbolically). X This option may be used with any of the display formats. X*************** X*** 151,157 **** X For more information regarding X the Internet ``dot format,'' X refer to X! .IR inet (3N). X Unspecified, X or ``wildcard'', addresses and ports appear as ``*''. X .PP X--- 151,157 ---- X For more information regarding X the Internet ``dot format,'' X refer to X! .BR inet (3). X Unspecified, X or ``wildcard'', addresses and ports appear as ``*''. X .PP X*************** X*** 178,184 **** X interface utilized for the route. X .PP X When X! .I netstat X is invoked with an X .I interval X argument, it displays a running count of statistics related to X--- 178,184 ---- X interface utilized for the route. X .PP X When X! .B netstat X is invoked with an X .I interval X argument, it displays a running count of statistics related to X*************** X*** 200,206 **** X networks(5), X protocols(5), X services(5), X! trpt(8C) X .SH BUGS X The notion of errors is ill-defined. Collisions mean X something else for the IMP. X--- 200,206 ---- X networks(5), X protocols(5), X services(5), X! trpt(8) X .SH BUGS X The notion of errors is ill-defined. Collisions mean X something else for the IMP. X*** ./usr/src/man/man1/binmail.1.old Sun Dec 14 18:06:19 1986 X--- ./usr/src/man/man1/binmail.1 Mon Sep 28 09:47:01 2026 X*************** X*** 1,4 **** X! .\" @(#)binmail.1 6.1 (Berkeley) 4/29/85 X .\" X .TH BINMAIL 1 "April 29, 1985" X .AT 3 X--- 1,4 ---- X! .\" @(#)binmail.1 6.2 (2.11BSD) 2026/9/28 X .\" X .TH BINMAIL 1 "April 29, 1985" X .AT 3 X*************** X*** 22,34 **** X .LP X .SH DESCRIPTION X Note: This is the old version 7 UNIX system mail program. The default X! .I mail X command is described in X! .IR Mail (1), X! and its binary is in the directory X! .IR /usr/ucb . X .PP X! .I mail X with no argument prints a user's mail, message-by-message, X in last-in, first-out order; the optional argument X .B + X--- 22,32 ---- X .LP X .SH DESCRIPTION X Note: This is the old version 7 UNIX system mail program. The default X! .B mail X command is described in X! .BR Mail (1). X .PP X! .B mail X with no argument prints a user's mail, message-by-message, X in last-in, first-out order; the optional argument X .B + X*************** X*** 77,93 **** X Print a command summary. X .PP X An interrupt normally terminates the X! .I mail X command; the mail file is unchanged. The optional argument X .B \(mii X tells X! .I mail X to continue after interrupts. X .PP X When X .I persons X are named, X! .I mail X takes the standard input up to an end-of-file (or a line with just `.') X and adds it to each X .I person's X--- 75,91 ---- X Print a command summary. X .PP X An interrupt normally terminates the X! .B mail X command; the mail file is unchanged. The optional argument X .B \(mii X tells X! .B mail X to continue after interrupts. X .PP X When X .I persons X are named, X! .B mail X takes the standard input up to an end-of-file (or a line with just `.') X and adds it to each X .I person's X*************** X*** 95,105 **** X Lines that look like postmarks are prepended with `>'. A X .I person X is usually a user name recognized by X! .IR login (1). X To denote a recipient on a remote system, prefix X .I person X by the system name and exclamation mark (see X! .IR uucp (1C)). X .PP X The X .B \-f X--- 93,103 ---- X Lines that look like postmarks are prepended with `>'. A X .I person X is usually a user name recognized by X! .BR login (1). X To denote a recipient on a remote system, prefix X .I person X by the system name and exclamation mark (see X! .BR uucp (1)). X .PP X The X .B \-f X*************** X*** 123,134 **** X dead.letter unmailable text X .br X .SH "SEE ALSO" X! Mail(1), write(1), uucp(1C), uux(1C), xsend(1), sendmail(8) X .SH BUGS X Race conditions sometimes result in a failure to remove a lock file. X- .PP X- Normally anybody can read your mail, unless it is sent by X- .IR xsend (1). X- An installation can overcome this by making X- .I mail X- a set-user-id command that owns the mail directory. X--- 121,126 ---- X dead.letter unmailable text X .br X .SH "SEE ALSO" X! Mail(1), write(1), uucp(1), uux(1), sendmail(8) X .SH BUGS X Race conditions sometimes result in a failure to remove a lock file. X*** ./usr/src/man/man1/login.1.old Wed Nov 27 23:37:41 1996 X--- ./usr/src/man/man1/login.1 Mon Sep 28 09:52:22 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)login.1 6.2.1 (2.11BSD) 1996/11/27 X .\" X .TH LOGIN 1 "November 27, 1996" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)login.1 6.2.2 (2.11BSD) 2026/9/28 X .\" X .TH LOGIN 1 "November 27, 1996" X .UC 4 X*************** X*** 13,19 **** X [ \-p ] [ username ] X .SH DESCRIPTION X The X! .I login X command X is used when a user initially X signs on, or it may be used at any time to change X--- 13,19 ---- X [ \-p ] [ username ] X .SH DESCRIPTION X The X! .B login X command X is used when a user initially X signs on, or it may be used at any time to change X*************** X*** 23,29 **** X See \*(lqHow to Get Started\*(rq for how to dial up initially. X .PP X If X! .I login X is invoked without an argument, X it asks for a user name, and, if X appropriate, a password. X--- 23,29 ---- X See \*(lqHow to Get Started\*(rq for how to dial up initially. X .PP X If X! .B login X is invoked without an argument, X it asks for a user name, and, if X appropriate, a password. X*************** X*** 40,51 **** X Both are suppressed if he has a \*(lq.hushlogin\*(rq X file in his home directory; this X is mostly used to make life easier for non-human users, such as X! .IR uucp . X .PP X! .I Login X initializes the user and group IDs and the working directory, X then executes a command interpreter (usually X! .IR csh (1)) X according to specifications found in a password file. X Argument 0 of the command interpreter is X the name of the command interpreter with X--- 40,51 ---- X Both are suppressed if he has a \*(lq.hushlogin\*(rq X file in his home directory; this X is mostly used to make life easier for non-human users, such as X! .BR uucp . X .PP X! .B login X initializes the user and group IDs and the working directory, X then executes a command interpreter (usually X! .BR csh (1)) X according to specifications found in a password file. X Argument 0 of the command interpreter is X the name of the command interpreter with X*************** X*** 53,59 **** X .PP X Login also modifies the X environment X! .IR environ (7) X with information specifying home directory, command interpreter, terminal X type (if available) and user name. X The `\-p' argument causes the remainder of the environment to be preserved, X--- 53,59 ---- X .PP X Login also modifies the X environment X! .BR environ (7) X with information specifying home directory, command interpreter, terminal X type (if available) and user name. X The `\-p' argument causes the remainder of the environment to be preserved, X*************** X*** 60,75 **** X otherwise any previous environment is discarded. X .PP X If the file /etc/nologin exists, X! .I login X prints its contents on the user's terminal and exits. This is X used by X! .IR shutdown (8) X to stop users logging in when the system is about to go down. X .PP X Login is recognized by X! .IR sh (1) X and X! .IR csh (1) X and executed directly (without forking). X .SH FILES X .ta \w'/usr/spool/mail/*\ \ 'u X--- 60,75 ---- X otherwise any previous environment is discarded. X .PP X If the file /etc/nologin exists, X! .B login X prints its contents on the user's terminal and exits. This is X used by X! .BR shutdown (8) X to stop users logging in when the system is about to go down. X .PP X Login is recognized by X! .BR sh (1) X and X! .BR csh (1) X and executed directly (without forking). X .SH FILES X .ta \w'/usr/spool/mail/*\ \ 'u X*************** X*** 88,94 **** X \&.hushlogin makes login quieter X .SH "SEE ALSO" X init(8), getty(8), mail(1), passwd(1), passwd(5), environ(7), X! shutdown(8), rlogin(1c) X .SH DIAGNOSTICS X \*(lqLogin incorrect,\*(rq X if the name or the password is bad. X--- 88,94 ---- X \&.hushlogin makes login quieter X .SH "SEE ALSO" X init(8), getty(8), mail(1), passwd(1), passwd(5), environ(7), X! shutdown(8), rlogin(1) X .SH DIAGNOSTICS X \*(lqLogin incorrect,\*(rq X if the name or the password is bad. X*************** X*** 100,110 **** X An undocumented option, X .B \-r X is used by the remote login server, X! .IR rlogind (8C) X to force X! .I login X to enter into an initial connection protocol. X .B \-h is used by X! .IR telnetd (8C) X and other servers to list the host from which X the connection was received. X--- 100,110 ---- X An undocumented option, X .B \-r X is used by the remote login server, X! .BR rlogind (8) X to force X! .B login X to enter into an initial connection protocol. X .B \-h is used by X! .BR telnetd (8) X and other servers to list the host from which X the connection was received. X*** ./usr/src/man/man1/apropos.1.old Sun Dec 14 18:06:33 1986 X--- ./usr/src/man/man1/apropos.1 Mon Sep 28 09:55:30 2026 X*************** X*** 1,4 **** X! .\" @(#)apropos.1 6.4 (Berkeley) 6/5/86 X .\" X .TH APROPOS 1 "June 5, 1986" X .AT 3 X--- 1,4 ---- X! .\" @(#)apropos.1 6.5 (2.11BSD) 2026/9/28 X .\" X .TH APROPOS 1 "June 5, 1986" X .AT 3 X*************** X*** 8,19 **** X .B apropos X keyword ... X .SH DESCRIPTION X! .I Apropos X shows which manual sections contain instances of any of the given X keywords in their title. X Each word is considered separately and case of letters is ignored. X Words which are part of other words are considered; thus, when looking for X! compile, \fIapropos\fP will find all instances of `compiler' also. X Try X .IP X apropos password X--- 8,19 ---- X .B apropos X keyword ... X .SH DESCRIPTION X! .B apropos X shows which manual sections contain instances of any of the given X keywords in their title. X Each word is considered separately and case of letters is ignored. X Words which are part of other words are considered; thus, when looking for X! compile, \fBapropos\fP will find all instances of `compiler' also. X Try X .IP X apropos password X*************** X*** 24,38 **** X .PP X If the line starts `name(section) ...' you can do X `man section name' to get the documentation for it. X! Try `apropos format' and then `man 3s printf' to get the manual X on the subroutine X! .I printf. X .PP X! .I Apropos X is actually just the X .B \-k X option to the X! .IR man (1) X command. X .SH FILES X .DT X--- 24,38 ---- X .PP X If the line starts `name(section) ...' you can do X `man section name' to get the documentation for it. X! Try `apropos format' to get the manual X on the subroutine X! .B printf. X .PP X! .B apropos X is actually just the X .B \-k X option to the X! .BR man (1) X command. X .SH FILES X .DT X*** ./usr/src/man/man1/tn3270.1.old Wed Nov 27 23:44:53 1996 X--- ./usr/src/man/man1/tn3270.1 Mon Sep 28 10:01:10 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)tn3270.1 1.3.1 (2.11BSD) 1996/11/27 X .\" X .TH TN3270 1 "November 27, 1996" X .UC 6 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)tn3270.1 1.3.2 (2.11BSD) 2026/9/28 X .\" X .TH TN3270 1 "November 27, 1996" X .UC 6 X*************** X*** 12,18 **** X .B tn3270 X sysname X .SH DESCRIPTION X! .I Tn3270 X permits a full-screen, full-duplex connection X from a VAX UNIX machine X to an IBM machine running VM/CMS X--- 12,18 ---- X .B tn3270 X sysname X .SH DESCRIPTION X! .B tn3270 X permits a full-screen, full-duplex connection X from a VAX UNIX machine X to an IBM machine running VM/CMS X*************** X*** 21,32 **** X on an IBM 3270 terminal. X Of course you must have an account on the machine X to which you wish to connect in order to log in. X! .I Tn3270 X looks to the user in many respects X like the Yale ASCII Terminal Communication System II. X! .I Tn3270 X is actually a modification of the Arpanet TELNET user interface (see X! .IR telnet (1)) X that interprets and generates raw 3270 control streams. X .PP X Emulation of the 3270 terminal is done in the Unix process. X--- 21,32 ---- X on an IBM 3270 terminal. X Of course you must have an account on the machine X to which you wish to connect in order to log in. X! .B tn3270 X looks to the user in many respects X like the Yale ASCII Terminal Communication System II. X! .B tn3270 X is actually a modification of the Arpanet TELNET user interface (see X! .BR telnet (1)) X that interprets and generates raw 3270 control streams. X .PP X Emulation of the 3270 terminal is done in the Unix process. X*************** X*** 33,41 **** X This emulation involves mapping X 3270-style commands from the host X into appropriate sequences to control the user's terminal screen. X! .I Tn3270 X uses X! .IR curses (3x) X and the X .I /etc/termcap X file to do this. X--- 33,41 ---- X This emulation involves mapping X 3270-style commands from the host X into appropriate sequences to control the user's terminal screen. X! .B tn3270 X uses X! .BR curses (3) X and the X .I /etc/termcap X file to do this. X*************** X*** 45,85 **** X from the ASCII keyboard into appropriate 3270 control strings. X This mapping is terminal dependent and is specified X in a description file, X! .IR /usr/share/misc/map3270 , X (see X! .IR map3270 (5)) X or in an environment variable X! .I MAP3270 X (see X! .IR mset (1)). X Any special function keys on the ASCII keyboard are used whenever possible. X If an entry for the user's terminal X is not found, X! .I tn3270 X looks for an entry for the terminal type X .B unknown. X If this is not found, X! .I tn3270 X uses a default keyboard mapping X (see X! .IR map3270 (5)). X .PP X The first character of each special keyboard mapping sequence X is either an ASCII escape (ESC), X a control character, or an ASCII delete (DEL). X If the user types an unrecognized function key sequence, X! .I tn3270 X sends an ASCII bell (BEL), or a visual bell if X defined in the user's termcap entry, to the user's terminal X and nothing is sent to the IBM host. X .PP X If X! .I tn3270 X is invoked without specifying a remote host system name, X it enters local command mode, X indicated by the prompt ``tn3270>''. X In this mode, X! .I tn3270 X accepts and executes X the following X commands: X--- 45,85 ---- X from the ASCII keyboard into appropriate 3270 control strings. X This mapping is terminal dependent and is specified X in a description file, X! .BR /usr/share/misc/map3270 , X (see X! .BR map3270 (5)) X or in an environment variable X! .B MAP3270 X (see X! .BR mset (1)). X Any special function keys on the ASCII keyboard are used whenever possible. X If an entry for the user's terminal X is not found, X! .B tn3270 X looks for an entry for the terminal type X .B unknown. X If this is not found, X! .B tn3270 X uses a default keyboard mapping X (see X! .BR map3270 (5)). X .PP X The first character of each special keyboard mapping sequence X is either an ASCII escape (ESC), X a control character, or an ASCII delete (DEL). X If the user types an unrecognized function key sequence, X! .B tn3270 X sends an ASCII bell (BEL), or a visual bell if X defined in the user's termcap entry, to the user's terminal X and nothing is sent to the IBM host. X .PP X If X! .B tn3270 X is invoked without specifying a remote host system name, X it enters local command mode, X indicated by the prompt ``tn3270>''. X In this mode, X! .B tn3270 X accepts and executes X the following X commands: X*************** X*** 95,104 **** X .fi X .sp X Other common X! .I telnet X commands are not available in X! .I tn3270. X! .I Tn3270 X command mode may also be entered, after connecting to a host, by typing X a special escape character X (typically control-C). X--- 95,104 ---- X .fi X .sp X Other common X! .B telnet X commands are not available in X! .B tn3270. X! .B tn3270 X command mode may also be entered, after connecting to a host, by typing X a special escape character X (typically control-C). X*************** X*** 117,123 **** X .SH AUTHOR X Greg Minshall X .SH SEE ALSO X! mset(1), telnet(1), termcap(3x), termcap(5), map3270(5), X \fIYale ASCII Terminal Communication X System II Program Description/Operator's Manual\fR X (IBM SB30-1911) X--- 117,124 ---- X .SH AUTHOR X Greg Minshall X .SH SEE ALSO X! mset(1), telnet(1), termcap(3), termcap(5), map3270(5), X! .sp X \fIYale ASCII Terminal Communication X System II Program Description/Operator's Manual\fR X (IBM SB30-1911) X*** ./usr/src/man/man2/brk.2.old Sun Dec 14 18:06:48 1986 X--- ./usr/src/man/man2/brk.2 Thu Aug 20 08:30:23 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)brk.2 6.3 (Berkeley) 5/22/86 X .\" X .TH BRK 2 "May 22, 1986" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)brk.2 6.4 (2.11BSD) 2026/8/20 X .\" X .TH BRK 2 "May 22, 1986" X .UC 4 X*************** X*** 10,16 **** X brk, sbrk \- change data segment size X .SH SYNOPSIS X .nf X! #include X .PP X .ft B X char *brk(addr) X--- 10,16 ---- X brk, sbrk \- change data segment size X .SH SYNOPSIS X .nf X! #include X .PP X .ft B X char *brk(addr) X*************** X*** 21,27 **** X int incr; X .fi X .SH DESCRIPTION X! .I Brk X sets the system's idea of the lowest data segment X location not used by the program (called the break) X to X--- 21,27 ---- X int incr; X .fi X .SH DESCRIPTION X! .I brk X sets the system's idea of the lowest data segment X location not used by the program (called the break) X to X*************** X*** 71,80 **** X could be set; X \-1 if the program requests more X memory than the system limit. X! .I Sbrk X returns \-1 if the break could not be set. X .SH ERRORS X! .I Sbrk X will fail and no additional memory will be allocated if X one of the following are true: X .TP 15 X--- 71,80 ---- X could be set; X \-1 if the program requests more X memory than the system limit. X! .I sbrk X returns \-1 if the break could not be set. X .SH ERRORS X! .I sbrk X will fail and no additional memory will be allocated if X one of the following are true: X .TP 15 X*** ./usr/src/man/man2/dup.2.old Sun Dec 14 18:06:51 1986 X--- ./usr/src/man/man2/dup.2 Sun Sep 20 18:18:26 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)dup.2 6.3 (Berkeley) 5/13/86 X .\" X .TH DUP 2 "May 13, 1986" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)dup.2 6.4 (2.11BSD) 2026/9/20 X .\" X .TH DUP 2 "May 13, 1986" X .UC 4 X*************** X*** 11,43 **** X .SH SYNOPSIS X .nf X .ft B X! newd = dup(oldd) X! int newd, oldd; X! .PP X! .ft B X! dup2(oldd, newd) X! int oldd, newd; X .fi X .SH DESCRIPTION X! .I Dup X! duplicates an existing object descriptor. X! The argument \fIoldd\fP is a small non-negative integer index in X the per-process descriptor table. The value must be less X than the size of the table, which is returned by X! .IR getdtablesize (2). X! The new descriptor returned by the call, X! .I newd, X is the lowest numbered descriptor that is X not currently in use by the process. X .PP X The object referenced by the descriptor does not distinguish X! between references using \fIoldd\fP and \fInewd\fP in any way. X! Thus if \fInewd\fP and \fIoldd\fP are duplicate references to an open X file, X! .IR read (2), X! .IR write (2) X and X! .IR lseek (2) X calls all move a single pointer into the file, X and append mode, non-blocking I/O and asynchronous I/O options X are shared between the references. X--- 11,45 ---- X .SH SYNOPSIS X .nf X .ft B X! #include X! X! int X! dup(\fIint fildes\fP) X! X! int X! dup2(\fIint fildes\fP, \fIint fildes2\fP) X .fi X+ .ft R X .SH DESCRIPTION X! .B dup X! duplicates an existing object descriptor and returns its value to the X! calling process (\fIfildes2\fP = \fBdup\fP(\fIfildes\fP)). X! The argument \fIfildes\fP is a small non-negative integer index in X the per-process descriptor table. The value must be less X than the size of the table, which is returned by X! .BR getdtablesize (2). X! The new descriptor returned by the call X is the lowest numbered descriptor that is X not currently in use by the process. X .PP X The object referenced by the descriptor does not distinguish X! between references using \fIfildes2\fP and \fIfildes\fP in any way. X! Thus if \fIfildes2\fP and \fIfildes\fP are duplicate references to an open X file, X! .BR read (2), X! .BR write (2) X and X! .BR lseek (2) X calls all move a single pointer into the file, X and append mode, non-blocking I/O and asynchronous I/O options X are shared between the references. X*************** X*** 44,58 **** X If a separate pointer into the file is desired, a different X object reference to the file must be obtained by issuing an X additional X! .IR open (2) X call. X The close-on-exec flag on the new file descriptor is unset. X .PP X! In the second form of the call, the value of X! .IR newd X! desired is specified. If this descriptor is already X! in use, the descriptor is first deallocated as if a X! .IR close (2) X call had been done first. X .SH "RETURN VALUE X The value \-1 is returned if an error occurs in either call. X--- 46,68 ---- X If a separate pointer into the file is desired, a different X object reference to the file must be obtained by issuing an X additional X! .BR open (2) X call. X The close-on-exec flag on the new file descriptor is unset. X .PP X! In \fBdup2\fP() the value of the new descriptor X! .IR fildes2 X! is specified. If X! .IR fildes X! and X! .IR fildes2 X! are equal then \fBdup2\fP() just returns X! .IR fildes2 ; X! no other changes are made to the existing descriptor. X! Otherwise if descriptor X! .IR fildes2 X! is already in use, it is first deallocated as if a X! .BR close (2) X call had been done first. X .SH "RETURN VALUE X The value \-1 is returned if an error occurs in either call. X*************** X*** 60,82 **** X .I errno X indicates the cause of the error. X .SH "ERRORS X! .I Dup X and X! .I dup2 X! fail if: X .TP 15 X [EBADF] X! \fIOldd\fP or X! \fInewd\fP is not a valid active descriptor X .TP 15 X [EMFILE] X Too many descriptors are active. X .SH "SEE ALSO" X accept(2), X open(2), X close(2), X fcntl(2), X pipe(2), X socket(2), X! socketpair(2), X! getdtablesize(2) X--- 70,99 ---- X .I errno X indicates the cause of the error. X .SH "ERRORS X! .B dup X and X! .B dup2 X! will fail if: X .TP 15 X [EBADF] X! \fIfildes\fP is not an active valid file descriptor X! [EINTR] X! Execution is interrupted by a signal. X .TP 15 X [EMFILE] X Too many descriptors are active. X+ .PP X+ \fBdup2\fP will fail if: X+ .TP 15 X+ [EBADF] X+ \fIfildes2\fP is negative or greater than the maximum allowable X+ number (see \fBgetdtablesize\fP(2)). X .SH "SEE ALSO" X accept(2), X open(2), X close(2), X fcntl(2), X+ getdtablesize(2), X pipe(2), X socket(2), X! socketpair(2) X*** ./usr/src/man/man2/lseek.2.old Sun Dec 14 18:06:51 1986 X--- ./usr/src/man/man2/lseek.2 Fri May 8 07:49:28 2026 X*************** X*** 2,91 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)lseek.2 6.3 (Berkeley) 2/24/86 X .\" X! .TH LSEEK 2 "February 24, 1986" X! .UC 4 X! .SH NAME X! lseek \- move read/write pointer X! .SH SYNOPSIS X! .nf X! .ft B X! #include X! .PP X! .nf X! .ft B X! .ta 1.25i 1.6i 1.8i X! #define L_SET 0 /* set the seek pointer */ X! #define L_INCR 1 /* increment the seek pointer */ X! #define L_XTND 2 /* extend the file size */ X! .PP X! .ft B X! pos = lseek(d, offset, whence) X! off_t pos; X! int d; X! off_t offset; X! int whence; X! .fi X! .ft R X! .SH DESCRIPTION X The descriptor X! .I d X refers to a file or device open for reading and/or writing. X! .I Lseek X sets the file pointer of X! .I d X as follows: X! .IP X If X! .I whence X! is L_SET, the pointer is set to X! .I offset X! bytes. X! .IP X If X! .I whence X! is L_INCR, the pointer is set to its current location plus X! .IR offset . X! .IP X If X! .I whence X! is L_XTND, the pointer is set to the size of the X file plus X! .IR offset . X! .PP X! Upon successful completion, the resulting pointer location X as measured in bytes from beginning of the file is returned. X Some devices are incapable of seeking. The value of the pointer X associated with such a device is undefined. X! .SH NOTES X Seeking far beyond the end of a file, then writing, X creates a gap or \*(lqhole\*(rq, which occupies no X physical space and reads as zeros. X! .SH "RETURN VALUE X Upon successful completion, X the current file pointer value is returned. X Otherwise, X! a value of \-1 is returned and \fIerrno\fP is set to indicate X the error. X! .SH "ERRORS X! .I Lseek X will fail and the file pointer will remain unchanged if: X! .TP 15 X! [EBADF] X! .I Fildes X is not an open file descriptor. X! .TP 15 X! [ESPIPE] X! .I Fildes X is associated with a pipe or a socket. X! .TP 15 X! [EINVAL] X! .I Whence X is not a proper value. X! .SH "SEE ALSO" X! dup(2), open(2) X! .SH BUGS X This document's use of X! .I whence X! is incorrect English, but maintained for historical reasons. X--- 2,79 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)lseek.2 6.4 (2.11BSD) 2026/5/8 X .\" X! .Dd "May 8, 2026" X! .Dt LSEEK 2 X! .Os X! .Sh NAME X! .Nm lseek X! .Nd reposition read/write offset X! .Sh SYNOPSIS X! .Fd #include X! .Ft off_t X! .Fn lseek "int d" "off_t offset" "int whence" X! .Sh DESCRIPTION X The descriptor X! .Fa d X refers to a file or device open for reading and/or writing. X! .sp X! .Fn lseek X sets the file pointer of X! .Fa d X as follows: X! .sp X If X! .Fa whence X! is SEEK_SET the pointer is set to X! .Fa offset X! .sp X If X! .Fa whence X! is SEEK_CUR the pointer is set to its current location plus X! .Fa offset X! .sp X If X! .Fa whence X! is SEEK_END the pointer is set to the size of the X file plus X! .Fa offset X! .sp X! Upon successful completion the resulting pointer location X as measured in bytes from beginning of the file is returned. X+ .sp X Some devices are incapable of seeking. The value of the pointer X associated with such a device is undefined. X! .Sh NOTES X Seeking far beyond the end of a file, then writing, X creates a gap or \*(lqhole\*(rq, which occupies no X physical space and reads as zeros. X! .Sh "RETURN VALUE X Upon successful completion, X the current file pointer value is returned. X Otherwise, X! a value of \-1 is returned and X! .Va errno X! is set to indicate X the error. X! .Sh "ERRORS X! .Fn lseek X will fail and the file pointer will remain unchanged if: X! .Bl -tag -width [ESPIPE] X! .It Bq Er EBADF X! .Fa d X is not an open file descriptor. X! .It Bq Er ESPIPE X! .Fa d X is associated with a pipe or a socket. X! .It Bq Er EINVAL X! .Fa whence X is not a proper value. X! .Sh "SEE ALSO" X! .Xr dup 2 , X! .Xr open 2 X! .Sh BUGS X This document's use of X! .Fa whence X! is incorrect English but maintained for historical reasons. X*** ./usr/src/man/man2/flock.2.old Sun Dec 14 18:06:58 1986 X--- ./usr/src/man/man2/flock.2 Fri May 8 07:56:08 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)flock.2 6.4 (Berkeley) 5/22/86 X .\" X! .TH FLOCK 2 "May 22, 1986" X .UC 5 X .SH NAME X flock \- apply or remove an advisory lock on an open file X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)flock.2 6.5 (2.11BSD) 2026/5/8 X .\" X! .TH FLOCK 2 "May 8, 2026" X .UC 5 X .SH NAME X flock \- apply or remove an advisory lock on an open file X*************** X*** 11,17 **** X .SH SYNOPSIS X .nf X .ft B X! #include X .PP X .ft B X .DT X--- 11,17 ---- X .SH SYNOPSIS X .nf X .ft B X! #include X .PP X .ft B X .DT X*** ./usr/src/man/man2/access.2.old Sun Dec 14 18:06:48 1986 X--- ./usr/src/man/man2/access.2 Fri May 8 07:57:45 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)access.2 6.5 (Berkeley) 5/22/86 X .\" X! .TH ACCESS 2 "May 22, 1986" X .UC 4 X .SH NAME X access \- determine accessibility of file X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)access.2 6.6 (2.11BSD) 2026/5/8 X .\" X! .TH ACCESS 2 "May 8, 2026" X .UC 4 X .SH NAME X access \- determine accessibility of file X*************** X*** 11,17 **** X .SH SYNOPSIS X .nf X .ft B X! #include X .PP X .ft B X .ta 1.25i 1.6i X--- 11,17 ---- X .SH SYNOPSIS X .nf X .ft B X! #include X .PP X .ft B X .ta 1.25i 1.6i X*** ./usr/src/man/man2/gettimeofday.2.old Sun Dec 14 18:07:07 1986 X--- ./usr/src/man/man2/gettimeofday.2 Tue Jul 21 19:51:13 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)gettimeofday.2 6.7 (Berkeley) 5/14/86 X .\" X! .TH GETTIMEOFDAY 2 "May 14, 1986" X .UC 4 X .SH NAME X gettimeofday, settimeofday \- get/set date and time X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)gettimeofday.2 6.8 (2.11BSD) 2026/7/21 X .\" X! .TH GETTIMEOFDAY 2 "Jul 21, 2026" X .UC 4 X .SH NAME X gettimeofday, settimeofday \- get/set date and time X*************** X*** 51,63 **** X .RS X .DT X struct timeval { X! long tv_sec; /* seconds since Jan. 1, 1970 */ X! long tv_usec; /* and microseconds */ X }; X .sp 1 X struct timezone { X! int tz_minuteswest; /* of Greenwich */ X! int tz_dsttime; /* type of dst correction to apply */ X }; X .RE X .fi X--- 51,63 ---- X .RS X .DT X struct timeval { X! time_t tv_sec; /* seconds since Jan. 1, 1970 */ X! long tv_usec; /* and microseconds */ X }; X .sp 1 X struct timezone { X! int tz_minuteswest; /* of Greenwich */ X! int tz_dsttime; /* type of dst correction to apply */ X }; X .RE X .fi X*** ./usr/src/man/man2/chflags.2.old Mon Mar 24 19:51:40 2025 X--- ./usr/src/man/man2/chflags.2 Thu Apr 2 22:07:45 2026 X*************** X*** 164,170 **** X chflags(1), init(8) X .SH HISTORY X The X! .B chflags X! and X! .B fchflags X! functions first appeared in 4.4BSD. X--- 164,168 ---- X chflags(1), init(8) X .SH HISTORY X The X! .B dmesg X! first appeared in 4.4BSD. X*** ./usr/src/man/man2/intro.2.old Sun Dec 14 18:06:54 1986 X--- ./usr/src/man/man2/intro.2 Mon Sep 28 10:23:01 2026 X*************** X*** 2,11 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)intro.2 6.7 (Berkeley) 5/23/86 X .\" X! .TH INTRO 2 "May 23, 1986" X! .UC 4 X .de en X .HP X \\$1 \\$2 \\$3 X--- 2,11 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)intro.2 6.8 (2.11BSD) 2026/9/4 X .\" X! .TH INTRO 2 "September 4, 2026" X! .UC 2 X .de en X .HP X \\$1 \\$2 \\$3 X*************** X*** 75,81 **** X unit number is selected X or a disk pack is not loaded on a drive. X .en 7 E2BIG "Arg list too long X! An argument list longer than 20480 bytes (or the current limit, NCARGS in X .IR ) X is presented to X .IR execve . X--- 75,81 ---- X unit number is selected X or a disk pack is not loaded on a drive. X .en 7 E2BIG "Arg list too long X! An argument list longer than 5120 bytes (NCARGS in X .IR ) X is presented to X .IR execve . X*************** X*** 163,174 **** X .I opens X can be accepted. X .en 24 EMFILE "Too many open files X! As released, the limit on the number of X! open files per process is 64. X! .IR Getdtablesize (2) X will obtain the current limit. X- Customary configuration limit on most other UNIX systems X- is 20 per process. X .en 25 ENOTTY "Inappropriate ioctl for device X The file mentioned in an X .I ioctl X--- 163,172 ---- X .I opens X can be accepted. X .en 24 EMFILE "Too many open files X! As released the limit on the number of X! open files per process is 30. X! .IR getdtablesize (2) X will obtain the current limit. X .en 25 ENOTTY "Inappropriate ioctl for device X The file mentioned in an X .I ioctl X*************** X*** 211,220 **** X This condition normally generates a signal; X the error is returned if the signal is caught or ignored. X .en 33 EDOM "Argument too large X! The argument of a function in the math package (3M) X is out of the domain of the function. X .en 34 ERANGE "Result too large X! The value of a function in the math package (3M) X is unrepresentable within machine precision. X .en 35 EWOULDBLOCK "Operation would block" X An operation that would cause a process to block was attempted X--- 209,218 ---- X This condition normally generates a signal; X the error is returned if the signal is caught or ignored. X .en 33 EDOM "Argument too large X! The argument of a function in the math package (3) X is out of the domain of the function. X .en 34 ERANGE "Result too large X! The value of a function in the math package (3) X is unrepresentable within machine precision. X .en 35 EWOULDBLOCK "Operation would block" X An operation that would cause a process to block was attempted X*************** X*** 313,320 **** X .en 62 ELOOP "Too many levels of symbolic links" X A path name lookup involved more than 8 symbolic links. X .en 63 ENAMETOOLONG "File name too long" X! A component of a path name exceeded 255 (MAXNAMELEN) characters, or an entire X! path name exceeded 1023 (MAXPATHLEN-1) characters. X .en 64 EHOSTDOWN "Host is down" X A socket operation failed because the destination host was down. X .en 65 EHOSTUNREACH "Host is unreachable" X--- 311,318 ---- X .en 62 ELOOP "Too many levels of symbolic links" X A path name lookup involved more than 8 symbolic links. X .en 63 ENAMETOOLONG "File name too long" X! A component of a path name exceeded 63 (MAXNAMLEN) characters, or an entire X! path name exceeded 255 (MAXPATHLEN-1) characters. X .en 64 EHOSTDOWN "Host is down" X A socket operation failed because the destination host was down. X .en 65 EHOSTUNREACH "Host is unreachable" X*************** X*** 429,435 **** X .TP 5 X File Name X .br X! Names consisting of up to 255 (MAXNAMELEN) characters may be used to name X an ordinary file, special file, or directory. X .IP X These characters may be selected from the set of all ASCII character X--- 427,433 ---- X .TP 5 X File Name X .br X! Names consisting of up to 63 (MAXNAMLEN) characters may be used to name X an ordinary file, special file, or directory. X .IP X These characters may be selected from the set of all ASCII character X*************** X*** 445,451 **** X A path name is a null-terminated character string starting with an X optional slash (/), followed by zero or more directory names separated X by slashes, optionally followed by a file name. X! The total length of a path name must be less than 1024 (MAXPATHLEN) characters. X .IP X If a path name begins with a slash, the path search begins at the X .I root X--- 443,449 ---- X A path name is a null-terminated character string starting with an X optional slash (/), followed by zero or more directory names separated X by slashes, optionally followed by a file name. X! The total length of a path name must be less than 256 (MAXPATHLEN) characters. X .IP X If a path name begins with a slash, the path search begins at the X .I root X*** ./usr/src/man/man2/mount.2.old Fri Jan 26 01:58:28 1996 X--- ./usr/src/man/man2/mount.2 Wed Sep 23 18:56:11 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)mount.2 6.3.1 (2.11BSD) 1996/1/25 X .\" X .TH MOUNT 2 "January 25, 1996" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)mount.2 6.3.2 (2.11BSD) 2026/9/8 X .\" X .TH MOUNT 2 "January 25, 1996" X .UC 4 X*************** X*** 11,26 **** X .SH SYNOPSIS X .nf X .ft B X! mount(special, name, flags) X! char *special, *name; X! int flags; X! .PP X! .ft B X! umount(special) X! char *special; X .fi X .SH DESCRIPTION X! .I Mount X announces to the system that a removable file system has X been mounted on X the block-structured special file X--- 11,27 ---- X .SH SYNOPSIS X .nf X .ft B X! #include X! X! int X! mount(\fIconst char *special\fP, \fIconst char *name\fP, \fIflags\fP) X! X! int X! umount(\fIconst char *special\fP) X! .ft R X .fi X .SH DESCRIPTION X! .B mount X announces to the system that a removable file system has X been mounted on X the block-structured special file X*************** X*** 29,43 **** X .I name X will refer to X the root file on the newly mounted file system. X! .I Special X and X .I name X are pointers to null-terminated strings X containing the appropriate path names. X .PP X! .I Name X must exist already. X! .I Name X must be a directory. X Its old contents X are inaccessible while the file system X--- 30,44 ---- X .I name X will refer to X the root file on the newly mounted file system. X! .I special X and X .I name X are pointers to null-terminated strings X containing the appropriate path names. X .PP X! .I name X must exist already. X! .I name X must be a directory. X Its old contents X are inaccessible while the file system X*************** X*** 64,76 **** X MNT_SYNCHRONOUS X All I/O to the filesystem should be done synchronously. X .PP X! .I Umount X announces to the system that the X .I special X file is no longer to contain a removable file system. X The associated file reverts to its ordinary interpretation. X .SH "RETURN VALUE X! .I Mount X returns 0 if the action occurred, \-1 if X .I special X is inaccessible or not an appropriate file, if X--- 65,83 ---- X MNT_SYNCHRONOUS X All I/O to the filesystem should be done synchronously. X .PP X! The flag MNT_UPDATE indicates that the mount command is being applied to an X! already mounted filesystem. This allows the mount flags to be changed X! without requiring that the filesystem be unmounted and remounted. Some X! filesystems may not allow all flags to be changed. For example, most X! filesystems will not allow a change from read-write to read-only. X! .PP X! .B umount X announces to the system that the X .I special X file is no longer to contain a removable file system. X The associated file reverts to its ordinary interpretation. X .SH "RETURN VALUE X! .B mount X returns 0 if the action occurred, \-1 if X .I special X is inaccessible or not an appropriate file, if X*************** X*** 83,89 **** X there are already too many X file systems mounted. X .PP X! .I Umount X returns 0 if the action occurred; \-1 if X if the special file is inaccessible or X does not have a mounted file system, X--- 90,96 ---- X there are already too many X file systems mounted. X .PP X! .B umount X returns 0 if the action occurred; \-1 if X if the special file is inaccessible or X does not have a mounted file system, X*************** X*** 90,96 **** X or if there are active files in the mounted X file system. X .SH ERRORS X! .I Mount X will fail when one of the following occurs: X .TP 15 X [ENAMETOOLONG] X--- 97,103 ---- X or if there are active files in the mounted X file system. X .SH ERRORS X! .B mount X will fail when one of the following occurs: X .TP 15 X [ENAMETOOLONG] X*************** X*** 110,116 **** X A component of \fIspecial\fP does not exist. X .TP 15 X [ENOTBLK] X! .I Special X is not a block device. X .TP 15 X [ENXIO] X--- 117,123 ---- X A component of \fIspecial\fP does not exist. X .TP 15 X [ENOTBLK] X! .I special X is not a block device. X .TP 15 X [ENXIO] X*************** X*** 147,156 **** X cylinder group information. X .TP 15 X [EFAULT] X! \fISpecial\fP or \fIname\fP points outside the X process's allocated address space. X .PP X! .I Umount X may fail with one of the following errors: X .TP 15 X [ENOTDIR] X--- 154,163 ---- X cylinder group information. X .TP 15 X [EFAULT] X! \fIspecial\fP or \fIname\fP points outside the X process's allocated address space. X .PP X! .I umount X may fail with one of the following errors: X .TP 15 X [ENOTDIR] X*************** X*** 170,180 **** X The caller is not the super-user. X .TP 15 X [ENODEV] X! .I Special X does not exist. X .TP 15 X [ENOTBLK] X! .I Special X is not a block device. X .TP 15 X [ENXIO] X--- 177,187 ---- X The caller is not the super-user. X .TP 15 X [ENODEV] X! .I special X does not exist. X .TP 15 X [ENOTBLK] X! .I special X is not a block device. X .TP 15 X [ENXIO] X*************** X*** 195,201 **** X other cached file system information. X .TP 15 X [EFAULT] X! \fISpecial\fP points outside the process's allocated address space. X .SH "SEE ALSO" X mount(8), umount(8) X .SH BUGS X--- 202,208 ---- X other cached file system information. X .TP 15 X [EFAULT] X! \fIspecial\fP points outside the process's allocated address space. X .SH "SEE ALSO" X mount(8), umount(8) X .SH BUGS X*************** X*** 206,211 **** X errors will occur when access times are updated, X whether or not any X explicit write is attempted. X- .PP X- MNT_SYNCHRONOUS is not currently implemented in the kernel but may be X- specified because the kernel ignores it. X--- 213,215 ---- X*** ./usr/src/man/man2/read.2.old Sun Apr 8 02:09:55 1990 X--- ./usr/src/man/man2/read.2 Thu Sep 24 10:03:27 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)read.2 6.6 (Berkeley) 8/1/87 X .\" X .TH READ 2 "August 1, 1987" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)read.2 6.7 (2.11BSD) 2026/9/17 X .\" X .TH READ 2 "August 1, 1987" X .UC 4 X*************** X*** 11,33 **** X .SH SYNOPSIS X .nf X .ft B X! cc = read(d, buf, nbytes) X! int cc, d; X! char *buf; X! unsigned short nbytes; X! .PP X! .ft B X! #include X! #include X! .PP X! .ft B X! cc = readv(d, iov, iovcnt) X! int cc, d; X! struct iovec *iov; X! int iovcnt; X .fi X .SH DESCRIPTION X! .I Read X attempts to read X .I nbytes X of data from the object referenced by the descriptor X--- 11,27 ---- X .SH SYNOPSIS X .nf X .ft B X! #include X! X! ssize_t X! read(\fIint d\fP, \fIvoid * buf\fP, \fIsize_t nbytes\fP) X! X! ssize_t X! readv(\fIint d\fP, \fIconst struct iovec *iov\fP, \fIint iovcnt\fP) X! .ft R X .fi X .SH DESCRIPTION X! .B read X attempts to read X .I nbytes X of data from the object referenced by the descriptor X*************** X*** 34,40 **** X .I d X into the buffer pointed to by X .IR buf . X! .I Readv X performs the same action, but scatters the input data X into the X .I iovcnt X--- 28,34 ---- X .I d X into the buffer pointed to by X .IR buf . X! .B readv X performs the same action, but scatters the input data X into the X .I iovcnt X*************** X*** 43,49 **** X array: iov[0], iov[1], ..., iov[iovcnt\|\-\|1]. X .PP X For X! .IR readv , X the X .I iovec X structure is defined as X--- 37,43 ---- X array: iov[0], iov[1], ..., iov[iovcnt\|\-\|1]. X .PP X For X! .BR readv , X the X .I iovec X structure is defined as X*************** X*** 62,80 **** X .I iovec X entry specifies the base address and length of an area X in memory where data should be placed. X! .I Readv X will always fill an area completely before proceeding X to the next. X .PP X On objects capable of seeking, the X! .I read X starts at a position X given by the pointer associated with X .IR d X (see X! .IR lseek (2)). X Upon return from X! .IR read , X the pointer is incremented by the number of bytes actually read. X .PP X Objects that are not capable of seeking always read from the current X--- 56,74 ---- X .I iovec X entry specifies the base address and length of an area X in memory where data should be placed. X! .B readv X will always fill an area completely before proceeding X to the next. X .PP X On objects capable of seeking, the X! .B read X starts at a position X given by the pointer associated with X .IR d X (see X! .BR lseek (2)). X Upon return from X! .BR read , X the pointer is incremented by the number of bytes actually read. X .PP X Objects that are not capable of seeking always read from the current X*************** X*** 82,90 **** X object is undefined. X .PP X Upon successful completion, X! .I read X and X! .I readv X return the number of bytes actually read and placed in the buffer. X The system guarantees to read the number of bytes requested if X the descriptor references a normal file that has that many bytes left X--- 76,84 ---- X object is undefined. X .PP X Upon successful completion, X! .B read X and X! .B readv X return the number of bytes actually read and placed in the buffer. X The system guarantees to read the number of bytes requested if X the descriptor references a normal file that has that many bytes left X*************** X*** 99,107 **** X .I errno X is set to indicate the error. X .SH "ERRORS X! .I Read X and X! .I readv X will fail if one or more of the following are true: X .TP 15 X [EBADF] X--- 93,101 ---- X .I errno X is set to indicate the error. X .SH "ERRORS X! .B read X and X! .B readv X will fail if one or more of the following are true: X .TP 15 X [EBADF] X*************** X*** 127,133 **** X and no data were ready to be read. X .PP X In addition, X! .I readv X may return one of the following errors: X .TP 15 X [EINVAL] X--- 121,127 ---- X and no data were ready to be read. X .PP X In addition, X! .B readv X may return one of the following errors: X .TP 15 X [EINVAL] X*** ./usr/src/man/man2/write.2.old Sun Apr 8 02:08:49 1990 X--- ./usr/src/man/man2/write.2 Sun Sep 20 18:20:15 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)write.2 6.5 (Berkeley) 8/1/87 X .\" X .TH WRITE 2 "August 1, 1987" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)write.2 6.6 (2.11BSD) 2026/9/17 X .\" X .TH WRITE 2 "August 1, 1987" X .UC 4 X*************** X*** 11,33 **** X .SH SYNOPSIS X .nf X .ft B X! cc = write(d, buf, nbytes) X! int cc, d; X! char *buf; X! unsigned short nbytes; X! .PP X! .ft B X! #include X! #include X! .PP X! .ft B X! cc = writev(d, iov, iovcnt) X! int cc, d; X! struct iovec *iov; X! int iovcnt; X .fi X .SH DESCRIPTION X! .I Write X attempts to write X .I nbytes X of data to the object referenced by the descriptor X--- 11,27 ---- X .SH SYNOPSIS X .nf X .ft B X! #include X! X! ssize_t X! write(\fIint d\fP, \fIconst void *buf\fP, \fIsize_t nbytes\fP) X! X! ssize_t X! writev(\fIint d\fP, \fIconst struct iovec *iov\fP, \fIint iovcnt\fP) X! .ft R X .fi X .SH DESCRIPTION X! .B write X attempts to write X .I nbytes X of data to the object referenced by the descriptor X*************** X*** 34,40 **** X .I d X from the buffer pointed to by X .IR buf . X! .I Writev X performs the same action, but gathers the output data X from the X .I iovcnt X--- 28,34 ---- X .I d X from the buffer pointed to by X .IR buf . X! .B writev X performs the same action, but gathers the output data X from the X .I iovcnt X*************** X*** 43,49 **** X array: iov[0], iov[1], ..., iov[iovcnt\|\-\|1]. X .PP X For X! .IR writev , X the X .I iovec X structure is defined as X--- 37,43 ---- X array: iov[0], iov[1], ..., iov[iovcnt\|\-\|1]. X .PP X For X! .BR writev , X the X .I iovec X structure is defined as X*************** X*** 62,68 **** X .I iovec X entry specifies the base address and length of an area X in memory from which data should be written. X! .I Writev X will always write a complete area before proceeding X to the next. X .PP X--- 56,62 ---- X .I iovec X entry specifies the base address and length of an area X in memory from which data should be written. X! .B writev X will always write a complete area before proceeding X to the next. X .PP X*************** X*** 70,76 **** X given by the pointer associated with X .IR d , X see X! .IR lseek (2). X Upon return from X .IR write , X the pointer is incremented by the number of bytes actually written. X--- 64,70 ---- X given by the pointer associated with X .IR d , X see X! .BR lseek (2). X Upon return from X .IR write , X the pointer is incremented by the number of bytes actually written. X*************** X*** 80,86 **** X is undefined. X .PP X If the real user is not the super-user, then X! .I write X clears the set-user-id bit on a file. X This prevents penetration of system security X by a user who X--- 74,80 ---- X is undefined. X .PP X If the real user is not the super-user, then X! .B write X clears the set-user-id bit on a file. X This prevents penetration of system security X by a user who X*************** X*** 89,97 **** X .PP X When using non-blocking I/O on objects such as sockets that are subject X to flow control, X! .I write X and X! .I writev X may write fewer bytes than requested; X the return value must be noted, X and the remainder of the operation should be retried when possible. X--- 83,91 ---- X .PP X When using non-blocking I/O on objects such as sockets that are subject X to flow control, X! .B write X and X! .B writev X may write fewer bytes than requested; X the return value must be noted, X and the remainder of the operation should be retried when possible. X*************** X*** 101,109 **** X .I errno X is set to indicate the error. X .SH ERRORS X! .I Write X and X! .I writev X will fail and the file pointer will remain unchanged if one or more X of the following are true: X .TP 15 X--- 95,103 ---- X .I errno X is set to indicate the error. X .SH ERRORS X! .B write X and X! .B writev X will fail and the file pointer will remain unchanged if one or more X of the following are true: X .TP 15 X*************** X*** 147,157 **** X and no data could be written immediately. X .PP X In addition, X! .I writev X may return one of the following errors: X .TP 15 X [EINVAL] X! .I Iovcnt X was less than or equal to 0, or greater than 16. X .TP 15 X [EINVAL] X--- 141,151 ---- X and no data could be written immediately. X .PP X In addition, X! .B writev X may return one of the following errors: X .TP 15 X [EINVAL] X! .I iovcnt X was less than or equal to 0, or greater than 16. X .TP 15 X [EINVAL] X*************** X*** 161,164 **** X .I iov X array overflowed a short. X .SH "SEE ALSO" X! fcntl(2), lseek(2), open(2), pipe(2), select(2) X--- 155,158 ---- X .I iov X array overflowed a short. X .SH "SEE ALSO" X! fcntl(2), lseek(2), open(2), pipe(2) X*** ./usr/src/man/man2/chdir.2.old Thu Apr 21 23:55:28 1994 X--- ./usr/src/man/man2/chdir.2 Sun Sep 20 15:03:04 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)chdir.2 6.3.1 (2.11BSD GTE) 4/21/94 X .\" X .TH CHDIR 2 "April 21, 1994" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)chdir.2 6.3.2 (2.11BSD) 2026/9/20 X .\" X .TH CHDIR 2 "April 21, 1994" X .UC 4 X*************** X*** 11,39 **** X .SH SYNOPSIS X .nf X .ft B X! chdir(path) X! char *path; X X! fchdir(fd) X! int fd; X .ft R X .fi X .SH DESCRIPTION X The X! .B path X argument points to the pathname of a directory. X The X! .B fd X argument is a file descriptor which references a directory. X The X! .I chdir X function causes this directory X to become the current working directory, X the starting point for path names not beginning with ``/''. X .PP X The X! .I fchdir X! function causes the directory referenced by \fBfd\fP to become X the current working directory, the starting point for path searches of X pathnames not beginning with a slahs, '/'. X .PP X--- 11,41 ---- X .SH SYNOPSIS X .nf X .ft B X! #include X X! int X! chdir(\fIchar *path\fP) X! X! int X! fchdir(\fIint fd\fP) X .ft R X .fi X .SH DESCRIPTION X The X! .I path X argument points to the pathname of a directory. X The X! .I fd X argument is a file descriptor which references a directory. X The X! .B chdir X function causes this directory X to become the current working directory, X the starting point for path names not beginning with ``/''. X .PP X The X! .B fchdir X! function causes the directory referenced by \fIfd\fP to become X the current working directory, the starting point for path searches of X pathnames not beginning with a slahs, '/'. X .PP X*************** X*** 44,50 **** X Otherwise, a value of \-1 is returned and \fIerrno\fP is set to indicate X the error. X .SH ERRORS X! .I Chdir X will fail and the current working directory will be unchanged if X one or more of the following are true: X .TP 15 X--- 46,52 ---- X Otherwise, a value of \-1 is returned and \fIerrno\fP is set to indicate X the error. X .SH ERRORS X! .B chdir X will fail and the current working directory will be unchanged if X one or more of the following are true: X .TP 15 X*** ./usr/src/man/man2/chown.2.old Sun Dec 14 18:06:48 1986 X--- ./usr/src/man/man2/chown.2 Sun Sep 20 16:33:56 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)chown.2 6.6 (Berkeley) 5/22/86 X .\" X .TH CHOWN 2 "May 22, 1986" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)chown.2 6.7 (2.11BSD) 2026/9/20 X .\" X .TH CHOWN 2 "May 22, 1986" X .UC 4 X*************** X*** 11,24 **** X .SH SYNOPSIS X .nf X .ft B X! chown(path, owner, group) X! char *path; X! int owner, group; X! .PP X! .ft B X! fchown(fd, owner, group) X! int fd, owner, group; X .fi X .SH DESCRIPTION X The file X that is named by \fIpath\fP or referenced by \fIfd\fP X--- 11,25 ---- X .SH SYNOPSIS X .nf X .ft B X! #include X! X! int X! chown(\fIconst char *path\fP, \fIuid_t owner\fP, \fIgid_t group\fP) X! X! int X! fchown(\fIint fd\fP, \fIuid_t owner\fP, \fIgid_t group\fP) X .fi X+ .ft R X .SH DESCRIPTION X The file X that is named by \fIpath\fP or referenced by \fIfd\fP X*************** X*** 35,50 **** X to a group of which he is a member. X .PP X On some systems, X! .I chown X clears the set-user-id and set-group-id bits X on the file X to prevent accidental creation of X set-user-id and set-group-id programs. X .PP X! .I Fchown X is particularly useful when used in conjunction X with the file locking primitives (see X! .IR flock (2)). X .PP X One of the owner or group id's X may be left unchanged by specifying it as \-1. X--- 36,51 ---- X to a group of which he is a member. X .PP X On some systems, X! .B chown X clears the set-user-id and set-group-id bits X on the file X to prevent accidental creation of X set-user-id and set-group-id programs. X .PP X! .B fchown X is particularly useful when used in conjunction X with the file locking primitives (see X! .BR flock (2)). X .PP X One of the owner or group id's X may be left unchanged by specifying it as \-1. X*************** X*** 59,65 **** X \-1 is returned if an error occurs, with a more specific X error code being placed in the global variable \fIerrno\fP. X .SH "ERRORS X! .I Chown X will fail and the file will be unchanged if: X .TP 15 X [ENOTDIR] X--- 60,66 ---- X \-1 is returned if an error occurs, with a more specific X error code being placed in the global variable \fIerrno\fP. X .SH "ERRORS X! .B chown X will fail and the file will be unchanged if: X .TP 15 X [ENOTDIR] X*************** X*** 88,108 **** X The named file resides on a read-only file system. X .TP 15 X [EFAULT] X! .I Path X points outside the process's allocated address space. X .TP 15 X [EIO] X An I/O error occurred while reading from or writing to the file system. X .PP X! .I Fchown X will fail if: X .TP 15 X [EBADF] X! .I Fd X does not refer to a valid descriptor. X .TP 15 X [EINVAL] X! .I Fd X refers to a socket, not a file. X .TP 15 X [EPERM] X--- 89,109 ---- X The named file resides on a read-only file system. X .TP 15 X [EFAULT] X! .I path X points outside the process's allocated address space. X .TP 15 X [EIO] X An I/O error occurred while reading from or writing to the file system. X .PP X! .B fchown X will fail if: X .TP 15 X [EBADF] X! .I fd X does not refer to a valid descriptor. X .TP 15 X [EINVAL] X! .I fd X refers to a socket, not a file. X .TP 15 X [EPERM] X*** ./usr/src/man/man2/chroot.2.old Sun Dec 14 18:06:58 1986 X--- ./usr/src/man/man2/chroot.2 Sun Sep 20 14:58:12 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)chroot.2 6.3 (Berkeley) 8/26/85 X .\" X .TH CHROOT 2 "August 26, 1985" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)chroot.2 6.4 (2.11BSD) 2026/9/20 X .\" X .TH CHROOT 2 "August 26, 1985" X .UC 5 X*************** X*** 11,24 **** X .SH SYNOPSIS X .nf X .ft B X! chroot(dirname) X! char *dirname; X .ft R X .fi X .SH DESCRIPTION X! .I Dirname X is the address of the pathname of a directory, terminated by a null byte. X! .I Chroot X causes this directory X to become the root directory, X the starting point for path names beginning with ``/''. X--- 11,26 ---- X .SH SYNOPSIS X .nf X .ft B X! #include X! X! int X! chroot(\fIconst char *dirname\fP) X .ft R X .fi X .SH DESCRIPTION X! .I dirname X is the address of the pathname of a directory, terminated by a null byte. X! .B chroot X causes this directory X to become the root directory, X the starting point for path names beginning with ``/''. X*************** X*** 31,37 **** X Upon successful completion, a value of 0 is returned. Otherwise, X a value of \-1 is returned and \fIerrno\fP is set to indicate an error. X .SH ERRORS X! .I Chroot X will fail and the root directory will be unchanged if X one or more of the following are true: X .TP 15 X--- 33,39 ---- X Upon successful completion, a value of 0 is returned. Otherwise, X a value of \-1 is returned and \fIerrno\fP is set to indicate an error. X .SH ERRORS X! .B chroot X will fail and the root directory will be unchanged if X one or more of the following are true: X .TP 15 X*** ./usr/src/man/man2/execve.2.old Sun Dec 14 18:06:50 1986 X--- ./usr/src/man/man2/execve.2 Sun Sep 20 18:17:39 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)execve.2 6.7 (Berkeley) 5/22/86 X .\" X .TH EXECVE 2 "May 22, 1986" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)execve.2 6.8 (2.11BSD) 2026/9/20 X .\" X .TH EXECVE 2 "May 22, 1986" X .UC 4 X*************** X*** 10,21 **** X execve \- execute a file X .SH SYNOPSIS X .ft B X! execve(name, argv, envp) X! .br X! char *name, *argv[], *envp[]; X .fi X .SH DESCRIPTION X! .I Execve X transforms the calling process into a new process. X The new process is constructed from an ordinary file X called the \fInew process file\fP. X--- 10,23 ---- X execve \- execute a file X .SH SYNOPSIS X .ft B X! #include X! .sp X! int X! execve(\fIconst char *name\fP, \fIchar *const argv[]\fP, \fIchar *const envp[]\fP) X .fi X+ .ft R X .SH DESCRIPTION X! .B execve X transforms the calling process into a new process. X The new process is constructed from an ordinary file X called the \fInew process file\fP. X*************** X*** 29,40 **** X .PP X An interpreter file begins with a line of the form ``#! \fIinterpreter\fP''. X When an interpreter file is X! .IR execve\| 'd, X! the system \fIexecve\fP\|'s the specified \fIinterpreter\fP, giving X it the name of the originally exec'd file as an argument and X shifting over the rest of the original arguments. X .PP X! There can be no return from a successful \fIexecve\fP because the calling X core image is lost. X This is the mechanism whereby different process images become active. X .PP X--- 31,42 ---- X .PP X An interpreter file begins with a line of the form ``#! \fIinterpreter\fP''. X When an interpreter file is X! .BR execve\| 'd, X! the system \fBexecve\fP\|'s the specified \fIinterpreter\fP, giving X it the name of the originally exec'd file as an argument and X shifting over the rest of the original arguments. X .PP X! There can be no return from a successful \fBexecve\fP because the calling X core image is lost. X This is the mechanism whereby different process images become active. X .PP X*************** X*** 48,68 **** X The argument \fIenvp\fP is also a null-terminated array of character pointers X to null-terminated strings. These strings pass information to the X new process that is not directly an argument to the command (see X! .IR environ (7)). X .PP X Descriptors open in the calling process remain open in X the new process, except for those for which the close-on-exec X flag is set (see X! .IR close (2)). X Descriptors that remain open are unaffected by X! .IR execve . X .PP X Ignored signals remain ignored across an X! .IR execve , X but signals that are caught are reset to their default values. X Blocked signals remain blocked regardless of changes to the signal action. X The signal stack is reset to be undefined (see X! .IR sigvec (2) X for more information). X .PP X Each process has X--- 50,70 ---- X The argument \fIenvp\fP is also a null-terminated array of character pointers X to null-terminated strings. These strings pass information to the X new process that is not directly an argument to the command (see X! .BR environ (7)). X .PP X Descriptors open in the calling process remain open in X the new process, except for those for which the close-on-exec X flag is set (see X! .BR close (2)). X Descriptors that remain open are unaffected by X! .BR execve . X .PP X Ignored signals remain ignored across an X! .BR execve , X but signals that are caught are reset to their default values. X Blocked signals remain blocked regardless of changes to the signal action. X The signal stack is reset to be undefined (see X! .BR sigvec (2) X for more information). X .PP X Each process has X*************** X*** 74,80 **** X ID identifies the person using the system; the X .I effective X ID determines his access privileges. X! .I Execve X changes the effective user and group ID to X the owner of the executed file if the file has the \*(lqset-user-ID\*(rq X or \*(lqset-group-ID\*(rq modes. The X--- 76,82 ---- X ID identifies the person using the system; the X .I effective X ID determines his access privileges. X! .B execve X changes the effective user and group ID to X the owner of the executed file if the file has the \*(lqset-user-ID\*(rq X or \*(lqset-group-ID\*(rq modes. The X*************** X*** 87,104 **** X .in +5n X .nf X .ta +2i X! process ID see \fIgetpid\fP\|(2) X! parent process ID see \fIgetppid\fP\|(2) X! process group ID see \fIgetpgrp\fP\|(2) X! access groups see \fIgetgroups\fP\|(2) X! working directory see \fIchdir\fP\|(2) X! root directory see \fIchroot\fP\|(2) X! control terminal see \fItty\fP\|(4) X! resource usages see \fIgetrusage\fP\|(2) X! interval timers see \fIgetitimer\fP\|(2) X! resource limits see \fIgetrlimit\fP\|(2) X! file mode mask see \fIumask\fP\|(2) X! signal mask see \fIsigvec\fP\|(2), \fIsigmask\fP\|(2) X .in -5n X .fi X .PP X--- 89,106 ---- X .in +5n X .nf X .ta +2i X! process ID see \fBgetpid\fP\|(2) X! parent process ID see \fBgetppid\fP\|(2) X! process group ID see \fBgetpgrp\fP\|(2) X! access groups see \fBgetgroups\fP\|(2) X! working directory see \fBchdir\fP\|(2) X! root directory see \fBchroot\fP\|(2) X! control terminal see \fBtty\fP\|(4) X! resource usages see \fBgetrusage\fP\|(2) X! interval timers see \fBgetitimer\fP\|(2) X! resource limits see \fBgetrlimit\fP\|(2) X! file mode mask see \fBumask\fP\|(2) X! signal mask see \fBsigvec\fP\|(2), \fBsigmask\fP\|(2) X .in -5n X .fi X .PP X*************** X*** 120,126 **** X is the array of character pointers X to the arguments themselves. X .PP X! .I Envp X is a pointer to an array of strings that constitute X the X .I environment X--- 122,128 ---- X is the array of character pointers X to the arguments themselves. X .PP X! .I envp X is a pointer to an array of strings that constitute X the X .I environment X*************** X*** 129,150 **** X Each string consists of a name, an \*(lq=\*(rq, and a null-terminated value. X The array of pointers is terminated by a null pointer. X The shell X! .IR sh (1) X passes an environment entry for each global shell variable X defined when the program is called. X See X! .IR environ (7) X for some conventionally X used names. X .SH "RETURN VALUE X If X! .I execve X returns to the calling process an error has occurred; the X return value will be \-1 and the global variable X! .I errno X will contain an error code. X .SH ERRORS X! .I Execve X will fail and return to the calling process if one or more X of the following are true: X .TP 15 X--- 131,152 ---- X Each string consists of a name, an \*(lq=\*(rq, and a null-terminated value. X The array of pointers is terminated by a null pointer. X The shell X! .BR sh (1) X passes an environment entry for each global shell variable X defined when the program is called. X See X! .BR environ (7) X for some conventionally X used names. X .SH "RETURN VALUE X If X! .B execve X returns to the calling process an error has occurred; the X return value will be \-1 and the global variable X! .B errno X will contain an error code. X .SH ERRORS X! .B execve X will fail and return to the calling process if one or more X of the following are true: X .TP 15 X*************** X*** 184,197 **** X [ENOMEM] X The new process requires more virtual memory than X is allowed by the imposed maximum X! .RI ( getrlimit (2)). X .TP 15 X [E2BIG] X The number of bytes in the new process's argument list X is larger than the system-imposed limit. X! The limit in the system as released is 20480 bytes X (NCARGS in X! .IR . X .TP 15 X [EFAULT] X The new process file is not as long as indicated by X--- 186,199 ---- X [ENOMEM] X The new process requires more virtual memory than X is allowed by the imposed maximum X! .RB ( getrlimit (2)). X .TP 15 X [E2BIG] X The number of bytes in the new process's argument list X is larger than the system-imposed limit. X! The limit in the system as released is 5120 bytes X (NCARGS in X! .BR . X .TP 15 X [EFAULT] X The new process file is not as long as indicated by X*************** X*** 198,204 **** X the size values in its header. X .TP 15 X [EFAULT] X! \fIPath\fP\|, \fIargv\fP\|, or \fIenvp\fP point X to an illegal address. X .TP 15 X [EIO] X--- 200,206 ---- X the size values in its header. X .TP 15 X [EFAULT] X! \fIpath\fP\|, \fIargv\fP\|, or \fIenvp\fP point X to an illegal address. X .TP 15 X [EIO] X*************** X*** 205,211 **** X An I/O error occurred while reading from the file system. X .SH CAVEATS X If a program is X! .I setuid X to a non-super-user, but is executed when X the real \fIuid\fP is ``root'', then the program has some of the powers X of a super-user as well. X--- 207,213 ---- X An I/O error occurred while reading from the file system. X .SH CAVEATS X If a program is X! .B setuid X to a non-super-user, but is executed when X the real \fIuid\fP is ``root'', then the program has some of the powers X of a super-user as well. X*** ./usr/src/man/man2/fork.2.old Sun Dec 14 18:06:49 1986 X--- ./usr/src/man/man2/fork.2 Sun Sep 20 16:14:23 2026 X*************** X*** 2,21 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)fork.2 6.4 (Berkeley) 5/22/86 X .\" X .TH FORK 2 "May 22, 1986" X! .UC X .SH NAME X fork \- create a new process X .SH SYNOPSIS X .ft B X pid = fork() X- .br X int pid; X .ft R X .SH DESCRIPTION X! .I Fork X causes creation of a new process. X The new process (child process) is an exact copy of the X calling process except for the following: X--- 2,24 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)fork.2 6.5 (2.11BSD) 2026/9/20 X .\" X .TH FORK 2 "May 22, 1986" X! .UC 2 X .SH NAME X fork \- create a new process X .SH SYNOPSIS X+ .nf X .ft B X+ #include X+ X pid = fork() X int pid; X .ft R X+ .fi X .SH DESCRIPTION X! .B fork X causes creation of a new process. X The new process (child process) is an exact copy of the X calling process except for the following: X*************** X*** 44,56 **** X see X .IR setrlimit (2). X .SH "RETURN VALUE X! Upon successful completion, \fIfork\fP returns a value X of 0 to the child process and returns the process ID of the child X process to the parent process. Otherwise, a value of \-1 is returned X to the parent process, no child process is created, and the global X variable \fIerrno\fP is set to indicate the error. X .SH ERRORS X! .I Fork X will fail and no child process will be created if one or more of the X following are true: X .TP 15 X--- 47,59 ---- X see X .IR setrlimit (2). X .SH "RETURN VALUE X! Upon successful completion, \fBfork\fP returns a value X of 0 to the child process and returns the process ID of the child X process to the parent process. Otherwise, a value of \-1 is returned X to the parent process, no child process is created, and the global X variable \fIerrno\fP is set to indicate the error. X .SH ERRORS X! .B fork X will fail and no child process will be created if one or more of the X following are true: X .TP 15 X*** ./usr/src/man/man2/fsync.2.old Sun Dec 14 18:06:58 1986 X--- ./usr/src/man/man2/fsync.2 Wed Sep 23 08:03:29 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)fsync.2 6.4 (Berkeley) 5/22/86 X .\" X .TH FSYNC 2 "May 22, 1986" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)fsync.2 6.5 (2.11BSD) 2026/9/20 X .\" X .TH FSYNC 2 "May 22, 1986" X .UC 5 X*************** X*** 9,27 **** X .SH NAME X fsync \- synchronize a file's in-core state with that on disk X .SH SYNOPSIS X .ft B X! fsync(fd) X! .br X! int fd; X .ft R X .SH DESCRIPTION X! .I Fsync X causes all modified data and attributes of \fIfd\fP X to be moved to a permanent storage device. X This normally results in all in-core modified copies X of buffers for the associated file to be written to a disk. X .PP X! .I Fsync X should be used by programs that require a file to be X in a known state, for example, in building a simple transaction X facility. X--- 9,30 ---- X .SH NAME X fsync \- synchronize a file's in-core state with that on disk X .SH SYNOPSIS X+ .nf X .ft B X! #include X! X! int X! fsync(\fIint fd\fP) X .ft R X+ .fi X .SH DESCRIPTION X! .B fsync X causes all modified data and attributes of \fIfd\fP X to be moved to a permanent storage device. X This normally results in all in-core modified copies X of buffers for the associated file to be written to a disk. X .PP X! .B fsync X should be used by programs that require a file to be X in a known state, for example, in building a simple transaction X facility. X*************** X*** 29,35 **** X A 0 value is returned on success. A \-1 value indicates X an error. X .SH "ERRORS X! The \fIfsync\fP fails if: X .TP 15 X [EBADF] X \fIFd\fP is not a valid descriptor. X--- 32,38 ---- X A 0 value is returned on success. A \-1 value indicates X an error. X .SH "ERRORS X! \fBfsync\fP fails if: X .TP 15 X [EBADF] X \fIFd\fP is not a valid descriptor. X*** ./usr/src/man/man2/getdtablesize.2.old Sun Dec 14 18:06:58 1986 X--- ./usr/src/man/man2/getdtablesize.2 Sun Sep 20 16:34:23 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)getdtablesize.2 6.2 (Berkeley) 6/28/85 X .\" X .TH GETDTABLESIZE 2 "June 28, 1985" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)getdtablesize.2 6.3 (2.11BSD) 2026/9/20 X .\" X .TH GETDTABLESIZE 2 "June 28, 1985" X .UC 5 X*************** X*** 11,25 **** X .SH SYNOPSIS X .nf X .ft B X! nfds = getdtablesize() X! int nfds; X .fi X .SH DESCRIPTION X Each process has a fixed size descriptor table, X which is guaranteed to have at least 20 slots. The entries in X the descriptor table are numbered with small integers starting at 0. X The call X! .I getdtablesize X returns the size of this table. X .SH "SEE ALSO" X close(2), dup(2), open(2), select(2) X--- 11,28 ---- X .SH SYNOPSIS X .nf X .ft B X! #include X! X! int X! getdtablesize(\fIvoid\fP) X .fi X+ .ft R X .SH DESCRIPTION X Each process has a fixed size descriptor table, X which is guaranteed to have at least 20 slots. The entries in X the descriptor table are numbered with small integers starting at 0. X The call X! .B getdtablesize X returns the size of this table. X .SH "SEE ALSO" X close(2), dup(2), open(2), select(2) X*** ./usr/src/man/man2/gethostid.2.old Sun Dec 14 18:07:02 1986 X--- ./usr/src/man/man2/gethostid.2 Sun Sep 20 16:36:17 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)gethostid.2 6.3 (Berkeley) 11/28/85 X .\" X .TH GETHOSTID 2 "November 28, 1985" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)gethostid.2 6.4 (2.11BSD) 2026/9/20 X .\" X .TH GETHOSTID 2 "November 28, 1985" X .UC 5 X*************** X*** 11,25 **** X .SH SYNOPSIS X .nf X .ft B X! hostid = gethostid() X! long hostid; X! .PP X! .ft B X! sethostid(hostid) X! long hostid; X .fi X .SH DESCRIPTION X! .I Sethostid X establishes a 32-bit identifier for the X current processor that is intended to be unique among all X UNIX systems in existence. This is normally a DARPA Internet X--- 11,27 ---- X .SH SYNOPSIS X .nf X .ft B X! #include X! X! long X! gethostid(\fIvoid\fP) X! X! void X! sethostid(\fIlong hostid\fP) X .fi X+ .ft R X .SH DESCRIPTION X! .B sethostid X establishes a 32-bit identifier for the X current processor that is intended to be unique among all X UNIX systems in existence. This is normally a DARPA Internet X*************** X*** 26,32 **** X address for the local machine. This call is allowed only to the X super-user and is normally performed at boot time. X .PP X! .I Gethostid X returns the 32-bit identifier for the current processor. X .SH SEE ALSO X hostid(1), gethostname(2) X--- 28,34 ---- X address for the local machine. This call is allowed only to the X super-user and is normally performed at boot time. X .PP X! .B gethostid X returns the 32-bit identifier for the current processor. X .SH SEE ALSO X hostid(1), gethostname(2) X*** ./usr/src/man/man2/getpid.2.old Sun Dec 14 18:06:51 1986 X--- ./usr/src/man/man2/getpid.2 Sun Sep 20 18:15:16 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)getpid.2 6.3 (Berkeley) 5/13/86 X .\" X .TH GETPID 2 "May 13, 1986" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)getpid.2 6.4 (2.11BSD) 2026/9/20 X .\" X .TH GETPID 2 "May 13, 1986" X .UC 4 X*************** X*** 11,25 **** X .SH SYNOPSIS X .ft B X .nf X! pid = getpid() X! int pid; X .sp X! ppid = getppid() X! int ppid; X .fi X .ft R X .SH DESCRIPTION X! .I Getpid X returns X the process ID of X the current process. X--- 11,27 ---- X .SH SYNOPSIS X .ft B X .nf X! #include X! X! pid_t X! getpid(\fIvoid\fP) X .sp X! pid_t X! getppid(\fIvoid\fP) X .fi X .ft R X .SH DESCRIPTION X! .B getpid X returns X the process ID of X the current process. X*************** X*** 26,33 **** X Most often it is used X to generate uniquely-named temporary files. X .PP X! .I Getppid X returns the process ID of the parent X of the current process. X- .SH "SEE ALSO X- gethostid(2) X--- 28,33 ---- X Most often it is used X to generate uniquely-named temporary files. X .PP X! .B getppid X returns the process ID of the parent X of the current process. X*** ./usr/src/man/man2/gethostname.2.old Sun Dec 14 18:07:02 1986 X--- ./usr/src/man/man2/gethostname.2 Sun Sep 20 18:19:20 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)gethostname.2 6.4 (Berkeley) 5/22/86 X .\" X .TH GETHOSTNAME 2 "May 22, 1986" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)gethostname.2 6.5 (2.11BSD) 2026/9/20 X .\" X .TH GETHOSTNAME 2 "May 22, 1986" X .UC 5 X*************** X*** 11,30 **** X .SH SYNOPSIS X .nf X .ft B X! gethostname(name, namelen) X! char *name; X! int namelen; X! .PP X! .ft B X! sethostname(name, namelen) X! char *name; X! int namelen; X .fi X .SH DESCRIPTION X! .I Gethostname X returns the standard host name for the current processor, as X previously set by X! .IR sethostname . X The parameter X .I namelen X specifies the size of the X--- 11,30 ---- X .SH SYNOPSIS X .nf X .ft B X! #include X! X! int X! gethostname(\fIchar *name\fP, \fIint namelen\fP) X! X! int X! sethostname(\fIchar *name\fP, \fIint namelen\fP) X! .ft R X .fi X .SH DESCRIPTION X! .B gethostname X returns the standard host name for the current processor, as X previously set by X! .BR sethostname . X The parameter X .I namelen X specifies the size of the X*************** X*** 32,38 **** X array. The returned name is null-terminated unless insufficient X space is provided. X .PP X! .I Sethostname X sets the name of the host machine to be X .IR name , X which has length X--- 32,38 ---- X array. The returned name is null-terminated unless insufficient X space is provided. X .PP X! .B sethostname X sets the name of the host machine to be X .IR name , X which has length X*** ./usr/src/man/man2/setpgrp.2.old Sun Dec 14 18:06:54 1986 X--- ./usr/src/man/man2/setpgrp.2 Sun Sep 20 18:15:31 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)setpgrp.2 6.1 (Berkeley) 5/9/85 X .\" X .TH SETPGRP 2 "May 9, 1985" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)setpgrp.2 6.2 (2.11BSD) 2026/9/20 X .\" X .TH SETPGRP 2 "May 9, 1985" X .UC 4 X*************** X*** 10,21 **** X setpgrp \- set process group X .SH SYNOPSIS X .ft B X! setpgrp(pid, pgrp) X! .br X! int pid, pgrp; X .ft R X .SH DESCRIPTION X! .I Setpgrp X sets the process group of the specified process X .I pid X to the specified X--- 10,22 ---- X setpgrp \- set process group X .SH SYNOPSIS X .ft B X! #include X! .sp X! int X! setpgrp(\fIpid_t pid\fP, \fIpid_t pgrp\fP) X .ft R X .SH DESCRIPTION X! .B setpgrp X sets the process group of the specified process X .I pid X to the specified X*************** X*** 28,34 **** X must have the same effective user-id as the invoker or be a descendant X of the invoking process. X .SH "RETURN VALUE X! .I Setpgrp X returns when the operation was successful. If X the request failed, \-1 is returned and the global X variable X--- 29,35 ---- X must have the same effective user-id as the invoker or be a descendant X of the invoking process. X .SH "RETURN VALUE X! .B setpgrp X returns when the operation was successful. If X the request failed, \-1 is returned and the global X variable X*************** X*** 35,41 **** X .I errno X indicates the reason. X .SH ERRORS X! .I Setpgrp X will fail and the process group will not be altered if X one of the following occur: X .TP 15 X--- 36,42 ---- X .I errno X indicates the reason. X .SH ERRORS X! .B setpgrp X will fail and the process group will not be altered if X one of the following occur: X .TP 15 X*** ./usr/src/man/man2/getpagesize.2.old Sun Dec 14 18:07:03 1986 X--- ./usr/src/man/man2/getpagesize.2 Sun Sep 20 16:41:05 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)getpagesize.2 6.1 (Berkeley) 5/15/85 X .\" X .TH GETPAGESIZE 2 "May 15, 1985" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)getpagesize.2 6.2 (2.11BSD) 2026/9/20 X .\" X .TH GETPAGESIZE 2 "May 15, 1985" X .UC 5 X*************** X*** 11,22 **** X .SH SYNOPSIS X .nf X .ft B X! pagesize = getpagesize() X! int pagesize; X .ft R X .fi X .SH DESCRIPTION X! .I Getpagesize X returns the number of bytes in a page. X Page granularity is the granularity of many of the memory X management calls. X--- 11,24 ---- X .SH SYNOPSIS X .nf X .ft B X! #include X! X! int X! getpagesize(\fIvoid\fP) X .ft R X .fi X .SH DESCRIPTION X! .B getpagesize X returns the number of bytes in a page. X Page granularity is the granularity of many of the memory X management calls. X*** ./usr/src/man/man2/getpgrp.2.old Sun Dec 14 18:07:03 1986 X--- ./usr/src/man/man2/getpgrp.2 Sun Sep 20 18:15:56 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)getpgrp.2 6.3 (Berkeley) 8/26/85 X .\" X .TH GETPGRP 2 "August 26, 1985" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)getpgrp.2 6.4 (2.11BSD) 2026/9/20 X .\" X .TH GETPGRP 2 "August 26, 1985" X .UC 5 X*************** X*** 11,24 **** X .SH SYNOPSIS X .ft B X .nf X! pgrp = getpgrp(pid) X! int pgrp; X! int pid; X .fi X .ft R X .SH DESCRIPTION X The process group of the specified process is returned by X! .I getpgrp. X If X .I pid X is zero, then the call applies to the current process. X--- 11,25 ---- X .SH SYNOPSIS X .ft B X .nf X! #include X! X! pid_t X! getpgrp(\fIpid_t pid\fP) X .fi X .ft R X .SH DESCRIPTION X The process group of the specified process is returned by X! .B getpgrp. X If X .I pid X is zero, then the call applies to the current process. X*** ./usr/src/man/man2/pipe.2.old Sun Dec 14 18:06:52 1986 X--- ./usr/src/man/man2/pipe.2 Sun Sep 20 17:39:34 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)pipe.2 6.2 (Berkeley) 8/26/85 X .\" X .TH PIPE 2 "August 26, 1985" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)pipe.2 6.3 (2.11BSD) 2026/9/20 X .\" X .TH PIPE 2 "August 26, 1985" X .UC 4 X*************** X*** 11,23 **** X .SH SYNOPSIS X .nf X .ft B X! pipe(fildes) X! int fildes[2]; X .fi X .ft R X .SH DESCRIPTION X The X! .I pipe X system call X creates an I/O mechanism called a pipe. X The file descriptors returned can X--- 11,25 ---- X .SH SYNOPSIS X .nf X .ft B X! #include X! X! int X! pipe(\fIint fildes[2]\fP) X .fi X .ft R X .SH DESCRIPTION X The X! .B pipe X system call X creates an I/O mechanism called a pipe. X The file descriptors returned can X*************** X*** 35,47 **** X two (or more) X cooperating processes X (created by subsequent X! .I fork X calls) X will pass data through the X pipe with X! .I read X and X! .I write X calls. X .PP X The shell has a syntax X--- 37,49 ---- X two (or more) X cooperating processes X (created by subsequent X! .B fork X calls) X will pass data through the X pipe with X! .B read X and X! .B write X calls. X .PP X The shell has a syntax X*************** X*** 52,61 **** X pipe (no buffered data) with only one end X (all write file descriptors closed) X returns an end-of-file. X- .PP X- Pipes are really a special case of the X- .IR socketpair (2) X- call and, in fact, are implemented as such in the system. X .PP X A signal is generated if a write on a pipe with only one end is attempted. X .SH "RETURN VALUE X--- 54,59 ---- X*** ./usr/src/man/man2/rmdir.2.old Sun Dec 14 18:07:04 1986 X--- ./usr/src/man/man2/rmdir.2 Sun Sep 20 18:39:27 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)rmdir.2 6.3 (Berkeley) 8/26/85 X .\" X .TH RMDIR 2 "August 26, 1985" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)rmdir.2 6.4 (2.11BSD) 2026/9/20 X .\" X .TH RMDIR 2 "August 26, 1985" X .UC 5 X*************** X*** 11,22 **** X .SH SYNOPSIS X .nf X .ft B X! rmdir(path) X! char *path; X .fi X .ft R X .SH DESCRIPTION X! .I Rmdir X removes a directory file X whose name is given by X .I path. X--- 11,24 ---- X .SH SYNOPSIS X .nf X .ft B X! #include X! X! int X! rmdir(\fIconst char *path\fP) X .fi X .ft R X .SH DESCRIPTION X! .B rmdir X removes a directory file X whose name is given by X .I path. X*** ./usr/src/man/man2/vfork.2.old Sun Dec 14 18:06:53 1986 X--- ./usr/src/man/man2/vfork.2 Wed Sep 23 08:00:42 2026 X*************** X*** 2,84 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)vfork.2 6.2 (Berkeley) 6/30/85 X .\" X .TH VFORK 2 "June 30, 1985" X .UC 4 X .SH NAME X! vfork \- spawn new process in a virtual memory efficient way X .SH SYNOPSIS X! .B pid = vfork() X .br X- .B int pid; X .SH DESCRIPTION X! .I Vfork X can be used to create new processes without fully copying the address X! space of the old process, which is horrendously inefficient in a paged X! environment. It is useful when the purpose of X! .IR fork (2) X would have been to create a new system context for an X! .IR execve . X! .I Vfork X differs from X! .I fork X in that the child borrows the parent's memory and thread of X control until a call to X! .IR execve (2) X or an exit (either by a call to X! .IR exit (2) X or abnormally.) X The parent process is suspended while the child is using its resources. X .PP X! .I Vfork X returns 0 in the child's context and (later) the pid of the child in X the parent's context. X .PP X! .I Vfork X can normally be used just like X! .I fork. X It does not work, however, to return while running in the childs context X from the procedure that called X! .I vfork X since the eventual return from X! .I vfork X would then return to a no longer existent stack frame. X Be careful, also, to call X! .I _exit X rather than X! .I exit X if you can't X! .IR execve , X since X! .I exit X will flush and close standard I/O channels, and thereby mess up the X parent processes standard I/O data structures. X! (Even with X! .I fork X it is wrong to call X! .I exit X! since buffered data would then be flushed twice.) X .SH SEE ALSO X fork(2), execve(2), sigvec(2), wait(2), X .SH DIAGNOSTICS X Same as for X! .IR fork . X .SH BUGS X- This system call will be eliminated when proper system sharing X- mechanisms are implemented. X- Users should not depend on the memory X- sharing semantics of X- .I vfork X- as it will, in that case, be made synonymous to X- .IR fork . X- .PP X To avoid a possible deadlock situation, X processes that are children in the middle X of a X! .I vfork X are never sent SIGTTOU or SIGTTIN signals; rather, X output or X! .IR ioctl s X are allowed X and input attempts result in an end-of-file indication. X--- 2,80 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)vfork.2 6.3 (2.11BSD) 2026/9/20 X .\" X .TH VFORK 2 "June 30, 1985" X .UC 4 X .SH NAME X! vfork \- spawn new process in an efficient way X .SH SYNOPSIS X! .nf X! .ft B X! #include X! X! pid_t X! vfork(\fIvoid\fP) X .br X .SH DESCRIPTION X! .B vfork X can be used to create new processes without fully copying the address X! space of the old process. X! It is useful when the purpose of X! .BR fork (2) X would have been to create a new system context for an X! .BR execve . X! .B vfork X differs from X! .B fork X in that the child borrows the parent's memory and thread of X control until a call to X! .BR execve (2) X or an exit (either by a call to X! .BR exit (2) X or abnormally.) X The parent process is suspended while the child is using its resources. X .PP X! .B vfork X returns 0 in the child's context and (later) the pid of the child in X the parent's context. X .PP X! .B vfork X can normally be used just like X! .BR fork . X It does not work, however, to return while running in the childs context X from the procedure that called X! .B vfork X since the eventual return from X! .B vfork X would then return to a no longer existent stack frame. X Be careful, also, to call X! .B _exit X rather than X! .B exit X if you can't X! .BR execve , X since X! .B exit X will flush and close standard I/O channels, and thereby mess up the X parent processes standard I/O data structures. X! Even with X! .B fork X it is wrong to call X! .B exit X! since buffered data would then be flushed twice. X .SH SEE ALSO X fork(2), execve(2), sigvec(2), wait(2), X .SH DIAGNOSTICS X Same as for X! .BR fork . X .SH BUGS X To avoid a possible deadlock situation, X processes that are children in the middle X of a X! .B vfork X are never sent SIGTTOU or SIGTTIN signals; rather, X output or X! .BR ioctl s X are allowed X and input attempts result in an end-of-file indication. X*** ./usr/src/man/man2/truncate.2.old Sun Dec 14 18:07:07 1986 X--- ./usr/src/man/man2/truncate.2 Sun Sep 20 18:55:59 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)truncate.2 6.6 (Berkeley) 3/29/86 X .\" X .TH TRUNCATE 2 "March 29, 1986" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)truncate.2 6.7 (2.11BSD) 2026/9/20 X .\" X .TH TRUNCATE 2 "March 29, 1986" X .UC 5 X*************** X*** 11,27 **** X .SH SYNOPSIS X .nf X .ft B X! truncate(path, length) X! char *path; X! off_t length; X! .PP X! .ft B X! ftruncate(fd, length) X! int fd; X! off_t length; X .fi X .SH DESCRIPTION X! .I Truncate X causes the file named by X .I path X or referenced by X--- 11,27 ---- X .SH SYNOPSIS X .nf X .ft B X! #include X! X! int X! truncate(\fIconst char *path\fP, \fIoff_t length\fP) X! X! int X! ftruncate(\fIint fd\fP, \fIoff_t length\fP) X! .ft R X .fi X .SH DESCRIPTION X! .B truncate X causes the file named by X .I path X or referenced by X*************** X*** 32,38 **** X was larger than this size, the extra data X is lost. X With X! .IR ftruncate , X the file must be open for writing. X .SH "RETURN VALUES X A value of 0 is returned if the call succeeds. If the call X--- 32,38 ---- X was larger than this size, the extra data X is lost. X With X! .BR ftruncate , X the file must be open for writing. X .SH "RETURN VALUES X A value of 0 is returned if the call succeeds. If the call X*************** X*** 39,45 **** X fails a \-1 is returned, and the global variable \fIerrno\fP X specifies the error. X .SH "ERRORS X! .I Truncate X succeeds unless: X .TP 15 X [ENOTDIR] X--- 39,45 ---- X fails a \-1 is returned, and the global variable \fIerrno\fP X specifies the error. X .SH "ERRORS X! .B truncate X succeeds unless: X .TP 15 X [ENOTDIR] X*************** X*** 80,86 **** X .I Path X points outside the process's allocated address space. X .PP X! .I Ftruncate X succeeds unless: X .TP 15 X [EBADF] X--- 80,86 ---- X .I Path X points outside the process's allocated address space. X .PP X! .B ftruncate X succeeds unless: X .TP 15 X [EBADF] X*************** X*** 99,104 **** X is not open for writing. X .SH "SEE ALSO" X open(2) X- .SH BUGS X- These calls should be generalized to allow ranges X- of bytes in a file to be discarded. X--- 99,101 ---- X*** ./usr/src/man/man2/setgroups.2.old Sun Dec 14 18:07:05 1986 X--- ./usr/src/man/man2/setgroups.2 Mon Sep 28 10:25:43 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)setgroups.2 6.3 (Berkeley) 5/13/86 X .\" X .TH SETGROUPS 2 "May 13, 1986" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)setgroups.2 6.4 (2.11BSD) 2026/9/20 X .\" X .TH SETGROUPS 2 "May 13, 1986" X .UC 5 X*************** X*** 12,24 **** X .nf X .ft B X #include X! .PP X! .ft B X! setgroups(ngroups, gidset) X! int ngroups, *gidset; X .fi X .SH DESCRIPTION X! .I Setgroups X sets the group access list of the current user process X according to the array X .IR gidset . X--- 12,24 ---- X .nf X .ft B X #include X! #include X! X! int X! setgroups(\fIint ngroups\fP, \fIconst gid_t *gidset\fP) X .fi X .SH DESCRIPTION X! .B setgroups X sets the group access list of the current user process X according to the array X .IR gidset . X*************** X*** 33,39 **** X A 0 value is returned on success, \-1 on error, with X a error code stored in \fIerrno\fP. X .SH "ERRORS X! The \fIsetgroups\fP call will fail if: X .TP 15 X [EPERM] X The caller is not the super-user. X--- 33,39 ---- X A 0 value is returned on success, \-1 on error, with X a error code stored in \fIerrno\fP. X .SH "ERRORS X! \fBsetgroups\fP will fail if: X .TP 15 X [EPERM] X The caller is not the super-user. X*************** X*** 42,51 **** X The address specified for \fIgidset\fP is outside the process X address space. X .SH "SEE ALSO X! getgroups(2), initgroups(3X) X! .SH BUGS X! The X! .I gidset X! array should be of type X! .BR gid_t , X! but remains integer for compatibility with earlier systems. X--- 42,45 ---- X The address specified for \fIgidset\fP is outside the process X address space. X .SH "SEE ALSO X! getgroups(2), initgroups(3) X*** ./usr/src/man/man2/rename.2.old Sun Dec 14 18:07:05 1986 X--- ./usr/src/man/man2/rename.2 Sun Sep 20 20:16:12 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)rename.2 6.4 (Berkeley) 5/22/86 X .\" X .TH RENAME 2 "May 22, 1986" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)rename.2 6.5 (2.11BSD) 2026/9/20 X .\" X .TH RENAME 2 "May 22, 1986" X .UC 5 X*************** X*** 11,22 **** X .SH SYNOPSIS X .ft B X .nf X! rename(from, to) X! char *from, *to; X .fi X .ft R X .SH DESCRIPTION X! .I Rename X causes the link named X .I from X to be renamed as X--- 11,24 ---- X .SH SYNOPSIS X .ft B X .nf X! #include X! X! int X! rename(\fIchar *from\fP, \fIchar *to\fP) X .fi X .ft R X .SH DESCRIPTION X! .B rename X causes the link named X .I from X to be renamed as X*************** X*** 31,37 **** X must be of the same type (that is, both directories or both X non-directories), and must reside on the same file system. X .PP X! .I Rename X guarantees that an instance of X .I to X will always exist, even if the system should crash in X--- 33,39 ---- X must be of the same type (that is, both directories or both X non-directories), and must reside on the same file system. X .PP X! .B rename X guarantees that an instance of X .I to X will always exist, even if the system should crash in X*************** X*** 63,69 **** X .I errno X indicates the reason for the failure. X .SH "ERRORS X! .I Rename X will fail and neither of the argument files will be X affected if any of the following are true: X .TP 15 X--- 65,71 ---- X .I errno X indicates the reason for the failure. X .SH "ERRORS X! .B rename X will fail and neither of the argument files will be X affected if any of the following are true: X .TP 15 X*** ./usr/src/man/man2/unlink.2.old Sun Dec 14 18:06:53 1986 X--- ./usr/src/man/man2/unlink.2 Sun Sep 20 20:31:47 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)unlink.2 6.2 (Berkeley) 5/22/85 X .\" X .TH UNLINK 2 "May 22, 1985" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)unlink.2 6.3 (2.11BSD) 2026/9/20 X .\" X .TH UNLINK 2 "May 22, 1985" X .UC 4 X*************** X*** 11,22 **** X .SH SYNOPSIS X .nf X .ft B X! unlink(path) X! char *path; X .fi X .ft R X .SH DESCRIPTION X! .I Unlink X removes the entry for the file X .I path X from its directory. X--- 11,24 ---- X .SH SYNOPSIS X .nf X .ft B X! #include X! X! int X! unlink(\fIconst char *path\fP) X .fi X .ft R X .SH DESCRIPTION X! .B unlink X removes the entry for the file X .I path X from its directory. X*************** X*** 32,38 **** X .I errno X is set to indicate the error. X .SH "ERRORS X! The \fIunlink\fP succeeds unless: X .TP 15 X [ENOTDIR] X A component of the path prefix is not a directory. X--- 34,40 ---- X .I errno X is set to indicate the error. X .SH "ERRORS X! \fBunlink\fP succeeds unless: X .TP 15 X [ENOTDIR] X A component of the path prefix is not a directory. X*************** X*** 78,84 **** X The named file resides on a read-only file system. X .TP 15 X [EFAULT] X! .I Path X points outside the process's allocated address space. X .SH "SEE ALSO" X close(2), link(2), rmdir(2) X--- 80,86 ---- X The named file resides on a read-only file system. X .TP 15 X [EFAULT] X! .I path X points outside the process's allocated address space. X .SH "SEE ALSO" X close(2), link(2), rmdir(2) X*** ./usr/src/man/man2/reboot.2.old Fri Sep 20 14:01:51 2024 X--- ./usr/src/man/man2/reboot.2 Sun Sep 20 20:38:05 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)reboot.2 6.2 (2.11BSD) 2024/9/20 X .\" X .TH REBOOT 2 "Sep 20, 2024" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)reboot.2 6.3 (2.11BSD) 2026/9/20 X .\" X .TH REBOOT 2 "Sep 20, 2024" X .UC 4 X*************** X*** 10,25 **** X reboot \- reboot system or halt processor X .SH SYNOPSIS X .nf X! .B #include X! .PP X! .B reboot(howto) X! .B int howto; X .fi X .SH DESCRIPTION X! .I Reboot X reboots the system, and is invoked automatically X in the event of unrecoverable system failures. X! .I Howto X is a mask of options passed to the bootstrap program. X The system call interface permits only RB_HALT or RB_AUTOBOOT X to be passed to the reboot program; the other flags X--- 10,28 ---- X reboot \- reboot system or halt processor X .SH SYNOPSIS X .nf X! .ft B X! #include X! #include X! X! int X! reboot(\fIint howto\fP) X! .ft R X .fi X .SH DESCRIPTION X! .B reboot X reboots the system, and is invoked automatically X in the event of unrecoverable system failures. X! .I howto X is a mask of options passed to the bootstrap program. X The system call interface permits only RB_HALT or RB_AUTOBOOT X to be passed to the reboot program; the other flags X*************** X*** 49,55 **** X check, rather simply booting the system with a single-user shell on X the console. X RB_SINGLE is interpreted by the X! .IR init (8) X program in the newly booted system. X This switch is not available from the system call interface. X .PP X--- 52,58 ---- X check, rather simply booting the system with a single-user shell on X the console. X RB_SINGLE is interpreted by the X! .BR init (8) X program in the newly booted system. X This switch is not available from the system call interface. X .PP X*** ./usr/src/man/man2/readlink.2.old Sun Dec 14 18:07:05 1986 X--- ./usr/src/man/man2/readlink.2 Sun Sep 20 20:48:18 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)readlink.2 6.4 (Berkeley) 8/26/85 X .\" X .TH READLINK 2 "August 26, 1985" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)readlink.2 6.5 (2.11BSD) 2026/9/20 X .\" X .TH READLINK 2 "August 26, 1985" X .UC 5 X*************** X*** 11,24 **** X .SH SYNOPSIS X .nf X .ft B X! cc = readlink(path, buf, bufsiz) X! int cc; X! char *path, *buf; X! int bufsiz; X! .fi X .ft R X .SH DESCRIPTION X! .I Readlink X places the contents of the symbolic link X .I name X in the buffer X--- 11,24 ---- X .SH SYNOPSIS X .nf X .ft B X! #include X! X! ssize_t X! readlink(\fIconst char *restrict path\fP, \fIchar *restrict buf\fP, \fIsize_t bufsiz\fP); X .ft R X+ .fi X .SH DESCRIPTION X! .B readlink X places the contents of the symbolic link X .I name X in the buffer X*************** X*** 31,37 **** X if it succeeds, or a \-1 if an error occurs, placing the error X code in the global variable \fIerrno\fP. X .SH "ERRORS X! .I Readlink X will fail and the file mode will be unchanged if: X .TP 15 X [ENOTDIR] X--- 31,37 ---- X if it succeeds, or a \-1 if an error occurs, placing the error X code in the global variable \fIerrno\fP. X .SH "ERRORS X! .B readlink X will fail and the file mode will be unchanged if: X .TP 15 X [ENOTDIR] X*************** X*** 60,66 **** X An I/O error occurred while reading from the file system. X .TP 15 X [EFAULT] X! .I Buf X extends outside the process's allocated address space. X .SH SEE ALSO X stat(2), lstat(2), symlink(2) X--- 60,66 ---- X An I/O error occurred while reading from the file system. X .TP 15 X [EFAULT] X! .I buf X extends outside the process's allocated address space. X .SH SEE ALSO X stat(2), lstat(2), symlink(2) X*** ./usr/src/man/man2/symlink.2.old Sun Dec 14 18:07:07 1986 X--- ./usr/src/man/man2/symlink.2 Sun Sep 20 22:30:55 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)symlink.2 6.3 (Berkeley) 8/26/85 X .\" X .TH SYMLINK 2 "August 26, 1985" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)symlink.2 6.4 (2.11BSD) 2026/9/20 X .\" X .TH SYMLINK 2 "August 26, 1985" X .UC 5 X*************** X*** 11,20 **** X .SH SYNOPSIS X .nf X .ft B X! symlink(name1, name2) X! char *name1, *name2; X! .fi X .ft R X .SH DESCRIPTION X A symbolic link X .I name2 X--- 11,21 ---- X .SH SYNOPSIS X .nf X .ft B X! #include X! X! symlink(\fIconst char *name1\fP, \fIconst char *name2\fP) X .ft R X+ .fi X .SH DESCRIPTION X A symbolic link X .I name2 X*************** X*** 54,60 **** X Too many symbolic links were encountered in translating the pathname. X .TP 15 X [EEXIST] X! \fIName2\fP already exists. X .TP 15 X [EIO] X An I/O error occurred while making the directory entry for \fIname2\fP, X--- 55,61 ---- X Too many symbolic links were encountered in translating the pathname. X .TP 15 X [EEXIST] X! \fIname2\fP already exists. X .TP 15 X [EIO] X An I/O error occurred while making the directory entry for \fIname2\fP, X*************** X*** 97,103 **** X An I/O error occurred while making the directory entry or allocating the inode. X .TP 15 X [EFAULT] X! .I Name1 X or X .I name2 X points outside the process's allocated address space. X--- 98,104 ---- X An I/O error occurred while making the directory entry or allocating the inode. X .TP 15 X [EFAULT] X! .I name1 X or X .I name2 X points outside the process's allocated address space. X*** ./usr/src/man/man2/Makefile.old Tue Dec 23 12:42:19 2025 X--- ./usr/src/man/man2/Makefile Mon Sep 21 08:11:13 2026 X*************** X*** 14,24 **** X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 2.13 (2.11BSD) 2025/11/25 X # X MDIR= /usr/man/cat2 X SRCS= accept.2 access.2 acct.2 adjtime.2 bind.2 brk.2 chdir.2 chmod.2 \ X! chown.2 chroot.2 close.2 connect.2 dup.2 execve.2 exit.2 \ X chflags.2 \ X fcntl.2 fetchi.2 flock.2 fork.2 fperr.2 fsync.2 getdtablesize.2 \ X getgroups.2 gethostid.2 gethostname.2 getitimer.2 \ X--- 14,24 ---- X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 2.14 (2.11BSD) 2026/9/21 X # X MDIR= /usr/man/cat2 X SRCS= accept.2 access.2 acct.2 adjtime.2 bind.2 brk.2 chdir.2 chmod.2 \ X! chown.2 chroot.2 close.2 connect.2 dup.2 errno.2 execve.2 exit.2 \ X chflags.2 \ X fcntl.2 fetchi.2 flock.2 fork.2 fperr.2 fsync.2 getdtablesize.2 \ X getgroups.2 gethostid.2 gethostname.2 getitimer.2 \ X*************** X*** 37,43 **** X stat.2 statfs.2 symlink.2 sync.2 syscall.2 truncate.2 ucall.2 \ X umask.2 unlink.2 utimes.2 vfork.2 vhangup.2 wait.2 write.2 X OBJS= accept.0 access.0 acct.0 adjtime.0 bind.0 brk.0 chdir.0 chmod.0 \ X! chown.0 chroot.0 close.0 connect.0 dup.0 execve.0 exit.0 \ X chflags.0 \ X fcntl.0 fetchi.0 flock.0 fork.0 fperr.0 fsync.0 getdtablesize.0 \ X getgroups.0 gethostid.0 gethostname.0 getitimer.0 \ X--- 37,43 ---- X stat.2 statfs.2 symlink.2 sync.2 syscall.2 truncate.2 ucall.2 \ X umask.2 unlink.2 utimes.2 vfork.2 vhangup.2 wait.2 write.2 X OBJS= accept.0 access.0 acct.0 adjtime.0 bind.0 brk.0 chdir.0 chmod.0 \ X! chown.0 chroot.0 close.0 connect.0 dup.0 errno.0 execve.0 exit.0 \ X chflags.0 \ X fcntl.0 fetchi.0 flock.0 fork.0 fperr.0 fsync.0 getdtablesize.0 \ X getgroups.0 gethostid.0 gethostname.0 getitimer.0 \ X*** ./usr/src/man/man2/kill.2.old Sun Dec 14 18:06:49 1986 X--- ./usr/src/man/man2/kill.2 Mon Sep 21 13:55:04 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)kill.2 6.5 (Berkeley) 5/14/86 X .\" X .TH KILL 2 "May 14, 1986" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)kill.2 6.6 (2.11BSD) 2026/9/21 X .\" X .TH KILL 2 "May 14, 1986" X .UC 4 X*************** X*** 9,26 **** X .SH NAME X kill \- send signal to a process X .SH SYNOPSIS X .ft B X! kill(pid, sig) X! .br X! int pid, sig; X .SH DESCRIPTION X! .I Kill X sends the signal \fIsig\fP X to a process, specified by the process number X .IR pid . X! .I Sig X may be one of the signals specified in X! .IR sigvec (2), X or it may be 0, in which case X error checking is performed but no X signal is actually sent. X--- 9,30 ---- X .SH NAME X kill \- send signal to a process X .SH SYNOPSIS X+ .nf X .ft B X! #include X! X! int X! kill(\fIpid_t pid\fP, \fIint sig\fP) X! .ft R X! .fi X .SH DESCRIPTION X! .B kill X sends the signal \fIsig\fP X to a process, specified by the process number X .IR pid . X! .I sig X may be one of the signals specified in X! .BR sigvec (2), X or it may be 0, in which case X error checking is performed but no X signal is actually sent. X*************** X*** 36,42 **** X If the process number is 0, X the signal is sent to all processes in the X sender's process group; this is a variant of X! .IR killpg (2). X .PP X If the process number is \-1 X and the user is the super-user, X--- 40,46 ---- X If the process number is 0, X the signal is sent to all processes in the X sender's process group; this is a variant of X! .BR killpg (2). X .PP X If the process number is \-1 X and the user is the super-user, X*************** X*** 55,75 **** X the signal is sent to all processes whose process group ID X is equal to the absolute value of the process number. X This is a variant of X! .IR killpg (2). X .PP X Processes may send signals to themselves. X .SH "RETURN VALUE X Upon successful completion, a value of 0 is returned. X Otherwise, a value of \-1 is returned and X! .I errno X is set to indicate the error. X .SH "ERRORS X! .I Kill X will fail and no signal will be sent if any of the following X occur: X .TP 15 X [EINVAL] X! \fISig\fP is not a valid signal number. X .TP 15 X [ESRCH] X No process can be found corresponding to that specified by \fIpid\fP. X--- 59,79 ---- X the signal is sent to all processes whose process group ID X is equal to the absolute value of the process number. X This is a variant of X! .BR killpg (2). X .PP X Processes may send signals to themselves. X .SH "RETURN VALUE X Upon successful completion, a value of 0 is returned. X Otherwise, a value of \-1 is returned and X! .B errno X is set to indicate the error. X .SH "ERRORS X! .B kill X will fail and no signal will be sent if any of the following X occur: X .TP 15 X [EINVAL] X! \fIsig\fP is not a valid signal number. X .TP 15 X [ESRCH] X No process can be found corresponding to that specified by \fIpid\fP. X*** ./usr/src/man/man2/killpg.2.old Sun Dec 14 18:06:53 1986 X--- ./usr/src/man/man2/killpg.2 Mon Sep 21 14:06:16 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)killpg.2 6.3 (Berkeley) 5/14/86 X .\" X .TH KILLPG 2 "May 14, 1986" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)killpg.2 6.4 (2.11BSD) 2026/9/21 X .\" X .TH KILLPG 2 "May 14, 1986" X .UC 4 X*************** X*** 9,27 **** X .SH NAME X killpg \- send signal to a process group X .SH SYNOPSIS X .ft B X! killpg(pgrp, sig) X! .br X! int pgrp, sig; X .ft R X .SH DESCRIPTION X! .I Killpg X sends the signal X .I sig X to the process group X .IR pgrp . X See X! .IR sigvec (2) X for a list of signals. X .PP X The sending process and members of the process group must X--- 9,30 ---- X .SH NAME X killpg \- send signal to a process group X .SH SYNOPSIS X+ .nf X .ft B X! #include X! X! int X! killpg(\fIpid_t pgrp\fP, \fIint sig\fP) X .ft R X+ .fi X .SH DESCRIPTION X! .B killpg X sends the signal X .I sig X to the process group X .IR pgrp . X See X! .BR sigvec (2) X for a list of signals. X .PP X The sending process and members of the process group must X*************** X*** 31,44 **** X to any process that is a descendant of the current process. X .SH "RETURN VALUE X Upon successful completion, a value of 0 is returned. Otherwise, X! a value of \-1 is returned and the global variable \fIerrno\fP X is set to indicate the error. X .SH "ERRORS X! \fIKillpg\fP will fail and no signal will be sent if any of the X following occur: X .TP 15 X [EINVAL] X! \fISig\fP is not a valid signal number. X .TP 15 X [ESRCH] X No process can be found in the process group specified by \fIpgrp\fP. X--- 34,47 ---- X to any process that is a descendant of the current process. X .SH "RETURN VALUE X Upon successful completion, a value of 0 is returned. Otherwise, X! a value of \-1 is returned and the global variable \fBerrno\fP X is set to indicate the error. X .SH "ERRORS X! \fBkillpg\fP will fail and no signal will be sent if any of the X following occur: X .TP 15 X [EINVAL] X! \fIsig\fP is not a valid signal number. X .TP 15 X [ESRCH] X No process can be found in the process group specified by \fIpgrp\fP. X*** ./usr/src/man/man2/sigaction.2.old Wed Sep 3 16:09:45 1997 X--- ./usr/src/man/man2/sigaction.2 Tue Sep 22 15:39:15 2026 X*************** X*** 29,35 **** X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)sigaction.2 8.2.1 (2.11BSD) 1997/9/3 X .\" X .TH SIGACTION 2 "September 3, 1997" X .UC 7 X--- 29,35 ---- X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)sigaction.2 8.2.2 (2.11BSD) 2026/9/21 X .\" X .TH SIGACTION 2 "September 3, 1997" X .UC 7 X*************** X*** 36,58 **** X .SH NAME X \fBsigaction\fP \- software signal facilities X .SH SYNOPSIS X- .B #include X- .sp X .nf X! struct sigaction { X! int (*sa_handler)(); X! sigset_t sa_mask; X! int sa_flags; X! }; X .fi X- .sp X- \fBsigaction\fP(sig, act, oact) X- .br X- .I int sig; X- .br X- .I struct sigaction *act; X- .br X- .I struct sigaction *oact; X .SH DESCRIPTION X The system defines a set of signals that may be delivered to a process. X Signal delivery resembles the occurrence of a hardware interrupt: X--- 36,58 ---- X .SH NAME X \fBsigaction\fP \- software signal facilities X .SH SYNOPSIS X .nf X! .ft B X! #include X! X! typedef void (*sig_t)(int); X! X! struct sigaction X! { X! sig_t sa_handler; X! sigset_t sa_mask; X! int sa_flags; X! }; X! X! sigaction(\fIint sig\fP, \fIstruct sigaction *restrict act\fP, X! \fIstruct sigaction *restrict oact\fP) X! .ft R X .fi X .SH DESCRIPTION X The system defines a set of signals that may be delivered to a process. X Signal delivery resembles the occurrence of a hardware interrupt: X*************** X*** 69,75 **** X .IR unblocked . X The action to be taken on delivery is determined at the time X of delivery. X! Normally, signal handlers execute on the current stack X of the process. This may be changed, on a per-handler basis, X so that signals are taken on a special X .IR "signal stack" . X--- 69,75 ---- X .IR unblocked . X The action to be taken on delivery is determined at the time X of delivery. X! Normally signal handlers execute on the current stack X of the process. This may be changed, on a per-handler basis, X so that signals are taken on a special X .IR "signal stack" . X*************** X*** 122,128 **** X the signal to be delivered, and X the signal mask associated with the handler to be invoked. X .PP X! .B Sigaction X assigns an action for a specific signal. X If X .I act X--- 122,128 ---- X the signal to be delivered, and X the signal mask associated with the handler to be invoked. X .PP X! .B sigaction X assigns an action for a specific signal. X If X .I act X*************** X*** 222,228 **** X all signals, the signal mask, the signal stack, X and the restart/interrupt flags are inherited by the child. X .PP X! .BR Execve (2) X reinstates the default X action for all signals which were caught and X resets all signals to be caught on the user stack. X--- 222,228 ---- X all signals, the signal mask, the signal stack, X and the restart/interrupt flags are inherited by the child. X .PP X! .BR execve (2) X reinstates the default X action for all signals which were caught and X resets all signals to be caught on the user stack. X*************** X*** 329,339 **** X .I sig X is the signal number, into which the hardware faults and traps are X mapped. X! .I Code X is a parameter that is either a constant X or the code provided by X the hardware. X! .I Scp X is a pointer to the X .I sigcontext X structure (defined in X--- 329,339 ---- X .I sig X is the signal number, into which the hardware faults and traps are X mapped. X! .I code X is a parameter that is either a constant X or the code provided by X the hardware. X! .I scp X is a pointer to the X .I sigcontext X structure (defined in X*************** X*** 340,346 **** X .RI < signal.h >, X used to restore the context from before the signal. X .SH ERRORS X! .B Sigaction X will fail and no new signal handler will be installed if one X of the following occurs: X .TP 20 X--- 340,346 ---- X .RI < signal.h >, X used to restore the context from before the signal. X .SH ERRORS X! .B sigaction X will fail and no new signal handler will be installed if one X of the following occurs: X .TP 20 X*************** X*** 353,359 **** X address space. X .TP 20 X EINVAL X! .I Sig X is not a valid signal number. X .TP 20 X EINVAL X--- 353,359 ---- X address space. X .TP 20 X EINVAL X! .I sig X is not a valid signal number. X .TP 20 X EINVAL X*** ./usr/src/man/man2/sigaltstack.2.old Wed Sep 3 11:31:23 1997 X--- ./usr/src/man/man2/sigaltstack.2 Tue Sep 22 17:12:32 2026 X*************** X*** 29,35 **** X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)sigaltstack.2 8.2.1 (2.11BSD) 1997/9/3 X .\" X .TH SIGALTSTACK 2 "September 3, 1997" X .UC 7 X--- 29,35 ---- X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)sigaltstack.2 8.2.2 (2.11BSD) 2026/9/22 X .\" X .TH SIGALTSTACK 2 "September 3, 1997" X .UC 7 X*************** X*** 36,62 **** X .SH NAME X \fBsigaltstack\fP \- set and/or get signal stack context X .SH SYNOPSIS X- .B #include X- .br X- .B #include X- .sp X .nf X! struct sigaltstack { X! caddr_t ss_base; X! int ss_size; X! int ss_flags; X! }; X .fi X- .sp X- .I int X- .br X- \fBsigaltstack\fP(ss, oss) X- .br X- .I struct sigaltstack *ss; X- .br X- .I struct sigaltstack *oss; X .SH DESCRIPTION X! .B Sigaltstack X allows users to define an alternate stack on which signals X are to be processed. X If X--- 36,58 ---- X .SH NAME X \fBsigaltstack\fP \- set and/or get signal stack context X .SH SYNOPSIS X .nf X! .ft B X! #include X! X! struct sigaltstack X! { X! caddr_t ss_base; X! int ss_size; X! int ss_flags; X! }; X! X! int X! sigaltstack(\fIstruct sigaltstack *ss\fP, \fIstruct sigaltstack *oss\fP); X! .ft R X .fi X .SH DESCRIPTION X! .B sigaltstack X allows users to define an alternate stack on which signals X are to be processed. X If X*************** X*** 144,150 **** X .I errno X is set to indicate the error. X .SH ERRORS X! .B Sigaltstack X will fail and the signal stack context will remain unchanged X if one of the following occurs. X .TP 20 X--- 140,146 ---- X .I errno X is set to indicate the error. X .SH ERRORS X! .B sigaltstack X will fail and the signal stack context will remain unchanged X if one of the following occurs. X .TP 20 X*** ./usr/src/man/man2/sigblock.2.old Tue Sep 2 23:05:53 1997 X--- ./usr/src/man/man2/sigblock.2 Tue Sep 22 16:00:45 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)sigblock.2 6.3.1 (2.11BSD) 97/9/2 X .\" X .TH SIGBLOCK 2 "September 2, 1997" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)sigblock.2 6.3.2 (2.11BSD) 2026/9/22 X .\" X .TH SIGBLOCK 2 "September 2, 1997" X .UC 5 X*************** X*** 10,28 **** X sigblock \- block signals X .SH SYNOPSIS X .nf X! .B #include X X! \fIomask\fP = \fBsigblock\fP(\fImask\fP); X! long \fIomask, mask\fP; X X! \fImask\fP = \fBsigmask\fP(\fIsignum\fP) X! long \fImask\fP; X! int \fIsignum\fP; X .SH DESCRIPTION X .B This interface is made obsolete by: X! sigprocmask(2). X .PP X! .B Sigblock X causes the signals specified in X .I mask X to be added to the set of signals currently X--- 10,29 ---- X sigblock \- block signals X .SH SYNOPSIS X .nf X! .ft B X! #include X X! \fImask\fP = sigmask(\fIint signum\fP); X X! long X! sigblock(\fIlong mask\fP); X! .ft R X! .fi X .SH DESCRIPTION X .B This interface is made obsolete by: X! .BR sigprocmask (2) . X .PP X! .B sigblock X causes the signals specified in X .I mask X to be added to the set of signals currently X*************** X*** 45,47 **** X--- 46,54 ---- X .SH "HISTORY" X The \fBsigblock\fP function call appeared in 4.2BSD and has been X deprecated. X+ .sp X+ .B sigblock X+ is no longer a system call but is implemented in a compatibilty routine X+ using X+ .BR sigprocmask (2) X+ in the C runtime library. X*** ./usr/src/man/man2/sigpause.2.old Tue Sep 2 23:03:00 1997 X--- ./usr/src/man/man2/sigpause.2 Wed Sep 23 08:16:47 2026 X*************** X*** 2,33 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)sigpause.2 6.2.1 (2.11BSD) 97/9/2 X .\" X .TH SIGPAUSE 2 "September 2, 1997" X .UC 4 X .SH NAME X! sigpause \- atomically release blocked signals and wait for interrupt X .SH SYNOPSIS X! \fBsigpause\fP(\fIsigmask\fP) X! .br X! long \fIsigmask\fP; X .SH DESCRIPTION X .B This interface is made obsolete by: X sigsuspend(2). X .PP X! .B Sigpause() X assigns X .I sigmask X to the set of masked signals X and then waits for a signal to arrive; X on return the set of masked signals is restored. X! .I Sigmask X is usually 0L to indicate that no X! signals are now to be blocked. X! .B Sigpause X always terminates by being interrupted, returning \-1 with X! .I errno X set to EINTR. X .SH SEE ALSO X sigsuspend(2), kill(2), sigaction(2), sigprocmask(2), sigblock(2), X--- 2,38 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)sigpause.2 6.2.2 (2.11BSD) 2026/9/22 X .\" X .TH SIGPAUSE 2 "September 2, 1997" X .UC 4 X .SH NAME X! \fBsigpause\fP \- atomically release blocked signals and wait for interrupt X .SH SYNOPSIS X! .nf X! .ft B X! #include X! X! int X! sigpause(\fIlong sigmask\fP) X! .ft R X! .fi X .SH DESCRIPTION X .B This interface is made obsolete by: X sigsuspend(2). X .PP X! .B sigpause X assigns X .I sigmask X to the set of masked signals X and then waits for a signal to arrive; X on return the set of masked signals is restored. X! .I sigmask X is usually 0L to indicate that no X! signals are to be blocked. X! .B sigpause X always terminates by being interrupted, returning \-1 with X! .B errno X set to EINTR. X .SH SEE ALSO X sigsuspend(2), kill(2), sigaction(2), sigprocmask(2), sigblock(2), X*************** X*** 36,38 **** X--- 41,51 ---- X The X .B sigpause X function call appeared in 4.2BSD and has been deprecated. X+ .sp X+ Other systems changed \fBsigpause\fP to accept a signal number instead X+ of a mask. X+ .SH NOTES X+ .B sigpause X+ is no longer a system call but is implemented in a compatibilty routine X+ using X+ .BR sigsuspend (2) X*** ./usr/src/man/man2/sigpending.2.old Wed Sep 3 11:01:51 1997 X--- ./usr/src/man/man2/sigpending.2 Tue Sep 22 16:29:59 2026 X*************** X*** 32,38 **** X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)sigpending.2 8.3.1 (2.11BSD) 1997/9/3 X .\" X .TH SIGPENDING 2 "September 3, 1997" X .UC 7 X--- 32,38 ---- X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)sigpending.2 8.3.2 (2.11BSD) 2026/9/22 X .\" X .TH SIGPENDING 2 "September 3, 1997" X .UC 7 X*************** X*** 39,55 **** X .SH NAME X \fBsigpending\fP \- get pending signals X .SH SYNOPSIS X! .B #include X! .sp X! .I int X! .br X! \fBsigpending\fP(set) X! .br X! .I sigset_t *set; X .SH DESCRIPTION X- The X .B sigpending X! function returns a mask of the signals pending for delivery X to the calling process in the location indicated by X .IR set . X Signals may be pending because they are currently masked, X--- 39,55 ---- X .SH NAME X \fBsigpending\fP \- get pending signals X .SH SYNOPSIS X! .nf X! .ft B X! #include X! X! int X! sigpending(sigset_t *set) X! .ft R X! .fi X .SH DESCRIPTION X .B sigpending X! returns a mask of the signals pending for delivery X to the calling process in the location indicated by X .IR set . X Signals may be pending because they are currently masked, X*************** X*** 63,69 **** X .SH ERRORS X If X .B sigpending X! fails then \fIerrno\fP will contain one of the following: X .sp X .TP 20 X [EFAULT] X--- 63,69 ---- X .SH ERRORS X If X .B sigpending X! fails then \fBerrno\fP will contain one of the following: X .sp X .TP 20 X [EFAULT] X*** ./usr/src/man/man2/sigprocmask.2.old Wed Sep 3 12:22:34 1997 X--- ./usr/src/man/man2/sigprocmask.2 Tue Sep 22 17:13:12 2026 X*************** X*** 29,35 **** X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)sigprocmask.2 8.1.1 (2.11BSD) 1997/9/3 X .\" X .TH SIGPROCMASK 2 "September 3, 1997" X .UC 7 X--- 29,35 ---- X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)sigprocmask.2 8.1.2 (2.11BSD) 2026/9/22 X .\" X .TH SIGPROCMASK 2 "September 3, 1997" X .UC 7 X*************** X*** 36,68 **** X .SH NAME X \fBsigprocmask\fP \- manipulate current signal mask X .SH SYNOPSIS X! .B #include X! .sp X! .I int X! .br X! \fBsigprocmask\fP(how, set, oset) X! .br X! .I int how; X! .br X! .I sigset_t *set; X! .br X! .I sigset_t *oset; X! .sp X! .I sigset_t X! .br X! \fBsigmask\fP(signum) X! .br X! .I int signum; X .SH DESCRIPTION X- The X .B sigprocmask X! function examines and/or changes the current signal mask (those signals X that are blocked from delivery). X Signals are blocked if they are members of the current signal mask set. X .PP X If X .I set X! is not null, the action of X .B sigprocmask X depends on the value of the parameter X .IR how . X--- 36,58 ---- X .SH NAME X \fBsigprocmask\fP \- manipulate current signal mask X .SH SYNOPSIS X! .nf X! .ft B X! #include X! X! int X! sigprocmask(\fIint how\fP, \fIsigset_t *set\fP, \fIsigset_t *oset\fP); X! .ft R X! .fi X .SH DESCRIPTION X .B sigprocmask X! examines and/or changes the current signal mask (those signals X that are blocked from delivery). X Signals are blocked if they are members of the current signal mask set. X .PP X If X .I set X! is not NULL, the action of X .B sigprocmask X depends on the value of the parameter X .IR how . X*************** X*** 72,78 **** X The function is specified by X .I how X using one of the following values from X! .RI < signal.h >: X .TP 20 X SIG_BLOCK X The new mask is the union of the current mask and the specified X--- 62,68 ---- X The function is specified by X .I how X using one of the following values from X! .RB < signal.h >: X .TP 20 X SIG_BLOCK X The new mask is the union of the current mask and the specified X*************** X*** 89,99 **** X .PP X If X .I oset X! is not null, it is set to X the previous value of the signal mask. X When X .I set X! is null, X the value of X .I how X is insignificant and the mask remains unset X--- 79,89 ---- X .PP X If X .I oset X! is not NULL, it is set to X the previous value of the signal mask. X When X .I set X! is NULL, X the value of X .I how X is insignificant and the mask remains unset X*************** X*** 108,114 **** X .SH RETURN VALUES X A 0 value indicated that the call succeeded. A -1 return value X indicates an error occurred and X! .I errno X is set to indicated the reason. X .SH ERRORS X The X--- 98,104 ---- X .SH RETURN VALUES X A 0 value indicated that the call succeeded. A -1 return value X indicates an error occurred and X! .B errno X is set to indicated the reason. X .SH ERRORS X The X*** ./usr/src/man/man2/sigsetmask.2.old Wed Sep 3 22:56:31 1997 X--- ./usr/src/man/man2/sigsetmask.2 Tue Sep 22 17:13:30 2026 X*************** X*** 2,37 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)sigsetmask.2 6.3.1 (2.11BSD) 97/9/3 X .\" X .TH SIGSETMASK 2 "September 3, 1997" X .UC 5 X .SH NAME X! sigsetmask \- set current signal mask X .SH SYNOPSIS X .nf X! .B #include X X! .B omask = sigsetmask(mask); X! .B long omask, mask; X! X! .B mask = sigmask(signum) X! .B long mask; X! .B int signum; X .SH DESCRIPTION X .B This interface is made obsolete by: X! .sigprocmask(2). X .sp X! .I Sigsetmask X sets the current signal mask (those signals X that are blocked from delivery). X! Signals are blocked if the X! corresponding bit in X .I mask X! is a 1; the macro X! .I sigmask X! is provided to construct the mask for a given X! .IR signum . X .PP X The system X quietly disallows SIGKILL, SIGSTOP, or SIGCONT to X--- 2,32 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)sigsetmask.2 6.3.2 (2.11BSD) 2026/9/22 X .\" X .TH SIGSETMASK 2 "September 3, 1997" X .UC 5 X .SH NAME X! \fBsigsetmask\fP \- set current signal mask X .SH SYNOPSIS X .nf X! .ft B X! #include X X! long X! sigsetmask(\fIlong mask\fP); X! .ft R X! .fi X .SH DESCRIPTION X .B This interface is made obsolete by: X! .BR sigprocmask (2) . X .sp X! .B sigsetmask X sets the current signal mask (those signals X that are blocked from delivery). X! Signals are blocked if the corresponding bit in X .I mask X! is a 1. X .PP X The system X quietly disallows SIGKILL, SIGSTOP, or SIGCONT to X*************** X*** 44,46 **** X--- 39,47 ---- X The X .B sigsetmask X function call appeared in 4.2BSD and has been deprecated. X+ .sp X+ .B sigsetmask X+ is no longer a system call but is implemented in a compatibilty routine X+ using X+ .BR sigprocmask (2) X+ in the C runtime library. X*** ./usr/src/man/man2/sigstack.2.old Wed Sep 3 23:00:38 1997 X--- ./usr/src/man/man2/sigstack.2 Tue Sep 22 16:52:02 2026 X*************** X*** 2,29 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)sigstack.2 6.2.1 (2.11BSD) 97/9/3 X .\" X .TH SIGSTACK 2 "September 3, 1997" X! .UC 5 X .SH NAME X! sigstack \- set and/or get signal stack context X .SH SYNOPSIS X .nf X! .B #include X! .PP X! .B struct sigstack { X! .B caddr_t ss_sp; X! .B int ss_onstack; X! .B }; X! .PP X! .B sigstack(ss, oss); X! .B struct sigstack *ss, *oss; X .SH DESCRIPTION X! .B This interface has been made obsolete by: X! sigaltstack(2). X .sp X! .I Sigstack X allows users to define an alternate stack on which signals X are to be processed. If X .I ss X--- 2,33 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)sigstack.2 6.2.2 (2.11BSD) 2026/9/22 X .\" X .TH SIGSTACK 2 "September 3, 1997" X! .UC 2 X .SH NAME X! \fBsigstack\fP \- set and/or get signal stack context X .SH SYNOPSIS X .nf X! .ft B X! #include X! X! struct sigstack X! { X! caddr_t ss_sp; X! int ss_onstack; X! }; X! X! int X! sigstack(\fIstruct sigstack *ss\fP, \fIstruct sigstack *oss\fP); X! .ft R X! .fi X .SH DESCRIPTION X! .B This interface is made obsolete by: X! .BR sigaltstack (2) . X .sp X! .B sigstack X allows users to define an alternate stack on which signals X are to be processed. If X .I ss X*************** X*** 34,40 **** X and tells the system if the process is currently executing X on that stack. When a signal's action indicates its handler X should execute on the signal stack (specified with a X! .IR sigvec (2) X call), the system checks to see X if the process is currently executing on that stack. If the X process is not currently executing on the signal stack, X--- 38,44 ---- X and tells the system if the process is currently executing X on that stack. When a signal's action indicates its handler X should execute on the signal stack (specified with a X! .BR sigvec (2) X call), the system checks to see X if the process is currently executing on that stack. If the X process is not currently executing on the signal stack, X*************** X*** 53,59 **** X .I errno X is set to indicate the error. X .SH ERRORS X! .I Sigstack X will fail and the signal stack context will remain unchanged X if one of the following occurs. X .TP 15 X--- 57,63 ---- X .I errno X is set to indicate the error. X .SH ERRORS X! .B sigstack X will fail and the signal stack context will remain unchanged X if one of the following occurs. X .TP 15 X*** ./usr/src/man/man2/sigsuspend.2.old Wed Sep 3 11:00:38 1997 X--- ./usr/src/man/man2/sigsuspend.2 Tue Sep 22 17:13:50 2026 X*************** X*** 29,35 **** X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)sigsuspend.2 8.2.1 (2.11BSD) 1995/9/3 X .\" X .TH SIGSUSPEND 2 "September 3, 1997" X .UC 7 X--- 29,35 ---- X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)sigsuspend.2 8.2.2 (2.11BSD) 2026/9/22 X .\" X .TH SIGSUSPEND 2 "September 3, 1997" X .UC 7 X*************** X*** 36,53 **** X .SH NAME X \fBsigsuspend\fP \- atomically release blocked signals and wait for interrupt X .SH SYNOPSIS X! .B #include X! .sp X! .I int X! .br X! \fBsigsuspend\fP(sigmask) X! .br X! .I sigset_t *sigmask X .SH DESCRIPTION X! .BR Sigsuspend () X temporarily changes the blocked signal mask to the set to which X .I sigmask X! points, X and then waits for a signal to arrive; X on return the previous set of masked signals is restored. X The signal mask set X--- 36,54 ---- X .SH NAME X \fBsigsuspend\fP \- atomically release blocked signals and wait for interrupt X .SH SYNOPSIS X! .nf X! .ft B X! #include X! X! int X! sigsuspend\fP(\fIsigset_t *sigmask\fP) X! .ft R X! .fi X .SH DESCRIPTION X! .B sigsuspend X temporarily changes the blocked signal mask to the set to which X .I sigmask X! points X and then waits for a signal to arrive; X on return the previous set of masked signals is restored. X The signal mask set X*** ./usr/src/man/man2/sigvec.2.old Wed Sep 3 23:02:25 1997 X--- ./usr/src/man/man2/sigvec.2 Tue Sep 22 17:07:23 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)sigvec.2 6.3.1 (2.11BSD) 97/9/3 X .\" X .TH SIGVEC 2 "September 3, 1997" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)sigvec.2 6.3.2 (2.11BSD) 2026/9/22 X .\" X .TH SIGVEC 2 "September 3, 1997" X .UC 4 X*************** X*** 14,34 **** X sigvec \- software signal facilities X .SH SYNOPSIS X .nf X! .B #include X! .PP X! .B struct sigvec { X! .B int (*sv_handler)(); X! .B long sv_mask; X! .B int sv_flags; X! .B }; X! .PP X! .B sigvec(sig, vec, ovec) X! .B int sig; X! .B struct sigvec *vec, *ovec; X .fi X .SH DESCRIPTION X! .B This interface has been made obsolete by: X! sigaction(2). X .sp X The system defines a set of signals that may be delivered to a process. X Signal delivery resembles the occurence of a hardware interrupt: X--- 14,37 ---- X sigvec \- software signal facilities X .SH SYNOPSIS X .nf X! .ft B X! #include X! X! typedef void (*sig_t)(int); X! X! struct sigvec X! { X! sig_t sv_handler; X! long sv_mask; X! int sv_flags; X! }; X! X! sigvec(\fIint sig\fP, \fIstruct sigvec *vec\fP, \fIstruct sigvec *ovec\fP); X! .ft R X .fi X .SH DESCRIPTION X! .B This interface is made obsolete by: X! .BR sigaction (2) . X .sp X The system defines a set of signals that may be delivered to a process. X Signal delivery resembles the occurence of a hardware interrupt: X*************** X*** 58,66 **** X to a process. The signal mask for a process is initialized X from that of its parent (normally 0). It X may be changed with a X! .IR sigblock (2) X or X! .IR sigsetmask (2) X call, or when a signal is delivered to the process. X .PP X When a signal X--- 61,69 ---- X to a process. The signal mask for a process is initialized X from that of its parent (normally 0). It X may be changed with a X! .BR sigblock (2) X or X! .BR sigsetmask (2) X call, or when a signal is delivered to the process. X .PP X When a signal X*************** X*** 80,88 **** X When a signal is delivered to a process a new signal mask is X installed for the duration of the process' signal handler X (or until a X! .I sigblock X or X! .I sigsetmask X call is made). X This mask is formed by taking the current signal mask, X adding the signal to be delivered, and X--- 83,91 ---- X When a signal is delivered to a process a new signal mask is X installed for the duration of the process' signal handler X (or until a X! .B sigblock X or X! .B sigsetmask X call is made). X This mask is formed by taking the current signal mask, X adding the signal to be delivered, and X*************** X*** 89,95 **** X .IR or 'ing X in the signal mask associated with the handler to be invoked. X .PP X! .I Sigvec X assigns a handler for a specific signal. If X .I vec X is non-zero, it X--- 92,98 ---- X .IR or 'ing X in the signal mask associated with the handler to be invoked. X .PP X! .B sigvec X assigns a handler for a specific signal. If X .I vec X is non-zero, it X*************** X*** 100,106 **** X the system will deliver the signal to the process on a X .IR "signal stack" , X specified with X! .IR sigstack (2). X If X .I ovec X is non-zero, the previous handling information for the signal X--- 103,109 ---- X the system will deliver the signal to the process on a X .IR "signal stack" , X specified with X! .BR sigstack (2). X If X .I ovec X is non-zero, the previous handling information for the signal X*************** X*** 108,114 **** X .PP X The following is a list of all signals X with names as in the include file X! .RI < signal.h >: X .LP X .nf X .ta \w'SIGVTALRM 'u +\w'15* 'u X--- 111,117 ---- X .PP X The following is a list of all signals X with names as in the include file X! .RB < signal.h >: X .LP X .nf X .ta \w'SIGVTALRM 'u +\w'15* 'u X*************** X*** 149,157 **** X .PP X Once a signal handler is installed, it remains installed X until another X! .I sigvec X call is made, or an X! .IR execve (2) X is performed. X The default action for a signal may be reinstated by setting X .I sv_handler X--- 152,160 ---- X .PP X Once a signal handler is installed, it remains installed X until another X! .B sigvec X call is made, or an X! .BR execve (2) X is performed. X The default action for a signal may be reinstated by setting X .I sv_handler X*************** X*** 172,193 **** X EINTR error return by setting the SV_INTERRUPT bit in X .I sv_flags. X The affected system calls are X! .IR read (2) X or X! .IR write (2) X on a slow device (such as a terminal; but not a file) X and during a X! .IR wait (2). X .PP X After a X! .IR fork (2) X or X! .IR vfork (2) X the child inherits X all signals, the signal mask, the signal stack, X and the restart/interrupt flags. X .PP X! .IR Execve (2) X resets all X caught signals to default action and X resets all signals to be caught on the user stack. X--- 175,196 ---- X EINTR error return by setting the SV_INTERRUPT bit in X .I sv_flags. X The affected system calls are X! .BR read (2) X or X! .BR write (2) X on a slow device (such as a terminal; but not a file) X and during a X! .BR wait (2). X .PP X After a X! .BR fork (2) X or X! .BR vfork (2) X the child inherits X all signals, the signal mask, the signal stack, X and the restart/interrupt flags. X .PP X! .BR execve (2) X resets all X caught signals to default action and X resets all signals to be caught on the user stack. X*************** X*** 194,200 **** X Ignored signals remain ignored; X the signal mask remains the same; X signals that interrupt system calls continue to do so. X! .SH NOTES X The mask specified in X .I vec X is not allowed to block SIGKILL, SIGSTOP, or SIGCONT. This X--- 197,203 ---- X Ignored signals remain ignored; X the signal mask remains the same; X signals that interrupt system calls continue to do so. X! .PP X The mask specified in X .I vec X is not allowed to block SIGKILL, SIGSTOP, or SIGCONT. This X*************** X*** 208,214 **** X .I errno X is set to indicated the reason. X .SH ERRORS X! .I Sigvec X will fail and no new signal handler will be installed if one X of the following occurs: X .TP 15 X--- 211,217 ---- X .I errno X is set to indicated the reason. X .SH ERRORS X! .B sigvec X will fail and no new signal handler will be installed if one X of the following occurs: X .TP 15 X*************** X*** 221,227 **** X address space. X .TP 15 X [EINVAL] X! .I Sig X is not a valid signal number. X .TP 15 X [EINVAL] X--- 224,230 ---- X address space. X .TP 15 X [EINVAL] X! .I sig X is not a valid signal number. X .TP 15 X [EINVAL] X*************** X*** 236,242 **** X ptrace(2), kill(2), X sigblock(2), sigsetmask(2), sigpause(2), X sigstack(2), sigvec(2), setjmp(3), siginterrupt(3), tty(4) X! .SH "NOTES (VAX-11)" X The handler routine can be declared: X .PP X handler(sig, code, scp) X--- 239,245 ---- X ptrace(2), kill(2), X sigblock(2), sigsetmask(2), sigpause(2), X sigstack(2), sigvec(2), setjmp(3), siginterrupt(3), tty(4) X! .SH NOTES X The handler routine can be declared: X .PP X handler(sig, code, scp) X*************** X*** 243,336 **** X int sig, code; X struct sigcontext *scp; X .PP X- Here X- .I sig X- is the signal number, into which the hardware faults and traps are X- mapped as defined below. X- .I Code X- is a parameter that is either a constant X- as given below or, for compatibility mode faults, the code provided by X- the hardware (Compatibility mode faults are distinguished from the X- other SIGILL traps by having PSL_CM set in the psl). X- .I Scp X- is a pointer to the X- .I sigcontext X- structure (defined in X- .RI < signal.h >), X- used to restore the context from before the signal. X- .PP X- The following defines the mapping of hardware traps to signals X- and codes. All of these symbols are defined in X- .RI < signal.h >: X- .LP X- .ta \w' Floating/decimal divide by zero 'u +\w'15* 'u +8n X- .nf X- Hardware condition Signal Code X- X- Arithmetic traps: X- Integer overflow SIGFPE FPE_INTOVF_TRAP X- Integer division by zero SIGFPE FPE_INTDIV_TRAP X- Floating overflow trap SIGFPE FPE_FLTOVF_TRAP X- Floating/decimal division by zero SIGFPE FPE_FLTDIV_TRAP X- Floating underflow trap SIGFPE FPE_FLTUND_TRAP X- Decimal overflow trap SIGFPE FPE_DECOVF_TRAP X- Subscript-range SIGFPE FPE_SUBRNG_TRAP X- Floating overflow fault SIGFPE FPE_FLTOVF_FAULT X- Floating divide by zero fault SIGFPE FPE_FLTDIV_FAULT X- Floating underflow fault SIGFPE FPE_FLTUND_FAULT X- Length access control SIGSEGV X- Protection violation SIGBUS X- Reserved instruction SIGILL ILL_RESAD_FAULT X- Customer-reserved instr. SIGEMT X- Reserved operand SIGILL ILL_PRIVIN_FAULT X- Reserved addressing SIGILL ILL_RESOP_FAULT X- Trace pending SIGTRAP X- Bpt instruction SIGTRAP X- Compatibility-mode SIGILL hardware supplied code X- Chme SIGSEGV X- Chms SIGSEGV X- Chmu SIGSEGV X- .fi X- .SH "NOTES (PDP-11)" X- The handler routine can be declared: X- .PP X- handler(sig, code, scp) X- int sig, code; X- struct sigcontext *scp; X- .PP X Here \fIsig\fP is the signal number, into which the hardware faults and X! traps are mapped as defined below. \fICode\fP is a parameter that is a X! constant as given below. \fIScp\fP is a pointer to the \fIsigcontext\fP X! structure (defined in <\fIsignal.h\fP>), used to restore the context from X before the signal. X .PP X The following defines the mapping of hardware traps to signals X! and codes. All of these symbols are defined in <\fIsignal.h\fP>: X .LP X .ta \w' Floating/decimal divide by zero 'u +\w'15* 'u +8n X .nf X! Hardware condition Signal Code X X Arithmetic traps: X! Floating overflow trap SIGFPE FPE_FLTOVF_TRAP X! Floating/decimal division by zero SIGFPE FPE_FLTDIV_TRAP X! Floating underflow trap SIGFPE FPE_FLTUND_TRAP X! Decimal overflow trap SIGFPE FPE_DECOVF_TRAP X! Illegal return code SIGFPE FPE_CRAZY X! Bad op code SIGFPE FPE_OPCODE_TRAP X! Bad operand SIGFPE FPE_OPERAND_TRAP X! Maintenance trap SIGFPE FPE_MAINT_TRAP X Length access control SIGSEGV X Protection violation (odd address) SIGBUS X! Reserved instruction SIGILL ILL_RESAD_FAULT X Customer-reserved instr. SIGEMT X Trace pending SIGTRAP X Bpt instruction SIGTRAP X .fi X .DT X .PP X The handler routine must save any registers it uses and restore them before X! returning. On the PDP-11, the kernel saves \fIr0\fP and \fIr1\fP before X calling the handler routine, but expect the handler to save any other X registers it uses. The standard entry code generated by the C compiler for X handler routines written in C automatically saves the remaining general X--- 246,290 ---- X int sig, code; X struct sigcontext *scp; X .PP X Here \fIsig\fP is the signal number, into which the hardware faults and X! traps are mapped as defined below. \fIcode\fP is a parameter that is a X! constant as given below. \fIscp\fP is a pointer to the \fBsigcontext\fP X! structure (defined in <\fBsignal.h\fP>), used to restore the context from X before the signal. X .PP X The following defines the mapping of hardware traps to signals X! and codes. All of these symbols are defined in <\fBsignal.h\fP>: X .LP X .ta \w' Floating/decimal divide by zero 'u +\w'15* 'u +8n X .nf X! Hardware condition Signal X X Arithmetic traps: X! Floating overflow trap SIGFPE X! Floating/decimal division by zero SIGFPE X! Floating underflow trap SIGFPE X! Decimal overflow trap SIGFPE X! Illegal return code SIGFPE X! Bad op code SIGFPE X! Bad operand SIGFPE X! Maintenance trap SIGFPE X Length access control SIGSEGV X Protection violation (odd address) SIGBUS X! Reserved instruction SIGILL X Customer-reserved instr. SIGEMT X Trace pending SIGTRAP X Bpt instruction SIGTRAP X .fi X+ .PP X+ SIGFPE handlers must use X+ .BR fperr (2) X+ to obtain the floating point error registers. See the comments in X+ .B X+ or consult the PDP-11 processor handbook for more information. X .DT X .PP X The handler routine must save any registers it uses and restore them before X! returning. The kernel saves \fIr0\fP and \fIr1\fP before X calling the handler routine, but expect the handler to save any other X registers it uses. The standard entry code generated by the C compiler for X handler routines written in C automatically saves the remaining general X*************** X*** 338,342 **** X there is currently no [standard] method for a handler routine written in C X to perform floating point operations without blowing the interrupted program X out of the water. X- .SH BUGS X- This manual page is still confusing. X--- 292,294 ---- X*** ./usr/src/man/man2/sigwait.2.old Sun Feb 13 13:42:14 2000 X--- ./usr/src/man/man2/sigwait.2 Tue Sep 22 17:15:46 2026 X*************** X*** 1,4 **** X! .\" @(#)sigwait.2 1.0 (2.11BSD) 1999/9/10 X .\" X .TH SIGACTION 2 "September 10, 1999" X .UC 7 X--- 1,4 ---- X! .\" @(#)sigwait.2 1.1 (2.11BSD) 2026/9/22 X .\" X .TH SIGACTION 2 "September 10, 1999" X .UC 7 X*************** X*** 5,20 **** X .SH NAME X \fBsigwait\fP \- wait for a signal X .SH SYNOPSIS X! .B #include X! .sp X int X! \fBsigwait\fP(set, sig) X! .br X! .I sigset_t *set; X! .br X! .I int *sig; X .SH DESCRIPTION X! .B Sigwait X checks for a pending signal in X .IR set , X clears it from the set of pending signals and returns the signal number X--- 5,20 ---- X .SH NAME X \fBsigwait\fP \- wait for a signal X .SH SYNOPSIS X! .nf X! .ft B X! #include X! X int X! sigwait(\fIsigset_t *set\fP, \fIint *sig\fP) X! .ft R X! .fi X .SH DESCRIPTION X! .B sigwait X checks for a pending signal in X .IR set , X clears it from the set of pending signals and returns the signal number X*************** X*** 50,56 **** X argument contains an invalid or unsupported signal number. X .TP 20 X EFAULT X! .I Sig X points to memory that is not a valid part of the process address space. X .SH SEE ALSO X sigprocmask(2) X--- 50,56 ---- X argument contains an invalid or unsupported signal number. X .TP 20 X EFAULT X! .I sig X points to memory that is not a valid part of the process address space. X .SH SEE ALSO X sigprocmask(2) X*** ./usr/src/man/man2/close.2.old Sun Dec 14 18:06:49 1986 X--- ./usr/src/man/man2/close.2 Wed Sep 23 07:47:59 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)close.2 6.3 (Berkeley) 5/22/86 X .\" X .TH CLOSE 2 "May 22, 1986" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)close.2 6.4 (2.11BSD) 2026/9/23 X .\" X .TH CLOSE 2 "May 22, 1986" X .UC 4 X*************** X*** 9,20 **** X .SH NAME X close \- delete a descriptor X .SH SYNOPSIS X! .B close(d) X! .br X! .B "int d;" X .SH DESCRIPTION X! The X! \fIclose\fP call deletes a descriptor from the per-process object X reference table. X If this is the last reference to the underlying object, then X it will be deactivated. X--- 9,25 ---- X .SH NAME X close \- delete a descriptor X .SH SYNOPSIS X! .nf X! .ft B X! #include X! X! int X! close(\fIint d\fP) X! .ft R X! .fi X .SH DESCRIPTION X! .B close X! deletes a descriptor from the per-process object X reference table. X If this is the last reference to the underlying object, then X it will be deactivated. X*************** X*** 21,70 **** X For example, on the last close of a file X the current \fIseek\fP pointer associated with the file is lost; X on the last close of a X! .IR socket (2) X associated naming information and queued data are discarded; X on the last close of a file holding an advisory lock X! the lock is released (see further X! .IR flock (2)\fR). X .PP X A close of all of a process's descriptors is automatic on X! .IR exit , X but since X there is a limit on the number of active descriptors per process, X! .I close X is necessary for programs that deal with many descriptors. X .PP X When a process forks (see X! .IR fork (2)), X all descriptors for the new child process reference the same X objects as they did in the parent before the fork. X If a new process is then to be run using X! .IR execve (2), X the process would normally inherit these descriptors. Most X of the descriptors can be rearranged with X! .IR dup2 (2) X or deleted with X! .I close X before the X! .I execve X is attempted, but if some of these descriptors will still X! be needed if the execve fails, it is necessary to arrange for them X! to be closed if the execve succeeds. X! For this reason, the call ``fcntl(d, F_SETFD, 1)'' is provided, X which arranges that a descriptor will be closed after a successful X! execve; the call ``fcntl(d, F_SETFD, 0)'' restores the default, X which is to not close the descriptor. X .SH "RETURN VALUE X Upon successful completion, a value of 0 is returned. X Otherwise, a value of \-1 is returned and the global integer variable X! .I errno X is set to indicate the error. X .SH ERRORS X! .I Close X will fail if: X .TP 15 X [EBADF] X! \fID\fP is not an active descriptor. X .SH "SEE ALSO" X! accept(2), flock(2), open(2), pipe(2), socket(2), socketpair(2), X! execve(2), fcntl(2) X--- 26,74 ---- X For example, on the last close of a file X the current \fIseek\fP pointer associated with the file is lost; X on the last close of a X! .BR socket (2) X associated naming information and queued data are discarded; X on the last close of a file holding an advisory lock X! the lock is released (see X! .BR flock (2)\fR). X .PP X A close of all of a process's descriptors is automatic on X! .BR exit , X but since X there is a limit on the number of active descriptors per process, X! .B close X is necessary for programs that deal with many descriptors. X .PP X When a process forks (see X! .BR fork (2)\fR) X all descriptors for the new child process reference the same X objects as they did in the parent before the fork. X If a new process is then to be run using X! .BR execve (2), X the process would normally inherit these descriptors. Most X of the descriptors can be rearranged with X! .BR dup2 (2) X or deleted with X! .B close X before the X! .B execve X is attempted, but if some of these descriptors will still X! be needed if \fBexecve\fP fails, it is necessary to arrange for them X! to be closed if \fBexecve\fP succeeds. X! For this reason, the call \fBfcntl\fP(d, F_SETFD, 1) is provided, X which arranges that a descriptor will be closed after a successful X! \fBexecve\fP; the call \fBfcntl\fP(d, F_SETFD, 0) restores the default, X which is to not close the descriptor. X .SH "RETURN VALUE X Upon successful completion, a value of 0 is returned. X Otherwise, a value of \-1 is returned and the global integer variable X! .B errno X is set to indicate the error. X .SH ERRORS X! .B close X will fail if: X .TP 15 X [EBADF] X! \fId\fP is not an active descriptor. X .SH "SEE ALSO" X! open(2), pipe(2), socket(2), execve(2), fcntl(2) X*** ./usr/src/man/man2/exit.2.old Sun Dec 14 18:06:49 1986 X--- ./usr/src/man/man2/exit.2 Wed Sep 23 08:14:16 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)exit.2 6.4 (Berkeley) 5/22/86 X .\" X .TH EXIT 2 "May 22, 1986" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)exit.2 6.5 (2.11BSD) 2026/9/23 X .\" X .TH EXIT 2 "May 22, 1986" X .UC 4 X*************** X*** 11,49 **** X .SH SYNOPSIS X .nf X .ft B X! _exit(status) X! int status; X .fi X .SH DESCRIPTION X! .I _exit X terminates a process with the following consequences: X .in +5n X .PP X! All of the descriptors open in the calling process are closed. X This may entail delays, for example, waiting for output to drain; X a process in this state may not be killed, as it is already dying. X .PP X If the parent process of the calling process is executing a X! .I wait X or is interested in the SIGCHLD signal, X then it is notified of the calling process's termination and X the low-order eight bits of \fIstatus\fP are made available to it; X see X! .IR wait (2). X .PP X The parent process ID of all of the calling process's existing child X processes are also set to 1. This means that the initialization process X (see X! .IR intro (2)) X inherits each of these processes as well. X Any stopped children are restarted with a hangup signal (SIGHUP). X .in -5n X .PP X Most C programs call the library routine X! .IR exit (3), X which performs cleanup actions in the standard I/O library before X! calling \fI_exit\fP\|. X .SH "RETURN VALUE" X This call never returns. X .SH "SEE ALSO" X! fork(2), sigvec(2), wait(2), exit(3) X--- 11,52 ---- X .SH SYNOPSIS X .nf X .ft B X! #include X! X! void X! _exit(\fIstatus\fP) X! .ft R X .fi X .SH DESCRIPTION X! .B _exit X terminates a process with the following consequences: X .in +5n X .PP X! All the file descriptors open in the calling process are closed. X This may entail delays, for example, waiting for output to drain; X a process in this state may not be killed, as it is already dying. X .PP X If the parent process of the calling process is executing a X! .B wait X or is interested in the SIGCHLD signal, X then it is notified of the calling process's termination and X the low-order eight bits of \fIstatus\fP are made available to it; X see X! .BR wait (2). X .PP X The parent process ID of all of the calling process's existing child X processes are also set to 1. This means that the initialization process X (see X! .BR intro (2)) X inherits each of these processes as well. X Any stopped children are restarted with a hangup signal (SIGHUP). X .in -5n X .PP X Most C programs call the library routine X! .BR exit (3), X which performs cleanup actions in the standard I/O library before X! calling \fB_exit\fP\|. X .SH "RETURN VALUE" X This call never returns. X .SH "SEE ALSO" X! fork(2), sigaction(2), wait(2), exit(3) X*** ./usr/src/man/man2/sync.2.old Sun Dec 14 18:06:52 1986 X--- ./usr/src/man/man2/sync.2 Wed Sep 23 08:22:52 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)sync.2 6.2 (Berkeley) 6/30/85 X .\" X .TH SYNC 2 "June 30, 1985" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)sync.2 6.3 (2.11BSD) 2026/9/23 X .\" X .TH SYNC 2 "June 30, 1985" X .UC 4 X*************** X*** 9,32 **** X .SH NAME X sync \- update super-block X .SH SYNOPSIS X! .B sync() X .SH DESCRIPTION X! .I Sync X causes all information in core X memory that should be on disk to be written out. X This includes modified super blocks, X modified i-nodes, and delayed block I/O. X .PP X! .I Sync X should be used by programs that examine a file system, X for example X! .I "fsck, df," X! etc. X! .I Sync X! is mandatory before a boot. X .SH "SEE ALSO" X fsync(2), sync(8), update(8) X .SH BUGS X The writing, although scheduled, is not necessarily X complete upon return from X! .IR sync . X--- 9,38 ---- X .SH NAME X sync \- update super-block X .SH SYNOPSIS X! .nf X! .ft B X! #include X! X! void X! sync(\fIvoid\fP) X .SH DESCRIPTION X! .B sync X causes all information in core X memory that should be on disk to be written out. X This includes modified super blocks, X modified i-nodes, and delayed block I/O. X .PP X! .B sync X should be used by programs that examine a file system, X for example X! .BR fsck (8) . X! .PP X! .B sync X! is mandatory before X! .BR halt (8) . X .SH "SEE ALSO" X fsync(2), sync(8), update(8) X .SH BUGS X The writing, although scheduled, is not necessarily X complete upon return from X! .BR sync . X*** ./usr/src/man/man2/link.2.old Sun Dec 14 18:06:49 1986 X--- ./usr/src/man/man2/link.2 Wed Sep 23 08:29:39 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)link.2 6.3 (Berkeley) 8/26/85 X .\" X .TH LINK 2 "August 26, 1985" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)link.2 6.4 (2.11BSD) 2026/9/23 X .\" X .TH LINK 2 "August 26, 1985" X .UC 4 X*************** X*** 11,18 **** X .SH SYNOPSIS X .nf X .ft B X! link(name1, name2) X! char *name1, *name2; X .fi X .ft R X .SH DESCRIPTION X--- 11,20 ---- X .SH SYNOPSIS X .nf X .ft B X! #include X! X! int X! link(\fIconst char *name1\fP, \fIconst char *name2\fP) X .fi X .ft R X .SH DESCRIPTION X*************** X*** 22,28 **** X is created; X the link has the name X .IR name2 . X! .I Name1 X must exist. X .PP X With hard links, X--- 24,30 ---- X is created; X the link has the name X .IR name2 . X! .I name1 X must exist. X .PP X With hard links, X*************** X*** 35,50 **** X .I name1 X must not be a directory. X Both the old and the new X! .I link X share equal access and rights to X the underlying object. X .SH "RETURN VALUE X Upon successful completion, a value of 0 is returned. Otherwise, X a value of \-1 is returned and X! .I errno X is set to indicate the error. X .SH "ERRORS X! .I Link X will fail and no link will be created if one or more of the following X are true: X .TP 15 X--- 37,52 ---- X .I name1 X must not be a directory. X Both the old and the new X! .B link X share equal access and rights to X the underlying object. X .SH "RETURN VALUE X Upon successful completion, a value of 0 is returned. Otherwise, X a value of \-1 is returned and X! .B errno X is set to indicate the error. X .SH "ERRORS X! .B link X will fail and no link will be created if one or more of the following X are true: X .TP 15 X*** ./usr/src/man/man2/acct.2.old Sun Dec 14 18:06:51 1986 X--- ./usr/src/man/man2/acct.2 Wed Sep 23 09:00:10 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)acct.2 6.4 (Berkeley) 5/22/86 X .\" X .TH ACCT 2 "May 22, 1986" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)acct.2 6.5 (2.11BSD) 2026/9/23 X .\" X .TH ACCT 2 "May 22, 1986" X .UC 4 X*************** X*** 11,18 **** X .SH SYNOPSIS X .nf X .ft B X! acct(file) X! char *file; X .ft R X .fi X .SH DESCRIPTION X--- 11,20 ---- X .SH SYNOPSIS X .nf X .ft B X! #include X! X! int X! acct(\fIconst char *file\fP) X .ft R X .fi X .SH DESCRIPTION X*************** X*** 28,46 **** X An argument of 0 causes accounting to be turned off. X .PP X The accounting file format is given in X! .IR acct (5). X .PP X This call is permitted only to the super-user. X .SH NOTES X Accounting is automatically disabled when the file system the X accounting file resides on runs out of space; it is enabled when X! space once again becomes available. X .SH "RETURN VALUE X On error \-1 is returned. X The file must exist and the call may be exercised only by the super-user. X It is erroneous to try to turn on accounting when it is already on. X .SH ERRORS X! .I Acct X will fail if one of the following is true: X .TP 15 X [EPERM] X--- 30,50 ---- X An argument of 0 causes accounting to be turned off. X .PP X The accounting file format is given in X! .BR acct (5). X .PP X This call is permitted only to the super-user. X .SH NOTES X Accounting is automatically disabled when the file system the X accounting file resides on runs out of space; it is enabled when X! space once again becomes available. See X! .BR acctd (8) X! for more information. X .SH "RETURN VALUE X On error \-1 is returned. X The file must exist and the call may be exercised only by the super-user. X It is erroneous to try to turn on accounting when it is already on. X .SH ERRORS X! .B acct X will fail if one of the following is true: X .TP 15 X [EPERM] X*************** X*** 76,82 **** X [EIO] X An I/O error occurred while reading from or writing to the file system. X .SH "SEE ALSO" X! acct(5), sa(8) X .SH BUGS X No accounting is produced for programs running X when a crash occurs. X--- 80,86 ---- X [EIO] X An I/O error occurred while reading from or writing to the file system. X .SH "SEE ALSO" X! accton(8), acct(5), acctd(8), sa(8) X .SH BUGS X No accounting is produced for programs running X when a crash occurs. X*** ./usr/src/man/man2/open.2.old Thu Dec 15 22:46:40 1994 X--- ./usr/src/man/man2/open.2 Thu Sep 24 10:02:19 2026 X*************** X*** 2,25 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)open.2 6.4.1 (2.11BSD GTE) 11/30/94 X .\" X .TH OPEN 2 "Nov 30, 1994" X .UC 4 X .SH NAME X! open \- open a file for reading or writing, or create a new file X .SH SYNOPSIS X .nf X .ft B X #include X! .PP X! .ft B X! open(path, flags, mode) X! char *path; X! int flags, mode; X .fi X .SH DESCRIPTION X! .I Open X opens the file X .I path X for reading and/or writing, as specified by the X--- 2,24 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)open.2 6.4.2 (2.11BSD) 2026/9/24 X .\" X .TH OPEN 2 "Nov 30, 1994" X .UC 4 X .SH NAME X! open \- open file for reading or writing or creation X .SH SYNOPSIS X .nf X .ft B X #include X! X! int X! open(\fIchar *path\fP, \fIint flags\fP, \fIint mode\fP) X! .ft R X .fi X .SH DESCRIPTION X! .B open X opens the file X .I path X for reading and/or writing, as specified by the X*************** X*** 32,42 **** X O_CREAT flag), in which case the file is created with mode X .I mode X as described in X! .IR chmod (2) X and modified by the process' umask value (see X! .IR umask (2)). X .PP X! .I Path X is the address of a string of ASCII characters representing X a path name, terminated by a null character. X The flags specified are formed by X--- 31,41 ---- X O_CREAT flag), in which case the file is created with mode X .I mode X as described in X! .BR chmod (2) X and modified by the process' umask value (see X! .BR umask (2)). X .PP X! .I path X is the address of a string of ASCII characters representing X a path name, terminated by a null character. X The flags specified are formed by X*************** X*** 78,84 **** X is currently unimplemented (it will be Real Soon Now). X .PP X When opening a file, a lock with X! .IR flock(2) X semantics can be obtained by X setting O_SHLOCK for a shared lock, or O_EXLOCK for an exclusive lock. X If creating a file with O_CREAT, the request for the lock will never X--- 77,83 ---- X is currently unimplemented (it will be Real Soon Now). X .PP X When opening a file, a lock with X! .BR flock(2) X semantics can be obtained by X setting O_SHLOCK for a shared lock, or O_EXLOCK for an exclusive lock. X If creating a file with O_CREAT, the request for the lock will never X*************** X*** 90,102 **** X file is set to the beginning of the file. X .PP X The new descriptor is set to remain open across X! .IR execve X! system calls; see X! .IR close (2). X .PP X The system imposes a limit on the number of file descriptors X open simultaneously by one process. X! .IR Getdtablesize (2) X returns the current system limit. X .SH "ERRORS X The named file is opened unless one or more of the X--- 89,101 ---- X file is set to the beginning of the file. X .PP X The new descriptor is set to remain open across X! .BR execve (3) X! system call; see X! .BR close (2). X .PP X The system imposes a limit on the number of file descriptors X open simultaneously by one process. X! .BR getdtablesize (2) X returns the current system limit. X .SH "ERRORS X The named file is opened unless one or more of the X*** ./usr/src/man/man2/socket.2.old Sun Dec 14 18:07:06 1986 X--- ./usr/src/man/man2/socket.2 Mon Sep 28 10:35:38 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)socket.2 6.5 (Berkeley) 5/23/86 X .\" X .TH SOCKET 2 "May 23, 1986" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)socket.2 6.6 (2.11BSD) 2026/9/28 X .\" X .TH SOCKET 2 "May 23, 1986" X .UC 5 X*************** X*** 13,25 **** X .ft B X #include X #include X! .PP X! .ft B X! s = socket(domain, type, protocol) X! int s, domain, type, protocol; X .fi X .SH DESCRIPTION X! .I Socket X creates an endpoint for communication and returns a descriptor. X .PP X The X--- 13,25 ---- X .ft B X #include X #include X! X! int X! socket(\fIint domain\fP, \fIint type\fP, \fIint protocol\fP) X! .ft R X .fi X .SH DESCRIPTION X! .B socket X creates an endpoint for communication and returns a descriptor. X .PP X The X*************** X*** 54,60 **** X SOCK_DGRAM X SOCK_RAW X SOCK_SEQPACKET X- SOCK_RDM X .fi X .RE X .PP X--- 54,59 ---- X*************** X*** 71,80 **** X This facility is protocol specific, and presently implemented X only for PF_NS. X SOCK_RAW sockets provide access to internal network protocols and interfaces. X! The types SOCK_RAW, X! which is available only to the super-user, and X! SOCK_RDM, which is planned, X! but not yet implemented, are not described here. X .PP X The X .I protocol X--- 70,78 ---- X This facility is protocol specific, and presently implemented X only for PF_NS. X SOCK_RAW sockets provide access to internal network protocols and interfaces. X! The type SOCK_RAW X! is available only to the super-user X! and is not described here. X .PP X The X .I protocol X*************** X*** 85,91 **** X must be specified in this manner. The protocol number to use is X particular to the \*(lqcommunication domain\*(rq in which communication X is to take place; see X! .IR protocols (3N). X .PP X Sockets of type SOCK_STREAM X are full-duplex byte streams, similar X--- 83,89 ---- X must be specified in this manner. The protocol number to use is X particular to the \*(lqcommunication domain\*(rq in which communication X is to take place; see X! .BR protocols (3). X .PP X Sockets of type SOCK_STREAM X are full-duplex byte streams, similar X*************** X*** 93,114 **** X .I connected X state before any data may be sent or received X on it. A connection to another socket is created with a X! .IR connect (2) X call. Once connected, data may be transferred using X! .IR read (2) X and X! .IR write (2) X calls or some variant of the X! .IR send (2) X and X! .IR recv (2) X calls. When a session has been completed a X! .IR close (2) X may be performed. X Out-of-band data may also be transmitted as described in X! .IR send (2) X and received as described in X! .IR recv (2). X .PP X The communications protocols used to implement a X SOCK_STREAM insure that data X--- 91,112 ---- X .I connected X state before any data may be sent or received X on it. A connection to another socket is created with a X! .BR connect (2) X call. Once connected, data may be transferred using X! .BR read (2) X and X! .BR write (2) X calls or some variant of the X! .BR send (2) X and X! .BR recv (2) X calls. When a session has been completed a X! .BR close (2) X may be performed. X Out-of-band data may also be transmitted as described in X! .BR send (2) X and received as described in X! .BR recv (2). X .PP X The communications protocols used to implement a X SOCK_STREAM insure that data X*************** X*** 132,138 **** X SOCK_SEQPACKET sockets employ the same system calls X as SOCK_STREAM sockets. The only difference X is that X! .IR read (2) X calls will return only the amount of data requested, X and any remaining in the arriving packet will be discarded. X .PP X--- 130,136 ---- X SOCK_SEQPACKET sockets employ the same system calls X as SOCK_STREAM sockets. The only difference X is that X! .BR read (2) X calls will return only the amount of data requested, X and any remaining in the arriving packet will be discarded. X .PP X*************** X*** 139,151 **** X SOCK_DGRAM and SOCK_RAW X sockets allow sending of datagrams to correspondents X named in X! .IR send (2) X calls. Datagrams are generally received with X! .IR recvfrom (2), X which returns the next datagram with its return address. X .PP X An X! .IR fcntl (2) X call can be used to specify a process group to receive X a SIGURG signal when the out-of-band data arrives. X It may also enable non-blocking I/O X--- 137,149 ---- X SOCK_DGRAM and SOCK_RAW X sockets allow sending of datagrams to correspondents X named in X! .BR send (2) X calls. Datagrams are generally received with X! .BR recvfrom (2), X which returns the next datagram with its return address. X .PP X An X! .BR fcntl (2) X call can be used to specify a process group to receive X a SIGURG signal when the out-of-band data arrives. X It may also enable non-blocking I/O X*************** X*** 156,170 **** X .IR options . X These options are defined in the file X .RI < sys/socket.h >. X! .IR Setsockopt (2) X and X! .IR getsockopt (2) X are used to set and get options, respectively. X .SH "RETURN VALUE X A \-1 is returned if an error occurs, otherwise the return X value is a descriptor referencing the socket. X .SH "ERRORS X! The \fIsocket\fP call fails if: X .TP 20 X [EPROTONOSUPPORT] X The protocol type or the specified protocol is not supported X--- 154,168 ---- X .IR options . X These options are defined in the file X .RI < sys/socket.h >. X! .BR setsockopt (2) X and X! .BR getsockopt (2) X are used to set and get options, respectively. X .SH "RETURN VALUE X A \-1 is returned if an error occurs, otherwise the return X value is a descriptor referencing the socket. X .SH "ERRORS X! The \fBsocket\fP call fails if: X .TP 20 X [EPROTONOSUPPORT] X The protocol type or the specified protocol is not supported X*************** X*** 187,194 **** X accept(2), bind(2), connect(2), getsockname(2), getsockopt(2), X ioctl(2), listen(2), read(2), recv(2), X select(2), send(2), shutdown(2), socketpair(2), write(2) X! .br X ``An Introductory 4.3BSD Interprocess Communication Tutorial.'' X (reprinted in UNIX Programmer's Supplementary Documents Volume 1, PS1:7) X ``An Advanced 4.3BSD Interprocess Communication Tutorial.'' X (reprinted in UNIX Programmer's Supplementary Documents Volume 1, PS1:8) X--- 185,193 ---- X accept(2), bind(2), connect(2), getsockname(2), getsockopt(2), X ioctl(2), listen(2), read(2), recv(2), X select(2), send(2), shutdown(2), socketpair(2), write(2) X! .sp X ``An Introductory 4.3BSD Interprocess Communication Tutorial.'' X (reprinted in UNIX Programmer's Supplementary Documents Volume 1, PS1:7) X+ .sp X ``An Advanced 4.3BSD Interprocess Communication Tutorial.'' X (reprinted in UNIX Programmer's Supplementary Documents Volume 1, PS1:8) X*** ./usr/src/man/man2/fcntl.2.old Wed Nov 30 22:50:05 1994 X--- ./usr/src/man/man2/fcntl.2 Thu Sep 24 16:49:31 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)fcntl.2 6.4.1 (2.11BSD GTE) 11/30/94 X .\" X .TH FCNTL 2 "Nov 30, 1994" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)fcntl.2 6.4.1 (2.11BSD) 2026/9/24 X .\" X .TH FCNTL 2 "Nov 30, 1994" X .UC 5 X*************** X*** 12,25 **** X .nf X .ft B X #include X! .PP X! .ft B X! res = fcntl(fd, cmd, arg) X! int res; X! int fd, cmd, arg; X .ft R X .SH DESCRIPTION X! .I Fcntl X provides for control over descriptors. X The argument X .I fd X--- 12,24 ---- X .nf X .ft B X #include X! X! int X! fcntl(\fIint fd\fP, \fIint cmd\fP, \fIint arg\fP) X .ft R X+ .nf X .SH DESCRIPTION X! .B fcntl X provides for control over descriptors. X The argument X .I fd X*************** X*** 31,37 **** X Return a new descriptor as follows: X .IP X Lowest numbered available descriptor greater than or equal to X! .I arg. X .IP X Same object references as the original descriptor. X .IP X--- 30,36 ---- X Return a new descriptor as follows: X .IP X Lowest numbered available descriptor greater than or equal to X! .IR arg . X .IP X Same object references as the original descriptor. X .IP X*************** X*** 45,51 **** X .IP X The close-on-exec flag associated with the new file descriptor X is set to remain open across X! .IR execv (2) X system calls. X .TP 15 X F_GETFD X--- 44,50 ---- X .IP X The close-on-exec flag associated with the new file descriptor X is set to remain open across X! .BR execv (2) X system calls. X .TP 15 X F_GETFD X*************** X*** 52,60 **** X Get the close-on-exec flag associated with the file descriptor X .IR fd . X If the low-order bit is 0, the file will remain open across X! .IR exec , X otherwise the file will be closed upon execution of X! .I exec. X .TP 15 X F_SETFD X Set the close-on-exec flag associated with X--- 51,59 ---- X Get the close-on-exec flag associated with the file descriptor X .IR fd . X If the low-order bit is 0, the file will remain open across X! .BR exec (2), X otherwise the file will be closed upon execution of X! .BR exec . X .TP 15 X F_SETFD X Set the close-on-exec flag associated with X*************** X*** 88,94 **** X .TP 15 X O_NONBLOCK X Non-blocking I/O; if no data is available to a X! .I read X call, or if a write operation would block, X the call returns -1 with the error EWOULDBLOCK. X .TP X--- 87,93 ---- X .TP 15 X O_NONBLOCK X Non-blocking I/O; if no data is available to a X! .BR read (2) X call, or if a write operation would block, X the call returns -1 with the error EWOULDBLOCK. X .TP X*************** X*** 95,101 **** X O_APPEND X Force each write to append at the end of file; X corresponds to the O_APPEND flag of X! .IR open (2). X .TP X O_ASYNC X Enable the SIGIO signal to be sent to the process group X--- 94,100 ---- X O_APPEND X Force each write to append at the end of file; X corresponds to the O_APPEND flag of X! .BR open (2). X .TP X O_ASYNC X Enable the SIGIO signal to be sent to the process group X*************** X*** 105,111 **** X Upon successful completion, the value returned depends on X .I cmd X as follows: X! .sp .5v X .nf X .ta .25i 1.25i X F_DUPFD A new file descriptor. X--- 104,110 ---- X Upon successful completion, the value returned depends on X .I cmd X as follows: X! .sp X .nf X .ta .25i 1.25i X F_DUPFD A new file descriptor. X*************** X*** 114,125 **** X F_GETOWN Value of file descriptor owner. X other Value other than \-1. X .fi X! .sp .5v X Otherwise, a value of \-1 is returned and X! .I errno X is set to indicate the error. X .SH ERRORS X! .I Fcntl X will fail if one or more of the following are true: X .TP 15 X [EBADF] X--- 113,124 ---- X F_GETOWN Value of file descriptor owner. X other Value other than \-1. X .fi X! .sp X Otherwise, a value of \-1 is returned and X! .B errno X is set to indicate the error. X .SH ERRORS X! .B fcntl X will fail if one or more of the following are true: X .TP 15 X [EBADF] X*************** X*** 127,146 **** X is not a valid open file descriptor. X .TP 15 X [EMFILE] X! .I Cmd X is F_DUPFD and the maximum allowed number of file descriptors are currently X open. X .TP 15 X [EINVAL] X! .I Cmd X is F_DUPFD and X .I arg X is negative or greater than the maximum allowable number X (see X! .IR getdtablesize (2)). X .TP 15 X [ESRCH] X! .I Cmd X is F_SETOWN and X the process ID given as argument is not in use. X .SH "SEE ALSO X--- 126,145 ---- X is not a valid open file descriptor. X .TP 15 X [EMFILE] X! .I cmd X is F_DUPFD and the maximum allowed number of file descriptors are currently X open. X .TP 15 X [EINVAL] X! .I cmd X is F_DUPFD and X .I arg X is negative or greater than the maximum allowable number X (see X! .BR getdtablesize (2)). X .TP 15 X [ESRCH] X! .I cmd X is F_SETOWN and X the process ID given as argument is not in use. X .SH "SEE ALSO X*** ./usr/src/man/man2/getgroups.2.old Sun Dec 14 18:07:02 1986 X--- ./usr/src/man/man2/getgroups.2 Mon Sep 28 10:09:47 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)getgroups.2 6.3 (Berkeley) 5/13/86 X .\" X .TH GETGROUPS 2 "May 13, 1986" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)getgroups.2 6.4 (2.11BSD) 2026/9/28 X .\" X .TH GETGROUPS 2 "May 13, 1986" X .UC 5 X*************** X*** 11,24 **** X .SH SYNOPSIS X .nf X .ft B X! #include X! .PP X! .ft B X! ngroups = getgroups(gidsetlen, gidset) X! int ngroups, gidsetlen, *gidset; X .fi X .SH DESCRIPTION X! .I Getgroups X gets the current group access list of the user process X and stores it in the array X .IR gidset . X--- 11,23 ---- X .SH SYNOPSIS X .nf X .ft B X! #include X! X! getgroups(\fIint gidsetlen\fP, \fIgid_t *gidset\fP) X! .ft R X .fi X .SH DESCRIPTION X! .B getgroups X gets the current group access list of the user process X and stores it in the array X .IR gidset . X*************** X*** 26,32 **** X .I gidsetlen X indicates the number of entries that may be placed in X .IR gidset. X! .I Getgroups X returns the actual number of groups returned in X .IR gidset . X No more than NGROUPS, as defined in X--- 25,31 ---- X .I gidsetlen X indicates the number of entries that may be placed in X .IR gidset. X! .B getgroups X returns the actual number of groups returned in X .IR gidset . X No more than NGROUPS, as defined in X*************** X*** 49,58 **** X The argument \fIgidset\fP specifies X an invalid address. X .SH "SEE ALSO X! setgroups(2), initgroups(3X) X! .SH BUGS X! The X! .I gidset X! array should be of type X! .BR gid_t , X! but remains integer for compatibility with earlier systems. X--- 48,51 ---- X The argument \fIgidset\fP specifies X an invalid address. X .SH "SEE ALSO X! setgroups(2), initgroups(3) X*** ./usr/src/man/man2/getsockopt.2.old Sun Dec 14 18:07:04 1986 X--- ./usr/src/man/man2/getsockopt.2 Mon Sep 28 10:20:21 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)getsockopt.2 6.4 (Berkeley) 5/23/86 X .\" X .TH GETSOCKOPT 2 "May 23, 1986" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)getsockopt.2 6.5 (2.11BSD) 2026/9/28 X .\" X .TH GETSOCKOPT 2 "May 23, 1986" X .UC 5 X*************** X*** 13,34 **** X .ft B X #include X #include X! .PP X! .ft B X! getsockopt(s, level, optname, optval, optlen) X! int s, level, optname; X! char *optval; X! int *optlen; X! .sp X! setsockopt(s, level, optname, optval, optlen) X! int s, level, optname; X! char *optval; X! int optlen; X .fi X .SH DESCRIPTION X! .I Getsockopt X and X! .I setsockopt X manipulate X .I options X associated with a socket. Options may exist at multiple X--- 13,28 ---- X .ft B X #include X #include X! X! getsockopt(\fIint s\fP, \fIint level\fP, \fIint optname\fP, \fIchar *optval\fP, \fIint *optlen\fP) X! X! setsockopt(\fIint s\fP, \fIint level\fP, \fIint optname\fP, \fIchar *optval\fP, \fIint optlen\fP) X! .ft R X .fi X .SH DESCRIPTION X! .B getsockopt X and X! .B setsockopt X manipulate X .I options X associated with a socket. Options may exist at multiple X*************** X*** 45,51 **** X to indicate that an option is to be interpreted by the TCP protocol, X .I level X should be set to the protocol number of TCP; see X! .IR getprotoent (3N). X .PP X The parameters X .I optval X--- 39,45 ---- X to indicate that an option is to be interpreted by the TCP protocol, X .I level X should be set to the protocol number of TCP; see X! .BR getprotoent (3). X .PP X The parameters X .I optval X*************** X*** 52,63 **** X and X .I optlen X are used to access option values for X! .IR setsockopt . X For X! .I getsockopt X they identify a buffer in which the value for the X requested option(s) are to be returned. For X! .IR getsockopt , X .I optlen X is a value-result parameter, initially containing the X size of the buffer pointed to by X--- 46,57 ---- X and X .I optlen X are used to access option values for X! .BR setsockopt . X For X! .B getsockopt X they identify a buffer in which the value for the X requested option(s) are to be returned. For X! .BR getsockopt , X .I optlen X is a value-result parameter, initially containing the X size of the buffer pointed to by X*************** X*** 68,74 **** X .I optval X may be supplied as 0. X .PP X! .I Optname X and any specified options are passed uninterpreted to the appropriate X protocol module for interpretation. X The include file X--- 62,68 ---- X .I optval X may be supplied as 0. X .PP X! .I optname X and any specified options are passed uninterpreted to the appropriate X protocol module for interpretation. X The include file X*************** X*** 75,81 **** X .RI < sys/socket.h > X contains definitions for ``socket'' level options, described below. X Options at other protocol levels vary in format and X! name; consult the appropriate entries in section (4P). X .PP X Most socket-level options take an X .I int X--- 69,75 ---- X .RI < sys/socket.h > X contains definitions for ``socket'' level options, described below. X Options at other protocol levels vary in format and X! name; consult the appropriate entries in section (4). X .PP X Most socket-level options take an X .I int X*************** X*** 82,88 **** X parameter for X .IR optval . X For X! .IR setsockopt , X the parameter should non-zero to enable a boolean option, X or zero if the option is to be disabled. X SO_LINGER uses a X--- 76,82 ---- X parameter for X .IR optval . X For X! .BR setsockopt , X the parameter should non-zero to enable a boolean option, X or zero if the option is to be disabled. X SO_LINGER uses a X*************** X*** 94,102 **** X .PP X The following options are recognized at the socket level. X Except as noted, each may be examined with X! .I getsockopt X and set with X! .IR setsockopt . X .PP X .RS X .ta \w'SO_BROADCAST\ \ \ \ 'u X--- 88,96 ---- X .PP X The following options are recognized at the socket level. X Except as noted, each may be examined with X! .B getsockopt X and set with X! .BR setsockopt . X .PP X .RS X .ta \w'SO_BROADCAST\ \ \ \ 'u X*************** X*** 118,124 **** X SO_DEBUG enables debugging in the underlying protocol modules. X SO_REUSEADDR indicates that the rules used in validating addresses supplied X in a X! .IR bind (2) X call should allow reuse of local addresses. SO_KEEPALIVE enables the X periodic transmission of messages on a connected socket. Should the X connected party fail to respond to these messages, the connection is X--- 112,118 ---- X SO_DEBUG enables debugging in the underlying protocol modules. X SO_REUSEADDR indicates that the rules used in validating addresses supplied X in a X! .BR bind (2) X call should allow reuse of local addresses. SO_KEEPALIVE enables the X periodic transmission of messages on a connected socket. Should the X connected party fail to respond to these messages, the connection is X*************** X*** 130,147 **** X .PP X SO_LINGER controls the action taken when unsent messags X are queued on socket and a X! .IR close (2) X is performed. X If the socket promises reliable delivery of data and SO_LINGER is set, X the system will block the process on the X! .I close X attempt until it is able to transmit the data or until it decides it X is unable to deliver the information (a timeout period, termed the X linger interval, is specified in the X! .IR setsockopt X call when SO_LINGER is requested). X If SO_LINGER is disabled and a X! .I close X is issued, the system will process the close in a manner that allows X the process to continue as quickly as possible. X .PP X--- 124,141 ---- X .PP X SO_LINGER controls the action taken when unsent messags X are queued on socket and a X! .BR close (2) X is performed. X If the socket promises reliable delivery of data and SO_LINGER is set, X the system will block the process on the X! .B close X attempt until it is able to transmit the data or until it decides it X is unable to deliver the information (a timeout period, termed the X linger interval, is specified in the X! .BR setsockopt X call when SO_LINGER is requested). X If SO_LINGER is disabled and a X! .B close X is issued, the system will process the close in a manner that allows X the process to continue as quickly as possible. X .PP X*************** X*** 151,159 **** X With protocols that support out-of-band data, the SO_OOBINLINE option X requests that out-of-band data be placed in the normal data input queue X as received; it will then be accessible with X! .I recv X or X! .I read X calls without the MSG_OOB flag. X SO_SNDBUF and SO_RCVBUF are options to adjust the normal X buffer sizes allocated for output and input buffers, respectively. X--- 145,153 ---- X With protocols that support out-of-band data, the SO_OOBINLINE option X requests that out-of-band data be placed in the normal data input queue X as received; it will then be accessible with X! .B recv X or X! .B read X calls without the MSG_OOB flag. X SO_SNDBUF and SO_RCVBUF are options to adjust the normal X buffer sizes allocated for output and input buffers, respectively. X*************** X*** 161,167 **** X or may be decreased to limit the possible backlog of incoming data. X The system places an absolute limit on these values. X Finally, SO_TYPE and SO_ERROR are options used only with X! .IR setsockopt . X SO_TYPE returns the type of the socket, such as SOCK_STREAM; X it is useful for servers that inherit sockets on startup. X SO_ERROR returns any pending error on the socket and clears X--- 155,161 ---- X or may be decreased to limit the possible backlog of incoming data. X The system places an absolute limit on these values. X Finally, SO_TYPE and SO_ERROR are options used only with X! .BR setsockopt . X SO_TYPE returns the type of the socket, such as SOCK_STREAM; X it is useful for servers that inherit sockets on startup. X SO_ERROR returns any pending error on the socket and clears X*************** X*** 187,197 **** X .I optval X is not in a valid part of the process address space. X For X! .IR getsockopt , X this error may also be returned if X .I optlen X is not in a valid part of the process address space. X .SH "SEE ALSO" X! ioctl(2), socket(2), getprotoent(3N) X .SH BUGS X Several of the socket options should be handled at lower levels of the system. X--- 181,191 ---- X .I optval X is not in a valid part of the process address space. X For X! .BR getsockopt , X this error may also be returned if X .I optlen X is not in a valid part of the process address space. X .SH "SEE ALSO" X! ioctl(2), socket(2), getprotoent(3) X .SH BUGS X Several of the socket options should be handled at lower levels of the system. X*** ./usr/src/man/man2/ioctl.2.old Sun Dec 14 18:06:49 1986 X--- ./usr/src/man/man2/ioctl.2 Mon Sep 28 12:11:51 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)ioctl.2 6.3 (Berkeley) 3/4/86 X .\" X .TH IOCTL 2 "March 4, 1986" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)ioctl.2 6.4 (2.11BSD) 2026/9/28 X .\" X .TH IOCTL 2 "March 4, 1986" X .UC 4 X*************** X*** 12,38 **** X .nf X .ft B X #include X! .PP X! .ft B X! ioctl(d, request, argp) X! int d; X! unsigned long request; X! char *argp; X! .fi X .ft R X .SH DESCRIPTION X! .I Ioctl X performs a variety of functions X on open descriptors. In particular, many operating X characteristics of character special files (e.g. terminals) X may be controlled with X! .I ioctl X requests. X The writeups of various devices in section 4 discuss how X! .I ioctl X applies to them. X .PP X! An ioctl X .I request X has encoded in it whether the argument is an \*(lqin\*(rq parameter X or \*(lqout\*(rq parameter, and the size of the argument \fIargp\fP in bytes. X--- 12,34 ---- X .nf X .ft B X #include X! X! ioctl(\fIint d\fP, \fIunsigned long request\fP, \fIchar *argp\fP) X .ft R X+ .fi X .SH DESCRIPTION X! .B ioctl X performs a variety of functions X on open descriptors. In particular, many operating X characteristics of character special files (e.g. terminals) X may be controlled with X! .B ioctl X requests. X The writeups of various devices in section 4 discuss how X! .B ioctl X applies to them. X .PP X! An \fBioctl\fP X .I request X has encoded in it whether the argument is an \*(lqin\*(rq parameter X or \*(lqout\*(rq parameter, and the size of the argument \fIargp\fP in bytes. X*************** X*** 42,51 **** X .IR . X .SH "RETURN VALUE X If an error has occurred, a value of \-1 is returned and X! .I errno X is set to indicate the error. X .SH ERRORS X! .I Ioctl X will fail if one or more of the following are true: X .TP 15 X [EBADF] X--- 38,47 ---- X .IR . X .SH "RETURN VALUE X If an error has occurred, a value of \-1 is returned and X! .B errno X is set to indicate the error. X .SH ERRORS X! .B ioctl X will fail if one or more of the following are true: X .TP 15 X [EBADF] X*************** X*** 62,65 **** X [EINVAL] X \fIRequest\fP or \fIargp\fP is not valid. X .SH "SEE ALSO" X! execve(2), fcntl(2), mt(4), tty(4), intro(4N) X--- 58,61 ---- X [EINVAL] X \fIRequest\fP or \fIargp\fP is not valid. X .SH "SEE ALSO" X! execve(2), fcntl(2), mt(4), tty(4), intro(4) X*** ./usr/src/man/man3/j0.3.old Sun Dec 14 18:07:17 1986 X--- ./usr/src/man/man3/j0.3 Sun Sep 27 18:41:26 2026 X*************** X*** 2,42 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)j0.3m 6.6 (Berkeley) 5/12/86 X .\" X! .TH J0 3M "May 12, 1986" X .UC 4 X .SH NAME X j0, j1, jn, y0, y1, yn \- bessel functions X .SH SYNOPSIS X .nf X! .B #include X! .PP X! .B double j0(x) X! .B double x; X! .PP X! .B double j1(x) X! .B double x; X! .PP X! .B double jn(n,x) X! .B int n; X! .B double x; X! .PP X! .B double y0(x) X! .B double x; X! .PP X! .B double y1(x) X! .B double x; X! .PP X! .B double yn(n,x) X! .B int n; X! .B double x; X .fi X .SH DESCRIPTION X These functions calculate Bessel functions of the first X and second kinds for real arguments and integer orders. X- .SH DIAGNOSTICS X- On a VAX, negative arguments cause y0, y1 and yn X- to return the reserved operand and set \fIerrno\fR to EDOM. X .SH SEE ALSO X! math(3M), infnan(3M) X--- 2,39 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)j0.3 6.7 (2.11BSD) 2026/9/27 X .\" X! .TH J0 3 "May 12, 1986" X .UC 4 X .SH NAME X j0, j1, jn, y0, y1, yn \- bessel functions X .SH SYNOPSIS X .nf X! .ft B X! #include X! X! double X! j0(\fIdouble x\fP) X! X! double X! j1(\fIdouble x\fP) X! X! double X! jn(\fIint n\fP, \fIdouble x\fP) X! X! double X! y0(\fI double x\fP) X! X! double X! y1(\fIdouble x\fP) X! X! double X! yn(\fIint n\fP, \fIdouble x\fP) X! .ft R X .fi X .SH DESCRIPTION X These functions calculate Bessel functions of the first X and second kinds for real arguments and integer orders. X .SH SEE ALSO X! math(3) X*** ./usr/src/man/man3/strtol.3.old Fri Jan 12 18:24:31 1996 X--- ./usr/src/man/man3/strtol.3 Mon Jan 26 12:41:27 2026 X*************** X*** 33,159 **** X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)strtol.3 8.1.1 (2.11BSD) 1996/1/12 X .\" X! .TH STRTOL 3 "January 12, 1996" X! .UC 7 X! .SH NAME X! \fBstrtol\fP \- convert string value to a long X! .SH SYNOPSIS X! .B #include X! .br X! .B #include X! .sp X! .B long X! .br X! \fBstrtol\fP(nptr, endptr, base) X! .br X! .I char *nptr; X! .br X! .I char **endptr; X! .br X! .I int base; X! .SH DESCRIPTION X The X! .BR strtol () X function X converts the string in X! .I nptr X to a X! .I long X value. X The conversion is done according to the given X! .IR base , X which must be between 2 and 36 inclusive, X or be the special value 0. X! .PP X The string may begin with an arbitrary amount of white space X (as determined by X! isspace(3)) X followed by a single optional X! `+' X or X! `\-' X sign. X If X! .I base X is zero or 16, X the string may then include a X! `0x' X prefix, X and the number will be read in base 16; otherwise, a zero X! .I base X is taken as 10 (decimal) unless the next character is X! `0', X in which case it is taken as 8 (octal). X! .PP X The remainder of the string is converted to a X! .I long X value in the obvious manner, X stopping at the first character which is not a valid digit X in the given base. X (In bases above 10, the letter X! `A' X in either upper or lower case X represents 10, X! `B' X represents 11, and so forth, with X! `Z' X representing 35.) X! .PP X If X! .I endptr X is non nil, X! .BR strtol () X stores the address of the first invalid character in X! .I *endptr . X If there were no digits at all, however, X! .BR strtol () X stores the original value of X! .I nptr X in X! .IR *endptr . X (Thus, if X! .I *nptr X is not X! `\e0' X but X! .I **endptr X is X! `\e0' X on return, the entire string was valid.) X! .SH RETURN VALUES X The X! .BR strtol () X function X returns the result of the conversion, X unless the value would underflow or overflow. X If an underflow occurs, X! .BR strtol () X returns X! .BR LONG_MIN . X If an overflow occurs, X! .BR strtol () X returns X! .BR LONG_MAX . X In both cases, X! .B errno X is set to X! .B ERANGE . X! .SH ERRORS X! .TP 15 X! [ERANGE] X The given string was out of range; the value converted has been clamped. X! .SH SEE ALSO X! atof(3), X! atoi(3), X! atol(3), X! strtoul(3) X! .SH STANDARDS X The X! .BR strtol () X function X conforms to X! ANSI C X3.159-1989 (``ANSI C''). X! .SH BUGS X Ignores the current locale. X--- 33,175 ---- X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)strtol.3 8.1.2 (2.11BSD) 2026/1/26 X .\" X! .Dd January 21, 2026 X! .Dt STRTOL 3 X! .Os X! .Sh NAME X! .Nm strtol , X! .Nm strtoimax X! .Nd convert string value to a long or intmax_t integer X! .Sh SYNOPSIS X! .Fd #include X! .Fd #include X! .Ft long X! .Fn strtol "char *nptr" "char **endptr" "int base" X! .Pp X! .Fd #include X! .Ft intmax_t X! .Fn strtoimax "const char * restrict nptr" "char ** restrict endptr" "int base" X! .Sh DESCRIPTION X The X! .Fn strtol X function X converts the string in X! .Fa nptr X to a X! .Fa long X value. X+ The X+ .Fn strtoimax X+ function X+ converts the string in X+ .Fa nptr X+ to an X+ .Ft intmax_t X+ value. X+ .Pp X The conversion is done according to the given X! .Fa base , X which must be between 2 and 36 inclusive, X or be the special value 0. X! .Pp X The string may begin with an arbitrary amount of white space X (as determined by X! .Xr isspace 3 ) X followed by a single optional X! .Ql + X or X! .Ql - X sign. X If X! .Fa base X is zero or 16, X the string may then include a X! .Ql 0x X prefix, X and the number will be read in base 16; otherwise, a zero X! .Fa base X is taken as 10 (decimal) unless the next character is X! .Ql 0 , X in which case it is taken as 8 (octal). X! .Pp X The remainder of the string is converted to a X! .Em long X! or X! .Em intmax_t X value in the obvious manner, X stopping at the first character which is not a valid digit X in the given base. X (In bases above 10, the letter X! .Ql A X in either upper or lower case X represents 10, X! .Ql B X represents 11, and so forth, with X! .Ql Z X representing 35.) X! .Pp X If X! .Fa endptr X is non nil, X! .Fn strtol X stores the address of the first invalid character in X! .Fa *endptr . X If there were no digits at all, however, X! .Fn strtol X stores the original value of X! .Fa nptr X in X! .Fa *endptr . X (Thus, if X! .Fa *nptr X is not X! .Ql \e0 X but X! .Fa **endptr X is X! .Ql \e0 X on return, the entire string was valid.) X! .Sh RETURN VALUES X The X! .Fn strtol X! and X! .Fn strtoimax X function X returns the result of the conversion, X unless the value would underflow or overflow. X If an underflow occurs, X! .Fn strtol X returns X! .Dv LONG_MIN . X If an overflow occurs, X! .Fn strtol X returns X! .Dv LONG_MAX . X In both cases, X! .Va errno X is set to X! .Er ERANGE . X! .Sh ERRORS X! .Bl -tag -width [ERANGE] X! .It Bq Er ERANGE X The given string was out of range; the value converted has been clamped. X! .El X! .Sh SEE ALSO X! .Xr atof 3 , X! .Xr atoi 3 , X! .Xr atol 3 , X! .Xr strtoul 3 X! .Sh STANDARDS X The X! .Fn strtol X function X conforms to X! .St -ansiC . X! The X! .Fn strtoimax X! function conform to X! .St -isoC-99 . X! .Sh BUGS X Ignores the current locale. X*** ./usr/src/man/man3/ctime.3.old Wed Nov 27 23:58:51 1996 X--- ./usr/src/man/man3/ctime.3 Fri May 8 15:58:57 2026 X*************** X*** 2,15 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)ctime.3 6.7.1 (2.11BSD) 1996/11/27 X .\" X! .TH CTIME 3 "November 27, 1996" X .UC 4 X .SH NAME X ctime, localtime, gmtime, asctime, timezone, tzset \- convert date and time to ASCII X .SH SYNOPSIS X .nf X .B void tzset() X .PP X .B char *ctime(clock) X--- 2,17 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)ctime.3 6.7.2 (2.11BSD) 2026/5/8 X .\" X! .TH CTIME 3 "May 8, 2026" X .UC 4 X .SH NAME X ctime, localtime, gmtime, asctime, timezone, tzset \- convert date and time to ASCII X .SH SYNOPSIS X .nf X+ .B #include X+ .PP X .B void tzset() X .PP X .B char *ctime(clock) X*** ./usr/src/man/man3/getwd.3.old Sun Dec 14 18:07:26 1986 X--- ./usr/src/man/man3/getwd.3 Fri May 8 15:43:11 2026 X*************** X*** 2,20 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)getwd.3 6.2 (Berkeley) 5/12/86 X .\" X! .TH GETWD 3 "May 12, 1986" X .UC 5 X .SH NAME X getwd \- get current working directory pathname X .SH SYNOPSIS X .nf X .B char *getwd(pathname) X .B char *pathname; X .fi X .SH DESCRIPTION X! .I Getwd X copies the absolute pathname of the current working directory to X .I pathname X and returns a pointer to the result. X--- 2,24 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)getwd.3 6.3 (2.11BSD) 2026/5/7 X .\" X! .TH GETWD 3 "May 7, 2026" X .UC 5 X .SH NAME X getwd \- get current working directory pathname X .SH SYNOPSIS X .nf X+ .ft B X+ #include X+ .PP X+ .nf X .B char *getwd(pathname) X .B char *pathname; X .fi X .SH DESCRIPTION X! .I getwd X copies the absolute pathname of the current working directory to X .I pathname X and returns a pointer to the result. X*************** X*** 23,29 **** X as defined in X .I . X .SH DIAGNOSTICS X! .I Getwd X returns zero and places a message in X .I pathname X if an error occurs. X--- 27,33 ---- X as defined in X .I . X .SH DIAGNOSTICS X! .I getwd X returns zero and places a message in X .I pathname X if an error occurs. X*** ./usr/src/man/man3/Makefile.old Wed Dec 24 20:15:05 2025 X--- ./usr/src/man/man3/Makefile Sun Sep 27 18:48:20 2026 X*************** X*** 14,20 **** X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.4.18 (2.11BSD) 2025/12/24 X # X MDIR= /usr/man/cat3 X SRCS1= abort.3 abs.3 alarm.3 asinh.3 assert.3 atof.3 bstring.3 byteorder.3 \ X--- 14,20 ---- X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.4.19 (2.11BSD) 2026/6/5 X # X MDIR= /usr/man/cat3 X SRCS1= abort.3 abs.3 alarm.3 asinh.3 assert.3 atof.3 bstring.3 byteorder.3 \ X*************** X*** 25,31 **** X getgrent.3 gethostbyname.3 getnetent.3 getopt.3 getpass.3 \ X getgrouplist.3 getloadavg.3 getmntinfo.3 getsubopt.3 \ X getprotoent.3 getpwent.3 fgets.3 getservent.3 getttyent.3 \ X! getusershell.3 getwd.3 hypot.3 ieee.3 inet.3 infnan.3 initgroups.3 X SRCS2= insque.3 intro.3 j0.3 l3tol.3 ldfps.3 lgamma.3 lib2648.3 \ X malloc.3 math.3 mktemp.3 monitor.3 mp.3 ndbm.3 nice.3 nlist.3 ns.3 \ X pause.3 perror.3 plot.3 popen.3 printf.3 psignal.3 putc.3 fputs.3 \ X--- 25,33 ---- X getgrent.3 gethostbyname.3 getnetent.3 getopt.3 getpass.3 \ X getgrouplist.3 getloadavg.3 getmntinfo.3 getsubopt.3 \ X getprotoent.3 getpwent.3 fgets.3 getservent.3 getttyent.3 \ X! getusershell.3 getwd.3 hypot.3 inet.3 initgroups.3 \ X! isalnum.3 isalpha.3 isascii.3 isblank.3 iscntrl.3 isdigit.3 isgraph.3 \ X! islower.3 isprint.3 ispunct.3 isspace.3 isupper.3 isxdigit.3 X SRCS2= insque.3 intro.3 j0.3 l3tol.3 ldfps.3 lgamma.3 lib2648.3 \ X malloc.3 math.3 mktemp.3 monitor.3 mp.3 ndbm.3 nice.3 nlist.3 ns.3 \ X pause.3 perror.3 plot.3 popen.3 printf.3 psignal.3 putc.3 fputs.3 \ X*************** X*** 33,43 **** X scandir.3 \ X scanf.3 setbuf.3 setjmp.3 siginterrupt.3 signal.3 sin.3 \ X sinh.3 sleep.3 sqrt.3 stdarg.3 stdio.3 strftime.3 string.3 \ X! strtok.3 stty.3 setmode.3 setruid.3 sigsetops.3 \ X strcspn.3 strpbrk.3 strsep.3 strspn.3 strtol.3 strtoul.3 strstr.3 \ X! swab.3 sysctl.3 syslog.3 \ X system.3 termcap.3 time.3 times.3 tmpnam.3 \ X! ttyname.3 ualarm.3 uname.3 ungetc.3 \ X syserrlst.3 \ X utime.3 valloc.3 varargs.3 X OBJS1= abort.0 abs.0 alarm.0 asinh.0 assert.0 atof.0 bstring.0 byteorder.0 \ X--- 35,45 ---- X scandir.3 \ X scanf.3 setbuf.3 setjmp.3 siginterrupt.3 signal.3 sin.3 \ X sinh.3 sleep.3 sqrt.3 stdarg.3 stdio.3 strftime.3 string.3 \ X! strdup.3 strtok.3 stty.3 setmode.3 setruid.3 sigsetops.3 \ X strcspn.3 strpbrk.3 strsep.3 strspn.3 strtol.3 strtoul.3 strstr.3 \ X! swab.3 swapdevname.3 sysctl.3 syslog.3 \ X system.3 termcap.3 time.3 times.3 tmpnam.3 \ X! toascii.3 tolower.3 toupper.3 ttyname.3 ualarm.3 uname.3 ungetc.3 \ X syserrlst.3 \ X utime.3 valloc.3 varargs.3 X OBJS1= abort.0 abs.0 alarm.0 asinh.0 assert.0 atof.0 bstring.0 byteorder.0 \ X*************** X*** 48,54 **** X getgrent.0 gethostbyname.0 getnetent.0 getopt.0 getpass.0 \ X getprotoent.0 getpwent.0 fgets.0 getservent.0 getttyent.0 \ X getgrouplist.0 getloadavg.0 getmntinfo.0 getsubopt.0 \ X! getusershell.0 getwd.0 hypot.0 ieee.0 inet.0 infnan.0 initgroups.0 X OBJS2= insque.0 intro.0 j0.0 l3tol.0 ldfps.0 lgamma.0 lib2648.0 \ X malloc.0 math.0 mktemp.0 monitor.0 mp.0 ndbm.0 nice.0 nlist.0 ns.0 \ X pause.0 perror.0 plot.0 popen.0 printf.0 psignal.0 putc.0 fputs.0 \ X--- 50,58 ---- X getgrent.0 gethostbyname.0 getnetent.0 getopt.0 getpass.0 \ X getprotoent.0 getpwent.0 fgets.0 getservent.0 getttyent.0 \ X getgrouplist.0 getloadavg.0 getmntinfo.0 getsubopt.0 \ X! getusershell.0 getwd.0 hypot.0 inet.0 initgroups.0 \ X! isalnum.0 isalpha.0 isascii.0 isblank.0 iscntrl.0 isdigit.0 isgraph.0 \ X! islower.0 isprint.0 ispunct.0 isspace.0 isupper.0 isxdigit.0 X OBJS2= insque.0 intro.0 j0.0 l3tol.0 ldfps.0 lgamma.0 lib2648.0 \ X malloc.0 math.0 mktemp.0 monitor.0 mp.0 ndbm.0 nice.0 nlist.0 ns.0 \ X pause.0 perror.0 plot.0 popen.0 printf.0 psignal.0 putc.0 fputs.0 \ X*************** X*** 56,66 **** X scandir.0 \ X scanf.0 setbuf.0 setjmp.0 siginterrupt.0 signal.0 sin.0 \ X sinh.0 sleep.0 sqrt.0 stdarg.0 stdio.0 strftime.0 string.0 \ X! strtok.0 stty.0 setmode.0 setruid.0 sigsetops.0 \ X strcspn.0 strpbrk.0 strsep.0 strspn.0 strtol.0 strtoul.0 strstr.0 \ X! swab.0 sysctl.0 syslog.0 \ X system.0 termcap.0 time.0 times.0 tmpnam.0 \ X! ttyname.0 ualarm.0 uname.0 ungetc.0 \ X syserrlst.0 \ X utime.0 valloc.0 varargs.0 X REMO1= edata.0 etext.0 j1.0 jn.0 ns_addr.0 ns_ntoa.0 y0.0 y1.0 yn.0 acos.0 \ X--- 60,70 ---- X scandir.0 \ X scanf.0 setbuf.0 setjmp.0 siginterrupt.0 signal.0 sin.0 \ X sinh.0 sleep.0 sqrt.0 stdarg.0 stdio.0 strftime.0 string.0 \ X! strdup.0 strtok.0 stty.0 setmode.0 setruid.0 sigsetops.0 \ X strcspn.0 strpbrk.0 strsep.0 strspn.0 strtol.0 strtoul.0 strstr.0 \ X! swab.0 swapdevname.0 sysctl.0 syslog.0 \ X system.0 termcap.0 time.0 times.0 tmpnam.0 \ X! toascii.0 tolower.0 toupper.0 ttyname.0 ualarm.0 uname.0 ungetc.0 \ X syserrlst.0 \ X utime.0 valloc.0 varargs.0 X REMO1= edata.0 etext.0 j1.0 jn.0 ns_addr.0 ns_ntoa.0 y0.0 y1.0 yn.0 acos.0 \ X*************** X*** 70,89 **** X fetch.0 firstkey.0 gcvt.0 log.0 log10.0 log1p.0 nextkey.0 pow.0 \ X rresvport.0 ruserok.0 store.0 tan.0 addr.0 arc.0 asctime.0 cbrt.0 \ X circle.0 comp.0 cont.0 copysign.0 cosh.0 drem.0 encrypt.0 environ.0 \ X! erase.0 execle.0 execlp.0 exect.0 execv.0 execve.0 execvp.0 fgetc.0 \ X gets.0 finite.0 fputc.0 puts.0 ftime.0 getchar.0 getw.0 gmtime.0 \ X gtty.0 inet_addr.0 inet_lnaof.0 inet_makeaddr.0 inet_netof.0 \ X! inet_network.0 inet_ntoa.0 isalnum.0 isalpha.0 isascii.0 iscntrl.0 \ X! isdigit.0 islower.0 isprint.0 ispunct.0 isspace.0 isupper.0 \ X! isxdigit.0 label.0 ldexp.0 line.0 linemod.0 localtime.0 logb.0 modf.0 \ X move.0 network.0 ntoa.0 openpl.0 pclose.0 point.0 putchar.0 putw.0 X REMO2= re_comp.0 re_exec.0 scalb.0 setkey.0 space.0 srand.0 tanh.0 \ X! timezone.0 toascii.0 tolower.0 toupper.0 ltol3.0 _longjmp.0 \ X _setjmp.0 acosh.0 alloca.0 atanh.0 cabs.0 calloc.0 ceil.0 \ X closelog.0 fpurge.0 fabs.0 fdopen.0 free.0 freopen.0 fscanf.0 \ X ftell.0 fwrite.0 index.0 initstate.0 longjmp.0 mkstemp.0 openlog.0 \ X realloc.0 remque.0 rewind.0 rindex.0 rint.0 \ X! setlogmask.0 setstate.0 setrgid.0 srandom.0 \ X sscanf.0 strcat.0 strcmp.0 strcpy.0 strlen.0 strncat.0 strncmp.0 \ X strncpy.0 strcasecmp.0 strncasecmp.0 fropen.0 fwopen.0 \ X strerror.0 snprintf.0 vsnprintf.0 vfscanf.0 vscanf.0 vsscanf.0 \ X--- 74,92 ---- X fetch.0 firstkey.0 gcvt.0 log.0 log10.0 log1p.0 nextkey.0 pow.0 \ X rresvport.0 ruserok.0 store.0 tan.0 addr.0 arc.0 asctime.0 cbrt.0 \ X circle.0 comp.0 cont.0 copysign.0 cosh.0 drem.0 encrypt.0 environ.0 \ X! erase.0 execle.0 execlp.0 execv.0 execve.0 execvp.0 fgetc.0 \ X gets.0 finite.0 fputc.0 puts.0 ftime.0 getchar.0 getw.0 gmtime.0 \ X gtty.0 inet_addr.0 inet_lnaof.0 inet_makeaddr.0 inet_netof.0 \ X! inet_network.0 inet_ntoa.0 \ X! label.0 ldexp.0 line.0 linemod.0 localtime.0 logb.0 modf.0 \ X move.0 network.0 ntoa.0 openpl.0 pclose.0 point.0 putchar.0 putw.0 X REMO2= re_comp.0 re_exec.0 scalb.0 setkey.0 space.0 srand.0 tanh.0 \ X! timezone.0 ltol3.0 _longjmp.0 \ X _setjmp.0 acosh.0 alloca.0 atanh.0 cabs.0 calloc.0 ceil.0 \ X closelog.0 fpurge.0 fabs.0 fdopen.0 free.0 freopen.0 fscanf.0 \ X ftell.0 fwrite.0 index.0 initstate.0 longjmp.0 mkstemp.0 openlog.0 \ X realloc.0 remque.0 rewind.0 rindex.0 rint.0 \ X! setlogmask.0 setstate.0 setrgid.0 srandom.0 vsyslog.0 \ X sscanf.0 strcat.0 strcmp.0 strcpy.0 strlen.0 strncat.0 strncmp.0 \ X strncpy.0 strcasecmp.0 strncasecmp.0 fropen.0 fwopen.0 \ X strerror.0 snprintf.0 vsnprintf.0 vfscanf.0 vscanf.0 vsscanf.0 \ X*************** X*** 95,100 **** X--- 98,105 ---- X X REMO3= getgrnam.0 getpwnam.0 getpwuid.0 setfsent.0 setgrent.0 setpwent.0 \ X setpwfile.0 tgetent.0 tgetflag.0 tgetnum.0 tgetstr.0 tgoto.0 tputs.0 \ X+ setpassent.0 \ X+ devname_close.0 \ X closedir.0 endttyent.0 getttynam.0 opendir.0 readdir.0 rewinddir.0 \ X seekdir.0 setttyent.0 telldir.0 endnetent.0 getnetbyaddr.0 \ X getnetbyname.0 htonl.0 htons.0 ntohl.0 ntohs.0 setnetent.0 \ X*************** X*** 103,108 **** X--- 108,114 ---- X setprotoent.0 setusershell.0 endhostent.0 gethostbyaddr.0 gethostent.0 \ X sethostent.0 sethostfile.0 memccpy.0 memchr.0 memcmp.0 memcpy.0 \ X memset.0 strchr.0 strrchr.0 tempnam.0 tmpfile.0 fgetpos.0 fsetpos.0 \ X+ strtoimax.0 strtoumax.0 \ X tempnam.0 getmode.0 usleep.0 setenv.0 unsetenv.0 X X REMO4= verr.0 errx.0 verrx.0 warn.0 warnx.0 vwarnx.0 X*************** X*** 149,154 **** X--- 155,161 ---- X ln ${MDIR}/sigsetops.0 ${MDIR}/$$i; \ X done X X+ ln ${MDIR}/devname.0 ${MDIR}/devname_close.0 X ln ${MDIR}/end.0 ${MDIR}/edata.0 X ln ${MDIR}/end.0 ${MDIR}/etext.0 X ln ${MDIR}/j0.0 ${MDIR}/j1.0 X*************** X*** 198,218 **** X ln ${MDIR}/plot.0 ${MDIR}/circle.0 X ln ${MDIR}/regex.0 ${MDIR}/comp.0 X ln ${MDIR}/plot.0 ${MDIR}/cont.0 X- ln ${MDIR}/ieee.0 ${MDIR}/copysign.0 X ln ${MDIR}/sinh.0 ${MDIR}/cosh.0 X- ln ${MDIR}/ieee.0 ${MDIR}/drem.0 X ln ${MDIR}/crypt.0 ${MDIR}/encrypt.0 X ln ${MDIR}/execl.0 ${MDIR}/environ.0 X ln ${MDIR}/plot.0 ${MDIR}/erase.0 X ln ${MDIR}/execl.0 ${MDIR}/execle.0 X ln ${MDIR}/execl.0 ${MDIR}/execlp.0 X- ln ${MDIR}/execl.0 ${MDIR}/exect.0 X ln ${MDIR}/execl.0 ${MDIR}/execv.0 X ln ${MDIR}/execl.0 ${MDIR}/execve.0 X ln ${MDIR}/execl.0 ${MDIR}/execvp.0 X ln ${MDIR}/getc.0 ${MDIR}/fgetc.0 X ln ${MDIR}/fgets.0 ${MDIR}/gets.0 X- ln ${MDIR}/ieee.0 ${MDIR}/finite.0 X ln ${MDIR}/putc.0 ${MDIR}/fputc.0 X ln ${MDIR}/fputs.0 ${MDIR}/puts.0 X ln ${MDIR}/time.0 ${MDIR}/ftime.0 X--- 205,221 ---- X*************** X*** 226,248 **** X ln ${MDIR}/inet.0 ${MDIR}/inet_netof.0 X ln ${MDIR}/inet.0 ${MDIR}/inet_network.0 X ln ${MDIR}/inet.0 ${MDIR}/inet_ntoa.0 X- ln ${MDIR}/ctype.0 ${MDIR}/isalnum.0 X- ln ${MDIR}/ctype.0 ${MDIR}/isalpha.0 X- ln ${MDIR}/ctype.0 ${MDIR}/isascii.0 X- ln ${MDIR}/ctype.0 ${MDIR}/iscntrl.0 X- ln ${MDIR}/ctype.0 ${MDIR}/isdigit.0 X- ln ${MDIR}/ctype.0 ${MDIR}/islower.0 X- ln ${MDIR}/ctype.0 ${MDIR}/isprint.0 X- ln ${MDIR}/ctype.0 ${MDIR}/ispunct.0 X- ln ${MDIR}/ctype.0 ${MDIR}/isspace.0 X- ln ${MDIR}/ctype.0 ${MDIR}/isupper.0 X- ln ${MDIR}/ctype.0 ${MDIR}/isxdigit.0 X ln ${MDIR}/plot.0 ${MDIR}/label.0 X ln ${MDIR}/frexp.0 ${MDIR}/ldexp.0 X ln ${MDIR}/plot.0 ${MDIR}/line.0 X ln ${MDIR}/plot.0 ${MDIR}/linemod.0 X ln ${MDIR}/ctime.0 ${MDIR}/localtime.0 X- ln ${MDIR}/ieee.0 ${MDIR}/logb.0 X ln ${MDIR}/frexp.0 ${MDIR}/modf.0 X ln ${MDIR}/plot.0 ${MDIR}/move.0 X ln ${MDIR}/inet.0 ${MDIR}/network.0 X--- 229,239 ---- X*************** X*** 254,268 **** X ln ${MDIR}/putc.0 ${MDIR}/putw.0 X ln ${MDIR}/regex.0 ${MDIR}/re_comp.0 X ln ${MDIR}/regex.0 ${MDIR}/re_exec.0 X- ln ${MDIR}/ieee.0 ${MDIR}/scalb.0 X ln ${MDIR}/crypt.0 ${MDIR}/setkey.0 X ln ${MDIR}/plot.0 ${MDIR}/space.0 X ln ${MDIR}/rand.0 ${MDIR}/srand.0 X ln ${MDIR}/sinh.0 ${MDIR}/tanh.0 X ln ${MDIR}/ctime.0 ${MDIR}/timezone.0 X- ln ${MDIR}/ctype.0 ${MDIR}/toascii.0 X- ln ${MDIR}/ctype.0 ${MDIR}/tolower.0 X- ln ${MDIR}/ctype.0 ${MDIR}/toupper.0 X ln ${MDIR}/l3tol.0 ${MDIR}/ltol3.0 X ln ${MDIR}/setjmp.0 ${MDIR}/_longjmp.0 X ln ${MDIR}/setjmp.0 ${MDIR}/_setjmp.0 X--- 245,255 ---- X*************** X*** 273,278 **** X--- 260,266 ---- X ln ${MDIR}/malloc.0 ${MDIR}/calloc.0 X ln ${MDIR}/floor.0 ${MDIR}/ceil.0 X ln ${MDIR}/syslog.0 ${MDIR}/closelog.0 X+ ln ${MDIR}/syslog.0 ${MDIR}/vsyslog.0 X ln ${MDIR}/perror.0 ${MDIR}/strerror.0 X ln ${MDIR}/floor.0 ${MDIR}/fabs.0 X ln ${MDIR}/fopen.0 ${MDIR}/fdopen.0 X*************** X*** 348,353 **** X--- 336,342 ---- X ln ${MDIR}/getgrent.0 ${MDIR}/setgrent.0 X ln ${MDIR}/getpwent.0 ${MDIR}/setpwent.0 X ln ${MDIR}/getpwent.0 ${MDIR}/setpwfile.0 X+ ln ${MDIR}/getpwent.0 ${MDIR}/setpassent.0 X ln ${MDIR}/termcap.0 ${MDIR}/tgetent.0 X ln ${MDIR}/termcap.0 ${MDIR}/tgetflag.0 X ln ${MDIR}/termcap.0 ${MDIR}/tgetnum.0 X*************** X*** 403,407 **** X--- 392,398 ---- X ln ${MDIR}/fflush.0 ${MDIR}/fpurge.0 X ln ${MDIR}/funopen.0 ${MDIR}/fropen.0 X ln ${MDIR}/funopen.0 ${MDIR}/fwopen.0 X+ ln ${MDIR}/strtol.0 ${MDIR}/strtoimax.0 X+ ln ${MDIR}/strtoul.0 ${MDIR}/strtoumax.0 X X FRC: X*** ./usr/src/man/man3/ctype.3.old Sun Dec 14 18:07:15 1986 X--- ./usr/src/man/man3/ctype.3 Mon Jan 26 12:41:01 2026 X*************** X*** 1,93 **** X! .\" @(#)ctype.3 6.4 (Berkeley) 5/12/86 X .\" X! .TH CTYPE 3 "May 12, 1986" X! .AT 3 X! .SH NAME X! isalpha, isupper, islower, isdigit, isxdigit, isalnum, isspace, ispunct, isprint, isgraph, iscntrl, isascii, toupper, tolower, toascii \- character classification macros X! .SH SYNOPSIS X! .B #include X! .PP X! .B isalpha(c) X! .PP X! .B . . . X! .SH DESCRIPTION X! These macros classify ASCII-coded integer values X! by table lookup. X! Each is a predicate returning nonzero for true, X! zero for false. X! .I Isascii X and X! .I toascii X! are defined on all integer values; the rest X! are defined only where X! .I isascii X! is true and on the single non-ASCII value X! EOF (see X! .IR stdio (3S)). X! .TP 15n X! .I isalpha X! .I c X! is a letter X! .TP X! .I isupper X! .I c X! is an upper case letter X! .TP X! .I islower X! .I c X! is a lower case letter X! .TP X! .I isdigit X! .I c X! is a digit X! .TP X! .I isxdigit X! .I c X! is a hex digit X! .TP X! .I isalnum X! .I c X! is an alphanumeric character X! .TP X! .I isspace X! .I c X! is a space, tab, carriage return, newline, vertical tab, or formfeed X! .TP X! .I ispunct X! .I c X! is a punctuation character (neither control nor alphanumeric) X! .TP X! .I isprint X! .I c X! is a printing character, code 040(8) (space) through 0176 (tilde) X! .TP X! .I isgraph X! .I c X! is a printing character, similar to X! .I isprint X! except false for space. X! .TP X! .I iscntrl X! .I c X! is a delete character (0177) or ordinary control character X! (less than 040). X! .TP X! .I isascii X! .I c X! is an ASCII character, code less than 0200 X! .TP X! .I tolower X! .I c X! is converted to lower case. Return value is undefined if not X! .I isupper(c). X! .TP X! .I toupper X! .I c X! is converted to upper case. Return value is undefined if not X! .I islower(c). X! .TP X! .I toascii X! .I c X! is converted to be a valid ascii character. X! .SH "SEE ALSO" X! ascii(7) X--- 1,105 ---- X! .\" Copyright (c) 1991, 1993 X! .\" The Regents of the University of California. All rights reserved. X .\" X! .\" Redistribution and use in source and binary forms, with or without X! .\" modification, are permitted provided that the following conditions X! .\" are met: X! .\" 1. Redistributions of source code must retain the above copyright X! .\" notice, this list of conditions and the following disclaimer. X! .\" 2. Redistributions in binary form must reproduce the above copyright X! .\" notice, this list of conditions and the following disclaimer in the X! .\" documentation and/or other materials provided with the distribution. X! .\" 3. All advertising materials mentioning features or use of this software X! .\" must display the following acknowledgement: X! .\" This product includes software developed by the University of X! .\" California, Berkeley and its contributors. X! .\" 4. Neither the name of the University nor the names of its contributors X! .\" may be used to endorse or promote products derived from this software X! .\" without specific prior written permission. X! .\" X! .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND X! .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE X! .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE X! .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE X! .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL X! .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS X! .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) X! .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT X! .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY X! .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X! .\" SUCH DAMAGE. X! .\" X! .\" @(#)ctype.3 8.2 (2.11BSD) 2026/1/26 X! .\" X! .Dd January 26, 2026 X! .Dt CTYPE 3 X! .Os X! .Sh NAME X! .Nm isalnum , X! .Nm isalpha , X! .Nm isascii , X! .Nm isblank , X! .Nm iscntrl , X! .Nm isdigit , X! .Nm isgraph , X! .Nm islower , X! .Nm isprint , X! .Nm ispunct , X! .Nm isspace , X! .Nm isupper , X! .Nm isxdigit , X! .Nm toascii X! .Nm tolower , X! .Nm toupper , X! .Nd character classification macros X! .Sh SYNOPSIS X! .Fd #include X! .Fa int c X! .br X! .Fn isalnum "int c" X! .Fn isalpha "int c" X! .Fn isascii "int c" X! .Fn iscntrl "int c" X! .Fn isdigit "int c" X! .Fn isgraph "int c" X! .Fn islower "int c" X! .Fn isprint "int c" X! .Fn ispunct "int c" X! .Fn isspace "int c" X! .Fn isupper "int c" X! .Fn isxdigit "int c" X! .Fn toascii "int c" X! .Fn tolower "int c" X! .Fn toupper "int c" X! .Sh DESCRIPTION X! The above functions perform character tests and conversions on the integer X! .Ar c . X! They are available as macros, defined in the include file X! .Aq Pa ctype.h , X! or as true functions in the C library. X! See the specific manual pages for more information. X! .Sh SEE ALSO X! .Xr isalnum 3 , X! .Xr isalpha 3 , X! .Xr isascii 3 , X! .Xr isblank 3 , X! .Xr iscntrl 3 , X! .Xr isdigit 3 , X! .Xr isgraph 3 , X! .Xr islower 3 , X! .Xr isprint 3 , X! .Xr ispunct 3 , X! .Xr isspace 3 , X! .Xr isupper 3 , X! .Xr isxdigit 3 , X! .Xr toascii 3 , X! .Xr tolower 3 , X! .Xr toupper 3 , X! .Xr ascii 7 X! .Sh STANDARDS X! These functions, except for X! .Fn isascii X and X! .Fn toascii , X! conform to X! .St -ansiC . X*** ./usr/src/man/man3/creat.3.old Tue Dec 4 23:27:07 2001 X--- ./usr/src/man/man3/creat.3 Fri May 8 15:42:51 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)creat.2 6.7 (2.11BSD) 2001/11/19 X .\" X! .TH CREAT 3 "November 19, 2001" X .UC 4 X .SH NAME X creat \- create a new file X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)creat.2 6.8 (2.11BSD) 2026/5/8 X .\" X! .TH CREAT 3 "May 8, 2026" X .UC 4 X .SH NAME X creat \- create a new file X*************** X*** 11,21 **** X .SH SYNOPSIS X .nf X .ft B X- #include X #include X! X creat(name, mode) X! char *name; X int mode; X .ft R X .fi X--- 11,20 ---- X .SH SYNOPSIS X .nf X .ft B X #include X! .PP X creat(name, mode) X! const char *name; X int mode; X .ft R X .fi X*************** X*** 22,28 **** X .SH DESCRIPTION X \fBThis interface is made obsolete by:\fP open(2). X .PP X! .BR Creat () X is the same as: X .nf X X--- 21,27 ---- X .SH DESCRIPTION X \fBThis interface is made obsolete by:\fP open(2). X .PP X! .BR creat () X is the same as: X .nf X X*** ./usr/src/man/man3/strtoul.3.old Fri Jan 12 18:32:49 1996 X--- ./usr/src/man/man3/strtoul.3 Mon Jan 26 12:41:40 2026 X*************** X*** 33,131 **** X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)strtoul.3 8.1.1 (2.11BSD) 1996/1/12 X .\" X! .TH STRTOUL 3 "January 12, 1996" X! .UC 7 X! .SH NAME X! \fBstrtoul\fP \- convert a string to an unsigned long X! .SH SYNOPSIS X! .B #include X! .br X! .B #include X! .sp X! .B unsigned long X! .br X! \fBstrtoul\fP(nptr, endptr, base) X! .br X! .I char *nptr; X! .br X! .I char **endptr; X! .br X! .I int base; X! .SH DESCRIPTION X The X! .BR strtoul () X function X converts the string in X! .I nptr X to an X! .I unsigned long X value. X The conversion is done according to the given X! .IR base , X which must be between 2 and 36 inclusive, X or be the special value 0. X! .PP X The string may begin with an arbitrary amount of white space X (as determined by X! isspace(3)) X followed by a single optional X! `+' X or X! `\-' X sign. X If X! .I base X is zero or 16, X the string may then include a X! `0x' X prefix, X and the number will be read in base 16; otherwise, a zero X! .I base X is taken as 10 (decimal) unless the next character is X! `0', X in which case it is taken as 8 (octal). X! .PP X The remainder of the string is converted to an X! .I unsigned long X value in the obvious manner, X stopping at the end of the string X or at the first character that does not produce a valid digit X in the given base. X (In bases above 10, the letter X! `A' X in either upper or lower case X represents 10, X! `B' X represents 11, and so forth, with X! `Z' X representing 35.) X! .PP X If X! .I endptr X is non nil, X! .BR strtoul () X stores the address of the first invalid character in X! .I *endptr . X If there were no digits at all, however, X! .BR strtoul () X stores the original value of X! .I nptr X in X! .I *endptr . X (Thus, if X! .I *nptr X is not X! `\e0' X but X! .I **endptr X is X! `\e0' X on return, the entire string was valid.) X .SH RETURN VALUES X The X! .BR strtoul () X function X returns either the result of the conversion X or, if there was a leading minus sign, X--- 33,137 ---- X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)strtoul.3 8.1.2 (2.11BSD) 2026/1/26 X .\" X! .Dd January 21, 2026 X! .Dt STRTOUL 3 X! .Os X! .Sh NAME X! .Nm strtoul, strtoumax X! .Nd convert a string to an unsigned long or uintmax_t integer X! .Sh SYNOPSIS X! .Fd #include X! .Fd #include X! .Ft unsigned long X! .Fn strtoul "const char *nptr" "char **endptr" "int base" X! .Fd #include X! .Ft uintmax_t X! .Fn strtoumax "const char *restrict str" "char **restrict endptr" "int base" X! .Sh DESCRIPTION X The X! .Fn strtoul X function X converts the string in X! .Fa nptr X to an X! .Em unsigned long X value. X+ The X+ .Fn strtoumax X+ function X+ converts the string in X+ .Fa nptr X+ to an X+ .Ft uintmax_t X+ value. X The conversion is done according to the given X! .Fa base , X which must be between 2 and 36 inclusive, X or be the special value 0. X! .Pp X The string may begin with an arbitrary amount of white space X (as determined by X! .Xr isspace 3 ) X followed by a single optional X! .Ql + X or X! .Ql - X sign. X If X! .Fa base X is zero or 16, X the string may then include a X! .Ql 0x X prefix, X and the number will be read in base 16; otherwise, a zero X! .Fa base X is taken as 10 (decimal) unless the next character is X! .Ql 0 , X in which case it is taken as 8 (octal). X! .Pp X The remainder of the string is converted to an X! .Em unsigned long X value in the obvious manner, X stopping at the end of the string X or at the first character that does not produce a valid digit X in the given base. X (In bases above 10, the letter X! .Ql A X in either upper or lower case X represents 10, X! .Ql B X represents 11, and so forth, with X! .Ql Z X representing 35.) X! .Pp X If X! .Fa endptr X is non nil, X! .Fn strtoul X stores the address of the first invalid character in X! .Fa *endptr . X If there were no digits at all, however, X! .Fn strtoul X stores the original value of X! .Fa nptr X in X! .Fa *endptr . X (Thus, if X! .Fa *nptr X is not X! .Ql \e0 X but X! .Fa **endptr X is X! .Ql \e0 X on return, the entire string was valid.) X .SH RETURN VALUES X The X! .Fn strtoul X! and X! .Fn strtoumax X function X returns either the result of the conversion X or, if there was a leading minus sign, X*************** X*** 132,155 **** X the negation of the result of the conversion, X unless the original (non-negated) value would overflow; X in the latter case, X! .BR strtoul () X returns X! .B ULONG_MAX X! and sets the global variable X! .B errno X to X! .B ERANGE . X! .SH ERRORS X! .TP 15 X! [ERANGE] X The given string was out of range; the value converted has been clamped. X! .SH SEE ALSO X! strtol(3) X! .SH STANDARDS X The X! .BR strtoul () X function X conforms to X! ANSI C X3.159-1989 (``ANSI C''). X! .SH BUGS X Ignores the current locale. X--- 138,171 ---- X the negation of the result of the conversion, X unless the original (non-negated) value would overflow; X in the latter case, X! .Fn strtoul X returns X! .Dv ULONG_MAX , X! and X! .Fn strtoumax X! returns X! .Dv UINTMAX_MAX . X! Both sets the global variable X! .Va errno X to X! .Er ERANGE . X! .Sh ERRORS X! .Bl -tag -width [ERANGE] X The given string was out of range; the value converted has been clamped. X! .El X! .Sh SEE ALSO X! .Xr strtol 3 , X! .Xr strtoimax 3 X! .Sh STANDARDS X The X! .Fn strtoul X function X conforms to X! .St -ansiC . X! The X! .Fn strtoumax X! function X! conforms to X! .St -isoC-99 . X! .Sh BUGS X Ignores the current locale. X*** ./usr/src/man/man3/getenv.3.old Mon May 14 22:10:17 2001 X--- ./usr/src/man/man3/getenv.3 Fri May 8 15:41:56 2026 X*************** X*** 1,11 **** X! .\" @(#)getenv.3 6.4.1 (2.11BSD) 2001/2/22 X .\" X! .TH GETENV 3 "February 22, 2001" X .AT 3 X .SH NAME X getenv, setenv, unsetenv \- manipulate environmental variables X .SH SYNOPSIS X .nf X .B char *getenv(name) X .B char *name; X .PP X--- 1,13 ---- X! .\" @(#)getenv.3 6.4.2 (2.11BSD) 2026/5/8 X .\" X! .TH GETENV 3 "May 8, 2026" X .AT 3 X .SH NAME X getenv, setenv, unsetenv \- manipulate environmental variables X .SH SYNOPSIS X .nf X+ .B #include X+ .PP X .B char *getenv(name) X .B char *name; X .PP X*************** X*** 17,23 **** X .B char *name; X .fi X .SH DESCRIPTION X! \fIGetenv\fP searches the environment list (see \fIenviron\fP(7)) X for a string of the form \fIname\fP\fB=\fP\fIvalue\fP and returns X a pointer to the string \fIvalue\fP if such a string is present, X and 0 (NULL) if it is not. X--- 19,25 ---- X .B char *name; X .fi X .SH DESCRIPTION X! \fIgetenv\fP searches the environment list (see \fIenviron\fP(7)) X for a string of the form \fIname\fP\fB=\fP\fIvalue\fP and returns X a pointer to the string \fIvalue\fP if such a string is present, X and 0 (NULL) if it is not. X*************** X*** 30,36 **** X where failure is caused by an inability to allocate space for the X environment. X .PP X! \fIUnsetenv\fP removes all occurrences of the string \fIname\fP from X the environment. There is no library provision for completely removing X the current environment. It is suggested that the following code be X used to do so. X--- 32,38 ---- X where failure is caused by an inability to allocate space for the X environment. X .PP X! \fIunsetenv\fP removes all occurrences of the string \fIname\fP from X the environment. There is no library provision for completely removing X the current environment. It is suggested that the following code be X used to do so. X*** ./usr/src/man/man3/ttyname.3.old Sun Dec 14 18:07:18 1986 X--- ./usr/src/man/man3/ttyname.3 Fri May 8 15:41:24 2026 X*************** X*** 1,10 **** X! .\" @(#)ttyname.3 6.1 (Berkeley) 5/15/85 X .\" X! .TH TTYNAME 3 "May 15, 1985" X .AT 3 X .SH NAME X ttyname, isatty, ttyslot \- find name of a terminal X .SH SYNOPSIS X .B char *ttyname(filedes) X .PP X .B isatty(filedes) X--- 1,12 ---- X! .\" @(#)ttyname.3 6.2 (2.11BSD) 2026/5/8 X .\" X! .TH TTYNAME 3 "May 8, 2026" X .AT 3 X .SH NAME X ttyname, isatty, ttyslot \- find name of a terminal X .SH SYNOPSIS X+ .B #include X+ .PP X .B char *ttyname(filedes) X .PP X .B isatty(filedes) X*************** X*** 11,17 **** X .PP X .B ttyslot() X .SH DESCRIPTION X! .I Ttyname X returns a pointer to the null-terminated path name X of the terminal device associated with file descriptor X .I filedes X--- 13,19 ---- X .PP X .B ttyslot() X .SH DESCRIPTION X! .I ttyname X returns a pointer to the null-terminated path name X of the terminal device associated with file descriptor X .I filedes X*************** X*** 18,29 **** X (this is a system file descriptor and has nothing to do with the X standard I/O FILE typedef). X .PP X! .I Isatty X returns 1 if X .I filedes X is associated with a terminal device, 0 otherwise. X .PP X! .I Ttyslot X returns the number of the entry in the X .IR ttys (5) X file for the control terminal of the current process. X--- 20,31 ---- X (this is a system file descriptor and has nothing to do with the X standard I/O FILE typedef). X .PP X! .I isatty X returns 1 if X .I filedes X is associated with a terminal device, 0 otherwise. X .PP X! .I ttyslot X returns the number of the entry in the X .IR ttys (5) X file for the control terminal of the current process. X*************** X*** 34,45 **** X .SH SEE ALSO X ioctl(2), ttys(5) X .SH DIAGNOSTICS X! .I Ttyname X returns a null pointer (0) if X .I filedes X does not describe a terminal device in directory `/dev'. X .PP X! .I Ttyslot X returns 0 if `/etc/ttys' is inaccessible or if X it cannot determine the control terminal. X .SH BUGS X--- 36,47 ---- X .SH SEE ALSO X ioctl(2), ttys(5) X .SH DIAGNOSTICS X! .I ttyname X returns a null pointer (0) if X .I filedes X does not describe a terminal device in directory `/dev'. X .PP X! .I ttyslot X returns 0 if `/etc/ttys' is inaccessible or if X it cannot determine the control terminal. X .SH BUGS X*** ./usr/src/man/man3/malloc.3.old Sun Dec 14 18:07:19 1986 X--- ./usr/src/man/man3/malloc.3 Thu Sep 17 14:39:56 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)malloc.3 6.3 (Berkeley) 5/14/86 X .\" X .TH MALLOC 3 "May 14, 1986" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)malloc.3 6.4 (2.11BSD) 2026/8/20 X .\" X .TH MALLOC 3 "May 14, 1986" X .UC 4 X*************** X*** 10,37 **** X malloc, free, realloc, calloc, alloca \- memory allocator X .SH SYNOPSIS X .nf X! .B char *malloc(size) X .B unsigned size; X .PP X! .B free(ptr) X! .B char *ptr; X .PP X! .B char *realloc(ptr, size) X! .B char *ptr; X .B unsigned size; X .PP X! .B char *calloc(nelem, elsize) X .B unsigned nelem, elsize; X .PP X! .B char *alloca(size) X .B int size; X .fi X .SH DESCRIPTION X! .I Malloc X and X .I free X provide a general-purpose memory allocation package. X! .I Malloc X returns a pointer to a block of at least X .I size X bytes beginning on a word boundary. X--- 10,39 ---- X malloc, free, realloc, calloc, alloca \- memory allocator X .SH SYNOPSIS X .nf X! .B #include X! .PP X! .B void *malloc(size) X .B unsigned size; X .PP X! .B void free(ptr) X! .B void *ptr; X .PP X! .B void *realloc(ptr, size) X! .B void *ptr; X .B unsigned size; X .PP X! .B void *calloc(nelem, elsize) X .B unsigned nelem, elsize; X .PP X! .B void *alloca(size) X .B int size; X .fi X .SH DESCRIPTION X! .I malloc X and X .I free X provide a general-purpose memory allocation package. X! .I malloc X returns a pointer to a block of at least X .I size X bytes beginning on a word boundary. X*************** X*** 48,54 **** X is overrun or if some random number is handed to X .IR free . X .PP X! .I Malloc X maintains multiple lists of free blocks according to size, X allocating space from the appropriate list. X It calls X--- 50,56 ---- X is overrun or if some random number is handed to X .IR free . X .PP X! .I malloc X maintains multiple lists of free blocks according to size, X allocating space from the appropriate list. X It calls X*************** X*** 58,64 **** X to get more memory from the system when there is no X suitable space already free. X .PP X! .I Realloc X changes the size of the block pointed to by X .I ptr X to X--- 60,66 ---- X to get more memory from the system when there is no X suitable space already free. X .PP X! .I realloc X changes the size of the block pointed to by X .I ptr X to X*************** X*** 81,87 **** X were previously used to attempt storage compaction. X This procedure is no longer recommended. X .PP X! .I Calloc X allocates space for an array of X .I nelem X elements of size X--- 83,89 ---- X were previously used to attempt storage compaction. X This procedure is no longer recommended. X .PP X! .I calloc X allocates space for an array of X .I nelem X elements of size X*************** X*** 88,94 **** X .I elsize. X The space is initialized to zeros. X .PP X! .I Alloca X allocates X .I size X bytes of space in the stack frame of the caller. X--- 90,96 ---- X .I elsize. X The space is initialized to zeros. X .PP X! .I alloca X allocates X .I size X bytes of space in the stack frame of the caller. X*************** X*** 105,116 **** X brk(2), X pagesize(2) X .SH DIAGNOSTICS X! .I Malloc, realloc X and X .I calloc X return a null pointer (0) if there is no available memory or if the arena X has been detectably corrupted by storing outside the bounds of a block. X! .I Malloc X may be recompiled to check the arena very stringently on every transaction; X those sites with a source code license may check the source code to see X how this can be done. X--- 107,118 ---- X brk(2), X pagesize(2) X .SH DIAGNOSTICS X! .I malloc, realloc X and X .I calloc X return a null pointer (0) if there is no available memory or if the arena X has been detectably corrupted by storing outside the bounds of a block. X! .I malloc X may be recompiled to check the arena very stringently on every transaction; X those sites with a source code license may check the source code to see X how this can be done. X*************** X*** 125,133 **** X .I malloc X does not always fail gracefully when system X memory limits are approached. X! It may fail to allocate memory when larger free blocks could be broken X! up, or when limits are exceeded because the size is rounded up. X! It is optimized for sizes that are powers of two. X .PP X! .I Alloca X is machine dependent; its use is discouraged. X--- 127,133 ---- X .I malloc X does not always fail gracefully when system X memory limits are approached. X! It may fail to allocate when limits are exceeded because the size is rounded up. X .PP X! .I alloca X is machine dependent; its use is discouraged. X*** ./usr/src/man/man3/devname.3.old Sat Feb 4 00:51:48 1995 X--- ./usr/src/man/man3/devname.3 Tue Jun 16 18:35:58 2026 X*************** X*** 29,51 **** X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)devname.3 8.1.1 (2.11BSD GTE) 2/3/95 X .\" X! .TH DEVNAME 3 "February 3, 1995" X .UC 4 X .SH NAME X devname \- get device name X .SH SYNOPSIS X! .nf X! .ft B X! #include X! X! char * X! devname(dev, type) X! dev_t dev; X! mode_t type; X! .ft R X! .fi X .SH DESCRIPTION X The X .B devname X--- 29,52 ---- X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)devname.3 8.1.2 (2.11BSD) 2026/5/27 X .\" X! .TH DEVNAME 3 "May 27, 2026" X .UC 4 X .SH NAME X devname \- get device name X .SH SYNOPSIS X! .B #include X! .br X! .B #include X! .sp X! .B char * X! .br X! \fBdevname\fP(\fIdev_t, mode_t\fP) X! .sp X! .B void X! .br X! \fBdevname_close\fP() X .SH DESCRIPTION X The X .B devname X*************** X*** 61,70 **** X available, the string X .I ?? X is returned. X .SH SEE ALSO X stat(2), X dev_mkdb(8) X .SH HISTORY X- The X .B devname X function call appeared in 4.4BSD. X--- 62,78 ---- X available, the string X .I ?? X is returned. X+ .sp X+ .B devname_close X+ releases the DBM database memory and file descriptors if those were X+ allocated by \fBdevname\fP. It is harmless to call \fBdevname_close\fP X+ if \fBdevname\fP was not called or returned "??". X .SH SEE ALSO X stat(2), X dev_mkdb(8) X .SH HISTORY X .B devname X function call appeared in 4.4BSD. X+ .sp X+ .B devname_close X+ function call appeared in 2.11BSD 35th Anniversary Edition X*** ./usr/src/man/man3/sysctl.3.old Tue Mar 3 10:07:57 2020 X--- ./usr/src/man/man3/sysctl.3 Sat Oct 24 21:13:46 2026 X*************** X*** 29,35 **** X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)sysctl.3 8.1.2 (2.11BSD) 2020/3/2 X .\" X .TH SYSCTL 3 "March 2, 2020" X .UC 4 X--- 29,35 ---- X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)sysctl.3 8.1.3 (2.11BSD) 2026/5/28 X .\" X .TH SYSCTL 3 "March 2, 2020" X .UC 4 X*************** X*** 131,137 **** X CTL\_MACHDEP sys/sysctl.h Machine dependent X CTL\_NET sys/socket.h Networking X CTL\_USER sys/sysctl.h User-level X! CTL\_VM vm/vm_param.h Virtual memory X .fi X .PP X For example, the following retrieves the maximum number of processes allowed X--- 131,137 ---- X CTL\_MACHDEP sys/sysctl.h Machine dependent X CTL\_NET sys/socket.h Networking X CTL\_USER sys/sysctl.h User-level X! CTL\_VM sys/vmparam.h Virtual memory X .fi X .PP X For example, the following retrieves the maximum number of processes allowed X*************** X*** 210,215 **** X--- 210,216 ---- X HW\_PHYSMEM integer no X HW\_USERMEM integer no X HW\_PAGESIZE integer no X+ HW\_TRACEBUF struct no X .\".It HW\_DISKNAMES integer no X .\".It HW\_DISKSTATS integer no X .fi X*************** X*** 243,248 **** X--- 244,253 ---- X .br X The software page size. X .sp X+ HW_TRACEBUF X+ .br X+ The I/O statistics. X+ .sp X .\".It Fa HW_DISKNAMES X .\".It Fa HW_DISKSTATS X .SH CTL_KERN X*************** X*** 259,298 **** X .ta .25i 2.75i 4.5i X X Second level name Type Changeable X! KERN\_ARGMAX integer no X! KERN\_BOOTTIME struct timeval no X! KERN\_CHOWN\_RESTRICTED integer no X! KERN\_CLOCKRATE struct clockinfo no X! KERN\_FILE struct file no X! KERN\_HOSTID long yes X! KERN\_HOSTNAME string yes X! KERN\_JOB\_CONTROL integer no X! .\"KERN\_LINK\_MAX integer no X! KERN\_MAXFILES integer no X! KERN\_MAXPROC integer no X! KERN\_MAXINODES integer no X! KERN\_MAXTEXTS integer no X! .\"KERN\_MAX\_CANON integer no X! .\"KERN\_MAX\_INPUT integer no X! .\"KERN\_NAME\_MAX integer no X! KERN\_NGROUPS integer no X! .\"KERN\_NO\_TRUNC integer no X KERN\_OSRELEASE string no X KERN\_OSREV integer no X! KERN\_OSTYPE string no X! .\"KERN\_PATH\_MAX integer no X! .\"KERN\_PIPE\_BUF integer no X! KERN\_POSIX1 integer no X KERN\_PROC struct proc no X KERN\_PROF node not applicable X KERN\_SAVED\_IDS integer no X! KERN\_SECURELVL integer raise only X KERN\_TEXT struct text no X! .\"KERN\_VDISABLE integer no X! KERN\_VERSION string no X! KERN\_INODE struct inode no X .fi X .PP X KERN_ARGMAX X .br X .in +.5i X--- 264,311 ---- X .ta .25i 2.75i 4.5i X X Second level name Type Changeable X! KERN\_OSTYPE string no X KERN\_OSRELEASE string no X KERN\_OSREV integer no X! KERN\_VERSION string no X! KERN\_MAXINODES integer no X! KERN\_MAXPROC integer no X! KERN\_MAXFILES integer no X! KERN\_ARGMAX integer no X! KERN\_SECURELVL integer raise only X! KERN\_HOSTNAME string yes X! KERN\_HOSTID long yes X! KERN\_CLOCKRATE struct clockinfo no X! KERN\_INODE struct inode no X KERN\_PROC struct proc no X+ KERN\_FILE struct file no X KERN\_PROF node not applicable X+ KERN\_POSIX1 integer no X+ KERN\_NGROUPS integer no X+ KERN\_JOB\_CONTROL integer no X KERN\_SAVED\_IDS integer no X! KERN\_BOOTTIME struct timeval no X! KERN\_MAXTEXTS integer no X KERN\_TEXT struct text no X! KERN\_ACCTTHRESH int yes X! KERN\_LINEHZ int yes X .fi X .PP X+ KERN_ACCTTHRESH X+ .br X+ .in +.5i X+ Number of process accounting records buffered before the accounting daemon X+ .BR acctd (8) X+ is notified that records are available to be read. X+ .sp X+ .in -.5i X+ KERN_LINEHZ X+ .br X+ .in +.5i X+ The kernel clock frequency. This may be changed. Values are X+ restricted by the kernel to 50 or 60. X+ .sp X+ .in -.5i X KERN_ARGMAX X .br X .in +.5i X*************** X*** 306,315 **** X This structure contains the time that the system was booted. X .sp X .in -.5i X- .\"KERN_CHOWN_RESTRICTED X- .\"Return 1 if appropriate privileges are required for the X- .\".Xr chown 2 X- .\"system call, otherwise 0. X KERN_CLOCKRATE X .br X .in +.5i X--- 319,324 ---- X*************** X*** 326,333 **** X Each element of the array contains the kernel address of a file X \fIstruct inode *\fP X followed by the file itself X! \fIstruct file\fP. There can never be more than \fBKERN_MAXFILES\fP X! inodes returned. X .sp X .in -.5i X KERN_HOSTID X--- 335,343 ---- X Each element of the array contains the kernel address of a file X \fIstruct inode *\fP X followed by the file itself X! \fIstruct file\fP. X! There can never be more than \fBKERN_MAXFILES\fP X! structures returned. X .sp X .in -.5i X KERN_HOSTID X*************** X*** 348,355 **** X Return 1 if job control is available on this system, otherwise 0. X .sp X .in -.5i X- .\"KERN_LINK_MAX X- .\"The maximum file link count. X KERN_MAXFILES X .br X .in +.5i X--- 358,363 ---- X*************** X*** 374,386 **** X The maximum number of text structures available on the system. X .sp X .in -.5i X- .\"KERN_MAX_CANON X- .\"The maximum number of bytes in terminal canonical input line. X- .\"KERN_MAX_INPUT X- .\"The minimum maximum number of bytes for which space is available in X- .\"a terminal input queue. X- .\"KERN_NAME_MAX X- .\"The maximum number of bytes in a file name. X KERN_NGROUPS X .br X .in +.5i X--- 382,387 ---- X*************** X*** 387,394 **** X The maximum number of supplemental groups. X .sp X .in -.5i X- .\"KERN_NO_TRUNC X- .\"Return 1 if file names longer than KERN_NAME_MAX are truncated. X KERN_OSRELEASE X .br X .in +.5i X--- 388,393 ---- X*************** X*** 407,416 **** X The system type string. X .sp X .in -.5i X- .\"KERN_PATH_MAX X- .\"The maximum number of bytes in a pathname. X- .\"KERN_PIPE_BUF X- .\"The maximum number of bytes which will be written atomically to a pipe. X KERN_POSIX1 X .br X .in +.5i X--- 406,411 ---- X*************** X*** 427,437 **** X structures is returned, X whose size depends on the current number of such objects in the system. X .sp X- .in -.5i X The third and fourth level names are as follows: X .sp X .nf X! .ta .25i 3.0i X Third level name Fourth level is: X KERN\_PROC\_ALL None X KERN\_PROC\_PID A process ID X--- 422,431 ---- X structures is returned, X whose size depends on the current number of such objects in the system. X .sp X The third and fourth level names are as follows: X .sp X .nf X! .ta .5i 3.0i X Third level name Fourth level is: X KERN\_PROC\_ALL None X KERN\_PROC\_PID A process ID X*************** X*** 439,504 **** X KERN\_PROC\_TTY A tty device X KERN\_PROC\_UID A user ID X KERN\_PROC\_RUID A real user ID X- KERN\_PROF Return kernel profiling information. X .fi X .sp X- .in + .5i X- If the kernel is not compiled for profiling, X- attempts to retrieve any of the KERN_PROF values will X- fail with EOPNOTSUPP. X- .sp X .in -.5i X! The third level names for the string and integer profiling information X! is detailed below. X! The changeable column shows whether a process with appropriate X! privilege may change the value. X! .sp X! .in +.5i X! .nf X! .ta .25i 2.25i 4.25i X! Third level name Type Changeable X! GPROF\_STATE integer yes X! GPROF\_COUNT u_short[\|] yes X! GPROF\_FROMS u_short[\|] yes X! GPROF\_TOS struct tostruct yes X! GPROF\_GMONPARAM struct gmonparam no X! .fi X! .PP X! The variables are as follows: X! .sp X! GPROF_STATE X .br X .in +.5i X! Returns GMON_PROF_ON or GMON_PROF_OFF to show that profiling X! is running or stopped. X .sp X .in -.5i X- GPROF_COUNT X- .br X- .in +.5i X- Array of statistical program counter counts. X- .sp X- .in -.5i X- GPROF_FROMS X- .br X- .in +.5i X- Array indexed by program counter of call-from points. X- .sp X- .in -.5i X- GPROF_TOS X- .br X- .in +.5i X- Array of X- \fIstruct tostruct\fP X- describing destination of calls and their counts. X- .sp X- .in -.5i X- GPROF_GMONPARAM X- .br X- .in +.5i X- Structure giving the sizes of the above arrays. X- .in -.5i X- .sp X KERN_SAVED_IDS X .br X .in +.5i X--- 433,449 ---- X KERN\_PROC\_TTY A tty device X KERN\_PROC\_UID A user ID X KERN\_PROC\_RUID A real user ID X .fi X .sp X .in -.5i X! KERN\_PROF X .br X .in +.5i X! Kernel profiling is not supported on 2.11BSD. X! Attempts to retrieve any KERN_PROF values will X! fail with EOPNOTSUPP. X .sp X .in -.5i X KERN_SAVED_IDS X .br X .in +.5i X*************** X*** 505,511 **** X Returns 1 if saved set-group and saved set-user ID is available. X .sp X .in -.5i X- .in -.5i X KERN_SECURELVL X .br X .in +.5i X--- 450,455 ---- X*************** X*** 514,521 **** X It may only be lowered by process 1. X .sp X .in -.5i X- .\"KERN_VDISABLE X- .\"Returns the terminal character disabling value. X KERN_VERSION X .br X .in +.5i X--- 458,463 ---- X*************** X*** 839,844 **** X--- 781,788 ---- X VM\_SWAPMAP struct mapent no X VM\_COREMAP struct mapent no X VM\_NSWAP int no X+ VM\_SWAPDEV int no X+ VM\_CP_TIME struct long[4] no X .fi X .PP X VM_LOADAVG X*************** X*** 880,885 **** X--- 824,844 ---- X Return the number of sectors of swap space. This is the value of the kernel X variable 'nswap'. X .br X+ .in -.5i X+ .sp X+ VM_SWAPDEV X+ .br X+ .in +.5i X+ Return the swap device. This is the value of the kernel variable 'swapdev'. X+ .br X+ .in -.5i X+ .sp X+ VM_CP_TIME X+ .br X+ .in +.5i X+ Display the kernel cpu state table. The four values are the number of X+ clock ticks since boot the cpu has spent in \fIuser\fP, \fInice\fP, X+ \fIsystem\fP and \fIidle\fP state. X .SH RETURN VALUES X If the call to X \fBsysctl\fP X*************** X*** 962,968 **** X .B sysctl X function first appeared in 4.4BSD. X .PP X! The KERN_TEXT, KERN_MAXTEXTS, VM_SWAPMAP, VM_COREMAP options are X 2.11BSD specific extensions to the 4.4BSD \fIsysctl\fP implmentation. X .PP X Having KERN_FILE return the address of the file structure before the X--- 921,928 ---- X .B sysctl X function first appeared in 4.4BSD. X .PP X! The KERN_TEXT, KERN_MAXTEXTS, VM_SWAPMAP, VM_SWAPDEV, VM_NSWAP and X! VM_COREMAP options are X 2.11BSD specific extensions to the 4.4BSD \fIsysctl\fP implmentation. X .PP X Having KERN_FILE return the address of the file structure before the X*** ./usr/src/man/man3/getopt.3.old Fri Jan 12 17:14:45 1996 X--- ./usr/src/man/man3/getopt.3 Sat Jun 13 15:22:18 2026 X*************** X*** 29,37 **** X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)getopt.3 8.4.1 (2.11BSD) 1996/1/12 X .\" X! .TH GETOPT 3 "January 12, 1996" X .UC 6 X .SH NAME X \fBgetopt\fP \- get option character from command line argument list X--- 29,37 ---- X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)getopt.3 8.4.2 (2.11BSD) 2026/6/13 X .\" X! .TH GETOPT 3 "June 13, 2026" X .UC 6 X .SH NAME X \fBgetopt\fP \- get option character from command line argument list X*************** X*** 153,160 **** X .I optarg X or detects X a missing option argument it writes an error message and returns `?' X! to the X! .IR stderr . X Setting X .I opterr X to a zero will disable these error messages. X--- 153,159 ---- X .I optarg X or detects X a missing option argument it writes an error message and returns `?' X! to the caller. X Setting X .I opterr X to a zero will disable these error messages. X*** ./usr/src/man/man3/printf.3.old Fri Dec 26 00:52:29 2025 X--- ./usr/src/man/man3/printf.3 Sun Sep 27 18:45:00 2026 X*************** X*** 33,39 **** X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)printf.3 8.2 (2.11BSD) 2025/12/26 X .\" X .Dd June 4, 1993 X .Dt PRINTF 3 X--- 33,39 ---- X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)printf.3 8.3 (2.11BSD) 2026/06/18 X .\" X .Dd June 4, 1993 X .Dt PRINTF 3 X*************** X*** 77,83 **** X family of functions produces output according to a X .Fa format X as described below. X! .Fn Printf X and X .Fn vprintf X write output to X--- 77,83 ---- X family of functions produces output according to a X .Fa format X as described below. X! .Fn printf X and X .Fn vprintf X write output to X*************** X*** 133,139 **** X .\" will return X .\" .SM X .\" .BR X! .Fn Snprintf X and X .Fn vsnprintf X will write at most X--- 133,139 ---- X .\" will return X .\" .SM X .\" .BR X! .Fn snprintf X and X .Fn vsnprintf X will write at most X*************** X*** 147,153 **** X .Fa size X argument, the string was too short X and some of the printed characters were discarded. X! .Fn Sprintf X and X .Fn vsprintf X effectively assume an infinite X--- 147,153 ---- X .Fa size X argument, the string was too short X and some of the printed characters were discarded. X! .Fn sprintf X and X .Fn vsprintf X effectively assume an infinite X*************** X*** 228,234 **** X .Cm n , X the converted value is padded on the left with zeros rather than blanks. X If a precision is given with a numeric conversion X! .Pf ( Mc d , X .Cm i , X .Cm o , X .Cm u , X--- 228,234 ---- X .Cm n , X the converted value is padded on the left with zeros rather than blanks. X If a precision is given with a numeric conversion X! .Pf ( Cm d , X .Cm i , X .Cm o , X .Cm u , X*************** X*** 376,387 **** X .Cm G X conversion corresponds to a X .Em long double X! argument (but note that long double values are not currently supported X! by the X! .Tn VAX X! and X! .Tn Tahoe X! compilers). X .It X A character that specifies the type of conversion to be applied. X .El X--- 376,382 ---- X .Cm G X conversion corresponds to a X .Em long double X! argument. X .It X A character that specifies the type of conversion to be applied. X .El X*************** X*** 422,428 **** X conversions; the letters X .Cm ABCDEF X are used for X! .m X X conversions. X The precision, if any, gives the minimum number of digits that must X appear; if the converted value requires fewer digits, it is padded on X--- 417,423 ---- X conversions; the letters X .Cm ABCDEF X are used for X! .Cm X X conversions. X The precision, if any, gives the minimum number of digits that must X appear; if the converted value requires fewer digits, it is padded on X*************** X*** 518,527 **** X .It Cm p X The X .Dq Em void * X! pointer argument is printed in hexadecimal (as if by X! .Ql %#x X! or X! .Ql %#lx ) . X .It Cm n X The number of characters written so far is stored into the X integer indicated by the X--- 513,520 ---- X .It Cm p X The X .Dq Em void * X! pointer argument is printed in octal (as if by X! .Ql %#o ) . X .It Cm n X The number of characters written so far is stored into the X integer indicated by the X*** ./usr/src/man/man3/err.3.old Sat Feb 4 01:05:32 1995 X--- ./usr/src/man/man3/err.3 Sun Jul 12 18:44:03 2026 X*************** X*** 29,37 **** X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)err.3 8.1.1 (2.11BSD GTE) 2/3/95 X .\" X! .TH ERR 3 "February 3, 1995" X .UC 4 X .SH NAME X err, X--- 29,37 ---- X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)err.3 8.1.2 (2.11BSD) 2026/7/12 X .\" X! .TH ERR 3 "July 12, 2026" X .UC 4 X .SH NAME X err, X*************** X*** 43,48 **** X--- 43,50 ---- X warnx , X vwarnx \- formatted error messages X .SH SYNOPSIS X+ .B #include X+ .sp X .nf X .ft B X void X*************** X*** 49,85 **** X err(eval, fmt, ...) X int eval; X char *fmt; X! .PP X void X verr(eval, fmt, args) X int eval; X char *fmt; X va_list args; X! .PP X void X errx(eval, fmt, ...) X int eval; X char *fmt; X! .PP X void X verrx(eval, fmt, args) X int eval X char *fmt; X va_list args; X! .PP X void X warn(fmt, ...) X char *fmt; X! .PP X void X vwarn(fmt, args) X char *fmt; X va_list args; X! .PP X void X warnx(fmt, ...) X char *fmt; X! .PP X void X vwarnx(fmt, args) X char *fmt; X--- 51,87 ---- X err(eval, fmt, ...) X int eval; X char *fmt; X! .sp X void X verr(eval, fmt, args) X int eval; X char *fmt; X va_list args; X! .sp X void X errx(eval, fmt, ...) X int eval; X char *fmt; X! .sp X void X verrx(eval, fmt, args) X int eval X char *fmt; X va_list args; X! .sp X void X warn(fmt, ...) X char *fmt; X! .sp X void X vwarn(fmt, args) X char *fmt; X va_list args; X! .sp X void X warnx(fmt, ...) X char *fmt; X! .sp X void X vwarnx(fmt, args) X char *fmt; X*** ./usr/src/man/man3/fopen.3.old Fri Dec 26 00:49:29 2025 X--- ./usr/src/man/man3/fopen.3 Mon Jul 13 09:07:14 2026 X*************** X*** 33,39 **** X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)fopen.3 8.2 (2.11BSD) 2025/12/25 X .\" X .Dd June 4, 1993 X .Dt FOPEN 3 X--- 33,39 ---- X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)fopen.3 8.3 (2.11BSD) 2026/7/13 X .\" X .Dd June 4, 1993 X .Dt FOPEN 3 X*************** X*** 73,80 **** X .It Dq Li w X Truncate file to zero length or create text file for writing. X The stream is positioned at the beginning of the file. X! .No It Dq Li w+ X! Open for reading and writing. X The file is created if it does not exist, otherwise it is truncated. X The stream is positioned at the beginning of the file. X .It Dq Li a X--- 73,80 ---- X .It Dq Li w X Truncate file to zero length or create text file for writing. X The stream is positioned at the beginning of the file. X! .No If Dq Li w+ X! open for reading and writing. X The file is created if it does not exist, otherwise it is truncated. X The stream is positioned at the beginning of the file. X .It Dq Li a X*** ./usr/src/man/man3/time.3.old Sun Dec 14 18:07:14 1986 X--- ./usr/src/man/man3/time.3 Tue Jul 21 20:09:50 2026 X*************** X*** 2,46 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)time.3c 6.1 (Berkeley) 5/9/85 X .\" X! .TH TIME 3C "May 9, 1985" X .UC 4 X .SH NAME X time, ftime \- get date and time X .SH SYNOPSIS X- .nf X- .B long time(0) X- .PP X- .B long time(tloc) X- .B long *tloc; X- .PP X .B #include X .B #include X! .B ftime(tp) X! .B struct timeb *tp; X! .fi X .SH DESCRIPTION X .ft B X These interfaces are obsoleted by gettimeofday(2). X .ft R X .PP X! .I Time X returns the time since 00:00:00 GMT, Jan. 1, 1970, measured X in seconds. X .PP X If X .I tloc X! is nonnull, X! the return value is also stored in the X! place to which X! .I tloc X! points. X .PP X! The X! .I ftime X! entry fills in a structure pointed to by its argument, X! as defined by X .RI < sys/timeb.h >: X .PP X .ta .5i +\w'unsigned 'u X--- 2,36 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)time.3 6.2 (2.11BSD) 2026/7/21 X .\" X! .TH TIME 3 "May 21, 2026" X .UC 4 X .SH NAME X time, ftime \- get date and time X .SH SYNOPSIS X .B #include X+ .br X .B #include X! .sp X! .B time_t time(time_t *tloc); X! .sp X! .B ftime(struct timeb *tp); X .SH DESCRIPTION X .ft B X These interfaces are obsoleted by gettimeofday(2). X .ft R X .PP X! .B time X returns the time since 00:00:00 GMT, Jan. 1, 1970, measured X in seconds. X .PP X If X .I tloc X! is nonnull the return value is also stored at that address. X .PP X! .B ftime X! fills in a structure pointed to by its argument as defined by X .RI < sys/timeb.h >: X .PP X .ta .5i +\w'unsigned 'u X*** ./usr/src/man/man3/mktemp.3.old Tue Jul 21 17:21:15 1987 X--- ./usr/src/man/man3/mktemp.3 Wed Jul 29 15:45:39 2026 X*************** X*** 1,4 **** X! .\" @(#)mktemp.3 6.3 (Berkeley) 4/10/87 X .\" X .TH MKTEMP 3 "April 10, 1987" X .AT 3 X--- 1,4 ---- X! .\" @(#)mktemp.3 6.4 (2.11BSD) 2026/7/29 X .\" X .TH MKTEMP 3 "April 10, 1987" X .AT 3 X*************** X*** 9,15 **** X .B char *mktemp(template) X .B char *template; X .sp X! .B mkstemp(template) X .B char *template; X .fi X .SH DESCRIPTION X--- 9,15 ---- X .B char *mktemp(template) X .B char *template; X .sp X! .B int mkstemp(template) X .B char *template; X .fi X .SH DESCRIPTION X*** ./usr/src/man/man3/sleep.3.old Sat Sep 27 00:59:27 1997 X--- ./usr/src/man/man3/sleep.3 Sat Sep 19 09:27:06 2026 X*************** X*** 29,38 **** X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)sleep.3 8.1.1 (2.11BSD) 1997/9/26 X .\" X .TH SLEEP 3 "September 26,1997" X! .UC 3 X .SH NAME X \fBsleep\fP, usleep \- suspend process execution X .SH SYNOPSIS X--- 29,38 ---- X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)sleep.3 8.1.2 (2.11BSD) 2026/9/19 X .\" X .TH SLEEP 3 "September 26,1997" X! .UC 2 X .SH NAME X \fBsleep\fP, usleep \- suspend process execution X .SH SYNOPSIS X*************** X*** 39,47 **** X .B #include X .sp X .nf X! unsigned int X sleep(seconds) X! unsigned int seconds; X .sp X void X usleep(microseconds) X--- 39,47 ---- X .B #include X .sp X .nf X! int X sleep(seconds) X! int seconds; X .sp X void X usleep(microseconds) X*************** X*** 58,64 **** X .B usleep X function suspends execution of the calling process for X .I microseconds X! of clock time, or until interrupted by a signal. X .PP X System activity may lengthen the suspension. X .SH RETURN VALUES X--- 58,64 ---- X .B usleep X function suspends execution of the calling process for X .I microseconds X! of clock time or until interrupted by a signal. X .PP X System activity may lengthen the suspension. X .SH RETURN VALUES X*************** X*** 81,94 **** X This implementation has been changed to return in that case, X to conform to POSIX 1003.1-88. X .PP X! On the PDP-11 the previous version of \fBusleep\fP took a \fIu_int\fP as X the input parameter. This has been changed to be \fIlong\fP so that X \fBusleep\fP can be used for more than 65 milliseconds (a u_int could only X! count 65535 microseconds) of sleep. Thus it is now possible for X! \fBusleep\fP to handle longer sleep durations than \fBsleep\fP. X .SH BUGS X! On the PDP-11 the clock resolution is limited to the line frequency (usually X! 60Hz in the U.S.A. and 50Hz elsewhere). X .SH HISTORY X A X .B usleep X--- 81,108 ---- X This implementation has been changed to return in that case, X to conform to POSIX 1003.1-88. X .PP X! The previous version of \fBusleep\fP took a \fIu_int\fP as X the input parameter. This has been changed to be \fIlong\fP so that X \fBusleep\fP can be used for more than 65 milliseconds (a u_int could only X! count 65535 microseconds) of sleep. X! .PP X! Both \fBsleep\fP and \fBusleep\fP use X! the \fBtimeval\fP parameter of \fBselect\fP to sleep. The kernel converts the X! \fBtimeval\fP of \fBselect\fP to an \fIint\fP number (32767 max) of X! clock ticks. Thus for a 60Hz X! clock the longest time \fBselect\fP can sleep is about 9 minutes X! (13 minutes with a 50Hz clock). X! .PP X! .B sleep X! uses a loop to issue multiple \fBselect\fP calls until the requested number X! of seconds have been slept OR an interrupt occurs. X! .PP X! .B usleep X! does not use a loop and thus can sleep for the maximum time supported X! by \fBselect\fP. X .SH BUGS X! The clock resolution is limited to the line frequency (usually 60Hz in X! the U.S.A. and 50Hz elsewhere). X .SH HISTORY X A X .B usleep X*** ./usr/src/man/man3/ns.3.old Sun Dec 14 18:07:08 1986 X--- ./usr/src/man/man3/ns.3 Sun Sep 27 15:46:14 2026 X*************** X*** 2,31 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)ns.3n 6.2 (Berkeley) 5/12/86 X .\" X! .TH NS 3N "May 12, 1986" X .UC 6 X .SH NAME X ns_addr, ns_ntoa \- Xerox NS(tm) address conversion routines X .SH SYNOPSIS X .nf X! .B "#include X! .B "#include X! .PP X! .B "struct ns_addr ns_addr(cp) X! .B "char *cp; X! .PP X! .B "char *ns_ntoa(ns) X! .B "struct ns_addr ns; X .fi X .SH DESCRIPTION X The routine X! .I ns_addr X interprets character strings representing X XNS addresses, returning binary information suitable X for use in system calls. X! .I ns_ntoa X takes XNS addresses and returns ASCII X strings representing the address in a X notation in common use in the Xerox Development Environment: X--- 2,33 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)ns.3 6.3 (Berkeley) 2026/9/27 X .\" X! .TH NS 3 "May 12, 1986" X .UC 6 X .SH NAME X ns_addr, ns_ntoa \- Xerox NS(tm) address conversion routines X .SH SYNOPSIS X .nf X! .ft B X! "#include X! "#include X! X! struct ns_addr X! ns_addr(\fIchar *cp\fP) X! X! char * X! ns_ntoa(\fIstruct ns_addr ns\fP) X! .ft R X .fi X .SH DESCRIPTION X The routine X! .B ns_addr X interprets character strings representing X XNS addresses, returning binary information suitable X for use in system calls. X! .B ns_ntoa X takes XNS addresses and returns ASCII X strings representing the address in a X notation in common use in the Xerox Development Environment: X*************** X*** 34,46 **** X .fi X Trailing zero fields are suppressed, and each number is printed in hexadecimal, X in a format suitable for input to X! .IR ns_addr . X Any fields lacking super-decimal digits will have a X trailing ``H'' appended. X .PP X Unfortunately, no universal standard exists for representing XNS addresses. X An effort has been made to insure that X! .I ns_addr X be compatible with most formats in common use. X It will first separate an address into 1 to 3 fields using a single delimiter X chosen from X--- 36,48 ---- X .fi X Trailing zero fields are suppressed, and each number is printed in hexadecimal, X in a format suitable for input to X! .BR ns_addr . X Any fields lacking super-decimal digits will have a X trailing ``H'' appended. X .PP X Unfortunately, no universal standard exists for representing XNS addresses. X An effort has been made to insure that X! .B ns_addr X be compatible with most formats in common use. X It will first separate an address into 1 to 3 fields using a single delimiter X chosen from X*************** X*** 66,74 **** X None (see BUGS). X .SH BUGS X The string returned by X! .I ns_ntoa X resides in a static memory area. X! .br X! .I ns_addr X should diagnose improperly formed input, and there should be an unambiguous X way to recognize this. X--- 68,76 ---- X None (see BUGS). X .SH BUGS X The string returned by X! .B ns_ntoa X resides in a static memory area. X! .sp X! .B ns_addr X should diagnose improperly formed input, and there should be an unambiguous X way to recognize this. X*** ./usr/src/man/man3/alarm.3.old Sun Dec 14 18:07:14 1986 X--- ./usr/src/man/man3/alarm.3 Sat Sep 19 13:41:08 2026 X*************** X*** 2,24 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)alarm.3c 6.3 (Berkeley) 5/27/86 X .\" X! .TH ALARM 3C "May 27, 1986" X! .UC 4 X .SH NAME X alarm \- schedule signal after specified time X .SH SYNOPSIS X! .nf X! .B alarm(seconds) X! .B unsigned seconds; X! .fi X .SH DESCRIPTION X .ft B X! This interface is made obsolete by setitimer(2). X .ft R X .PP X! .I Alarm X causes signal SIGALRM, see X .IR sigvec (2), X to be sent to the invoking process X--- 2,21 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)alarm.3 6.4 (2.11BSD) 2026/9/19 X .\" X! .TH ALARM 3 "May 27, 1986" X! .UC 2 X .SH NAME X alarm \- schedule signal after specified time X .SH SYNOPSIS X! .B unsigned int alarm(unsigned int seconds) X .SH DESCRIPTION X .ft B X! This interface is made obsolete by (and implemented using) setitimer(2). X .ft R X .PP X! .B alarm X causes signal SIGALRM, see X .IR sigvec (2), X to be sent to the invoking process X*************** X*** 25,37 **** X in a number of seconds given by the argument. X Unless caught or ignored, the signal terminates the process. X .PP X! Alarm requests are not stacked; successive calls reset the alarm clock. X If the argument is 0, any alarm request is canceled. X Because of scheduling delays, X resumption of execution of when the signal is X caught may be delayed an arbitrary amount. X! The longest specifiable delay time is 2147483647 seconds. X .PP X The return value is the amount of time previously remaining in the alarm clock. X .SH "SEE ALSO" X! sigpause(2), sigvec(2), signal(3C), sleep(3), ualarm(3), usleep(3) X--- 22,34 ---- X in a number of seconds given by the argument. X Unless caught or ignored, the signal terminates the process. X .PP X! \fBalarm\fP requests are not stacked; successive calls reset the alarm clock. X If the argument is 0, any alarm request is canceled. X Because of scheduling delays, X resumption of execution of when the signal is X caught may be delayed an arbitrary amount. X! The longest specifiable delay time is 65535 seconds. X .PP X The return value is the amount of time previously remaining in the alarm clock. X .SH "SEE ALSO" X! sigvec(2), signal(3), sleep(3), ualarm(3), usleep(3) X*** ./usr/src/man/man3/ualarm.3.old Fri Aug 26 17:07:45 1988 X--- ./usr/src/man/man3/ualarm.3 Sat Sep 19 15:50:24 2026 X*************** X*** 2,11 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)@(#)ualarm.3 6.4 (Berkeley) 8/26/88 X .\" X .TH UALARM 3 "August 26, 1988" X! .UC 6 X .SH NAME X ualarm \- schedule signal after specified time X .SH SYNOPSIS X--- 2,11 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)@(#)ualarm.3 6.5 (2.11BSD) 2026/9/19 X .\" X .TH UALARM 3 "August 26, 1988" X! .UC 2 X .SH NAME X ualarm \- schedule signal after specified time X .SH SYNOPSIS X*************** X*** 19,27 **** X This is a simplified interface to setitimer(2). X .ft R X .PP X! .I Ualarm X causes signal SIGALRM, see X! .IR signal (3C), X to be sent to the invoking process X in a number of microseconds given by the X .I value X--- 19,27 ---- X This is a simplified interface to setitimer(2). X .ft R X .PP X! .B ualarm X causes signal SIGALRM, see X! .IR signal (3), X to be sent to the invoking process X in a number of microseconds given by the X .I value X*************** X*** 40,55 **** X Because of scheduling delays, X resumption of execution of when the signal is X caught may be delayed an arbitrary amount. X! The longest specifiable delay time (on the vax) is 2147483647 microseconds. X .PP X The return value is the amount of time previously remaining in the alarm clock. X .SH "SEE ALSO" X! getitimer(2), setitimer(2), sigpause(2), sigvec(2), signal(3C), sleep(3), X! alarm(3), usleep(3) X! .SH "NOTES (PDP-11)" X On the PDP-11, X .IR setitimer (2) X rounds the number of microseconds up to seconds resolution, therefore X! .I ualarm X! doesn't give you any more resolution than X! .IR alarm (3). X--- 40,54 ---- X Because of scheduling delays, X resumption of execution of when the signal is X caught may be delayed an arbitrary amount. X! The longest specifiable delay time is 65535 microseconds which is about 3 X! ticks of a 50 or 60Hz clock. X .PP X The return value is the amount of time previously remaining in the alarm clock. X .SH "SEE ALSO" X! getitimer(2), setitimer(2), signal(3), sleep(3), alarm(3), usleep(3) X! .SH NOTES X On the PDP-11, X .IR setitimer (2) X rounds the number of microseconds up to seconds resolution, therefore X! .B ualarm X! gives only 1 second of resolution. X*** ./usr/src/man/man3/getfsent.3.old Sun Dec 14 18:07:09 1986 X--- ./usr/src/man/man3/getfsent.3 Sat Sep 19 18:49:29 2026 X*************** X*** 2,11 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)getfsent.3 6.3 (Berkeley) 5/12/86 X .\" X .TH GETFSENT 3 "May 12, 1986" X! .UC 4 X .SH NAME X getfsent, getfsspec, getfsfile, getfstype, setfsent, endfsent \- get file system descriptor file entry X .SH SYNOPSIS X--- 2,11 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)getfsent.3 6.4 (2.11BSD) 2026/9/19 X .\" X .TH GETFSENT 3 "May 12, 1986" X! .UC 2 X .SH NAME X getfsent, getfsspec, getfsfile, getfstype, setfsent, endfsent \- get file system descriptor file entry X .SH SYNOPSIS X*************** X*** 28,38 **** X .B int endfsent() X .fi X .SH DESCRIPTION X! .IR Getfsent , X! .IR getfsspec , X! .IR getfstype , X and X! .I getfsfile X each return a pointer to an object with the following structure X containing the broken-out fields of a line in the file system description file, X .IR < fstab.h >. X--- 28,38 ---- X .B int endfsent() X .fi X .SH DESCRIPTION X! .BR getfsent , X! .BR getfsspec , X! .BR getfstype , X and X! .B getfsfile X each return a pointer to an object with the following structure X containing the broken-out fields of a line in the file system description file, X .IR < fstab.h >. X*************** X*** 42,47 **** X--- 42,49 ---- X struct fstab { X char *fs_spec; X char *fs_file; X+ char *fs_vfstype; X+ char *fs_mntopts; X char *fs_type; X int fs_freq; X int fs_passno; X*************** X*** 54,75 **** X The fields have meanings described in X .IR fstab (5). X .PP X! .I Getfsent X reads the next line of the file, opening the file if necessary. X .PP X! .I Setfsent X opens and rewinds the file. X .PP X! .I Endfsent X closes the file. X .PP X! .I Getfsspec X and X! .I getfsfile X sequentially search from the beginning of the file until a matching X special file name or file system file name is found, X or until EOF is encountered. X! .I Getfstype X does likewise, matching on the file system type field. X .SH FILES X /etc/fstab X--- 56,77 ---- X The fields have meanings described in X .IR fstab (5). X .PP X! .B getfsent X reads the next line of the file, opening the file if necessary. X .PP X! .B setfsent X opens and rewinds the file. X .PP X! .B endfsent X closes the file. X .PP X! .B getfsspec X and X! .B getfsfile X sequentially search from the beginning of the file until a matching X special file name or file system file name is found, X or until EOF is encountered. X! .B getfstype X does likewise, matching on the file system type field. X .SH FILES X /etc/fstab X*************** X*** 76,83 **** X .SH "SEE ALSO" X fstab(5) X .SH DIAGNOSTICS X! Null pointer X! (0) returned on EOF or error. X .SH BUGS X All information is contained in a static area so it must be copied if it is X to be saved. X--- 78,84 ---- X .SH "SEE ALSO" X fstab(5) X .SH DIAGNOSTICS X! Null pointer (0) returned on EOF or error. X .SH BUGS X All information is contained in a static area so it must be copied if it is X to be saved. X*** ./usr/src/man/man3/l3tol.3.old Fri Jan 23 03:22:05 1987 X--- ./usr/src/man/man3/l3tol.3 Sat Sep 19 22:35:08 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)l3tol.3 2.3 (Berkeley) 1/22/87 X .\" X .TH L3TOL 3 X .UC 2 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)l3tol.3 2.4 (2.11BSD) 2026/9/19 X .\" X .TH L3TOL 3 X .UC 2 X*************** X*** 21,27 **** X .fi X .ft R X .SH DESCRIPTION X! .I L3tol X converts a list of X .I n X three-byte integers packed into a character string X--- 21,27 ---- X .fi X .ft R X .SH DESCRIPTION X! .B l3tol X converts a list of X .I n X three-byte integers packed into a character string X*************** X*** 30,45 **** X into a list of long integers pointed to by X .IR lp . X .PP X! .I Ltol3 X performs the inverse conversion from long integers X .RI ( lp ) X to three-byte integers X .RI ( cp ). X .PP X! These functions are useful for file-system maintenance under X! 2BSD where disk addresses within inodes are three bytes long. X .SH SEE ALSO X fs(5) X .SH BUGS X .IR l3tol " and " ltol3 X! are unique to the PDP-11 and 2BSD; their use is discouraged. X--- 30,46 ---- X into a list of long integers pointed to by X .IR lp . X .PP X! .B ltol3 X performs the inverse conversion from long integers X .RI ( lp ) X to three-byte integers X .RI ( cp ). X .PP X! These functions were used for file-system maintenance under X! 2.9BSD where disk addresses in inodes are three bytes long. X .SH SEE ALSO X fs(5) X .SH BUGS X .IR l3tol " and " ltol3 X! are present in 2.11BSD only for compatibility with 2.9BSD. The functions are X! deprecated and will be removed eventually. X*** ./usr/src/man/man3/exit.3.old Sun Dec 14 18:07:24 1986 X--- ./usr/src/man/man3/exit.3 Sun Sep 20 16:11:39 2026 X*************** X*** 2,26 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)exit.3 6.2 (Berkeley) 5/12/86 X .\" X .TH EXIT 3 "May 12, 1986" X! .UC 5 X .SH NAME X exit \- terminate a process after flushing any pending output X .SH SYNOPSIS X .nf X .ft B X! exit(status) X! int status; X .fi X .SH DESCRIPTION X! .I Exit X terminates a process after calling the Standard I/O library X function X! .I _cleanup X to flush any buffered output. X! .I Exit X never returns. X .SH "SEE ALSO" X exit(2), intro(3) X--- 2,26 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)exit.3 6.3 (2.11BSD) 2026/9/20 X .\" X .TH EXIT 3 "May 12, 1986" X! .UC 2 X .SH NAME X exit \- terminate a process after flushing any pending output X .SH SYNOPSIS X .nf X .ft B X! void X! exit(\fIint status\fP) X .fi X .SH DESCRIPTION X! .B exit X terminates a process after calling the Standard I/O library X function X! .B _cleanup X to flush any buffered output. X! .B exit X never returns. X .SH "SEE ALSO" X exit(2), intro(3) X*** ./usr/src/man/man3/initgroups.3.old Sun Dec 14 18:07:09 1986 X--- ./usr/src/man/man3/initgroups.3 Sun Sep 20 20:02:33 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)initgroups.3 6.2 (Berkeley) 5/12/86 X .\" X .TH INITGROUPS 3 "May 12, 1986" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)initgroups.3 6.3 (2.11BSD) 2026/9/20 X .\" X .TH INITGROUPS 3 "May 12, 1986" X .UC 5 X*************** X*** 9,24 **** X .SH NAME X initgroups \- initialize group access list X .SH SYNOPSIS X! .B initgroups(name, basegid) X! .br X! .B char *name; X! .br X! .B int basegid; X .SH DESCRIPTION X! .I Initgroups X reads through the group file and sets up, X using the X! .IR setgroups (2) X call, the group access list for the user X specified in X .IR name . X--- 9,27 ---- X .SH NAME X initgroups \- initialize group access list X .SH SYNOPSIS X! .nf X! .ft B X! #include X! X! int X! initgroups(\fIconst char *name\fP, \fIgid_t basegid\fP) X! .ft R X! .fi X .SH DESCRIPTION X! .B initgroups X reads through the group file and sets up, X using the X! .BR setgroups (2) X call, the group access list for the user X specified in X .IR name . X*************** X*** 32,44 **** X .SH SEE ALSO X setgroups(2) X .SH DIAGNOSTICS X! .I Initgroups X returns \-1 if it was not invoked by the super-user. X .SH BUGS X! .I Initgroups X uses the routines based on X! .IR getgrent (3). X If the invoking program uses any of these routines, X the group structure will X be overwritten in the call to X! .IR initgroups . X--- 35,47 ---- X .SH SEE ALSO X setgroups(2) X .SH DIAGNOSTICS X! .B initgroups X returns \-1 if it was not invoked by the super-user. X .SH BUGS X! .B initgroups X uses the routines based on X! .BR getgrent (3). X If the invoking program uses any of these routines, X the group structure will X be overwritten in the call to X! .BR initgroups . X*** ./usr/src/man/man3/signal.3.old Wed Feb 4 20:58:29 1987 X--- ./usr/src/man/man3/signal.3 Tue Sep 22 21:51:00 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)signal.3c 6.4 (Berkeley) 5/20/86 X .\" X! .TH SIGNAL 3C "May 20, 1986" X .UC 4 X .ie t .ds d \(dg X .el .ds d \z'|+' X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)signal.3 6.5 (2.11BSD) 2026/9/21 X .\" X! .TH SIGNAL 3 "September 21, 2026" X .UC 4 X .ie t .ds d \(dg X .el .ds d \z'|+' X*************** X*** 14,28 **** X signal \- simplified software signal facilities X .SH SYNOPSIS X .nf X! .B #include X! .PP X! .B (*signal(sig, func))() X! .B int (*func)(); X .fi X .SH DESCRIPTION X! .I Signal X is a simplified interface to the more general X! .IR sigvec (2) X facility. X .PP X A signal X--- 14,32 ---- X signal \- simplified software signal facilities X .SH SYNOPSIS X .nf X! .ft B X! #include X! X! typedef void (*sig_t)(int); X! X! sig_t X! signal(\fIint sig\fP, \fIsig_t func\fP); X! .ft R X .fi X .SH DESCRIPTION X! .B signal X is a simplified interface to the more general X! .BR sigaction (2) X facility. X .PP X A signal X*************** X*** 32,38 **** X by request of another program (kill), X or when a process is stopped because it wishes to access X its control terminal while in the background (see X! .IR tty (4)). X Signals are optionally generated X when a process resumes after being stopped, X when the status of child processes changes, X--- 36,42 ---- X by request of another program (kill), X or when a process is stopped because it wishes to access X its control terminal while in the background (see X! .BR tty (4)). X Signals are optionally generated X when a process resumes after being stopped, X when the status of child processes changes, X*************** X*** 43,54 **** X requested otherwise. X Except for the SIGKILL and SIGSTOP X signals, the X! .I signal X call allows signals either to be ignored X or to cause an interrupt to a specified location. X The following is a list of all signals with X names as in the include file X! .RI < signal.h >: X .LP X .nf X .ta \w'SIGVTALRM 'u +\w'15* 'u X--- 47,58 ---- X requested otherwise. X Except for the SIGKILL and SIGSTOP X signals, the X! .B signal X call allows signals either to be ignored X or to cause an interrupt to a specified location. X The following is a list of all signals with X names as in the include file X! .RB < signal.h >: X .LP X .nf X .ta \w'SIGVTALRM 'u +\w'15* 'u X*************** X*** 111,117 **** X A return from the function unblocks X the handled signal and X continues the process at the point it was interrupted. X! \fBUnlike previous signal facilities, the handler \fIfunc\fP X remains installed after a signal has been delivered.\fP X .PP X If a caught signal occurs X--- 115,122 ---- X A return from the function unblocks X the handled signal and X continues the process at the point it was interrupted. X! .sp X! \fBUnlike previous signal facilities the handler \fIfunc\fP X remains installed after a signal has been delivered.\fP X .PP X If a caught signal occurs X*************** X*** 120,134 **** X is automatically restarted. X In particular this can occur X during a X! .I read X or X! .IR write (2) X on a slow device (such as a terminal; but not a file) X and during a X! .IR wait (2). X .PP X The value of X! .I signal X is the previous (or initial) X value of X .I func X--- 125,139 ---- X is automatically restarted. X In particular this can occur X during a X! .BR read (2) X or X! .BR write (2) X on a slow device (such as a terminal; but not a file) X and during a X! .BR wait (2). X .PP X The value of X! .B signal X is the previous (or initial) X value of X .I func X*************** X*** 135,160 **** X for the particular signal. X .PP X After a X! .IR fork (2) X or X! .IR vfork (2) X the child inherits X all signals. X! .IR Execve (2) X resets all caught signals to the default action; X ignored signals remain ignored. X .SH "RETURN VALUE X The previous action is returned on a successful call. X Otherwise, \-1 is returned and X! .I errno X is set to indicate the error. X .SH ERRORS X! .I Signal X will fail and no action will take place if one of the X following occur: X .TP 15 X [EINVAL] X! .I Sig X is not a valid signal number. X .TP 15 X [EINVAL] X--- 140,165 ---- X for the particular signal. X .PP X After a X! .BR fork (2) X or X! .BR vfork (2) X the child inherits X all signals. X! .BR execve (2) X resets all caught signals to the default action; X ignored signals remain ignored. X .SH "RETURN VALUE X The previous action is returned on a successful call. X Otherwise, \-1 is returned and X! .B errno X is set to indicate the error. X .SH ERRORS X! .B signal X will fail and no action will take place if one of the X following occur: X .TP 15 X [EINVAL] X! .I sig X is not a valid signal number. X .TP 15 X [EINVAL] X*************** X*** 169,266 **** X ptrace(2), kill(2), X sigvec(2), sigblock(2), sigsetmask(2), sigpause(2), X sigstack(2), setjmp(3), tty(4) X! .SH "NOTES (VAX-11)" X The handler routine can be declared: X .PP X handler(sig, code, scp) X- .PP X- Here X- .I sig X- is the signal number, into which the hardware faults and traps are X- mapped as defined below. Code is a parameter which is either a constant X- as given below or, for compatibility mode faults, the code provided by X- the hardware. X- .I Scp X- is a pointer to the X- .I "struct sigcontext" X- used by the system to restore the process context from before X- the signal. X- Compatibility mode faults are distinguished from the X- other SIGILL traps by having PSL_CM set in the psl. X- .PP X- The following defines the mapping of hardware traps to signals X- and codes. All of these symbols are defined in X- .RI < signal.h >: X- .LP X- .ta \w' Floating/decimal divide by zero 'u +\w'15* 'u +8n X- .nf X- Hardware condition Signal Code X- X- Arithmetic traps: X- Integer overflow SIGFPE FPE_INTOVF_TRAP X- Integer division by zero SIGFPE FPE_INTDIV_TRAP X- Floating overflow trap SIGFPE FPE_FLTOVF_TRAP X- Floating/decimal division by zero SIGFPE FPE_FLTDIV_TRAP X- Floating underflow trap SIGFPE FPE_FLTUND_TRAP X- Decimal overflow trap SIGFPE FPE_DECOVF_TRAP X- Subscript-range SIGFPE FPE_SUBRNG_TRAP X- Floating overflow fault SIGFPE FPE_FLTOVF_FAULT X- Floating divide by zero fault SIGFPE FPE_FLTDIV_FAULT X- Floating underflow fault SIGFPE FPE_FLTUND_FAULT X- Length access control SIGSEGV X- Protection violation SIGBUS X- Reserved instruction SIGILL ILL_RESAD_FAULT X- Customer-reserved instr. SIGEMT X- Reserved operand SIGILL ILL_PRIVIN_FAULT X- Reserved addressing SIGILL ILL_RESOP_FAULT X- Trace pending SIGTRAP X- Bpt instruction SIGTRAP X- Compatibility-mode SIGILL hardware supplied code X- Chme SIGSEGV X- Chms SIGSEGV X- Chmu SIGSEGV X- .fi X- .SH "NOTES (PDP-11)" X- The handler routine can be declared: X- .PP X- handler(sig, code, scp) X int sig, code; X struct sigcontext *scp; X .PP X Here \fIsig\fP is the signal number, into which the hardware faults and X! traps are mapped as defined below. \fICode\fP is a parameter that is a X! constant as given below. \fIScp\fP is a pointer to the \fIsigcontext\fP X! structure (defined in <\fIsignal.h\fP>), used to restore the context from X before the signal. X .PP X The following defines the mapping of hardware traps to signals X! and codes. All of these symbols are defined in <\fIsignal.h\fP>: X .LP X .ta \w' Floating/decimal divide by zero 'u +\w'15* 'u +8n X .nf X! Hardware condition Signal Code X X Arithmetic traps: X! Floating overflow trap SIGFPE FPE_FLTOVF_TRAP X! Floating/decimal division by zero SIGFPE FPE_FLTDIV_TRAP X! Floating underflow trap SIGFPE FPE_FLTUND_TRAP X! Decimal overflow trap SIGFPE FPE_DECOVF_TRAP X! Illegal return code SIGFPE FPE_CRAZY X! Bad op code SIGFPE FPE_OPCODE_TRAP X! Bad operand SIGFPE FPE_OPERAND_TRAP X! Maintenance trap SIGFPE FPE_MAINT_TRAP X Length access control SIGSEGV X Protection violation (odd address) SIGBUS X! Reserved instruction SIGILL ILL_RESAD_FAULT X Customer-reserved instr. SIGEMT X Trace pending SIGTRAP X Bpt instruction SIGTRAP X .fi X .DT X .PP X The handler routine must save any registers it uses and restore them before X! returning. On the PDP-11, the kernel saves \fIr0\fP and \fIr1\fP before X! calling the handler routine, but expect the handler to save any other X registers it uses. The standard entry code generated by the C compiler for X handler routines written in C automatically saves the remaining general X registers, but floating point registers are \fInot\fP saved. As a result X--- 174,226 ---- X ptrace(2), kill(2), X sigvec(2), sigblock(2), sigsetmask(2), sigpause(2), X sigstack(2), setjmp(3), tty(4) X! .SH NOTES X The handler routine can be declared: X .PP X handler(sig, code, scp) X int sig, code; X struct sigcontext *scp; X .PP X Here \fIsig\fP is the signal number, into which the hardware faults and X! traps are mapped as defined below. \fIcode\fP is a parameter that is a X! constant as given below. \fIscp\fP is a pointer to the \fBsigcontext\fP X! structure (defined in <\fBsignal.h\fP>), used to restore the context from X before the signal. X .PP X The following defines the mapping of hardware traps to signals X! and codes. All of these symbols are defined in <\fBsignal.h\fP>: X .LP X .ta \w' Floating/decimal divide by zero 'u +\w'15* 'u +8n X .nf X! Hardware condition Signal X X Arithmetic traps: X! Floating overflow trap SIGFPE X! Floating/decimal division by zero SIGFPE X! Floating underflow trap SIGFPE X! Decimal overflow trap SIGFPE X! Illegal return code SIGFPE X! Bad op code SIGFPE X! Bad operand SIGFPE X! Maintenance trap SIGFPE X Length access control SIGSEGV X Protection violation (odd address) SIGBUS X! Reserved instruction SIGILL X Customer-reserved instr. SIGEMT X Trace pending SIGTRAP X Bpt instruction SIGTRAP X .fi X+ .PP X+ SIGFPE handlers must use X+ .BR fperr (2) X+ to obtain the floating point error registers. See the comments in X+ .B X+ or consult the PDP-11 processor handbook for more information. X .DT X .PP X The handler routine must save any registers it uses and restore them before X! returning. The kernel saves \fIr0\fP and \fIr1\fP before X! calling the handler routine, but expects the handler to save any other X registers it uses. The standard entry code generated by the C compiler for X handler routines written in C automatically saves the remaining general X registers, but floating point registers are \fInot\fP saved. As a result X*** ./usr/src/man/man3/nice.3.old Sun Dec 14 18:07:14 1986 X--- ./usr/src/man/man3/nice.3 Sun Sep 27 06:07:47 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)nice.3c 6.1 (Berkeley) 5/9/85 X .\" X! .TH NICE 3C "May 9, 1985" X .UC 4 X .SH NAME X nice \- set program priority X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)nice.3 6.2 (2.11BSD) 2026/9/27 X .\" X! .TH NICE 3 "May 9, 1985" X .UC 4 X .SH NAME X nice \- set program priority X*************** X*** 12,18 **** X .B nice(incr) X .SH DESCRIPTION X .ft B X! This interface is obsoleted by setpriority(2). X .ft R X .PP X The scheduling X--- 12,18 ---- X .B nice(incr) X .SH DESCRIPTION X .ft B X! This interface is obsoleted by and implemented using setpriority(2). X .ft R X .PP X The scheduling X*************** X*** 31,37 **** X .PP X The priority of a process is X passed to a child process by X! .IR fork (2). X For a privileged process to return to normal priority X from an unknown state, X .I nice X--- 31,37 ---- X .PP X The priority of a process is X passed to a child process by X! .BR fork (2). X For a privileged process to return to normal priority X from an unknown state, X .I nice X*** ./usr/src/man/man3/pause.3.old Sun Dec 14 18:07:14 1986 X--- ./usr/src/man/man3/pause.3 Sun Sep 27 06:09:17 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)pause.3c 6.1 (Berkeley) 5/9/85 X .\" X! .TH PAUSE 3C "May 9, 1985" X .UC 4 X .SH NAME X pause \- stop until signal X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)pause.3 6.2 (2.11BSD) 2026/9/27 X .\" X! .TH PAUSE 3 "May 9, 1985" X .UC 4 X .SH NAME X pause \- stop until signal X*************** X*** 11,32 **** X .SH SYNOPSIS X .B pause() X .SH DESCRIPTION X! .I Pause X never returns normally. X It is used to give up control while waiting for X a signal from X! .IR kill (2) X or an interval timer, see X! .IR setitimer (2). X Upon termination of a signal handler started during a X! .I pause, X the X! .I pause X call will return. X .SH "RETURN VALUE X Always returns \-1. X .SH ERRORS X! .I Pause X always returns: X .TP 15 X [EINTR] X--- 11,32 ---- X .SH SYNOPSIS X .B pause() X .SH DESCRIPTION X! .B pause X never returns normally. X It is used to give up control while waiting for X a signal from X! .BR kill (2) X or an interval timer, see X! .BR setitimer (2). X Upon termination of a signal handler started during a X! .B pause, X the X! .B pause X call will return. X .SH "RETURN VALUE X Always returns \-1. X .SH ERRORS X! .B pause X always returns: X .TP 15 X [EINTR] X*** ./usr/src/man/man3/rand.3.old Sat Jul 11 21:21:55 1987 X--- ./usr/src/man/man3/rand.3 Sun Sep 27 06:11:57 2026 X*************** X*** 1,15 **** X! .\" @(#)rand.3c 6.2 (Berkeley) 9/29/85 X .\" X! .TH RAND 3C "September 29, 1985" X .AT 3 X .SH NAME X rand, srand \- random number generator X .SH SYNOPSIS X .nf X! .B srand(seed) X! .B int seed; X .PP X! .B rand() X .fi X .SH DESCRIPTION X .ft B X--- 1,14 ---- X! .\" @(#)rand.3 6.3 (2.11BSD) 2026/9/27 X .\" X! .TH RAND 3 "September 29, 1985" X .AT 3 X .SH NAME X rand, srand \- random number generator X .SH SYNOPSIS X .nf X! .B srand(\fIint seed\fP) X .PP X! .B int rand(\fIvoid\fP) X .fi X .SH DESCRIPTION X .ft B X*************** X*** 17,23 **** X rand remains for compatibilty. X .ft R X .PP X! .I Rand X uses a multiplicative congruential X random number generator with period X .if t 2\u\s732\s0\d X--- 16,22 ---- X rand remains for compatibilty. X .ft R X .PP X! .B rand X uses a multiplicative congruential X random number generator with period X .if t 2\u\s732\s0\d X*************** X*** 32,41 **** X on the PDP-11. X .PP X The generator is reinitialized by calling X! .I srand X with 1 as argument. X It can be set to a random starting point by calling X! .I srand X with whatever you like as argument. X .SH "SEE ALSO" X random(3) X--- 31,40 ---- X on the PDP-11. X .PP X The generator is reinitialized by calling X! .B srand X with 1 as argument. X It can be set to a random starting point by calling X! .B srand X with whatever you like as argument. X .SH "SEE ALSO" X random(3) X*** ./usr/src/man/man3/random.3.old Tue Dec 25 09:26:46 2018 X--- ./usr/src/man/man3/random.3 Sun Sep 27 06:21:05 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)random.3 6.3 (2.11BSD) 12/19/2018 X .\" X .TH RANDOM 3 "December 19, 2018" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)random.3 6.4 (2.11BSD) 2026/9/27 X .\" X .TH RANDOM 3 "December 19, 2018" X .UC 5 X*************** X*** 10,31 **** X random, srandom, initstate, setstate \- better random number generator; routines for changing generators X .SH SYNOPSIS X .nf X! .B long random() X! .PP X! .B srandom(seed) X! .B long seed; X! .PP X! .B char *initstate(seed, state, n) X! .B long seed; X! .B char *state; X! .B int n; X! .PP X! .B char *setstate(state) X! .B char *state; X .fi X .SH DESCRIPTION X .PP X! .I Random X uses a non-linear additive feedback random number generator employing a X default table of size 31 long integers to return successive pseudo-random X numbers in the range from 0 to X--- 10,32 ---- X random, srandom, initstate, setstate \- better random number generator; routines for changing generators X .SH SYNOPSIS X .nf X! .ft B X! long X! random(\fIvoid\fP) X! .sp X! void X! srandom(\fIlong seed\fP) X! .sp X! char * X! initstate(\fIlong seed\fP, \fIchar *state\fP, \fIint n\fP) X! .sp X! char * X! setstate(\fI char *state\fP) X! .ft R X .fi X .SH DESCRIPTION X .PP X! .B random X uses a non-linear additive feedback random number generator employing a X default table of size 31 long integers to return successive pseudo-random X numbers in the range from 0 to X*************** X*** 35,64 **** X .if t 16\(mu(2\u\s731\s10\d\(mi1). X .if n 16*((2**31)\(mi1). X .PP X! .I Random/srandom X have (almost) the same calling sequence and initialization properties as X! .I rand/srand. X The difference is that X! .IR rand (3) X produces a much less random sequence \(em in fact, the low dozen bits X generated by rand go through a cyclic pattern. All the bits generated by X! .I random X are usable. For example, ``random()&01'' will produce a random binary X value. X .PP X Unlike X! .IR srand , X! .I srandom X does not return the old seed; the reason for this is that the amount of X state information used is much more than a single word. (Two other X routines are provided to deal with restarting/changing random X number generators). Like X! .IR rand (3), X however, X! .I random X will by default produce a sequence of numbers that can be duplicated X by calling X! .I srandom X with X .I 1 X as the seed. X--- 36,65 ---- X .if t 16\(mu(2\u\s731\s10\d\(mi1). X .if n 16*((2**31)\(mi1). X .PP X! .B random/srandom X have (almost) the same calling sequence and initialization properties as X! .B rand/srand. X The difference is that X! .BR rand (3) X produces a much less random sequence \(em in fact, the low dozen bits X generated by rand go through a cyclic pattern. All the bits generated by X! .B random X are usable. For example, ``random()&01'' will produce a random binary X value. X .PP X Unlike X! .BR srand , X! .B srandom X does not return the old seed; the reason for this is that the amount of X state information used is much more than a single word. (Two other X routines are provided to deal with restarting/changing random X number generators). Like X! .BR rand (3), X however, X! .B random X will by default produce a sequence of numbers that can be duplicated X by calling X! .B srandom X with X .I 1 X as the seed. X*************** X*** 76,88 **** X The seed for the initialization (which specifies a starting point for X the random number sequence, and provides for restarting at the same X point) is also an argument. X! .I Initstate X returns a pointer to the previous state information array. X .PP X Once a state has been initialized, the X .I setstate X routine provides for rapid switching between states. X! .I Setstate X returns a pointer to the previous state array; its X argument state array is used for further random number generation X until the next call to X--- 77,89 ---- X The seed for the initialization (which specifies a starting point for X the random number sequence, and provides for restarting at the same X point) is also an argument. X! .I initstate X returns a pointer to the previous state information array. X .PP X Once a state has been initialized, the X .I setstate X routine provides for rapid switching between states. X! .I setstate X returns a pointer to the previous state array; its X argument state array is used for further random number generation X until the next call to X*************** X*** 125,128 **** X rand(3) X .SH BUGS X About 2/3 the speed of X! .IR rand (3C). X--- 126,129 ---- X rand(3) X .SH BUGS X About 2/3 the speed of X! .BR rand (3). X*** ./usr/src/man/man3/stty.3.old Sun Dec 14 18:07:29 1986 X--- ./usr/src/man/man3/stty.3 Sun Sep 27 06:23:35 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)stty.3c 6.1 (Berkeley) 5/15/85 X .\" X! .TH STTY 3C "May 15, 1985" X .UC 5 X .SH NAME X stty, gtty \- set and get terminal state (defunct) X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)stty.3 6.2 (2.11BSD) 2026/9/27 X .\" X! .TH STTY 3 "May 15, 1985" X .UC 5 X .SH NAME X stty, gtty \- set and get terminal state (defunct) X*************** X*** 13,34 **** X .B #include X .sp X .B stty(fd, buf) X! .B int fd; X! .B struct sgttyb *buf; X .sp X .B gtty(fd, buf) X! .B int fd; X! .B struct sgttyb *buf; X .fi X .SH DESCRIPTION X .ft B X! This interface is obsoleted by ioctl(2). X .ft R X .PP X! .I Stty X sets the state of the terminal associated with X .IR fd . X! .I Gtty X retrieves the state of the terminal associated X with X .IR fd . X--- 13,35 ---- X .B #include X .sp X .B stty(fd, buf) X! .I int fd; X! .I struct sgttyb *buf; X .sp X .B gtty(fd, buf) X! .I int fd; X! .I struct sgttyb *buf; X .fi X .SH DESCRIPTION X .ft B X! This interface is obsoleted by and implemented using ioctl(2). X .ft R X .PP X! .B stty X sets the state of the terminal associated with X .IR fd . X! .sp X! .B gtty X retrieves the state of the terminal associated X with X .IR fd . X*************** X*** 36,50 **** X write permission. X .PP X The X! .I stty X call is actually ``ioctl(fd, TIOCSETP, buf)'', while X the X! .I gtty X call is ``ioctl(fd, TIOCGETP, buf)''. X See X! .IR ioctl (2) X and X! .IR tty (4) X for an explanation. X .SH DIAGNOSTICS X If the call is successful 0 is returned, otherwise \-1 is X--- 37,51 ---- X write permission. X .PP X The X! .B stty X call is actually ``ioctl(fd, TIOCSETP, buf)'', while X the X! .B gtty X call is ``ioctl(fd, TIOCGETP, buf)''. X See X! .BR ioctl (2) X and X! .BR tty (4) X for an explanation. X .SH DIAGNOSTICS X If the call is successful 0 is returned, otherwise \-1 is X*** ./usr/src/man/man3/times.3.old Sun Dec 14 18:07:14 1986 X--- ./usr/src/man/man3/times.3 Sun Sep 27 06:27:42 2026 X*************** X*** 2,27 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)times.3c 6.1 (Berkeley) 5/9/85 X .\" X! .TH TIMES 3C "May 9, 1985" X .UC 4 X .SH NAME X times \- get process times X .SH SYNOPSIS X .nf X! .B "#include X! .B "#include X! .PP X! .B times(buffer) X! .B struct tms *buffer; X .fi X .SH DESCRIPTION X .ft B X! This interface is obsoleted by getrusage(2). X .ft R X .PP X! .I Times X returns time-accounting information X for the current process X and for the terminated child processes X--- 2,28 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)times.3 6.2 (2.11BSD) 2026/9/27 X .\" X! .TH TIMES 3 "May 9, 1985" X .UC 4 X .SH NAME X times \- get process times X .SH SYNOPSIS X .nf X! .ft B X! #include X! #include X! .sp X! times(\fIstruct tms *buffer\fP) X! .ft R X .fi X .SH DESCRIPTION X .ft B X! This interface is obsoleted by and implemented using getrusage(2). X .ft R X .PP X! .B times X returns time-accounting information X for the current process X and for the terminated child processes X*************** X*** 29,35 **** X All times are in 1/HZ seconds, where HZ is 60. X .PP X This is the structure returned by X! .IR times : X .PP X .nf X .so /usr/include/sys/times.h X--- 30,36 ---- X All times are in 1/HZ seconds, where HZ is 60. X .PP X This is the structure returned by X! .BR times : X .PP X .nf X .so /usr/include/sys/times.h X*** ./usr/src/man/man3/utime.3.old Sun Dec 14 18:07:15 1986 X--- ./usr/src/man/man3/utime.3 Sun Sep 27 06:29:54 2026 X*************** X*** 2,28 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)utime.3c 6.1 (Berkeley) 5/9/85 X .\" X! .TH UTIME 3C "May 9, 1985" X .UC 4 X .SH NAME X utime \- set file times X .SH SYNOPSIS X .nf X! .B #include X! .PP X! .B utime(file, timep) X! .B char *file; X! .B time_t timep[2]; X .fi X .SH DESCRIPTION X .ft B X! This interface is obsoleted by utimes(2). X .ft R X .PP X The X! .I utime X call X uses the X `accessed' and `updated' times in that order X--- 2,28 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)utime.3 6.2 (2.11BSD) 2026/9/27 X .\" X! .TH UTIME 3 "May 9, 1985" X .UC 4 X .SH NAME X utime \- set file times X .SH SYNOPSIS X .nf X! .ft B X! #include X! .sp X! utime(\fIchar *file\fP, \fItime_t timep[2]\fP) X! .ft R X .fi X .SH DESCRIPTION X .ft B X! This interface is obsoleted by and implemented using utimes(2). X .ft R X .PP X The X! .B utime X call X uses the X `accessed' and `updated' times in that order X*** ./usr/src/man/man3/valloc.3.old Sun Dec 14 18:07:09 1986 X--- ./usr/src/man/man3/valloc.3 Sun Sep 27 06:35:16 2026 X*************** X*** 2,37 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)valloc.3c 6.2 (Berkeley) 5/12/86 X .\" X! .TH VALLOC 3C "May 12, 1986" X .UC 3 X .SH NAME X valloc \- aligned memory allocator X .SH SYNOPSIS X .nf X! .B char *valloc(size) X! .B unsigned size; X .fi X .SH DESCRIPTION X .ft B X! Valloc is obsoleted by the current version of malloc, X! which aligns page-sized and larger allocations. X .ft R X .PP X! .I Valloc X! allocates X .I size X! bytes aligned on a page boundary. X! It is implemented by calling X! .IR malloc (3) X! with a slightly larger request, saving the true beginning of the block X! allocated, and returning a properly aligned pointer. X .SH DIAGNOSTICS X! .I Valloc X returns a null pointer (0) if there is no available memory X or if the arena has been detectably corrupted by storing outside the bounds X of a block. X! .SH BUGS X! .I Vfree X! isn't implemented. X--- 2,38 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)valloc.3 6.3 (2.11BSD) 2026/9/27 X .\" X! .TH VALLOC 3 "May 12, 1986" X .UC 3 X .SH NAME X valloc \- aligned memory allocator X .SH SYNOPSIS X .nf X! .ft B X! char * X! valloc(\fIunsigned int size\fP) X! .ft R X .fi X .SH DESCRIPTION X .ft B X! valloc is obsoleted by the current version of malloc. X .ft R X .PP X! .B valloc X! on 2.11BSD simply calls X! .BR malloc (3) X! with X .I size X! as the argument. X .SH DIAGNOSTICS X! .B valloc X returns a null pointer (0) if there is no available memory X or if the arena has been detectably corrupted by storing outside the bounds X of a block. X! .SH NOTES X! Memory allocated by X! .B valloc X! should be released by calling X! .B free X*** ./usr/src/man/man3/intro.3.old Sun Dec 14 18:07:19 1986 X--- ./usr/src/man/man3/intro.3 Sun Sep 27 17:51:31 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)intro.3 6.8 (Berkeley) 5/27/86 X .\" X .TH INTRO 3 "May 27, 1986" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)intro.3 6.9 (2.11BSD) 2026/9/27 X .\" X .TH INTRO 3 "May 27, 1986" X .UC 4 X*************** X*** 14,87 **** X The library functions are those other than the X functions which directly invoke UNIX system primitives, described in section 2. X Most of these functions are accessible from the C library, X! .IR libc , X which is automatically loaded by the C compiler X! .IR cc (1), X! and the Pascal compiler X! .IR pc (1). X! The link editor X! .IR ld (1) X! searches this library under the `\-lc' option. X The C library also includes all the functions described in section 2. X .PP X A subset of these functions are available from Fortran; X they are described separately in X! .IR intro (3F). X! .PP X! The functions described in this section are grouped into various sections: X! .TP X! (3) X! The straight ``3'' functions are the standard C library functions. X! .TP X! (3N) X! These functions constitute the internet network library. X! .TP X! (3S) X! These functions constitute the `standard I/O package', see X! .IR stdio (3S) X! for more details. X! Declarations for these functions may be obtained from X! the include file X! .RI < stdio.h >. X! .TP X! (3C) X! These routines are included for compatibility with other systems. X! In particular, X! a number of system call interfaces provided in previous releases of X! 4BSD have been included for source code compatibility. X Use of these routines should, for the most part, be avoided. X The manual page entry for each compatibility routine X! indicates the proper interface to use. X! .TP X! (3M) X! These functions constitute the math library, X! .IR libm . X! When functions in the math library (see X! .IR math (3M)) X! are passed values that are undefined or would generate X! answers that are out of range, X! they call the \fIinfnan\fP routine. X! By default this routine returns the VAX reserved floating point value X! which causes the process to get a floating point exception (see X! .IR sigvec (2)). X! Programs that wish to take other action should define their own X! version of \fIinfnan\fP (see X! .IR infnan (3M) X! for details). X! The math library is loaded as needed by the Pascal compiler X! .IR pc (1). X! C programs that wish to use this library need to specify the ``\-lm'' option. X! .TP X! (3X) X! These functions constitute minor libraries and other miscellaneous X! run-time facilities. Most are available only when programming in C. X! These functions include libraries that provide X! device independent plotting functions, X! terminal independent screen management routines X! for two dimensional non-bitmap display terminals, X! and functions for managing data bases with inverted indexes. X! These functions are located in separate libraries X! indicated in each manual entry. X .SH FILES X .nf X /lib/libc.a the C library X--- 14,44 ---- X The library functions are those other than the X functions which directly invoke UNIX system primitives, described in section 2. X Most of these functions are accessible from the C library, X! .BR libc , X which is automatically loaded by the C compiler X! .BR cc (1) X! by specifying X! .B \-lc X! to the link editor X! .BR ld (1). X! .sp X The C library also includes all the functions described in section 2. X .PP X A subset of these functions are available from Fortran; X they are described separately in X! .BR intro (3F). X! A number of routines provided in previous releases of the system X! have been included for source code compatibility. X Use of these routines should, for the most part, be avoided. X The manual page entry for each compatibility routine X! indicates the current interface to use. X! .PP X! Some functions constitute the math library, X! .BR libm . X! C programs that wish to use this library need to specify the X! .B \-lm X! option to the link editor \fBld\fP. X! .sp X .SH FILES X .nf X /lib/libc.a the C library X*************** X*** 90,97 **** X /usr/lib/libm_p.a the math library compiled for profiling X .fi X .SH SEE ALSO X! stdio(3S), X! math(3M), X intro(2), X cc(1), X ld(1), X--- 47,54 ---- X /usr/lib/libm_p.a the math library compiled for profiling X .fi X .SH SEE ALSO X! stdio(3), X! math(3), X intro(2), X cc(1), X ld(1), X*************** X*** 99,122 **** X .SH "LIST OF FUNCTIONS" X .sp 2 X .nf X! .ta \w'getprotobynumber'u+2n +\w'gethostbyname.3n'u+10n X \fIName\fP \fIAppears on Page\fP \fIDescription\fP X! .ta \w'getprotobynumber'u+4n +\w'gethostbyname.3n'u+4n X .sp 5p X abort abort.3 generate a fault X abs abs.3 integer absolute value X! acos sin.3m inverse trigonometric function X! acosh asinh.3m inverse hyperbolic function X! alarm alarm.3c schedule signal after specified time X alloca malloc.3 memory allocator X! arc plot.3x graphics interface X asctime ctime.3 convert date and time to ASCII X! asin sin.3m inverse trigonometric function X! asinh asinh.3m inverse hyperbolic function X! assert assert.3x program verification X! atan sin.3m inverse trigonometric function X! atanh asinh.3m inverse hyperbolic function X! atan2 sin.3m inverse trigonometric function X atof atof.3 convert ASCII to numbers X atoi atof.3 convert ASCII to numbers X atol atof.3 convert ASCII to numbers X--- 56,79 ---- X .SH "LIST OF FUNCTIONS" X .sp 2 X .nf X! .ta \w'getprotobynumber'u+2n +\w'gethostbyname.3'u+10n X \fIName\fP \fIAppears on Page\fP \fIDescription\fP X! .ta \w'getprotobynumber'u+4n +\w'gethostbyname.3'u+4n X .sp 5p X abort abort.3 generate a fault X abs abs.3 integer absolute value X! acos sin.3 inverse trigonometric function X! acosh asinh.3 inverse hyperbolic function X! alarm alarm.3 schedule signal after specified time X alloca malloc.3 memory allocator X! arc plot.3 graphics interface X asctime ctime.3 convert date and time to ASCII X! asin sin.3 inverse trigonometric function X! asinh asinh.3 inverse hyperbolic function X! assert assert.3 program verification X! atan sin.3 inverse trigonometric function X! atanh asinh.3 inverse hyperbolic function X! atan2 sin.3 inverse trigonometric function X atof atof.3 convert ASCII to numbers X atoi atof.3 convert ASCII to numbers X atol atof.3 convert ASCII to numbers X*************** X*** 123,162 **** X bcmp bstring.3 bit and byte string operations X bcopy bstring.3 bit and byte string operations X bzero bstring.3 bit and byte string operations X! cabs hypot.3m complex absolute value X calloc malloc.3 memory allocator X! cbrt sqrt.3m cube root X! ceil floor.3m integer no less than X! circle plot.3x graphics interface X! clearerr ferror.3s stream status inquiries X closedir directory.3 directory operations X closelog syslog.3 control system log X! closepl plot.3x graphics interface X! cont plot.3x graphics interface X! copysign ieee.3m copy sign bit X! cos sin.3m trigonometric function X! cosh sinh.3m hyperbolic function X crypt crypt.3 DES encryption X ctime ctime.3 convert date and time to ASCII X! curses curses.3x screen functions with ``optimal'' cursor motion X! dbminit dbm.3x data base subroutines X! delete dbm.3x data base subroutines X! drem ieee.3m remainder X ecvt ecvt.3 output conversion X edata end.3 last locations in program X encrypt crypt.3 DES encryption X end end.3 last locations in program X! endfsent getfsent.3x get file system descriptor file entry X endgrent getgrent.3 get group file entry X! endhostent gethostbyname.3n get network host entry X! endnetent getnetent.3n get network entry X! endprotoent getprotoent.3n get protocol entry X endpwent getpwent.3 get password file entry X! endservent getservent.3n get service entry X environ execl.3 execute a file X! erase plot.3x graphics interface X! erf erf.3m error function X! erfc erf.3m complementary error function X etext end.3 last locations in program X exec execl.3 execute a file X exece execl.3 execute a file X--- 80,117 ---- X bcmp bstring.3 bit and byte string operations X bcopy bstring.3 bit and byte string operations X bzero bstring.3 bit and byte string operations X! cabs hypot.3 complex absolute value X calloc malloc.3 memory allocator X! cbrt sqrt.3 cube root X! ceil floor.3 integer no less than X! circle plot.3 graphics interface X! clearerr ferror.3 stream status inquiries X closedir directory.3 directory operations X closelog syslog.3 control system log X! closepl plot.3 graphics interface X! cont plot.3 graphics interface X! cos sin.3 trigonometric function X! cosh sinh.3 hyperbolic function X crypt crypt.3 DES encryption X ctime ctime.3 convert date and time to ASCII X! curses curses.3 screen functions with ``optimal'' cursor motion X! dbminit dbm.3 data base subroutines X! delete dbm.3 data base subroutines X ecvt ecvt.3 output conversion X edata end.3 last locations in program X encrypt crypt.3 DES encryption X end end.3 last locations in program X! endfsent getfsent.3 get file system descriptor file entry X endgrent getgrent.3 get group file entry X! endhostent gethostbyname.3 get network host entry X! endnetent getnetent.3 get network entry X! endprotoent getprotoent.3 get protocol entry X endpwent getpwent.3 get password file entry X! endservent getservent.3 get service entry X environ execl.3 execute a file X! erase plot.3 graphics interface X! erf erf.3 error function X! erfc erf.3 complementary error function X etext end.3 last locations in program X exec execl.3 execute a file X exece execl.3 execute a file X*************** X*** 167,245 **** X execv execl.3 execute a file X execvp execl.3 execute a file X exit exit.3 terminate a process after flushing any pending output X! exp exp.3m exponential X! expm1 exp.3m exp(x)\-1 X! fabs floor.3m absolute value X! fclose fclose.3s close or flush a stream X fcvt ecvt.3 output conversion X! feof ferror.3s stream status inquiries X! ferror ferror.3s stream status inquiries X! fetch dbm.3x data base subroutines X! fflush fclose.3s close or flush a stream X ffs bstring.3 bit and byte string operations X! fgetc getc.3s get character or word from stream X! fgets gets.3s get a string from a stream X! fileno ferror.3s stream status inquiries X! firstkey dbm.3x data base subroutines X! floor floor.3m integer no greater than X! fopen fopen.3s open a stream X! fprintf printf.3s formatted output conversion X! fputc putc.3s put character or word on a stream X! fputs puts.3s put a string on a stream X! fread fread.3s buffered binary input/output X free malloc.3 memory allocator X frexp frexp.3 split into mantissa and exponent X! fscanf scanf.3s formatted input conversion X! fseek fseek.3s reposition a stream X! ftell fseek.3s reposition a stream X! ftime time.3c get date and time X! fwrite fread.3s buffered binary input/output X gcvt ecvt.3 output conversion X! getc getc.3s get character or word from stream X! getchar getc.3s get character or word from stream X! getdiskbyname getdisk.3x get disk description by its name X getenv getenv.3 value for environment name X! getfsent getfsent.3x get file system descriptor file entry X! getfsfile getfsent.3x get file system descriptor file entry X! getfsspec getfsent.3x get file system descriptor file entry X! getfstype getfsent.3x get file system descriptor file entry X getgrent getgrent.3 get group file entry X getgrgid getgrent.3 get group file entry X getgrnam getgrent.3 get group file entry X! gethostbyaddr gethostbyname.3n get network host entry X! gethostbyname gethostbyname.3n get network host entry X! gethostent gethostbyname.3n get network host entry X getlogin getlogin.3 get login name X! getnetbyaddr getnetent.3n get network entry X! getnetbyname getnetent.3n get network entry X! getnetent getnetent.3n get network entry X getpass getpass.3 read a password X! getprotobyname getprotoent.3n get protocol entry X! getprotobynumber getprotoent.3n get protocol entry X! getprotoent getprotoent.3n get protocol entry X getpw getpw.3 get name from uid X getpwent getpwent.3 get password file entry X getpwnam getpwent.3 get password file entry X getpwuid getpwent.3 get password file entry X! gets gets.3s get a string from a stream X! getservbyname getservent.3n get service entry X! getservbyport getservent.3n get service entry X! getservent getservent.3n get service entry X! getw getc.3s get character or word from stream X getwd getwd.3 get current working directory pathname X gmtime ctime.3 convert date and time to ASCII X! gtty stty.3c set and get terminal state (defunct) X! htonl byteorder.3n convert values between host and network byte order X! htons byteorder.3n convert values between host and network byte order X! hypot hypot.3m Euclidean distance X index string.3 string operations X! inet_addr inet.3n Internet address manipulation routines X! inet_lnaof inet.3n Internet address manipulation routines X! inet_makeaddr inet.3n Internet address manipulation routines X! inet_netof inet.3n Internet address manipulation routines X! inet_network inet.3n Internet address manipulation routines X! infnan infnan.3m signals exceptions X! initgroups initgroups.3x initialize group access list X initstate random.3 better random number generator X insque insque.3 insert/remove element from a queue X isalnum ctype.3 character classification macros X--- 122,199 ---- X execv execl.3 execute a file X execvp execl.3 execute a file X exit exit.3 terminate a process after flushing any pending output X! exp exp.3 exponential X! expm1 exp.3 exp(x)\-1 X! fabs floor.3 absolute value X! fclose fclose.3 close or flush a stream X fcvt ecvt.3 output conversion X! feof ferror.3 stream status inquiries X! ferror ferror.3 stream status inquiries X! fetch dbm.3 data base subroutines X! fflush fclose.3 close or flush a stream X ffs bstring.3 bit and byte string operations X! fgetc getc.3 get character or word from stream X! fgets gets.3 get a string from a stream X! fileno ferror.3 stream status inquiries X! firstkey dbm.3 data base subroutines X! floor floor.3 integer no greater than X! fopen fopen.3 open a stream X! fprintf printf.3 formatted output conversion X! fputc putc.3 put character or word on a stream X! fputs puts.3 put a string on a stream X! fread fread.3 buffered binary input/output X free malloc.3 memory allocator X frexp frexp.3 split into mantissa and exponent X! fscanf scanf.3 formatted input conversion X! fseek fseek.3 reposition a stream X! ftell fseek.3 reposition a stream X! ftime time.3 get date and time X! fwrite fread.3 buffered binary input/output X gcvt ecvt.3 output conversion X! getc getc.3 get character or word from stream X! getchar getc.3 get character or word from stream X! getdiskbyname getdisk.3 get disk description by its name X getenv getenv.3 value for environment name X! getfsent getfsent.3 get file system descriptor file entry X! getfsfile getfsent.3 get file system descriptor file entry X! getfsspec getfsent.3 get file system descriptor file entry X! getfstype getfsent.3 get file system descriptor file entry X getgrent getgrent.3 get group file entry X getgrgid getgrent.3 get group file entry X getgrnam getgrent.3 get group file entry X! gethostbyaddr gethostbyname.3 get network host entry X! gethostbyname gethostbyname.3 get network host entry X! gethostent gethostbyname.3 get network host entry X getlogin getlogin.3 get login name X! getnetbyaddr getnetent.3 get network entry X! getnetbyname getnetent.3 get network entry X! getnetent getnetent.3 get network entry X getpass getpass.3 read a password X! getprotobyname getprotoent.3 get protocol entry X! getprotobynumber getprotoent.3 get protocol entry X! getprotoent getprotoent.3 get protocol entry X getpw getpw.3 get name from uid X getpwent getpwent.3 get password file entry X getpwnam getpwent.3 get password file entry X getpwuid getpwent.3 get password file entry X! gets gets.3 get a string from a stream X! getservbyname getservent.3 get service entry X! getservbyport getservent.3 get service entry X! getservent getservent.3 get service entry X! getw getc.3 get character or word from stream X getwd getwd.3 get current working directory pathname X gmtime ctime.3 convert date and time to ASCII X! gtty stty.3 set and get terminal state (defunct) X! htonl byteorder.3 convert values between host and network byte order X! htons byteorder.3 convert values between host and network byte order X! hypot hypot.3 Euclidean distance X index string.3 string operations X! inet_addr inet.3 Internet address manipulation routines X! inet_lnaof inet.3 Internet address manipulation routines X! inet_makeaddr inet.3 Internet address manipulation routines X! inet_netof inet.3 Internet address manipulation routines X! inet_network inet.3 Internet address manipulation routines X! initgroups initgroups.3 initialize group access list X initstate random.3 better random number generator X insque insque.3 insert/remove element from a queue X isalnum ctype.3 character classification macros X*************** X*** 253,272 **** X ispunct ctype.3 character classification macros X isspace ctype.3 character classification macros X isupper ctype.3 character classification macros X! j0 j0.3m bessel function X! j1 j0.3m bessel function X! jn j0.3m bessel function X! label plot.3x graphics interface X ldexp frexp.3 split into mantissa and exponent X! lgamma lgamma.3m log gamma function; (formerly gamma.3m) X! lib2648 lib2648.3x subroutines for the HP 2648 graphics terminal X! line plot.3x graphics interface X! linemod plot.3x graphics interface X localtime ctime.3 convert date and time to ASCII X! log exp.3m natural logarithm X! logb ieee.3m exponent extraction X! log10 exp.3m logarithm to base 10 X! log1p exp.3m log(1+x) X longjmp setjmp.3 non-local goto X malloc malloc.3 memory allocator X mktemp mktemp.3 make a unique file name X--- 207,225 ---- X ispunct ctype.3 character classification macros X isspace ctype.3 character classification macros X isupper ctype.3 character classification macros X! j0 j0.3 bessel function X! j1 j0.3 bessel function X! jn j0.3 bessel function X! label plot.3 graphics interface X ldexp frexp.3 split into mantissa and exponent X! lgamma lgamma.3 log gamma function X! lib2648 lib2648.3 subroutines for the HP 2648 graphics terminal X! line plot.3 graphics interface X! linemod plot.3 graphics interface X localtime ctime.3 convert date and time to ASCII X! log exp.3 natural logarithm X! log10 exp.3 logarithm to base 10 X! log1p exp.3 log(1+x) X longjmp setjmp.3 non-local goto X malloc malloc.3 memory allocator X mktemp mktemp.3 make a unique file name X*************** X*** 274,351 **** X moncontrol monitor.3 prepare execution profile X monitor monitor.3 prepare execution profile X monstartup monitor.3 prepare execution profile X! move plot.3x graphics interface X! nextkey dbm.3x data base subroutines X! nice nice.3c set program priority X nlist nlist.3 get entries from name list X! ntohl byteorder.3n convert values between host and network byte order X! ntohs byteorder.3n convert values between host and network byte order X opendir directory.3 directory operations X openlog syslog.3 control system log X! openpl plot.3x graphics interface X! pause pause.3c stop until signal X pclose popen.3 initiate I/O to/from a process X perror perror.3 system error messages X! point plot.3x graphics interface X popen popen.3 initiate I/O to/from a process X! pow exp.3m exponential x**y X! printf printf.3s formatted output conversion X psignal psignal.3 system signal messages X! putc putc.3s put character or word on a stream X! putchar putc.3s put character or word on a stream X! puts puts.3s put a string on a stream X! putw putc.3s put character or word on a stream X qsort qsort.3 quicker sort X! rand rand.3c random number generator X random random.3 better random number generator X! rcmd rcmd.3x routines for returning a stream to a remote command X re_comp regex.3 regular expression handler X re_exec regex.3 regular expression handler X readdir directory.3 directory operations X realloc malloc.3 memory allocator X remque insque.3 insert/remove element from a queue X! rewind fseek.3s reposition a stream X rewinddir directory.3 directory operations X! rexec rexec.3x return stream to a remote command X rindex string.3 string operations X! rint floor.3m round to nearest integer X! rresvport rcmd.3x routines for returning a stream to a remote command X! ruserok rcmd.3x routines for returning a stream to a remote command X! scalb ieee.3m exponent adjustment X scandir scandir.3 scan a directory X! scanf scanf.3s formatted input conversion X seekdir directory.3 directory operations X! setbuf setbuf.3s assign buffering to a stream X! setbuffer setbuf.3s assign buffering to a stream X setegid setuid.3 set user and group ID X seteuid setuid.3 set user and group ID X! setfsent getfsent.3x get file system descriptor file entry X setgid setuid.3 set user and group ID X setgrent getgrent.3 get group file entry X! sethostent gethostbyname.3n get network host entry X setjmp setjmp.3 non-local goto X setkey crypt.3 DES encryption X! setlinebuf setbuf.3s assign buffering to a stream X! setnetent getnetent.3n get network entry X! setprotoent getprotoent.3n get protocol entry X setpwent getpwent.3 get password file entry X setrgid setuid.3 set user and group ID X setruid setuid.3 set user and group ID X! setservent getservent.3n get service entry X setstate random.3 better random number generator X setuid setuid.3 set user and group ID X signal signal.3 simplified software signal facilities X! sin sin.3m trigonometric function X! sinh sinh.3m hyperbolic function X sleep sleep.3 suspend execution for interval X! space plot.3x graphics interface X! sprintf printf.3s formatted output conversion X! sqrt sqrt.3m square root X! srand rand.3c random number generator X srandom random.3 better random number generator X! sscanf scanf.3s formatted input conversion X! stdio intro.3s standard buffered input/output package X! store dbm.3x data base subroutines X strcat string.3 string operations X strcmp string.3 string operations X strcpy string.3 string operations X--- 227,303 ---- X moncontrol monitor.3 prepare execution profile X monitor monitor.3 prepare execution profile X monstartup monitor.3 prepare execution profile X! move plot.3 graphics interface X! nextkey dbm.3 data base subroutines X! nice nice.3 set program priority X nlist nlist.3 get entries from name list X! ntohl byteorder.3 convert values between host and network byte order X! ntohs byteorder.3 convert values between host and network byte order X opendir directory.3 directory operations X openlog syslog.3 control system log X! openpl plot.3 graphics interface X! pause pause.3 stop until signal X pclose popen.3 initiate I/O to/from a process X perror perror.3 system error messages X! point plot.3 graphics interface X popen popen.3 initiate I/O to/from a process X! pow exp.3 exponential x**y X! printf printf.3 formatted output conversion X psignal psignal.3 system signal messages X! putc putc.3 put character or word on a stream X! putchar putc.3 put character or word on a stream X! puts puts.3 put a string on a stream X! putw putc.3 put character or word on a stream X qsort qsort.3 quicker sort X! rand rand.3 random number generator X random random.3 better random number generator X! rcmd rcmd.3 routines for returning a stream to a remote command X re_comp regex.3 regular expression handler X re_exec regex.3 regular expression handler X readdir directory.3 directory operations X realloc malloc.3 memory allocator X remque insque.3 insert/remove element from a queue X! rewind fseek.3 reposition a stream X rewinddir directory.3 directory operations X! rexec rexec.3 return stream to a remote command X rindex string.3 string operations X! rint floor.3 round to nearest integer X! rresvport rcmd.3 routines for returning a stream to a remote command X! ruserok rcmd.3 routines for returning a stream to a remote command X scandir scandir.3 scan a directory X! scanf scanf.3 formatted input conversion X seekdir directory.3 directory operations X! setbuf setbuf.3 assign buffering to a stream X! setbuffer setbuf.3 assign buffering to a stream X setegid setuid.3 set user and group ID X seteuid setuid.3 set user and group ID X! setfsent getfsent.3 get file system descriptor file entry X setgid setuid.3 set user and group ID X setgrent getgrent.3 get group file entry X! sethostent gethostbyname.3 get network host entry X setjmp setjmp.3 non-local goto X setkey crypt.3 DES encryption X! setlinebuf setbuf.3 assign buffering to a stream X! setnetent getnetent.3 get network entry X! setprotoent getprotoent.3 get protocol entry X setpwent getpwent.3 get password file entry X setrgid setuid.3 set user and group ID X setruid setuid.3 set user and group ID X! setservent getservent.3 get service entry X setstate random.3 better random number generator X setuid setuid.3 set user and group ID X signal signal.3 simplified software signal facilities X! sin sin.3 trigonometric function X! sinh sinh.3 hyperbolic function X sleep sleep.3 suspend execution for interval X! space plot.3 graphics interface X! sprintf printf.3 formatted output conversion X! sqrt sqrt.3 square root X! srand rand.3 random number generator X srandom random.3 better random number generator X! sscanf scanf.3 formatted input conversion X! stdio intro.3 standard buffered input/output package X! store dbm.3 data base subroutines X strcat string.3 string operations X strcmp string.3 string operations X strcpy string.3 string operations X*************** X*** 353,359 **** X strncat string.3 string operations X strncmp string.3 string operations X strncpy string.3 string operations X! stty stty.3c set and get terminal state (defunct) X swab swab.3 swap bytes X sys_errlist perror.3 system error messages X sys_nerr perror.3 system error messages X--- 305,311 ---- X strncat string.3 string operations X strncmp string.3 string operations X strncpy string.3 string operations X! stty stty.3 set and get terminal state (defunct) X swab swab.3 swap bytes X sys_errlist perror.3 system error messages X sys_nerr perror.3 system error messages X*************** X*** 360,386 **** X sys_siglist psignal.3 system signal messages X syslog syslog.3 control system log X system system.3 issue a shell command X! tan sin.3m trigonometric function X! tanh sinh.3m hyperbolic function X telldir directory.3 directory operations X! tgetent termcap.3x terminal independent operation routines X! tgetflag termcap.3x terminal independent operation routines X! tgetnum termcap.3x terminal independent operation routines X! tgetstr termcap.3x terminal independent operation routines X! tgoto termcap.3x terminal independent operation routines X! time time.3c get date and time X! times times.3c get process times X timezone ctime.3 convert date and time to ASCII X! tputs termcap.3x terminal independent operation routines X ttyname ttyname.3 find name of a terminal X ttyslot ttyname.3 find name of a terminal X! ungetc ungetc.3s push character back into input stream X! utime utime.3c set file times X valloc valloc.3 aligned memory allocator X varargs varargs.3 variable argument list X! vlimit vlimit.3c control maximum system resource consumption X! vtimes vtimes.3c get information about resource utilization X! y0 j0.3m bessel function X! y1 j0.3m bessel function X! yn j0.3m bessel function X .fi X--- 312,338 ---- X sys_siglist psignal.3 system signal messages X syslog syslog.3 control system log X system system.3 issue a shell command X! tan sin.3 trigonometric function X! tanh sinh.3 hyperbolic function X telldir directory.3 directory operations X! tgetent termcap.3 terminal independent operation routines X! tgetflag termcap.3 terminal independent operation routines X! tgetnum termcap.3 terminal independent operation routines X! tgetstr termcap.3 terminal independent operation routines X! tgoto termcap.3 terminal independent operation routines X! time time.3 get date and time X! times times.3 get process times X timezone ctime.3 convert date and time to ASCII X! tputs termcap.3 terminal independent operation routines X ttyname ttyname.3 find name of a terminal X ttyslot ttyname.3 find name of a terminal X! ungetc ungetc.3 push character back into input stream X! utime utime.3 set file times X valloc valloc.3 aligned memory allocator X varargs varargs.3 variable argument list X! vlimit vlimit.3 control maximum system resource consumption X! vtimes vtimes.3 get information about resource utilization X! y0 j0.3 bessel function X! y1 j0.3 bessel function X! yn j0.3 bessel function X .fi X*** ./usr/src/man/man3/gets.3.old Sun Dec 14 18:07:17 1986 X--- ./usr/src/man/man3/gets.3 Sun Sep 27 06:51:42 2026 X*************** X*** 1,6 **** X! .\" @(#)gets.3s 6.1 (Berkeley) 5/15/85 X .\" X! .TH GETS 3S "May 15, 1985" X .AT 3 X .SH NAME X gets, fgets \- get a string from a stream X--- 1,6 ---- X! .\" @(#)gets.3 6.2 (2.11BSD) 2026/9/27 X .\" X! .TH GETS 3 "May 15, 1985" X .AT 3 X .SH NAME X gets, fgets \- get a string from a stream X*************** X*** 19,25 **** X .B FILE X .B *stream; X .SH DESCRIPTION X! .I Gets X reads a string into X .I s X from the standard input stream X--- 19,25 ---- X .B FILE X .B *stream; X .SH DESCRIPTION X! .B gets X reads a string into X .I s X from the standard input stream X*************** X*** 28,37 **** X character, which is replaced in X .I s X by a null character. X! .I Gets X returns its argument. X .PP X! .I Fgets X reads X .IR n \-1 X characters, or up through a newline X--- 28,37 ---- X character, which is replaced in X .I s X by a null character. X! .B gets X returns its argument. X .PP X! .B fgets X reads X .IR n \-1 X characters, or up through a newline X*************** X*** 43,67 **** X The last character read into X .I s X is followed by a null character. X! .I Fgets X returns its first argument. X .SH "SEE ALSO" X! puts(3S), X! getc(3S), X! scanf(3S), X! fread(3S), X! ferror(3S) X .SH DIAGNOSTICS X! .I Gets X and X! .I fgets X return the constant pointer X .SM X .B NULL X upon end of file or error. X .SH BUGS X! .I Gets X deletes a newline, X! .I fgets X keeps it, X all in the name of backward compatibility. X--- 43,67 ---- X The last character read into X .I s X is followed by a null character. X! .B fgets X returns its first argument. X .SH "SEE ALSO" X! puts(3), X! getc(3), X! scanf(3), X! fread(3), X! ferror(3) X .SH DIAGNOSTICS X! .B gets X and X! .B fgets X return the constant pointer X .SM X .B NULL X upon end of file or error. X .SH BUGS X! .B gets X deletes a newline, X! .B fgets X keeps it, X all in the name of backward compatibility. X*** ./usr/src/man/man3/puts.3.old Sun Dec 14 18:07:18 1986 X--- ./usr/src/man/man3/puts.3 Sun Sep 27 06:57:55 2026 X*************** X*** 1,25 **** X! .\" @(#)puts.3s 6.1 (Berkeley) 5/15/85 X .\" X! .TH PUTS 3S "May 15, 1985" X .AT 3 X .SH NAME X puts, fputs \- put a string on a stream X .SH SYNOPSIS X! .B #include X! .PP X! .B puts(s) X! .br X! .B char *s; X! .PP X! .B fputs(s, stream) X! .br X! .B char *s; X! .br X! .SM X! .B FILE X! .B *stream; X .SH DESCRIPTION X! .I Puts X copies the null-terminated string X .I s X to the standard output stream X--- 1,21 ---- X! .\" @(#)puts.3 6.2 (2.11BSD) 2026/9/27 X .\" X! .TH PUTS 3 "May 15, 1985" X .AT 3 X .SH NAME X puts, fputs \- put a string on a stream X .SH SYNOPSIS X! .nf X! .ft B X! #include X! X! puts(\fIchar *s\fP) X! X! fputs(\fI char *s\fP, \fIFILE *stream\fP) X! .ft R X! .fi X .SH DESCRIPTION X! .B puts X copies the null-terminated string X .I s X to the standard output stream X*************** X*** 27,33 **** X and appends a X newline character. X .PP X! .I Fputs X copies the null-terminated string X .I s X to the named output X--- 23,29 ---- X and appends a X newline character. X .PP X! .B fputs X copies the null-terminated string X .I s X to the named output X*************** X*** 35,50 **** X .PP X Neither routine copies the terminal null character. X .SH "SEE ALSO" X! fopen(3S), X! gets(3S), X! putc(3S), X! printf(3S), X! ferror(3S) X! .br X! fread(3S) for X! .I fwrite X .SH BUGS X! .I Puts X appends a newline, X! .I fputs X does not, all in the name of backward compatibility. X--- 31,39 ---- X .PP X Neither routine copies the terminal null character. X .SH "SEE ALSO" X! fopen(3), gets(3), putc(3), printf(3), ferror(3), fread(3), fwrite(3) X .SH BUGS X! .B puts X appends a newline, X! .B fputs X does not, all in the name of backward compatibility. X*** ./usr/src/man/man3/abort.3.old Sun Dec 14 18:07:15 1986 X--- ./usr/src/man/man3/abort.3 Sun Sep 27 07:02:24 2026 X*************** X*** 1,11 **** X! .\" @(#)abort.3 6.3 (Berkeley) 5/27/86 X .\" X .TH ABORT 3 "May 27, 1986" X .AT 3 X .SH NAME X abort \- generate a fault X .SH DESCRIPTION X! .I Abort X executes an instruction which is illegal in user mode. X This causes a signal that normally terminates X the process with a core dump, which may be used for debugging. X--- 1,20 ---- X! .\" @(#)abort.3 6.4 (2.11BSD) 2026/9/27 X .\" X .TH ABORT 3 "May 27, 1986" X .AT 3 X .SH NAME X abort \- generate a fault X+ .SH SYNOPSIS X+ .nf X+ .ft B X+ #include X+ X+ void X+ abort(\fIvoid\fP) X+ .ft R X+ .fi X .SH DESCRIPTION X! .B abort X executes an instruction which is illegal in user mode. X This causes a signal that normally terminates X the process with a core dump, which may be used for debugging. X*************** X*** 14,18 **** X .SH DIAGNOSTICS X Usually ``Illegal instruction \- core dumped'' from the shell. X .SH BUGS X! The abort() function does not flush standard I/O buffers. Use X! \fIfflush\fP\|(3S). X--- 23,28 ---- X .SH DIAGNOSTICS X Usually ``Illegal instruction \- core dumped'' from the shell. X .SH BUGS X! .B abort X! does not flush standard I/O buffers. Use X! .BR fflush (3). X*** ./usr/src/man/man3/mp.3.old Sun Dec 14 18:07:07 1986 X--- ./usr/src/man/man3/mp.3 Sun Sep 27 16:34:58 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)mp.3x 6.4 (Berkeley) 6/4/86 X .\" X! .TH MP 3X "June 4, 1986" X .UC 6 X .SH NAME X madd, msub, mult, mdiv, pow, gcd, invert, rpow, msqrt, mcmp, X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)mp.3 6.5 (2.11BSD) 2026/9/27 X .\" X! .TH MP 3 "June 4, 1986" X .UC 6 X .SH NAME X madd, msub, mult, mdiv, pow, gcd, invert, rpow, msqrt, mcmp, X*************** X*** 12,65 **** X \- multiple precision integer arithmetic X .SH SYNOPSIS X .nf X! .B #include X! .B #include X! .PP X! .B "typedef struct mint { int len; short *val; } MINT;" X! .PP X! .B madd(a, b, c) X! .B msub(a, b, c) X! .B mult(a, b, c) X! .B mdiv(a, b, q, r) X! .B pow(a, b, m, c) X! .B gcd(a, b, c) X! .B invert(a, b, c) X! .B rpow(a, n, c) X! .B msqrt(a, b, r) X! .B mcmp(a, b) X! .B move(a, b) X! .B min(a) X! .B omin(a) X! .B fmin(a, f) X! .B m_in(a, n, f) X! .B mout(a) X! .B omout(a) X! .B fmout(a, f) X! .B m_out(a, n, f) X! .B MINT *a, *b, *c, *m, "*q, *r;" X! .B FILE *f; X! .B int n; X! .PP X! .B sdiv(a, n, q, r) X! .B MINT *a, *q; X! .B short n; X! .B short *r; X! .PP X! .B MINT *itom(n) X .SH DESCRIPTION X These routines perform arithmetic on integers of X arbitrary length. X The integers are stored using the defined type X! .IR MINT . X! Pointers to a X! .I MINT X can be initialized using the function X! .I itom X which sets the initial value to X .IR n . X After that, space is managed automatically by the routines. X .PP X! .IR madd , " msub " and " mult" X assign to X .I c X the sum, difference and X--- 12,68 ---- X \- multiple precision integer arithmetic X .SH SYNOPSIS X .nf X! .ft B X! #include X! #include X! X! typedef struct mint { int len; short *val; } MINT; X! X! madd(a, b, c) X! msub(a, b, c) X! mult(a, b, c) X! mdiv(a, b, q, r) X! pow(a, b, m, c) X! gcd(a, b, c) X! invert(a, b, c) X! rpow(a, n, c) X! msqrt(a, b, r) X! mcmp(a, b) X! move(a, b) X! min(a) X! omin(a) X! fmin(a, f) X! m_in(a, n, f) X! mout(a) X! omout(a) X! fmout(a, f) X! m_out(a, n, f) X! MINT *a, *b, *c, *m, "*q, *r; X! FILE *f; X! int n; X! X! sdiv(a, n, q, r) X! MINT *a, *q; X! short n; X! short *r; X! X! MINT *itom(n) X .SH DESCRIPTION X These routines perform arithmetic on integers of X arbitrary length. X The integers are stored using the defined type X! .BR MINT . X! Pointers to a X! .B MINT X can be initialized using the function X! .B itom X which sets the initial value to X .IR n . X After that, space is managed automatically by the routines. X .PP X! .BR madd , msub X! and X! .B mult X assign to X .I c X the sum, difference and X*************** X*** 71,90 **** X the quotient and remainder obtained X from dividing X .IR a " by " b. X! .I sdiv X is like X! .I mdiv X except that the divisor is a short integer X .I n X and the remainder is placed in a short X whose address is given as X .IR r . X! .I msqrt X produces the integer square root of X .IR a " in " b X and places the remainder in X .IR r . X! .I rpow X calculates in X .I c X the value of X--- 74,93 ---- X the quotient and remainder obtained X from dividing X .IR a " by " b. X! .B sdiv X is like X! .B mdiv X except that the divisor is a short integer X .I n X and the remainder is placed in a short X whose address is given as X .IR r . X! .B msqrt X produces the integer square root of X .IR a " in " b X and places the remainder in X .IR r . X! .B rpow X calculates in X .I c X the value of X*************** X*** 92,119 **** X raised to the (``regular'' integral) power X .IR n , X while X! .I pow X calculates this with a full multiple precision exponent X .I b X and the result is reduced modulo X .IR m . X! .I gcd X returns the greatest common denominator of X .IR a " and " b " in " c , X and X! .I invert X computes X .IR c " such that " a*c " mod " b " = 1," X for X .IR a " and " b X relatively prime. X! .I mcmp X returns a negative, zero or positive integer value when X .I a X is less than, equal to or greater than X .IR b , X respectively. X! .I move X copies X .IR a " to " b . X .IR min " and " mout X--- 95,122 ---- X raised to the (``regular'' integral) power X .IR n , X while X! .B pow X calculates this with a full multiple precision exponent X .I b X and the result is reduced modulo X .IR m . X! .B gcd X returns the greatest common denominator of X .IR a " and " b " in " c , X and X! .B invert X computes X .IR c " such that " a*c " mod " b " = 1," X for X .IR a " and " b X relatively prime. X! .B mcmp X returns a negative, zero or positive integer value when X .I a X is less than, equal to or greater than X .IR b , X respectively. X! .B move X copies X .IR a " to " b . X .IR min " and " mout X*************** X*** 148,159 **** X .SH BUGS X Bases for input and output should be <= 10. X .PP X! .IR dc (1) X and X! .IR bc (1) X don't use this library. X .PP X The input and output routines are a crock. X .PP X! .I pow X is also the name of a standard math library routine. X--- 151,162 ---- X .SH BUGS X Bases for input and output should be <= 10. X .PP X! .BR dc (1) X and X! .BR bc (1) X don't use this library. X .PP X The input and output routines are a crock. X .PP X! .B pow X is also the name of a standard math library routine. X*** ./usr/src/man/man3/end.3.old Sun Dec 14 18:07:16 1986 X--- ./usr/src/man/man3/end.3 Sun Sep 27 07:09:21 2026 X*************** X*** 1,4 **** X! .\" @(#)end.3 6.2 (Berkeley) 5/12/86 X .\" X .TH END 3 "May 12, 1986" X .AT 3 X--- 1,4 ---- X! .\" @(#)end.3 6.3 (2.11BSD) 2026/9/27 X .\" X .TH END 3 "May 12, 1986" X .AT 3 X*************** X*** 13,39 **** X .SH DESCRIPTION X These names refer neither to routines nor to locations with interesting X contents. The address of X! .I etext X is the first address above the program text, X! .I edata X above the initialized data region, and X! .I end X above the uninitialized data region. X .PP X When execution begins, the program break coincides with X! .I end, X but it is reset by the routines X! .IR brk (2), X! .IR malloc (3), X standard input/output X! .RI ( stdio (3S)), X the profile X .RB ( \-p ) X option of X! .IR cc (1), X etc. X The current value of the program break is reliably returned by `sbrk(0)', X see X! .IR brk (2). X .SH "SEE ALSO" X brk(2), malloc(3) X--- 13,39 ---- X .SH DESCRIPTION X These names refer neither to routines nor to locations with interesting X contents. The address of X! .B etext X is the first address above the program text, X! .B edata X above the initialized data region, and X! .B end X above the uninitialized data region. X .PP X When execution begins, the program break coincides with X! .B end, X but it is reset by the routines X! .BR brk (2), X! .BR malloc (3), X standard input/output X! .RB ( stdio (3)), X the profile X .RB ( \-p ) X option of X! .BR cc (1), X etc. X The current value of the program break is reliably returned by `sbrk(0)', X see X! .BR brk (2). X .SH "SEE ALSO" X brk(2), malloc(3) X*** ./usr/src/man/man3/atof.3.old Sun Dec 14 18:07:15 1986 X--- ./usr/src/man/man3/atof.3 Sun Sep 27 07:10:52 2026 X*************** X*** 1,4 **** X! .\" @(#)atof.3 6.1 (Berkeley) 5/15/85 X .\" X .TH ATOF 3 "May 15, 1985" X .AT 3 X--- 1,4 ---- X! .\" @(#)atof.3 6.2 (2.11BSD) 2026/9/27 X .\" X .TH ATOF 3 "May 15, 1985" X .AT 3 X*************** X*** 6,19 **** X atof, atoi, atol \- convert ASCII to numbers X .SH SYNOPSIS X .nf X! .B double atof(nptr) X! .B char *nptr; X! .PP X! .B atoi(nptr) X! .B char *nptr; X! .PP X! .B long atol(nptr) X! .B char *nptr; X .fi X .SH DESCRIPTION X These functions convert a string pointed to by X--- 6,21 ---- X atof, atoi, atol \- convert ASCII to numbers X .SH SYNOPSIS X .nf X! .ft B X! double atof(nptr) X! char *nptr; X! X! atoi(nptr) X! char *nptr; X! X! long atol(nptr) X! char *nptr; X! .ft R X .fi X .SH DESCRIPTION X These functions convert a string pointed to by X*************** X*** 21,38 **** X to floating, integer, and long integer representation respectively. X The first unrecognized character ends the string. X .PP X! .I Atof X recognizes an optional string of spaces, then an optional sign, then X a string of digits optionally containing a decimal X point, then an optional `e' or `E' followed by an optionally signed integer. X .PP X! .I Atoi X and X! .I atol X recognize an optional string of spaces, then an optional sign, then a X string of X digits. X .SH SEE ALSO X! scanf(3S) X .SH BUGS X There are no provisions for overflow. X--- 23,40 ---- X to floating, integer, and long integer representation respectively. X The first unrecognized character ends the string. X .PP X! .B atof X recognizes an optional string of spaces, then an optional sign, then X a string of digits optionally containing a decimal X point, then an optional `e' or `E' followed by an optionally signed integer. X .PP X! .B atoi X and X! .B atol X recognize an optional string of spaces, then an optional sign, then a X string of X digits. X .SH SEE ALSO X! scanf(3) X .SH BUGS X There are no provisions for overflow. X*** ./usr/src/man/man3/popen.3.old Sun Dec 14 18:07:20 1986 X--- ./usr/src/man/man3/popen.3 Sun Sep 27 07:14:00 2026 X*************** X*** 1,4 **** X! .\" @(#)popen.3 6.1 (Berkeley) 5/15/85 X .\" X .TH POPEN 3 "May 15, 1985" X .AT 3 X--- 1,4 ---- X! .\" @(#)popen.3 6.2 (2.11BSD) 2026/9/27 X .\" X .TH POPEN 3 "May 15, 1985" X .AT 3 X*************** X*** 5,26 **** X .SH NAME X popen, pclose \- initiate I/O to/from a process X .SH SYNOPSIS X! .B #include X! .PP X! .SM X! .B FILE X! .B *popen(command, type) X! .br X! .B char *command, *type; X! .PP X! .B pclose(stream) X! .br X! .SM X! .B FILE X! .B *stream; X .SH DESCRIPTION X The arguments to X! .I popen X are pointers to null-terminated strings containing respectively a X shell command line and an I/O mode, either "r" for reading or "w" for X writing. It creates a pipe between the calling process and X--- 5,23 ---- X .SH NAME X popen, pclose \- initiate I/O to/from a process X .SH SYNOPSIS X! .nf X! .ft B X! #include X! X! FILE * X! popen(\fIchar *command\fP, \fI char *type\fP) X! X! pclose(\fIFILE *stream\fP) X! .ft R X! .fi X .SH DESCRIPTION X The arguments to X! .B popen X are pointers to null-terminated strings containing respectively a X shell command line and an I/O mode, either "r" for reading or "w" for X writing. It creates a pipe between the calling process and X*************** X*** 29,37 **** X of the command or read from its standard output. X .PP X A stream opened by X! .I popen X should be closed by X! .IR pclose , X which waits for the associated process to terminate X and returns the exit status of the command. X .PP X--- 26,34 ---- X of the command or read from its standard output. X .PP X A stream opened by X! .B popen X should be closed by X! .BR pclose , X which waits for the associated process to terminate X and returns the exit status of the command. X .PP X*************** X*** 39,55 **** X filter, and a type "w" as an output filter. X .SH "SEE ALSO" X pipe(2), X! fopen(3S), X! fclose(3S), X system(3), X wait(2), X sh(1) X .SH DIAGNOSTICS X! .I Popen X returns a null pointer if files or processes cannot be created, or the shell X cannot be accessed. X .PP X! .I Pclose X returns \-1 if X .I stream X is not associated with a `popened' command. X--- 36,52 ---- X filter, and a type "w" as an output filter. X .SH "SEE ALSO" X pipe(2), X! fopen(3), X! fclose(3), X system(3), X wait(2), X sh(1) X .SH DIAGNOSTICS X! .B popen X returns a null pointer if files or processes cannot be created, or the shell X cannot be accessed. X .PP X! .B pclose X returns \-1 if X .I stream X is not associated with a `popened' command. X*************** X*** 58,69 **** X may leave the standard input of that filter mispositioned. X Similar problems with an output filter may be X forestalled by careful buffer flushing, for instance, with X! .I fflush, X see X! .IR fclose (3S). X .LP X! .I Popen X always calls X! .IR sh , X never calls X! .IR csh . X--- 55,66 ---- X may leave the standard input of that filter mispositioned. X Similar problems with an output filter may be X forestalled by careful buffer flushing, for instance, with X! .B fflush, X see X! .BR fclose (3). X .LP X! .B popen X always calls X! .BR sh , X never calls X! .BR csh . X*** ./usr/src/man/man3/dbm.3.old Sun Dec 14 18:07:19 1986 X--- ./usr/src/man/man3/dbm.3 Sun Sep 27 16:12:12 2026 X*************** X*** 2,39 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)dbm.3x 6.3 (Berkeley) 5/12/86 X .\" X! .TH DBM 3X "May 12, 1986" X .UC 4 X .SH NAME X dbminit, fetch, store, delete, firstkey, nextkey \- data base subroutines X .SH SYNOPSIS X .nf X! .PP X! .B "#include " X! .PP X! .B typedef struct { X! .B " char *dptr;" X! .B " int dsize;" X! .B } datum; X! .PP X! .B dbminit(file) X! .B char *file; X! .PP X! .B datum fetch(key) X! .B datum key; X! .PP X! .B store(key, content) X! .B datum key, content; X! .PP X! .B delete(key) X! .B datum key; X! .PP X! .B datum firstkey() X! .PP X! .B datum nextkey(key) X! .B datum key; X .SH DESCRIPTION X .ft B X Note: the dbm library has been superceded by ndbm(3), X--- 2,41 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)dbm.3 6.4 (2.11BSD) 2026/9/27 X .\" X! .TH DBM 3 "May 12, 1986" X .UC 4 X .SH NAME X dbminit, fetch, store, delete, firstkey, nextkey \- data base subroutines X .SH SYNOPSIS X .nf X! .ft B X! #include X! X! typedef struct { X! char *dptr; X! int dsize; X! } datum; X! X! dbminit(file) X! char *file; X! X! datum fetch(key) X! datum key; X! X! store(key, content) X! datum key, content; X! X! delete(key) X! datum key; X! X! datum firstkey() X! X! datum nextkey(key) X! datum key; X! .ft R X! .fi X .SH DESCRIPTION X .ft B X Note: the dbm library has been superceded by ndbm(3), X*************** X*** 62,68 **** X The second file contains all data and has `.pag' as its suffix. X .PP X Before a database can be accessed, it must be opened by X! .I dbminit. X At the time of this call, the files X .IB file .dir X and X--- 64,70 ---- X The second file contains all data and has `.pag' as its suffix. X .PP X Before a database can be accessed, it must be opened by X! .BR dbminit. X At the time of this call, the files X .IB file .dir X and X*************** X*** 72,90 **** X `.dir' and `.pag' files.) X .PP X Once open, the data stored under a key is accessed by X! .I fetch X and data is placed under a key by X! .IR store . X A key (and its associated contents) is deleted by X! .IR delete . X A linear pass through all keys in a database may be made, X in an (apparently) random order, by use of X! .I firstkey X and X! .IR nextkey . X! .I Firstkey X will return the first key in the database. With any key X! .I nextkey X will return the next key in the database. X This code will traverse the data base: X .IP X--- 74,92 ---- X `.dir' and `.pag' files.) X .PP X Once open, the data stored under a key is accessed by X! .B fetch X and data is placed under a key by X! .BR store . X A key (and its associated contents) is deleted by X! .BR delete . X A linear pass through all keys in a database may be made, X in an (apparently) random order, by use of X! .B firstkey X and X! .BR nextkey . X! .B firstkey X will return the first key in the database. With any key X! .B nextkey X will return the next key in the database. X This code will traverse the data base: X .IP X*************** X*** 106,112 **** X file blocks for these holes when touched. These files cannot be copied X by normal means (cp, cat, tp, tar, ar) without filling in the holes. X .PP X! .I Dptr X pointers returned by these subroutines point into static storage X that is changed by subsequent calls. X .PP X--- 108,114 ---- X file blocks for these holes when touched. These files cannot be copied X by normal means (cp, cat, tp, tar, ar) without filling in the holes. X .PP X! .I dptr X pointers returned by these subroutines point into static storage X that is changed by subsequent calls. X .PP X*************** X*** 113,127 **** X The sum of the sizes of a key/content pair must not exceed X the internal block size (currently 1024 bytes). X Moreover all key/content pairs that hash together must fit on a single block. X! .I Store X will return an error in the event that a disk block fills with inseparable data. X .PP X! .I Delete X does not physically reclaim file space, X although it does make it available for reuse. X .PP X The order of keys presented by X! .I firstkey X and X! .I nextkey X depends on a hashing function, not on anything interesting. X--- 115,129 ---- X The sum of the sizes of a key/content pair must not exceed X the internal block size (currently 1024 bytes). X Moreover all key/content pairs that hash together must fit on a single block. X! .B store X will return an error in the event that a disk block fills with inseparable data. X .PP X! .B delete X does not physically reclaim file space, X although it does make it available for reuse. X .PP X The order of keys presented by X! .B firstkey X and X! .B nextkey X depends on a hashing function, not on anything interesting. X*** ./usr/src/man/man3/system.3.old Sun Dec 14 18:07:18 1986 X--- ./usr/src/man/man3/system.3 Sun Sep 27 07:15:33 2026 X*************** X*** 1,4 **** X! .\" @(#)system.3 6.1 (Berkeley) 5/15/85 X .\" X .TH SYSTEM 3 "May 15, 1985" X .AT 3 X--- 1,4 ---- X! .\" @(#)system.3 6.2 (2.11BSD) 2026/9/27 X .\" X .TH SYSTEM 3 "May 15, 1985" X .AT 3 X*************** X*** 10,26 **** X .B char *string; X .fi X .SH DESCRIPTION X! .I System X causes the X .I string X to be given to X! .IR sh (1) X as input as if the string had been typed as a command X at a terminal. X The current process waits until the shell has X completed, then returns the exit status of the shell. X .SH "SEE ALSO" X! popen(3S), X execve(2), X wait(2) X .SH DIAGNOSTICS X--- 10,26 ---- X .B char *string; X .fi X .SH DESCRIPTION X! .B system X causes the X .I string X to be given to X! .BR sh (1) X as input as if the string had been typed as a command X at a terminal. X The current process waits until the shell has X completed, then returns the exit status of the shell. X .SH "SEE ALSO" X! popen(3), X execve(2), X wait(2) X .SH DIAGNOSTICS X*** ./usr/src/man/man3/abs.3.old Sun Dec 14 18:07:15 1986 X--- ./usr/src/man/man3/abs.3 Sun Sep 27 17:05:50 2026 X*************** X*** 1,4 **** X! .\" @(#)abs.3 6.1 (Berkeley) 5/15/85 X .\" X .TH ABS 3 "May 15, 1985" X .AT 3 X--- 1,4 ---- X! .\" @(#)abs.3 6.2 (2.11BSD) 2026/9/27 X .\" X .TH ABS 3 "May 15, 1985" X .AT 3 X*************** X*** 6,23 **** X abs \- integer absolute value X .SH SYNOPSIS X .nf X! .B abs(i) X! .B int i; X .fi X .SH DESCRIPTION X! .I Abs X returns the absolute value of its integer operand. X .SH SEE ALSO X! floor(3M) for X! .I fabs X .SH BUGS X Applying the \fIabs\fP function to the most negative integer generates a X! result which is the most negative integer. That is, X! .IP "abs(0x80000000)" X! .LP X! returns 0x80000000 as a result. X--- 6,25 ---- X abs \- integer absolute value X .SH SYNOPSIS X .nf X! .ft B X! abs(\fIint i\fP) X! .ft R X .fi X .SH DESCRIPTION X! .B abs X returns the absolute value of its integer operand. X .SH SEE ALSO X! floor(3) for X! .B fabs X .SH BUGS X Applying the \fIabs\fP function to the most negative integer generates a X! result which is the most negative integer. That is: X! .sp X! abs(0x8000) X! .sp X! returns 0x8000 as a result. X*** ./usr/src/man/man3/byteorder.3.old Sun Dec 14 18:07:23 1986 X--- ./usr/src/man/man3/byteorder.3 Sun Sep 27 18:42:27 2026 X*************** X*** 2,44 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)byteorder.3n 6.2 (Berkeley) 5/15/86 X .\" X! .TH BYTEORDER 3N "May 15, 1986" X .UC 5 X .SH NAME X htonl, htons, ntohl, ntohs \- convert values between host and network byte order X .SH SYNOPSIS X .nf X! .B #include X! .B #include X! .PP X! .B netlong = htonl(hostlong); X! .B u_long netlong, hostlong; X! .PP X! .B netshort = htons(hostshort); X! .B u_short netshort, hostshort; X! .PP X! .B hostlong = ntohl(netlong); X! .B u_long hostlong, netlong; X! .PP X! .B hostshort = ntohs(netshort); X! .B u_short hostshort, netshort; X .fi X .SH DESCRIPTION X These routines convert 16 and 32 bit quantities between network X byte order and host byte order. On machines such as the SUN X these routines are defined as null macros in the include file X! .RI < netinet/in.h >. X .PP X These routines are most often used in conjunction with Internet X addresses and ports as returned by X! .IR gethostbyname (3N) X and X! .IR getservent (3N). X .SH "SEE ALSO" X! gethostbyname(3N), X! getservent(3N) X! .SH BUGS X! The VAX handles bytes backwards from most everyone else in X! the world. This is not expected to be fixed in the near future. X--- 2,43 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)byteorder.3 6.3 (2.11BSD) 2026/9/27 X .\" X! .TH BYTEORDER 3 "May 15, 1986" X .UC 5 X .SH NAME X htonl, htons, ntohl, ntohs \- convert values between host and network byte order X .SH SYNOPSIS X .nf X! .ft B X! #include X! #include X! X! u_long X! htonl(\fIu_long hostlong\fP); X! X! u_short X! htons(\fIu_short hostshort\fP); X! X! u_long X! ntohl(\fIu_long netlong\fP); X! X! u_short X! ntohs(\fI u_short netshort\fP); X! .ft R X .fi X .SH DESCRIPTION X These routines convert 16 and 32 bit quantities between network X byte order and host byte order. On machines such as the SUN X these routines are defined as null macros in the include file X! .RB < netinet/in.h >. X .PP X These routines are most often used in conjunction with Internet X addresses and ports as returned by X! .BR gethostbyname (3) X and X! .BR getservent (3). X .SH "SEE ALSO" X! gethostbyname(3), X! getservent(3) X*** ./usr/src/man/man3/getnetent.3.old Sun Dec 14 18:07:25 1986 X--- ./usr/src/man/man3/getnetent.3 Sun Sep 27 15:28:33 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)getnetent.3n 6.3 (Berkeley) 5/19/86 X .\" X! .TH GETNETENT 3N "May 19, 1986" X .UC 5 X .SH NAME X getnetent, getnetbyaddr, getnetbyname, setnetent, endnetent \- get network entry X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)getnetent.3 6.4 (2.11BSD) 2026/9/27 X .\" X! .TH GETNETENT 3 "May 19, 1986" X .UC 5 X .SH NAME X getnetent, getnetbyaddr, getnetbyname, setnetent, endnetent \- get network entry X*************** X*** 14,47 **** X #include X .PP X .ft B X! struct netent *getnetent() X! .PP X! .ft B X! struct netent *getnetbyname(name) X! char *name; X! .PP X! .ft B X! struct netent *getnetbyaddr(net, type) X! long net; X! int type; X! .PP X! .ft B X! setnetent(stayopen) X! int stayopen; X! .PP X! .ft B X! endnetent() X .fi X .SH DESCRIPTION X! .IR Getnetent , X! .IR getnetbyname , X and X! .I getnetbyaddr X each return a pointer to an object with the X following structure X containing the broken-out X fields of a line in the network data base, X! .IR /etc/networks . X .RS X .PP X .nf X--- 14,45 ---- X #include X .PP X .ft B X! struct netent * X! getnetent(\fIvoid\fP) X! X! struct netent * X! getnetbyname(\fIchar *name\fP) X! X! struct netent * X! getnetbyaddr(\fIlong net\fP, \fIint type\fP) X! X! void X! setnetent(\fIint stayopen\fP) X! X! void X! endnetent(\fIvoid\fP) X! .ft R X .fi X .SH DESCRIPTION X! .BR getnetent , X! .BR getnetbyname , X and X! .B getnetbyaddr X each return a pointer to an object with the X following structure X containing the broken-out X fields of a line in the network data base, X! .BR /etc/networks . X .RS X .PP X .nf X*************** X*** 71,94 **** X The network number. Network numbers are returned in machine byte X order. X .PP X! .I Getnetent X reads the next line of the file, opening the file if necessary. X .PP X! .I Setnetent X opens and rewinds the file. If the X .I stayopen X flag is non-zero, X the net data base will not be closed after each call to X! .I getnetbyname X or X! .IR getnetbyaddr . X .PP X! .I Endnetent X closes the file. X .PP X! .I Getnetbyname X and X! .I getnetbyaddr X sequentially search from the beginning X of the file until a matching X net name or X--- 69,92 ---- X The network number. Network numbers are returned in machine byte X order. X .PP X! .B getnetent X reads the next line of the file, opening the file if necessary. X .PP X! .B setnetent X opens and rewinds the file. If the X .I stayopen X flag is non-zero, X the net data base will not be closed after each call to X! .B getnetbyname X or X! .BR getnetbyaddr . X .PP X! .B endnetent X closes the file. X .PP X! .B getnetbyname X and X! .B getnetbyaddr X sequentially search from the beginning X of the file until a matching X net name or X*** ./usr/src/man/man3/getprotoent.3.old Sun Dec 14 18:07:26 1986 X--- ./usr/src/man/man3/getprotoent.3 Sun Sep 27 15:32:43 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)getprotoent.3n 6.3 (Berkeley) 5/19/86 X .\" X! .TH GETPROTOENT 3N "May 19, 1986" X .UC 5 X .SH NAME X getprotoent, getprotobynumber, getprotobyname, setprotoent, endprotoent \- get protocol entry X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)getprotoent.3 6.4 (2.11BSD) 2026/9/27 X .\" X! .TH GETPROTOENT 3 "May 19, 1986" X .UC 5 X .SH NAME X getprotoent, getprotobynumber, getprotobyname, setprotoent, endprotoent \- get protocol entry X*************** X*** 11,46 **** X .SH SYNOPSIS X .nf X .ft B X! .B #include X! .PP X! .ft B X! struct protoent *getprotoent() X! .PP X! .ft B X! struct protoent *getprotobyname(name) X! char *name; X! .PP X! .ft B X! struct protoent *getprotobynumber(proto) X! int proto; X! .PP X! .ft B X! setprotoent(stayopen) X! int stayopen X! .PP X! .ft B X! endprotoent() X .fi X .SH DESCRIPTION X! .IR Getprotoent , X! .IR getprotobyname , X and X! .I getprotobynumber X each return a pointer to an object with the X following structure X containing the broken-out X fields of a line in the network protocol data base, X! .IR /etc/protocols . X .RS X .PP X .nf X--- 11,44 ---- X .SH SYNOPSIS X .nf X .ft B X! #include X! X! struct protoent * X! getprotoent(\fIvoid\fP) X! X! struct protoent * X! getprotobyname(\fIchar *name\fP) X! X! struct protoent * X! getprotobynumber(\fIint proto\fP) X! X! void X! setprotoent(\fIint stayopen\fP) X! X! void X! endprotoent(\fIvoid\fP) X! .ft R X .fi X .SH DESCRIPTION X! .BR getprotoent , X! .BR getprotobyname , X and X! .B getprotobynumber X each return a pointer to an object with the X following structure X containing the broken-out X fields of a line in the network protocol data base, X! .BR /etc/protocols . X .RS X .PP X .nf X*************** X*** 65,86 **** X p_proto X The protocol number. X .PP X! .I Getprotoent X reads the next line of the file, opening the file if necessary. X .PP X! .I Setprotoent X opens and rewinds the file. If the X .I stayopen X flag is non-zero, X the net data base will not be closed after each call to X! .I getprotobyname X or X! .IR getprotobynumber . X .PP X! .I Endprotoent X closes the file. X .PP X! .I Getprotobyname X and X .I getprotobynumber X sequentially search from the beginning X--- 63,84 ---- X p_proto X The protocol number. X .PP X! .B getprotoent X reads the next line of the file, opening the file if necessary. X .PP X! .B setprotoent X opens and rewinds the file. If the X .I stayopen X flag is non-zero, X the net data base will not be closed after each call to X! .B getprotobyname X or X! .BR getprotobynumber . X .PP X! .B endprotoent X closes the file. X .PP X! .B getprotobyname X and X .I getprotobynumber X sequentially search from the beginning X*** ./usr/src/man/man3/getservent.3.old Sun Dec 14 18:07:26 1986 X--- ./usr/src/man/man3/getservent.3 Sun Sep 27 15:37:48 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)getservent.3n 6.3 (Berkeley) 5/19/86 X .\" X! .TH GETSERVENT 3N "May 19, 1986" X .UC 5 X .SH NAME X getservent, getservbyport, getservbyname, setservent, endservent \- get service entry X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)getservent.3 6.4 (2.11BSD) 2026/9/27 X .\" X! .TH GETSERVENT 3 "May 19, 1986" X .UC 5 X .SH NAME X getservent, getservbyport, getservbyname, setservent, endservent \- get service entry X*************** X*** 12,46 **** X .nf X .ft B X #include X! .PP X! .ft B X! struct servent *getservent() X! .PP X! .ft B X! struct servent *getservbyname(name, proto) X! char *name, *proto; X! .PP X! .ft B X! struct servent *getservbyport(port, proto) X! int port; char *proto; X! .PP X! .ft B X! setservent(stayopen) X! int stayopen X! .PP X! .ft B X! endservent() X .fi X .SH DESCRIPTION X! .IR Getservent , X! .IR getservbyname , X and X! .I getservbyport X each return a pointer to an object with the X following structure X containing the broken-out X fields of a line in the network services data base, X! .IR /etc/services . X .RS X .PP X .nf X--- 12,44 ---- X .nf X .ft B X #include X! X! struct servent * X! getservent(\fIvoid\fP) X! X! struct servent * X! getservbyname(\fIchar *name\fP, \fIchar *proto\fP) X! X! struct servent * X! getservbyport(\fIint port\fP, \fIchar *proto\fP) X! X! void X! setservent(\fIint stayopen\fP) X! X! void X! endservent(\fIvoid\fP) X! .ft R X .fi X .SH DESCRIPTION X! .BR getservent , X! .BR getservbyname , X and X! .B getservbyport X each return a pointer to an object with the X following structure X containing the broken-out X fields of a line in the network services data base, X! .BR /etc/services . X .RS X .PP X .nf X*************** X*** 71,93 **** X The name of the protocol to use when contacting the X service. X .PP X! .I Getservent X reads the next line of the file, opening the file if necessary. X .PP X! .I Setservent X opens and rewinds the file. If the X .I stayopen X flag is non-zero, X the net data base will not be closed after each call to X! .I getservbyname X! or .IR getservbyport . X .PP X! .I Endservent X closes the file. X .PP X! .I Getservbyname X and X! .I getservbyport X sequentially search from the beginning X of the file until a matching X protocol name or X--- 69,92 ---- X The name of the protocol to use when contacting the X service. X .PP X! .B getservent X reads the next line of the file, opening the file if necessary. X .PP X! .B setservent X opens and rewinds the file. If the X .I stayopen X flag is non-zero, X the net data base will not be closed after each call to X! .B getservbyname X! or X! .BR getservbyport . X .PP X! .B endservent X closes the file. X .PP X! .B getservbyname X and X! .B getservbyport X sequentially search from the beginning X of the file until a matching X protocol name or X*************** X*** 98,104 **** X .SH FILES X /etc/services X .SH "SEE ALSO" X! getprotoent(3N), services(5) X .SH DIAGNOSTICS X Null pointer X (0) returned on EOF or error. X--- 97,103 ---- X .SH FILES X /etc/services X .SH "SEE ALSO" X! getprotoent(3), services(5) X .SH DIAGNOSTICS X Null pointer X (0) returned on EOF or error. X*** ./usr/src/man/man3/rcmd.3.old Sun Dec 14 18:07:09 1986 X--- ./usr/src/man/man3/rcmd.3 Sun Sep 27 15:54:18 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)rcmd.3 6.7 (Berkeley) 5/14/86 X .\" X .TH RCMD 3 "May 14, 1986" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)rcmd.3 6.8 (2.11BSD) 2026/9/27 X .\" X .TH RCMD 3 "May 14, 1986" X .UC 5 X*************** X*** 10,52 **** X rcmd, rresvport, ruserok \- routines for returning a stream to a remote command X .SH SYNOPSIS X .nf X! .PP X! .B "rem = rcmd(ahost, inport, locuser, remuser, cmd, fd2p);" X! .B char **ahost; X! .B int inport; X! .B "char *locuser, *remuser, *cmd;" X! .B int *fd2p; X! .PP X! .B s = rresvport(port); X! .B int *port; X! .PP X! .B "ruserok(rhost, superuser, ruser, luser);" X! .B char *rhost; X! .B int superuser; X! .B char *ruser, *luser; X .fi X .SH DESCRIPTION X! .I Rcmd X is a routine used by the super-user to execute a command on X a remote machine using an authentication scheme based X on reserved port numbers. X! .I Rresvport X is a routine which returns a descriptor to a socket X with an address in the privileged port space. X! .I Ruserok X is a routine used by servers X to authenticate clients requesting service with X! .IR rcmd . X All three functions are present in the same file and are used X by the X! .IR rshd (8C) X server (among others). X .PP X! .I Rcmd X looks up the host X .I *ahost X using X! .IR gethostbyname (3N), X returning \-1 if the host does not exist. X Otherwise X .I *ahost X--- 10,50 ---- X rcmd, rresvport, ruserok \- routines for returning a stream to a remote command X .SH SYNOPSIS X .nf X! .ft B X! X! int X! rcmd(\fIchar **ahost\fP, \fIint inport\fP, \fIchar *locuser\fP, X! \fIchar *remuser\fP, \fIchar *cmd\fP, \fIint *fd2p\fP); X! X! int X! rresvport(\fIint *port\fP); X! X! int X! ruserok(\fIchar *rhost\fP, \fIint superuser\fP, \fIchar *ruser\fP, \fIchar *luser\fP); X! .ft R X .fi X .SH DESCRIPTION X! .B rcmd X is a routine used by the super-user to execute a command on X a remote machine using an authentication scheme based X on reserved port numbers. X! .B rresvport X is a routine which returns a descriptor to a socket X with an address in the privileged port space. X! .B ruserok X is a routine used by servers X to authenticate clients requesting service with X! .BR rcmd . X All three functions are present in the same file and are used X by the X! .BR rshd (8) X server (among others). X .PP X! .B rcmd X looks up the host X .I *ahost X using X! .BR gethostbyname (3), X returning \-1 if the host does not exist. X Otherwise X .I *ahost X*************** X*** 84,90 **** X although you may be able to get its attention by using out-of-band data. X .PP X The protocol is described in detail in X! .IR rshd (8C). X .PP X The X .I rresvport X--- 82,88 ---- X although you may be able to get its attention by using out-of-band data. X .PP X The protocol is described in detail in X! .BR rshd (8). X .PP X The X .I rresvport X*************** X*** 91,110 **** X routine is used to obtain a socket with a privileged X address bound to it. This socket is suitable for use X by X! .I rcmd X and several other routines. Privileged Internet ports are those X in the range 0 to 1023. Only the super-user X is allowed to bind an address of this sort to a socket. X .PP X! .I Ruserok X takes a remote host's name, as returned by a X! .IR gethostbyaddr (3N) X routine, two user names and a flag indicating whether X the local user's name is that of the super-user. It then X checks the files X! .I /etc/hosts.equiv X and, possibly, X! .I .rhosts X in the current working directory (normally the local X user's home directory) to see if the request for X service is allowed. A 0 is returned if the machine X--- 89,108 ---- X routine is used to obtain a socket with a privileged X address bound to it. This socket is suitable for use X by X! .B rcmd X and several other routines. Privileged Internet ports are those X in the range 0 to 1023. Only the super-user X is allowed to bind an address of this sort to a socket. X .PP X! .B Ruserok X takes a remote host's name, as returned by a X! .BR gethostbyaddr (3) X routine, two user names and a flag indicating whether X the local user's name is that of the super-user. It then X checks the files X! .B /etc/hosts.equiv X and, possibly, X! .B .rhosts X in the current working directory (normally the local X user's home directory) to see if the request for X service is allowed. A 0 is returned if the machine X*************** X*** 111,117 **** X name is listed in the ``hosts.equiv'' file, or the X host and remote user name are found in the ``.rhosts'' X file; otherwise X! .I ruserok X returns \-1. If the X .I superuser X flag is 1, the checking of the ``host.equiv'' file is X--- 109,115 ---- X name is listed in the ``hosts.equiv'' file, or the X host and remote user name are found in the ``.rhosts'' X file; otherwise X! .B ruserok X returns \-1. If the X .I superuser X flag is 1, the checking of the ``host.equiv'' file is X*************** X*** 119,139 **** X If the local domain (as obtained from \fIgethostname\fP\|(2)) X is the same as the remote domain, only the machine name need be specified. X .SH SEE ALSO X! rlogin(1C), X! rsh(1C), X intro(2), X rexec(3), X! rexecd(8C), X! rlogind(8C), X! rshd(8C) X .SH DIAGNOSTICS X! .I Rcmd X returns a valid socket descriptor on success. X It returns -1 on error and prints a diagnostic message on the standard error. X .PP X! .I Rresvport X returns a valid, bound socket descriptor on success. X It returns -1 on error with the global value X! .I errno X set according to the reason for failure. X The error code EAGAIN is overloaded to mean ``All network ports in use.'' X--- 117,137 ---- X If the local domain (as obtained from \fIgethostname\fP\|(2)) X is the same as the remote domain, only the machine name need be specified. X .SH SEE ALSO X! rlogin(1), X! rsh(1), X intro(2), X rexec(3), X! rexecd(8), X! rlogind(8), X! rshd(8) X .SH DIAGNOSTICS X! .B rcmd X returns a valid socket descriptor on success. X It returns -1 on error and prints a diagnostic message on the standard error. X .PP X! .B rresvport X returns a valid, bound socket descriptor on success. X It returns -1 on error with the global value X! .B errno X set according to the reason for failure. X The error code EAGAIN is overloaded to mean ``All network ports in use.'' X*** ./usr/src/man/man3/inet.3.old Sat Aug 29 17:33:22 1987 X--- ./usr/src/man/man3/inet.3 Sun Sep 27 18:43:33 2026 X*************** X*** 2,58 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)inet.3n 6.4 (Berkeley) 5/27/86 X .\" X! .TH INET 3N "May 27, 1986" X .UC 5 X .SH NAME X inet_addr, inet_network, inet_ntoa, inet_makeaddr, inet_lnaof, inet_netof \- Internet address manipulation routines X .SH SYNOPSIS X .nf X! .B "#include X! .B "#include X! .B "#include X! .PP X! .B "unsigned long inet_addr(cp) X! .B "char *cp; X! .PP X! .B "unsigned long inet_network(cp) X! .B "char *cp; X! .PP X! .B "char *inet_ntoa(in) X! .B "struct in_addr in; X! .PP X! .B "struct in_addr inet_makeaddr(net, lna) X! .B "long net, lna;" X! .PP X! .B "long inet_lnaof(in) X! .B "struct in_addr in; X! .PP X! .B "long inet_netof(in) X! .B "struct in_addr in; X .fi X .SH DESCRIPTION X The routines X! .I inet_addr X and X! .I inet_network X each interpret character strings representing X numbers expressed in the Internet standard \*(lq.\*(rq X notation, returning numbers suitable for use X as Internet addresses and Internet network X numbers, respectively. The routine X! .I inet_ntoa X takes an Internet address and returns an ASCII X string representing the address in \*(lq.\*(rq X notation. The routine X! .I inet_makeaddr X takes an Internet network number and a local X network address and constructs an Internet address X from it. The routines X! .I inet_netof X and X! .I inet_lnaof X break apart Internet host addresses, returning X the network number and local network address part, X respectively. X--- 2,60 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)inet.3 6.5 (2.11BSD) 2026/9/27 X .\" X! .TH INET 3 "May 27, 1986" X .UC 5 X .SH NAME X inet_addr, inet_network, inet_ntoa, inet_makeaddr, inet_lnaof, inet_netof \- Internet address manipulation routines X .SH SYNOPSIS X .nf X! .ft B X! "#include X! "#include X! "#include X! X! unsigned long X! inet_addr(\fIchar *cp\fP) X! X! unsigned long X! inet_network(\fIchar *cp\fP) X! X! char * X! inet_ntoa(\fIstruct in_addr in\fP) X! X! struct in_addr X! inet_makeaddr(\fIlong net\fP, \fIlong lna\fP) X! X! long X! inet_lnaof(\fIstruct in_addr in\fP) X! X! long X! inet_netof(\fIstruct in_addr in\fP) X! .ft R X .fi X .SH DESCRIPTION X The routines X! .B inet_addr X and X! .B inet_network X each interpret character strings representing X numbers expressed in the Internet standard \*(lq.\*(rq X notation, returning numbers suitable for use X as Internet addresses and Internet network X numbers, respectively. The routine X! .B inet_ntoa X takes an Internet address and returns an ASCII X string representing the address in \*(lq.\*(rq X notation. The routine X! .B inet_makeaddr X takes an Internet network number and a local X network address and constructs an Internet address X from it. The routines X! .B inet_netof X and X! .B inet_lnaof X break apart Internet host addresses, returning X the network number and local network address part, X respectively. X*************** X*** 74,84 **** X .fi X When four parts are specified, each is interpreted X as a byte of data and assigned, from left to right, X! to the four bytes of an Internet address. Note X! that when an Internet address is viewed as a 32-bit X! integer quantity on the VAX the bytes referred to X! above appear as \*(lqd.c.b.a\*(rq. That is, VAX bytes are X! ordered from right to left. X .PP X When a three part address is specified, the last X part is interpreted as a 16-bit quantity and placed X--- 76,82 ---- X .fi X When four parts are specified, each is interpreted X as a byte of data and assigned, from left to right, X! to the four bytes of an Internet address. X .PP X When a three part address is specified, the last X part is interpreted as a 16-bit quantity and placed X*************** X*** 104,115 **** X hexadecimal; otherwise, a leading 0 implies octal; X otherwise, the number is interpreted as decimal). X .SH "SEE ALSO" X! gethostbyname(3N), getnetent(3N), hosts(5), networks(5), X .SH DIAGNOSTICS X The value \-1 is returned by X! .I inet_addr X and X! .I inet_network X for malformed requests. X .SH BUGS X The problem of host byte ordering versus network byte ordering is X--- 102,113 ---- X hexadecimal; otherwise, a leading 0 implies octal; X otherwise, the number is interpreted as decimal). X .SH "SEE ALSO" X! gethostbyname(3), getnetent(3), hosts(5), networks(5), X .SH DIAGNOSTICS X The value \-1 is returned by X! .B inet_addr X and X! .B inet_network X for malformed requests. X .SH BUGS X The problem of host byte ordering versus network byte ordering is X*************** X*** 116,122 **** X confusing. A simple way to specify Class C network addresses in a manner X similar to that for Class B and Class A is needed. X The string returned by X! .I inet_ntoa X resides in a static memory area. X! .br X! Inet_addr should return a struct in_addr. X--- 114,120 ---- X confusing. A simple way to specify Class C network addresses in a manner X similar to that for Class B and Class A is needed. X The string returned by X! .B inet_ntoa X resides in a static memory area. X! .sp X! inet_addr should return a struct in_addr. X*** ./usr/src/man/man3/rexec.3.old Sun Dec 14 18:07:09 1986 X--- ./usr/src/man/man3/rexec.3 Sun Sep 27 15:57:29 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)rexec.3 6.5 (Berkeley) 5/14/86 X .\" X .TH REXEC 3 "May 14, 1986" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)rexec.3 6.6 (2.11BSD) 2026/9/27 X .\" X .TH REXEC 3 "May 14, 1986" X .UC 5 X*************** X*** 10,28 **** X rexec \- return stream to a remote command X .SH SYNOPSIS X .nf X! .PP X! .B "rem = rexec(ahost, inport, user, passwd, cmd, fd2p);" X! .B char **ahost; X! .B int inport; X! .B "char *user, *passwd, *cmd;" X! .B int *fd2p; X .fi X .SH DESCRIPTION X! .I Rexec X looks up the host X .I *ahost X using X! .IR gethostbyname (3N), X returning \-1 if the host does not exist. X Otherwise X .I *ahost X--- 10,27 ---- X rexec \- return stream to a remote command X .SH SYNOPSIS X .nf X! .ft B X! int X! rexec(\fIchar **ahost\fP, \fIint inport\fP, \fIchar *user\fP, \fIchar *passwd\fP, X! \fIchar *cmd\fP, \fIint *fd2p\fP); X! .ft R X .fi X .SH DESCRIPTION X! .B rexec X looks up the host X .I *ahost X using X! .BR gethostbyname (3), X returning \-1 if the host does not exist. X Otherwise X .I *ahost X*************** X*** 30,36 **** X If a username and password are both specified, then these X are used to authenticate to the foreign host; otherwise X the environment and then the user's X! .I .netrc X file in his X home directory are searched for appropriate information. X If all this fails, the user is prompted for the information. X--- 29,35 ---- X If a username and password are both specified, then these X are used to authenticate to the foreign host; otherwise X the environment and then the user's X! .B .netrc X file in his X home directory are searched for appropriate information. X If all this fails, the user is prompted for the information. X*************** X*** 39,49 **** X .I inport X specifies which well-known DARPA Internet port to use for X the connection; the call ``getservbyname("exec", "tcp")'' (see X! .IR getservent (3N)) X will return a pointer to a structure, which contains the X necessary port. X The protocol for connection is described in detail in X! .IR rexecd (8C). X .PP X If the connection succeeds, X a socket in the Internet domain of type SOCK_STREAM is returned to X--- 38,48 ---- X .I inport X specifies which well-known DARPA Internet port to use for X the connection; the call ``getservbyname("exec", "tcp")'' (see X! .BR getservent (3)) X will return a pointer to a structure, which contains the X necessary port. X The protocol for connection is described in detail in X! .BR rexecd (8). X .PP X If the connection succeeds, X a socket in the Internet domain of type SOCK_STREAM is returned to X*************** X*** 75,78 **** X provision is made for sending arbitrary signals to the remote process, X although you may be able to get its attention by using out-of-band data. X .SH SEE ALSO X! rcmd(3), rexecd(8C) X--- 74,77 ---- X provision is made for sending arbitrary signals to the remote process, X although you may be able to get its attention by using out-of-band data. X .SH SEE ALSO X! rcmd(3), rexecd(8) X*** ./usr/src/man/man3/curses.3.old Sun Dec 14 18:07:20 1986 X--- ./usr/src/man/man3/curses.3 Sun Sep 27 16:07:02 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)curses.3x 6.3 (Berkeley) 4/23/86 X .\" X! .TH CURSES 3X "April 23, 1986" X .UC 4 X .SH NAME X curses \- screen functions with ``optimal'' cursor motion X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)curses.3 6.4 (2.11BSD) 2026/9/27 X .\" X! .TH CURSES 3 "April 23, 1986" X .UC 4 X .SH NAME X curses \- screen functions with ``optimal'' cursor motion X*************** X*** 17,38 **** X These routines give the user a method of updating screens with reasonable X optimization. They keep an image of the current screen, X and the user sets up an image of a new one. Then the X! .I refresh() X tells the routines to make the current screen look like the new one. X In order to initialize the routines, the routine X! .I initscr() X must be called before any of the other routines that deal with windows and X screens are used. The routine X! .I endwin() X should be called before exiting. X .SH SEE ALSO X .I "Screen Updating and Cursor Movement Optimization: A Library Package," X Ken Arnold, X! .br X! ioctl(2), X! getenv(3), X! tty(4), X! termcap(5) X .SH AUTHOR X Ken Arnold X .SH FUNCTIONS X--- 17,35 ---- X These routines give the user a method of updating screens with reasonable X optimization. They keep an image of the current screen, X and the user sets up an image of a new one. Then the X! .BR refresh () X tells the routines to make the current screen look like the new one. X In order to initialize the routines, the routine X! .BR initscr () X must be called before any of the other routines that deal with windows and X screens are used. The routine X! .BR endwin () X should be called before exiting. X .SH SEE ALSO X .I "Screen Updating and Cursor Movement Optimization: A Library Package," X Ken Arnold, X! .sp X! ioctl(2), getenv(3), tty(4), termcap(5) X .SH AUTHOR X Ken Arnold X .SH FUNCTIONS X*** ./usr/src/man/man3/lib2648.3.old Sun Dec 14 18:07:27 1986 X--- ./usr/src/man/man3/lib2648.3 Sun Sep 27 16:29:45 2026 X*************** X*** 2,64 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)lib2648.3x 6.2 (Berkeley) 5/27/86 X .\" X! .TH LIB2648 3X "May 27, 1986" X .UC 5 X .SH NAME X lib2648 \- subroutines for the HP 2648 graphics terminal X .SH SYNOPSIS X! .B #include X .sp X- .B "typedef char" X- .RB * bitmat ; X- .br X FILE *trace; X! .sp X! cc file.c X! .B \-l2648 X .SH DESCRIPTION X! .I Lib2648 X is a general purpose library of subroutines useful X for interactive graphics on the Hewlett-Packard 2648 graphics terminal. X To use it you must call the routine X! .IR ttyinit () X at the beginning of execution, X and X! .IR done () X at the end of execution. X All terminal input and output must go through the routines X! .IR rawchar , X! .IR readline , X! .IR outchar , X and X! .IR outstr . X .PP X! .I Lib2648 X does the necessary ^E/^F handshaking if X! .I "getenv(``TERM'')" X! returns ``hp2648'', as it will if set by X! .IR tset (1). X! Any other value, including for example ``2648'', will disable handshaking. X .PP X Bit matrix routines are provided to model the graphics memory of the 2648. X These routines are generally useful, but are specifically useful for the X! .I update X function which efficiently changes what is on the screen to what is X supposed to be on the screen. X The primative bit matrix routines are X! .IR newmat , X! .IR mat , X and X! .IR setmat . X .PP X The file X! .IR trace , X if non-null, is expected to be a file descriptor as returned by X! .IR fopen . X If so, X! .I lib2648 X will trace the progress of the output by writing onto X this file. X It is provided to make debugging output feasible for graphics programs without X--- 2,68 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)lib2648.3 6.3 (2.11BSD) 2026/9/27 X .\" X! .TH LIB2648 3 "May 27, 1986" X .UC 5 X .SH NAME X lib2648 \- subroutines for the HP 2648 graphics terminal X .SH SYNOPSIS X! .nf X! .ft B X! #include X! X! typedef char *bitmat; X .sp X FILE *trace; X! X! cc file.c \-l2648 X! .ft R X! .fi X .SH DESCRIPTION X! .B lib2648 X is a general purpose library of subroutines useful X for interactive graphics on the Hewlett-Packard 2648 graphics terminal. X To use it you must call the routine X! .BR ttyinit () X at the beginning of execution, X and X! .BR done () X at the end of execution. X All terminal input and output must go through the routines X! .BR rawchar , X! .BR readline , X! .BR outchar , X and X! .BR outstr . X .PP X! .B lib2648 X does the necessary ^E/^F handshaking if X! .br X! .B getenv X! ("TERM") X! returns `hp2648', as it will if set by X! .BR tset (1). X! Any other value, including for example `2648', will disable handshaking. X .PP X Bit matrix routines are provided to model the graphics memory of the 2648. X These routines are generally useful, but are specifically useful for the X! .B update X function which efficiently changes what is on the screen to what is X supposed to be on the screen. X The primative bit matrix routines are X! .BR newmat , X! .BR mat , X and X! .BR setmat . X .PP X The file X! .BR trace , X if non-null, is expected to be a file descriptor as returned by X! .BR fopen . X If so, X! .B lib2648 X will trace the progress of the output by writing onto X this file. X It is provided to make debugging output feasible for graphics programs without X*************** X*** 471,475 **** X .PP X There is no way to control the amount of debugging output generated X on X! .I trace X without modifying the source to the library. X--- 475,479 ---- X .PP X There is no way to control the amount of debugging output generated X on X! .B trace X without modifying the source to the library. X*** ./usr/src/man/man3/ndbm.3.old Sun Dec 14 18:07:09 1986 X--- ./usr/src/man/man3/ndbm.3 Sun Sep 27 16:44:21 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)ndbm.3 6.6 (Berkeley) 5/20/86 X .\" X .TH NDBM 3 "May 20, 1986" X .UC 6 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)ndbm.3 6.7 (2.11BSD) 2026/9/27 X .\" X .TH NDBM 3 "May 20, 1986" X .UC 6 X*************** X*** 10,76 **** X dbm_open, dbm_close, dbm_fetch, dbm_store, dbm_delete, dbm_firstkey, dbm_nextkey, dbm_error, dbm_clearerr \- data base subroutines X .SH SYNOPSIS X .nf X- .PP X .ft B X #include X! .PP X! .ft B X typedef struct { X char *dptr; X int dsize; X! } datum; X! .PP X! .ft B X! DBM *dbm_open(file, flags, mode) X! char *file; X! int flags, mode; X! .PP X! .ft B X! void dbm_close(db) X! DBM *db; X! .PP X! .ft B X! datum dbm_fetch(db, key) X! DBM *db; X! datum key; X! .PP X! .ft B X! int dbm_store(db, key, content, flags) X! DBM *db; X! datum key, content; X! int flags; X! .PP X! .ft B X! int dbm_delete(db, key) X! DBM *db; X! datum key; X! .PP X! .ft B X! datum dbm_firstkey(db) X! DBM *db; X! .PP X! .ft B X! datum dbm_nextkey(db) X! DBM *db; X! .PP X! .ft B X! int dbm_error(db) X! DBM *db; X! .PP X! .ft B X! int dbm_clearerr(db) X! DBM *db; X .SH DESCRIPTION X These functions maintain key/content pairs in a data base. X The functions will handle very large (a billion blocks) X databases and will access a keyed item in one or two file system accesses. X This package replaces the earlier X! .IR dbm (3x) X library, which managed only a single database. X .PP X! .IR Key s X and X! .IR content s X are described by the X .I datum X typedef. A X--- 10,62 ---- X dbm_open, dbm_close, dbm_fetch, dbm_store, dbm_delete, dbm_firstkey, dbm_nextkey, dbm_error, dbm_clearerr \- data base subroutines X .SH SYNOPSIS X .nf X .ft B X #include X! X typedef struct { X char *dptr; X int dsize; X! } datum; X! X! DBM * X! dbm_open(\fIchar *file\fP, \fIint flags\fP, \fIint mode\fP) X! X! void X! dbm_close(\fIDBM *db\fP) X! X! datum X! dbm_fetch(\fIDBM *db\fP, \fIdatum key\fP) X! X! int X! dbm_store(\fIDBM *db\fP, \fIdatum key\fP, \fIdatum content\fP, \fIint flags\fP) X! X! int X! dbm_delete(\fIDBM *db\fP, \fIdatum key\fP) X! X! datum X! dbm_firstkey(\fIDBM *db\fP) X! X! datum X! dbm_nextkey(\fIDBM *db\fP) X! X! int X! dbm_error(\fIDBM *db\fP) X! X! int X! dbm_clearerr(\fIDBM *db\fP) X! .ft R X! .fi X .SH DESCRIPTION X These functions maintain key/content pairs in a data base. X The functions will handle very large (a billion blocks) X databases and will access a keyed item in one or two file system accesses. X This package replaces the earlier X! .BR dbm (3) X library, which managed only a single database. X .PP X! .IR key X and X! .IR content X are described by the X .I datum X typedef. A X*************** X*** 85,102 **** X The second file contains all data and has `.pag' as its suffix. X .PP X Before a database can be accessed, it must be opened by X! .IR dbm_open . X This will open and/or create the files X .IB file .dir X and X .IB file .pag X depending on the flags parameter (see X! .IR open (2)). X .PP X Once open, the data stored under a key is accessed by X! .I dbm_fetch X and data is placed under a key by X! .IR dbm_store . X The X .I flags X field can be either X--- 71,88 ---- X The second file contains all data and has `.pag' as its suffix. X .PP X Before a database can be accessed, it must be opened by X! .BR dbm_open . X This will open and/or create the files X .IB file .dir X and X .IB file .pag X depending on the flags parameter (see X! .BR open (2)). X .PP X Once open, the data stored under a key is accessed by X! .B dbm_fetch X and data is placed under a key by X! .BR dbm_store . X The X .I flags X field can be either X*************** X*** 109,123 **** X .B DBM_REPLACE X will replace an existing entry if it has the same key. X A key (and its associated contents) is deleted by X! .IR dbm_delete . X A linear pass through all keys in a database may be made, X in an (apparently) random order, by use of X! .I dbm_firstkey X and X! .IR dbm_nextkey . X! .I Dbm_firstkey X will return the first key in the database. X! .I Dbm_nextkey X will return the next key in the database. X This code will traverse the data base: X .IP X--- 95,109 ---- X .B DBM_REPLACE X will replace an existing entry if it has the same key. X A key (and its associated contents) is deleted by X! .BR dbm_delete . X A linear pass through all keys in a database may be made, X in an (apparently) random order, by use of X! .B dbm_firstkey X and X! .BR dbm_nextkey . X! .B dbm_firstkey X will return the first key in the database. X! .B dbm_nextkey X will return the next key in the database. X This code will traverse the data base: X .IP X*************** X*** 124,132 **** X .B for X (key = dbm_firstkey(db); key.dptr != NULL; key = dbm_nextkey(db)) X .PP X! .I Dbm_error X returns non-zero when an error has occurred reading or writing the database. X! .I Dbm_clearerr X resets the error condition on the named database. X .SH DIAGNOSTICS X All functions that return an X--- 110,118 ---- X .B for X (key = dbm_firstkey(db); key.dptr != NULL; key = dbm_nextkey(db)) X .PP X! .B dbm_error X returns non-zero when an error has occurred reading or writing the database. X! .B dbm_clearerr X resets the error condition on the named database. X .SH DIAGNOSTICS X All functions that return an X*************** X*** 137,143 **** X indicate errors with a null (0) X .I dptr. X If X! .IR dbm_store X called with a X .I flags X value of X--- 123,129 ---- X indicate errors with a null (0) X .I dptr. X If X! .BR dbm_store X called with a X .I flags X value of X*************** X*** 150,156 **** X file blocks for these holes when touched. These files cannot be copied X by normal means (cp, cat, tp, tar, ar) without filling in the holes. X .PP X! .I Dptr X pointers returned by these subroutines point into static storage X that is changed by subsequent calls. X .PP X--- 136,142 ---- X file blocks for these holes when touched. These files cannot be copied X by normal means (cp, cat, tp, tar, ar) without filling in the holes. X .PP X! .I dptr X pointers returned by these subroutines point into static storage X that is changed by subsequent calls. X .PP X*************** X*** 157,173 **** X The sum of the sizes of a key/content pair must not exceed X the internal block size (currently 4096 bytes). X Moreover all key/content pairs that hash together must fit on a single block. X! .I Dbm_store X will return an error in the event that a disk block fills with inseparable data. X .PP X! .I Dbm_delete X does not physically reclaim file space, X although it does make it available for reuse. X .PP X The order of keys presented by X! .I dbm_firstkey X and X! .I dbm_nextkey X depends on a hashing function, not on anything interesting. X .SH SEE ALSO X! dbm(3X) X--- 143,159 ---- X The sum of the sizes of a key/content pair must not exceed X the internal block size (currently 4096 bytes). X Moreover all key/content pairs that hash together must fit on a single block. X! .B dbm_store X will return an error in the event that a disk block fills with inseparable data. X .PP X! .B dbm_delete X does not physically reclaim file space, X although it does make it available for reuse. X .PP X The order of keys presented by X! .B dbm_firstkey X and X! .B dbm_nextkey X depends on a hashing function, not on anything interesting. X .SH SEE ALSO X! dbm(3) X*** ./usr/src/man/man3/plot.3.old Sun Dec 14 18:07:17 1986 X--- ./usr/src/man/man3/plot.3 Sun Sep 27 16:50:53 2026 X*************** X*** 1,58 **** X! .\" @(#)plot.3x 6.2 (Berkeley) 5/15/86 X .\" X! .TH PLOT 3X "May 15, 1986" X .AT 3 X .SH NAME X plot: openpl, erase, label, line, circle, arc, move, cont, point, linemod, space, closepl \- graphics interface X .SH SYNOPSIS X .nf X! .B openpl() X! .PP X! .B erase() X! .PP X! .B label(s) X! .B char s[]; X! .PP X! .B line(x1, y1, x2, y2) X! .PP X! .B circle(x, y, r) X! .PP X! .B arc(x, y, x0, y0, x1, y1) X! .PP X! .B move(x, y) X! .PP X! .B cont(x, y) X! .PP X! .B point(x, y) X! .PP X! .B linemod(s) X! .B char s[]; X! .PP X! .B space(x0, y0, x1, y1) X! .PP X! .B closepl() X .fi X .PP X- .ft R X .SH DESCRIPTION X These subroutines generate graphic output in a relatively X device-independent manner. See X! .IR plot (5) X for a description of their effect. X! .I Openpl X must be used before any of the others to open the device for writing. X! .I Closepl X flushes the output. X .PP X String arguments to X! .I label X and X! .I linemod X are null-terminated, and do not contain newlines. X .PP X Various flavors of these functions exist for different output devices. X They are obtained by the following X! .IR ld (1) X options: X .TP 8n X .B \-lplot X--- 1,59 ---- X! .\" @(#)plot.3 6.3 (2.11BSD) 2026/9/27 X .\" X! .TH PLOT 3 "May 15, 1986" X .AT 3 X .SH NAME X plot: openpl, erase, label, line, circle, arc, move, cont, point, linemod, space, closepl \- graphics interface X .SH SYNOPSIS X .nf X! .ft B X! openpl() X! X! erase() X! X! label(s) X! char s[]; X! X! line(x1, y1, x2, y2) X! X! circle(x, y, r) X! X! arc(x, y, x0, y0, x1, y1) X! X! move(x, y) X! X! cont(x, y) X! X! point(x, y) X! X! linemod(s) X! char s[]; X! X! space(x0, y0, x1, y1) X! X! closepl() X! .ft R X .fi X .PP X .SH DESCRIPTION X These subroutines generate graphic output in a relatively X device-independent manner. See X! .BR plot (5) X for a description of their effect. X! .B openpl X must be used before any of the others to open the device for writing. X! .B closepl X flushes the output. X .PP X String arguments to X! .B label X and X! .B linemod X are null-terminated, and do not contain newlines. X .PP X Various flavors of these functions exist for different output devices. X They are obtained by the following X! .BR ld (1) X options: X .TP 8n X .B \-lplot X*************** X*** 128,144 **** X Imagen laser printer (default 240 dots-per-inch resolution). X .PP X On many devices, it is necessary to pause after X! .IR erase (), X otherwise plotting commands are lost. X The pause is normally done by the tty driver if at login time, X! .I tset X found a X .I df X field in the X! .IR termcap (5) X entry for the terminal. X If a pause is needed but not automatically being generated, X add X .RS X .nf X flush(stdout); X--- 129,146 ---- X Imagen laser printer (default 240 dots-per-inch resolution). X .PP X On many devices, it is necessary to pause after X! .BR erase (), X otherwise plotting commands are lost. X The pause is normally done by the tty driver if at login time, X! .B tset X found a X .I df X field in the X! .BR termcap (5) X entry for the terminal. X If a pause is needed but not automatically being generated, X add X+ .sp X .RS X .nf X flush(stdout); X*************** X*** 145,151 **** X sleep(1); X .fi X .RE X after each X! .IR erase (). X .SH "SEE ALSO" X! plot(5), plot(1G), plot(3F), graph(1G) X--- 147,154 ---- X sleep(1); X .fi X .RE X+ .sp X after each X! .BR erase (). X .SH "SEE ALSO" X! plot(5), plot(1), plot(3F), graph(1) X*** ./usr/src/man/man3/termcap.3.old Sun Dec 14 18:07:21 1986 X--- ./usr/src/man/man3/termcap.3 Sun Sep 27 16:56:47 2026 X*************** X*** 2,91 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)termcap.3x 6.1 (Berkeley) 5/15/85 X .\" X! .TH TERMCAP 3X "May 15, 1985" X .UC 4 X .SH NAME X tgetent, tgetnum, tgetflag, tgetstr, tgoto, tputs \- terminal independent operation routines X .SH SYNOPSIS X .nf X! .B char PC; X! .B char *BC; X! .B char *UP; X! .B short ospeed; X! .PP X! .B tgetent(bp, name) X! .B char *bp, *name; X! .PP X! .B tgetnum(id) X! .B char *id; X! .PP X! .B tgetflag(id) X! .B char *id; X! .PP X! .B char * X! .B tgetstr(id, area) X! .B char *id, **area; X! .PP X! .B char * X! .B tgoto(cm, destcol, destline) X! .B char *cm; X! .PP X! .B tputs(cp, affcnt, outc) X! .B register char *cp; X! .B int affcnt; X! .B int (*outc)(); X .fi X .SH DESCRIPTION X These functions extract and use capabilities from the terminal capability data X base X! .IR termcap (5). X These are low level routines; X see X! .IR curses (3X) X for a higher level package. X .PP X! .I Tgetent X extracts the entry for terminal X .I name X into the buffer at X .I bp. X! .I Bp X should be a character buffer of size X 1024 and must be retained through all subsequent calls X to X! .I tgetnum, X! .I tgetflag, X and X! .I tgetstr. X! .I Tgetent X returns \-1 if it cannot open the X! .I termcap X file, 0 if the terminal name given does not have an entry, X and 1 if all goes well. X It will look in the environment for a TERMCAP variable. X If found, and the value does not begin with a slash, X and the terminal type X! .B name X is the same as the environment string TERM, X the TERMCAP string is used instead of reading the termcap file. X If it does begin with a slash, the string is used as a path name rather than X! .I /etc/termcap. X This can speed up entry into programs that call X! .IR tgetent , X as well as to help debug new terminal descriptions X or to make one for your terminal if you can't write the file X! .I /etc/termcap. X .PP X! .I Tgetnum X gets the numeric value of capability X .I id, X returning \-1 if is not given for the terminal. X! .I Tgetflag X returns 1 if the specified capability is present in X the terminal's entry, 0 if it is not. X! .I Tgetstr X returns the string value of the capability X .I id, X places it in the buffer at X--- 2,85 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)termcap.3 6.2 (2.11BSD) 2026/9/27 X .\" X! .TH TERMCAP 3 "May 15, 1985" X .UC 4 X .SH NAME X tgetent, tgetnum, tgetflag, tgetstr, tgoto, tputs \- terminal independent operation routines X .SH SYNOPSIS X .nf X! .ft B X! char PC; X! char *BC; X! char *UP; X! short ospeed; X! X! tgetent(\fIchar *bp\fP, \fIchar *name\fP) X! X! tgetnum(\fIchar *id\fP) X! X! tgetflag(\fIchar *id\fP) X! X! char * X! tgetstr(\fIchar *id\fP, \fIchar **area\fP) X! X! char * X! tgoto(\fIchar *cm\fP, \fIint destcol\fP, \fIint destline\fP) X! X! tputs(\fIchar *cp\fP, \fIint affcnt\fP, \fIint (*outc_()) X! .ft R X .fi X .SH DESCRIPTION X These functions extract and use capabilities from the terminal capability data X base X! .BR termcap (5). X These are low level routines; X see X! .BR curses (3) X for a higher level package. X .PP X! .B tgetent X extracts the entry for terminal X .I name X into the buffer at X .I bp. X! .I bp X should be a character buffer of size X 1024 and must be retained through all subsequent calls X to X! .B tgetnum, X! .B tgetflag, X and X! .B tgetstr. X! .B Tgetent X returns \-1 if it cannot open the X! .B termcap X file, 0 if the terminal name given does not have an entry, X and 1 if all goes well. X It will look in the environment for a TERMCAP variable. X If found, and the value does not begin with a slash, X and the terminal type X! .I name X is the same as the environment string TERM, X the TERMCAP string is used instead of reading the termcap file. X If it does begin with a slash, the string is used as a path name rather than X! .B /etc/termcap. X This can speed up entry into programs that call X! .bR tgetent , X as well as to help debug new terminal descriptions X or to make one for your terminal if you can't write the file X! .B /etc/termcap. X .PP X! .B tgetnum X gets the numeric value of capability X .I id, X returning \-1 if is not given for the terminal. X! .B tgetflag X returns 1 if the specified capability is present in X the terminal's entry, 0 if it is not. X! .B tgetstr X returns the string value of the capability X .I id, X places it in the buffer at X*************** X*** 94,100 **** X .I area X pointer. X It decodes the abbreviations for this field described in X! .IR termcap (5), X except for cursor addressing and padding information. X .I Tgetstr X returns NULL if the capability was not found. X--- 88,94 ---- X .I area X pointer. X It decodes the abbreviations for this field described in X! .BR termcap (5), X except for cursor addressing and padding information. X .I Tgetstr X returns NULL if the capability was not found. X*************** X*** 144,153 **** X .SH FILES X .ta \w'/usr/lib/libtermcap.a 'u X /usr/lib/libtermcap.a \-ltermcap library X! .br X /etc/termcap data base X .DT X .SH SEE ALSO X! ex(1), curses(3X), termcap(5) X .SH AUTHOR X William Joy X--- 138,147 ---- X .SH FILES X .ta \w'/usr/lib/libtermcap.a 'u X /usr/lib/libtermcap.a \-ltermcap library X! .sp X /etc/termcap data base X .DT X .SH SEE ALSO X! ex(1), curses(3), termcap(5) X .SH AUTHOR X William Joy X*** ./usr/src/man/man3/asinh.3.old Sun Dec 14 18:08:09 1986 X--- ./usr/src/man/man3/asinh.3 Sun Sep 27 18:36:13 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)asinh.3m 6.2 (Berkeley) 5/12/86 X .\" X! .TH ASINH 3M "May 12, 1986" X .UC 6 X .ds up \fIulp\fR X .SH NAME X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)asinh.3 6.3 (2.11BSD) 2026/9/27 X .\" X! .TH ASINH 3 "May 12, 1986" X .UC 6 X .ds up \fIulp\fR X .SH NAME X*************** X*** 11,41 **** X asinh, acosh, atanh \- inverse hyperbolic functions X .SH SYNOPSIS X .nf X! .B #include X! .PP X! .B double asinh(x) X! .B double x; X! .PP X! .B double acosh(x) X! .B double x; X! .PP X! .B double atanh(x) X! .B double x; X .fi X .SH DESCRIPTION X These functions compute the designated inverse hyperbolic functions for real X arguments. X! .SH ERROR (due to Roundoff etc.) X These functions inherit much of their error from log1p described in X! exp(3M). On a VAX, acosh is accurate to about 3 \*(ups, X! asinh and atanh to about 2 \*(ups. X! An \*(up is one \fIU\fRnit in the \fIL\fRast \fIP\fRlace carried. X! .SH DIAGNOSTICS X! Acosh returns the reserved operand on a VAX if the argument is less than 1. X! .PP X! Atanh returns the reserved operand on a VAX if the argument has absolute X! value bigger than or equal to 1. X .SH SEE ALSO X! math(3M), exp(3M), infnan(3M) X .SH AUTHOR X W. Kahan, Kwok\-Choi Ng X--- 11,36 ---- X asinh, acosh, atanh \- inverse hyperbolic functions X .SH SYNOPSIS X .nf X! .ft B X! #include X! X! double X! asinh(\fIdouble x\fP) X! X! double X! acosh(\fIdouble x\fP) X! X! double X! atanh(\fIdouble x\fP) X! .ft R X .fi X .SH DESCRIPTION X These functions compute the designated inverse hyperbolic functions for real X arguments. X! .SH ERROR (due to roundoff etc.) X These functions inherit much of their error from log1p described in X! exp(3). X .SH SEE ALSO X! math(3), exp(3) X .SH AUTHOR X W. Kahan, Kwok\-Choi Ng X*** ./usr/src/man/man3/sin.3.old Sun Dec 14 18:07:18 1986 X--- ./usr/src/man/man3/sin.3 Sun Sep 27 18:14:10 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)sin.3m 6.6 (Berkeley) 5/12/86 X .\" X! .TH SIN 3M "May 12, 1986" X .UC 4 X .de Pi \" PI stuff sign X .if n \\ X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)sin.3 6.7 (2.11BSD) 2026/9/27 X .\" X! .TH SIN 3 "May 12, 1986" X .UC 4 X .de Pi \" PI stuff sign X .if n \\ X*************** X*** 18,197 **** X and their inverses X .SH SYNOPSIS X .nf X! .B #include X! .PP X! .B double sin(x) X! .B double x; X! .PP X! .B double cos(x) X! .B double x; X! .PP X! .B double tan(x) X! .B double x; X! .PP X! .B double asin(x) X! .B double x; X! .PP X! .B double acos(x) X! .B double x; X! .PP X! .B double atan(x) X! .B double x; X! .PP X! .B double atan2(y,x) X! .B double y,x; X .fi X .SH DESCRIPTION X! Sin, cos and tan X! return trigonometric functions of radian arguments x. X .PP X! Asin returns the arc sine in the range X .Pi /2 \- X to X .Pi /2. X .PP X! Acos returns the arc cosine in the range 0 to X .Pi. X .PP X! Atan returns the arc tangent in the range X .Pi /2 \- X to X .Pi /2. X .PP X- On a VAX, X- .nf X- .if n \{\ X- .ta \w'atan2(y,x) := 'u+2n +\w'sign(y)\(**(pi \- atan(|y/x|))'u+2n X- atan2(y,x) := atan(y/x) if x > 0, X- sign(y)\(**(pi \- atan(|y/x|)) if x < 0, X- 0 if x = y = 0, or X- sign(y)\(**pi/2 if x = 0 != y. \} X- .if t \{\ X- .ta \w'atan2(y,x) := 'u+2n +\w'sign(y)\(**(\(*p \- atan(|y/x|))'u+2n X- atan2(y,x) := atan(y/x) if x > 0, X- sign(y)\(**(\(*p \- atan(|y/x|)) if x < 0, X- 0 if x = y = 0, or X- sign(y)\(**\(*p/2 if x = 0 \(!= y. \} X- .ta X- .fi X- .SH DIAGNOSTICS X- On a VAX, if |x| > 1 then asin(x) and acos(x) X- will return reserved operands and \fIerrno\fR will be set to EDOM. X- .SH NOTES X- Atan2 defines atan2(0,0) = 0 on a VAX despite that previously X- atan2(0,0) may have generated an error message. X- The reasons for assigning a value to atan2(0,0) are these: X- .IP (1) \w'\0\0\0\0'u X- Programs that test arguments to avoid computing X- atan2(0,0) must be indifferent to its value. X- Programs that require it to be invalid are vulnerable X- to diverse reactions to that invalidity on diverse computer systems. X- .IP (2) \w'\0\0\0\0'u X- Atan2 is used mostly to convert from rectangular (x,y) X- to polar X- .if n\ X- (r,theta) X- .if t\ X- (r,\(*h) X- coordinates that must satisfy x = X- .if n\ X- r\(**cos theta X- .if t\ X- r\(**cos\(*h X- and y = X- .if n\ X- r\(**sin theta. X- .if t\ X- r\(**sin\(*h. X- These equations are satisfied when (x=0,y=0) X- is mapped to X- .if n \ X- (r=0,theta=0) X- .if t \ X- (r=0,\(*h=0) X- on a VAX. In general, conversions to polar coordinates X- should be computed thus: X- .nf X- .ta 1iR +1n +\w' := hypot(x,y);'u+0.5i X- .if n \{\ X- r := hypot(x,y); ... := sqrt(x\(**x+y\(**y) X- theta := atan2(y,x). X- .ta \} X- .if t \{\ X- r := hypot(x,y); ... := \(sr(x\u\s82\s10\d+y\u\s82\s10\d) X- \(*h := atan2(y,x). X- .ta \} X- .fi X- .IP (3) \w'\0\0\0\0'u X- The foregoing formulas need not be altered to cope in a X- reasonable way with signed zeros and infinities X- on a machine that conforms to IEEE 754; X- the versions of hypot and atan2 provided for X- such a machine are designed to handle all cases. X- That is why atan2(\(+-0,\-0) = X- .Pi , \(+- X- for instance. X- In general the formulas above are equivalent to these: X- .RS X- .nf X- .if n \ X- r := sqrt(x\(**x+y\(**y); if r = 0 then x := copysign(1,x); X- .if t \ X- r := \(sr(x\(**x+y\(**y);\0\0if r = 0 then x := copysign(1,x); X- .br X- .if n \ X- .ta 1i X- .if t \ X- .ta \w'if x > 0'u+2n +\w'then'u+2n X- .if n \ X- if x > 0 then theta := 2\(**atan(y/(r+x)) X- .if t \ X- if x > 0 then \(*h := 2\(**atan(y/(r+x)) X- .if n \ X- else theta := 2\(**atan((r\-x)/y); X- .if t \ X- else \(*h := 2\(**atan((r\-x)/y); X- .fi X- .RE X- except if r is infinite then atan2 will yield an X- appropriate multiple of X- .Pi /4 X- that would otherwise have to be obtained by taking limits. X- .SH ERROR (due to Roundoff etc.) X- Let P stand for the number stored in the computer in place of X- .Pi " = 3.14159 26535 89793 23846 26433 ... ." X- Let "trig" stand for one of "sin", "cos" or "tan". Then X- the expression "trig(x)" in a program actually produces an X- approximation to X- .Pi /P), trig(x\(** X- and "atrig(x)" approximates X- .Pi )\(**atrig(x). (P/ X- The approximations are close, within 0.9 \*(ups for sin, X- cos and atan, within 2.2 \*(ups for tan, asin, X- acos and atan2 on a VAX. Moreover, X- .Pi \& "P = " X- in the codes that run on a VAX. X- X- In the codes that run on other machines, P differs from X- .Pi X- by a fraction of an \*(up; the difference matters only if the argument X- x is huge, and even then the difference is likely to be swamped by X- the uncertainty in x. Besides, every trigonometric identity that X- does not involve X- .Pi X- explicitly is satisfied equally well regardless of whether X- .Pi . "P = " X- For instance, X- .if n \ X- sin(x)**2+cos(x)**2\0=\01 X- .if t \ X- sin\u\s62\s10\d(x)+cos\u\s62\s10\d(x)\0=\01 X- and sin(2x)\0=\02\|sin(x)cos(x) to within a few \*(ups no matter how big X- x may be. Therefore the difference between P and X- .Pi X- is most unlikely to affect scientific and engineering computations. X .SH SEE ALSO X! math(3M), hypot(3M), sqrt(3M), infnan(3M) X .SH AUTHOR X Robert P. Corbett, W. Kahan, Stuart\0I.\0McDonald, Peter\0Tang and, X for the codes for IEEE 754, Dr. Kwok\-Choi\0Ng. X--- 18,73 ---- X and their inverses X .SH SYNOPSIS X .nf X! .ft B X! #include X! X! double X! sin(\fIdouble x\fP) X! X! double X! cos(\fIdouble x\fP) X! X! double X! tan(\fIdouble x\fP) X! X! double X! asin(\fIdouble x\fP) X! X! double X! acos(\fIdouble x\fP) X! X! double X! atan(\fIdouble x\fP) X! X! double X! atan2(\fdouble y\fP, \fIdouble x\fP) X! .ft R X .fi X .SH DESCRIPTION X! .BR sin , X! .B cos X! and X! .B tan X! return trigonometric functions of radian arguments \fIx\fP. X .PP X! .B asin X! returns the arc sine in the range X .Pi /2 \- X to X .Pi /2. X .PP X! .B acos X! returns the arc cosine in the range 0 to X .Pi. X .PP X! .B atan X! returns the arc tangent in the range X .Pi /2 \- X to X .Pi /2. X .PP X .SH SEE ALSO X! math(3), hypot(3), sqrt(3) X .SH AUTHOR X Robert P. Corbett, W. Kahan, Stuart\0I.\0McDonald, Peter\0Tang and, X for the codes for IEEE 754, Dr. Kwok\-Choi\0Ng. X*** ./usr/src/man/man3/erf.3.old Sun Dec 14 18:08:10 1986 X--- ./usr/src/man/man3/erf.3 Sun Sep 27 17:12:48 2026 X*************** X*** 2,37 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)erf.3m 6.2 (Berkeley) 5/12/86 X .\" X! .TH ERF 3M "May 12, 1986" X .UC 6 X .SH NAME X erf, erfc \- error functions X .SH SYNOPSIS X .nf X! .B #include X! .PP X! .B double erf(x) X! .B double x; X! .PP X! .B double erfc(x) X! .B double x; X .fi X .SH DESCRIPTION X! Erf\|(x) returns the error function of x; where X .if n \{\ X .PP X! erf(x) = 2/sqrt(pi)\(**\|integral from 0 to x of exp(\-t\(**t) dt. \} X .if t \{\ X! erf\|(x) := X (2/\(sr\(*p)\|\(is\d\s8\z0\s10\u\u\s8x\s10\d\|exp(\-t\u\s82\s10\d)\|dt. \} X .PP X! Erfc\|(x) returns 1.0\-erf\|(x). X .PP X! The entry for erfc is provided because of the extreme loss X! of relative accuracy if erf\|(x) is called for large x X and the result subtracted from 1. X (e.g. for x = 10, 12 places are lost). X .SH SEE ALSO X! math(3M) X--- 2,39 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)erf.3 6.3 (2.11BSD) 2026/9/27 X .\" X! .TH ERF 3 "May 12, 1986" X .UC 6 X .SH NAME X erf, erfc \- error functions X .SH SYNOPSIS X .nf X! .ft B X! #include X! X! double X! erf(\fIdouble x\fP) X! X! double X! erfc(\fIdouble x\fP) X! .ft R X .fi X .SH DESCRIPTION X! \fBerf\fI\|(x) returns the error function of x; where X .if n \{\ X .PP X! \fBerf\fP(x) = 2/sqrt(pi)\(**\|integral from 0 to x of exp(\-t\(**t) dt. \} X .if t \{\ X! \fBerf\fP\|(x) := X (2/\(sr\(*p)\|\(is\d\s8\z0\s10\u\u\s8x\s10\d\|exp(\-t\u\s82\s10\d)\|dt. \} X .PP X! \fBerfc\fP\|(x) returns 1.0\-erf\|(x). X .PP X! The entry for \fBerfc\fP is provided because of the extreme loss X! of relative accuracy if \fBerf\fP\|(x) is called for large x X and the result subtracted from 1. X (e.g. for x = 10, 12 places are lost). X .SH SEE ALSO X! math(3) X*** ./usr/src/man/man3/exp.3.old Sun Dec 14 18:07:16 1986 X--- ./usr/src/man/man3/exp.3 Sun Sep 27 18:38:17 2026 X*************** X*** 2,128 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)exp.3m 6.9 (Berkeley) 5/27/86 X .\" X! .TH EXP 3M "May 27, 1986" X .UC 4 X- .ds nn \fINaN\fR X- .ds up \fIulp\fR X .SH NAME X exp, expm1, log, log10, log1p, pow \- exponential, logarithm, power X .SH SYNOPSIS X .nf X! .B #include X! .PP X! .B double exp(x) X! .B double x; X! .PP X! .B double expm1(x) X! .B double x; X! .PP X! .B double log(x) X! .B double x; X! .PP X! .B double log10(x) X! .B double x; X! .PP X! .B double log1p(x) X! .B double x; X! .PP X! .B double pow(x,y) X! .B double x,y; X .fi X .SH DESCRIPTION X .PP X! Exp returns the exponential function of x. X .PP X! Expm1 returns exp(x)\-1 accurately even for tiny x. X .PP X! Log returns the natural logarithm of x. X .PP X! Log10 returns the logarithm of x to base 10. X .PP X! Log1p returns log(1+x) accurately even for tiny x. X .PP X! Pow(x,y) returns X .if n \ X x**y. X .if t \ X x\u\s8y\s10\d. X- .SH ERROR (due to Roundoff etc.) X- exp(x), log(x), expm1(x) and log1p(x) are accurate to within X- an \*(up, and log10(x) to within about 2 \*(ups; X- an \*(up is one \fIU\fRnit in the \fIL\fRast \fIP\fRlace. X- The error in pow(x,y) is below about 2 \*(ups when its X- magnitude is moderate, but increases as pow(x,y) approaches X- the over/underflow thresholds until almost as many bits could be X- lost as are occupied by the floating\-point format's exponent X- field; that is 8 bits for VAX D and 11 bits for IEEE 754 Double. X- No such drastic loss has been exposed by testing; the worst X- errors observed have been below 20 \*(ups for VAX D, X- 300 \*(ups for IEEE 754 Double. X- Moderate values of pow are accurate enough that pow(integer,integer) X- is exact until it is bigger than 2**56 on a VAX, 2**53 for IEEE 754. X- .SH DIAGNOSTICS X- Exp, expm1 and pow return the reserved operand on a VAX when the correct X- value would overflow, and they set \fIerrno\fR to ERANGE. X- Pow(x,y) returns the reserved operand on a VAX and sets \fIerrno\fR X- to EDOM when x < 0 and y is not an integer. X- .PP X- On a VAX, \fIerrno\fR is set to EDOM and the reserved operand is returned X- by log unless x > 0, by log1p unless x > \-1. X- .SH NOTES X- The functions exp(x)\-1 and log(1+x) are called expm1 X- and logp1 in BASIC on the Hewlett\-Packard HP\-71B and APPLE X- Macintosh, EXP1 and LN1 in Pascal, exp1 and log1 in C X- on APPLE Macintoshes, where they have been provided to make X- sure financial calculations of ((1+x)**n\-1)/x, namely X- expm1(n\(**log1p(x))/x, will be accurate when x is tiny. X- They also provide accurate inverse hyperbolic functions. X- .PP X- Pow(x,0) returns x**0 = 1 for all x including x = 0, X- .if n \ X- Infinity X- .if t \ X- \(if X- (not found on a VAX), and \*(nn (the reserved X- operand on a VAX). Previous implementations of pow may X- have defined x**0 to be undefined in some or all of these X- cases. Here are reasons for returning x**0 = 1 always: X- .IP (1) \w'\0\0\0\0'u X- Any program that already tests whether x is zero (or X- infinite or \*(nn) before computing x**0 cannot care X- whether 0**0 = 1 or not. Any program that depends X- upon 0**0 to be invalid is dubious anyway since that X- expression's meaning and, if invalid, its consequences X- vary from one computer system to another. X- .IP (2) \w'\0\0\0\0'u X- Some Algebra texts (e.g. Sigler's) define x**0 = 1 for X- all x, including x = 0. X- This is compatible with the convention that accepts a[0] X- as the value of polynomial X- .ce X- p(x) = a[0]\(**x**0 + a[1]\(**x**1 + a[2]\(**x**2 +...+ a[n]\(**x**n X- .IP X- at x = 0 rather than reject a[0]\(**0**0 as invalid. X- .IP (3) \w'\0\0\0\0'u X- Analysts will accept 0**0 = 1 despite that x**y can X- approach anything or nothing as x and y approach 0 X- independently. X- The reason for setting 0**0 = 1 anyway is this: X- .IP X- If x(z) and y(z) are \fIany\fR functions analytic (expandable X- in power series) in z around z = 0, and if there X- x(0) = y(0) = 0, then x(z)**y(z) \(-> 1 as z \(-> 0. X- .IP (4) \w'\0\0\0\0'u X- If 0**0 = 1, then X- .if n \ X- infinity**0 = 1/0**0 = 1 too; and X- .if t \ X- \(if**0 = 1/0**0 = 1 too; and X- then \*(nn**0 = 1 too because x**0 = 1 for all finite X- and infinite x, i.e., independently of x. X .SH SEE ALSO X! math(3M), infnan(3M) X .SH AUTHOR X Kwok\-Choi Ng, W. Kahan X--- 2,61 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)exp.3 6.10 (2.11BSD) 2026/9/27 X .\" X! .TH EXP 3 "May 27, 1986" X .UC 4 X .SH NAME X exp, expm1, log, log10, log1p, pow \- exponential, logarithm, power X .SH SYNOPSIS X .nf X! .ft B X! #include X! X! double X! exp(\fIdouble x\fP) X! X! double X! expm1(\fIdouble x\fP) X! X! double X! log(\fIdouble x\fP) X! X! double X! log10(\fIdouble x\fP) X! X! double X! log1p(\fIdouble x\fP) X! X! double X! pow(\fIdouble x\fP, \fIdouble y\fP) X! .ft R X .fi X .SH DESCRIPTION X .PP X! .B exp X! returns the exponential function of x. X .PP X! .B expm1 X! returns exp(x)\-1 accurately even for tiny x. X .PP X! .B log X! returns the natural logarithm of x. X .PP X! .B log10 X! returns the logarithm of x to base 10. X .PP X! .B log1p X! returns log(1+x) accurately even for tiny x. X .PP X! .B pow(x,y) X! returns X .if n \ X x**y. X .if t \ X x\u\s8y\s10\d. X .SH SEE ALSO X! math(3) X .SH AUTHOR X Kwok\-Choi Ng, W. Kahan X*** ./usr/src/man/man3/floor.3.old Sun Dec 14 18:07:16 1986 X--- ./usr/src/man/man3/floor.3 Sun Sep 27 18:43:02 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)floor.3m 6.4 (Berkeley) 5/12/86 X .\" X! .TH FLOOR 3M "May 12, 1986" X .UC 4 X .SH NAME X fabs, floor, ceil, rint \- absolute value, floor, ceiling, and X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)floor.3 6.5 (2.11BSD) 2026/9/27 X .\" X! .TH FLOOR 3 "May 12, 1986" X .UC 4 X .SH NAME X fabs, floor, ceil, rint \- absolute value, floor, ceiling, and X*************** X*** 11,50 **** X round-to-nearest functions X .SH SYNOPSIS X .nf X! .B #include X! .PP X! .B double floor(x) X! .B double x; X! .PP X! .B double ceil(x) X! .B double x; X! .PP X! .B double fabs(x) X! .B double x; X! .PP X! .B double rint(x) X! .B double x; X .fi X .SH DESCRIPTION X! Fabs returns the absolute value |\|x\||. X .PP X! Floor returns the largest integer no greater than x. X .PP X! Ceil returns the smallest integer no less than x. X .PP X! Rint returns the integer (represented as a double precision number) X nearest x in the direction of the prevailing rounding mode. X .SH NOTES X- On a VAX, rint(x) is equivalent to adding half to the magnitude X- and then rounding towards zero. X- .PP X- In the default rounding mode, to nearest, X- on a machine that conforms to IEEE 754, X- rint(x) is the integer nearest x with the additional stipulation X- that if |rint(x)\-x|=1/2 then rint(x) is even. X- Other rounding modes can make rint act like floor, or like ceil, X- or round towards zero. X- .PP X Another way to obtain an integer near x is to declare (in C) X .RS X double x;\0\0\0\0 int k;\0\0\0\0k\0=\0x; X--- 11,46 ---- X round-to-nearest functions X .SH SYNOPSIS X .nf X! .ft B X! #include X! X! double X! floor(\fIdouble x\fP) X! X! double X! ceil(\fIdouble x\fP) X! X! double X! fabs(\fIdouble x\fP) X! X! double X! rint(\fIdouble x\fP) X! .ft R X .fi X .SH DESCRIPTION X! .B fabs X! returns the absolute value |\|x\||. X .PP X! .B floor X! returns the largest integer no greater than x. X .PP X! .B ceil X! returns the smallest integer no less than x. X .PP X! .B rint X! returns the integer (represented as a double precision number) X nearest x in the direction of the prevailing rounding mode. X .SH NOTES X Another way to obtain an integer near x is to declare (in C) X .RS X double x;\0\0\0\0 int k;\0\0\0\0k\0=\0x; X*************** X*** 51,61 **** X .RE X Most C compilers round x towards 0 to get the integer k, but X some do otherwise. X! If in doubt, use floor, ceil, or rint first, whichever you intend. X Also note that, if x is larger than k can accommodate, the value of X k and the presence or absence of an integer overflow are hard to X predict. X .SH SEE ALSO X abs(3), X! ieee(3M), X! math(3M) X--- 47,57 ---- X .RE X Most C compilers round x towards 0 to get the integer k, but X some do otherwise. X! If in doubt, use \fBfloor\fP, \fBceil\fP, or \fBrint\fP first, whichever you intend. X Also note that, if x is larger than k can accommodate, the value of X k and the presence or absence of an integer overflow are hard to X predict. X .SH SEE ALSO X abs(3), X! ieee(3), X! math(3) X*** ./usr/src/man/man3/hypot.3.old Sun Dec 14 18:07:17 1986 X--- ./usr/src/man/man3/hypot.3 Sun Sep 27 18:44:18 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)hypot.3m 6.5 (Berkeley) 5/12/86 X .\" X! .TH HYPOT 3M "May 12, 1986" X .UC 4 X .ds up \fIulp\fR X .ds nn \fINaN\fR X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)hypot.3 6.6 (2.11BSD) 2026/9/27 X .\" X! .TH HYPOT 3 "May 12, 1986" X .UC 4 X .ds up \fIulp\fR X .ds nn \fINaN\fR X*************** X*** 12,76 **** X hypot, cabs \- Euclidean distance, complex absolute value X .SH SYNOPSIS X .nf X! .B #include X! .PP X! .B double hypot(x,y) X! .B double x,y; X! .PP X! .B double cabs(z) X! .B struct {double x,y;} z; X .fi X .SH DESCRIPTION X! Hypot(x,y) and cabs(x,y) return sqrt(x\(**x+y\(**y) X computed in such a way that underflow will not happen, and overflow X occurs only if the final result deserves it. X- .PP X- .if n \ X- hypot(infinity,v) = hypot(v,infinity) = +infinity for all v, X- .if t \ X- hypot(\(if,v) = hypot(v,\(if) = +\(if for all v, X- including \*(nn. X- .SH ERROR (due to Roundoff, etc.) X- Below 0.97 \*(ups. Consequently hypot(5.0,12.0)\0=\013.0 exactly; X- in general, hypot and cabs return an integer whenever an X- integer might be expected. X- .PP X- The same cannot be said for the shorter and faster version of hypot X- and cabs that is provided in the comments in cabs.c; its error can X- exceed 1.2 \*(ups. X- .SH NOTES X- As might be expected, hypot(v,\*(nn) and hypot(\*(nn,v) are \*(nn for all X- \fIfinite\fR v; with "reserved operand" in place of "\*(nn", the X- same is true on a VAX. But programmers on machines other than a VAX X- (it has no X- .if n \ X- infinity) X- .if t \ X- \(if) X- might be surprised at first to discover that X- .if n \ X- hypot(\(+-infinity,\*(nn) = +infinity. X- .if t \ X- hypot(\(+-\(if,\*(nn) = +\(if. X- This is intentional; it happens because X- .if n \ X- hypot(infinity,v) = +infinity X- .if t \ X- hypot(\(if,v) = +\(if X- for \fIall\fR v, finite or infinite. X- Hence X- .if n \ X- hypot(infinity,v) X- .if t \ X- hypot(\(if,v) X- is independent of v. X- Unlike the reserved operand on a VAX, the IEEE \*(nn is designed to X- disappear when it turns out to be irrelevant, as it does in X- .if n \ X- hypot(infinity,\*(nn). X- .if t \ X- hypot(\(if,\*(nn). X .SH SEE ALSO X! math(3M), sqrt(3M) X .SH AUTHOR X W. Kahan X--- 12,36 ---- X hypot, cabs \- Euclidean distance, complex absolute value X .SH SYNOPSIS X .nf X! .ft B X! #include X! X! double X! hypot(\fIdouble x\fP, \fIdouble y\fP) X! X! struct complex {double x,y}; X! X! double X! cabs(\fIstruct complex z\fP) X .fi X .SH DESCRIPTION X! .BR hypot (x,y) and X! .BR cabs (z) X! return X! .BR sqrt (x\(**x+y\(**y) X computed in such a way that underflow will not happen, and overflow X occurs only if the final result deserves it. X .SH SEE ALSO X! math(3), sqrt(3) X .SH AUTHOR X W. Kahan X*** ./usr/src/man/man3/lgamma.3.old Sun Dec 14 18:07:12 1986 X--- ./usr/src/man/man3/lgamma.3 Sun Sep 27 18:41:52 2026 X*************** X*** 2,42 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)lgamma.3m 6.2 (Berkeley) 5/12/86 X .\" X! .TH LGAMMA 3M "May 12, 1986" X .UC 6 X .SH NAME X lgamma \- log gamma function X .SH SYNOPSIS X .nf X! .B #include X! .PP X! .B double lgamma(x) X! .B double x; X .fi X .SH DESCRIPTION X .nf X! .ta \w'Lgamma returns ln\||\(*G(x)| where'u+1n +1.7i X .if t \{\ X! Lgamma returns ln\||\(*G(x)| where \(*G(x) = \(is\d\s8\z0\s10\u\u\s8\(if\s10\d t\u\s8x\-1\s10\d e\u\s8\-t\s10\d dt for x > 0 and X .br X \(*G(x) = \(*p/(\(*G(1\-x)\|sin(\(*px)) for x < 1. \} X .if n \ X! Lgamma returns ln\||\(*G(x)|. X .ta X .fi X .PP X! The external integer signgam returns the sign of X \(*G(x) . X .SH IDIOSYNCRASIES X! Do \fBnot\fR use the expression signgam\(**exp(lgamma(x)) X to compute g := \(*G(x). Instead use a program like this (in C): X .RS X! lg = lgamma(x); g = signgam\(**exp(lg); X .RE X .PP X! Only after lgamma has returned can signgam be correct. X Note too that \(*G(x) must overflow when x is large enough, X underflow when \-x is large enough, and spawn a division by zero X when x is a nonpositive integer. X--- 2,45 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)lgamma.3 6.3 (2.11BSD) 2026/9/27 X .\" X! .TH LGAMMA 3 "May 12, 1986" X .UC 6 X .SH NAME X lgamma \- log gamma function X .SH SYNOPSIS X .nf X! .ft B X! #include X! X! double X! lgamma(\fIdouble x\fP) X! .ft R X .fi X .SH DESCRIPTION X .nf X! .ta \w'\fBlgamma\fP returns ln\||\(*G(x)| where'u+1n +1.7i X .if t \{\ X! \fBlgamma\fP returns ln\||\(*G(x)| where \(*G(x) = \(is\d\s8\z0\s10\u\u\s8\(if\s10\d t\u\s8x\-1\s10\d e\u\s8\-t\s10\d dt for x > 0 and X .br X \(*G(x) = \(*p/(\(*G(1\-x)\|sin(\(*px)) for x < 1. \} X .if n \ X! \fBlgamma\fP returns ln\||\(*G(x)|. X .ta X .fi X .PP X! The external integer \fBsigngam\fP returns the sign of X \(*G(x) . X .SH IDIOSYNCRASIES X! Do \fBnot\fR use the expression \fBsigngam\fP\(**\fBexp\fP(\fBlgamma\fP(x)) X to compute g := \(*G(x). Instead use a program like this (in C): X+ .sp X .RS X! lg = \fBlgamma\f{(x); g = \fBsigngam\fP\(**\fBexp\fP(lg); X .RE X .PP X! Only after \fBlgamma\fP has returned can \fBsigngam\fP be correct. X Note too that \(*G(x) must overflow when x is large enough, X underflow when \-x is large enough, and spawn a division by zero X when x is a nonpositive integer. X*************** X*** 55,68 **** X conditional expressions. Programmers should not assume that X lgamma has settled down. X .PP X! At some time in the future, the name \fIgamma\fR will be rehabilitated X and used for the gamma function, just as is done in FORTRAN. X The reason for this is not so much compatibility with FORTRAN as a X desire to achieve greater speed for smaller values of |x| and greater X accuracy for larger values. X .PP X! Meanwhile, programmers who have to use the name \fIgamma\fR in its former X! sense, for what is now \fIlgamma\fR, have two choices: X .IP 1) \w'1)\0'u X Use the old math library, \fIlibom\fR. X .IP 2) \w'1)\0'u X--- 58,71 ---- X conditional expressions. Programmers should not assume that X lgamma has settled down. X .PP X! At some time in the future, the name \fBgamma\fR will be rehabilitated X and used for the gamma function, just as is done in FORTRAN. X The reason for this is not so much compatibility with FORTRAN as a X desire to achieve greater speed for smaller values of |x| and greater X accuracy for larger values. X .PP X! Meanwhile, programmers who have to use the name \fBgamma\fR in its former X! sense, for what is now \fBlgamma\fR, have two choices: X .IP 1) \w'1)\0'u X Use the old math library, \fIlibom\fR. X .IP 2) \w'1)\0'u X*************** X*** 79,87 **** X }\fR X .RE X .fi X- .SH DIAGNOSTICS X- The reserved operand is returned on a VAX for negative integer arguments, X- \fIerrno\fR is set to ERANGE; for very large arguments over/underflows will X- occur inside the \fIlgamma\fP routine. X .SH SEE ALSO X! math(3M), infnan(3M) X--- 82,86 ---- X }\fR X .RE X .fi X .SH SEE ALSO X! math(3) X*** ./usr/src/man/man3/sinh.3.old Sun Dec 14 18:07:18 1986 X--- ./usr/src/man/man3/sinh.3 Sun Sep 27 18:18:03 2026 X*************** X*** 2,35 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)sinh.3m 6.5 (Berkeley) 5/12/86 X .\" X! .TH SINH 3M "May 12, 1986" X .UC 4 X .SH NAME X sinh, cosh, tanh \- hyperbolic functions X .SH SYNOPSIS X .nf X! .B #include X! .PP X! .B double sinh(x) X! .B double x; X! .PP X! .B double cosh(x) X! .B double x; X! .PP X! .B double tanh(x) X! .B double x; X .fi X .SH DESCRIPTION X These functions compute the designated hyperbolic functions for real arguments. X! .SH ERROR (due to Roundoff etc.) X Below 2.4 \fIulp\fRs; an \fIulp\fR is one \fIU\fRnit in the \fIL\fRast X \fIP\fRlace. X- .SH DIAGNOSTICS X- Sinh and cosh return the reserved operand on a VAX if X- the correct value would overflow. X .SH SEE ALSO X! math(3M), infnan(3M) X .SH AUTHOR X W. Kahan, Kwok\-Choi Ng X--- 2,34 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)sinh.3 6.6 (2.11BSD) 2026/9/27 X .\" X! .TH SINH 3 "May 12, 1986" X .UC 4 X .SH NAME X sinh, cosh, tanh \- hyperbolic functions X .SH SYNOPSIS X .nf X! .ft B X! #include X! X! double X! sinh(\fIdouble x\fP) X! X! double X! cosh(\fIdouble x\fP) X! X! double X! tanh(\fIdouble x\fP) X! .ft R X .fi X .SH DESCRIPTION X These functions compute the designated hyperbolic functions for real arguments. X! .SH ERROR (due to roundoff etc.) X Below 2.4 \fIulp\fRs; an \fIulp\fR is one \fIU\fRnit in the \fIL\fRast X \fIP\fRlace. X .SH SEE ALSO X! math(3) X .SH AUTHOR X W. Kahan, Kwok\-Choi Ng X*** ./usr/src/man/man3/sqrt.3.old Sun Dec 14 18:07:22 1986 X--- ./usr/src/man/man3/sqrt.3 Sun Sep 27 18:21:01 2026 X*************** X*** 2,41 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)sqrt.3m 6.2 (Berkeley) 5/12/86 X .\" X! .TH SQRT 3M "May 12, 1986" X .UC 6 X- .ds up \fIulp\fR X .SH NAME X cbrt, sqrt \- cube root, square root X .SH SYNOPSIS X .nf X! .B #include X! .PP X! .B double cbrt(x) X! .B double x; X! .PP X! .B double sqrt(x) X! .B double x; X .fi X .SH DESCRIPTION X! Cbrt(x) returns the cube root of x. X .PP X! Sqrt(x) returns the square root of x. X! .SH DIAGNOSTICS X! On a VAX, sqrt(negative) X! returns the reserved operand and sets \fIerrno\fR to EDOM . X! .SH ERROR (due to Roundoff etc.) X! Cbrt is accurate to within 0.7 \*(ups. X! .br X! Sqrt on a VAX is accurate to within 0.501 \*(ups. X! .br X! Sqrt on a machine that conforms to IEEE 754 is correctly rounded X! in accordance with the rounding mode in force; the error is less than X! half an \*(up in the default mode (round\-to\-nearest). X! An \*(up is one \fIU\fRnit in the \fIL\fRast \fIP\fRlace carried. X .SH SEE ALSO X! math(3M), infnan(3M) X .SH AUTHOR X W. Kahan X--- 2,32 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)sqrt.3 6.3 (2.11BSD) 2026/9/27 X .\" X! .TH SQRT 3 "May 12, 1986" X .UC 6 X .SH NAME X cbrt, sqrt \- cube root, square root X .SH SYNOPSIS X .nf X! .ft B X! #include X! X! double X! cbrt(\fIdouble x\fP) X! X! double X! sqrt(\fIdouble x\fP) X! .ft R X .fi X .SH DESCRIPTION X! .BR cbrt (x) X! returns the cube root of x. X .PP X! .BR sqrt (x) X! returns the square root of x. X .SH SEE ALSO X! math(3) X .SH AUTHOR X W. Kahan X*** ./usr/src/man/man3/execl.3.old Tue Aug 4 22:30:09 1987 X--- ./usr/src/man/man3/execl.3 Sun Sep 27 18:47:55 2026 X*************** X*** 2,13 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)execl.3 6.2 (Berkeley) 8/4/87 X .\" X .TH EXECL 3 "August 4, 1987" X .UC 5 X .SH NAME X! execl, execv, execle, execlp, execvp, exec, execve, exect, environ \- execute a file X .SH SYNOPSIS X .nf X .B execl(name, arg0, arg1, ..., argn, 0) X--- 2,13 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)execl.3 6.3 (2.11BSD) 2026/9/27 X .\" X .TH EXECL 3 "August 4, 1987" X .UC 5 X .SH NAME X! execl, execv, execle, execlp, execvp, exec, execve, environ \- execute a file X .SH SYNOPSIS X .nf X .B execl(name, arg0, arg1, ..., argn, 0) X*************** X*** 19,27 **** X .B "execle(name, arg0, arg1, ..., argn, 0, envp)" X .B "char *name, *arg0, *arg1, ..., *argn, *envp[];" X .PP X- .B "exect(name, argv, envp) X- .B "char *name, *argv[], *envp[]; X- .PP X .B extern char **environ; X .fi X .SH DESCRIPTION X--- 19,24 ---- X*************** X*** 77,95 **** X the arguments. X The last argument string must be followed X by a 0 pointer. X- .PP X- The X- .I exect X- version is used when the executed file is to be X- manipulated with X- .IR ptrace (2). X- The program is forced to single step a single X- instruction giving the parent an opportunity to X- manipulate its state. On the VAX-11 this is done X- by setting the trace bit in the process status X- longword. X- .I Exect X- is not available on the PDP-11. X .PP X When a C program is executed, X it is called as follows: X--- 74,79 ---- X*** ./usr/src/man/man4/Makefile.old Mon Dec 8 13:22:58 2025 X--- ./usr/src/man/man4/Makefile Sat Sep 26 17:21:20 2026 X*************** X*** 14,33 **** X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.4.4 (2.11BSD) 2025/11/25 X # X MDIR= /usr/man/cat4 X! SRCS= acc.4 arp.4 bk.4 br.4 cons.4 css.4 de.4 dh.4 dhu.4 dhv.4 \ X dmc.4 dr.4 dz.4 \ X! ec.4 en.4 fd.4 hk.4 ht.4 hy.4 icmp.4 idp.4 il.4 imp.4 impconf.4 inet.4 \ X intro.4 ip.4 lo.4 lp.4 mem.4 mtio.4 networking.4 ns.4 nsip.4 \ X! null.4 pty.4 qe.4 ra.4 ram.4 rk.4 rl.4 rx.4 si.4 spp.4 sri.4 \ X swap.4 tb.4 tcp.4 tm.4 tmscp.4 ts.4 tty.4 udp.4 vv.4 xp.4 X! OBJS= acc.0 arp.0 bk.0 br.0 cons.0 css.0 de.0 dh.0 dhu.0 dhv.0 \ X dmc.0 dr.0 \ X! dz.0 ec.0 en.0 fd.0 hk.0 ht.0 hy.0 icmp.0 idp.0 il.0 imp.0 impconf.0 \ X inet.0 intro.0 ip.0 lo.0 lp.0 mem.0 mtio.0 networking.0 ns.0 \ X! nsip.0 null.0 pty.0 qe.0 ra.0 ram.0 rk.0 rl.0 rx.0 si.0 spp.0 \ X sri.0 swap.0 tb.0 tcp.0 tm.0 tmscp.0 ts.0 tty.0 udp.0 vv.0 xp.0 X X .SUFFIXES: .4 .0 X--- 14,33 ---- X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.4.5 (2.11BSD) 2026/5/14 X # X MDIR= /usr/man/cat4 X! SRCS= acc.4 arp.4 br.4 cons.4 css.4 de.4 dh.4 dhu.4 dhv.4 \ X dmc.4 dr.4 dz.4 \ X! ec.4 en.4 fd.4 hk.4 ht.4 icmp.4 idp.4 il.4 imp.4 impconf.4 inet.4 \ X intro.4 ip.4 lo.4 lp.4 mem.4 mtio.4 networking.4 ns.4 nsip.4 \ X! null.4 pty.4 qe.4 qt.4 ra.4 ram.4 rk.4 rl.4 rx.4 si.4 spp.4 sri.4 \ X swap.4 tb.4 tcp.4 tm.4 tmscp.4 ts.4 tty.4 udp.4 vv.4 xp.4 X! OBJS= acc.0 arp.0 br.0 cons.0 css.0 de.0 dh.0 dhu.0 dhv.0 \ X dmc.0 dr.0 \ X! dz.0 ec.0 en.0 fd.0 hk.0 ht.0 icmp.0 idp.0 il.0 imp.0 impconf.0 \ X inet.0 intro.0 ip.0 lo.0 lp.0 mem.0 mtio.0 networking.0 ns.0 \ X! nsip.0 null.0 pty.0 qe.0 qt.0 ra.0 ram.0 rk.0 rl.0 rx.0 si.0 spp.0 \ X sri.0 swap.0 tb.0 tcp.0 tm.0 tmscp.0 ts.0 tty.0 udp.0 vv.0 xp.0 X X .SUFFIXES: .4 .0 X*** ./usr/src/man/man4/swap.4.old Thu Jan 28 14:56:24 1988 X--- ./usr/src/man/man4/swap.4 Sat May 30 07:34:09 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)swap.4 6.2 (Berkeley) 1/28/88 X .\" X! .TH SWAP 4 "January 28, 1988" X .UC 2 X .SH NAME X swap \- swap device X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)swap.4 6.3 (2.11BSD) 2026/5/30 X .\" X! .TH SWAP 4 "May 30, 2026" X .UC 2 X .SH NAME X swap \- swap device X*************** X*** 27,33 **** X--- 27,42 ---- X .br X /dev/MAKEDEV.local script to localize special files X .DT X+ .SH BUGS X+ 2.11BSD sets the kernel variable 'swapdev' to the boot device (if -R is not X+ used with boot). If the system is booted from an alternate disk '/dev/swap' X+ will probably be wrong and ps, etc will not function properly. /dev/swap is X+ being deprecated and sysctl()/devname() will X+ be used in the future. X .SH "SEE ALSO" X+ sysctl(3), X+ devname(3), X ps(1), X+ fstat(1), X w(1) X X*** ./usr/src/man/man4/intro.4.old Sun Jan 28 00:24:06 1996 X--- ./usr/src/man/man4/intro.4 Sat Sep 26 20:22:45 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)intro.4 6.3.1 (2.11BSD) 1996/1/27 X .\" X! .TH INTRO 4 "January 27, 1996" X .UC 4 X .SH NAME X intro \- introduction to special files and hardware support X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)intro.4 6.3.2 (2.11BSD) 2026/9/4 X .\" X! .TH INTRO 4 "September 4, 2026" X .UC 4 X .SH NAME X intro \- introduction to special files and hardware support X*************** X*** 23,35 **** X and/or in the system error log X .I /usr/adm/messages X due to errors in device operation. X- .PP X- This section contains both devices X- which may be configured into the system, ``4'' entries, X- and network related information, X- ``4N'', ``4P'', and ``4F'' entries; X- The networking support is introduced in X- .IR intro (4N). X .SH "PDP DEVICE SUPPORT" X This section describes the hardware supported on the DEC PDP-11. X Software support for these devices comes in two forms. A hardware X--- 23,28 ---- X*************** X*** 48,54 **** X and the appropriate device or network interface driver is then compiled X into the system. When the resultant system is booted, the X autoconfiguration facilities in the system probe for the device X! on either the UNIBUS (or Q-bus) or MASSBUS and, if found, enable the software X support for it. If a device does not respond at autoconfiguration X time it is not accessible at any time afterwards. To X enable a device which did not autoconfigure, the system will have to X--- 41,47 ---- X and the appropriate device or network interface driver is then compiled X into the system. When the resultant system is booted, the X autoconfiguration facilities in the system probe for the device X! on either the UNIBUS (or Q-BUS) or MASSBUS and, if found, enable the software X support for it. If a device does not respond at autoconfiguration X time it is not accessible at any time afterwards. To X enable a device which did not autoconfigure, the system will have to X*************** X*** 61,69 **** X intro(4), networking(4), config(8). X .SH "LIST OF DEVICES" X The devices listed below are supported in this incarnation of X! the system. Pseudo-devices are not listed. X! Listed also are devices which are in various stages of porting to X! 2.11BSD from 4.3BSD. X .PP X Devices are indicated by their functional interface. X If second vendor products provide functionally identical interfaces X--- 54,60 ---- X intro(4), networking(4), config(8). X .SH "LIST OF DEVICES" X The devices listed below are supported in this incarnation of X! the system. X .PP X Devices are indicated by their functional interface. X If second vendor products provide functionally identical interfaces X*************** X*** 87,93 **** X ht TM03 MASSBUS tape drive interface (with TE-16, TU-45, TU-77) X il Interlan 1010, 1010A, 2010A 10Mb/s Ethernet controller X lp LP-11 parallel line printer interface X! qe DEC DEQNA Q-bus 10 Mb/s Ethernet interface X ra DEC UDA-50, RQDX, KLESI disk controllers X rk DEC RK05 disk controller X rl DEC RL-11 disk controller X--- 78,84 ---- X ht TM03 MASSBUS tape drive interface (with TE-16, TU-45, TU-77) X il Interlan 1010, 1010A, 2010A 10Mb/s Ethernet controller X lp LP-11 parallel line printer interface X! qe DEC DEQNA Q-BUS 10 Mb/s Ethernet interface X ra DEC UDA-50, RQDX, KLESI disk controllers X rk DEC RK05 disk controller X rl DEC RL-11 disk controller X*************** X*** 102,107 **** X--- 93,99 ---- X .ne 4 X .B "The following should work:" X dr DR-11W general purpose DMA UNIBUS interface X+ dn DEC DN-11 autodialer interface X X .ne 4 X .B "The following worked in the past but will probably require work:" X*************** X*** 109,139 **** X dmc DEC DMC-11/DMR-11 point-to-point communications device X en Xerox 3Mb/s Ethernet controller (obsolete) X sri DR-11C IMP interface X- X- .ne 4 X- .B "It should be possible to port these from 4.3BSD:" X- ex Excelan 10Mb/s Ethernet controller X- ix Interlan NP-100 10Mb/s Ethernet controller X- np Interlan NP-100 10Mb/s Ethernet controller (intelligent mode) X- pcl DEC PCL-11 communications interface X- X- .ne 4 X- .B "No idea whether any of the following could be ported:" X- ad Data translation A/D interface X- ct C/A/T or APS phototypesetter X- ddn ACC ACP625 DDN Standard Mode X.25 IMP interface X- dmf DEC DMF-32 terminal multiplexor and parallel printer interface X- dmz DEC DMZ-32 terminal multiplexor X- dn DEC DN-11 autodialer interface X- hdh ACC IF-11/HDH IMP interface X- hp MASSBUS disk interface (with RP06, RM03, RM05, etc.) X- hy DR-11B or GI-13 interface to an NSC Hyperchannel X- kg KL-11/DL-11W line clock X- mt TM78 MASSBUS tape drive interface X- tu VAX-11/730 TU58 console cassette interface X- un DR-11W interface to Ungermann-Bass X- up Emulex SC-21V, SC-31 UNIBUS disk controller X- ut UNIBUS TU-45 tape drive interface X- uu TU58 dual cassette drive interface (DL11) X- va Benson-Varian printer/plotter interface X- vp Versatec printer/plotter interface X--- 101,103 ---- X*** ./usr/src/man/man4/xp.4.old Tue Aug 15 22:28:30 1995 X--- ./usr/src/man/man4/xp.4 Thu Sep 10 18:18:44 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)xp.4 6.4 (2.11BSD GTE) 1995/08/14 X .\" X .TH XP 4 "August 14, 1995" X .UC 2 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)xp.4 6.5 (2.11BSD) 2026/9/10 X .\" X .TH XP 4 "August 14, 1995" X .UC 2 X*************** X*** 153,162 **** X should always deal in 512-byte multiples. X .PP X DEC-standard error logging should be supported. X- .PP X- The kernel uses partition 'h' to access the badblock information. This X- should have been 'c' except that almost all of the /etc/disktab entries X- (and thus existing systems) use 'h' for this purpose. Unless you are X- very careful with \fIdisklabel\fP|(8) (to make certain that no data X- partition overlaps the badblock area) you should probably leave BADSECT X- undefined in the kernel config file. X--- 153,155 ---- X*** ./usr/src/man/man4/tmscp.4.old Sat Dec 23 01:31:03 1995 X--- ./usr/src/man/man4/tmscp.4 Fri Sep 11 09:11:46 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)tmscp.4 1.2 (2.11BSD) 1995/12/22 X .\" X .TH TMSCP 4 "December 22, 1995" X .UC 2 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)tmscp.4 1.3 (2.11BSD) 2026/9/11 X .\" X .TH TMSCP 4 "December 22, 1995" X .UC 2 X*************** X*** 9,28 **** X .SH NAME X tmscp \- DEC TMSCP magtape interface X .SH SYNOPSIS X- .ft B X .nf X /sys/conf/SYSTEM: X X! NTMSCP 1 # TMSCP controllers X! NTMS 1 # TMSCP drives X! TMSCP_DEBUG NO # debugging code in in TMSCP drive (EXPENSIVE) X! X /etc/dtab: X! .ta .5i +\w'#Name 'u +\w'Unit# 'u +\w'177777 'u +\w'Vector 'u +\w'Br 'u +\w'xxxxxxx 'u +\w'xxxxxxx 'u X! #Name Unit# Addr Vector Br Handler(s) # Comments X! tms ? 174500 260 5 tmsintr # tmscp driver X! tms ? 164334 0 5 tmsintr # alternate X! .DT X X major device number(s): X X--- 9,25 ---- X .SH NAME X tmscp \- DEC TMSCP magtape interface X .SH SYNOPSIS X .nf X /sys/conf/SYSTEM: X X! NTMSCP 1 # TMSCP controllers X! NTMS 1 # TMSCP drives X! .sp X /etc/dtab: X! .sp X! #Name Unit# Addr Vector Br Handler(s) # Comments X! tms ? 174500 260 5 tmsintr # tmscp driver X! tms ? 164334 0 5 tmsintr # alternate X X major device number(s): X X*************** X*** 40,46 **** X N = Norewind on close X U = Unit (drive) number (max of 4 drives per controller) X .fi X- .ft R X .SH DESCRIPTION X Tape controllers compatible with the DEC X Tape Mass Storage Control Protocol (TMSCP) architecture X--- 37,42 ---- X*************** X*** 54,59 **** X--- 50,104 ---- X .IR < pdp/tmscp.h > X for a detailed X description of this protocol. X+ .PP X+ \fBsysctl\fP(8) may be used to view and modify the diagnostic messages logged X+ by the driver via the MIB \fBmachdep.tmscp.printf\fP X+ .sp X+ The following bits are defined: X+ .sp X+ .nf X+ /* X+ * Bit 0 = print all non-successful response packets _except_ hitting X+ * a tapemark (which really isn't an error) (default) X+ * Bit 1 = print datagram arrival message X+ * Bit 2 = print status of all response packets except datagrams X+ * Bit 3 = enable debugging print and log statements not covered above X+ */ X+ .fi X+ .sp X+ \fBsysctl\fP(8) may be used to view and modify drive cache enabled state via X+ the MIB \fBmachdep.tmscp.cache\fP. X+ .sp X+ .nf X+ /* X+ * This is settable via "sysctl -w machdep.tmscp.cache=N". There is one X+ * bit per drive. Bit 0 is the first drive on the first controller, bit 4 is X+ * the first drive on the second controller, and so on. \fBN\fP is decimal X+ * not hex. X+ */ X+ .fi X+ .SH EXAMPLES X+ .PP X+ To view the current logging state of the driver: X+ .sp X+ .in +1.0i X+ sysctl machdep.tmscp.printf X+ .br X+ .in -1.0i X+ .PP X+ To set the logging state of the driver: X+ .sp X+ .in +1.0i X+ sysctl -w machdep.tmscp.printf=3 X+ .br X+ .in -1.0i X+ .PP X+ To enable the cache on the first drive: X+ .sp X+ .in +1.0i X+ sysctl -w machdep.tmscp.cache=1 X+ .br X+ .in -1.0i X .SH FILES X .ta \w'/dev/MAKEDEV.local 'u X /dev/MAKEDEV script to create special files X*************** X*** 139,145 **** X log daemon will be written and the datagrams from the MSCP and TMSCP X drivers passed to it for analysis. X .SH "SEE ALSO" X! mt(1), tar(1), tp(1), mtio(4), tm(4), ts(4), ut(4), dmesg(8), dtab(5), X autoconfig(8) X .SH BUGS X If any non-data error is encountered on non-raw tape, it refuses to do anything X--- 184,190 ---- X log daemon will be written and the datagrams from the MSCP and TMSCP X drivers passed to it for analysis. X .SH "SEE ALSO" X! mt(1), tar(1), tp(1), mtio(4), tm(4), ts(4), dmesg(8), dtab(5), sysctl(8), X autoconfig(8) X .SH BUGS X If any non-data error is encountered on non-raw tape, it refuses to do anything X*** ./usr/src/man/man4/qe.4.old Fri Aug 21 00:11:04 1987 X--- ./usr/src/man/man4/qe.4 Mon Sep 28 10:44:35 2026 X*************** X*** 2,13 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)qe.4 6.1 (Berkeley) 8/20/87 X .\" X .TH QE 4 "August 20, 1987" X .UC 2 X .SH NAME X! qe \- DEC DEQNA Q-bus 10 Mb/s Ethernet interface X .SH SYNOPSIS X .ft B X .nf X--- 2,13 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)qe.4 6.2 (2.11BSD) 2026/9/26 X .\" X .TH QE 4 "August 20, 1987" X .UC 2 X .SH NAME X! qe \- DEC DEQNA Q-BUS 10 Mb/s Ethernet interface X .SH SYNOPSIS X .ft B X .nf X*************** X*** 19,25 **** X The X .B qe X interface provides access to a 10 Mb/s Ethernet network through X! the DEC DEQNA Q-bus controller. X .PP X Each of the host's network addresses X is specified at boot time with an SIOCSIFADDR X--- 19,25 ---- X The X .B qe X interface provides access to a 10 Mb/s Ethernet network through X! the DEC DEQNA Q-BUS controller. X .PP X Each of the host's network addresses X is specified at boot time with an SIOCSIFADDR X*************** X*** 26,41 **** X ioctl. The X .B qe X interface employs the address resolution protocol described in X! arp(4P) X to map dynamically between Internet and Ethernet addresses on the local X network. X- .PP X- The interface normally tries to use a ``trailer'' encapsulation X- to minimize copying data on input and output. X- The use of trailers is negotiated with ARP. X- This negotiation may be disabled, on a per-interface basis, X- by setting the IFF_NOTRAILERS X- flag with an SIOCSIFFLAGS ioctl. X .SH DIAGNOSTICS X .SH SEE ALSO X! inet(4F), intro(4N), arp(4P) X--- 26,34 ---- X ioctl. The X .B qe X interface employs the address resolution protocol described in X! arp(4) X to map dynamically between Internet and Ethernet addresses on the local X network. X .SH DIAGNOSTICS X .SH SEE ALSO X! inet(4), intro(4), arp(4) X*** ./usr/src/man/man4/de.4.old Fri Aug 21 00:09:21 1987 X--- ./usr/src/man/man4/de.4 Mon Sep 28 10:38:28 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)de.4 6.2 (Berkeley) 8/20/87 X .\" X .TH DE 4 "August 20, 1987" X .UC 2 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)de.4 6.3 (2.11BSD) 2026/9/26 X .\" X .TH DE 4 "August 20, 1987" X .UC 2 X*************** X*** 26,41 **** X ioctl. The X .I de X interface employs the address resolution protocol described in X! .IR arp (4P) X to dynamically map between Internet and Ethernet addresses on the local X network. X- .PP X- The interface normally tries to use a ``trailer'' encapsulation X- to minimize copying data on input and output. X- The use of trailers is negotiated with ARP. X- This negotiation may be disabled, on a per-interface basis, X- by setting the IFF_NOTRAILERS X- flag with an SIOCSIFFLAGS ioctl. X .SH DIAGNOSTICS X \fBde%d: hardware address %s\fP. X This is a normal autoconfiguration message noting the 6 byte physical X--- 26,34 ---- X ioctl. The X .I de X interface employs the address resolution protocol described in X! .IR arp (4) X to dynamically map between Internet and Ethernet addresses on the local X network. X .SH DIAGNOSTICS X \fBde%d: hardware address %s\fP. X This is a normal autoconfiguration message noting the 6 byte physical X*************** X*** 81,84 **** X .PP X \fBde%d: wtmode failed, csr0=%b csr1=%b\fP. X .SH SEE ALSO X! intro(4N), inet(4F), arp(4P) X--- 74,77 ---- X .PP X \fBde%d: wtmode failed, csr0=%b csr1=%b\fP. X .SH SEE ALSO X! intro(4), inet(4), arp(4) X*** ./usr/src/man/man4/arp.4.old Sat Aug 1 17:50:21 1987 X--- ./usr/src/man/man4/arp.4 Sat Sep 26 20:22:03 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)arp.4p 6.2 (Berkeley) 8/1/87 X .\" X! .TH ARP 4P "August 1, 1987" X .UC 2 X .SH NAME X arp \- Address Resolution Protocol X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)arp.4 6.3 (2.11BSD) 2026/9/26 X .\" X! .TH ARP 4 "August 1, 1987" X .UC 2 X .SH NAME X arp \- Address Resolution Protocol X*************** X*** 59,65 **** X structure contains: X .LP X .RS X- .ta \w'#define\ \ 'u +\w'ATF_USETRAILERS\ \ 'u +\w'0x08\ \ \ \ 'u X .nf X /* X * ARP ioctl request X--- 59,64 ---- X*************** X*** 69,79 **** X struct sockaddr arp_ha; /* hardware address */ X int arp_flags; /* flags */ X }; X /* arp_flags field values */ X! #define ATF_COM 0x02 /* completed entry (arp_ha valid) */ X! #define ATF_PERM 0x04 /* permanent entry */ X! #define ATF_PUBL 0x08 /* publish (respond for other host) */ X! #define ATF_USETRAILERS 0x10 /* send trailer packets to host */ X .fi X .RE X .LP X--- 68,78 ---- X struct sockaddr arp_ha; /* hardware address */ X int arp_flags; /* flags */ X }; X+ .sp X /* arp_flags field values */ X! #define ATF_COM 0x02 /* completed entry */ X! #define ATF_PERM 0x04 /* permanent entry */ X! #define ATF_PUBL 0x08 /* publish (respond for other host) */ X .fi X .RE X .LP X*************** X*** 82,89 **** X sockaddr must be AF_INET; for the X .I arp_ha X sockaddr it must be AF_UNSPEC. X! The only flag bits which may be written are ATF_PERM, ATF_PUBL X! and ATF_USETRAILERS. X ATF_PERM causes the entry to be permanent if the ioctl call succeeds. X The peculiar nature of the ARP tables may cause the ioctl to fail if more X than 8 (permanent) Internet host addresses hash to the same slot. X--- 81,87 ---- X sockaddr must be AF_INET; for the X .I arp_ha X sockaddr it must be AF_UNSPEC. X! The only flag bits which may be written are ATF_PERM and ATF_PUBL. X ATF_PERM causes the entry to be permanent if the ioctl call succeeds. X The peculiar nature of the ARP tables may cause the ioctl to fail if more X than 8 (permanent) Internet host addresses hash to the same slot. X*************** X*** 92,108 **** X ``ARP server,'' which may be useful in convincing an ARP-only machine to talk X to a non-ARP machine. X .PP X- ARP is also used to negotiate the use of trailer IP encapsulations; X- trailers are an alternate encapsulation used to allow efficient packet X- alignment for large packets despite variable-sized headers. X- Hosts which wish to receive trailer encapsulations so indicate X- by sending gratuitous ARP translation replies along with replies X- to IP requests; they are also sent in reply to IP translation replies. X- The negotiation is thus fully symmetrical, in that either or both hosts X- may request trailers. X- The ATF_USETRAILERS flag is used to record the receipt of such a reply, X- and enables the transmission of trailer packets to that host. X- .PP X ARP watches passively for hosts impersonating the local host (i.e. a host X which responds to an ARP mapping request for the local host's address). X .SH DIAGNOSTICS X--- 90,95 ---- X*************** X*** 110,121 **** X ARP has discovered another host on the local network which responds to X mapping requests for its own Internet address. X .SH SEE ALSO X! ec(4), de(4), il(4), inet(4F), arp(8C), ifconfig(8C) X .br X ``An Ethernet Address Resolution Protocol,'' RFC826, Dave Plummer, X- Network Information Center, SRI. X- .br X- ``Trailer Encapsulations,'' RFC893, S.J. Leffler and M.J. Karels, X Network Information Center, SRI. X .SH BUGS X ARP packets on the Ethernet use only 42 bytes of data; however, the smallest X--- 97,105 ---- X ARP has discovered another host on the local network which responds to X mapping requests for its own Internet address. X .SH SEE ALSO X! de(4), qe(4), qt(4), inet(4), arp(8), ifconfig(8) X .br X ``An Ethernet Address Resolution Protocol,'' RFC826, Dave Plummer, X Network Information Center, SRI. X .SH BUGS X ARP packets on the Ethernet use only 42 bytes of data; however, the smallest X*** ./usr/src/man/man4/ec.4.old Fri Aug 21 00:01:51 1987 X--- ./usr/src/man/man4/ec.4 Mon Sep 28 10:38:46 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)ec.4 6.4 (Berkeley) 8/20/87 X .\" X .TH EC 4 "August 20, 1987" X .UC 2 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)ec.4 6.5 (2.11BSD) 2026/9/26 X .\" X .TH EC 4 "August 20, 1987" X .UC 2 X*************** X*** 34,73 **** X ioctl. The X .I ec X interface employs the address resolution protocol described in X! .IR arp (4P) X to dynamically map between Internet and Ethernet addresses on the local X network. X .PP X- The interface normally tries to use a ``trailer'' encapsulation X- to minimize copying data on input and output. X- The use of trailers is negotiated with ARP. X- This negotiation may be disabled, on a per-interface basis, X- by setting the IFF_NOTRAILERS X- flag with an SIOCSIFFLAGS ioctl. X- .PP X The interface software implements an exponential backoff algorithm X! when notified of a collision on the cable. This algorithm utilizes X! a 16-bit mask and the VAX-11's interval timer in calculating a series X! of random backoff values. The algorithm is as follows: X! .TP 5 X! 1. X! Initialize the mask to be all 1's. X! .TP 5 X! 2. X! If the mask is zero, 16 retries have been made and we give X! up. X! .TP 5 X! 3. X! Shift the mask left one bit and formulate a backoff by X! masking the interval timer with the smaller of the complement of this mask X! and a 5-bit mask, resulting in a pseudo-random number between 0 and 31. X! This produces the number of slot times to delay, X! where a slot is 51 microseconds. X! .TP 5 X! 4. X! Use the value calculated in step 3 to delay before retransmitting X! the packet. X! The delay is done in a software busy loop. X .SH DIAGNOSTICS X .BR "ec%d: send error" . X After 16 retransmissions using the X--- 34,45 ---- X ioctl. The X .I ec X interface employs the address resolution protocol described in X! .IR arp (4) X to dynamically map between Internet and Ethernet addresses on the local X network. X .PP X The interface software implements an exponential backoff algorithm X! when notified of a collision. X .SH DIAGNOSTICS X .BR "ec%d: send error" . X After 16 retransmissions using the X*************** X*** 84,90 **** X a message with addresses formatted in an unsuitable address X family; the packet was dropped. X .SH SEE ALSO X! intro(4N), inet(4F), arp(4P) X .SH BUGS X The hardware is not capable of talking to itself. The software X implements local sending and broadcast by sending such packets to the X--- 56,62 ---- X a message with addresses formatted in an unsuitable address X family; the packet was dropped. X .SH SEE ALSO X! intro(4), inet(4), arp(4) X .SH BUGS X The hardware is not capable of talking to itself. The software X implements local sending and broadcast by sending such packets to the X*** ./usr/src/man/man4/en.4.old Fri Aug 21 00:03:44 1987 X--- ./usr/src/man/man4/en.4 Sat Sep 26 20:18:42 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)en.4 6.2 (Berkeley) 8/20/87 X .\" X .TH EN 4 "August 20, 1987" X .UC 2 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)en.4 6.3 (2.11BSD) 2026/9/26 X .\" X .TH EN 4 "August 20, 1987" X .UC 2 X*************** X*** 32,64 **** X a network address is supplied. X .PP X The interface software implements an exponential backoff algorithm X! when notified of a collision on the cable. This algorithm utilizes X! a 16-bit mask and the VAX-11's interval timer in calculating a series X! of random backoff values. The algorithm is as follows: X! .TP 5 X! 1. X! Initialize the mask to be all 1's. X! .TP 5 X! 2. X! If the mask is zero, 16 retries have been made and we give X! up. X! .TP 5 X! 3. X! Shift the mask left one bit and formulate a backoff by X! masking the interval timer with the mask (this is actually X! the two's complement of the value). X! .TP 5 X! 4. X! Use the value calculated in step 3 to delay before retransmitting X! the packet. X .PP X The interface handles both Internet and NS protocol families. X- It normally tries to use a ``trailer'' encapsulation X- to minimize copying data on input and output. X- The use of trailers is negotiated with ARP. X- This negotiation may be disabled, on a per-interface basis, X- by setting the IFF_NOTRAILERS X- flag with an SIOCSIFFLAGS ioctl. X .SH DIAGNOSTICS X .BR "en%d: output error" . X The hardware indicated an error on X--- 32,40 ---- X a network address is supplied. X .PP X The interface software implements an exponential backoff algorithm X! when notified of a collision. X .PP X The interface handles both Internet and NS protocol families. X .SH DIAGNOSTICS X .BR "en%d: output error" . X The hardware indicated an error on X*************** X*** 78,84 **** X a message with addresses formatted in an unsuitable address X family; the packet was dropped. X .SH SEE ALSO X! intro(4N), inet(4F) X .SH BUGS X The device has insufficient buffering to handle back to X back packets. This makes use in a production environment X--- 54,60 ---- X a message with addresses formatted in an unsuitable address X family; the packet was dropped. X .SH SEE ALSO X! intro(4), inet(4) X .SH BUGS X The device has insufficient buffering to handle back to X back packets. This makes use in a production environment X*** ./usr/src/man/man4/il.4.old Fri Aug 21 00:01:51 1987 X--- ./usr/src/man/man4/il.4 Sat Sep 26 20:20:00 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)il.4 6.4 (Berkeley) 8/20/87 X .\" X .TH IL 4 "August 20, 1987" X .UC 2 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)il.4 6.5 (2.11BSD) 2026/9/26 X .\" X .TH IL 4 "August 20, 1987" X .UC 2 X*************** X*** 17,23 **** X .ft R X .SH DESCRIPTION X The X! .I il X interface provides access to a 10 Mb/s Ethernet network through X an Interlan 1010 or 1010A controller. X .PP X--- 17,23 ---- X .ft R X .SH DESCRIPTION X The X! .B il X interface provides access to a 10 Mb/s Ethernet network through X an Interlan 1010 or 1010A controller. X .PP X*************** X*** 26,41 **** X ioctl. The X .I il X interface employs the address resolution protocol described in X! .IR arp (4P) X to dynamically map between Internet and Ethernet addresses on the local X network. X- .PP X- The interface normally tries to use a ``trailer'' encapsulation X- to minimize copying data on input and output. X- The use of trailers is negotiated with ARP. X- This negotiation may be disabled, on a per-interface basis, X- by setting the IFF_NOTRAILERS X- flag with an SIOCSIFFLAGS ioctl. X .SH DIAGNOSTICS X \fBil%d: input error\fP. The hardware indicated an error X in reading a packet off the cable or an illegally sized packet. X--- 26,34 ---- X ioctl. The X .I il X interface employs the address resolution protocol described in X! .BR arp (4) X to dynamically map between Internet and Ethernet addresses on the local X network. X .SH DIAGNOSTICS X \fBil%d: input error\fP. The hardware indicated an error X in reading a packet off the cable or an illegally sized packet. X*************** X*** 69,72 **** X .PP X \fBil%d: can't initialize\fP. X .SH SEE ALSO X! intro(4N), inet(4F), arp(4P) X--- 62,65 ---- X .PP X \fBil%d: can't initialize\fP. X .SH SEE ALSO X! intro(4), inet(4), arp(4) X*** ./usr/src/man/man4/vv.4.old Fri Aug 21 00:16:46 1987 X--- ./usr/src/man/man4/vv.4 Sat Sep 26 20:21:03 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)vv.4 6.2 (Berkeley) 8/20/87 X .\" X .TH VV 4 "August 20, 1987" X .UC 2 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)vv.4 6.3 (2.11BSD) 2026/9/26 X .\" X .TH VV 4 "August 20, 1987" X .UC 2 X*************** X*** 17,23 **** X .ft R X .SH DESCRIPTION X The X! .I vv X interface provides access to a 10 Mb/s Proteon proNET ring network. X .PP X The network address of the interface must be specified with an X--- 17,23 ---- X .ft R X .SH DESCRIPTION X The X! .B vv X interface provides access to a 10 Mb/s Proteon proNET ring network. X .PP X The network address of the interface must be specified with an X*************** X*** 35,45 **** X If the installation is running CTL boards which use the old broadcast X address of 0 instead of the new address of 0xff, the define OLD_BROADCAST X should be specified in the driver. X- .PP X- The driver can use ``trailer'' encapsulation to minimize copying X- data on input and output. X- This may be disabled, on a per-interface basis, X- by setting the IFF_NOTRAILERS flag with an SIOCSIFFLAGS ioctl. X .SH DIAGNOSTICS X .PP X \fBvv%d: host %d\fP. The software announces the host X--- 35,40 ---- X*************** X*** 67,75 **** X an immediate X .IR "panic: vs_olen" . X .SH SEE ALSO X! intro(4N), inet(4F) X! .SH BUGS X! The encapsulation of trailer packets in the 4.2BSD version of this driver X! was incorrect (the packet type was in VAX byte order). X! As a result, the trailer encapsulation in this version is not compatible X! with the 4.2BSD VAX version. X--- 62,65 ---- X an immediate X .IR "panic: vs_olen" . X .SH SEE ALSO X! intro(4), inet(4) X*** ./usr/src/man/man4/icmp.4.old Sun Jul 26 17:03:50 1987 X--- ./usr/src/man/man4/icmp.4 Mon Sep 28 10:42:35 2026 X*************** X*** 2,19 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)icmp.4p 6.1 (Berkeley) 5/16/86 X .\" X! .TH ICMP 4P "May 16, 1986" X .UC 6 X .SH NAME X icmp \- Internet Control Message Protocol X .SH SYNOPSIS X! .B #include X! .br X! .B #include X! .PP X! .B s = socket(AF_INET, SOCK_RAW, proto); X .SH DESCRIPTION X ICMP is the error and control message protocol used X by IP and the Internet protocol family. It may be accessed X--- 2,22 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)icmp.4 6.2 (2.11BSD) 2026/9/28 X .\" X! .TH ICMP 4 "May 16, 1986" X .UC 6 X .SH NAME X icmp \- Internet Control Message Protocol X .SH SYNOPSIS X! .nf X! .ft B X! #include X! #include X! X! socket(\fIAF_INET\fP, \fISOCK_RAW\fP, \fIint proto\fP); X! .ft R X! .fi X .SH DESCRIPTION X ICMP is the error and control message protocol used X by IP and the Internet protocol family. It may be accessed X*************** X*** 23,45 **** X .I proto X parameter to the socket call to create an ICMP socket X is obtained from X! .IR getprotobyname (3N). X ICMP sockets are connectionless, X and are normally used with the X! .I sendto X and X! .I recvfrom X calls, though the X! .IR connect (2) X call may also be used to fix the destination for future X packets (in which case the X! .IR read (2) X or X! .IR recv (2) X and X! .IR write (2) X or X! .IR send (2) X system calls may be used). X .PP X Outgoing packets automatically have an IP header prepended to X--- 26,48 ---- X .I proto X parameter to the socket call to create an ICMP socket X is obtained from X! .BR getprotobyname (3). X ICMP sockets are connectionless, X and are normally used with the X! .B sendto X and X! .B recvfrom X calls, though the X! .BR connect (2) X call may also be used to fix the destination for future X packets (in which case the X! .bR read (2) X or X! .BR recv (2) X and X! .BR write (2) X or X! .BR send (2) X system calls may be used). X .PP X Outgoing packets automatically have an IP header prepended to X*************** X*** 67,70 **** X socket with a network address for which no network interface X exists. X .SH SEE ALSO X! send(2), recv(2), intro(4N), inet(4F), ip(4P) X--- 70,73 ---- X socket with a network address for which no network interface X exists. X .SH SEE ALSO X! send(2), recv(2), intro(4), inet(4), ip(4) X*** ./usr/src/man/man4/idp.4.old Sun Jul 26 17:03:50 1987 X--- ./usr/src/man/man4/idp.4 Mon Sep 28 10:54:51 2026 X*************** X*** 2,40 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)idp.4p 1.1 (Berkeley) 7/30/85 X .\" X! .TH IDP 4P "July 30, 1985" X .UC 6 X .SH NAME X idp \- Xerox Internet Datagram Protocol X .SH SYNOPSIS X! .B #include X! .br X! .B #include X! .br X! .B #include X! .PP X! .B s = socket(AF_NS, SOCK_DGRAM, 0); X .SH DESCRIPTION X IDP is a simple, unreliable datagram protocol which is used X to support the SOCK_DGRAM abstraction for the Internet X protocol family. IDP sockets are connectionless, and are X normally used with the X! .I sendto X and X! .IR recvfrom X calls, though the X! .IR connect (2) X call may also be used to fix the destination for future X packets (in which case the X! .IR recv (2) X or X! .IR read (2) X and X! .IR send (2) X or X! .IR write(2) X system calls may be used). X .PP X Xerox protocols are built vertically on top of IDP. X--- 2,42 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)idp.4 1.2 (2.11BSD) 2026/9/28 X .\" X! .TH IDP 4 "July 30, 1985" X .UC 6 X .SH NAME X idp \- Xerox Internet Datagram Protocol X .SH SYNOPSIS X! .nf X! .ft B X! #include X! #include X! #include X! X! socket(AF_NS, SOCK_DGRAM, 0); X! .ft R X! .fi X .SH DESCRIPTION X IDP is a simple, unreliable datagram protocol which is used X to support the SOCK_DGRAM abstraction for the Internet X protocol family. IDP sockets are connectionless, and are X normally used with the X! .B sendto X and X! .BR recvfrom X calls, though the X! .BR connect (2) X call may also be used to fix the destination for future X packets (in which case the X! .BR recv (2) X or X! .BR read (2) X and X! .BR send (2) X or X! .BR write(2) X system calls may be used). X .PP X Xerox protocols are built vertically on top of IDP. X*************** X*** 124,128 **** X .SH SEE ALSO X send(2), X recv(2), X! intro(4N), X! ns(4F) X--- 126,130 ---- X .SH SEE ALSO X send(2), X recv(2), X! intro(4), X! ns(4) X*** ./usr/src/man/man4/ns.4.old Sun Jan 28 00:26:13 1996 X--- ./usr/src/man/man4/ns.4 Mon Sep 28 10:50:21 2026 X*************** X*** 2,19 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)ns.4f 1.4 (2.11BSD) 1996/1/27 X .\" X! .TH NS 4F "January 27, 1996" X .UC 2 X .SH NAME X ns \- Xerox Network Systems(tm) protocol family X .SH SYNOPSIS X- .ft B X .nf X Not currently supported under 2.11BSD X- .fi X .ft R X .SH DESCRIPTION X .IX "ns device" "" "\fLns\fP \(em Xerox NS protocol family" X The NS protocol family is a collection of protocols X--- 2,19 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)ns.4 1.5 (2.11BSD) 2026/9/28 X .\" X! .TH NS 4 "January 27, 1996" X .UC 2 X .SH NAME X ns \- Xerox Network Systems(tm) protocol family X .SH SYNOPSIS X .nf X+ .ft B X Not currently supported under 2.11BSD X .ft R X+ .fi X .SH DESCRIPTION X .IX "ns device" "" "\fLns\fP \(em Xerox NS protocol family" X The NS protocol family is a collection of protocols X*************** X*** 29,36 **** X NS addresses are 12 byte quantities, consisting of a X 4 byte Network number, a 6 byte Host number and a 2 byte port number, X all stored in network standard format. X! (on the VAX these are word and byte reversed; on the Sun they are not X! reversed). The include file X .RI < netns/ns.h > X defines the NS address as a structure containing unions (for quicker X comparisons). X--- 29,35 ---- X NS addresses are 12 byte quantities, consisting of a X 4 byte Network number, a 6 byte Host number and a 2 byte port number, X all stored in network standard format. X! The include file X .RI < netns/ns.h > X defines the NS address as a structure containing unions (for quicker X comparisons). X*************** X*** 67,73 **** X Sockets may be created with an address of all zeroes to effect X ``wildcard'' matching on incoming messages. X The local port address specified in a X! .IR bind (2) X call is restricted to be greater than NSPORT_RESERVED X (=3000, in ) unless the creating process is running X as the super-user, providing a space of protected port numbers. X--- 66,72 ---- X Sockets may be created with an address of all zeroes to effect X ``wildcard'' matching on incoming messages. X The local port address specified in a X! .BR bind (2) X call is restricted to be greater than NSPORT_RESERVED X (=3000, in ) unless the creating process is running X as the super-user, providing a space of protected port numbers. X*************** X*** 75,85 **** X The NS protocol family supported by the operating system X is comprised of X the Internet Datagram Protocol (IDP) X! .IR idp (4P), X Error Protocol (available through IDP), X and X Sequenced Packet Protocol (SPP) X! .IR spp (4P). X .LP X SPP is used to support the SOCK_STREAM and SOCK_SEQPACKET abstraction, X while IDP is used to support the SOCK_DGRAM abstraction. X--- 74,84 ---- X The NS protocol family supported by the operating system X is comprised of X the Internet Datagram Protocol (IDP) X! .BR idp (4), X Error Protocol (available through IDP), X and X Sequenced Packet Protocol (SPP) X! .BR spp (4). X .LP X SPP is used to support the SOCK_STREAM and SOCK_SEQPACKET abstraction, X while IDP is used to support the SOCK_DGRAM abstraction. X*************** X*** 88,97 **** X it is, however, X only accessible to user programs through heroic actions. X .SH SEE ALSO X! intro(3), byteorder(3N), gethostbyname(3N), getnetent(3N), X! getprotoent(3N), getservent(3N), ns(3N), X! intro(4N), spp(4P), idp(4P), nsip(4) X! .br X Internet Transport Protocols, Xerox Corporation document XSIS-028112 X! .br X An Advanced 4.3BSD Interprocess Communication Tutorial X--- 87,96 ---- X it is, however, X only accessible to user programs through heroic actions. X .SH SEE ALSO X! intro(3), gethostbyname(3), getnetent(3), X! getprotoent(3), getservent(3), ns(3), X! intro(4), spp(4), idp(4), nsip(4) X! .sp X Internet Transport Protocols, Xerox Corporation document XSIS-028112 X! .sp X An Advanced 4.3BSD Interprocess Communication Tutorial X*** ./usr/src/man/man4/imp.4.old Sun Jul 26 17:03:50 1987 X--- ./usr/src/man/man4/imp.4 Mon Sep 28 10:52:48 2026 X*************** X*** 2,29 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)imp.4p 6.2 (Berkeley) 5/16/86 X .\" X! .TH IMP 4P "May 16, 1986" X .UC 5 X .SH NAME X imp \- IMP raw socket interface X .SH SYNOPSIS X! .B #include X! .br X! .B #include X! .br X! .B #include X! .PP X! .B s = socket(AF_IMPLINK, SOCK_RAW, proto); X .SH DESCRIPTION X The raw imp socket provides direct access to the X! .IR imp (4) X network interface. Users send packets through X the interface using the X! .IR send (2) X calls, and receive packets with the X! .IR recv (2), X calls. All outgoing packets must have an 1822 96-bit X leader on the front. Likewise, packets received X by the user will have this leader on the front. The X--- 2,31 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)imp.4 6.3 (2.11BSD) 2026/9/28 X .\" X! .TH IMP 4 "May 16, 1986" X .UC 5 X .SH NAME X imp \- IMP raw socket interface X .SH SYNOPSIS X! .nf X! .ft B X! #include X! #include X! #include X! X! socket(AF_IMPLINK, SOCK_RAW, proto); X! .ft R X! .fi X .SH DESCRIPTION X The raw imp socket provides direct access to the X! .BR imp (4) X network interface. Users send packets through X the interface using the X! .BR send (2) X calls, and receive packets with the X! .BR recv (2), X calls. All outgoing packets must have an 1822 96-bit X leader on the front. Likewise, packets received X by the user will have this leader on the front. The X*************** X*** 71,74 **** X socket with a network address for which no network interface X exists. X .SH SEE ALSO X! intro(4N), inet(4F), imp(4) X--- 73,76 ---- X socket with a network address for which no network interface X exists. X .SH SEE ALSO X! intro(4), inet(4), imp(4) X*** ./usr/src/man/man4/inet.4.old Sat Aug 1 12:41:08 1987 X--- ./usr/src/man/man4/inet.4 Mon Sep 28 10:57:08 2026 X*************** X*** 2,17 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)inet.4f 6.3 (Berkeley) 8/1/87 X .\" X! .TH INET 4F "August 1, 1987" X .UC 5 X .SH NAME X inet \- Internet protocol family X .SH SYNOPSIS X! .B #include X! .br X! .B #include X .SH DESCRIPTION X .de _d X .if t .ta .6i 2.1i 2.6i X--- 2,20 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)inet.4 6.4 (2.11BSD) 2026/9/28 X .\" X! .TH INET 4 "August 1, 1987" X .UC 5 X .SH NAME X inet \- Internet protocol family X .SH SYNOPSIS X! .nf X! .ft B X! #include X! #include X! .ft R X! .fi X .SH DESCRIPTION X .de _d X .if t .ta .6i 2.1i 2.6i X*************** X*** 56,64 **** X Sockets may be created with the local address INADDR_ANY X to effect \*(lqwildcard\*(rq matching on incoming messages. X The address in a X! .IR connect (2) X or X! .IR sendto (2) X call may be given as INADDR_ANY to mean ``this host.'' X The distinguished address INADDR_BROADCAST X is allowed as a shorthand for the broadcast address on the primary X--- 59,67 ---- X Sockets may be created with the local address INADDR_ANY X to effect \*(lqwildcard\*(rq matching on incoming messages. X The address in a X! .BR connect (2) X or X! .BR sendto (2) X call may be given as INADDR_ANY to mean ``this host.'' X The distinguished address INADDR_BROADCAST X is allowed as a shorthand for the broadcast address on the primary X*************** X*** 89,99 **** X externally, the entire cluster appears to be a single, uniform X network requiring only a single routing entry. X Subnet addressing is enabled and examined by the following X! .IR ioctl (2) X commands on a datagram socket in the Internet domain; X they have the same form as the X SIOCIFADDR command (see X! .IR intro (4N)). X .PP X .TP 20 X SIOCSIFNETMASK X--- 92,102 ---- X externally, the entire cluster appears to be a single, uniform X network requiring only a single routing entry. X Subnet addressing is enabled and examined by the following X! .BR ioctl (2) X commands on a datagram socket in the Internet domain; X they have the same form as the X SIOCIFADDR command (see X! .BR intro (4)). X .PP X .TP 20 X SIOCSIFNETMASK X*************** X*** 105,111 **** X SIOCGIFNETMASK X Get interface network mask. X .SH SEE ALSO X! ioctl(2), socket(2), intro(4N), tcp(4P), udp(4P), ip(4P), icmp(4P) X .PP X An Introductory 4.3BSD Interprocess Communication Tutorial (PS1:7). X .PP X--- 108,114 ---- X SIOCGIFNETMASK X Get interface network mask. X .SH SEE ALSO X! ioctl(2), socket(2), intro(4), tcp(4), udp(4), ip(4), icmp(4) X .PP X An Introductory 4.3BSD Interprocess Communication Tutorial (PS1:7). X .PP X*** ./usr/src/man/man4/networking.4.old Sat Aug 1 12:30:32 1987 X--- ./usr/src/man/man4/networking.4 Mon Sep 28 11:04:41 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)intro.4n 6.3 (Berkeley) 8/1/87 X .\" X! .TH INTRO 4N "August 1, 1987" X .UC 5 X .SH NAME X networking \- introduction to networking facilities X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)networking.4 6.4 (2.11BSD) 2026/9/28 X .\" X! .TH NETWORKING 4 "August 1, 1987" X .UC 5 X .SH NAME X networking \- introduction to networking facilities X*************** X*** 14,20 **** X #include X #include X #include X! .fi R X .fi X .SH DESCRIPTION X .de _d X--- 14,20 ---- X #include X #include X #include X! .ft R X .fi X .SH DESCRIPTION X .de _d X*************** X*** 36,45 **** X .IR protocols , X and X .IR "network interfaces" . X- Entries describing a protocol family are marked ``4F,'' X- while entries describing protocol use are marked ``4P.'' X- Hardware support for network interfaces are found X- among the standard ``4'' entries. X .PP X All network protocols are associated with a specific X .IR "protocol family" . X--- 36,41 ---- X*************** X*** 51,57 **** X methods of addressing, though the current protocol implementations X do not. A protocol family is normally comprised of a number X of protocols, one per X! .IR socket (2) X type. It is not required that a protocol family support X all socket types. A protocol family may contain multiple X protocols supporting the same socket abstraction. X--- 47,53 ---- X methods of addressing, though the current protocol implementations X do not. A protocol family is normally comprised of a number X of protocols, one per X! .BR socket (2) X type. It is not required that a protocol family support X all socket types. A protocol family may contain multiple X protocols supporting the same socket abstraction. X*************** X*** 58,64 **** X .PP X A protocol supports one of the socket abstractions detailed X in X! .IR socket (2). X A specific protocol may be accessed either by creating a X socket of the appropriate type and protocol family, or X by requesting the protocol explicitly when creating a socket. X--- 54,60 ---- X .PP X A protocol supports one of the socket abstractions detailed X in X! .BR socket (2). X A specific protocol may be accessed either by creating a X socket of the appropriate type and protocol family, or X by requesting the protocol explicitly when creating a socket. X*************** X*** 81,95 **** X families and/or address formats. X The SYNOPSIS section of each network interface X entry gives a sample specification X! of the related drivers for use in providing X! a system description to the X! .IR /sys/conf/config X! script. X The DIAGNOSTICS section lists messages which may appear on the console X and/or in the system error log, X .I /usr/adm/messages X (see X! .IR syslogd (8)), X due to errors in device operation. X .SH PROTOCOLS X The system currently supports the DARPA Internet X--- 77,88 ---- X families and/or address formats. X The SYNOPSIS section of each network interface X entry gives a sample specification X! of the related drivers for use in the kernel configuration file. X The DIAGNOSTICS section lists messages which may appear on the console X and/or in the system error log, X .I /usr/adm/messages X (see X! .BR syslogd (8)), X due to errors in device operation. X .SH PROTOCOLS X The system currently supports the DARPA Internet X*************** X*** 111,117 **** X #define AF_IMPLINK 3 /* arpanet imp addresses */ X #define AF_PUP 4 /* pup protocols: e.g. BSP */ X #define AF_NS 6 /* Xerox NS protocols */ X- #define AF_HYLINK 15 /* NSC Hyperchannel */ X .fi X .SH ROUTING X The network facilities provided limited packet routing. X--- 104,109 ---- X*************** X*** 121,127 **** X each route to a specific network or host. A user process, X the routing daemon, maintains this data base with the aid X of two socket-specific X! .IR ioctl (2) X commands, SIOCADDRT and SIOCDELRT. The commands allow X the addition and deletion of a single routing X table entry, respectively. Routing table manipulations may X--- 113,119 ---- X each route to a specific network or host. A user process, X the routing daemon, maintains this data base with the aid X of two socket-specific X! .BR ioctl (2) X commands, SIOCADDRT and SIOCDELRT. The commands allow X the addition and deletion of a single routing X table entry, respectively. Routing table manipulations may X*************** X*** 210,223 **** X path through which messages may be sent and received. A network X interface usually has a hardware device associated with it, though X certain interfaces such as the loopback interface, X! .IR lo (4), X do not. X .PP X The following X! .I ioctl X calls may be used to manipulate network interfaces. X The X! .I ioctl X is made on a socket (typically of type SOCK_DGRAM) X in the desired domain. X Unless specified otherwise, the request takes an X--- 202,215 ---- X path through which messages may be sent and received. A network X interface usually has a hardware device associated with it, though X certain interfaces such as the loopback interface, X! .BR lo (4), X do not. X .PP X The following X! .B ioctl X calls may be used to manipulate network interfaces. X The X! .B ioctl X is made on a socket (typically of type SOCK_DGRAM) X in the desired domain. X Unless specified otherwise, the request takes an X*************** X*** 317,320 **** X ioctl(2), X intro(4), X config(8), X! routed(8C) X--- 309,312 ---- X ioctl(2), X intro(4), X config(8), X! routed(8) X*** ./usr/src/man/man4/dmc.4.old Tue Oct 22 23:32:08 1996 X--- ./usr/src/man/man4/dmc.4 Mon Sep 28 12:43:21 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)dmc.4 6.3.1 (2.11BSD) 1996/10/22 X .\" X .TH DMC 4 "October 22, 1996" X .UC 2 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)dmc.4 6.3.2 (2.11BSD) 2026/9/28 X .\" X .TH DMC 4 "October 22, 1996" X .UC 2 X*************** X*** 17,29 **** X .ft R X .SH DESCRIPTION X The X! .I dmc X interface provides access to a point-to-point communications X device which runs at either 1 Mb/s or 56 Kb/s. DMC-11's communicate X using the DEC DDCMP link layer protocol. X .PP X The X! .I dmc X interface driver also supports a DEC DMR-11 providing point-to-point X communication running at data rates from 2.4 Kb/s to 1 Mb/s. X DMR-11's are a more recent design and thus are preferred over DMC-11's. X--- 17,29 ---- X .ft R X .SH DESCRIPTION X The X! .B dmc X interface provides access to a point-to-point communications X device which runs at either 1 Mb/s or 56 Kb/s. DMC-11's communicate X using the DEC DDCMP link layer protocol. X .PP X The X! .B dmc X interface driver also supports a DEC DMR-11 providing point-to-point X communication running at data rates from 2.4 Kb/s to 1 Mb/s. X DMR-11's are a more recent design and thus are preferred over DMC-11's. X*************** X*** 54,62 **** X address given in the SIOCSIFDSTADDR ioctl. To use the DMC as a X link between local nets, the route to the remote net must be added manually X with the X! .IR route (8) X command, or by the use of the routing process X! .IR routed (8) X on each end of the link. X .SH DIAGNOSTICS X .BR "dmc%d: bad control %o" . X--- 54,62 ---- X address given in the SIOCSIFDSTADDR ioctl. To use the DMC as a X link between local nets, the route to the remote net must be added manually X with the X! .BR route (8) X command, or by the use of the routing process X! .BR routed (8) X on each end of the link. X .SH DIAGNOSTICS X .BR "dmc%d: bad control %o" . X*************** X*** 78,84 **** X The interface was handed a message which has X addresses formatted in an unsuitable address family. X .SH SEE ALSO X! intro(4N), inet(4F) X .SH BUGS X The current version of the driver uses a link-level encapsulation X so that multiple protocol types may be used. X--- 78,84 ---- X The interface was handed a message which has X addresses formatted in an unsuitable address family. X .SH SEE ALSO X! intro(4), inet(4) X .SH BUGS X The current version of the driver uses a link-level encapsulation X so that multiple protocol types may be used. X*** ./usr/src/man/man4/ip.4.old Sun Jul 26 17:03:51 1987 X--- ./usr/src/man/man4/ip.4 Mon Sep 28 11:09:04 2026 X*************** X*** 2,19 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)ip.4p 6.2 (Berkeley) 5/16/86 X .\" X! .TH IP 4P "May 16, 1986" X .UC 5 X .SH NAME X ip \- Internet Protocol X .SH SYNOPSIS X! .B #include X! .br X! .B #include X! .PP X! .B s = socket(AF_INET, SOCK_RAW, proto); X .SH DESCRIPTION X IP is the transport layer protocol used X by the Internet protocol family. X--- 2,22 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)ip.4 6.3 (2.11BSD) 2026/9/28 X .\" X! .TH IP 4 "May 16, 1986" X .UC 5 X .SH NAME X ip \- Internet Protocol X .SH SYNOPSIS X! .nf X! .ft B X! #include X! #include X! X! s = socket(AF_INET, SOCK_RAW, proto); X! .ft R X! .fi X .SH DESCRIPTION X IP is the transport layer protocol used X by the Internet protocol family. X*************** X*** 28,36 **** X that may be used to provide IP options to be transmitted in the IP X header of each outgoing packet. X Options are set with X! .IR setsockopt (2) X and examined with X! .IR getsockopt (2). X The format of IP options to be sent is that specified by the IP protocol X specification, with one exception: X the list of addresses for Source Route options must include the first-hop X--- 31,39 ---- X that may be used to provide IP options to be transmitted in the IP X header of each outgoing packet. X Options are set with X! .BR setsockopt (2) X and examined with X! .BR getsockopt (2). X The format of IP options to be sent is that specified by the IP protocol X specification, with one exception: X the list of addresses for Source Route options must include the first-hop X*************** X*** 41,60 **** X .PP X Raw IP sockets are connectionless, X and are normally used with the X! .I sendto X and X! .I recvfrom X calls, though the X! .IR connect (2) X call may also be used to fix the destination for future X packets (in which case the X! .IR read (2) X or X! .IR recv (2) X and X! .IR write (2) X or X! .IR send (2) X system calls may be used). X .PP X If X--- 44,63 ---- X .PP X Raw IP sockets are connectionless, X and are normally used with the X! .B sendto X and X! .B recvfrom X calls, though the X! .BR connect (2) X call may also be used to fix the destination for future X packets (in which case the X! .BR read (2) X or X! .BR recv (2) X and X! .BR write (2) X or X! .BR send (2) X system calls may be used). X .PP X If X*************** X*** 104,107 **** X an option field was shorter than the minimum value X or longer than the option buffer provided. X .SH SEE ALSO X! getsockopt(2), send(2), recv(2), intro(4N), icmp(4P), inet(4F) X--- 107,110 ---- X an option field was shorter than the minimum value X or longer than the option buffer provided. X .SH SEE ALSO X! getsockopt(2), send(2), recv(2), intro(4), icmp(4), inet(4) X*** ./usr/src/man/man4/pty.4.old Sat Aug 1 12:54:56 1987 X--- ./usr/src/man/man4/pty.4 Mon Sep 28 11:11:59 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)pty.4 6.2 (Berkeley) 5/19/86 X .\" X .TH PTY 4 "May 19, 1986" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)pty.4 6.3 (2.11BSD) 2026/9/28 X .\" X .TH PTY 4 "May 19, 1986" X .UC 5 X*************** X*** 17,23 **** X .ft R X .SH DESCRIPTION X The X! .I pty X driver provides support for a device-pair termed a X .IR "pseudo terminal" . X A pseudo terminal is a pair of character devices, a X--- 17,23 ---- X .ft R X .SH DESCRIPTION X The X! .B pty X driver provides support for a device-pair termed a X .IR "pseudo terminal" . X A pseudo terminal is a pair of character devices, a X*************** X*** 27,36 **** X device. The slave device provides processes X an interface identical X to that described in X! .IR tty (4). X However, whereas all other devices which provide the X interface described in X! .IR tty (4) X have a hardware device of some sort behind them, the slave X device has, instead, another process manipulating X it through the master half of the pseudo terminal. X--- 27,36 ---- X device. The slave device provides processes X an interface identical X to that described in X! .BR tty (4). X However, whereas all other devices which provide the X interface described in X! .BR tty (4) X have a hardware device of some sort behind them, the slave X device has, instead, another process manipulating X it through the master half of the pseudo terminal. X*************** X*** 44,50 **** X specifies the number of pseudo terminal pairs are configured. X .PP X The following X! .I ioctl X calls apply only to pseudo terminals: X .TP X TIOCSTOP X--- 44,50 ---- X specifies the number of pseudo terminal pairs are configured. X .PP X The following X! .B ioctl X calls apply only to pseudo terminals: X .TP X TIOCSTOP X*************** X*** 62,68 **** X a nonzero parameter and disabled by specifying (by reference) X a zero parameter. When applied to the master side of a pseudo X terminal, each subsequent X! .I read X from the terminal will return data written on the slave part of X the pseudo terminal preceded by a zero byte (symbolically X defined as TIOCPKT_DATA), or a single byte reflecting control X--- 62,68 ---- X a nonzero parameter and disabled by specifying (by reference) X a zero parameter. When applied to the master side of a pseudo X terminal, each subsequent X! .B read X from the terminal will return data written on the slave part of X the pseudo terminal preceded by a zero byte (symbolically X defined as TIOCPKT_DATA), or a single byte reflecting control X*************** X*** 96,108 **** X .IP X While this mode is in use, the presence of control status information X to be read from the master side may be detected by a X! .I select X for exceptional conditions. X .IP X This mode is used by X! .IR rlogin (1C) X and X! .IR rlogind (8C) X to implement a remote-echoed, locally ^S/^Q flow-controlled X remote login with proper back-flushing of output; it can be X used by other similar programs. X--- 96,108 ---- X .IP X While this mode is in use, the presence of control status information X to be read from the master side may be detected by a X! .B select X for exceptional conditions. X .IP X This mode is used by X! .BR rlogin (1) X and X! .BR rlogind (8) X to implement a remote-echoed, locally ^S/^Q flow-controlled X remote login with proper back-flushing of output; it can be X used by other similar programs. X*************** X*** 109,115 **** X .TP X TIOCUCNTL X Enable/disable a mode that allows a small number of simple user X! .I ioctl X commands to be passed through the pseudo-terminal, X using a protocol similar to that of TIOCPKT. X The TIOCUCNTL and TIOCPKT modes are mutually exclusive. X--- 109,115 ---- X .TP X TIOCUCNTL X Enable/disable a mode that allows a small number of simple user X! .B ioctl X commands to be passed through the pseudo-terminal, X using a protocol similar to that of TIOCPKT. X The TIOCUCNTL and TIOCPKT modes are mutually exclusive. X*************** X*** 118,138 **** X a nonzero parameter and disabled by specifying (by reference) X a zero parameter. X Each subsequent X! .I read X from the master side will return data written on the slave part of X the pseudo terminal preceded by a zero byte, X or a single byte reflecting a user control operation on the slave side. X A user control command consists of a special X! .I ioctl X operation with no data; the command is given as UIOCCMD(\fIn\fP), X where \fIn\fP is a number in the range 1-255. X The operation value \fIn\fP will be received as a single byte on the next X! .I read X from the master side. X! The \fIioctl\fP UIOCCMD(0) is a no-op that may be used to probe for X the existence of this facility. X As with TIOCPKT mode, command operations may be detected with a X! .I select X for exceptional conditions. X .TP X TIOCREMOTE X--- 118,138 ---- X a nonzero parameter and disabled by specifying (by reference) X a zero parameter. X Each subsequent X! .B read X from the master side will return data written on the slave part of X the pseudo terminal preceded by a zero byte, X or a single byte reflecting a user control operation on the slave side. X A user control command consists of a special X! .B ioctl X operation with no data; the command is given as UIOCCMD(\fIn\fP), X where \fIn\fP is a number in the range 1-255. X The operation value \fIn\fP will be received as a single byte on the next X! .B read X from the master side. X! The \fBioctl\fP UIOCCMD(0) is a no-op that may be used to probe for X the existence of this facility. X As with TIOCPKT mode, command operations may be detected with a X! .B select X for exceptional conditions. X .TP X TIOCREMOTE X*************** X*** 151,155 **** X /dev/pty[p-r][0-9a-f] master pseudo terminals X .br X /dev/tty[p-r][0-9a-f] slave pseudo terminals X- .SH DIAGNOSTICS X- None. X--- 151,153 ---- X*** ./usr/src/man/man4/spp.4.old Sun Jul 26 17:03:51 1987 X--- ./usr/src/man/man4/spp.4 Mon Sep 28 11:14:27 2026 X*************** X*** 2,23 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)spp.4p 1.2 (Berkeley) 9/17/85 X .\" X! .TH SPP 4P "July 30, 1985" X .UC 6 X .SH NAME X spp \- Xerox Sequenced Packet Protocol X .SH SYNOPSIS X! .B #include X! .br X! .B #include X! .br X! .B s = socket(AF_NS, SOCK_STREAM, 0); X! .PP X! .B #include X! .br X! .B s = socket(AF_NS, SOCK_SEQPACKET, 0); X .SH DESCRIPTION X The SPP protocol provides reliable, flow-controlled, two-way X transmission of data. It is a byte-stream protocol used to X--- 2,26 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)spp.4 1.3 (2.11BSD) 2026/9/28 X .\" X! .TH SPP 4 "July 30, 1985" X .UC 6 X .SH NAME X spp \- Xerox Sequenced Packet Protocol X .SH SYNOPSIS X! .nf X! .ft B X! #include X! #include X! X! socket(AF_NS, SOCK_STREAM, 0); X! X! #include X! X! socket(AF_NS, SOCK_SEQPACKET, 0); X! .ft R X! .fi X .SH DESCRIPTION X The SPP protocol provides reliable, flow-controlled, two-way X transmission of data. It is a byte-stream protocol used to X*************** X*** 28,43 **** X \*(lqpassive\*(rq. Active sockets initiate connections to passive X sockets. By default SPP sockets are created active; to create a X passive socket the X! .IR listen (2) X system call must be used X after binding the socket with the X! .IR bind (2) X system call. Only X passive sockets may use the X! .IR accept (2) X call to accept incoming connections. Only active sockets may X use the X! .IR connect (2) X call to initiate connections. X .PP X Passive sockets may \*(lqunderspecify\*(rq their location to match X--- 31,46 ---- X \*(lqpassive\*(rq. Active sockets initiate connections to passive X sockets. By default SPP sockets are created active; to create a X passive socket the X! .BR listen (2) X system call must be used X after binding the socket with the X! .BR bind (2) X system call. Only X passive sockets may use the X! .BR accept (2) X call to accept incoming connections. Only active sockets may X use the X! .BR connect (2) X call to initiate connections. X .PP X Passive sockets may \*(lqunderspecify\*(rq their location to match X*************** X*** 128,134 **** X The data argument for the setsockopt call must be X an unsigned short. X .SH SEE ALSO X! intro(4N), ns(4F) X .SH BUGS X There should be some way to reflect record boundaries in X a stream. X--- 131,137 ---- X The data argument for the setsockopt call must be X an unsigned short. X .SH SEE ALSO X! intro(4), ns(4) X .SH BUGS X There should be some way to reflect record boundaries in X a stream. X*** ./usr/src/man/man4/tcp.4.old Sun Jul 26 17:03:51 1987 X--- ./usr/src/man/man4/tcp.4 Mon Sep 28 11:16:18 2026 X*************** X*** 2,19 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)tcp.4p 6.2 (Berkeley) 5/16/86 X .\" X! .TH TCP 4P "May 16, 1986" X .UC 5 X .SH NAME X tcp \- Internet Transmission Control Protocol X .SH SYNOPSIS X! .B #include X! .br X! .B #include X! .PP X! .B s = socket(AF_INET, SOCK_STREAM, 0); X .SH DESCRIPTION X The TCP protocol provides reliable, flow-controlled, two-way X transmission of data. It is a byte-stream protocol used to X--- 2,22 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)tcp.4 6.3 (2.11BSD) 2026/9/28 X .\" X! .TH TCP 4 "May 16, 1986" X .UC 5 X .SH NAME X tcp \- Internet Transmission Control Protocol X .SH SYNOPSIS X! .nf X! .ft B X! #include X! #include X! X! socket(AF_INET, SOCK_STREAM, 0); X! .ft R X! .fi X .SH DESCRIPTION X The TCP protocol provides reliable, flow-controlled, two-way X transmission of data. It is a byte-stream protocol used to X*************** X*** 27,42 **** X \*(lqpassive\*(rq. Active sockets initiate connections to passive X sockets. By default TCP sockets are created active; to create a X passive socket the X! .IR listen (2) X system call must be used X after binding the socket with the X! .IR bind (2) X system call. Only X passive sockets may use the X! .IR accept (2) X call to accept incoming connections. Only active sockets may X use the X! .IR connect (2) X call to initiate connections. X .PP X Passive sockets may \*(lqunderspecify\*(rq their location to match X--- 30,45 ---- X \*(lqpassive\*(rq. Active sockets initiate connections to passive X sockets. By default TCP sockets are created active; to create a X passive socket the X! .BR listen (2) X system call must be used X after binding the socket with the X! .BR bind (2) X system call. Only X passive sockets may use the X! .BR accept (2) X call to accept incoming connections. Only active sockets may X use the X! .BR connect (2) X call to initiate connections. X .PP X Passive sockets may \*(lqunderspecify\*(rq their location to match X*************** X*** 54,62 **** X this address corresponds to the peer entity's network. X .PP X TCP supports one socket option which is set with X! .IR setsockopt (2) X and tested with X! .IR getsockopt (2). X Under most circumstances, TCP sends data when it is presented; X when outstanding data has not yet been acknowledged, it gathers X small amounts of output to be sent in a single packet once X--- 57,65 ---- X this address corresponds to the peer entity's network. X .PP X TCP supports one socket option which is set with X! .BR setsockopt (2) X and tested with X! .BR getsockopt (2). X Under most circumstances, TCP sends data when it is presented; X when outstanding data has not yet been acknowledged, it gathers X small amounts of output to be sent in a single packet once X*************** X*** 68,80 **** X .IR , X to defeat this algorithm. X The option level for the X! .I setsockopt X call is the protocol number for TCP, X available from X! .IR getprotobyname (3N). X .PP X Options at the IP transport level may be used with TCP; see X! .IR ip (4P). X Incoming connection requests that are source-routed are noted, X and the reverse source route is used in responding. X .SH DIAGNOSTICS X--- 71,83 ---- X .IR , X to defeat this algorithm. X The option level for the X! .B setsockopt X call is the protocol number for TCP, X available from X! .BR getprotobyname (3). X .PP X Options at the IP transport level may be used with TCP; see X! .BR ip (4). X Incoming connection requests that are source-routed are noted, X and the reverse source route is used in responding. X .SH DIAGNOSTICS X*************** X*** 111,114 **** X socket with a network address for which no network interface X exists. X .SH SEE ALSO X! getsockopt(2), socket(2), intro(4N), inet(4F), ip(4P) X--- 114,117 ---- X socket with a network address for which no network interface X exists. X .SH SEE ALSO X! getsockopt(2), socket(2), intro(4), inet(4), ip(4) X*** ./usr/src/man/man4/udp.4.old Sun Jul 26 17:03:51 1987 X--- ./usr/src/man/man4/udp.4 Mon Sep 28 11:17:42 2026 X*************** X*** 2,38 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)udp.4p 6.2 (Berkeley) 5/16/86 X .\" X! .TH UDP 4P "May 16, 1986" X .UC 5 X .SH NAME X udp \- Internet User Datagram Protocol X .SH SYNOPSIS X! .B #include X! .br X! .B #include X! .PP X! .B s = socket(AF_INET, SOCK_DGRAM, 0); X .SH DESCRIPTION X UDP is a simple, unreliable datagram protocol which is used X to support the SOCK_DGRAM abstraction for the Internet X protocol family. UDP sockets are connectionless, and are X normally used with the X! .I sendto X and X! .IR recvfrom X calls, though the X! .IR connect (2) X call may also be used to fix the destination for future X packets (in which case the X! .IR recv (2) X or X! .IR read (2) X and X! .IR send (2) X or X! .IR write(2) X system calls may be used). X .PP X UDP address formats are identical to those used by X--- 2,41 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)udp.4 6.3 (2.11BSD) 2026/9/28 X .\" X! .TH UDP 4 "May 16, 1986" X .UC 5 X .SH NAME X udp \- Internet User Datagram Protocol X .SH SYNOPSIS X! .nf X! .ft B X! #include X! #include X! X! socket(AF_INET, SOCK_DGRAM, 0); X! .ft R X! .fi X .SH DESCRIPTION X UDP is a simple, unreliable datagram protocol which is used X to support the SOCK_DGRAM abstraction for the Internet X protocol family. UDP sockets are connectionless, and are X normally used with the X! .B sendto X and X! .BR recvfrom X calls, though the X! .BR connect (2) X call may also be used to fix the destination for future X packets (in which case the X! .BR recv (2) X or X! .BR read (2) X and X! .BR send (2) X or X! .BR write(2) X system calls may be used). X .PP X UDP address formats are identical to those used by X*************** X*** 45,51 **** X is network interface dependent. X .PP X Options at the IP transport level may be used with UDP; see X! .IR ip (4P). X .SH DIAGNOSTICS X A socket operation may fail with one of the following errors returned: X .TP 15 X--- 48,54 ---- X is network interface dependent. X .PP X Options at the IP transport level may be used with UDP; see X! .BR ip (4). X .SH DIAGNOSTICS X A socket operation may fail with one of the following errors returned: X .TP 15 X*************** X*** 73,76 **** X socket with a network address for which no network interface X exists. X .SH SEE ALSO X! getsockopt(2), recv(2), send(2), socket(2), intro(4N), inet(4F), ip(4P) X--- 76,79 ---- X socket with a network address for which no network interface X exists. X .SH SEE ALSO X! getsockopt(2), recv(2), send(2), socket(2), intro(4), inet(4), ip(4) X*** ./usr/src/man/man4/impconf.4.old Sun Aug 2 23:54:20 1987 X--- ./usr/src/man/man4/impconf.4 Mon Sep 28 12:47:34 2026 X*************** X*** 2,13 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)imp.4 6.2 (Berkeley) 8/2/87 X .\" X! .TH IMP 4 "August 2, 1987" X .UC 2 X .SH NAME X! imp \- 1822 network interface X .SH SYNOPSIS X .ft B X .nf X--- 2,13 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)impconf.4 6.3 (2.11BSD) 2026/9/28 X .\" X! .TH IMPCONF 4 "August 2, 1987" X .UC 2 X .SH NAME X! impconf \- 1822 network interface X .SH SYNOPSIS X .ft B X .nf X*************** X*** 17,23 **** X .ft R X .SH DESCRIPTION X The X! .I imp X interface, as described in BBN Report 1822, provides access to an X intelligent message processor normally used when participating X in the Department of Defense ARPA network. The network interface X--- 17,23 ---- X .ft R X .SH DESCRIPTION X The X! .B imp X interface, as described in BBN Report 1822, provides access to an X intelligent message processor normally used when participating X in the Department of Defense ARPA network. The network interface X*************** X*** 26,35 **** X \*(lqflow-controlled\*(rq by the host-IMP protocol. X .PP X To configure IMP support, at least one of X! .IR acc (4), X! .IR css (4) X! or X! .IR hdh (4) X must be included. X The X .I count X--- 26,33 ---- X \*(lqflow-controlled\*(rq by the host-IMP protocol. X .PP X To configure IMP support, at least one of X! .BR acc (4), X! .BR css (4) X must be included. X The X .I count X*************** X*** 105,114 **** X a message with addresses formatting in an unsuitable address X family; the packet was dropped. X .SH SEE ALSO X! intro(4N), X! inet(4F), X acc(4), X css(4), X- hdh(4), X implog(8), X implogd(8) X--- 103,111 ---- X a message with addresses formatting in an unsuitable address X family; the packet was dropped. X .SH SEE ALSO X! intro(4), X! inet(4), X acc(4), X css(4), X implog(8), X implogd(8) X*** ./usr/src/man/man4/lo.4.old Sat Aug 1 17:58:34 1987 X--- ./usr/src/man/man4/lo.4 Mon Sep 28 12:48:44 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)lo.4 6.3 (Berkeley) 8/1/87 X .\" X .TH LO 4 "August 1, 1987" X .UC 2 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)lo.4 6.4 (2.11BSD) 2026/9/28 X .\" X .TH LO 4 "August 1, 1987" X .UC 2 X*************** X*** 9,23 **** X .SH NAME X lo \- software loopback network interface X .SH SYNOPSIS X- .ft B X .nf X /sys/conf/SYSTEM: X NLOOP \fI1\fP # loop-back pseudo-device X- .fi X .ft R X .SH DESCRIPTION X The X! .I loop X interface is a software loopback mechanism which may be X used for performance analysis, software testing, and/or local X communication. X--- 9,23 ---- X .SH NAME X lo \- software loopback network interface X .SH SYNOPSIS X .nf X+ .ft B X /sys/conf/SYSTEM: X NLOOP \fI1\fP # loop-back pseudo-device X .ft R X+ .fi X .SH DESCRIPTION X The X! .B loop X interface is a software loopback mechanism which may be X used for performance analysis, software testing, and/or local X communication. X*************** X*** 34,40 **** X a message with addresses formatted in an unsuitable address X family; the packet was dropped. X .SH SEE ALSO X! intro(4N), inet(4F), ns(4F) X .SH BUGS X Previous versions of the system enabled the loopback interface X automatically, using a nonstandard Internet address (127.1). X--- 34,40 ---- X a message with addresses formatted in an unsuitable address X family; the packet was dropped. X .SH SEE ALSO X! intro(4), inet(4), ns(4) X .SH BUGS X Previous versions of the system enabled the loopback interface X automatically, using a nonstandard Internet address (127.1). X*** ./usr/src/man/man4/nsip.4.old Sun Jan 28 00:26:43 1996 X--- ./usr/src/man/man4/nsip.4 Mon Sep 28 12:49:58 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)nsip.4 1.2 (2.11BSD) 1996/1/27 X .\" X .TH NSIP 4 "January 27, 1996" X .UC 2 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)nsip.4 1.3 (2.11BSD) 2026/9/28 X .\" X .TH NSIP 4 "January 27, 1996" X .UC 2 X*************** X*** 9,24 **** X .SH NAME X nsip \- software network interface encapsulating ns packets in ip packets. X .SH SYNOPSIS X- .ft B X .nf X #include X X Not currently supported under 2.11BSD X- .fi X .ft R X .SH DESCRIPTION X The X! .I nsip X interface is a software mechanism which may be X used to transmit Xerox NS(tm) packets through otherwise uncooperative X networks. X--- 9,24 ---- X .SH NAME X nsip \- software network interface encapsulating ns packets in ip packets. X .SH SYNOPSIS X .nf X+ .ft B X #include X X Not currently supported under 2.11BSD X .ft R X+ .fi X .SH DESCRIPTION X The X! .B nsip X interface is a software mechanism which may be X used to transmit Xerox NS(tm) packets through otherwise uncooperative X networks. X*************** X*** 47,53 **** X a message with addresses formatted in an unsuitable address X family; the packet was dropped. X .SH SEE ALSO X! intro(4N), ns(4F) X .SH BUGS X It is absurd to have a separate pseudo-device for each pt-to-pt X link. X--- 47,53 ---- X a message with addresses formatted in an unsuitable address X family; the packet was dropped. X .SH SEE ALSO X! intro(4), ns(4) X .SH BUGS X It is absurd to have a separate pseudo-device for each pt-to-pt X link. X*** ./usr/src/man/man5/uuencode.5.old Sun Dec 14 18:08:26 1986 X--- ./usr/src/man/man5/uuencode.5 Sun Sep 27 20:43:06 2026 X*************** X*** 1,4 **** X! .\" @(#)uuencode.5 6.1 (Berkeley) 5/15/85 X .\" X .TH UUENCODE 5 "May 15, 1985" X .AT 3 X--- 1,4 ---- X! .\" @(#)uuencode.5 6.2 (2.11BSD) 2026/9/27 X .\" X .TH UUENCODE 5 "May 15, 1985" X .AT 3 X*************** X*** 6,16 **** X uuencode \- format of an encoded uuencode file X .SH DESCRIPTION X Files output by X! .I uuencode(1C) X consist of a header line, X followed by a number of body lines, X and a trailer line. X! .I Uudecode(1C) X will ignore any lines preceding the header or X following the trailer. X Lines preceding a header must not, of course, X--- 6,16 ---- X uuencode \- format of an encoded uuencode file X .SH DESCRIPTION X Files output by X! .BR uuencode (1) X consist of a header line, X followed by a number of body lines, X and a trailer line. X! .BR uudecode (1) X will ignore any lines preceding the header or X following the trailer. X Lines preceding a header must not, of course, X*************** X*** 48,51 **** X .PP X The trailer line consists of \*(lqend\*(rq on a line by itself. X .SH "SEE ALSO" X! uuencode(1C), uudecode(1C), uusend(1C), uucp(1C), mail(1) X--- 48,51 ---- X .PP X The trailer line consists of \*(lqend\*(rq on a line by itself. X .SH "SEE ALSO" X! uuencode(1), uudecode(1), uusend(1), uucp(1), mail(1) X*** ./usr/src/man/man5/phones.5.old Sun Dec 14 18:08:27 1986 X--- ./usr/src/man/man5/phones.5 Sun Sep 27 20:44:51 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)phones.5 6.2 (Berkeley) 5/16/86 X .\" X .TH PHONES 5 "May 16, 1986" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)phones.5 6.3 (2.11BSD) 2026/9/27 X .\" X .TH PHONES 5 "May 16, 1986" X .UC 5 X*************** X*** 11,22 **** X .SH DESCRIPTION X The file /etc/phones contains the system-wide X private phone numbers for the X! .IR tip (1C) X program. This file is normally unreadable, and so may contain X privileged information. The format of the file is a series of lines X of the form: [\ \et]*. The system name is X one of those defined in the X! .IR remote (5) X file and the phone number is constructed from any sequence of X characters terminated only by ``,'' or the end of the line. X The ``='' and ``*'' characters are X--- 11,22 ---- X .SH DESCRIPTION X The file /etc/phones contains the system-wide X private phone numbers for the X! .BR tip (1) X program. This file is normally unreadable, and so may contain X privileged information. The format of the file is a series of lines X of the form: [\ \et]*. The system name is X one of those defined in the X! .BR remote (5) X file and the phone number is constructed from any sequence of X characters terminated only by ``,'' or the end of the line. X The ``='' and ``*'' characters are X*************** X*** 26,35 **** X .PP X Only one phone number per line is permitted. However, if more than X one line in the file contains the same system name X! .IR tip (1C) X will attempt to dial each one in turn, until it establishes a connection. X .SH FILES X /etc/phones X .SH "SEE ALSO" X! tip(1C), X remote(5) X--- 26,35 ---- X .PP X Only one phone number per line is permitted. However, if more than X one line in the file contains the same system name X! .BR tip (1) X will attempt to dial each one in turn, until it establishes a connection. X .SH FILES X /etc/phones X .SH "SEE ALSO" X! tip(1), X remote(5) X*** ./usr/src/man/man5/aliases.5.old Tue Oct 22 23:48:50 1996 X--- ./usr/src/man/man5/aliases.5 Mon Sep 28 11:22:43 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)aliases.5 6.1.1 (2.11BSD) 1996/10/22 X .\" X .TH ALIASES 5 "October 22, 1996" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)aliases.5 6.1.2 (2.11BSD) 2026/9/28 X .\" X .TH ALIASES 5 "October 22, 1996" X .UC 4 X*************** X*** 12,18 **** X .B /etc/aliases X .SH DESCRIPTION X This file describes user id aliases used by X! .I /usr/sbin/sendmail. X It is formatted as a series of lines of the form X .in +0.5i X name: name_1, name2, name_3, . . . X--- 12,18 ---- X .B /etc/aliases X .SH DESCRIPTION X This file describes user id aliases used by X! .B /usr/sbin/sendmail. X It is formatted as a series of lines of the form X .in +0.5i X name: name_1, name2, name_3, . . . X*************** X*** 38,50 **** X and X .I /etc/aliases.pag X using the program X! .IR newaliases (1). X A X .I newaliases X command should be executed each time the aliases file is changed for the X change to take effect. X .SH "SEE ALSO" X! newaliases(1), dbm(3X), sendmail(8) X .br X SENDMAIL Installation and Operation Guide. X .br X--- 38,50 ---- X and X .I /etc/aliases.pag X using the program X! .BR newaliases (1). X A X .I newaliases X command should be executed each time the aliases file is changed for the X change to take effect. X .SH "SEE ALSO" X! newaliases(1), dbm(3), sendmail(8) X .br X SENDMAIL Installation and Operation Guide. X .br X*************** X*** 51,57 **** X SENDMAIL An Internetwork Mail Router. X .SH BUGS X Because of restrictions in X! .IR dbm (3X) X a single alias cannot contain more than about 1000 bytes of information. X You can get longer aliases by ``chaining''; that is, make the last name in X the alias be a dummy name which is a continuation alias. X--- 51,57 ---- X SENDMAIL An Internetwork Mail Router. X .SH BUGS X Because of restrictions in X! .BR dbm (3) X a single alias cannot contain more than about 1000 bytes of information. X You can get longer aliases by ``chaining''; that is, make the last name in X the alias be a dummy name which is a continuation alias. X*** ./usr/src/man/man5/remote.5.old Sun Dec 14 18:08:28 1986 X--- ./usr/src/man/man5/remote.5 Sun Sep 27 20:47:55 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)remote.5 6.1 (Berkeley) 5/15/85 X .\" X .TH REMOTE 5 "May 15, 1985" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)remote.5 6.2 (2.11BSD) 2026/9/27 X .\" X .TH REMOTE 5 "May 15, 1985" X .UC 5 X*************** X*** 10,19 **** X remote \- remote host description file X .SH DESCRIPTION X The systems known by X! .IR tip (1C) X and their attributes are stored in an ASCII file which X is structured somewhat like the X! .IR termcap (5) X file. Each line in the file provides a description for a single X .IR system . X Fields are separated by a colon (``:''). X--- 10,19 ---- X remote \- remote host description file X .SH DESCRIPTION X The systems known by X! .BR tip (1) X and their attributes are stored in an ASCII file which X is structured somewhat like the X! .BR termcap (5) X file. Each line in the file provides a description for a single X .IR system . X Fields are separated by a colon (``:''). X*************** X*** 28,44 **** X .PP X Entries named ``tip*'' and ``cu*'' X are used as default entries by X! .IR tip , X and the X! .I cu X interface to X! .IR tip , X as follows. When X! .I tip X is invoked with only a phone number, it looks for an entry X of the form ``tip300'', where 300 is the baud rate with X which the connection is to be made. When the X! .I cu X interface is used, entries of the form ``cu300'' are used. X .SH CAPABILITIES X Capabilities are either strings (str), numbers (num), or boolean X--- 28,44 ---- X .PP X Entries named ``tip*'' and ``cu*'' X are used as default entries by X! .BR tip , X and the X! .B cu X interface to X! .BR tip , X as follows. When X! .B tip X is invoked with only a phone number, it looks for an entry X of the form ``tip300'', where 300 is the baud rate with X which the connection is to be made. When the X! .B cu X interface is used, entries of the form ``cu300'' are used. X .SH CAPABILITIES X Capabilities are either strings (str), numbers (num), or boolean X*************** X*** 86,92 **** X (str) X UNIX device(s) to open to establish a connection. X If this file refers to a terminal line, X! .IR tip (1C) X attempts to perform an exclusive open on the device to insure only X one user at a time has access to the port. X .TP 0.5i X--- 86,92 ---- X (str) X UNIX device(s) to open to establish a connection. X If this file refers to a terminal line, X! .BR tip (1) X attempts to perform an exclusive open on the device to insure only X one user at a time has access to the port. X .TP 0.5i X*************** X*** 95,101 **** X Characters marking an end-of-line. X The default is NULL. `~' escapes are only X recognized by X! .I tip X after one of the characters in `el', X or after a carriage-return. X .TP 0.5i X--- 95,101 ---- X Characters marking an end-of-line. X The default is NULL. `~' escapes are only X recognized by X! .B tip X after one of the characters in `el', X or after a carriage-return. X .TP 0.5i X*************** X*** 135,146 **** X Telephone number(s) for this host. X If the telephone number field contains X an @ sign, X! .I tip X searches the file X! .I /etc/phones X file for a list of telephone numbers; X c.f. X! .IR phones (5). X .TP 0.5i X .B tc X (str) X--- 135,146 ---- X Telephone number(s) for this host. X If the telephone number field contains X an @ sign, X! .B tip X searches the file X! .B /etc/phones X file for a list of telephone numbers; X c.f. X! .BR phones (5). X .TP 0.5i X .B tc X (str) X*************** X*** 161,165 **** X .SH FILES X /etc/remote X .SH "SEE ALSO" X! tip(1C), X phones(5) X--- 161,165 ---- X .SH FILES X /etc/remote X .SH "SEE ALSO" X! tip(1), X phones(5) X*** ./usr/src/man/man5/group.5.old Sun Dec 14 18:08:25 1986 X--- ./usr/src/man/man5/group.5 Mon Sep 28 11:24:17 2026 X*************** X*** 1,4 **** X! .\" @(#)group.5 6.1 (Berkeley) 5/15/85 X .\" X .TH GROUP 5 "May 15, 1985" X .AT 3 X--- 1,4 ---- X! .\" @(#)group.5 6.2 (2.11BSD) 2026/9/28 X .\" X .TH GROUP 5 "May 15, 1985" X .AT 3 X*************** X*** 37,44 **** X .SH FILES X /etc/group X .SH "SEE ALSO" X! setgroups(2), initgroups(3X), crypt(3), passwd(1), passwd(5) X .SH BUGS X The X! .IR passwd (1) X! command won't change the passwords. X--- 37,44 ---- X .SH FILES X /etc/group X .SH "SEE ALSO" X! setgroups(2), initgroups(3), crypt(3), passwd(1), passwd(5) X .SH BUGS X The X! .BR passwd (1) X! command won't change the group password. X*** ./usr/src/man/man5/hosts.5.old Sun Dec 14 18:08:27 1986 X--- ./usr/src/man/man5/hosts.5 Mon Sep 28 11:25:48 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)hosts.5 6.3 (Berkeley) 5/14/86 X .\" X .TH HOSTS 5 "May 14, 1986" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)hosts.5 6.4 (2.11BSD) 2026/9/28 X .\" X .TH HOSTS 5 "May 14, 1986" X .UC 5 X*************** X*** 32,44 **** X not interpreted by routines which search the file. X .PP X When using the name server X! .IR named (8), X this file provides a backup when the name server X is not running. X For the name server, it is suggested that only a few addresses X be included in this file. X These include address for the local interfaces that X! .IR ifconfig (8C) X needs at boot time and a few machines on the local network. X .PP X This file may be created from the official host X--- 32,44 ---- X not interpreted by routines which search the file. X .PP X When using the name server X! .BR named (8), X this file provides a backup when the name server X is not running. X For the name server, it is suggested that only a few addresses X be included in this file. X These include address for the local interfaces that X! .BR ifconfig (8) X needs at boot time and a few machines on the local network. X .PP X This file may be created from the official host X*************** X*** 52,58 **** X Network addresses are specified in the conventional X ``.'' notation using the \fIinet_addr\fP() routine X from the Internet address manipulation library, X! .IR inet (3N). X Host names may contain any printable X character other than a field delimiter, newline, X or comment character. X--- 52,58 ---- X Network addresses are specified in the conventional X ``.'' notation using the \fIinet_addr\fP() routine X from the Internet address manipulation library, X! .BR inet (3). X Host names may contain any printable X character other than a field delimiter, newline, X or comment character. X*************** X*** 59,64 **** X .SH FILES X /etc/hosts X .SH "SEE ALSO" X! gethostbyname(3N), ifconfig(8C), named(8) X .br X Name Server Operations Guide for BIND X--- 59,64 ---- X .SH FILES X /etc/hosts X .SH "SEE ALSO" X! gethostbyname(3), ifconfig(8), named(8) X .br X Name Server Operations Guide for BIND X*** ./usr/src/man/man5/networks.5.old Sun Dec 14 18:08:27 1986 X--- ./usr/src/man/man5/networks.5 Mon Sep 28 11:28:32 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)networks.5 6.2 (Berkeley) 5/6/86 X .\" X .TH NETWORKS 5 "May 6, 1986" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)networks.5 6.3 (2.11BSD) 2026/9/28 X .\" X .TH NETWORKS 5 "May 6, 1986" X .UC 5 X*************** X*** 36,47 **** X Network number may be specified in the conventional X ``.'' notation using the \fIinet_network\fP() routine X from the Internet address manipulation library, X! .IR inet (3N). X Network names may contain any printable character other than a field X delimiter, newline, or comment character. X .SH FILES X /etc/networks X .SH "SEE ALSO" X! getnetent(3N) X .SH BUGS X A name server should be used instead of a static file. X--- 36,47 ---- X Network number may be specified in the conventional X ``.'' notation using the \fIinet_network\fP() routine X from the Internet address manipulation library, X! .BR inet (3). X Network names may contain any printable character other than a field X delimiter, newline, or comment character. X .SH FILES X /etc/networks X .SH "SEE ALSO" X! getnetent(3) X .SH BUGS X A name server should be used instead of a static file. X*** ./usr/src/man/man5/plot.5.old Sun Dec 14 18:08:25 1986 X--- ./usr/src/man/man5/plot.5 Mon Sep 28 11:30:32 2026 X*************** X*** 1,4 **** X! .\" @(#)plot.5 6.1 (Berkeley) 5/15/85 X .\" X .TH PLOT 5 "May 15, 1985" X .AT 3 X--- 1,4 ---- X! .\" @(#)plot.5 6.2 (2.11BSD) 2026/9/28 X .\" X .TH PLOT 5 "May 15, 1985" X .AT 3 X*************** X*** 7,18 **** X .SH DESCRIPTION X Files of this format are produced by routines X described in X! .IR plot (3X) X and X! .IR plot (3F), X and are interpreted for various devices X by commands described in X! .IR plot (1G). X A graphics file is a stream of plotting instructions. X Each instruction consists of an ASCII letter X usually followed by bytes of binary information. X--- 7,18 ---- X .SH DESCRIPTION X Files of this format are produced by routines X described in X! .BR plot (3) X and X! .BR plot (3), X and are interpreted for various devices X by commands described in X! .BR plot (1). X A graphics file is a stream of plotting instructions. X Each instruction consists of an ASCII letter X usually followed by bytes of binary information. X*************** X*** 39,45 **** X .PP X Each of the following descriptions begins with the name X of the corresponding routine in X! .IR plot (3X). X .TP 3 X .B m X move: The next four bytes give a new current point. X--- 39,45 ---- X .PP X Each of the following descriptions begins with the name X of the corresponding routine in X! .BR plot (3). X .TP 3 X .B m X move: The next four bytes give a new current point. X*************** X*** 98,104 **** X Space settings that exactly fill the plotting area X with unity scaling appear below for X devices supported by the filters of X! .IR plot (1G). X The upper limit is just outside the plotting area. X In every case the plotting area is taken to be square; X points outside may be displayable on X--- 98,104 ---- X Space settings that exactly fill the plotting area X with unity scaling appear below for X devices supported by the filters of X! .BR plot (1). X The upper limit is just outside the plotting area. X In every case the plotting area is taken to be square; X points outside may be displayable on X*************** X*** 129,132 **** X space(0, 0, 4096, 4096); X .RE X .SH "SEE ALSO" X! plot(1G), plot(3X), plot(3F), graph(1G) X--- 129,132 ---- X space(0, 0, 4096, 4096); X .RE X .SH "SEE ALSO" X! plot(1), plot(3), plot(3F), graph(1) X*** ./usr/src/man/man5/printcap.5.old Sun Dec 14 18:08:27 1986 X--- ./usr/src/man/man5/printcap.5 Mon Sep 28 11:33:19 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)printcap.5 6.4 (Berkeley) 5/14/86 X .\" X .TH PRINTCAP 5 "May 14, 1986" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)printcap.5 6.5 (2.11BSD) 2026/9/28 X .\" X .TH PRINTCAP 5 "May 14, 1986" X .UC 5 X*************** X*** 12,28 **** X .SH SYNOPSIS X /etc/printcap X .SH DESCRIPTION X! .I Printcap X is a simplified version of the X! .IR termcap (5) X data base X used to describe line printers. The spooling system accesses the X! .I printcap X file every time it is used, allowing dynamic X addition and deletion of printers. Each entry in the data base X is used to describe one printer. This data base may not be X substituted for, as is possible for X! .IR termcap , X because it may allow accounting to be bypassed. X .PP X The default printer is normally X--- 12,28 ---- X .SH SYNOPSIS X /etc/printcap X .SH DESCRIPTION X! .B printcap X is a simplified version of the X! .BR termcap (5) X data base X used to describe line printers. The spooling system accesses the X! .B printcap X file every time it is used, allowing dynamic X addition and deletion of printers. Each entry in the data base X is used to describe one printer. This data base may not be X substituted for, as is possible for X! .BR termcap , X because it may allow accounting to be bypassed. X .PP X The default printer is normally X*************** X*** 38,44 **** X for a complete discussion on how setup the database for a given printer. X .SH CAPABILITIES X Refer to X! .IR termcap (5) X for a description of the file layout. X .nf X X--- 38,44 ---- X for a complete discussion on how setup the database for a given printer. X .SH CAPABILITIES X Refer to X! .BR termcap (5) X for a description of the file layout. X .nf X X*************** X*** 52,58 **** X ff str ``\ef'' string to send for a form feed X fo bool false print a form feed when device is opened X fs num 0 like `fc' but set bits X! gf str NULL graph data filter (plot (3X) format) X hl bool false print the burst header page last X ic bool false driver supports (non standard) ioctl to indent printout X if str NULL name of text filter which does accounting X--- 52,58 ---- X ff str ``\ef'' string to send for a form feed X fo bool false print a form feed when device is opened X fs num 0 like `fc' but set bits X! gf str NULL graph data filter (plot (3) format) X hl bool false print the burst header page last X ic bool false driver supports (non standard) ioctl to indent printout X if str NULL name of text filter which does accounting X*************** X*** 91,97 **** X must understand how to invoke it. X .SH FILTERS X The X! .IR lpd (8) X daemon creates a pipeline of X .I filters X to process files for various printer types. X--- 91,97 ---- X must understand how to invoke it. X .SH FILTERS X The X! .BR lpd (8) X daemon creates a pipeline of X .I filters X to process files for various printer types. X*************** X*** 126,132 **** X .B \-l X flag (pass control characters literally) X is specified to X! .IR lpr . X .I Width X and X .I length X--- 126,132 ---- X .B \-l X flag (pass control characters literally) X is specified to X! .BR lpr . X .I Width X and X .I length X*************** X*** 142,148 **** X .B \-h X parameters specify the login name and host name of the owner X of the job respectively. X! .I Acct-file X is passed from the X .B af X .I printcap X--- 142,148 ---- X .B \-h X parameters specify the login name and host name of the owner X of the job respectively. X! .I acct-file X is passed from the X .B af X .I printcap X*************** X*** 193,199 **** X may log either to X .I stderr X or using X! .IR syslog (3), X and must not ignore X .SM SIGINT. X .SH LOGGING X--- 193,199 ---- X may log either to X .I stderr X or using X! .BR syslog (3), X and must not ignore X .SM SIGINT. X .SH LOGGING X*************** X*** 202,208 **** X .IR lp * X programs) X are logged by X! .IR syslog (3) X using the X .I LPR X facility. X--- 202,208 ---- X .IR lp * X programs) X are logged by X! .BR syslog (3) X using the X .I LPR X facility. X*** ./usr/src/man/man5/protocols.5.old Sun Dec 14 18:08:27 1986 X--- ./usr/src/man/man5/protocols.5 Mon Sep 28 11:34:06 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)protocols.5 6.2 (Berkeley) 5/6/86 X .\" X .TH PROTOCOLS 5 "May 6, 1986" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)protocols.5 6.3 (2.11BSD) 2026/9/28 X .\" X .TH PROTOCOLS 5 "May 6, 1986" X .UC 5 X*************** X*** 10,16 **** X protocols \- protocol name data base X .SH DESCRIPTION X The X! .I protocols X file contains information regarding the known protocols used in the DARPA X Internet. For each protocol a single line should be present X with the following information: X--- 10,16 ---- X protocols \- protocol name data base X .SH DESCRIPTION X The X! .B protocols X file contains information regarding the known protocols used in the DARPA X Internet. For each protocol a single line should be present X with the following information: X*************** X*** 36,41 **** X .SH FILES X /etc/protocols X .SH "SEE ALSO" X! getprotoent(3N) X .SH BUGS X A name server should be used instead of a static file. X--- 36,41 ---- X .SH FILES X /etc/protocols X .SH "SEE ALSO" X! getprotoent(3) X .SH BUGS X A name server should be used instead of a static file. X*** ./usr/src/man/man5/resolver.5.old Mon Sep 14 17:54:46 1987 X--- ./usr/src/man/man5/resolver.5 Mon Sep 28 11:35:01 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)resolver.5 1.6 (Berkeley) 9/14/87 X .\" X .TH RESOLVER 5 "September 14, 1987" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)resolver.5 1.7 (2.11BSD) 2026/9/28 X .\" X .TH RESOLVER 5 "September 14, 1987" X .UC 4 X*************** X*** 49,54 **** X .SH FILES X .I /etc/resolv.conf X .SH SEE ALSO X! gethostbyname(3N), resolver(3), named(8) X .br X Name Server Operations Guide for BIND X--- 49,54 ---- X .SH FILES X .I /etc/resolv.conf X .SH SEE ALSO X! gethostbyname(3), resolver(3), named(8) X .br X Name Server Operations Guide for BIND X*** ./usr/src/man/man5/services.5.old Sun Dec 14 18:08:28 1986 X--- ./usr/src/man/man5/services.5 Mon Sep 28 11:35:47 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)services.5 6.2 (Berkeley) 5/6/86 X .\" X .TH SERVICES 5 "May 6, 1986" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)services.5 6.3 (2.11BSD) 2026/9/282026/9/28 X .\" X .TH SERVICES 5 "May 6, 1986" X .UC 5 X*************** X*** 46,51 **** X .SH FILES X /etc/services X .SH "SEE ALSO" X! getservent(3N) X .SH BUGS X A name server should be used instead of a static file. X--- 46,51 ---- X .SH FILES X /etc/services X .SH "SEE ALSO" X! getservent(3) X .SH BUGS X A name server should be used instead of a static file. X*** ./usr/src/man/man5/termcap.5.old Sun Dec 14 18:08:26 1986 X--- ./usr/src/man/man5/termcap.5 Mon Sep 28 11:38:44 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)termcap.5 6.4 (Berkeley) 5/15/86 X .\" X .ie n \{\ X . ds lq \&"\" X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)termcap.5 6.5 (2.11BSD) 2026/9/28 X .\" X .ie n \{\ X . ds lq \&"\" X*************** X*** 29,35 **** X by X .IR vi\^ (1) X and X! .IR curses\^ (3X). X Terminals are described in X .I termcap\^ X by giving a set of capabilities that they have and by describing X--- 29,35 ---- X by X .IR vi\^ (1) X and X! .IR curses\^ (3). X Terminals are described in X .I termcap\^ X by giving a set of capabilities that they have and by describing X*************** X*** 633,639 **** X Cursor addressing and other strings requiring parameters X are described by a X parameterized string capability, with X! .IR printf\^ (3S)-like X escapes X .B %x X in it, X--- 633,639 ---- X Cursor addressing and other strings requiring parameters X are described by a X parameterized string capability, with X! .IR printf\^ (3)-like X escapes X .B %x X in it, X*************** X*** 1657,1663 **** X .DT X /etc/termcap file containing terminal descriptions X .SH SEE ALSO X! ex(1), more(1), tset(1), ul(1), vi(1), curses(3X), printf(3S), term(7). X .SH "CAVEATS AND BUGS" X .B Note: X .I termcap\^ X--- 1657,1663 ---- X .DT X /etc/termcap file containing terminal descriptions X .SH SEE ALSO X! ex(1), more(1), tset(1), ul(1), vi(1), curses(3), printf(3), term(7). X .SH "CAVEATS AND BUGS" X .B Note: X .I termcap\^ X*** ./usr/src/man/man6/Makefile.old Mon Dec 8 13:23:20 2025 X--- ./usr/src/man/man6/Makefile Tue Sep 22 11:38:35 2026 X*************** X*** 14,30 **** X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.4.2 (2.11BSD) 2025/11/25 X # X MDIR= /usr/man/cat6 X! SRCS= aardvark.6 adventure.6 arithmetic.6 backgammon.6 banner.6 \ X! bcd.6 bj.6 boggle.6 canfield.6 chess.6 ching.6 \ X! cribbage.6 doctor.6 fish.6 fortune.6 hangman.6 hunt.6 mille.6 \ X monop.6 moo.6 number.6 quiz.6 rain.6 robots.6 rogue.6 \ X snake.6 trek.6 ttt.6 warp.6 words.6 worm.6 worms.6 wump.6 zork.6 X! OBJS= aardvark.0 adventure.0 arithmetic.0 backgammon.0 banner.0 \ X! bcd.0 bj.0 boggle.0 canfield.0 chess.0 ching.0 \ X! cribbage.0 doctor.0 fish.0 fortune.0 hangman.0 hunt.0 mille.0 \ X monop.0 moo.0 number.0 quiz.0 rain.0 robots.0 rogue.0 \ X snake.0 trek.0 ttt.0 warp.0 words.0 worm.0 worms.0 wump.0 zork.0 X X--- 14,30 ---- X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.4.3 (2.11BSD) 2026/9/19 X # X MDIR= /usr/man/cat6 X! SRCS= adventure.6 arithmetic.6 backgammon.6 banner.6 \ X! bcd.6 boggle.6 canfield.6 chess.6 \ X! cribbage.6 fish.6 fortune.6 hangman.6 hunt.6 mille.6 \ X monop.6 moo.6 number.6 quiz.6 rain.6 robots.6 rogue.6 \ X snake.6 trek.6 ttt.6 warp.6 words.6 worm.6 worms.6 wump.6 zork.6 X! OBJS= adventure.0 arithmetic.0 backgammon.0 banner.0 \ X! bcd.0 boggle.0 canfield.0 chess.0 \ X! cribbage.0 fish.0 fortune.0 hangman.0 hunt.0 mille.0 \ X monop.0 moo.0 number.0 quiz.0 rain.0 robots.0 rogue.0 \ X snake.0 trek.0 ttt.0 warp.0 words.0 worm.0 worms.0 wump.0 zork.0 X X*************** X*** 33,46 **** X .6.0: X /usr/man/manroff $*.6 > $*.0 X X! all: _make_01 X X- _make_01: ${OBJS} X- X clean: FRC X rm -f ${OBJS} X X! install: _make_01 X install -c -o root -g staff -m 444 ${OBJS} ${MDIR} X rm -f ${MDIR}/snscore.0 X ln ${MDIR}/snake.0 ${MDIR}/snscore.0 X--- 33,44 ---- X .6.0: X /usr/man/manroff $*.6 > $*.0 X X! all: ${OBJS} X X clean: FRC X rm -f ${OBJS} X X! install: X install -c -o root -g staff -m 444 ${OBJS} ${MDIR} X rm -f ${MDIR}/snscore.0 X ln ${MDIR}/snake.0 ${MDIR}/snscore.0 X*** ./usr/src/man/man6/mille.6.old Sun Dec 14 18:08:30 1986 X--- ./usr/src/man/man6/mille.6 Sun Sep 27 22:37:26 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)mille.6 6.2 (Berkeley) 5/6/86 X .\" X .TH MILLE 6 "May 6, 1986" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)mille.6 6.3 (2.11BSD) 2026/9/27 X .\" X .TH MILLE 6 "May 6, 1986" X .UC 4 X*************** X*** 78,84 **** X .br X (The game itself is a product of Parker Brothers, Inc.) X .SH "SEE ALSO" X! curses(3X), X .I "Screen Updating and Cursor Movement Optimization:" X .IR "A Library Package" , X Ken Arnold X--- 78,84 ---- X .br X (The game itself is a product of Parker Brothers, Inc.) X .SH "SEE ALSO" X! curses(3), X .I "Screen Updating and Cursor Movement Optimization:" X .IR "A Library Package" , X Ken Arnold X*** ./usr/src/man/man7/environ.7.old Sun Dec 14 18:08:38 1986 X--- ./usr/src/man/man7/environ.7 Sun Sep 27 21:29:42 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)environ.7 6.1 (Berkeley) 5/20/85 X .\" X .TH ENVIRON 7 "May 20, 1985" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)environ.7 6.2 (2.11BSD) 2026/9/27 X .\" X .TH ENVIRON 7 "May 20, 1985" X .UC 5 X*************** X*** 12,18 **** X .B extern char **environ; X .SH DESCRIPTION X An array of strings called the `environment' is made available by X! .IR execve (2) X when a process begins. By convention these strings have the form X .RI ` name = value '. X The following names are used by various commands: X--- 12,18 ---- X .B extern char **environ; X .SH DESCRIPTION X An array of strings called the `environment' is made available by X! .BR execve (2) X when a process begins. By convention these strings have the form X .RI ` name = value '. X The following names are used by various commands: X*************** X*** 19,46 **** X .TP "\w'TERMCAP 'u" X PATH X The sequence of directory prefixes that X! .I sh, time, X! .IR nice (1), X! etc., apply in searching for a file known by an incomplete path name. X The prefixes are separated by `:'. X! .IR Login (1) X sets PATH=:/usr/ucb:/bin:/usr/bin. X .TP X HOME X A user's login directory, set by X! .IR login (1) X from the password file X! .IR passwd (5). X .TP X TERM X The kind of terminal for which output is to be prepared. X This information is used by commands, such as X! .I nroff X or X! .IR plot (1G), X which may exploit special terminal capabilities. See X! .I /etc/termcap X! .RI ( termcap (5)) X for a list of terminal types. X .TP X SHELL X--- 19,45 ---- X .TP "\w'TERMCAP 'u" X PATH X The sequence of directory prefixes that X! .BR sh , X! etc. apply in searching for a program known by an incomplete path name. X The prefixes are separated by `:'. X! .BR login (1) X sets PATH=:/usr/ucb:/bin:/usr/bin. X .TP X HOME X A user's login directory, set by X! .BR login (1) X from the password file X! .BR passwd (5). X .TP X TERM X The kind of terminal for which output is to be prepared. X This information is used by commands, such as X! .B nroff X or X! .BR plot (1), X which may exploit special terminal capabilities. See X! .B /etc/termcap X! .RB ( termcap (5)) X for a list of terminal types. X .TP X SHELL X*************** X*** 48,61 **** X .TP X TERMCAP X The string describing the terminal in TERM, or the name of the termcap file, see X! .IR termcap (5), termcap (3X). X .TP X EXINIT X A startup list of commands read by X! .IR ex (1), X! .IR edit (1), X and X! .IR vi (1). X .TP X USER X The login name of the user. X--- 47,60 ---- X .TP X TERMCAP X The string describing the terminal in TERM, or the name of the termcap file, see X! .BR termcap (5), termcap (3). X .TP X EXINIT X A startup list of commands read by X! .BR ex (1), X! .BR edit (1), X and X! .BR vi (1). X .TP X USER X The login name of the user. X*************** X*** 62,84 **** X .TP X PRINTER X The name of the default printer to be used by X! .IR lpr (1), X! .IR lpq (1), X and X! .IR lprm (1). X .PP X Further names may be placed in the environment by the X .I export X command and `name=value' arguments in X! .IR sh (1), X or by the X! .I setenv X command if you use X! .IR csh (1). X Arguments may also be placed in the environment at the point of an X! .IR execve (2). X It is unwise to conflict with certain X! .IR sh (1) X variables that are frequently exported by `.profile' files: X MAIL, PS1, PS2, IFS. X .SH SEE ALSO X--- 61,83 ---- X .TP X PRINTER X The name of the default printer to be used by X! .BR lpr (1), X! .BR lpq (1), X and X! .BR lprm (1). X .PP X Further names may be placed in the environment by the X .I export X command and `name=value' arguments in X! .BR sh (1), X or by the X! .B setenv X command if you use X! .BR csh (1). X Arguments may also be placed in the environment at the point of an X! .BR execve (2). X It is unwise to conflict with certain X! .BR sh (1) X variables that are frequently exported by `.profile' files: X MAIL, PS1, PS2, IFS. X .SH SEE ALSO X*************** X*** 88,92 **** X sh(1), X execve(2), X system(3), X! termcap(3X), X termcap(5) X--- 87,91 ---- X sh(1), X execve(2), X system(3), X! termcap(3), X termcap(5) X*** ./usr/src/man/man7/hier.7.old Sun Dec 14 18:08:38 1986 X--- ./usr/src/man/man7/hier.7 Sun Sep 27 22:23:14 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)hier.7 6.1 (Berkeley) 5/20/85 X .\" X .TH HIER 7 "May 20, 1985" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)hier.7 6.2 (2.11BSD) 2026/9/27 X .\" X .TH HIER 7 "May 20, 1985" X .UC 4 X*************** X*** 16,26 **** X .IP / X root X .PD 0 X! .IP /vmunix X the kernel binary (UNIX itself) X .IP /lost+found X directory for connecting detached files for X! .IR fsck (8) X .IP /dev/ X devices (4) X .RS X--- 16,26 ---- X .IP / X root X .PD 0 X! .IP /unix X the kernel binary (UNIX itself) X .IP /lost+found X directory for connecting detached files for X! .BR fsck (8) X .IP /dev/ X devices (4) X .RS X*************** X*** 30,68 **** X site specific part of MAKEDEV X .IP console X main console, X! .IR tty (4) X .IP tty* X terminals, X! .IR tty (4) X! .IP hp* X disks, X! .IR hp (4) X! .IP rhp* X raw disks, X! .IR hp (4) X! .IP up* X! UNIBUS disks X! .IR up (4) X .IP ... X .RE X .IP /bin/ X! utility programs, cf /usr/bin/ (1) X .RS X .IP as X assembler X .IP cc X! C compiler executive, cf /lib/ccom, /lib/cpp, /lib/c2 X .IP csh X C shell X .IP ... X .RE X .IP /lib/ X! object libraries and other stuff, cf /usr/lib/ X .RS X .IP libc.a X! system calls, standard I/O, etc. (2,3,3S) X .IP ... X! .IP ccom X C compiler proper X .IP cpp X C preprocessor X--- 30,67 ---- X site specific part of MAKEDEV X .IP console X main console, X! .BR tty (4) X .IP tty* X terminals, X! .BR tty (4) X! .IP xp* X disks, X! .BR xp (4) X! .IP rxp* X raw disks, X! .BR ra (4) X! .IP rra* X .IP ... X .RE X .IP /bin/ X! utility programs, e.g. /usr/bin/ (1) X .RS X .IP as X assembler X .IP cc X! C compiler executive, /lib/c0, /lib/c1, /lib/cpp, /lib/c2 X .IP csh X C shell X .IP ... X .RE X .IP /lib/ X! object libraries and other stuff, e.g. /usr/lib/ X .RS X .IP libc.a X! system calls, standard I/O, etc. (2,3) X .IP ... X! .IP c0 X! .IP c1 X C compiler proper X .IP cpp X C preprocessor X*************** X*** 75,137 **** X .RS X .IP dump X dump program X! .IR dump (8) X .IP passwd X password file, X! .IR passwd (5) X .IP group X group file, X! .IR group (5) X .IP motd X message of the day, X! .IR login (1) X .IP termcap X description of terminal capabilities, X! .IR termcap (5) X .IP ttytype X table of what kind of terminal is on each port, X! .IR ttytype (5) X .IP mtab X mounted file table, X! .IR mtab (5) X! .IP dumpdates X! dump history, X! .IR dump (8) X .IP fstab X file system configuration table X! .IR fstab (5) X .IP disktab X disk characteristics and partition tables, X! .IR disktab (5) X .IP hosts X host name to network address mapping file, X! .IR hosts (5) X .IP networks X network name to network number mapping file, X! .IR networks (5) X .IP protocols X protocol name to protocol number mapping file, X! .IR protocols (5) X .IP services X network services definition file, X! .IR services (5) X .IP remote X names and description of remote hosts for X! .IR tip (1C), X! .IR remote (5) X .IP phones X private phone numbers for remote hosts, as described in X! .IR phones (5) X .IP ttys X properties of terminals, X! .IR ttys (5) X .IP getty X part of X! .IR login , X! .IR getty (8) X .IP init X the parent of all processes, X! .IR init (8) X .IP rc X shell program to bring the system up X .IP rc.local X--- 74,133 ---- X .RS X .IP dump X dump program X! .BR dump (8) X .IP passwd X password file, X! .BR passwd (5) X .IP group X group file, X! .BR group (5) X .IP motd X message of the day, X! .BR login (1) X .IP termcap X description of terminal capabilities, X! .BR termcap (5) X .IP ttytype X table of what kind of terminal is on each port, X! .BR ttytype (5) X .IP mtab X mounted file table, X! .BR mtab (5) X .IP fstab X file system configuration table X! .BR fstab (5) X .IP disktab X disk characteristics and partition tables, X! .BR disktab (5) X .IP hosts X host name to network address mapping file, X! .BR hosts (5) X .IP networks X network name to network number mapping file, X! .BR networks (5) X .IP protocols X protocol name to protocol number mapping file, X! .BR protocols (5) X .IP services X network services definition file, X! .BR services (5) X .IP remote X names and description of remote hosts for X! .BR tip (1), X! .BR remote (5) X .IP phones X private phone numbers for remote hosts, as described in X! .BR phones (5) X .IP ttys X properties of terminals, X! .BR ttys (5) X .IP getty X part of X! .BR login , X! .BR getty (8) X .IP init X the parent of all processes, X! .BR init (8) X .IP rc X shell program to bring the system up X .IP rc.local X*************** X*** 139,147 **** X .I rc X .IP cron X the clock daemon, X! .IR cron (8) X .IP mount X! .IR mount (8) X .IP ... X .RE X .IP /sys/ X--- 135,143 ---- X .I rc X .IP cron X the clock daemon, X! .BR cron (8) X .IP mount X! .BR mount (8) X .IP ... X .RE X .IP /sys/ X*************** X*** 151,159 **** X header (include) files X .RS X .IP acct.h X! .IR acct (5) X .IP stat.h X! .IR stat (2) X .IP ... X .RE X .IP sys/ X--- 147,155 ---- X header (include) files X .RS X .IP acct.h X! .BR acct (5) X .IP stat.h X! .BR stat (2) X .IP ... X .RE X .IP sys/ X*************** X*** 182,232 **** X .IP if_imphost.h X .IP ... X .RE X! .IP vax/ X! source specific to the VAX X .RS X .IP locore.s X .IP machdep.c X .IP ... X .RE X! .IP vaxuba/ X! device drivers for hardware which resides on the UNIBUS X .RS X- .IP uba.c X .IP dh.c X! .IP up.c X .IP ... X .RE X! .IP vaxmba/ X! device drivers for hardware which resides on the MASBUS X .RS X! .IP mba.c X! .IP hp.c X! .IP ht.c X .IP ... X .RE X- .IP vaxif X- network interface drivers for the VAX X- .RS X- .IP if_en.c X- .IP if_ec.c X- .IP if_vv.c X- .IP ... X .RE X- .RE X .IP /tmp/ X! temporary files, usually on a fast device, cf /usr/tmp/ X! .RS X! .IP e* X! used by X! .IR ed (1) X! .IP ctm* X! used by X! .IR cc (1) X! .IP ... X! .RE X .IP /usr/ X! general-pupose directory, usually a mounted file system X .RS X .IP adm/ X administrative information X--- 178,211 ---- X .IP if_imphost.h X .IP ... X .RE X! .IP pdp/ X! source specific to the PDP-11 X .RS X .IP locore.s X .IP machdep.c X .IP ... X .RE X! .IP pdpuba/ X! device drivers X .RS X .IP dh.c X! .IP ra.c X! .IP xp.c X .IP ... X .RE X! .IP pdpif X! network interface drivers for the PDP-11 X .RS X! .IP if_de.c X! .IP if_qe.c X! .IP if_qt.c X .IP ... X .RE X .RE X .IP /tmp/ X! temporary files X .IP /usr/ X! general-pupose directory X .RS X .IP adm/ X administrative information X*************** X*** 233,254 **** X .RS X .IP wtmp X login history, X! .IR utmp (5) X .IP messages X hardware error messages X- .IP tracct X- phototypesetter accounting, X- .IR troff (1) X- .IP lpacct X- line printer accounting X- .IR lpr (1) X- .IP "vaacct, vpacct" X- varian and versatec accounting X- .IR vpr (1), X- .IR vtroff (1), X- .IR pac (8) X .RE X- .RE X .IP /usr\t/bin X .RS X utility programs, to keep /bin/ small X--- 212,221 ---- X .RS X .IP wtmp X login history, X! .BR utmp (5) X .IP messages X hardware error messages X .RE X .IP /usr\t/bin X .RS X utility programs, to keep /bin/ small X*************** X*** 257,266 **** X .RS X .IP stm* X used by X! .IR sort (1) X .IP raster X used by X! .IR plot (1G) X .RE X .IP dict/ X word lists, etc. X--- 224,233 ---- X .RS X .IP stm* X used by X! .BR sort (1) X .IP raster X used by X! .BR plot (1) X .RE X .IP dict/ X word lists, etc. X*************** X*** 267,276 **** X .RS X .IP words X principal word list, used by X! .IR look (1) X .IP spellhist X history file for X! .IR spell (1) X .RE X .IP games/ X .RS X--- 234,243 ---- X .RS X .IP words X principal word list, used by X! .BR look (1) X .IP spellhist X history file for X! .BR spell (1) X .RE X .IP games/ X .RS X*************** X*** 280,286 **** X .RS X .IP quiz.k/ X what X! .IR quiz (6) X knows X .RS X .IP index X--- 247,253 ---- X .RS X .IP quiz.k/ X what X! .BR quiz (6) X knows X .RS X .IP index X*************** X*** 298,312 **** X .RS X .IP a.out.h X object file layout, X! .IR a.out (5) X .IP stdio.h X standard I/O, X! .IR intro (3S) X .IP math.h X- (3M) X .IP ... X .IP sys/ X! system-defined layouts, cf /sys/h X .IP net/ X symbolic link to sys/net X .IP machine/ X--- 265,278 ---- X .RS X .IP a.out.h X object file layout, X! .BR a.out (5) X .IP stdio.h X standard I/O, X! .BR intro (3) X .IP math.h X .IP ... X .IP sys/ X! system-defined layouts, e.g. /sys/h X .IP net/ X symbolic link to sys/net X .IP machine/ X*************** X*** 318,356 **** X .RS X .IP atrun X scheduler for X! .IR at (1) X! .IP lint/ X! utility files for lint X! .RS X! .IP lint[12] X! subprocesses for X! .IR lint (1) X! .IP llib-lc X! dummy declarations for /lib/libc.a, used by X! .IR lint (1) X! .IP llib-lm X! dummy declarations for /lib/libc.m X! .IP ... X! .RE X .IP struct/ X passes of X! .IR struct (1) X .IP ... X .IP tmac/ X macros for X! .IR troff (1) X .RS X .IP tmac.an X macros for X! .IR man (7) X .IP tmac.s X macros for X! .IR ms (7) X .IP ... X .RE X .IP font/ X fonts for X! .IR troff (1) X .RS X .IP ftR X Times Roman X--- 284,309 ---- X .RS X .IP atrun X scheduler for X! .BR at (1) X .IP struct/ X passes of X! .BR struct (1) X .IP ... X .IP tmac/ X macros for X! .BR troff (1) X .RS X .IP tmac.an X macros for X! .BR man (7) X .IP tmac.s X macros for X! .BR ms (7) X .IP ... X .RE X .IP font/ X fonts for X! .BR troff (1) X .RS X .IP ftR X Times Roman X*************** X*** 360,366 **** X .RE X .IP uucp/ X programs and data for X! .IR uucp (1C) X .RS X .IP L.sys X remote system names and numbers X--- 313,319 ---- X .RE X .IP uucp/ X programs and data for X! .BR uucp (1) X .RS X .IP L.sys X remote system names and numbers X*************** X*** 370,379 **** X .RE X .IP units X conversion tables for X! .IR units (1) X .IP eign X list of English words to be ignored by X! .IR ptx (1) X .RE X .RE X .br X--- 323,332 ---- X .RE X .IP units X conversion tables for X! .BR units (1) X .IP eign X list of English words to be ignored by X! .BR ptx (1) X .RE X .RE X .br X*************** X*** 381,387 **** X .IP /usr/\tman/ X .RS X volume 1 of this manual, X! .IR man (1) X .RS X .IP man0/ X general X--- 334,340 ---- X .IP /usr/\tman/ X .RS X volume 1 of this manual, X! .BR man (1) X .RS X .IP man0/ X general X*************** X*** 388,394 **** X .RS X .IP intro X introduction to volume 1, X! .IR ms (7) X format X .IP xx X template for manual page X--- 341,347 ---- X .RS X .IP intro X introduction to volume 1, X! .BR ms (7) X format X .IP xx X template for manual page X*************** X*** 406,413 **** X .IP ... X .RE X .IP msgs/ X! messages, cf X! .IR msgs (1) X .RS X .IP bounds X highest and lowest message X--- 359,366 ---- X .IP ... X .RE X .IP msgs/ X! messages, e.g. X! .BR msgs (1) X .RS X .IP bounds X highest and lowest message X*************** X*** 423,432 **** X .RS X .IP at/ X used by X! .IR at (1) X .IP lpd/ X used by X! .IR lpr (1) X .RS X .IP lock X present when line printer is active X--- 376,385 ---- X .RS X .IP at/ X used by X! .BR at (1) X .IP lpd/ X used by X! .BR lpr (1) X .RS X .IP lock X present when line printer is active X*************** X*** 434,440 **** X copy of file to be printed, if necessary X .IP df* X daemon control file, X! .IR lpd (8) X .IP tf* X transient control file, while X .I lpr X--- 387,393 ---- X copy of file to be printed, if necessary X .IP df* X daemon control file, X! .BR lpd (8) X .IP tf* X transient control file, while X .I lpr X*************** X*** 442,448 **** X .RE X .IP uucp/ X work files and staging area for X! .IR uucp (1C) X .RS X .IP LOGFILE X summary log X--- 395,401 ---- X .RE X .IP uucp/ X work files and staging area for X! .BR uucp (1) X .RS X .IP LOGFILE X summary log X*************** X*** 451,474 **** X .RE X .IP mail/ X mailboxes for X! .IR mail (1) X! .RS X! .TP X! .I name X! mail file for user X! .I name X! .TP X! .IR name .lock X! lock file while X! .I name X! is receiving mail X! .RE X! .IP secretmail/ X! like X! .IR mail / X .IP uucp/ X work files and staging area for X! .IR uucp (1C) X .RS X .IP LOGFILE X summary log X--- 404,413 ---- X .RE X .IP mail/ X mailboxes for X! .BR mail (1) X .IP uucp/ X work files and staging area for X! .BR uucp (1) X .RS X .IP LOGFILE X summary log X*************** X*** 476,482 **** X log file for one transaction X .IP mqueue/ X mail queue for X! .IR sendmail (8) X .RE X .RE X .TP X--- 415,421 ---- X log file for one transaction X .IP mqueue/ X mail queue for X! .BR sendmail (8) X .RE X .RE X .TP X*************** X*** 489,513 **** X .TP X .BR . profile X set environment for X! .IR sh (1), X! .IR environ (7) X .TP X .BR . project X what you are doing (used by ( X! .IR finger (1) X ) X .TP X .BR . cshrc X startup file for X! .IR csh (1) X .TP X .BR . exrc X startup file for X! .IR ex (1) X .TP X .BR . plan X what your short-term plans are (used by X! .IR finger (1) X ) X .TP X .BR . netrc X--- 428,452 ---- X .TP X .BR . profile X set environment for X! .BR sh (1), X! .BR environ (7) X .TP X .BR . project X what you are doing (used by ( X! .BR finger (1) X ) X .TP X .BR . cshrc X startup file for X! .BR csh (1) X .TP X .BR . exrc X startup file for X! .BR ex (1) X .TP X .BR . plan X what your short-term plans are (used by X! .BR finger (1) X ) X .TP X .BR . netrc X*************** X*** 515,532 **** X .TP X .BR . msgsrc X startup file for X! .IR msgs (1) X .TP X .BR . mailrc X startup file for X! .IR mail (1) X .IP calendar X user's datebook for X! .IR calendar (1) X .RE X .IP doc/ X papers, mostly in volume 2 of this manual, typically in X! .IR ms (7) X format X .RS X .IP as/ X--- 454,471 ---- X .TP X .BR . msgsrc X startup file for X! .BR msgs (1) X .TP X .BR . mailrc X startup file for X! .BR mail (1) X .IP calendar X user's datebook for X! .BR calendar (1) X .RE X .IP doc/ X papers, mostly in volume 2 of this manual, typically in X! .BR ms (7) X format X .RS X .IP as/ X*************** X*** 549,555 **** X assembler X .IP ar.c X source for X! .IR ar (1) X .IP ... X .RE X .IP usr.bin/ X--- 488,494 ---- X assembler X .IP ar.c X source for X! .BR ar (1) X .IP ... X .RE X .IP usr.bin/ X*************** X*** 559,565 **** X source for X .I nroff X and X! .IR troff (1) X .RS X .IP font/ X source for font tables, /usr/lib/font/ X--- 498,504 ---- X source for X .I nroff X and X! .BR troff (1) X .RS X .IP font/ X source for font tables, /usr/lib/font/ X*************** X*** 606,612 **** X .RE X .RE X .IP stdio/ X! standard I/O functions (3S) X .RS X .IP fgets.c X .IP fopen.c X--- 545,551 ---- X .RE X .RE X .IP stdio/ X! standard I/O functions (3) X .RS X .IP fgets.c X .IP fopen.c X*************** X*** 619,625 **** X .IP ... X .RE X .IP net/ X! network functions in (3N) X .RS X .IP gethostbyname.c X .IP ... X--- 558,564 ---- X .IP ... X .RE X .IP net/ X! network functions in (3) X .RS X .IP gethostbyname.c X .IP ... X*************** X*** 652,657 **** X--- 591,597 ---- X .IP ... X .IP vi X visual editor X+ .RE X .RE X .RE X .ad X*** ./usr/src/man/man7/term.7.old Sun Dec 14 18:08:38 1986 X--- ./usr/src/man/man7/term.7 Sun Sep 27 22:26:09 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)term.7 6.1 (Berkeley) 5/20/85 X .\" X .TH TERM 7 "May 20, 1985" X .UC 4 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)term.7 6.2 (2.11BSD) 2026/9/27 X .\" X .TH TERM 7 "May 20, 1985" X .UC 4 X*************** X*** 49,55 **** X .SH SEE ALSO X stty(1), X tabs(1), X! plot(1G), X sh(1), X environ(7) X ex(1), X--- 49,55 ---- X .SH SEE ALSO X stty(1), X tabs(1), X! plot(1), X sh(1), X environ(7) X ex(1), X*************** X*** 58,64 **** X ul(1), X tset(1), X termcap(5), X! termcap(3X), X ttytype(5) X .br X troff(1) for X--- 58,64 ---- X ul(1), X tset(1), X termcap(5), X! termcap(3), X ttytype(5) X .br X troff(1) for X*** ./usr/src/man/man8/lpd.8.old Wed Oct 23 15:28:44 1996 X--- ./usr/src/man/man8/lpd.8 Mon Sep 28 11:52:47 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)lpd.8 6.3.1 (2.11BSD) 1996/10/23 X .\" X .TH LPD 8 "October 23, 1996" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)lpd.8 6.3.2 (2.11BSD) 2026/9/28 X .\" X .TH LPD 8 "October 23, 1996" X .UC 5 X*************** X*** 15,31 **** X .B \-l X ] [ port # ] X .SH DESCRIPTION X! .I Lpd X is the line printer daemon (spool area handler) and is normally invoked X at boot time from the X! .IR rc (8) X file. It makes a single pass through the X! .IR printcap (5) X file to find out about the existing printers and X prints any files left after a crash. It then uses the system calls X! .IR listen (2) X and X! .IR accept (2) X to receive requests to print files in the queue, X transfer files to the spooling area, display the queue, X or remove jobs from the queue. In each case, it forks a child to handle X--- 15,31 ---- X .B \-l X ] [ port # ] X .SH DESCRIPTION X! .B lpd X is the line printer daemon (spool area handler) and is normally invoked X at boot time from the X! .BR rc (8) X file. It makes a single pass through the X! .BR printcap (5) X file to find out about the existing printers and X prints any files left after a crash. It then uses the system calls X! .BR listen (2) X and X! .BR accept (2) X to receive requests to print files in the queue, X transfer files to the spooling area, display the queue, X or remove jobs from the queue. In each case, it forks a child to handle X*************** X*** 32,38 **** X the request so the parent can continue to listen for more requests. X The Internet port number used to rendezvous X with other processes is normally obtained with X! .IR getservbyname (3) X but can be changed with the X .IR port # X argument. X--- 32,38 ---- X the request so the parent can continue to listen for more requests. X The Internet port number used to rendezvous X with other processes is normally obtained with X! .BR getservbyname (3) X but can be changed with the X .IR port # X argument. X*************** X*** 39,57 **** X The X .B \-l X flag causes X! .I lpd X to log valid requests received from the network. This can be useful X for debugging purposes. X .PP X Access control is provided by two means. First, All requests must come from X one of the machines listed in the file X! .I /etc/hosts.equiv X or X! .IR /etc/hosts.lpd . X Second, if the ``rs'' capability is specified in the X! .I printcap X entry for the printer being accessed, X! .I lpr X requests will only be honored for those users with accounts on the X machine with the printer. X .PP X--- 39,57 ---- X The X .B \-l X flag causes X! .B lpd X to log valid requests received from the network. This can be useful X for debugging purposes. X .PP X Access control is provided by two means. First, All requests must come from X one of the machines listed in the file X! .B /etc/hosts.equiv X or X! .BR /etc/hosts.lpd . X Second, if the ``rs'' capability is specified in the X! .B printcap X entry for the printer being accessed, X! .B lpr X requests will only be honored for those users with accounts on the X machine with the printer. X .PP X*************** X*** 68,77 **** X in each spool directory is used to prevent multiple daemons from X becoming active simultaneously, and to store information X about the daemon process for X! .IR lpr (1), X! .IR lpq (1), X and X! .IR lprm (1). X After the daemon has successfully set the lock, it scans the directory X for files beginning with X .IR cf . X--- 68,77 ---- X in each spool directory is used to prevent multiple daemons from X becoming active simultaneously, and to store information X about the daemon process for X! .BR lpr (1), X! .BR lpq (1), X and X! .BR lprm (1). X After the daemon has successfully set the lock, it scans the directory X for files beginning with X .IR cf . X*************** X*** 91,106 **** X the password file and causes the banner page to be printed. X .IP T X Title. String to be used as the title for X! .IR pr (1). X .IP H X Host Name. Name of the machine where X! .I lpr X was invoked. X .IP P X Person. Login name of the person who invoked X! .IR lpr . X This is used to verify ownership by X! .IR lprm . X .IP M X Send mail to the specified user when the current print job completes. X .IP f X--- 91,106 ---- X the password file and causes the banner page to be printed. X .IP T X Title. String to be used as the title for X! .BR pr (1). X .IP H X Host Name. Name of the machine where X! .B lpr X was invoked. X .IP P X Person. Login name of the person who invoked X! .BR lpr . X This is used to verify ownership by X! .BR lprm . X .IP M X Send mail to the specified user when the current print job completes. X .IP f X*************** X*** 109,119 **** X Like ``f'' but passes control characters and does not make page breaks. X .IP p X Name of a file to print using X! .IR pr (1) X as a filter. X .IP t X Troff File. The file contains X! .IR troff (1) X output (cat phototypesetter commands). X .IP n X Ditroff File. The file contains device independent troff X--- 109,119 ---- X Like ``f'' but passes control characters and does not make page breaks. X .IP p X Name of a file to print using X! .BR pr (1) X as a filter. X .IP t X Troff File. The file contains X! .BR troff (1) X output (cat phototypesetter commands). X .IP n X Ditroff File. The file contains device independent troff X*************** X*** 120,130 **** X output. X .IP d X DVI File. The file contains X! .IR Tex (l) X output (DVI format from Standford). X .IP g X Graph File. The file contains data produced by X! .IR plot (3X). X .IP c X Cifplot File. The file contains data produced by X .IR cifplot . X--- 120,130 ---- X output. X .IP d X DVI File. The file contains X! .BR tex (l) X output (DVI format from Standford). X .IP g X Graph File. The file contains data produced by X! .BR plot (3). X .IP c X Cifplot File. The file contains data produced by X .IR cifplot . X*************** X*** 142,148 **** X Troff Font S. Name of the font file to use instead of the default. X .IP W X Width. Changes the page width (in characters) used by X! .IR pr (1) X and the text filters. X .IP I X Indent. The number of characters to indent the output by (in ascii). X--- 142,148 ---- X Troff Font S. Name of the font file to use instead of the default. X .IP W X Width. Changes the page width (in characters) used by X! .BR pr (1) X and the text filters. X .IP I X Indent. The number of characters to indent the output by (in ascii). X*************** X*** 151,173 **** X .IP N X File name. The name of the file which is being printed, or a blank X for the standard input (when X! .I lpr X is invoked in a pipeline). X .in -5 X .PP X If a file can not be opened, a message will be logged via X! .IR syslog (3) X using the X .I LOG_LPR X facility. X! .I Lpd X will try up to 20 times X to reopen a file it expects to be there, after which it will X skip the file to be printed. X .PP X! .I Lpd X uses X! .IR flock (2) X to provide exclusive access to the lock file and to prevent multiple X deamons from becoming active simultaneously. If the daemon should be killed X or die unexpectedly, the lock file need not be removed. X--- 151,173 ---- X .IP N X File name. The name of the file which is being printed, or a blank X for the standard input (when X! .B lpr X is invoked in a pipeline). X .in -5 X .PP X If a file can not be opened, a message will be logged via X! .BR syslog (3) X using the X .I LOG_LPR X facility. X! .B lpd X will try up to 20 times X to reopen a file it expects to be there, after which it will X skip the file to be printed. X .PP X! .B lpd X uses X! .BR flock (2) X to provide exclusive access to the lock file and to prevent multiple X deamons from becoming active simultaneously. If the daemon should be killed X or die unexpectedly, the lock file need not be removed. X*************** X*** 176,186 **** X The first is the process id of the daemon and the second is the control X file name of the current job being printed. The second line is updated to X reflect the current status of X! .I lpd X for the programs X! .IR lpq (1) X and X! .IR lprm (1). X .SH FILES X .nf X .ta \w'/etc/printcap 'u X--- 176,186 ---- X The first is the process id of the daemon and the second is the control X file name of the current job being printed. The second line is updated to X reflect the current status of X! .B lpd X for the programs X! .BR lpq (1) X and X! .BR lprm (1). X .SH FILES X .nf X .ta \w'/etc/printcap 'u X*** ./usr/src/man/man8/adduser.8.old Wed Oct 23 15:14:33 1996 X--- ./usr/src/man/man8/adduser.8 Tue Mar 31 14:13:01 2026 X*************** X*** 13,27 **** X .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. X .\" X! .\" @(#)adduser.8 6.6.1 (2.11BSD) 1996/10/23 X .\" X! .TH ADDUSER 8 "October 23, 1996" X .UC 4 X .SH NAME X adduser \- procedure for adding new users X .SH DESCRIPTION X A new user must choose a login name, which must not already appear in X! .IR /etc/passwd or X .IR /etc/aliases . X It must also not begin with the hyphen (``-'') character. X It is strongly recommended that it be all lower-case, and not contain X--- 13,28 ---- X .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. X .\" X! .\" @(#)adduser.8 6.6.2 (2.11BSD) 2026/3/31 X .\" X! .TH ADDUSER 8 "March 31, 2026" X .UC 4 X .SH NAME X adduser \- procedure for adding new users X .SH DESCRIPTION X A new user must choose a login name, which must not already appear in X! .IR /etc/passwd X! or X .IR /etc/aliases . X It must also not begin with the hyphen (``-'') character. X It is strongly recommended that it be all lower-case, and not contain X*** ./usr/src/man/man8/rc.8.old Sun Dec 14 18:08:43 1986 X--- ./usr/src/man/man8/rc.8 Tue Mar 31 19:50:30 2026 X*************** X*** 2,23 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)rc.8 6.1 (Berkeley) 4/27/85 X .\" X! .TH RC 8 "April 27, 1985" X .UC 4 X .SH NAME X rc \- command script for auto-reboot and daemons X .SH SYNOPSIS X .B /etc/rc X- .br X- .B /etc/rc.local X .SH DESCRIPTION X! .I Rc X! is the command script which controls the automatic reboot and X! .I rc.local X! is the script holding commands which are pertinent only X! to a specific site. X .PP X When an automatic reboot is in progress, X .I rc X--- 2,18 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)rc.8 6.2 (2.11BSD) 2026/3/31 X .\" X! .TH RC 8 "March 31, 2026" X .UC 4 X .SH NAME X rc \- command script for auto-reboot and daemons X .SH SYNOPSIS X .B /etc/rc X .SH DESCRIPTION X! .I rc X! is the command script which controls the automatic reboot. X .PP X When an automatic reboot is in progress, X .I rc X*************** X*** 41,62 **** X is invoked when a single user shell terminates (see X .IR init (8)), X starts all the daemons on the system, preserves editor files X! and clears the scratch directory X! .B /tmp. X! .I Rc.local X! is executed immediately before any other commands after a successful X! .IR fsck . X! Normally, the first commands placed in the X! .I rc.local X! file define the machine's name, using X! .IR hostname (1), X! and save any possible core image that might have been X! generated as a result of a system crash, X .IR savecore (8). X! The latter command is included in the X! .I rc.local X! file because the directory in which core dumps are saved X! is usually site specific. X .SH SEE ALSO X init(8), X reboot(8), X--- 36,47 ---- X is invoked when a single user shell terminates (see X .IR init (8)), X starts all the daemons on the system, preserves editor files X! and clears the scratch directory \fB/tmp\fP, runs X .IR savecore (8). X! to save core image that might have been generated as a result of a X! system crash, X! runs /etc/netstart to start the network, and finally launches the X! system service and network daemons. X .SH SEE ALSO X init(8), X reboot(8), X*** ./usr/src/man/man8/dump.8.old Sun Nov 17 23:46:24 1996 X--- ./usr/src/man/man8/dump.8 Thu May 14 17:46:46 2026 X*************** X*** 1,5 **** X .\" X! .\" @(#)dump.8 1.2 (2.11BSD GTE) 1996/11/17 X .\" X .TH DUMP 8 X .UC 4 X--- 1,5 ---- X .\" X! .\" @(#)dump.8 1.3 (2.11BSD) 2026/5/14 X .\" X .TH DUMP 8 X .UC 4 X*************** X*** 66,80 **** X .I ctime(3) X format dump date. X .I /etc/dumpdates X! may be edited to change any of the fields, X if necessary. X- Note that X- .I /etc/dumpdates X- is in a format different from that which previous versions of X- .I dump X- maintained in X- .I /etc/ddate, X- although the information content is identical. X .TP 5 X .B s X The size of the dump tape is specified in feet. X--- 66,73 ---- X .I ctime(3) X format dump date. X .I /etc/dumpdates X! may be edited to change any of the fields X if necessary. X .TP 5 X .B s X The size of the dump tape is specified in feet. X*************** X*** 186,219 **** X .I dump X is busy, X and will be for some time. X- .PP X- Now a short suggestion on how to X- perform dumps. X- Start with a full level 0 dump X- .PP X- dump 0un X- .PP X- Next, dumps of active file X- systems are taken on a daily basis, X- using a modified Tower of Hanoi algorithm, X- with this sequence of dump levels: X- .ce 1 X- 3 2 5 4 7 6 9 8 9 9 ... X- For the daily dumps, a set of 10 tapes per dumped file system X- is used on a cyclical basis. X- Each week, a level 1 dump is taken, and X- the daily Hanoi sequence repeats with 3. X- For weekly dumps, a set of 5 tapes per dumped file system is X- used, also on a cyclical basis. X- Each month, a level 0 dump is taken X- on a set of fresh tapes that is saved forever. X .SH FILES X .nf X .ta \w'/etc/dumpdates\ \ 'u X /dev/rxp0a default filesystem to dump from X /dev/rmt0 default tape unit to dump to X! /etc/ddate old format dump date record (obsolete after \fB\-J\fR option) X! /etc/dumpdates new format dump date record X /etc/fstab Dump table: file systems and frequency X /etc/group to find group \fIoperator\fP X .fi X--- 179,190 ---- X .I dump X is busy, X and will be for some time. X .SH FILES X .nf X .ta \w'/etc/dumpdates\ \ 'u X /dev/rxp0a default filesystem to dump from X /dev/rmt0 default tape unit to dump to X! /etc/dumpdates dump date record X /etc/fstab Dump table: file systems and frequency X /etc/group to find group \fIoperator\fP X .fi X*** ./usr/src/man/man8/Makefile.old Mon Dec 8 13:23:54 2025 X--- ./usr/src/man/man8/Makefile Sun May 17 16:36:29 2026 X*************** X*** 14,27 **** X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.4.9 (2.11BSD) 2025/11/25 X # X MDIR= /usr/man/cat8 X SRCS= adduser.8 autoconfig.8 \ X bugfiler.8 crash.8 \ X boot.8 \ X! drtest.8 dump.8 dumpdir.8 \ X! format.8 fsck.8 \ X getty.8 \ X intro.8 lpc.8 lpd.8 makedev.8 \ X makekey.8 \ X--- 14,27 ---- X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.4.10 (2.11BSD) 2026/5/17 X # X MDIR= /usr/man/cat8 X SRCS= adduser.8 autoconfig.8 \ X bugfiler.8 crash.8 \ X boot.8 \ X! dump.8 dumpdir.8 \ X! fsck.8 \ X getty.8 \ X intro.8 lpc.8 lpd.8 makedev.8 \ X makekey.8 \ X*************** X*** 35,42 **** X OBJS= adduser.0 autoconfig.0 \ X bugfiler.0 crash.0 \ X boot.0 \ X! drtest.0 dump.0 dumpdir.0 \ X! format.0 fsck.0 \ X getty.0 \ X intro.0 lpc.0 lpd.0 makedev.0 \ X makekey.0 \ X--- 35,42 ---- X OBJS= adduser.0 autoconfig.0 \ X bugfiler.0 crash.0 \ X boot.0 \ X! dump.0 dumpdir.0 \ X! fsck.0 \ X getty.0 \ X intro.0 lpc.0 lpd.0 makedev.0 \ X makekey.0 \ X*** ./usr/src/man/man8/intro.8.old Sun Dec 14 18:08:46 1986 X--- ./usr/src/man/man8/intro.8 Sun Sep 27 20:29:00 2026 X*************** X*** 2,11 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)intro.8 6.3 (Berkeley) 5/29/86 X .\" X! .TH INTRO 8 "May 29, 1986" X! .UC 5 X .SH NAME X intro \- introduction to system maintenance and operation commands X .SH DESCRIPTION X--- 2,11 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)intro.8 6.4 (2.11BSD) 2026/9/27 X .\" X! .TH INTRO 8 "September 27, 2026" X! .UC 2 X .SH NAME X intro \- introduction to system maintenance and operation commands X .SH DESCRIPTION X*************** X*** 12,31 **** X This section contains information related to system operation X and maintenance. X It describes commands used to create new file systems, X! .IR newfs , X verify the integrity of the file systems, X! .IR fsck , X control disk usage, X! .IR edquota , X maintain system backups, X! .IR dump , X! and recover files when disks die an untimely death, X! .IR restore . X! The section X! .I format X! should be consulted when formatting disk packs. X! Network related services are distinguished as 8C. X! The section X! .I crash X! should be consulted in understanding how to interpret system X! crash dumps. X--- 12,60 ---- X This section contains information related to system operation X and maintenance. X It describes commands used to create new file systems, X! .BR newfs , X verify the integrity of the file systems, X! .BR fsck , X control disk usage, X! .BR edquota , X maintain system backups, X! .BR dump , X! .BR rdump , X! recover files when disks die an untimely death, X! .BR restore , X! add user accounts, X! .BR adduser , X! detect devices for the kernel, X! .BR autoconfig , X! boot the kernel and start system services, X! .BR boot , X! .BR rc , X! file bug reports, X! .BR bugfiler , X! guidlines for analyzing kernel crashes, X! .BR crash , X! enable/disable terminal lines, X! .BR getty , X! manage the printing subsystem, X! .BR lpc , X! .BR lpd , X! .BR pac , X! create the device name to major/minor database, X! .BR makedev , X! generate encryption keys, X! .BR makekey , X! send/receive mail, X! .BR sendmail , X! persistent text and append-only directories, X! .BR sticky , X! synchronize buffer cache to disk, X! .BR sync , X! maintain system time, X! .BR timed , X! .BR timedc, X! the uucp communications system, X! .BR uucico , X! .BR uuclean , X! .BR uupoll , X! .BR uusnap , X! .B uuxqt X*** ./usr/src/man/man8/uusnap.8.old Sun Dec 14 18:08:49 1986 X--- ./usr/src/man/man8/uusnap.8 Sun Sep 27 20:32:07 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)uusnap.8c 6.2 (Berkeley) 4/24/86 X .\" X! .TH UUSNAP 8C "April 24, 1986" X .UC 5 X .SH NAME X uusnap \- show snapshot of the UUCP system X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)uusnap.8 6.3 (2.11BSD) 2026/9/27 X .\" X! .TH UUSNAP 8 "April 24, 1986" X .UC 5 X .SH NAME X uusnap \- show snapshot of the UUCP system X*************** X*** 11,17 **** X .SH SYNOPSIS X .B uusnap X .SH DESCRIPTION X! .I Uusnap X displays in tabular format a synopsis of the current UUCP X situation. The format of each line is as follows: X .PP X--- 11,17 ---- X .SH SYNOPSIS X .B uusnap X .SH DESCRIPTION X! .B uusnap X displays in tabular format a synopsis of the current UUCP X situation. The format of each line is as follows: X .PP X*************** X*** 27,32 **** X call, and the count of the number of times that UUCP has tried X (unsuccessfully) to reach the site. X .SH SEE ALSO X! uucp(1C), uux(1C), uuq(1C), uucico(8C) X! .br X! .I "UUCP Implementation Guide" X--- 27,32 ---- X call, and the count of the number of times that UUCP has tried X (unsuccessfully) to reach the site. X .SH SEE ALSO X! uucp(1), uux(1), uuq(1), uucico(8) X! .sp X! "UUCP Implementation Guide" X*** ./usr/src/man/man8/timed.8.old Mon Nov 18 00:32:15 1996 X--- ./usr/src/man/man8/timed.8 Mon Sep 28 11:43:42 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)timed.8 6.1.1 (2.11BSD) 1996/11/17 X .\" X .TH TIMED 8 "November 17, 1996" X .UC 6 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)timed.8 6.1.2 (2.11BSD) 2026/9/28 X .\" X .TH TIMED 8 "November 17, 1996" X .UC 6 X*************** X*** 13,26 **** X .B timed X [ -t ] [ -M ] [ -n network ] [ -i network ] X .SH DESCRIPTION X! .I Timed X is the time server daemon and is normally invoked X at boot time from the X! .IR rc (8) X file. X It synchronizes the host's time with the time of other X machines in a local area network running X! .IR timed (8). X These time servers will slow down the clocks of some machines X and speed up the clocks of others to bring them to the average network time. X The average network time is computed from measurements of clock differences X--- 13,26 ---- X .B timed X [ -t ] [ -M ] [ -n network ] [ -i network ] X .SH DESCRIPTION X! .B timed X is the time server daemon and is normally invoked X at boot time from the X! .BR rc (8) X file. X It synchronizes the host's time with the time of other X machines in a local area network running X! .BR timed (8). X These time servers will slow down the clocks of some machines X and speed up the clocks of others to bring them to the average network time. X The average network time is computed from measurements of clock differences X*************** X*** 29,47 **** X The service provided by \fItimed\fP is based on a master-slave X scheme. X When X! .IR timed (8) X is started on a machine, it asks the master for the network time X and sets the host's clock to that time. X After that, it accepts synchronization messages periodically sent by X the master and calls X! .IR adjtime (2) X to perform the needed corrections on the host's clock. X .PP X It also communicates with X! .IR date (1) X in order to set the date globally, X and with X! .IR timedc (8), X a timed control program. X If the machine running the master crashes, then the slaves will elect X a new master from among slaves running with the X--- 29,47 ---- X The service provided by \fItimed\fP is based on a master-slave X scheme. X When X! .BR timed (8) X is started on a machine, it asks the master for the network time X and sets the host's clock to that time. X After that, it accepts synchronization messages periodically sent by X the master and calls X! .BR adjtime (2) X to perform the needed corrections on the host's clock. X .PP X It also communicates with X! .BR date (1) X in order to set the date globally, X and with X! .BR timedc (8), X a timed control program. X If the machine running the master crashes, then the slaves will elect X a new master from among slaves running with the X*************** X*** 48,54 **** X .B \-M X flag. X A X! .IR timed X running without the X .B \-M X flag will remain a slave. X--- 48,54 ---- X .B \-M X flag. X A X! .B timed X running without the X .B \-M X flag will remain a slave. X*************** X*** 57,64 **** X flag enables \fItimed\fP to trace the messages it receives in the X file /usr/adm/timed.log. X Tracing can be turned on or off by the program X! .IR timedc (8). X! .I Timed X normally checks for a master time server on each network to which X it is connected, except as modified by the options described below. X It will request synchronization service from the first master server X--- 57,64 ---- X flag enables \fItimed\fP to trace the messages it receives in the X file /usr/adm/timed.log. X Tracing can be turned on or off by the program X! .BR timedc (8). X! .B timed X normally checks for a master time server on each network to which X it is connected, except as modified by the options described below. X It will request synchronization service from the first master server X*************** X*** 72,78 **** X .B \-n X flag, followed by the name of a network which the host is connected to X (see X! .IR networks (5)), X overrides the default choice of the X network addresses made by the program. X Each time the X--- 72,78 ---- X .B \-n X flag, followed by the name of a network which the host is connected to X (see X! .BR networks (5)), X overrides the default choice of the X network addresses made by the program. X Each time the X*************** X*** 83,89 **** X .B \-i X flag, followed by the name of a network to which the host is connected X (see X! .IR networks (5)), X overrides the default choice of the network addresses made by the program. X Each time the X .B \-i X--- 83,89 ---- X .B \-i X flag, followed by the name of a network to which the host is connected X (see X! .BR networks (5)), X overrides the default choice of the network addresses made by the program. X Each time the X .B \-i X*************** X*** 101,107 **** X /usr/adm/timed.masterlog log file for master timed X .fi X .SH "SEE ALSO" X! date(1), adjtime(2), gettimeofday(2), icmp(4P), timedc(8), X .br X \fITSP: The Time Synchronization Protocol for UNIX 4.3BSD\fP, X R. Gusella and S. Zatti X--- 101,107 ---- X /usr/adm/timed.masterlog log file for master timed X .fi X .SH "SEE ALSO" X! date(1), adjtime(2), gettimeofday(2), icmp(4), timedc(8), X .br X \fITSP: The Time Synchronization Protocol for UNIX 4.3BSD\fP, X R. Gusella and S. Zatti X*** ./usr/src/man/man8/timedc.8.old Mon Nov 18 00:31:55 1996 X--- ./usr/src/man/man8/timedc.8 Mon Sep 28 11:44:43 2026 X*************** X*** 3,9 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)timedc.8 6.1.1 (2.11BSD) 1996/11/17 X .\" X .TH TIMEDC 8 "November 17, 1996" X .UC 6 X--- 3,9 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)timedc.8 6.1.2 (2.11BSD) 2026/9/28 X .\" X .TH TIMEDC 8 "November 17, 1996" X .UC 6 X*************** X*** 14,20 **** X .B timedc X [ command [ argument ... ] ] X .SH DESCRIPTION X! .I Timedc X is used to control the operation of the \fItimed\fP program. X It may be used to: X .IP \(bu X--- 14,20 ---- X .B timedc X [ command [ argument ... ] ] X .SH DESCRIPTION X! .B timedc X is used to control the operation of the \fItimed\fP program. X It may be used to: X .IP \(bu X*************** X*** 27,40 **** X perform various debugging actions. X .PP X Without any arguments, X! .I timedc X will prompt for commands from the standard input. X If arguments are supplied, X! .IR timedc X interprets the first argument as a command and the remaining X arguments as parameters to the command. The standard input X may be redirected causing X! .I timedc X to read commands from a file. X Commands may be abbreviated; X recognized commands are: X--- 27,40 ---- X perform various debugging actions. X .PP X Without any arguments, X! .B timedc X will prompt for commands from the standard input. X If arguments are supplied, X! .B timedc X interprets the first argument as a command and the remaining X arguments as parameters to the command. The standard input X may be redirected causing X! .B timedc X to read commands from a file. X Commands may be abbreviated; X recognized commands are: X*************** X*** 61,67 **** X Exit from timedc. X .PP X Other commands may be included for use in testing and debugging X! .IR timed ; X the help command and X the program source may be consulted for details. X .SH FILES X--- 61,67 ---- X Exit from timedc. X .PP X Other commands may be included for use in testing and debugging X! .BR timed ; X the help command and X the program source may be consulted for details. X .SH FILES X*************** X*** 71,77 **** X /usr/adm/timed.masterlog log file for master timed X .fi X .SH "SEE ALSO" X! date(1), adjtime(2), icmp(4P), timed(8), X .br X \fITSP: The Time Synchronization Protocol for UNIX 4.3BSD\fP, X R. Gusella and S. Zatti X--- 71,77 ---- X /usr/adm/timed.masterlog log file for master timed X .fi X .SH "SEE ALSO" X! date(1), adjtime(2), icmp(4), timed(8), X .br X \fITSP: The Time Synchronization Protocol for UNIX 4.3BSD\fP, X R. Gusella and S. Zatti X*** ./usr/src/man/man8/boot.8.old Fri May 24 23:02:05 1996 X--- ./usr/src/man/man8/boot.8 Fri Oct 23 08:18:26 2026 X*************** X*** 1,6 **** X .\" Public domain. May 24, 1996. X .\" X! .\" @(#)reboot.8 1.0 (2.11BSD) 1996/5/24 X .\" X .TH BOOT 8 "May 24, 1996" X .UC 2 X--- 1,6 ---- X .\" Public domain. May 24, 1996. X .\" X! .\" @(#)reboot.8 1.1 (2.11BSD) 2026/10/23 X .\" X .TH BOOT 8 "May 24, 1996" X .UC 2 X*************** X*** 180,186 **** X .nf X .ne 10 X xp RM02/03/05, RP04/05/06, DIVA, SI Eagle, CDC 9766, Fuji 160 X- rp RP03 X rk RK05 X hk RK06/7 X rl RL01/2 X--- 180,185 ---- X*************** X*** 213,265 **** X And finally the specification X \*(lqts(0,3)\*(rq would cause the fourth file on a tape threaded on `ts' X tape drive 0 to be loaded and executed. X- .PP X- .B "Cold boot loaders:" X- The following programs to load and execute the primary bootstrap may be X- installed in read-only memories or manually keyed into main memory. Each X- program is position-independent but should be placed well above location 0 X- so it will not be overwritten. Each reads a block from the beginning of a X- device into core location zero. The octal words constituting the program X- are listed on the left. X- .PP X- .nf X- .if n .ta 3 11 15 23 38 X- .if t .ta .3i 1i 1.4i 2i 3.5i X- .ne 10 X- RK (drive 0): X- 012700 mov $rkda,r0 X- 177412 X- 005040 clr \-(r0) / rkda cleared by start X- 010040 mov r0,\-(r0) X- 012740 mov $5,\-(r0) X- 000005 X- 105710 1: tstb (r0) X- 002376 bge 1b X- 005007 clr pc X- .PP X- .ne 11 X- RP (drive 0) X- 012700 mov $rpmr,r0 X- 176726 X- 005040 clr \-(r0) X- 005040 clr \-(r0) X- 005040 clr \-(r0) X- 010040 mov r0,\-(r0) X- 012740 mov $5,\-(r0) X- 000005 X- 105710 1: tstb (r0) X- 002376 bge 1b X- 005007 clr pc X- .PP X- .ne 7 X- TM (drive 0): X- 012700 mov $tmba,r0 X- 172526 X- 010040 mov r0,\-(r0) X- 012740 mov $60003,\-(r0) X- 060003 X- 000777 br . X- .DT X .SH FILES X .ta \w'/mdec/xxuboot 'u X /unix system code X--- 212,217 ---- X*************** X*** 270,276 **** X .br X /mdec/xxuboot sector 0 boot blocks, xx is disk type X .SH "SEE ALSO" X! crash(8V), X autoconfig(8), X reboot(2), X disklabel(8), X--- 222,228 ---- X .br X /mdec/xxuboot sector 0 boot blocks, xx is disk type X .SH "SEE ALSO" X! crash(8), X autoconfig(8), X reboot(2), X disklabel(8), X*** ./usr/src/new/m11/READme.old Fri Dec 10 23:12:25 1982 X--- ./usr/src/new/m11/READme Thu Jun 11 16:07:44 2026 X*************** X*** 1,3 **** X--- 1,5 ---- X+ macxrf info updated 2026/6/11 2.11BSD X+ X This is the Jim Reeds version of the Harvard m11. X X Here is code for 2 programs: X*************** X*** 13,22 **** X X To install: X X! You must put macxrf into /usr/ucb/macxrf. This path name is X! buried in the m11 source file exec.m11 if you want to change it. The assembler X! itself can live anywhere. /usr/new/m11 and /usr/ucb/m11 are two X! likely places to put it. X X You might need a copy of the Jim Reeds souped up l11 to link this X program. Source is in ../l11. The changes involved with l11 are minor. X--- 15,23 ---- X X To install: X X! You must put macxrf into /usr/new/macxrf. This path name is X! in the m11 source file exec.m11 if you want to change it. The assembler X! itself can live anywhere. X X You might need a copy of the Jim Reeds souped up l11 to link this X program. Source is in ../l11. The changes involved with l11 are minor. X*** ./usr/src/new/ansi/vmsprep.1.old Tue Aug 13 19:21:22 1985 X--- ./usr/src/new/ansi/vmsprep.1 Tue Jun 23 21:41:46 2026 X*************** X*** 1,14 **** X! .TH VMSPREP LOCAL "4/10/85 UCB Local" X .SH NAME X! vmsprep - VMS tape preperation aid X .SH SYNOPSIS X .B vmsprep X [-] [name ...] X .SH DESCRIPTION X! .I Vmsprep X traverses hierarchies of files and prepares them for X transportation to VMS. X! Since ANSI stardard tapes (the VMS standard) do X not allow hierarchy, this program provides a X method of flattening the hierarchy onto a tape X in such a way that it can be unpacked on VMS X--- 1,15 ---- X! .\" @(#)vmsprep.1 1.1 (2.11BSD) 2026/6/23 X! .TH VMSPREP 1 "April 10, 1985" X .SH NAME X! vmsprep - VMS tape preparation aid X .SH SYNOPSIS X .B vmsprep X [-] [name ...] X .SH DESCRIPTION X! .I vmsprep X traverses hierarchies of files and prepares them for X transportation to VMS. X! Since ANSI standard tapes (the VMS standard) do X not allow hierarchy, this program provides a X method of flattening the hierarchy onto a tape X in such a way that it can be unpacked on VMS X*************** X*** 41,49 **** X .RS X vmsprep - tree1 tree2 file | ansitape cln trees - X .RE X! .br X! .I Then on a VMS machine X! .br X .RS X mount MFA0: trees X .br X--- 42,50 ---- X .RS X vmsprep - tree1 tree2 file | ansitape cln trees - X .RE X! .sp X! Then on a VMS machine X! .sp X .RS X mount MFA0: trees X .br X*************** X*** 65,71 **** X continues. X .br X .SH "SEE ALSO" X! ansitape(l) X .SH BUGS X Extra periods in file names may not be dealt with optimally. X .br X--- 66,72 ---- X continues. X .br X .SH "SEE ALSO" X! ansitape(1) X .SH BUGS X Extra periods in file names may not be dealt with optimally. X .br X*************** X*** 78,81 **** X The exclusion of RCS and SCCS files should be controlled by a command line flag. X .br X Assumes VMS v4.0 or greater for long file names. X- .br X--- 79,81 ---- X*** ./usr/src/new/jove/jove.c.old Thu Aug 11 05:35:50 1988 X--- ./usr/src/new/jove/jove.c Thu Sep 17 12:59:25 2026 X*************** X*** 1,85 **** X! /*************************************************************************** X! * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X! * is provided to you without charge, and with no warranty. You may give * X! * away copies of JOVE, including sources, provided that this notice is * X! * included in all the files. * X! ***************************************************************************/ X X /* Contains the main loop initializations, and some system dependent X type things, e.g. putting terminal in CBREAK mode, etc. */ X X #include "jove.h" X #include "io.h" X #include "termcap.h" X X! #ifdef MAC X! # include "mac.h" X! #else X! # include X! # include X! #endif X! X #include X #include X X! #ifdef UNIX X! # ifndef SYSV X! # include X! # else X! # include X! # endif /* SYSV */ X! #endif /* UNIX */ X X- #ifdef MSDOS X- # include X- #endif /* MSDOS */ X- X- #ifndef MAC X- # include X- #endif X- X- #ifdef MAC X- # undef private X- # define private X- #endif X- X- #ifdef LINT_ARGS X- extern long time(long *); X- private void break_off(void); X- private void break_rst(void); X- #else X extern long time(); X private void break_off(); X private void break_rst(); X- #endif X X- #ifdef MAC X- # undef private X- # define private static X- #endif X- X- #ifdef UNIX X- # ifdef TIOCSLTC X struct ltchars ls1, ls2; X- # endif /* TIOCSLTC */ X- X- # ifdef TIOCGETC X struct tchars tc1, tc2; X- # endif X- X- # ifdef PASS8 /* use pass8 instead of raw for meta-key */ X int lmword1, lmword2; /* local mode word */ X- # endif X- X- # ifdef BRLUNIX X- struct sg_brl sg1, sg2; X- # else X- # ifdef SYSV X- struct termio sg1, sg2; X- # else /* SYSV */ X struct sgttyb sg1, sg2; X- # endif /* SYSV */ X- # endif /* BRLUNIX */ X X # ifdef BIFF X private struct stat tt_stat; /* for biff */ X--- 1,38 ---- X! #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)jove.c 2.0 (2.11BSD) 2026/7/27"; X! #endif X X+ /* X+ * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE X+ * is provided to you without charge, and with no warranty. You may give X+ * away copies of JOVE, including sources, provided that this notice is X+ * included in all the files. X+ */ X+ X /* Contains the main loop initializations, and some system dependent X type things, e.g. putting terminal in CBREAK mode, etc. */ X X+ #include X #include "jove.h" X #include "io.h" X #include "termcap.h" X X! #include X! #include X #include X #include X X! #include X! #include X X extern long time(); X private void break_off(); X private void break_rst(); X X struct ltchars ls1, ls2; X struct tchars tc1, tc2; X int lmword1, lmword2; /* local mode word */ X struct sgttyb sg1, sg2; X X # ifdef BIFF X private struct stat tt_stat; /* for biff */ X*************** X*** 89,104 **** X # endif X private int dw_biff = NO; /* whether or not to fotz at all */ X # endif /* BIFF */ X- #endif /* UNIX */ X X int errormsg; X extern char *tfname; X char NullStr[] = ""; X X- #ifdef MSDOS X- # define SIGHUP 99 X- #endif /* MSDOS */ X- X void X finish(code) X { X--- 42,52 ---- X*************** X*** 108,122 **** X if (code == SIGINT) { X char c; X X- #ifndef MENLO_JCL X- (void) signal(code, finish); X- #endif X f_mess("Abort (Type 'n' if you're not sure)? "); X! #ifndef MSDOS X! (void) read(0, &c, 1); X! #else /* MSDOS */ X! c = getrawinchar(); X! #endif /* MSDOS */ X message(NullStr); X if ((c & 0377) != 'y') { X redisplay(); X--- 56,63 ---- X if (code == SIGINT) { X char c; X X f_mess("Abort (Type 'n' if you're not sure)? "); X! (void) read(0, (void *)&c, 1); X message(NullStr); X if ((c & 0377) != 'y') { X redisplay(); X*************** X*** 125,131 **** X } X ttyset(OFF); X UnsetTerm(NullStr); X- #ifndef MSDOS X if (code != 0) { X if (!Crashing) { X Crashing = YES; X--- 66,71 ---- X*************** X*** 141,155 **** X } else X printf("\r\nYou may have lost your work!\n"); X } X- #endif /* MSDOS */ X flusho(); X if (DelTmps) { X tmpclose(); X- #ifndef MSDOS X recclose(); X- #endif /* MSDOS */ X } X- #ifdef UNIX X if (CoreDump) X abort(); X #ifdef PROFILING X--- 81,91 ---- X*************** X*** 156,167 **** X monitor(0); X #endif X _exit(0); X- #else /* MSDOS or MAC*/ X- #ifdef MSDOS X- break_rst(); /* restore previous ctrl-c handling */ X- #endif X- exit(0); X- #endif /* UNIX */ X } X X private char smbuf[20], X--- 92,97 ---- X*************** X*** 171,197 **** X private char peekbuf[10], X *peekp = peekbuf; X X- #if defined(SYSV) || defined(M_XENIX) X- void X- setblock(fd, on) /* turn blocking on or off */ X- register int fd, on; X- { X- static int blockf, nonblockf; X- static int first = 1; X- int flags; X- X- if (first) { X- first = 0; X- if ((flags = fcntl(fd, F_GETFL, 0)) == -1) X- finish(SIGHUP); X- blockf = flags & ~O_NDELAY; /* make sure O_NDELAY is off */ X- nonblockf = flags | O_NDELAY; /* make sure O_NDELAY is on */ X- } X- if (fcntl(fd, F_SETFL, on ? blockf : nonblockf) == -1) X- finish(SIGHUP); X- } X- #endif /* SYSV */ X- X int X Peekc() X { X--- 101,106 ---- X*************** X*** 216,222 **** X X char *Inputp = 0; X X- #if (defined(IPROCS) && !defined(PIPEPROCS)) /* that is, if ptys */ X getchar() X { X extern long global_fd; X--- 125,130 ---- X*************** X*** 241,247 **** X complain("\rerror %d in select %ld", errno, global_fd); X else { X if (reads & 01) { X! nchars = read(0, smbuf, sizeof(smbuf)); X reads &= ~01; X nfds -= 1; X } X--- 149,155 ---- X complain("\rerror %d in select %ld", errno, global_fd); X else { X if (reads & 01) { X! nchars = read(0, (void *)smbuf, sizeof(smbuf)); X reads &= ~01; X nfds -= 1; X } X*************** X*** 268,331 **** X return *bp++ & 0377; X } X X- #else X- X- getchar() X- { X- extern int errno; X- register int c; X- X- if (nchars <= 0) { X- bp = smbuf; X- #ifdef MSDOS X- *bp = getrawinchar(); X- nchars = 1; X- #else X- do X- nchars = read(0, smbuf, sizeof smbuf); X- # ifdef SYSV X- while (nchars == 0 || (nchars < 0 && errno == EINTR)); X- if (nchars < 0) X- # else X- while (nchars < 0 && errno == EINTR); X- if (nchars <= 0) X- # endif /* SYSV */ X- finish(SIGHUP); X- #endif MSDOS X- InputPending = nchars > 1; X- } X- if (((c = *bp) & 0200) && MetaKey != 0) { X- *bp = (c & CHARMASK); X- return '\033'; X- } X- nchars -= 1; X- return (*bp++ & CHARMASK); X- } X- X- #endif /* IPROCS */ X- X /* Returns non-zero if a character waiting */ X X int X charp() X { X- #ifndef MSDOS X int some = 0; X- #endif /* MSDOS */ X X if (InJoverc != 0 || nchars > 0 || Inputp != 0) X return 1; X- #ifdef BRLUNIX X { X- static struct sg_brl gttyBuf; X- X- gtty(0, (char *) >tyBuf); X- if (gttyBuf.sg_xflags & INWAIT) X- some += 1; X- } X- #endif X- #ifdef FIONREAD X- { X long c; X X if (ioctl(0, FIONREAD, (struct sgttyb *) &c) == -1) X--- 176,191 ---- X*************** X*** 332,357 **** X c = 0; X some = (c > 0); X } X! #endif /* FIONREAD */ X! #if defined(SYSV) || defined(M_XENIX) X! setblock(0, 0); /* turn blocking off */ X! nchars = read(0, smbuf, sizeof smbuf); /* Is anything there? */ X! setblock(0, 1); /* turn blocking on */ X! if (nchars > 0) /* something was there */ X! bp = smbuf; /* make sure bp points to it */ X! some = (nchars > 0); /* just say we found something */ X! #endif /* SYSV */ X! #ifdef c70 X! some = !empty(0); X! #endif X! #ifdef MSDOS X! return rawkey_ready(); X! #else X! #ifdef MAC X! some = rawchkc(); X! #endif X return some; X- #endif /* MSDOS */ X } X X #ifdef TERMCAP X--- 192,199 ---- X c = 0; X some = (c > 0); X } X! X return some; X } X X #ifdef TERMCAP X*************** X*** 361,369 **** X putpad(TI, 1); X putpad(VS, 1); X putpad(KS, 1); X- #ifndef MSDOS X (void) chkmail(YES); /* force it to check to we can be accurate */ X- #endif X #ifdef BIFF X if (BiffChk != dw_biff) X biff_init(); X--- 203,209 ---- X*************** X*** 383,391 **** X putpad(KE, 1); X putpad(VE, 1); X putpad(TE, 1); X- #ifdef ID_CHAR X INSmode(0); X- #endif X Placur(ILI, 0); X printf("%s", mesg); X putpad(CE, 1); X--- 223,229 ---- X*************** X*** 393,399 **** X } X #endif /* TERMCAP */ X X- #ifdef JOB_CONTROL X PauseJove() X { X UnsetTerm(ModBufs(0) ? "[There are modified buffers]" : NullStr); X--- 231,236 ---- X*************** X*** 401,424 **** X ResetTerm(); X ClAndRedraw(); X } X- #endif X X- X- #ifndef MAC X void X Push() X { X! int X! #ifndef MSDOS X! pid, X! (*old_quit)() = signal(SIGQUIT, SIG_IGN), X! #endif /* MSDOS */ X (*old_int)() = signal(SIGINT, SIG_IGN); X X- #ifndef MSDOS X- #ifdef IPROCS X sighold(SIGCHLD); X- #endif X switch (pid = fork()) { X case -1: X complain("[Fork failed]"); X--- 238,251 ---- X ResetTerm(); X ClAndRedraw(); X } X X void X Push() X { X! int pid, (*old_quit)() = signal(SIGQUIT, SIG_IGN), X (*old_int)() = signal(SIGINT, SIG_IGN); X X sighold(SIGCHLD); X switch (pid = fork()) { X case -1: X complain("[Fork failed]"); X*************** X*** 425,439 **** X X case 0: X UnsetTerm(NullStr); X- #ifdef IPROCS X sigrelse(SIGCHLD); X- #endif X (void) signal(SIGTERM, SIG_DFL); X! #else /* MSDOS */ X! UnsetTerm(NullStr); X! #endif /* MSDOS */ X! (void) signal(SIGINT, SIG_DFL); X! #ifdef UNIX X (void) signal(SIGQUIT, SIG_DFL); X execl(Shell, basename(Shell), (char *)0); X message("[Execl failed]"); X--- 252,262 ---- X X case 0: X UnsetTerm(NullStr); X sigrelse(SIGCHLD); X (void) signal(SIGTERM, SIG_DFL); X! UnsetTerm(NullStr); X! X! (void) signal(SIGINT, SIG_DFL); X (void) signal(SIGQUIT, SIG_DFL); X execl(Shell, basename(Shell), (char *)0); X message("[Execl failed]"); X*************** X*** 440,467 **** X _exit(1); X } X dowait(pid, (int *) 0); X- #ifdef IPROCS X sigrelse(SIGCHLD); X! #endif X! #endif /* UNIX */ X! #ifdef MSDOS X! break_rst(); X! if (spawnl(0, Shell, basename(Shell), (char *)0) == -1) X! message("[Spawn failed]"); X! #endif /* MSDOS */ X ResetTerm(); X ClAndRedraw(); X- #ifndef MSDOS X (void) signal(SIGQUIT, old_quit); X- #else /* MSDOS */ X- break_off(); X- #ifdef CHDIR X getCWD(); X- #endif X- #endif /* MSDOS */ X (void) signal(SIGINT, old_int); X } X- #endif /* MAC */ X X int OKXonXoff = 0, /* ^S and ^Q initially DON'T work */ X IntChar = CTL(']'); X--- 263,276 ---- X _exit(1); X } X dowait(pid, (int *) 0); X sigrelse(SIGCHLD); X! X ResetTerm(); X ClAndRedraw(); X (void) signal(SIGQUIT, old_quit); X getCWD(); X (void) signal(SIGINT, old_int); X } X X int OKXonXoff = 0, /* ^S and ^Q initially DON'T work */ X IntChar = CTL(']'); X*************** X*** 469,476 **** X void X ttsize() X { X- #ifdef UNIX X- # ifdef TIOCGWINSZ X struct winsize win; X X if (ioctl (0, TIOCGWINSZ, &win) == 0) { X--- 278,283 ---- X*************** X*** 479,498 **** X if (win.ws_row) X LI = win.ws_row; X } X- # else /* TIOCGWINSZ */ X- # ifdef BTL_BLIT X- #include X- struct jwinsize jwin; X- X- if (ioctl(0, JWINSIZE, &jwin) == 0) { X- if (jwin.bytesx) X- CO = jwin.bytesx; X- if (jwin.bytesy) X- LI = jwin.bytesy; X- } X- # endif /* BTL_BLIT */ X- # endif /* TIOCGWINSZ */ X- #endif /* UNIX */ X ILI = LI - 1; X } X X--- 286,291 ---- X*************** X*** 500,512 **** X biff_init() X { X dw_biff = ((BiffChk) && X! # ifndef BSD4_2 X! ((tt_name != 0) || (tt_name = ttyname(0))) && X! (stat(tt_name, &tt_stat) != -1) && X! # else X! (fstat(0, &tt_stat) != -1) && X! # endif X! (tt_stat.st_mode & S_IEXEC)); /* he's using biff */ X X } X X--- 293,299 ---- X biff_init() X { X dw_biff = ((BiffChk) && X! (tt_stat.st_mode & S_IEXEC)); /* he's using biff */ X X } X X*************** X*** 514,526 **** X { X if (dw_biff == NO) X return; X- # ifndef BSD4_2 X- (void) chmod(tt_name, on ? tt_stat.st_mode : X- (tt_stat.st_mode & ~S_IEXEC)); X- # else X (void) fchmod(0, on ? tt_stat.st_mode : X (tt_stat.st_mode & ~S_IEXEC)); X- # endif X } X X #endif /* BIFF */ X--- 301,308 ---- X*************** X*** 531,537 **** X #ifdef BIFF X biff_init(); X #endif X- #ifdef TIOCSLTC X (void) ioctl(0, TIOCGLTC, (struct sgttyb *) &ls1); X ls2 = ls1; X ls2.t_suspc = (char) -1; X--- 313,318 ---- X*************** X*** 538,546 **** X ls2.t_dsuspc = (char) -1; X ls2.t_flushc = (char) -1; X ls2.t_lnextc = (char) -1; X- #endif X X- #ifdef TIOCGETC X /* Change interupt and quit. */ X (void) ioctl(0, TIOCGETC, (struct sgttyb *) &tc1); X tc2 = tc1; X--- 319,325 ---- X*************** X*** 550,556 **** X tc2.t_stopc = (char) -1; X tc2.t_startc = (char) -1; X } X- #endif /* TIOCGETC */ X do_sgtty(); X } X X--- 329,334 ---- X*************** X*** 559,625 **** X void X do_sgtty() X { X- #ifdef UNIX X- # ifdef SYSV X- (void) ioctl(0, TCGETA, (char *) &sg1); X- # else X (void) gtty(0, &sg1); X- # endif /* SYSV */ X sg2 = sg1; X X- # ifdef LPASS8 X (void) ioctl(0, TIOCLGET, &lmword1); X lmword2 = lmword1; X if (MetaKey == YES) X lmword2 |= LPASS8; X- # endif X X- # ifdef SYSV X- TABS = !((sg1.c_oflag & TAB3) == TAB3); X- ospeed = sg1.c_cflag & CBAUD; X- X- if (OKXonXoff) X- sg2.c_iflag &= ~(IXON | IXOFF); X- sg2.c_iflag &= ~(INLCR|ICRNL|IGNCR); X- sg2.c_lflag &= ~(ISIG|ICANON|ECHO); X- sg2.c_oflag &= ~(OCRNL|ONLCR); X- sg2.c_cc[VMIN] = sizeof smbuf; X- sg2.c_cc[VTIME] = 1; X- # else X TABS = !(sg1.sg_flags & XTABS); X ospeed = sg1.sg_ospeed; X- # ifdef BRLUNIX X sg2.sg_flags &= ~(ECHO | CRMOD); X sg2.sg_flags |= CBREAK; X- X- /* VT100 Kludge: leave STALL on for flow control if DC3DC1 (Yuck.) */ X- sg2.sg_xflags &= ~((sg2.sg_xflags&DC3DC1 ? 0 : STALL) | PAGE); X- # else X- sg2.sg_flags &= ~(ECHO | CRMOD); X- # endif /* BRLUNIX */ X- X- # ifdef PURDUE_EE X- # ifdef pdp11 X- sg2.sg_flags |= RAW; X- # else X- sg2.sg_flags |= (MetaKey ? RAW : CBREAK); X- # endif X- # else X- # ifdef LPASS8 X- sg2.sg_flags |= CBREAK; X- # else X- sg2.sg_flags |= (MetaKey ? RAW : CBREAK); X- # endif X- # endif /* PURDUE_EE */ X- # endif /* SYSV */ X- #endif /* UNIX */ X- X- #ifdef MSDOS X- # ifndef IBMPC X- setmode(1, 0x8000); X- # endif /* IBMPC */ X- TABS = 0; X- #endif /* MSDOS */ X } X X void X--- 337,354 ---- X*************** X*** 639,675 **** X { X if (!done_ttinit && n == 0) /* Try to reset before we've set! */ X return; X! #ifdef UNIX X! # ifdef SYSV X! (void) ioctl(0, TCSETAW, n == 0 ? (struct sgttyb *) &sg1 : (struct sgttyb *) &sg2); X! # else X! # ifdef BRLUNIX X! (void) stty(0, n == 0 ? (struct sgttyb *) &sg1 : (struct sgttyb *) &sg2); X! # else X! (void) ioctl(0, TIOCSETN, n == 0 ? (struct sgttyb *) &sg1 : (struct sgttyb *) &sg2); X! # endif /* BRLUNIX */ X! # endif /* SYSV */ X X- # ifdef TIOCSETC X (void) ioctl(0, TIOCSETC, n == 0 ? (struct sgttyb *) &tc1 : (struct sgttyb *) &tc2); X- # endif /* TIOCSETC */ X- # ifdef TIOCSLTC X (void) ioctl(0, TIOCSLTC, n == 0 ? (struct sgttyb *) &ls1 : (struct sgttyb *) &ls2); X- # endif /* TIOCSLTC */ X- # ifdef LPASS8 X (void) ioctl(0, TIOCLSET, n == 0 ? &lmword1 : &lmword2); X- # endif X- #endif /* UNIX */ X X- #ifdef MSDOS X- # ifndef IBMPC X- setmode(1, n == 0 ? 0x4000 : 0x8000); X- # endif X- #endif /* MSDOS */ X done_ttinit = 1; X- #ifdef BIFF X biff(!n); X- #endif X } X X int this_cmd, X--- 368,381 ---- X { X if (!done_ttinit && n == 0) /* Try to reset before we've set! */ X return; X! (void) ioctl(0, TIOCSETN, n == 0 ? (struct sgttyb *) &sg1 : (struct sgttyb *) &sg2); X X (void) ioctl(0, TIOCSETC, n == 0 ? (struct sgttyb *) &tc1 : (struct sgttyb *) &tc2); X (void) ioctl(0, TIOCSLTC, n == 0 ? (struct sgttyb *) &ls1 : (struct sgttyb *) &ls2); X (void) ioctl(0, TIOCLSET, n == 0 ? &lmword1 : &lmword2); X X done_ttinit = 1; X biff(!n); X } X X int this_cmd, X*************** X*** 683,691 **** X { X register int c, X peekc; X- #ifdef IPROCS X extern int NumProcs; X- #endif X extern int ModCount, X Interactive; X X--- 389,395 ---- X*************** X*** 699,710 **** X return EOF; /* somethings wrong if Inputp runs out while X we're reading a .joverc file. */ X X- #ifndef MSDOS X if (ModCount >= SyncFreq) { X ModCount = 0; X SyncRec(); X } X- #endif /* MSDOS */ X X /* If we're not interactive and we're not executing a macro, X AND there are no ungetc'd characters, we read from the X--- 403,412 ---- X*************** X*** 718,744 **** X message(NullStr); X } X redisplay(); X- #if defined(IPROCS) && defined(PIPEPROCS) X if (NumProcs > 0) { X sigrelse(INPUT_SIG); X sigrelse(SIGCHLD); X } X- #endif X- #ifdef UNIX X inIOread = 1; X- #endif X if ((c = getchar()) == EOF) X finish(SIGHUP); X- #ifdef UNIX X inIOread = 0; X- #endif X X- #if defined(IPROCS) && defined(PIPEPROCS) X- if (NumProcs > 0) { X- sighold(INPUT_SIG); X- sighold(SIGCHLD); X- } X- #endif X if (!Interactive && InMacDefine) X mac_putc(c); X } X--- 420,434 ---- X*************** X*** 747,753 **** X return LastKeyStruck = c; X } X X- #ifdef UNIX X dorecover() X { X execl(Recover, "recover", "-d", TmpFilePath, (char *) 0); X--- 437,442 ---- X*************** X*** 755,761 **** X flusho(); X _exit(-1); X } X- #endif /* UNIX */ X X void X ShowVersion() X--- 444,449 ---- X*************** X*** 778,786 **** X if (argv[1][0] != '-' && argv[1][0] != '+') { X int force = (nwinds > 0 || lineno != 0); X X- #ifdef MSDOS X- strlwr(argv[1]); X- #endif X minib_add(argv[1], force ? YES : NO); X b = do_find(nwinds > 0 ? curwind : (Window *) 0, X argv[1], force); X--- 466,471 ---- X*************** X*** 805,811 **** X X case 'j': /* Ignore .joverc in HOME */ X break; X- #ifndef MAC X case 'p': X argv += 1; X argc -= 1; X--- 490,495 ---- X*************** X*** 815,821 **** X nwinds = 0; X } X break; X- #endif X case 't': X /* check if syntax is -tTag or -t Tag */ X if (argv[1][2] != 0) { X--- 499,504 ---- X*************** X*** 862,869 **** X } X } X X- /* VARARGS1 */ X- X void X error(fmt, va_alist) X char *fmt; X--- 545,550 ---- X*************** X*** 881,888 **** X longjmp(mainjmp, ERROR); X } X X- /* VARARGS1 */ X- X void X complain(fmt, va_alist) X char *fmt; X--- 562,567 ---- X*************** X*** 900,907 **** X longjmp(mainjmp, COMPLAIN); X } X X- /* VARARGS1 */ X- X void X confirm(fmt, va_alist) X char *fmt; X--- 579,584 ---- X*************** X*** 942,951 **** X X jmp_buf mainjmp; X X- #ifdef MAC X- jmp_buf auxjmp; X- #endif X- X int iniargc; /* main sets these for DoKeys() */ X char **iniargv; X X--- 619,624 ---- X*************** X*** 977,985 **** X "Some buffers haven't been saved; leave anyway? ")) != 'Y') X break; X } X- #ifdef IPROCS X KillProcs(); X- #endif X } X pop_env(savejmp); X return; X--- 650,656 ---- X*************** X*** 1005,1023 **** X this_cmd = last_cmd = 0; X X for (;;) { X- #ifdef MAC X- setjmp(auxjmp); X- #endif X if (this_cmd != ARG_CMD) { X clr_arg_value(); X last_cmd = this_cmd; X init_strokes(); X } X- #ifdef MAC X- HiliteMenu(0); X- EventCmd = 0; X- menus_on(); X- #endif X c = getch(); X if (c == -1) X continue; X--- 676,686 ---- X*************** X*** 1040,1046 **** X return 0; X } X X- #ifdef UNIX X int UpdFreq = 30, X inIOread = 0; X X--- 703,708 ---- X*************** X*** 1049,1072 **** X UpdModLine = YES; X if (inIOread) X redisplay(); X- #ifndef JOB_CONTROL X- (void) signal(SIGALRM, updmode); X- #endif X (void) alarm((unsigned) UpdFreq); X } X- #endif /* UNIX */ X X- #ifndef MSDOS X- # if defined(TIOCGWINSZ) && defined(SIGWINCH) X extern win_reshape(); X- # endif X- #else /* MSDOS */ X- # ifndef IBMPC X char ttbuf[BUFSIZ]; X- # endif /* IBMPC */ X- #endif /* MSDOS */ X X- #if defined(TIOCGWINSZ) && defined(SIGWINCH) X win_reshape() X { X register int oldsize; X--- 711,722 ---- X*************** X*** 1124,1145 **** X X (void) signal(SIGWINCH, win_reshape); X } X- #endif X X- void X- X- #ifdef MAC /* will get args from user, if option key held during launch */ X- main() X- { X- int argc; X- char **argv; X- #else X main(argc, argv) X char *argv[]; X { X- #endif /* MAC */ X char *cp; X- #ifndef MSDOS X char ttbuf[MAXTTYBUF], X # ifndef VMUNIX X s_iobuff[LBSIZE], X--- 774,784 ---- X*************** X*** 1156,1173 **** X linebuf = s_linebuf; X # endif X X- #else /* MSDOS */ X- char *getenv(); X- #endif /* MSDOS */ X- X errormsg = 0; X X- #ifdef MAC X- MacInit(); /* initializes all */ X- if(make_cache() == 0) exit(-1); X- argc = getArgs(&argv); X- #endif /* MAC */ X- X iniargc = argc; X iniargv = argv; X X--- 795,802 ---- X*************** X*** 1176,1250 **** X finish(0); X } X X- #ifdef MSDOS X- /* import the temporary file path from the environment and X- fix the string, so that we can append a slash safely */ X- X- if (((cp = getenv("TMP")) || (cp = getenv("TMPDIR"))) && X- (*cp != '\0')) { X- strcpy(TmpFilePath, cp); X- cp = &TmpFilePath[strlen(TmpFilePath)-1]; X- if ((*cp == '/') || (*cp == '\\')) X- *cp = 0; X- } X- ShFlags[0] = switchar(); X- #endif /* MSDOS */ X- X getTERM(); /* Get terminal. */ X if (getenv("METAKEY")) X MetaKey = 1; X ttsize(); X InitCM(); X- #ifdef MAC X- InitEvents(); X- #endif X X d_cache_init(); /* initialize the disk buffer cache */ X- #ifndef MAC X if ((cp = getenv("COMSPEC")) && (*cp != '\0')) { X strcpy(Shell, cp); X } X- #endif X- #ifdef MSDOS X- if ((cp = getenv("DESCRIBE")) && (*cp != '\0')) X- strcpy(CmdDb, cp); X- #endif /* MSDOS */ X X make_scr(); X mac_init(); /* Initialize Macros */ X winit(); /* Initialize Window */ X- #ifdef IPROCS X pinit(); /* Pipes/process initialization */ X- #endif X SetBuf(do_select(curwind, Mainbuf)); X X- #ifdef CHDIR X { X! char **argp; X X! if ((argp = scanvec(argv, "-d")) && (argp[1][0] == '/')) X! setCWD(argp[1]); X! else X! getCWD(); /* After we setup curbuf in case we have to getwd() */ X } X- #endif X HomeDir = getenv("HOME"); X if (HomeDir == 0) X HomeDir = "/"; X HomeLen = strlen(HomeDir); X X- #ifdef UNIX X- # ifdef SYSV X- sprintf(Mailbox, "/usr/mail/%s", getenv("LOGNAME")); X- # else X sprintf(Mailbox, "/usr/spool/mail/%s", getenv("USER")); X- # endif X- #endif X X- #ifdef MSDOS X- if ((cp = getenv("JOVERC")) && (*cp != '\0')) X- (void) joverc(cp); X- #endif /* MSDOS */ X (void) joverc(Joverc); X if (!scanvec(argv, "-j")) { X char tmpbuf[100]; X--- 805,842 ---- X finish(0); X } X X getTERM(); /* Get terminal. */ X if (getenv("METAKEY")) X MetaKey = 1; X ttsize(); X InitCM(); X X d_cache_init(); /* initialize the disk buffer cache */ X if ((cp = getenv("COMSPEC")) && (*cp != '\0')) { X strcpy(Shell, cp); X } X X make_scr(); X mac_init(); /* Initialize Macros */ X winit(); /* Initialize Window */ X pinit(); /* Pipes/process initialization */ X SetBuf(do_select(curwind, Mainbuf)); X X { X! char **argp; X X! if ((argp = scanvec(argv, "-d")) && (argp[1][0] == '/')) X! setCWD(argp[1]); X! else X! getCWD(); /* After we setup curbuf in case we have to getwd() */ X } X HomeDir = getenv("HOME"); X if (HomeDir == 0) X HomeDir = "/"; X HomeLen = strlen(HomeDir); X X sprintf(Mailbox, "/usr/spool/mail/%s", getenv("USER")); X X (void) joverc(Joverc); X if (!scanvec(argv, "-j")) { X char tmpbuf[100]; X*************** X*** 1251,1272 **** X sprintf(tmpbuf, "%s/.joverc", HomeDir); X (void) joverc(tmpbuf); X } X- #ifndef MSDOS X if (scanvec(argv, "-r")) X dorecover(); X if (scanvec(argv, "-rc")) X FullRecover(); X- #endif /* MSDOS */ X ttinit(); /* initialize terminal (after ~/.joverc) */ X- #ifndef IBMPC X settout(ttbuf); /* not until we know baudrate */ X- #endif X X- #ifdef MSDOS X- (void) signal(SIGINT, SIG_IGN); X- break_off(); /* disable ctrl-c checking */ X- #endif /* MSDOS */ X- #ifdef UNIX X (void) signal(SIGHUP, finish); X (void) signal(SIGINT, finish); X (void) signal(SIGBUS, finish); X--- 843,855 ---- X*************** X*** 1273,1285 **** X (void) signal(SIGSEGV, finish); X (void) signal(SIGPIPE, finish); X (void) signal(SIGTERM, SIG_IGN); X- # if defined(TIOCGWINSZ) && defined(SIGWINCH) X (void) signal(SIGWINCH, win_reshape); X- # endif X /* set things up to update the modeline every UpdFreq seconds */ X (void) signal(SIGALRM, updmode); X (void) alarm((unsigned) (60 - (time((time_t *) 0) % 60))); X- #endif /* UNIX */ X X ResetTerm(); X cl_scr(1); X--- 856,865 ---- X*************** X*** 1288,1317 **** X DoKeys(0); X finish(0); X } X- X- #ifdef MSDOS X- X- #include X- X- static char break_state; X- X- /* set the break state to off */ X- private void X- break_off() X- { X- union REGS regs; X- X- regs.h.ah = 0x33; /* break status */ X- regs.h.al = 0x00; /* request current state */ X- intdos(®s, ®s); X- break_state = regs.h.dl; X- bdos(0x33, 0, 1); /* turn off break */ X- } X- X- /* reset the break state */ X- private void X- break_rst() X- { X- bdos(0x33, break_state, 1); X- } X- #endif X--- 868,870 ---- X*** ./usr/src/new/jove/README.old Mon Nov 18 00:41:52 1996 X--- ./usr/src/new/jove/README Mon Jul 27 21:37:52 2026 X*************** X*** 1,10 **** X! ########################################################################### X! # This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE # X! # is provided to you without charge, and with no warranty. You may give # X! # away copies of JOVE, including sources, provided that this notice is # X! # included in all the files. # X! ########################################################################### X X To make JOVE edit Makefile to set the right directories for the binaries, X on line documentation, the man pages, and the TMP files and select the X appropriate load command (see SEPFLAG in Makefile). (IMPORTANT! read the X--- 1,10 ---- X! # jove README 2.0 (2.11BSD) 2026/7/27 X X+ # This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE X+ # is provided to you without charge, and with no warranty. You may give X+ # away copies of JOVE, including sources, provided that this notice is X+ # included in all the files. X+ X To make JOVE edit Makefile to set the right directories for the binaries, X on line documentation, the man pages, and the TMP files and select the X appropriate load command (see SEPFLAG in Makefile). (IMPORTANT! read the X*************** X*** 29,38 **** X directory that doesn't get cleared upon reboot, and use that instead. X You would probably want to clean out that directory periodically with X ``cron''. X- X- For the pdp11 version there is the Ovmakefile. This has only been tested X- on 2.9bsd. It works pretty well, actually, and it is possible to turn on X- all the compile time options with this version. X X Bug reports: If you find bugs in JOVE I would appreciate hearing about X them. (My net address is at end of this message.) So, send me the bug X--- 29,34 ---- X*** ./usr/src/new/jove/Makefile.old Tue Dec 23 09:27:37 2025 X--- ./usr/src/new/jove/Makefile Mon Jul 27 22:47:22 2026 X*************** X*** 1,4 **** X! # Makefile 2.0 (2.11BSD) 2025/11/29 X X ########################################################################### X # This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE # X--- 1,4 ---- X! # Makefile 2.1 (2.11BSD) 2026/7/27 X X ########################################################################### X # This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE # X*************** X*** 44,63 **** X X BASESEG = keymaps.o ask.o buf.o ctype.o \ X disp.o insert.o io.o jove.o misc.o re.o \ X! screen.o term.o tune.o util.o version.o X! OVLAY1 = abbrev.o funcdefs.o rec.o paragraph.o fmt.o malloc.o vars.o table.o X! OVLAY2 = c.o wind.o marks.o fp.o X OVLAY3 = extend.o macros.o X OVLAY4 = iproc.o re1.o argcount.o X! OVLAY5 = proc.o scandir.o case.o delete.o move.o X X! OBJECTS = $(BASESEG) $(OVLAY1) $(OVLAY2) $(OVLAY3) $(OVLAY4) $(OVLAY5) X X C_SRC = funcdefs.c abbrev.c argcount.c ask.c buf.c c.c case.c ctype.c \ X delete.c disp.c extend.c fp.c fmt.c insert.c io.c iproc.c \ X! jove.c macros.c malloc.c marks.c misc.c move.c paragraph.c \ X proc.c re.c re1.c rec.c scandir.c screen.c table.c term.c util.c \ X! vars.c version.c wind.c getch.c mac.c X X SOURCES = $(C_SRC) portsrv.c recover.c setmaps.c teachjove.c X X--- 44,64 ---- X X BASESEG = keymaps.o ask.o buf.o ctype.o \ X disp.o insert.o io.o jove.o misc.o re.o \ X! screen.o tune.o util.o version.o X! OVLAY1 = abbrev.o funcdefs.o rec.o paragraph.o fmt.o vars.o table.o X! OVLAY2 = c.o wind.o marks.o fp.o X OVLAY3 = extend.o macros.o X OVLAY4 = iproc.o re1.o argcount.o X! OVLAY5 = proc.o case.o delete.o move.o X! OVLAY6 = term.o scandir.o X X! OBJECTS = $(BASESEG) $(OVLAY1) $(OVLAY2) $(OVLAY3) $(OVLAY4) $(OVLAY5) $(OVLAY6) X X C_SRC = funcdefs.c abbrev.c argcount.c ask.c buf.c c.c case.c ctype.c \ X delete.c disp.c extend.c fp.c fmt.c insert.c io.c iproc.c \ X! jove.c macros.c marks.c misc.c move.c paragraph.c \ X proc.c re.c re1.c rec.c scandir.c screen.c table.c term.c util.c \ X! vars.c version.c wind.c getch.c X X SOURCES = $(C_SRC) portsrv.c recover.c setmaps.c teachjove.c X X*************** X*** 68,78 **** X doc/jove.4 doc/jove.5 doc/jove.nr doc/system.rc \ X doc/teach-jove doc/teachjove.nr doc/README doc/jove.qref X X! MISC = Makefile Ovmakefile Makefile.dos tune.dos tune.template \ X! README Readme.dos Readme.mac iproc-pipes.c iproc-ptys.c X X SUPPORT = teachjove.c recover.c setmaps.c portsrv.c keymaps.txt \ X! macvert.c menumaps.txt mjovers.Hqx X X all: xjove recover teachjove portsrv macvert X X--- 69,78 ---- X doc/jove.4 doc/jove.5 doc/jove.nr doc/system.rc \ X doc/teach-jove doc/teachjove.nr doc/README doc/jove.qref X X! MISC = Makefile tune.template README X X SUPPORT = teachjove.c recover.c setmaps.c portsrv.c keymaps.txt \ X! macvert.c menumaps.txt X X all: xjove recover teachjove portsrv macvert X X*************** X*** 83,88 **** X--- 83,89 ---- X -Z $(OVLAY3) \ X -Z $(OVLAY4) \ X -Z $(OVLAY5) \ X+ -Z $(OVLAY6) \ X -Y $(BASESEG) \ X -o xjove $(LIBS) -lc X @-size xjove X*************** X*** 123,129 **** X -e 's;BINDIR;$(BINDIR);' \ X -e 's;SHELL;$(SHELL);' tune.template >> tune.c X X! iproc.o: iproc-ptys.c iproc-pipes.c iproc.c X $(CC) -c $(CFLAGS) iproc.c X X macvert: macvert.c X--- 124,130 ---- X -e 's;BINDIR;$(BINDIR);' \ X -e 's;SHELL;$(SHELL);' tune.template >> tune.c X X! iproc.o: iproc.c X $(CC) -c $(CFLAGS) iproc.c X X macvert: macvert.c X*************** X*** 176,188 **** X > $(TEACHJOVEM) X chmod 444 $(TEACHJOVEM) X chown bin.bin $(TEACHJOVEM) X- X- lint: X- lint -n $(C_SRC) tune.c keymaps.c X- @echo Done X- X- tags: X- ctags -w $(C_SRC) $(HEADERS) iproc-ptys.c X X clean: X rm -f a.out core *.o keymaps.c tune.c xjove portsrv recover setmaps \ X--- 177,182 ---- X*** ./usr/src/new/jove/tune.h.old Sat Jan 1 04:32:30 1994 X--- ./usr/src/new/jove/tune.h Tue Jul 28 03:14:09 2026 X*************** X*** 1,180 **** X! /*************************************************************************** X! * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X! * is provided to you without charge, and with no warranty. You may give * X! * away copies of JOVE, including sources, provided that this notice is * X! * included in all the files. * X! ***************************************************************************/ X! X! #define TUNED /* don't touch this */ X! X! /*#define MAC 1 /* alas, there is no command line for this */ X! X! #ifdef MAC X! # define defined(x) (x) /* take this out and you're in trouble... */ X #endif X X X! /* The operating system (MSDOS or MAC) must be defined by this point. X! IBMPC is defined in the Makefile. All MAC defines should be X! numerical (i.e. #define MAC 1) so that defined() will work. */ X X! #if !(defined(MSDOS) || defined(MAC)) X! # define UNIX X! #endif X X X! #ifdef UNIX X! /* pick your version of Unix */ X! # define BSD4_2 /* Berkeley 4.2 BSD */ X! # define BSD4_3 /* Berkeley 4.3 BSD and 2.10 BSD */ X! /*# define SYSV /* for (System III/System V) UNIX systems */ X! /*# define SYSVR2 /* system 5, rel. 2 */ X! /* M_XENIX is defined by the Compiler */ X! #endif /* UNIX */ X X! #ifdef SYSVR2 X! # ifndef SYSV X! # define SYSV /* SYSV is a subset of SYSVR2 */ X! # endif X! #endif X X! #ifdef BSD4_3 X! # ifndef BSD4_2 X! # define BSD4_2 /* 4.3 is 4.2 only different. */ X! # endif X! #endif X X! #ifdef M_XENIX X! # define iAPX286 1 /* we have segments. */ X! #endif X X- #ifdef MSDOS X- # ifdef M_I86LM /* large memory model */ X- # define NBUF 64 X- # else X- # define NBUF 3 X- # define SMALL X- # endif X- # define BUFSIZ 512 /* or 1024 */ X- #endif X- X- #ifdef UNIX X- # if vax || sel || sun || pyr || mc68000 || tahoe || iAPX286 || GOULD_NP1 || u3b2 || accel || elxsi || apollo X- # define VMUNIX /* Virtual Memory UNIX */ X- # define BUFSIZ 1024 X- # if iAPX286 X- # define NBUF 48 /* NBUF*BUFSIZ must be less than 64 kB */ X- # else X- # define NBUF 64 /* number of disk buffers */ X- # endif /* iAPX286 */ X- # else X- # define SMALL X- # define BUFSIZ 512 /* or 1024 */ X- # define NBUF 3 X- # endif X- # ifdef pdp11 X- /* X- * On most systems, defining LOAD_AV will haul in stdio since X- * nlist(3) uses stdio. But under 2.10BSD, there's a system call X- * to get the load average. This means that only the getpwent code X- * in get_hdir in io.c causes stdio to be loaded. Since that's 6Kb X- * of text space, it's better to use the less general version of X- * get_hdir. This merely points out that NO standard library X- * routine should use a system as large as stdio. X- */ X- # define NOGETPWENT X- # endif X- # X- # define LOAD_AV /* Use the load average for various commands. X- # Do not define this if you lack a load average X- # system call and kmem is read protected. */ X- # X- # define VFORK /* define this if you have vfork(2) */ X- # X- # define JOB_CONTROL /* if you have job stopping */ X- # X- # ifdef JOB_CONTROL X- # define MENLO_JCL X- # define IPROCS /* Interactive processes only work with JOB_CONTROL. */ X- # endif X- # X- # define SUBPROCS /* only on UNIX systems (NOT INCORPORATED YET) */ X- #endif /* UNIX */ X- X- X- #ifdef SMALL X- typedef unsigned short disk_line; X- #else X- # if defined(iAPX286) || defined(MSDOS) || defined(MAC) X- typedef long disk_line; X- # else X- typedef int disk_line; X- # endif /* iAPX286 */ X- #endif /* SMALL */ X- X #define BACKUPFILES /* enable the backup files code */ X #define F_COMPLETION /* filename completion */ X #define ABBREV /* word abbreviation mode */ X! #if !(defined(IBMPC) || defined(MAC)) X! # define ANSICODES /* extra commands that process ANSI codes */ X! # define ID_CHAR /* include code to IDchar */ X! # define WIRED_TERMS /* include code for wired terminals */ X! #endif X #define CHDIR /* cd command and absolute pathnames */ X #define LISP /* include the code for Lisp Mode */ X #define CMT_FMT /* include the comment formatting routines */ X X! #ifdef UNIX X! # define BIFF /* if you have biff (or the equivalent) */ X! # define KILL0 /* kill(pid, 0) returns 0 if proc exists */ X! # define SPELL /* spell words and buffer commands */ X! #if !sun && !iAPX286 X! # define MY_MALLOC /* use more memory efficient malloc (not on suns) */ X! #endif X! #endif X X #define DFLT_MODE 0666 /* file will be created with this mode */ X X! #ifdef BSD4_3 X! # define RESHAPING /* enable windows to handle reshaping */ X! #endif X X! #ifdef BSD4_2 /* byte_copy(from, to, len) */ X! # define byte_copy bcopy /* use fast assembler version */ X! #endif X X! #ifdef IPROCS X! # ifdef BSD4_2 X! # define INPUT_SIG SIGIO X! # else X! # define PIPEPROCS /* do it with pipes */ X! # define INPUT_SIG SIGTINT X! # endif X! #endif X X- #ifndef VFORK X- # define vfork fork X- #endif X- X- #if defined(SYSV) || defined(MSDOS) || defined(M_XENIX) X- # define byte_copy(s2, s1, n) memcpy(s1, s2, n) X- # define bzero(s, n) memset(s, 0, n) X- # define index strchr X- # define rindex strrchr X- #endif X- X- #ifdef MAC X- # undef F_COMPLETION /* can't do it with spaces in filenames */ X- # undef CHDIR X- # define CHDIR 1 X- # define rindex strrchr X- # define index strchr X- # define bzero(s,n) setmem(s,n,0) X- # define LINT_ARGS X- # define NBUF 64 X- # define BUFSIZ 1024 X- #endif X- X /* These are here since they define things in tune.c. If you add things to X tune.c, add them here too, if necessary. */ X X--- 1,59 ---- X! #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)tune.h 2.0 (2.11BSD) 2026/7/27"; X #endif X X+ /* X+ * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE X+ * is provided to you without charge, and with no warranty. You may give X+ * away copies of JOVE, including sources, provided that this notice is X+ * included in all the files. X+ */ X X! #define TUNED /* don't touch this */ X X! #define UNIX X X+ #define BSD4_2 /* Berkeley 4.2 BSD */ X+ #define BSD4_3 /* Berkeley 4.3 BSD and 2.10 BSD */ X X! #define SMALL X! #define BUFSIZ 512 X! #define NBUF 3 X X! /* X! * The getpwent code in get_hdir in io.c brings in the DBM routines which X! * have substantial resource (both text and data). It's better to use X! * the less general version of get_hdir. X! */ X! #define NOGETPWENT X X! #define LOAD_AV /* Use the load average for various commands. X! #define JOB_CONTROL /* if you have job stopping */ X! #define IPROCS /* Interactive processes only work with JOB_CONTROL. */ X X! typedef unsigned short disk_line; X X #define BACKUPFILES /* enable the backup files code */ X #define F_COMPLETION /* filename completion */ X #define ABBREV /* word abbreviation mode */ X! #define ID_CHAR /* include code to IDchar */ X! #define WIRED_TERMS /* include code for wired terminals */ X #define CHDIR /* cd command and absolute pathnames */ X #define LISP /* include the code for Lisp Mode */ X #define CMT_FMT /* include the comment formatting routines */ X X! #define BIFF /* if you have biff (or the equivalent) */ X! #define KILL0 /* kill(pid, 0) returns 0 if proc exists */ X! #define SPELL /* spell words and buffer commands */ X X #define DFLT_MODE 0666 /* file will be created with this mode */ X X! #define RESHAPING /* enable windows to handle reshaping */ X X! #define byte_copy bcopy /* use fast assembler version */ X X! #define INPUT_SIG SIGIO X X /* These are here since they define things in tune.c. If you add things to X tune.c, add them here too, if necessary. */ X X*************** X*** 184,208 **** X *p_tempfile, X *Recover, X *Joverc, X- X- #ifdef PIPEPROCS X- *Portsrv, X- #endif X- X- #ifdef MSDOS X- CmdDb[], X- #else X *CmdDb, X- #endif X- X TmpFilePath[], X Shell[], X ShFlags[]; X #endif /* NOEXTERNS */ X X- #ifdef BSD4_2 X extern long SigMask; X X! # define sighold(s) sigblock(SigMask |= 1L << ((s)-1)) X! # define sigrelse(s) sigsetmask(SigMask &= ~(1L << ((s)-1))) X! #endif X--- 63,75 ---- X *p_tempfile, X *Recover, X *Joverc, X *CmdDb, X TmpFilePath[], X Shell[], X ShFlags[]; X #endif /* NOEXTERNS */ X X extern long SigMask; X X! #define sighold(s) sigblock(SigMask |= 1L << ((s)-1)) X! #define sigrelse(s) sigsetmask(SigMask &= ~(1L << ((s)-1))) X*** ./usr/src/new/jove/util.c.old Tue Jan 17 02:42:49 1995 X--- ./usr/src/new/jove/util.c Thu Sep 17 13:18:32 2026 X*************** X*** 1,11 **** X! /*************************************************************************** X! * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X! * is provided to you without charge, and with no warranty. You may give * X! * away copies of JOVE, including sources, provided that this notice is * X! * included in all the files. * X! ***************************************************************************/ X X /* X * Modified 1/16/95. The loadaverage method has changed. You will need X * 'getloadavg()' now. Heck, if 'mere' pdp-11s have it anyone can ;-). X */ X--- 1,15 ---- X! #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)util.c 2.0 (2.11BSD) 2026/7/27"; X! #endif X X /* X+ * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE X+ * is provided to you without charge, and with no warranty. You may give X+ * away copies of JOVE, including sources, provided that this notice is X+ * included in all the files. X+ */ X+ X+ /* X * Modified 1/16/95. The loadaverage method has changed. You will need X * 'getloadavg()' now. Heck, if 'mere' pdp-11s have it anyone can ;-). X */ X*************** X*** 14,30 **** X #include "ctype.h" X #include "termcap.h" X #include X X- #ifdef MAC X- # include "mac.h" X- #else X- # include X- #endif X- X- #ifdef MSDOS X- #include X- #endif X- X struct cmd * X FindCmd(proc) X register void (*proc)(); X--- 18,26 ---- X #include "ctype.h" X #include "termcap.h" X #include X+ #include X+ #include X X struct cmd * X FindCmd(proc) X register void (*proc)(); X*************** X*** 105,137 **** X f_mess(key_strokes); X } X X! #ifdef UNIX X! # ifdef BSD4_2 X! # define N_SEC 1 /* will be precisely 1 second on 4.2 */ X! # else X! # define N_SEC 2 /* but from 1 to 2 seconds otherwise */ X! # endif X! #else /* MSDOS or MAC */ X! # define N_SEC 1 X! int in_macro(); X! #endif /* UNIX */ X X int X waitchar(slow) X int *slow; X { X- #ifdef UNIX X unsigned int old_time; X int c; X int (*oldproc)(); X- #else /* MSDOS or MAC */ X- long sw, time(); X- #endif /* UNIX */ X X slowp = slow; X if (slow) X *slow = NO; X- #ifdef UNIX X oldproc = signal(SIGALRM, slowpoke); X X if ((old_time = alarm((unsigned) N_SEC)) == 0) X--- 101,119 ---- X f_mess(key_strokes); X } X X! #define N_SEC 1 /* will be precisely 1 second on 4.2 */ X X int X waitchar(slow) X int *slow; X { X unsigned int old_time; X int c; X int (*oldproc)(); X X slowp = slow; X if (slow) X *slow = NO; X oldproc = signal(SIGALRM, slowpoke); X X if ((old_time = alarm((unsigned) N_SEC)) == 0) X*************** X*** 139,162 **** X c = getch(); X (void) alarm(old_time); X (void) signal(SIGALRM, oldproc); X- X return c; X- #else /* MSDOS or MAC */ X- #ifdef MAC X- Keyonly = 1; X- if(charp() || in_macro()) return getch(); /* to avoid flicker */ X- #endif X- time(&sw); X- sw += N_SEC; X- while(time(NULL) <= sw) X- if (charp() || in_macro()) X- return getch(); X- #ifdef MAC X- menus_off(); X- #endif X- slowpoke(); X- return getch(); X- #endif /* UNIX */ X } X X /* dir > 0 means forward; else means backward. */ X--- 121,127 ---- X*************** X*** 622,628 **** X return sprint("Couldn't %s \"%s\".", err, file); X } X X- #ifdef UNIX X void X pclose(p) X int *p; X--- 587,592 ---- X*************** X*** 639,657 **** X complain("[Pipe failed]"); X } X X- #endif /* UNIX */ X- /* NOSTRICT */ X- X char * X emalloc(size) X { X register char *ptr; X X! if (ptr = malloc((unsigned) size)) X return ptr; X /* Try garbage collecting lines */ X GCchunks(); X! if (ptr = malloc((unsigned) size)) X return ptr; X /* Uh ... Oh screw it! */ X error("[Out of memory] "); X--- 603,618 ---- X complain("[Pipe failed]"); X } X X char * X emalloc(size) X { X register char *ptr; X X! if (ptr = (char *)malloc((unsigned) size)) X return ptr; X /* Try garbage collecting lines */ X GCchunks(); X! if (ptr = (char *)malloc((unsigned) size)) X return ptr; X /* Uh ... Oh screw it! */ X error("[Out of memory] "); X*************** X*** 669,681 **** X if (cp = rindex(f, '/')) X return cp + 1; X else X- #ifdef MSDOS X- if (cp = rindex(f, '\\')) X- return cp + 1; X- else X- if (cp = rindex(f, ':')) X- return cp + 1; X- #endif /* MSDOS */ X return f; X } X X--- 630,635 ---- X*************** X*** 716,726 **** X else X (void) time(&now); X cp = ctime(&now) + from; X- #ifndef MSDOS X if (to == -1) X- #else /* MSDOS */ X- if ((to == -1) && (cp[strlen(cp)-1] == '\n')) X- #endif /* MSDOS */ X cp[strlen(cp) - 1] = '\0'; /* Get rid of \n */ X else X cp[to - from] = '\0'; X--- 670,676 ---- X*************** X*** 731,754 **** X return cp; X } X X- #if !(defined(MSDOS) || defined(MAC)) X- X int X- strcmp(s1, s2) X- register char *s1, X- *s2; X- { X- if (!s1 || !s2) X- return 1; /* which is not zero ... */ X- while (*s1 == *s2++) X- if (*s1++ == '\0') X- return 0; X- return (*s1 - *--s2); X- } X- X- #endif X- X- int X casecmp(s1, s2) X register char *s1, X *s2; X--- 681,687 ---- X*************** X*** 785,839 **** X } X X /* Tries to pause for delay/10 seconds OR until a character is typed X! at the keyboard. This works well on BSD4_2 and not so well on the X! rest. Returns 1 if it returned because of keyboard input, or 0 X! otherwise. */ X X- #ifdef MAC X void X SitFor(delay) X unsigned int delay; X { X- long start, X- end; X- X- #define Ticks (long *) 0x16A /* 1/60 sec */ X- Keyonly = 1; X- redisplay(); X- start = *Ticks; X- X- end = start + delay * 6; X- do X- if (InputPending = charp()) X- break; X- while (*Ticks < end); X- } X- #else /* not MAC */ X- X- void X- SitFor(delay) X- unsigned int delay; X- { X- #ifndef MSDOS X- #if defined(BSD4_2) && !defined(pdp11) X- #include X- X- struct timeval timer; X- long readfds = 1; X- X- timer.tv_sec = (delay / 10); X- timer.tv_usec = (delay % 10) * 100000; X- X- if (charp()) X- return; X- /* gross that I had to snarf this from getch() */ X- if (!UpdMesg && !Asking) { /* Don't erase if we are asking */ X- if (mesgbuf[0] && !errormsg) X- message(NullStr); X- } X- redisplay(); X- select(1, &readfds, (long *)0, (long *)0, &timer); X- #else X static int cps[] = { X 0, X 5, X--- 718,731 ---- X } X X /* Tries to pause for delay/10 seconds OR until a character is typed X! at the keyboard. Returns 1 if it returned because of keyboard input, X! 0 otherwise X! */ X X void X SitFor(delay) X unsigned int delay; X { X static int cps[] = { X 0, X 5, X*************** X*** 852,859 **** X 1920, X 1920, X }; X! register int nchars, X! check_cnt; X X if (charp()) X return; X--- 744,750 ---- X 1920, X 1920, X }; X! register int nchars, check_cnt; X X if (charp()) X return; X*************** X*** 867,907 **** X InputPending = charp(); X } X } X- #endif X- #else /* MSDOS */ X- #include X- #include X- X- long start, X- end; X- #ifndef IBMPC X- struct dostime_t tc; X- #endif X- X- redisplay(); X- #ifdef IBMPC X- _bios_timeofday(_TIME_GETCLOCK, &start); X- #else X- _dos_gettime(&tc); X- start = (long)(tc.hour*60L*60L*10L)+(long)(tc.minute*60L*10L)+ X- (long)(tc.second*10)+(long)(tc.hsecond/10); X- #endif X- end = (start + delay); X- do { X- if (InputPending = charp()) X- break; X- #ifdef IBMPC X- if (_bios_timeofday(_TIME_GETCLOCK, &start)) X- break; /* after midnight */ X- #else X- start = (long)(tc.hour*60L*60L*10L)+(long)(tc.minute*60L*10L)+ X- (long)(tc.second*10)+(long)(tc.hsecond/10); X- #endif X- } X- while (start < end); X- #endif /* MSDOS */ X } X- #endif /* MAC */ X X int X sindex(pattern, string) X--- 758,764 ---- X*** ./usr/src/new/jove/tune.template.old Mon Mar 14 19:38:13 1988 X--- ./usr/src/new/jove/tune.template Mon Jul 27 23:45:02 2026 X*************** X*** 1,10 **** X! /*************************************************************************** X! * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X! * is provided to you without charge, and with no warranty. You may give * X! * away copies of JOVE, including sources, provided that this notice is * X! * included in all the files. * X! ***************************************************************************/ X X #define NOEXTERNS X X #include "tune.h" X--- 1,14 ---- X! #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)tune.template 2.0 (2.11BSD) 2026/7/272026/7/27"; X! #endif X X+ /* X+ * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE X+ * is provided to you without charge, and with no warranty. You may give X+ * away copies of JOVE, including sources, provided that this notice is X+ * included in all the files. X+ */ X+ X #define NOEXTERNS X X #include "tune.h" X*************** X*** 16,25 **** X /* copy of "cmds.doc" lives in the doc subdirectory */ X X *Joverc = "LIBDIR/.joverc", X- X- #ifdef PIPEPROCS X- *Portsrv = "LIBDIR/portsrv", X- #endif X X /* these are variables that can be set with the set command, so they are X allocated more memory than they actually need for the defaults */ X--- 20,25 ---- X*** ./usr/src/new/jove/buf.c.old Mon Mar 21 19:34:40 1988 X--- ./usr/src/new/jove/buf.c Thu Sep 17 09:40:56 2026 X*************** X*** 1,40 **** X! /*************************************************************************** X! * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X! * is provided to you without charge, and with no warranty. You may give * X! * away copies of JOVE, including sources, provided that this notice is * X! * included in all the files. * X! ***************************************************************************/ X X /* Contains commands that deal with creating, selecting, killing and X listing buffers, and buffer modes, and find-file, etc. */ X X #include "jove.h" X X! #ifdef MAC X! # include "mac.h" X! #else X! # include X! #endif X X- #ifdef MAC X- # undef private X- # define private X- #endif X- X- #ifdef LINT_ARGS X private Buffer X- * buf_alloc(void), X- * mak_buf(void); X- X- private char * line_cnt(Buffer *, char *); X- X- private void X- BufNSelect(int), X- defb_wind(Buffer *), X- kill_buf(Buffer *), X- mkbuflist(char **); X- #else X- private Buffer X * buf_alloc(), X * mak_buf(); X X--- 1,22 ---- X! #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)buf.c 2.0 (2.11BSD) 2026/9/17"; X! #endif X X+ /* X+ * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE X+ * is provided to you without charge, and with no warranty. You may give X+ * away copies of JOVE, including sources, provided that this notice is X+ * included in all the files. X+ */ X+ X /* Contains commands that deal with creating, selecting, killing and X listing buffers, and buffer modes, and find-file, etc. */ X X #include "jove.h" X X! #include X X private Buffer X * buf_alloc(), X * mak_buf(); X X*************** X*** 45,57 **** X defb_wind(), X kill_buf(), X mkbuflist(); X- #endif /* LINT_ARGS */ X X- #ifdef MAC X- # undef private X- # define private static X- #endif X- X char *Mainbuf = "Main", X *NoName = "Sans un nom!"; X X--- 27,33 ---- X*************** X*** 97,106 **** X world = b; X b->b_first = 0; X b->b_next = 0; X- #ifdef MAC X- b->Type = BUFFER; /* kludge, but simplifies menu handlers */ X- b->Name = 0; X- #endif X return b; X } X X--- 73,78 ---- X*************** X*** 129,141 **** X newb->b_major = TEXT; X newb->b_first = 0; X newb->b_keybinds = 0; X- #ifdef IPROCS X newb->b_process = 0; X- #endif X initlist(newb); X- #ifdef MAC X- Bufchange = 1; X- #endif X return newb; X } X X--- 101,108 ---- X*************** X*** 220,257 **** X SetBuf(do_select(curwind, bname)); X } X X- #ifdef MSDOS X- X private void X- BufNSelect(n) X- { X- char *bnames[100]; X- char *bname; X- int i; X- X- mkbuflist(bnames); X- for (i=0; ib_next) X if (b == delbuf) X break; X--- 245,253 ---- X*************** X*** 327,351 **** X #define okay_free(ptr) if (ptr) free(ptr) X X lfreelist(delbuf->b_first); X! okay_free(delbuf->b_name); X! okay_free(delbuf->b_fname); X! flush_marks(delbuf); X! free((char *) delbuf); X X if (delbuf == lastbuf) X SetABuf(curbuf); X- #ifndef MAC X if (perr_buf == delbuf) { X ErrFree(); X perr_buf = 0; X } X- #endif X defb_wind(delbuf); X if (curbuf == delbuf) X SetBuf(curwind->w_bufp); X- #ifdef MAC X- Bufchange = 1; X- #endif X } X X /* offer to kill some buffers */ X--- 259,278 ---- X #define okay_free(ptr) if (ptr) free(ptr) X X lfreelist(delbuf->b_first); X! okay_free((void *)delbuf->b_name); X! okay_free((void *)delbuf->b_fname); X! flush_marks((void *)delbuf); X! free((void *) delbuf); X X if (delbuf == lastbuf) X SetABuf(curbuf); X if (perr_buf == delbuf) { X ErrFree(); X perr_buf = 0; X } X defb_wind(delbuf); X if (curbuf == delbuf) X SetBuf(curwind->w_bufp); X } X X /* offer to kill some buffers */ X*************** X*** 521,539 **** X register Buffer *b = 0; X char fnamebuf[FILESIZE]; X X- #ifdef MSDOS X- strlwr(name); X- #endif /* MSDOS */ X if (name) { X PathParse(name, fnamebuf); X if (stat(fnamebuf, s) == -1) X s->st_ino = 0; X for (b = world; b != 0; b = b->b_next) { X! if ( X! #ifndef MSDOS X! (b->b_ino != 0 && b->b_ino == s->st_ino && X b->b_dev != 0 && b->b_dev == s->st_dev) || X- #endif /* MSDOS */ X (strcmp(b->b_fname, fnamebuf) == 0)) X break; X } X--- 448,460 ---- X register Buffer *b = 0; X char fnamebuf[FILESIZE]; X X if (name) { X PathParse(name, fnamebuf); X if (stat(fnamebuf, s) == -1) X s->st_ino = 0; X for (b = world; b != 0; b = b->b_next) { X! if ( (b->b_ino != 0 && b->b_ino == s->st_ino && X b->b_dev != 0 && b->b_dev == s->st_dev) || X (strcmp(b->b_fname, fnamebuf) == 0)) X break; X } X*************** X*** 548,554 **** X register char *new; X X if (obj) X! new = realloc(obj, (unsigned) size); X if (new == 0 || !obj) X new = emalloc(size); X return new; X--- 469,475 ---- X register char *new; X X if (obj) X! new = (char *)realloc((void *)obj, (unsigned) size); X if (new == 0 || !obj) X new = emalloc(size); X return new; X*************** X*** 567,575 **** X strcpy(b->b_name, name); X } else X b->b_name = 0; X- #ifdef MAC X- Bufchange = 1; X- #endif X } X X void X--- 488,493 ---- X*************** X*** 589,597 **** X else X strcpy(oldname, b->b_fname); X if (name) { X- #ifdef MSDOS X- strlwr(name); X- #endif /* MSDOS */ X PathParse(name, wholename); X curbuf->b_fname = ralloc(curbuf->b_fname, strlen(wholename) + 1); X strcpy(curbuf->b_fname, wholename); X--- 507,512 ---- X*************** X*** 600,608 **** X DoAutoExec(curbuf->b_fname, oldptr); X curbuf->b_mtime = curbuf->b_dev = curbuf->b_ino = 0; /* until they're known. */ X SetBuf(save); X- #ifdef MAC X- Bufchange = 1; X- #endif X } X X void X--- 515,520 ---- X*************** X*** 694,704 **** X /* do the read now ... */ X if (curbuf->b_ntbf) X read_file(curbuf->b_fname, 0); X- #ifdef MAC X- Modechange = 1; X- #endif X X- #ifdef IPROCS X if (oldb != 0 && ((oldb->b_process == 0) != (curbuf->b_process == 0))) { X if (curbuf->b_process) X PushPBs(); /* Push process bindings */ X--- 606,612 ---- X*************** X*** 705,711 **** X else if (oldb->b_process) X PopPBs(); X } X- #endif X } X X Buffer * X--- 613,618 ---- X*** ./usr/src/new/jove/ask.c.old Thu Aug 11 05:35:48 1988 X--- ./usr/src/new/jove/ask.c Thu Sep 17 13:16:42 2026 X*************** X*** 9,14 **** X--- 9,16 ---- X #include "termcap.h" X #include "ctype.h" X #include X+ #include X+ #include X X #ifdef MAC X # include "mac.h" X*** ./usr/src/new/jove/io.c.old Thu Aug 11 05:35:50 1988 X--- ./usr/src/new/jove/io.c Thu Sep 17 13:17:38 2026 X*************** X*** 1,39 **** X! /*************************************************************************** X! * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X! * is provided to you without charge, and with no warranty. You may give * X! * away copies of JOVE, including sources, provided that this notice is * X! * included in all the files. * X! ***************************************************************************/ X X #include "jove.h" X #include "io.h" X #include "termcap.h" X X! #ifdef IPROCS X! # include X! #endif X! X! #ifdef MAC X! # include "mac.h" X! #else X! # include X! #endif X! X! #ifdef UNIX X #include X #ifdef YP_PASSWD X #include X #endif X! #endif X! X! #ifdef MSDOS X! #include X! #include X! #ifdef CHDIR X! #include X! #include X! #endif X! #endif /* MSDOS */ X #include X X #ifdef MAC X--- 1,26 ---- X! #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)io.c 2.0 (2.11BSD) 2026/9/17"; X! #endif X! X! /* X! * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE X! * is provided to you without charge, and with no warranty. You may give X! * away copies of JOVE, including sources, provided that this notice is X! * included in all the files. X! */ X X #include "jove.h" X #include "io.h" X #include "termcap.h" X X! #include X! #include X #include X+ #include X #ifdef YP_PASSWD X #include X #endif X! #include X #include X X #ifdef MAC X*************** X*** 354,360 **** X char *d; X { X if (PWD == 0) X! PWD = malloc((unsigned) strlen(d) + 1); X else { X extern char *ralloc(); X X--- 341,347 ---- X char *d; X { X if (PWD == 0) X! PWD = (char *)malloc((unsigned) strlen(d) + 1); X else { X extern char *ralloc(); X X*************** X*** 450,456 **** X if (DirSP == 0) X complain("popd: directory stack is empty."); X UpdModLine = YES; X! free(PWD); X PWD = 0; X DirSP -= 1; X #ifdef MSDOS X--- 437,443 ---- X if (DirSP == 0) X complain("popd: directory stack is empty."); X UpdModLine = YES; X! free((void *)PWD); X PWD = 0; X DirSP -= 1; X #ifdef MSDOS X*************** X*** 928,940 **** X { X char buf[FILESIZE]; X X- #ifdef MAC X- sprintf(buf, "%s/%s", HomeDir, d_tempfile); X- #else X sprintf(buf, "%s/%s", TmpFilePath, d_tempfile); X- #endif X tfname = copystr(buf); X! tfname = mktemp(tfname); X (void) close(creat(tfname, 0600)); X #ifndef MSDOS X tmpfd = open(tfname, 2); X--- 915,923 ---- X { X char buf[FILESIZE]; X X sprintf(buf, "%s/%s", TmpFilePath, d_tempfile); X tfname = copystr(buf); X! tfname = (char *)mktemp(tfname); X (void) close(creat(tfname, 0600)); X #ifndef MSDOS X tmpfd = open(tfname, 2); X*************** X*** 1407,1414 **** X (void) close(fd1); X return; X } X! while ((i = read(fd1, tmp1, sizeof(tmp1))) > 0) X! write(fd2, tmp1, i); X #ifdef BSD4_2 X (void) fsync(fd2); X #endif X--- 1390,1397 ---- X (void) close(fd1); X return; X } X! while ((i = read(fd1, (void *)tmp1, sizeof(tmp1))) > 0) X! write(fd2, (void *)tmp1, i); X #ifdef BSD4_2 X (void) fsync(fd2); X #endif X*** ./usr/src/new/jove/rec.c.old Mon Mar 14 19:38:04 1988 X--- ./usr/src/new/jove/rec.c Thu Sep 17 13:00:08 2026 X*************** X*** 1,26 **** X! /*************************************************************************** X! * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X! * is provided to you without charge, and with no warranty. You may give * X! * away copies of JOVE, including sources, provided that this notice is * X! * included in all the files. * X! ***************************************************************************/ X X #include "jove.h" X #include "io.h" X #include "rec.h" X X! #ifndef MAC X! # include X! #endif X X private int rec_fd = -1; X private char *recfname; X private File *rec_out; X X- #ifndef L_SET X- # define L_SET 0 X- #endif X- X private struct rec_head Header; X X recinit() X--- 1,25 ---- X! #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)rec.c 2.0 (2.11BSD) 2026/9/17"; X! #endif X X+ /* X+ * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE X+ * is provided to you without charge, and with no warranty. You may give X+ * away copies of JOVE, including sources, provided that this notice is X+ * included in all the files. X+ */ X+ X+ #include X #include "jove.h" X #include "io.h" X #include "rec.h" X X! #include X X private int rec_fd = -1; X private char *recfname; X private File *rec_out; X X private struct rec_head Header; X X recinit() X*************** X*** 27,39 **** X { X char buf[128]; X X- #ifdef MAC X- sprintf(buf, "%s/%s", HomeDir, p_tempfile); X- #else X sprintf(buf, "%s/%s", TmpFilePath, p_tempfile); X- #endif X recfname = copystr(buf); X! recfname = mktemp(recfname); X rec_fd = creat(recfname, 0644); X if (rec_fd == -1) { X complain("Cannot create \"%s\"; recovery disabled.", recfname); X--- 26,34 ---- X { X char buf[128]; X X sprintf(buf, "%s/%s", TmpFilePath, p_tempfile); X recfname = copystr(buf); X! recfname = (char *)mktemp(recfname); X rec_fd = creat(recfname, 0644); X if (rec_fd == -1) { X complain("Cannot create \"%s\"; recovery disabled.", recfname); X*************** X*** 47,53 **** X Header.Pid = getpid(); X Header.UpdTime = 0L; X Header.Nbuffers = 0; X! (void) write(rec_fd, (char *) &Header, sizeof Header); X } X X recclose() X--- 42,48 ---- X Header.Pid = getpid(); X Header.UpdTime = 0L; X Header.Nbuffers = 0; X! (void) write(rec_fd, (void *) &Header, sizeof Header); X } X X recclose() X*** ./usr/src/new/jove/iproc.c.old Mon Mar 14 19:37:50 1988 X--- ./usr/src/new/jove/iproc.c Thu Sep 17 13:02:20 2026 X*************** X*** 1,23 **** X! /*************************************************************************** X! * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X! * is provided to you without charge, and with no warranty. You may give * X! * away copies of JOVE, including sources, provided that this notice is * X! * included in all the files. * X! ***************************************************************************/ X X #include "jove.h" X #include "re.h" X #include X X- #ifdef IPROCS X- X int proc_child(); X X! #ifdef PIPEPROCS X! # include "iproc-pipes.c" X! #else X! # include "iproc-ptys.c" X! #endif X X char proc_prompt[128] = "% "; X X--- 1,22 ---- X! #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)iproc.c 2.0 (2.11BSD) 2026/9/17"; X! #endif X X+ /* X+ * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE X+ * is provided to you without charge, and with no warranty. You may give X+ * away copies of JOVE, including sources, provided that this notice is X+ * included in all the files. X+ */ X+ X+ #include X #include "jove.h" X #include "re.h" X #include X X int proc_child(); X X! #include "iproc-ptys.c" X X char proc_prompt[128] = "% "; X X*************** X*** 134,141 **** X DelMark(child->p_mark); X SetBuf(old); X } X! free((char *) child->p_name); X! free((char *) child); X } X X ProcList() X--- 133,140 ---- X DelMark(child->p_mark); X SetBuf(old); X } X! free((void *) child->p_name); X! free((void *) child); X } X X ProcList() X*************** X*** 292,302 **** X register int pid; X X for (;;) { X- #ifndef BSD4_2 X- pid = wait2(&w.w_status, (WNOHANG | WUNTRACED)); X- #else X pid = wait3(&w, (WNOHANG | WUNTRACED), (struct rusage *) 0); X- #endif X if (pid <= 0) X break; X kill_off(pid, w); X--- 291,297 ---- X*************** X*** 369,375 **** X p->pb_map[p->pb_key] = p->pb_cmd; X } X } X- /* VARARGS0 */ X X ProcBind() X { X--- 364,369 ---- X*************** X*** 418,423 **** X } X } X } X- X- #endif /* IPROCS */ X- X--- 412,414 ---- X*** ./usr/src/new/jove/extend.c.old Thu Aug 11 05:35:49 1988 X--- ./usr/src/new/jove/extend.c Thu Sep 17 13:27:41 2026 X*************** X*** 1,55 **** X! /*************************************************************************** X! * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X! * is provided to you without charge, and with no warranty. You may give * X! * away copies of JOVE, including sources, provided that this notice is * X! * included in all the files. * X! ***************************************************************************/ X X #include "jove.h" X #include "io.h" X #include "termcap.h" X #include "ctype.h" X! #ifdef JOB_CONTROL X! # include X! #endif X X- #ifdef MAC X- # include "mac.h" X- #else X- # include X- #endif X- X- #ifdef MSDOS X- #include X- #endif X- X- #ifdef MAC X- # undef private X- # define private X- #endif X- X- #ifdef LINT_ARGS X private void X- fb_aux(data_obj *, data_obj **, char *, char *), X- find_binds(data_obj *, char *), X- vpr_aux(struct variable *, char *); X- #else X- private void X fb_aux(), X find_binds(), X vpr_aux(); X- #endif /* LINT_ARGS */ X X- #ifdef MAC X- # undef private X- # define private static X- #endif X- X- X int InJoverc = 0; X X! extern int getch(), X! getchar(); X X /* Auto execute code */ X X--- 1,31 ---- X! #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)extend.c 2.0 (2.11BSD) 2026/7/27"; X! #endif X X+ /* X+ * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE X+ * is provided to you without charge, and with no warranty. You may give X+ * away copies of JOVE, including sources, provided that this notice is X+ * included in all the files. X+ */ X+ X+ #include X #include "jove.h" X #include "io.h" X #include "termcap.h" X #include "ctype.h" X! #include X! #include X! #include X X private void X fb_aux(), X find_binds(), X vpr_aux(); X X int InJoverc = 0; X X! extern int getch(), getchar(); X X /* Auto execute code */ X X*************** X*** 78,92 **** X DefAutoExec(findmac); X } X X- /* VARARGS0 */ X- X void X DefAutoExec(proc) X- #ifdef LINT_ARGS X- data_obj *(*proc)(char *); X- #else X data_obj *(*proc)(); X- #endif X { X data_obj *d; X char *pattern; X--- 54,62 ---- X*************** X*** 147,157 **** X IsPrefix(cp) X data_obj *cp; X { X- #ifdef MAC X- void (*proc)(); X- #else X int (*proc)(); X- #endif X X if (cp == 0 || (cp->Type & TYPEMASK) != FUNCTION) X return 0; X--- 117,123 ---- X*************** X*** 231,255 **** X BindWMap(nextmap, c, cmd); X else { X map[c] = cmd; X- #ifdef MAC X- ((struct cmd *) cmd)->c_key = c; /* see about_j() in mac.c */ X- if(map == mainmap) ((struct cmd *) cmd)->c_map = F_MAINMAP; X- else if(map == pref1map) ((struct cmd *) cmd)->c_map = F_PREF1MAP; X- else if(map == pref2map) ((struct cmd *) cmd)->c_map = F_PREF2MAP; X- #endif X } X } X } X X- /* VARARGS0 */ X- X void X BindSomething(proc) X- #ifdef LINT_ARGS X- data_obj *(*proc)(char *); X- #else X data_obj *(*proc)(); X- #endif X { X data_obj *d; X X--- 197,209 ---- X*************** X*** 373,382 **** X char keydescbuf[40]; X data_obj **prefp; X X- #ifdef IBMPC X- specialmap = (map == miscmap); X- #endif X- X for (c1 = 0; c1 < NCHARS && c2 < NCHARS; c1 = c2 + 1) { X c2 = c1; X if (map[c1] == 0) X--- 327,332 ---- X*************** X*** 425,434 **** X prefbuf[20]; X data_obj **prefp; X X- #ifdef IBMPC X- specialmap = (map == miscmap); X- #endif X- X for (c1 = c2 = 0; c1 < NCHARS && c2 < NCHARS; c1 = c2 + 1) { X c2 = c1; X if (map[c1] == cp) { X--- 375,380 ---- X*************** X*** 650,658 **** X else X complain("Boolean variables must be ON or OFF."); X *(vp->v_value) = value; X- #ifdef MAC X- MarkVar(vp,-1,0); /* mark the menu item */ X- #endif X s_mess("%s%s", prompt, value ? "on" : "off"); X break; X } X--- 596,601 ---- X*************** X*** 687,695 **** X if (vp->v_flags & V_MODELINE) X UpdModLine = YES; X if (vp->v_flags & V_CLRSCREEN) { X- #ifdef IBMPC X- setcolor(Fgcolor, Bgcolor); X- #endif /* IBMPC */ X ClAndRedraw(); X } X if (vp->v_flags & V_TTY_RESET) X--- 630,635 ---- X*************** X*** 717,728 **** X char *lp; X X for (lp = linebuf; *lp != '\0'; lp++) X- #if (defined(IBMPC) || defined(MAC)) X- lower(lp); X- #else X if (isupper(*lp)) X *lp = tolower(*lp); X- #endif X } X switch (c) { X case EOF: X--- 657,664 ---- X*************** X*** 875,888 **** X char *com, *getenv(), X buf[FILESIZE]; X X- #ifndef MSDOS X sprintf(buf, "%s/.joverc", getenv("HOME")); X- #else /* MSDOS */ X- if (com = getenv("JOVERC")) X- strcpy(buf, com); X- else X- strcpy(buf, Joverc); X- #endif /* MSDOS */ X com = ask_file((char *) 0, buf, buf); X if (joverc(buf) == 0) X complain(IOerr("read", com)); X--- 811,817 ---- X*************** X*** 916,933 **** X #define IF_TRUE 1 X #define IF_FALSE !IF_TRUE X X- #ifndef MAC X int X do_if(cmd) X char *cmd; X { X- #ifdef MSDOS X- int status; X- #else X int pid, X status; X- #endif /* MSDOS */ X- #ifndef MSDOS X X switch (pid = fork()) { X case -1: X--- 845,856 ---- X*************** X*** 935,941 **** X X case 0: X { X- #endif /* MSDOS */ X char *args[12], X *cp = cmd, X **ap = args; X--- 858,863 ---- X*************** X*** 949,983 **** X } X *ap = 0; X X- #ifndef MSDOS X close(0); /* we want reads to fail */ X /* close(1); but not writes or ioctl's X close(2); */ X- #else /* MSDOS */ X- if ((status = spawnvp(0, args[0], args)) < 0) X- complain("[Spawn failed: if]"); X- #endif /* MSDOS */ X X- #ifndef MSDOS X (void) execvp(args[0], args); X _exit(-10); /* signals exec error (see below) */ X } X } X- #ifdef IPROCS X sighold(SIGCHLD); X- #endif X dowait(pid, &status); X- #ifdef IPROCS X sigrelse(SIGCHLD); X- #endif X if (status == -10) X complain("[Exec failed]"); X if (status < 0) X complain("[Exit %d]", status); X- #endif /* MSDOS */ X return (status == 0); /* 0 means successful */ X } X- #endif /* MAC */ X X int X joverc(file) X--- 871,893 ---- X*************** X*** 1015,1021 **** X lnum += 1; X if (lbuf[0] == '#') /* a comment */ X continue; X- #ifndef MAC X if (casencmp(lbuf, "if", 2) == 0) { X char cmd[128]; X X--- 925,930 ---- X*************** X*** 1037,1043 **** X IfStatus = IF_UNBOUND; X continue; X } X- #endif X if (IfStatus == IF_FALSE) X continue; X (void) strcat(lbuf, "\n"); X--- 946,951 ---- X*** ./usr/src/new/jove/abbrev.c.old Mon Mar 14 19:37:33 1988 X--- ./usr/src/new/jove/abbrev.c Thu Sep 17 13:20:28 2026 X*************** X*** 1,11 **** X! /*************************************************************************** X * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X * is provided to you without charge, and with no warranty. You may give * X * away copies of JOVE, including sources, provided that this notice is * X * included in all the files. * X! ***************************************************************************/ X X #include "jove.h" X X #ifdef ABBREV X X--- 1,15 ---- X! #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)abbrev.c 2.0 (2.11BSD) 2026/9/17"; X! #endif X! /* X * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X * is provided to you without charge, and with no warranty. You may give * X * away copies of JOVE, including sources, provided that this notice is * X * included in all the files. * X! */ X X #include "jove.h" X+ #include X X #ifdef ABBREV X X*************** X*** 12,20 **** X #include "io.h" X #include "ctype.h" X X- #ifdef MSDOS X- #include X- #endif X #define HASHSIZE 20 X X struct abbrev { X--- 16,21 ---- X*************** X*** 120,126 **** X ap->a_cmdhook = 0; X table[h] = ap; X } else X! free(ap->a_phrase); X ap->a_phrase = copystr(phrase); X } X X--- 121,127 ---- X ap->a_cmdhook = 0; X table[h] = ap; X } else X! free((void *)ap->a_phrase); X ap->a_phrase = copystr(phrase); X } X X*** ./usr/src/new/jove/wind.c.old Mon Mar 14 19:38:15 1988 X--- ./usr/src/new/jove/wind.c Thu Sep 17 09:38:22 2026 X*************** X*** 1,9 **** X! /*************************************************************************** X * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X * is provided to you without charge, and with no warranty. You may give * X * away copies of JOVE, including sources, provided that this notice is * X * included in all the files. * X! ***************************************************************************/ X X /* This creates/deletes/divides/grows/shrinks windows. */ X X--- 1,12 ---- X! #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)wind.c 2.0 (2.11BSD) 2026/9/17"; X! #endif X! /* X * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X * is provided to you without charge, and with no warranty. You may give * X * away copies of JOVE, including sources, provided that this notice is * X * included in all the files. * X! */ X X /* This creates/deletes/divides/grows/shrinks windows. */ X X*************** X*** 68,74 **** X RemoveScrollBar(wp); X Windchange++; X #endif X! free((char *) wp); X } X X /* Divide the window WP N times, or at least once. Complains if WP is too X--- 71,77 ---- X RemoveScrollBar(wp); X Windchange++; X #endif X! free((void *) wp); X } X X /* Divide the window WP N times, or at least once. Complains if WP is too X*** ./usr/src/new/jove/misc.c.old Wed Apr 6 20:09:51 1988 X--- ./usr/src/new/jove/misc.c Tue Jul 28 15:09:44 2026 X*************** X*** 1,16 **** X! /*************************************************************************** X! * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X! * is provided to you without charge, and with no warranty. You may give * X! * away copies of JOVE, including sources, provided that this notice is * X! * included in all the files. * X! ***************************************************************************/ X X #include "jove.h" X #include "ctype.h" X #include X! #ifdef ANSICODES X! # include "termcap.h" X! #endif X X void X prCTIME() X--- 1,17 ---- X! #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)misc.c 2.0 (2.11BSD) 2026/7/27"; X! #endif X! /* X! * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE X! * is provided to you without charge, and with no warranty. You may give X! * away copies of JOVE, including sources, provided that this notice is X! * included in all the files. X! */ X X #include "jove.h" X #include "ctype.h" X #include X! #include "termcap.h" X X void X prCTIME() X*************** X*** 265,273 **** X if (askp && (yes_or_no_p("Write %s? ", curbuf->b_fname) == NO)) X continue; X filemunge(curbuf->b_fname); X- #if !(defined(MSDOS) || defined(MAC)) X chk_mtime(curbuf, curbuf->b_fname, "save"); X- #endif X file_write(curbuf->b_fname, 0); X unmodify(); X } X--- 266,272 ---- X*************** X*** 293,302 **** X { X Line *newline; X X- #ifndef ANSICODES X- if (!is_an_arg()) X- set_arg_value(ask_int("Line: ",10)); X- #else /* not ANSICODES */ X if (!is_an_arg() || arg_value() <= 0) { X if (SP) { X putpad(SP, 1); /* Ask for cursor position */ X--- 292,297 ---- X*************** X*** 304,316 **** X } X set_arg_value(ask_int("Line: ", 10)); X } X- #endif /* ANSICODES */ X newline = next_line(curbuf->b_first, arg_value() - 1); X PushPntp(newline); X SetLine(newline); X } X X- #ifdef ANSICODES X void X MoveToCursor(line, col) X { X--- 299,309 ---- X*************** X*** 503,509 **** X complain(unsupported); X } X } X- #endif /* ANSICODES */ X X void X NotModified() X--- 496,501 ---- X*** ./usr/src/new/jove/funcdefs.c.old Mon Mar 14 19:37:44 1988 X--- ./usr/src/new/jove/funcdefs.c Tue Jul 28 15:02:01 2026 X*************** X*** 1,10 **** X! /*************************************************************************** X! * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X! * is provided to you without charge, and with no warranty. You may give * X! * away copies of JOVE, including sources, provided that this notice is * X! * included in all the files. * X! ***************************************************************************/ X X #include "jove.h" X #include "ctype.h" X X--- 1,14 ---- X! #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)funcdefs.c 2.0 (2.11BSD) 2026/7/27"; X! #endif X X+ /* X+ * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE X+ * is provided to you without charge, and with no warranty. You may give X+ * away copies of JOVE, including sources, provided that this notice is X+ * included in all the files. X+ */ X+ X #include "jove.h" X #include "ctype.h" X X*************** X*** 16,24 **** X UnbindC(), X ShowVersion(), X WVisSpace(), X- #ifdef ANSICODES X AnsiCodes(), X- #endif X AppReg(), X Apropos(), X BackChar(), X--- 20,26 ---- X*************** X*** 35,52 **** X BindAKey(), X BindMac(), X BufPos(), X- #ifdef MSDOS X- Buf1Select(), X- Buf2Select(), X- Buf3Select(), X- Buf4Select(), X- Buf5Select(), X- Buf6Select(), X- Buf7Select(), X- Buf8Select(), X- Buf9Select(), X- Buf10Select(), X- #endif /* MSDOS */ X CasRegLower(), X CasRegUpper(), X CapChar(), X--- 37,42 ---- X*************** X*** 53,71 **** X CapWord(), X LowWord(), X UppWord(), X- #ifdef CHDIR X Chdir(), X prCWD(), X prDIRS(), X Pushd(), X Popd(), X- #endif X prCTIME(), X ChrToOct(), X ClAndRedraw(), X- #ifndef MAC X MakeErrors(), X- #endif X CopyRegion(), X BufSelect(), X DelBlnkLines(), X--- 43,57 ---- X*************** X*** 134,150 **** X Newline(), X OpenLine(), X LineAI(), X- #ifndef MAC X ShowErr(), X NextError(), X- #endif /* MAC */ X- #ifdef MSDOS X- PageScrollUp(), X- PageScrollDown(), X- #endif /* MSDOS */ X- #ifndef MAC X PrevError(), X- #endif /* MAC */ X NextLine(), X NextPage(), X NextWindow(), X--- 120,128 ---- X*************** X*** 153,173 **** X PageNWind(), X Tab(), X DoParen(), X- #ifndef MAC X ParseAll(), X- #endif X #ifdef SPELL X SpelWords(), X #endif X- #ifdef JOB_CONTROL X PauseJove(), X- #endif X PrevLine(), X PrevPage(), X PrevWindow(), X- #ifndef MAC X Push(), X- #endif X RegReplace(), X QRepSearch(), X QuotChar(), X--- 131,145 ---- X*************** X*** 185,196 **** X SelfInsert(), X SetVar(), X SetMark(), X- #ifndef MAC X ShellCom(), X ShNoBuf(), X Shtypeout(), X ShToBuf(), X- #endif X ShrWindow(), X Source(), X #ifdef SPELL X--- 157,166 ---- X*************** X*** 210,236 **** X WrtReg(), X Yank(), X YankPop(), PrVar(), X- #ifndef MAC X FilterRegion(), X- #endif X WNumLines(), X- #ifdef IPROCS X ShellProc(), X ProcInt(), X ProcQuit(), X ProcKill(), X- # ifndef PIPEPROCS X ProcEof(), X ProcStop(), X ProcCont(), X ProcDStop(), X- # endif X ProcSendData(), X ProcNewline(), X ProcList(), X ProcBind(), X Iprocess(), X- #endif X X #ifdef LISP X GSexpr(), /* Grind S Expression. */ X--- 180,200 ---- X*************** X*** 254,273 **** X ScrollRight(), X MacInter(); /* This is the last one. */ X X X- #ifdef MAC X- # define WIRED_CMD(c) c,'\0','\0' /* for About Jove... */ X- #else X- # define WIRED_CMD(c) c X- #endif /* MAC */ X- X #else /* TXT_TO_C */ X X! #ifdef MAC X! # define WIRED_CMD(c) 0,'\0','\0' X! #else X! # define WIRED_CMD(c) 0 X! #endif X #endif /* TXT_TO_C */ X X struct cmd commands[] = { X--- 218,228 ---- X ScrollRight(), X MacInter(); /* This is the last one. */ X X+ #define WIRED_CMD(c) c X X #else /* TXT_TO_C */ X X! #define WIRED_CMD(c) 0 X #endif /* TXT_TO_C */ X X struct cmd commands[] = { X*************** X*** 274,282 **** X #ifdef LISP X FUNCTION, "add-lisp-special", WIRED_CMD(AddSpecial), X #endif X- #ifdef ANSICODES X FUNCTION, "ansi-codes", WIRED_CMD(AnsiCodes), X- #endif X FUNCTION, "append-region", WIRED_CMD(AppReg), X FUNCTION, "apropos", WIRED_CMD(Apropos), X FUNCTION, "auto-execute-command", WIRED_CMD(CAutoExec), X--- 229,235 ---- X*************** X*** 308,331 **** X FUNCTION, "case-word-lower", WIRED_CMD(LowWord), X FUNCTION, "case-word-upper", WIRED_CMD(UppWord), X FUNCTION, "character-to-octal-insert", WIRED_CMD(ChrToOct), X- #ifdef CHDIR X FUNCTION, "cd", WIRED_CMD(Chdir), X- #endif X FUNCTION, "clear-and-redraw", WIRED_CMD(ClAndRedraw), X- #ifndef MAC X FUNCTION, "compile-it", WIRED_CMD(MakeErrors), X- #endif X- #ifdef IPROCS X- # ifndef PIPEPROCS X- # ifdef TIOCSLTC X FUNCTION, "continue-process", WIRED_CMD(ProcCont), X- # endif X- # endif X- #endif X FUNCTION, "copy-region", WIRED_CMD(CopyRegion), X- #ifndef MAC X FUNCTION, "current-error", WIRED_CMD(ShowErr), X- #endif X FUNCTION, "date", WIRED_CMD(prCTIME), X #ifdef ABBREV X FUNCTION, "define-global-word-abbrev", WIRED_CMD(DefGAbbrev), X--- 261,272 ---- X*************** X*** 355,371 **** X FUNCTION, "digit-8", WIRED_CMD(Digit8), X FUNCTION, "digit-9", WIRED_CMD(Digit9), X FUNCTION, "digit-0", WIRED_CMD(Digit0), X- #ifdef CHDIR X FUNCTION, "dirs", WIRED_CMD(prDIRS), X- #endif X FUNCTION, "down-list", WIRED_CMD(FDownList), X- #ifdef IPROCS X- # ifndef PIPEPROCS X- # ifdef TIOCSLTC X FUNCTION, "dstop-process", WIRED_CMD(ProcDStop), X- # endif X- # endif X- #endif X #ifdef ABBREV X FUNCTION, "edit-word-abbrevs", WIRED_CMD(EditAbbrevs), X #endif X--- 296,304 ---- X*************** X*** 373,383 **** X FUNCTION, "end-of-file", WIRED_CMD(Eof), X FUNCTION, "end-of-line", WIRED_CMD(Eol), X FUNCTION, "end-of-window", WIRED_CMD(Eow), X- #ifdef IPROCS X- # ifndef PIPEPROCS X FUNCTION, "eof-process", WIRED_CMD(ProcEof), X- # endif X- #endif X FUNCTION, "erase-buffer", WIRED_CMD(BufErase), X FUNCTION, "exchange-point-and-mark", WIRED_CMD(PtToMark), X FUNCTION, "execute-named-command", WIRED_CMD(Extend), X--- 306,312 ---- X*************** X*** 389,397 **** X #endif /* CMT_FMT */ X FUNCTION, "fill-paragraph", WIRED_CMD(Justify), X FUNCTION, "fill-region", WIRED_CMD(RegJustify), X- #ifndef MAC X FUNCTION, "filter-region", WIRED_CMD(FilterRegion), X- #endif X FUNCTION, "find-file", WIRED_CMD(FindFile), X FUNCTION, "find-tag", WIRED_CMD(FindTag), X FUNCTION, "find-tag-at-point", WIRED_CMD(FDotTag), X--- 318,324 ---- X*************** X*** 420,428 **** X #endif X FUNCTION, "kill-next-word", WIRED_CMD(DelNWord), X FUNCTION, "kill-previous-word", WIRED_CMD(DelPWord), X- #ifdef IPROCS X FUNCTION, "kill-process", WIRED_CMD(ProcKill), X- #endif X FUNCTION, "kill-region", WIRED_CMD(DelReg), X FUNCTION, "kill-s-expression", WIRED_CMD(KillExpr), X FUNCTION, "kill-some-buffers", WIRED_CMD(KillSome), X--- 347,353 ---- X*************** X*** 434,442 **** X DefMajor(LISPMODE), "lisp-mode", WIRED_CMD(0), X #endif X FUNCTION, "list-buffers", WIRED_CMD(BufList), X- #ifdef IPROCS X FUNCTION, "list-processes", WIRED_CMD(ProcList), X- #endif X FUNCTION, "make-buffer-unmodified", WIRED_CMD(NotModified), X FUNCTION, "make-macro-interactive", WIRED_CMD(MacInter), X FUNCTION, "name-kbd-macro", WIRED_CMD(NameMac), X--- 359,365 ---- X*************** X*** 443,451 **** X FUNCTION, "newline", WIRED_CMD(Newline), X FUNCTION, "newline-and-backup", WIRED_CMD(OpenLine), X FUNCTION, "newline-and-indent", WIRED_CMD(LineAI), X- #ifndef MAC X FUNCTION, "next-error", WIRED_CMD(NextError), X- #endif X FUNCTION, "next-line", WIRED_CMD(NextLine), X FUNCTION, "next-page", WIRED_CMD(NextPage), X FUNCTION, "next-window", WIRED_CMD(NextWindow), X--- 366,372 ---- X*************** X*** 453,501 **** X DefMinor(OverWrite), "over-write-mode", WIRED_CMD(0), X FUNCTION, "page-next-window", WIRED_CMD(PageNWind), X FUNCTION, "paren-flash", WIRED_CMD(DoParen), X- #ifndef MAC X FUNCTION, "parse-errors", WIRED_CMD(ErrParse), X- #endif X #ifdef SPELL X FUNCTION, "parse-spelling-errors-in-buffer", WIRED_CMD(SpelWords), X #endif X- #ifdef JOB_CONTROL X FUNCTION, "pause-jove", WIRED_CMD(PauseJove), X- #else X- # ifndef MAC X- FUNCTION, "pause-jove", WIRED_CMD(Push), X- # endif X- #endif X FUNCTION, "pop-mark", WIRED_CMD(PopMark), X- #ifdef CHDIR X FUNCTION, "popd", WIRED_CMD(Popd), X- #endif X FUNCTION, "prefix-1", WIRED_CMD(EscPrefix), X FUNCTION, "prefix-2", WIRED_CMD(CtlxPrefix), X FUNCTION, "prefix-3", WIRED_CMD(MiscPrefix), X- #ifndef MAC X FUNCTION, "previous-error", WIRED_CMD(PrevError), X- #endif X FUNCTION, "previous-line", WIRED_CMD(PrevLine), X FUNCTION, "previous-page", WIRED_CMD(PrevPage), X FUNCTION, "previous-window", WIRED_CMD(PrevWindow), X FUNCTION, "print", WIRED_CMD(PrVar), X- #ifdef IPROCS X FUNCTION, "process-bind-to-key", WIRED_CMD(ProcBind), X FUNCTION, "process-newline", WIRED_CMD(ProcNewline), X FUNCTION, "process-send-data-no-return", WIRED_CMD(ProcSendData), X- #endif X- #ifndef MAC X FUNCTION, "push-shell", WIRED_CMD(Push), X- #endif X- #ifdef CHDIR X FUNCTION, "pushd", WIRED_CMD(Pushd), X FUNCTION, "pwd", WIRED_CMD(prCWD), X- #endif X FUNCTION, "query-replace-string", WIRED_CMD(QRepSearch), X- #ifdef IPROCS X FUNCTION, "quit-process", WIRED_CMD(ProcQuit), X- #endif X FUNCTION, "quoted-insert", WIRED_CMD(QuotChar), X #ifdef ABBREV X FUNCTION, "read-word-abbrev-file", WIRED_CMD(RestAbbrevs), X--- 374,402 ---- X*************** X*** 509,518 **** X FUNCTION, "save-file", WIRED_CMD(SaveFile), X FUNCTION, "scroll-down", WIRED_CMD(DownScroll), X FUNCTION, "scroll-left", WIRED_CMD(ScrollLeft), X- #ifdef MSDOS X- FUNCTION, "scroll-next-page", WIRED_CMD(PageScrollUp), X- FUNCTION, "scroll-previous-page", WIRED_CMD(PageScrollDown), X- #endif /* MSDOS */ X FUNCTION, "scroll-right", WIRED_CMD(ScrollRight), X FUNCTION, "scroll-up", WIRED_CMD(UpScroll), X FUNCTION, "search-forward", WIRED_CMD(ForSearch), X--- 410,415 ---- X*************** X*** 520,549 **** X FUNCTION, "search-reverse", WIRED_CMD(RevSearch), X FUNCTION, "search-reverse-nd", WIRED_CMD(RSrchND), X FUNCTION, "select-buffer", WIRED_CMD(BufSelect), X- #ifdef MSDOS X- FUNCTION, "select-buffer-1", WIRED_CMD(Buf1Select), X- FUNCTION, "select-buffer-2", WIRED_CMD(Buf2Select), X- FUNCTION, "select-buffer-3", WIRED_CMD(Buf3Select), X- FUNCTION, "select-buffer-4", WIRED_CMD(Buf4Select), X- FUNCTION, "select-buffer-5", WIRED_CMD(Buf5Select), X- FUNCTION, "select-buffer-6", WIRED_CMD(Buf6Select), X- FUNCTION, "select-buffer-7", WIRED_CMD(Buf7Select), X- FUNCTION, "select-buffer-8", WIRED_CMD(Buf8Select), X- FUNCTION, "select-buffer-9", WIRED_CMD(Buf9Select), X- FUNCTION, "select-buffer-10", WIRED_CMD(Buf10Select), X- #endif /* MSDOS */ X FUNCTION, "self-insert", WIRED_CMD(SelfInsert), X FUNCTION, "set", WIRED_CMD(SetVar), X FUNCTION, "set-mark", WIRED_CMD(SetMark), X- #ifdef IPROCS /* for GNU compatibility */ X FUNCTION, "shell", WIRED_CMD(ShellProc), X- #endif X- #ifndef MAC X FUNCTION, "shell-command", WIRED_CMD(ShellCom), X FUNCTION, "shell-command-no-buffer", WIRED_CMD(ShNoBuf), X FUNCTION, "shell-command-to-buffer", WIRED_CMD(ShToBuf), X FUNCTION, "shell-command-with-typeout", WIRED_CMD(Shtypeout), X- #endif X DefMinor(ShowMatch), "show-match-mode", WIRED_CMD(0), X FUNCTION, "shrink-window", WIRED_CMD(ShrWindow), X FUNCTION, "source", WIRED_CMD(Source), X--- 417,430 ---- X*************** X*** 552,567 **** X #endif X FUNCTION, "split-current-window", WIRED_CMD(SplitWind), X FUNCTION, "start-remembering", WIRED_CMD(Remember), X- #ifdef IPROCS X- # ifndef PIPEPROCS X FUNCTION, "stop-process", WIRED_CMD(ProcStop), X- # endif X- #endif X FUNCTION, "stop-remembering", WIRED_CMD(Forget), X FUNCTION, "string-length", WIRED_CMD(StrLength), X- #ifdef JOB_CONTROL X FUNCTION, "suspend-jove", WIRED_CMD(PauseJove), X- #endif X DefMajor(TEXT), "text-mode", WIRED_CMD(0), X FUNCTION, "transpose-characters", WIRED_CMD(TransChar), X FUNCTION, "transpose-lines", WIRED_CMD(TransLines), X--- 433,442 ---- X*************** X*** 596,606 **** X char cmdbuf[128]; X register struct cmd *cmd; X register char *cp = cmdbuf; X- #if !(defined(IBMPC) || defined(MAC)) X register int c; X- #else X- int c; X- #endif X struct cmd *which; X int cmdlen, X found = 0; X--- 471,477 ---- X*************** X*** 621,637 **** X } X beenhere = YES; X } X- #ifdef MAC X- menus_off(); /* Block menu choices during input */ X- #endif X /* gather the cmd name */ X while (((c = getch()) != EOF) && !index(" \t\r\n", c)) { X- #if (defined(IBMPC) || defined(MAC)) X- lower(&c); X- #else X if (isupper(c)) X c = tolower(c); X- #endif X *cp++ = c; X } X if (c == EOF) X--- 492,501 ---- X*** ./usr/src/new/jove/macros.c.old Wed Mar 23 21:01:28 1988 X--- ./usr/src/new/jove/macros.c Thu Sep 17 09:38:54 2026 X*************** X*** 1,32 **** X! /*************************************************************************** X! * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X! * is provided to you without charge, and with no warranty. You may give * X! * away copies of JOVE, including sources, provided that this notice is * X! * included in all the files. * X! ***************************************************************************/ X X #include "jove.h" X #include "ctype.h" X #include "io.h" X X- #ifdef MAC X- # undef private X- # define private X- #endif X- X- #ifdef LINT_ARGS X private void X- add_mac(struct macro *), X- del_mac(struct macro *), X- pop_macro_stack(void), X- push_macro_stack(struct macro *, int); X- X- private int X- PrefChar(int); X- X- private struct macro * mac_exists(char *); X- #else X- private void X add_mac(), X del_mac(), X pop_macro_stack(), X--- 1,19 ---- X! #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)macros.c 2.0 (2.11BSD) 2026/9/17"; X! #endif X X+ /* X+ * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE X+ * is provided to you without charge, and with no warranty. You may give X+ * away copies of JOVE, including sources, provided that this notice is X+ * included in all the files. X+ */ X+ X #include "jove.h" X #include "ctype.h" X #include "io.h" X X private void X add_mac(), X del_mac(), X pop_macro_stack(), X*************** X*** 36,48 **** X PrefChar(); X X private struct macro * mac_exists(); X- #endif /* LINT_ARGS */ X X- #ifdef MAC X- # undef private X- # define private static X- #endif X- X struct macro *macros = 0; /* macros */ X int InMacDefine = NO; X X--- 23,29 ---- X*************** X*** 76,84 **** X m->m_nextm = mac->m_nextm; X break; X } X! free(mac->Name); X! free(mac->m_body); X! free((char *) mac); X } X X struct macro KeyMacro; /* Macro used for defining */ X--- 57,65 ---- X m->m_nextm = mac->m_nextm; X break; X } X! free((void *)mac->Name); X! free((void *)mac->m_body); X! free((void *) mac); X } X X struct macro KeyMacro; /* Macro used for defining */ X*************** X*** 123,129 **** X free_mthread(t) X struct m_thread *t; X { X! free((char *) t); X } X X private void X--- 104,110 ---- X free_mthread(t) X struct m_thread *t; X { X! free((void *) t); X } X X private void X*************** X*** 177,183 **** X { X if (KeyMacro.m_len >= KeyMacro.m_buflen) { X KeyMacro.m_buflen += 16; X! KeyMacro.m_body = realloc(KeyMacro.m_body, (unsigned) KeyMacro.m_buflen); X if (KeyMacro.m_body == 0) { X KeyMacro.m_buflen = KeyMacro.m_len = 0; X complain("[Can't allocate storage for keyboard macro]"); X--- 158,164 ---- X { X if (KeyMacro.m_len >= KeyMacro.m_buflen) { X KeyMacro.m_buflen += 16; X! KeyMacro.m_body = (char *)realloc((void *)KeyMacro.m_body, (unsigned) KeyMacro.m_buflen); X if (KeyMacro.m_body == 0) { X KeyMacro.m_buflen = KeyMacro.m_len = 0; X complain("[Can't allocate storage for keyboard macro]"); X*************** X*** 225,232 **** X else { X if (strcmp(name, KeyMacro.Name) == 0) X complain("[Can't name it that!]"); X! free(m->Name); X! free(m->m_body); X } X name = copystr(name); X m->Type = KeyMacro.Type; X--- 206,213 ---- X else { X if (strcmp(name, KeyMacro.Name) == 0) X complain("[Can't name it that!]"); X! free((void *)m->Name); X! free((void *)m->m_body); X } X name = copystr(name); X m->Type = KeyMacro.Type; X*** ./usr/src/new/jove/fp.c.old Mon Mar 14 19:37:44 1988 X--- ./usr/src/new/jove/fp.c Thu Sep 17 09:38:37 2026 X*************** X*** 1,9 **** X! /*************************************************************************** X * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X * is provided to you without charge, and with no warranty. You may give * X * away copies of JOVE, including sources, provided that this notice is * X * included in all the files. * X! ***************************************************************************/ X X #include "jove.h" X #include "io.h" X--- 1,12 ---- X! #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)fp.c 2.0 (2.11BSD) 2026/9/17"; X! #endif X! /* X * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X * is provided to you without charge, and with no warranty. You may give * X * away copies of JOVE, including sources, provided that this notice is * X * included in all the files. * X! */ X X #include "jove.h" X #include "io.h" X*************** X*** 138,145 **** X #endif X (void) close(fp->f_fd); X if (fp->f_flags & F_MYBUF) X! free(fp->f_base); X! free(fp->f_name); X fp->f_flags = 0; /* indicates that we're available */ X } X X--- 141,148 ---- X #endif X (void) close(fp->f_fd); X if (fp->f_flags & F_MYBUF) X! free((void *)fp->f_base); X! free((void *)fp->f_name); X fp->f_flags = 0; /* indicates that we're available */ X } X X*************** X*** 153,159 **** X #ifndef MSDOS X do X #endif /* MSDOS */ X! fp->f_cnt = read(fp->f_fd, fp->f_base, fp->f_bufsize); X #ifndef MSDOS X while (fp->f_cnt == -1 && errno == EINTR); X #endif /* MSDOS */ X--- 156,162 ---- X #ifndef MSDOS X do X #endif /* MSDOS */ X! fp->f_cnt = read(fp->f_fd, (void *)fp->f_base, fp->f_bufsize); X #ifndef MSDOS X while (fp->f_cnt == -1 && errno == EINTR); X #endif /* MSDOS */ X*************** X*** 230,236 **** X return EOF; X if (((n = (fp->f_ptr - fp->f_base)) > 0) && X #ifndef RAINBOW X! (write(fp->f_fd, fp->f_base, n) != n) && X #else X (rbwrite(fp->f_fd, fp->f_base, n) != n) && X #endif X--- 233,239 ---- X return EOF; X if (((n = (fp->f_ptr - fp->f_base)) > 0) && X #ifndef RAINBOW X! (write(fp->f_fd, (void *)fp->f_base, n) != n) && X #else X (rbwrite(fp->f_fd, fp->f_base, n) != n) && X #endif X*** ./usr/src/new/jove/proc.c.old Thu Aug 11 05:35:51 1988 X--- ./usr/src/new/jove/proc.c Thu Sep 17 13:02:44 2026 X*************** X*** 1,10 **** X! /*************************************************************************** X! * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X! * is provided to you without charge, and with no warranty. You may give * X! * away copies of JOVE, including sources, provided that this notice is * X! * included in all the files. * X! ***************************************************************************/ X X #include "jove.h" X #include "io.h" X #include "termcap.h" X--- 1,15 ---- X! #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)proc.c 2.0 (2.11BSD) 2026/9/17"; X! #endif X X+ /* X+ * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE X+ * is provided to you without charge, and with no warranty. You may give X+ * away copies of JOVE, including sources, provided that this notice is X+ * included in all the files. X+ */ X+ X+ #include X #include "jove.h" X #include "io.h" X #include "termcap.h" X*************** X*** 11,39 **** X X #include X #include X X- #ifdef MSDOS X- # include X- # include X- #endif X- X- X- #ifdef LINT_ARGS X private void X- DoShell(char *, char *), X- com_finish(int, char *), X- toerror(int, int), X- closepipe(void); X- X- private int X- okay_error(void), X- openforpipe(void), X- reopenforpipe(void); X- X- private struct error X- * AddError(struct error *, Line *, Buffer *, Line *, int); X- #else X- private void X DoShell(), X com_finish(), X toerror(), X--- 16,24 ---- X X #include X #include X+ #include X X private void X DoShell(), X com_finish(), X toerror(), X*************** X*** 46,52 **** X X private struct error X * AddError(); X- #endif X X long SigMask = 0; X X--- 31,36 ---- X*************** X*** 158,164 **** X register struct error *ep; X X for (ep = errorlist; ep != 0; ep = ep->er_next) X! free((char *) ep); X errorlist = cur_error = 0; X } X X--- 142,148 ---- X register struct error *ep; X X for (ep = errorlist; ep != 0; ep = ep->er_next) X! free((void *) ep); X errorlist = cur_error = 0; X } X X*************** X*** 478,512 **** X add_mess("]"); X } X X- #ifndef MSDOS X void X dowait(pid, status) X int pid, X *status; X { X- # ifndef IPROCS X- X- int rpid; X- X- while ((rpid = wait(status)) != pid) X- ; X- # else X- X- # ifdef BSD4_2 X- # include X- # else X- # include X- # endif X- X union wait w; X int rpid; X X for (;;) { X- # ifndef BSD4_2 X- rpid = wait2(&w.w_status, 0); X- # else X rpid = wait3(&w, 0, (struct rusage *) 0); X- # endif X if (rpid == pid) { X if (status) X *status = w.w_status; X--- 462,477 ---- X*************** X*** 514,522 **** X } else X kill_off(rpid, w); X } X- # endif /* IPROCS */ X } X- #endif /* MSDOS */ X X /* Run the command to bufname, erase the buffer if clobber is non-zero, X and redisplay if disp is non-zero. Leaves current buffer in `bufname' X--- 479,485 ---- X*************** X*** 524,546 **** X to fix everything up after we're done. (Usually there's nothing to X fix up.) */ X X- /* VARARGS5 */ X- X int X UnixToBuf(bufname, disp, wsize, clobber, va_alist) X char *bufname; X va_dcl X { X- #ifndef MSDOS X int p[2], X pid, X status, X- #else /* MSDOS */ X- int p0, X- oldo, X- olde, X- retcode, X- #endif /* MSDOS */ X eof; X va_list ap; X char *argv[32], X--- 487,500 ---- X*************** X*** 583,597 **** X little while longer before trying again. Now that is fixed, X in that you just have to type it twice. */ X X- #ifndef MSDOS X- # ifdef IPROCS X sighold(SIGCHLD); X- # endif X- # ifdef JOB_CONTROL X sighold(SIGINT); X- # else X- old_int = signal(SIGINT, SIG_IGN), X- # endif X dopipe(p); X pid = vfork(); X if (pid == -1) { X--- 537,544 ---- X*************** X*** 599,605 **** X complain("[Fork failed]"); X } X if (pid == 0) { X- # ifdef BSD4_2 X /* X * We want to release SIGCHLD and SIGINT in the child, but X * we can't use sigrelse because that would change Jove's X--- 546,551 ---- X*************** X*** 611,625 **** X */ X (void) signal(SIGINT, SIG_DFL); X (void) sigsetmask(SigMask & ~(sigmask(SIGCHLD)|sigmask(SIGINT))); X- # else /* BSD4_2 */ X- # ifdef IPROCS X- sigrelse(SIGCHLD); /* don't know if this matters */ X- # endif /* IPROCS */ X- (void) signal(SIGINT, SIG_DFL); X- # ifdef JOB_CONTROL X- sigrelse(SIGINT); X- # endif X- # endif /* BSD4_2 */ X (void) close(0); X (void) open("/dev/null", 0); X (void) close(1); X--- 557,562 ---- X*************** X*** 628,674 **** X (void) dup(p[1]); X pclose(p); X execv(argv[0], &argv[1]); X! (void) write(1, "Execl failed.\n", 14); X _exit(1); X } X- # ifdef JOB_CONTROL X old_int = signal(SIGINT, SIG_IGN); X- # endif X (void) close(p[1]); X fp = fd_open(argv[1], F_READ, p[0], iobuff, LBSIZE); X- #else /* MSDOS */ X- if ((p0 = openforpipe()) < 0) X- complain("cannot make pipe for filter"); X X- oldo = dup(1); X- olde = dup(2); X- close(1); X- close(2); X- dup(p0); X- dup(1); X- close(p0); X- retcode = spawnv(0, argv[0], &argv[1]); X- p0 = reopenforpipe(); X- close(1); X- close(2); X- dup(oldo); X- dup(olde); X- close(oldo); X- close(olde); X- X- if (retcode < 0) X- complain("[Spawn failed]"); X- X- fp = fd_open(argv[1], F_READ, p0, iobuff, LBSIZE); X- #endif /* MSDOS */ X do { X- #ifndef MSDOS X inIOread = 1; X- #endif X eof = f_gets(fp, genbuf, LBSIZE); X- #ifndef MSDOS X inIOread = 0; X- #endif X if (bufname != 0) { X ins_str(genbuf, YES); X if (!eof) X--- 565,581 ---- X (void) dup(p[1]); X pclose(p); X execv(argv[0], &argv[1]); X! (void) write(1, (void *)"Execl failed.\n", 14); X _exit(1); X } X old_int = signal(SIGINT, SIG_IGN); X (void) close(p[1]); X fp = fd_open(argv[1], F_READ, p[0], iobuff, LBSIZE); X X do { X inIOread = 1; X eof = f_gets(fp, genbuf, LBSIZE); X inIOread = 0; X if (bufname != 0) { X ins_str(genbuf, YES); X if (!eof) X*************** X*** 676,682 **** X } else if (disp == YES) X Typeout("%s", genbuf); X if (bufname != 0 && disp != 0 && fp->f_cnt <= 0) { X- #ifdef LOAD_AV X { X double theavg; X X--- 583,588 ---- X*************** X*** 688,696 **** X else X mess = "Crawling along..."; X } X- #else X- mess = "Chugging along..."; X- #endif /* LOAD_AV */ X if (bufname != 0) { X message(mess); X redisplay(); X--- 594,599 ---- X*************** X*** 700,725 **** X if (disp) X DrawMesg(NO); X close_file(fp); X- #ifndef MSDOS X dowait(pid, &status); X- # ifdef JOB_CONTROL X (void) sigrelse(SIGINT); X- # endif X- #else /* MSDOS */ X- closepipe(); X- #endif /* MSDOS */ X (void) signal(SIGINT, old_int); X- #ifndef MSDOS X- # ifdef IPROCS X sigrelse(SIGCHLD); X- # endif X return status; X- #else /* MSDOS */ X- # ifdef CHDIR X- getCWD(); X- # endif X- return retcode; X- #endif /* MSDOS */ X } X X void X--- 603,613 ---- X*************** X*** 739,802 **** X char *cmd; X { X Mark *m = CurMark(); X! #ifndef MSDOS X! char *tname = mktemp("/tmp/jfilterXXXXXX"), X combuf[128]; X- #endif /* MSDOS */ X Window *save_wind = curwind; X int status, X error = NO; X- #ifdef MSDOS X- int p0, oldi; X- #endif /* MSDOS */ X File *fp; X X- #ifndef MSDOS X fp = open_file(tname, iobuff, F_WRITE, COMPLAIN, QUIET); X- #else /* MSDOS */ X- p0 = openforpipe(); X- #endif /* MSDOS */ X CATCH X- #ifdef MSDOS X- fp = fd_open(cmd, F_WRITE, p0, iobuff, LBSIZE); X- #endif /* MSDOS */ X putreg(fp, m->m_line, m->m_char, curline, curchar, YES); X DelReg(); X- #ifndef MSDOS X sprintf(combuf, "%s < %s", cmd, tname); X- #else /* MSDOS */ X- f_close(fp); X- p0 = reopenforpipe(); X- oldi = dup(0); X- close(0); X- dup(p0); X- close(p0); X- #endif /* MSDOS */ X status = UnixToBuf(outbuf->b_name, NO, 0, outbuf->b_type == B_SCRATCH, X- #ifndef MSDOS X Shell, ShFlags, combuf, (char *) 0); X- #else /* MSDOS */ X- Shell, ShFlags, cmd, (char *) 0); X- #endif /* MSDOS */ X ONERROR X error = YES; X ENDCATCH X- #ifndef MSDOS X f_close(fp); X (void) unlink(tname); X- #else /* MSDOS */ X- close(0); X- open("con", 0); /* dup(oldi); */ X- close(oldi); X- closepipe(); X- #endif /* MSDOS */ X SetWind(save_wind); X if (error == NO) X- #ifndef MSDOS X com_finish(status, combuf); X- #else X- com_finish(status, cmd); X- #endif X } X X void X--- 627,654 ---- X char *cmd; X { X Mark *m = CurMark(); X! char *tname = (char *)mktemp("/tmp/jfilterXXXXXX"), X combuf[128]; X Window *save_wind = curwind; X int status, X error = NO; X File *fp; X X fp = open_file(tname, iobuff, F_WRITE, COMPLAIN, QUIET); X CATCH X putreg(fp, m->m_line, m->m_char, curline, curchar, YES); X DelReg(); X sprintf(combuf, "%s < %s", cmd, tname); X status = UnixToBuf(outbuf->b_name, NO, 0, outbuf->b_type == B_SCRATCH, X Shell, ShFlags, combuf, (char *) 0); X ONERROR X error = YES; X ENDCATCH X f_close(fp); X (void) unlink(tname); X SetWind(save_wind); X if (error == NO) X com_finish(status, combuf); X } X X void X*************** X*** 808,864 **** X if ((bp = buf_exists(bufname)) != 0 && bp->b_type != B_PROCESS) X confirm("Over-write buffer %s?", bufname); X } X- X- #ifdef MSDOS X- /* msdos specific hacks to allow for pipes */ X- X- #include X- #include X- #include X- #include X- X- static char pipeiname[64]; X- static char pipeoname[64]; X- static int pipehandle; X- X- extern char TmpFilePath[]; X- X- private int X- openforpipe() X- { X- sprintf(pipeiname, "%s/%s", TmpFilePath, "Jove-I"); X- sprintf(pipeoname, "%s/%s", TmpFilePath, "Jove-O"); X- X- return(pipehandle = creat(pipeoname, S_IWRITE|S_IREAD)); X- } X- X- private int X- reopenforpipe() X- { X- close(pipehandle); X- unlink(pipeiname); X- rename(pipeoname, pipeiname); X- if ((pipehandle = open(pipeiname, 0)) >= 0) X- return(pipehandle); X- closepipe(); X- return(-1); X- } X- X- private void X- closepipe() X- { X- unlink(pipeoname); X- unlink(pipeiname); X- } X- X- char X- switchar() X- { X- union REGS regs; X- X- regs.h.ah = 0x37; X- regs.h.al = 0; X- intdos(®s, ®s); X- return(regs.h.dl); X- } X- #endif /* MSDOS */ X--- 660,662 ---- X*** ./usr/src/new/jove/iproc-ptys.c.old Mon Mar 14 19:37:49 1988 X--- ./usr/src/new/jove/iproc-ptys.c Thu Sep 17 13:01:45 2026 X*************** X*** 1,15 **** X! /*************************************************************************** X * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X * is provided to you without charge, and with no warranty. You may give * X * away copies of JOVE, including sources, provided that this notice is * X * included in all the files. * X! ***************************************************************************/ X X! #ifdef BSD4_2 X! # include X! #else X! # include X! #endif X #include X #include X #include X--- 1,15 ---- X! #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)iproc-ptys.c 2.0 (2.11BSD) 2026/9/17"; X! #endif X! /* X * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X * is provided to you without charge, and with no warranty. You may give * X * away copies of JOVE, including sources, provided that this notice is * X * included in all the files. * X! */ X X! #include X! #include X #include X #include X #include X*************** X*** 102,108 **** X return; X } X X! n = read(fd, ibuf, sizeof(ibuf) - 1); X if (n == -1 && errno == EIO) { X if (proc_state(p) == NEW) X return; X--- 102,108 ---- X return; X } X X! n = read(fd, (void *)ibuf, sizeof(ibuf) - 1); X if (n == -1 && errno == EIO) { X if (proc_state(p) == NEW) X return; X*************** X*** 189,195 **** X buf[0] = c; X buf[1] = '\0'; X proc_rec(p, buf); X! (void) write(p->p_fd, &c, 1); X } X X private X--- 189,195 ---- X buf[0] = c; X buf[1] = '\0'; X proc_rec(p, buf); X! (void) write(p->p_fd, (void *)&c, 1); X } X X private X*************** X*** 230,236 **** X else X strcat(gp, "\n"); X if (nbytes = strlen(gp)) X! (void) write(p->p_fd, gp, nbytes); X line1 = line1->l_next; X char1 = 0; X } X--- 230,236 ---- X else X strcat(gp, "\n"); X if (nbytes = strlen(gp)) X! (void) write(p->p_fd, (void *)gp, nbytes); X line1 = line1->l_next; X char1 = 0; X } X*************** X*** 376,382 **** X make_argv(argv, ap); X va_end(ap); X execv(argv[0], &argv[1]); X! (void) write(1, "execve failed!\n", 15); X _exit(errno + 1); X } X X--- 376,382 ---- X make_argv(argv, ap); X va_end(ap); X execv(argv[0], &argv[1]); X! (void) write(1, (void *)"execve failed!\n", 15); X _exit(errno + 1); X } X X*** ./usr/src/new/jove/externs.h.old Mon Mar 21 20:21:02 1988 X--- ./usr/src/new/jove/externs.h Thu Sep 17 13:15:55 2026 X*************** X*** 1,636 **** X! /*************************************************************************** X! * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X! * is provided to you without charge, and with no warranty. You may give * X! * away copies of JOVE, including sources, provided that this notice is * X! * included in all the files. * X! ***************************************************************************/ X! X! #ifdef TXT_TO_C X! #define STDIO X #endif X- #ifdef LINT_ARGS X- extern int X- abs(int); X X! extern void X! exit(int), X! _exit(int), X! *calloc(unsigned int, unsigned int), X! #ifndef MAC X! free(void *), /* returns an int on a Mac */ X! #endif X! *malloc(unsigned int), X! *realloc(void *, unsigned int); X X extern char X- *getenv(char *), X- *tgoto(char *, int, int); X- X- extern char X- **scanvec(char * *args,char *str), X- *IOerr(char *err,char *file), X- *MakeName(char *command), X- *StrIndex(int dir,char *buf,int charpos,char what), X- *ask(char *, char *, ...), X- *ask_buf(struct buffer *def), X- *ask_file(char *prmt,char *def,char *buf), X- *basename(char *f), X- *copystr(char *str), X- *do_ask(char *, int (*)(), char *, char *, ...), X- *emalloc(int size), X- *filename(struct buffer *b), X- *get_time(long *timep,char *buf,int from,int to), X- *getsearch(void), X- *itoa(int num), X- *lbptr(struct line *line), X- *lcontents(struct line *line), X- *ltobuf(struct line *line,char *buf), X- *pr_name(char *fname,int okay_home), X- *ralloc(char *obj,int size), X- *sprint(char *, ...), X- switchar(void); X- X- extern int X- BufSwrite(int linenum), X- FLine(struct window *w), X- LineDist(struct line *nextp,struct line *endp), X- LookingAt(char *pattern,char *buf,int offset), X- ModBufs(int allp), X- ModMacs(void), X- Peekc(void), X- TwoBlank(void), X- UnixToBuf(char *,int ,int ,int , ...), X- addgetc(void), X- alphacomp(char * *a,char * *b), X- arg_type(void), X- arg_value(void), X- ask_int(char *prompt,int base), X- aux_complete(int c), X- blnkp(char *buf), X- calc_pos(char *lp,int c_char), X- casecmp(char *s1,char *s2), X- casencmp(char *s1,char *s2,int n), X- charp(void), X- chr_to_int(char *cp,int base,int allints, int *result), X- complete(char * *possible,char *prompt,int flags), X- do_if(char *cmd), X- dosputc(char c), X- f_getint(struct File *fp), X- f_gets(struct File *fp,char *buf,int max), X- f_match(char *file), X- filbuf(struct File *fp), X- find_pos(struct line *line,int c_char), X- fixorder(struct line * *line1,int *char1,struct line * *line2,int *char2), X- _flush(int c,struct File *fp), X- getch(void), X- getchar(void), X- getrawinchar(void), X- how_far(struct line *line,int col), X- i_blank(struct line *lp), X- i_bsblank(struct line *lp), X- in_window(struct window *windes,struct line *line), X- inlist(struct line *first,struct line *what), X- in_macro(void), X- inorder(struct line *nextp,int char1,struct line *endp,int char2), X- is_an_arg(void), X- ismword(int c), X- joverc(char *file), X- length(struct line *line), X- look_at(char *expr), X- #ifdef IBMPC X- lower(char *c), X- #endif X- mac_getc(void), X- match(char * *choices,char *what), X- max(int a,int b), X- min(int a,int b), X- numcomp(char *s1,char *s2), X- pnt_line(void), X- rawkey_ready(void), X- re_lindex(struct line *line,int offset,char *expr,char * *alts,int lbuf_okay), X- scandir(char *dir,char * * *nmptr,int (*qualify)(),int (*sorter)()), X- sindex(char *pattern,char *string), X- swrite(char *line,int inversep,int abortable), X- unbind_aux(int c), X- waitchar(int *slow), X- yes_or_no_p(char *, ...); X- X- extern disk_line X- f_getputl(struct line *line,struct File *fp), X- putline(char *buf); X- X- extern struct File X- *f_open(char *name,int flags,char *buffer,int buf_size), X- *fd_open(char *name,int flags,int fd,char *buffer,int bsize), X- *open_file(char *fname,char *buf,int how,int ifbad,int loudness); X- X- extern struct buffer X- *buf_exists(char *name), X- *do_find(struct window *w,char *fname,int force), X- *do_select(struct window *w,char *name), X- *file_exists(char *name), X- *getNMbuf(void); X- X- extern struct cmd X- *FindCmd(void (*proc)()); X- extern struct data_obj X- **IsPrefix(struct data_obj *cp), X- *findcom(char *prompt), X- *findmac(char *prompt), X- *findvar(char *prompt); X- X- extern struct line X- *lastline(struct line *lp), X- *listput(struct buffer *buf,struct line *after), X- *max_line(struct line *l1,struct line *l2), X- *min_line(struct line *l1,struct line *l2), X- *nbufline(void), X- *next_line(struct line *line,int num), X- *prev_line(struct line *line,int num), X- *reg_delete(struct line *line1,int char1,struct line *line2,int char2); X- X- extern struct m_thread X- *alloc_mthread(void); X- X- extern struct mark X- *CurMark(void), X- *MakeMark(struct line *line,int column,int type); X- X- extern struct position X- *DoYank(struct line *fline,int fchar,struct line *tline,int tchar,struct line *atline,int atchar,struct buffer *whatbuf), X- *c_indent(int incrmt), X- *docompiled(int dir,char *expr,char * *alts), X- *dosearch(char *pattern,int dir,int re), X- *lisp_indent(void), X- *m_paren(char p_type,int dir,int can_mismatch,int can_stop); X- X- extern struct table X- *make_table(void); X- X- extern struct window X- *div_wind(struct window *wp,int n), X- *w_nam_typ(char *name,int type), X- *windbp(struct buffer *bp); X- X- extern struct word X- *word_in_table(char *text,struct table *table); X- X- extern unsigned char X- chpl(void), X- lpp(void); X- X- extern void X- AbbrevExpand(void), X- AddSpecial(void), X- AllMarkSet(struct buffer *b,struct line *line,int col), X- AppReg(void), X- Apropos(void), X- BList(void), X- BSexpr(void), X- BUpList(void), X- BackChar(void), X- BackPara(void), X- BackWord(void), X- BindAKey(void), X- BindMac(void), X- BindMtoW(void), X- BindSomething(struct data_obj *(*proc)()), X- BindWMap(struct data_obj * *map,int lastkey,struct data_obj *cmd), X- Bof(void), X- Bol(void), X- Bos(void), X- Bow(void), X- Buf10Select(void), X- Buf1Select(void), X- Buf2Select(void), X- Buf3Select(void), X- Buf4Select(void), X- Buf5Select(void), X- Buf6Select(void), X- Buf7Select(void), X- Buf8Select(void), X- Buf9Select(void), X- BufErase(void), X- BufKill(void), X- BufList(void), X- BufPos(void), X- BufSelect(void), X- CAutoExec(void), X- CalcWind(struct window *w), X- CapChar(void), X- CapWord(void), X- CasRegLower(void), X- CasRegUpper(void), X- CaseReg(int up), X- CentWind(struct window *w), X- ChkWindows(struct line *line1,struct line *line2), X- ChrToOct(void), X- ClAndRedraw(void), X- Comment(void), X- CopyRegion(void), X- CtlxPrefix(void), X- DFixMarks(struct line *line1,int char1,struct line *line2,int char2), X- DOTsave(struct position *buf), X- DefAutoExec(struct data_obj *(*proc)()), X- DefGAbbrev(void), X- DefKBDMac(void), X- DefMAbbrev(void), X- DelBlnkLines(void), X- DelCurWindow(void), X- DelMacro(void), X- DelMark(struct mark *m), X- DelNChar(void), X- DelNWord(void), X- DelPChar(void), X- DelPWord(void), X- DelReg(void), X- DelWtSpace(void), X- DescBindings(void), X- DescCom(void), X- DescMap(struct data_obj * *map,char *pref), X- DescWMap(struct data_obj * *map,int key), X- Digit(void), X- Digit0(void), X- Digit1(void), X- Digit2(void), X- Digit3(void), X- Digit4(void), X- Digit5(void), X- Digit6(void), X- Digit7(void), X- Digit8(void), X- Digit9(void), X- DoAutoExec(char *new,char *old), X- DoJustify(struct line *l1,int c1,struct line *l2,int c2,int scrunch,int indent), X- DoKeys(int nocmdline), X- DoNewline(int indentp), X- DoPara(int dir), X- DoParen(void), X- DoWriteReg(int app), X- DotTo(struct line *line,int col), X- DownScroll(void), X- DrawMesg(int abortable), X- EditAbbrevs(void), X- Eof(void), X- Eol(void), X- Eos(void), X- Eow(void), X- ErrFree(void), X- ErrParse(void), X- EscPrefix(void), X- ExecCmd(struct data_obj *cp), X- ExecMacro(void), X- Extend(void), X- FDotTag(void), X- FDownList(void), X- FList(void), X- FSexpr(void), X- FSrchND(void), X- FillComment(char *format), X- FilterRegion(void), X- FindFile(void), X- FindTag(void), X- ForChar(void), X- ForPara(void), X- ForSearch(void), X- ForWord(void), X- Forget(void), X- GCchunks(void), X- GSexpr(void), X- GoLine(void), X- GotoWind(void), X- GrowWindow(void), X- HandlePref(struct data_obj * *map), X- IFixMarks(struct line *line1,int char1,struct line *line2,int char2), X- IncFSearch(void), X- IncRSearch(void), X- InitCM(void), X- InsFile(void), X- Insert(int c), X- Justify(void), X- KeyDesc(void), X- KillBos(void), X- KillEOL(void), X- KillEos(void), X- KillExpr(void), X- KillSome(void), X- Leave(void), X- LineAI(void), X- LineInsert(int num), X- LowWord(void), X- MAutoExec(void), X- MacInter(void), X- MakeErrors(void), X- MarkSet(struct mark *m,struct line *line,int column), X- MiscPrefix(void), X- NameMac(void), X- Newline(void), X- NextError(void), X- NextLine(void), X- NextPage(void), X- NextWindow(void), X- NotModified(void), X- OneWindow(void), X- OpenLine(void), X- PageNWind(void), X- PageScrollDown(void), X- PageScrollUp(void), X- ParseAll(void), X- PathParse(char *name,char *intobuf), X- Placur(int line,int col), X- PopMark(void), X- PrVar(void), X- PrevError(void), X- PrevLine(void), X- PrevPage(void), X- PrevWindow(void), X- PtToMark(void), X- Push(void), X- PushPntp(struct line *line), X- QRepSearch(void), X- QuotChar(void), X- REcompile(char *pattern,int re,char *into_buf,char * *alt_bufp), X- RErecur(void), X- RSrchND(void), X- ReNamBuf(void), X- ReadFile(void), X- Recur(void), X- RedrawDisplay(void), X- RegJustify(void), X- RegReplace(void), X- RegToUnix(struct buffer *outbuf,char *cmd), X- Remember(void), X- RepSearch(void), X- ResetTerm(void), X- RestAbbrevs(void), X- RevSearch(void), X- RunMacro(void), X- SO_off(void), X- SO_on(void), X- SaveAbbrevs(void), X- SaveFile(void), X- SelfInsert(void), X- SetABuf(struct buffer *b), X- SetBuf(struct buffer *newbuf), X- SetDot(struct position *bp), X- SetLMargin(void), X- SetMark(void), X- SetRMargin(void), X- SetTop(struct window *w,struct line *line), X- SetVar(void), X- SetWind(struct window *new), X- ShToBuf(void), X- ShellCom(void), X- ShowErr(void), X- ShowVersion(void), X- ShrWindow(void), X- SitFor(unsigned int delay), X- Source(void), X- SplitWind(void), X- StrLength(void), X- SyncTmp(void), X- TOstart(char *name,int auto_newline), X- TOstop(void), X- Tab(void), X- TimesFour(void), X- ToError(int forward), X- ToFirst(void), X- ToIndent(void), X- ToLast(void), X- ToMark(struct mark *m), X- TogMinor(int bit), X- TransChar(void), X- TransLines(void), X- Typeout(char *, ...), X- UNIX_cmdline(int argc,char * *argv), X- UnbindC(void), X- Ungetc(int c), X- UnsetTerm(char *), X- UpScroll(void), X- UppWord(void), X- WNumLines(void), X- WVisSpace(void), X- WindFind(void), X- WindSize(struct window *w,int inc), X- WriteFile(void), X- WriteMacs(void), X- WrtReg(void), X- WtModBuf(void), X- XParse(void), X- Yank(void), X- YankPop(void), X- add_mess(char *, ...), X- add_stroke(int c), X- add_word(char *wname,struct table *table), X- b_char(int n), X- b_word(int num), X- bufname(struct buffer *b), X- case_reg(struct line *line1,int char1,struct line *line2,int char2,int up), X- case_word(int up), X- cl_eol(void), X- cl_scr(int doit), X- close_file(struct File *fp), X- clr_arg_value(void), X- clrline(char *cp1,char *cp2), X- complain(char *, ...), X- confirm(char *, ...), X- d_cache_init(void), X- del_char(int dir,int num), X- del_wind(struct window *wp), X- dispatch(int c), X- do_macro(struct macro *mac), X- do_rfill(int ulm), X- do_set_mark(struct line *l,int c), X- do_sgtty(void), X- do_space(void), X- dobell(int x), X- dofread(struct File *fp), X- dword(int forward), X- error(char *, ...), X- f_char(int n), X- f_close(struct File *fp), X- f_mess(char *, ...), X- f_readn(struct File *fp,char *addr,int n), X- f_seek(struct File *fp,long offset), X- f_toNL(struct File *fp), X- f_word(int num), X- file_backup(char *fname), X- file_write(char *fname,int app), X- filemunge(char *newname), X- find_para(int how), X- find_tag(char *tag,int localp), X- finish(int code), X- flush(struct File *fp), X- flusho(void), X- format(char *buf,int len,char *fmt,char *ap), X- #ifndef STDIO X- fprintf(struct File *,char *, ...), X- #endif X- fputnchar(char *s,int n,struct File *fp), X- free_mthread(struct m_thread *t), X- freedir(char * * *nmptr,int nentries), X- freeline(struct line *line), X- gc_openfiles(void), X- getTERM(void), X- getline(disk_line addr,char *buf), X- i_set(int nline,int ncol), X- init_43(void), X- init_strokes(void), X- init_term(void), X- initlist(struct buffer *b), X- ins_c(char c,char *buf,int atchar,int num,int max), X- ins_str(char *str,int ok_nl), X- insert_c(int c,int n), X- isprocbuf(char *bufname), X- len_error(int flag), X- lfreelist(struct line *first), X- lfreereg(struct line *line1,struct line *line2), X- line_move(int dir,int n,int line_cmd), X- linecopy(char *onto,int atchar,char *from), X- lremove(struct line *line1,struct line *line2), X- lsave(void), X- mac_init(void), X- mac_putc(int c), X- #ifndef MAC X- main(int argc,char * *argv), X- #endif X- make_argv(char * *argv,char *ap), X- make_scr(void), X- message(char *str), X- minib_add(char *str,int movedown), X- modify(void), X- mp_error(void), X- n_indent(int goal), X- negate_arg_value(void), X- null_ncpy(char *to,char *from,int n), X- open_lines(int n), X- patchup(struct line *line1,int char1,struct line *line2,int char2), X- pop_env(jmp_buf), X- pop_wind(char *name,int clobber,int btype), X- prCTIME(void), X- pr_putc(int c,struct File *fp), X- #ifndef STDIO X- printf(char *, ...), X- #endif X- push_env(jmp_buf), X- put_bufs(int askp), X- putmatch(int which,char *buf,int size), X- putpad(char *str,int lines), X- putreg(struct File *fp,struct line *line1,int char1,struct line *line2,int char2,int makesure), X- putstr(char *s), X- rbell(void), X- re_dosub(char *tobuf,int delp), X- read_file(char *file,int is_insert), X- redisplay(void), X- reg_kill(struct line *line2,int char2,int dot_moved), X- reset_43(void), X- s_mess(char *, ...), X- set_arg_value(int n), X- set_ino(struct buffer *b), X- set_is_an_arg(int there_is), X- set_mark(void), X- set_wsize(int wsize), X- setbname(struct buffer *b,char *name), X- setcolor(unsigned char fg,unsigned char bg), X- setfname(struct buffer *b,char *name), X- setsearch(char *str), X- settout(char *ttbuf), X- slowpoke(void), X- #ifndef STDIO X- sprintf(char *,char *, ...), X- #endif X- tiewind(struct window *w,struct buffer *bp), X- tmpclose(void), X- tmpinit(void), X- to_word(int dir), X- ttinit(void), X- ttsize(void), X- tty_reset(void), X- ttyset(int n), X- unmodify(void), X- unwind_macro_stack(void), X- updmode(void), X- v_clear(int line1,int line2), X- v_del_line(int num,int top,int bottom), X- v_ins_line(int num,int top,int bottom), X- winit(void), X- write_em(char *s), X- write_emc(char *s,int n), X- write_emif(), X- write_emif(char *s); X- X- #ifdef MAC X- X- extern int X- creat(char *,int), X- open(char *,int), X- close(int), X- read(int,char *,unsigned), X- write(int,char *,unsigned), X- free(char *); X- unlink(char *), X- chdir(char *), X- rawchkc(void), X- getArgs(char ***); X- X- X- extern long X- lseek(int,long,unsigned); X- X- extern char X- *pwd(void), X- *index(char *,char), X- *mktemp(char *), X- *rindex(char *,char), X- *getwd(char *), X- *pfile(char *), X- *gfile(char *); X- X- extern void X- MacInit(void), X- InitBinds(void), X- NPlacur(int,int), X- i_lines(int,int,int), X- d_lines(int,int,int), X- clr_page(void), X- clr_eoln(void), X- docontrols(void), X- RemoveScrollBar(Window *), X- InitEvents(void), X- menus_on(void), X- menus_off(void); X- X- #endif /* MAC */ X- X- #else X- X- extern time_t X- time(); X- X- extern long X- lseek(); X- X- extern int X- abs(), X- read(), X- write(); X- X- extern void X- exit(), X- _exit(), X- free(); X- X- extern char X- *getenv(), X *pwd(), X- *index(), X- *malloc(), X- *mktemp(), X- *realloc(), X- *rindex(), X- #ifdef IPROCS X *pstate(), X- #endif X *tgoto(); X X extern char X--- 1,17 ---- X! #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)externs.h 2.0 (2.11BSD) 2026/9/17"; X #endif X X! /* X! * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE X! * is provided to you without charge, and with no warranty. You may give X! * away copies of JOVE, including sources, provided that this notice is X! * included in all the files. X! */ X X extern char X *pwd(), X *pstate(), X *tgoto(); X X extern char X*************** X*** 704,712 **** X joverc(), X length(), X look_at(), X- #ifdef IBMPC X- lower(), X- #endif X mac_getc(), X match(), X max(), X--- 85,90 ---- X*************** X*** 1071,1079 **** X flush(), X flusho(), X format(), X- #ifndef STDIO X- fprintf(), X- #endif X fputnchar(), X free_mthread(), X freedir(), X--- 449,454 ---- X*************** X*** 1115,1123 **** X pop_wind(), X prCTIME(), X pr_putc(), X- #ifndef STDIO X- printf(), X- #endif X push_env(), X put_bufs(), X putmatch(), X--- 490,495 ---- X*************** X*** 1142,1150 **** X setsearch(), X settout(), X slowpoke(), X- #ifndef STDIO X- sprintf(), X- #endif X tiewind(), X tmpclose(), X tmpinit(), X--- 514,519 ---- X*************** X*** 1164,1167 **** X write_emc(), X write_emif(), X write_emif(); X- #endif X--- 533,535 ---- X*** ./usr/src/new/jove/term.c.old Mon Mar 21 20:32:09 1988 X--- ./usr/src/new/jove/term.c Thu Sep 17 09:40:17 2026 X*************** X*** 1,9 **** X! /*************************************************************************** X * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X * is provided to you without charge, and with no warranty. You may give * X * away copies of JOVE, including sources, provided that this notice is * X * included in all the files. * X! ***************************************************************************/ X X #include "jove.h" X #include X--- 1,12 ---- X! #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)term.c 2.0 (2.11BSD) 2026/9/17"; X! #endif X! /* X * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X * is provided to you without charge, and with no warranty. You may give * X * away copies of JOVE, including sources, provided that this notice is * X * included in all the files. * X! */ X X #include "jove.h" X #include X*************** X*** 111,117 **** X gets(buf) X char *buf; X { X! buf[read(0, buf, 12) - 1] = 0; X } X X /* VARARGS1 */ X--- 114,120 ---- X gets(buf) X char *buf; X { X! buf[read(0, (void *)buf, 12) - 1] = 0; X } X X /* VARARGS1 */ X*** ./usr/src/new/jove/marks.c.old Mon Mar 14 19:37:56 1988 X--- ./usr/src/new/jove/marks.c Thu Sep 17 09:40:30 2026 X*************** X*** 1,9 **** X! /*************************************************************************** X * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X * is provided to you without charge, and with no warranty. You may give * X * away copies of JOVE, including sources, provided that this notice is * X * included in all the files. * X! ***************************************************************************/ X X int MarksShouldFloat = 1; X X--- 1,12 ---- X! #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)marks.c 2.0 (2.11BSD) 2026/9/17"; X! #endif X! /* X * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X * is provided to you without charge, and with no warranty. You may give * X * away copies of JOVE, including sources, provided that this notice is * X * included in all the files. * X! */ X X int MarksShouldFloat = 1; X X*************** X*** 32,38 **** X m = b->b_marks; X while (m != 0) { X next = m->m_next; X! free((char *) m); X m = next; X } X } X--- 35,41 ---- X m = b->b_marks; X while (m != 0) { X next = m->m_next; X! free((void *) m); X m = next; X } X } X*************** X*** 52,58 **** X complain("Unknown mark!"); X mp->m_next = m->m_next; X } X! free((char *) m); X } X X void X--- 55,61 ---- X complain("Unknown mark!"); X mp->m_next = m->m_next; X } X! free((void *) m); X } X X void X*** ./usr/src/new/jove/recover.c.old Fri Dec 26 01:16:37 2025 X--- ./usr/src/new/jove/recover.c Thu Sep 17 13:05:15 2026 X*************** X*** 1,11 **** X! /*************************************************************************** X! * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X! * is provided to you without charge, and with no warranty. You may give * X! * away copies of JOVE, including sources, provided that this notice is * X! * included in all the files. * X! ***************************************************************************/ X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)recover.c 1.1 (2.11BSD) 2025/12/26"; X #endif X X /* Recovers JOVE files after a system/editor crash. X--- 1,12 ---- X! /* X! * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE X! * is provided to you without charge, and with no warranty. You may give X! * away copies of JOVE, including sources, provided that this notice is X! * included in all the files. X! */ X! X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)recover.c 1.2 (2.11BSD) 2026/7/28"; X #endif X X /* Recovers JOVE files after a system/editor crash. X*************** X*** 27,32 **** X--- 28,34 ---- X X #define STDIO X X+ #include X #include "jove.h" X #include "temp.h" X #include "rec.h" X*************** X*** 148,154 **** X X if (bno != curblock) { X lseek(data_fd, (long) bno * BUFSIZ, L_SET); X! read(data_fd, blk_buf, BUFSIZ); X curblock = bno; X } X return blk_buf + off; X--- 150,156 ---- X X if (bno != curblock) { X lseek(data_fd, (long) bno * BUFSIZ, L_SET); X! read(data_fd, (void *)blk_buf, BUFSIZ); X curblock = bno; X } X return blk_buf + off; X*************** X*** 160,166 **** X { X char *str; X X! str = malloc(strlen(s) + 1); X strcpy(str, s); X X return str; X--- 162,168 ---- X { X char *str; X X! str = (char *)malloc(strlen(s) + 1); X strcpy(str, s); X X return str; X*************** X*** 173,179 **** X char *dir; X struct direct ***nmptr; X int (*qualify)(); X! struct direct *(*sorter)(); X { X DIR *dirp; X struct direct *entry, X--- 175,181 ---- X char *dir; X struct direct ***nmptr; X int (*qualify)(); X! int (*sorter)(); X { X DIR *dirp; X struct direct *entry, X*************** X*** 188,194 **** X if (qualify != 0 && (*qualify)(entry) == 0) X continue; X if (nentries == nalloc) { X! ourarray = (struct direct **) realloc(ourarray, (nalloc += 10) * sizeof (struct direct)); X if (ourarray == NULL) X return -1; X } X--- 190,196 ---- X if (qualify != 0 && (*qualify)(entry) == 0) X continue; X if (nentries == nalloc) { X! ourarray = (struct direct **) realloc((void *)ourarray, (nalloc += 10) * sizeof (struct direct)); X if (ourarray == NULL) X return -1; X } X*************** X*** 198,207 **** X } X closedir(dirp); X if (nentries != nalloc) X! ourarray = (struct direct **) realloc(ourarray, X (nentries * sizeof (struct direct))); X if (sorter != 0) X! qsort(ourarray, nentries, sizeof (struct direct **), sorter); X *nmptr = ourarray; X X return nentries; X--- 200,209 ---- X } X closedir(dirp); X if (nentries != nalloc) X! ourarray = (struct direct **) realloc((void *)ourarray, X (nentries * sizeof (struct direct))); X if (sorter != 0) X! qsort((void *)ourarray, nentries, sizeof (struct direct **), sorter); X *nmptr = ourarray; X X return nentries; X*************** X*** 248,254 **** X (void) sprintf(rfile, "%s/%s", CurDir, dp->d_name); X (void) sprintf(dfile, "%s/jove%s", CurDir, dp->d_name + 4); X if ((fd = open(rfile, 0)) != -1) { X! if ((read(fd, (char *) &header, sizeof header) != sizeof header)) { X close(fd); X return 0; X } else X--- 250,256 ---- X (void) sprintf(rfile, "%s/%s", CurDir, dp->d_name); X (void) sprintf(dfile, "%s/jove%s", CurDir, dp->d_name + 4); X if ((fd = open(rfile, 0)) != -1) { X! if ((read(fd, (void *) &header, sizeof header) != sizeof header)) { X close(fd); X return 0; X } else X*************** X*** 468,474 **** X read_rec(buflist[i]); X } X while (buflist[i]) { X! free((char *) buflist[i]); X buflist[i] = 0; X i += 1; X } X--- 470,476 ---- X read_rec(buflist[i]); X } X while (buflist[i]) { X! free((void *) buflist[i]); X buflist[i] = 0; X i += 1; X } X*** ./usr/src/new/jove/c.c.old Wed Apr 6 15:13:29 1988 X--- ./usr/src/new/jove/c.c Thu Sep 17 13:26:04 2026 X*************** X*** 1,9 **** X! /*************************************************************************** X * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X * is provided to you without charge, and with no warranty. You may give * X * away copies of JOVE, including sources, provided that this notice is * X * included in all the files. * X! ***************************************************************************/ X X /* Contains commands for C mode. Paren matching routines are in here. */ X X--- 1,13 ---- X! #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)c.c 2.0 (2.11BSD) 2026/9/17"; X! #endif X! X! /* X * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X * is provided to you without charge, and with no warranty. You may give * X * away copies of JOVE, including sources, provided that this notice is * X * included in all the files. * X! */ X X /* Contains commands for C mode. Paren matching routines are in here. */ X X*************** X*** 10,15 **** X--- 14,21 ---- X #include "jove.h" X #include "re.h" X #include "ctype.h" X+ #include X+ #include X X #ifdef MAC X # undef private X*** ./usr/src/new/jove/insert.c.old Mon Mar 14 19:37:46 1988 X--- ./usr/src/new/jove/insert.c Thu Sep 17 09:41:49 2026 X*************** X*** 1,9 **** X! /*************************************************************************** X * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X * is provided to you without charge, and with no warranty. You may give * X * away copies of JOVE, including sources, provided that this notice is * X * included in all the files. * X! ***************************************************************************/ X X #include "jove.h" X #include "ctype.h" X--- 1,12 ---- X! #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)insert.c 2.0 (2.11BSD) 2026/9/17"; X! #endif X! /* X * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X * is provided to you without charge, and with no warranty. You may give * X * away copies of JOVE, including sources, provided that this notice is * X * included in all the files. * X! */ X X #include "jove.h" X #include "ctype.h" X*************** X*** 638,645 **** X else X fchunk = cp->c_nextfree; X remfreelines(cp); X! free((char *) cp->c_block); X! free((char *) cp); X } else X prev = cp; X } X--- 641,648 ---- X else X fchunk = cp->c_nextfree; X remfreelines(cp); X! free((void *) cp->c_block); X! free((void *) cp); X } else X prev = cp; X } X*** ./usr/src/new/jove/screen.c.old Mon Mar 21 20:31:09 1988 X--- ./usr/src/new/jove/screen.c Thu Sep 17 09:42:17 2026 X*************** X*** 1,9 **** X! /*************************************************************************** X * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X * is provided to you without charge, and with no warranty. You may give * X * away copies of JOVE, including sources, provided that this notice is * X * included in all the files. * X! ***************************************************************************/ X X #include "jove.h" X #include "io.h" X--- 1,12 ---- X! #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)screen.c 2.0 (2.11BSD) 2026/9/17"; X! #endif X! /* X * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X * is provided to you without charge, and with no warranty. You may give * X * away copies of JOVE, including sources, provided that this notice is * X * included in all the files. * X! */ X X #include "jove.h" X #include "io.h" X*************** X*** 460,473 **** X #ifdef RESHAPING X /* In case we are RESHAPING the window! */ X if (DesiredScreen) X! free((char *) DesiredScreen); X if (PhysScreen) X! free((char *) PhysScreen); X if (Savelines) X! free((char *) Savelines); X if (Screen) { X! free(Screen->s_line); /* free all the screen data */ X! free((char *) Screen); X } X #endif /* RESHAPING */ X X--- 463,476 ---- X #ifdef RESHAPING X /* In case we are RESHAPING the window! */ X if (DesiredScreen) X! free((void *) DesiredScreen); X if (PhysScreen) X! free((void *) PhysScreen); X if (Savelines) X! free((void *) Savelines); X if (Screen) { X! free((void *)Screen->s_line); /* free all the screen data */ X! free((void *) Screen); X } X #endif /* RESHAPING */ X X*** ./usr/src/new/jove/scandir.c.old Mon Mar 21 20:29:26 1988 X--- ./usr/src/new/jove/scandir.c Thu Sep 17 09:42:33 2026 X*************** X*** 1,9 **** X! /*************************************************************************** X * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X * is provided to you without charge, and with no warranty. You may give * X * away copies of JOVE, including sources, provided that this notice is * X * included in all the files. * X! ***************************************************************************/ X X #include "jove.h" X X--- 1,12 ---- X! #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)scandir.c 2.0 (2.11BSD) 2026/9/17"; X! #endif X! /* X * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne. JOVE * X * is provided to you without charge, and with no warranty. You may give * X * away copies of JOVE, including sources, provided that this notice is * X * included in all the files. * X! */ X X #include "jove.h" X X*************** X*** 105,111 **** X if (qualify != 0 && (*qualify)(entry->d_name) == 0) X continue; X if (nentries == nalloc) { X! ourarray = (char **) realloc((char *) ourarray, (nalloc += 10) * sizeof (char *)); X if (ourarray == 0) X goto memfail; X } X--- 108,114 ---- X if (qualify != 0 && (*qualify)(entry->d_name) == 0) X continue; X if (nentries == nalloc) { X! ourarray = (char **) realloc((void *) ourarray, (nalloc += 10) * sizeof (char *)); X if (ourarray == 0) X goto memfail; X } X*************** X*** 115,124 **** X } X closedir(dirp); X if ((nentries + 1) != nalloc) X! ourarray = (char **) realloc((char *) ourarray, X ((nentries + 1) * sizeof (char *))); X if (sorter != 0) X! qsort((char *) ourarray, nentries, sizeof (char **), sorter); X *nmptr = ourarray; X ourarray[nentries] = 0; /* guaranteed 0 pointer */ X X--- 118,127 ---- X } X closedir(dirp); X if ((nentries + 1) != nalloc) X! ourarray = (char **) realloc((void *) ourarray, X ((nentries + 1) * sizeof (char *))); X if (sorter != 0) X! qsort((void *) ourarray, nentries, sizeof (char **), sorter); X *nmptr = ourarray; X ourarray[nentries] = 0; /* guaranteed 0 pointer */ X X*************** X*** 199,206 **** X char **ourarray = *nmptr; X X while (--nentries >= 0) X! free(*ourarray++); X! free((char *) *nmptr); X *nmptr = 0; X } X X--- 202,209 ---- X char **ourarray = *nmptr; X X while (--nentries >= 0) X! free((void *)*ourarray++); X! free((void *) *nmptr); X *nmptr = 0; X } X X*** ./usr/src/new/l11/link.c.old Fri Dec 26 01:18:20 2025 X--- ./usr/src/new/l11/link.c Tue Sep 22 09:47:51 2026 X*************** X*** 1,11 **** X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)link.c 1.1 (2.11BSD) 2025/12/26"; X #endif X X # include "link.h" X! char *strcpy(), *ctime(), *strsub(), *tack(), *lalloc(); X WORD getword(); X #include X X /******************** variables with global scope ************************/ X X--- 1,13 ---- X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)link.c 1.2 (2.11BSD) 2026/9/22"; X #endif X X # include "link.h" X! char *strsub(), *tack(), *lalloc(); X WORD getword(); X #include X+ #include X+ #include X X /******************** variables with global scope ************************/ X X*************** X*** 60,68 **** X char No_out = 0; /* boolean for no out file */ X char Scanerr = 0; /* boolean for error in arguments */ X X! /********************** main ********************************************/ X X- X main(argc, argv) X int argc; X char *argv[]; X--- 62,69 ---- X char No_out = 0; /* boolean for no out file */ X char Scanerr = 0; /* boolean for error in arguments */ X X! extern void bail_out(); X X main(argc, argv) X int argc; X char *argv[]; X*************** X*** 81,90 **** X loose_ends(); X } X X- X /********************* scanargs ******************************************/ X X- X scanargs(argc, argv) X int argc; X char *argv[]; X--- 82,89 ---- X*************** X*** 714,720 **** X { X register struct objfile *op; X register struct psect *pp; X! int tvec[2]; /* time vector */ X static char dashes[] = "----------------"; X X Mapp = fopen(Mapname, "w"); X--- 713,719 ---- X { X register struct objfile *op; X register struct psect *pp; X! time_t tvec; X static char dashes[] = "----------------"; X X Mapp = fopen(Mapname, "w"); X*************** X*** 727,734 **** X if(Do_411) datstart = 0L; X X /* print map header */ X! time(tvec); X! fprintf(Mapp, "%s Linker-11 version 22may79 %s\n", Outname, ctime(tvec)); X fprintf(Mapp, "Magic number: %o\t", X Do_410 ? 0410 : ( Do_411 ? 0411 : 0407) ); X if(Do_410) fprintf(Mapp, "(Shared text)\n"); X--- 726,733 ---- X if(Do_411) datstart = 0L; X X /* print map header */ X! time(&tvec); X! fprintf(Mapp, "%s Linker-11 version 22may79 %s\n", Outname, ctime(&tvec)); X fprintf(Mapp, "Magic number: %o\t", X Do_410 ? 0410 : ( Do_411 ? 0411 : 0407) ); X if(Do_410) fprintf(Mapp, "(Shared text)\n"); X*************** X*** 837,844 **** X post_bail() /* set interrupt routine to bail_out */ X X { X- extern bail_out(); X- X sigx(1); X sigx(2); X sigx(3); X--- 836,841 ---- X*************** X*** 846,853 **** X } X sigx(n) X { X- extern bail_out(); X- X if(signal(n, SIG_IGN) != SIG_IGN) X signal(n, bail_out); X } X--- 843,848 ---- X*** ./usr/src/new/rcs/src/ci.c.old Thu Feb 18 14:47:53 1988 X--- ./usr/src/new/rcs/src/ci.c Tue Jul 21 21:41:20 2026 X*************** X*** 1,9 **** X /* X * RCS checkin operation X */ X! #ifndef lint X! static char rcsid[]= X! "$Header: /usr/src/local/bin/rcs/src/RCS/ci.c,v 4.6 87/12/18 11:34:41 narten Exp $ Purdue CS"; X #endif X /******************************************************************* X * check revisions into RCS files X--- 1,8 ---- X /* X * RCS checkin operation X */ X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ci.c 4.7 (2.11BSD) 2026/5/11"; X #endif X /******************************************************************* X * check revisions into RCS files X*************** X*** 108,116 **** X */ X X #include "rcsbase.h" X- #ifndef lint X- static char rcsbaseid[] = RCSBASE; X- #endif X #include X #include X #include "time.h" X--- 107,112 ---- X*************** X*** 123,131 **** X extern int nerror; /*counter for errors */ X extern char * buildrevision(); /*constructs desired revision */ X extern char * checkid(); /*check identifiers */ X- extern int partime(); /*parse free-format date/time */ X- extern long maketime(); /*convert parsed time to unix time. */ X- extern long time(); /*get date and time */ X extern struct tm * localtime(); /*convert unixtime into tm-structure */ X extern char * getdate(); /*formates current date (forward) */ X extern char * mktempfile(); /*temporary file name generator */ X--- 119,124 ---- X*************** X*** 769,778 **** X * YY.MM.DD.hh.mm.ss\0 X */ X { X! long clock; X struct tm * tm; X static char buffer[datelength]; /* date buffer */ X! clock=time((long *)0); X tm=localtime(&clock); X VOID sprintf(buffer, DATEFORM, X tm->tm_year, tm->tm_mon+1, tm->tm_mday, X--- 762,771 ---- X * YY.MM.DD.hh.mm.ss\0 X */ X { X! time_t clock; X struct tm * tm; X static char buffer[datelength]; /* date buffer */ X! clock=time((time_t *)0); X tm=localtime(&clock); X VOID sprintf(buffer, DATEFORM, X tm->tm_year, tm->tm_mon+1, tm->tm_mday, X*** ./usr/src/new/rcs/src/rcsrev.c.old Thu Feb 18 18:16:15 1988 X--- ./usr/src/new/rcs/src/rcsrev.c Mon May 11 16:15:09 2026 X*************** X*** 1,12 **** X /* X * RCS revision number handling X */ X! #ifndef lint X! static char rcsid[]= "$Id: rcsrev.c,v 4.3 87/10/18 10:38:42 narten Exp $ Purdue CS"; X #endif X! /********************************************************************************* X! ********************************************************************************* X! * X * Copyright (C) 1982 by Walter F. Tichy X * Purdue University X * Computer Science Department X--- 1,10 ---- X /* X * RCS revision number handling X */ X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)rcsrev.c 4.4 (2.11BSD) 2026/5/11"; X #endif X! /* X * Copyright (C) 1982 by Walter F. Tichy X * Purdue University X * Computer Science Department X*************** X*** 18,24 **** X * Report problems and direct all inquiries to Tichy@purdue (ARPA net). X */ X X- X /* $Log: rcsrev.c,v $ X * Revision 4.3 87/10/18 10:38:42 narten X * Updating version numbers. Changes relative to version 1.1 actually X--- 16,21 ---- X*************** X*** 53,60 **** X * in that case. X */ X X- X- X /* X #define REVTEST X /* version REVTEST is for testing the routines that generate a sequence X--- 50,55 ---- X*************** X*** 62,67 **** X--- 57,63 ---- X */ X X #include "rcsbase.h" X+ #include X X extern FILE * finptr; /* RCS input file */ X extern char * getid(); X*************** X*** 73,79 **** X--- 69,86 ---- X extern int delta(), deltatext(); X struct hshentry * genbranch(); /* forward */ X X+ static char *xgets(char *buf, int sz) X+ { X+ register char *cp; X X+ buf[0] = '\0'; X+ if (fgets(buf, sz, stdin) == NULL) X+ return(0); X+ cp = index(buf, '\n'); X+ if (cp) X+ *cp = '\0'; X+ return(buf); X+ } X X int countnumflds(s) X char * s; X*************** X*** 104,110 **** X X numflds=countnumflds(revno); X if (numflds%2 == 1) X! VOID strcpy(branchno,revno); X else { X sp=revno; tp=branchno; X for (i=1;i or '.': "); X! if(gets(symrevno)==NULL) break; X if (*symrevno == '.') break; X! VOID fprintf(stderr,"%s;\n",symrevno); X expandsym(symrevno,numricrevno); X! VOID fprintf(stderr,"expanded number: %s; ",numricrevno); X! VOID fprintf(stderr,"Date: "); X! gets(date); VOID fprintf(stderr,"%s; ",date); X! VOID fprintf(stderr,"Author: "); X! gets(author);VOID fprintf(stderr,"%s; ",author); X! VOID fprintf(stderr,"State: "); X! gets(state); VOID fprintf(stderr, "%s;\n", state); X target=genrevs(numricrevno,*date=='\0'?(char *)nil:date, *author=='\0'?(char *)nil:author, X *state=='\0'?(char *)nil:state,gendeltas); X if (target!=nil) { X--- 673,690 ---- X do { X /* all output goes to stderr, to have diagnostics and */ X /* errors in sequence. */ X! fprintf(stderr,"\nEnter revision number or or '.': "); X! if (xgets(symrevno, sizeof symrevno) == NULL) break; X if (*symrevno == '.') break; X! fprintf(stderr,"%s;\n",symrevno); X expandsym(symrevno,numricrevno); X! fprintf(stderr,"expanded number: %s; ",numricrevno); X! fprintf(stderr,"Date: "); X! xgets(date, sizeof date); fprintf(stderr,"%s; ",date); X! fprintf(stderr,"Author: "); X! xgets(author, sizeof author)); fprintf(stderr,"%s; ",author); X! fprintf(stderr,"State: "); X! xgets(state, sizeof state); fprintf(stderr, "%s;\n", state); X target=genrevs(numricrevno,*date=='\0'?(char *)nil:date, *author=='\0'?(char *)nil:author, X *state=='\0'?(char *)nil:state,gendeltas); X if (target!=nil) { X*************** X*** 692,697 **** X } X X cleanup(){} X- /*dummy*/ X X #endif REVTEST X--- 699,703 ---- X*** ./usr/src/new/rcs/src/co.c.old Thu Feb 18 14:50:29 1988 X--- ./usr/src/new/rcs/src/co.c Tue Jul 21 21:33:31 2026 X*************** X*** 1,9 **** X /* X * RCS checkout operation X */ X! #ifndef lint X! static char rcsid[]= X! "$Header: /usr/src/local/bin/rcs/src/RCS/co.c,v 4.5 87/12/18 11:35:40 narten Exp $ Purdue CS"; X #endif X /***************************************************************************** X * check out revisions from RCS files X--- 1,8 ---- X /* X * RCS checkout operation X */ X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)co.c 4.6 (2.11BSD) 2026/5/11"; X #endif X /***************************************************************************** X * check out revisions from RCS files X*************** X*** 87,108 **** X * removed unused variables. X */ X X- X- X- X #include "rcsbase.h" X #include "time.h" X- #include X #include X X- #ifndef lint X- static char rcsbaseid[] = RCSBASE; X- #endif X- X- extern FILE * fopen(); X- extern int rename(); X extern char * getcaller(); /*get login of caller */ X- extern char * malloc(); X extern struct hshentry * genrevs(); /*generate delta numbers */ X extern char * getancestor(); X extern int nextc; /*next input character */ X--- 86,96 ---- X*************** X*** 113,119 **** X extern char * mktempfile(); /*temporary file name generator */ X extern struct hshentry * findlock();/*find (and delete) a lock */ X extern struct lock * addlock(); /*add a new lock */ X- extern long maketime(); /*convert parsed time to unix time. */ X extern struct tm * localtime(); /*convert unixtime into a tm-structure */ X extern int StrictLocks; X extern FILE * finptr; /* RCS input file */ X--- 101,106 ---- X*** ./usr/src/new/rcs/src/maketime.c.old Thu Feb 18 14:52:00 1988 X--- ./usr/src/new/rcs/src/maketime.c Sat Jul 25 08:12:30 2026 X*************** X*** 3,9 **** X * MAKETIME derive 32-bit time value from TM structure. X * X * Usage: X! * long t,maketime(); X * struct tm *tp; Pointer to TM structure from X * NOTE: this must be extended version!!! X * t = maketime(tp); X--- 3,10 ---- X * MAKETIME derive 32-bit time value from TM structure. X * X * Usage: X! * time_t maketime(struct tm *); X! * X * struct tm *tp; Pointer to TM structure from X * NOTE: this must be extended version!!! X * t = maketime(tp); X*************** X*** 19,26 **** X * Copyright 1981 by Ken Harrenstien, SRI International. X * (ARPANET: KLH @ SRI) X */ X! #ifndef lint X! static char rcsid[]= "$Id: maketime.c,v 1.6 87/12/18 17:05:58 narten Exp $"; X #endif X /* $Log: maketime.c,v $ X * Revision 1.6 87/12/18 17:05:58 narten X--- 20,27 ---- X * Copyright 1981 by Ken Harrenstien, SRI International. X * (ARPANET: KLH @ SRI) X */ X! #if !defined(lint) && defined(DOSCCS) X! static char rcsid[]= "$Id: maketime.c,v 1.7 2026/5/19 17:05:58 (2.11BSD) Exp $"; X #endif X /* $Log: maketime.c,v $ X * Revision 1.6 87/12/18 17:05:58 narten X*************** X*** 27,33 **** X * include rcsparam.h X * X * Revision 1.5 87/12/18 11:35:51 narten X! * maketime.c: fixed USG code - you have tgo call "tzset" in order to have X * "timezone" set. ("localtime" calls it, but it's probably better not to X * count on "localtime" having been called.) X * X--- 28,34 ---- X * include rcsparam.h X * X * Revision 1.5 87/12/18 11:35:51 narten X! * maketime.c: fixed USG code - you have to call "tzset" in order to have X * "timezone" set. ("localtime" calls it, but it's probably better not to X * count on "localtime" having been called.) X * X*************** X*** 50,59 **** X * X * Revision 1.1 82/05/06 11:38:00 wft X * Initial revision X- * X */ X X- X #include "rcsbase.h" X #include "time.h" X X--- 51,58 ---- X*************** X*** 62,77 **** X }; X X struct tm *localtime(); X- long time(); X X! long maketime(atm) X struct tm *atm; X { register struct tm *tp; X register int i; X int year, yday, mon, day, hour, min, sec, zone, dst, leap; X! long tres, curtim; X X! VOID time(&curtim); X tp = localtime(&curtim); /* Get breakdowns of current time */ X year = tp->tm_year; /* Use to set up defaults */ X mon = tp->tm_mon; X--- 61,75 ---- X }; X X struct tm *localtime(); X X! time_t maketime(atm) X struct tm *atm; X { register struct tm *tp; X register int i; X int year, yday, mon, day, hour, min, sec, zone, dst, leap; X! time_t tres, curtim; X X! time(&curtim); X tp = localtime(&curtim); /* Get breakdowns of current time */ X year = tp->tm_year; /* Use to set up defaults */ X mon = tp->tm_mon; X*************** X*** 200,230 **** X } X X X! /* LOCALZONE return local timezone in # mins west of GMT X! * X! */ X X- #ifdef V6 X- extern long timezone; X- #else X- #ifdef USG X- extern long timezone; X- #else /* V7 */ X #include X #include X- #endif USG X- #endif V6 X X int _lclzon = -1; X localzone() X { X- #ifdef V6 X- return(_lclzon >= 0 ? _lclzon : (_lclzon = timezone/60L)); X- #else X- #ifdef USG X- tzset(); X- return(_lclzon >= 0 ? _lclzon : (_lclzon = timezone/60L)); X- #else /* V7 */ X struct timeb tb; X X if(_lclzon < 0) X--- 198,211 ---- X } X X X! /* LOCALZONE return local timezone in # mins west of GMT */ X X #include X #include X X int _lclzon = -1; X localzone() X { X struct timeb tb; X X if(_lclzon < 0) X*************** X*** 232,238 **** X _lclzon = tb.timezone; X } X return(_lclzon); X- X- #endif USG X- #endif V6 X } X--- 213,216 ---- X*** ./usr/src/new/rcs/src/rcs.c.old Mon Jul 11 11:57:14 1994 X--- ./usr/src/new/rcs/src/rcs.c Tue May 19 17:04:27 2026 X*************** X*** 1,10 **** X /* X * RCS create/change operation X */ X- #if !defined(lint) && defined(DOSCCS) X- static char rcsid[]= X- "$Header: /usr/src/local/bin/rcs/src/RCS/rcs.c,v 4.7 87/12/18 11:37:17 narten Exp $ Purdue CS"; X- #endif X /*************************************************************************** X * create RCS files or change RCS file attributes X * Compatibility with release 2: define COMPAT2 X--- 1,9 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)rcs.c 4.8 (2.11BSD) 2026/5/11"; X+ #endif X /* X * RCS create/change operation X */ X /*************************************************************************** X * create RCS files or change RCS file attributes X * Compatibility with release 2: define COMPAT2 X*************** X*** 20,27 **** X * author. X */ X X- X- X /* $Log: rcs.c,v $ X * Revision 4.7 87/12/18 11:37:17 narten X * lint cleanups (Guy Harris) X--- 19,24 ---- X*************** X*** 107,117 **** X #include X #include X #include "rcsbase.h" X- #ifndef lint X- static char rcsbaseid[] = RCSBASE; X- #endif X X- extern FILE * fopen(); X extern char * bindex(); X extern int expandsym(); /* get numeric revision name */ X extern struct hshentry * getnum(); X--- 104,110 ---- X*************** X*** 123,129 **** X extern char * Ksuffix; X #endif X extern char * getcaller(); /* get login of caller */ X- extern char * malloc(); X extern struct hshentry * genrevs(); X extern struct hshentry * breaklock(); /* remove locks (forward) */ X extern struct hshentry * findlock(); /* find and remove lock */ X--- 116,121 ---- X*************** X*** 130,136 **** X extern char * checkid(); /* check an identifier */ X extern char * getfullRCSname(); /* get full path name of RCS file */ X extern char * mktempfile(); /* temporary file name generator */ X- extern free(); X extern void catchints(); X extern void ignoreints(); X extern int nextc; /* next input character */ X--- 122,127 ---- X*** ./usr/src/new/rcs/src/rcsdiff.c.old Thu Feb 18 18:16:57 1988 X--- ./usr/src/new/rcs/src/rcsdiff.c Tue May 19 17:17:53 2026 X*************** X*** 1,10 **** X /* X * RCS rcsdiff operation X */ X- #ifndef lint X- static char rcsid[]= X- "$Header: /usr/src/new/rcs/src/RCS/rcsdiff.c,v 3.9 88/02/18 11:55:57 bostic Exp $ Purdue CS"; X- #endif X /***************************************************************************** X * generate difference between RCS revisions X ***************************************************************************** X--- 1,9 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)rcsdiff.c 4.5 (2.11BSD) 2026/5/11"; X+ #endif X /* X * RCS rcsdiff operation X */ X /***************************************************************************** X * generate difference between RCS revisions X ***************************************************************************** X*************** X*** 70,78 **** X #include X #include "rcsbase.h" X #define ERRCODE 2 /*error code for exit status */ X- #ifndef lint X- static char rcsbaseid[] = RCSBASE; X- #endif X X extern int cleanup(); /* cleanup after signals */ X extern char * mktempfile(); /*temporary file name generator */ X--- 69,74 ---- X*** ./usr/src/new/rcs/src/rcsedit.c.old Thu Feb 18 18:16:56 1988 X--- ./usr/src/new/rcs/src/rcsedit.c Mon May 11 15:52:51 2026 X*************** X*** 1,9 **** X /* X * RCS stream editor X */ X- #ifndef lint X- static char rcsid[]= "$Id: rcsedit.c,v 3.9 88/02/18 11:56:51 bostic Exp $ Purdue CS"; X- #endif X /********************************************************************************** X * edits the input file according to a X * script from stdin, generated by diff -n X--- 1,9 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)rcsedit.c 4.6 (2.11BSD) 2026/5/11"; X+ #endif X /* X * RCS stream editor X */ X /********************************************************************************** X * edits the input file according to a X * script from stdin, generated by diff -n X*** ./usr/src/new/rcs/src/rcsfcmp.c.old Thu Feb 18 14:58:13 1988 X--- ./usr/src/new/rcs/src/rcsfcmp.c Mon May 11 15:53:26 2026 X*************** X*** 1,9 **** X /* X * RCS file comparison X */ X- #ifndef lint X- static char rcsid[]= "$Id: rcsfcmp.c,v 4.3 87/12/18 11:40:02 narten Exp $ Purdue CS"; X- #endif X /***************************************************************************** X * rcsfcmp() X * Testprogram: define FCMPTEST X--- 1,9 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)rcsfcmp.c 4.4 (2.11BSD) 2026/5/11"; X+ #endif X /* X * RCS file comparison X */ X /***************************************************************************** X * rcsfcmp() X * Testprogram: define FCMPTEST X*** ./usr/src/new/rcs/src/rcsfnms.c.old Thu Feb 18 18:16:56 1988 X--- ./usr/src/new/rcs/src/rcsfnms.c Tue May 19 17:08:23 2026 X*************** X*** 1,10 **** X /* X * RCS file name handling X */ X- #ifndef lint X- static char X- rcsid[]= "$Id: rcsfnms.c,v 3.10 88/02/18 11:57:27 bostic Exp $ Purdue CS"; X- #endif X /**************************************************************************** X * creation and deletion of semaphorefile, X * creation of temporary filenames and cleanup() X--- 1,9 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)rcsfnms.c 4.7 (2.11BSD) 2026/5/11"; X+ #endif X /* X * RCS file name handling X */ X /**************************************************************************** X * creation and deletion of semaphorefile, X * creation of temporary filenames and cleanup() X*************** X*** 23,29 **** X * Report problems and direct all inquiries to Tichy@purdue (ARPA net). X */ X X- X /* $Log: rcsfnms.c,v $ X * Revision 3.10 88/02/18 11:57:27 bostic X * replaced with version 4 X--- 22,27 ---- X*************** X*** 89,106 **** X * renamed checkpath() to checkfullpath(). X */ X X- X #include "rcsbase.h" X #include X #include X #include X X- extern char * rindex(); X extern char * mktemp(); X- extern char * malloc(); X- extern FILE * fopen(); X- extern char * getwd(); /* get working directory; forward decl */ X- extern int stat(), fstat(); X X extern FILE * finptr; /* RCS input file descriptor */ X extern FILE * frewrite; /* New RCS file descriptor */ X--- 87,98 ---- X*************** X*** 108,114 **** X struct stat RCSstat, workstat; /* file status for RCS file and working file */ X int haveRCSstat, haveworkstat; /* indicators if status availalble */ X X- X char tempfilename [NCPFN+10]; /* used for derived file names */ X char sub1filename [NCPPN]; /* used for files path/file.sfx,v */ X char sub2filename [NCPPN]; /* used for files path/RCS/file.sfx,v */ X--- 100,105 ---- X*************** X*** 118,124 **** X {nil,nil,nil,nil,nil,nil,nil,nil,nil,nil}; X int lastfilename = -1;/* index of last file name in tfnames[] */ X X- X struct compair { X char * suffix, * comlead; X }; X--- 109,114 ---- X*************** X*** 142,148 **** X "p", " * ", /* pascal */ X "r", "# ", /* ratfor */ X "red", "% ", /* psl/rlisp */ X- X #ifdef sparc X "s", "! ", /* assembler */ X #endif X--- 132,137 ---- X*************** X*** 155,161 **** X #ifdef vax X "s", "# ", /* assembler */ X #endif X- X "sh", "# ", /* shell */ X "sl", "% ", /* psl */ X "red", "% ", /* psl/rlisp */ X--- 144,149 ---- X*** ./usr/src/new/rcs/src/rcsgen.c.old Sun Apr 24 19:32:34 1988 X--- ./usr/src/new/rcs/src/rcsgen.c Mon May 11 15:55:33 2026 X*************** X*** 1,9 **** X /* X * RCS revision generation X */ X- #ifndef lint X- static char rcsid[]= "$Id: rcsgen.c,v 3.6 88/04/24 17:32:22 bostic Exp $ Purdue CS"; X- #endif X /********************************************************************************* X ********************************************************************************* X * X--- 1,9 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)rcsgen.c 3.7 (2.11BSD) 2026/5/11"; X+ #endif X /* X * RCS revision generation X */ X /********************************************************************************* X ********************************************************************************* X * X*** ./usr/src/new/rcs/src/rcskeep.c.old Thu Feb 18 14:59:21 1988 X--- ./usr/src/new/rcs/src/rcskeep.c Mon May 11 15:59:41 2026 X*************** X*** 1,9 **** X /* X * RCS keyword extraction X */ X- #ifndef lint X- static char rcsid[]= "$Id: rcskeep.c,v 4.4 87/12/18 11:44:21 narten Exp $ Purdue CS"; X- #endif X /***************************************************************************** X * main routine: getoldkeys() X * Testprogram: define KEEPTEST X--- 1,9 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)rcskeep.c 4.5 (2.11BSD) 2026/5/11"; X+ #endif X /* X * RCS keyword extraction X */ X /***************************************************************************** X * main routine: getoldkeys() X * Testprogram: define KEEPTEST X*** ./usr/src/new/rcs/src/rcskeys.c.old Fri Dec 18 17:13:48 1987 X--- ./usr/src/new/rcs/src/rcskeys.c Mon May 11 16:00:14 2026 X*************** X*** 1,9 **** X /* X * RCS keyword table and match operation X */ X- #ifndef lint X- static char rcsid[]= "$Id: rcskeys.c,v 4.2 87/10/18 10:36:33 narten Exp $ Purdue CS"; X- #endif X /********************************************************************************** X ********************************************************************************** X * X--- 1,9 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)rcskeys.c 4.3 (2.11BSD) 2026/5/11"; X+ #endif X /* X * RCS keyword table and match operation X */ X /********************************************************************************** X ********************************************************************************** X * X*** ./usr/src/new/rcs/src/rcsmerge.c.old Thu Feb 18 15:00:51 1988 X--- ./usr/src/new/rcs/src/rcsmerge.c Tue May 19 17:18:00 2026 X*************** X*** 1,10 **** X /* X * rcsmerge operation X */ X- #ifndef lint X- static char rcsid[]= X- "$Header: /arthur/src/local/bin/rcs/src/RCS/rcsmerge.c,v 4.3 87/10/18 10:38:02 narten Exp $ Purdue CS"; X- #endif X /***************************************************************************** X * join 2 revisions with respect to a third X ***************************************************************************** X--- 1,9 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)rcsmerge.c 4.4 (2.11BSD) 2026/5/11"; X+ #endif X /* X * rcsmerge operation X */ X /***************************************************************************** X * join 2 revisions with respect to a third X ***************************************************************************** X*************** X*** 50,58 **** X * X */ X #include "rcsbase.h" X- #ifndef lint X- static char rcsbaseid[] = RCSBASE; X- #endif X X extern int cleanup(); /* cleanup after signals */ X extern char * mktempfile(); /*temporary file name generator */ X--- 49,54 ---- X*** ./usr/src/new/rcs/src/rcssyn.c.old Sat Jan 1 04:35:24 1994 X--- ./usr/src/new/rcs/src/rcssyn.c Tue May 19 17:10:39 2026 X*************** X*** 1,9 **** X /* X * RCS file input X */ X- #ifndef lint X- static char rcsid[]= "$Id: rcssyn.c,v 4.4.1 94/1/1 11:46:16 narten Exp $ Purdue CS"; X- #endif X /********************************************************************************* X * Syntax Analysis. X * Keyword table X--- 1,9 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)rcssyn.c 4.4.2 (2.11BSD) 2026/5/11"; X+ #endif X /* X * RCS file input X */ X /********************************************************************************* X * Syntax Analysis. X * Keyword table X*************** X*** 66,73 **** X * made sure getc() returns into an integer. X */ X X- X- X /* X #define COMPAT2 X /* version COMPAT2 reads files of the format of release 2 and 3, but X--- 66,71 ---- X*************** X*** 91,97 **** X extern struct hshentry * getnum(); X extern int getkey(); X extern int getlex(); X- extern char * malloc(); X extern readstring(); X extern int savestring(); X X--- 89,94 ---- X*************** X*** 133,140 **** X struct hshentry * Dbranch =nil; X int TotalDeltas=0; X X- X- X getadmin() X /* Function: Reads an and initializes the globals X * AccessList, LastAccess, Symbols, LastSymbol, X--- 130,135 ---- X*************** X*** 167,173 **** X if (!getlex(SEMI)) serror("Missing ';' after branch list"); X } X X- X #ifdef COMPAT2 X /* read suffix. Only in release 2 format */ X if (getkey(Ksuffix)) { X--- 162,167 ---- X*************** X*** 249,256 **** X } X } X X- X- X getdelta() X /* Function: reads a delta block. X * returns false if the current block does not start with a number. X--- 243,248 ---- X*************** X*** 304,310 **** X return (true); X } X X- X gettree() X /* Function: Reads in the delta tree with getdelta(), then X * updates the lockedby fields. X--- 296,301 ---- X*************** X*** 318,324 **** X } X } X X- X getdesc(prdesc) X int prdesc; X /* Function: read in descriptive text X--- 309,314 ---- X*************** X*** 333,343 **** X else readstring(); /*skip string*/ X } X X- X- X- X- X- X char * getkeyval(keyword, token, optional) X enum tokens token; char * keyword; int optional; X /* reads a pair of the form X--- 323,328 ---- X*************** X*** 365,373 **** X return(val); X } X X- X- X- X putadmin(fout) X register FILE * fout; X /* Function: Print the node read with getadmin() to file fout. X--- 350,355 ---- X*************** X*** 415,423 **** X VOID fprintf(fout,"%c;\n\n",SDELIM); X } X X- X- X- X putdelta(node,fout) X register struct hshentry * node; X register FILE * fout; X--- 397,402 ---- X*************** X*** 446,454 **** X X } X X- X- X- X puttree(root,fout) X struct hshentry * root; X register FILE * fout; X--- 425,430 ---- X*************** X*** 470,477 **** X } X } X X- X- X int putdtext(num,log,srcfilename,fout) X char * num, * log, * srcfilename; FILE * fout; X /* Function: write a deltatext-node to fout. X--- 446,451 ---- X*************** X*** 506,513 **** X return true; X } X X- X- X #ifdef SYNTEST X X main(argc,argv) X--- 480,485 ---- X*************** X*** 537,546 **** X exit(0); X } X X- X cleanup(){} X /*dummy*/ X X- X #endif X- X--- 509,515 ---- X*** ./usr/src/new/rcs/src/rlog.c.old Thu Feb 18 15:07:53 1988 X--- ./usr/src/new/rcs/src/rlog.c Tue Jul 21 21:44:09 2026 X*************** X*** 1,10 **** X /* X * RLOG operation X */ X- #ifndef lint X- static char rcsid[]= X- "$Header: /usr/src/local/bin/rcs/src/RCS/rlog.c,v 4.5 87/12/18 11:46:38 narten Exp $ Purdue CS"; X- #endif X /***************************************************************************** X * print contents of RCS files X ***************************************************************************** X--- 1,9 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)rlog.c 4.6 (2.11BSD) 2026/5/11"; X+ #endif X /* X * RLOG operation X */ X /***************************************************************************** X * print contents of RCS files X ***************************************************************************** X*************** X*** 20,26 **** X * Report problems and direct all inquiries to Tichy@purdue (ARPA net). X */ X X- X /* $Log: rlog.c,v $ X * Revision 4.5 87/12/18 11:46:38 narten X * more lint cleanups (Guy Harris) X--- 19,24 ---- X*************** X*** 75,93 **** X * fixed type of variables receiving from getc() (char -> int). X */ X X- X- X #include "time.h" X #include "rcsbase.h" X- #ifndef lint X- static char rcsbaseid[] = RCSBASE; X- #endif X X extern char * partialno(); X- extern FILE * fopen(); X extern char * getcaller(); /*get login of caller */ X- extern char * malloc(); X- extern free(); X extern struct hshentry * genrevs(); /*generate delta numbers */ X extern int countnumflds(); X extern int compartial(); X--- 73,83 ---- X*************** X*** 96,103 **** X extern int nextc; /*next input character */ X extern char * Klog; X extern char * Ktext; X- extern int partime(); X- extern long maketime(); /*convert parsed time to unix time. */ X extern struct tm * localtime(); /*convert unixtime into a tm-structure */ X extern int pairfilenames(); X extern struct hshentry * getnum(); X--- 86,91 ---- X*************** X*** 156,163 **** X struct stateattri * statelist; X struct authors * authorlist; X X- X- X main (argc, argv) X int argc; X char * argv[]; X--- 144,149 ---- X*************** X*** 355,365 **** X exit(nerror!=0); X } X X- X- X putrunk() X /* function: print revisions chosen, which are in trunk */ X- X { X struct hshentry * ptr, * pre; X X--- 341,348 ---- X*************** X*** 375,398 **** X putadelta(pre,ptr,true); X } X X- X- X putree(root) X struct hshentry *root; X /* function: print delta tree( not include trunck) in reversed calender X order on each branch */ X- X { X if ( root == nil ) return; X X putree(root->next); X- X putforest(root->branches); X } X X- X- X- X putforest(branchroot) X struct branchhead * branchroot; X /* function: print branches that has the same direct ancestor */ X--- 358,374 ---- X*************** X*** 406,431 **** X putree(branchroot->hsh); X } X X- X- X- X putabranch(root) X struct hshentry *root; X /* function : print one branch */ X- X { X X if ( root == nil) return; X X putabranch(root->next); X- X putadelta(root, root, false); X } X X- X- X- X- X putadelta(node,editscript,trunk) X register struct hshentry * node; X register struct hshentry * editscript; X--- 382,398 ---- X*************** X*** 477,486 **** X VOID fputs(node->log,stdout); X } X X- X- X- X- X readdeltalog() X /* Function : get the log message and skip the text of a deltatext node. X * Return false if current block does not start with a number. X--- 444,449 ---- X*************** X*** 562,573 **** X nextc = getc(finptr); X } X X- X- X- X- X- X- X exttree(root) X struct hshentry *root; X /* function: select revisions , starting with root */ X--- 525,530 ---- X*************** X*** 587,595 **** X } X } X X- X- X- X getlocker(argv) X char * argv; X /* function : get the login names of lockers from command line */ X--- 544,549 ---- X*************** X*** 620,627 **** X } X } X X- X- X getauthor(argv) X char *argv; X /* function: get the author's name form command line */ X--- 574,579 ---- X*************** X*** 655,663 **** X } X } X X- X- X- X getstate(argv) X char * argv; X /* function : get the states of revisions from command line */ X--- 607,612 ---- X*************** X*** 689,696 **** X } X } X X- X- X trunclocks() X /* Function: Truncate the list of locks to those that are held by the */ X /* id's on lockerlist. Do not truncate if lockerlist empty. */ X--- 638,643 ---- X*************** X*** 717,724 **** X } X } X X- X- X recentdate(root, pd) X struct hshentry * root; X struct Datepairs * pd; X--- 664,669 ---- X*************** X*** 744,754 **** X } X } X X- X- X- X- X- X extdate(root) X struct hshentry * root; X /* function: select revisions which are in the date range specified */ X--- 689,694 ---- X*************** X*** 791,798 **** X } X } X X- X- X extractdelta(pdelta) X struct hshentry * pdelta; X /* function: compare information of pdelta to the authorlst, lockerlist, */ X--- 731,736 ---- X*************** X*** 858,865 **** X } X } X X- X- X char * procdate(target, source) X char * target, * source; X /* Function: Parses a free-format date in target, converts it X--- 796,801 ---- X*************** X*** 867,873 **** X * Returns target on success, nil otherwise. X */ X { X! long unixtime; X struct tm parseddate, *ftm; X X if ( partime(source, &parseddate) == 0) { X--- 803,809 ---- X * Returns target on success, nil otherwise. X */ X { X! time_t unixtime; X struct tm parseddate, *ftm; X X if ( partime(source, &parseddate) == 0) { X*************** X*** 881,893 **** X return nil; X } X ftm = localtime(&unixtime); X! VOID sprintf(target,DATEFORM, X ftm->tm_year,ftm->tm_mon+1,ftm->tm_mday,ftm->tm_hour,ftm->tm_min,ftm->tm_sec); X return target; X } X X- X- X getdatepair(argv) X char * argv; X /* function: get time range from command line and store in datelist if */ X--- 817,827 ---- X return nil; X } X ftm = localtime(&unixtime); X! sprintf(target,DATEFORM, X ftm->tm_year,ftm->tm_mon+1,ftm->tm_mday,ftm->tm_hour,ftm->tm_min,ftm->tm_sec); X return target; X } X X getdatepair(argv) X char * argv; X /* function: get time range from command line and store in datelist if */ X*************** X*** 963,972 **** X } X } X X- X- X- X- X getnumericrev() X /* function: get the numeric name of revisions which stored in revlist */ X /* and then stored the numeric names in Revlst */ X--- 897,902 ---- X*************** X*** 1068,1075 **** X X } X X- X- X checkrevpair(num1,num2) X char *num1, *num2; X /* function: check whether num1, num2 are legal pair,i.e. X--- 998,1003 ---- X*************** X*** 1092,1099 **** X return true; X } X X- X- X getrevpairs(argv) X register char * argv; X /* function: get revision or branch range from command line, and */ X--- 1020,1025 ---- X*************** X*** 1168,1175 **** X } X } X X- X- X choptail(strhead) X char * strhead; X /* function : chop off the last field of a branch or a revision number */ X--- 1094,1099 ---- X*************** X*** 1180,1183 **** X for(pt = Nextdotstring-1; pt != strhead && *pt != '.'; pt--) ; X for(sp = strhead; sp < pt; sp++) *Nextdotstring++ = *sp; X } X- X--- 1104,1106 ---- X*** ./usr/src/new/rcs/src/snoop.c.old Thu Feb 18 15:08:12 1988 X--- ./usr/src/new/rcs/src/snoop.c Mon May 11 16:02:42 2026 X*************** X*** 1,10 **** X /* X * Logging of RCS commands co and ci X */ X- #ifndef lint X- static char rcsid[]= X- "$Header: /usr/src/local/bin/rcs/src/RCS/snoop.c,v 4.3 87/12/18 11:46:52 narten Exp $ Purdue CS"; X- #endif X /******************************************************************* X * This program appends argv[1] to the file SNOOPFILE. X * To avoid overlaps, it creates a lockfile with name lock in the same X--- 1,9 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)snoop.c 4.4 (2.11BSD) 2026/5/11"; X+ #endif X /* X * Logging of RCS commands co and ci X */ X /******************************************************************* X * This program appends argv[1] to the file SNOOPFILE. X * To avoid overlaps, it creates a lockfile with name lock in the same X*** ./usr/src/new/rcs/src/rcsclean.c.old Fri Dec 18 17:13:45 1987 X--- ./usr/src/new/rcs/src/rcsclean.c Tue May 19 17:17:41 2026 X*************** X*** 1,8 **** X /* X * RCS rcsclean operation X */ X- static char rcsid[]= X- "$Header $ Purdue CS"; X /***************************************************************************** X * remove unneded working files X ***************************************************************************** X--- 1,9 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)rcsclean.c 4.3 (2.11BSD) 2026/5/11"; X+ #endif X /* X * RCS rcsclean operation X */ X /***************************************************************************** X * remove unneded working files X ***************************************************************************** X*************** X*** 37,43 **** X */ X #include "rcsbase.h" X #define ERRCODE 2 /*error code for exit status */ X- static char rcsbaseid[] = RCSBASE; X X extern int cleanup(); /* cleanup after signals */ X extern char * mktempfile(); /*temporary file name generator */ X--- 38,43 ---- X*** ./usr/src/new/rcs/src/curdir.c.old Fri Dec 18 17:13:42 1987 X--- ./usr/src/new/rcs/src/curdir.c Mon May 11 16:05:58 2026 X*************** X*** 1,3 **** X--- 1,6 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)curdir.c 3.3 (2.11BSD) 2026/5/11"; X+ #endif X /******************************************************************* X * curdir: get current directory X ******************************************************************* X*************** X*** 6,14 **** X * Unlike pwd, returns to current directory after it is finished. X * Uses stdio buffering for directory reads. X */ X- X- static char rcsid[]= X- "$Header: /arthur/src/local/bin/rcs/src/RCS/curdir.c,v 3.2 87/10/18 10:21:49 narten Exp $"; X X /******************************************************************* X * $Log: curdir.c,v $ X--- 9,14 ---- X*** ./usr/src/new/rcs/src/partime.c.old Mon Oct 3 17:06:37 2022 X--- ./usr/src/new/rcs/src/partime.c Sat Jul 25 07:42:35 2026 X*************** X*** 1,3 **** X--- 1,6 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)partime.c 1.4 (2.11BSD) 2026/5/11"; X+ #endif X /* X * PARTIME parse date/time string into a TM structure X * X*************** X*** 26,36 **** X * like midnight/noon? X */ X X- #if !defined(lint) && defined(DOSCCS) X- static char rcsid[]= X- "$Header: /arthur/src/local/bin/rcs/src/RCS/partime.c,v 1.3 2022/10/2 bqt Exp $"; X- #endif X- X /* $Log: partime.c,v $ X * Revision 1.3 2022/10/2 00:00:00 bqt X * Remove a compile time warning and unused static char array X--- 29,34 ---- X*************** X*** 150,156 **** X int (*aproc)(); X X tp = (int *)atm; X! zaptime(tp); /* Initialize the TM structure */ X midnoon = TMNULL; /* and our own temp stuff */ X btoken.tcnt = btoken.tbrkl = 0; X btoken.tcp = astr; X--- 148,154 ---- X int (*aproc)(); X X tp = (int *)atm; X! memset(atm, TMNULL, sizeof (*atm)); /* init the eTM structure */ X midnoon = TMNULL; /* and our own temp stuff */ X btoken.tcnt = btoken.tbrkl = 0; X btoken.tcp = astr; X*************** X*** 476,490 **** X else lastptr = astruc; /* 1st ambig */ X } X return((unsigned int)lastptr); X- } X- X- X- X- zaptime(tp) X- register int *tp; X- /* clears tm structure pointed to by tp */ X- { register int i; X- i = (sizeof (struct tm))/(sizeof (int)); X- do *tp++ = TMNULL; /* Set entry to "unspecified" */ X- while(--i); /* Faster than FOR */ X } X--- 474,477 ---- X*** ./usr/src/new/rcs/src/rcslex.c.old Fri Dec 26 01:50:18 2025 X--- ./usr/src/new/rcs/src/rcslex.c Mon May 11 16:08:10 2026 X*************** X*** 1,9 **** X /* X * RCS file input X */ X- #if !defined(lint) & defined(DOSCCS) X- static char rcsid[]= "$Id: rcslex.c 4.5 (2.11BSD) 2025/12/26"; X- #endif X /******************************************************************************* X * Lexical Analysis. X * Character mapping table, X--- 1,9 ---- X+ #if !defined(lint) & defined(DOSCCS) X+ static char sccsid[] = "@(#)rcslex.c 4.6 (2.11BSD) 2026/5/11"; X+ #endif X /* X * RCS file input X */ X /******************************************************************************* X * Lexical Analysis. X * Character mapping table, X*** ./usr/src/new/rcs/src/rcsutil.c.old Fri Dec 26 01:51:24 2025 X--- ./usr/src/new/rcs/src/rcsutil.c Mon Sep 21 23:12:34 2026 X*************** X*** 1,9 **** X /* X * RCS utilities X */ X- #if !defined(lint) && defined(DOSCCS) X- static char rcsid[]= "$Id: rcsutil.c,v 4.3.1 (2.11BSD) 2025/12/26"; X- #endif X /***************************************************************************** X ***************************************************************************** X * X--- 1,9 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)rcsutil.c 4.3.2 (2.11BSD) 2026/5/11"; X+ #endif X /* X * RCS utilities X */ X /***************************************************************************** X ***************************************************************************** X * X*************** X*** 18,25 **** X * Report problems and direct all inquiries to Tichy@purdue (ARPA net). X */ X X- X- X /* $Log: rcsutil.c,v $ X * Revision 4.3.1 97/10/2 sms X * Use unistd.h instead of declaring system functions locally X--- 18,23 ---- X*************** X*** 74,82 **** X * Cleanup message is now suppressed in quiet mode. X */ X X- X- X- X #include X #include X #include X--- 72,77 ---- X*************** X*** 84,90 **** X #include X #include X X- extern char * malloc(); X extern char * bindex(); X extern FILE * finptr; X extern char * RCSfilename; X--- 79,84 ---- X*************** X*** 138,149 **** X } else return nil; X } X X- X- X- X- X- X- X struct lock * addlock(delta,who) X struct hshentry * delta; char * who; X /* Given a delta, addlock checks whether X--- 132,137 ---- X*************** X*** 185,192 **** X return next; X } X X- X- X int addsymbol(delta,name,rebind) X struct hshentry * delta; char * name; int rebind; X /* Function: adds a new symbolic name and associates it with node delta. X--- 173,178 ---- X*************** X*** 217,225 **** X return true; X } X X- X- X- X int checkaccesslist(who) X char * who; X /* function: Returns true if who is the superuser, the owner of the X--- 203,208 ---- X*************** X*** 240,246 **** X next=next->nextaccess; X } while (next!=nil); X X! VOID fstat(fileno(finptr),&statbuf); /* get owner of file */ X if (getuid() == statbuf.st_uid) return true; X X error("User %s not on the access list",who); X--- 223,229 ---- X next=next->nextaccess; X } while (next!=nil); X X! fstat(fileno(finptr),&statbuf); /* get owner of file */ X if (getuid() == statbuf.st_uid) return true; X X error("User %s not on the access list",who); X*************** X*** 247,262 **** X return false; X } X X catchsig(sig) X { X! VOID signal(sig, SIG_IGN); X diagnose("\nRCS: cleaning up\n"); X! VOID cleanup(); X exit(1); X } X X! X! void catchints() X { X cksignal(SIGINT); cksignal(SIGHUP); X cksignal(SIGQUIT); cksignal(SIGPIPE); X--- 230,245 ---- X return false; X } X X+ void X catchsig(sig) X { X! signal(sig, SIG_IGN); X diagnose("\nRCS: cleaning up\n"); X! cleanup(); X exit(1); X } X X! void catchints() X { X cksignal(SIGINT); cksignal(SIGHUP); X cksignal(SIGQUIT); cksignal(SIGPIPE); X*************** X*** 263,281 **** X cksignal(SIGTERM); X } X X- X cksignal(sig) X int sig; X { X if (signal(sig,SIG_IGN) != SIG_IGN) X! VOID signal(sig,catchsig); X } X X void ignoreints() X { X! VOID signal(SIGINT,SIG_IGN); VOID signal(SIGHUP,SIG_IGN); X! VOID signal(SIGQUIT,SIG_IGN); VOID signal(SIGPIPE,SIG_IGN); X! VOID signal(SIGTERM,SIG_IGN); X } X X X--- 246,263 ---- X cksignal(SIGTERM); X } X X cksignal(sig) X int sig; X { X if (signal(sig,SIG_IGN) != SIG_IGN) X! signal(sig,catchsig); X } X X void ignoreints() X { X! signal(SIGINT,SIG_IGN); signal(SIGHUP,SIG_IGN); X! signal(SIGQUIT,SIG_IGN); signal(SIGPIPE,SIG_IGN); X! signal(SIGTERM,SIG_IGN); X } X X X*************** X*** 282,293 **** X void restoreints() X { X if (oldSIGINT!=SIG_IGN) X! VOID signal(SIGINT,catchsig); X! VOID signal(SIGHUP,catchsig); VOID signal(SIGQUIT,catchsig); X! VOID signal(SIGPIPE,catchsig); VOID signal(SIGTERM,catchsig); X } X X- X fastcopy(inf,outf) X FILE * inf, * outf; X /* Function: copies the remainder of file inf to outf. First copies the X--- 264,274 ---- X void restoreints() X { X if (oldSIGINT!=SIG_IGN) X! signal(SIGINT,catchsig); X! signal(SIGHUP,catchsig); signal(SIGQUIT,catchsig); X! signal(SIGPIPE,catchsig); signal(SIGTERM,catchsig); X } X X fastcopy(inf,outf) X FILE * inf, * outf; X /* Function: copies the remainder of file inf to outf. First copies the X*************** X*** 299,305 **** X X /* write the rest of the buffer to outf */ X while ((--inf->_r)>=0) { X! VOID putc(*inf->_p++&0377,outf); X } X if (fflush(outf) == EOF) { X faterror("write error"); X--- 280,286 ---- X X /* write the rest of the buffer to outf */ X while ((--inf->_r)>=0) { X! putc(*inf->_p++&0377,outf); X } X if (fflush(outf) == EOF) { X faterror("write error"); X*************** X*** 314,329 **** X } X } X X- X- X- X- X- X #ifdef SNOOPFILE X X #include "time.h" X extern struct tm* localtime(); X- extern long time(); X X logcommand(commandname,delta, sequence,login) X char* commandname; struct hshentry * delta, * sequence[];char * login; X--- 295,304 ---- X*************** X*** 341,350 **** X long clock; X struct tm * tm; X X! clock=time((long *)0); X tm=localtime(&clock); X X! VOID sprintf(curdate,DATEFORM, X tm->tm_year, tm->tm_mon+1, tm->tm_mday, X tm->tm_hour, tm->tm_min, tm->tm_sec); X X--- 316,325 ---- X long clock; X struct tm * tm; X X! clock=time((time_t *)0); X tm=localtime(&clock); X X! sprintf(curdate,DATEFORM, X tm->tm_year, tm->tm_mon+1, tm->tm_mday, X tm->tm_hour, tm->tm_min, tm->tm_sec); X X*************** X*** 355,372 **** X else forward++; /* branch delta */ X i++; X } X! VOID sprintf(command,"%s \"%s %10sr %3db %3df %3dt %sc %so %s %s\" &\n", X SNOOP, commandname,delta->num,backward,forward,TotalDeltas,delta->date, X curdate,login,bindex(RCSfilename,'/')); X! VOID system(command); X } X #endif X- X- X- X- X- X- X- X- X- X--- 330,338 ---- X else forward++; /* branch delta */ X i++; X } X! sprintf(command,"%s \"%s %10sr %3db %3df %3dt %sc %so %s %s\" &\n", X SNOOP, commandname,delta->num,backward,forward,TotalDeltas,delta->date, X curdate,login,bindex(RCSfilename,'/')); X! system(command); X } X #endif X*** ./usr/src/new/rcs/src/sccstorcs.c.old Fri Dec 26 01:52:20 2025 X--- ./usr/src/new/rcs/src/sccstorcs.c Mon May 11 16:20:35 2026 X*************** X*** 1,5 **** X! static char *RCSid = X! "$Header: /usr/src/new/rcs/src/RCS/sccstorcs.c,v 1.4. (2.11BSD)"; X X /* X * SCCSTORCS - build RCS file from SCCS file preserving deltas. X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)sccstorcs.c 1.5 (2.11BSD) 2026/5/11"; X! #endif X X /* X * SCCSTORCS - build RCS file from SCCS file preserving deltas. X*** ./usr/src/new/rcs/src/rcsbase.h.old Fri Dec 26 01:45:00 2025 X--- ./usr/src/new/rcs/src/rcsbase.h Tue May 19 17:07:11 2026 X*************** X*** 2,20 **** X * RCS common definitions and data structures X */ X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)rcsbase.h 6.2.2 (2.11BSD) 2025/12/26"; X #endif X X! #define RCSBASE "$Id: rcsbase.h,v 4.5 87/12/18 17:06:41 narten Exp $" X /***************************************************************************** X * INSTRUCTIONS: X * ============= X * The following should be handled in the Makefile: X- * For USG Unix, define USG; for BSD Unix, don't (see ifdef USG). X- * For 4.2 bsd, define V4_2BSD; this will replace the routines X- * getwd() and rename() with the corresponding ones in the C-library. X- * V4_2BSD also selects different definitions for the macros NCPFN and NCPPN X- * (max. number of characters per filename, number of characters per path name). X * Define STRICT_LOCKING appropriately (see STRICT_LOCKING). X * The following need be changed for porting to a different machine: X * Define SMALLOG for a machine with small memory (like the PDP11). X--- 2,15 ---- X * RCS common definitions and data structures X */ X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)rcsbase.h 6.2.3 (2.11BSD) 2026/5/19"; X #endif X X! #define RCSBASE "$Id: rcsbase.h,v 4.6 2026/5/19 17:06:41 (2.11BSD) Exp $" X /***************************************************************************** X * INSTRUCTIONS: X * ============= X * The following should be handled in the Makefile: X * Define STRICT_LOCKING appropriately (see STRICT_LOCKING). X * The following need be changed for porting to a different machine: X * Define SMALLOG for a machine with small memory (like the PDP11). X*************** X*** 94,111 **** X * added typdef int void to aid compiling X */ X X- X- X #include X #undef putc /* will be redefined */ X X X- #ifdef USG X- # define rindex strrchr X- # define DATEFORM "%.2d.%.2d.%.2d.%.2d.%.2d.%.2d" X- #else X # define DATEFORM "%02d.%02d.%02d.%02d.%02d.%02d" X! #endif X /* Make sure one of %02d or %.2d prints a number with a field width 2, with X * leading zeroes. For example, 0, 1, and 22 must be printed as 00, 01, and X * 22. Otherwise, there will be problems with the dates. X--- 89,100 ---- X * added typdef int void to aid compiling X */ X X #include X #undef putc /* will be redefined */ X X X # define DATEFORM "%02d.%02d.%02d.%02d.%02d.%02d" X! X /* Make sure one of %02d or %.2d prints a number with a field width 2, with X * leading zeroes. For example, 0, 1, and 22 must be printed as 00, 01, and X * 22. Otherwise, there will be problems with the dates. X*************** X*** 142,160 **** X #define KDELIM '$' /* delimiter for keywords */ X #define VDELIM ':' /* separates keywords from values */ X #define DEFAULTSTATE "Exp" /* default state of revisions */ X! #ifdef V4_2BSD X # define NCPFN 256 /* number of characters per filename */ X # define NCPPN 1024 /* number of characters per pathname */ X- #else X- # define NCPFN 14 /* number of characters per filename */ X- # define NCPPN 6*NCPFN /* number of characters per pathname */ X #endif X #define keylength 20 /* buffer length for expansion keywords */ X #define keyvallength NCPPN+revlength+datelength+60 X /* buffer length for keyword expansion */ X X- X- X #define true 1 X #define false 0 X #define nil 0 X--- 131,147 ---- X #define KDELIM '$' /* delimiter for keywords */ X #define VDELIM ':' /* separates keywords from values */ X #define DEFAULTSTATE "Exp" /* default state of revisions */ X! #ifdef pdp11 X! # define NCPFN 64 /* number of characters per filename */ X! # define NCPPN 256 /* number of characters per pathname */ X! #else X # define NCPFN 256 /* number of characters per filename */ X # define NCPPN 1024 /* number of characters per pathname */ X #endif X #define keylength 20 /* buffer length for expansion keywords */ X #define keyvallength NCPPN+revlength+datelength+60 X /* buffer length for keyword expansion */ X X #define true 1 X #define false 0 X #define nil 0 X*************** X*** 161,167 **** X #define elsif else if X #define elif else if X X- X /* temporary file names */ X X #define NEWRCSFILE ",RCSnewXXXXXX" X--- 148,153 ---- X*************** X*** 172,178 **** X #define JOINFIL2 ",RCSj2XXXXXX" X #define JOINFIL3 ",RCSj3XXXXXX" X X- X #define putc(c, p) \ X (--(p)->_w < 0 ? \ X fflsbuf((unsigned)(c), p) : \ X--- 158,163 ---- X*************** X*** 234,247 **** X #define UNDER IDCHAR X #define UPARR IDCHAR X X- X- X- X /*************************************** X * Data structures for the symbol table X ***************************************/ X X- X /* Hash table entry */ X struct hshentry { X char * num; /* pointer to revision number (ASCIZ) */ X--- 219,228 ---- X*************** X*** 307,318 **** X extern char * NextString; X extern char * cmdid; X X- #if defined(USG) || defined(V4_2BSD) X #define VOID (void) X- #else X- typedef int void; X- #define VOID X- #endif X X /* common routines */ X extern int serror(); X--- 288,294 ---- X*************** X*** 322,330 **** X extern void catchints(); X extern void restoreints(); X X! extern char *strcpy(); X! extern char *strcat(); X! extern char *strncpy(); X X /* X * Markers for keyword expansion (used in co and ident) X--- 298,306 ---- X extern void catchints(); X extern void restoreints(); X X! #include X! #include X! #include X X /* X * Markers for keyword expansion (used in co and ident) X*************** X*** 347,351 **** X /* used by putdtext and scanlogtext */ X #define DELETE 'D' X /* set by rcs -o and used by puttree() in rcssyn */ X- X- X--- 323,325 ---- X*** ./usr/src/new/rcs/src/Makefile.old Mon Dec 8 23:07:37 2025 X--- ./usr/src/new/rcs/src/Makefile Tue May 19 11:02:31 2026 X*************** X*** 1,4 **** X! # Makefile 2.1 (2.11BSD) 2025/11/29 X # X # Copyright (C) 1982 by Walter F. Tichy X # Purdue University X--- 1,4 ---- X! # Makefile 2.2 (2.11BSD) 2026/5/19 X # X # Copyright (C) 1982 by Walter F. Tichy X # Purdue University X*************** X*** 38,51 **** X OLDDIR = /usr/old/bin X X # 4. Set the operating system variable OS. If you run on 4.1 BSD, do not X- # define OS: X- # OS = X- # If you run on USG Unix or UN*X, use: X- # OS = -DUSG X- # If you run on Version 6 Unix, use: X- # OS = -DV6 X- # If you run on 4.2 or 4.3 BSD, use: X- # OS = -DV4_2BSD X OS = -DV4_2BSD X X # 5. Decide whether you want strict locking as the default or not. X--- 38,43 ---- X*** ./usr/src/new/rcs/src/time.h.old Thu Feb 18 15:08:36 1988 X--- ./usr/src/new/rcs/src/time.h Tue Jul 21 21:36:18 2026 X*************** X*** 5,13 **** X * libcx: partime, maketime (may not be installed yet) X */ X X! #define TIMEID "$Id: time.h,v 1.1 84/01/23 14:50:50 kcs Exp $" X! X! /* $Log: time.h,v $ X * Revision 1.1 84/01/23 14:50:50 kcs X * Initial revision X * X--- 5,13 ---- X * libcx: partime, maketime (may not be installed yet) X */ X X! /* X! * @(#)time.h 1.2 (2.11BSD) 2026/7/21 X! * X * Revision 1.1 84/01/23 14:50:50 kcs X * Initial revision X * X*************** X*** 16,21 **** X--- 16,23 ---- X * X */ X X+ #include X+ X struct tm { /* See defines below for allowable ranges */ X int tm_sec; X int tm_min; X*************** X*** 50,52 **** X--- 52,57 ---- X /* New stuff */ X #define TM_ZON 9 /* 0-(24*60) minutes west of Greenwich */ X #define TM_AMPM 10 /* 1 AM, 2 PM */ X+ X+ time_t maketime(struct tm *); X+ time_t time(); X*** ./usr/src/new/rcs/src/ident.c.old Fri Dec 26 01:40:13 2025 X--- ./usr/src/new/rcs/src/ident.c Tue May 19 18:12:02 2026 X*************** X*** 1,6 **** X #if !defined(lint) && defined(DOSCCS) X char copyright[] = X! static char sccsid[] = "@(#)ident.c 6.2.1 (2.11BSD) 2025/12/26"; X #endif X X /***************************************************************************** X--- 1,6 ---- X #if !defined(lint) && defined(DOSCCS) X char copyright[] = X! static char sccsid[] = "@(#)ident.c 6.2.2 (2.11BSD) 2026/5/19"; X #endif X X /***************************************************************************** X*************** X*** 55,63 **** X #include "rcsbase.h" X #define fflsbuf __swbuf X /* redefinition of _flsbuf in putc not needed */ X- #ifndef lint X- static char rcsbaseid[] = RCSBASE; X- #endif X X extern enum markers trymatch(); X X--- 55,60 ---- X*************** X*** 71,77 **** X */ X X { X! FILE *fp, *fopen(); X X quietflag = false; X if (argc > 1 && strcmp("-q",argv[1])==0) { X--- 68,74 ---- X */ X X { X! FILE *fp; X X quietflag = false; X if (argc > 1 && strcmp("-q",argv[1])==0) { X*************** X*** 100,106 **** X exit(0); X } X X- X int scanfile(file) X FILE * file; X /* Function: scan an open file with descriptor file for keywords. X--- 97,102 ---- X*************** X*** 110,116 **** X register int matchcount; X register int c; X X- X matchcount = 0; X while( (c=getc(file)) != EOF) { X if ( (char)c==KDELIM) X--- 106,111 ---- X*************** X*** 118,125 **** X } X return matchcount; X } X- X- X X match(fp) /* group substring between two KDELIM's; then do pattern match */ X FILE *fp; X--- 113,118 ---- X*** ./usr/src/new/vmsbackup/vmsbackup.c.old Wed May 31 16:56:15 1989 X--- ./usr/src/new/vmsbackup/vmsbackup.c Mon Sep 14 14:18:56 2026 X*************** X*** 1,19 **** X /* X- * X- * Title: X- * Backup X- * X- * Decription: X- * Program to read VMS backup tape X- * X * Author: X * John Douglas CAREY. X * Sven-Ove Westberg (version 3.0) X * X- * Net-addess: X- * john%monu1.oz@seismo.ARPA X- * luthcad!sow@enea.UUCP X- * X * History: X * Version 1.0 - September 1984 X * Can only read variable length records X--- 1,8 ---- X*************** X*** 63,69 **** X * Flag to list the contents of the tape X * Distributed to mod.sources X * X- * X * Installation: X * X * Computer Centre X--- 52,57 ---- X*************** X*** 72,79 **** X * Clayton X * Victoria 3168 X * AUSTRALIA X- * X */ X #include X #include X X--- 60,71 ---- X * Clayton X * Victoria 3168 X * AUSTRALIA X */ X+ X+ #if !defined(LINT) && defined(DOSCCS) X+ static char sccsid[] = "@(#)vmsbackup.c 1.1 (2.11BSD) 2026/2/2"; X+ #endif X+ X #include X #include X X*************** X*** 86,139 **** X #include X #include X X- #ifdef pyr X- #define SWAP X- #endif pyr X- X- #ifdef sun X- #define SWAP X- #endif X- X- #ifdef pdp11 X- #define bbh_dol_w_size _bdwopsize X- #define bbh_dol_w_opsys _bdwopsys X- #define bbh_dol_w_subsys _bdwsubsys X- #define bbh_dol_w_applic _bdwapplic X- #define bbh_dol_l_number _bdlnumber X- #define bbh_dol_t_spare_1 _bdtsp1 X- #define bbh_dol_w_struclev _bdwstruclev X- #define bbh_dol_w_volnum _bdwvolnum X- #define bbh_dol_l_crc _bdlcrc X- #define bbh_dol_l_blocksize _bdlblocksize X- #define bbh_dol_l_flags _bdlflags X- #define bbh_dol_t_ssname _bdtssname X- #define bbh_dol_w_fid _bdwfid X- #define bbh_dol_w_did _bdwdid X- #define bbh_dol_t_filename _bdtfilename X- #define bbh_dol_b_rtype _bdbrtype X- #define bbh_dol_b_rattrib _bdbrattrib X- #define bbh_dol_w_rsize _bdwrsize X- #define bbh_dol_b_bktsize _bdbbktsize X- #define bbh_dol_b_vfcsize _bdbvfcsize X- #define bbh_dol_w_maxrec _bdwmaxrec X- #define bbh_dol_l_filesize _bdlfilesize X- #define bbh_dol_t_spare_2 _bdtsp2 X- #define bbh_dol_w_checksum _bdwchecksum X- X- #define brh_dol_w_rsize _bhdwrsize X- #define brh_dol_w_rtype _bhwrtyppe X- #define brh_dol_l_flags _bhlflags X- #define brh_dol_l_address _bhladdress X- #define brh_dol_l_spare _bhlspare X- X- #define bsa_dol_w_size _bawsize X- #define bsa_dol_w_type _bawtype X- #define bsa_dol_t_text _battext X- X- #define process_file __procf X- #define process_vbn __procv X- #endif X- X struct bbh { X short bbh_dol_w_size; X short bbh_dol_w_opsys; X--- 78,83 ---- X*************** X*** 301,307 **** X if(procf && wflag) { X printf("extract %s [ny]",filename); X fflush(stdout); X! gets(ans); X if(*ans != 'y') procf = NULL; X } X if(procf) X--- 245,251 ---- X if(procf && wflag) { X printf("extract %s [ny]",filename); X fflush(stdout); X! fgets(ans, sizeof ans, stdin); X if(*ans != 'y') procf = NULL; X } X if(procf) X*** ./usr/src/new/vmsbackup/vmsbackup.1.old Fri May 12 18:11:39 1989 X--- ./usr/src/new/vmsbackup/vmsbackup.1 Tue Jun 23 20:20:07 2026 X*************** X*** 1,3 **** X--- 1,4 ---- X+ .\" @(#)vmsbacku.1 1.2 (2.11BSD) 2026/6/23 X .TH VMSBACKUP 1 X .SH NAME X vmsbackup \- read a VMS backup tape X*************** X*** 118,128 **** X The name may contain the usal sh(1) meta-characters *?![] \nnn. X .SH FILES X /dev/rmt\fIx\fP X- .SH SEE ALSO X- rmtops(3) X .SH BUGS X The filename match uses the complete VMS file names. X- X .SH AUTHOR X John Douglas Carey X .br X--- 119,126 ---- X*** ./usr/src/new/la/la.1.old Sat Jun 20 16:43:32 1987 X--- ./usr/src/new/la/la.1 Thu Jun 11 15:03:47 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)la.1 6.2 (Berkeley) 6/20/87 X .\" X! .TH LA 1 "June 20, 1987" X .UC 2 X .SH NAME X la \- print 1, 5 and 15 minute system load averages X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)la.1 6.3 (2.11BSD) 2026/6/11 X .\" X! .TH LA 1 "June 11, 2026" X .UC 2 X .SH NAME X la \- print 1, 5 and 15 minute system load averages X*************** X*** 16,19 **** X These averages represent the average number of runnable jobs for X the indicated time period. X .SH "SEE ALSO" X! w(1) X--- 16,19 ---- X These averages represent the average number of runnable jobs for X the indicated time period. X .SH "SEE ALSO" X! w(1), getloadavg(3) X*** ./usr/src/new/Makefile.old Wed Dec 10 15:54:23 2025 X--- ./usr/src/new/Makefile Thu Jun 11 15:25:57 2026 X*************** X*** 1,4 **** X! # @(#)Makefile 2.0 (2.11BSD) 2025/12/10 X X MANDIR= /usr/new/man X X--- 1,4 ---- X! # @(#)Makefile 2.1 (2.11BSD) 2026/5/10 X X MANDIR= /usr/new/man X X*************** X*** 7,27 **** X # X # Default programs that are installed X # X! STDINST=ansi bm jove l11 la m11 pathalias rcs vmsbackup X X # X! # Special purpose software that requires custom installation, X! # or may not be needed by all sites X # X! OPTDIR= kermit5.188 pathalias rcs rn notes nntp X X- SUBDIR= ansi bm jove kermit5.188 l11 la m11 nntp \ X- notes pathalias rcs rn vmsbackup X- X all: ${STDINST} X X ${STDINST}: FRC X! cd $@; make ${MFLAGS} X X FRC: X X--- 7,25 ---- X # X # Default programs that are installed X # X! STDINST=ansi jove l11 la m11 rcs vmsbackup X! SUBDIR= ansi jove l11 la m11 rcs vmsbackup X X # X! # Special purpose software that requires custom installation or may not X! # be needed by all sites. X # X! OPTDIR= kermit5.188 rn nntp X X all: ${STDINST} X X ${STDINST}: FRC X! cd $@; make X X FRC: X X*************** X*** 31,41 **** X -for i in 1 2 3 4 5 6 7 8; do \ X (mkdir ${MANDIR}/cat$$i; chmod a+r ${MANDIR}/cat$$i); done X -for i in ${STDINST}; do \ X! (cd $$i; make ${MFLAGS} install); done X -/usr/sbin/makewhatis ${MANDIR} X X clean: X! for i in ${SUBDIR}; do (cd $$i; make -k ${MFLAGS} clean); done X X depend: X tags: X--- 29,39 ---- X -for i in 1 2 3 4 5 6 7 8; do \ X (mkdir ${MANDIR}/cat$$i; chmod a+r ${MANDIR}/cat$$i); done X -for i in ${STDINST}; do \ X! (cd $$i; make install); done X -/usr/sbin/makewhatis ${MANDIR} X X clean: X! for i in ${SUBDIR}; do (cd $$i; make clean); done X X depend: X tags: X*** ./usr/src/sbin/ifconfig/ifconfig.c.old Fri Jan 21 14:14:03 2022 X--- ./usr/src/sbin/ifconfig/ifconfig.c Sat Jan 31 15:25:36 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)ifconfig.c 4.21 (2.11BSD) 2022/1/21"; X #endif X X #include X--- 9,15 ---- X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)ifconfig.c 4.22 (2.11BSD) 2026/1/31"; X #endif X X #include X*************** X*** 61,77 **** X } cmds[] = { X { "up", IFF_UP, setifflags } , X { "down", -IFF_UP, setifflags }, X- { "trailers", -IFF_NOTRAILERS,setifflags }, X- { "-trailers", IFF_NOTRAILERS, setifflags }, X { "arp", -IFF_NOARP, setifflags }, X { "-arp", IFF_NOARP, setifflags }, X { "debug", IFF_DEBUG, setifflags }, X { "-debug", -IFF_DEBUG, setifflags }, X- #ifdef notdef X- #define EN_SWABIPS 0x1000 X- { "swabips", EN_SWABIPS, setifflags }, X- { "-swabips", -EN_SWABIPS, setifflags }, X- #endif X { "netmask", NEXTARG, setifnetmask }, X { "metric", NEXTARG, setifmetric }, X { "broadcast", NEXTARG, setifbroadaddr }, X--- 61,70 ---- X*************** X*** 114,120 **** X "\t[ af [ address [ dest_addr ] ] [ up ] [ down ]", X "[ netmask mask ] ]\n", X "\t[ metric n ]\n", X- "\t[ trailers | -trailers ]\n", X "\t[ arp | -arp ]\n"); X exit(1); X } X--- 107,112 ---- X*** ./usr/src/sbin/ifconfig/ifconfig.8.old Sun Nov 17 01:55:41 1996 X--- ./usr/src/sbin/ifconfig/ifconfig.8 Sat Jan 31 15:26:37 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)ifconfig.8 6.4.1 (2.11BSD) 1996/11/16 X .\" X! .TH IFCONFIG 8 "November 16, 1996" X .UC 5 X .SH NAME X ifconfig \- configure network interface parameters X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)ifconfig.8 6.4.2 (2.11BSD) 2026/1/31 X .\" X! .TH IFCONFIG 8 "January 31, 2026" X .UC 5 X .SH NAME X ifconfig \- configure network interface parameters X*************** X*** 81,106 **** X transmit messages through that interface. X If possible, the interface will be reset to disable reception as well. X This action does not automatically disable routes using the interface. X- .TP 15 X- .B trailers X- Request the use of a ``trailer'' link level encapsulation when X- sending (default). X- If a network interface supports X- .IR trailers , X- the system will, when possible, encapsulate outgoing X- messages in a manner which minimizes the number of X- memory to memory copy operations performed by the receiver. X- On networks that support the Address Resolution Protocol (see X- .IR arp (4P); X- currently, only 10 Mb/s Ethernet), X- this flag indicates that the system should request that other X- systems use trailers when sending to this host. X- Similarly, trailer encapsulations will be sent to other X- hosts that have made such requests. X- Currently used by Internet protocols only. X- .TP 15 X- .B \-trailers X- Disable the use of a ``trailer'' link level encapsulation. X .TP 15 X .B arp X Enable the use of the Address Resolution Protocol in mapping X--- 81,86 ---- X*** ./usr/src/sbin/testnet/testnet.c.old Wed Feb 1 00:32:36 1989 X--- ./usr/src/sbin/testnet/testnet.c Thu May 7 22:22:03 2026 X*************** X*** 1,3 **** X--- 1,6 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)testnet.c 1.1 (2.11BSD) 2026/5/7"; X+ #endif X X #include X #include X*** ./usr/src/sbin/init/init.c.old Sun Jul 25 23:19:36 1999 X--- ./usr/src/sbin/init/init.c Mon Sep 21 21:43:50 2026 X*************** X*** 13,18 **** X--- 13,21 ---- X #include X #include X #include X+ #include X+ #include X+ #include X #include X #include X #include X*************** X*** 57,115 **** X jmp_buf sjbuf, shutpass; X time_t time0; X X! int reset(); X! int idle(); X! char *strcpy(), *strcat(); X! long lseek(); X! time_t time(); X void setsecuritylevel(); X int getsecuritylevel(); X! int badsys(); X! extern int errno; X X struct sigvec rvec = { reset, sigmask(SIGHUP), 0 }; X X- X- #ifdef vax X- main() X- { X- register int r11; /* passed thru from boot */ X- #else X main(argc, argv) X char **argv; X { X- #endif X int howto, oldhowto; X X time0 = time(0); X! #ifdef vax X! howto = r11; X! #else X! #ifdef pdp11 X if (argc > 1 && argv[1][0] == '-') { X howto = atoi(argv[1]+1); X bzero(argv[1], strlen(argv[1])); /* keep ps output clean ... */ X } else X howto = RB_SINGLE; X- #else X- if (argc > 1 && argv[1][0] == '-') { X- char *cp; X X- howto = 0; X- cp = &argv[1][1]; X- while (*cp) switch (*cp++) { X- case 'a': X- howto |= RB_ASKNAME; X- break; X- case 's': X- howto |= RB_SINGLE; X- break; X- } X- } else { X- howto = RB_SINGLE; X- } X- #endif X- #endif X if (getuid() != 0) X exit(1); X if (getpid() != 1) X--- 60,86 ---- X jmp_buf sjbuf, shutpass; X time_t time0; X X! void reset(); X! void idle(); X void setsecuritylevel(); X int getsecuritylevel(); X! void badsys(); X X struct sigvec rvec = { reset, sigmask(SIGHUP), 0 }; X X main(argc, argv) X char **argv; X { X int howto, oldhowto; X X time0 = time(0); X! X if (argc > 1 && argv[1][0] == '-') { X howto = atoi(argv[1]+1); X bzero(argv[1], strlen(argv[1])); /* keep ps output clean ... */ X } else X howto = RB_SINGLE; X X if (getuid() != 0) X exit(1); X if (getpid() != 1) X*************** X*** 116,125 **** X exit(1); X X openlog("init", LOG_CONS|LOG_ODELAY, LOG_AUTH); X! #ifdef pdp11 X if (autoconfig(howto) == 0) X howto = RB_SINGLE | (howto & RB_AUTODEBUG); X! #endif X signal(SIGSYS, badsys); X sigvec(SIGTERM, &rvec, (struct sigvec *)0); X signal(SIGTSTP, idle); X--- 87,96 ---- X exit(1); X X openlog("init", LOG_CONS|LOG_ODELAY, LOG_AUTH); X! X if (autoconfig(howto) == 0) X howto = RB_SINGLE | (howto & RB_AUTODEBUG); X! X signal(SIGSYS, badsys); X sigvec(SIGTERM, &rvec, (struct sigvec *)0); X signal(SIGTSTP, idle); X*************** X*** 141,147 **** X } X } X X! int shutreset(); X X shutdown() X { X--- 112,118 ---- X } X } X X! void shutreset(); X X shutdown() X { X*************** X*** 171,176 **** X--- 142,148 ---- X X char shutfailm[] = "WARNING: Something is hung (wont die); ps axl advised\n"; X X+ void X shutreset() X { X int status; X*************** X*** 211,217 **** X * These may arise if a system does not support sysctl. X * We tolerate up to 25 of these, then throw in the towel. X */ X! int X badsys(sig) X int sig; X { X--- 183,189 ---- X * These may arise if a system does not support sysctl. X * We tolerate up to 25 of these, then throw in the towel. X */ X! void X badsys(sig) X int sig; X { X*************** X*** 322,328 **** X dup2(f, 0); X dup2(0, 1); X dup2(0, 2); X! #ifdef pdp11 X if (oldhowto & (RB_SINGLE|RB_NOFSCK)) X arg1 = "fastboot"; X else X--- 294,300 ---- X dup2(f, 0); X dup2(0, 1); X dup2(0, 2); X! X if (oldhowto & (RB_SINGLE|RB_NOFSCK)) X arg1 = "fastboot"; X else X*************** X*** 332,343 **** X else X arg2 = (char *)0; X execl(shell, shell, runc, arg1, arg2, (char *)0); X- #else X- if (oldhowto & RB_SINGLE) X- execl(shell, shell, runc, (char *)0); X- else X- execl(shell, shell, runc, "autoboot", (char *)0); X- #endif X exit(1); X } X while (wait(&status) != pid) X--- 304,309 ---- X*************** X*** 360,368 **** X return (1); X } X X! #ifdef pdp11 X! int merge(); X! #endif X struct sigvec mvec = { merge, sigmask(SIGTERM), 0 }; X /* X * Multi-user. Listen for users leaving, SIGHUP's X--- 326,333 ---- X return (1); X } X X! void merge(); X! X struct sigvec mvec = { merge, sigmask(SIGTERM), 0 }; X /* X * Multi-user. Listen for users leaving, SIGHUP's X*************** X*** 415,420 **** X--- 380,386 ---- X #define CHANGE 2 X #define WCHANGE 4 X X+ void X merge() X { X register struct tab *p; X*************** X*** 607,612 **** X--- 573,579 ---- X } X } X X+ void X reset() X { X X*************** X*** 615,620 **** X--- 582,588 ---- X X jmp_buf idlebuf; X X+ void X idlehup() X { X X*************** X*** 621,626 **** X--- 589,595 ---- X longjmp(idlebuf, 1); X } X X+ void X idle() X { X register struct tab *p; X*************** X*** 739,745 **** X sleep(10); /* prevent failures from eating machine */ X } X X- #ifdef pdp11 X #include X X autoconfig(howto) X--- 708,713 ---- X*************** X*** 779,782 **** X return (0); X } X } X- #endif X--- 747,749 ---- X*** ./usr/src/sbin/mkfs/mkfs.8.old Sat Nov 16 18:19:50 1996 X--- ./usr/src/sbin/mkfs/mkfs.8 Fri Oct 23 22:27:35 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)mkfs.8 2.2 (2.11BSD) 1996/11/16 X .\" X .TH MKFS 8 "November 16, 1996" X .UC 2 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)mkfs.8 2.3 (2.11BSD) 2026/10/23 X .\" X .TH MKFS 8 "November 16, 1996" X .UC 2 X*************** X*** 26,35 **** X .SH DESCRIPTION X .B N.B.: X file systems are normally created with the X! .IR newfs (8) X command. X .PP X! .I Mkfs X constructs a file system X by writing on the special file X .IR special . X--- 26,35 ---- X .SH DESCRIPTION X .B N.B.: X file systems are normally created with the X! .BR newfs (8) X command. X .PP X! .B mkfs X constructs a file system X by writing on the special file X .IR special . X*************** X*** 43,49 **** X \fBNOTE:\fP The X .BR newfs (8) X program's \fB\-s\fP option is in units of \fBsectors\fP. X! .BR Newfs (8) X converts this to filesystem (logical) blocks for X .BR mkfs (8) . X .br X--- 43,49 ---- X \fBNOTE:\fP The X .BR newfs (8) X program's \fB\-s\fP option is in units of \fBsectors\fP. X! .BR newfs (8) X converts this to filesystem (logical) blocks for X .BR mkfs (8) . X .br X*************** X*** 71,77 **** X The optimal values for X these parameters vary with the speed and geometry of the disk, X as well as the speed of the processor. X! .BR Newfs (8) X will calculate the correct values in almost all cases from the disklabel. X .SH "SEE ALSO" X fs(5), X--- 71,77 ---- X The optimal values for X these parameters vary with the speed and geometry of the disk, X as well as the speed of the processor. X! .BR newfs (8) X will calculate the correct values in almost all cases from the disklabel. X .SH "SEE ALSO" X fs(5), X*************** X*** 78,87 **** X dir(5), X disklabel(8), X fsck(8), X- mkproto(8) X newfs(8) X .SH BUGS X The X .I lost+found X! directory is created but the boot block is left uninitialized (see X! .BR disklabel (8).) X--- 78,86 ---- X dir(5), X disklabel(8), X fsck(8), X newfs(8) X .SH BUGS X The X .I lost+found X! directory is created but the boot block is left uninitialized. See X! .BR disklabel (8). X*** ./usr/src/sbin/savecore/savecore.c.old Fri Dec 26 15:19:07 2025 X--- ./usr/src/sbin/savecore/savecore.c Mon Sep 14 14:15:37 2026 X*************** X*** 1,5 **** X /* X! * savecore.c 1.3 (2.11BSD) 2025/9/6 X */ X X #include X--- 1,5 ---- X /* X! * savecore.c 1.4 (2.11BSD) 2026/9/14 X */ X X #include X*************** X*** 9,19 **** X #include X #include X X- #ifdef pdp11 X #define CLICK ctob(1) /* size of core units */ X #define REGLOC 0300 /* offset of saved registers in disk dump */ X #define NREGS 8 /* r0-6, KA6 */ X- #endif X X #define DAY (60L*60L*24L) X #define LEEWAY (3*DAY) X--- 9,17 ---- X*** ./usr/src/sbin/routed/main.c.old Wed Jul 22 07:25:54 1987 X--- ./usr/src/sbin/routed/main.c Tue Sep 22 02:32:52 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)main.c 5.7 (Berkeley) 4/20/86"; X! #endif not lint X X /* X * Routing Table Management Daemon X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)main.c 5.8 (2.11BSD) 2026/9/22"; X! #endif X X /* X * Routing Table Management Daemon X*************** X*** 31,37 **** X int gateway = 0; /* 1 if we are a gateway to parts beyond */ X X struct rip *msg = (struct rip *)packet; X! int hup(); X X main(argc, argv) X int argc; X--- 29,35 ---- X int gateway = 0; /* 1 if we are a gateway to parts beyond */ X X struct rip *msg = (struct rip *)packet; X! void hup(), timer(); X X main(argc, argv) X int argc; X*** ./usr/src/sbin/routed/defs.h.old Tue Sep 22 02:33:25 2026 X--- ./usr/src/sbin/routed/defs.h Tue Sep 22 02:34:04 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)defs.h 5.3.2 (2.11BSD GTE) 1996/3/22 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)defs.h 5.3.3 (2.11BSD) 2026/9/22 X */ X X /* X*************** X*** 62,67 **** X int exit(); X int sendmsg(); X int supply(); X! int timer(); X int cleanup(); X time_t time(); X--- 62,67 ---- X int exit(); X int sendmsg(); X int supply(); X! void timer(); X int cleanup(); X time_t time(); X*** ./usr/src/sbin/routed/timer.c.old Mon Sep 5 17:15:32 1988 X--- ./usr/src/sbin/routed/timer.c Tue Sep 22 02:35:30 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)timer.c 5.3 (Berkeley) 11/20/85"; X! #endif not lint X X /* X * Routing Table Management Daemon X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)timer.c 5.4 (2.11BSD) 2026/9/22"; X! #endif X X /* X * Routing Table Management Daemon X*************** X*** 19,24 **** X--- 19,25 ---- X * Timer routine. Performs routing information supply X * duties and manages timers on routing table entries. X */ X+ void X timer() X { X register struct rthash *rh; X*** ./usr/src/sbin/mknod/mknod.c.old Sun Feb 15 23:51:20 1987 X--- ./usr/src/sbin/mknod/mknod.c Thu May 7 21:59:50 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char *sccsid = "@(#)mknod.c 4.2 (Berkeley) 8/28/85"; X! #endif not lint X X #include X X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)mknod.c 4.3 (2.11BSD) 2026/5/7"; X! #endif X X #include X X*************** X*** 8,14 **** X int argc; X char **argv; X { X! int m, a, b; X X if(argc != 5) { X printf("arg count\n"); X--- 8,14 ---- X int argc; X char **argv; X { X! register int m, a, b; X X if(argc != 5) { X printf("arg count\n"); X*************** X*** 36,44 **** X } X X number(s) X! char *s; X { X! int n, c; X X n = 0; X while(c = *s++) { X--- 36,44 ---- X } X X number(s) X! register char *s; X { X! register int n, c; X X n = 0; X while(c = *s++) { X*** ./usr/src/sbin/shutdown/shutdown.c.old Fri Oct 3 13:03:35 1997 X--- ./usr/src/sbin/shutdown/shutdown.c Tue Sep 22 02:43:50 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1983,1986 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)shutdown.c 5.6.3 (2.11BSD GTE) 1997/10/3"; X #endif X X #include X--- 9,15 ---- X "@(#) Copyright (c) 1983,1986 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)shutdown.c 5.6.3 (2.11BSD) 2026/5/7"; X #endif X X #include X*************** X*** 48,54 **** X X char hostname[MAXHOSTNAMELEN]; X X! int timeout(); X time_t getsdt(); X X struct utmp utmp; X--- 48,54 ---- X X char hostname[MAXHOSTNAMELEN]; X X! void finish(), timeout(); X time_t getsdt(); X X struct utmp utmp; X*************** X*** 151,157 **** X fprintf(stderr, "NOT super-user\n"); X finish(); X } X! nowtime = time((long *)0); X sdt = getsdt(argv[0]); X argc--, argv++; X nolog2[0] = '\0'; X--- 151,157 ---- X fprintf(stderr, "NOT super-user\n"); X finish(); X } X! nowtime = time((time_t *)0); X sdt = getsdt(argv[0]); X argc--, argv++; X nolog2[0] = '\0'; X*************** X*** 204,210 **** X } X if (sint >= stogo || sint == 0) X f = "FINAL "; X! nowtime = time((long *)0); X (void) lseek(ufd, 0L, 0); X while (read(ufd,(char *)&utmp,sizeof utmp)==sizeof utmp) X if (utmp.ut_name[0] && X--- 204,210 ---- X } X if (sint >= stogo || sint == 0) X f = "FINAL "; X! nowtime = time((time_t *)0); X (void) lseek(ufd, 0L, 0); X while (read(ufd,(char *)&utmp,sizeof utmp)==sizeof utmp) X if (utmp.ut_name[0] && X*************** X*** 273,281 **** X #endif X finish(); X } X! stogo = sdt - time((long *) 0); X if (stogo > 0 && sint > 0) X! sleep((unsigned)(sint 0 && sint > 0) X! sleep(sint < stogo ? sint : stogo); X stogo -= sint; X first = 0; X } X*************** X*** 287,293 **** X { X time_t t, t1, tim; X register char c; X! struct tm *lt; X X if (strcmp(s, "now") == 0) X return(nowtime); X--- 287,293 ---- X { X time_t t, t1, tim; X register char c; X! register struct tm *lt; X X if (strcmp(s, "now") == 0) X return(nowtime); X*************** X*** 303,309 **** X if (t <= 0) X t = 5; X t *= 60; X! tim = time((long *) 0) + t; X return(tim); X } X t = 0; X--- 303,309 ---- X if (t <= 0) X t = 5; X t *= 60; X! tim = time((time_t *) 0) + t; X return(tim); X } X t = 0; X*************** X*** 321,327 **** X goto badform; X tim += t; X tim *= 60; X! t1 = time((long *) 0); X lt = localtime(&t1); X t = lt->tm_sec + lt->tm_min*60 + (long)lt->tm_hour*3600; X if (tim < t || tim >= ((long)24*3600)) { X--- 321,327 ---- X goto badform; X tim += t; X tim *= 60; X! t1 = time((time_t *) 0); X lt = localtime(&t1); X t = lt->tm_sec + lt->tm_min*60 + (long)lt->tm_hour*3600; X if (tim < t || tim >= ((long)24*3600)) { X*************** X*** 389,394 **** X--- 389,395 ---- X } X } X X+ void X finish() X { X (void) signal(SIGTERM, SIG_IGN); X*************** X*** 396,401 **** X--- 397,403 ---- X exit(0); X } X X+ void X timeout() X { X longjmp(alarmbuf, 1); X*** ./usr/src/sbin/reboot/reboot.c.old Fri Oct 3 13:13:21 1997 X--- ./usr/src/sbin/reboot/reboot.c Mon Sep 21 06:26:16 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1980,1986 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)reboot.c 5.5.4 (2.11BSD) 1997/10/3"; X #endif X X /* X--- 9,15 ---- X "@(#) Copyright (c) 1980,1986 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)reboot.c 5.5.5 (2.11BSD) 2026/9/21"; X #endif X X /* X*************** X*** 24,30 **** X #include X #include X #include X! #include X X #define OPTS "lqnhdarsfRD" X X--- 24,31 ---- X #include X #include X #include X! #include X! #include X X #define OPTS "lqnhdarsfRD" X X*************** X*** 38,44 **** X char *myname; /* name we were invoked as */ X char args[20], *ap; /* collected arguments for syslog */ X int i; X- char *rindex(); X X if (myname = rindex(argv[0], '/')) X myname++; X--- 39,44 ---- X*** ./usr/src/sbin/dump/dumpdir.c.old Mon Apr 30 16:20:11 1990 X--- ./usr/src/sbin/dump/dumpdir.c Thu May 7 22:06:18 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)dumpdir.c 1.1 (2.11BSD) 2026/5/7"; X+ #endif X+ X #include X #include X #include X*** ./usr/src/sbin/dump/dumpitime.c.old Thu Dec 15 22:28:36 1994 X--- ./usr/src/sbin/dump/dumpitime.c Thu May 7 22:07:26 2026 X*************** X*** 1,5 **** X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)dumpitime.c 1.2 (2.11BSD GTE) 12/6/94"; X #endif X X #include "dump.h" X--- 1,5 ---- X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)dumpitime.c 1.3 (2.11BSD) 2026/5/7"; X #endif X X #include "dump.h" X*************** X*** 18,24 **** X X inititimes() X { X! FILE *df; X register int i; X register struct itime *itwalk; X X--- 18,24 ---- X X inititimes() X { X! FILE *df; X register int i; X register struct itime *itwalk; X X*************** X*** 51,59 **** X X getitime() X { X! register struct idates *ip; X! register int i; X! char *fname; X X fname = disk; X #ifdef FDEBUG X--- 51,59 ---- X X getitime() X { X! register struct idates *ip; X! register int i; X! char *fname; X X fname = disk; X #ifdef FDEBUG X*** ./usr/src/sbin/dump/dumpoptr.c.old Sat Nov 16 23:03:59 1996 X--- ./usr/src/sbin/dump/dumpoptr.c Mon Sep 21 20:53:34 2026 X*************** X*** 1,5 **** X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)dumpoptr.c 1.6 (2.11BSD GTE) 1996/11/16"; X #endif X X #include "dump.h" X--- 1,5 ---- X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)dumpoptr.c 1.7 (2.11BSD) 2026/5/7"; X #endif X X #include "dump.h" X*************** X*** 24,30 **** X { X char replybuffer[64]; X int back; X! FILE *mytty; X X if ( (mytty = fopen("/dev/tty", "r")) == NULL){ X msg("fopen on /dev/tty fails\n"); X--- 24,30 ---- X { X char replybuffer[64]; X int back; X! register FILE *mytty; X X if ( (mytty = fopen("/dev/tty", "r")) == NULL){ X msg("fopen on /dev/tty fails\n"); X*************** X*** 66,71 **** X--- 66,72 ---- X * Alert the console operator, and enable the alarm clock to X * sleep for 2 minutes in case nobody comes to satisfy dump X */ X+ void X alarmcatch() X { X if (timeout) X*************** X*** 79,84 **** X--- 80,86 ---- X /* X * Here if an inquisitive operator interrupts the dump program X */ X+ void X interrupt() X { X msg("Interrupt received.\n"); X*** ./usr/src/sbin/dump/dumprmt.c.old Thu Dec 15 22:36:26 1994 X--- ./usr/src/sbin/dump/dumprmt.c Mon Sep 21 15:49:40 2026 X*************** X*** 32,38 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dumprmt.c 1.2 (2.11BSD GTE) 12/7/94"; X #endif X X #include X--- 32,38 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dumprmt.c 1.3 (2.11BSD) 2026/5/7"; X #endif X X #include X*************** X*** 88,94 **** X rmtgetconn() X { X static struct servent *sp = 0; X! struct passwd *pw; X char *name = "root"; X int size; X X--- 88,94 ---- X rmtgetconn() X { X static struct servent *sp = 0; X! register struct passwd *pw; X char *name = "root"; X int size; X X*************** X*** 190,196 **** X X void X rmtgets(cp, len) X! char *cp; X int len; X { X X--- 190,196 ---- X X void X rmtgets(cp, len) X! register char *cp; X int len; X { X X*** ./usr/src/sbin/dump/dumptraverse.c.old Tue Dec 6 23:10:48 1994 X--- ./usr/src/sbin/dump/dumptraverse.c Thu May 7 22:11:17 2026 X*************** X*** 1,5 **** X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)dumptraverse.c 1.2 (2.11BSD GTE) 12/6/94"; X #endif X X #include "dump.h" X--- 1,5 ---- X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)dumptraverse.c 1.3 (2.11BSD) 2026/5/7"; X #endif X X #include "dump.h" X*************** X*** 46,52 **** X } X X icat(ip, fn1, fn2) X! struct dinode *ip; X int (*fn1)(), (*fn2)(); X { X register i; X--- 46,52 ---- X } X X icat(ip, fn1, fn2) X! register struct dinode *ip; X int (*fn1)(), (*fn2)(); X { X register i; X*************** X*** 113,119 **** X } X X add(ip) X! struct dinode *ip; X { X X if(BIT(ino, nodmap)) X--- 113,119 ---- X } X X add(ip) X! register struct dinode *ip; X { X X if(BIT(ino, nodmap)) X*************** X*** 132,138 **** X } X X dump(ip) X! struct dinode *ip; X { X register i; X X--- 132,138 ---- X } X X dump(ip) X! register struct dinode *ip; X { X register i; X X*** ./usr/src/sbin/dump/unctime.c.old Mon Oct 1 08:22:55 1990 X--- ./usr/src/sbin/dump/unctime.c Thu May 7 22:12:07 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ static char sccsid[] = "@(#)unctime.c 1.1 (2.11BSD) 2026/5/7"; X+ #endif X+ X #include X #include X #include X*************** X*** 20,26 **** X #define E_YEAR 20 X X time_t unctime(str) X! char *str; X { X struct tm then; X char dbuf[30]; X--- 24,30 ---- X #define E_YEAR 20 X X time_t unctime(str) X! register char *str; X { X struct tm then; X char dbuf[30]; X*** ./usr/src/sbin/dump/dump.h.old Wed Sep 18 19:11:17 2024 X--- ./usr/src/sbin/dump/dump.h Mon Sep 21 19:24:47 2026 X*************** X*** 1,5 **** X /* X! * "@(#)dump.h 1.3 (2.11BSD) 2024/9/18" X */ X #define NI 4 /* number of blocks of inodes per read */ X X--- 1,5 ---- X /* X! * "@(#)dump.h 1.4 (2.11BSD) 2026/5/14 X */ X #define NI 4 /* number of blocks of inodes per read */ X X*************** X*** 6,11 **** X--- 6,13 ---- X #include X #include X #include X+ #include X+ #include X #include X #include X #include X*************** X*** 57,67 **** X int tapeno; /* current tape number */ X time_t tstart_writing; /* when started writing the first tape block */ X X- time_t time(); X- off_t lseek(); X- char *ctime(); X char *prdate(); X- long atol(); X int mark(); X int add(); X int dump(); X--- 59,65 ---- X*************** X*** 71,78 **** X int nullf(); X char *rawname(); X X- int interrupt(); /* in case operator bangs on console */ X- X #define HOUR (60L*60L) X #define DAY (24L*HOUR) X #define YEAR (365L*DAY) X--- 69,74 ---- X*************** X*** 85,94 **** X #define X_ABORT 3 /* abort all of dump; don't attempt checkpointing*/ X X #ifdef DEBUG X- #define OINCREM "./ddate" /*old format incremental info*/ X #define NINCREM "./dumpdates" /*new format incremental info*/ X! #else not DEBUG X! #define OINCREM "/etc/ddate" /*old format incremental info*/ X #define NINCREM "/etc/dumpdates" /*new format incremental info*/ X #endif X X--- 81,88 ---- X #define X_ABORT 3 /* abort all of dump; don't attempt checkpointing*/ X X #ifdef DEBUG X #define NINCREM "./dumpdates" /*new format incremental info*/ X! #else X #define NINCREM "/etc/dumpdates" /*new format incremental info*/ X #endif X X*************** X*** 111,127 **** X struct idates **idatev; /* the arrayfied version */ X #define ITITERATE(i, ip) for (i = 0,ip = idatev[0]; i < nidates; i++, ip = idatev[i]) X X! /* X! * We catch these interrupts X! */ X! int sighup(); X! int sigquit(); X! int sigill(); X! int sigtrap(); X! int sigfpe(); X! int sigkill(); X! int sigbus(); X! int sigsegv(); X! int sigsys(); X! int sigalrm(); X! int sigterm(); X--- 105,111 ---- X struct idates **idatev; /* the arrayfied version */ X #define ITITERATE(i, ip) for (i = 0,ip = idatev[0]; i < nidates; i++, ip = idatev[i]) X X! void sigalrm(); X! void tperror(); X! void dumpabort(); X! void interrupt(); /* in case operator bangs on console */ X*** ./usr/src/sbin/dump/dumptape.c.old Wed Feb 7 22:38:43 1996 X--- ./usr/src/sbin/dump/dumptape.c Mon Sep 21 20:54:13 2026 X*************** X*** 100,105 **** X--- 100,106 ---- X X int nogripe = 0; X X+ void X tperror() { X if (pipeout) { X msg("Tape write error on %s\n", tape); X*************** X*** 120,125 **** X--- 121,127 ---- X Exit(X_REWRITE); X } X X+ void X sigpipe() X { X X*************** X*** 202,208 **** X int childpid; X int status; X int waitpid; X! int (*interrupt)() = signal(SIGINT, SIG_IGN); X X parentpid = getpid(); X X--- 204,210 ---- X int childpid; X int status; X int waitpid; X! sig_t interrupt = signal(SIGINT, SIG_IGN); X X parentpid = getpid(); X X*************** X*** 298,303 **** X--- 300,306 ---- X } X } X X+ void X dumpabort() X { X if (master != 0 && master != getpid()) X*** ./usr/src/sbin/dump/dumpmain.c.old Mon Dec 1 19:24:35 2025 X--- ./usr/src/sbin/dump/dumpmain.c Mon Sep 21 20:53:02 2026 X*************** X*** 1,5 **** X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)dumpmain.c 1.5 (2.11BSD) 2025/12/1"; X #endif X X #include "dump.h" X--- 1,5 ---- X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)dumpmain.c 1.6 (2.11BSD) 2026/9/21"; X #endif X X #include "dump.h" X*************** X*** 11,16 **** X--- 11,24 ---- X X char *host = NULL; X X+ void sighup(){ msg("SIGHUP() try rewriting\n"); sigAbort();} X+ void sigtrap(){ msg("SIGTRAP() try rewriting\n"); sigAbort();} X+ void sigfpe(){ msg("SIGFPE() try rewriting\n"); sigAbort();} X+ void sigbus(){ msg("SIGBUS() try rewriting\n"); sigAbort();} X+ void sigsegv(){ msg("SIGSEGV() ABORTING!\n"); abort();} X+ void sigalrm(){ msg("SIGALRM() try rewriting\n"); sigAbort();} X+ void sigterm(){ msg("SIGTERM() try rewriting\n"); sigAbort();} X+ X main(argc, argv) X int argc; X char *argv[]; X*************** X*** 351,364 **** X letter, meaning); X exit(X_ABORT); X } X- X- int sighup(){ msg("SIGHUP() try rewriting\n"); sigAbort();} X- int sigtrap(){ msg("SIGTRAP() try rewriting\n"); sigAbort();} X- int sigfpe(){ msg("SIGFPE() try rewriting\n"); sigAbort();} X- int sigbus(){ msg("SIGBUS() try rewriting\n"); sigAbort();} X- int sigsegv(){ msg("SIGSEGV() ABORTING!\n"); abort();} X- int sigalrm(){ msg("SIGALRM() try rewriting\n"); sigAbort();} X- int sigterm(){ msg("SIGTERM() try rewriting\n"); sigAbort();} X X sigAbort() X { X--- 359,364 ---- X*** ./usr/src/sbin/fsck/main.c.old Tue Jan 6 07:02:20 2026 X--- ./usr/src/sbin/fsck/main.c Mon Sep 21 20:54:50 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)main.c 5.6 (2.11BSD) 2026/1/6"; X #endif X X #include X--- 9,15 ---- X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)main.c 5.7 (2.11BSD) 2026/9/21"; X #endif X X #include X*************** X*** 24,32 **** X #include X X char *rawname(), *unrawname(), *blockcheck(); X! int catch(), catchquit(), voidquit(); X int returntosingle; X- int (*signal())(); X X main(argc, argv) X int argc; X--- 24,31 ---- X #include X X char *rawname(), *unrawname(), *blockcheck(); X! void catch(), catchquit(), voidquit(); X int returntosingle; X X main(argc, argv) X int argc; X*** ./usr/src/sbin/mount/mount.8.old Thu Jul 3 22:15:04 1997 X--- ./usr/src/sbin/mount/mount.8 Tue Sep 8 09:58:33 2026 X*************** X*** 29,35 **** X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)mount.8 8.7.3 (2.11BSD) 1997/7/3 X .\" X .TH MOUNT 8 "November 16, 1996" X .UC 7 X--- 29,35 ---- X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)mount.8 8.7.4 (2.11BSD) 2026/9/8 X .\" X .TH MOUNT 8 "November 16, 1996" X .UC 7 X*************** X*** 69,79 **** X .PP X The system maintains a list of currently mounted file systems. X If no arguments are given to X! .BR mount , X! this list is printed. X .PP X The options are as follows: X- .sp X .TP 10 X \fB\-a\fP X Causes everything to be done except for the actual system call. X--- 69,78 ---- X .PP X The system maintains a list of currently mounted file systems. X If no arguments are given to X! .BR mount X! that list is printed. X .PP X The options are as follows: X .TP 10 X \fB\-a\fP X Causes everything to be done except for the actual system call. X*************** X*** 94,109 **** X Options are specified with a \fB\-o\fP X flag followed by a comma separated string of options. X The following options are available: X- .sp X .RS 1.0i X .TP 10 X async X All I/O X to the file system should be done asynchronously. X! X! .B This is a dangerous flag to set, X! .B and should not be used unless you are prepared to recreate the file X! .B system should your system crash. X .TP 10 X force X The same as X--- 93,109 ---- X Options are specified with a \fB\-o\fP X flag followed by a comma separated string of options. X The following options are available: X .RS 1.0i X .TP 10 X async X All I/O X to the file system should be done asynchronously. X! .sp X! .ft B X! This is a dangerous flag to set and should X! not be used unless you are prepared to X! recreate the file system should the system crash. X! .ft R X .TP 10 X force X The same as X*************** X*** 175,185 **** X \fB\-r\fP X The file system is to be mounted read-only. X Mount the file system read-only (even the super-user may not write it). X! The same as the X! ``rdonly'' X! argument to the X! \fB\-o\fP X! option. X .TP 10 X \fB\-t\fP "\fIufs\fP | \fIexternal type\fP" X The argument following the X--- 175,181 ---- X \fB\-r\fP X The file system is to be mounted read-only. X Mount the file system read-only (even the super-user may not write it). X! The same as the ``rdonly'' argument to the \fB\-o\fP option. X .TP 10 X \fB\-t\fP "\fIufs\fP | \fIexternal type\fP" X The argument following the X*************** X*** 187,195 **** X is used to indicate the file system type. X The type X .I ufs X! is the default. \fIUfs\fP is also the only value supported by 2.11BSD other X than \fIswap\fP. Thus X! the \fB\-t\fP will rarely be used. X The \fB\-t\fP option can be used X to indicate that the actions should only be taken on X filesystems of the specified type. X--- 183,191 ---- X is used to indicate the file system type. X The type X .I ufs X! is the default. \fIufs\fP is the only value supported by 2.11BSD other X than \fIswap\fP. Thus X! the \fB\-t\fP is rarely be used. X The \fB\-t\fP option can be used X to indicate that the actions should only be taken on X filesystems of the specified type. X*** ./usr/src/sbin/mount/mount.c.old Sun Jun 29 18:02:05 1997 X--- ./usr/src/sbin/mount/mount.c Thu Sep 24 06:07:04 2026 X*************** X*** 36,43 **** X "@(#) Copyright (c) 1980, 1989, 1993, 1994\n\ X The Regents of the University of California. All rights reserved.\n"; X X! static char sccsid[] = "@(#)mount.c 8.19.4 (2.11BSD) 1997/6/29"; X! #endif /* not lint */ X X #include X #include X--- 36,43 ---- X "@(#) Copyright (c) 1980, 1989, 1993, 1994\n\ X The Regents of the University of California. All rights reserved.\n"; X X! static char sccsid[] = "@(#)mount.c 8.19.5 (2.11BSD) 2026/9/24"; X! #endif X X #include X #include X*************** X*** 50,57 **** X #include X #include X #include X X! #include "pathnames.h" X X int debug, verbose, skipvfs, mountrw; X X--- 50,59 ---- X #include X #include X #include X+ #include X X! #define _PATH_SBIN "/sbin" X! #define _PATH_USRSBIN "/usr/sbin" X X int debug, verbose, skipvfs, mountrw; X X*************** X*** 488,498 **** X usage() X { X X! (void)fprintf(stderr, X! "usage: mount %s %s\n mount %s\n mount %s\n", X "[-dfruvw] [-o options] [-t ufs | external_type]", X "special node", X "[-adfruvw] [-t ufs | external_type]", X "[-dfruvw] special | node"); X- exit(1); X } X--- 490,499 ---- X usage() X { X X! errx(1, X! "usage: mount %s %s\n mount %s\n mount %s", X "[-dfruvw] [-o options] [-t ufs | external_type]", X "special node", X "[-adfruvw] [-t ufs | external_type]", X "[-dfruvw] special | node"); X } X*** ./usr/src/sbin/newfs/newfs.8.old Sat Nov 16 23:42:45 1996 X--- ./usr/src/sbin/newfs/newfs.8 Fri Oct 23 22:45:50 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)newfs.8 2.0 (2.11BSD) 1996/04/12 X .\" X .TH NEWFS 8 "April 12, 1996" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)newfs.8 2.1 (2.11BSD) 2026/10/23 X .\" X .TH NEWFS 8 "April 12, 1996" X .UC 5 X*************** X*** 30,48 **** X ] X .B special X .SH DESCRIPTION X! .B Newfs X is a ``friendly'' front-end to the X .BR mkfs (8) X program. X! .BR Newfs (8) X will normally read the disklabel from the drive to determine the X partition sizes. If the driver for the disk does not support X! disklabels the \-T option must be used to force a search of X .IR /etc/disktab X for partition information about \fIdrive-type\fP. X! .B Newfs X! calculates the appropriate parameters to use in calling X! .BR mkfs , X then builds the file system by forking \fBmkfs\fP. X .PP X .B \-N X--- 30,49 ---- X ] X .B special X .SH DESCRIPTION X! .B newfs X is a ``friendly'' front-end to the X .BR mkfs (8) X program. X! .BR newfs (8) X will normally read the disklabel from the drive to determine the X partition sizes. If the driver for the disk does not support X! disklabels the \fB-T\fP option must be used to force a search of X .IR /etc/disktab X for partition information about \fIdrive-type\fP. X! .sp X! .B newfs X! then calculates the appropriate parameters to use in calling X! .BR mkfs X then builds the file system by forking \fBmkfs\fP. X .PP X .B \-N X*************** X*** 89,100 **** X .PP X .in +0.5i X .B NOTE: X! Mkfs deals in units of filesystem blocks not sectors. Newfs uses sectors. X .in -0.5i X .SH FILES X! /etc/disktab disk geometry and partition information X .br X! mkfs to actually build the file system X .SH "SEE ALSO" X getdisklabel(3), disklabel(8), disktab(5), diskpart(8), fs(5), fsck(8), X mkfs(8) X--- 90,101 ---- X .PP X .in +0.5i X .B NOTE: X! \fBmkfs\fP deals in units of filesystem blocks not sectors. \fBnewfs\fP uses sectors. X .in -0.5i X .SH FILES X! /etc/disktab X .br X! \fBmkfs\fP X .SH "SEE ALSO" X getdisklabel(3), disklabel(8), disktab(5), diskpart(8), fs(5), fsck(8), X mkfs(8) X*** ./usr/src/sbin/restor/restor.c.old Fri Dec 26 19:39:28 2025 X--- ./usr/src/sbin/restor/restor.c Sun Oct 11 13:27:21 2026 X*************** X*** 10,16 **** X * longer ifdef'd on STANDALONE (and is always 3 instead of 1). X */ X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)restor.c 2.0 (2.11BSD) 2025/12/26"; X #endif X X #include X--- 10,16 ---- X * longer ifdef'd on STANDALONE (and is always 3 instead of 1). X */ X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)restor.c 2.1 (2.11BSD) 2026/9/22"; X #endif X X #include X*************** X*** 158,164 **** X { X register char *cp; X char command; X! int done(); X X #ifndef STANDALONE X mktemp(dirfile); X--- 158,164 ---- X { X register char *cp; X char command; X! void done(); X X #ifndef STANDALONE X mktemp(dirfile); X*************** X*** 291,297 **** X close(mt); X getvol: X printf("Mount desired tape volume: Specify volume #: "); X! if (gets(tbf) == NULL) X return; X volno = atoi(tbf); X if (volno <= 0) { X--- 291,297 ---- X close(mt); X getvol: X printf("Mount desired tape volume: Specify volume #: "); X! if (fgets(tbf, sizeof tbf, stdin) == NULL) X return; X volno = atoi(tbf); X if (volno <= 0) { X*************** X*** 384,390 **** X #ifndef STANDALONE X if (command == 'R') { X printf("Enter starting volume number: "); X! if (gets(tbf) == EOF) { X volno = 1; X printf("\n"); X } X--- 384,390 ---- X #ifndef STANDALONE X if (command == 'R') { X printf("Enter starting volume number: "); X! if (fgets(tbf, sizeof tbf, stdin) == NULL) { X volno = 1; X printf("\n"); X } X*************** X*** 1320,1325 **** X--- 1320,1326 ---- X ; X } X X+ void X done() X { X #ifndef STANDALONE X*** ./usr/src/sbin/dmesg/dmesg.c.old Sat Sep 28 08:06:25 2024 X--- ./usr/src/sbin/dmesg/dmesg.c Fri May 8 09:18:55 2026 X*************** X*** 5,19 **** X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)dmesg.c 5.5 (2.11BSD) 2024/9/28"; X #endif X X /* X * Suck up system messages X- * dmesg X- * print current buffer X- * dmesg - X- * print and update incremental history X */ X X #include X--- 5,15 ---- X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)dmesg.c 5.6 (2.11BSD) 2026/4/2"; X #endif X X /* X * Suck up system messages X */ X X #include X*************** X*** 26,33 **** X X struct msgbuf msgbuf; X char *msgbufp; X- int sflg; X- int of = -1; X X struct msgbuf omesg; X struct nlist nl[2] = { X--- 22,27 ---- X*************** X*** 43,67 **** X int samef, sawnl, ignore; X char msgb[MSG_BSIZE]; X X! if (argc>1 && argv[1][0] == '-') { X! sflg++; X! argc--; X! argv++; X! } X! if (sflg) { X! of = open("/usr/adm/msgbuf", O_RDWR | O_CREAT, 0644); X! if (of < 0) X! done("Can't open /usr/adm/msgbuf\n"); X! read(of, (char *)&omesg, sizeof(omesg)); X! lseek(of, 0L, 0); X! } X! sflg = 0; X! nlist(argc>2? argv[2]:"/unix", nl); X if (nl[0].n_type==0) X! done("Can't get kernel namelist\n"); X! if ((mem = open((argc>1? argv[1]: "/dev/mem"), 0)) < 0) X! done("Can't read kernel memory\n"); X! lseek(mem, (long)nl[0].n_value, 0); X read(mem, &msgbuf, sizeof (msgbuf)); X if (msgbuf.msg_magic != MSG_MAGIC) X done("Magic number wrong (namelist mismatch?)\n"); X--- 37,48 ---- X int samef, sawnl, ignore; X char msgb[MSG_BSIZE]; X X! nlist("/unix", nl); X if (nl[0].n_type==0) X! done("Can't get /unix namelist\n"); X! if ((mem = open("/dev/mem", O_RDONLY)) < 0) X! done("Can't open /dev/mem\n"); X! lseek(mem, (long)nl[0].n_value, SEEK_SET); X read(mem, &msgbuf, sizeof (msgbuf)); X if (msgbuf.msg_magic != MSG_MAGIC) X done("Magic number wrong (namelist mismatch?)\n"); X*************** X*** 70,76 **** X if (omesg.msg_bufx >= MSG_BSIZE) X omesg.msg_bufx = 0; X msgbuf.msg_bufc = msgb; X! lseek(mem, (long)ctob((long)msgbuf.msg_click), 0); X read(mem, msgbuf.msg_bufc, MSG_BSIZE); X mstart = &msgbuf.msg_bufc[omesg.msg_bufx]; X omp = &omesg.msg_bufc[msgbuf.msg_bufx]; X--- 51,57 ---- X if (omesg.msg_bufx >= MSG_BSIZE) X omesg.msg_bufx = 0; X msgbuf.msg_bufc = msgb; X! lseek(mem, (long)ctob((long)msgbuf.msg_click), SEEK_SET); X read(mem, msgbuf.msg_bufc, MSG_BSIZE); X mstart = &msgbuf.msg_bufc[omesg.msg_bufx]; X omp = &omesg.msg_bufc[msgbuf.msg_bufx]; X*************** X*** 117,125 **** X if (s) { X pdate(); X printf(s); X! } else if (of != -1) X! write(of, (char *)&msgbuf, sizeof(msgbuf)); X! exit(s!=NULL); X } X X pdate() X--- 98,105 ---- X if (s) { X pdate(); X printf(s); X! } X! exit(s ? 1 : 0); X } X X pdate() X*** ./usr/src/sbin/dmesg/dmesg.8.old Sun Nov 17 21:28:02 1996 X--- ./usr/src/sbin/dmesg/dmesg.8 Fri Apr 3 16:32:56 2026 X*************** X*** 2,36 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)dmesg.8 6.2.1 (2.11BSD) 1996/11/17 X .\" X! .TH DMESG 8 "November 17, 1996" X .UC 4 X .SH NAME X! dmesg \- collect system diagnostic messages to form error log X .SH SYNOPSIS X .B /sbin/dmesg X- [ \- ] X .SH DESCRIPTION X .B N.B.: X! .I Dmesg X is obsoleted by X .IR syslogd (8) X for maintenance of the system error log. X .PP X! .I Dmesg X! looks in a system buffer for recently printed diagnostic messages X! and prints them on the standard output. X! The messages are those printed or logged X! by the system when errors occur. X! If the X! .B \- X! flag is given, then X! .I dmesg X! computes (incrementally) the new messages since the last time it X! was run and places these on the standard output. X! .SH FILES X! .ta 2i X! /usr/adm/msgbuf scratch file for memory of \- option X .SH SEE ALSO X syslogd(8) X--- 2,26 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)dmesg.8 6.2.2 (2.11BSD) 2026/4/2 X .\" X! .TH DMESG 8 "April 2, 2026" X .UC 4 X .SH NAME X! dmesg \- display the system message buffer X .SH SYNOPSIS X .B /sbin/dmesg X .SH DESCRIPTION X .B N.B.: X! .B dmesg X is obsoleted by X .IR syslogd (8) X for maintenance of the system error log. X .PP X! .B dmesg X! displays the contents of the system message buffer. X .SH SEE ALSO X syslogd(8) X+ .SH HISTORY X+ .B dmesg X+ first appeared in 4.0BSD. X*** ./usr/src/sbin/slattach/slattach.c.old Sat Aug 1 13:45:12 1987 X--- ./usr/src/sbin/slattach/slattach.c Thu May 7 22:20:58 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)slattach.c 4.1 (Berkeley) 2/17/86"; X #endif X #include X #include X #include X--- 1,7 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)slattach.c 4.2 (2.11BSD) 2026/5/7"; X #endif X+ X #include X #include X #include X*************** X*** 9,18 **** X #include X #include X #include X- X- #ifndef lint X- static char rcsid[] = "$Header: slattach.c,v 1.1 84/10/04 12:57:12 rick Exp $"; X- #endif X X #define DEFAULT_BAUD 9600 X int slipdisc = SLIPDISC; X--- 10,15 ---- X*** ./usr/src/sbin/clri/clri.c.old Wed Feb 18 20:12:18 1987 X--- ./usr/src/sbin/clri/clri.c Thu May 7 22:03:07 2026 X*************** X*** 1,4 **** X! char *sccsid = "@(#)clri.c 2.3"; X X /* X * clri filsys inumber ... X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! char *sccsid = "@(#)clri.c 2.3 (2.11BSD) 2026/5/7"; X! #endif X X /* X * clri filsys inumber ... X*************** X*** 24,37 **** X int argc; X char **argv; X { X! register int i, X! f; X u_int n; X! int j, X! k, X! errors = 0; X! long off, X! lseek(); X X if (argc < 3) { X fprintf(stderr,"usage: %s filsys inumber ...\n",*argv); X--- 26,35 ---- X int argc; X char **argv; X { X! register int i, f; X u_int n; X! int j, k, errors = 0; X! long off; X X if (argc < 3) { X fprintf(stderr,"usage: %s filsys inumber ...\n",*argv); X*************** X*** 79,85 **** X X static X isnumber(s) X! char *s; X { X for (;*s;++s) X if (!isdigit(*s)) X--- 77,83 ---- X X static X isnumber(s) X! register char *s; X { X for (;*s;++s) X if (!isdigit(*s)) X*** ./usr/src/share/tmac/doc-syms.old Sun Aug 10 13:01:21 2025 X--- ./usr/src/share/tmac/doc-syms Mon Jan 26 12:42:03 2026 X*************** X*** 29,35 **** X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)doc-syms 8.2 (2.11BSD) 2025/8/10 X .\" X .\" %beginstrip% X .\" NS Ux macro - UNIX X--- 29,35 ---- X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)doc-syms 8.3 (2.11BSD) 2026/1/26 X .\" X .\" %beginstrip% X .\" NS Ux macro - UNIX X*************** X*** 179,184 **** X--- 179,194 ---- X . nr cZ \\n(.s X . ds aa \&\f\\n(cF\s\\n(cZ X . nr aP \\n(aP+1 X+ . if "\\*(A\\n(aP"-p1003.1-2024" \{\ X+ . ie \\n(sT==1 \{\ X+ . ds b1 \&\\*(tNIEEE Std\\*(aa1003.1-2024\\*(sV X+ . as b1 (``\\*(tN\\*(Px\\*(aa'') X+ . \} X+ . el \{\ X+ . ds b1 \&\\*(tNIEEE Std\\*(aa1003.1-2024\\*(sV X+ . as b1 (``\\*(tN\\*(Px\\*(aa'') X+ . \} X+ . \} X . if "\\*(A\\n(aP"-p1003.1-88" \{\ X . ie \\n(sT==1 \{\ X . ds b1 \&\\*(tNIEEE Std\\*(aa1003.1-1988\\*(sV X*** ./usr/src/share/misc/Makefile.old Mon Dec 8 19:57:19 2025 X--- ./usr/src/share/misc/Makefile Wed May 20 18:05:00 2026 X*************** X*** 1,13 **** X # X # Public domain - 1996/10/21 - sms X # X! # @(#)Makefile 1.3 (2.11BSD) 2025/11/25 X # X # Makefile for misc data files (lib.b from 'bc', usw.) X- # X X! SRCS= eign lib.b Mail.help Mail.tildehelp units \ X! vlpmacs mkproto.data X X all: ${SRCS} X X--- 1,11 ---- X # X # Public domain - 1996/10/21 - sms X # X! # @(#)Makefile 1.4 (2.11BSD) 2026/5/20 X # X # Makefile for misc data files (lib.b from 'bc', usw.) X X! SRCS= eign lib.b Mail.help Mail.tildehelp units vlpmacs X X all: ${SRCS} X X*** ./usr/src/share/zoneinfo/zic.8.old Thu Sep 19 19:30:01 2024 X--- ./usr/src/share/zoneinfo/zic.8 Tue Oct 27 20:00:09 2026 X*************** X*** 1,4 **** X! .. @(#)zic.8 3.3 2024/9/19 X .TH ZIC 8 X .SH NAME X zic \- time zone compiler X--- 1,4 ---- X! .. @(#)zic.8 3.4 (2.11BSD) 2024/9/19 X .TH ZIC 8 X .SH NAME X zic \- time zone compiler X*************** X*** 16,22 **** X .I filename X \&... ] X .SH DESCRIPTION X! .I Zic X reads text from the file(s) named on the command line X and creates the time conversion information files specified in this input. X If a X--- 16,22 ---- X .I filename X \&... ] X .SH DESCRIPTION X! .B zic X reads text from the file(s) named on the command line X and creates the time conversion information files specified in this input. X If a X*************** X*** 33,39 **** X .TP X .BI "\-l " timezone X Use the given time zone as local time. X! .I Zic X will act as if the file contained a link line of the form X .sp X .ti +.5i X--- 33,39 ---- X .TP X .BI "\-l " timezone X Use the given time zone as local time. X! .B zic X will act as if the file contained a link line of the form X .sp X .ti +.5i X*************** X*** 42,48 **** X .B \-v X Complain if a year that appears in a data file is outside the range X of years representable by X! .IR time (2) X values. X .sp X Input lines are made up of fields. X--- 42,48 ---- X .B \-v X Complain if a year that appears in a data file is outside the range X of years representable by X! .BR time (2) X values. X .sp X Input lines are made up of fields. X*************** X*** 291,294 **** X .SH FILES X /usr/share/zoneinfo default directory used for created files X .SH "SEE ALSO" X! newctime(3), tzfile(5), zdump(8) X--- 291,294 ---- X .SH FILES X /usr/share/zoneinfo default directory used for created files X .SH "SEE ALSO" X! ctime(3), tzfile(5), zdump(8) X*** ./usr/src/share/zoneinfo/zdump.8.old Fri Nov 29 23:26:48 1996 X--- ./usr/src/share/zoneinfo/zdump.8 Tue Oct 27 19:59:52 2026 X*************** X*** 1,3 **** X--- 1,4 ---- X+ .. @(#)zdump.8 3.3 (2.11BSD) 2026/10/27 X .TH ZDUMP 8 X .SH NAME X zdump \- time zone dumper X*************** X*** 9,15 **** X .B \-c X cutoffyear ] [ zonename ... ] X .SH DESCRIPTION X! .I Zdump X prints the current time in each X .I zonename X named on the command line. X--- 10,16 ---- X .B \-c X cutoffyear ] [ zonename ... ] X .SH DESCRIPTION X! .B zdump X prints the current time in each X .I zonename X named on the command line. X*************** X*** 18,24 **** X .TP X .B \-v X For each X! .I zonename X on the command line, X print the current time, X the time at the lowest possible time value, X--- 19,25 ---- X .TP X .B \-v X For each X! .B zonename X on the command line, X print the current time, X the time at the lowest possible time value, X*************** X*** 38,42 **** X .SH FILES X /usr/share/zoneinfo standard zone information directory X .SH "SEE ALSO" X! newctime(3), tzfile(5), zic(8) X! .. @(#)zdump.8 3.2 X--- 39,42 ---- X .SH FILES X /usr/share/zoneinfo standard zone information directory X .SH "SEE ALSO" X! ctime(3), tzfile(5), zic(8) X*** ./usr/src/share/zoneinfo/northamerica.old Fri Apr 3 23:06:50 2020 X--- ./usr/src/share/zoneinfo/northamerica Tue Oct 27 20:14:06 2026 X*************** X*** 1,4 **** X! # @(#)northamerica 4.0 (2.11BSD 2020/4/3) X X # Despite the performance of existing (4.[123]BSD, System V Release 2.0) code, X # US Daylight Saving Time ended on the last Sunday of *October* in 1974. X--- 1,4 ---- X! # @(#)northamerica 4.1 (2.11BSD) 2026/10/27 X X # Despite the performance of existing (4.[123]BSD, System V Release 2.0) code, X # US Daylight Saving Time ended on the last Sunday of *October* in 1974. X*************** X*** 19,25 **** X Rule US 1918 1919 - Oct lastSun 2:00 0 S X Rule US 1942 only - Feb 9 2:00 1:00 W # War X Rule US 1945 only - Sep 30 2:00 0 S X! Rule US 1967 max - Oct lastSun 2:00 0 S X Rule US 1967 1973 - Apr lastSun 2:00 1:00 D X Rule US 1974 only - Jan 6 2:00 1:00 D X Rule US 1975 only - Feb 23 2:00 1:00 D X--- 19,25 ---- X Rule US 1918 1919 - Oct lastSun 2:00 0 S X Rule US 1942 only - Feb 9 2:00 1:00 W # War X Rule US 1945 only - Sep 30 2:00 0 S X! Rule US 1967 1973 - Oct lastSun 2:00 0 S X Rule US 1967 1973 - Apr lastSun 2:00 1:00 D X Rule US 1974 only - Jan 6 2:00 1:00 D X Rule US 1975 only - Feb 23 2:00 1:00 D X*** ./usr/src/share/adb/Makefile.old Tue Nov 25 18:16:55 2025 X--- ./usr/src/share/adb/Makefile Wed Aug 12 18:26:11 2026 X*************** X*** 1,10 **** X # X # Public domain - 1996/10/21 - sms X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X X SRCS= buf callout callout.next file ifaddr ifnet inode ip label mbstat \ X mbuf mbuf.nxt mbufs mbufs.nxt proc protosw rusage socket tcpcb u xip X X all: ${SRCS} X--- 1,11 ---- X # X # Public domain - 1996/10/21 - sms X # X! # @(#)Makefile 1.2 (2.11BSD) 2026/8/12 X # X X SRCS= buf callout callout.next file ifaddr ifnet inode ip label mbstat \ X+ dkdevice dkpartition \ X mbuf mbuf.nxt mbufs mbufs.nxt proc protosw rusage socket tcpcb u xip X X all: ${SRCS} X*************** X*** 12,17 **** X install:${SRCS} X -mkdir -p /usr/share/adb X -chmod a+r,a+x /usr/share/adb X! install -c -m 444 ${SRCS} /usr/share/adb X X clean: X--- 13,18 ---- X install:${SRCS} X -mkdir -p /usr/share/adb X -chmod a+r,a+x /usr/share/adb X! install -c -m 444 -o root -g wheel ${SRCS} /usr/share/adb X X clean: X*** ./usr/src/ucb/Mail/pathnames.h.old Wed Oct 23 17:39:23 1996 X--- ./usr/src/ucb/Mail/pathnames.h Sun May 31 10:22:41 2026 X*************** X*** 30,42 **** X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X! * @(#)pathnames.h 5.14.2 (2.11BSD GTE) 1996/10/23 X */ X X #include X X #define _PATH_EX "/usr/ucb/ex" X- #define _PATH_VI "/usr/ucb/vi" X #define _PATH_HELP "/usr/share/misc/Mail.help" X #define _PATH_TILDE "/usr/share/misc/Mail.tildehelp" X #define _PATH_MAIL_LOG "/usr/spool/mqueue/syslog" X--- 30,41 ---- X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X! * @(#)pathnames.h 5.14.3 (2.11BSD) 2026/5/31 X */ X X #include X X #define _PATH_EX "/usr/ucb/ex" X #define _PATH_HELP "/usr/share/misc/Mail.help" X #define _PATH_TILDE "/usr/share/misc/Mail.tildehelp" X #define _PATH_MAIL_LOG "/usr/spool/mqueue/syslog" X*** ./usr/src/ucb/Mail/cmd3.c.old Sun Feb 14 13:49:30 1993 X--- ./usr/src/ucb/Mail/cmd3.c Wed Aug 19 16:38:48 2026 X*************** X*** 32,38 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cmd3.c 5.24 (Berkeley) 6/25/90"; X #endif X X #include "rcv.h" X--- 32,38 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cmd3.c 5.25 (2.11BSD) 2026/8/19"; X #endif X X #include "rcv.h" X*************** X*** 415,421 **** X variables[h] = variables[h]->v_link; X vfree(vp2->v_name); X vfree(vp2->v_value); X! cfree((char *)vp2); X continue; X } X for (vp = variables[h]; vp->v_link != vp2; vp = vp->v_link) X--- 415,421 ---- X variables[h] = variables[h]->v_link; X vfree(vp2->v_name); X vfree(vp2->v_value); X! free((char *)vp2); X continue; X } X for (vp = variables[h]; vp->v_link != vp2; vp = vp->v_link) X*************** X*** 423,429 **** X vp->v_link = vp2->v_link; X vfree(vp2->v_name); X vfree(vp2->v_value); X! cfree((char *) vp2); X } X return(errs); X } X--- 423,429 ---- X vp->v_link = vp2->v_link; X vfree(vp2->v_name); X vfree(vp2->v_value); X! free((char *) vp2); X } X return(errs); X } X*************** X*** 701,707 **** X return(0); X } X if (altnames != 0) X! cfree((char *) altnames); X altnames = (char **) calloc((unsigned) c, sizeof (char *)); X for (ap = namelist, ap2 = altnames; *ap; ap++, ap2++) { X cp = (char *) calloc((unsigned) strlen(*ap) + 1, sizeof (char)); X--- 701,707 ---- X return(0); X } X if (altnames != 0) X! free((char *) altnames); X altnames = (char **) calloc((unsigned) c, sizeof (char *)); X for (ap = namelist, ap2 = altnames; *ap; ap++, ap2++) { X cp = (char *) calloc((unsigned) strlen(*ap) + 1, sizeof (char)); X*** ./usr/src/ucb/Mail/lex.c.old Tue Oct 27 13:52:51 1992 X--- ./usr/src/ucb/Mail/lex.c Mon Sep 21 20:58:26 2026 X*************** X*** 32,38 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)lex.c 5.23 (Berkeley) 4/1/91"; X #endif X X #include "rcv.h" X--- 32,38 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)lex.c 5.24 (2.11BSD) 2026/8/19"; X #endif X X #include "rcv.h" X*************** X*** 434,440 **** X { X X if (msgvec != 0) X! cfree((char *) msgvec); X msgvec = (int *) calloc((unsigned) (sz + 1), sizeof *msgvec); X } X X--- 434,440 ---- X { X X if (msgvec != 0) X! free((char *) msgvec); X msgvec = (int *) calloc((unsigned) (sz + 1), sizeof *msgvec); X } X X*** ./usr/src/ucb/Mail/main.c.old Wed Oct 23 17:37:45 1996 X--- ./usr/src/ucb/Mail/main.c Mon Sep 21 20:59:02 2026 X*************** X*** 35,41 **** X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X! static char sccsid[] = "@(#)main.c 5.28.1 (2.11BSD) 1996/10/23"; X #endif X X #include "rcv.h" X--- 35,41 ---- X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X! static char sccsid[] = "@(#)main.c 5.28.2 (2.11BSD) 2026/9/16"; X #endif X X #include "rcv.h" X*************** X*** 59,66 **** X char nosrc = 0; X void hdrstop(); X sig_t prevint; X- extern int getopt(), optind, opterr; X- extern char *optarg; X void sigchild(); X X /* X--- 59,64 ---- X*** ./usr/src/ucb/Mail/popen.c.old Sun Feb 14 14:26:35 1993 X--- ./usr/src/ucb/Mail/popen.c Mon Sep 21 20:59:26 2026 X*************** X*** 32,42 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)popen.c 5.16 (Berkeley) 4/1/91"; X #endif X X #include "rcv.h" X! #include X #include X X #define READ 0 X--- 32,42 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)popen.c 5.17 (2.11BSD) 2026/9/21"; X #endif X X #include "rcv.h" X! #include X #include X X #define READ 0 X*** ./usr/src/ucb/Mail/def.h.old Fri Oct 31 19:11:15 1997 X--- ./usr/src/ucb/Mail/def.h Mon Sep 21 08:02:23 2026 X*************** X*** 30,44 **** X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X! * @(#)def.h 5.22.2 (2.11BSD) 1997/10/31 X */ X X #include /* includes */ X! #include X #include X #include X #include X #include X #include "pathnames.h" X /* X * Mail -- a mail program X--- 30,46 ---- X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X! * @(#)def.h 5.22.3 (2.11BSD) 2026/9/16 X */ X X #include /* includes */ X! #include X #include X #include X #include X #include X+ #include X+ #include X #include "pathnames.h" X /* X * Mail -- a mail program X*************** X*** 279,301 **** X FILE *run_editor(); X FILE *setinput(); X char **unpack(); X- char *calloc(); X char *copy(); X char *copyin(); X char *detract(); X char *expand(); X char *getdeadletter(); X- char *gets(); X char *hfield(); X char *name1(); X char *nameof(); X char *nextword(); X- char *getenv(); X char *getname(); X- char *fgets(); X char *ishfield(); X- char *malloc(); X- char *mktemp(); X char *readtty(); X char *reedit(); X char *salloc(); X--- 281,297 ---- X*************** X*** 307,313 **** X char *vcopy(); X char *yankword(); X off_t fsize(); X- uid_t getuid(); X struct cmd *lex(); X struct grouphead *findgroup(); X struct name *nalloc(); X--- 303,308 ---- X*** ./usr/src/ucb/msgs/msgs.c.old Wed Jan 7 07:39:03 2026 X--- ./usr/src/ucb/msgs/msgs.c Mon Sep 21 22:23:10 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)msgs.c 5.3 (2.11BSD) 2026/1/7"; X #endif X X /* X--- 9,15 ---- X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)msgs.c 5.4 (2.11BSD) 2026/9/21"; X #endif X X /* X*************** X*** 99,111 **** X time_t keep; X struct sgttyb otty; X X- char *ctime(); X char *nxtfld(); X! int onintr(); X! int onsusp(); X! off_t ftell(); X! FILE *popen(); X! struct passwd *getpwuid(); X X extern int errno; X X--- 99,107 ---- X time_t keep; X struct sgttyb otty; X X char *nxtfld(); X! void onintr(); X! void onsusp(); X X extern int errno; X X*************** X*** 607,612 **** X--- 603,609 ---- X stty(fileno(stdout), &otty); X } X X+ void X onintr() X { X signal(SIGINT, onintr); X*************** X*** 631,636 **** X--- 628,634 ---- X /* X * We have just gotten a susp. Suspend and prepare to resume. X */ X+ void X onsusp() X { X X*** ./usr/src/ucb/ex/ex.c.old Sun Sep 8 13:57:27 1991 X--- ./usr/src/ucb/ex/ex.c Tue Sep 22 10:03:17 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char *sccsid = "@(#)ex.c 7.5.1.1 (Berkeley) 8/12/86"; X #endif not lint X X #include "ex.h" X--- 9,15 ---- X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char *sccsid = "@(#)ex.c 7.5.1.2 (2.11BSD) 2026/9/22"; X #endif not lint X X #include "ex.h" X*************** X*** 93,99 **** X bool ivis; X bool itag = 0; X bool fast = 0; X! extern int onemt(); X #ifdef TRACE X register char *tracef; X #endif X--- 93,99 ---- X bool ivis; X bool itag = 0; X bool fast = 0; X! extern void onemt(); X #ifdef TRACE X register char *tracef; X #endif X*** ./usr/src/ucb/ex/ex.h.old Thu Mar 13 08:56:56 2025 X--- ./usr/src/ucb/ex/ex.h Tue Sep 22 10:07:35 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)ex.h 7.9 (2.11BSD) 2025/3/13 X */ X X #ifdef V6 X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)ex.h 7.10 (2.11BSD) 2026/9/22 X */ X X #ifdef V6 X*************** X*** 320,326 **** X extern int (*Outchar)(); X extern int (*Pline)(); X extern int (*Putchar)(); X! var int (*oldhup)(); X int (*setlist())(); X int (*setnorm())(); X int (*setnorm())(); X--- 320,326 ---- X extern int (*Outchar)(); X extern int (*Pline)(); X extern int (*Putchar)(); X! sig_t oldhup; X int (*setlist())(); X int (*setnorm())(); X int (*setnorm())(); X*************** X*** 365,380 **** X int normchar(); X int normline(); X int numbline(); X! var int (*oldquit)(); X! int onhup(); X! int onintr(); X! int onsusp(); X int putch(); X int shift(); X int termchar(); X int vfilter(); X #ifdef CBREAK X! int vintr(); X #endif X int vputch(); X int vshftop(); X--- 365,380 ---- X int normchar(); X int normline(); X int numbline(); X! sig_t oldquit; X! void onhup(); X! void onintr(); X! void onsusp(); X int putch(); X int shift(); X int termchar(); X int vfilter(); X #ifdef CBREAK X! void vintr(); X #endif X int vputch(); X int vshftop(); X*** ./usr/src/ucb/ex/ex_v.c.old Fri Mar 14 16:24:07 2025 X--- ./usr/src/ucb/ex/ex_v.c Tue Sep 22 10:09:56 2026 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)ex_v.c 7.8.2 (2.11BSD) 2025/3/14"; X #endif X X #include "ex.h" X--- 5,11 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)ex_v.c 7.8.3 (2.11BSD) 2026/9/22"; X #endif X X #include "ex.h" X*************** X*** 55,61 **** X */ X X jmp_buf venv; X! int winch(); X X /* X * Enter open mode X--- 55,61 ---- X */ X X jmp_buf venv; X! void winch(); X X /* X * Enter open mode X*************** X*** 380,385 **** X--- 380,386 ---- X } X X #ifdef CBREAK X+ void X vintr() X { X extern jmp_buf readbuf; X*************** X*** 417,422 **** X--- 418,424 ---- X basWLINES = WBOT - b + 1; X } X X+ void X winch() X { X vsave(); X*** ./usr/src/ucb/ex/ex_subr.c.old Fri Mar 22 20:30:38 1996 X--- ./usr/src/ucb/ex/ex_subr.c Tue Sep 22 10:08:31 2026 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)ex_subr.c 7.10.1 (2.11BSD) 1996/3/22"; X #endif X X #include "ex.h" X--- 5,11 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)ex_subr.c 7.10.2 (2.11BSD) 2026/9/22"; X #endif X X #include "ex.h" X*************** X*** 764,769 **** X--- 764,771 ---- X * in a weird state, etc. X */ X int _ovno; X+ X+ void X onemt() X { X int oovno; X*************** X*** 786,791 **** X--- 788,794 ---- X * as they are a backup even without preservation if they X * are not removed. X */ X+ void X onhup() X { X X*************** X*** 815,820 **** X--- 818,824 ---- X * Then like a normal error (with the \n before Interrupt X * suppressed in visual mode). X */ X+ void X onintr() X { X X*************** X*** 897,902 **** X--- 901,907 ---- X /* X * We have just gotten a susp. Suspend and prepare to resume. X */ X+ void X onsusp() X { X ttymode f; X*** ./usr/src/ucb/ex/ex_vget.c.old Tue Jan 7 22:22:17 2020 X--- ./usr/src/ucb/ex/ex_vget.c Tue Sep 22 10:11:27 2026 X*************** X*** 587,594 **** X */ X fastpeekkey() X { X! int trapalarm(); X! int (*Oint)(); X register int c; X X /* X--- 587,594 ---- X */ X fastpeekkey() X { X! void trapalarm(); X! sig_t Oint; X register int c; X X /* X*************** X*** 639,644 **** X--- 639,645 ---- X return(c); X } X X+ void X trapalarm() { X alarm(0); X if (vcatch) X*** ./usr/src/ucb/ex/ex_cmdsub.c.old Tue Jan 7 22:18:39 2020 X--- ./usr/src/ucb/ex/ex_cmdsub.c Tue Sep 22 10:05:59 2026 X*************** X*** 113,119 **** X X nonzero(); X if(FIXUNDO) { X! register int (*dsavint)(); X X #ifdef TRACE X if (trace) X--- 113,119 ---- X X nonzero(); X if(FIXUNDO) { X! register sig_t dsavint; X X #ifdef TRACE X if (trace) X*** ./usr/src/ucb/error/errormain.c.old Tue Feb 17 01:07:41 1987 X--- ./usr/src/ucb/error/errormain.c Tue Sep 22 09:56:57 2026 X*************** X*** 4,16 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! static char *sccsid = "@(#)errormain.c 5.1 (Berkeley) 5/31/85"; X #include X #include X #include X--- 4,17 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char *sccsid = "@(#)errormain.c 5.2 (2.11BSD) 2026/5/9"; X! #endif X! X #include X #include X #include X*************** X*** 36,42 **** X char *suffixlist = ".*"; /* initially, can touch any file */ X X int errorsort(); X! int onintr(); X /* X * error [-I ignorename] [-n] [-q] [-t suffixlist] [-s] [-v] [infile] X * X--- 37,43 ---- X char *suffixlist = ".*"; /* initially, can touch any file */ X X int errorsort(); X! void onintr(); X /* X * error [-I ignorename] [-n] [-q] [-t suffixlist] [-s] [-v] [infile] X * X*** ./usr/src/ucb/error/errortouch.c.old Tue Feb 17 01:07:41 1987 X--- ./usr/src/ucb/error/errortouch.c Tue Sep 22 09:57:52 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)errortouch.c 5.1 (Berkeley) 5/31/85"; X! #endif not lint X X #include X #include X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)errortouch.c 5.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include X*************** X*** 663,668 **** X--- 663,669 ---- X } X } X X+ void X onintr() X { X switch(inquire(terse X*** ./usr/src/ucb/error/errorsubr.c.old Tue Feb 17 01:07:42 1987 X--- ./usr/src/ucb/error/errorsubr.c Sat May 9 17:53:36 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)errorsubr.c 5.1 (Berkeley) 5/31/85"; X! #endif not lint X X #include X #include X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)errorsubr.c 5.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include X*** ./usr/src/ucb/error/errorpi.c.old Tue Feb 17 01:07:42 1987 X--- ./usr/src/ucb/error/errorpi.c Sat May 9 17:53:14 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)errorpi.c 5.1 (Berkeley) 5/31/85"; X! #endif not lint X X #include X #include X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)errorpi.c 5.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include X*** ./usr/src/ucb/error/errorinput.c.old Tue Feb 17 01:07:42 1987 X--- ./usr/src/ucb/error/errorinput.c Sat May 9 17:51:58 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)errorinput.c 5.1 (Berkeley) 5/31/85"; X! #endif not lint X X #include X #include X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)errorinput.c 5.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include X*** ./usr/src/ucb/symdump.c.old Mon Feb 21 23:20:16 1994 X--- ./usr/src/ucb/symdump.c Sat Mar 28 20:44:52 2026 X*************** X*** 1,11 **** X /* X! * Program Name: strdump.c X! * Date: January 21, 1994 X * Author: S.M. Schultz X * X * ----------------- Modification History --------------- X * Version Date Reason For Modification X! * 1.0 12Feb94 1. Initial release into the public domain. X */ X X /* X--- 1,12 ---- X /* X! * Program Name: symdump.c X! * Date: Febuary 04, 2026 X * Author: S.M. Schultz X * X * ----------------- Modification History --------------- X * Version Date Reason For Modification X! * 1.0 12Feb1994 1. Initial release into the public domain. X! * 1.1 04Feb2026 2. Cleanup. X */ X X /* X*************** X*** 18,25 **** X * X * "sort +0 -1 +1n -2 +2n -3 +3n -4 -u" X * X! * This program is used by 'strcompact' to compress the string (and X! * symbol) tables of an executable. X */ X X #include X--- 19,26 ---- X * X * "sort +0 -1 +1n -2 +2n -3 +3n -4 -u" X * X! * This program is used by 'strcompact' to compress the string and X! * symbol tables of an executable. X */ X X #include X*************** X*** 30,41 **** X #include X #include X X char **xargv; /* global copy of argv */ X char *strp; /* pointer to in-memory string table */ X struct xexec xhdr; /* the extended a.out header */ X X- extern char *malloc(); X- X main(argc, argv) X int argc; X char **argv; X--- 31,42 ---- X #include X #include X X+ extern char *__progname; X+ X char **xargv; /* global copy of argv */ X char *strp; /* pointer to in-memory string table */ X struct xexec xhdr; /* the extended a.out header */ X X main(argc, argv) X int argc; X char **argv; X*************** X*** 43,49 **** X X if (argc != 2) X { X! fprintf(stderr, "%s: need a file name\n", argv[0]); X exit(1); X } X xargv = ++argv; X--- 44,50 ---- X X if (argc != 2) X { X! fprintf(stderr, "%s: need a file name\n", __progname); X exit(1); X } X xargv = ++argv; X*************** X*** 111,116 **** X error(s) X char *s; X { X! fprintf(stderr, "syms: %s: %s\n", *xargv, s); X exit(1); X } X--- 112,117 ---- X error(s) X char *s; X { X! fprintf(stderr, "%s: %s: %s\n", __progname, *xargv, s); X exit(1); X } X*** ./usr/src/ucb/tset/tset.c.old Mon Feb 2 19:09:35 2026 X--- ./usr/src/ucb/tset/tset.c Mon Sep 21 22:38:51 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)tset.c 5.8.2 (2.11BSD GTE) 1997/3/28"; X #endif X X /* X--- 9,15 ---- X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)tset.c 5.8.3 (2.11BSD) 2026/2/2"; X #endif X X /* X*************** X*** 379,385 **** X char bs_char; X int csh; X int settle; X! int setmode(); X extern char PC; X int lmode; X int ldisc; X--- 379,385 ---- X char bs_char; X int csh; X int settle; X! void xsetmode(); X extern char PC; X int lmode; X int ldisc; X*************** X*** 397,405 **** X (void) ioctl(FILEDES, TIOCGETC, (char *)&tchar); X bcopy((char *)&tchar, (char *)&oldtchar, sizeof tchar); X ospeed = mode.sg_ospeed & 017; X! (void) signal(SIGINT, setmode); X! (void) signal(SIGQUIT, setmode); X! (void) signal(SIGTERM, setmode); X X if (command = rindex(argv[0], '/')) X command++; X--- 397,405 ---- X (void) ioctl(FILEDES, TIOCGETC, (char *)&tchar); X bcopy((char *)&tchar, (char *)&oldtchar, sizeof tchar); X ospeed = mode.sg_ospeed & 017; X! (void) signal(SIGINT, xsetmode); X! (void) signal(SIGQUIT, xsetmode); X! (void) signal(SIGTERM, xsetmode); X X if (command = rindex(argv[0], '/')) X command++; X*************** X*** 789,795 **** X if (oldmode.sg_flags&(XTABS|CRMOD)) X { X oldmode.sg_flags &= ~(XTABS|CRMOD); X! setmode(-1); X } X if (settabs()) { X settle = YES; X--- 789,795 ---- X if (oldmode.sg_flags&(XTABS|CRMOD)) X { X oldmode.sg_flags &= ~(XTABS|CRMOD); X! xsetmode(-1); X } X if (settabs()) { X settle = YES; X*************** X*** 818,824 **** X } X } X X! setmode(0); /* set new modes, if they've changed */ X X /* set up environment for the shell we are using */ X /* (this code is rather heuristic, checking for $SHELL */ X--- 818,824 ---- X } X } X X! xsetmode(0); /* set new modes, if they've changed */ X X /* set up environment for the shell we are using */ X /* (this code is rather heuristic, checking for $SHELL */ X*************** X*** 946,952 **** X return 0; X } X X! setmode(flag) X int flag; X /* flag serves several purposes: X * if called as the result of a signal, flag will be > 0. X--- 946,953 ---- X return 0; X } X X! void X! xsetmode(flag) X int flag; X /* flag serves several purposes: X * if called as the result of a signal, flag will be > 0. X*** ./usr/src/ucb/more/more.c.old Fri Dec 26 17:32:24 2025 X--- ./usr/src/ucb/more/more.c Mon Sep 21 22:20:43 2026 X*************** X*** 52,59 **** X struct sgttyb otty, savetty; X long file_pos, file_size; X int fnum, no_intty, no_tty, slow_tty; X! int dum_opt, dlines, onquit(), end_it(), chgwinsz(); X! int onsusp(); X int nscroll = 11; /* Number of lines scrolled by 'd' */ X int fold_opt = 1; /* Fold long lines */ X int stop_opt = 1; /* Stop after form feeds */ X--- 52,59 ---- X struct sgttyb otty, savetty; X long file_pos, file_size; X int fnum, no_intty, no_tty, slow_tty; X! int dum_opt, dlines; X! void onquit(), end_it(), chgwinsz(), onsusp(); X int nscroll = 11; /* Number of lines scrolled by 'd' */ X int fold_opt = 1; /* Fold long lines */ X int stop_opt = 1; /* Stop after form feeds */ X*************** X*** 468,473 **** X--- 468,474 ---- X ** Come here if a quit signal is received X */ X X+ void X onquit() X { X signal(SIGQUIT, SIG_IGN); X*************** X*** 492,497 **** X--- 493,499 ---- X ** Come here if a signal for a window size change is received X */ X X+ void X chgwinsz() X { X struct winsize win; X*************** X*** 515,520 **** X--- 517,523 ---- X ** Clean up terminal state and exit. Also come here if interrupt signal received X */ X X+ void X end_it () X { X X*************** X*** 1724,1729 **** X--- 1727,1733 ---- X X /* Come here when we get a suspend signal from the terminal */ X X+ void X onsusp () X { X /* ignore SIGTTOU so we don't get stopped if csh grabs the tty */ X*** ./usr/src/ucb/vgrind/regexp.c.old Tue Feb 17 01:08:22 1987 X--- ./usr/src/ucb/vgrind/regexp.c Sat May 9 15:43:19 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)regexp.c 5.1 (Berkeley) 6/5/85"; X! #endif not lint X X #include X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)regexp.c 5.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X X*** ./usr/src/ucb/vgrind/vgrindefs.c.old Tue Feb 17 01:08:22 1987 X--- ./usr/src/ucb/vgrind/vgrindefs.c Sat May 9 15:44:45 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)vgrindefs.c 5.1 (Berkeley) 6/5/85"; X! #endif not lint X X #define BUFSIZ 1024 X #define MAXHOP 32 /* max number of tc= indirections */ X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)vgrindefs.c 5.2 (2.11BSD) 2026/5/9"; X! #endif X X #define BUFSIZ 1024 X #define MAXHOP 32 /* max number of tc= indirections */ X*************** X*** 44,50 **** X char *bp, *name, *file; X { X register char *cp; X! register int c; X register int i = 0, cnt = 0; X char ibuf[BUFSIZ]; X char *cp2; X--- 44,50 ---- X char *bp, *name, *file; X { X register char *cp; X! int c; X register int i = 0, cnt = 0; X char ibuf[BUFSIZ]; X char *cp2; X*** ./usr/src/ucb/vgrind/retest.c.old Tue Feb 17 01:08:22 1987 X--- ./usr/src/ucb/vgrind/retest.c Sat May 9 15:44:05 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)retest.c 5.1 (Berkeley) 6/5/85"; X! #endif not lint X X #include X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)retest.c 5.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X X*************** X*** 15,26 **** X char * _escaped; X char * convexp(); X char * expmatch(); X main() X { X char reg[132]; X char *ireg; X char str[132]; X! char *match; X char matstr[132]; X char c; X X--- 15,27 ---- X char * _escaped; X char * convexp(); X char * expmatch(); X+ X main() X { X char reg[132]; X char *ireg; X char str[132]; X! register char *match; X char matstr[132]; X char c; X X*** ./usr/src/ucb/indent/args.c.old Tue Feb 17 01:08:23 1987 X--- ./usr/src/ucb/indent/args.c Sat May 9 15:09:45 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)args.c 5.2 (Berkeley) 9/10/85"; X! #endif not lint X X /* X * Argument scanning and profile reading code. Default parameters X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)args.c 5.3 (2.11BSD) 2026/5/9"; X! #endif X X /* X * Argument scanning and profile reading code. Default parameters X*************** X*** 16,24 **** X #include "indent_globs.h" X #include X #include X X- char *getenv(), *index(); X- X /* profile types */ X #define PRO_SPECIAL 1 /* special case */ X #define PRO_BOOL 2 /* boolean */ X--- 16,25 ---- X #include "indent_globs.h" X #include X #include X+ #include X+ #include X+ #include X X /* profile types */ X #define PRO_SPECIAL 1 /* special case */ X #define PRO_BOOL 2 /* boolean */ X*************** X*** 189,195 **** X register char *arg; X { X register struct pro *p; X- extern double atof(); X X arg++; /* ignore leading "-" */ X for (p = pro; p->p_name; p++) X--- 190,195 ---- X*** ./usr/src/ucb/printenv.c.old Tue Feb 17 01:11:16 1987 X--- ./usr/src/ucb/printenv.c Fri May 8 16:03:18 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)printenv.c 5.1 (Berkeley) 5/31/85"; X! #endif not lint X X /* X * printenv X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)printenv.c 5.2 (2.11BSD) 2026/5/8"; X! #endif X X /* X * printenv X*************** X*** 49,55 **** X } X X prefix(cp, dp) X! char *cp, *dp; X { X X while (*cp && *dp && *cp == *dp) X--- 47,53 ---- X } X X prefix(cp, dp) X! register char *cp, *dp; X { X X while (*cp && *dp && *cp == *dp) X*** ./usr/src/ucb/rdist/docmd.c.old Wed May 10 01:02:19 1995 X--- ./usr/src/ucb/rdist/docmd.c Thu Sep 24 06:35:44 2026 X*************** X*** 5,14 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)docmd.c 5.1.2 (2.11BSD GTE) 1995/05/09"; X #endif X X! #include "pathnames.h" X #include "defs.h" X #include X #include X--- 5,14 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)docmd.c 5.1.3 (2.11BSD) 2026/9/21"; X #endif X X! #include X #include "defs.h" X #include X #include X*************** X*** 17,25 **** X struct subcmd *subcmds; /* list of sub-commands for current cmd */ X jmp_buf env; X X! int cleanup(); X! int lostconn(); X X /* X * Do the commands in cmds (initialized by yyparse). X */ X--- 17,27 ---- X struct subcmd *subcmds; /* list of sub-commands for current cmd */ X jmp_buf env; X X! void cleanup(); X! void lostconn(); X X+ #define _PATH_RDIST "rdist" X+ X /* X * Do the commands in cmds (initialized by yyparse). X */ X*************** X*** 254,259 **** X--- 256,262 ---- X } X } X X+ void X lostconn() X { X if (iamremote) X*** ./usr/src/ucb/rdist/server.c.old Fri Dec 26 17:41:33 2025 X--- ./usr/src/ucb/rdist/server.c Mon Sep 21 22:30:12 2026 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)server.c 5.3.3 (2.11BSD) 2025/12/26"; X #endif X X #include "defs.h" X--- 5,11 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)server.c 5.3.4 (2.11BSD) 2026/9/21"; X #endif X X #include "defs.h" X*************** X*** 30,36 **** X X extern FILE *lfp; /* log file for mailing changes */ X X! int cleanup(); X struct linkbuf *savelink(); X X /* X--- 30,36 ---- X X extern FILE *lfp; /* log file for mailing changes */ X X! void cleanup(); X struct linkbuf *savelink(); X X /* X*************** X*** 1479,1484 **** X--- 1479,1485 ---- X /* X * Remove temporary files and do any cleanup operations before exiting. X */ X+ void X cleanup() X { X (void) unlink(tempfile); X*** ./usr/src/ucb/pascal/pxp/Makefile.old Mon Dec 8 23:30:11 2025 X--- ./usr/src/ucb/pascal/pxp/Makefile Tue Jan 13 17:08:49 2026 X*************** X*** 1,5 **** X # X! # #(@)Makefile 2.0 (2.11BSD) 2025/11/25 X # X X ED= -ed X--- 1,5 ---- X # X! # #(@)Makefile 2.1 (2.11BSD) 2026/1/13 X # X X ED= -ed X*************** X*** 57,60 **** X FRC: X X clean: X! rm -f pi1.2strings a.out core y.tab.c y.output *.o x* tags X--- 57,60 ---- X FRC: X X clean: X! rm -f pxp pi1.2strings a.out core y.tab.c y.tab.h y.output *.o x* tags X*** ./usr/src/ucb/ftp/glob.c.old Fri May 18 17:46:18 1990 X--- ./usr/src/ucb/ftp/glob.c Mon Sep 14 14:47:47 2026 X*************** X*** 15,23 **** X * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X */ X X! #if !defined(lint) && !defined(pdp11) X! static char sccsid[] = "@(#)glob.c 5.7 (Berkeley) 12/14/88"; X! #endif /* not lint */ X X /* X * C-shell glob for random programs. X--- 15,23 ---- X * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)glob.c 5.8 (2.11BSD) 2026/9/14"; X! #endif X X /* X * C-shell glob for random programs. X*************** X*** 28,35 **** X--- 28,37 ---- X #include X X #include X+ #include X #include X #include X+ #include X X #define QUOTE 0200 X #define TRIM 0177 X*************** X*** 45,54 **** X char **glob(); X char *globerr; X char *home; X- struct passwd *getpwnam(); X- extern int errno; X static char *strspl(), *strend(); X- char *malloc(), *strcpy(), *strcat(); X char **copyblk(); X X static int globcnt; X--- 47,53 ---- X*** ./usr/src/ucb/ftp/cmds.c.old Thu Jan 8 12:12:03 2026 X--- ./usr/src/ucb/ftp/cmds.c Mon Sep 21 22:04:39 2026 X*************** X*** 41,47 **** X #include X X #include "ftp_var.h" X! #include "pathnames.h" X X extern char *globerr; X extern char **glob(); X--- 41,47 ---- X #include X X #include "ftp_var.h" X! #include X X extern char *globerr; X extern char **glob(); X*************** X*** 267,273 **** X * Set file transfer mode. X */ X /*ARGSUSED*/ X! setmode(argc, argv) X char *argv[]; X { X X--- 267,273 ---- X * Set file transfer mode. X */ X /*ARGSUSED*/ X! xsetmode(argc, argv) X char *argv[]; X { X X*************** X*** 370,376 **** X char *argv[]; X { X register int i; X! int ointer, (*oldintr)(), mabort(); X extern jmp_buf jabort; X char *tp; X X--- 370,377 ---- X char *argv[]; X { X register int i; X! int ointer; X! sig_t oldintr, mabort; X extern jmp_buf jabort; X char *tp; X X*************** X*** 665,671 **** X char *argv[]; X { X char *cp, *tp, *tp2, tmpbuf[MAXPATHLEN]; X! int ointer, (*oldintr)(), mabort(); X extern jmp_buf jabort; X X if (argc < 2) { X--- 666,673 ---- X char *argv[]; X { X char *cp, *tp, *tp2, tmpbuf[MAXPATHLEN]; X! int ointer; X! sig_t oldintr, mabort; X extern jmp_buf jabort; X X if (argc < 2) { X*************** X*** 763,769 **** X return (cp); X } X if (ftemp == NULL) { X! (void) strcpy(temp, _PATH_TMP); X (void) mktemp(temp); X oldverbose = verbose, verbose = 0; X oldhash = hash, hash = 0; X--- 765,771 ---- X return (cp); X } X if (ftemp == NULL) { X! (void) sprintf(temp, "%sftpXXXXXX", _PATH_TMP); X (void) mktemp(temp); X oldverbose = verbose, verbose = 0; X oldhash = hash, hash = 0; X*************** X*** 1071,1077 **** X char *argv[]; X { X char *cp; X! int ointer, (*oldintr)(), mabort(); X extern jmp_buf jabort; X X if (argc < 2) { X--- 1073,1080 ---- X char *argv[]; X { X char *cp; X! int ointer; X! sig_t oldintr, mabort; X extern jmp_buf jabort; X X if (argc < 2) { X*************** X*** 1186,1192 **** X char *argv[]; X { X char *cmd, mode[1], *dest; X! int ointer, i, (*oldintr)(), mabort(); X extern jmp_buf jabort; X X if (argc < 2) { X--- 1189,1196 ---- X char *argv[]; X { X char *cmd, mode[1], *dest; X! int ointer, i; X! sig_t oldintr, mabort; X extern jmp_buf jabort; X X if (argc < 2) { X*************** X*** 1245,1251 **** X shell(argc, argv) X char *argv[]; X { X! int pid, (*old1)(), (*old2)(); X char shellnam[40], *shell, *namep; X union wait status; X X--- 1249,1256 ---- X shell(argc, argv) X char *argv[]; X { X! int pid; X! sig_t old1, old2; X char shellnam[40], *shell, *namep; X union wait status; X X*************** X*** 1680,1686 **** X int argc; X char *argv[]; X { X! int (*oldintr)(), proxabort(); X register struct cmd *c; X struct cmd *getcmd(); X extern struct cmd cmdtab[]; X--- 1685,1691 ---- X int argc; X char *argv[]; X { X! sig_t oldintr, proxabort; X register struct cmd *c; X struct cmd *getcmd(); X extern struct cmd cmdtab[]; X*** ./usr/src/ucb/ftp/cmdtab.c.old Sat Mar 22 15:12:52 2025 X--- ./usr/src/ucb/ftp/cmdtab.c Mon Feb 2 18:44:15 2026 X*************** X*** 16,22 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cmdtab.c 5.9.2 (2.11BSD) 2025/3/21"; X #endif X X #include "ftp_var.h" X--- 16,22 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cmdtab.c 5.9.3 (2.11BSD) 2026/2/2"; X #endif X X #include "ftp_var.h" X*************** X*** 25,31 **** X * User FTP -- Command Tables. X */ X int setascii(), setbell(), setbinary(), setdebug(), setform(); X! int setglob(), sethash(), setmode(), setpeer(), setport(); X int setprompt(), setstruct(), setpassive(); X int settenex(), settrace(), settype(), setverbose(); X int disconnect(), restart(), reget(), syst(); X--- 25,31 ---- X * User FTP -- Command Tables. X */ X int setascii(), setbell(), setbinary(), setdebug(), setform(); X! int setglob(), sethash(), xsetmode(), setpeer(), setport(); X int setprompt(), setstruct(), setpassive(); X int settenex(), settrace(), settype(), setverbose(); X int disconnect(), restart(), reget(), syst(); X*************** X*** 140,146 **** X { "mget", mgethelp, 1, 1, 1, mget }, X { "mkdir", mkdirhelp, 0, 1, 1, makedir }, X { "mls", mlshelp, 1, 1, 1, mls }, X! { "mode", modehelp, 0, 1, 1, setmode }, X { "modtime", modtimehelp, 0, 1, 1, modtime }, X { "mput", mputhelp, 1, 1, 1, mput }, X { "newer", newerhelp, 1, 1, 1, newer }, X--- 140,146 ---- X { "mget", mgethelp, 1, 1, 1, mget }, X { "mkdir", mkdirhelp, 0, 1, 1, makedir }, X { "mls", mlshelp, 1, 1, 1, mls }, X! { "mode", modehelp, 0, 1, 1, xsetmode }, X { "modtime", modtimehelp, 0, 1, 1, modtime }, X { "mput", mputhelp, 1, 1, 1, mput }, X { "newer", newerhelp, 1, 1, 1, newer }, X*** ./usr/src/ucb/ftp/ftp.c.old Fri Dec 26 15:31:54 2025 X--- ./usr/src/ucb/ftp/ftp.c Tue Sep 22 02:14:19 2026 X*************** X*** 16,22 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ftp.c 5.30 (2.11BSD) 2025/12/26"; X #endif X X #include X--- 16,22 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ftp.c 5.31 (2.11BSD) 2026/9/21"; X #endif X X #include X*************** X*** 223,228 **** X--- 223,229 ---- X return (1); X } X X+ void X cmdabort() X { X extern jmp_buf ptabort; X*************** X*** 238,244 **** X command(char *fmt, ...) X { X va_list ap; X! int r, (*oldintr)(), cmdabort(); X X abrtflag = 0; X if (debug) { X--- 239,246 ---- X command(char *fmt, ...) X { X va_list ap; X! int r; X! sig_t oldintr, cmdabort; X X abrtflag = 0; X if (debug) { X*************** X*** 254,260 **** X code = -1; X return (0); X } X! oldintr = signal(SIGINT,cmdabort); X va_start(ap, fmt); X vfprintf(cout, fmt, ap); X va_end(ap); X--- 256,262 ---- X code = -1; X return (0); X } X! oldintr = signal(SIGINT, cmdabort); X va_start(ap, fmt); X vfprintf(cout, fmt, ap); X va_end(ap); X*************** X*** 263,269 **** X cpend = 1; X r = getreply(!strcmp(fmt, "QUIT")); X if (abrtflag && oldintr != SIG_IGN) X! (*oldintr)(); X (void) signal(SIGINT, oldintr); X return(r); X } X--- 265,271 ---- X cpend = 1; X r = getreply(!strcmp(fmt, "QUIT")); X if (abrtflag && oldintr != SIG_IGN) X! (*oldintr)(0); X (void) signal(SIGINT, oldintr); X return(r); X } X*************** X*** 278,284 **** X register int c, n; X register int dig; X register char *cp; X! int originalcode = 0, continuation = 0, (*oldintr)(), cmdabort(); X int pflag = 0; X char *pt = pasv; X X--- 280,287 ---- X register int c, n; X register int dig; X register char *cp; X! int originalcode = 0, continuation = 0; X! sig_t oldintr, cmdabort; X int pflag = 0; X char *pt = pasv; X X*************** X*** 368,374 **** X if (code == 421 || originalcode == 421) X lostpeer(); X if (abrtflag && oldintr != cmdabort && oldintr != SIG_IGN) X! (*oldintr)(); X return (n - '0'); X } X } X--- 371,377 ---- X if (code == 421 || originalcode == 421) X lostpeer(); X if (abrtflag && oldintr != cmdabort && oldintr != SIG_IGN) X! (*oldintr)(0); X return (n - '0'); X } X } X*************** X*** 402,410 **** X char *cmd, *local, *remote; X int printnames; X { X! FILE *fin, *dout = 0, *popen(); X! int (*closefunc)(), pclose(), fclose(), (*oldintr)(), (*oldintp)(); X! int abortsend(); X char buf[BUFSIZ], *bufp; X long bytes = 0, hashbytes = HASHBYTES; X register int c, d; X--- 405,414 ---- X char *cmd, *local, *remote; X int printnames; X { X! FILE *fin, *dout = 0; X! int (*closefunc)(); X! sig_t oldintr, oldintp; X! sig_t abortsend; X char buf[BUFSIZ], *bufp; X long bytes = 0, hashbytes = HASHBYTES; X register int c, d; X*************** X*** 647,654 **** X char *cmd, *local, *remote, *mode; X { X FILE *fout, *din = 0, *popen(); X! int (*closefunc)(), pclose(), fclose(), (*oldintr)(), (*oldintp)(); X! int abortrecv(), oldverbose, oldtype = 0, is_retr, tcrflag, nfnd; X char *bufp, *gunique(), msg; X static char *buf; X static long bufsize; X--- 651,659 ---- X char *cmd, *local, *remote, *mode; X { X FILE *fout, *din = 0, *popen(); X! int (*closefunc)(); X! sig_t oldintr, oldintp, abortrecv; X! int oldverbose, oldtype = 0, is_retr, tcrflag, nfnd; X char *bufp, *gunique(), msg; X static char *buf; X static long bufsize; X*************** X*** 1209,1214 **** X--- 1214,1220 ---- X tdiff->tv_sec--, tdiff->tv_usec += 1000000; X } X X+ void X psabort() X { X extern int abrtflag; X*************** X*** 1220,1226 **** X int flag; X { X extern int proxy, abrtflag; X! int (*oldintr)(); X static struct comvars { X int connect; X char name[MAXHOSTNAMELEN]; X--- 1226,1232 ---- X int flag; X { X extern int proxy, abrtflag; X! sig_t oldintr; X static struct comvars { X int connect; X char name[MAXHOSTNAMELEN]; X*************** X*** 1305,1311 **** X (void) signal(SIGINT, oldintr); X if (abrtflag) { X abrtflag = 0; X! (*oldintr)(); X } X } X X--- 1311,1317 ---- X (void) signal(SIGINT, oldintr); X if (abrtflag) { X abrtflag = 0; X! (*oldintr)(0); X } X } X X*************** X*** 1325,1331 **** X proxtrans(cmd, local, remote) X char *cmd, *local, *remote; X { X! int (*oldintr)(), abortpt(), tmptype, oldtype = 0, secndflag = 0, nfnd; X extern jmp_buf ptabort; X char *cmd2; X struct fd_set mask; X--- 1331,1338 ---- X proxtrans(cmd, local, remote) X char *cmd, *local, *remote; X { X! sig_t oldintr, abortpt; X! int tmptype, oldtype = 0, secndflag = 0, nfnd; X extern jmp_buf ptabort; X char *cmd2; X struct fd_set mask; X*************** X*** 1709,1716 **** X register c; X FILE *fi; X static char pbuf[129]; X! int (*signal())(); X! int (*sig)(); X X if ((fi = fdopen(open("/dev/tty", 2), "r")) == NULL) X fi = stdin; X--- 1716,1722 ---- X register c; X FILE *fi; X static char pbuf[129]; X! sig_t sig; X X if ((fi = fdopen(open("/dev/tty", 2), "r")) == NULL) X fi = stdin; X*** ./usr/src/ucb/ftp/domacro.c.old Mon Jan 5 13:38:15 2026 X--- ./usr/src/ucb/ftp/domacro.c Mon Sep 14 14:49:50 2026 X*************** X*** 15,22 **** X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. X */ X X! #if !defined(lint) && !defined(pdp11) X! static char sccsid[] = "@(#)domacro.c 1.7 (2.11BSD) 2026/1/5"; X #endif X X #include "ftp_var.h" X--- 15,22 ---- X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)domacro.c 1.8 (2.11BSD) 2026/9/14"; X #endif X X #include "ftp_var.h" X*** ./usr/src/ucb/ftp/main.c.old Mon Jan 5 14:17:43 2026 X--- ./usr/src/ucb/ftp/main.c Mon Sep 21 22:16:35 2026 X*************** X*** 20,26 **** X "@(#) Copyright (c) 1985, 1989 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)main.c based on 5.15 (2.11BSD) 2026/1/5"; X #endif X X /* X--- 20,26 ---- X "@(#) Copyright (c) 1985, 1989 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)main.c based on 5.16 (2.11BSD) 2026/9/21"; X #endif X X /* X*************** X*** 42,49 **** X #include X #include X X! int intr(); X! int lostpeer(); X extern char *home; X X main(argc, argv) X--- 42,49 ---- X #include X #include X X! void intr(); X! void lostpeer(); X extern char *home; X X main(argc, argv) X*************** X*** 145,150 **** X--- 145,151 ---- X } X } X X+ void X intr() X { X X*************** X*** 151,156 **** X--- 152,158 ---- X longjmp(toplevel, 1); X } X X+ void X lostpeer() X { X extern FILE *cout; X*** ./usr/src/ucb/netstat/if.c.old Tue Jan 11 01:24:56 1994 X--- ./usr/src/ucb/netstat/if.c Mon Sep 21 22:24:22 2026 X*************** X*** 11,17 **** X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)if.c 5.6.1 (2.11BSD GTE) 1/1/94"; X #endif X X #include X--- 11,17 ---- X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)if.c 5.6.22(2.11BSD) 2026/9/21"; X #endif X X #include X*************** X*** 204,210 **** X register int line; X struct iftot *lastif, *sum, *interesting; X long oldmask; X! int catchalarm(); X X klseek(kmem, off, 0); X #ifdef pdp11 X--- 204,210 ---- X register int line; X struct iftot *lastif, *sum, *interesting; X long oldmask; X! void catchalarm(); X X klseek(kmem, off, 0); X #ifdef pdp11 X*************** X*** 320,325 **** X--- 320,326 ---- X * Called if an interval expires before sidewaysintpr has completed a loop. X * Sets a flag to not wait for the alarm. X */ X+ void X catchalarm() X { X signalled = YES; X*** ./usr/src/ucb/tftp/main.c.old Wed Sep 9 23:22:19 1992 X--- ./usr/src/ucb/tftp/main.c Mon Sep 21 22:32:17 2026 X*************** X*** 17,31 **** X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif /* not lint */ X X! #ifndef lint X! static char sccsid[] = "@(#)main.c 5.9 (Berkeley) 6/1/90"; X! #endif /* not lint */ X X /* Many bug fixes are from Jim Guyton */ X X--- 17,29 ---- X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)main.c 6.0 (2.11BSD) 2026/1/14"; X! #endif X X /* Many bug fixes are from Jim Guyton */ X X*************** X*** 44,49 **** X--- 42,48 ---- X #include X #include X #include X+ #include X X #define TIMEOUT 5 /* secs between rexmt's */ X X*************** X*** 52,60 **** X short port; X int trace; X int verbose; X- #ifdef pdp11 X- #define connected Xconnected X- #endif X int connected; X char mode[32]; X char line[200]; X--- 51,56 ---- X*************** X*** 62,68 **** X char *margv[20]; X char *prompt = "tftp"; X jmp_buf toplevel; X! int intr(); X struct servent *sp; X X int quit(), help(), setverbose(), settrace(), status(); X--- 58,64 ---- X char *margv[20]; X char *prompt = "tftp"; X jmp_buf toplevel; X! void intr(); X struct servent *sp; X X int quit(), help(), setverbose(), settrace(), status(); X*************** X*** 110,118 **** X X struct cmd *getcmd(); X char *tail(); X- char *index(); X- char *rindex(); X X main(argc, argv) X char *argv[]; X { X--- 106,123 ---- X X struct cmd *getcmd(); X char *tail(); X X+ /* This works because the buffer is global */ X+ void cmdgets() X+ { X+ register int s = strlen(line); X+ register char *cp; X+ X+ fgets(&line[s], sizeof (line) - s, stdin); X+ if (cp = index(line, '\n')) X+ *cp = '\0'; X+ } X+ X main(argc, argv) X char *argv[]; X { X*************** X*** 158,164 **** X if (argc < 2) { X strcpy(line, "Connect "); X printf("(to) "); X! gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 163,169 ---- X if (argc < 2) { X strcpy(line, "Connect "); X printf("(to) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 273,279 **** X if (argc < 2) { X strcpy(line, "send "); X printf("(file) "); X! gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 278,284 ---- X if (argc < 2) { X strcpy(line, "send "); X printf("(file) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 364,370 **** X if (argc < 2) { X strcpy(line, "get "); X printf("(files) "); X! gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 369,375 ---- X if (argc < 2) { X strcpy(line, "get "); X printf("(files) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 444,450 **** X if (argc < 2) { X strcpy(line, "Rexmt-timeout "); X printf("(value) "); X! gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 449,455 ---- X if (argc < 2) { X strcpy(line, "Rexmt-timeout "); X printf("(value) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 470,476 **** X if (argc < 2) { X strcpy(line, "Maximum-timeout "); X printf("(value) "); X! gets(&line[strlen(line)]); X makeargv(); X argc = margc; X argv = margv; X--- 475,481 ---- X if (argc < 2) { X strcpy(line, "Maximum-timeout "); X printf("(value) "); X! cmdgets(); X makeargv(); X argc = margc; X argv = margv; X*************** X*** 499,504 **** X--- 504,510 ---- X rexmtval, maxtimeout); X } X X+ void X intr() X { X signal(SIGALRM, SIG_IGN); X*************** X*** 530,541 **** X int top; X { X register struct cmd *c; X X if (!top) X putchar('\n'); X for (;;) { X printf("%s> ", prompt); X! if (gets(line) == 0) { X if (feof(stdin)) { X quit(); X } else { X--- 536,549 ---- X int top; X { X register struct cmd *c; X+ register char *cp; X X if (!top) X putchar('\n'); X for (;;) { X printf("%s> ", prompt); X! line[0] = '\0'; X! if (fgets(line, sizeof (line), stdin) == 0) { X if (feof(stdin)) { X quit(); X } else { X*************** X*** 542,547 **** X--- 550,559 ---- X continue; X } X } X+ X+ cp = index(line, '\n'); X+ if (cp) *cp = '\0'; X+ X if (line[0] == 0) X continue; X makeargv(); X*** ./usr/src/ucb/tftp/tftpsubs.c.old Wed May 15 23:34:37 1991 X--- ./usr/src/ucb/tftp/tftpsubs.c Sat May 9 15:11:30 2026 X*************** X*** 17,25 **** X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)tftpsubs.c 5.5 (Berkeley) 6/1/90"; X! #endif /* not lint */ X X /* Simple minded read-ahead/write-behind subroutines for tftp user and X server. Written originally with multiple buffers in mind, but current X--- 17,25 ---- X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)tftpsubs.c 5.6 (2.11BSD) 2026/5/9"; X! #endif X X /* Simple minded read-ahead/write-behind subroutines for tftp user and X server. Written originally with multiple buffers in mind, but current X*** ./usr/src/ucb/tftp/tftp.c.old Tue Jan 11 01:30:44 1994 X--- ./usr/src/ucb/tftp/tftp.c Mon Sep 21 22:31:46 2026 X*************** X*** 18,24 **** X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)tftp.c 5.9.1 (2.11BSD GTE) 1/1/94"; X #endif X X /* Many bug fixes are from Jim Guyton */ X--- 18,24 ---- X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)tftp.c 5.9.2 (2.11BSD) 2026/9/14"; X #endif X X /* Many bug fixes are from Jim Guyton */ X*************** X*** 39,46 **** X #include X #include X X- extern int errno; X- X extern struct sockaddr_in sin; /* filled in by main */ X extern int f; /* the opened socket */ X extern int trace; X--- 39,44 ---- X*************** X*** 54,59 **** X--- 52,58 ---- X jmp_buf toplevel; X jmp_buf timeoutbuf; X X+ void X timer() X { X X*** ./usr/src/ucb/window/wwdelete.c.old Tue Jun 14 11:54:10 1988 X--- ./usr/src/ucb/window/wwdelete.c Sat May 9 19:10:23 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwdelete.c 3.13 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwdelete.c 3.14 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/lcmd1.c.old Tue Feb 17 01:10:52 1987 X--- ./usr/src/ucb/window/lcmd1.c Sat May 9 19:10:55 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)lcmd1.c 3.30 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)lcmd1.c 3.31 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/wwchild.c.old Tue Feb 17 01:10:48 1987 X--- ./usr/src/ucb/window/wwchild.c Mon Sep 21 22:41:51 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwchild.c 3.5 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwchild.c 3.6 (2.11BSD) 2026/5/9"; X #endif X X /* X*************** X*** 9,19 **** X */ X X #include "ww.h" X #include X X wwchild() X { X- extern errno; X int olderrno; X register struct ww **wp; X union wait w; X--- 9,20 ---- X */ X X #include "ww.h" X+ #include X #include X X+ void X wwchild() X { X int olderrno; X register struct ww **wp; X union wait w; X*** ./usr/src/ucb/window/wwend.c.old Tue Feb 17 01:10:48 1987 X--- ./usr/src/ucb/window/wwend.c Sat May 9 19:00:51 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwend.c 3.8 8/14/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwend.c 3.9 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/wwputc.c.old Tue Feb 17 01:10:49 1987 X--- ./usr/src/ucb/window/wwputc.c Sat May 9 19:01:14 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwputc.c 3.4 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwputc.c 3.5 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/wwputs.c.old Tue Feb 17 01:10:49 1987 X--- ./usr/src/ucb/window/wwputs.c Sat May 9 19:01:42 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwputs.c 3.4 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwputs.c 3.5 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/wwtty.c.old Tue Jun 14 11:54:11 1988 X--- ./usr/src/ucb/window/wwtty.c Sat May 9 19:02:17 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwtty.c 3.9 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwtty.c 3.10 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/cmd2.c.old Tue Feb 17 01:10:50 1987 X--- ./usr/src/ucb/window/cmd2.c Sat May 9 19:03:53 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)cmd2.c 3.33 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cmd2.c 3.34 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/cmd3.c.old Tue Feb 17 01:10:50 1987 X--- ./usr/src/ucb/window/cmd3.c Sat May 9 19:04:23 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)cmd3.c 3.13 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cmd3.c 3.14 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/wwclose.c.old Tue Feb 17 01:10:50 1987 X--- ./usr/src/ucb/window/wwclose.c Sat May 9 19:05:01 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwclose.c 3.13 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwclose.c 3.14 (2.11BSD) 2026/5/9"; X #endif X X /* X*************** X*** 9,15 **** X */ X X #include "ww.h" X- #include X X wwclose(w) X register struct ww *w; X--- 9,14 ---- X*** ./usr/src/ucb/window/wwframe.c.old Tue Feb 17 01:10:50 1987 X--- ./usr/src/ucb/window/wwframe.c Sat May 9 19:05:34 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwframe.c 3.16 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwframe.c 3.17 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/wwlabel.c.old Tue Feb 17 01:10:50 1987 X--- ./usr/src/ucb/window/wwlabel.c Sat May 9 19:06:22 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwlabel.c 3.13 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwlabel.c 3.14 (2.11BSD) 2026/5/9"; X #endif X X /* X*************** X*** 27,34 **** X register char *win; X register union ww_char *buf; X register union ww_char *ns; X! register char *fmap; X! register char *smap; X char touched; X char *p; X X--- 27,34 ---- X register char *win; X register union ww_char *buf; X register union ww_char *ns; X! char *fmap; X! char *smap; X char touched; X char *p; X X*** ./usr/src/ucb/window/cmd4.c.old Tue Feb 17 01:10:50 1987 X--- ./usr/src/ucb/window/cmd4.c Sat May 9 19:06:51 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)cmd4.c 3.14 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cmd4.c 3.15 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/cmd5.c.old Tue Feb 17 01:10:50 1987 X--- ./usr/src/ucb/window/cmd5.c Sat May 9 19:07:12 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)cmd5.c 3.14 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cmd5.c 3.15 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/startup.c.old Tue Feb 17 01:10:51 1987 X--- ./usr/src/ucb/window/startup.c Sat May 9 19:07:36 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)startup.c 3.17 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)startup.c 3.18 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/error.c.old Tue Feb 17 01:10:51 1987 X--- ./usr/src/ucb/window/error.c Sat May 9 19:07:58 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)error.c 3.12 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)error.c 3.13 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/cmd6.c.old Tue Feb 17 01:10:51 1987 X--- ./usr/src/ucb/window/cmd6.c Sat May 9 19:08:18 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)cmd6.c 3.13 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cmd6.c 3.14 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/wwredraw.c.old Tue Feb 17 01:10:51 1987 X--- ./usr/src/ucb/window/wwredraw.c Sat May 9 19:09:07 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwredraw.c 3.7 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwredraw.c 3.8 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/lcmd.c.old Tue Feb 17 01:10:51 1987 X--- ./usr/src/ucb/window/lcmd.c Sat May 9 19:09:39 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)lcmd.c 3.24 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)lcmd.c 3.25 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/wwadd.c.old Tue Feb 17 01:10:52 1987 X--- ./usr/src/ucb/window/wwadd.c Sat May 9 19:10:04 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwadd.c 3.9 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwadd.c 3.10 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/wwalloc.c.old Tue Feb 17 01:10:52 1987 X--- ./usr/src/ucb/window/wwalloc.c Sat May 9 19:11:14 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwalloc.c 3.7 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwalloc.c 3.8 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/tth19.c.old Tue Feb 17 01:10:52 1987 X--- ./usr/src/ucb/window/tth19.c Sat May 9 19:11:58 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)tth19.c 3.17 5/2/86"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)tth19.c 3.18 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/wwinsline.c.old Tue Feb 17 01:10:52 1987 X--- ./usr/src/ucb/window/wwinsline.c Sat May 9 19:12:17 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwinsline.c 3.7 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwinsline.c 3.8 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/wwdelline.c.old Tue Feb 17 01:10:52 1987 X--- ./usr/src/ucb/window/wwdelline.c Sat May 9 19:12:38 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwdelline.c 3.7 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwdelline.c 3.8 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/wwclreol.c.old Tue Feb 17 01:10:52 1987 X--- ./usr/src/ucb/window/wwclreol.c Sat May 9 19:13:03 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwclreol.c 3.14 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwclreol.c 3.15 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/wwdata.c.old Tue Feb 17 01:10:53 1987 X--- ./usr/src/ucb/window/wwdata.c Sat May 9 19:14:20 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwdata.c 3.14 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwdata.c 3.15 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/wwdump.c.old Tue Feb 17 01:10:53 1987 X--- ./usr/src/ucb/window/wwdump.c Sat May 9 19:14:43 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwdump.c 3.11 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwdump.c 3.12 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/wwflush.c.old Tue Feb 17 01:10:53 1987 X--- ./usr/src/ucb/window/wwflush.c Sat May 9 19:15:05 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwflush.c 3.7 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwflush.c 3.8 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/wwpty.c.old Tue Jun 14 11:54:10 1988 X--- ./usr/src/ucb/window/wwpty.c Sat May 9 19:15:24 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwpty.c 3.11 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwpty.c 3.12 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/wwbox.c.old Tue Feb 17 01:10:53 1987 X--- ./usr/src/ucb/window/wwbox.c Sat May 9 19:39:57 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwbox.c 3.4 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwbox.c 3.5 (2.11BSD) 2026/5/9"; X #endif X X /* X*************** X*** 12,20 **** X #include "tt.h" X X wwbox(w, r, c, nr, nc) X! register struct ww *w; X! register r, c; X! int nr, nc; X { X register r1, c1; X register i; X--- 12,19 ---- X #include "tt.h" X X wwbox(w, r, c, nr, nc) X! struct ww *w; X! int r, c, nr, nc; X { X register r1, c1; X register i; X*** ./usr/src/ucb/window/wwinschar.c.old Tue Feb 17 01:10:53 1987 X--- ./usr/src/ucb/window/wwinschar.c Sat May 9 19:16:41 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwinschar.c 3.14 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwinschar.c 3.15 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/wwunframe.c.old Tue Jun 14 11:54:11 1988 X--- ./usr/src/ucb/window/wwunframe.c Sat May 9 19:18:16 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwunframe.c 3.14 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwunframe.c 3.15 (2.11BSD) 2026/5/9"; X #endif X X /* X*************** X*** 16,26 **** X int i; X X for (i = w->ww_i.t; i < w->ww_i.b; i++) { X! register j; X register char *win = w->ww_win[i]; X register char *fmap = w->ww_fmap ? w->ww_fmap[i] : 0; X! register char *smap = wwsmap[i]; X! register union ww_char *ns = wwns[i]; X int nchanged = 0; X X for (j = w->ww_i.l; j < w->ww_i.r; j++) { X--- 16,26 ---- X int i; X X for (i = w->ww_i.t; i < w->ww_i.b; i++) { X! int j; X register char *win = w->ww_win[i]; X register char *fmap = w->ww_fmap ? w->ww_fmap[i] : 0; X! char *smap = wwsmap[i]; X! union ww_char *ns = wwns[i]; X int nchanged = 0; X X for (j = w->ww_i.l; j < w->ww_i.r; j++) { X*** ./usr/src/ucb/window/wwupdate.c.old Tue Feb 17 01:10:54 1987 X--- ./usr/src/ucb/window/wwupdate.c Sat May 9 19:18:41 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwupdate.c 3.16 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwupdate.c 3.17 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/wwclreos.c.old Tue Feb 17 01:10:54 1987 X--- ./usr/src/ucb/window/wwclreos.c Sat May 9 19:18:59 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwclreos.c 3.5 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwclreos.c 3.6 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/wwdelchar.c.old Tue Feb 17 01:10:54 1987 X--- ./usr/src/ucb/window/wwdelchar.c Sat May 9 19:19:20 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwdelchar.c 3.11 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwdelchar.c 3.12 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/ttgeneric.c.old Tue Feb 17 01:10:54 1987 X--- ./usr/src/ucb/window/ttgeneric.c Sat May 9 19:19:39 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)ttgeneric.c 3.29 5/2/86"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ttgeneric.c 3.30 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/wwscroll.c.old Tue Feb 17 01:10:54 1987 X--- ./usr/src/ucb/window/wwscroll.c Sat May 9 19:20:01 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwscroll.c 3.13 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwscroll.c 3.14 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/wwredrawwin.c.old Tue Feb 17 01:10:54 1987 X--- ./usr/src/ucb/window/wwredrawwin.c Sat May 9 19:21:46 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwredrawwin.c 3.10 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwredrawwin.c 3.11 (2.11BSD) 2026/5/9"; X #endif X X /* X*************** X*** 15,25 **** X int row1, row2, offset; X { X int row; X! register col; X register char *smap; X! register union ww_char *buf; X register char *win; X! register union ww_char *ns; X int nchanged; X X for (row = row1; row < row2; row++) { X--- 15,25 ---- X int row1, row2, offset; X { X int row; X! int col; X register char *smap; X! union ww_char *buf; X register char *win; X! union ww_char *ns; X int nchanged; X X for (row = row1; row < row2; row++) { X*** ./usr/src/ucb/window/wwenviron.c.old Tue Jun 14 11:54:10 1988 X--- ./usr/src/ucb/window/wwenviron.c Mon Sep 21 06:31:09 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwenviron.c 3.14 5/2/86"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwenviron.c 3.15 (2.11BSD) 2026/5/9"; X #endif X X /* X*************** X*** 9,15 **** X */ X X #include "ww.h" X! #include X X /* X * Set up the environment of this process to run in window 'wp'. X--- 9,15 ---- X */ X X #include "ww.h" X! #include X X /* X * Set up the environment of this process to run in window 'wp'. X*** ./usr/src/ucb/window/wwcursor.c.old Tue Feb 17 01:10:55 1987 X--- ./usr/src/ucb/window/wwcursor.c Sat May 9 19:22:24 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwcursor.c 3.8 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwcursor.c 3.9 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/wwmove.c.old Tue Feb 17 01:10:55 1987 X--- ./usr/src/ucb/window/wwmove.c Sat May 9 19:22:42 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwmove.c 3.7 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwmove.c 3.8 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/mloop.c.old Tue Feb 17 01:10:55 1987 X--- ./usr/src/ucb/window/mloop.c Sat May 9 19:23:08 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)mloop.c 3.8 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)mloop.c 3.9 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/ttf100.c.old Tue Feb 17 01:10:55 1987 X--- ./usr/src/ucb/window/ttf100.c Sat May 9 19:23:26 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)ttf100.c 3.8 9/20/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ttf100.c 3.9 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/wwsuspend.c.old Tue Feb 17 01:10:55 1987 X--- ./usr/src/ucb/window/wwsuspend.c Mon Sep 21 06:33:40 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwsuspend.c 3.7 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwsuspend.c 3.8 (2.11BSD) 2026/5/9"; X #endif X X /* X*************** X*** 10,20 **** X X #include "ww.h" X #include "tt.h" X! #include X X wwsuspend() X { X! int (*oldsig)(); X X oldsig = signal(SIGTSTP, SIG_IGN); X wwend(); X--- 10,20 ---- X X #include "ww.h" X #include "tt.h" X! #include X X wwsuspend() X { X! sig_t oldsig; X X oldsig = signal(SIGTSTP, SIG_IGN); X wwend(); X*** ./usr/src/ucb/window/wwrint.c.old Sat Dec 30 00:55:11 1989 X--- ./usr/src/ucb/window/wwrint.c Mon Sep 21 22:43:31 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwrint.c 3.4 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwrint.c 3.5 (2.11BSD) 2026/5/9"; X #endif X X /* X*************** X*** 10,16 **** X X #include "ww.h" X #include X! #include X X /* X * Tty input interrupt handler. X--- 10,16 ---- X X #include "ww.h" X #include X! #include X X /* X * Tty input interrupt handler. X*************** X*** 23,28 **** X--- 23,29 ---- X * when the buffer is empty; and everywhere else, we only change wwibp. X * It should be completely safe. X */ X+ void X wwrint() X { X register n; X*** ./usr/src/ucb/window/wwspawn.c.old Tue Feb 17 01:10:56 1987 X--- ./usr/src/ucb/window/wwspawn.c Mon Sep 21 06:34:07 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwspawn.c 3.11 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwspawn.c 3.12 (2.11BSD) 2026/5/9"; X #endif X X /* X*************** X*** 9,15 **** X */ X X #include "ww.h" X! #include X X /* X * There is a dead lock with vfork and closing of pseudo-ports. X--- 9,15 ---- X */ X X #include "ww.h" X! #include X X /* X * There is a dead lock with vfork and closing of pseudo-ports. X*** ./usr/src/ucb/window/wwiomux.c.old Tue Feb 17 01:10:56 1987 X--- ./usr/src/ucb/window/wwiomux.c Sat May 9 19:24:44 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwiomux.c 3.15 9/19/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwiomux.c 3.16 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/parser1.c.old Tue Feb 17 01:10:56 1987 X--- ./usr/src/ucb/window/parser1.c Sat May 9 19:25:01 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)parser1.c 3.18 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)parser1.c 3.19 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/string.c.old Tue Feb 17 01:10:56 1987 X--- ./usr/src/ucb/window/string.c Sat May 9 19:26:31 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)string.c 3.8 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)string.c 3.9 (2.11BSD) 2026/5/9"; X #endif X X /* X*************** X*** 9,17 **** X */ X X #include "string.h" X! X! char *malloc(); X! char *sprintf(); X X char * X str_cpy(s) X--- 9,16 ---- X */ X X #include "string.h" X! #include X! #include X X char * X str_cpy(s) X*** ./usr/src/ucb/window/parser2.c.old Tue Feb 17 01:10:57 1987 X--- ./usr/src/ucb/window/parser2.c Sat May 9 19:26:55 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)parser2.c 3.10 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)parser2.c 3.11 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/parser3.c.old Tue Feb 17 01:10:58 1987 X--- ./usr/src/ucb/window/parser3.c Sat May 9 19:27:23 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)parser3.c 3.5 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)parser3.c 3.6 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/parser4.c.old Tue Feb 17 01:10:58 1987 X--- ./usr/src/ucb/window/parser4.c Sat May 9 19:27:44 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)parser4.c 3.4 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)parser4.c 3.5 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/parser5.c.old Tue Feb 17 01:10:58 1987 X--- ./usr/src/ucb/window/parser5.c Sat May 9 19:28:05 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)parser5.c 3.9 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)parser5.c 3.10 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/ttoutput.c.old Tue Feb 17 01:10:58 1987 X--- ./usr/src/ucb/window/ttoutput.c Sat May 9 19:28:31 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)ttoutput.c 3.4 9/19/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ttoutput.c 3.5 (2.11BSD) 2026/5/9"; X #endif X X /* X*************** X*** 21,27 **** X { X register char *p; X register n; X- extern errno; X X wwnflush++; X for (p = tt_ob; p < tt_obp;) { X--- 21,26 ---- X*** ./usr/src/ucb/window/lcmd2.c.old Tue Feb 17 01:10:58 1987 X--- ./usr/src/ucb/window/lcmd2.c Sat May 9 19:29:22 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)lcmd2.c 3.11 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)lcmd2.c 3.12 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/char.c.old Tue Feb 17 01:10:59 1987 X--- ./usr/src/ucb/window/char.c Sat May 9 19:29:41 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)char.c 3.3 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)char.c 3.4 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/tth29.c.old Tue Feb 17 01:10:59 1987 X--- ./usr/src/ucb/window/tth29.c Sat May 9 19:30:02 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)tth29.c 3.4 5/2/86"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)tth29.c 3.5 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/wwsize.c.old Tue Jun 14 11:54:11 1988 X--- ./usr/src/ucb/window/wwsize.c Sat May 9 19:30:44 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)wwsize.c 3.3 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwsize.c 3.4 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/cmd7.c.old Tue Feb 17 01:10:59 1987 X--- ./usr/src/ucb/window/cmd7.c Sat May 9 19:31:15 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)cmd7.c 3.3 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cmd7.c 3.4 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/tttvi925.c.old Tue Feb 17 01:10:59 1987 X--- ./usr/src/ucb/window/tttvi925.c Sat May 9 19:31:34 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)tttvi925.c 3.2 4/24/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)tttvi925.c 3.3 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/ucb/window/main.c.old Sat Jan 1 04:57:05 1994 X--- ./usr/src/ucb/window/main.c Mon Sep 21 06:30:38 2026 X*************** X*** 1,5 **** X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)main.c 3.31 1/1/94"; X #endif X X /* X--- 1,5 ---- X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)main.c 3.32 (2.11BSD) 2026/9/14"; X #endif X X /* X*************** X*** 9,22 **** X */ X X #include "defs.h" X! #include X #include X #include "string.h" X #include "char.h" X #include "local.h" X- #ifdef pdp11 X #include "tt.h" X- #endif X X #define next(a) (*++*(a) ? *(a) : (*++(a) ? *(a) : (char *)usage())) X X--- 9,20 ---- X */ X X #include "defs.h" X! #include X #include X #include "string.h" X #include "char.h" X #include "local.h" X #include "tt.h" X X #define next(a) (*++*(a) ? *(a) : (*++(a) ? *(a) : (char *)usage())) X X*************** X*** 30,36 **** X char xflag = 0; X char *cmd = 0; X char tflag = 0; X! #ifdef pdp11 X /* Move some buffers onto the stack to get at the memory */ X /* The program really doesn't fit, but we make a valiant effort */ X char inbuf[BUFSIZ]; X--- 28,34 ---- X char xflag = 0; X char *cmd = 0; X char tflag = 0; X! X /* Move some buffers onto the stack to get at the memory */ X /* The program really doesn't fit, but we make a valiant effort */ X char inbuf[BUFSIZ]; X*************** X*** 44,50 **** X wwwintermcap = ww_ibuf; X tt_strings = tt_sbuf; X tt_ob = tt_obuf; X- #endif X X nbufline = NLINE; X escapec = ESCAPEC; X--- 42,47 ---- X*** ./usr/src/ucb/window/local.h.old Tue Jan 7 22:37:17 2020 X--- ./usr/src/ucb/window/local.h Mon Sep 14 14:29:39 2026 X*************** X*** 1,5 **** X /* X! * @(#)local.h 3.6 2020/1/7 X */ X X /* X--- 1,5 ---- X /* X! * @(#)local.h 3.7 (2.11BSD) 2026/9/14 X */ X X /* X*************** X*** 14,22 **** X X #define RUNCOM ".windowrc" X #define ESCAPEC ctrl('p') X- #ifdef pdp11 X #define NLINE 3 /* default text buffer size */ X- #else X- #define NLINE 48 /* default text buffer size */ X- #endif X #define SHELL "/bin/csh" /* if no environment SHELL */ X--- 14,18 ---- X*** ./usr/src/ucb/window/tt.h.old Sat Jan 1 04:58:16 1994 X--- ./usr/src/ucb/window/tt.h Mon Sep 14 14:30:33 2026 X*************** X*** 1,5 **** X /* X! * @(#)tt.h 3.16 1/1/94 X */ X X /* X--- 1,5 ---- X /* X! * @(#)tt.h 3.17 (2.11BSD) 2026/9/14 X */ X X /* X*************** X*** 62,74 **** X X /* X * Clean interface to termcap routines. X- * Too may t's. X */ X! #ifdef pdp11 X char *tt_strings; /* string buffer on stack (see main.c) */ X- #else X- char tt_strings[1024]; /* string buffer */ X- #endif X char *tt_strp; /* pointer for it */ X X struct tt_str { X--- 62,70 ---- X X /* X * Clean interface to termcap routines. X */ X! X char *tt_strings; /* string buffer on stack (see main.c) */ X char *tt_strp; /* pointer for it */ X X struct tt_str { X*************** X*** 89,99 **** X * But I'm too lazy to think up different names. X */ X #define TTOBSIZ 512 X- #ifdef pdp11 X char *tt_ob; X- #else X- char tt_ob[TTOBSIZ]; X- #endif X char *tt_obp; X char *tt_obe; X #define ttputc(c) (tt_obp < tt_obe ? (*tt_obp++ = (c)) \ X--- 85,91 ---- X*** ./usr/src/ucb/window/ww.h.old Fri Mar 22 22:24:14 1996 X--- ./usr/src/ucb/window/ww.h Mon Sep 21 22:42:58 2026 X*************** X*** 1,5 **** X /* X! * @(#)ww.h 3.37.1 1996/3/22 X */ X X /* X--- 1,5 ---- X /* X! * @(#)ww.h 3.37.2 (2.11BSD) 2026/9/14 X */ X X /* X*************** X*** 14,24 **** X #include X #include X X- #ifdef pdp11 X #define NWW 9 /* maximum number of windows */ X- #else X- #define NWW 30 /* maximum number of windows */ X- #endif X X /* a rectangle */ X struct ww_dim { X--- 14,20 ---- X*************** X*** 174,189 **** X struct ww_tty wwnewtty; /* the new (current) terminal settings */ X struct ww_tty wwwintty; /* the terminal settings for windows */ X char *wwterm; /* the terminal name */ X- #ifdef pdp11 X /* these are on the stack; see main.c */ X char *wwtermcap; /* place for the termcap */ X char *wwkeys; /* termcap fields for the function keys */ X char *wwwintermcap; /* termcap for windows */ X- #else X- char wwtermcap[1024]; /* place for the termcap */ X- char wwkeys[512]; /* termcap fields for the function keys */ X- char wwwintermcap[1024]; /* termcap for windows */ X- #endif X X /* generally useful variables */ X int wwnrow, wwncol; /* the screen size */ X--- 170,179 ---- X*************** X*** 217,223 **** X #define wwupdate() wwupdate1(0, wwnrow); X X /* things for handling input */ X! int wwrint(); /* interrupt handler */ X struct ww *wwcurwin; /* window to copy input into */ X char wwsetjmp; /* want a longjmp() from wwrint() */ X jmp_buf wwjmpbuf; /* jmpbuf for above */ X--- 207,213 ---- X #define wwupdate() wwupdate1(0, wwnrow); X X /* things for handling input */ X! void wwrint(); /* interrupt handler */ X struct ww *wwcurwin; /* window to copy input into */ X char wwsetjmp; /* want a longjmp() from wwrint() */ X jmp_buf wwjmpbuf; /* jmpbuf for above */ X*************** X*** 244,250 **** X X /* our functions */ X struct ww *wwopen(); X! int wwchild(); X int wwsuspend(); X char **wwalloc(); X char *wwerror(); X--- 234,240 ---- X X /* our functions */ X struct ww *wwopen(); X! void wwchild(); X int wwsuspend(); X char **wwalloc(); X char *wwerror(); X*** ./usr/src/ucb/window/wwinit.c.old Mon Sep 21 06:28:51 2026 X--- ./usr/src/ucb/window/wwinit.c Mon Sep 21 06:31:00 2026 X*************** X*** 1,5 **** X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwinit.c 3.26.1 1996/3/22"; X #endif X X /* X--- 1,5 ---- X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wwinit.c 3.26.2 (2.11BSD) 2026/9/21"; X #endif X X /* X*************** X*** 10,16 **** X X #include "ww.h" X #include "tt.h" X! #include X #include X #include "char.h" X X--- 10,16 ---- X X #include "ww.h" X #include "tt.h" X! #include X #include X #include "char.h" X X*** ./usr/src/ucb/sendbug/unixtomh.c.old Mon Nov 4 21:14:39 1985 X--- ./usr/src/ucb/sendbug/unixtomh.c Sat May 9 15:06:57 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char SccsId[] = "@(#)unixtomh.c 1.1 5/16/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsId[] = "@(#)unixtomh.c 1.2 2026/5/9"; X #endif X X /* X*************** X*** 19,27 **** X--- 19,29 ---- X */ X X #include X+ #include X #include X #include X #include X+ #include X X #define SENDMAIL X X*************** X*** 31,38 **** X char *l_date; /* The entire date string */ X }; X X! char *savestr(), *copyin(), *copy(), *nextword(), *calloc(); X! char *index(); X X #define NOSTR ((char *) 0) X #define UUCP /* Undo strange uucp naming */ X--- 33,39 ---- X char *l_date; /* The entire date string */ X }; X X! char *savestr(), *copyin(), *copy(), *nextword(); X X #define NOSTR ((char *) 0) X #define UUCP /* Undo strange uucp naming */ X*** ./usr/src/ucb/compress/compress.c.old Thu Jan 1 15:13:55 2026 X--- ./usr/src/ucb/compress/compress.c Tue Sep 22 09:52:09 2026 X*************** X*** 1,5 **** X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)compress.c @(#)compress.c 5.9.1 (2.11BSD) 2026/1/1"; X #endif X X /* X--- 1,5 ---- X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)compress.c @(#)compress.c 5.9.2 (2.11BSD) 2026/9/22"; X #endif X X /* X*************** X*** 151,156 **** X--- 151,158 ---- X #include X #include X #include X+ #include X+ #include X #include X #include X X*************** X*** 225,231 **** X #ifdef DEBUG X int verbose = 0; X #endif /* DEBUG */ X! int (*oldint)(); X int bgnd_flag; X X int do_decomp = 0; X--- 227,233 ---- X #ifdef DEBUG X int verbose = 0; X #endif /* DEBUG */ X! sig_t oldint; X int bgnd_flag; X X int do_decomp = 0; X*************** X*** 273,281 **** X int overwrite = 0; /* Do not overwrite unless given -f flag */ X char tempname[100]; X char **filelist, **fileptr; X! char *cp, *rindex(), *malloc(); X struct stat statbuf; X! extern onintr(), oops(); X X /* This bg check only works for sh. */ X if ( (oldint = signal ( SIGINT, SIG_IGN )) != SIG_IGN ) { X--- 275,283 ---- X int overwrite = 0; /* Do not overwrite unless given -f flag */ X char tempname[100]; X char **filelist, **fileptr; X! char *cp; X struct stat statbuf; X! extern void onintr(), oops(); X X /* This bg check only works for sh. */ X if ( (oldint = signal ( SIGINT, SIG_IGN )) != SIG_IGN ) { X*************** X*** 1140,1145 **** X--- 1142,1148 ---- X perror(ofname); X } X X+ void X onintr ( ) X { X if (!precious) X*************** X*** 1147,1152 **** X--- 1150,1156 ---- X exit ( 1 ); X } X X+ void X oops ( ) /* wild pointer -- assume bad input */ X { X if ( do_decomp ) X*** ./usr/src/ucb/lock/lock.c.old Sat Jan 1 01:51:47 1994 X--- ./usr/src/ucb/lock/lock.c Mon Sep 21 22:18:45 2026 X*************** X*** 20,26 **** X "@(#) Copyright (c) 1980, 1987 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)lock.c 5.10.1 (2.11BSD GTE) 12/31/93"; X #endif X X /* X--- 20,26 ---- X "@(#) Copyright (c) 1980, 1987 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)lock.c 5.10.2 (2.11BSD) 2026/9/21"; X #endif X X /* X*************** X*** 34,49 **** X #include X #include X #include X! #include X #include X #include X #include X #include X #include X X #define TIMEOUT 15 X X! int quit(), bye(), hi(); X X struct timeval timeout; X struct timeval zerotime; X--- 34,52 ---- X #include X #include X #include X! #include X #include X #include X #include X #include X #include X+ #include X+ #include X+ #include X X #define TIMEOUT 15 X X! void quit(), bye(), hi(); X X struct timeval timeout; X struct timeval zerotime; X*************** X*** 55,62 **** X int argc; X char **argv; X { X- extern char *optarg; X- extern int errno, optind; X struct passwd *pw; X struct timeval timval; X struct itimerval ntimer, otimer; X--- 58,63 ---- X*************** X*** 64,70 **** X int ch, sectimeout, usemine; X char *ap, *mypw, *ttynam, *tzn; X char hostname[MAXHOSTNAMELEN], s[256], s1[256]; X- char *crypt(), *ttyname(); X X sectimeout = TIMEOUT; X mypw = NULL; X--- 65,70 ---- X*************** X*** 170,176 **** X quit(); X } X X! static X hi() X { X struct timeval timval; X--- 170,176 ---- X quit(); X } X X! static void X hi() X { X struct timeval timval; X*************** X*** 180,186 **** X (nexttime - timval.tv_sec) / 60, (nexttime - timval.tv_sec) % 60); X } X X! static X quit() X { X putchar('\n'); X--- 180,186 ---- X (nexttime - timval.tv_sec) / 60, (nexttime - timval.tv_sec) % 60); X } X X! static void X quit() X { X putchar('\n'); X*************** X*** 188,194 **** X exit(0); X } X X! static X bye() X { X (void)ioctl(0, TIOCSETP, &tty); X--- 188,194 ---- X exit(0); X } X X! static void X bye() X { X (void)ioctl(0, TIOCSETP, &tty); X*** ./usr/src/ucb/man/man.c.old Sun Feb 13 13:45:39 2000 X--- ./usr/src/ucb/man/man.c Tue Sep 15 08:03:39 2026 X*************** X*** 19,52 **** X char copyright[] = X "@(#) Copyright (c) 1987 Regents of the University of California.\n\ X All rights reserved.\n"; X #endif X X- #ifndef lint X- static char sccsid[] = "@(#)man.c 5.17.1 (2.11BSD) 1999/11/26"; X- #endif /* not lint */ X- X #include X #include X #include X- #include X #include X #include X #include X X #define DEF_PAGER "/usr/ucb/more -s" X #define DEF_PATH "/usr/man:/usr/new/man:/usr/local/man" X- #define LOCAL_PATH "/usr/local/man" X- #define NEW_PATH "/usr/new/man" X X- #define NO 0 X- #define YES 1 X- X static char *command, /* command buffer */ X *defpath, /* default search path */ X- *locpath, /* local search path */ X- *machine, /* machine type */ X *manpath, /* current search path */ X- *newpath, /* new search path */ X *pager, /* requested pager */ X how; /* how to display */ X X--- 19,43 ---- X char copyright[] = X "@(#) Copyright (c) 1987 Regents of the University of California.\n\ X All rights reserved.\n"; X+ X+ static char sccsid[] = "@(#)man.c 5.17.2 (2.11BSD) 2026/4/1"; X #endif X X #include X #include X #include X #include X #include X #include X+ #include X+ #include X X #define DEF_PAGER "/usr/ucb/more -s" X #define DEF_PATH "/usr/man:/usr/new/man:/usr/local/man" X X static char *command, /* command buffer */ X *defpath, /* default search path */ X *manpath, /* current search path */ X *pager, /* requested pager */ X how; /* how to display */ X X*************** X*** 58,67 **** X int argc; X register char **argv; X { X- extern char *optarg; X- extern int optind; X int ch; X- char *getenv(), *malloc(); X X while ((ch = getopt(argc, argv, "-M:P:afkw")) != EOF) X switch((char)ch) { X--- 49,55 ---- X*************** X*** 81,90 **** X */ X case 'f': X jump(argv, "-f", "whatis"); X- /*NOTREACHED*/ X case 'k': X jump(argv, "-k", "apropos"); X- /*NOTREACHED*/ X /* X * Deliberately undocumented; really only useful when X * you're moving man pages around. Not worth adding. X--- 69,76 ---- X*************** X*** 122,145 **** X * allocate space to add the "-s" X */ X if (!(pager = malloc((u_int)(strlen(opager) X! + sizeof("-s") + 1)))) { X! fputs("man: out of space.\n", stderr); X! exit(1); X! } X (void)sprintf(pager, "%s %s", opager, "-s"); X } X } X else X pager = DEF_PAGER; X- if (!(machine = getenv("MACHINE"))) X- setmachine(); X if (!defpath && !(defpath = getenv("MANPATH"))) X defpath = DEF_PATH; X- locpath = LOCAL_PATH; X- newpath = NEW_PATH; X man(argv); X /* use system(3) in case someone's pager is "pager arg1 arg2" */ X! if (command) X (void)system(command); X exit(0); X } X--- 108,125 ---- X * allocate space to add the "-s" X */ X if (!(pager = malloc((u_int)(strlen(opager) X! + sizeof("-s") + 1)))) X! errx(1, "man: out of space."); X (void)sprintf(pager, "%s %s", opager, "-s"); X } X } X else X pager = DEF_PAGER; X if (!defpath && !(defpath = getenv("MANPATH"))) X defpath = DEF_PATH; X man(argv); X /* use system(3) in case someone's pager is "pager arg1 arg2" */ X! if (command) X (void)system(command); X exit(0); X } X*************** X*** 147,160 **** X typedef struct { X char *name, *msg; X } MANDIR; X! static MANDIR list1[] = { /* section one list */ X "cat1", "1st", "cat8", "8th", "cat6", "6th", X! "cat.old", "old", NULL, NULL, X! }, list2[] = { /* rest of the list */ X "cat2", "2nd", "cat3", "3rd", "cat4", "4th", X "cat5", "5th", "cat7", "7th", "cat3f", "3rd (F)", X NULL, NULL, X! }, list3[2]; /* single section */ X X static X man(argv) X--- 127,144 ---- X typedef struct { X char *name, *msg; X } MANDIR; X! static MANDIR list1[] = X! { /* section one list */ X "cat1", "1st", "cat8", "8th", "cat6", "6th", X! NULL, NULL, X! }; X! static MANDIR list2[] = X! { /* rest of the list */ X "cat2", "2nd", "cat3", "3rd", "cat4", "4th", X "cat5", "5th", "cat7", "7th", "cat3f", "3rd (F)", X NULL, NULL, X! }; X! static MANDIR list3[2]; /* single section */ X X static X man(argv) X*************** X*** 168,205 **** X manpath = defpath; X section = NULL; X switch(**argv) { X- case 'l': /* local */ X- /* support the "{l,local,n,new}###" syntax */ X- for (p = *argv; isalpha(*p); ++p); X- if (!strncmp(*argv, "l", p - *argv) || X- !strncmp(*argv, "local", p - *argv)) { X- ++argv; X- manpath = locpath; X- section = getsect(p); X- } X- break; X- case 'n': /* new */ X- for (p = *argv; isalpha(*p); ++p); X- if (!strncmp(*argv, "n", p - *argv) || X- !strncmp(*argv, "new", p - *argv)) { X- ++argv; X- manpath = newpath; X- section = getsect(p); X- } X- break; X- /* X- * old isn't really a separate section of the manual, X- * and its entries are all in a single directory. X- */ X- case 'o': /* old */ X- for (p = *argv; isalpha(*p); ++p); X- if (!strncmp(*argv, "o", p - *argv) || X- !strncmp(*argv, "old", p - *argv)) { X- ++argv; X- list3[0] = list1[3]; X- section = list3; X- } X- break; X case '1': case '2': case '3': case '4': X case '5': case '6': case '7': case '8': X if (section = getsect(*argv)) X--- 152,157 ---- X*************** X*** 225,234 **** X fputs("what do you want from the ", stderr); X if (section) X fprintf(stderr, "%s section of the ", section->msg); X- if (manpath == locpath) X- fputs("local ", stderr); X- else if (manpath == newpath) X- fputs("new ", stderr); X if (*argv) X fputs("manual.\n", stderr); X else X--- 177,182 ---- X*************** X*** 240,247 **** X /* X * manual -- X * given a directory list and a file name find a file that X! * matches; check ${directory}/${dir}/{file name} and X! * ${directory}/${dir}/${machine}/${file name}. X */ X static X manual(section, name) X--- 188,194 ---- X /* X * manual -- X * given a directory list and a file name find a file that X! * matches; check ${directory}/${dir}/{file name} X */ X static X manual(section, name) X*************** X*** 260,271 **** X *end = '\0'; X for (dp = section; dp->name; ++dp) { X (void)sprintf(fname, "%s/%s/%s.0", beg, dp->name, name); X! if (access(fname, R_OK)) { X! (void)sprintf(fname, "%s/%s/%s/%s.0", beg, X! dp->name, machine, name); X! if (access(fname, R_OK)) X! continue; X! } X if (how & WHERE) X printf("man: found in %s.\n", fname); X else if (how & CAT) X--- 207,214 ---- X *end = '\0'; X for (dp = section; dp->name; ++dp) { X (void)sprintf(fname, "%s/%s/%s.0", beg, dp->name, name); X! if (access(fname, R_OK)) X! continue; X if (how & WHERE) X printf("man: found in %s.\n", fname); X else if (how & CAT) X*************** X*** 280,286 **** X return(res); X *end = ':'; X } X- /*NOTREACHED*/ X } X X /* X--- 223,228 ---- X*************** X*** 294,312 **** X register int fd, n; X char buf[BUFSIZ]; X X! if (!(fd = open(fname, O_RDONLY, 0))) { X! perror("man: open"); X! exit(1); X! } X! while ((n = read(fd, buf, sizeof(buf))) > 0) X! if (write(1, buf, n) != n) { X! perror("man: write"); X! exit(1); X! } X! if (n == -1) { X! perror("man: read"); X! exit(1); X! } X (void)close(fd); X } X X--- 236,248 ---- X register int fd, n; X char buf[BUFSIZ]; X X! if (!(fd = open(fname, O_RDONLY, 0))) X! err(1, "open"); X! while ((n = read(fd, buf, sizeof(buf))) > 0) X! if (write(1, buf, n) != n) X! err(1, "write"); X! if (n == -1) X! err(1, "read"); X (void)close(fd); X } X X*************** X*** 322,343 **** X static int len; X static char *cp; X int flen; X- char *malloc(), *realloc(), *strcpy(); X X if (!command) { X! if (!(command = malloc(buflen = 1024))) { X! fputs("man: out of space.\n", stderr); X! exit(1); X! } X len = strlen(strcpy(command, pager)); X cp = command + len; X } X flen = strlen(fname); X if (len + flen + 2 > buflen) { /* +2 == space, EOS */ X! if (!(command = realloc(command, buflen += 1024))) { X! fputs("man: out of space.\n", stderr); X! exit(1); X! } X cp = command + len; X } X *cp++ = ' '; X--- 258,274 ---- X static int len; X static char *cp; X int flen; X X if (!command) { X! if (!(command = malloc(buflen = 1024))) X! errx(1, "out of space.", stderr); X len = strlen(strcpy(command, pager)); X cp = command + len; X } X flen = strlen(fname); X if (len + flen + 2 > buflen) { /* +2 == space, EOS */ X! if (!(command = realloc(command, buflen += 1024))) X! errx(1, "man: out of space."); X cp = command + len; X } X *cp++ = ' '; X*************** X*** 352,358 **** X */ X static MANDIR * X getsect(s) X! char *s; X { X switch(*s++) { X case '1': X--- 283,289 ---- X */ X static MANDIR * X getsect(s) X! register char *s; X { X switch(*s++) { X case '1': X*************** X*** 427,450 **** X for (; *arg; ++arg) X arg[0] = arg[1]; X execvp(name, argv); X! fprintf(stderr, "%s: Command not found.\n", name); X! exit(1); X } X X /* X- * This is done in a function by itself because 'uname()' uses a 640 X- * structure which we do not want permanently allocated on main()'s stack. X- */ X- setmachine() X- { X- struct utsname foo; X- X- if (uname(&foo) < 0) X- strcpy(foo.machine, "?"); X- machine = strdup(foo.machine); X- } X- X- /* X * usage -- X * print usage and die X */ X--- 358,367 ---- X for (; *arg; ++arg) X arg[0] = arg[1]; X execvp(name, argv); X! errx(1, "%s: Command not found.", name); X } X X /* X * usage -- X * print usage and die X */ X*************** X*** 451,456 **** X static X usage() X { X! fputs("usage: man [-] [-a] [-M path] [section] title ...\n", stderr); X! exit(1); X } X--- 368,372 ---- X static X usage() X { X! errx(1, "usage: man [-] [-a] [-M path] [section] title ..."); X } X*** ./usr/src/ucb/man/apropos.c.old Wed Jan 7 05:40:16 2026 X--- ./usr/src/ucb/man/apropos.c Tue Sep 15 14:46:41 2026 X*************** X*** 20,26 **** X "@(#) Copyright (c) 1987 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)apropos.c 5.7 (2.11BSD) 2026/1/7"; X #endif X X #include X--- 20,26 ---- X "@(#) Copyright (c) 1987 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)apropos.c 5.8 (2.11BSD) 2026/9/15"; X #endif X X #include X*************** X*** 28,61 **** X #include X #include X #include X X #define DEF_PATH "/usr/man:/usr/new/man:/usr/local/man" X #define MAXLINELEN 1000 /* max line handled */ X #define WHATIS "whatis" /* database name */ X X! #define NO 0 /* no/false */ X! #define YES 1 /* yes/true */ X X- static char *myname; X- X main(argc, argv) X int argc; X char **argv; X { X register char *beg, *end, **C; X! int ch, foundman = NO, *found, isapropos; X int a_match(), w_match(), (*match)(); X char *manpath = NULL, buf[MAXLINELEN + 1], fname[MAXPATHLEN + 1]; X char wbuf[MAXLINELEN + 1]; X char *cp; X X! myname = (beg = rindex(*argv, '/')) ? beg + 1 : *argv; X! if (!strcmp(myname, "apropos")) { X! isapropos = YES; X match = a_match; X } X else { X! isapropos = NO; X match = w_match; X } X while ((ch = getopt(argc, argv, "M:P:")) != EOF) X--- 28,58 ---- X #include X #include X #include X+ #include X X #define DEF_PATH "/usr/man:/usr/new/man:/usr/local/man" X #define MAXLINELEN 1000 /* max line handled */ X #define WHATIS "whatis" /* database name */ X X! extern char *__progname; X X main(argc, argv) X int argc; X char **argv; X { X register char *beg, *end, **C; X! int ch, foundman = 0, *found, isapropos; X int a_match(), w_match(), (*match)(); X char *manpath = NULL, buf[MAXLINELEN + 1], fname[MAXPATHLEN + 1]; X char wbuf[MAXLINELEN + 1]; X char *cp; X X! if (!strcmp(__progname, "apropos")) { X! isapropos = 1; X match = a_match; X } X else { X! isapropos = 0; X match = w_match; X } X while ((ch = getopt(argc, argv, "M:P:")) != EOF) X*************** X*** 76,86 **** X if (!(manpath = getenv("MANPATH"))) X manpath = DEF_PATH; X X! /*NOSTRICT*/ X! if (!(found = (int *)malloc((u_int)(argc * sizeof(int))))) { X! fprintf(stderr, "%s: out of space.\n", myname); X! exit(1); X! } X bzero((char *)found, argc * sizeof(int)); X X if (isapropos) X--- 73,81 ---- X if (!(manpath = getenv("MANPATH"))) X manpath = DEF_PATH; X X! if (!(found = (int *)malloc((u_int)(argc * sizeof(int))))) X! errx(1, "out of space"); X! X bzero((char *)found, argc * sizeof(int)); X X if (isapropos) X*************** X*** 102,108 **** X continue; X X /* for each file found */ X! for (foundman = YES; fgets(buf, sizeof buf, stdin);) { X if (cp = index(buf, '\n')) *cp = '\0'; X if (isapropos) X lowstr(buf, wbuf); X--- 97,103 ---- X continue; X X /* for each file found */ X! for (foundman = 1; fgets(buf, sizeof buf, stdin);) { X if (cp = index(buf, '\n')) *cp = '\0'; X if (isapropos) X lowstr(buf, wbuf); X*************** X*** 111,130 **** X for (C = argv; *C; ++C) X if ((*match)(wbuf, *C)) { X puts(buf); X! found[C - argv] = YES; X X /* only print line once */ X while (*++C) X if ((*match)(wbuf, *C)) X! found[C - argv] = YES; X break; X } X } X } X! if (!foundman) { X! fprintf(stderr, "%s: no %s file found in %s.\n", myname, WHATIS, manpath); X! exit(1); X! } X for (C = argv; *C; ++C) X if (!found[C - argv]) X printf("%s: %s\n", *C, isapropos ? "nothing appropriate" : "not found"); X--- 106,124 ---- X for (C = argv; *C; ++C) X if ((*match)(wbuf, *C)) { X puts(buf); X! found[C - argv] = 1; X X /* only print line once */ X while (*++C) X if ((*match)(wbuf, *C)) X! found[C - argv] = 1; X break; X } X } X } X! if (!foundman) X! errx(1,"no %s file found in %s", WHATIS, manpath); X! X for (C = argv; *C; ++C) X if (!found[C - argv]) X printf("%s: %s\n", *C, isapropos ? "nothing appropriate" : "not found"); X*************** X*** 131,138 **** X } X X /* X! * a_match -- X! * match for apropos; anywhere the string appears X */ X static X a_match(bp, str) X--- 125,131 ---- X } X X /* X! * a_match -- match for apropos; anywhere the string appears X */ X static X a_match(bp, str) X*************** X*** 142,155 **** X register char test; X X if (!*bp) X! return(NO); X /* backward compatible: everything matches empty string */ X if (!*str) X! return(YES); X for (test = *str++, len = strlen(str); *bp;) X if (test == *bp++ && !strncmp(bp, str, len)) X! return(YES); X! return(NO); X } X X /* X--- 135,148 ---- X register char test; X X if (!*bp) X! return(0); X /* backward compatible: everything matches empty string */ X if (!*str) X! return(1); X for (test = *str++, len = strlen(str); *bp;) X if (test == *bp++ && !strncmp(bp, str, len)) X! return(1); X! return(0); X } X X /* X*************** X*** 164,170 **** X register char *start; X X if (!*str || !*bp) X! return(NO); X for (len = strlen(str);;) { X for (; *bp && !isdigit(*bp) && !isalpha(*bp); ++bp); X if (!*bp) X--- 157,163 ---- X register char *start; X X if (!*str || !*bp) X! return(0); X for (len = strlen(str);;) { X for (; *bp && !isdigit(*bp) && !isalpha(*bp); ++bp); X if (!*bp) X*************** X*** 171,179 **** X break; X for (start = bp++; *bp && (isdigit(*bp) || isalpha(*bp)); ++bp); X if (bp - start == len && !strncasecmp(start, str, len)) X! return(YES); X } X! return(NO); X } X X /* X--- 164,172 ---- X break; X for (start = bp++; *bp && (isdigit(*bp) || isalpha(*bp)); ++bp); X if (bp - start == len && !strncasecmp(start, str, len)) X! return(1); X } X! return(0); X } X X /* X*************** X*** 192,199 **** X } X X /* X! * lowstr -- X! * convert a string to lower case X */ X static X lowstr(from, to) X--- 185,191 ---- X } X X /* X! * lowstr -- convert a string to lower case X */ X static X lowstr(from, to) X*************** X*** 205,216 **** X } X X /* X! * usage -- X! * print usage message and die X */ X static X usage() X { X! fprintf(stderr, "usage: %s [-M path] string ...\n", myname); X! exit(1); X } X--- 197,206 ---- X } X X /* X! * usage -- print usage message and die X */ X static X usage() X { X! errx(1, "usage: [-M path] string ..."); X } X*** ./usr/src/ucb/w.c.old Mon Nov 18 01:43:04 1996 X--- ./usr/src/ucb/w.c Wed Jun 17 09:49:10 2026 X*************** X*** 1,5 **** X /* X! * w.c (2.11BSD) 2.0 1996/11/17 X * X * w - print system status (who and what) X * X--- 1,5 ---- X /* X! * w.c (2.11BSD) 2.1 2026/5/30 X * X * w - print system status (who and what) X * X*************** X*** 6,12 **** X * Rewritten using sysctl, no nlist used - 1/19/94 - sms. X * X * This program is similar to the systat command on Tenex/Tops 10/20 X! * It needs read permission on /dev/mem and /dev/swap. X */ X #include X #include X--- 6,12 ---- X * Rewritten using sysctl, no nlist used - 1/19/94 - sms. X * X * This program is similar to the systat command on Tenex/Tops 10/20 X! * It needs read permission on /dev/mem and the swap device. X */ X #include X #include X*************** X*** 41,47 **** X int swap; /* /dev/mem, mem, and swap */ X int file; X dev_t tty; X! char doing[520]; /* process attached to terminal */ X time_t proctime; /* cpu time of process in doing */ X double avenrun[3]; X extern int errno, optind; X--- 41,47 ---- X int swap; /* /dev/mem, mem, and swap */ X int file; X dev_t tty; X! char doing[128]; /* process attached to terminal */ X time_t proctime; /* cpu time of process in doing */ X double avenrun[3]; X extern int errno, optind; X*************** X*** 126,131 **** X--- 126,136 ---- X readpr(); X X ut = fopen(_PATH_UTMP, "r"); X+ if (ut == NULL) X+ { X+ perror(_PATH_UTMP); X+ exit(1); X+ } X if (header) { X /* Print time of day */ X time(&now); X*************** X*** 364,371 **** X perror("/dev/mem"); X exit(1); X } X! if ((swap = open("/dev/swap", 0)) < 0) { X! perror("/dev/swap"); X exit(1); X } X mib[0] = CTL_KERN; X--- 369,377 ---- X perror("/dev/mem"); X exit(1); X } X! swapdevname(doing, sizeof doing); /* use 'doing' */ X! if ((swap = open(doing, 0)) < 0) { X! perror(doing); X exit(1); X } X mib[0] = CTL_KERN; X*** ./usr/src/ucb/tn3270/tn3270.c.old Tue Jan 7 22:34:26 2020 X--- ./usr/src/ucb/tn3270/tn3270.c Mon Sep 21 22:35:27 2026 X*************** X*** 21,27 **** X X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)tn3270.c 2.9 2020/1/7"; X #endif X X /* X--- 21,27 ---- X X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)tn3270.c 2.10 2026/1/27"; X #endif X X /* X*************** X*** 43,61 **** X #include X #include X #include X #include X X #define strip(x) ((x)&0177) X #define min(x,y) ((x X #include X #include X+ #include X #include X X #define strip(x) ((x)&0177) X #define min(x,y) ((x ", prompt); X! if (gets(line) == 0) { X if (feof(stdin)) { X clearerr(stdin); X putchar('\n'); X--- 693,700 ---- X signal(SIGINT, SIG_DFL); X for (;;) { X printf("%s> ", prompt); X! line[0] = '\0'; X! if (cmdgets() == 0) { X if (feof(stdin)) { X clearerr(stdin); X putchar('\n'); X*************** X*** 1046,1059 **** X char *argv[]; X { X register char *arg; X- char buf[50]; X X if (argc > 2) X arg = argv[1]; X else { X printf("new escape character: "); X! gets(buf); X! arg = buf; X } X if (arg[0] != '\0') X escape = arg[0]; X--- 1054,1067 ---- X char *argv[]; X { X register char *arg; X X if (argc > 2) X arg = argv[1]; X else { X printf("new escape character: "); X! line[0] = '\0'; X! (void)cmdgets(); X! arg = line; X } X if (arg[0] != '\0') X escape = arg[0]; X*************** X*** 1156,1162 **** X return (found); X } X X! static X deadpeer() X { X (void) mode(0); X--- 1164,1170 ---- X return (found); X } X X! static void X deadpeer() X { X (void) mode(0); X*************** X*** 1163,1169 **** X longjmp(peerdied, -1); X } X X! static X intr() X { X (void) mode(0); X--- 1171,1177 ---- X longjmp(peerdied, -1); X } X X! static void X intr() X { X (void) mode(0); X*************** X*** 1170,1176 **** X longjmp(toplevel, -1); X } X X! static X inputAvailable() X { X HaveInput = 1; X--- 1178,1184 ---- X longjmp(toplevel, -1); X } X X! static void X inputAvailable() X { X HaveInput = 1; X*** ./usr/src/ucb/tn3270/Makefile.old Tue Nov 25 19:30:40 2025 X--- ./usr/src/ucb/tn3270/Makefile Sun Apr 26 18:45:10 2026 X*************** X*** 1,4 **** X! # @(#)Makefile 2.13 (2.11BSD) 2025/11/25 X X CC = cc X LDFLAGS = -i X--- 1,4 ---- X! # @(#)Makefile 2.14 (2.11BSD) 2026/4/26 X X CC = cc X LDFLAGS = -i X*************** X*** 28,59 **** X MSMAIN = mset.c X X # X! # In the vax and pdp environments, we use {vax,pdp}bsubs.s, which give X # us a fair amount of increased performance. We have provided X # genbsubs.c, which perform (more or less) the same function. X- # Don't forget to specify the correct assembly rules if you use them. X X #SUBS = genbsubs.c X SUBS = pdpbsubs.s X- #SUBS = vaxbsubs.s X X #SUBSO = genbsubs.o X SUBSO = pdpbsubs.o X- #SUBSO = vaxbsubs.o X X # PDP-11 assembly rules: X .s.o: X /lib/cpp -E $*.s | sed -e 's;^#;/;' | as -V -o $@ X X- # Vax assembly rules: X- #.s.o: X- # /lib/cpp -E $< | as -o $@ X- X ALLC = ${MOSTC} ${TNMAIN} ${MSMAIN} ${SUBS} X # ALLC = ${MOSTC} ${TNMAIN} ${MSMAIN} X X! ALLS = X! #ALLS = vaxbsubs.s X X MOSTO = tn3270.o ebctab.o asctab.o termin.o keyboard.o \ X datastream.o screen.o map3270.o options.o \ X--- 28,51 ---- X MSMAIN = mset.c X X # X! # In the pdp environment we use pdpbsubs.s, which give X # us a fair amount of increased performance. We have provided X # genbsubs.c, which perform (more or less) the same function. X X #SUBS = genbsubs.c X SUBS = pdpbsubs.s X X #SUBSO = genbsubs.o X SUBSO = pdpbsubs.o X X # PDP-11 assembly rules: X .s.o: X /lib/cpp -E $*.s | sed -e 's;^#;/;' | as -V -o $@ X X ALLC = ${MOSTC} ${TNMAIN} ${MSMAIN} ${SUBS} X # ALLC = ${MOSTC} ${TNMAIN} ${MSMAIN} X X! ALLS = pdpbsubs.s X X MOSTO = tn3270.o ebctab.o asctab.o termin.o keyboard.o \ X datastream.o screen.o map3270.o options.o \ X*** ./usr/src/ucb/tn3270/datastream.c.old Sat Jan 1 05:06:29 1994 X--- ./usr/src/ucb/tn3270/datastream.c Mon Sep 21 22:37:30 2026 X*************** X*** 26,31 **** X--- 26,32 ---- X #include X #include X #include X+ #include X X #include "ascebc.h" X #include "3270.h" X*************** X*** 32,38 **** X #include "screen.h" X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)datastream.c 2.13\t1/1/94"; X #endif X X void EmptyTerminal(); X--- 33,39 ---- X #include "screen.h" X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)datastream.c 2.14 (2.11BSD) 2026/9/21"; X #endif X X void EmptyTerminal(); X*************** X*** 540,546 **** X static int LastWasTerminated = 0; /* was "control" = 1 last time? */ X X if (!Initialized) { /* not initialized */ X- int abort(); X X bzero((char *)Host, sizeof Host); X DeleteAllFields(); X--- 541,546 ---- X*** ./usr/src/ucb/talk/ctl.c.old Tue Feb 17 01:10:38 1987 X--- ./usr/src/ucb/talk/ctl.c Sat May 9 15:32:36 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)ctl.c 5.2 (Berkeley) 3/13/86"; X! #endif not lint X X /* X * This file handles haggling with the various talk daemons to X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ctl.c 5.3 (2.11BSD) 2026/5/9"; X! #endif X X /* X * This file handles haggling with the various talk daemons to X*** ./usr/src/ucb/talk/ctl_transact.c.old Sun Jun 12 22:56:17 1988 X--- ./usr/src/ucb/talk/ctl_transact.c Sat May 9 15:33:01 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)ctl_transact.c 5.2 (Berkeley) 3/13/86"; X! #endif not lint X X #include "talk_ctl.h" X #include X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ctl_transact.c 5.3 (2.11BSD) 2026/5/9"; X! #endif X X #include "talk_ctl.h" X #include X*** ./usr/src/ucb/talk/display.c.old Tue Feb 17 01:10:42 1987 X--- ./usr/src/ucb/talk/display.c Sat May 9 15:33:23 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)display.c 5.1 (Berkeley) 6/6/85"; X! #endif not lint X X /* X * The window 'manager', initializes curses and handles the actual X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)display.c 5.2 (2.11BSD) 2026/5/9"; X! #endif X X /* X * The window 'manager', initializes curses and handles the actual X*** ./usr/src/ucb/talk/get_addrs.c.old Mon Dec 26 18:53:15 1988 X--- ./usr/src/ucb/talk/get_addrs.c Sat May 9 15:33:48 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)get_addrs.c 5.2 (Berkeley) 3/13/86"; X! #endif not lint X X #include "talk_ctl.h" X #include X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)get_addrs.c 5.3 (2.11BSD) 2026/5/9"; X! #endif X X #include "talk_ctl.h" X #include X*** ./usr/src/ucb/talk/look_up.c.old Tue Feb 17 01:10:43 1987 X--- ./usr/src/ucb/talk/look_up.c Sat May 9 15:35:47 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)look_up.c 5.2 (Berkeley) 3/13/86"; X! #endif not lint X X #include "talk_ctl.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)look_up.c 5.3 (2.11BSD) 2026/5/9"; X! #endif X X #include "talk_ctl.h" X X*** ./usr/src/ucb/talk/msgs.c.old Tue Aug 2 17:38:38 1988 X--- ./usr/src/ucb/talk/msgs.c Mon Sep 21 21:04:21 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)msgs.c 5.1 (Berkeley) 6/6/85"; X! #endif not lint X X /* X * A package to display what is happening every MSG_INTERVAL seconds X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)msgs.c 5.2 (2.11BSD) 2026/5/9"; X! #endif X X /* X * A package to display what is happening every MSG_INTERVAL seconds X*************** X*** 27,33 **** X static struct itimerval itimer; X static struct timeval wait = { MSG_INTERVAL , 0}; X static struct timeval undo = { LONG_TIME, 0}; X! X disp_msg() X { X X--- 27,34 ---- X static struct itimerval itimer; X static struct timeval wait = { MSG_INTERVAL , 0}; X static struct timeval undo = { LONG_TIME, 0}; X! X! void X disp_msg() X { X X*** ./usr/src/ucb/talk/talk.c.old Tue Feb 17 01:10:43 1987 X--- ./usr/src/ucb/talk/talk.c Sat May 9 15:36:35 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)talk.c 5.1 (Berkeley) 6/6/85"; X! #endif not lint X X #include "talk.h" X X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)talk.c 5.2 (2.11BSD) 2026/5/9"; X! #endif X X #include "talk.h" X X*** ./usr/src/ucb/talk/io.c.old Fri Mar 22 23:17:46 1996 X--- ./usr/src/ucb/talk/io.c Sat May 9 15:40:31 2026 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)io.c 5.1.1 (2.11BSD) 1996/3/22"; X #endif X X /* X--- 5,11 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)io.c 5.1.2 (2.11BSD) 2026/5/9"; X #endif X X /* X*************** X*** 23,38 **** X #define A_LONG_TIME 10000000 X #define STDIN_MASK (1L< CRNL mapping etc. Choose your preference... X- */ X- #define TTY_RAW 0 /* use RAW/!CBRK for terminal */ X- #define BADKEY_IGNORE 1 /* no abort on invalid commands */ X- #define TIME_CHILD 0 /* include time of children in process */ X X #include X! #include /* usleep */ X! #include /* getopt */ X #include X! #include /* NGROUPS */ X! #include /* boottime,.. */ X! #include /* isdigit */ X! #include /* lseek */ X! #include /* struct stat */ X! #include /* MAXCOMLEN */ X! #include /* struct proc */ X #include X! #include /* select() */ X! #include /* select() */ X! #include /* select() */ X! #include /* winsize, TIOCGETP */ X! #include /* isdigit() */ X #include X! #include /* PS_NAMESIZE, _PATH_UTMP */ X #include X! #include /* cpu stats */ X #include X- #include "psdb.h" X X! #define LOCAL static X! #define EXPORT /**/ X X typedef struct udata_s X { X- dev_t o_ttyd; /* u_ttyd */ X- char o_tty[3]; /* 1st 2 chars of tty after 'tty' */ X char *o_uname; /* login name of process owner */ X time_t o_utime; /* u_utime */ X time_t o_stime; /* u_stime */ X- #if TIME_CHILD X- time_t o_cutime; /* u_cutime */ X- time_t o_cstime; /* u_cstime */ X- #endif X time_t o_ttime; /* u_utime + u_stime */ X time_t o_dtime; /* o_ttime - o_LastTime */ X- int o_sigs; /* sum of SIGINT & SIGQUIT (2 => ignore both) */ X size_t o_tsize; /* text size */ X! int o_increment; /* current - last */ X! char o_comm[MAXCOMLEN]; /* u_comm */ X! char *o_args; /* best guess at args to process */ X! long o_nswap; /* swaps */ X! long o_nvcsw; /* voluntary context switches */ X! long o_nicsw; /* involuntary " */ X /* X * details from last update X */ X--- 27,75 ---- X * 08 20/9/2024 Change /vmunix to /unix sms X * 09 28/3/2025 Exit gracefully when out of memory martin X * 10 06/5/2025 Handle long user names gracefully hbe X+ * 11 06/14/2026 None of the tty info (gettty()) was used! Almost sms X+ * no info in psdatabase was used. udata_s had sms X+ * unused members. psdb.c and psdb.h removed sms X */ X X #include X! #include X! #include X #include X! #include X! #include X! #include X! #include X! #include X! #include X! #include X #include X! #include X! #include X! #include X #include X! #include X! #include X #include X! #include X #include X X! /* X! * limit o_comm to 16 instead of MAXCOMLEN. A udata_s struct is allocated X! * for each process. A savings of 48 bytes * 100+ processs will allow a X! * larger window size. Command names are much smaller than 64. X! */ X! #define OCOMMLEN 16 X X typedef struct udata_s X { X char *o_uname; /* login name of process owner */ X time_t o_utime; /* u_utime */ X time_t o_stime; /* u_stime */ X time_t o_ttime; /* u_utime + u_stime */ X time_t o_dtime; /* o_ttime - o_LastTime */ X size_t o_tsize; /* text size */ X! char o_comm[OCOMMLEN]; /* u_comm */ X /* X * details from last update X */ X*************** X*** 95,101 **** X #define DRATE (1000000) /* default delay between updates (us) */ X #define MAXUSER 10 /* user names to cache */ X X! LOCAL struct userdb_s X { X char uname[UT_NAMESIZE]; X short uid; X--- 81,87 ---- X #define DRATE (1000000) /* default delay between updates (us) */ X #define MAXUSER 10 /* user names to cache */ X X! static struct userdb_s X { X char uname[UT_NAMESIZE]; X short uid; X*************** X*** 104,160 **** X struct nlist nl[] = { X #define X_CPTIME 0 X { "_cp_time" }, X { "" }, X }; X X! LOCAL long upd_us = DRATE; /* delay between updates */ X! LOCAL struct proc *proctab; /* buffer to contain proc array */ X! LOCAL int ptsz = 0; /* size of proc array */ X! LOCAL int *procidx; /* indirect array for proc access */ X! LOCAL struct udata_s *userdata; /* process information from u */ X X! LOCAL char xflg; X! LOCAL char gflg; X! LOCAL char *tptr; X! LOCAL char *memf = "/dev/mem"; X! LOCAL char *kmemf = "/dev/kmem"; X! LOCAL char *swapf = "/dev/swap"; X X! LOCAL int sort = 9; X! LOCAL int idle = 1; X X! LOCAL int kmem; X! LOCAL int mem; X! LOCAL int swap; X! LOCAL u_int nproc; X! LOCAL int hz; X! LOCAL float fhz; X! LOCAL int done = 0; X! LOCAL struct tchars tc; /* determine t_intrc and t_quitc */ X X! /* system stats */ X! LOCAL time_t now; X! LOCAL struct tm *ltp; X! LOCAL struct timeval boottime; X! LOCAL time_t uptime; X! LOCAL FILE *ut; X! LOCAL struct utmp utmp; X! LOCAL int nusers; X! LOCAL double avenrun[3]; X! LOCAL char host[8]; X X- LOCAL struct map_s X- { X- off_t b1, e1; X- off_t f1; X- off_t b2, e2; X- off_t f2; X- } datmap; X- X /* X * Configure/restore output terminal X */ X! LOCAL int config_tty(onoff) X int onoff; X { X if(onoff == 0) { X--- 90,134 ---- X struct nlist nl[] = { X #define X_CPTIME 0 X { "_cp_time" }, X+ #define X_PROC 1 X+ { "_proc" }, X+ #define X_NPROC 2 X+ { "_nproc" }, X+ #define X_HZ 3 X+ { "_hz" }, X { "" }, X }; X X! int nproc_sym, proc_sym, hz_sym; X X! static long upd_us = DRATE; /* delay between updates */ X! static struct proc *proctab; /* buffer to contain proc array */ X! static int ptsz = 0; /* size of proc array */ X! static int *procidx; /* indirect array for proc access */ X! static struct udata_s *userdata; /* process information from u */ X X! static char *memf = "/dev/mem"; X! static char *kmemf = "/dev/kmem"; X X! static int sort = 9, idle = 1, kmem, mem, swap, hz; X! static u_int nproc; X! static float fhz; X! static struct tchars tc; /* determine t_intrc and t_quitc */ X X! static time_t now; X! static struct tm *ltp; X! static struct timeval boottime; X! static time_t uptime; X! static FILE *ut; X! static struct utmp utmp; X! static int nusers; X! static double avenrun[3]; X! static char host[8]; X X /* X * Configure/restore output terminal X */ X! int config_tty(onoff) X int onoff; X { X if(onoff == 0) { X*************** X*** 171,180 **** X /* X * Exit gracefully when out of memory X */ X! LOCAL int oom_reset_exit(int status) X { X resetty(); X! printf("This error may occur if the window size is too large.\n"); X exit(status); X } X X--- 145,154 ---- X /* X * Exit gracefully when out of memory X */ X! static int oom_reset_exit(int status) X { X resetty(); X! printf("the window size is too large.\n"); X exit(status); X } X X*************** X*** 183,193 **** X * returns 1 on success X * -1 on failure X */ X! LOCAL int readat(fd, pos, buff, count) X! int fd; X! off_t pos; X! char *buff; X! unsigned short count; X { X if(lseek(fd, pos, L_SET) == (off_t) -1) X return(-1); X--- 157,167 ---- X * returns 1 on success X * -1 on failure X */ X! static int readat(fd, pos, buff, count) X! int fd; X! off_t pos; X! char *buff; X! unsigned short count; X { X if(lseek(fd, pos, L_SET) == (off_t) -1) X return(-1); X*************** X*** 194,392 **** X return((read(fd, buff, count) == count)? 1 : -1); X } X X! /* X! ******* Get Information for a process given a proc array entry ******** X! */ X! #define within(x,y,z) (((unsigned)(x) >= (y)) && ((unsigned)(x) < (z))) X! X! LOCAL getbyte(adr, file) X! register char *adr; X! int file; X { X- register struct map_s *amap = &datmap; X- char b; X- off_t saddr; X- X- if(!within(adr, amap->b1, amap->e1)) X- { X- if(within(adr, amap->b2, amap->e2)) X- saddr = (unsigned) adr + amap->f2 - amap->b2; X- else X- return(0); X- } X- else X- { X- saddr = (unsigned) adr + amap->f1 - amap->b1; X- } X- if(lseek(file, saddr, L_SET) == (off_t) -1 || read (file, &b, 1) < 1) X- return(0); X- return((unsigned) b); X- } X- X- LOCAL char * X- getptr(adr, file) X- char **adr; X- int file; X- { X- char *ptr = 0; X- register char *p, *pa; X- register int i; X- X- pa = (char *)adr; X- p = (char *)&ptr; X- for (i = 0; i < sizeof (ptr); i++) X- *p++ = getbyte(pa++, file); X- return(ptr); X- } X- /* X- * Get process command line X- * Passed: X- * fd - descriptor for process image (mem or swap as appropriate) X- * stk - offset to process stack area (mem or swap in file) X- * pp - proc structure for process X- * a - pointer to process summary structure to update X- * X- * Returns: X- * 1 - success X- * 0 - failed X- */ X- /* amount of top of stack to examine for args */ X- #define ARGLIST (1024/sizeof(int)) X- X- LOCAL getargs(fd, stk, pp, a, u) X- int fd; X- off_t stk; X- struct proc *pp; X- register struct udata_s *a; X- struct user *u; X- { X- register int *ip; X- register char *cp, *cp1; X- char c, **ap; X- int cc, nbad, abuf[ARGLIST]; X- off_t pos; X- X- if(a->o_args == NULL) X- { X- if((a->o_args = (char *) malloc(64)) == NULL) X- return(1); X- } X- a->o_args[0] = 0; X- stk += ctob((off_t) pp->p_ssize) - ARGLIST*sizeof(int); X- X- /* look for sh special */ X- pos = stk + ARGLIST*sizeof(int) - sizeof (char **); X- if(readat(fd, pos, (char *)&ap, sizeof(char *)) < 0) X- return(1); X- X- if(ap) X- { X- char b[82]; X- char *bp = b; X- while((cp = getptr(ap++, fd)) && cp && (bp < b+sizeof (a->o_args)) ) X- { X- nbad = 0; X- while( (c = getbyte(cp++, fd))&&(bp < b+sizeof (a->o_args))) X- { X- if(c<' ' || c > '~') X- { X- if(nbad++ > 3) X- break; X- continue; X- } X- *bp++ = c; X- } X- *bp++ = ' '; X- } X- *bp++ = 0; X- (void)strcpy(a->o_args, b); X- return(1); X- } X- X- if(readat(fd, stk, (char *) abuf, sizeof (abuf)) < 0) X- return(1); X- X- abuf[ARGLIST-1] = 0; X- for(ip = &abuf[ARGLIST-2]; ip > abuf;) X- { X- if(*--ip == -1 || *ip == 0) X- { X- cp = (char *) (ip + 1); X- if(*cp == '\0') X- cp++; X- nbad = 0; X- for (cp1 = cp; cp1 < (char *) &abuf[ARGLIST]; cp1++) X- { X- cc = *cp1 & 0177; X- if(cc == 0) X- *cp1 = ' '; X- else if(cc < ' ' || cc > 0176) X- { X- if(++nbad >= 5) X- { X- *cp1++ = ' '; X- break; X- } X- *cp1 = '?'; X- } X- else if(cc == '=') X- { X- *cp1 = '\0'; X- while(cp1 > cp && *--cp1 != ' ') X- *cp1 = '\0'; X- break; X- } X- } X- while(*--cp1 == ' ') X- *cp1 = 0; X- X- (void)strcpy(a->o_args, cp); X- garbage: X- cp = a->o_args; X- if(cp[0] == '-'&&cp[1]<=' '||cp[0]=='?'||cp[0]<=' ') X- { X- strcat(cp, " ("); X- strcat(cp, u->u_comm); X- strcat(cp, ")"); X- } X- cp[63] = 0; /* max room in udata_s is 64 chars */ X- if(xflg || gflg || tptr || cp[0] != '-') X- return(1); X- return(0); X- } X- } X- goto garbage; X- } X- X- LOCAL char * X- gettty(ttyp, ttyd) X- struct tty *ttyp; X- dev_t ttyd; X- { X- register int tty_step; X- register char *p = "?"; X- X- if(ttyp == NULL) X- return(p); X- X- for(tty_step = 0;tty_step < nttys; ++tty_step) X- if(ttlist[tty_step].ttyd == ttyd) X- { X- p = ttlist[tty_step].name; X- if(!strncmp(p,"tty",3)) X- p += 3; X- } X- X- return(p); X- } X- /* X- * Save process information to udata_s structure X- */ X- X- LOCAL int fuser(idx, uid) X- int idx; X- short uid; X- { X register struct passwd *pw; X X if((pw = getpwuid(uid)) == NULL) X--- 168,177 ---- X return((read(fd, buff, count) == count)? 1 : -1); X } X X! static int fuser(idx, uid) X! int idx; X! short uid; X { X register struct passwd *pw; X X if((pw = getpwuid(uid)) == NULL) X*************** X*** 400,420 **** X return(1); X } X X! #define round(x,y) ((long) ((((long) (x) + (long) (y) - 1L) / (long) (y)) * (long) (y))) X! X! LOCAL getu(pp, a, noargs) X! struct proc *pp; X! struct udata_s *a; X! char noargs; X { X- char *tp; X off_t addr; X- off_t daddr; X- off_t saddr; X struct user user; /* for reading user structs */ X register struct user *up = &user; X- long txtsiz, datsiz, stksiz; X- int septxt; X int pifile; X int i; X X--- 185,197 ---- X return(1); X } X X! static getu(pp, a) X! struct proc *pp; X! struct udata_s *a; X { X off_t addr; X struct user user; /* for reading user structs */ X register struct user *up = &user; X int pifile; X int i; X X*************** X*** 421,435 **** X if(pp->p_flag & SLOAD) /* in memory */ X { X addr = ctob((off_t) pp->p_addr); X- daddr = ctob((off_t) pp->p_daddr); X- saddr = ctob((off_t) pp->p_saddr); X pifile = mem; X } X else /* swapped */ X { X addr = (off_t)pp->p_addr << 9; X- daddr = (off_t)pp->p_daddr << 9; X- saddr = (off_t)pp->p_saddr << 9; X pifile = swap; X } X X--- 198,208 ---- X*************** X*** 439,471 **** X return(0); X } X X- txtsiz = ctob(up->u_tsize); /* address maps for usr pcs */ X- datsiz = ctob(up->u_dsize); X- stksiz = ctob(up->u_ssize); X- septxt = up->u_sep; X- datmap.b1 = (septxt ? 0 : round(txtsiz, TXTRNDSIZ)); X- datmap.e1 = datmap.b1 + datsiz; X- datmap.f1 = daddr; X- datmap.f2 = saddr; X- datmap.b2 = stackbas(stksiz); X- datmap.e2 = stacktop(stksiz); X- tp = gettty(up->u_ttyp, up->u_ttyd); X- strncpy(a->o_tty, tp, sizeof (a->o_tty)-1); X- a->o_tty[sizeof(a->o_tty)-1] = 0; X- a->o_ttyd = tp[0] == '?' ? -1 : up->u_ttyd; X- X a->o_tsize = 0; X a->o_utime = 0; X a->o_stime = 0; X- a->o_nswap = 0; X- a->o_nvcsw = 0; X- a->o_nicsw = 0; X- #if TIME_CHILD X- a->o_cutime = 0; X- a->o_cstime = 0; X- #endif X a->o_ttime = 0; X- a->o_sigs = 0; X a->o_dtime = 0; X a->o_uname = NULL; X a->o_comm[0] = 0; X--- 212,221 ---- X*************** X*** 476,492 **** X a->o_tsize = up->u_tsize; X a->o_utime = up->u_ru.ru_utime; X a->o_stime = up->u_ru.ru_stime; X- a->o_nswap = up->u_ru.ru_nswap; X- a->o_nvcsw = up->u_ru.ru_nvcsw; X- a->o_nicsw = up->u_ru.ru_nivcsw; X- #if TIME_CHILD X- a->o_cutime = up->u_cru.ru_utime; X- a->o_cstime = up->u_cru.ru_stime; X- a->o_ttime = a->o_utime + a->o_stime + a->o_cutime + a->o_cstime; X- #else X a->o_ttime = a->o_utime + a->o_stime; X- #endif X- a->o_sigs = (int)up->u_signal[SIGINT]+(int)up->u_signal[SIGQUIT]; X if(a->o_LastStat && (pp->p_pid == a->o_LastPid)) X a->o_dtime = a->o_ttime - a->o_LastTime; X else X--- 226,232 ---- X*************** X*** 509,526 **** X a->o_uname = untab[i].uname; X } X X! strncpy(a->o_comm, up->u_comm, MAXCOMLEN-1); X! a->o_comm[MAXCOMLEN-1] = 0; X! X! if(noargs) X! return(1); X! return(getargs(pifile, saddr, pp, a, up)); X } X /* X * Compare function for process sorting X */ X! LOCAL int sortcmp(i1, i2) X! register int *i1, *i2; X { X struct proc *p1, *p2; X struct udata_s *u1, *u2; X--- 249,264 ---- X a->o_uname = untab[i].uname; X } X X! strncpy(a->o_comm, up->u_comm, OCOMMLEN); X! a->o_comm[OCOMMLEN - 1] = 0; X! return(1); X } X+ X /* X * Compare function for process sorting X */ X! static int sortcmp(i1, i2) X! register int *i1, *i2; X { X struct proc *p1, *p2; X struct udata_s *u1, *u2; X*************** X*** 563,572 **** X /* X * Update the process list X */ X! LOCAL int update() X { X int np; X! int i; X X /* X * before over-writing old proc structure, X--- 301,310 ---- X /* X * Update the process list X */ X! static int update() X { X int np; X! register int i; X X /* X * before over-writing old proc structure, X*************** X*** 585,595 **** X } X X /* read the current proc table into buffer */ X! if(readat(kmem, (off_t) proc_sym, proctab, ptsz) < 0) X! { X! fprintf(stderr, "Error reading process table\r\n"); X! return(-1); X! } X X for(np = i = 0; i < nproc; i++) X { X--- 323,329 ---- X } X X /* read the current proc table into buffer */ X! readat(kmem, (off_t) proc_sym, proctab, ptsz); X X for(np = i = 0; i < nproc; i++) X { X*************** X*** 598,609 **** X if(procp->p_stat == 0) X continue; X X! if(getu(procp, &userdata[i], 1) == 0) X! { X! fprintf(stderr, "Error getting process %d uinf\r\n", X! procp->p_pid); X! return(-1); X! } X procidx[np] = i; X np++; X } X--- 332,338 ---- X if(procp->p_stat == 0) X continue; X X! getu(procp, &userdata[i]); X procidx[np] = i; X np++; X } X*************** X*** 610,616 **** X return(np); X } X X! LOCAL char states[] = { '?', 'S', 'W', 'R', 'I', 'Z', 'T' }; X X /* X * Get Memory Statistics for summary lines X--- 339,345 ---- X return(np); X } X X! static char states[] = { '?', 'S', 'W', 'R', 'I', 'Z', 'T' }; X X /* X * Get Memory Statistics for summary lines X*************** X*** 618,626 **** X * totmem - total physical memory in bytes X * freemem - available memory in bytes X */ X! LOCAL int GetMemStats(totmem, freemem) X! unsigned long *totmem; X! unsigned long *freemem; X { X int mib[2]; X size_t size; X--- 347,355 ---- X * totmem - total physical memory in bytes X * freemem - available memory in bytes X */ X! static int GetMemStats(totmem, freemem) X! unsigned long *totmem; X! unsigned long *freemem; X { X int mib[2]; X size_t size; X*************** X*** 637,658 **** X mib[0] = CTL_HW; X mib[1] = HW_PHYSMEM; X size = sizeof(physmem); X! if(sysctl(mib, 2, &physmem, &size, NULL, 0) == -1) X! { X! printw("PHYSMEM: %s\n\n", strerror(errno)); X! return(-1); X! } X mib[0] = CTL_VM; X mib[1] = VM_COREMAP; X! if(sysctl(mib, 2, NULL, &cmsz, NULL, 0) == -1) X! { X! printw("COREMAP: %s\n\n", strerror(errno)); X! return(-1); X! } X if((coremap = (char *)malloc((unsigned)cmsz)) == NULL) X { X perror("COREMAP"); X- printf("\r\n"); X exit(1); X } X memset(coremap, 0, cmsz); X--- 366,379 ---- X mib[0] = CTL_HW; X mib[1] = HW_PHYSMEM; X size = sizeof(physmem); X! sysctl(mib, 2, &physmem, &size, NULL, 0); X! X mib[0] = CTL_VM; X mib[1] = VM_COREMAP; X! sysctl(mib, 2, NULL, &cmsz, NULL, 0); X if((coremap = (char *)malloc((unsigned)cmsz)) == NULL) X { X perror("COREMAP"); X exit(1); X } X memset(coremap, 0, cmsz); X*************** X*** 660,670 **** X mib[0] = CTL_VM; X mib[1] = VM_COREMAP; X size = cmsz; X! if(sysctl(mib, 2, coremap, &size, NULL, 0) == -1) X! { X! printw("COREMAP2: %s\n\n", strerror(errno)); X! return(-1); X! } X X map = (struct mapent *)coremap; X for(tfree = i = 0; i < cmsz / sizeof(struct mapent); i++) X--- 381,387 ---- X mib[0] = CTL_VM; X mib[1] = VM_COREMAP; X size = cmsz; X! sysctl(mib, 2, coremap, &size, NULL, 0); X X map = (struct mapent *)coremap; X for(tfree = i = 0; i < cmsz / sizeof(struct mapent); i++) X*************** X*** 681,697 **** X * freemem - available memory in bytes X */ X X! LOCAL int GetSwapStats(totswap, freeswap) X! unsigned long *totswap; X! unsigned long *freeswap; X { X int mib[2]; X size_t size; X static size_t smsz = 0; X! static unsigned long nswap = 0; X static char *swapmap = NULL; X struct mapent *map; X- unsigned int i; X unsigned long tfree; X X if(nswap == 0) X--- 398,414 ---- X * freemem - available memory in bytes X */ X X! static int GetSwapStats(totswap, freeswap) X! unsigned long *totswap; X! unsigned long *freeswap; X { X+ register int i; X int mib[2]; X size_t size; X static size_t smsz = 0; X! static unsigned int nswap = 0; X static char *swapmap = NULL; X struct mapent *map; X unsigned long tfree; X X if(nswap == 0) X*************** X*** 699,722 **** X /* first call - get static values */ X mib[0] = CTL_VM; X mib[1] = VM_NSWAP; X! size = sizeof(i); X! if(sysctl(mib, 2, &i, &size, NULL, 0) == -1) X! { X! printw("NSWAP: %s\n\n", strerror(errno)); X! return(-1); X! } X! nswap = i; X mib[0] = CTL_VM; X mib[1] = VM_SWAPMAP; X! if(sysctl(mib, 2, NULL, &smsz, NULL, 0) == -1) X! { X! printw("SWAPMAP: %s\n\n", strerror(errno)); X! return(-1); X! } X if((swapmap = (char *)malloc((unsigned)smsz)) == NULL) X { X perror("SWAPMAP"); X- printf("\r\n"); X oom_reset_exit(1); X } X memset(swapmap, 0, smsz); X--- 416,431 ---- X /* first call - get static values */ X mib[0] = CTL_VM; X mib[1] = VM_NSWAP; X! size = sizeof (nswap); X! sysctl(mib, 2, &nswap, &size, NULL, 0); X! X mib[0] = CTL_VM; X mib[1] = VM_SWAPMAP; X! sysctl(mib, 2, NULL, &smsz, NULL, 0); X! X if((swapmap = (char *)malloc((unsigned)smsz)) == NULL) X { X perror("SWAPMAP"); X oom_reset_exit(1); X } X memset(swapmap, 0, smsz); X*************** X*** 724,749 **** X mib[0] = CTL_VM; X mib[1] = VM_SWAPMAP; X size = smsz; X! if(sysctl(mib, 2, swapmap, &size, NULL, 0) == -1) X! { X! printw("SWAPMAP2: %s\n\n", strerror(errno)); X! return(-1); X! } X X map = (struct mapent *)swapmap; X! for(tfree = i = 0; i < smsz / sizeof(struct mapent); i++) X tfree += map[i].m_size; X! *totswap = nswap*512; X! *freeswap = (unsigned long) tfree*512; X return(0); X } X X! /* X! * Show summary stats X! */ X! LOCAL void X show_stats(npr) X! int npr; X { X int i, run, sleep, stop, zombie; X static int calls = 0; X--- 433,451 ---- X mib[0] = CTL_VM; X mib[1] = VM_SWAPMAP; X size = smsz; X! sysctl(mib, 2, swapmap, &size, NULL, 0); X X map = (struct mapent *)swapmap; X! for (tfree = i = 0; i < smsz / sizeof(struct mapent); i++) X tfree += map[i].m_size; X! *totswap = (unsigned long)nswap * 512; X! *freeswap = (unsigned long)tfree * 512; X return(0); X } X X! static void X show_stats(npr) X! int npr; X { X int i, run, sleep, stop, zombie; X static int calls = 0; X*************** X*** 789,807 **** X printw(", %3d user%c", nusers, nusers > 1? 's': '\0'); X X /* load average */ X! if(getloadavg(avenrun, sizeof(avenrun)/sizeof(avenrun[0])) == -1) X! printw(", no load average information available"); X! else X! { X! int i; X! printw(", load average:"); X! for(i = 0; i < (sizeof(avenrun)/sizeof(avenrun[0])); i++) X { X! if(i > 0) X! printw(","); X! printw(" %.2f", avenrun[i]); X } X- } X printw("\n"); X /* process status summary */ X run = sleep = stop = zombie = 0; X--- 491,504 ---- X printw(", %3d user%c", nusers, nusers > 1? 's': '\0'); X X /* load average */ X! getloadavg(avenrun, sizeof(avenrun)/sizeof(avenrun[0])); X! printw(", load average:"); X! for (i = 0; i < 3; i++) X { X! if (i > 0) X! printw(","); X! printw(" %.2f", avenrun[i]); X } X printw("\n"); X /* process status summary */ X run = sleep = stop = zombie = 0; X*************** X*** 816,822 **** X case SIDL: run++; break; X case SZOMB: zombie++; break; X case SSTOP: stop++; break; X- /* case 0: run++; break; /* ?? */ X default: X zombie++; /* shouldn't happen */ X } X--- 513,518 ---- X*************** X*** 844,856 **** X ((float)s_time[2] / etime) * 100., X ((float)s_time[3] / etime) * 100.); X X- /* Memory and Swap status */ X- X if(GetMemStats(&memsize, &memfree) < 0) X return; X if(GetSwapStats(&swapsize, &swapfree) < 0) X return; X- /* 2.11 BSD has static buffer cache so no need to display this */ X printw("Mem : %7.1fK total, %7.1fK free, %7.1fK used (%2ld%%)\n", X memsize/1024.0, memfree/1024.0, (memsize-memfree)/1024.0, X (memsize-memfree)*100L/memsize); X--- 540,549 ---- X*************** X*** 862,876 **** X /* X * show heading information X */ X! LOCAL void X show_titles() X! { X standout(); X printw(" PID USER PR NI TEXT DATA STACK S TIME DTIME COMMAND \n"); X standend(); X! } X X! LOCAL void X show_procs(np, max) X int np; X int max; X--- 555,570 ---- X /* X * show heading information X */ X! static void X show_titles() X! { X! X standout(); X printw(" PID USER PR NI TEXT DATA STACK S TIME DTIME COMMAND \n"); X standend(); X! } X X! static void X show_procs(np, max) X int np; X int max; X*************** X*** 877,885 **** X { X int i; X X- #if 0 X- printf(" nproc=%d witharg=%d hz = %d\n", nproc, np, hz); X- #endif X qsort((char *)procidx, np, sizeof(int), sortcmp); X for(i = 0; i < np; i++) X { X--- 571,576 ---- X*************** X*** 900,925 **** X printw("%5.1fK", (ctob(p->p_ssize))/1024.0); X printw(" %c", (p->p_stat>6)? '?' : states[p->p_stat]); X printw("%c", (p->p_flag & SLOAD)? ' ':'s'); X- X- #if 1 X printw("%8.2f ", a->o_ttime/fhz); X printw("%7.2f ", a->o_dtime/fhz); X- #else X- printw("%8ld ", a->o_ttime); X- printw("%7ld ", a->o_dtime); X- #endif X- #if 0 X- printw(" %2d %2d %2d ", a->o_nswap, a->o_nvcsw, a->o_nicsw); X- printw(" %4d %1d ", a->o_LastPid, a->o_LastStat); X- #endif X if((a->o_comm[0] == 0)&&(p->p_pid == 0)) X printw("%-19s", "[swapper]"); X else X printw("%-19s", a->o_comm); X- #if 1 X if(i >= (max-1)) X break; X- #endif X printw("%s", "\n"); X } X } X--- 591,604 ---- X*************** X*** 930,944 **** X * have elapsed X * returns the key value, -1 on error, or zero if timeout occured X */ X! LOCAL int keypress(usec) X! long usec; X { X struct timeval tv; X fd_set rfds; X X- if(done) X- return('q'); /* signal */ X- X tv.tv_sec = usec / 1000000; X tv.tv_usec = usec % 1000000; X FD_ZERO(&rfds); X--- 609,620 ---- X * have elapsed X * returns the key value, -1 on error, or zero if timeout occured X */ X! static int keypress(usec) X! long usec; X { X struct timeval tv; X fd_set rfds; X X tv.tv_sec = usec / 1000000; X tv.tv_usec = usec % 1000000; X FD_ZERO(&rfds); X*************** X*** 961,972 **** X * returns delay on success X * -1 on invalid delay spec X */ X! LOCAL long GetDelay(ds) X! char *ds; X { X! char *p; X char *dp = NULL; X long delay = 0; X X /*check valid syntax delay spec */ X for(p = ds; *p; p++) X--- 637,649 ---- X * returns delay on success X * -1 on invalid delay spec X */ X! static long GetDelay(ds) X! char *ds; X { X! register char *p; X char *dp = NULL; X long delay = 0; X+ register int dd; X X /*check valid syntax delay spec */ X for(p = ds; *p; p++) X*************** X*** 984,991 **** X /* do conversion */ X if(dp != NULL) /* subseconds specified */ X { X- int dd; /* decimal digits */ X- X *dp++ = 0; X dd = p - dp; X X--- 661,666 ---- X*************** X*** 1002,1008 **** X return(delay); X } X X! LOCAL char *ReadLine() X { X char c; X static char lbuff[50]; X--- 677,683 ---- X return(delay); X } X X! static char *ReadLine() X { X char c; X static char lbuff[50]; X*************** X*** 1038,1054 **** X return(NULL); X } X X- /* X- ********************* Main Program ******************* X- */ X- X #define STATLINES (6) X X! LOCAL int X do_top() X { X! int nread; X! int npr; X X nlist("/unix", nl); X if(nl[0].n_type == 0) X--- 713,725 ---- X return(NULL); X } X X #define STATLINES (6) X X! static int X do_top() X { X! int nread, npr; X! char swapf[20]; X X nlist("/unix", nl); X if(nl[0].n_type == 0) X*************** X*** 1061,1067 **** X * Open files required for obtaining system information: X * /dev/kmem - kernel symbols and proc array X * /dev/mem - incore process user struct and stack X! * /dev/swap - swapped process user struct and stack X */ X if((kmem = open(kmemf, 0)) < 0) X { X--- 732,738 ---- X * Open files required for obtaining system information: X * /dev/kmem - kernel symbols and proc array X * /dev/mem - incore process user struct and stack X! * swap - swapped process user struct and stack X */ X if((kmem = open(kmemf, 0)) < 0) X { X*************** X*** 1073,1078 **** X--- 744,755 ---- X perror(memf); X return(1); X } X+ X+ /* X+ * /dev/ entries are small. /dev/xp0b + null is 10 bytes. if 20 bytes X+ * isn't enough change the entry in /dev and re-run dev_mkdb(8) X+ */ X+ (void)swapdevname(swapf, sizeof (swapf)); X if((swap = open(swapf, 0)) < 0) X { X perror(swapf); X*************** X*** 1079,1135 **** X return(1); X } X X! if(getksyms("/unix") < 0) X! { X! fprintf(stderr, "Can't read kernel symbols - aborting\r\n"); X! return(1); X! } X X! /* find number of procs */ X! X! if(nproc_sym == 0) X! { X! fprintf(stderr, "nproc not in namelist\r\n"); X! return(-1); X! } X! X! if(readat(kmem, (off_t) nproc_sym, (char *)&nproc,sizeof(nproc)) <0) X! { X! perror(kmemf); X! return(-1); X! } X! /* find value of hz */ X! if(readat(kmem, (off_t) hz_sym, (char *)&hz,sizeof(hz)) < 0) X! { X! perror(kmemf); X! return(-1); X! } X fhz = hz * 1.0; X- memset(untab, 0, sizeof(untab)); X- /* X- * allocate an array to hold processess information X- */ X ptsz = nproc * sizeof(struct proc); X X if((proctab = (struct proc *)malloc(ptsz))==NULL) X { X! fprintf(stderr, "top: not enough memory for proc table\r\n"); X oom_reset_exit(1); X } X! /* X! * allocate an array to user struct information X! */ X if((userdata=(struct udata_s *)calloc(nproc, sizeof(struct udata_s)))==NULL) X { X! fprintf(stderr, "top: can't allocate %d bytes for saving info\r\n", nproc*sizeof(struct udata_s)); X oom_reset_exit(1); X } X /* X * allocate an indirection table for efficient sorting X */ X if( (procidx = (int *) malloc(nproc*sizeof(short))) == NULL) X { X! fprintf(stderr, "top: cant allocate index table\r\n"); X oom_reset_exit(1); X } X if((npr = update()) < 0) X--- 756,789 ---- X return(1); X } X X! proc_sym = nl[X_PROC].n_value; X! nproc_sym = nl[X_NPROC].n_value; X! hz_sym = nl[X_HZ].n_value; X X! readat(kmem, (off_t) nproc_sym, (char *)&nproc,sizeof(nproc)); X! readat(kmem, (off_t) hz_sym, (char *)&hz,sizeof(hz)); X! X fhz = hz * 1.0; X ptsz = nproc * sizeof(struct proc); X X if((proctab = (struct proc *)malloc(ptsz))==NULL) X { X! fprintf(stderr, "malloc procs\n"); X oom_reset_exit(1); X } X! X if((userdata=(struct udata_s *)calloc(nproc, sizeof(struct udata_s)))==NULL) X { X! fprintf(stderr, "malloc user\n"); X oom_reset_exit(1); X } X+ X /* X * allocate an indirection table for efficient sorting X */ X if( (procidx = (int *) malloc(nproc*sizeof(short))) == NULL) X { X! fprintf(stderr, "malloc index\n"); X oom_reset_exit(1); X } X if((npr = update()) < 0) X*************** X*** 1234,1247 **** X { X idle = 1-idle; X } X- #if !BADKEY_IGNORE X- X- move(LINES-1,0); X- printw("\nUnexpected command: '%c'", c); X- refresh(); X- return(0); X- /* otherwise invalid key commands just force an update */ X- #endif X } X if((npr = update()) < 0) X return(1); X--- 888,893 ---- X*************** X*** 1257,1276 **** X } X } X X! #if !TTY_RAW X! LOCAL int sighand(sig, code, scp) X! int sig, code; X! struct sigcontext *scp; X { X- done = 1; X- } X- #endif /* TTY_RAW */ X- X- LOCAL void usage(p) X- char *p; X- { X fprintf(stderr, "Usage: %s [opts]\n", p); X- fprintf(stderr, "Where options are\n"); X fprintf(stderr, "\t-h show this summary\n"); X fprintf(stderr, "\t-s delay in seconds between updates\n"); X fprintf(stderr, "\t-o select sort column\n"); X--- 903,912 ---- X } X } X X! static void usage(p) X! char *p; X { X fprintf(stderr, "Usage: %s [opts]\n", p); X fprintf(stderr, "\t-h show this summary\n"); X fprintf(stderr, "\t-s delay in seconds between updates\n"); X fprintf(stderr, "\t-o select sort column\n"); X*************** X*** 1277,1283 **** X fprintf(stderr, "\t-I do not show idle processes\n"); X } X X! EXPORT int main(int argc, char *argv[]) X { X int status = 0; X char ch; X--- 913,919 ---- X fprintf(stderr, "\t-I do not show idle processes\n"); X } X X! int main(int argc, char *argv[]) X { X int status = 0; X char ch; X*************** X*** 1314,1331 **** X argv += optind; X } X X- #if !TTY_RAW X- if( X- (signal(SIGHUP, sighand) == -1) X- || X- (signal(SIGINT, sighand) == -1) X- ) X- { X- perror("signal"); X- exit(1); X- } X- #endif /* TTY_RAW */ X- X gethostname(host, sizeof(host)-1); X host[sizeof(host)-1] = 0; X if (p = strchr(host, '.')) *p = 0; X--- 950,955 ---- X*************** X*** 1337,1343 **** X status = 1; X X config_tty(0); X- if(done) X- fprintf(stdout, "*interrupt*\n"); X return(status); X } X--- 961,965 ---- X*** ./usr/src/ucb/top/Makefile.old Mon Dec 8 15:33:54 2025 X--- ./usr/src/ucb/top/Makefile Sun Jun 14 22:18:15 2026 X*************** X*** 9,23 **** X X all: top ${MAN} X X! top: top.o psdb.o X! cc ${LDFLAGS} -o top top.o psdb.o -lcurses -ltermcap X X! top.o: top.c psdb.h X cc ${CFLAGS} -c top.c X X- psdb.o: psdb.c psdb.h X- cc ${CFLAGS} -c psdb.c X- X top.0: top.1 X /usr/man/manroff ${MANSRC} > ${MAN} X X--- 9,20 ---- X X all: top ${MAN} X X! top: top.o X! cc ${LDFLAGS} -o top top.o -lcurses -ltermcap X X! top.o: top.c X cc ${CFLAGS} -c top.c X X top.0: top.1 X /usr/man/manroff ${MANSRC} > ${MAN} X X*************** X*** 26,29 **** X install -c -o root -g staff -m 444 ${MAN} /usr/man/cat1 X X clean: X! rm -f top.o psdb.o top ${MAN} X--- 23,26 ---- X install -c -o root -g staff -m 444 ${MAN} /usr/man/cat1 X X clean: X! rm -f top.o top ${MAN} X*** ./usr/src/ucb/rwho.c.old Thu Feb 11 10:34:43 1988 X--- ./usr/src/ucb/rwho.c Fri May 8 16:05:48 2026 X*************** X*** 4,23 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)rwho.c 5.2 (Berkeley) 6/18/85"; X! #endif not lint X X #include X #include X #include X #include X X DIR *dirp; X X--- 4,23 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)rwho.c 5.3 (2.11BSD) 2026/5/8"; X! #endif X X #include X #include X #include X #include X+ #include X+ #include X X DIR *dirp; X X*************** X*** 38,44 **** X */ X #define down(w,now) ((now) - (w)->wd_recvtime > 11L * 60L) X X- char *ctime(), *strcpy(); X time_t now; X int aflg; X X--- 38,43 ---- X*************** X*** 143,149 **** X } X X utmpcmp(u1, u2) X! struct myutmp *u1, *u2; X { X int rc; X X--- 142,148 ---- X } X X utmpcmp(u1, u2) X! register struct myutmp *u1, *u2; X { X int rc; X X*** ./usr/src/ucb/finger/finger.c.old Sun Mar 18 10:04:52 1990 X--- ./usr/src/ucb/finger/finger.c Thu Sep 24 06:22:26 2026 X*************** X*** 18,32 **** X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1989 The Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif /* not lint */ X X! #ifndef lint X! static char sccsid[] = "@(#)finger.c 5.19 (Berkeley) 2/7/90"; X! #endif /* not lint */ X X /* X * Finger prints out information about users. It is not portable since X--- 18,30 ---- X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1989 The Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)finger.c 5.20 (2.11BSD) 2026/5/9"; X! #endif X X /* X * Finger prints out information about users. It is not portable since X*************** X*** 44,51 **** X #include X #include X #include X #include "finger.h" X! #include "pathnames.h" X X time_t now; X int lflag, sflag, mflag, pplan; X--- 42,51 ---- X #include X #include X #include X+ #include X+ #include X #include "finger.h" X! #include X X time_t now; X int lflag, sflag, mflag, pplan; X*************** X*** 55,63 **** X int argc; X char **argv; X { X- extern int optind; X int ch; X- time_t time(); X X while ((ch = getopt(argc, argv, "lmps")) != EOF) X switch(ch) { X--- 55,61 ---- X*** ./usr/src/ucb/finger/lprint.c.old Sun Mar 18 10:04:53 1990 X--- ./usr/src/ucb/finger/lprint.c Thu Sep 24 06:23:09 2026 X*************** X*** 18,26 **** X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)lprint.c 5.9 (Berkeley) 2/7/90"; X! #endif /* not lint */ X X #include X #include X--- 18,26 ---- X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)lprint.c 5.10 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include X*************** X*** 30,36 **** X #include X #include X #include "finger.h" X! #include "pathnames.h" X X #define LINE_LEN 80 X #define TAB_LEN 8 /* 8 spaces between tabs */ X--- 30,36 ---- X #include X #include X #include "finger.h" X! #include X X #define LINE_LEN 80 X #define TAB_LEN 8 /* 8 spaces between tabs */ X*** ./usr/src/ucb/finger/net.c.old Sun Mar 18 10:04:53 1990 X--- ./usr/src/ucb/finger/net.c Sat May 9 15:00:00 2026 X*************** X*** 18,33 **** X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)net.c 5.4 (Berkeley) 2/21/90"; X! #endif /* not lint */ X X #include X #include X #include X #include X #include X #include X X netfinger(name) X char *name; X--- 18,35 ---- X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)net.c 5.5 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include X #include X+ #include X #include X #include X #include X+ #include X X netfinger(name) X char *name; X*************** X*** 40,47 **** X struct servent *sp; X struct sockaddr_in sin; X int s; X! char *alist[1], *host, *rindex(); X! u_long inet_addr(); X X if (!(host = rindex(name, '@'))) X return; X--- 42,48 ---- X struct servent *sp; X struct sockaddr_in sin; X int s; X! char *alist[1], *host; X X if (!(host = rindex(name, '@'))) X return; X*** ./usr/src/ucb/finger/sprint.c.old Sun Mar 18 10:04:54 1990 X--- ./usr/src/ucb/finger/sprint.c Sat May 9 15:01:19 2026 X*************** X*** 18,31 **** X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)sprint.c 5.6 (Berkeley) 2/7/90"; X! #endif /* not lint */ X X #include X! #include X #include X #include X #include "finger.h" X X extern int entries; X--- 18,32 ---- X * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)sprint.c 5.7 (2.11BSD) 2026/5/9"; X! #endif X X #include X! #include X #include X #include X+ #include X #include "finger.h" X X extern int entries; X*************** X*** 38,45 **** X register int cnt; X register char *p; X PERSON **list, **sort(); X! time_t time(); X! char *ctime(), *prphone(); X X list = sort(); X /* X--- 39,45 ---- X register int cnt; X register char *p; X PERSON **list, **sort(); X! char *prphone(); X X list = sort(); X /* X*************** X*** 105,111 **** X register PERSON *pn, **lp; X PERSON **list; X int psort(); X- char *malloc(); X X if (!(list = (PERSON **)malloc((u_int)(entries * sizeof(PERSON *))))) { X (void)fprintf(stderr, "finger: out of space.\n"); X--- 105,110 ---- X*** ./usr/src/ucb/finger/util.c.old Fri Jan 12 22:44:30 1996 X--- ./usr/src/ucb/finger/util.c Thu Sep 24 06:23:34 2026 X*************** X*** 19,26 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)util.c 5.8.1 (2.11BSD) 1996/1/12"; X! #endif /* not lint */ X X #include X #include X--- 19,26 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)util.c 5.8.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include X*************** X*** 27,42 **** X #include X #include X #include X #include X #include X #include "finger.h" X! #include "pathnames.h" X X find_idle_and_ttywrite(w) X register WHERE *w; X { X extern time_t now; X- extern int errno; X struct stat sb; X X (void)sprintf(tbuf, "%s/%s", _PATH_DEV, w->tty); X--- 27,43 ---- X #include X #include X #include X+ #include X #include X+ #include X #include X #include "finger.h" X! #include X X find_idle_and_ttywrite(w) X register WHERE *w; X { X extern time_t now; X struct stat sb; X X (void)sprintf(tbuf, "%s/%s", _PATH_DEV, w->tty); X*************** X*** 127,133 **** X static int opened, fd; X struct lastlog ll; X char doit = 0; X- off_t lseek(); X X /* some systems may not maintain lastlog, don't report errors. */ X if (!opened) { X--- 128,133 ---- X*** ./usr/src/ucb/script.c.old Sat Sep 5 11:58:42 1987 X--- ./usr/src/ucb/script.c Mon Sep 21 22:59:02 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)script.c 5.4 (Berkeley) 11/13/85"; X! #endif not lint X X /* X * script X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)script.c 5.5 (2.11BSD) 2026/5/8"; X! #endif X X /* X * script X*************** X*** 19,34 **** X */ X #include X #include X! #include X #include X- #include X #include X- #include X- #include X X- char *getenv(); X- time_t time(); X- char *ctime(); X char *shell; X FILE *fscript; X int master; X--- 17,29 ---- X */ X #include X #include X! #include X! #include X! #include X! #include X #include X #include X X char *shell; X FILE *fscript; X int master; X*************** X*** 36,42 **** X int child; X int subchild; X char *fname = "typescript"; X! int finish(); X X struct sgttyb b; X struct tchars tc; X--- 31,37 ---- X int child; X int subchild; X char *fname = "typescript"; X! void finish(); X X struct sgttyb b; X struct tchars tc; X*************** X*** 113,118 **** X--- 108,114 ---- X X #include X X+ void X finish() X { X union wait status; X*** ./usr/src/ucb/vmstat.c.old Fri Sep 20 14:08:33 2024 X--- ./usr/src/ucb/vmstat.c Mon Sep 21 23:03:20 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)vmstat.c 5.5 (2.11BSD) 2024/9/20"; X #endif X X #include X--- 9,15 ---- X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)vmstat.c 5.5 (2.11BSD) 2026/2/6"; X #endif X X #include X*************** X*** 24,35 **** X #include X #include X #include X- #ifdef pdp11 X #include X #include X #define UCB_METER X #include X- #endif X X struct nlist nl[] = { X #define X_CPTIME 0 X--- 24,33 ---- X*************** X*** 38,163 **** X { "_rate" }, X #define X_TOTAL 2 X { "_total" }, X! #define X_DEFICIT 3 X! { "_deficit" }, X! #define X_FORKSTAT 4 X { "_forkstat" }, X! #define X_SUM 5 X { "_sum" }, X! #define X_FIRSTFREE 6 X! { "_firstfree" }, X! #define X_MAXFREE 7 X! { "_maxfree" }, X! #define X_BOOTTIME 8 X { "_boottime" }, X! #define X_DKXFER 9 X { "_dk_xfer" }, X! #define X_REC 10 X! { "_rectime" }, X! #define X_PGIN 11 X! { "_pgintime" }, X! #define X_HZ 12 X { "_hz" }, X! #define X_PHZ 13 X! { "_phz" }, X! #define X_NCHSTATS 14 X { "_nchstats" }, X! #define X_INTRNAMES 15 X! { "_intrnames" }, X! #define X_EINTRNAMES 16 X! { "_eintrnames" }, X! #define X_INTRCNT 17 X! { "_intrcnt" }, X! #define X_EINTRCNT 18 X! { "_eintrcnt" }, X! #define X_DK_NDRIVE 19 X { "_dk_ndrive" }, X! #define X_XSTATS 20 X { "_xstats" }, X! #ifdef pdp11 X! #define X_DK_NAME 21 X { "_dk_name" }, X! #define X_DK_UNIT 22 X { "_dk_unit" }, X! #define X_FREEMEM 23 X { "_freemem" }, X! #define X_UBMETER 24 X { "_ub_meter" }, X- #else X- #define X_MBDINIT 21 X- { "_mbdinit" }, X- #define X_UBDINIT 22 X- { "_ubdinit" }, X- #endif X { "" }, X }; X X- #ifdef pdp11 X char **dk_name; X int *dk_unit; X struct xstats pxstats, cxstats; X size_t pfree; X int flag29; X! #endif X char **dr_name; X int *dr_select; X int dk_ndrive; X int ndrives = 0; X- #ifdef pdp11 X char *defdrives[] = { "rp0", 0 }; X- #else X- char *defdrives[] = { "hp0", "hp1", "hp2", 0 }; X- #endif X double stat1(); X- int firstfree, maxfree; X int hz; X- int phz; X- int HZ; X X! #if defined(vax) || defined(pdp11) X! #define INTS(x) ((x) - (hz + phz) < 0 ? 0 : (x) - (hz + phz)) X! #endif X X struct { X int busy; X long time[CPUSTATES]; X long *xfer; X- #ifdef pdp11 X struct vmrate Rate; X struct vmtotal Total; X struct vmsum Sum; X- #else X- struct vmmeter Rate; X- struct vmtotal Total; X- struct vmmeter Sum; X- #endif X struct forkstat Forkstat; X unsigned rectime; X unsigned pgintime; X! } s, s1, z; X #define rate s.Rate X #define total s.Total X #define sum s.Sum X #define forkstat s.Forkstat X X- #ifdef pdp11 X struct vmsum osum; X- #else X- struct vmmeter osum; X- #endif X- int deficit; X double etime; X int mf; X time_t now, boottime; X! int printhdr(); X int lines = 1; X- extern char *calloc(); X X main(argc, argv) X int argc; X char **argv; X { X- extern char *ctime(); X register i; X int iter, iflag = 0; X long nintv, t; X--- 36,111 ---- X { "_rate" }, X #define X_TOTAL 2 X { "_total" }, X! #define X_FORKSTAT 3 X { "_forkstat" }, X! #define X_SUM 4 X { "_sum" }, X! #define X_BOOTTIME 5 X { "_boottime" }, X! #define X_DKXFER 6 X { "_dk_xfer" }, X! #define X_HZ 7 X { "_hz" }, X! #define X_NCHSTATS 8 X { "_nchstats" }, X! #define X_DK_NDRIVE 9 X { "_dk_ndrive" }, X! #define X_XSTATS 10 X { "_xstats" }, X! #define X_DK_NAME 11 X { "_dk_name" }, X! #define X_DK_UNIT 12 X { "_dk_unit" }, X! #define X_FREEMEM 13 X { "_freemem" }, X! #define X_UBMETER 14 X { "_ub_meter" }, X { "" }, X }; X X char **dk_name; X int *dk_unit; X struct xstats pxstats, cxstats; X size_t pfree; X int flag29; X! X char **dr_name; X int *dr_select; X int dk_ndrive; X int ndrives = 0; X char *defdrives[] = { "rp0", 0 }; X double stat1(); X int hz; X X! #define INTS(x) ((x) - (hz) < 0 ? 0 : (x) - (hz)) X X struct { X int busy; X long time[CPUSTATES]; X long *xfer; X struct vmrate Rate; X struct vmtotal Total; X struct vmsum Sum; X struct forkstat Forkstat; X unsigned rectime; X unsigned pgintime; X! } s, s1; X #define rate s.Rate X #define total s.Total X #define sum s.Sum X #define forkstat s.Forkstat X X struct vmsum osum; X double etime; X int mf; X time_t now, boottime; X! void printhdr(); X int lines = 1; X X main(argc, argv) X int argc; X char **argv; X { X register i; X int iter, iflag = 0; X long nintv, t; X*************** X*** 179,196 **** X char *cp = *argv++; X argc--; X while (*++cp) switch (*cp) { X- X- case 't': X- dotimes(); X- exit(0); X- X- case 'z': X- close(mf); X- mf = open("/dev/kmem", 2); X- lseek(mf, (long)nl[X_SUM].n_value, L_SET); X- write(mf, &z.Sum, sizeof z.Sum); X- exit(0); X- X case 'f': X doforkst(); X exit(0); X--- 127,132 ---- X*************** X*** 199,234 **** X dosum(); X exit(0); X X- case 'i': X- iflag++; X- break; X- #ifdef pdp11 X case 'p': X flag29++; X break; X- #endif X- X default: X fprintf(stderr, X! "usage: vmstat [ -fsip ] [ drives ] [ interval ] [ count]\n"); X exit(1); X } X } X- #ifndef pdp11 X- lseek(mf, (long)nl[X_FIRSTFREE].n_value, L_SET); X- read(mf, &firstfree, sizeof firstfree); X- lseek(mf, (long)nl[X_MAXFREE].n_value, L_SET); X- read(mf, &maxfree, sizeof maxfree); X- #endif X lseek(mf, (long)nl[X_BOOTTIME].n_value, L_SET); X read(mf, &boottime, sizeof boottime); X lseek(mf, (long)nl[X_HZ].n_value, L_SET); X read(mf, &hz, sizeof hz); X! if (nl[X_PHZ].n_value != 0) { X! lseek(mf, (long)nl[X_PHZ].n_value, L_SET); X! read(mf, &phz, sizeof phz); X! } X! HZ = phz ? phz : hz; X if (nl[X_DK_NDRIVE].n_value == 0) { X fprintf(stderr, "dk_ndrive undefined in system\n"); X exit(1); X--- 135,154 ---- X dosum(); X exit(0); X X case 'p': X flag29++; X break; X default: X fprintf(stderr, X! "usage: vmstat [ -fsp ] [ drives ] [ interval ] [ count]\n"); X exit(1); X } X } X lseek(mf, (long)nl[X_BOOTTIME].n_value, L_SET); X read(mf, &boottime, sizeof boottime); X lseek(mf, (long)nl[X_HZ].n_value, L_SET); X read(mf, &hz, sizeof hz); X! X if (nl[X_DK_NDRIVE].n_value == 0) { X fprintf(stderr, "dk_ndrive undefined in system\n"); X exit(1); X*************** X*** 260,269 **** X "Time makes no sense... namelist must be wrong.\n"); X exit(1); X } X! if (iflag) { X! dointr(nintv); X! exit(0); X! } X /* X * Choose drives to be displayed. Priority X * goes to (in order) drives supplied as arguments, X--- 180,186 ---- X "Time makes no sense... namelist must be wrong.\n"); X exit(1); X } X! X /* X * Choose drives to be displayed. Priority X * goes to (in order) drives supplied as arguments, X*************** X*** 297,307 **** X dr_select[i] = 1; X ndrives++; X } X- #ifdef pdp11 X /* handle initial retrieval of the xstats structure */ X lseek(mf, (long)nl[X_XSTATS].n_value, L_SET); X read(mf, &cxstats, sizeof(cxstats)); X! #endif X if (argc > 1) X iter = atoi(argv[1]); X signal(SIGCONT, printhdr); X--- 214,223 ---- X dr_select[i] = 1; X ndrives++; X } X /* handle initial retrieval of the xstats structure */ X lseek(mf, (long)nl[X_XSTATS].n_value, L_SET); X read(mf, &cxstats, sizeof(cxstats)); X! X if (argc > 1) X iter = atoi(argv[1]); X signal(SIGCONT, printhdr); X*************** X*** 312,318 **** X read(mf, s.time, sizeof s.time); X lseek(mf, (long)nl[X_DKXFER].n_value, L_SET); X read(mf, s.xfer, dk_ndrive * sizeof (long)); X- #ifdef pdp11 X /* X * This would be a whole lot easier if the variables in each X * were all longs... X--- 228,233 ---- X*************** X*** 342,361 **** X read(mf, &cxstats, sizeof(cxstats)); X lseek(mf, (long)nl[X_FREEMEM].n_value, L_SET); X read(mf, &pfree, sizeof(pfree)); X- #else X- if (nintv != 1) X- lseek(mf, (long)nl[X_SUM].n_value, L_SET); X- else X- lseek(mf, (long)nl[X_RATE].n_value, L_SET); X- read(mf, &rate, sizeof rate); X- #endif X lseek(mf, (long)nl[X_TOTAL].n_value, L_SET); X read(mf, &total, sizeof total); X osum = sum; X lseek(mf, (long)nl[X_SUM].n_value, L_SET); X read(mf, &sum, sizeof sum); X- lseek(mf, (long)nl[X_DEFICIT].n_value, L_SET); X- read(mf, &deficit, sizeof deficit); X etime = 0; X for (i=0; i < dk_ndrive; i++) { X t = s.xfer[i]; X--- 257,267 ---- X*************** X*** 370,376 **** X } X if(etime == 0.) X etime = 1.; X- #ifdef pdp11 X printf("%2d%2d%2d", total.t_rq, total.t_dw, total.t_sw); X /* X * We don't use total.t_free because it slops around too much X--- 276,281 ---- X*************** X*** 381,392 **** X printf("%4D", X total.t_avm ? (total.t_avmtxt * 100) / total.t_avm : 0); X printf("%6d", ctok(pfree)); X! #else X! printf("%2d%2d%2d", total.t_rq, total.t_dw+total.t_pw, total.t_sw); X! #define pgtok(a) ((a)*NBPG/1024) X! printf("%6d%6d", pgtok(total.t_avm), pgtok(total.t_free)); X! #endif X! #ifdef pdp11 X if (flag29) X printf("%4D%3D ", rate.v_swpin / nintv, rate.v_swpout / nintv); X else { X--- 286,292 ---- X printf("%4D", X total.t_avm ? (total.t_avmtxt * 100) / total.t_avm : 0); X printf("%6d", ctok(pfree)); X! X if (flag29) X printf("%4D%3D ", rate.v_swpin / nintv, rate.v_swpout / nintv); X else { X*************** X*** 399,416 **** X printf("%4D", (cxstats.free_cache - pxstats.free_cache) / nintv); X printf("%4D", rate.v_ovly / nintv); X } X! #else X! printf("%4d%3d", (rate.v_pgrec - (rate.v_xsfrec+rate.v_xifrec))/nintv, X! (rate.v_xsfrec+rate.v_xifrec)/nintv); X! printf("%4d", pgtok(rate.v_pgpgin)/nintv); X! printf("%4d%4d%4d%4d", pgtok(rate.v_pgpgout)/nintv, X! pgtok(rate.v_dfree)/nintv, pgtok(deficit), rate.v_scan/nintv); X! #endif X! etime /= (float)HZ; X for (i = 0; i < dk_ndrive; i++) X if (dr_select[i]) X stats(i); X- #ifdef pdp11 X if (flag29) X printf("%4D%4D%4D%4D%4D%4D", X rate.v_pdma / nintv, INTS(rate.v_intr / nintv), X--- 299,309 ---- X printf("%4D", (cxstats.free_cache - pxstats.free_cache) / nintv); X printf("%4D", rate.v_ovly / nintv); X } X! X! etime /= (float)hz; X for (i = 0; i < dk_ndrive; i++) X if (dr_select[i]) X stats(i); X if (flag29) X printf("%4D%4D%4D%4D%4D%4D", X rate.v_pdma / nintv, INTS(rate.v_intr / nintv), X*************** X*** 417,430 **** X rate.v_syscall / nintv, rate.v_trap / nintv, X rate.v_ovly / nintv, rate.v_swtch / nintv); X else X! #endif X! printf("%4D%4D%4D", INTS(rate.v_intr/nintv), rate.v_syscall/nintv, X! rate.v_swtch/nintv); X for(i=0; i X- #include X- #endif X- X read_names() X { X- #ifdef pdp11 X char two_char[2]; X register int i; X X--- 461,472 ---- X*************** X*** 694,737 **** X sprintf(dr_name[i], "%c%c%d", two_char[0], two_char[1], X dk_unit[i]); X } X- #else X- #ifdef vax X- struct mba_device mdev; X- register struct mba_device *mp; X- struct mba_driver mdrv; X- short two_char; X- char *cp = (char *) &two_char; X- struct uba_device udev, *up; X- struct uba_driver udrv; X- X- mp = (struct mba_device *) nl[X_MBDINIT].n_value; X- up = (struct uba_device *) nl[X_UBDINIT].n_value; X- if (up == 0) { X- fprintf(stderr, "vmstat: Disk init info not in namelist\n"); X- exit(1); X- } X- if (mp) for (;;) { X- steal(mp++, mdev); X- if (mdev.mi_driver == 0) X- break; X- if (mdev.mi_dk < 0 || mdev.mi_alive == 0) X- continue; X- steal(mdev.mi_driver, mdrv); X- steal(mdrv.md_dname, two_char); X- sprintf(dr_name[mdev.mi_dk], "%c%c%d", X- cp[0], cp[1], mdev.mi_unit); X- } X- for (;;) { X- steal(up++, udev); X- if (udev.ui_driver == 0) X- break; X- if (udev.ui_dk < 0 || udev.ui_alive == 0) X- continue; X- steal(udev.ui_driver, udrv); X- steal(udrv.ud_dname, two_char); X- sprintf(dr_name[udev.ui_dk], "%c%c%d", X- cp[0], cp[1], udev.ui_unit); X- } X- #endif vax X- #endif /* pdp11 */ X } X--- 481,484 ---- X*** ./usr/src/ucb/symorder.c.old Sat Jan 22 19:30:38 1994 X--- ./usr/src/ucb/symorder.c Mon Sep 21 16:07:36 2026 X*************** X*** 1,11 **** X /* X * Program Name: symorder.c X! * Date: January 21, 1994 X * Author: S.M. Schultz X * X * ----------------- Modification History --------------- X * Version Date Reason For Modification X! * 1.0 21Jan94 1. Initial release into the public domain. X */ X X /* X--- 1,12 ---- X /* X * Program Name: symorder.c X! * Date: March 25, 2026 X * Author: S.M. Schultz X * X * ----------------- Modification History --------------- X * Version Date Reason For Modification X! * 1.0 21Jan1994 1. Initial release into the public domain. X! * 1.1 24Mar2026 2. Cleanup and add note usage note. X */ X X /* X*************** X*** 19,24 **** X--- 20,28 ---- X * removes redundant strings, significantly reducing the amount of memory X * needed. Running 'symcompact' will reduce the run time needed by X * this program by eliminating redundant non-overlaid text symbols. X+ * X+ * NOTE: This program will undo some of strcompact's work. So run this X+ * program after symcompact and before strcompact. X */ X X #include X*************** X*** 32,42 **** X #define NUMSYMS 125 X char *order[NUMSYMS]; X int nsorted; X- char *Pgm; X void cleanup(); X static char sym1tmp[20], sym2tmp[20], strtmp[20]; X static char *strtab, *oldname; X X main(argc, argv) X int argc; X char **argv; X--- 36,47 ---- X #define NUMSYMS 125 X char *order[NUMSYMS]; X int nsorted; X void cleanup(); X static char sym1tmp[20], sym2tmp[20], strtmp[20]; X static char *strtab, *oldname; X X+ extern char *__progname; X+ X main(argc, argv) X int argc; X char **argv; X*************** X*** 49,56 **** X struct nlist sym; X struct xexec xhdr; X X- Pgm = argv[0]; X- X signal(SIGQUIT, cleanup); X signal(SIGINT, cleanup); X signal(SIGHUP, cleanup); X--- 54,59 ---- X*************** X*** 57,69 **** X X if (argc != 3) X { X! fprintf(stderr, "usage %s: symlist file\n", Pgm); X exit(EX_USAGE); X } X fp = fopen(argv[2], "r+"); X if (!fp) X { X! fprintf(stderr, "%s: can't open '%s' for update\n", Pgm, X argv[2]); X exit(EX_NOINPUT); X } X--- 60,72 ---- X X if (argc != 3) X { X! fprintf(stderr, "usage %s: symlist file\n", __progname); X exit(EX_USAGE); X } X fp = fopen(argv[2], "r+"); X if (!fp) X { X! fprintf(stderr, "%s: can't open '%s' for update\n", __progname, X argv[2]); X exit(EX_NOINPUT); X } X*************** X*** 71,88 **** X cnt = fread(&xhdr, 1, sizeof (xhdr), fp); X if (cnt < sizeof (xhdr.e)) X { X! fprintf(stderr, "%s: Premature EOF reading header\n", Pgm); X exit(EX_DATAERR); X } X if (N_BADMAG(xhdr.e)) X { X! fprintf(stderr, "%s: Bad magic number\n", Pgm); X exit(EX_DATAERR); X } X nsyms = xhdr.e.a_syms / sizeof (struct nlist); X if (!nsyms) X { X! fprintf(stderr, "%s: '%s' stripped\n", Pgm); X exit(EX_OK); X } X stroff = N_STROFF(xhdr); X--- 74,91 ---- X cnt = fread(&xhdr, 1, sizeof (xhdr), fp); X if (cnt < sizeof (xhdr.e)) X { X! fprintf(stderr, "%s: Premature EOF reading header\n", __progname); X exit(EX_DATAERR); X } X if (N_BADMAG(xhdr.e)) X { X! fprintf(stderr, "%s: Bad magic number\n", __progname); X exit(EX_DATAERR); X } X nsyms = xhdr.e.a_syms / sizeof (struct nlist); X if (!nsyms) X { X! fprintf(stderr, "%s: '%s' stripped\n", __progname); X exit(EX_OK); X } X stroff = N_STROFF(xhdr); X*************** X*** 96,108 **** X fread(&strsiz, sizeof (long), 1, fp); X if (strsiz > 48 * 1024L) X { X! fprintf(stderr, "%s: string table > 48kb\n", Pgm); X exit(EX_DATAERR); X } X strtab = (char *)malloc((int)strsiz); X if (!strtab) X { X! fprintf(stderr, "%s: no memory for strings\n", Pgm); X exit(EX_OSERR); X } X /* X--- 99,111 ---- X fread(&strsiz, sizeof (long), 1, fp); X if (strsiz > 48 * 1024L) X { X! fprintf(stderr, "%s: string table > 48kb\n", __progname); X exit(EX_DATAERR); X } X strtab = (char *)malloc((int)strsiz); X if (!strtab) X { X! fprintf(stderr, "%s: no memory for strings\n", __progname); X exit(EX_OSERR); X } X /* X*************** X*** 114,120 **** X cnt = fread(strtab + sizeof (long), 1, (int)strsiz - sizeof (long), fp); X if (cnt != (int)strsiz - sizeof (long)) X { X! fprintf(stderr, "%s: Premature EOF reading strings\n", Pgm); X exit(EX_DATAERR); X } X /* X--- 117,123 ---- X cnt = fread(strtab + sizeof (long), 1, (int)strsiz - sizeof (long), fp); X if (cnt != (int)strsiz - sizeof (long)) X { X! fprintf(stderr, "%s: Premature EOF reading strings\n", __progname); X exit(EX_DATAERR); X } X /* X*************** X*** 124,130 **** X fp2 = fopen(argv[1], "r"); X if (!fp2) X { X! fprintf(stderr, "%s: Can not open '%s'\n", Pgm, argv[1]); X exit(EX_NOINPUT); X } X getsyms(fp2); X--- 127,133 ---- X fp2 = fopen(argv[1], "r"); X if (!fp2) X { X! fprintf(stderr, "%s: Can not open '%s'\n", __progname, argv[1]); X exit(EX_NOINPUT); X } X getsyms(fp2); X*************** X*** 154,179 **** X /* X * Now position the executable to the start of the symbol table. For each X * symbol scan the list for a match on the symbol name. If the X! * name matches write the symbol table entry to one tmp file, else write it X! * to the second symbol tmp file. X! * X! * NOTE: Since the symbol table is being rearranged the usefulness of X! * "local" symbols, especially 'register' symbols, is greatly diminished X! * Not that they are terribly useful in any event - especially the register X! * symbols, 'adb' claims to do something with them but doesn't. In any X! * event this suite of programs is targeted at the kernel and the register X! * local symbols are of no use. For this reason 'register' symbols are X! * removed - this has the side effect of even further reducing the symbol X! * and string tables that must be processed by 'nm', 'ps', 'adb' and so on. X! * This removal probably should have been done earlier - in 'strcompact' or X! * 'symcompact' and it may be in the future, but for now just do it here. X */ X fseek(fp, symoff, L_SET); X while (nsyms--) X { X fread(&sym, sizeof (sym), 1, fp); X- if (sym.n_type == N_REG) X- continue; X if (inlist(&sym)) X fwrite(&sym, sizeof (sym), 1, sym1fp); X else X--- 157,169 ---- X /* X * Now position the executable to the start of the symbol table. For each X * symbol scan the list for a match on the symbol name. If the X! * name matches write the symbol table entry to the first symbol tmp file, X! * else write it to the second symbol tmp file. X */ X fseek(fp, symoff, L_SET); X while (nsyms--) X { X fread(&sym, sizeof (sym), 1, fp); X if (inlist(&sym)) X fwrite(&sym, sizeof (sym), 1, sym1fp); X else X*************** X*** 268,274 **** X if (nsorted >= NUMSYMS) X { X fprintf(stderr, "%s: only doing %d symbols\n", X! Pgm, NUMSYMS); X break; X } X for (t = asym; isspace(*t); ++t) X--- 258,264 ---- X if (nsorted >= NUMSYMS) X { X fprintf(stderr, "%s: only doing %d symbols\n", X! __progname, NUMSYMS); X break; X } X for (t = asym; isspace(*t); ++t) X*** ./usr/src/ucb/symcompact.c.old Sat Feb 12 02:41:26 1994 X--- ./usr/src/ucb/symcompact.c Mon Sep 21 16:05:56 2026 X*************** X*** 1,12 **** X /* X * Program Name: symcompact.c X! * Date: January 21, 1994 X * Author: S.M. Schultz X * X * ----------------- Modification History --------------- X * Version Date Reason For Modification X! * 1.0 21Jan94 1. Initial release into the public domain. X! * 1.1 11Feb94 2. Remove register symbols to save memory. X */ X X /* X--- 1,13 ---- X /* X * Program Name: symcompact.c X! * Date: March 24, 2026 X * Author: S.M. Schultz X * X * ----------------- Modification History --------------- X * Version Date Reason For Modification X! * 1.0 21Jan1994 1. Initial release into the public domain. X! * 1.1 11Feb1994 2. Remove register symbols to save memory. X! * 2.0 24Mar2026 3. Rewrite to use libvmf to hold symbol table. X */ X X /* X*************** X*** 20,38 **** X * number of symbols greatly speeds up 'nlist' processing as well as X * cutting down memory requirements for programs such as 'adb' and 'nm'. X * X! * NOTE: This program attempts to hold both the string and symbol tables X! * in memory. For the kernel which has not been 'strcompact'd this X! * amounts to about 49kb. IF this program runs out of memory you should X! * run 'strcompact' first - that program removes redundant strings, X! * significantly reducing the amount of memory needed. Alas, this program X! * will undo some of strcompact's work and you may/will need to run X! * strcompact once more after removing excess symbols. X * X! * Register symbols are removed to save memory. This program was initially X! * used with a smaller kernel, adding an additional driver caused the symbol X! * table to grow enough that memory couldn't be allocated for strings. See X! * the comments in 'symorder.c' - they explain why register variables are X! * no big loss. X */ X X #include X--- 21,37 ---- X * number of symbols greatly speeds up 'nlist' processing as well as X * cutting down memory requirements for programs such as 'adb' and 'nm'. X * X! * NOTE: This program holds the string table in memory and uses vmf routines X! * with 12 segments (12KB) for the symbol table. More than 12 makes no speed X! * difference and reduces the string table size that can be handled. X * X! * register symbols (N_REG) are removed. See comments in 'symorder.c' for the X! * the explaination. X! * X! * filename symbols (N_FN) are removed. There were exactly 3 uses of N_FN in X! * the system: ld generates them, nm lists them, and adb ignores them. Now X! * there are 4 uses as symcompact.c will also ignore N_FN symbols. X! * X */ X X #include X*************** X*** 42,99 **** X #include X #include X #include X X! char *Pgm; X! static char strtmp[20]; X X main(argc, argv) X int argc; X char **argv; X { X! FILE *fp, *strfp; X! int cnt, nsyms, len, c, symsremoved = 0, i; X! void cleanup(); X! char *strtab; X! char fbuf1[BUFSIZ], fbuf2[BUFSIZ]; X! off_t symoff, stroff, ltmp; X! long strsiz; X register struct nlist *sp, *sp2; X! struct nlist *symtab, *symtabend, syment; X! struct xexec xhdr; X X- Pgm = argv[0]; X signal(SIGQUIT, cleanup); X signal(SIGINT, cleanup); X signal(SIGHUP, cleanup); X X if (argc != 2) X { X! fprintf(stderr, "%s: filename argument missing\n", Pgm); X exit(EX_USAGE); X } X fp = fopen(argv[1], "r+"); X if (!fp) X { X! fprintf(stderr, "%s: can't open '%s' for update\n", Pgm, X argv[1]); X exit(EX_NOINPUT); X } X setbuf(fp, fbuf1); X cnt = fread(&xhdr, 1, sizeof (xhdr), fp); X if (cnt < sizeof (xhdr.e)) X { X! fprintf(stderr, "%s: Premature EOF reading header\n", Pgm); X exit(EX_DATAERR); X } X if (N_BADMAG(xhdr.e)) X { X! fprintf(stderr, "%s: Bad magic number\n", Pgm); X exit(EX_DATAERR); X } X! nsyms = xhdr.e.a_syms / sizeof (struct nlist); X! if (!nsyms) X { X! fprintf(stderr, "%s: '%s' stripped\n", Pgm); X exit(EX_OK); X } X stroff = N_STROFF(xhdr); X--- 41,125 ---- X #include X #include X #include X+ #include X X! extern char *__progname; X X+ /* X+ * Compute a symbol's virtual address from its index number. X+ */ X+ X+ #define SYMSPERSEG (BYTESPERSEG / sizeof (struct nlist)) X+ #define sym2va(x) (((x % SYMSPERSEG) * sizeof (struct nlist)) + ((long) (x / SYMSPERSEG) << LOG2BPS)) X+ X+ void cleanup(); X+ X+ struct vspace Vspace; /* Virtual address space for symbol table */ X+ X+ VADDR vsym, vsym2; X+ FILE *fp, *strfp; X+ off_t symoff, stroff, ltmp; X+ u_short maxsymno, i2; X+ char *strtab, strtmp[20]; X+ int segmapped, segmapped2, vsg; X+ int cnt, esyms, osyms, nsyms, len, symsremoved = 0; X+ long strsiz; X+ struct nlist syment; X+ struct xexec xhdr; X+ struct vseg *seg, *seg2; X+ X main(argc, argv) X int argc; X char **argv; X { X! register u_short i; X register struct nlist *sp, *sp2; X! char fbuf1[BUFSIZ], fbuf2[BUFSIZ]; X X signal(SIGQUIT, cleanup); X signal(SIGINT, cleanup); X signal(SIGHUP, cleanup); X X+ if (vminit(12) < 0) X+ { X+ fprintf(stderr, "%s: vminit failed\n", __progname); X+ exit(EX_OSERR); X+ } X+ if (vmopen(&Vspace, (char *)NULL) < 0) X+ { X+ fprintf(stderr, "%s: vmopen failed\n", __progname); X+ exit(EX_OSERR); X+ } X+ X if (argc != 2) X { X! fprintf(stderr, "%s: filename argument missing\n", __progname); X exit(EX_USAGE); X } X fp = fopen(argv[1], "r+"); X if (!fp) X { X! fprintf(stderr, "%s: can't open '%s' for update\n", __progname, X argv[1]); X exit(EX_NOINPUT); X } X setbuf(fp, fbuf1); X+ X cnt = fread(&xhdr, 1, sizeof (xhdr), fp); X if (cnt < sizeof (xhdr.e)) X { X! fprintf(stderr, "%s: Premature EOF reading header\n", __progname); X exit(EX_DATAERR); X } X if (N_BADMAG(xhdr.e)) X { X! fprintf(stderr, "%s: Bad magic number\n", __progname); X exit(EX_DATAERR); X } X! osyms = xhdr.e.a_syms / sizeof (struct nlist); X! if (!osyms) X { X! fprintf(stderr, "%s: '%s' stripped\n", __progname); X exit(EX_OK); X } X stroff = N_STROFF(xhdr); X*************** X*** 107,119 **** X fread(&strsiz, sizeof (long), 1, fp); X if (strsiz > 48 * 1024L) X { X! fprintf(stderr, "%s: string table > 48kb\n", Pgm); X exit(EX_DATAERR); X } X strtab = (char *)malloc((int)strsiz); X if (!strtab) X { X! fprintf(stderr, "%s: no memory for strings\n", Pgm); X exit(EX_OSERR); X } X /* X--- 133,145 ---- X fread(&strsiz, sizeof (long), 1, fp); X if (strsiz > 48 * 1024L) X { X! fprintf(stderr, "%s: string table > 48kb\n", __progname); X exit(EX_DATAERR); X } X strtab = (char *)malloc((int)strsiz); X if (!strtab) X { X! fprintf(stderr, "%s: no memory for strings\n", __progname); X exit(EX_OSERR); X } X /* X*************** X*** 125,174 **** X cnt = fread(strtab + sizeof (long), 1, (int)strsiz - sizeof (long), fp); X if (cnt != (int)strsiz - sizeof (long)) X { X! fprintf(stderr, "%s: Premature EOF reading strings\n", Pgm); X exit(EX_DATAERR); X } X- /* X- * Seek to the symbol table. Scan it and count how many symbols are X- * significant. X- */ X- fseek(fp, symoff, L_SET); X- cnt = 0; X- for (i = 0; i < nsyms; i++) X- { X- fread(&syment, sizeof (syment), 1, fp); X- if (exclude(&syment)) X- continue; X- cnt++; X- } X X /* X! * Allocate memory for the symbol table. X */ X- symtab = (struct nlist *)malloc(cnt * sizeof (struct nlist)); X- if (!symtab) X- { X- fprintf(stderr, "%s: no memory for symbols\n", Pgm); X- exit(EX_OSERR); X- } X X /* X! * Now read the symbols in, excluding the same ones as before, and X! * assign the in-memory string addresses at the same time X */ X- sp = symtab; X fseek(fp, symoff, L_SET); X X! for (i = 0; i < nsyms; i++) X { X fread(&syment, sizeof (syment), 1, fp); X if (exclude(&syment)) X continue; X bcopy(&syment, sp, sizeof (syment)); X sp->n_un.n_name = strtab + (int)sp->n_un.n_strx; X! sp++; X } X- symtabend = &symtab[cnt]; X X /* X * Now look for symbols with overlay numbers of 0 (root/base segment) and X--- 151,195 ---- X cnt = fread(strtab + sizeof (long), 1, (int)strsiz - sizeof (long), fp); X if (cnt != (int)strsiz - sizeof (long)) X { X! fprintf(stderr, "%s: Premature EOF reading strings\n", __progname); X exit(EX_DATAERR); X } X X /* X! * NOTE: vmmapseg() is very expensive! Access to the symbol table in this X! * program is not random but sequential. vmmapseg() need only be X! * called when crossing a segment boundary. Within a segment increment X! * the 'struct nlist' pointer. X */ X X /* X! * Read symbols excluding nonsignificant ones. Assign in-memory string address. X */ X fseek(fp, symoff, L_SET); X X! for (segmapped = -1, esyms = 0, maxsymno = 0, i = 0; i < osyms; i++) X { X fread(&syment, sizeof (syment), 1, fp); X if (exclude(&syment)) X+ { X+ esyms++; X continue; X+ } X+ vsym = sym2va(maxsymno); X+ vsg = VSEG(vsym); X+ if (vsg != segmapped) X+ { X+ segmapped = vsg; X+ seg = vmmapseg(&Vspace, vsg); X+ sp = (struct nlist *)(seg->s_cinfo + VOFF(vsym)); X+ VMMODIFY(seg); X+ } X+ else X+ sp++; X bcopy(&syment, sp, sizeof (syment)); X sp->n_un.n_name = strtab + (int)sp->n_un.n_strx; X! maxsymno++; X } X X /* X * Now look for symbols with overlay numbers of 0 (root/base segment) and X*************** X*** 176,183 **** X * and '_' prefixed form of the symbol. Preserve the '_' form and clear X * the '~' entry by zeroing the string address of the '~' symbol. X */ X! for (sp = symtab; sp < symtabend; sp++) X { X if (sp->n_ovly) X continue; X if ((sp->n_type & N_TYPE) != N_TEXT) X--- 197,216 ---- X * and '_' prefixed form of the symbol. Preserve the '_' form and clear X * the '~' entry by zeroing the string address of the '~' symbol. X */ X! segmapped = -1; X! X! for (i = 0; i < maxsymno; i++) X { X+ vsym = sym2va(i); X+ vsg = VSEG(vsym); X+ if (vsg != segmapped) X+ { X+ seg = vmmapseg(&Vspace, vsg); X+ sp = (struct nlist *)(seg->s_cinfo + VOFF(vsym)); X+ segmapped = vsg; X+ } X+ else X+ sp++; X if (sp->n_ovly) X continue; X if ((sp->n_type & N_TYPE) != N_TEXT) X*************** X*** 184,196 **** X continue; X if (sp->n_un.n_name[0] != '~') X continue; X /* X * At this point we have the '~' form of a non overlaid text symbol. Look X * thru the symbol table for the '_' form. All of 1) symbol type, 2) Symbol X * value and 3) symbol name (starting after the first character) must match. X */ X! for (sp2 = symtab; sp2 < symtabend; sp2++) X { X if (sp2->n_ovly) X continue; X if ((sp2->n_type & N_TYPE) != N_TEXT) X--- 217,240 ---- X continue; X if (sp->n_un.n_name[0] != '~') X continue; X+ vmlock(seg); X /* X * At this point we have the '~' form of a non overlaid text symbol. Look X * thru the symbol table for the '_' form. All of 1) symbol type, 2) Symbol X * value and 3) symbol name (starting after the first character) must match. X */ X! for (segmapped2 = -1, i2 = 0; i2 < maxsymno; i2++) X { X+ vsym2 = sym2va(i2); X+ vsg = VSEG(vsym2); X+ if (vsg != segmapped2) X+ { X+ seg2 = vmmapseg(&Vspace, vsg); X+ sp2 = (struct nlist *)(seg2->s_cinfo + VOFF(vsym2)); X+ segmapped2 = vsg; X+ } X+ else X+ sp2++; X if (sp2->n_ovly) X continue; X if ((sp2->n_type & N_TYPE) != N_TEXT) X*************** X*** 202,213 **** X if (strcmp(sp->n_un.n_name+1, sp2->n_un.n_name+1)) X continue; X /* X! * Found a match. Null out the '~' symbol's string address. X */ X symsremoved++; X sp->n_un.n_strx = NULL; X break; X } X } X /* X * Done with the nested scanning of the symbol table. Now create a new X--- 246,260 ---- X if (strcmp(sp->n_un.n_name+1, sp2->n_un.n_name+1)) X continue; X /* X! * Found a match. Null out the '~' symbol's string table offset and in memory X! * string address (n_strx & n_name are a union). X */ X symsremoved++; X sp->n_un.n_strx = NULL; X+ VMMODIFY(seg); X break; X } X+ vmunlock(seg); X } X /* X * Done with the nested scanning of the symbol table. Now create a new X*************** X*** 218,224 **** X strfp = fopen(strtmp, "w+"); X if (!strfp) X { X! fprintf(stderr, "%s: can't create '%s'\n", Pgm, strtmp); X exit(EX_CANTCREAT); X } X setbuf(strfp, fbuf2); X--- 265,271 ---- X strfp = fopen(strtmp, "w+"); X if (!strfp) X { X! fprintf(stderr, "%s: can't create '%s'\n", __progname, strtmp); X exit(EX_CANTCREAT); X } X setbuf(strfp, fbuf2); X*************** X*** 228,235 **** X * is updated with the new file string table offset. X */ X ltmp = sizeof (long); X! for (sp = symtab; sp < symtabend; sp++) X { X if (!sp->n_un.n_name) X continue; X len = strlen(sp->n_un.n_name) + 1; X--- 275,294 ---- X * is updated with the new file string table offset. X */ X ltmp = sizeof (long); X! X! for (segmapped = -1, i = 0; i < maxsymno; i++) X { X+ vsym = sym2va(i); X+ vsg = VSEG(vsym); X+ if (vsg != segmapped) X+ { X+ seg = vmmapseg(&Vspace, vsg); X+ sp = (struct nlist *)(seg->s_cinfo + VOFF(vsym)); X+ segmapped = vsg; X+ VMMODIFY(seg); X+ } X+ else X+ sp++; X if (!sp->n_un.n_name) X continue; X len = strlen(sp->n_un.n_name) + 1; X*************** X*** 249,259 **** X * the file. Write out the valid symbols, counting each one so that the X * a.out header can be updated when we're done. X */ X- nsyms = 0; X fseek(fp, symoff, L_SET); X ftruncate(fileno(fp), ftell(fp)); X! for (sp = symtab; sp < symtabend; sp++) X { X if (sp->n_un.n_strx == 0) X continue; X nsyms++; X--- 308,328 ---- X * the file. Write out the valid symbols, counting each one so that the X * a.out header can be updated when we're done. X */ X fseek(fp, symoff, L_SET); X ftruncate(fileno(fp), ftell(fp)); X! X! for (segmapped = -1, nsyms = 0, i = 0; i < maxsymno; i++) X { X+ vsym = sym2va(i); X+ vsg = VSEG(vsym); X+ if (vsg != segmapped) X+ { X+ seg = vmmapseg(&Vspace, VSEG(vsym)); X+ sp = (struct nlist *)(seg->s_cinfo + VOFF(vsym)); X+ segmapped = vsg; X+ } X+ else X+ sp++; X if (sp->n_un.n_strx == 0) X continue; X nsyms++; X*************** X*** 264,281 **** X */ X fwrite(<mp, sizeof (long), 1, fp); X /* X! * We're done with the in memory symbol table, release it. Then append X * the string table to the executable file. X */ X! free(symtab); X! while ((c = getc(strfp)) != EOF) X! putc(c, fp); X fclose(strfp); X rewind(fp); X xhdr.e.a_syms = nsyms * sizeof (struct nlist); X fwrite(&xhdr.e, sizeof (xhdr.e), 1, fp); X fclose(fp); X! printf("%s: %d symbols removed\n", Pgm, symsremoved); X cleanup(); X } X X--- 333,352 ---- X */ X fwrite(<mp, sizeof (long), 1, fp); X /* X! * We're done with the virtual address space, release it. Then append X * the string table to the executable file. X */ X! vmclose(&Vspace); X! X! while ((i = getc(strfp)) != EOF) X! putc(i, fp); X fclose(strfp); X+ X rewind(fp); X xhdr.e.a_syms = nsyms * sizeof (struct nlist); X fwrite(&xhdr.e, sizeof (xhdr.e), 1, fp); X fclose(fp); X! printf("%s: initial(%d)/excluded(%d)/removed(%d)/current(%d) symbols, old(%ld)/new(%ld) strings sbrk(0): %u\n", __progname, osyms, esyms, symsremoved, nsyms, strsiz, ltmp, sbrk(0)); X cleanup(); X } X X*************** X*** 296,302 **** X register struct nlist *sp; X { X X! if (sp->n_type == N_REG) X return(1); X if (sp->n_un.n_strx == 0) X return(1); X--- 367,373 ---- X register struct nlist *sp; X { X X! if ((sp->n_type == N_REG) || (sp->n_type == N_FN)) X return(1); X if (sp->n_un.n_strx == 0) X return(1); X*** ./usr/src/ucb/Makefile.old Mon Dec 8 23:25:16 2025 X--- ./usr/src/ucb/Makefile Sun Sep 13 13:36:22 2026 X*************** X*** 3,9 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.19 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X LDFLAGS= -i X--- 3,9 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.20 (2.11BSD) 2026/9/13 X # X CFLAGS= -O X LDFLAGS= -i X*************** X*** 10,16 **** X X # Programs that live in subdirectories, and have makefiles of their own. X # X! SUBDIR= Mail compress error ex finger ftp indent lock man \ X more msgs netstat pascal rdist rlogin sendbug talk tftp \ X tn3270 top tset vgrind window X X--- 10,16 ---- X X # Programs that live in subdirectories, and have makefiles of their own. X # X! SUBDIR= Mail compress error ex finger ftp indent lock man mkstr \ X more msgs netstat pascal rdist rlogin sendbug talk tftp \ X tn3270 top tset vgrind window X X*************** X*** 22,35 **** X # explicit make lines. X # X STD= apply biff checknr colcrt colrm ctags expand fold \ X! from grep head last lastcomm leave logger mkstr \ X! printenv ruptime rwho sccs script soelim strings strcompact \ X! symcompact symdump symorder tail tcopy telnet unexpand unifdef users \ X whois what wc xstr yes X X # C programs that live in the current directory and need explicit make lines. X # X! NSTD= clear ul vacation X X # Programs that must run setuid to root X # X--- 22,35 ---- X # explicit make lines. X # X STD= apply biff checknr colcrt colrm ctags expand fold \ X! from head last lastcomm leave logger \ X! printenv ruptime rwho script soelim strings strcompact \ X! symdump symorder tail tcopy telnet unexpand unifdef users \ X whois what wc xstr yes X X # C programs that live in the current directory and need explicit make lines. X # X! NSTD= clear ul vacation symcompact X X # Programs that must run setuid to root X # X*************** X*** 96,101 **** X--- 96,104 ---- X X ul: X ${CC} -o ul ${LDFLAGS} ${CFLAGS} ul.c -ltermlib X+ X+ symcompact: X+ ${CC} -o symcompact ${LDFLAGS} ${CFLAGS} symcompact.c -lvmf X X vacation: vacation.c X ${CC} -o vacation ${LDFLAGS} ${CFLAGS} vacation.c -ldbm X*** ./usr/src/ucb/strcompact.c.old Sun Feb 13 02:16:31 1994 X--- ./usr/src/ucb/strcompact.c Mon Sep 21 16:06:44 2026 X*************** X*** 1,17 **** X /* X * Program Name: strcompact.c X! * Date: February 12, 1994 X * Author: S.M. Schultz X * X * ----------------- Modification History --------------- X * Version Date Reason For Modification X! * 1.0 21Jan94 1. Initial release into the public domain. X! * 2.0 12Feb94 2. Rewrite. Use new utility program 'symdump' X * and a multi-key sort to not only create X * shared symbol strings but remove identical X * symbols (identical absolute local symbols X * are quite common). Execution speed was X! * speed up by about a factor of 4. X */ X X /* X--- 1,18 ---- X /* X * Program Name: strcompact.c X! * Date: March 29, 2026 X * Author: S.M. Schultz X * X * ----------------- Modification History --------------- X * Version Date Reason For Modification X! * 1.0 21Jan1994 1. Initial release into the public domain. X! * 2.0 12Feb1994 2. Rewrite. Use new utility program 'symdump' X * and a multi-key sort to not only create X * shared symbol strings but remove identical X * symbols (identical absolute local symbols X * are quite common). Execution speed was X! * sped up by about a factor of 4. X! * 2.1 29Mar2026 3. Minor cleanup. X */ X X /* X*************** X*** 35,41 **** X #include X #include X X! char *Pgm; X char *Sort = "/usr/bin/sort"; X char *Symdump = "/usr/ucb/symdump"; X static char strfn[32], symfn[32]; X--- 36,43 ---- X #include X #include X X! extern char *__progname; X! X char *Sort = "/usr/bin/sort"; X char *Symdump = "/usr/ucb/symdump"; X static char strfn[32], symfn[32]; X*************** X*** 54,60 **** X unsigned short type, value, ovly; X void cleanup(); X X- Pgm = argv[0]; X signal(SIGQUIT, cleanup); X signal(SIGINT, cleanup); X signal(SIGHUP, cleanup); X--- 56,61 ---- X*************** X*** 61,90 **** X X if (argc != 2) X { X! fprintf(stderr, "%s: missing filename argument\n", Pgm); X exit(EX_USAGE); X } X fpin = fopen(argv[1], "r+"); X if (!fpin) X { X! fprintf(stderr, "%s: can not open '%s' for update\n", X! Pgm, argv[1]); X exit(EX_NOINPUT); X } X if (fread(&xhdr, 1, sizeof (xhdr), fpin) < sizeof (xhdr.e)) X { X! fprintf(stderr, "%s: premature EOF\n", Pgm); X exit(EX_DATAERR); X } X if (N_BADMAG(xhdr.e)) X { X! fprintf(stderr, "%s: Bad magic number\n", Pgm); X exit(EX_DATAERR); X } X nsyms = xhdr.e.a_syms / sizeof (struct nlist); X if (!nsyms) X { X! fprintf(stderr, "%s: '%s' stripped\n", Pgm, argv[1]); X exit(EX_OK); X } X X--- 62,90 ---- X X if (argc != 2) X { X! fprintf(stderr, "%s: need a filename\n", __progname); X exit(EX_USAGE); X } X fpin = fopen(argv[1], "r+"); X if (!fpin) X { X! fprintf(stderr, "%s: can not open '%s' for update\n", __progname, argv[1]); X exit(EX_NOINPUT); X } X if (fread(&xhdr, 1, sizeof (xhdr), fpin) < sizeof (xhdr.e)) X { X! fprintf(stderr, "%s: '%s' premature EOF\n", __progname, argv[1]); X exit(EX_DATAERR); X } X if (N_BADMAG(xhdr.e)) X { X! fprintf(stderr, "%s: '%s' Bad magic number\n", __progname, argv[1]); X exit(EX_DATAERR); X } X nsyms = xhdr.e.a_syms / sizeof (struct nlist); X if (!nsyms) X { X! fprintf(stderr, "%s: '%s' stripped\n", __progname, argv[1]); X exit(EX_OK); X } X X*************** X*** 98,104 **** X sortfp = popen(buf1, "r"); X if (!sortfp) X { X! fprintf(stderr, "%s: symdump | sort failed\n", Pgm); X exit(EX_SOFTWARE); X } X symfp = fopen(symfn, "w+"); X--- 98,104 ---- X sortfp = popen(buf1, "r"); X if (!sortfp) X { X! fprintf(stderr, "%s: '%s' failed\n", __progname, buf1); X exit(EX_SOFTWARE); X } X symfp = fopen(symfn, "w+"); X*** ./usr/src/ucb/apply.c.old Tue Feb 17 01:11:07 1987 X--- ./usr/src/ucb/apply.c Fri May 8 15:31:33 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)apply.c 5.1 (Berkeley) 5/31/85"; X! #endif not lint X X /*%cc -s -O % X * apply - apply a command to a set of arguments X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)apply.c 5.2 (2.11BSD) 2026/5/8"; X! #endif X X /*%cc -s -O % X * apply - apply a command to a set of arguments X*************** X*** 22,27 **** X--- 20,27 ---- X * apply "ln %1 /usr/fred/dir" * duplicates a directory X */ X #include X+ #include X+ X char *cmdp; X #define NCHARS 512 X char cmd[512]; X*************** X*** 29,35 **** X #define DEFARGCHAR '%' X char argchar=DEFARGCHAR; X int nchars; X- extern char *getenv(); X X main(argc, argv) X char *argv[]; X--- 29,34 ---- X*** ./usr/src/ucb/biff.c.old Tue Feb 17 01:11:14 1987 X--- ./usr/src/ucb/biff.c Fri May 8 15:38:55 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)biff.c 5.1 (Berkeley) 5/31/85"; X! #endif not lint X X /* X * biff X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)biff.c 5.2 (2.11BSD) 2026/5/8"; X! #endif X X /* X * biff X*************** X*** 21,28 **** X #include X #include X #include X! X! char *ttyname(); X X main(argc, argv) X int argc; X--- 19,25 ---- X #include X #include X #include X! #include X X main(argc, argv) X int argc; X*** ./usr/src/ucb/checknr.c.old Tue Feb 17 01:11:13 1987 X--- ./usr/src/ucb/checknr.c Fri May 8 15:45:43 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)checknr.c 5.2 (Berkeley) 12/5/85"; X! #endif not lint X X /* X * checknr: check an nroff/troff input file for matching macro calls. X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)checknr.c 5.3 (2.11BSD) 2026/5/8"; X! #endif X X /* X * checknr: check an nroff/troff input file for matching macro calls. X*************** X*** 23,28 **** X--- 21,27 ---- X */ X #include X #include X+ #include X X #define MAXSTK 100 /* Stack size */ X #define MAXBR 100 /* Max number of bracket pairs known */ X*************** X*** 143,150 **** X int sflag; /* -s: ignore \s */ X int ncmds; /* size of knowncmds */ X int slot; /* slot in knowncmds found by binsrch */ X- X- char *malloc(); X X main(argc, argv) X int argc; X--- 142,147 ---- X*** ./usr/src/ucb/clear.c.old Tue Feb 17 01:11:14 1987 X--- ./usr/src/ucb/clear.c Fri May 8 15:49:09 2026 X*************** X*** 4,21 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)clear.c 5.1 (Berkeley) 5/31/85"; X! #endif not lint X X- /* load me with -ltermlib */ X- /* #include on version 6 */ X /* X * clear - clear the screen X */ X--- 4,17 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)clear.c 5.2 (2.11BSD) 2026/5/8"; X! #endif X X /* X * clear - clear the screen X */ X*************** X*** 22,34 **** X X #include X #include X X! char *getenv(); X! char *tgetstr(); X! char PC; X! short ospeed; X #undef putchar X! int putchar(); X X main() X { X--- 18,31 ---- X X #include X #include X+ #include X X! extern char *tgetstr(); X! char PC; X! short ospeed; X! X #undef putchar X! extern int putchar(); X X main() X { X*** ./usr/src/ucb/colcrt.c.old Tue Feb 17 01:11:14 1987 X--- ./usr/src/ucb/colcrt.c Fri May 8 15:52:16 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)colcrt.c 5.1 (Berkeley) 5/31/85"; X! #endif not lint X X #include X /* X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)colcrt.c 5.2 (2.11BSD) 2026/5/8"; X! #endif X X #include X /* X*** ./usr/src/ucb/colrm.c.old Tue Feb 17 01:11:15 1987 X--- ./usr/src/ucb/colrm.c Fri May 8 15:51:01 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)colrm.c 5.1 (Berkeley) 5/31/85"; X! #endif not lint X X #include X /* X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)colrm.c 5.2 (2.11BSD) 2026/5/8"; X! #endif X X #include X /* X*************** X*** 19,25 **** X COLRM removes unwanted columns from a file X Jeff Schriebman UC Berkeley 11-74 X */ X- X X main(argc,argv) X char **argv; X--- 17,22 ---- X*** ./usr/src/ucb/expand.c.old Tue Feb 17 01:11:14 1987 X--- ./usr/src/ucb/expand.c Fri May 8 15:53:25 2026 X*************** X*** 4,20 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)expand.c 5.1 (Berkeley) 5/31/85"; X! #endif not lint X X #include X /* X * expand - expand tabs to equivalent spaces X */ X--- 4,19 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)expand.c 5.2 (2.11BSD) 2026/5/8"; X! #endif X X #include X+ X /* X * expand - expand tabs to equivalent spaces X */ X*** ./usr/src/ucb/fold.c.old Tue Feb 17 01:11:07 1987 X--- ./usr/src/ucb/fold.c Fri May 8 15:54:38 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)fold.c 5.1 (Berkeley) 5/31/85"; X! #endif not lint X X #include X /* X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)fold.c 5.2 (2.11BSD) 2026/5/8"; X! #endif X X #include X /* X*** ./usr/src/ucb/last.c.old Mon Jan 18 12:35:43 1993 X--- ./usr/src/ucb/last.c Mon Sep 21 22:56:51 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)last.c 5.3 (Berkeley) 5/15/86"; X! #endif not lint X X /* X * last X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)last.c 5.4 (2.11BSD) 2026/5/8"; X! #endif X X /* X * last X*************** X*** 21,26 **** X--- 19,25 ---- X #include X #include X #include X+ #include X #include X X #define NMAX sizeof(buf[0].ut_name) X*************** X*** 42,49 **** X char ttnames[MAXTTYS][LMAX+1]; X long logouts[MAXTTYS]; X X! char *ctime(), *strspl(); X! int onintr(); X X main(ac, av) X char **av; X--- 41,48 ---- X char ttnames[MAXTTYS][LMAX+1]; X long logouts[MAXTTYS]; X X! char *strspl(); X! void onintr(); X X main(ac, av) X char **av; X*************** X*** 182,187 **** X--- 181,187 ---- X exit(0); X } X X+ void X onintr(signo) X int signo; X { X*** ./usr/src/ucb/tail.c.old Tue Jan 11 01:39:46 1994 X--- ./usr/src/ucb/tail.c Mon Sep 14 14:21:55 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)tail.c 5.2.1 (2.11BSD GTE) 1/1/94"; X #endif X X /* tail command X--- 9,15 ---- X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)tail.c 5.2.2 (2.11BSD) 2026/9/14"; X #endif X X /* tail command X*************** X*** 34,44 **** X #include X #include X X- #ifdef pdp11 X #define LBIN 16385 X- #else X- #define LBIN 32769 X- #endif X #undef BUFSIZ X #define BUFSIZ 8192 X struct stat statb; X--- 34,40 ---- X*** ./usr/src/ucb/soelim.c.old Tue Feb 17 01:11:15 1987 X--- ./usr/src/ucb/soelim.c Fri May 8 16:13:06 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)soelim.c 5.1 (Berkeley) 5/31/85"; X! #endif not lint X X #include X /* X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)soelim.c 5.2 (2.11BSD) 2026/5/8"; X! #endif X X #include X /* X*** ./usr/src/ucb/ul.c.old Tue Feb 17 01:11:15 1987 X--- ./usr/src/ucb/ul.c Thu Sep 17 14:24:09 2026 X*************** X*** 4,20 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)ul.c 5.1 (Berkeley) 5/31/85"; X! #endif not lint X X #include X X #define IESC '\033' X #define SO '\016' X--- 4,20 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)ul.c 5.2 (2.11BSD) 2026/5/8"; X! #endif X X #include X+ #include X+ #include X X #define IESC '\033' X #define SO '\016' X*************** X*** 56,64 **** X char *cp, *termtype; X FILE *f; X char termcap[1024]; X- char *getenv(); X- extern int optind; X- extern char *optarg; X X termtype = getenv("TERM"); X if (termtype == NULL || (argv[0][0] == 'c' && !isatty(1))) X--- 56,61 ---- X*************** X*** 233,239 **** X for (i=0; i= argc || X- argv[optind][0] != '-' || argv[optind][1] == '\0') X- return EOF; X- else if (strcmp(argv[optind], "--") == NULL) { X- optind++; X- return EOF; X- } X- else if (strcmp(argv[optind], "-?") == NULL) { X- optind++; X- return '?'; X- } X- c = argv[optind][sp]; X- if (c == ':' || (cp=index(opts, c)) == NULL) { X- ERR (": illegal option -- ", c); X- if (argv[optind][++sp] == '\0') { X- optind++; X- sp = 1; X- } X- return '?'; X- } X- if (*++cp == ':') { X- if (argv[optind][2] != '\0') X- optarg = &argv[optind++][sp+1]; X- else if (++optind >= argc) { X- ERR (": option requires an argument -- ", c); X- sp = 1; X- return '?'; X- } else X- optarg = argv[optind++]; X- sp = 1; X- } X- else if (argv[optind][++sp] == '\0') { X- sp = 1; X- optind++; X- } X- return c; X } X--- 482,485 ---- X*** ./usr/src/ucb/unexpand.c.old Tue Feb 17 01:11:08 1987 X--- ./usr/src/ucb/unexpand.c Fri May 8 16:17:07 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)unexpand.c 5.1 (Berkeley) 5/31/85"; X! #endif not lint X X /* X * unexpand - put tabs into a file replacing blanks X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)unexpand.c 5.2 (2.11BSD) 2026/5/8"; X! #endif X X /* X * unexpand - put tabs into a file replacing blanks X*** ./usr/src/ucb/unifdef.c.old Tue Feb 17 01:11:17 1987 X--- ./usr/src/ucb/unifdef.c Fri May 8 16:18:45 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)unifdef.c 4.4 (Berkeley) 8/11/83"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)unifdef.c 4.5 (2.11BSD) 2026/5/8"; X #endif X X /* X*** ./usr/src/ucb/wc.c.old Tue Feb 17 01:11:13 1987 X--- ./usr/src/ucb/wc.c Fri May 8 16:20:27 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)wc.c 5.1 (Berkeley) 5/31/85"; X! #endif not lint X X /* wc line and word count */ X X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)wc.c 5.2 (2.11BSD) 2026/5/8"; X! #endif X X /* wc line and word count */ X X*** ./usr/src/ucb/what.c.old Tue Feb 17 01:11:17 1987 X--- ./usr/src/ucb/what.c Sat May 9 10:42:03 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)what.c 5.1 (Berkeley) 5/31/85"; X! #endif not lint X X #include X X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)what.c 5.2 (2.11BSD) 2026/5/8"; X! #endif X X #include X X*** ./usr/src/ucb/whois.c.old Tue Apr 6 21:38:52 1993 X--- ./usr/src/ucb/whois.c Fri May 8 16:23:33 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)whois.c 5.2 (Berkeley) 11/1/85"; X! #endif not lint X X #include X #include X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)whois.c 5.3 (2.11BSD) 2026/5/8"; X! #endif X X #include X #include X*** ./usr/src/ucb/xstr.c.old Tue Feb 17 01:11:16 1987 X--- ./usr/src/ucb/xstr.c Mon Sep 21 23:02:33 2026 X*************** X*** 4,24 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)xstr.c 5.3 (Berkeley) 1/13/86"; X! #endif not lint X X #include X #include X- #include X #include X X /* X * xstr - extract and hash strings in a C program X * X--- 4,25 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)xstr.c 5.4 (2.11BSD) 2026/5/8"; X! #endif X X #include X #include X #include X+ #include X+ #include X X+ extern char *mktemp(); X+ X /* X * xstr - extract and hash strings in a C program X * X*************** X*** 28,41 **** X X #define ignore(a) ((void) a) X X- char *calloc(); X off_t tellpt; X off_t hashit(); X! char *mktemp(); X! int onintr(); X char *savestr(); X- char *strcat(); X- char *strcpy(); X off_t yankstr(); X X off_t mesgpt; X--- 29,38 ---- X X #define ignore(a) ((void) a) X X off_t tellpt; X off_t hashit(); X! void onintr(); X char *savestr(); X off_t yankstr(); X X off_t mesgpt; X*************** X*** 441,446 **** X--- 438,444 ---- X return (d); X } X X+ void X onintr() X { X X*** ./usr/src/ucb/yes.c.old Tue Feb 17 01:11:16 1987 X--- ./usr/src/ucb/yes.c Fri May 8 16:29:06 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)yes.c 5.1 (Berkeley) 5/31/85"; X! #endif not lint X X main(argc, argv) X char **argv; X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)yes.c 5.2 (2.11BSD) 2026/5/8"; X! #endif X X main(argc, argv) X char **argv; X*** ./usr/src/ucb/ctags.c.old Thu Feb 17 02:47:07 1994 X--- ./usr/src/ucb/ctags.c Wed Aug 19 17:42:00 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)ctags.c 5.1.1 (2.11BSD) 2/16/94"; X #endif X X #include X--- 9,15 ---- X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)ctags.c 5.1.2 (2.11BSD) 2026/8/19"; X #endif X X #include X*************** X*** 657,663 **** X X while (node) { X free_tree(node->right); X! cfree(node); X node = node->left; X } X } X--- 657,663 ---- X X while (node) { X free_tree(node->right); X! free(node); X node = node->left; X } X } X*** ./usr/src/ucb/ruptime.c.old Fri Dec 26 17:47:06 2025 X--- ./usr/src/ucb/ruptime.c Wed Aug 19 16:30:39 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)ruptime.c 5.3.2 (2.11BSD) 2025/12/26"; X #endif X X #include X--- 9,15 ---- X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)ruptime.c 5.3.3 (2.11BSD) 2026/8/19"; X #endif X X #include X*************** X*** 143,149 **** X hsp->hs_wd->wd_loadav[1] / 100.0, X maxloadav >= 1000 ? 5 : 4, X hsp->hs_wd->wd_loadav[2] / 100.0); X! cfree(hsp->hs_wd); X } X exit(0); X } X--- 143,149 ---- X hsp->hs_wd->wd_loadav[1] / 100.0, X maxloadav >= 1000 ? 5 : 4, X hsp->hs_wd->wd_loadav[2] / 100.0); X! free(hsp->hs_wd); X } X exit(0); X } X*** ./usr/src/ucb/quota.c.old Thu Feb 8 02:27:08 1996 X--- ./usr/src/ucb/quota.c Mon Sep 14 14:23:23 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)quota.c 5.4.3 (2.11BSD GTE) 1996/2/7"; X #endif X X /* X--- 9,15 ---- X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)quota.c 5.4.4 (2.11BSD) 2026/9/14"; X #endif X X /* X*************** X*** 153,163 **** X break; X X case sizeof dqblk: /* OK */ X- #ifdef pdp11 X dqblk.dqb_curblocks= btodb(dqblk.dqb_curblocks); X dqblk.dqb_bsoftlimit = btodb(dqblk.dqb_bsoftlimit); X dqblk.dqb_bhardlimit = btodb(dqblk.dqb_bhardlimit); X- #endif X break; X X default: /* ERROR */ X--- 153,161 ---- X*************** X*** 207,213 **** X } X if (vflag || dqblk.dqb_curblocks || dqblk.dqb_curinodes) { X heading(uid, name); X- #ifdef pdp11 X printf("%10s%8ld%c%7ld%8ld%8s%8d%c%7u%8u%8s\n" X , fs->fs_file X , dqblk.dqb_curblocks X--- 205,210 ---- X*************** X*** 214,227 **** X , (msgb == (char *)0) ? ' ' : '*' X , dqblk.dqb_bsoftlimit X , dqblk.dqb_bhardlimit X- #else X- printf("%10s%8d%c%7d%8d%8s%8d%c%7d%8d%8s\n" X- , fs->fs_file X- , dbtob(dqblk.dqb_curblocks) / 1024 X- , (msgb == (char *)0) ? ' ' : '*' X- , dbtob(dqblk.dqb_bsoftlimit) / 1024 X- , dbtob(dqblk.dqb_bhardlimit) / 1024 X- #endif X , dwarn X , dqblk.dqb_curinodes X , (msgi == (char *)0) ? ' ' : '*' X--- 211,216 ---- X*** ./usr/src/ucb/telnet.c.old Mon Jan 5 15:18:57 2026 X--- ./usr/src/ucb/telnet.c Mon Sep 21 21:06:06 2026 X*************** X*** 5,11 **** X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)telnet.c 5.19 (2.11BSD) 2026/1/5"; X #endif X X /* X--- 5,11 ---- X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)telnet.c 5.20 (2.11BSD) 2026/9/21"; X #endif X X /* X*************** X*** 47,53 **** X #define FD_ZERO(p) ((p)->fds_bits[0] = 0) X X #endif X! X #define strip(x) ((x)&0x7f) X X char ttyobuf[2*BUFSIZ], *tfrontp = ttyobuf, *tbackp = ttyobuf; X--- 47,53 ---- X #define FD_ZERO(p) ((p)->fds_bits[0] = 0) X X #endif X! X #define strip(x) ((x)&0x7f) X X char ttyobuf[2*BUFSIZ], *tfrontp = ttyobuf, *tbackp = ttyobuf; X*************** X*** 155,161 **** X } clocks; X X #define settimer(x) clocks.x = clocks.system++ X! X /* X * Various utility routines. X */ X--- 155,161 ---- X } clocks; X X #define settimer(x) clocks.x = clocks.system++ X! X /* X * Various utility routines. X */ X*************** X*** 269,275 **** X argument++; X } X } X! X /* X * Check to see if any out-of-band data exists on a socket (for X * Telnet "synch" processing). X--- 269,275 ---- X argument++; X } X } X! X /* X * Check to see if any out-of-band data exists on a socket (for X * Telnet "synch" processing). X*************** X*** 354,360 **** X nbackp = nfrontp = netobuf; X } X } X! X /* X * nextitem() X * X--- 354,360 ---- X nbackp = nfrontp = netobuf; X } X } X! X /* X * nextitem() X * X*************** X*** 450,456 **** X nfrontp = good; /* next byte to be sent */ X neturg = 0; X } X! X /* X * Send as much data as possible to the terminal. X */ X--- 450,456 ---- X nfrontp = good; /* next byte to be sent */ X neturg = 0; X } X! X /* X * Send as much data as possible to the terminal. X */ X*************** X*** 476,486 **** X tbackp = tfrontp = ttyobuf; X } X } X! X /* X * Various signal handling routines. X */ X X deadpeer() X { X setcommandmode(); X--- 476,487 ---- X tbackp = tfrontp = ttyobuf; X } X } X! X /* X * Various signal handling routines. X */ X X+ void X deadpeer() X { X setcommandmode(); X*************** X*** 487,492 **** X--- 488,494 ---- X longjmp(peerdied, -1); X } X X+ void X intr() X { X if (localchars) { X*************** X*** 497,502 **** X--- 499,505 ---- X longjmp(toplevel, -1); X } X X+ void X intr2() X { X if (localchars) { X*************** X*** 505,510 **** X--- 508,514 ---- X } X } X X+ void X doescape() X { X command(0); X*************** X*** 523,529 **** X printoption(">SENT", naws, TELOPT_NAWS, 1); X } X } X! X /* X * The following are routines used to print out debugging information. X */ X--- 527,533 ---- X printoption(">SENT", naws, TELOPT_NAWS, 1); X } X } X! X /* X * The following are routines used to print out debugging information. X */ X*************** X*** 592,598 **** X } X printf(" (%s)\r\n", what ? "reply" : "don't reply"); X } X! X /* X * Mode - set up terminal to a specific mode. X */ X--- 596,602 ---- X } X printf(" (%s)\r\n", what ? "reply" : "don't reply"); X } X! X /* X * Mode - set up terminal to a specific mode. X */ X*************** X*** 697,703 **** X sigsetmask(sigblock(0L) & ~(1L<<(SIGTSTP-1))); X } X } X! X /* X * These routines decides on what the mode should be (based on the values X * of various global variables). X--- 701,707 ---- X sigsetmask(sigblock(0L) & ~(1L<<(SIGTSTP-1))); X } X } X! X /* X * These routines decides on what the mode should be (based on the values X * of various global variables). X*************** X*** 739,745 **** X { X mode(0); X } X! X char sibuf[BUFSIZ], *sbp; X char tibuf[BUFSIZ], *tbp; X int scc, tcc; X--- 743,749 ---- X { X mode(0); X } X! X char sibuf[BUFSIZ], *sbp; X char tibuf[BUFSIZ], *tbp; X int scc, tcc; X*************** X*** 1014,1020 **** X } X setcommandmode(); X } X! X /* X * Telnet receiver states for fsm X */ X--- 1018,1024 ---- X } X setcommandmode(); X } X! X /* X * Telnet receiver states for fsm X */ X*************** X*** 1205,1211 **** X } X } X } X! X willoption(option, reply) X int option, reply; X { X--- 1209,1215 ---- X } X } X } X! X willoption(option, reply) X int option, reply; X { X*************** X*** 1333,1339 **** X break; X } X } X! X /* X * The following are data structures and routines for X * the "send" command. X--- 1337,1343 ---- X break; X } X } X! X /* X * The following are data structures and routines for X * the "send" command. X*************** X*** 1539,1545 **** X } X return !question; X } X! X /* X * The following are the routines and data structures referred X * to by the arguments to the "toggle" command. X--- 1543,1549 ---- X } X return !question; X } X! X /* X * The following are the routines and data structures referred X * to by the arguments to the "toggle" command. X*************** X*** 1706,1712 **** X } X return retval; X } X! X /* X * The following perform the "set" command. X */ X--- 1710,1716 ---- X } X return retval; X } X! X /* X * The following perform the "set" command. X */ X*************** X*** 1788,1794 **** X } X return 1; X } X! X /* X * The following are the data structures and routines for the X * 'mode' command. X--- 1792,1798 ---- X } X return 1; X } X! X /* X * The following are the data structures and routines for the X * 'mode' command. X*************** X*** 1861,1867 **** X } X return 1; X } X! X /* X * The following data structures and routines implement the X * "display" command. X--- 1865,1871 ---- X } X return 1; X } X! X /* X * The following data structures and routines implement the X * "display" command. X*************** X*** 1922,1928 **** X #undef doset X #undef dotog X } X! X /* X * The following are the data structures, and many of the routines, X * relating to command processing. X--- 1926,1932 ---- X #undef doset X #undef dotog X } X! X /* X * The following are the data structures, and many of the routines, X * relating to command processing. X*************** X*** 2334,2340 **** X setconnmode(); X } X } X! X /* X * main. Parse arguments, invoke the protocol or command parser. X */ X--- 2338,2344 ---- X setconnmode(); X } X } X! X /* X * main. Parse arguments, invoke the protocol or command parser. X */ X*** ./usr/src/ucb/tcopy.c.old Fri Jun 7 22:14:18 1996 X--- ./usr/src/ucb/tcopy.c Mon Sep 21 23:00:31 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1985 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)tcopy.c 1.4 (2.11BSD GTE) 1996/6/4"; X #endif X X #include X--- 9,15 ---- X "@(#) Copyright (c) 1985 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)tcopy.c 1.5 (2.11BSD) 2026/9/21"; X #endif X X #include X*************** X*** 26,32 **** X char buff[SIZE]; X int filen=1; X long count, lcount; X! int RUBOUT(); X int nfile; X long size, tsize; X int ln; X--- 26,32 ---- X char buff[SIZE]; X int filen=1; X long count, lcount; X! void RUBOUT(); X int nfile; X long size, tsize; X int ln; X*************** X*** 127,132 **** X--- 127,133 ---- X printf("total length: %ld bytes\n", tsize); X } X X+ void X RUBOUT() X { X if (count > lcount) X*** ./usr/src/ucb/rsh.c.old Fri Dec 26 17:44:22 2025 X--- ./usr/src/ucb/rsh.c Mon Sep 21 23:04:47 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)rsh.c 5.5 (2.11BSD) 2025/12/26"; X #endif X X #include X--- 9,15 ---- X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)rsh.c 5.6 (2.11BSD) 2026/9/21"; X #endif X X #include X*************** X*** 35,41 **** X int errno; X int options; X int rfd2; X! int sendsig(); X X #define mask(s) (1L << ((s) - 1)) X X--- 35,41 ---- X int errno; X int options; X int rfd2; X! void sendsig(); X X #define mask(s) (1L << ((s) - 1)) X X*************** X*** 234,239 **** X--- 234,240 ---- X exit(1); X } X X+ void X sendsig(signo) X char signo; X { X*** ./usr/src/usr.bin/diff3/diff3.c.old Tue Jan 11 01:40:37 1994 X--- ./usr/src/usr.bin/diff3/diff3.c Thu Sep 24 21:48:39 2026 X*************** X*** 1,8 **** X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)diff3.c 4.4.1 (2.11BSD GTE) 1/1/94"; X #endif X X #include X X /* diff3 - 3-way differential file comparison*/ X X--- 1,9 ---- X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)diff3.c 4.4.2 (2.11BSD) 2026/9/24"; X #endif X X #include X+ #include X X /* diff3 - 3-way differential file comparison*/ X X*************** X*** 157,177 **** X { X register nn; X nn = 0; X! while(digit(**lc)) X nn = nn*10 + *(*lc)++ - '0'; X return(nn); X } X X- digit(c) X- { X- return(c>='0'&&c<='9'); X- } X- X getchange(b) X FILE *b; X { X while(getline(b)) X! if(digit(line[0])) X return(1); X return(0); X } X--- 158,173 ---- X { X register nn; X nn = 0; X! while (isdigit(**lc)) X nn = nn*10 + *(*lc)++ - '0'; X return(nn); X } X X getchange(b) X FILE *b; X { X while(getline(b)) X! if (isdigit(line[0])) X return(1); X return(0); X } X*** ./usr/src/usr.bin/plot/atoplot.c.old Mon Feb 16 19:20:50 1987 X--- ./usr/src/usr.bin/plot/atoplot.c Sat May 9 05:44:25 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)atoplot.c 4.2 (Berkeley) 1/9/85"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)atoplot.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X #include X*** ./usr/src/usr.bin/plot/chrtab.c.old Mon Feb 16 19:20:50 1987 X--- ./usr/src/usr.bin/plot/chrtab.c Sat May 9 05:44:49 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)chrtab.c 4.1 (Berkeley) 7/4/83"; X #endif X X char chrtab[][16] = { X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)chrtab.c 4.2 (2.11BSD) 2026/5/9"; X #endif X X char chrtab[][16] = { X*** ./usr/src/usr.bin/plot/crtdriver.c.old Mon Feb 16 19:20:50 1987 X--- ./usr/src/usr.bin/plot/crtdriver.c Sat May 9 05:45:25 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)crtdriver.c 4.2 (Berkeley) 1/9/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)crtdriver.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/usr.bin/plot/crtplot.c.old Mon Feb 16 19:20:50 1987 X--- ./usr/src/usr.bin/plot/crtplot.c Mon Sep 21 23:46:09 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)crtplot.c 4.1 (Berkeley) 11/11/83"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)crtplot.c 4.2 (2.11BSD) 2026/5/9"; X #endif X X /* X*************** X*** 69,75 **** X openpl() X { X char *sp; X! int closepl(); X X gettmode(); X if (sp=getenv("TERM")) X--- 69,75 ---- X openpl() X { X char *sp; X! void closepl(); X X gettmode(); X if (sp=getenv("TERM")) X*************** X*** 78,86 **** X X } X X! X! X! X closepl() X { X signal(SIGINT, SIG_IGN); X--- 78,84 ---- X X } X X! void X closepl() X { X signal(SIGINT, SIG_IGN); X*** ./usr/src/usr.bin/plot/debug.c.old Mon Feb 16 19:20:50 1987 X--- ./usr/src/usr.bin/plot/debug.c Sat May 9 05:46:18 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)debug.c 4.2 (Berkeley) 1/9/85"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)debug.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X #include X*** ./usr/src/usr.bin/plot/driver.c.old Mon Feb 16 19:20:49 1987 X--- ./usr/src/usr.bin/plot/driver.c Sat May 9 05:47:00 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)driver.c 4.4 (Berkeley) 9/21/85"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)driver.c 4.5 (2.11BSD) 2026/5/9"; X #endif X X #include X*** ./usr/src/usr.bin/plot/plottoa.c.old Mon Feb 16 19:20:50 1987 X--- ./usr/src/usr.bin/plot/plottoa.c Sat May 9 05:47:28 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)plottoa.c 4.2 (Berkeley) 1/9/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)plottoa.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/usr.bin/ratfor/r0.c.old Mon Feb 16 19:20:51 1987 X--- ./usr/src/usr.bin/ratfor/r0.c Sat May 9 05:49:59 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)r0.c 1.2 (Berkeley) 8/11/83"; X #endif X X #include "r.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)r0.c 1.3 (2.11BSD) 2026/5/9"; X #endif X X #include "r.h" X*** ./usr/src/usr.bin/ratfor/r1.c.old Mon Feb 16 19:20:51 1987 X--- ./usr/src/usr.bin/ratfor/r1.c Sat May 9 05:50:29 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)r1.c 1.3 (Berkeley) 8/11/83"; X #endif X X #include "r.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)r1.c 1.4 (2.11BSD) 2026/5/9"; X #endif X X #include "r.h" X*** ./usr/src/usr.bin/ratfor/r2.c.old Mon Feb 16 19:20:51 1987 X--- ./usr/src/usr.bin/ratfor/r2.c Sat May 9 05:50:53 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)r2.c 1.2 (Berkeley) 8/11/83"; X #endif X X #include "r.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)r2.c 1.3 (2.11BSD) 2026/5/9"; X #endif X X #include "r.h" X*** ./usr/src/usr.bin/ratfor/rio.c.old Mon Feb 16 19:20:52 1987 X--- ./usr/src/usr.bin/ratfor/rio.c Sat May 9 05:51:17 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)rio.c 1.2 (Berkeley) 8/11/83"; X #endif X X #include "r.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)rio.c 1.3 (2.11BSD) 2026/5/9"; X #endif X X #include "r.h" X*** ./usr/src/usr.bin/ratfor/rlex.c.old Mon Feb 16 19:20:52 1987 X--- ./usr/src/usr.bin/ratfor/rlex.c Sat May 9 05:51:42 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)rlex.c 1.2 (Berkeley) 8/11/83"; X #endif X X # include "r.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)rlex.c 1.3 (2.11BSD) 2026/5/9"; X #endif X X # include "r.h" X*** ./usr/src/usr.bin/ratfor/rlook.c.old Mon Feb 16 19:20:52 1987 X--- ./usr/src/usr.bin/ratfor/rlook.c Sat May 9 05:52:07 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)rlook.c 1.2 (Berkeley) 8/11/83"; X #endif X X #define NULL 0 X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)rlook.c 1.3 (2.11BSD) 2026/5/9"; X #endif X X #define NULL 0 X*** ./usr/src/usr.bin/tbl/t0.c.old Mon Feb 16 19:20:52 1987 X--- ./usr/src/usr.bin/tbl/t0.c Sat May 9 07:25:24 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)t0.c 4.2 8/11/83"; X #endif X X /* t0.c: storage allocation */ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)t0.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X /* t0.c: storage allocation */ X*** ./usr/src/usr.bin/tbl/t2.c.old Mon Feb 16 19:20:53 1987 X--- ./usr/src/usr.bin/tbl/t2.c Sat May 9 07:25:49 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)t2.c 4.2 8/11/83"; X #endif X X /* t2.c: subroutine sequencing for one table */ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)t2.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X /* t2.c: subroutine sequencing for one table */ X*** ./usr/src/usr.bin/tbl/t3.c.old Mon Feb 16 19:20:53 1987 X--- ./usr/src/usr.bin/tbl/t3.c Sat May 9 07:26:28 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)t3.c 4.2 8/11/83"; X #endif X X /* t3.c: interpret commands affecting whole table */ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)t3.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X /* t3.c: interpret commands affecting whole table */ X*** ./usr/src/usr.bin/tbl/t4.c.old Mon Feb 16 19:20:53 1987 X--- ./usr/src/usr.bin/tbl/t4.c Sat May 9 07:26:46 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)t4.c 4.2 8/11/83"; X #endif X X /* t4.c: read table specification */ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)t4.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X /* t4.c: read table specification */ X*** ./usr/src/usr.bin/tbl/t5.c.old Mon Feb 16 19:20:53 1987 X--- ./usr/src/usr.bin/tbl/t5.c Sat May 9 07:27:14 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)t5.c 4.3 9/14/85"; X #endif X X /* t5.c: read data for table */ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)t5.c 4.4 (2.11BSD) 2026/5/9"; X #endif X X /* t5.c: read data for table */ X*** ./usr/src/usr.bin/tbl/t6.c.old Mon Feb 16 19:20:53 1987 X--- ./usr/src/usr.bin/tbl/t6.c Sat May 9 07:27:58 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)t6.c 4.3 1/23/85"; X #endif X X /* t6.c: compute tab stops */ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)t6.c 4.4 (2.11BSD) 2026/5/9"; X #endif X X /* t6.c: compute tab stops */ X*** ./usr/src/usr.bin/tbl/t7.c.old Mon Feb 16 19:20:53 1987 X--- ./usr/src/usr.bin/tbl/t7.c Sat May 9 07:28:21 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)t7.c 4.3 8/11/83"; X #endif X X /* t7.c: control to write table entries */ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)t7.c 4.4 (2.11BSD) 2026/5/9"; X #endif X X /* t7.c: control to write table entries */ X*** ./usr/src/usr.bin/tbl/t8.c.old Mon Jan 18 12:37:15 1993 X--- ./usr/src/usr.bin/tbl/t8.c Sat May 9 07:28:40 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)t8.c 4.2 8/11/83"; X #endif X X /* t8.c: write out one line of output table */ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)t8.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X /* t8.c: write out one line of output table */ X*** ./usr/src/usr.bin/tbl/tb.c.old Mon Jan 18 12:37:17 1993 X--- ./usr/src/usr.bin/tbl/tb.c Sat May 9 07:28:58 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)tb.c 4.3 9/14/85"; X #endif X X /* tb.c: check which entries exist, also storage allocation */ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)tb.c 4.4 (2.11BSD) 2026/5/9"; X #endif X X /* tb.c: check which entries exist, also storage allocation */ X*** ./usr/src/usr.bin/tbl/tc.c.old Mon Feb 16 19:20:54 1987 X--- ./usr/src/usr.bin/tbl/tc.c Sat May 9 07:29:18 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)tc.c 4.2 8/11/83"; X #endif X X /* tc.c: find character not in table to delimit fields */ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)tc.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X /* tc.c: find character not in table to delimit fields */ X*** ./usr/src/usr.bin/tbl/te.c.old Mon Jan 18 12:37:18 1993 X--- ./usr/src/usr.bin/tbl/te.c Sat May 9 07:29:43 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)te.c 4.2 8/11/83"; X #endif X X /* te.c: error message control, input line count */ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)te.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X /* te.c: error message control, input line count */ X*** ./usr/src/usr.bin/tbl/tf.c.old Mon Feb 16 19:20:54 1987 X--- ./usr/src/usr.bin/tbl/tf.c Sat May 9 07:30:04 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)tf.c 4.2 8/11/83"; X #endif X X /* tf.c: save and restore fill mode around table */ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)tf.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X /* tf.c: save and restore fill mode around table */ X*** ./usr/src/usr.bin/tbl/tg.c.old Mon Feb 16 19:20:54 1987 X--- ./usr/src/usr.bin/tbl/tg.c Sat May 9 07:30:28 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)tg.c 4.2 8/11/83"; X #endif X X /* tg.c: process included text blocks */ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)tg.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X /* tg.c: process included text blocks */ X*** ./usr/src/usr.bin/tbl/ti.c.old Mon Feb 16 19:20:54 1987 X--- ./usr/src/usr.bin/tbl/ti.c Sat May 9 07:30:56 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)ti.c 4.2 8/11/83"; X #endif X X /* ti.c: classify line intersections */ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ti.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X /* ti.c: classify line intersections */ X*** ./usr/src/usr.bin/tbl/tm.c.old Mon Jan 18 12:37:19 1993 X--- ./usr/src/usr.bin/tbl/tm.c Sat May 9 07:31:13 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)tm.c 4.2 8/11/83"; X #endif X X /* tm.c: split numerical fields */ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)tm.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X /* tm.c: split numerical fields */ X*** ./usr/src/usr.bin/tbl/ts.c.old Mon Feb 16 19:20:55 1987 X--- ./usr/src/usr.bin/tbl/ts.c Sat May 9 07:32:21 2026 X*************** X*** 1,10 **** X! #ifndef lint X! static char sccsid[] = "@(#)ts.c 4.2 8/11/83"; X #endif X X /* ts.c: minor string processing subroutines */ X match (s1, s2) X! char *s1, *s2; X { X while (*s1 == *s2) X if (*s1++ == '\0') X--- 1,10 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ts.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X /* ts.c: minor string processing subroutines */ X match (s1, s2) X! register char *s1, *s2; X { X while (*s1 == *s2) X if (*s1++ == '\0') X*************** X*** 14,20 **** X return(0); X } X prefix(small, big) X! char *small, *big; X { X int c; X while ((c= *small++) == *big++) X--- 14,20 ---- X return(0); X } X prefix(small, big) X! register char *small, *big; X { X int c; X while ((c= *small++) == *big++) X*************** X*** 30,39 **** X return(0); X } X numb(str) X! char *str; X { X /* convert to integer */ X! int k; X for (k=0; *str >= '0' && *str <= '9'; str++) X k = k*10 + *str - '0'; X return(k); X--- 30,40 ---- X return(0); X } X numb(str) X! register char *str; X { X /* convert to integer */ X! register int k; X! X for (k=0; *str >= '0' && *str <= '9'; str++) X k = k*10 + *str - '0'; X return(k); X*************** X*** 47,53 **** X return( a>b ? a : b); X } X tcopy (s,t) X! char *s, *t; X { X while (*s++ = *t++); X } X--- 48,54 ---- X return( a>b ? a : b); X } X tcopy (s,t) X! register char *s, *t; X { X while (*s++ = *t++); X } X*** ./usr/src/usr.bin/tbl/tt.c.old Mon Feb 16 19:20:55 1987 X--- ./usr/src/usr.bin/tbl/tt.c Sat May 9 07:33:05 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)tt.c 4.2 8/11/83"; X #endif X X /* tt.c: subroutines for drawing horizontal lines */ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)tt.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X /* tt.c: subroutines for drawing horizontal lines */ X*************** X*** 24,30 **** X } X lspan(i,c) X { X! int k; X if (ctype(i,c) != 's') return(0); X c++; X if (c < ncol && ctype(i,c)== 's') X--- 24,31 ---- X } X lspan(i,c) X { X! register int k; X! X if (ctype(i,c) != 's') return(0); X c++; X if (c < ncol && ctype(i,c)== 's') X*************** X*** 34,40 **** X } X ctspan(i,c) X { X! int k; X c++; X for(k=1; c X- # ifdef gcos X- /* required by GCOS because file is passed to "tbl" by troff preprocessor */ X- # define _f1 _f X- extern FILE *_f[]; X- # endif X X- # ifdef unix X # define MACROS "/usr/share/tmac/tmac.s" X # define PYMACS "/usr/share/tmac/tmac.m" X- # endif X X- # ifdef gcos X- # define MACROS "cc/troff/smac" X- # define PYMACS "cc/troff/mmac" X- # endif X- X # define ever (;;) X X main(argc,argv) X char *argv[]; X { X! # ifdef unix X! int badsig(); X signal(SIGPIPE, badsig); X- # endif X- # ifdef gcos X- if(!intss()) tabout = fopen("qq", "w"); /* default media code is type 5 */ X- # endif X exit(tbl(argc,argv)); X } X X--- 6,22 ---- X # X # include "t..c" X #include X X # define MACROS "/usr/share/tmac/tmac.s" X # define PYMACS "/usr/share/tmac/tmac.m" X X # define ever (;;) X X main(argc,argv) X char *argv[]; X { X! void badsig(); X signal(SIGPIPE, badsig); X exit(tbl(argc,argv)); X } X X*** ./usr/src/usr.bin/refer/deliv1.c.old Mon Feb 16 19:20:55 1987 X--- ./usr/src/usr.bin/refer/deliv1.c Wed Jan 28 15:08:14 2026 X*************** X*** 1,14 **** X! #ifndef lint X! static char *sccsid = "@(#)deliv1.c 4.1 (Berkeley) 5/6/83"; X #endif X X #include X X main(argc, argv) /* goes from file:begin,l to actual characters */ X char *argv[]; X { X! FILE *fopen(), *fa = NULL; X! char line[750], *p, name[100], *strcpy(); X long lp; X int len; X X--- 1,16 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)deliv1.c 4.2 (2.11BSD) 2026/1/28"; X #endif X X #include X+ #include X X main(argc, argv) /* goes from file:begin,l to actual characters */ X char *argv[]; X { X! FILE *fa = NULL; X! char line[750], name[100]; X! register char *p; X long lp; X int len; X X*************** X*** 15,22 **** X if (argc > 1 && argv[1] && argv[1][0]) X chdir(argv[1]); X name[0] = NULL; X! while (gets(line)) X { X if (line[0] == '$' && line[1] == '$') X { X chdir(line+2); X--- 17,27 ---- X if (argc > 1 && argv[1] && argv[1][0]) X chdir(argv[1]); X name[0] = NULL; X! while (fgets(line, sizeof line, stdin)) X { X+ p = index(line, '\0'); X+ if (p) *p = '\0'; X+ X if (line[0] == '$' && line[1] == '$') X { X chdir(line+2); X*** ./usr/src/usr.bin/refer/addbib.c.old Mon Feb 16 19:21:00 1987 X--- ./usr/src/usr.bin/refer/addbib.c Sat May 9 06:14:01 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)addbib.c 4.2 (Berkeley) 11/2/84"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)addbib.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X #include X*************** X*** 37,43 **** X int argc; X char *argv[]; X { X! FILE *fp, *fopen(); X int i; X X if (argc == 1) X--- 37,43 ---- X int argc; X char *argv[]; X { X! FILE *fp; X int i; X X if (argc == 1) X*** ./usr/src/usr.bin/refer/annobib.c.old Mon Feb 16 19:21:00 1987 X--- ./usr/src/usr.bin/refer/annobib.c Sat May 9 06:14:31 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)annobib.c 4.1 (Berkeley) 5/6/83"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)annobib.c 4.2 (2.11BSD) 2026/5/9"; X #endif X X /* X*************** X*** 15,21 **** X int argc; X char *argv[]; X { X! FILE *fp, *fopen(); X X if (argv[1][0] == '-' && argv[1][1] == 'x') X { X--- 15,21 ---- X int argc; X char *argv[]; X { X! FILE *fp; X X if (argv[1][0] == '-' && argv[1][1] == 'x') X { X*** ./usr/src/usr.bin/refer/deliv2.c.old Mon Feb 16 19:20:56 1987 X--- ./usr/src/usr.bin/refer/deliv2.c Sat May 9 06:15:04 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)deliv2.c 4.1 (Berkeley) 5/6/83"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)deliv2.c 4.2 (2.11BSD) 2026/5/9"; X #endif X X #include X*** ./usr/src/usr.bin/refer/flagger.c.old Mon Feb 16 19:20:56 1987 X--- ./usr/src/usr.bin/refer/flagger.c Sat May 9 06:15:28 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)flagger.c 4.1 (Berkeley) 5/6/83"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)flagger.c 4.2 (2.11BSD) 2026/5/9"; X #endif X X #include X*** ./usr/src/usr.bin/refer/glue1.c.old Mon Dec 26 03:50:50 1988 X--- ./usr/src/usr.bin/refer/glue1.c Sat May 9 06:15:55 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)glue1.c 4.3 (Berkeley) 3/4/86"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)glue1.c 4.4 (2.11BSD) 2026/5/9"; X #endif X X #include X*** ./usr/src/usr.bin/refer/glue2.c.old Mon Feb 16 19:20:56 1987 X--- ./usr/src/usr.bin/refer/glue2.c Sat May 9 06:16:12 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)glue2.c 4.1 (Berkeley) 5/6/83"; X #endif X X char refdir[50]; X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)glue2.c 4.2 (2.11BSD) 2026/5/9"; X #endif X X char refdir[50]; X*** ./usr/src/usr.bin/refer/glue4.c.old Sun Mar 8 23:14:11 1987 X--- ./usr/src/usr.bin/refer/glue4.c Sat May 9 06:16:41 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)glue4.c 4.1 (Berkeley) 5/6/83"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)glue4.c 4.2 (2.11BSD) 2026/5/9"; X #endif X X #include X*** ./usr/src/usr.bin/refer/hunt1.c.old Tue Jun 14 14:10:02 1988 X--- ./usr/src/usr.bin/refer/hunt1.c Sat May 9 06:17:03 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)hunt1.c 4.3 (Berkeley) 1/9/85"; X #endif X X # include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)hunt1.c 4.4 (2.11BSD) 2026/5/9"; X #endif X X # include X*** ./usr/src/usr.bin/refer/hunt3.c.old Mon Feb 16 19:20:57 1987 X--- ./usr/src/usr.bin/refer/hunt3.c Sat May 9 06:17:22 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)hunt3.c 4.2 (Berkeley) 6/28/83"; X #endif X X #include "refer..c" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)hunt3.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X #include "refer..c" X*** ./usr/src/usr.bin/refer/hunt5.c.old Mon Feb 16 19:20:57 1987 X--- ./usr/src/usr.bin/refer/hunt5.c Sat May 9 06:17:48 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)hunt5.c 4.2 (Berkeley) 1/9/85"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)hunt5.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X #include X*** ./usr/src/usr.bin/refer/hunt6.c.old Mon Feb 16 19:20:57 1987 X--- ./usr/src/usr.bin/refer/hunt6.c Sat May 9 06:18:05 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)hunt6.c 4.2 (Berkeley) 1/9/85"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)hunt6.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X #include X*** ./usr/src/usr.bin/refer/hunt7.c.old Mon Feb 16 19:20:57 1987 X--- ./usr/src/usr.bin/refer/hunt7.c Sat May 9 06:18:24 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)hunt7.c 4.1 (Berkeley) 5/6/83"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)hunt7.c 4.2 (2.11BSD) 2026/5/9"; X #endif X X #include X*** ./usr/src/usr.bin/refer/hunt9.c.old Mon Feb 16 19:20:57 1987 X--- ./usr/src/usr.bin/refer/hunt9.c Sat May 9 06:18:41 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)hunt9.c 4.1 (Berkeley) 5/6/83"; X #endif X X remote(in, out) X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)hunt9.c 4.2 (2.11BSD) 2026/5/9"; X #endif X X remote(in, out) X*** ./usr/src/usr.bin/refer/inv1.c.old Mon Feb 16 19:20:57 1987 X--- ./usr/src/usr.bin/refer/inv1.c Sat May 9 06:19:07 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)inv1.c 4.2 (Berkeley) 3/4/86"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)inv1.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X #include X*** ./usr/src/usr.bin/refer/inv2.c.old Mon Feb 16 19:20:58 1987 X--- ./usr/src/usr.bin/refer/inv2.c Sat May 9 06:19:25 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)inv2.c 4.1 (Berkeley) 5/6/83"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)inv2.c 4.2 (2.11BSD) 2026/5/9"; X #endif X X #include X*** ./usr/src/usr.bin/refer/inv3.c.old Mon Feb 16 19:20:58 1987 X--- ./usr/src/usr.bin/refer/inv3.c Sat May 9 06:19:44 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)inv3.c 4.1 (Berkeley) 5/6/83"; X #endif X X getargs(s, arps) X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)inv3.c 4.2 (2.11BSD) 2026/5/9"; X #endif X X getargs(s, arps) X*** ./usr/src/usr.bin/refer/inv6.c.old Mon Feb 16 19:20:58 1987 X--- ./usr/src/usr.bin/refer/inv6.c Sat May 9 06:20:22 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)inv6.c 4.2 (Berkeley) 1/9/85"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)inv6.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X #include X*** ./usr/src/usr.bin/refer/mkey2.c.old Sun Mar 8 23:08:17 1987 X--- ./usr/src/usr.bin/refer/mkey2.c Sat May 9 06:20:44 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)mkey2.c 4.1 (Berkeley) 5/6/83"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)mkey2.c 4.2 (2.11BSD) 2026/5/9"; X #endif X X #include X*** ./usr/src/usr.bin/refer/refer0.c.old Mon Feb 16 19:20:59 1987 X--- ./usr/src/usr.bin/refer/refer0.c Sat May 9 06:21:12 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)refer0.c 4.1 (Berkeley) 5/6/83"; X #endif X X #include "refer..c" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)refer0.c 4.2 (2.11BSD) 2026/5/9"; X #endif X X #include "refer..c" X*** ./usr/src/usr.bin/refer/refer1.c.old Mon Feb 16 19:20:59 1987 X--- ./usr/src/usr.bin/refer/refer1.c Mon Sep 21 23:48:01 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)refer1.c 4.3 (Berkeley) 4/23/86"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)refer1.c 4.4 (2.11BSD) 2026/5/9"; X #endif X X #include X*************** X*** 134,140 **** X exit(0); X } X X! extern int intr(); X X signals() X { X--- 134,146 ---- X exit(0); X } X X! void X! intr() X! { X! signal(SIGINT, SIG_IGN); X! cleanup(); X! exit(1); X! } X X signals() X { X*************** X*** 143,155 **** X signal(SIGHUP, intr); X signal(SIGPIPE, intr); X signal(SIGTERM, intr); X- } X- X- intr() X- { X- signal(SIGINT, SIG_IGN); X- cleanup(); X- exit(1); X } X X cleanup() X--- 149,154 ---- X*** ./usr/src/usr.bin/refer/refer2.c.old Mon Dec 26 03:52:30 1988 X--- ./usr/src/usr.bin/refer/refer2.c Sat May 9 06:21:48 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)refer2.c 4.2 (Berkeley) 6/5/84"; X #endif X X #include "refer..c" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)refer2.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X #include "refer..c" X*** ./usr/src/usr.bin/refer/refer3.c.old Mon Feb 16 19:20:59 1987 X--- ./usr/src/usr.bin/refer/refer3.c Sat May 9 06:22:10 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)refer3.c 4.2 (Berkeley) 8/26/85"; X #endif X X #include "refer..c" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)refer3.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X #include "refer..c" X*** ./usr/src/usr.bin/refer/refer4.c.old Mon Feb 16 19:20:59 1987 X--- ./usr/src/usr.bin/refer/refer4.c Sat May 9 06:22:27 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)refer4.c 4.1 (Berkeley) 5/6/83"; X #endif X X #include "refer..c" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)refer4.c 4.2 (2.11BSD) 2026/5/9"; X #endif X X #include "refer..c" X*** ./usr/src/usr.bin/refer/refer6.c.old Mon Feb 16 19:20:59 1987 X--- ./usr/src/usr.bin/refer/refer6.c Sat May 9 06:22:43 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)refer6.c 4.1 (Berkeley) 5/6/83"; X #endif X X #include "refer..c" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)refer6.c 4.2 (2.11BSD) 2026/5/9"; X #endif X X #include "refer..c" X*** ./usr/src/usr.bin/refer/refer7.c.old Mon Feb 16 19:20:59 1987 X--- ./usr/src/usr.bin/refer/refer7.c Mon Sep 14 15:01:52 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)refer7.c 4.3 (Berkeley) 4/23/86"; X #endif X X #include "refer..c" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)refer7.c 4.4 (2.11BSD) 2026/5/9"; X #endif X X #include "refer..c" X*************** X*** 85,91 **** X int wsize = 50; X int finalrn; X char sig[MXSIG]; X- extern int *realloc(); X X wref = (int *)calloc((unsigned)wsize, (unsigned)sizeof(int)); X fclose(ftemp); X--- 85,90 ---- X*** ./usr/src/usr.bin/refer/refer8.c.old Mon Feb 16 19:21:00 1987 X--- ./usr/src/usr.bin/refer/refer8.c Sat May 9 06:23:46 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)refer8.c 4.1 (Berkeley) 5/6/83"; X #endif X X #include "refer..c" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)refer8.c 4.2 (2.11BSD) 2026/5/9"; X #endif X X #include "refer..c" X*************** X*** 33,39 **** X } X X addch(s, c) X! char *s; X { X while (*s) X s++; X--- 33,39 ---- X } X X addch(s, c) X! register char *s; X { X while (*s) X s++; X*** ./usr/src/usr.bin/refer/shell.c.old Mon Feb 16 19:20:59 1987 X--- ./usr/src/usr.bin/refer/shell.c Sat May 9 06:24:06 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)shell.c 4.1 (Berkeley) 5/6/83"; X #endif X /* X * SORTS UP. X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)shell.c 4.2 (2.11BSD) 2026/5/9"; X #endif X /* X * SORTS UP. X*** ./usr/src/usr.bin/refer/tick.c.old Mon Feb 16 19:21:00 1987 X--- ./usr/src/usr.bin/refer/tick.c Sat May 9 06:24:28 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)tick.c 4.2 (Berkeley) 8/11/83"; X #endif X X /* time programs */ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)tick.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X /* time programs */ X*** ./usr/src/usr.bin/refer/glue5.c.old Tue Jan 11 01:45:57 1994 X--- ./usr/src/usr.bin/refer/glue5.c Mon Sep 14 14:58:24 2026 X*************** X*** 1,5 **** X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)glue5.c 4.2.1 (2.11BSD GTE) 1/1/94"; X #endif X X #include X--- 1,5 ---- X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)glue5.c 4.2.2 (2.11BSD) 2026/9/14"; X #endif X X #include X*************** X*** 12,24 **** X * 1 - ok, but no matches X * 2 - some error X */ X- #ifdef pdp11 X #define MAXSIZ 350 X #define QSIZE 200 X- #else X- #define MAXSIZ 700 X- #define QSIZE 400 X- #endif X struct words { X char inp; X char out; X--- 12,19 ---- X*** ./usr/src/usr.bin/refer/refer5.c.old Tue Jan 11 01:46:40 1994 X--- ./usr/src/usr.bin/refer/refer5.c Mon Sep 14 14:59:14 2026 X*************** X*** 1,16 **** X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)refer5.c 4.7.1 (2.11BSD GTE) 1/1/94"; X #endif X X #include "refer..c" X #define SAME 0 X- #ifdef pdp11 X #define NFLAB 1500 /* number of bytes to record all labels */ X #define NLABC 500 /* max number of labels */ X- #else X- #define NFLAB 3000 /* number of bytes to record all labels */ X- #define NLABC 1000 /* max number of labels */ X- #endif X X static char sig[MXSIG]; X static char bflab[NFLAB]; X--- 1,11 ---- X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)refer5.c 4.7.2 (2.11BSD) 2026/9/14"; X #endif X X #include "refer..c" X #define SAME 0 X #define NFLAB 1500 /* number of bytes to record all labels */ X #define NLABC 500 /* max number of labels */ X X static char sig[MXSIG]; X static char bflab[NFLAB]; X*** ./usr/src/usr.bin/refer/refer..c.old Fri Dec 26 18:29:30 2025 X--- ./usr/src/usr.bin/refer/refer..c Mon Sep 14 15:01:03 2026 X*************** X*** 1,5 **** X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)refer..c 4.5 (2.11BSD) 2025/12/26"; X #endif X X #include X--- 1,5 ---- X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)refer..c 4.5 (2.11BSD) 2026/9/14"; X #endif X X #include X*************** X*** 8,20 **** X X #define FLAG 003 X #define AFLAG 007 X! #ifdef pdp11 X #define NRFTXT 5000 X #define NRFTBL 250 X! #else X! #define NRFTXT 10000 X! #define NRFTBL 500 X! #endif X #define NTFILE 20 X #define QLEN 512 X #define ANSLEN 1024 X--- 8,17 ---- X X #define FLAG 003 X #define AFLAG 007 X! X #define NRFTXT 5000 X #define NRFTBL 250 X! X #define NTFILE 20 X #define QLEN 512 X #define ANSLEN 1024 X*************** X*** 47,50 **** X extern char *artskp(),*fpar(); X extern char *trimnl(); X X! extern char *getenv(), *strcpy(), *strcat(); X--- 44,48 ---- X extern char *artskp(),*fpar(); X extern char *trimnl(); X X! #include X! #include X*** ./usr/src/usr.bin/refer/Makefile.old Fri Jan 2 21:31:24 2026 X--- ./usr/src/usr.bin/refer/Makefile Wed Jan 28 14:57:43 2026 X*************** X*** 1,16 **** X! # @(#)Makefile 4.5.2 (2.11BSD) 2025/11/25 X # X CFLAGS = -O X LDFLAGS= -i X X! all: mkey inv hunt refer addbib lookbib sortbib X X mkey: mkey1.o mkey2.o mkey3.o deliv2.o X cc ${LDFLAGS} mkey?.o deliv2.o -o mkey X inv: inv1.o inv2.o inv3.o inv5.o inv6.o deliv2.o X cc ${LDFLAGS} inv?.o deliv2.o -o inv X! hunt: hunt1.o hunt2.o hunt3.o hunt5.o hunt6.o hunt7.o glue5.o X! hunt: refer3.o hunt9.o shell.o deliv2.o hunt8.o glue4.o tick.o X cc ${LDFLAGS} hunt?.o refer3.o glue5.o glue4.o shell.o deliv2.o tick.o -o hunt X X glue3.o: refer..c X--- 1,18 ---- X! # @(#)Makefile 4.5.3 (2.11BSD) 2026/1/28 X # X CFLAGS = -O X LDFLAGS= -i X X! all: deliv mkey inv hunt refer addbib lookbib sortbib X X+ deliv: deliv1.o deliv2.o X+ cc ${LDFLAGS} deliv?.o -o deliv X mkey: mkey1.o mkey2.o mkey3.o deliv2.o X cc ${LDFLAGS} mkey?.o deliv2.o -o mkey X inv: inv1.o inv2.o inv3.o inv5.o inv6.o deliv2.o X cc ${LDFLAGS} inv?.o deliv2.o -o inv X! hunt: hunt1.o hunt2.o hunt3.o hunt5.o hunt6.o hunt7.o glue5.o \ X! refer3.o hunt9.o shell.o deliv2.o hunt8.o glue4.o tick.o X cc ${LDFLAGS} hunt?.o refer3.o glue5.o glue4.o shell.o deliv2.o tick.o -o hunt X X glue3.o: refer..c X*************** X*** 23,31 **** X refer4.o: refer..c X refer6.o: refer..c X refer5.o: refer..c X! refer: glue1.o refer1.o refer2.o refer4.o refer5.o refer6.o mkey3.o X! refer: refer7.o refer8.o hunt2.o hunt3.o deliv2.o hunt5.o hunt6.o hunt8.o X! refer: glue3.o hunt7.o hunt9.o glue2.o glue4.o glue5.o refer0.o shell.o X cc ${LDFLAGS} glue?.o refer[01245678].o hunt[2356789].o mkey3.o \ X shell.o deliv2.o -o refer X X--- 25,33 ---- X refer4.o: refer..c X refer6.o: refer..c X refer5.o: refer..c X! refer: glue1.o refer1.o refer2.o refer4.o refer5.o refer6.o mkey3.o \ X! refer7.o refer8.o hunt2.o hunt3.o deliv2.o hunt5.o hunt6.o hunt8.o \ X! glue3.o hunt7.o hunt9.o glue2.o glue4.o glue5.o refer0.o shell.o X cc ${LDFLAGS} glue?.o refer[01245678].o hunt[2356789].o mkey3.o \ X shell.o deliv2.o -o refer X X*************** X*** 39,44 **** X--- 41,47 ---- X install: all /usr/dict/papers X -mkdir -p /usr/libexec/refer X chmod 755 /usr/libexec/refer X+ install -c -s -m 755 deliv /usr/libexec/refer X install -c -s -m 755 mkey /usr/libexec/refer X install -c -s -m 755 inv /usr/libexec/refer X install -c -s -m 755 hunt /usr/libexec/refer X*************** X*** 52,63 **** X (cd /usr/dict/papers; /bin/sh runinv) X X clean: X! rm -f refer inv hunt mkey addbib lookbib sortbib *.o X! X! whatabout: what1.o what2.o what3.o what4.o shell.o mkey3.o X! cc ${LDFLAGS} what?.o shell.o mkey3.o -o whatabout X! deliv: deliv1.o deliv2.o X! cc ${LDFLAGS} deliv?.o -o deliv X! refpart: refer0.o refer1.o refer2.o refer3.o refer4.o refer5.o X! refpart: refer6.o refer7.o refer8.o deliv2.o glue4.o X! cc ${LDFLAGS} refer?.o deliv2.o glue4.o -o refpart X--- 55,58 ---- X (cd /usr/dict/papers; /bin/sh runinv) X X clean: X! rm -f refer inv hunt deliv mkey addbib lookbib sortbib *.o X*** ./usr/src/usr.bin/refer/hunt2.c.old Fri Dec 26 18:27:50 2025 X--- ./usr/src/usr.bin/refer/hunt2.c Thu Sep 17 10:22:40 2026 X*************** X*** 242,249 **** X # endif X if (colevel) X { X! free(prevdrop, lmaster, iflong?sizeof(long): sizeof(int)); X! free(prevcoord, lmaster, sizeof (lmaster)); X } X # if D3 X for(g=0;g X #include X #define BUF BUFSIZ X #define MXFILES 16 X X--- 1,11 ---- X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)sortbib.c 4.3 (2.11BSD) 2026/9/21"; X #endif X X #include X #include X+ #include X+ X #define BUF BUFSIZ X #define MXFILES 16 X X*************** X*** 16,24 **** X int argc; X char *argv[]; X { X! FILE *fp[MXFILES], *tfp, *fopen(); X! int i, onintr(); X! char *mktemp(); X X if (argc == 1) /* can't use stdin for seeking anyway */ X { X--- 18,26 ---- X int argc; X char *argv[]; X { X! FILE *fp[MXFILES], *tfp; X! int i; X! void onintr(); X X if (argc == 1) /* can't use stdin for seeking anyway */ X { X*** ./usr/src/usr.bin/eqn/diacrit.c.old Mon Feb 16 19:21:12 1987 X--- ./usr/src/usr.bin/eqn/diacrit.c Sat May 9 05:32:24 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)diacrit.c 4.3 8/11/83"; X #endif X X # include "e.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)diacrit.c 4.4 (2.11BSD) 2026/5/9"; X #endif X X # include "e.h" X*** ./usr/src/usr.bin/eqn/eqnbox.c.old Mon Feb 16 19:21:12 1987 X--- ./usr/src/usr.bin/eqn/eqnbox.c Sat May 9 05:32:50 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)eqnbox.c 4.2 8/11/83"; X #endif X X # include "e.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)eqnbox.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X # include "e.h" X*** ./usr/src/usr.bin/eqn/font.c.old Mon Feb 16 19:21:12 1987 X--- ./usr/src/usr.bin/eqn/font.c Sat May 9 05:33:20 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)font.c 4.3 8/11/83"; X #endif X X # include "e.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)font.c 4.4 (2.11BSD) 2026/5/9"; X #endif X X # include "e.h" X*** ./usr/src/usr.bin/eqn/fromto.c.old Mon Feb 16 19:21:12 1987 X--- ./usr/src/usr.bin/eqn/fromto.c Sat May 9 05:33:44 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)fromto.c 4.3 8/11/83"; X #endif X X # include "e.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)fromto.c 4.4 (2.11BSD) 2026/5/9"; X #endif X X # include "e.h" X*** ./usr/src/usr.bin/eqn/funny.c.old Mon Feb 16 19:21:12 1987 X--- ./usr/src/usr.bin/eqn/funny.c Sat May 9 05:34:14 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)funny.c 4.3 8/11/83"; X #endif X X # include "e.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)funny.c 4.4 (2.11BSD) 2026/5/9"; X #endif X X # include "e.h" X*** ./usr/src/usr.bin/eqn/glob.c.old Mon Feb 16 19:21:13 1987 X--- ./usr/src/usr.bin/eqn/glob.c Sat May 9 05:34:38 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)glob.c 4.2 8/11/83"; X #endif X X #include "e.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)glob.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X #include "e.h" X*** ./usr/src/usr.bin/eqn/io.c.old Mon Feb 16 19:21:13 1987 X--- ./usr/src/usr.bin/eqn/io.c Sat May 9 05:35:39 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)io.c 4.4 9/3/83"; X #endif X X # include "e.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)io.c 4.5 2026/5/9"; X #endif X X # include "e.h" X*** ./usr/src/usr.bin/eqn/integral.c.old Mon Feb 16 19:21:13 1987 X--- ./usr/src/usr.bin/eqn/integral.c Sat May 9 05:35:15 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)integral.c 4.3 8/11/83"; X #endif X X # include "e.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)integral.c 4.4 (2.11BSD) 2026/5/9"; X #endif X X # include "e.h" X*** ./usr/src/usr.bin/eqn/lex.c.old Mon Feb 16 19:21:13 1987 X--- ./usr/src/usr.bin/eqn/lex.c Sat May 9 05:36:07 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)lex.c 4.3 9/3/83"; X #endif X X #include "e.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)lex.c 4.4 (2.11BSD) 2026/5/9"; X #endif X X #include "e.h" X*** ./usr/src/usr.bin/eqn/lookup.c.old Mon Feb 16 19:21:13 1987 X--- ./usr/src/usr.bin/eqn/lookup.c Sat May 9 05:36:31 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)lookup.c 4.2 8/11/83"; X #endif X X # include "e.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)lookup.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X # include "e.h" X*** ./usr/src/usr.bin/eqn/mark.c.old Mon Feb 16 19:21:13 1987 X--- ./usr/src/usr.bin/eqn/mark.c Sat May 9 05:36:56 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)mark.c 4.2 8/11/83"; X #endif X X #include "e.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)mark.c 4.3 2026/5/9"; X #endif X X #include "e.h" X*** ./usr/src/usr.bin/eqn/matrix.c.old Mon Feb 16 19:21:13 1987 X--- ./usr/src/usr.bin/eqn/matrix.c Sat May 9 05:37:20 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)matrix.c 4.2 8/11/83"; X #endif X X #include "e.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)matrix.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X #include "e.h" X*** ./usr/src/usr.bin/eqn/move.c.old Mon Feb 16 19:21:13 1987 X--- ./usr/src/usr.bin/eqn/move.c Sat May 9 05:37:52 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)move.c 4.3 8/11/83"; X #endif X X # include "e.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)move.c 4.4 (2.11BSD) 2026/5/9"; X #endif X X # include "e.h" X*** ./usr/src/usr.bin/eqn/over.c.old Mon Feb 16 19:21:13 1987 X--- ./usr/src/usr.bin/eqn/over.c Sat May 9 05:38:19 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)over.c 4.3 8/11/83"; X #endif X X # include "e.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)over.c 4.4 2026/5/9"; X #endif X X # include "e.h" X*** ./usr/src/usr.bin/eqn/paren.c.old Mon Feb 16 19:21:14 1987 X--- ./usr/src/usr.bin/eqn/paren.c Sat May 9 05:38:51 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)paren.c 4.3 8/11/83"; X #endif X X # include "e.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)paren.c 4.4 (2.11BSD) 2026/5/9"; X #endif X X # include "e.h" X*** ./usr/src/usr.bin/eqn/pile.c.old Mon Feb 16 19:21:14 1987 X--- ./usr/src/usr.bin/eqn/pile.c Sat May 9 05:39:18 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)pile.c 4.3 8/11/83"; X #endif X X # include "e.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)pile.c 4.4 (2.11BSD) 2026/5/9"; X #endif X X # include "e.h" X*** ./usr/src/usr.bin/eqn/shift.c.old Mon Feb 16 19:21:14 1987 X--- ./usr/src/usr.bin/eqn/shift.c Sat May 9 05:39:41 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)shift.c 4.3 8/11/83"; X #endif X X # include "e.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)shift.c 4.4 (2.11BSD) 2026/5/9"; X #endif X X # include "e.h" X*** ./usr/src/usr.bin/eqn/size.c.old Mon Feb 16 19:21:14 1987 X--- ./usr/src/usr.bin/eqn/size.c Sat May 9 05:40:08 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)size.c 4.2 8/11/83"; X #endif X X # include "e.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)size.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X # include "e.h" X*** ./usr/src/usr.bin/eqn/sqrt.c.old Mon Feb 16 19:21:14 1987 X--- ./usr/src/usr.bin/eqn/sqrt.c Sat May 9 05:40:33 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)sqrt.c 4.3 8/11/83"; X #endif X X # include "e.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)sqrt.c 4.4 (2.11BSD) 2026/5/9"; X #endif X X # include "e.h" X*** ./usr/src/usr.bin/eqn/text.c.old Mon Feb 16 19:21:14 1987 X--- ./usr/src/usr.bin/eqn/text.c Sat May 9 05:41:28 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)text.c 4.3 8/11/83"; X #endif X X # include "e.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)text.c 4.4 (2.11BSD) 2026/5/9"; X #endif X X # include "e.h" X*** ./usr/src/usr.bin/roff/troff_font/mkfont.c.old Tue Feb 16 12:02:02 1988 X--- ./usr/src/usr.bin/roff/troff_font/mkfont.c Sat May 9 06:27:26 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)mkfont.c 4.3 2/16/88"; X! #endif lint X X #include "mkfont1.c" X X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)mkfont.c 4.4 2026/5/9"; X! #endif X X #include "mkfont1.c" X X*** ./usr/src/usr.bin/roff/troff_font/mkfont1.c.old Fri Feb 19 12:38:27 1988 X--- ./usr/src/usr.bin/roff/troff_font/mkfont1.c Mon May 11 08:09:37 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char mkfont1sccsid[] = "@(#)mkfont1.c 4.3 2/16/88"; X! #endif lint X X #define BYTE 8 X #define PAIR(a,b) ((a)|((b)< X #include X #include X #define INF HUGE X #define F .25 X X--- 1,12 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)graph.c 4.3 (2.11BSD) 2026/5/8"; X #endif X X #include X #include X #include X+ #include X+ X #define INF HUGE X #define F .25 X X*************** X*** 44,50 **** X float dx; X char *plotsymb; X X- double atof(); X #define BSIZ 80 X char labbuf[BSIZ]; X char titlebuf[BSIZ]; X--- 46,51 ---- X*************** X*** 58,65 **** X "longdashed" X }; X int mode = 1; X- char *realloc(); X- char *malloc(); X X double ident(x) X double x; X--- 59,64 ---- X*** ./usr/src/usr.bin/learn/dounit.c.old Wed Mar 27 21:47:22 1985 X--- ./usr/src/usr.bin/learn/dounit.c Tue Jan 27 15:49:32 2026 X*************** X*** 1,9 **** X! #ifndef lint X! static char sccsid[] = "@(#)dounit.c 4.2 (Berkeley) 4/25/83"; X! #endif not lint X X #include "stdio.h" X #include "lrnref.h" X X int remind = 2; /* to remind user of "again" and "bye" */ X extern int noclobber; X--- 1,10 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dounit.c 4.3 (2.11BSD) 2026/1/27"; X! #endif X X #include "stdio.h" X #include "lrnref.h" X+ #include X X int remind = 2; /* to remind user of "again" and "bye" */ X extern int noclobber; X*************** X*** 11,16 **** X--- 12,18 ---- X dounit() X { X char tbuff[100]; X+ register char *cp; X X if (todo == 0) X return; X*************** X*** 48,54 **** X wrong > 1 ? "still " : ""); X fflush(stdout); X for(;;) { X! gets(tbuff); X if (tbuff[0] == 'y') { X printf("Try the problem again.\n"); X if (remind--) { X--- 50,59 ---- X wrong > 1 ? "still " : ""); X fflush(stdout); X for(;;) { X! tbuff[0] = '\0'; X! (void)fgets(tbuff, sizeof tbuff, stdin); X! cp = index(tbuff, '\n'); X! if (cp) *cp = '\0'; X if (tbuff[0] == 'y') { X printf("Try the problem again.\n"); X if (remind--) { X*** ./usr/src/usr.bin/learn/selsub.c.old Thu May 15 19:59:18 1986 X--- ./usr/src/usr.bin/learn/selsub.c Thu Sep 17 10:13:56 2026 X*************** X*** 1,11 **** X! #ifndef lint X! static char sccsid[] = "@(#)selsub.c 4.3 (Berkeley) 5/15/86"; X! #endif not lint X X #include "stdio.h" X #include "sys/types.h" X #include "sys/stat.h" X #include "lrnref.h" X X char learnrc[100]; X X--- 1,13 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)selsub.c 4.4 (2.11BSD) 2026/1/27"; X! #endif X X #include "stdio.h" X #include "sys/types.h" X #include "sys/stat.h" X #include "lrnref.h" X+ #include X+ #include X X char learnrc[100]; X X*************** X*** 17,24 **** X static char dirname[40]; X static char subname[40]; X FILE *fp; X- char *getenv(); X char *home; X X if (argc > 1 && argv[1][0] == '-') { X direct = argv[1]+1; X--- 19,26 ---- X static char dirname[40]; X static char subname[40]; X FILE *fp; X char *home; X+ register char *cp; X X if (argc > 1 && argv[1][0] == '-') { X direct = argv[1]+1; X*************** X*** 72,85 **** X printf("or if you have never used 'learn' before,\n"); X printf("press RETURN; otherwise type the name of\n"); X printf("the course you want, followed by RETURN.\n"); X! fflush(stdout); X! gets(sname=subname); X if (sname[0] == '\0') { X list("Xinfo"); X do { X printf("\nWhich subject? "); X! fflush(stdout); X! gets(sname=subname); X } while (sname[0] == '\0'); X } X } X--- 74,101 ---- X printf("or if you have never used 'learn' before,\n"); X printf("press RETURN; otherwise type the name of\n"); X printf("the course you want, followed by RETURN.\n"); X! X! sname = subname; X! if (fgets(sname, sizeof subname, stdin) == NULL) X! { X! printf("Bye.\n"); X! exit(0); X! } X! cp = index(sname, '\n'); X! if (cp) *cp = '\0'; X! X if (sname[0] == '\0') { X list("Xinfo"); X do { X printf("\nWhich subject? "); X! sname = subname; X! if (fgets(sname, sizeof subname, stdin) == NULL) X! { X! printf("Bye.\n"); X! exit(0); X! } X! cp = index(sname, '\n'); X! if (cp) *cp = '\0'; X } while (sname[0] == '\0'); X } X } X*************** X*** 93,100 **** X printf("you think might appear in the lesson you want,\n"); X printf("and I will look for the first lesson containing it.\n"); X printf("To start at the beginning, just hit RETURN.\n"); X! fflush(stdout); X! gets(ans2); X if (ans2[0]==0) X strcpy(ans2,"0"); X else X--- 109,120 ---- X printf("you think might appear in the lesson you want,\n"); X printf("and I will look for the first lesson containing it.\n"); X printf("To start at the beginning, just hit RETURN.\n"); X! X! ans2[0] = '\0'; X! (void)fgets(ans2, sizeof ans2, stdin); X! cp = index(ans2, '\n'); X! if (cp) *cp = '\0'; X! X if (ans2[0]==0) X strcpy(ans2,"0"); X else X*************** X*** 119,128 **** X } X /* after this point, we have a working directory. */ X /* have to call wrapup to clean up */ X! if (access(sprintf(ans1, "%s/%s/Init", direct, sname), 04)==0) X! if (system(sprintf(ans1, "%s/%s/Init %s", direct, sname, level)) != 0) { X printf("Leaving learn.\n"); X wrapup(1); X } X } X X--- 139,152 ---- X } X /* after this point, we have a working directory. */ X /* have to call wrapup to clean up */ X! sprintf(ans1, "%s/%s/Init", direct, sname); X! if (access(ans1, 04)==0) X! { X! sprintf(ans1, "%s/%s/Init %s", direct, sname, level); X! if (system(ans1) != 0) { X printf("Leaving learn.\n"); X wrapup(1); X+ } X } X } X X*** ./usr/src/usr.bin/learn/selunit.c.old Thu May 15 19:59:19 1986 X--- ./usr/src/usr.bin/learn/selunit.c Tue Jan 27 15:57:25 2026 X*************** X*** 1,9 **** X! #ifndef lint X! static char sccsid[] = "@(#)selunit.c 4.3 (Berkeley) 5/15/86"; X #endif not lint X X #include "stdio.h" X #include "lrnref.h" X X int nsave = 0; X int review = 0; X--- 1,10 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)selunit.c 4.4 (2.11BSD) 2026/1/27"; X #endif not lint X X #include "stdio.h" X #include "lrnref.h" X+ #include X X int nsave = 0; X int review = 0; X*************** X*** 14,19 **** X--- 15,21 ---- X static char saved[20]; X char fnam[80], s[80], zb[200]; X char posslev[20][20]; X+ register char *cp; X int diff[20], i, k, m, n, best, alts; X char *getlesson(); X FILE *f; X*************** X*** 29,36 **** X } X while (ask) { X printf("What lesson? "); X! fflush(stdout); X! gets(dobuff); X if (strcmp(dobuff, "bye") == 0) X wrapup(1); X level = dobuff; X--- 31,42 ---- X } X while (ask) { X printf("What lesson? "); X! X! dobuff[0] = '\0'; X! fgets(dobuff, sizeof dobuff, stdin); X! cp = index(dobuff, '\n'); X! if (cp) *cp = '\0'; X! X if (strcmp(dobuff, "bye") == 0) X wrapup(1); X level = dobuff; X*** ./usr/src/usr.bin/learn/getlesson.c.old Wed Mar 27 21:47:23 1985 X--- ./usr/src/usr.bin/learn/getlesson.c Fri May 8 19:34:27 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)getlesson.c 4.2 (Berkeley) 4/26/83"; X! #endif not lint X X #include "stdio.h" X #include "lrnref.h" X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)getlesson.c 4.3 (2.11BSD) 2026/5/8"; X! #endif X X #include "stdio.h" X #include "lrnref.h" X*** ./usr/src/usr.bin/learn/lcount.c.old Wed Mar 27 21:47:23 1985 X--- ./usr/src/usr.bin/learn/lcount.c Fri May 8 19:34:53 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)lcount.c 4.2 (Berkeley) 4/25/83"; X! #endif not lint X X #include "stdio.h" X X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)lcount.c 4.3 (2.11BSD) 2026/5/8"; X! #endif X X #include "stdio.h" X X*** ./usr/src/usr.bin/learn/list.c.old Wed Mar 27 21:47:25 1985 X--- ./usr/src/usr.bin/learn/list.c Mon Sep 21 23:41:06 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)list.c 4.2 (Berkeley) 4/25/83"; X! #endif not lint X X #include "stdio.h" X #include "lrnref.h" X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)list.c 4.3 (2.11BSD) 2026/5/8"; X! #endif X X #include "stdio.h" X #include "lrnref.h" X*************** X*** 11,17 **** X list(r) X char *r; X { X! int stop(), intrpt(); X FILE *ft; X char s[100]; X X--- 11,17 ---- X list(r) X char *r; X { X! void stop(), intrpt(); X FILE *ft; X char s[100]; X X*** ./usr/src/usr.bin/learn/lrntee.c.old Thu May 15 19:59:13 1986 X--- ./usr/src/usr.bin/learn/lrntee.c Fri May 8 19:36:30 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)lrntee.c 4.3 (Berkeley) 5/15/86"; X! #endif not lint X X main() X { X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)lrntee.c 4.4 (2.11BSD) 2026/5/8"; X! #endif X X main() X { X*************** X*** 18,23 **** X--- 18,24 ---- X X static char ln[512]; X char *p = ln; X+ X put(c, f) X { X *p++ = c; X*** ./usr/src/usr.bin/learn/makpipe.c.old Thu May 15 19:59:14 1986 X--- ./usr/src/usr.bin/learn/makpipe.c Fri May 8 19:37:13 2026 X*************** X*** 1,8 **** X! #ifndef lint X! static char sccsid[] = "@(#)makpipe.c 4.3 (Berkeley) 5/15/86"; X! #endif not lint X X! #include "stdio.h" X X makpipe() X { X--- 1,8 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)makpipe.c 4.4 (2.11BSD) 2026/5/8"; X! #endif X X! #include X X makpipe() X { X*** ./usr/src/usr.bin/learn/maktee.c.old Wed Mar 27 21:47:26 1985 X--- ./usr/src/usr.bin/learn/maktee.c Fri May 8 19:37:52 2026 X*************** X*** 1,9 **** X! #ifndef lint X! static char sccsid[] = "@(#)maktee.c 4.2 (Berkeley) 4/25/83"; X! #endif not lint X X! #include "stdio.h" X! #include "signal.h" X #include "lrnref.h" X X static int oldout; X--- 1,9 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)maktee.c 4.3 (2.11BSD) 2026/5/8"; X! #endif X X! #include X! #include X #include "lrnref.h" X X static int oldout; X*** ./usr/src/usr.bin/learn/mem.c.old Thu May 15 19:59:15 1986 X--- ./usr/src/usr.bin/learn/mem.c Fri May 8 19:38:40 2026 X*************** X*** 1,10 **** X! #ifndef lint X! static char sccsid[] = "@(#)mem.c 4.3 (Berkeley) 5/15/86"; X! #endif not lint X X! # include "stdio.h" X! # include "lrnref.h" X! # define SAME 0 X X struct keys { X char *k_wd; X--- 1,11 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)mem.c 4.4 (2.11BSD) 2026/5/8"; X! #endif X X! #include X! #include "lrnref.h" X! X! #define SAME 0 X X struct keys { X char *k_wd; X*** ./usr/src/usr.bin/learn/mysys.c.old Thu May 15 19:59:17 1986 X--- ./usr/src/usr.bin/learn/mysys.c Mon Sep 21 23:42:05 2026 X*************** X*** 1,9 **** X! #ifndef lint X! static char sccsid[] = "@(#)mysys.c 4.5 (Berkeley) 5/15/86"; X! #endif not lint X X! #include "stdio.h" X! #include "signal.h" X X #define EASY 1 X #define MEDIUM 2 X--- 1,10 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)mysys.c 4.6 (2.11BSD) 2026/5/8"; X! #endif X X! #include X! #include X! #include X X #define EASY 1 X #define MEDIUM 2 X*************** X*** 26,32 **** X extern char **environ; X extern char *direct; X char path[BUFSIZ], exinit[BUFSIZ]; X- char *malloc(); X X sprintf(path, "PATH=%s/bin:/usr/cc/bin:/usr/ucb/bin:", direct); X sprintf(exinit, "EXINIT=set prompt noopt open window=23"); X--- 27,32 ---- X*************** X*** 145,151 **** X char *s; X { X int status, pid, w; X! register int (*istat)(), (*qstat)(); X X istat = signal(SIGINT, SIG_IGN); X qstat = signal(SIGQUIT, SIG_IGN); X--- 145,151 ---- X char *s; X { X int status, pid, w; X! register sig_t istat, qstat; X X istat = signal(SIGINT, SIG_IGN); X qstat = signal(SIGQUIT, SIG_IGN); X*** ./usr/src/usr.bin/learn/start.c.old Thu May 15 19:59:20 1986 X--- ./usr/src/usr.bin/learn/start.c Fri May 8 19:40:38 2026 X*************** X*** 1,8 **** X! #ifndef lint X! static char sccsid[] = "@(#)start.c 4.5 (Berkeley) 5/15/86"; X! #endif not lint X X! #include "stdio.h" X #include "lrnref.h" X #include X #ifndef DIR X--- 1,8 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)start.c 4.6 (2.11BSD) 2026/5/8"; X! #endif X X! #include X #include "lrnref.h" X #include X #ifndef DIR X*** ./usr/src/usr.bin/learn/tee.c.old Wed Mar 27 21:47:29 1985 X--- ./usr/src/usr.bin/learn/tee.c Fri May 8 19:41:14 2026 X*************** X*** 1,8 **** X! #ifndef lint X! static char sccsid[] = "@(#)tee.c 4.2 (Berkeley) 4/25/83"; X! #endif not lint X X #include X main() X { X int f, c; X--- 1,9 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)tee.c 4.3 (2.11BSD) 2026/5/8"; X! #endif X X #include X+ X main() X { X int f, c; X*************** X*** 18,23 **** X--- 19,25 ---- X X static char ln[BUFSIZ]; X char *p = ln; X+ X put(c, f) X { X *p++ = c; X*** ./usr/src/usr.bin/learn/whatnow.c.old Wed Mar 27 21:47:30 1985 X--- ./usr/src/usr.bin/learn/whatnow.c Fri May 8 19:41:52 2026 X*************** X*** 1,8 **** X! #ifndef lint X! static char sccsid[] = "@(#)whatnow.c 4.2 (Berkeley) 4/25/83"; X! #endif not lint X X! #include "stdio.h" X #include "lrnref.h" X X extern char togo[]; X--- 1,8 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)whatnow.c 4.3 (2.11BSD) 2026/5/8"; X! #endif X X! #include X #include "lrnref.h" X X extern char togo[]; X*** ./usr/src/usr.bin/learn/wrapup.c.old Thu May 15 19:59:21 1986 X--- ./usr/src/usr.bin/learn/wrapup.c Fri May 8 19:42:35 2026 X*************** X*** 1,9 **** X! #ifndef lint X! static char sccsid[] = "@(#)wrapup.c 4.3 (Berkeley) 5/15/86"; X! #endif not lint X X! #include "signal.h" X! #include "stdio.h" X #include "lrnref.h" X X extern char learnrc[]; X--- 1,9 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)wrapup.c 4.4 (2.11BSD) 2026/5/8"; X! #endif X X! #include X! #include X #include "lrnref.h" X X extern char learnrc[]; X*** ./usr/src/usr.bin/learn/learn.c.old Fri Oct 3 01:13:01 1997 X--- ./usr/src/usr.bin/learn/learn.c Mon Sep 21 23:39:08 2026 X*************** X*** 1,5 **** X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)learn.c 4.4.2 (2.11BSD) 1997/10/2"; X #endif X X #include "stdio.h" X--- 1,5 ---- X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)learn.c 4.4.3 (2.11BSD) 2026/9/21"; X #endif X X #include "stdio.h" X*************** X*** 28,47 **** X int skip; X int teed; X int total; X X main(argc,argv) X int argc; X char *argv[]; X { X- extern hangup(), intrpt(); X- X speed = 0; X more = 1; X pwline = getlogin(); X- #ifndef BSD4_2 X- setbuf(stdout, malloc(BUFSIZ)); X- setbuf(stderr, malloc(BUFSIZ)); X- #endif X selsub(argc, argv); X chgenv(); X signal(SIGHUP, hangup); X--- 28,42 ---- X int skip; X int teed; X int total; X+ void hangup(), intrpt(); X X main(argc,argv) X int argc; X char *argv[]; X { X speed = 0; X more = 1; X pwline = getlogin(); X selsub(argc, argv); X chgenv(); X signal(SIGHUP, hangup); X*************** X*** 54,64 **** X--- 49,61 ---- X wrapup(0); X } X X+ void X hangup() X { X wrapup(1); X } X X+ void X intrpt() X { X char response[20], *p; X*** ./usr/src/usr.bin/learn/copy.c.old Thu Oct 24 21:31:41 1996 X--- ./usr/src/usr.bin/learn/copy.c Mon Sep 21 23:40:27 2026 X*************** X*** 22,28 **** X char s[100], t[100], s1[100], nm[30]; X char *r, *tod, c; X int *p, tv[2]; X! extern int intrpt(), *action(); X extern char *wordb(); X int nmatch = 0; X long mark; X--- 22,28 ---- X char s[100], t[100], s1[100], nm[30]; X char *r, *tod, c; X int *p, tv[2]; X! extern void intrpt(), *action(); X extern char *wordb(); X int nmatch = 0; X long mark; X*** ./usr/src/usr.bin/uucp/aculib/Makefile.old Mon Jan 18 12:37:23 1993 X--- ./usr/src/usr.bin/uucp/aculib/Makefile Fri Jan 30 23:59:29 2026 X*************** X*** 1,7 **** X! # Makefile 4.4 86/02/12 X X DEBUG= X! CFLAGS= -O ${DEBUG} X X OBJS= bsdtcp.o df2.o df12.o dk.o dn.o hys.o hysq.o mic.o nov.o pen.o pnet.o \ X rvmacs.o sy.o unet.o va212.o va811.o va820.o vad.o vent.o vmacs.o \ X--- 1,7 ---- X! # Makefile 4.5 (2.11BSD) 2026/1/30 X X DEBUG= X! CFLAGS= -O -I. ${DEBUG} X X OBJS= bsdtcp.o df2.o df12.o dk.o dn.o hys.o hysq.o mic.o nov.o pen.o pnet.o \ X rvmacs.o sy.o unet.o va212.o va811.o va820.o vad.o vent.o vmacs.o \ X*** ./usr/src/usr.bin/uucp/aculib/df2.c.old Mon Feb 16 19:21:35 1987 X--- ./usr/src/usr.bin/uucp/aculib/df2.c Sat May 9 08:19:50 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)df2.c 4.2 (Berkeley) 6/23/85"; X #endif X X #include "../condevs.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)df2.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X #include "../condevs.h" X*************** X*** 18,32 **** X struct Devices *dev; X { X char dcname[20], dnname[20], phone[MAXPH+2], c = 0; X- #ifdef USG X- struct termio ttbuf; X- #endif USG X int dcf, dnf; X int nw, lt, pid, st, status; X unsigned timelim; X- #ifdef TIOCFLUSH X int zero = 0; X- #endif TIOCFLUSH X X sprintf(dnname, "/dev/%s", dev->D_calldev); X if (setjmp(Sjbuf)) { X--- 18,27 ---- X*** ./usr/src/usr.bin/uucp/aculib/dk.c.old Thu Dec 26 12:40:37 2019 X--- ./usr/src/usr.bin/uucp/aculib/dk.c Sat May 9 08:22:19 2026 X*************** X*** 1,10 **** X! #ifndef lint X! static char sccsid[] = "@(#)dk.c 4.2 (2.11BSD) 2019/12/26"; X #endif X X #include "../condevs.h" X #ifdef DATAKIT X! #include X #define DKTRIES 2 X /*** X * dkopn(flds) make datakit connection X--- 1,10 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dk.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X #include "../condevs.h" X #ifdef DATAKIT X! #include "dk.h" X #define DKTRIES 2 X /*** X * dkopn(flds) make datakit connection X*** ./usr/src/usr.bin/uucp/aculib/dn.c.old Mon Feb 16 19:21:35 1987 X--- ./usr/src/usr.bin/uucp/aculib/dn.c Sat May 9 08:22:50 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)dn.c 4.2 (Berkeley) 6/23/85"; X #endif X X #include "../condevs.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dn.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X #include "../condevs.h" X*************** X*** 19,33 **** X struct Devices *dev; X { X char dcname[20], dnname[20], phone[MAXPH+2], c = 0; X- #ifdef USG X- struct termio ttbuf; X- #endif USG X int dnf, dcf; X int nw, lt, pid, status; X unsigned timelim; X- #ifdef TIOCFLUSH X int zero = 0; X- #endif TIOCFLUSH X X sprintf(dnname, "/dev/%s", dev->D_calldev); X errno = 0; X--- 19,28 ---- X*** ./usr/src/usr.bin/uucp/aculib/hys.c.old Mon Feb 16 19:21:35 1987 X--- ./usr/src/usr.bin/uucp/aculib/hys.c Sat May 9 08:23:23 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)hys.c 4.6 (Berkeley) 2/12/86"; X #endif X X #include "../condevs.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)hys.c 4.7 (2.11BSD) 2026/5/9"; X #endif X X #include "../condevs.h" X*** ./usr/src/usr.bin/uucp/aculib/hysq.c.old Mon Feb 16 19:21:35 1987 X--- ./usr/src/usr.bin/uucp/aculib/hysq.c Sat May 9 08:23:49 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)hysq.c 4.1 (Berkeley) 1/22/85"; X #endif X X #include "../condevs.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)hysq.c 4.2 (2.11BSD) 2026/5/9"; X #endif X X #include "../condevs.h" X*************** X*** 55,63 **** X int toneflag; X { X char dcname[20], phone[MAXPH+10], c = 0; X- #ifdef USG X- struct termio ttbuf; X- #endif USG X int status, dnf; X unsigned timelim; X X--- 55,60 ---- X*** ./usr/src/usr.bin/uucp/aculib/mic.c.old Mon Feb 16 19:21:35 1987 X--- ./usr/src/usr.bin/uucp/aculib/mic.c Sat May 9 08:24:12 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)mic.c 4.1 (Berkeley) 1/22/85"; X #endif X X #include "../condevs.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)mic.c 4.2 (2.11BSD) 2026/5/9"; X #endif X X #include "../condevs.h" X*** ./usr/src/usr.bin/uucp/aculib/nov.c.old Mon Feb 16 19:21:35 1987 X--- ./usr/src/usr.bin/uucp/aculib/nov.c Sat May 9 08:24:38 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)nov.c 4.1 (Berkeley) 1/22/85"; X #endif X X #include "../condevs.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)nov.c 4.2 (2.11BSD) 2026/5/9"; X #endif X X #include "../condevs.h" X*** ./usr/src/usr.bin/uucp/aculib/pnet.c.old Mon Feb 16 19:21:35 1987 X--- ./usr/src/usr.bin/uucp/aculib/pnet.c Sat May 9 08:25:02 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)pnet.c 4.2 (Berkeley) 6/23/85"; X #endif X X #include "../condevs.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)pnet.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X #include "../condevs.h" X*** ./usr/src/usr.bin/uucp/aculib/rvmacs.c.old Mon Feb 16 19:21:35 1987 X--- ./usr/src/usr.bin/uucp/aculib/rvmacs.c Sat May 9 08:25:24 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)rvmacs.c 4.4 (Berkeley) 6/7/86"; X #endif X X #include "../condevs.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)rvmacs.c 4.5 (2.11BSD) 2026/5/9"; X #endif X X #include "../condevs.h" X*** ./usr/src/usr.bin/uucp/aculib/sy.c.old Mon Feb 16 19:21:36 1987 X--- ./usr/src/usr.bin/uucp/aculib/sy.c Sat May 9 08:25:43 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)sy.c 4.1 (Berkeley) 1/22/85"; X #endif X X #include "../condevs.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)sy.c 4.2 (2.11BSD) 2026/5/9"; X #endif X X #include "../condevs.h" X*** ./usr/src/usr.bin/uucp/aculib/unet.c.old Mon Feb 16 19:21:36 1987 X--- ./usr/src/usr.bin/uucp/aculib/unet.c Sat May 9 08:26:16 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)unet.c 4.1 (Berkeley) 1/22/85"; X #endif X X #include "../condevs.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)unet.c 4.2 (2.11BSD) 2026/5/9"; X #endif X X #include "../condevs.h" X*** ./usr/src/usr.bin/uucp/aculib/va212.c.old Mon Feb 16 19:21:36 1987 X--- ./usr/src/usr.bin/uucp/aculib/va212.c Sat May 9 08:26:42 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)va212.c 4.2 (Berkeley) 6/23/85"; X #endif X X #include "../condevs.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)va212.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X #include "../condevs.h" X*** ./usr/src/usr.bin/uucp/aculib/va811.c.old Mon Feb 16 19:21:36 1987 X--- ./usr/src/usr.bin/uucp/aculib/va811.c Sat May 9 08:27:05 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)va811.c 4.1 (Berkeley) 1/22/85"; X #endif X X #include "../condevs.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)va811.c 4.2 (2.11BSD) 2026/5/9"; X #endif X X #include "../condevs.h" X*** ./usr/src/usr.bin/uucp/aculib/va820.c.old Mon Feb 16 19:21:36 1987 X--- ./usr/src/usr.bin/uucp/aculib/va820.c Sat May 9 08:27:24 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)va820.c 4.3 (Berkeley) 10/10/85"; X #endif X X #include "../condevs.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)va820.c 4.4 (2.11BSD) 2026/5/9"; X #endif X X #include "../condevs.h" X*** ./usr/src/usr.bin/uucp/aculib/vad.c.old Mon Feb 16 19:21:36 1987 X--- ./usr/src/usr.bin/uucp/aculib/vad.c Sat May 9 08:27:46 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)vad.c 4.2 (Berkeley) 10/10/85"; X #endif X X #include "../condevs.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)vad.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X #include "../condevs.h" X*** ./usr/src/usr.bin/uucp/aculib/vent.c.old Mon Feb 16 19:21:36 1987 X--- ./usr/src/usr.bin/uucp/aculib/vent.c Sat May 9 08:28:02 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)vent.c 4.2 (Berkeley) 10/10/85"; X #endif X X #include "../condevs.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)vent.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X #include "../condevs.h" X*** ./usr/src/usr.bin/uucp/aculib/vmacs.c.old Mon Feb 16 19:21:36 1987 X--- ./usr/src/usr.bin/uucp/aculib/vmacs.c Sat May 9 08:28:27 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)vmacs.c 4.3 (Berkeley) 10/10/85"; X #endif X X #include "../condevs.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)vmacs.c 4.4 (2.11BSD) 2026/5/9"; X #endif X X #include "../condevs.h" X*** ./usr/src/usr.bin/uucp/aculib/pen.c.old Mon Feb 16 19:21:36 1987 X--- ./usr/src/usr.bin/uucp/aculib/pen.c Sat May 9 08:28:47 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)pen.c 4.2 (Berkeley) 10/10/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)pen.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/usr.bin/uucp/aculib/df12.c.old Mon Feb 16 19:21:37 1987 X--- ./usr/src/usr.bin/uucp/aculib/df12.c Sat May 9 08:29:05 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)df12.c 4.1 (Berkeley) 4/3/85"; X #endif X X #include "../condevs.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)df12.c 4.2 (2.11BSD) 2026/5/9"; X #endif X X #include "../condevs.h" X*** ./usr/src/usr.bin/uucp/aculib/att2224.c.old Mon Feb 16 19:21:37 1987 X--- ./usr/src/usr.bin/uucp/aculib/att2224.c Sat May 9 08:29:26 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)att2224.c 1.1 (Berkeley) 2/12/86"; X #endif X X #include "../condevs.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)att2224.c 1.2 (2.11BSD) 2026/5/9"; X #endif X X #include "../condevs.h" X*** ./usr/src/usr.bin/uucp/aculib/cds224.c.old Mon Feb 16 19:21:37 1987 X--- ./usr/src/usr.bin/uucp/aculib/cds224.c Sat May 9 08:29:56 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)cds224.c 1.1 (Berkeley) 1/13/86"; X! #endif !lint X X #include "../condevs.h" X #ifdef CDS224 X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cds224.c 1.2 (2.11BSD) 2026/5/9"; X! #endif X X #include "../condevs.h" X #ifdef CDS224 X*** ./usr/src/usr.bin/uucp/aculib/hys24.c.old Mon Feb 16 19:21:37 1987 X--- ./usr/src/usr.bin/uucp/aculib/hys24.c Sat May 9 08:30:24 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)hys24.c 1.1 (Berkeley) 1/13/86"; X! #endif !lint X X #include "../condevs.h" X X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)hys24.c 1.2 (2.11BSD) 2026/5/9"; X! #endif X X #include "../condevs.h" X X*** ./usr/src/usr.bin/uucp/anyread.c.old Mon Feb 16 19:21:38 1987 X--- ./usr/src/usr.bin/uucp/anyread.c Sat May 9 08:31:10 2026 X*************** X*** 1,11 **** X! #ifndef lint X! static char sccsid[] = "@(#)anyread.c 5.4 (Berkeley) 6/19/85"; X #endif X X #include "uucp.h" X #include X- X- /*LINTLIBRARY*/ X X /* X * anyread check if anybody can read X--- 1,9 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)anyread.c 5.5 (2.11BSD) 2026/5/9"; X #endif X X #include "uucp.h" X #include X X /* X * anyread check if anybody can read X*** ./usr/src/usr.bin/uucp/cpmv.c.old Mon Feb 16 19:21:38 1987 X--- ./usr/src/usr.bin/uucp/cpmv.c Sat May 9 08:31:29 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)cpmv.c 5.5 (Berkeley) 10/9/85"; X #endif X X #include "uucp.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cpmv.c 5.6 (2.11BSD) 2026/5/9"; X #endif X X #include "uucp.h" X*** ./usr/src/usr.bin/uucp/assert.c.old Mon Feb 16 19:21:38 1987 X--- ./usr/src/usr.bin/uucp/assert.c Sat May 9 08:32:38 2026 X*************** X*** 1,13 **** X! #ifndef lint X! static char sccsid[] = "@(#)assert.c 5.5 (Berkeley) 6/19/85"; X #endif X X #include "uucp.h" X! #include X #include X X- /*LINTLIBRARY*/ X- X /* X * print out assetion error X */ X--- 1,11 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)assert.c 5.6 (2.11BSD) 2026/5/9"; X #endif X X #include "uucp.h" X! #include X #include X X /* X * print out assetion error X */ X*************** X*** 17,23 **** X { X register FILE *errlog; X register struct tm *tp; X- extern struct tm *localtime(); X time_t clock; X int pid; X X--- 15,20 ---- X*************** X*** 36,49 **** X fprintf(errlog, "pid: %d ", pid); X (void) time(&clock); X tp = localtime(&clock); X- #ifdef USG X- fprintf(errlog, "(%d/%d-%2.2d:%2.2d) ", tp->tm_mon + 1, X- tp->tm_mday, tp->tm_hour, tp->tm_min); X- #endif X- #ifndef USG X fprintf(errlog, "(%d/%d-%02d:%02d) ", tp->tm_mon + 1, X tp->tm_mday, tp->tm_hour, tp->tm_min); X- #endif X fprintf(errlog, "%s %s (%d)\n", s1 ? s1 : "", s2 ? s2 : "", i1); X if (errlog != stderr) X (void) fclose(errlog); X--- 33,40 ---- X*** ./usr/src/usr.bin/uucp/gename.c.old Mon Feb 16 19:21:38 1987 X--- ./usr/src/usr.bin/uucp/gename.c Sat May 9 08:34:06 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)gename.c 5.6 (Berkeley) 10/9/85"; X #endif X X #include "uucp.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)gename.c 5.7 (2.11BSD) 2026/5/9"; X #endif X X #include "uucp.h" X*************** X*** 13,24 **** X */ X static char alphabet[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; X X- #ifdef BSD4_2 X #include X- #endif BSD4_2 X X- /*LINTLIBRARY*/ X- X /* X * generate file name X */ X--- 13,20 ---- X*************** X*** 30,53 **** X static char *lastchar = NULL; X X if (lastchar == NULL || (snum[SEQLEN-1] = *(lastchar++)) == '\0') { X- #ifndef BSD4_2 X- for (i = 0; i < SLOCKTRIES; i++) { X- if (!ulockf(SEQLOCK, SLOCKTIME)) X- break; X- sleep(5); X- } X- X- if (i >= SLOCKTRIES) { X- logent(SEQLOCK, "CAN NOT LOCK"); X- goto getrandseq; X- } X- #endif !BSD4_2 X- X if ((fd = open(SEQFILE, 2)) >= 0) { X register char *p; X! #ifdef BSD4_2 X flock(fd, LOCK_EX); X- #endif !BSD4_2 X read(fd, snum, SEQLEN); X /* increment the penultimate character */ X for (i = SEQLEN - 2; i >= 0; --i) { X--- 26,35 ---- X static char *lastchar = NULL; X X if (lastchar == NULL || (snum[SEQLEN-1] = *(lastchar++)) == '\0') { X if ((fd = open(SEQFILE, 2)) >= 0) { X register char *p; X! X flock(fd, LOCK_EX); X read(fd, snum, SEQLEN); X /* increment the penultimate character */ X for (i = SEQLEN - 2; i >= 0; --i) { X*************** X*** 75,83 **** X write(fd, snum, SEQLEN); X close(fd); X } X- #ifndef BSD4_2 X- rmlock(SEQLOCK); X- #endif !BSD4_2 X lastchar = alphabet + 1; X } X sprintf(file,"%c.%.*s%c%.*s", pre, SYSNSIZE, sys, grade, SEQLEN, snum); X--- 57,62 ---- X*** ./usr/src/usr.bin/uucp/getargs.c.old Mon Feb 16 19:21:38 1987 X--- ./usr/src/usr.bin/uucp/getargs.c Sat May 9 08:34:36 2026 X*************** X*** 1,10 **** X! #ifndef lint X! static char sccsid[] = "@(#)getargs.c 5.3 (Berkeley) 6/19/85"; X #endif X X #include "uucp.h" X- X- /*LINTLIBRARY*/ X X /* X * getargs - this routine will generate a vector of X--- 1,8 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)getargs.c 5.4 (2.11BSD) 2026/5/9"; X #endif X X #include "uucp.h" X X /* X * getargs - this routine will generate a vector of X*** ./usr/src/usr.bin/uucp/getprm.c.old Mon Feb 16 19:21:43 1987 X--- ./usr/src/usr.bin/uucp/getprm.c Sat May 9 08:35:02 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)getprm.c 5.4 (Berkeley) 10/9/85"; X #endif X X #include "uucp.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)getprm.c 5.5 (2.11BSD) 2026/5/9"; X #endif X X #include "uucp.h" X*************** X*** 6,13 **** X X #define LQUOTE '(' X #define RQUOTE ')' X- X- /*LINTLIBRARY*/ X X /* X * get next parameter from s X--- 6,11 ---- X*** ./usr/src/usr.bin/uucp/chksum.c.old Mon Feb 16 19:21:44 1987 X--- ./usr/src/usr.bin/uucp/chksum.c Sat May 9 08:35:52 2026 X*************** X*** 1,31 **** X! #ifndef lint X! static char sccsid[] = "@(#)chksum.c 4.2 (Berkeley) 6/19/85"; X #endif X X- #ifndef pdp11 X- chksum (s, n) X- register char *s; X- register n; X- { X- register long sum, x, t; X- X- sum = 0xffff; X- x = 0; X- do { X- /* Rotate left, copying bit 15 to bit 0 */ X- sum <<= 1; X- if (sum & 0x10000) X- sum ^= 0x10001; X- t = sum; X- sum = (sum + (*s++ & 0377)) & 0xffff; X- x += sum ^ n; X- if (sum <= t) X- sum = (sum ^ x) & 0xffff; X- } while (--n > 0); X- X- return (long) (short) sum; X- } X- #else pdp11 X chksum(s,n) X register char *s; X register n; X--- 1,7 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)chksum.c 4.3 (2.11BSD) 2026/5/9"; X #endif X X chksum(s,n) X register char *s; X register n; X*************** X*** 52,56 **** X X return sum & 0xffff; X } X- X- #endif pdp11 X--- 28,30 ---- X*** ./usr/src/usr.bin/uucp/cntrl.c.old Mon Feb 16 19:21:44 1987 X--- ./usr/src/usr.bin/uucp/cntrl.c Sat May 9 09:40:45 2026 X*************** X*** 1,12 **** X! #ifndef lint X! static char sccsid[] = "@(#)cntrl.c 5.8 (Berkeley) 1/24/86"; X #endif X X #include "uucp.h" X #include X #include "uust.h" X X- extern int errno; X extern int turntime; X int willturn; X int HaveSentHup = 0; X--- 1,12 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cntrl.c 5.9 (2.11BSD) 2026/5/9"; X #endif X X #include "uucp.h" X #include X #include "uust.h" X+ #include X X extern int turntime; X int willturn; X int HaveSentHup = 0; X*************** X*** 143,154 **** X Wfile[0] = '\0'; X willturn = turntime > 0; X remaster: X! #ifdef USG X! time(&LastTurned.time); X! LastTurned.millitm = 0; X! #else !USG X ftime(&LastTurned); X! #endif !USG X send_or_receive = RESET; X HaveSentHup = 0; X top: X--- 143,151 ---- X Wfile[0] = '\0'; X willturn = turntime > 0; X remaster: X! X ftime(&LastTurned); X! X send_or_receive = RESET; X HaveSentHup = 0; X top: X*************** X*** 155,161 **** X for (i = 0; i < sizeof wrkvec / sizeof wrkvec[0]; i++) X wrkvec[i] = 0; X DEBUG(4, "*** TOP *** - role=%s\n", role ? "MASTER" : "SLAVE"); X- setupline(RESET); X if (Now.time > (LastCheckedNoLogin.time+60)) { X LastCheckedNoLogin = Now; X if (access(NOLOGIN, 0) == 0) { X--- 152,157 ---- X*************** X*** 243,250 **** X lnotify(User, filename, "access denied"); X goto top; X } X- X- setupline(SNDFILE); X } X X if (wrktype == RCVFILE) { X--- 239,244 ---- X*************** X*** 267,273 **** X unlinkdf(Dfile); X goto top; X } X- setupline(RCVFILE); X } X sendmsg: X DEBUG(4, "wrktype - %c\n", wrktype); X--- 261,266 ---- X*************** X*** 307,318 **** X WMESG(HUP, ""); X RMESG(HUP, msg, 1); X logent(Rmtname, "TURNAROUND"); X! #ifdef USG X! time(&LastTurned.time); X! LastTurned.millitm = 0; X! #else !USG X! ftime(&LastTurned); X! #endif !USG X Nfiles = 0; /* force rescan of queue for work */ X goto process; X } X--- 300,306 ---- X WMESG(HUP, ""); X RMESG(HUP, msg, 1); X logent(Rmtname, "TURNAROUND"); X! ftime(&LastTurned); X Nfiles = 0; /* force rescan of queue for work */ X goto process; X } X*** ./usr/src/usr.bin/uucp/gnamef.c.old Mon Feb 16 19:21:44 1987 X--- ./usr/src/usr.bin/uucp/gnamef.c Sat May 9 08:37:08 2026 X*************** X*** 1,15 **** X! #ifndef lint X! static char sccsid[] = "@(#)gnamef.c 5.4 (Berkeley) 6/20/85"; X #endif X X #include "uucp.h" X- #ifdef NDIR X- #include "ndir.h" X- #else X #include X- #endif X- X- /*LINTLIBRARY*/ X X /* X * get next file name from directory X--- 1,9 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)gnamef.c 5.5 (2.11BSD) 2026/5/9"; X #endif X X #include "uucp.h" X #include X X /* X * get next file name from directory X*** ./usr/src/usr.bin/uucp/gnxseq.c.old Mon Feb 16 19:21:45 1987 X--- ./usr/src/usr.bin/uucp/gnxseq.c Sat May 9 08:38:24 2026 X*************** X*** 1,16 **** X! #ifndef lint X! static char sccsid[] = "@(#)gnxseq.c 5.4 (Berkeley) 6/20/85"; X #endif X X #include "uucp.h" X- #ifdef BSD4_2 X- #include X- #else sane X #include X- #endif sane X X- /*LINTLIBRARY*/ X- X #ifdef GNXSEQ X X /* X--- 1,10 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)gnxseq.c 5.5 (2.11BSD) 2026/5/9"; X #endif X X #include "uucp.h" X #include X X #ifdef GNXSEQ X X /* X*************** X*** 24,30 **** X { X int count = 0, ct, ret, i; X register struct tm *tp; X- extern struct tm *localtime(); X time_t clock; X register FILE *fp0, *fp1; X char buf[BUFSIZ], name[NAMESIZE]; X--- 18,23 ---- X*************** X*** 66,81 **** X count = ++ct; X time(&clock); X tp = localtime(&clock); X- #ifdef USG X- fprintf(fp1, "%s %d %d/%d-%2.2d:%2.2d\n", name, ct, X- tp->tm_mon + 1, tp->tm_mday, tp->tm_hour, X- tp->tm_min); X- #endif X- #ifndef USG X fprintf(fp1, "%s %d %d/%d-%02d:%02d\n", name, ct, X tp->tm_mon + 1, tp->tm_mday, tp->tm_hour, X tp->tm_min); X- #endif X while (fgets(buf, BUFSIZ, fp0) != NULL) X fputs(buf, fp1); X } X--- 59,67 ---- X*** ./usr/src/usr.bin/uucp/gio.c.old Mon Feb 16 19:21:45 1987 X--- ./usr/src/usr.bin/uucp/gio.c Sat May 9 15:23:32 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)gio.c 5.6 (Berkeley) 10/9/85"; X #endif X X #include "uucp.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)gio.c 5.7 (Berkeley) 2026/5/9"; X #endif X X #include "uucp.h" X*************** X*** 97,108 **** X return FAIL; X bytes = 0L; X Retries = 0; X! #ifdef USG X! time(&t1.time); X! t1.millitm = 0; X! #else !USG X ftime(&t1); X! #endif !USG X while ((len = read(fileno(fp1), bufr, BUFSIZ)) > 0) { X bytes += len; X ret = gwrblk(bufr, len, fn); X--- 97,105 ---- X return FAIL; X bytes = 0L; X Retries = 0; X! X ftime(&t1); X! X while ((len = read(fileno(fp1), bufr, BUFSIZ)) > 0) { X bytes += len; X ret = gwrblk(bufr, len, fn); X*************** X*** 113,124 **** X break; X } X ret = gwrblk(bufr, 0, fn); X! #ifdef USG X! time(&t2.time); X! t2.millitm = 0; X! #else !USG X ftime(&t2); X! #endif !USG X Now = t2; X t2.time -= t1.time; X mil = t2.millitm - t1.millitm; X--- 110,118 ---- X break; X } X ret = gwrblk(bufr, 0, fn); X! X ftime(&t2); X! X Now = t2; X t2.time -= t1.time; X mil = t2.millitm - t1.millitm; X*************** X*** 128,134 **** X } X sprintf(text, "sent data %ld bytes %ld.%02d secs", X bytes, (long)t2.time, mil/10); X- sysacct(bytes, t2.time); X if (Retries > 0) X sprintf((char *)text+strlen(text)," %d retries", Retries); X DEBUG(1, "%s\n", text); X--- 122,127 ---- X*************** X*** 150,161 **** X return FAIL; X bytes = 0L; X Retries = 0; X! #ifdef USG X! time(&t1.time); X! t1.millitm = 0; X! #else !USG X ftime(&t1); X! #endif !USG X for (;;) { X len = grdblk(bufr, BUFSIZ, fn); X if (len < 0) { X--- 143,151 ---- X return FAIL; X bytes = 0L; X Retries = 0; X! X ftime(&t1); X! X for (;;) { X len = grdblk(bufr, BUFSIZ, fn); X if (len < 0) { X*************** X*** 167,178 **** X if (len < BUFSIZ) X break; X } X! #ifdef USG X! time(&t2.time); X! t2.millitm = 0; X! #else !USG X ftime(&t2); X! #endif !USG X Now = t2; X t2.time -= t1.time; X mil = t2.millitm - t1.millitm; X--- 157,165 ---- X if (len < BUFSIZ) X break; X } X! X ftime(&t2); X! X Now = t2; X t2.time -= t1.time; X mil = t2.millitm - t1.millitm; X*************** X*** 182,188 **** X } X sprintf(text, "received data %ld bytes %ld.%02d secs", X bytes, (long)t2.time, mil/10); X- sysacct(bytes, t2.time); X if (Retries > 0) X sprintf((char *)text+strlen(text)," %d retries", Retries); X DEBUG(1, "%s\n", text); X--- 169,174 ---- X*************** X*** 190,201 **** X return SUCCESS; X } X X- #if !defined(BSD4_2) && !defined(USG) X- /* call ultouch every TC calls to either grdblk or gwrblk */ X- #define TC 20 X- static int tc = TC; X- #endif !BSD4_2 && !USG X- X /*ARGSUSED*/ X grdblk(blk, len, fn) X register int len; X--- 176,181 ---- X*************** X*** 203,215 **** X { X register int i, ret; X X- #if !defined(BSD4_2) && !defined(USG) X- /* call ultouch occasionally */ X- if (--tc < 0) { X- tc = TC; X- ultouch(); X- } X- #endif !BSD4_2 && !USG X for (i = 0; i < len; i += ret) { X ret = pkread(Pk, blk, len - i); X if (ret < 0) X--- 183,188 ---- X*************** X*** 225,236 **** X gwrblk(blk, len, fn) X register char *blk; X { X- #if !defined(BSD4_2) && !defined(USG) X- /* call ultouch occasionally */ X- if (--tc < 0) { X- tc = TC; X- ultouch(); X- } X- #endif !BSD4_2 && !USG X return pkwrite(Pk, blk, len); X } X--- 198,202 ---- X*** ./usr/src/usr.bin/uucp/imsg.c.old Mon Feb 16 19:21:45 1987 X--- ./usr/src/usr.bin/uucp/imsg.c Sat May 9 08:39:05 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)imsg.c 5.3 (Berkeley) 1/6/86"; X #endif X X #include "uucp.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)imsg.c 5.4 (2.11BSD) 2026/5/9"; X #endif X X #include "uucp.h" X*** ./usr/src/usr.bin/uucp/lastpart.c.old Mon Feb 16 19:21:45 1987 X--- ./usr/src/usr.bin/uucp/lastpart.c Sat May 9 08:39:28 2026 X*************** X*** 1,10 **** X! #ifndef lint X! static char sccsid[] = "@(#)lastpart.c 5.4 (Berkeley) 6/20/85"; X #endif X X #include "uucp.h" X- X- /*LINTLIBRARY*/ X X /* X * find last part of file name X--- 1,8 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)lastpart.c 5.5 (2.11BSD) 2026/5/9"; X #endif X X #include "uucp.h" X X /* X * find last part of file name X*** ./usr/src/usr.bin/uucp/expfile.c.old Mon Feb 16 19:21:45 1987 X--- ./usr/src/usr.bin/uucp/expfile.c Sat May 9 08:39:59 2026 X*************** X*** 1,11 **** X! #ifndef lint X! static char sccsid[] = "@(#)expfile.c 5.5 (Berkeley) 6/19/85"; X #endif X X #include "uucp.h" X #include X- X- /*LINTLIBRARY*/ X X /* X * expand file name X--- 1,9 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)expfile.c 5.6 (2.11BSD) 2026/5/9"; X #endif X X #include "uucp.h" X #include X X /* X * expand file name X*** ./usr/src/usr.bin/uucp/logent.c.old Mon Feb 16 19:21:45 1987 X--- ./usr/src/usr.bin/uucp/logent.c Sat May 9 08:45:15 2026 X*************** X*** 1,16 **** X! #ifndef lint X! static char sccsid[] = "@(#)logent.c 5.6 (Berkeley) 10/9/85"; X #endif X X #include "uucp.h" X- #ifdef BSD4_2 X- #include X- #else X #include X- #endif X- #if defined(USG) || defined(BSD4_2) X #include X- #endif X X static FILE *Lp = NULL; X static FILE *Sp = NULL; X--- 1,10 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)logent.c 5.7 (2.11BSD) 2026/5/9"; X #endif X X #include "uucp.h" X #include X #include X X static FILE *Lp = NULL; X static FILE *Sp = NULL; X*************** X*** 17,24 **** X static Ltried = 0; X static Stried = 0; X X- /*LINTLIBRARY*/ X- X /* X * make log entry X */ X--- 11,16 ---- X*************** X*** 88,105 **** X status = ""; X if (!pid) X pid = getpid(); X- #ifdef USG X- time(&Now.time); X- Now.millitm = 0; X- #else !USG X ftime(&Now); X- #endif !USG X tp = localtime(&Now.time); X- #ifdef USG X- fprintf(fp, "%s %s (%d/%d-%2.2d:%2.2d-%d) ", X- #else !USG X fprintf(fp, "%s %s (%d/%d-%02d:%02d-%d) ", X- #endif !USG X User, Rmtname, tp->tm_mon + 1, tp->tm_mday, X tp->tm_hour, tp->tm_min, pid); X fprintf(fp, "%s (%s)\n", status, text); X--- 80,88 ---- X*************** X*** 111,123 **** X fflush (fp); X if (Debug) { X fprintf(stderr, "%s %s ", User, Rmtname); X- #ifdef USG X- fprintf(stderr, "(%d/%d-%2.2d:%2.2d-%d) ", tp->tm_mon + 1, X- tp->tm_mday, tp->tm_hour, tp->tm_min, pid); X- #else !USG X fprintf(stderr, "(%d/%d-%02d:%02d-%d) ", tp->tm_mon + 1, X tp->tm_mday, tp->tm_hour, tp->tm_min, pid); X- #endif !USG X fprintf(stderr, "%s (%s)\n", status, text); X } X } X--- 94,101 ---- X*************** X*** 146,152 **** X char *text; X { X register struct tm *tp; X- extern struct tm *localtime(); X #ifdef LOGBYSITE X char lfile[MAXFULLNAME]; X static char SLogRmtname[64]; X--- 124,129 ---- X*************** X*** 185,208 **** X fioclex(fileno(Sp)); X } X X- #ifdef USG X- time(&Now.time); X- Now.millitm = 0; X- #else !USG X ftime(&Now); X- #endif !USG X tp = localtime(&Now.time); X X fprintf(Sp, "%s %s ", User, Rmtname); X- #ifdef USG X- fprintf(Sp, "(%d/%d-%2.2d:%2.2d) ", tp->tm_mon + 1, X- tp->tm_mday, tp->tm_hour, tp->tm_min); X- fprintf(Sp, "(%ld) %s\n", Now.time, text); X- #else !USG X fprintf(Sp, "(%d/%d-%02d:%02d) ", tp->tm_mon + 1, X tp->tm_mday, tp->tm_hour, tp->tm_min); X fprintf(Sp, "(%ld.%02u) %s\n", Now.time, Now.millitm/10, text); X- #endif !USG X X /* Position at end and flush */ X #ifndef F_SETFL X--- 162,174 ---- X*************** X*** 216,224 **** X * Otherwise unwanted file descriptors are inherited X * by other programs. And that may be a security hole. X */ X- #ifndef USG X #include X- #endif X X fioclex(fd) X int fd; X--- 182,188 ---- X*************** X*** 225,235 **** X { X register int ret; X X- #if defined(USG) || defined(BSD4_2) X ret = fcntl(fd, F_SETFD, 1); /* Steve Bellovin says this does it */ X- #else X- ret = ioctl(fd, FIOCLEX, STBNULL); X- #endif X if (ret) X! DEBUG(2, "CAN'T FIOCLEX %d\n", fd); X } X--- 189,195 ---- X { X register int ret; X X ret = fcntl(fd, F_SETFD, 1); /* Steve Bellovin says this does it */ X if (ret) X! DEBUG(2, "Can't F_SETFD %d\n", fd); X } X*** ./usr/src/usr.bin/uucp/prefix.c.old Mon Feb 16 19:21:46 1987 X--- ./usr/src/usr.bin/uucp/prefix.c Sat May 9 08:45:35 2026 X*************** X*** 1,8 **** X! #ifndef lint X! static char sccsid[] = "@(#)prefix.c 5.3 (Berkeley) 6/20/85"; X #endif X- X- /*LINTLIBRARY*/ X X /* X * check s2 for prefix s1 X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)prefix.c 5.4 (2.11BSD) 2026/5/9"; X #endif X X /* X * check s2 for prefix s1 X*** ./usr/src/usr.bin/uucp/systat.c.old Mon Feb 16 19:21:47 1987 X--- ./usr/src/usr.bin/uucp/systat.c Sat May 9 15:25:46 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)systat.c 5.4 (Berkeley) 6/23/85"; X #endif X X #include "uucp.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)systat.c 5.5 (2.11BSD) 2026/5/9"; X #endif X X #include "uucp.h" X*************** X*** 7,14 **** X #define STATNAME(f, n) sprintf(f, "%s/%s/%s", Spool, "STST", n) X #define S_SIZE 100 X X- /*LINTLIBRARY*/ X- X /* X * make system status entry X * return codes: none X--- 7,12 ---- X*************** X*** 55,63 **** X } X X X- #ifdef VMS X- unlink(filename); X- #endif VMS X fp = fopen(filename, "w"); X ASSERT(fp != NULL, "SYSTAT OPEN FAIL", filename, 0); X fprintf(fp, "%d %d %ld %ld %s %s\n", type, count, prestime, rtry, text, name); X--- 53,58 ---- X*** ./usr/src/usr.bin/uucp/subdir.c.old Mon Feb 16 19:21:47 1987 X--- ./usr/src/usr.bin/uucp/subdir.c Sat May 9 08:48:44 2026 X*************** X*** 1,10 **** X! #ifndef lint X! static char sccsid[] = "@(#)subdir.c 5.4 (Berkeley) 6/23/85"; X #endif X X #include "uucp.h" X- X- /*LINTLIBRARY*/ X X /* X * By Tom Truscott, March 1983 X--- 1,8 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)subdir.c 5.5 (2.11BSD) 2026/5/9["; X #endif X X #include "uucp.h" X X /* X * By Tom Truscott, March 1983 X*** ./usr/src/usr.bin/uucp/uucpd.c.old Tue Jan 11 01:51:28 1994 X--- ./usr/src/usr.bin/uucp/uucpd.c Thu Sep 24 22:02:51 2026 X*************** X*** 1,5 **** X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)uucpd.c 5.4.1 (2.11BSD GTE) 1/1/94"; X #endif X X /* X--- 1,5 ---- X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)uucpd.c 5.4.2 (2.11BSD) 2026/9/24"; X #endif X X /* X*************** X*** 296,303 **** X X time(&ll.ll_time); X lseek(f, (long)pw->pw_uid * sizeof(struct lastlog), 0); X! strcpy(line, remotehost); X! SCPYN(ll.ll_line, line); X SCPYN(ll.ll_host, remotehost); X (void) write(f, (char *) &ll, sizeof ll); X (void) close(f); X--- 296,302 ---- X X time(&ll.ll_time); X lseek(f, (long)pw->pw_uid * sizeof(struct lastlog), 0); X! SCPYN(ll.ll_line, remotehost); X SCPYN(ll.ll_host, remotehost); X (void) write(f, (char *) &ll, sizeof ll); X (void) close(f); X*** ./usr/src/usr.bin/uucp/tio.c.old Mon Dec 26 16:15:54 1988 X--- ./usr/src/usr.bin/uucp/tio.c Tue Sep 22 00:30:57 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)tio.c 4.6 (Berkeley) 1/24/86"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)tio.c 4.7 (2.11BSD) 2026/5/9"; X #endif X X #include X*************** X*** 8,14 **** X #include X #include X X! extern int pkfail(); X #define TPACKSIZE 512 X #define TBUFSIZE 1024 X #define LBUFSIZE 128 X--- 8,14 ---- X #include X #include X X! extern void pkfail(); X #define TPACKSIZE 512 X #define TBUFSIZE 1024 X #define LBUFSIZE 128 X*************** X*** 103,121 **** X return FAIL; X signal(SIGALRM, pkfail); X bytes = 0L; X! #ifdef USG X! time(&t1.time); X! t1.millitm = 0; X! #else !USG X ftime(&t1); X! #endif !USG X while ((len = read(fileno(fp1), bufr.t_data, TBUFSIZE)) > 0) { X bytes += len; X- #if defined(vax) || defined(pdp11) || defined(ns32000) X bufr.t_nbytes = htonl((long)len); X- #else !vax and !pdp11 and !ns32000 X- bufr.t_nbytes = len; X- #endif !vax and !pdp11 and !ns32000 X DEBUG(8,"twrdata sending %d bytes\n",len); X len += sizeof(long); X alarm(MAXMSGTIME); X--- 103,114 ---- X return FAIL; X signal(SIGALRM, pkfail); X bytes = 0L; X! X ftime(&t1); X! X while ((len = read(fileno(fp1), bufr.t_data, TBUFSIZE)) > 0) { X bytes += len; X bufr.t_nbytes = htonl((long)len); X DEBUG(8,"twrdata sending %d bytes\n",len); X len += sizeof(long); X alarm(MAXMSGTIME); X*************** X*** 133,144 **** X alarm(0); X if (ret != len) X return FAIL; X! #ifdef USG X! time(&t2.time); X! t2.millitm = 0; X! #else !USG X ftime(&t2); X! #endif !USG X Now = t2; X t2.time -= t1.time; X mil = t2.millitm - t1.millitm; X--- 126,134 ---- X alarm(0); X if (ret != len) X return FAIL; X! X ftime(&t2); X! X Now = t2; X t2.time -= t1.time; X mil = t2.millitm - t1.millitm; X*************** X*** 148,154 **** X } X sprintf(text, "sent data %ld bytes %ld.%02d secs", X bytes, (long)t2.time, mil/10); X- sysacct(bytes, t2.time); X DEBUG(1, "%s\n", text); X syslog(text); X return SUCCESS; X--- 138,143 ---- X*************** X*** 166,177 **** X if(setjmp(Failbuf)) X return FAIL; X signal(SIGALRM, pkfail); X! #ifdef USG X! time(&t1.time); X! t1.millitm = 0; X! #else !USG X ftime(&t1); X! #endif !USG X bytes = 0L; X for (;;) { X alarm(MAXMSGTIME); X--- 155,163 ---- X if(setjmp(Failbuf)) X return FAIL; X signal(SIGALRM, pkfail); X! X ftime(&t1); X! X bytes = 0L; X for (;;) { X alarm(MAXMSGTIME); X*************** X*** 179,187 **** X alarm(0); X if (len != sizeof Nbytes) X return FAIL; X- #if defined(vax) || defined(pdp11) || defined(ns32000) X Nbytes = ntohl(Nbytes); X- #endif vax or pdp11 or ns32000 X DEBUG(8,"trddata expecting %ld bytes\n",Nbytes); X nread = Nbytes; X if (nread == 0) X--- 165,171 ---- X*************** X*** 199,210 **** X return FAIL; X } X } X! #ifdef USG X! time(&t2.time); X! t2.millitm = 0; X! #else !USG X ftime(&t2); X! #endif !USG X Now = t2; X t2.time -= t1.time; X mil = t2.millitm - t1.millitm; X--- 183,191 ---- X return FAIL; X } X } X! X ftime(&t2); X! X Now = t2; X t2.time -= t1.time; X mil = t2.millitm - t1.millitm; X*************** X*** 214,230 **** X } X sprintf(bufr, "received data %ld bytes %ld.%02d secs", X bytes, (long)t2.time, mil/10); X- sysacct(bytes, t2.time - t1.time); X DEBUG(1, "%s\n", bufr); X syslog(bufr); X return SUCCESS; X } X X- #if !defined(BSD4_2) && !defined(USG) X- #define TC 1024 X- static int tc = TC; X- #endif !BSD4_2 && !USG X- X trdblk(blk, len, fn) X register int len; X char *blk; X--- 195,205 ---- X*************** X*** 231,243 **** X { X register int i, ret; X X- #if !defined(BSD4_2) && !defined(USG) X- /* call ultouch occasionally */ X- if (--tc < 0) { X- tc = TC; X- ultouch(); X- } X- #endif !BSD4_2 && !USG X for (i = 0; i < len; i += ret) { X ret = read(fn, blk, len - i); X if (ret < 0) X--- 206,211 ---- X*************** X*** 253,264 **** X twrblk(blk, len, fn) X register char *blk; X { X- #if !defined(BSD4_2) && !defined(USG) X- /* call ultouch occasionally */ X- if (--tc < 0) { X- tc = TC; X- ultouch(); X- } X- #endif !BSD4_2 && !USG X return write(fn, blk, len); X } X--- 221,225 ---- X*** ./usr/src/usr.bin/uucp/uuclean.c.old Mon Feb 16 19:21:47 1987 X--- ./usr/src/usr.bin/uucp/uuclean.c Sat May 9 08:50:38 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)uuclean.c 5.6 (Berkeley) 10/9/85"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)uuclean.c 5.7 (2.11BSD) 2026/5/9"; X #endif X X #include X*************** X*** 6,16 **** X #include "uucp.h" X #include X #include X- #ifdef NDIR X- #include "ndir.h" X- #else X #include X- #endif X X /* X * X--- 6,12 ---- X*** ./usr/src/usr.bin/uucp/uucp.c.old Mon Feb 16 19:21:47 1987 X--- ./usr/src/usr.bin/uucp/uucp.c Sat May 9 09:27:11 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)uucp.c 5.5 (Berkeley) 10/9/85"; X #endif X X #include "uucp.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)uucp.c 5.6 (2.11BSD) 2026/5/9"; X #endif X X #include "uucp.h" X*************** X*** 413,423 **** X clscfile(); X } X gename(CMDPRE, sys, Grade, Cfile); X- #ifdef VMS X- savemask = umask(~0600); /* vms must have read permission */ X- #else !VMS X savemask = umask(~0200); X- #endif !VMS X Cfp = fopen(subfile(Cfile), "w"); X umask(savemask); X ASSERT(Cfp != NULL, CANTOPEN, Cfile, 0); X--- 413,419 ---- X*** ./usr/src/usr.bin/uucp/uuencode.c.old Mon Feb 16 19:21:48 1987 X--- ./usr/src/usr.bin/uucp/uuencode.c Sat May 9 08:51:37 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)uuencode.c 5.3 (Berkeley) 1/22/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)uuencode.c 5.4 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/usr.bin/uucp/uuname.c.old Mon Feb 16 19:21:48 1987 X--- ./usr/src/usr.bin/uucp/uuname.c Tue Sep 22 00:36:01 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)uuname.c 5.3 (Berkeley) 10/9/85"; X #endif X X #include "uucp.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)uuname.c 5.4 (2.11BSD) 2026/5/9"; X #endif X X #include "uucp.h" X*************** X*** 20,26 **** X { X int ret; X int i; X! int intrEXIT(); X FILE *np; X /* Increase buffers for s and prev. cornell!pavel */ X char prev[1000]; X--- 20,26 ---- X { X int ret; X int i; X! void intrEXIT(); X FILE *np; X /* Increase buffers for s and prev. cornell!pavel */ X char prev[1000]; X*** ./usr/src/usr.bin/uucp/uucpname.c.old Mon Feb 16 19:21:48 1987 X--- ./usr/src/usr.bin/uucp/uucpname.c Sat May 9 08:54:56 2026 X*************** X*** 1,25 **** X! #ifndef lint X! static char sccsid[] = "@(#)uucpname.c 5.5 (Berkeley) 10/9/85"; X #endif X X #include "uucp.h" X #include X X- /*LINTLIBRARY*/ X- X- #ifdef GETMYHNAME X- #include X- #endif X- X- #ifdef UNAME X- /* Use USG uname() library routine */ X- #include X- #endif X- X- #ifdef CCWHOAMI X- /* Compile in 'sysname' as found in standard(!) include file */ X- #include X- #endif X char Myfullname[64]; X X /* X--- 1,10 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)uucpname.c 5.6 (2.11BSD) 2026/5/9"; X #endif X X #include "uucp.h" X #include X X char Myfullname[64]; X X /* X*************** X*** 48,145 **** X X s = NULL; /* system name unknown, so far */ X X- #ifdef GETHOSTNAME X if (s == NULL || *s == '\0') { X- #ifdef VMS X- int i = sizeof(Myfullname); X- #endif VMS X- X s = Myfullname; X- #ifdef VMS X- if(gethostname(Myfullname, &i) == -1) { X- #else !VMS X if(gethostname(Myfullname, sizeof(Myfullname)) == -1) { X- #endif !VMS X DEBUG(1, "gethostname", _FAILED); X s = NULL; X } X } X- #endif GETHOSTNAME X X- #ifdef UNAME X- /* Use USG library routine */ X if (s == NULL || *s == '\0') { X- struct utsname utsn; X- X- if (uname(&utsn) == -1) { X- DEBUG(1, "uname", _FAILED); X- s = NULL; X- } else { X- strncpy(Myfullname, utsn.nodename, sizeof Myfullname); X- s = Myfullname; X- } X- } X- #endif X- X- #ifdef WHOAMI X- /* Use fake gethostname() routine */ X- if (s == NULL || *s == '\0') { X- X- s = Myfullname; X- if (fakegethostname(Myfullname, sizeof(Myfullname)) == -1) { X- DEBUG(1, "whoami search", _FAILED); X- s = NULL; X- } X- } X- #endif X- X- #ifdef CCWHOAMI X- /* compile sysname right into uucp */ X- if (s == NULL || *s == '\0') { X- s = sysname; X- strncpy(Myfullname, s, sizeof Myfullname); X- } X- #endif X- X- #ifdef UUNAME X- /* uucp name is stored in /etc/uucpname or /local/uucpname */ X- if (s == NULL || *s == '\0') { X- FILE *uucpf; X- X- s = Myfullname; X- if (((uucpf = fopen("/etc/uucpname", "r")) == NULL && X- (uucpf = fopen("/local/uucpname", "r")) == NULL) || X- fgets(Myfullname, sizeof Myfullname, uucpf) == NULL) { X- DEBUG(1, "uuname search", _FAILED); X- s = NULL; X- } X- if (s == Myfullname) { X- register char *p; X- p = index(s, '\n'); X- if (p) X- *p = '\0'; X- } X- if (uucpf != NULL) X- fclose(uucpf); X- } X- #endif X- X- #ifdef GETMYHNAME X- /* Use 3Com's getmyhname() routine */ X- if (s == NULL || *s == '\0') { X- if ((s = getmyhname()) == NULL) X- DEBUG(1, "getmyhname", _FAILED); X- else X- strncpy(Myfullname, s, sizeof Myfullname); X- } X- #endif X- X- #ifdef MYNAME X- if (s == NULL || *s == '\0') { X s = MYNAME; X strncpy(Myfullname, s, sizeof Myfullname); X } X- #endif X X if (s == NULL || *s == '\0') { X /* X--- 33,50 ---- X*************** X*** 169,226 **** X sprintf(DLocal, "D.%.*s", SYSNSIZE, name); X sprintf(DLocalX, "D.%.*sX", SYSNSIZE, name); X } X- X- #ifdef WHOAMI X- /* X- * simulate the 4.2 bsd system call by reading /usr/include/whoami.h X- * and looking for the #define sysname X- */ X- X- #define HDRFILE "/usr/include/whoami.h" X- X- fakegethostname(name, len) X- char *name; X- int len; X- { X- char buf[BUFSIZ]; X- char bname[32]; X- char hname[32]; X- char nname[128]; X- register char *p, *q, *nptr; X- int i; X- register FILE *fd; X- X- fd = fopen(HDRFILE, "r"); X- if (fd == NULL) X- return(-1); X- X- hname[0] = 0; X- nname[0] = 0; X- nptr = nname; X- X- while (fgets(buf, sizeof buf, fd) != NULL) { /* each line in the file */ X- if (sscanf(buf, "#define sysname \"%[^\"]\"", bname) == 1) { X- strcpy(hname, bname); X- } else if (sscanf(buf, "#define nickname \"%[^\"]\"", bname) == 1) { X- strcpy(nptr, bname); X- nptr += strlen(bname) + 1; X- } else if (sscanf(buf, "#define nickname%d \"%[^\"]\"", &i, bname) == 2) { X- strcpy(nptr, bname); X- nptr += strlen(bname) + 1; X- } X- } X- fclose(fd); X- if (hname[0] == 0) X- return FAIL; X- strncpy(name, hname, len); X- p = nname; X- i = strlen(hname) + 1; X- q = name + i; X- while (i < len && (p[0] != 0 || p[1] != 0)) { X- *q++ = *p++; X- i++; X- } X- *q++ = 0; X- return SUCCESS; X- } X- #endif X--- 74,76 ---- X*** ./usr/src/usr.bin/uucp/uulog.c.old Mon Feb 16 19:21:48 1987 X--- ./usr/src/usr.bin/uucp/uulog.c Sat May 9 08:57:29 2026 X*************** X*** 1,22 **** X! #ifndef lint X! static char sccsid[] = "@(#)uulog.c 5.4 (Berkeley) 6/23/85"; X #endif X X #include "uucp.h" X X- #ifndef SYSBUF X- static char SYSBUF[BUFSIZ]; X- #endif X- X main(argc, argv) X char *argv[]; X { X FILE *plogf; X char *sys, *user; X- X char buf[BUFSIZ], u[64], s[64]; X X- setbuf(stdout, SYSBUF); X strcpy(Progname, "uulog"); X sys = user = NULL; X X--- 1,16 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)uulog.c 5.5 (2.11BSD) 2026/5/9"; X #endif X X #include "uucp.h" X X main(argc, argv) X char *argv[]; X { X FILE *plogf; X char *sys, *user; X char buf[BUFSIZ], u[64], s[64]; X X strcpy(Progname, "uulog"); X sys = user = NULL; X X*** ./usr/src/usr.bin/uucp/uudecode.c.old Mon Feb 16 19:21:48 1987 X--- ./usr/src/usr.bin/uucp/uudecode.c Sat May 9 08:58:09 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)uudecode.c 5.3 (Berkeley) 4/10/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)uudecode.c 5.4 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/usr.bin/uucp/uux.c.old Mon Feb 16 19:21:48 1987 X--- ./usr/src/usr.bin/uucp/uux.c Sat May 9 08:58:50 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)uux.c 5.6 (Berkeley) 1/24/86"; X #endif X X #include "uucp.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)uux.c 5.7 (2.11BSD) 2026/5/9"; X #endif X X #include "uucp.h" X*************** X*** 71,79 **** X umask(WFMASK); X Ofn = 1; X Ifn = 0; X! #ifdef VMS X! arg_fix(argc, argv); X! #endif X while (argc>1 && argv[1][0] == '-') { X switch(argv[1][1]){ X case 'p': X--- 71,77 ---- X umask(WFMASK); X Ofn = 1; X Ifn = 0; X! X while (argc>1 && argv[1][0] == '-') { X switch(argv[1][1]){ X case 'p': X*************** X*** 479,510 **** X logent("Fname", "TABLE OVERFLOW"); X return fopen(subfile(file), mode); X } X- #ifdef VMS X- /* X- * EUNICE bug: X- * quotes are not stripped from DCL. Do it here. X- * Note if we are running under Unix shell we don't X- * do the right thing. X- */ X- arg_fix(argc, argv) X- char **argv; X- { X- register char *cp, *tp; X- X- for (; argc > 0; --argc, argv++) { X- cp = *argv; X- if (cp == (char *)0 || *cp++ != '"') X- continue; X- tp = cp; X- while (*tp++) ; X- tp -= 2; X- if (*tp == '"') { X- *tp = '\0'; X- *argv = cp; X- } X- } X- } X- #endif VMS X X /* X * split into system and file part X--- 477,482 ---- X*** ./usr/src/usr.bin/uucp/xqt.c.old Mon Feb 16 19:21:49 1987 X--- ./usr/src/usr.bin/uucp/xqt.c Sat May 9 08:59:49 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)xqt.c 5.3 (Berkeley) 6/23/85"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)xqt.c 5.4 (2.11BSD) 2026/5/9"; X #endif X X #include X*************** X*** 7,14 **** X X int LocalOnly = 0; X X- /*LINTLIBRARY*/ X- X /* X * start up uucico for rmtname X * X--- 7,12 ---- X*************** X*** 15,24 **** X * return codes: none X */ X X- #ifdef VMS X- #define fork vfork X- #endif VMS X- X xuucico(rmtname) X char *rmtname; X { X--- 13,18 ---- X*************** X*** 39,62 **** X sprintf(opt, "-s%s", rmtname); X else X opt[0] = '\0'; X- #ifndef VMS X if (LocalOnly) X execl(UUCICO, "uucico", "-r1", "-L", opt, (char *)0); X else X execl(UUCICO, "uucico", "-r1", opt, (char *)0); X- #else VMS X- /* Under VMS/EUNICE release the batch job */ X- if (LocalOnly) X- execl(STARTUUCP, "startuucp", "uucico", "-r1", "-L", opt, (char *)0); X- else X- execl(STARTUUCP, "startuucp", "uucico", "-r1", opt, (char *)0); X- #endif VMS X exit(100); X } X- #ifdef VMS X- while(wait(0) != -1) X- ; /* Wait for it to finish!! */ X- #endif VMS X return; X } X X--- 33,44 ---- X*** ./usr/src/usr.bin/uucp/uupoll.c.old Mon Feb 16 19:21:49 1987 X--- ./usr/src/usr.bin/uucp/uupoll.c Sat May 9 09:02:44 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)uupoll.c 5.5 (Berkeley) 10/9/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)uupoll.c 5.6 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/usr.bin/uucp/uusnap.c.old Mon Feb 16 19:21:49 1987 X--- ./usr/src/usr.bin/uucp/uusnap.c Sat May 9 09:22:42 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)uusnap.c 5.7 (Berkeley) 10/9/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)uusnap.c 5.8 (2.11BSD) 2026/5/9"; X #endif X X /* X*************** X*** 9,27 **** X X #include "uucp.h" X #include X- #ifdef NDIR X- #include "ndir.h" X- #else X #include X- #endif X #include X X! #ifndef SYSBUF X! char SYSBUF[BUFSIZ]; X! #endif X X- #define NSYSTEM 100 /* max # of systems queued */ X- X #define CMDSLEN 5 /* Length of trailer */ X #define DATALEN 5 /* Length of trailer */ X #define XEQTLEN 5 /* Length of trailer */ X--- 9,19 ---- X X #include "uucp.h" X #include X #include X #include X X! #define NSYSTEM 100 /* max # of systems queued */ X X #define CMDSLEN 5 /* Length of trailer */ X #define DATALEN 5 /* Length of trailer */ X #define XEQTLEN 5 /* Length of trailer */ X*************** X*** 49,55 **** X { register int i, j, nlen = 0; X time_t curtime, t; X X- setbuf(stdout, SYSBUF); X scandir(CMDSDIR, "C.", CMDSLEN, NULL, CMDTYPE); X scandir(DATADIR, "D.", DATALEN, NULL, DATTYPE); X scandir(XEQTDIR, "X.", XEQTLEN, 'X', XEQTYPE); X--- 41,46 ---- X*** ./usr/src/usr.bin/uucp/fio.c.old Mon Feb 16 19:21:49 1987 X--- ./usr/src/usr.bin/uucp/fio.c Tue Sep 22 00:32:15 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)fio.c 5.3 (Berkeley) 10/9/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)fio.c 5.4 (2.11BSD) 2026/5/9"; X #endif X X /* X*************** X*** 45,55 **** X X #include "uucp.h" X #include X- #ifdef USG X- #include X- #else !USG X #include X- #endif !USG X #include X X #define FIBUFSIZ 256 /* for X.25 interfaces: set equal to packet size, X--- 45,51 ---- X*************** X*** 68,74 **** X static int fchksum; X static jmp_buf Ffailbuf; X X! static X falarm() X { X signal(SIGALRM, falarm); X--- 64,70 ---- X static int fchksum; X static jmp_buf Ffailbuf; X X! static void X falarm() X { X signal(SIGALRM, falarm); X*************** X*** 75,87 **** X longjmp(Ffailbuf, 1); X } X X! static int (*fsig)(); X X- #ifndef USG X #define TCGETA TIOCGETP X #define TCSETA TIOCSETP X #define termio sgttyb X- #endif USG X X fturnon() X { X--- 71,81 ---- X longjmp(Ffailbuf, 1); X } X X! static sig_t fsig; X X #define TCGETA TIOCGETP X #define TCSETA TIOCSETP X #define termio sgttyb X X fturnon() X { X*************** X*** 90,102 **** X X if (!IsTcpIp) { X ioctl(Ifn, TCGETA, &ttbuf); X- #ifdef USG X- ttbuf.c_iflag = IXOFF|IXON|ISTRIP; X- ttbuf.c_cc[VMIN] = FIBUFSIZ > 64 ? 64 : FIBUFSIZ; X- ttbuf.c_cc[VTIME] = 5; X- #else !USG X ttbuf.sg_flags = ANYP|CBREAK|TANDEM; X- #endif USG X ret = ioctl(Ifn, TCSETA, &ttbuf); X ASSERT(ret >= 0, "STTY FAILED", "", ret); X } X--- 84,90 ---- X*************** X*** 181,192 **** X fchksum = 0xffff; X abytes = fbytes = 0L; X ack = '\0'; X- #ifdef USG X- time(&t1.time); X- t1.millitm = 0; X- #else !USG X ftime(&t1); X- #endif !USG X do { X alen = fwrblk(fn, fp1, &flen); X fbytes += flen; X--- 169,175 ---- X*************** X*** 203,214 **** X DEBUG(4, "ack - '%c'\n", ack); X } X acct: X- #ifdef USG X- time(&t2.time); X- t2.millitm = 0; X- #else !USG X ftime(&t2); X- #endif !USG X Now = t2; X t2.time -= t1.time; X mil = t2.millitm - t1.millitm; X--- 186,192 ---- X*************** X*** 218,224 **** X } X sprintf(ibuf, "sent data %ld bytes %ld.%02d secs", X fbytes, (long)t2.time, mil / 10); X- sysacct(abytes, t2.time); X if (retries > 0) X sprintf(&ibuf[strlen(ibuf)], ", %d retries", retries); X DEBUG(1, "%s\n", ibuf); X--- 196,201 ---- X*************** X*** 254,265 **** X retry: X fchksum = 0xffff; X abytes = fbytes = 0L; X- #ifdef USG X- time(&t1.time); X- t1.millitm = 0; X- #else !USG X ftime(&t1); X- #endif !USG X do { X flen = frdblk(ibuf, fn, &alen); X abytes += alen; X--- 231,237 ---- X*************** X*** 273,284 **** X } while (!eof); X ret = SUCCESS; X acct: X- #ifdef USG X- time(&t2.time); X- t2.millitm = 0; X- #else !USG X ftime(&t2); X- #endif !USG X Now = t2; X t2.time -= t1.time; X mil = t2.millitm - t1.millitm; X--- 245,251 ---- X*************** X*** 290,296 **** X fbytes, (long)t2.time, mil/10); X if (retries > 0) X sprintf(&ibuf[strlen(ibuf)]," %d retries", retries); X- sysacct(abytes, t2.time); X DEBUG(1, "%s\n", ibuf); X syslog(ibuf); X if (ret == FAIL) { X--- 257,262 ---- X*************** X*** 330,341 **** X return ret <= 0 ? FAIL : ret; X } X X- #if !defined(BSD4_2) && !defined(USG) X- /* call ultouch every TC calls to either frdblk or fwrblk */ X- #define TC 20 X- static int tc = TC; X- #endif !defined(BSD4_2) && !defined(USG) X- X /* Byte conversion: X * X * from pre to X--- 296,301 ---- X*************** X*** 358,370 **** X char obuf[FOBUFSIZ + 8]; X int ret; X X- #if !defined(BSD4_2) && !defined(USG) X- /* call ultouch occasionally */ X- if (--tc < 0) { X- tc = TC; X- ultouch(); X- } X- #endif !defined(BSD4_2) && !defined(USG) X op = obuf; X nl = 0; X len = 0; X--- 318,323 ---- X*************** X*** 446,458 **** X int i; X static char special = 0; X X- #if !defined(BSD4_2) && !defined(USG) X- /* call ultouch occasionally */ X- if (--tc < 0) { X- tc = TC; X- ultouch(); X- } X- #endif !defined(BSD4_2) && !defined(USG) X if ((len = frdbuf(ip, FIBUFSIZ, fn)) == FAIL) { X *rlen = 0; X goto dcorr; X--- 399,404 ---- X*** ./usr/src/usr.bin/uucp/cfgets.c.old Mon Feb 16 19:21:49 1987 X--- ./usr/src/usr.bin/uucp/cfgets.c Sat May 9 09:06:00 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)cfgets.c 5.3 (Berkeley) 6/19/85"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cfgets.c 5.4 (2.11BSD) 2026/5/9"; X #endif X X /* X*** ./usr/src/usr.bin/uucp/condevs.c.old Fri Oct 3 01:39:47 1997 X--- ./usr/src/usr.bin/uucp/condevs.c Sat May 9 10:07:15 2026 X*************** X*** 1,5 **** X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)condevs.c 5.15.2 (2.11BSD) 1997/10/2"; X #endif X X /* X--- 1,5 ---- X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)condevs.c 5.15.3 (2.11BSD) 2026/5/9"; X #endif X X /* X*************** X*** 149,184 **** X struct Devices dev; X char dcname[20]; X FILE *dfp; X! #ifdef VMSDTR /* Modem control on vms(works dtr) */ X! int modem_control; X! short iosb[4]; X! int sys$qiow(); /* use this for long reads on vms */ X! int ret; X! long mode[2]; X! modem_control = 0; X! #endif X dfp = fopen(DEVFILE, "r"); X ASSERT(dfp != NULL, "CAN'T OPEN", DEVFILE, 0); X while ((status = rddev(dfp, &dev)) != FAIL) { X- #ifdef VMSDTR /* Modem control on vms(works dtr) */ X- /* If we find MOD in the device type field we go into action */ X- if (strcmp(dev.D_type, "MOD") == SAME) { X- modem_control = 1; X- DEBUG(7, "Setting Modem control to %d",modem_control); X- } X if (strcmp(flds[F_CLASS], dev.D_class) != SAME) X- continue; X- /* X- * Modem control on vms(works dtr) Take anything in MOD class. X- * It probably should work differently anyway so we can have X- * multiple hardwired lines. X- */ X- if (!modem_control&&strcmp(flds[F_PHONE], dev.D_line) != SAME) X- #else !VMSDTR X- if (strcmp(flds[F_CLASS], dev.D_class) != SAME) X continue; X if (strcmp(flds[F_PHONE], dev.D_line) != SAME) X- #endif !VMSDTR X continue; X if (mlock(dev.D_line) != FAIL) X break; X--- 149,161 ---- X struct Devices dev; X char dcname[20]; X FILE *dfp; X! X dfp = fopen(DEVFILE, "r"); X ASSERT(dfp != NULL, "CAN'T OPEN", DEVFILE, 0); X while ((status = rddev(dfp, &dev)) != FAIL) { X if (strcmp(flds[F_CLASS], dev.D_class) != SAME) X continue; X if (strcmp(flds[F_PHONE], dev.D_line) != SAME) X continue; X if (mlock(dev.D_line) != FAIL) X break; X*************** X*** 202,228 **** X errno = 0; X DEBUG(4,"Opening %s\n",dcname); X dcr = open(dcname, 2); /* read/write */ X- #ifdef VMSDTR /* Modem control on vms(works dtr) */ X- fflush(stdout); X- if (modem_control) { /* Did we have MOD in the device type field ? */ X- /* Sense the current terminal setup and save it */ X- if ((ret = sys$qiow(_$EFN,(fd_fab_pointer[dcr]->fab).fab$l_stv, X- IO$_SENSEMODE,iosb,0,0,mode,8,0,0,0,0)) X- != SS$_NORMAL) { X- DEBUG(7, "ret status on sense failed on Modem sense=%x<", ret); X- return CF_DIAL; X- } X- mode[1] |= TT$M_MODEM; /* Or in modem control(DTR) */ X- /* Now set the new terminal characteristics */ X- /* This is temporary and will go away when we let go of it */ X- if ((ret = sys$qiow(_$EFN,(fd_fab_pointer[dcr]->fab).fab$l_stv, X- IO$_SETMODE,iosb,0,0,mode,8,0,0,0,0)) X- != SS$_NORMAL) { X- DEBUG(7, "ret status on sense failed on Modem setup=%x<", ret); X- return CF_DIAL; X- } X- } X- #endif VMSDTR X next_fd = -1; X alarm(0); X if (dcr < 0) { X--- 179,184 ---- X*************** X*** 360,367 **** X * intervaldelay: delay execution for numerator/denominator seconds. X */ X X- #ifdef INTERVALTIMER X #define uucpdelay(num,denom) intervaldelay(num,denom) X intervaldelay(num,denom) X int num, denom; X { X--- 316,323 ---- X * intervaldelay: delay execution for numerator/denominator seconds. X */ X X #define uucpdelay(num,denom) intervaldelay(num,denom) X+ X intervaldelay(num,denom) X int num, denom; X { X*************** X*** 370,415 **** X tv.tv_usec = (num * 1000000L / denom ) % 1000000L; X (void) select (0, (int *)0, (int *)0, (int *)0, &tv); X } X- #endif INTERVALTIMER X X- #ifdef FASTTIMER X- #define uucpdelay(num,denom) nap(60*num/denom) X- /* Sleep in increments of 60ths of second. */ X- nap (time) X- register int time; X- { X- static int fd; X- X- if (fd == 0) X- fd = open (FASTTIMER, 0); X- X- read (fd, 0, time); X- } X- #endif FASTTIMER X- X- #ifdef FTIME X- #define uucpdelay(num,denom) ftimedelay(1000*num/denom) X- ftimedelay(n) X- { X- static struct timeb loctime; X- register i = loctime.millitm; X- X- ftime(&loctime); X- while (abs((int)(loctime.millitm - i)) 0); } X- busyloop(n) X- { X- DELAY(n); X- } X- #endif BUSYLOOP X- X slowrite(fd, str) X register char *str; X { X--- 326,332 ---- X*************** X*** 431,440 **** X genbrk(fn, bnulls) X register int fn, bnulls; X { X- #ifdef USG X- if (ioctl(fn, TCSBRK, STBNULL) < 0) X- DEBUG(5, "break TCSBRK %s\n", strerror(errno)); X- #else !USG X # ifdef TIOCSBRK X if (ioctl(fn, TIOCSBRK, STBNULL) < 0) X DEBUG(5, "break TIOCSBRK %s\n", strerror(errno)); X--- 348,353 ---- X*************** X*** 467,473 **** X goto badbreak; X DEBUG(4, "sent BREAK nulls - %d\n", bnulls); X #endif !TIOCSBRK X- #endif !USG X } X X X--- 380,385 ---- X*** ./usr/src/usr.bin/uucp/condevs.h.old Fri Mar 22 23:31:55 1996 X--- ./usr/src/usr.bin/uucp/condevs.h Tue Sep 22 00:05:06 2026 X*************** X*** 1,4 **** X! /* condevs.h 4.7.1 1996/3/22 */ X X #include "uucp.h" X #include X--- 1,4 ---- X! /* condevs.h 4.7.2 (2.11BSD) 2026/9/21 */ X X #include "uucp.h" X #include X*************** X*** 5,22 **** X #include X #include X #include X- #ifdef VMSDTR /* Modem control on vms(works dtr) */ X- #include X- #define TT$M_MODEM 0x00200000 /* These should be in a '.h' somewhere */ X- #define SS$_NORMAL 0x00000001 X- #define IO$_SETMODE 0x00000023 X- #define IO$_SENSEMODE 0x00000027 X- #endif X X extern char devSel[]; /* name to pass to delock() in close */ X extern int next_fd; X extern jmp_buf Sjbuf; X! extern int alarmtr(); X int nulldev(), nodev(), Acuopn(), diropn(), dircls(); X X #ifdef DATAKIT X--- 5,15 ---- X #include X #include X #include X X extern char devSel[]; /* name to pass to delock() in close */ X extern int next_fd; X extern jmp_buf Sjbuf; X! extern void alarmtr(); X int nulldev(), nodev(), Acuopn(), diropn(), dircls(); X X #ifdef DATAKIT X*** ./usr/src/usr.bin/uucp/Makefile.old Tue Dec 23 09:32:16 2025 X--- ./usr/src/usr.bin/uucp/Makefile Sat May 9 15:22:32 2026 X*************** X*** 1,4 **** X! # Makefile 5.11.4 (2.11BSD) 2025/11/25 X # X # LIBS can be set to reference other object modules and libraries needed X # by uucico, such as -lunet (needed when UNET is defined). X--- 1,4 ---- X! # Makefile 5.11.5 (2.11BSD) 2026/2/2 X # X # LIBS can be set to reference other object modules and libraries needed X # by uucico, such as -lunet (needed when UNET is defined). X*************** X*** 8,17 **** X ALL= uucico uucp uux uuxqt uulog uuclean uuname uupoll uusnap \ X uuencode uudecode uusend uucpd uuq acucntrl X # Common object files placed in uulib.a X! COMMON= anlwrk.o anyread.o assert.o cfgets.o chkpth.o \ X cpmv.o expfile.o gename.o getargs.o getprm.o \ X getpwinfo.o gnamef.o gnxseq.o lastpart.o logent.o mailst.o \ X! prefix.o setline.o subdir.o sysacct.o systat.o \ X ulockf.o uucpname.o versys.o xqt.o uucpdefs.o X SRCS= ${USRCS} ${OSRCS} ${LSRCS} X USRCS= cico.c cntrl.c conn.c condevs.c gnsys.c pk0.c chksum.c pk1.c tio.c \ X--- 8,17 ---- X ALL= uucico uucp uux uuxqt uulog uuclean uuname uupoll uusnap \ X uuencode uudecode uusend uucpd uuq acucntrl X # Common object files placed in uulib.a X! COMMON= anlwrk.o anyread.o cfgets.o chkpth.o \ X cpmv.o expfile.o gename.o getargs.o getprm.o \ X getpwinfo.o gnamef.o gnxseq.o lastpart.o logent.o mailst.o \ X! prefix.o subdir.o systat.o \ X ulockf.o uucpname.o versys.o xqt.o uucpdefs.o X SRCS= ${USRCS} ${OSRCS} ${LSRCS} X USRCS= cico.c cntrl.c conn.c condevs.c gnsys.c pk0.c chksum.c pk1.c tio.c \ X*************** X*** 23,29 **** X gename.c getargs.c getprm.c getpwinfo.c \ X gnamef.c gnxseq.c \ X lastpart.c logent.c mailst.c prefix.c \ X! setline.c subdir.c sysacct.c systat.c ulockf.c \ X uucpdefs.c uucpname.c versys.c xqt.c X # Objects extracted from libc.a when building an overlaid uucico X LIBOBJS= gethnamadr.o getsent.o getsbyname.o res_init.o res_send.o \ X--- 23,29 ---- X gename.c getargs.c getprm.c getpwinfo.c \ X gnamef.c gnxseq.c \ X lastpart.c logent.c mailst.c prefix.c \ X! subdir.c systat.c ulockf.c \ X uucpdefs.c uucpname.c versys.c xqt.c X # Objects extracted from libc.a when building an overlaid uucico X LIBOBJS= gethnamadr.o getsent.o getsbyname.o res_init.o res_send.o \ X*************** X*** 33,39 **** X GROUP= daemon X CFLAGS= -O X LDFLAGS=-i X- LINTFLAGS= -chba X LIBS= X SBINDIR= /usr/sbin X LIBEXECDIR= /usr/libexec X--- 33,38 ---- X*************** X*** 50,104 **** X HOSTNAME=`uuname -l | sed 's/\(.......\).*/\1/'` X SUBDIRS=C. D.${HOSTNAME}X D.${HOSTNAME} D. X. TM. X X! all: ${ALL} X X! lint: ${SRCS} X! lint ${LINTFLAGS} ${USRCS} ${LSRCS} X! -for i in ${OSRCS} ; do \ X! lint ${LINTFLAGS} $$i ${LSRCS} ;\ X! done X X! print: $(SRCS) X! vgrind $? X! vgrind -x index X! touch print X X! uucp: uucp.o uulib.a X! ${CC} -o uucp ${LDFLAGS} uucp.o uulib.a ${LIBS} X X! uux: uux.o uulib.a X! ${CC} -o uux ${LDFLAGS} uux.o uulib.a ${LIBS} X X! uuxqt: uuxqt.o uulib.a X! ${CC} -o uuxqt ${LDFLAGS} uuxqt.o uulib.a ${LIBS} X! X! uucico: cico.o cntrl.o conn.o condevs.o gnsys.o pk0.o chksum.o pk1.o tio.o \ X! fio.o gio.o imsg.o uulib.a aculib/aculib.a X! -if egrep -s "^#define[ ]BSDTCP" uucp.h; then \ X! ar x /lib/libc.a ${LIBOBJS}; \ X ${CC} -o uucico ${LDFLAGS} cico.o cntrl.o condevs.o \ X gnsys.o pk0.o chksum.o tio.o fio.o imsg.o \ X uulib.a aculib/aculib.a \ X! -Z gio.o ${LIBOBJS} \ X -Z pk1.o conn.o \ X! -Y ${LIBS} ; \ X! else \ X! ${CC} -o uucico ${LDFLAGS} cico.o cntrl.o conn.o condevs.o \ X! gnsys.o pk0.o chksum.o pk1.o tio.o fio.o gio.o imsg.o \ X! uulib.a aculib/aculib.a ${LIBS} ; \ X! fi X X! uulog: uulog.o uulib.a X! ${CC} -o uulog ${LDFLAGS} uulog.o uulib.a ${LIBS} X X! uuclean: uuclean.o uulib.a X! ${CC} -o uuclean ${LDFLAGS} uuclean.o uulib.a ${LIBS} X X! uuname: uuname.o uulib.a X! ${CC} -o uuname ${LDFLAGS} uuname.o uulib.a ${LIBS} X X! uupoll: uupoll.o uulib.a X! ${CC} -o uupoll ${LDFLAGS} uupoll.o uulib.a ${LIBS} X X uusnap: uusnap.o X ${CC} -o uusnap ${LDFLAGS} uusnap.o ${LIBS} X--- 49,96 ---- X HOSTNAME=`uuname -l | sed 's/\(.......\).*/\1/'` X SUBDIRS=C. D.${HOSTNAME}X D.${HOSTNAME} D. X. TM. X X! all: ${ALL} acucntrl.0 X X! acucntrl.0: acucntrl.8 X! /usr/man/manroff acucntrl.8 > acucntrl.0 X X! uucp: uucp.o assert.o uulib.a X! ${CC} -o uucp ${LDFLAGS} uucp.o assert.o uulib.a ${LIBS} X X! uux: uux.o assert.o uulib.a X! ${CC} -o uux ${LDFLAGS} uux.o assert.o uulib.a ${LIBS} X X! uuxqt: uuxqt.o assert.o uulib.a X! ${CC} -o uuxqt ${LDFLAGS} uuxqt.o assert.o uulib.a ${LIBS} X X! # Previously "egrep -s" was used to search uucp.h but the exit status of the X! # "if" had to be ignored so make would not think an error had happened. This X! # had the side effect of ignoring the "ld: too big for type 431" error and X! # installing a corrupt executable X! # X! # If anyone wants to build a non networking uucico then connect this block X! # and uncomment the block below X! uucico: cico.o cntrl.o conn.o condevs.o gnsys.o pk0.o chksum.o pk1.o tio.o \ X! fio.o gio.o imsg.o assert.o uulib.a aculib/aculib.a X! ar x /lib/libc.a ${LIBOBJS} X ${CC} -o uucico ${LDFLAGS} cico.o cntrl.o condevs.o \ X gnsys.o pk0.o chksum.o tio.o fio.o imsg.o \ X uulib.a aculib/aculib.a \ X! -Z gio.o assert.o ${LIBOBJS} \ X -Z pk1.o conn.o \ X! -Y ${LIBS} X X! uulog: uulog.o assert.o uulib.a X! ${CC} -o uulog ${LDFLAGS} uulog.o assert.o uulib.a ${LIBS} X X! uuclean: uuclean.o assert.o uulib.a X! ${CC} -o uuclean ${LDFLAGS} uuclean.o assert.o uulib.a ${LIBS} X X! uuname: uuname.o assert.o uulib.a X! ${CC} -o uuname ${LDFLAGS} uuname.o assert.o uulib.a ${LIBS} X X! uupoll: uupoll.o assert.o uulib.a X! ${CC} -o uupoll ${LDFLAGS} uupoll.o assert.o uulib.a ${LIBS} X X uusnap: uusnap.o X ${CC} -o uusnap ${LDFLAGS} uusnap.o ${LIBS} X*************** X*** 143,149 **** X ranlib $@ X X aculib/aculib.a: X! cd aculib; make ${MFLAGS} "CFLAGS=${CFLAGS}" X X install: mkdirs ${ALL} X for i in uucico uuclean; do \ X--- 135,141 ---- X ranlib $@ X X aculib/aculib.a: X! cd aculib; make X X install: mkdirs ${ALL} X for i in uucico uuclean; do \ X*************** X*** 154,159 **** X--- 146,152 ---- X done X rm -f ${BIN}/ruusend X ln ${BIN}/uusend ${BIN}/ruusend X+ install -c -m 444 -o root -g staff acucntrl.0 /usr/man/cat8 X install -c -s -m 6550 -o ${OWNER} -g ${GROUP} uuxqt ${LIBEXECDIR} X install -c -s -m 6550 -o root -g ${GROUP} acucntrl ${LIBEXECDIR} X install -c -s -m 500 -o uucp uucpd ${LIBEXECDIR} X*************** X*** 163,170 **** X install -s uudecode ${BIN} X X clean: X! rm -f *.o ${ALL} uulib.a X! cd aculib; make ${MFLAGS} clean X X depend: X mkdep ${CFLAGS} *.c X--- 156,163 ---- X install -s uudecode ${BIN} X X clean: X! rm -f *.o ${ALL} uulib.a *.0 X! cd aculib; make clean X X depend: X mkdep ${CFLAGS} *.c X*** ./usr/src/usr.bin/uucp/acucntrl.8.old Fri Sep 20 14:11:33 2024 X--- ./usr/src/usr.bin/uucp/acucntrl.8 Sat Feb 7 13:21:22 2026 X*************** X*** 1,6 **** X! .\" @(#)acucntrl.8 6.3 (2.11BSD) 2024/9/20 X .\" X! .TH acucntrl 8 "Sep 20, 2024" X .UC 6 X .SH NAME X acucntrl \- turn around tty line between dialin and dialout X--- 1,6 ---- X! .\" @(#)acucntrl.8 6.3 (2.11BSD) 2026/2/6 X .\" X! .TH acucntrl 8 "February 6, 2026" X .UC 6 X .SH NAME X acucntrl \- turn around tty line between dialin and dialout X*************** X*** 40,46 **** X The last condition is to allow the superuser to clear the state of the line. X .PP X Turning modem control on or off is handled by poking into /dev/kmem. X! It is currently implemented for dz, dh, and dmf lines. X .PP X Under 4.2 BSD the program will also refuse to disable a line if carrier is X sensed on it. This is to avoid the dead period where someone has just dialed X--- 40,46 ---- X The last condition is to allow the superuser to clear the state of the line. X .PP X Turning modem control on or off is handled by poking into /dev/kmem. X! It is currently implemented for dz and dh lines. X .PP X Under 4.2 BSD the program will also refuse to disable a line if carrier is X sensed on it. This is to avoid the dead period where someone has just dialed X*************** X*** 109,119 **** X .SH FILES X /dev/kmem, /unix, /etc/ttys, /var/run/utmp, /dev/tty* X .SH BUGS X- .PP X- Sensing carrier requires the 4.2 BSD TIOCMGET ioctl call. Unfortunately this X- ioctl is not implemented in the vanilla 4.2 BSD dh driver even though the X- dz and dmf drivers use an emulation of the DH11's modem control bits. This X- has been fixed here. X .PP X Some time (currently 2 seconds) is required between disabling modem control X and opening the device. This is probably because of a race with getty whose X--- 109,114 ---- X*** ./usr/src/usr.bin/uucp/acucntrl.c.old Fri Sep 20 14:10:57 2024 X--- ./usr/src/usr.bin/uucp/acucntrl.c Sat Feb 7 14:25:10 2026 X*************** X*** 1,5 **** X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)acucntrl.c 5.9 (2.11BSD) 2024/9/20"; X #endif X X /* acucntrl - turn around tty line between dialin and dialout X--- 1,5 ---- X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)acucntrl.c 5.9 (2.11BSD) 2026/2/6"; X #endif X X /* acucntrl - turn around tty line between dialin and dialout X*************** X*** 49,63 **** X #include X #include X #include X- #ifdef pdp11 X #include X- #else X- #ifdef BSD4_2 X- #include X- #else X- #include X- #endif X- #endif X #include X #include X #include X--- 49,55 ---- X*************** X*** 70,80 **** X X #define NDZLINE 8 /* lines/dz */ X #define NDHLINE 16 /* lines/dh */ X- #define NDMFLINE 8 /* lines/dmf */ X X #define DZ11 1 X #define DH11 2 X- #define DMF 3 X X #define NLVALUE(val) (nl[val].n_value) X X--- 62,70 ---- X*************** X*** 90,96 **** X { "_dz_cnt" }, X #define DZSCAR 4 X { "_dzsoftCAR" }, X- X #define DHOPEN 5 X { "_dhopen" }, X #define DHINFO 6 X--- 80,85 ---- X*************** X*** 99,114 **** X { "_ndh11" }, X #define DHSCAR 8 X { "_dhsoftCAR" }, X- X- #define DMFOPEN 9 X- { "_dmfopen" }, X- #define DMFINFO 10 X- { "_dmfinfo" }, X- #define NDMF 11 X- { "_ndmf" }, X- #define DMFSCAR 12 X- { "_dmfsoftCAR" }, X- X { "\0" } X }; X X--- 88,93 ---- X*************** X*** 117,127 **** X X char Etcutmp[] = _PATH_UTMP; X char Etcttys[] = "/etc/ttys"; X- #ifdef BSD4_3 X FILE *ttysfile, *nttysfile; X char NEtcttys[] = "/etc/ttys.new"; X- extern long ftell(); X- #endif BSD4_3 X char Devhome[] = "/dev"; X X char usage[] = "Usage: acucntrl {dis|en}able ttydX\n"; X--- 96,103 ---- X*************** X*** 145,153 **** X char *device; X int devfile; X int uid, gid; X- off_t lseek(); X- struct passwd *getpwuid(); X- char *rindex(); X X /* check input arguments */ X if (argc!=3) { X--- 121,126 ---- X*************** X*** 390,396 **** X } while (utmp.ut_name[0] != '\0' && --i > 0); X } X X- #ifdef BSD4_3 X /* identify terminal line in ttys */ X opnttys(device) X char *device; X--- 363,368 ---- X*************** X*** 397,403 **** X { X register int ndevice; X register char *p; X- char *index(); X char linebuf[BUFSIZ]; X X ttysfile = NULL; X--- 369,374 ---- X*************** X*** 421,431 **** X } X X ndevice = strlen(device); X- #ifndef BRL4_2 X utmploc = sizeof(utmp); X- #else BRL4_2 X- utmploc = 0; X- #endif BRL4_2 X X while(fgets(linebuf, sizeof(linebuf) - 1, ttysfile) != NULL) { X if(strncmp(device, linebuf, ndevice) == 0) X--- 392,398 ---- X*************** X*** 524,609 **** X return enable^resettty; X } X X- #else !BSD4_3 X- X- /* identify terminal line in ttys */ X- opnttys(device) X- char *device; X- { X- register FILE *ttysfile; X- register int ndevice, lnsiz; X- register char *p; X- char *index(); X- char linebuf[BUFSIZ]; X- X- ttysfile = fopen(Etcttys, "r"); X- if(ttysfile == NULL) { X- fprintf(stderr, "Cannot open %s: %s\n", Etcttys, X- strerror(errno)); X- exit(1); X- } X- X- ndevice = strlen(device); X- ttyslnbeg = 0; X- utmploc = 0; X- X- while(fgets(linebuf, sizeof(linebuf) - 1, ttysfile) != NULL) { X- lnsiz = strlen(linebuf); X- if ((p = index(linebuf, '\n')) != NULL) X- *p = '\0'; X- if(strncmp(device, &linebuf[2], ndevice) == 0) { X- (void)fclose(ttysfile); X- return; X- } X- ttyslnbeg += lnsiz; X- utmploc += sizeof(utmp); X- } X- fprintf(stderr, "%s not found in %s\n", device, Etcttys); X- exit(1); X- } X- X- /* modify appropriate line in /etc/ttys to turn on/off the device */ X- settys(enable) X- int enable; X- { X- int ittysfil; X- char out, in; X- X- ittysfil = open(Etcttys, 2); X- if(ittysfil < 0) { X- fprintf(stderr, "Cannot open %s for output: %s\n", X- Etcttys, strerror(errno)); X- exit(1); X- } X- (void)lseek(ittysfil, ttyslnbeg, 0); X- if(read(ittysfil, &in, 1)<0) { X- fprintf(stderr, "On %s write: %s\n", X- Etcttys, strerror(errno)); X- exit(1); X- } X- resettty = (in == '1'); X- out = enable ? '1' : '0'; X- (void)lseek(ittysfil, ttyslnbeg, 0); X- if(write(ittysfil, &out, 1)<0) { X- fprintf(stderr, "On %s write: %s\n", X- Etcttys, strerror(errno)); X- exit(1); X- } X- (void)close(ittysfil); X- return(in==out); X- } X- #endif !BSD4_3 X- X /* X * Excerpted from (June 8, 1983 W.Sebok) X! * > ttymodem.c - enable/disable modem control for tty lines. X! * > X! * > Knows about DZ11s and DH11/DM11s. X! * > 23.3.83 - TS X! * > modified to know about DMF's (hasn't been tested) Nov 8, 1984 - WLS X */ X X- X /* X * 2.11BSD NOTE: 2.11BSD doesn't use ui_flags. We've included the code X * for correctness in case someone decides to change the way the 2.11BSD X--- 491,501 ---- X return enable^resettty; X } X X /* X * Excerpted from (June 8, 1983 W.Sebok) X! * ttymodem.c - enable/disable modem control for tty lines. X */ X X /* X * 2.11BSD NOTE: 2.11BSD doesn't use ui_flags. We've included the code X * for correctness in case someone decides to change the way the 2.11BSD X*************** X*** 632,642 **** X int devtype=0; X char cflags; X unsigned short sflags; X- #ifdef BSD4_2 X long flags, tflags; X! #else X! short flags, tflags; X! #endif X struct uba_device *ubinfo; X struct stat statb; X struct cdevsw cdevsw; X--- 524,531 ---- X int devtype=0; X char cflags; X unsigned short sflags; X long flags, tflags; X! X struct uba_device *ubinfo; X struct stat statb; X struct cdevsw cdevsw; X*************** X*** 670,701 **** X devtype = DZ11; X unit = minor(dev) / NDZLINE; X line = minor(dev) % NDZLINE; X- #ifdef pdp11 X ubinfo = &(((struct uba_device *)NLVALUE(DZINFO))[unit]); X- #else X- addr = (int) &(((int *)NLVALUE(DZINFO))[unit]); X- #endif X (void)lseek(kmem, (off_t) NLVALUE(NDZ11), 0); X } else if((int)(cdevsw.d_open) == NLVALUE(DHOPEN)) { X devtype = DH11; X unit = minor(dev) / NDHLINE; X line = minor(dev) % NDHLINE; X- #ifdef pdp11 X ubinfo = &(((struct uba_device *)NLVALUE(DHINFO))[unit]); X- #else X- addr = (int) &(((int *)NLVALUE(DHINFO))[unit]); X- #endif X (void)lseek(kmem, (off_t) NLVALUE(NDH11), 0); X- } else if((int)(cdevsw.d_open) == NLVALUE(DMFOPEN)) { X- devtype = DMF; X- unit = minor(dev) / NDMFLINE; X- line = minor(dev) % NDMFLINE; X- #ifdef pdp11 X- ubinfo = &(((struct uba_device *)NLVALUE(DMFINFO))[unit]); X- #else X- addr = (int) &(((int *)NLVALUE(DMFINFO))[unit]); X- #endif X- (void)lseek(kmem, (off_t) NLVALUE(NDMF), 0); X } else { X fprintf(stderr, "Device %s (%d/%d) unknown.\n", ttyline, X major(dev), minor(dev)); X--- 559,572 ---- X*************** X*** 709,731 **** X return(-1); X } X X- #ifndef pdp11 X- (void)lseek(kmem, (off_t)addr, 0); X- (void)read(kmem, (char *) &ubinfo, sizeof ubinfo); X- #endif X (void)lseek(kmem, (off_t) &(ubinfo->ui_flags), 0); X (void)read(kmem, (char *) &flags, sizeof flags); X X- #ifdef BSD4_2 X tflags = 1L<ui_flags), 0); X (void)write(kmem, (char *) &flags, sizeof flags); X! #ifndef pdp11 X switch(devtype) { X case DZ11: X if((addr = NLVALUE(DZSCAR)) == 0) { X--- 580,595 ---- X return(-1); X } X X (void)lseek(kmem, (off_t) &(ubinfo->ui_flags), 0); X (void)read(kmem, (char *) &flags, sizeof flags); X X tflags = 1L<ui_flags), 0); X (void)write(kmem, (char *) &flags, sizeof flags); X! X! #if defined(KERNELsoftCAR) X switch(devtype) { X case DZ11: X if((addr = NLVALUE(DZSCAR)) == 0) { X*************** X*** 744,758 **** X sflags = flags; X (void)lseek(kmem, (off_t) &(((short *)addr)[unit]), 0); X (void)write(kmem, (char *) &sflags, sizeof sflags); X- break; X- case DMF: X- if((addr = NLVALUE(DMFSCAR)) == 0) { X- fprintf(stderr, "No dmfsoftCAR.\n"); X- return(-1); X- } X- cflags = flags; X- (void)lseek(kmem, (off_t) &(((char *)addr)[unit]), 0); X- (void)write(kmem, (char *) &flags, sizeof cflags); X break; X default: X fprintf(stderr, "Unknown device type\n"); X--- 608,613 ---- X*** ./usr/src/usr.bin/uucp/uucp.h.old Fri Oct 3 01:43:46 1997 X--- ./usr/src/usr.bin/uucp/uucp.h Sat May 9 09:25:49 2026 X*************** X*** 1,4 **** X! /* uucp.h 5.11.6 1997/10/2 */ X X #include X #include X--- 1,4 ---- X! /* uucp.h 5.11.7 (2.11BSD) 2026/2/6 */ X X #include X #include X*************** X*** 7,52 **** X #include X #include X X- /* X- * Determine local uucp name of this machine. X- * Define one of the following: X- * X- * For UCB 4.1A and later systems, you will have the gethostname(2) call. X- * If this call exists, define GETHOSTNAME. X- * X- * For USG 3.0 and later systems, you will have the uname(2) call. X- * If this call exists, define UNAME. X- * X- * Some systems have a line of the form '#define sysname "myuucpname",' X- * in the file /usr/include/whoami.h, to identify their machine. X- * If your site does that, define WHOAMI. X- * X- * If your site has , but you do not want to read X- * that file every time uucp runs, you can compile sysname into uucp. X- * This is faster and more reliable, but binaries do not port. X- * If you want to do that, define CCWHOAMI. X- * X- * Some systems put the local uucp name in a single-line file X- * named /etc/uucpname or /local/uucpname. X- * If your site does that, define UUNAME. X- * X- * Systems running 3Com's UNET will have the getmyhname() call. X- * If you want to, define GETMYHNAME. X- * X- * You should also define MYNAME to be your uucp name. X- * X- * For each of the above that are defined, uucp checks them in order. X- * It stops on the first method that returns a non null name. X- * If everything fails, it uses "unknown" for the system name. X- */ X #define GETHOSTNAME /**/ X! /* #define UNAME /**/ X! /* #define WHOAMI /**/ X! /* #define CCWHOAMI /**/ X! /* #define UUNAME /**/ X! /* #define GETMYHNAME /**/ X! /* If the above fails ... */ X! #define MYNAME "wlonex" X X /* X * If you have it, include to use exit X--- 7,14 ---- X #include X #include X X #define GETHOSTNAME /**/ X! #define MYNAME "example" X X /* X * If you have it, include to use exit X*************** X*** 54,62 **** X * Otherwise, define EX_NOHOST, EX_CANTCREAT, and EX_NOINPUT. X */ X #include X- /*#define EX_NOINPUT 66 /**/ X- /*#define EX_NOHOST 68 /**/ X- /*#define EX_CANTCREAT 73 /**/ X X /* X * Define the various kinds of connections to include. X--- 16,21 ---- X*************** X*** 91,143 **** X #define HAYES X #endif USR2400 && !HAYES X X- #if defined(UNETTCP) || defined(BSDTCP) X #define TCPIP X- #endif X X /* X- * We need a timer to write slowly to certain modems. X- * and for generating breaks. X- * X- * define INTERVALTIMER to use 4.[23] bsd interval timer. X- * define FASTTIMER if you have the nap() system call. X- * define FTIME if you have the ftime() system call. X- * define BUSYLOOP if you must do a busy loop. X- * Look at uucpdelay() in condevs.c for details. X- */ X- #define INTERVALTIMER /**/ X- /*#define FASTTIMER /**/ X- /*#define FTIME /**/ X- /*#define BUSYLOOP /**/ X- X- /* X- * If your site is using "ndir.h" to retrofit the Berkeley X- * directory reading routines, define NDIR. X- * You will probably also have to set LIBNDIR in Makefile. X- * Otherwise, is assumed to have the Berkeley directory definitions. X- */ X- /*#define NDIR /**/ X- X- /* X- * If yours is a BTL system III, IV, V or so-on site, define USG. X- */ X- /*#define USG /**/ X- X- /* X * If you are running 4.3bsd, define BSD4_3 and BSD4_2 X * If you are just running 4.2bsd, define BSD4_2 X * If you are running 2.11bsd, define BSD4_3 and BSD4_2 X- * If you are running the BRL version of 4.2BSD define BRL4_2, NOT BSD4_3 X */ X #define BSD4_3 /**/ X #define BSD4_2 /**/ X- /*#define BRL4_2 /**/ X X- #if defined(BRL4_2) && !defined(BSD4_2) X- #define BSD4_2 X- #undef BSD4_3 X- #endif BRL4_2 X- X /* X * If you are running 2.9bsd define BSD2_9 X */ X--- 50,65 ---- X*************** X*** 149,163 **** X /* #define BSDINETD /**/ X X /* X! * If you are running 4.3bsd, 2.11bsd or BRL 4.2, you are running 'inetd' X */ X X! #if (defined(BSD4_3) || defined(BRL4_2)) && !defined(BSDINETD) X #define BSDINETD X! #endif (BSD4_3 ||BRL4_2) && !BSDINETD X X- /*#define VMSDTR /* Turn on modem control on vms(works DTR) for X- develcon and gandalf ports to gain access */ X /* X * If you want to use the same modem for dialing in and out define X * DIALINOUT to be the localtion of the acucntrl program X--- 71,83 ---- X /* #define BSDINETD /**/ X X /* X! * If you are running 4.3bsd, 2.11bsd you are running 'inetd' X */ X X! #if (defined(BSD4_3) && !defined(BSDINETD)) X #define BSDINETD X! #endif X X /* X * If you want to use the same modem for dialing in and out define X * DIALINOUT to be the localtion of the acucntrl program X*************** X*** 358,376 **** X #define WKDSIZE 100 /* size of work dir name */ X X #include X- #ifndef USG X #include X- #else USG X- struct timeb X- { X- time_t time; X- unsigned short millitm; X- short timezone; X- short dstflag; X- }; X- #define rindex strrchr X- #define index strchr X- #endif USG X X extern struct timeb Now; X X--- 278,284 ---- X*** ./usr/src/usr.bin/uucp/ulockf.c.old Fri Oct 3 01:59:02 1997 X--- ./usr/src/usr.bin/uucp/ulockf.c Sat May 9 09:47:23 2026 X*************** X*** 1,5 **** X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ulockf.c 5.5.1 (2.11BSD) 1997/10/2"; X #endif X X #include "uucp.h" X--- 1,5 ---- X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ulockf.c 5.5.2 (2.11BSD) 2026/5/9"; X #endif X X #include "uucp.h" X*************** X*** 39,54 **** X sprintf(file, "%s/LCK..%s", LockDirectory, hfile); X i = 0; X while (onelock(pid, tempfile, file) == -1) { /* lock file exists */ X- #if !defined(BSD4_2) && !defined(USG) X- struct stat stbuf; X- time_t ptime; X- /* get status to check age of the lock file */ X- if (stat(file, &stbuf) == 0) { X- (void) time(&ptime); X- if ((ptime - stbuf.st_ctime) < atime) X- return FAIL; /* file not old enough to delete */ X- } X- #else BSD4_2 || USG X register int fd; X fd = open(file, 0); X if (fd >= 0) { X--- 39,44 ---- X*************** X*** 59,65 **** X || errno != ESRCH)) X return FAIL; /* process is still running */ X } X- #endif BSD4_2 || USG X assert("DEAD LOCK", file, errno); X logent(file, "DEAD LOCK"); X (void) unlink(file); X--- 49,54 ---- X*************** X*** 116,126 **** X { X register int fd, ret; X extern int errno; X- #ifdef VMS X- fd = creat(name, LCKMODE, "1version"); X- #else !VMS X fd = creat(tempfile, LCKMODE); X- #endif !VMS X if (fd < 0) { X DEBUG(1,"Can't creat temp file %s ", tempfile); X DEBUG(1,"-- errno %d", errno); X--- 105,111 ---- X*************** X*** 131,197 **** X X if (ret != sizeof(int)) { X DEBUG(1,"Temp file write failed -- errno %d\n", errno); X- #ifdef VMS X- (void) unlink(name); X- #else !VMS X (void) unlink(tempfile); X- #endif !VMS X return FAIL; X } X- #ifndef VMS X if (link(tempfile, name) < 0) { X (void) unlink(tempfile); X return FAIL; X } X unlink(tempfile); X- #endif !VMS X return SUCCESS; X } X- X- #if !defined(BSD4_2) && !defined(USG) X- /* X- * update 'change' time for lock files X- * X- * Only update ctime, not mtime or atime. X- * The 'chmod' method permits cu(I)-like programs X- * to determine how long uucp has been on the line. X- * The old "change access, mod, and change time" method X- * can be had by defining OLDTOUCH X- * X- * return code - none X- */ X- X- ultouch() X- { X- static time_t lasttouch = 0; X- register int i; X- struct ut { X- time_t actime; X- time_t modtime; X- } ut; X- X- #ifdef USG X- time(&Now.time); X- t1.millitm = 0; X- #else !USG X- ftime(&Now); X- #endif !USG X- ut.actime = ut.modtime = Now.time; X- /* Do not waste time touching locking files too often */ X- /* (But, defend against backward time changes) */ X- if (ut.actime >= lasttouch && ut.actime < lasttouch+60) X- return; X- lasttouch = ut.actime; X- DEBUG(4, "ultouch\n", 0); X- X- for (i = 0; i < Nlocks; i++) { X- if (Lockfile[i] == NULL) X- continue; X- #ifdef OLDTOUCH X- utime(Lockfile[i], &ut); X- #else !OLDTOUCH X- chmod(Lockfile[i], LCKMODE); X- #endif !OLDTOUCH X- } X- } X- #endif !BSD4_2 && ! USG X--- 116,128 ---- X*** ./usr/src/usr.bin/uucp/uuxqt.c.old Fri Jan 21 14:14:47 2022 X--- ./usr/src/usr.bin/uucp/uuxqt.c Sat May 9 10:01:51 2026 X*************** X*** 1,14 **** X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)uuxqt.c 5.9 (2.11BSD) 2022/1/21"; X #endif X X #include "uucp.h" X #include X- #ifdef NDIR X- #include "ndir.h" X- #else X #include X- #endif X #include X X #define BADCHARS "&^|(`\\<>;\"{}\n'" X--- 1,10 ---- X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)uuxqt.c 5.10 (2.11BSD) 2026/5/9"; X #endif X X #include "uucp.h" X #include X #include X #include X X #define BADCHARS "&^|(`\\<>;\"{}\n'" X*************** X*** 180,191 **** X time(&xstart); X while (gtxfile(xfile) > 0) { X /* if /etc/nologin exists, exit cleanly */ X- #if defined(BSD4_2) || defined(USG) X if (access(NOLOGIN, F_OK) == 0) { X- #else !BSD4_2 && ! USG X- ultouch(); X- if (nologinflag) { X- #endif !BSD4_2 && !USG X logent(NOLOGIN, "UUXQT SHUTDOWN"); X if (Debug) X logent("debugging", "continuing anyway"); X--- 176,182 ---- X*************** X*** 384,397 **** X { X logcls(); X rmlock(CNULL); X- #ifdef VMS X- /* X- * Since we run as a BATCH job we must wait for all processes to X- * to finish X- */ X- while(wait(0) != -1) X- ; X- #endif VMS X exit(code); X } X X--- 375,380 ---- X*** ./usr/src/usr.bin/uucp/mailst.c.old Sat Jun 11 20:18:09 1994 X--- ./usr/src/usr.bin/uucp/mailst.c Tue Sep 22 00:33:11 2026 X*************** X*** 1,12 **** X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)mailst.c 5.6.1 (2.11BSD GTE) 6/11/94"; X #endif X X #include X #include "uucp.h" X- #ifdef USG X- #include X- #endif USG X X /*LINTLIBRARY*/ X X--- 1,9 ---- X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)mailst.c 5.6.2 (2.11BSD) 2026/5/9"; X #endif X X #include X #include "uucp.h" X X /*LINTLIBRARY*/ X X*************** X*** 62,73 **** X if((pid = fork()) == 0) { X /* myside and hisside reverse roles in child */ X close(myside); X- #ifdef USG X- close(tst(0, 1)); X- fcntl(hisside, F_DUPFD, tst(0, 1)); X- #else !USG X dup2(hisside, tst(0, 1)); X- #endif !USG X close(hisside); X /* revert permissions */ X setgid(getgid()); X--- 59,65 ---- X*************** X*** 85,91 **** X rpclose(ptr) X FILE *ptr; X { X! register f, r, (*hstat)(), (*istat)(), (*qstat)(); X int status; X X f = fileno(ptr); X--- 77,84 ---- X rpclose(ptr) X FILE *ptr; X { X! register f, r; X! sig_t hstat, istat, qstat; X int status; X X f = fileno(ptr); X*** ./usr/src/usr.bin/uucp/conn.c.old Fri Oct 3 01:36:01 1997 X--- ./usr/src/usr.bin/uucp/conn.c Tue Sep 22 00:29:56 2026 X*************** X*** 1,5 **** X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)conn.c 5.10.2 (2.11BSD) 1997/10/2"; X #endif X X #include X--- 1,5 ---- X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)conn.c 5.10.3 (2.11BSD) 2026/5/9"; X #endif X X #include X*************** X*** 7,19 **** X #include X #include X #include X- #ifdef USG X- #include X- #include X- #endif X- #ifndef USG X #include X- #endif X X #define MAXC 1000 X X--- 7,13 ---- X*************** X*** 39,44 **** X--- 33,39 ---- X /* X * catch alarm routine for "expect". X */ X+ void X alarmtr() X { X signal(SIGALRM, alarmtr); X*************** X*** 516,526 **** X fixline(tty, spwant) X int tty, spwant; X { X- #ifdef USG X- struct termio ttbuf; X- #else !USG X struct sgttyb ttbuf; X- #endif !USG X register struct sg_spds *ps; X int speed = -1; X X--- 511,517 ---- X*************** X*** 528,547 **** X if (ps->sp_val == spwant) X speed = ps->sp_name; X ASSERT(speed >= 0, "BAD SPEED", CNULL, speed); X- #ifdef USG X- if (ioctl(tty, TCGETA, &ttbuf) < 0) X- return FAIL; X- /* ttbuf.sg_flags = (ANYP|RAW); X- ttbuf.sg_ispeed = ttbuf.sg_ospeed = speed; */ X- ttbuf.c_iflag = (ushort)0; X- ttbuf.c_oflag = (ushort)0; X- ttbuf.c_cflag = (speed|CS8|HUPCL|CREAD); X- ttbuf.c_lflag = (ushort)0; X- ttbuf.c_cc[VMIN] = 6; X- ttbuf.c_cc[VTIME] = 1; X- if (ioctl(tty, TCSETA, &ttbuf) < 0) X- return FAIL; X- #else !USG X if (ioctl(tty, TIOCGETP, &ttbuf) < 0) X return FAIL; X ttbuf.sg_flags = (ANYP|RAW); X--- 519,524 ---- X*************** X*** 548,560 **** X ttbuf.sg_ispeed = ttbuf.sg_ospeed = speed; X if (ioctl(tty, TIOCSETP, &ttbuf) < 0) X return FAIL; X- #endif X- #ifndef USG X if (ioctl(tty, TIOCHPCL, STBNULL) < 0) X return FAIL; X if (ioctl(tty, TIOCEXCL, STBNULL) < 0) X return FAIL; X- #endif X linebaudrate = spwant; X return SUCCESS; X } X--- 525,534 ---- X*************** X*** 690,696 **** X if (i <= 0 || i > 10) X i = 3; X /* pause for a while */ X! sleep((unsigned)i); X return; X } X X--- 664,670 ---- X if (i <= 0 || i > 10) X i = 3; X /* pause for a while */ X! sleep(i); X return; X } X X*************** X*** 1105,1135 **** X fixmode(tty) X register int tty; X { X- #ifdef USG X- struct termio ttbuf; X- #else !USG X struct sgttyb ttbuf; X- #endif !USG X register struct sg_spds *ps; X int speed; X X if (IsTcpIp) X return; X- #ifdef USG X- ioctl(tty, TCGETA, &ttbuf); X- ttbuf.c_iflag = ttbuf.c_oflag = ttbuf.c_lflag = (ushort)0; X- speed = ttbuf.c_cflag &= (CBAUD); X- ttbuf.c_cflag |= (CS8|CREAD); X- ttbuf.c_cc[VMIN] = 6; X- ttbuf.c_cc[VTIME] = 1; X- ioctl(tty, TCSETA, &ttbuf); X- #else !USG X ioctl(tty, TIOCGETP, &ttbuf); X ttbuf.sg_flags = (ANYP | RAW); X ioctl(tty, TIOCSETP, &ttbuf); X speed = ttbuf.sg_ispeed; X ioctl(tty, TIOCEXCL, STBNULL); X- #endif !USG X X for (ps = spds; ps->sp_val; ps++) X if (ps->sp_name == speed) { X--- 1079,1095 ---- X*** ./usr/src/usr.bin/uucp/cico.c.old Fri Oct 3 01:32:23 1997 X--- ./usr/src/usr.bin/uucp/cico.c Tue Sep 22 00:33:56 2026 X*************** X*** 1,30 **** X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cico.c 5.14.1 (2.11BSD) 1997/10/2"; X #endif X X #include X #include "uucp.h" X #include X- #ifdef USG X- #include X- #endif X- #ifndef USG X #include X- #endif X- #ifdef BSDTCP X #include X #include X #include X #include X- #endif BSDTCP X #include X #include "uust.h" X #include "uusub.h" X X- #if defined(VMS) && defined(BSDTCP) X- #define NOGETPEER X- #endif X- X #ifdef BSD2_9 X #define NOGETPEER X #endif X--- 1,19 ---- X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cico.c 5.14.2 (2.11BSD) 2026/5/9"; X #endif X X #include X #include "uucp.h" X #include X #include X #include X #include X #include X #include X #include X #include "uust.h" X #include "uusub.h" X X #ifdef BSD2_9 X #define NOGETPEER X #endif X*************** X*** 71,82 **** X extern char MaxGrade, DefMaxGrade; X extern char Myfullname[]; X X- #ifdef USG X- struct termio Savettyb; X- #endif X- #ifndef USG X struct sgttyb Savettyb; X- #endif X X /* X * this program is used to place a call to a X--- 60,66 ---- X*************** X*** 91,97 **** X char wkpre[NAMESIZE], file[NAMESIZE]; X char msg[MAXFULLNAME], *q; X register char *p; X! extern onintr(), timeout(), dbg_signal(); X extern char *pskip(); X char rflags[MAXFULLNAME]; X #ifdef NOGETPEER X--- 75,81 ---- X char wkpre[NAMESIZE], file[NAMESIZE]; X char msg[MAXFULLNAME], *q; X register char *p; X! extern void onintr(), timeout(), dbg_signal(); X extern char *pskip(); X char rflags[MAXFULLNAME]; X #ifdef NOGETPEER X*************** X*** 230,245 **** X /* initial handshake */ X onesys = 1; X if (!IsTcpIp) { X- #ifdef USG X- ret = ioctl(Ifn, TCGETA, &Savettyb); X- Savettyb.c_cflag = (Savettyb.c_cflag & ~CS8) | CS7; X- Savettyb.c_oflag |= OPOST; X- Savettyb.c_lflag |= (ISIG|ICANON|ECHO); X- #else !USG X ret = ioctl(Ifn, TIOCGETP, &Savettyb); X Savettyb.sg_flags |= ECHO; X Savettyb.sg_flags &= ~RAW; X- #endif !USG X ttyn = ttyname(Ifn); X } X fixmode(Ifn); X--- 214,222 ---- X*************** X*** 254,265 **** X if (setjmp(Sjbuf)) { X /* timed out */ X if (!IsTcpIp) { X- #ifdef USG X- ret = ioctl(Ifn, TCSETA, &Savettyb); X- X- #else !USG X ret = ioctl(Ifn, TIOCSETP, &Savettyb); X- #endif !USG X } X cleanup(0); X } X--- 231,237 ---- X*************** X*** 268,278 **** X if (ret != SUCCESS) { X alarm(0); X if (!IsTcpIp) { X- #ifdef USG X- ret = ioctl(Ifn, TCSETA, &Savettyb); X- #else !USG X ret = ioctl(Ifn, TIOCSETP, &Savettyb); X- #endif !USG X } X cleanup(0); X } X--- 240,246 ---- X*************** X*** 657,665 **** X cleanup(0); X } X X- #ifndef USG X struct sgttyb Hupvec; X- #endif X X /* X * cleanup and exit with "code" status X--- 625,631 ---- X*************** X*** 675,684 **** X logcls(); X if (Role == SLAVE) { X if (!IsTcpIp) { X- #ifdef USG X- Savettyb.c_cflag |= HUPCL; X- (void) ioctl(0, TCSETA, &Savettyb); X- #else !USG X (void) ioctl(0, TIOCHPCL, STBNULL); X #ifdef TIOCSDTR X (void) ioctl(0, TIOCCDTR, STBNULL); X--- 641,646 ---- X*************** X*** 694,700 **** X (void) ioctl(0, TIOCSETP, &Savettyb); X /* make *sure* exclusive access is off */ X (void) ioctl(0, TIOCNXCL, STBNULL); X- #endif !USG X } X if (ttyn != NULL) X chmod(ttyn, 0600); X--- 656,661 ---- X*************** X*** 811,821 **** X if (isatty(fileno(stderr))) X return; X else if (fstat(fileno(stderr), &stbuf) == 0) { X- #ifdef USG X- /* Is Regular File or Fifo */ X- if ((stbuf.st_mode & 0060000) == 0) X- return; X- #else !USG X #ifdef BSD4_2 X /* Is Regular File */ X if ((stbuf.st_mode & S_IFMT) == S_IFREG || X--- 772,777 ---- X*************** X*** 826,832 **** X if ((stbuf.st_mode & S_IFMT) == S_IFREG) X return; X #endif BSD4_2 X- #endif USG X } X } X X--- 782,787 ---- X*** ./usr/src/usr.bin/uucp/pk1.c.old Fri Oct 3 01:46:42 1997 X--- ./usr/src/usr.bin/uucp/pk1.c Tue Sep 22 00:30:37 2026 X*************** X*** 1,5 **** X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)pk1.c 5.9.2 (2.11BSD) 1997/10/2"; X #endif X X #include X--- 1,5 ---- X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)pk1.c 5.9.3 (2.11BSD) 2026/5/9"; X #endif X X #include X*************** X*** 12,24 **** X #include X #endif BSD4_2 X X- #ifdef VMS X- #include X- #include X- #include X- int iomask[2]; X- #endif VMS X- X #define PKMAXSTMSG 40 X #define MAXPKTIME 32 /* was 16 */ X #define CONNODATA 10 X--- 12,17 ---- X*************** X*** 347,352 **** X--- 340,347 ---- X */ X X jmp_buf Getjbuf; X+ X+ void X cgalarm() X { X longjmp(Getjbuf, 1); X*************** X*** 364,373 **** X last read the line */ X struct timeval tv; X #endif BSD4_2 X- #ifdef VMS X- short iosb[4]; X- int SYS$QioW(); /* use this for long reads on vms */ X- #endif VMS X X if (setjmp(Getjbuf)) { X Ntimeout++; X--- 359,364 ---- X*************** X*** 399,418 **** X } X } X #endif BSD4_2 X! #ifndef VMS X ret = read(fn, b, n); X- #else VMS X- _$Cancel_IO_On_Signal = FD_FAB_Pointer[fn]; X- ret = SYS$QioW(_$EFN,(FD_FAB_Pointer[fn]->fab).fab$l_stv, X- IO$_READVBLK|IO$M_NOFILTR|IO$M_NOECHO, X- iosb,0,0,b,n,0, X- iomask,0,0); X- _$Cancel_IO_On_Signal = 0; X- if (ret == SS$_NORMAL) X- ret = iosb[1]+iosb[3]; /* get length of transfer */ X- else X- ret = 0; X- #endif VMS X if (ret == 0) { X alarm(0); X return FAIL; X--- 390,397 ---- X } X } X #endif BSD4_2 X! X ret = read(fn, b, n); X if (ret == 0) { X alarm(0); X return FAIL; X*** ./usr/src/usr.bin/dc/dc.h.old Mon Oct 3 16:14:22 2022 X--- ./usr/src/usr.bin/dc/dc.h Mon Sep 21 23:32:17 2026 X*************** X*** 1,4 **** X! /* dc.h 1.4 2022/10/2 */ X X #define FATAL 0 X #define NFATAL 1 X--- 1,4 ---- X! /* dc.h 1.5 (2.11BSD) 2026/9/21 */ X X #define FATAL 0 X #define NFATAL 1 X*************** X*** 43,49 **** X #define EMPTYR(x) if(stkerr!=0){pushp(x);printf("stack empty\n");continue;} X #define EMPTYS if(stkerr != 0){printf("stack empty\n"); return(1);} X #define EMPTYSR(x) if(stkerr !=0){printf("stack empty\n");pushp(x);return(1);} X! #define error(p) {printf(p); continue; } X #define errorrt(p,x) {printf(p); return(x); } X struct blk { X char *rd; X--- 43,49 ---- X #define EMPTYR(x) if(stkerr!=0){pushp(x);printf("stack empty\n");continue;} X #define EMPTYS if(stkerr != 0){printf("stack empty\n"); return(1);} X #define EMPTYSR(x) if(stkerr !=0){printf("stack empty\n");pushp(x);return(1);} X! #define xerror(p) {printf(p); continue; } X #define errorrt(p,x) {printf(p); return(x); } X struct blk { X char *rd; X*************** X*** 52,58 **** X char *last; X }; X struct blk *hfree; X- struct blk *getwd(); X struct blk *lookwd(); X struct blk *getdec(); X struct blk *morehd(); X--- 52,57 ---- X*************** X*** 111,118 **** X int log10; X int count; X char *pp; X! int (*signal())(); X! int onintr(); X! char *malloc(); X char *nalloc(); X! char *realloc(); X--- 110,115 ---- X int log10; X int count; X char *pp; X! void onintr(); X char *nalloc(); X! struct blk *xgetwd(); X*** ./usr/src/usr.bin/dc/dc.c.old Mon Oct 3 16:14:22 2022 X--- ./usr/src/usr.bin/dc/dc.c Mon Sep 21 23:31:00 2026 X*************** X*** 1,9 **** X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dc.c 4.3.2 (2.11BSD) 2022/10/2"; X #endif X X #include X #include X #include "dc.h" X X main(argc,argv) X--- 1,10 ---- X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dc.c 4.3.3 (2.11BSD) 2026/9/21"; X #endif X X #include X #include X+ #include X #include "dc.h" X X main(argc,argv) X*************** X*** 110,116 **** X continue; X } X if((c = sbackc(p))<0){ X! error("sqrt of neg number\n"); X } X if(k=3){ X! error("exp too big\n"); X } X savk = sunputc(arg2); X p = exp(arg2,arg1); X--- 135,141 ---- X chsign(arg1); X } X if(length(arg1)>=3){ X! xerror("exp too big\n"); X } X savk = sunputc(arg2); X p = exp(arg2,arg1); X*************** X*** 297,303 **** X EMPTY; X p = scalint(p); X if(length(p)>1){ X! error("scale too big\n"); X } X rewind(p); X k = sfeof(p)?0:sgetc(p); X--- 298,304 ---- X EMPTY; X p = scalint(p); X if(length(p)>1){ X! xerror("scale too big\n"); X } X rewind(p); X k = sfeof(p)?0:sgetc(p); X*************** X*** 324,339 **** X p = pop(); X EMPTY; X if(length(p)>2){ X! error("Q?\n"); X } X rewind(p); X if((c = sgetc(p))<0){ X! error("neg Q\n"); X } X release(p); X while(c-- > 0){ X if(readptr == &readstk[0]){ X! error("readstk?\n"); X } X if(*readptr != 0)release(*readptr); X readptr--; X--- 325,340 ---- X p = pop(); X EMPTY; X if(length(p)>2){ X! xerror("Q?\n"); X } X rewind(p); X if((c = sgetc(p))<0){ X! xerror("neg Q\n"); X } X release(p); X while(c-- > 0){ X if(readptr == &readstk[0]){ X! xerror("readstk?\n"); X } X if(*readptr != 0)release(*readptr); X readptr--; X*************** X*** 385,391 **** X continue; X case 'S': X if(stkptr == &stack[0]){ X! error("save: args\n"); X } X c = readc() & 0377; X sptr = stable[c]; X--- 386,392 ---- X continue; X case 'S': X if(stkptr == &stack[0]){ X! xerror("save: args\n"); X } X c = readc() & 0377; X sptr = stable[c]; X*************** X*** 404,413 **** X sp->val = p; X continue; X sempty: X! error("symbol table overflow\n"); X case 's': X if(stkptr == &stack[0]){ X! error("save:args\n"); X } X c = readc() & 0377; X sptr = stable[c]; X--- 405,414 ---- X sp->val = p; X continue; X sempty: X! xerror("symbol table overflow\n"); X case 's': X if(stkptr == &stack[0]){ X! xerror("save:args\n"); X } X c = readc() & 0377; X sptr = stable[c]; X*************** X*** 415,421 **** X p = sptr->val; X if(c >= ARRAYST){ X rewind(p); X! while(sfeof(p) == 0)release(getwd(p)); X } X release(p); X } X--- 416,422 ---- X p = sptr->val; X if(c >= ARRAYST){ X rewind(p); X! while(sfeof(p) == 0)release(xgetwd(p)); X } X release(p); X } X*************** X*** 435,441 **** X c = readc() & 0377; X sptr = stable[c]; X if(sptr == 0){ X! error("L?\n"); X } X stable[c] = sptr->next; X sptr->next = sfree; X--- 436,442 ---- X c = readc() & 0377; X sptr = stable[c]; X if(sptr == 0){ X! xerror("L?\n"); X } X stable[c] = sptr->next; X sptr->next = sfree; X*************** X*** 444,450 **** X if(c >= ARRAYST){ X rewind(p); X while(sfeof(p) == 0){ X! q = getwd(p); X if(q != 0)release(q); X } X } X--- 445,451 ---- X if(c >= ARRAYST){ X rewind(p); X while(sfeof(p) == 0){ X! q = xgetwd(p); X if(q != 0)release(q); X } X } X*************** X*** 457,470 **** X fsfile(q); X c = 0; X if((sfbeg(q) == 0) && ((c = sbackc(q))<0)){ X! error("neg index\n"); X } X if(length(q)>2){ X! error("index too big\n"); X } X if(sfbeg(q) == 0)c = c*100+sbackc(q); X if(c >= MAXIND){ X! error("index too big\n"); X } X release(q); X n = readc() & 0377; X--- 458,471 ---- X fsfile(q); X c = 0; X if((sfbeg(q) == 0) && ((c = sbackc(q))<0)){ X! xerror("neg index\n"); X } X if(length(q)>2){ X! xerror("index too big\n"); X } X if(sfbeg(q) == 0)c = c*100+sbackc(q); X if(c >= MAXIND){ X! xerror("index too big\n"); X } X release(q); X n = readc() & 0377; X*************** X*** 500,513 **** X fsfile(q); X c = 0; X if((sfbeg(q) == 0) && ((c = sbackc(q))<0)){ X! error("neg index\n"); X } X if(length(q)>2){ X! error("index too big\n"); X } X if(sfbeg(q) == 0)c = c*100+sbackc(q); X if(c >= MAXIND){ X! error("index too big\n"); X } X release(q); X n = readc() & 0377; X--- 501,514 ---- X fsfile(q); X c = 0; X if((sfbeg(q) == 0) && ((c = sbackc(q))<0)){ X! xerror("neg index\n"); X } X if(length(q)>2){ X! xerror("index too big\n"); X } X if(sfbeg(q) == 0)c = c*100+sbackc(q); X if(c >= MAXIND){ X! xerror("index too big\n"); X } X release(q); X n = readc() & 0377; X*************** X*** 516,522 **** X p = sptr->val; X if(length(p)-PTRSZ >= c*PTRSZ){ X seekc(p,c*PTRSZ); X! s = getwd(p); X if(s != 0){ X q = copy(s,length(s)); X pushp(q); X--- 517,523 ---- X p = sptr->val; X if(length(p)-PTRSZ >= c*PTRSZ){ X seekc(p,c*PTRSZ); X! s = xgetwd(p); X if(s != 0){ X q = copy(s,length(s)); X pushp(q); X*************** X*** 537,543 **** X release(*readptr); X else{ X if(readptr++ == &readstk[RDSKSZ]){ X! error("nesting depth\n"); X } X } X } X--- 538,544 ---- X release(*readptr); X else{ X if(readptr++ == &readstk[RDSKSZ]){ X! xerror("nesting depth\n"); X } X } X } X*************** X*** 550,556 **** X continue; X case '?': X if(++readptr == &readstk[RDSKSZ]){ X! error("nesting depth\n"); X } X *readptr = 0; X fsave = curfile; X--- 551,557 ---- X continue; X case '?': X if(++readptr == &readstk[RDSKSZ]){ X! xerror("nesting depth\n"); X } X *readptr = 0; X fsave = curfile; X*************** X*** 921,926 **** X--- 922,929 ---- X sfree = &symlst[0]; X return; X } X+ X+ void X onintr(){ X X signal(SIGINT,onintr); X*************** X*** 1556,1562 **** X command(){ X int c; X char line[100],*sl; X! register (*savint)(),pid,rpid; X int retcode; X X switch(c = readc()){ X--- 1559,1566 ---- X command(){ X int c; X char line[100],*sl; X! sig_t savint; X! register pid_t pid,rpid; X int retcode; X X switch(c = readc()){ X*************** X*** 1635,1641 **** X q = salloc(length(p)); X rewind(p); X while(sfeof(p) == 0){ X! s = getwd(p); X if(s == 0){putwd(q, (struct blk *)NULL);} X else{ X t = copy(s,length(s)); X--- 1639,1645 ---- X q = salloc(length(p)); X rewind(p); X while(sfeof(p) == 0){ X! s = xgetwd(p); X if(s == 0){putwd(q, (struct blk *)NULL);} X else{ X t = copy(s,length(s)); X*************** X*** 1846,1852 **** X p = tmps->val; X rewind(p); X ct = 0; X! while((q = getwd(p)) != NULL){ X ct++; X if(q != 0){ X if(((int)q->beg & 01) != 0){ X--- 1850,1856 ---- X p = tmps->val; X rewind(p); X ct = 0; X! while((q = xgetwd(p)) != NULL){ X ct++; X if(q != 0){ X if(((int)q->beg & 01) != 0){ X*************** X*** 1893,1899 **** X } X X struct blk * X! getwd(p) X struct blk *p; X { X register struct wblk *wp; X--- 1897,1903 ---- X } X X struct blk * X! xgetwd(p) X struct blk *p; X { X register struct wblk *wp; X*************** X*** 1931,1937 **** X register char *p; X unsigned nbytes; X { X- char *malloc(); X register char *q, *r; X q = r = malloc(nbytes); X if(q==0) X--- 1935,1940 ---- X*** ./usr/src/usr.bin/lex/header.c.old Mon Feb 16 19:21:51 1987 X--- ./usr/src/usr.bin/lex/header.c Fri May 8 19:44:35 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)header.c 4.1 (Berkeley) 8/11/83"; X #endif X # include "ldefs.c" X phead1(){ X ratfor ? rhd1() : chd1(); X--- 1,7 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)header.c 4.2 (2.11BSD) 2026/5/8"; X #endif X+ X # include "ldefs.c" X phead1(){ X ratfor ? rhd1() : chd1(); X*** ./usr/src/usr.bin/lex/lmain.c.old Wed Oct 23 22:56:09 1996 X--- ./usr/src/usr.bin/lex/lmain.c Wed Aug 19 16:47:00 2026 X*************** X*** 1,5 **** X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)lmain.c 4.3.1 (2.11BSD) 1996/10/23"; X #endif X X # include "ldefs.c" X--- 1,5 ---- X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)lmain.c 4.3.2 (2.11BSD) 2026/8/19"; X #endif X X # include "ldefs.c" X*************** X*** 132,140 **** X error("Too little core to begin"); X } X free1core(){ X! cfree(def,DEFSIZE,sizeof(*def)); X! cfree(subs,DEFSIZE,sizeof(*subs)); X! cfree(dchar,DEFCHAR,sizeof(*dchar)); X } X get2core(){ X register int i, val; X--- 132,140 ---- X error("Too little core to begin"); X } X free1core(){ X! free(def); X! free(subs); X! free(dchar); X } X get2core(){ X register int i, val; X*************** X*** 155,172 **** X for(i=0;i<=tptr;i++)foll[i] = 0; X } X free2core(){ X! cfree(positions,maxpos,sizeof(*positions)); X! cfree(tmpstat,tptr+1,sizeof(*tmpstat)); X! cfree(foll,tptr+1,sizeof(*foll)); X! cfree(name,treesize,sizeof(*name)); X! cfree(left,treesize,sizeof(*left)); X! cfree(right,treesize,sizeof(*right)); X! cfree(parent,treesize,sizeof(*parent)); X! cfree(nullstr,treesize,sizeof(*nullstr)); X! cfree(state,nstates,sizeof(*state)); X! cfree(sname,STARTSIZE,sizeof(*sname)); X! cfree(schar,STARTCHAR,sizeof(*schar)); X! cfree(ccl,CCLSIZE,sizeof(*ccl)); X } X get3core(){ X register int i, val; X--- 155,172 ---- X for(i=0;i<=tptr;i++)foll[i] = 0; X } X free2core(){ X! free(positions); X! free(tmpstat); X! free(foll); X! free(name); X! free(left); X! free(right); X! free(parent); X! free(nullstr); X! free(state); X! free(sname); X! free(schar); X! free(ccl); X } X get3core(){ X register int i, val; X*************** X*** 179,193 **** X } X # ifdef DEBUG X free3core(){ X! cfree(advance,outsize,sizeof(*advance)); X! cfree(verify,outsize,sizeof(*verify)); X! cfree(stoff,stnum+1,sizeof(*stoff)); X! cfree(gotof,nstates,sizeof(*gotof)); X! cfree(nexts,ntrans,sizeof(*nexts)); X! cfree(nchar,ntrans,sizeof(*nchar)); X! cfree(atable,nstates,sizeof(*atable)); X! cfree(sfall,nstates,sizeof(*sfall)); X! cfree(cpackflg,nstates,sizeof(*cpackflg)); X } X # endif X char *myalloc(a,b) X--- 179,193 ---- X } X # ifdef DEBUG X free3core(){ X! free(advance); X! free(verify); X! free(stoff); X! free(gotof); X! free(nexts); X! free(nchar); X! free(atable); X! free(sfall); X! free(cpackflg); X } X # endif X char *myalloc(a,b) X*** ./usr/src/usr.bin/lex/sub2.c.old Sun Sep 25 21:47:34 2022 X--- ./usr/src/usr.bin/lex/sub2.c Wed Aug 19 16:48:04 2026 X*************** X*** 1,5 **** X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)sub2.c 4.2 (2.11BSD) 2022/9/17"; X #endif X X # include "ldefs.c" X--- 1,5 ---- X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)sub2.c 4.3 (2.11BSD) 2026/8/19"; X #endif X X # include "ldefs.c" X*************** X*** 865,871 **** X fprintf(fout, "0%-3o,",fbarr[i+j]); X putc('\n',fout); X } X! cfree(fbarr, 2*NCH, 1); X } X fprintf(fout,"0};\n"); X } X--- 865,871 ---- X fprintf(fout, "0%-3o,",fbarr[i+j]); X putc('\n',fout); X } X! free(fbarr); X } X fprintf(fout,"0};\n"); X } X*** ./usr/src/usr.bin/lex/parser.y.old Sun Sep 25 21:47:11 2022 X--- ./usr/src/usr.bin/lex/parser.y Wed Aug 19 16:49:21 2026 X*************** X*** 9,15 **** X X %{ X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)parser.y 4.2 (2.11BSD) 2022/9/17"; X #endif X X # include "ldefs.c" X--- 9,15 ---- X X %{ X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)parser.y 4.3 (2.11BSD) 2026/8/19"; X #endif X X # include "ldefs.c" X*************** X*** 245,251 **** X if(c == 0) X error("Too little core for parse tree"); X p = (char *)c; X! cfree(p,i,1); X name = (int *)myalloc(treesize,sizeof(*name)); X left = (int *)myalloc(treesize,sizeof(*left)); X right = (int *)myalloc(treesize,sizeof(*right)); X--- 245,251 ---- X if(c == 0) X error("Too little core for parse tree"); X p = (char *)c; X! free(p); X name = (int *)myalloc(treesize,sizeof(*name)); X left = (int *)myalloc(treesize,sizeof(*left)); X right = (int *)myalloc(treesize,sizeof(*right)); X*************** X*** 294,300 **** X case 'k': case 'K': /* overriden packed char classes */ X while (*p && !digit(*p))p++; X if (report==2) report=1; X! cfree(pchar, pchlen, sizeof(*pchar)); X pchlen = siconv(p); X # ifdef DEBUG X if (debug) printf( "Size classes (%%k) now %d\n",pchlen); X--- 294,300 ---- X case 'k': case 'K': /* overriden packed char classes */ X while (*p && !digit(*p))p++; X if (report==2) report=1; X! free(pchar); X pchlen = siconv(p); X # ifdef DEBUG X if (debug) printf( "Size classes (%%k) now %d\n",pchlen); X*** ./usr/src/usr.bin/neqn/Makefile.old Tue Dec 9 09:38:28 2025 X--- ./usr/src/usr.bin/neqn/Makefile Tue Jan 13 17:13:48 2026 X*************** X*** 1,4 **** X! # Makefile 4.2 (2.11BSD) 2025/11/27 X X CFLAGS=-O -DNEQN -I../eqn/ X YFLAGS=-d X--- 1,4 ---- X! # Makefile 4.3 (2.11BSD) 2026/1/13 X X CFLAGS=-O -DNEQN -I../eqn/ X YFLAGS=-d X*************** X*** 28,34 **** X install -c -s -m 755 neqn /usr/bin X X clean: X! rm -f *.o e.c e.def X X diacrit.o: ../eqn/diacrit.c X $(CC) $(CFLAGS) -c ../eqn/diacrit.c X--- 28,34 ---- X install -c -s -m 755 neqn /usr/bin X X clean: X! rm -f *.o e.c e.def neqn X X diacrit.o: ../eqn/diacrit.c X $(CC) $(CFLAGS) -c ../eqn/diacrit.c X*** ./usr/src/usr.bin/tip/aculib/biz22.c.old Thu Jun 6 11:49:25 1985 X--- ./usr/src/usr.bin/tip/aculib/biz22.c Tue Sep 22 00:08:03 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)biz22.c 5.1 (Berkeley) 6/6/85"; X! #endif not lint X X #include "tip.h" X X #define DISCONNECT_CMD "\20\04" /* disconnection string */ X X! static int sigALRM(); X static int timeout = 0; X static jmp_buf timeoutbuf; X X--- 4,18 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)biz22.c 5.2 (2.11BSD) 2026/5/9"; X! #endif X X #include "tip.h" X X #define DISCONNECT_CMD "\20\04" /* disconnection string */ X X! static void sigALRM(); X static int timeout = 0; X static jmp_buf timeoutbuf; X X*************** X*** 103,109 **** X write(FD, "\02", 1); X } X X! static int X sigALRM() X { X X--- 103,109 ---- X write(FD, "\02", 1); X } X X! static void X sigALRM() X { X X*************** X*** 116,122 **** X register char *s; X { X char c; X! int (*f)(); X X write(FD, s, strlen(s)); X f = signal(SIGALRM, sigALRM); X--- 116,122 ---- X register char *s; X { X char c; X! sig_t f; X X write(FD, s, strlen(s)); X f = signal(SIGALRM, sigALRM); X*************** X*** 138,144 **** X register char *s; X { X char c; X! int (*f)(); X X f = signal(SIGALRM, sigALRM); X timeout = 0; X--- 138,144 ---- X register char *s; X { X char c; X! sig_t f; X X f = signal(SIGALRM, sigALRM); X timeout = 0; X*** ./usr/src/usr.bin/tip/aculib/biz31.c.old Thu Jun 6 11:49:46 1985 X--- ./usr/src/usr.bin/tip/aculib/biz31.c Tue Sep 22 00:13:10 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)biz31.c 5.1 (Berkeley) 6/6/85"; X! #endif not lint X X #include "tip.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)biz31.c 5.2 (2.11BSD) 2026/5/9"; X! #endif X X #include "tip.h" X X*************** X*** 13,19 **** X #define MAXRETRY 3 /* sync up retry count */ X #define DISCONNECT_CMD "\21\25\11\24" /* disconnection string */ X X! static int sigALRM(); X static int timeout = 0; X static jmp_buf timeoutbuf; X X--- 13,19 ---- X #define MAXRETRY 3 /* sync up retry count */ X #define DISCONNECT_CMD "\21\25\11\24" /* disconnection string */ X X! static void sigALRM(); X static int timeout = 0; X static jmp_buf timeoutbuf; X X*************** X*** 124,130 **** X } X } X X! static int X sigALRM() X { X X--- 124,130 ---- X } X } X X! static void X sigALRM() X { X X*************** X*** 137,143 **** X register char *s; X { X char c; X! int (*f)(); X X f = signal(SIGALRM, sigALRM); X timeout = 0; X--- 137,143 ---- X register char *s; X { X char c; X! sig_t f; X X f = signal(SIGALRM, sigALRM); X timeout = 0; X*************** X*** 162,168 **** X register char *s; X { X char c; X! int (*f)(); X X f = signal(SIGALRM, sigALRM); X while (*s++) { X--- 162,168 ---- X register char *s; X { X char c; X! sig_t f; X X f = signal(SIGALRM, sigALRM); X while (*s++) { X*** ./usr/src/usr.bin/tip/aculib/df.c.old Thu Jun 6 11:50:03 1985 X--- ./usr/src/usr.bin/tip/aculib/df.c Tue Sep 22 00:18:34 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)df.c 5.1 (Berkeley) 6/6/85"; X! #endif not lint X X /* X * Dial the DF02-AC or DF03-AC X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)df.c 5.2 (2.11BSD) 2026/5/9"; X! #endif X X /* X * Dial the DF02-AC or DF03-AC X*************** X*** 15,21 **** X #include "tip.h" X X static jmp_buf Sjbuf; X! static timeout(); X X df02_dialer(num, acu) X char *num, *acu; X--- 15,21 ---- X #include "tip.h" X X static jmp_buf Sjbuf; X! static void timeout(); X X df02_dialer(num, acu) X char *num, *acu; X*************** X*** 97,103 **** X } X X X! static X timeout() X { X X--- 97,103 ---- X } X X X! static void X timeout() X { X X*** ./usr/src/usr.bin/tip/aculib/dn11.c.old Tue Apr 30 14:54:46 1985 X--- ./usr/src/usr.bin/tip/aculib/dn11.c Tue Sep 22 00:14:03 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)dn11.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X /* X * Routines for dialing up on DN-11 X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dn11.c 5.2 (2.11BSD) 2026/5/9"; X! #endif X X /* X * Routines for dialing up on DN-11 X*************** X*** 13,19 **** X */ X #include "tip.h" X X! int dn_abort(), alarmtr(); X static jmp_buf jmpbuf; X static int child = -1, dn; X X--- 13,19 ---- X */ X #include "tip.h" X X! void dn_abort(), alarmtr(); X static jmp_buf jmpbuf; X static int child = -1, dn; X X*************** X*** 80,85 **** X--- 80,86 ---- X return (1); X } X X+ void X alarmtr() X { X X*************** X*** 100,105 **** X--- 101,107 ---- X close(FD); X } X X+ void X dn_abort() X { X X*** ./usr/src/usr.bin/tip/aculib/hayes.c.old Sat Jan 20 02:20:09 1990 X--- ./usr/src/usr.bin/tip/aculib/hayes.c Tue Sep 22 00:09:27 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)hayes.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X /* X * Routines for calling up on a Hayes Modem X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)hayes.c 5.2 (2.11BSD) 2026/5/9"; X! #endif X X /* X * Routines for calling up on a Hayes Modem X*************** X*** 35,41 **** X X #define min(a,b) ((a < b) ? a : b) X X! static int sigALRM(); X static int timeout = 0; X static jmp_buf timeoutbuf; X static char gobble(); X--- 35,41 ---- X X #define min(a,b) ((a < b) ? a : b) X X! static void sigALRM(); X static int timeout = 0; X static jmp_buf timeoutbuf; X static char gobble(); X*************** X*** 123,129 **** X hay_disconnect(); X } X X! static int X sigALRM() X { X X--- 123,129 ---- X hay_disconnect(); X } X X! static void X sigALRM() X { X X*************** X*** 137,143 **** X register char *match; X { X char c; X! int (*f)(); X int i, status = 0; X X f = signal(SIGALRM, sigALRM); X--- 137,143 ---- X register char *match; X { X char c; X! sig_t f; X int i, status = 0; X X f = signal(SIGALRM, sigALRM); X*** ./usr/src/usr.bin/tip/aculib/v3451.c.old Tue Apr 30 14:54:48 1985 X--- ./usr/src/usr.bin/tip/aculib/v3451.c Tue Sep 22 00:15:23 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)v3451.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X /* X * Routines for calling up on a Vadic 3451 Modem X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)v3451.c 5.2 (2.11BSD) 2026/5/9"; X! #endif X X /* X * Routines for calling up on a Vadic 3451 Modem X*************** X*** 19,25 **** X register char *num; X char *acu; X { X! int ok, (*func)(); X int slow = number(value(BAUDRATE)) < 1200, rw = 2; X char phone[50]; X #ifdef ACULOG X--- 19,26 ---- X register char *num; X char *acu; X { X! int ok; X! sig_t func; X int slow = number(value(BAUDRATE)) < 1200, rw = 2; X char phone[50]; X #ifdef ACULOG X*************** X*** 118,124 **** X { X char buf[300]; X register char *rp = buf; X! int alarmtr(), timeout = 30, online = 0; X X if (strcmp(cp, "\"\"") == 0) X return (1); X--- 119,126 ---- X { X char buf[300]; X register char *rp = buf; X! void alarmtr(); X! int timeout = 30, online = 0; X X if (strcmp(cp, "\"\"") == 0) X return (1); X*************** X*** 151,157 **** X return (1); X } X X! static X alarmtr() X { X X--- 153,159 ---- X return (1); X } X X! static void X alarmtr() X { X X*** ./usr/src/usr.bin/tip/aculib/ventel.c.old Tue Apr 30 14:52:24 1985 X--- ./usr/src/usr.bin/tip/aculib/ventel.c Tue Sep 22 00:10:06 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)ventel.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X /* X * Routines for calling up on a Ventel Modem X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ventel.c 5.2 (2.11BSD) 2026/5/9"; X! #endif X X /* X * Routines for calling up on a Ventel Modem X*************** X*** 16,22 **** X X #define MAXRETRY 5 X X! static int sigALRM(); X static int timeout = 0; X static jmp_buf timeoutbuf; X X--- 16,22 ---- X X #define MAXRETRY 5 X X! static void sigALRM(); X static int timeout = 0; X static jmp_buf timeoutbuf; X X*************** X*** 132,138 **** X } X } X X! static int X sigALRM() X { X X--- 132,138 ---- X } X } X X! static void X sigALRM() X { X X*************** X*** 148,154 **** X { X register char *cp = response; X char c; X! int (*f)(); X X signal(SIGALRM, sigALRM); X timeout = 0; X--- 148,154 ---- X { X register char *cp = response; X char c; X! sig_t f; X X signal(SIGALRM, sigALRM); X timeout = 0; X*** ./usr/src/usr.bin/tip/aculib/v831.c.old Tue Apr 30 14:54:49 1985 X--- ./usr/src/usr.bin/tip/aculib/v831.c Tue Sep 22 00:10:54 2026 X*************** X*** 4,23 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)v831.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X /* X * Routines for dialing up on Vadic 831 X */ X #include X X #include "tip.h" X X int v831_abort(); X! static int alarmtr(); X! extern errno; X X static jmp_buf jmpbuf; X static int child = -1; X--- 4,23 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)v831.c 5.2 (2.11BSD) 2026/5/9"; X! #endif X X /* X * Routines for dialing up on Vadic 831 X */ X #include X+ #include X X #include "tip.h" X X int v831_abort(); X! static void alarmtr(); X X static jmp_buf jmpbuf; X static int child = -1; X*************** X*** 88,94 **** X return (1); X } X X! static X alarmtr() X { X X--- 88,94 ---- X return (1); X } X X! static void X alarmtr() X { X X*** ./usr/src/usr.bin/tip/aculib/penril.c.old Sat Jul 11 15:28:08 1987 X--- ./usr/src/usr.bin/tip/aculib/penril.c Tue Sep 22 00:11:40 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)penril.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X /* X * Routines for calling up on a Penril Modem X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)penril.c 5.2 (2.11BSD) 2026/5/9"; X! #endif X X /* X * Routines for calling up on a Penril Modem X*************** X*** 14,22 **** X */ X #include "tip.h" X X #define MAXRETRY 5 X X! static int sigALRM(); X static int timeout = 0; X static jmp_buf buftimeout; X X--- 14,24 ---- X */ X #include "tip.h" X X+ #include X+ X #define MAXRETRY 5 X X! static void sigALRM(); X static int timeout = 0; X static jmp_buf buftimeout; X X*************** X*** 36,42 **** X { X register char *cp; X register int connected = 0; X! char *msg, *index(), line[80]; X X /* X * Get in synch with a couple of carriage returns X--- 38,44 ---- X { X register char *cp; X register int connected = 0; X! char *msg, line[80]; X X /* X * Get in synch with a couple of carriage returns X*************** X*** 132,138 **** X } X } X X! static int X sigALRM() X { X X--- 134,140 ---- X } X } X X! static void X sigALRM() X { X X*************** X*** 148,154 **** X { X register char *cp = response; X char c; X! int (*f)(); X X signal(SIGALRM, sigALRM); X timeout = 0; X--- 150,156 ---- X { X register char *cp = response; X char c; X! sig_t f; X X signal(SIGALRM, sigALRM); X timeout = 0; X*** ./usr/src/usr.bin/tip/aculib/courier.c.old Tue Jan 11 01:52:03 1994 X--- ./usr/src/usr.bin/tip/aculib/courier.c Tue Sep 22 00:17:44 2026 X*************** X*** 5,11 **** X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)courier.c 5.2.1 (2.11BSD GTE) 1/1/94"; X #endif X X #define write cour_write X--- 5,11 ---- X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)courier.c 5.2.2 (2.11BSD) 2026/9/21"; X #endif X X #define write cour_write X*************** X*** 18,24 **** X X #define MAXRETRY 5 X X! static int sigALRM(); X static int timeout = 0; X static int connected = 0; X static jmp_buf timeoutbuf, intbuf; X--- 18,24 ---- X X #define MAXRETRY 5 X X! static void sigALRM(); X static int timeout = 0; X static int connected = 0; X static jmp_buf timeoutbuf, intbuf; X*************** X*** 93,99 **** X cour_disconnect(); X } X X! static int X sigALRM() X { X printf("\07timeout waiting for reply\n"); X--- 93,99 ---- X cour_disconnect(); X } X X! static void X sigALRM() X { X printf("\07timeout waiting for reply\n"); X*************** X*** 106,112 **** X register char *match; X { X char c; X! int (*f)(); X X f = signal(SIGALRM, sigALRM); X timeout = 0; X--- 106,112 ---- X register char *match; X { X char c; X! sig_t f; X X f = signal(SIGALRM, sigALRM); X timeout = 0; X*************** X*** 154,160 **** X struct sgttyb sb; X char dialer_buf[64]; X struct baud_msg *bm; X! int (*f)(); X X if (cour_swallow("\r\n") == 0) X return (0); X--- 154,160 ---- X struct sgttyb sb; X char dialer_buf[64]; X struct baud_msg *bm; X! sig_t f; X X if (cour_swallow("\r\n") == 0) X return (0); X*************** X*** 323,329 **** X cour_nap() X { X X! int cour_napx(); X long omask; X struct itimerval itv, oitv; X register struct itimerval *itp = &itv; X--- 323,329 ---- X cour_nap() X { X X! void cour_napx(); X long omask; X struct itimerval itv, oitv; X register struct itimerval *itp = &itv; X*************** X*** 348,354 **** X (void) sigsetmask(omask); X } X X! static X cour_napx() X { X ringring = 1; X--- 348,354 ---- X (void) sigsetmask(omask); X } X X! static void X cour_napx() X { X ringring = 1; X*** ./usr/src/usr.bin/tip/tip.c.old Thu Oct 22 21:55:34 1987 X--- ./usr/src/usr.bin/tip/tip.c Tue Sep 22 00:24:57 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)tip.c 5.6 (Berkeley) 10/22/87"; X! #endif not lint X X /* X * tip - UNIX link to other systems X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)tip.c 5.7 (2.11BSD) 2026/5/9"; X! #endif X X /* X * tip - UNIX link to other systems X*************** X*** 31,39 **** X }; X X int disc = OTTYDISC; /* tip normally runs this way */ X! int intprompt(); X! int timeout(); X! int cleanup(); X char *sname(); X char PNbuf[256]; /* This limits the size of a number */ X X--- 29,37 ---- X }; X X int disc = OTTYDISC; /* tip normally runs this way */ X! void intprompt(); X! void timeout(); X! void cleanup(); X char *sname(); X char PNbuf[256]; /* This limits the size of a number */ X X*************** X*** 198,203 **** X--- 196,202 ---- X /*NOTREACHED*/ X } X X+ void X cleanup() X { X X*************** X*** 281,287 **** X register char *p; X { X register char *b = p; X! int (*oint)(), (*oquit)(); X X stoprompt = 0; X oint = signal(SIGINT, intprompt); X--- 280,286 ---- X register char *p; X { X register char *b = p; X! sig_t oint, oquit; X X stoprompt = 0; X oint = signal(SIGINT, intprompt); X*************** X*** 302,307 **** X--- 301,307 ---- X /* X * Interrupt service routine during prompting X */ X+ void X intprompt() X { X X*** ./usr/src/usr.bin/tip/acu.c.old Fri Dec 4 23:11:47 1987 X--- ./usr/src/usr.bin/tip/acu.c Tue Sep 22 00:19:40 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)acu.c 5.5 (Berkeley) 12/4/87"; X! #endif not lint X X #include "tip.h" X X static acu_t *acu = NOACU; X static int conflag; X! static int acuabort(); X static acu_t *acutype(); X static jmp_buf jmpbuf; X /* X--- 4,18 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)acu.c 5.6 (2.11BSD) 2026/5/9"; X! #endif X X #include "tip.h" X X static acu_t *acu = NOACU; X static int conflag; X! static void acuabort(); X static acu_t *acutype(); X static jmp_buf jmpbuf; X /* X*************** X*** 144,150 **** X (*acu->acu_disconnect)(); X } X X! static int X acuabort(s) X { X signal(s, SIG_IGN); X--- 144,150 ---- X (*acu->acu_disconnect)(); X } X X! static void X acuabort(s) X { X signal(s, SIG_IGN); X*** ./usr/src/usr.bin/tip/acutab.c.old Tue Aug 30 21:16:28 1988 X--- ./usr/src/usr.bin/tip/acutab.c Sat May 9 07:44:12 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)acutab.c 5.2 (Berkeley) 4/3/86"; X! #endif not lint X X #include "tip.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)acutab.c 5.3 (2.11BSD) 2026/5/9"; X! #endif X X #include "tip.h" X X*** ./usr/src/usr.bin/tip/cu.c.old Thu Oct 22 21:54:54 1987 X--- ./usr/src/usr.bin/tip/cu.c Tue Sep 22 00:23:17 2026 X*************** X*** 4,17 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)cu.c 5.5 (Berkeley) 10/22/87"; X! #endif not lint X X #include "tip.h" X X! int cleanup(); X! int timeout(); X X /* X * Botch the interface to look like cu's X--- 4,17 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cu.c 5.6 (2.11BSD) 2026/5/9"; X! #endif X X #include "tip.h" X X! void cleanup(); X! void timeout(); X X /* X * Botch the interface to look like cu's X*** ./usr/src/usr.bin/tip/hunt.c.old Mon Apr 18 23:52:52 1988 X--- ./usr/src/usr.bin/tip/hunt.c Tue Sep 22 00:27:24 2026 X*************** X*** 4,21 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)hunt.c 5.2 (Berkeley) 4/23/87"; X! #endif not lint X X #include "tip.h" X X extern char *getremote(); X- extern char *rindex(); X X static jmp_buf deadline; X static int deadfl; X X dead() X { X X--- 4,22 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)hunt.c 5.3 (2.11BSD) 2026/5/9"; X! #endif X X #include "tip.h" X+ #include X X extern char *getremote(); X X static jmp_buf deadline; X static int deadfl; X X+ void X dead() X { X X*************** X*** 27,33 **** X char *name; X { X register char *cp; X! int (*f)(); X X f = signal(SIGALRM, dead); X while (cp = getremote(name)) { X--- 28,34 ---- X char *name; X { X register char *cp; X! sig_t f; X X f = signal(SIGALRM, dead); X while (cp = getremote(name)) { X*** ./usr/src/usr.bin/tip/log.c.old Sat May 2 15:39:13 1987 X--- ./usr/src/usr.bin/tip/log.c Sat May 9 07:45:33 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)log.c 5.2 (Berkeley) 5/2/87"; X! #endif not lint X X #include "tip.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)log.c 5.3 (2.11BSD) 2026/5/9"; X! #endif X X #include "tip.h" X X*** ./usr/src/usr.bin/tip/partab.c.old Tue Apr 30 14:35:44 1985 X--- ./usr/src/usr.bin/tip/partab.c Sat May 9 07:45:52 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)partab.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X /* X * Even parity table for 0-0177 X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)partab.c 5.2 (2.11BSD) 2026/5/9"; X! #endif X X /* X * Even parity table for 0-0177 X*** ./usr/src/usr.bin/tip/remote.c.old Wed Apr 30 16:42:02 1986 X--- ./usr/src/usr.bin/tip/remote.c Sat May 9 07:46:14 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)remote.c 5.3 (Berkeley) 4/30/86"; X! #endif not lint X X # include "tip.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)remote.c 5.4 (2.11BSD) 2026/5/9"; X! #endif X X # include "tip.h" X X*** ./usr/src/usr.bin/tip/tipout.c.old Tue Aug 30 21:47:34 1988 X--- ./usr/src/usr.bin/tip/tipout.c Tue Sep 22 00:26:10 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)tipout.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X #include "tip.h" X /* X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)tipout.c 5.2 (2.11BSD) 2026/5/9"; X! #endif X X #include "tip.h" X /* X*************** X*** 22,27 **** X--- 22,28 ---- X * TIPOUT wait state routine -- X * sent by TIPIN when it wants to posses the remote host X */ X+ void X intIOT() X { X X*************** X*** 34,39 **** X--- 35,41 ---- X * Scripting command interpreter -- X * accepts script file name over the pipe and acts accordingly X */ X+ void X intEMT() X { X char c, line[256]; X*************** X*** 63,68 **** X--- 65,71 ---- X longjmp(sigbuf, 1); X } X X+ void X intTERM() X { X X*************** X*** 71,76 **** X--- 74,80 ---- X exit(0); X } X X+ void X intSYS() X { X X*** ./usr/src/usr.bin/tip/uucplock.c.old Fri Nov 29 22:35:28 1985 X--- ./usr/src/usr.bin/tip/uucplock.c Sat May 9 07:47:04 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)uucplock.c 5.2 (Berkeley) 11/29/85"; X! #endif not lint X X /* X * defs that come from uucp.h X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)uucplock.c 5.3 (2.11BSD) 2026/5/9"; X! #endif X X /* X * defs that come from uucp.h X*** ./usr/src/usr.bin/tip/value.c.old Tue Apr 30 14:30:46 1985 X--- ./usr/src/usr.bin/tip/value.c Sat May 9 07:47:29 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)value.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X #include "tip.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)value.c 5.2 (2.11BSD) 2026/5/9"; X! #endif X X #include "tip.h" X X*** ./usr/src/usr.bin/tip/Makefile.old Tue Dec 9 09:43:04 2025 X--- ./usr/src/usr.bin/tip/Makefile Wed Jun 24 07:51:23 2026 X*************** X*** 3,18 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.4.2 (2.11BSD) 2025/11/27 X # X # make file for intermachine communications package X # X- # Files are: X- # /etc/remote remote host description file X- # /etc/phones phone number file, owned by ${OWNER} and X- # mode 6?? X- # ${ADM}/aculog ACU accounting file, owned by ${OWNER} and X- # mode 6?? {if ACULOG defined} X # Presently supports: X # BIZCOMP X # DEC DF02-AC, DF03-AC X--- 3,12 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile 5.4.3 (2.11BSD) 2026/6/24 X # X # make file for intermachine communications package X # X # Presently supports: X # BIZCOMP X # DEC DF02-AC, DF03-AC X*************** X*** 83,89 **** X touch ${ADM}/aculog X chown ${OWNER}.${GROUP} ${ADM}/aculog X chmod 600 ${ADM}/aculog X- @echo "create /etc/remote and /etc/phones" X X lint: FRC X lint ${CFLAGS} ${SRCS} X--- 77,82 ---- X*************** X*** 95,176 **** X X # DO NOT DELETE THIS LINE -- mkdep uses it. X # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. X- X- acu.o: acu.c tip.h /usr/include/sys/types.h /usr/include/sys/file.h X- acu.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X- acu.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydefaults.h X- acu.o: /usr/include/sys/ttydev.h /usr/include/signal.h X- acu.o: /usr/include/machine/trap.h /usr/include/stdio.h /usr/include/pwd.h X- acu.o: /usr/include/ctype.h /usr/include/setjmp.h /usr/include/errno.h X- acutab.o: acutab.c tip.h /usr/include/sys/types.h /usr/include/sys/file.h X- acutab.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X- acutab.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydefaults.h X- acutab.o: /usr/include/sys/ttydev.h /usr/include/signal.h X- acutab.o: /usr/include/machine/trap.h /usr/include/stdio.h /usr/include/pwd.h X- acutab.o: /usr/include/ctype.h /usr/include/setjmp.h /usr/include/errno.h X- cmds.o: cmds.c tip.h /usr/include/sys/types.h /usr/include/sys/file.h X- cmds.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X- cmds.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydefaults.h X- cmds.o: /usr/include/sys/ttydev.h /usr/include/signal.h X- cmds.o: /usr/include/machine/trap.h /usr/include/stdio.h /usr/include/pwd.h X- cmds.o: /usr/include/ctype.h /usr/include/setjmp.h /usr/include/errno.h X- cmdtab.o: cmdtab.c tip.h /usr/include/sys/types.h /usr/include/sys/file.h X- cmdtab.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X- cmdtab.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydefaults.h X- cmdtab.o: /usr/include/sys/ttydev.h /usr/include/signal.h X- cmdtab.o: /usr/include/machine/trap.h /usr/include/stdio.h /usr/include/pwd.h X- cmdtab.o: /usr/include/ctype.h /usr/include/setjmp.h /usr/include/errno.h X- cu.o: cu.c tip.h /usr/include/sys/types.h /usr/include/sys/file.h X- cu.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h X- cu.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h X- cu.o: /usr/include/signal.h /usr/include/machine/trap.h /usr/include/stdio.h X- cu.o: /usr/include/pwd.h /usr/include/ctype.h /usr/include/setjmp.h X- cu.o: /usr/include/errno.h X- hunt.o: hunt.c tip.h /usr/include/sys/types.h /usr/include/sys/file.h X- hunt.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X- hunt.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydefaults.h X- hunt.o: /usr/include/sys/ttydev.h /usr/include/signal.h X- hunt.o: /usr/include/machine/trap.h /usr/include/stdio.h /usr/include/pwd.h X- hunt.o: /usr/include/ctype.h /usr/include/setjmp.h /usr/include/errno.h X- log.o: log.c tip.h /usr/include/sys/types.h /usr/include/sys/file.h X- log.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X- log.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydefaults.h X- log.o: /usr/include/sys/ttydev.h /usr/include/signal.h X- log.o: /usr/include/machine/trap.h /usr/include/stdio.h /usr/include/pwd.h X- log.o: /usr/include/ctype.h /usr/include/setjmp.h /usr/include/errno.h X- partab.o: partab.c X- remcap.o: remcap.c /usr/include/sys/file.h /usr/include/ctype.h X- remote.o: remote.c tip.h /usr/include/sys/types.h /usr/include/sys/file.h X- remote.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X- remote.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydefaults.h X- remote.o: /usr/include/sys/ttydev.h /usr/include/signal.h X- remote.o: /usr/include/machine/trap.h /usr/include/stdio.h /usr/include/pwd.h X- remote.o: /usr/include/ctype.h /usr/include/setjmp.h /usr/include/errno.h X- tip.o: tip.c tip.h /usr/include/sys/types.h /usr/include/sys/file.h X- tip.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X- tip.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydefaults.h X- tip.o: /usr/include/sys/ttydev.h /usr/include/signal.h X- tip.o: /usr/include/machine/trap.h /usr/include/stdio.h /usr/include/pwd.h X- tip.o: /usr/include/ctype.h /usr/include/setjmp.h /usr/include/errno.h X- tipout.o: tipout.c tip.h /usr/include/sys/types.h /usr/include/sys/file.h X- tipout.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X- tipout.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydefaults.h X- tipout.o: /usr/include/sys/ttydev.h /usr/include/signal.h X- tipout.o: /usr/include/machine/trap.h /usr/include/stdio.h /usr/include/pwd.h X- tipout.o: /usr/include/ctype.h /usr/include/setjmp.h /usr/include/errno.h X- uucplock.o: uucplock.c /usr/include/sys/types.h /usr/include/sys/stat.h X- uucplock.o: /usr/include/stdio.h X- value.o: value.c tip.h /usr/include/sys/types.h /usr/include/sys/file.h X- value.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X- value.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydefaults.h X- value.o: /usr/include/sys/ttydev.h /usr/include/signal.h X- value.o: /usr/include/machine/trap.h /usr/include/stdio.h /usr/include/pwd.h X- value.o: /usr/include/ctype.h /usr/include/setjmp.h /usr/include/errno.h X- vars.o: vars.c tip.h /usr/include/sys/types.h /usr/include/sys/file.h X- vars.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h X- vars.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydefaults.h X- vars.o: /usr/include/sys/ttydev.h /usr/include/signal.h X- vars.o: /usr/include/machine/trap.h /usr/include/stdio.h /usr/include/pwd.h X- vars.o: /usr/include/ctype.h /usr/include/setjmp.h /usr/include/errno.h X- X- # IF YOU PUT ANYTHING HERE IT WILL GO AWAY X--- 88,90 ---- X*** ./usr/src/usr.bin/tip/cmds.c.old Tue Jan 7 22:50:35 2020 X--- ./usr/src/usr.bin/tip/cmds.c Tue Sep 22 00:22:38 2026 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cmds.c 5.7 (2.11BSD) 2020/1/7"; X #endif X X #include "tip.h" X--- 5,11 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cmds.c 5.8 (2.11BSD) 2026/9/22"; X #endif X X #include "tip.h" X*************** X*** 21,30 **** X char *sep[] = { "second", "minute", "hour" }; X static char *argv[10]; /* argument vector for take and put */ X X! int timeout(); /* timeout function called on alarm */ X! int stopsnd(); /* SIGINT handler during file transfers */ X! int intprompt(); /* used in handling SIG_INT during prompt */ X! int intcopy(); /* interrupt routine for file transfers */ X X /* X * FTP - remote ==> local X--- 21,30 ---- X char *sep[] = { "second", "minute", "hour" }; X static char *argv[10]; /* argument vector for take and put */ X X! void timeout(); /* timeout function called on alarm */ X! void stopsnd(); /* SIGINT handler during file transfers */ X! void intprompt(); /* used in handling SIG_INT during prompt */ X! void intcopy(); /* interrupt routine for file transfers */ X X /* X * FTP - remote ==> local X*************** X*** 96,102 **** X register char *p = buffer; X register int cnt, eof; X time_t start; X! int (*f)(); X X pwrite(FD, buf, size(buf)); X quit = 0; X--- 96,102 ---- X register char *p = buffer; X register int cnt, eof; X time_t start; X! sig_t f; X X pwrite(FD, buf, size(buf)); X quit = 0; X*************** X*** 200,205 **** X--- 200,206 ---- X /* X * Interrupt service routine for FTP X */ X+ void X stopsnd() X { X X*************** X*** 254,260 **** X char *pc, lastc; X int c, ccount, lcount; X time_t start_t, stop_t; X! int (*f)(); X X kill(pid, SIGIOT); /* put TIPOUT into a wait state */ X stop = 0; X--- 255,261 ---- X char *pc, lastc; X int c, ccount, lcount; X time_t start_t, stop_t; X! sig_t f; X X kill(pid, SIGIOT); /* put TIPOUT into a wait state */ X stop = 0; X*************** X*** 411,416 **** X--- 412,418 ---- X } X } X X+ void X timeout() X { X signal(SIGALRM, timeout); X*************** X*** 621,626 **** X--- 623,629 ---- X abort(NOSTR); X } X X+ void X intcopy() X { X X*** ./usr/src/usr.bin/f77/defs.old Wed Jan 30 23:39:34 2002 X--- ./usr/src/usr.bin/f77/defs Fri Jul 31 06:51:03 2026 X*************** X*** 1,19 **** X! #include X X! #ifdef unix X! # include X! #endif X! X #include "ftypes" X #include "defines" X! #include "locdefs" X X #define VL 6 X X- /* X- * Normal Table definitions X- */ X- X #define MAXINCLUDES 10 X #define MAXLITERALS 20 X #define MAXCTL 20 X--- 1,14 ---- X! /* "@(#)defs 1.1 (2.11BSD) 2026/6/28"; */ X X! #include X! #include X! #include X #include "ftypes" X #include "defines" X! #include "pdp11defs" X X #define VL 6 X X #define MAXINCLUDES 10 X #define MAXLITERALS 20 X #define MAXCTL 20 X*************** X*** 23,38 **** X #define MAXEQUIV 150 X #define MAXLABLIST 125 X X- X typedef union expression *expptr; X typedef union taggedblock *tagptr; X typedef union chainedblock *chainp; X X! extern FILEP infile; X! extern FILEP diagfile; X! extern FILEP textfile; X! extern FILEP asmfile; X! extern FILEP initfile; X extern long int headoffset; X X extern char token [ ]; X--- 18,32 ---- X #define MAXEQUIV 150 X #define MAXLABLIST 125 X X typedef union expression *expptr; X typedef union taggedblock *tagptr; X typedef union chainedblock *chainp; X X! extern FILE *infile; X! extern FILE *diagfile; X! extern FILE *textfile; X! extern FILE *asmfile; X! extern FILE *initfile; X extern long int headoffset; X X extern char token [ ]; X*************** X*** 193,199 **** X expptr lcharp; X }; X X- X struct hashentry X { X int hashval; X--- 187,192 ---- X*************** X*** 232,238 **** X int voffset; X }; X X- X struct paramblock X { X unsigned tag:4; X--- 225,230 ---- X*************** X*** 243,249 **** X ptr paramval; X } ; X X- X struct exprblock X { X unsigned tag:4; X--- 235,240 ---- X*************** X*** 255,261 **** X expptr rightp; X }; X X- X union constant X { X char *ccp; X--- 246,251 ---- X*************** X*** 279,286 **** X chainp listp; X }; X X- X- X struct addrblock X { X unsigned tag:4; X--- 269,274 ---- X*************** X*** 294,301 **** X unsigned ntempelt:10; X }; X X- X- X struct errorblock X { X unsigned tag:4; X--- 282,287 ---- X*************** X*** 302,308 **** X unsigned vtype:4; X }; X X- X union expression X { X struct exprblock; X--- 288,293 ---- X*************** X*** 313,320 **** X struct primblock; X } ; X X- X- X struct dimblock X { X int ndim; X--- 298,303 ---- X*************** X*** 328,334 **** X } dims[1]; X }; X X- X struct impldoblock X { X unsigned tag:4; X--- 311,316 ---- X*************** X*** 354,361 **** X int rpltag; X }; X X- X- X struct equivblock X { X ptr equivs; X--- 336,341 ---- X*************** X*** 367,373 **** X X extern struct equivblock eqvclass[ ]; X X- X struct eqvchain X { X chainp nextp; X--- 347,352 ---- X*************** X*** 383,390 **** X struct eqvchain; X }; X X- X- X union taggedblock X { X struct nameblock; X--- 362,367 ---- X*************** X*** 398,406 **** X struct impldoblock; X } ; X X- X- X- X struct literal X { X short littype; X--- 375,380 ---- X*************** X*** 418,430 **** X extern struct literal litpool[ ]; X extern int nliterals; X X- X- X- X- X /* popular functions with non integer return values */ X X- X int *ckalloc(); X char *varstr(), *nounder(), *varunder(); X char *copyn(), *copys(); X--- 392,399 ---- X*************** X*** 437,443 **** X struct labelblock *mklabel(); X struct extsym *mkext(), *newentry(); X struct exprblock *addrof(), *call1(), *call2(), *call3(), *call4(); X! struct addrblock *builtin(), *mktemp(), *mktmpn(); X struct addrblock *autovar(), *mklhs(), *mkaddr(), *putconst(), *memversion(); X struct constblock *mkintcon(); X expptr mkexpr(), mkconv(), mkfunct(), fixexpr(), fixtype(); X--- 406,412 ---- X struct labelblock *mklabel(); X struct extsym *mkext(), *newentry(); X struct exprblock *addrof(), *call1(), *call2(), *call3(), *call4(); X! struct addrblock *builtin(), *mktmp(), *mktmpn(); X struct addrblock *autovar(), *mklhs(), *mkaddr(), *putconst(), *memversion(); X struct constblock *mkintcon(); X expptr mkexpr(), mkconv(), mkfunct(), fixexpr(), fixtype(); X*** ./usr/src/usr.bin/f77/BUG?.old Sat Oct 26 00:40:25 1996 X--- ./usr/src/usr.bin/f77/BUG? Thu Jul 30 17:31:08 2026 X*************** X*** 1,3 **** X--- 1,14 ---- X+ After 40+ years the bug was fixed in 2.11BSD Patch #500 (also known as X+ "2.11BSD 35th Anniversary Edition"). X+ X+ The problem was NOT in c1 as believed in 1985 but rather in f77pass1 X+ X+ Many thanks to Anders Magnusson for providing the fix X+ during the preparation of 2.11BSD Patch 500. Solution was to change the X+ data type of a 'logical' from TYLONG to TYSHORT. See #500 66) for more X+ details. X+ X+ -------------------------original BUG?-------------------------------- X I have discovered what I believe to be a problem in the second pass of X both the old and the new versions of the C compiler. The problem is X attributable to the following ratfor source: X*** ./usr/src/usr.bin/f77/io.c.old Wed Jan 30 23:39:38 2002 X--- ./usr/src/usr.bin/f77/io.c Fri Jul 31 07:02:09 2026 X*************** X*** 1,14 **** X /* Routines to generate code for I/O statements. X! Some corrections and improvements due to David Wasley, U. C. Berkeley X! Compile with -DKOSHER to force exact conformity with the ANSI std. X! */ X! /* X * This module supports the ucb fixed libI77. Since it was done X * on a Vax, some of the naming conventions were different. These were X * changed to allow compilation on the 11/70 version. wfj 3/26/80 X * X! */ X! /* Modified to handle encode/decode statements. X * Other files modified to support this feature: X * lex.c "encode" & "decode" added to key[] X * tokens SENCODE & SDECODE added X--- 1,15 ---- X+ /* "@(#)io.c 1.1 (2.11BSD) 2026/7/31"; */ X+ X /* Routines to generate code for I/O statements. X! * Some corrections and improvements due to David Wasley, U. C. Berkeley X! * Compile with -DKOSHER to force exact conformity with the ANSI std. X! * X * This module supports the ucb fixed libI77. Since it was done X * on a Vax, some of the naming conventions were different. These were X * changed to allow compilation on the 11/70 version. wfj 3/26/80 X * X! * X! * Modified to handle encode/decode statements. X * Other files modified to support this feature: X * lex.c "encode" & "decode" added to key[] X * tokens SENCODE & SDECODE added X*************** X*** 174,180 **** X #define XNEXTREC SZFLAG + 9*SZIOINT + 13*SZADDR X #define XQBLANK SZFLAG + 9*SZIOINT + 14*SZADDR X #define XQBLANKLEN SZFLAG + 9*SZIOINT + 15*SZADDR X! X fmtstmt(lp) X register struct labelblock *lp; X { X--- 175,181 ---- X #define XNEXTREC SZFLAG + 9*SZIOINT + 13*SZADDR X #define XQBLANK SZFLAG + 9*SZIOINT + 14*SZADDR X #define XQBLANKLEN SZFLAG + 9*SZIOINT + 15*SZADDR X! X fmtstmt(lp) X register struct labelblock *lp; X { X*************** X*** 196,203 **** X return(lp->labelno); X } X X- X- X setfmt(lp) X struct labelblock *lp; X { X--- 197,202 ---- X*************** X*** 211,218 **** X flline(); X } X X- X- X startioctl() X { X register int i; X--- 210,215 ---- X*************** X*** 225,232 **** X V(i) = NULL; X } X X- X- X iosetecdc(e) /* E-D */ X expptr e; /* E-D */ X { /* E-D */ X--- 222,227 ---- X*************** X*** 233,240 **** X ioecdc = e; /* E-D */ X } /* E-D */ X X- X- X endioctl() X { X int i; X--- 228,233 ---- X*************** X*** 300,306 **** X jumplab = ioerrlab; X else X { X! if(!IOSTP) IOSTP = mktemp(TYINT, NULL); X jumplab = newlabel(); X skiplab = YES; X } X--- 293,299 ---- X jumplab = ioerrlab; X else X { X! if(!IOSTP) IOSTP = mktmp(TYINT, NULL); X jumplab = newlabel(); X skiplab = YES; X } X*************** X*** 316,322 **** X /* } X */ X X- X ioset(TYIOINT, XERR, ICON(ioerrlab!=0 || iosreturn) ); X X switch(iostmt) X--- 309,314 ---- X*************** X*** 351,358 **** X frexpr(V(i)); X } X X- X- X iocname() X { X register int i; X--- 343,348 ---- X*************** X*** 372,378 **** X return(IOSBAD); X } X X- X ioclause(n, p) X register int n; X register expptr p; X--- 362,367 ---- X*************** X*** 428,437 **** X putiocall( call0(TYINT, ioroutine) ); X } X X- X- X- X- X LOCAL doiolist(p0) X chainp p0; X { X--- 417,422 ---- X*************** X*** 472,478 **** X { X if(iostmt == IOWRITE) X { X! tp = mktemp(qe->vtype, qe->vleng); X puteq( cpexpr(tp), qe); X putio(ICON(1), tp); X } X--- 457,463 ---- X { X if(iostmt == IOWRITE) X { X! tp = mktmp(qe->vtype, qe->vleng); X puteq( cpexpr(tp), qe); X putio(ICON(1), tp); X } X*************** X*** 558,564 **** X else X putexpr(q); X } X- X X startrw() X { X--- 543,548 ---- X*************** X*** 673,680 **** X putiocall( call1(TYINT, ioroutine, cpexpr(ioblkp) )); X } X X- X- X LOCAL dofopen() X { X register expptr p; X--- 657,662 ---- X*************** X*** 707,713 **** X putiocall( call1(TYINT, "f_open", cpexpr(ioblkp) )); X } X X- X LOCAL dofclose() X { X register expptr p; X--- 689,694 ---- X*************** X*** 722,728 **** X error("bad unit in close statement",0,0,ERR); X } X X- X LOCAL dofinquire() X { X register expptr p; X--- 703,708 ---- X*************** X*** 753,760 **** X putiocall( call1(TYINT, "f_inqu", cpexpr(ioblkp) )); X } X X- X- X LOCAL dofmove(subname) X char *subname; X { X--- 733,738 ---- X*************** X*** 769,776 **** X error("bad unit in I/O motion statement",0,0,ERR); X } X X- X- X LOCAL ioset(type, offset, p) X int type, offset; X expptr p; X--- 747,752 ---- X*************** X*** 783,791 **** X puteq(q, p); X } X X- X- X- X LOCAL iosetc(offset, p) X int offset; X register expptr p; X--- 759,764 ---- X*************** X*** 798,805 **** X error("non-character control clause",0,0,ERR); X } X X- X- X LOCAL iosetip(i, offset) X int i, offset; X { X--- 771,776 ---- X*************** X*** 814,821 **** X else X ioset(TYADDR, offset, ICON(0) ); X } X- X- X X LOCAL iosetlc(i, offp, offl) X int i, offp, offl; X--- 785,790 ---- X*** ./usr/src/usr.bin/f77/Makefile.old Sat Nov 29 06:42:54 2025 X--- ./usr/src/usr.bin/f77/Makefile Wed Jul 29 21:21:05 2026 X*************** X*** 1,4 **** X! # Makefile 2.1 (2.11BSD) 2025/11/27 X X # Fortran 77 compiler generating code for the PDP11 using the Ritchie pass 2 X X--- 1,4 ---- X! # Makefile 2.2 (2.11BSD) 2026/6/28 X X # Fortran 77 compiler generating code for the PDP11 using the Ritchie pass 2 X X*************** X*** 6,19 **** X # 2020/2/8 - remove unused malloc.c from SRCS X # Add -O to CFLAGS. "Don't use -O here" was a historical relic X # 2025/11/27 - cleanup X X- AS= as -V X- C2= /lib/c2 X LD= ld X STRINGS= f77_strings X! CFL= -DTARGET=PDP11 -DFAMILY=DMR -DHERE=PDP11 -DOUTPUT=BINARY \ X! -DPOLISH=POSTFIX -DC_OVERLAY X! CFLAGS= -O -w ${CFL} X LDFLAGS= -i X X SRCS= data.c driver.c equiv.c error.c exec.c expr.c gram.c init.c \ X--- 6,18 ---- X # 2020/2/8 - remove unused malloc.c from SRCS X # Add -O to CFLAGS. "Don't use -O here" was a historical relic X # 2025/11/27 - cleanup X+ # 2026/6/28 - Don't use -O and then run /lib/c2 on the assembly file. X+ # That runs the optimizer twice. Borrow from pascal/pi and X+ # use tmp/ as the prefix for mkstr. X X LD= ld X STRINGS= f77_strings X! CFLAGS= -O -I. -w X LDFLAGS= -i X X SRCS= data.c driver.c equiv.c error.c exec.c expr.c gram.c init.c \ X*************** X*** 24,93 **** X intr.o io.o lex.o main.o misc.o pdp11.o pdp11x.o proc.o \ X put.o putdmr.o X X! all: f77 f77pass1 X X! f77: driver.o pdp11x.o X! ${CC} ${LDFLAGS} driver.o pdp11x.o -o f77 X! @size f77 X X f77pass1: ${PASS1OBJECTS} X! ${LD} /lib/crt0.o ${LDFLAGS} -o f77pass1 \ X! main.o misc.o gram.o lex.o \ X! -Z proc.o init.o \ X! -Z equiv.o data.o error.o \ X! -Y io.o expr.o intr.o exec.o \ X! put.o putdmr.o pdp11.o pdp11x.o -lc X! @size f77pass1 X X! gram.o: gram.c X! mkstr - f77_strings xx gram.c X! ${CC} -S ${CFLAGS} xxgram.c X! mv xxgram.s gram.s X! rm xxgram.c X! ${AS} -u -o gram.o gram.s X! rm gram.s X X! gram.c: gram.head gram.dcl gram.expr gram.exec gram.io tokdefs X! ( sed gram.in X! ${YACC} ${YFLAGS} gram.in X! mv y.tab.c gram.c X! rm gram.in X X .c.o: X! # Remove error strings X! mkstr - f77_strings xx $*.c X! ${CC} -S ${CFLAGS} xx$*.c X! ${C2} xx$*.s | ${AS} -u -o $*.o X! rm xx$*.c xx$*.s X X driver.o: X pdp11x.o: X! ${CC} -c ${CFLAGS} $*.c X X! defs: ftypes defines locdefs X! touch defs X X tokdefs: tokens X! grep -n . tokdefs X X- locdefs: pdp11defs X- cp pdp11defs locdefs X- X install: all X! install -c -s -m 755 -o root f77 /usr/bin X! install -c -s -m 755 -o root f77pass1 /usr/libexec X! install -c -m 644 ${STRINGS} /usr/share/misc X X clean: X! -rm -f f77 f77pass1 *.o gram.c x.c xs.c f77_strings strings X X tags: X! cwd=`pwd`; \ X! for i in ${SRCS}; do \ X! ctags -a -f tags $$cwd/$$i; \ X! done X! X X data.o: defs string_defs data.c X driver.o: defs drivedefs driver.c X--- 23,88 ---- X intr.o io.o lex.o main.o misc.o pdp11.o pdp11x.o proc.o \ X put.o putdmr.o X X! all: tmp f77 f77pass1 X X! f77: driver.o pdp11x.o X! ${CC} ${LDFLAGS} driver.o pdp11x.o -o f77 X! @size f77 X X f77pass1: ${PASS1OBJECTS} X! ${LD} /lib/crt0.o ${LDFLAGS} -o f77pass1 \ X! main.o misc.o gram.o lex.o \ X! -Z proc.o init.o \ X! -Z equiv.o data.o error.o \ X! -Y io.o expr.o intr.o exec.o \ X! put.o putdmr.o pdp11.o pdp11x.o -lc X! @size f77pass1 X X! gram.o: gram.c X! rm -f tmp/gram.c X! mkstr - f77_strings tmp/ gram.c X! ${CC} ${CFLAGS} -c tmp/gram.c X! rm -f tmp/gram.c X X! gram.c: gram.head gram.dcl gram.expr gram.exec gram.io tokdefs X! ( sed gram.in X! ${YACC} ${YFLAGS} gram.in X! mv y.tab.c gram.c X! rm gram.in X X+ tmp: X+ -mkdir tmp X+ X .c.o: X! rm -f tmp/$*.c X! mkstr - f77_strings tmp/ $*.c X! ${CC} ${CFLAGS} -c tmp/$*.c X! rm -f tmp/$*.c X X driver.o: X+ ${CC} -c ${CFLAGS} $*.c X+ X pdp11x.o: X! ${CC} -c ${CFLAGS} $*.c X X! defs: ftypes defines X! touch defs X X tokdefs: tokens X! grep -n . tokdefs X X install: all X! install -c -s -m 755 -o root f77 /usr/bin X! install -c -s -m 755 -o root f77pass1 /usr/libexec X! install -c -m 644 ${STRINGS} /usr/share/misc X X clean: X! rm -f f77 f77pass1 *.o gram.c f77_strings X! rm -fr tmp X X tags: X! ctags ${SRCS} X X data.o: defs string_defs data.c X driver.o: defs drivedefs driver.c X*** ./usr/src/usr.bin/f77/driver.c.old Fri Jun 9 23:07:06 1995 X--- ./usr/src/usr.bin/f77/driver.c Thu Jul 30 21:55:18 2026 X*************** X*** 1,14 **** X! char *xxxvers[] = "\n FORTRAN 77 DRIVER, VERSION 1.13.1+, 09 JUN 1995\n"; X X #include X #include X #include "defines" X! #include "locdefs" X #include "drivedefs" X #include "ftypes" X #include X X! static FILEP diagfile = {stderr} ; X static int pid; X static int sigivalue = 0; X static int sigqvalue = 0; X--- 1,16 ---- X! static char xxxvers[] = "f77 driver version 1.14 2026/6/29\n"; X X #include X #include X #include "defines" X! #include "pdp11defs" X #include "drivedefs" X #include "ftypes" X #include X+ #include X+ #include X X! static FILE *diagfile = {stderr} ; X static int pid; X static int sigivalue = 0; X static int sigqvalue = 0; X*************** X*** 39,55 **** X X static char fflags[30] = "-"; X static char cflags[20] = "-c -V"; X- #if TARGET == PDP11 X static char aflags[20] = "-u -V"; X- #endif X static char eflags[30] = ""; X static char rflags[30] = ""; X static char lflag[3] = "-x"; X static char *fflagp = fflags+1; X static char *cflagp = cflags+5; X- #if TARGET == PDP11 X static char *aflagp = aflags+5; X- #endif X static char *eflagp = eflags; X static char *rflagp = rflags; X static char **loadargs; X--- 41,53 ---- X*************** X*** 65,71 **** X static flag nofloating = NO; X static flag fortonly = NO; X static flag macroflag = NO; X- X X main(argc, argv) X int argc; X--- 63,68 ---- X*************** X*** 73,79 **** X { X int i, c, status; X char *setdoto(), *lastchar(), *lastfield(); X- ptr ckalloc(); X register char *s; X char fortfile[20], *t; X char buff[100]; X--- 70,75 ---- X*************** X*** 88,102 **** X pid = getpid(); X crfnames(); X X! loadargs = (char **) ckalloc( (argc+20) * sizeof(*loadargs) ); X loadargs[1] = "-X"; X loadargs[2] = "-u"; X! #if HERE==PDP11 || HERE==VAX X! loadargs[3] = "_MAIN_"; X! #endif X! #if HERE == INTERDATA X! loadargs[3] = "main"; X! #endif X loadp = loadargs + 4; X X --argc; X--- 84,93 ---- X pid = getpid(); X crfnames(); X X! loadargs = (char **) calloc(argc+20, sizeof(*loadargs)); X loadargs[1] = "-X"; X loadargs[2] = "-u"; X! loadargs[3] = "_MAIN_"; X loadp = loadargs + 4; X X --argc; X*************** X*** 144,153 **** X X case 'O': X optimflag = YES; X- #if TARGET == INTERDATA X- *loadp++ = "-r"; X- *loadp++ = "-d"; X- #endif X *fflagp++ = 'O'; X if( isdigit(s[1]) ) X *fflagp++ = *++s; X--- 135,140 ---- X*************** X*** 164,170 **** X X case 'S': X saveasmflag = YES; X- X case 'c': X loadflag = NO; X break; X--- 151,156 ---- X*************** X*** 194,205 **** X --argc; X break; X X- #if TARGET == PDP11 X case 'f': X nofloating = YES; X pass2name = NOFLPASS2; X! break; X! #endif X X case 'F': X fortonly = YES; X--- 180,189 ---- X --argc; X break; X X case 'f': X nofloating = YES; X pass2name = NOFLPASS2; X! break; X X case 'F': X fortonly = YES; X*************** X*** 207,213 **** X break; X X case 'I': X! if(s[1]=='2' || s[1]=='4' || s[1]=='s') X { X *fflagp++ = *s++; X goto copyfflag; X--- 191,197 ---- X break; X X case 'I': X! if(s[1]=='2' || s[1]=='4') X { X *fflagp++ = *s++; X goto copyfflag; X*************** X*** 234,240 **** X break; X default: X lflag[1] = *s; X! *loadp++ = copys(lflag); X break; X } X endfor: X--- 218,224 ---- X break; X default: X lflag[1] = *s; X! *loadp++ = strdup(lflag); X break; X } X endfor: X*************** X*** 242,254 **** X ++argv; X } X X! loadargs[0] = ldname; X! #if TARGET == PDP11 X if(nofloating) X *loadp++ = (profileflag ? NOFLPROF : NOFLFOOT); X else X! #endif X! *loadp++ = (profileflag ? proffoot : footname); X X for(i = 0 ; i%s", pass2name, setfname, textfname, asmpass2); X- # else X- sprintf(buff, "%s <%s >%s", pass2name, textfname, asmpass2); X- # endif X- return( sys(buff) ); X- #endif X } X X- X- X- X doasm(s) X char *s; X { X--- 386,395 ---- X*************** X*** 439,445 **** X lastc = lastchar(s); X obj = setdoto(s); X X- #if TARGET==PDP11 || TARGET==VAX X #ifdef PASS2OPT X if(optimflag) X { X--- 402,407 ---- X*************** X*** 453,470 **** X } X } X #endif X- #endif X X if(saveasmflag) X { X *lastc = 's'; X- #if TARGET == INTERDATA X- sprintf(buff, "cat %s %s %s >%s", asmfname, setfname, asmpass2, obj); X- sys(buff); X- #else X sprintf(buff, "cat %s %s >%s", asmfname, asmpass2, obj); X sys(buff); X- #endif X *lastc = 'o'; X } X else X--- 415,426 ---- X*************** X*** 471,510 **** X { X if(verbose) X fprintf(diagfile, " ASM."); X- #if TARGET == INTERDATA X- sprintf(buff, "%s -o %s %s %s %s", asmname, obj, asmfname, setfname, asmpass2); X- #endif X X- #if TARGET == VAX X- /* vax assembler currently accepts only one input file */ X- sprintf(buff, "cat %s >>%s", asmpass2, asmfname); X- sys(buff); X- sprintf(buff, "%s -o %s %s", asmname, obj, asmfname); X- #endif X- X- #if TARGET == PDP11 X sprintf(buff, "%s %s -o %s %s %s", asmname, aflags, X obj, asmfname, asmpass2); X- #endif X X- #if TARGET!=INTERDATA && TARGET!=PDP11 && TARGET!=VAX X- sprintf(buff, "%s -o %s %s %s", asmname, obj, asmfname, asmpass2); X- #endif X- X if( sys(buff) ) X fatal("assembler error"); X if(verbose) X fprintf(diagfile, "\n"); X- #if HERE==PDP11 && TARGET!=PDP11 X- rmf(obj); X- #endif X } X X rmf(asmpass2); X } X X- X- X doload(v0, v) X register char *v0[], *v[]; X { X--- 427,445 ---- X*************** X*** 518,526 **** X *v++ = aoutname; X *v = NULL; X X- /* X if(verbose) X- */ X fprintf(diagfile, "LOAD\n"); X if(debugflag) X { X--- 453,459 ---- X*************** X*** 529,535 **** X fprintf(diagfile, "\n"); X } X X- #if HERE==PDP11 || HERE==INTERDATA || HERE==VAX X if( (waitpid = fork()) == 0) X { X enbint(SIG_DFL); X--- 462,467 ---- X*************** X*** 537,559 **** X fatal1("couldn't load %s", ldname); X } X await(waitpid,ldname); X- #endif X- X- #if HERE==INTERDATA X- if(optimflag) X- { X- char bufa[100], bufb[100]; X- sprintf(bufa, "nopt %s -o junk.%d", aoutname, pid); X- sprintf(bufb, "mv junk.%d %s", pid, aoutname); X- if (sys(bufa) || sys(bufb)) X- err("bad optimization"); X- } X- #endif X- X- if(verbose) X- fprintf(diagfile, "\n"); X } X! X /* Process control and Shell-simulating routines */ X X sys(str) X--- 469,476 ---- X fatal1("couldn't load %s", ldname); X } X await(waitpid,ldname); X } X! X /* Process control and Shell-simulating routines */ X X sys(str) X*************** X*** 566,572 **** X int waitpid; X int argc; X X- X if(debugflag) X fprintf(diagfile, "%s\n", str); X inname = NULL; X--- 483,488 ---- X*************** X*** 633,642 **** X return( await(waitpid,path+9) ); X } X X- X- X- X- X #include "errno.h" X X /* modified version from the Shell */ X--- 549,554 ---- X*************** X*** 644,650 **** X char *f; X char **av; X { X- extern int errno; X X execv(f, av+1); X X--- 556,561 ---- X*************** X*** 658,668 **** X fatal1("%s: too large", f); X } X X- X- X- X- X- X done(k) X int k; X { X--- 569,574 ---- X*************** X*** 676,686 **** X exit(k); X } X X- X- X- X- X- X enbint(k) X int (*k)(); X { X--- 582,587 ---- X*************** X*** 694,709 **** X signal(SIGTERM,k); X } X X- X- X- X intrupt() X { X done(2); X } X X- X- X await(waitpid,where) X int waitpid; X char where[]; X--- 595,605 ---- X*************** X*** 725,731 **** X } X return(status>>8); X } X! X /* File Name and File Manipulation Routines */ X X unreadable(s) X--- 621,627 ---- X } X return(status>>8); X } X! X /* File Name and File Manipulation Routines */ X X unreadable(s) X*************** X*** 746,755 **** X } X } X X- X- X clf(p) X! FILEP *p; X { X if(p!=NULL && *p!=NULL && *p!=stdout) X { X--- 642,649 ---- X } X } X X clf(p) X! FILE **p; X { X if(p!=NULL && *p!=NULL && *p!=stdout) X { X*************** X*** 766,783 **** X rmf(asmfname); X rmf(initfname); X rmf(asmpass2); X- #if TARGET == INTERDATA X- rmf(setfname); X- #endif X } X X- X- X- X- X- X- X- X /* return -1 if file does not exist, 0 if it is of zero length X and 1 if of positive length X */ X--- 660,667 ---- X*************** X*** 784,815 **** X content(filename) X char *filename; X { X- #ifdef VERSION6 X- struct stat X- { X- char cjunk[9]; X- char size0; X- int size1; X- int ijunk[12]; X- } buf; X- #else X- # include X- # include X struct stat buf; X- #endif X X! if(stat(filename,&buf) < 0) X! return(-1); X! #ifdef VERSION6 X! return(buf.size0 || buf.size1); X! #else X return( buf.st_size > 0 ); X- #endif X } X X- X- X- X crfnames() X { X fname(textfname, "x"); X--- 668,680 ---- X content(filename) X char *filename; X { X struct stat buf; X X! if (stat(filename,&buf) < 0) X! return(-1); X return( buf.st_size > 0 ); X } X X crfnames() X { X fname(textfname, "x"); X*************** X*** 823,831 **** X fname(setfname, "A"); X } X X- X- X- X rmf(fn) X register char *fn; X { X--- 688,693 ---- X*************** X*** 833,842 **** X unlink(fn); X } X X- X- X- X- X LOCAL fname(name, suff) X char *name, *suff; X { X--- 695,700 ---- X*************** X*** 846,854 **** X */ X } X X- X- X- X dotchar(s) X register char *s; X { X--- 704,709 ---- X*************** X*** 858,865 **** X return(NO); X } X X- X- X char *lastfield(s) X register char *s; X { X--- 713,718 ---- X*************** X*** 870,877 **** X return(t); X } X X- X- X char *lastchar(s) X register char *s; X { X--- 723,728 ---- X*************** X*** 887,894 **** X return( lastfield(s) ); X } X X- X- X badfile(s) X char *s; X { X--- 738,743 ---- X*************** X*** 895,942 **** X fatal1("cannot open intermediate file %s", s); X } X X- X- X- ptr ckalloc(n) X- int n; X- { X- ptr p, calloc(); X- X- if( p = calloc(1, (unsigned) n) ) X- return(p); X- X- fatal("out of memory"); X- /* NOTREACHED */ X- } X- X- X- X- X- X- copyn(n, s) X- register int n; X- register char *s; X- { X- register char *p, *q; X- X- p = q = (char *) ckalloc(n); X- while(n-- > 0) X- *q++ = *s++; X- return(p); X- } X- X- X- X- copys(s) X- char *s; X- { X- return( copyn( strlen(s)+1 , s) ); X- } X- X- X- X- X- X nodup(s) X char *s; X { X--- 744,749 ---- X*************** X*** 945,956 **** X for(p = loadargs ; p < loadp ; ++p) X if( !strcmp(*p, s) ) X return(NO); X- X return(YES); X } X X- X- X static fatal(t) X char *t; X { X--- 752,760 ---- X*************** X*** 961,969 **** X exit(1); X } X X- X- X- X static fatal1(t,d) X char *t, *d; X { X--- 765,770 ---- X*************** X*** 972,992 **** X fatal(buff); X } X X- X- X- X err(s) X char *s; X { X fprintf(diagfile, "Error in file %s: %s\n", infname, s); X } X! X LOCAL int nch = 0; X! LOCAL FILEP asmfile; X! LOCAL FILEP sortfile; X X- #include "ftypes" X- X static ftnint typesize[NTYPES] X = { 1, SZADDR, SZSHORT, SZLONG, SZLONG, 2*SZLONG, X 2*SZLONG, 4*SZLONG, SZLONG, 1, 1, 1}; X--- 773,788 ---- X fatal(buff); X } X X err(s) X char *s; X { X fprintf(diagfile, "Error in file %s: %s\n", infname, s); X } X! X LOCAL int nch = 0; X! LOCAL FILE *asmfile; X! LOCAL FILE *sortfile; X X static ftnint typesize[NTYPES] X = { 1, SZADDR, SZSHORT, SZLONG, SZLONG, 2*SZLONG, X 2*SZLONG, 4*SZLONG, SZLONG, 1, 1, 1}; X*************** X*** 1021,1027 **** X badfile(sortfname); X if( (asmfile = fopen(asmfname, "a")) == NULL) X badfile(asmfname); X! pruse(asmfile, USEINIT); X X while( rdname(&vargroup, varname) && rdlong(&offset) && rdlong(&vlen) && rdlong(&type) ) X { X--- 817,823 ---- X badfile(sortfname); X if( (asmfile = fopen(asmfname, "a")) == NULL) X badfile(asmfname); X! fprintf(asmfile, "%s\n", USEINIT); X X while( rdname(&vargroup, varname) && rdlong(&offset) && rdlong(&vlen) && rdlong(&type) ) X { X*************** X*** 1037,1046 **** X align = (type==TYCHAR ? SZLONG : typealign[type]); X else align = ALIDOUBLE; X totlen = doeven(totlen, align); X! if(vargroup == 2) X! prcomblock(asmfile, varname); X! else X! fprintf(asmfile, LABELFMT, varname); X } X if(offset < ooffset) X { X--- 833,839 ---- X align = (type==TYCHAR ? SZLONG : typealign[type]); X else align = ALIDOUBLE; X totlen = doeven(totlen, align); X! fprintf(asmfile, LABELFMT, varname); X } X if(offset < ooffset) X { X*************** X*** 1080,1088 **** X return(erred); X } X X- X- X- X prspace(n) X register ftnint n; X { X--- 873,878 ---- X*************** X*** 1100,1108 **** X prch(0); X } X X- X- X- X ftnint doeven(tot, align) X register ftnint tot; X int align; X--- 890,895 ---- X*************** X*** 1113,1120 **** X return(new); X } X X- X- X rdname(vargroupp, name) X int *vargroupp; X register char *name; X--- 900,905 ---- X*************** X*** 1136,1143 **** X return(YES); X } X X- X- X rdlong(n) X register ftnint *n; X { X--- 921,926 ---- X*************** X*** 1152,1160 **** X *n = 10* (*n) + c - '0'; X return(YES); X } X- X- X- X X prch(c) X register int c; X--- 935,940 ---- X*** ./usr/src/usr.bin/f77/pdp11x.c.old Mon Feb 16 19:57:40 1987 X--- ./usr/src/usr.bin/f77/pdp11x.c Mon Jun 29 17:24:30 2026 X*************** X*** 1,11 **** X #include X #include "defines" X! #include "locdefs" X X- X- X prchars(fp, s) X! FILEP fp; X register int *s; X { X register int i; X--- 1,11 ---- X+ /* "@(#)pdp11x.c 1.1 (2.11BSD) 2026/6/28"; */ X+ X #include X #include "defines" X! #include "pdp11defs" X X prchars(fp, s) X! FILE *fp; X register int *s; X { X register int i; X*************** X*** 15,37 **** X fprintf(fp, "%o%c", *s++, (i==SZSHORT-1 ? '\n' : ',' ) ); X } X X- X- X- X- X- pruse(fp, s) X- FILEP fp; X- char *s; X- { X- fprintf(fp, "%s\n", s); X- } X- X- X- X- X- X prskip(fp, k) X! FILEP fp; X ftnint k; X { X /* works around bug in the pdp11 assembler that bombs on . = .+x for x>= 32768 */ X--- 15,22 ---- X fprintf(fp, "%o%c", *s++, (i==SZSHORT-1 ? '\n' : ',' ) ); X } X X prskip(fp, k) X! FILE *fp; X ftnint k; X { X /* works around bug in the pdp11 assembler that bombs on . = .+x for x>= 32768 */ X*************** X*** 39,51 **** X fprintf(fp, "\t. = .+30000.\n"); X fprintf(fp, "\t. = .+%ld.\n", k); X } X- X- X- prcomblock(fp, name) X- FILEP fp; X- char *name; X- { X- fprintf(fp, LABELFMT, name); X- } X- X- X--- 24,26 ---- X*** ./usr/src/usr.bin/f77/pdp11.c.old Wed Jan 30 23:39:38 2002 X--- ./usr/src/usr.bin/f77/pdp11.c Wed Jul 29 20:36:12 2026 X*************** X*** 1,16 **** X /* X! * 1995/06/09. sprintf() returns an int (since patch #233) rather X * a "char *". X */ X X #include "defs" X #include "string_defs" X! #if FAMILY == DMR X! # include "dmrdefs" X! #endif X! #if FAMILY==SCJ && OUTPUT==BINARY X! # include "scjdefs" X! #endif X X /* X PDP 11-SPECIFIC PRINTING ROUTINES X--- 1,14 ---- X /* X! * 2026/06/30: use defined(BINARY) instead of OUTPUT==BINARY X! * remove excess whitespace. X! * X! * 1995/06/09: sprintf() returns an int (since patch #233) rather X * a "char *". X */ X X #include "defs" X #include "string_defs" X! #include "dmrdefs" X X /* X PDP 11-SPECIFIC PRINTING ROUTINES X*************** X*** 20,47 **** X static char textline[50]; X int regnum[] = { 3, 2 }; X X- X- prsave() X- { X- } X- X- X- X goret(type) X int type; X { X- #if FAMILY == DMR X p2op(P2RETURN); X- #endif X- #if FAMILY==SCJ X- sprintf(textline, "\tjmp\tcret"); X- p2pass(textline); X- #endif X } X X- X- X- X /* X * move argument slot arg1 (relative to ap) X * to slot arg2 (relative to ARGREG) X--- 18,29 ---- X*************** X*** 55,67 **** X mvarg1(arg1+6, arg2+2); X } X X- X- X- X mvarg1(m, n) X int m, n; X { X- #if FAMILY == DMR X p2reg(ARGREG, P2SHORT|P2PTR); X p2op2(P2ICON, P2SHORT); X p2i(n); X--- 37,45 ---- X*************** X*** 74,100 **** X p2op2(P2INDIRECT, P2SHORT); X p2op2(P2ASSIGN, P2SHORT); X putstmt(); X- #endif X- #if FAMILY == SCJ X- sprintf(textline, "\tmov\t%d.(r5),%d.(r4)", m, n); X- p2pass(textline); X- #endif X } X X- X- X- X prlabel(fp, k) X! FILEP fp; X int k; X { X fprintf(fp, "L%d:\n", k); X } X X- X- X prconi(fp, type, n) X! FILEP fp; X int type; X ftnint n; X { X--- 52,68 ---- X p2op2(P2INDIRECT, P2SHORT); X p2op2(P2ASSIGN, P2SHORT); X putstmt(); X } X X prlabel(fp, k) X! FILE *fp; X int k; X { X fprintf(fp, "L%d:\n", k); X } X X prconi(fp, type, n) X! FILE *fp; X int type; X ftnint n; X { X*************** X*** 106,129 **** X fprintf(fp, "\t%d.\n", np[1]); X } X X- X- X prcona(fp, a) X! FILEP fp; X ftnint a; X { X fprintf(fp, "L%ld\n", a); X } X X- X- X- #if HERE!=PDP11 X- BAD NEWS X- #endif X- X- #if HERE==PDP11 X prconr(fp, type, x) X! FILEP fp; X int type; X double x; X { X--- 74,88 ---- X fprintf(fp, "\t%d.\n", np[1]); X } X X prcona(fp, a) X! FILE *fp; X ftnint a; X { X fprintf(fp, "L%ld\n", a); X } X X prconr(fp, type, x) X! FILE *fp; X int type; X double x; X { X*************** X*** 134,144 **** X while(--k >= 0) X fprintf(fp, "%d.%c", *n++, (k==0 ? '\n' : ';') ); X } X- #endif X X- X- X- X preven(k) X int k; X { X--- 93,99 ---- X*************** X*** 146,230 **** X fprintf(asmfile, "\t.even\n", k); X } X X- X- X- #if FAMILY == SCJ X- X- prcmgoto(p, nlab, skiplabel, labarray) X- expptr p; X- int nlab, skiplabel, labarray; X- { X- int regno; X- X- putforce(p->vtype, p); X- X- if(p->vtype == TYLONG) X- { X- regno = 1; X- sprintf(textline, "\ttst\tr0"); X- p2pass(textline); X- sprintf(textline, "\tbne\tL%d", skiplabel); X- p2pass(textline); X- } X- else X- regno = 0; X- X- sprintf(textline, "\tcmp\tr%d,$%d.", regno, nlab); X- p2pass(textline); X- sprintf(textline, "\tbhi\tL%d", skiplabel); X- p2pass(textline); X- sprintf(textline, "\tasl\tr%d", regno); X- p2pass(textline); X- sprintf(textline, "\tjmp\t*L%d(r%d)", labarray, regno); X- p2pass(textline); X- } X- X- X- prarif(p, neg,zer,pos) X- expptr p; X- int neg, zer, pos; X- { X- register int ptype; X- X- putforce( ptype = p->vtype, p); X- if( ISINT(ptype) ) X- { X- sprintf(textline, "\ttst\tr0"); X- p2pass(textline); X- sprintf(textline, "\tjlt\tL%d", neg); X- p2pass(textline); X- sprintf(textline, "\tjgt\tL%d", pos); X- p2pass(textline); X- if(ptype != TYSHORT) X- { X- sprintf(textline, "\ttst\tr1"); X- p2pass(textline); X- sprintf(textline, "\tjeq\tL%d", zer); X- p2pass(textline); X- } X- sprintf(textline, "\tjbr\tL%d", pos); X- p2pass(textline); X- } X- else X- { X- sprintf(textline, "\ttstf\tr0"); X- p2pass(textline); X- sprintf(textline, "\tcfcc"); X- p2pass(textline); X- sprintf(textline, "\tjeq\tL%d", zer); X- p2pass(textline); X- sprintf(textline, "\tjlt\tL%d", neg); X- p2pass(textline); X- sprintf(textline, "\tjmp\tL%d", pos); X- p2pass(textline); X- } X- } X- X- #endif X- X- X- X- X char *memname(stg, mem) X int stg, mem; X { X--- 101,106 ---- X*************** X*** 256,262 **** X return(s); X } X X- X prlocvar(s, len) X char *s; X ftnint len; X--- 132,137 ---- X*************** X*** 265,272 **** X prskip(asmfile, len); X } X X- X- X prext(name, leng, init) X char *name; X ftnint leng; X--- 140,145 ---- X*************** X*** 278,303 **** X fprintf(asmfile, "\t.comm\t_%s,%ld.\n", name, leng); X } X X- X- X prendproc() X { X } X X- X- X prtail() X { X- #if FAMILY == SCJ X- sprintf(textline, "\t.globl\tcsv,cret"); X- p2pass(textline); X- #else X p2op(P2EOF); X- #endif X } X X- X- X prolog(ep, argvec) X struct entrypoint *ep; X struct addrblock *argvec; X--- 151,165 ---- X*************** X*** 323,342 **** X return; X if(profileflag) X proflab = newlabel(); X- #if FAMILY == SCJ X- sprintf(textline, "\tjsr\tr5,csv"); X- p2pass(textline); X- if(profileflag) X- { X- fprintf(asmfile, ".data\nL%d:\t_%s+1\n.bss\n", proflab, funcname); X- sprintf(textline, "\tmov\t$L%d,r0", proflab); X- p2pass(textline); X- sprintf(textline, "\tjsr\tpc,mcount"); X- p2pass(textline); X- } X- sprintf(textline, "\tsub\t$.F%d,sp", procno); X- p2pass(textline); X- #else X p2op(P2SAVE); X if(profileflag) { X p2op2(P2PROFIL, proflab); X--- 185,190 ---- X*************** X*** 343,349 **** X p2str(funcname); X } X p2op2(P2SETSTK, ( (((int) autoleng)+1) & ~01) ); X- #endif X X if(argvec == NULL) X addreg(argloc = 4); X--- 191,196 ---- X*************** X*** 399,431 **** X putgoto(ep->entrylabel); X } X X- X- X prentry(s) X char *s; X { X- #if FAMILY == SCJ X- sprintf(textline, "_%s:", s); X- p2pass(textline); X- #else X p2op(P2RLABEL); X putc('_', textfile); X p2str(s); X- #endif X } X X- X- X- X addreg(k) X int k; X { X- #if FAMILY == SCJ X- sprintf(textline, "\tmov\tr5,r4"); X- p2pass(textline); X- sprintf(textline, "\tadd\t$%d.,r4", k); X- p2pass(textline); X- #else X p2reg(ARGREG, P2SHORT); X p2reg(AUTOREG, P2SHORT); X p2op2(P2ICON, P2SHORT); X--- 246,262 ---- X*************** X*** 433,460 **** X p2op2(P2PLUS, P2SHORT); X p2op2(P2ASSIGN, P2SHORT); X putstmt(); X- #endif X } X X- X- X- X- X- prhead(fp) X- FILEP fp; X- { X- #if FAMILY==SCJ X- # if OUTPUT == BINARY X- p2triple(P2LBRACKET, ARGREG-1-highregvar, procno); X- p2word( (long) (BITSPERCHAR*autoleng) ); X- p2flush(); X- # else X- fprintf(fp, "[%02d\t%06ld\t%02d\t\n", procno, X- BITSPERCHAR*autoleng, ARGREG-1-highregvar); X- # endif X- #endif X- } X- X prdbginfo() X { X register char *s; X--- 264,271 ---- X*************** X*** 470,476 **** X return; X X /* X! *!Remove wierd symbol definition so f77 code may be overlayed. wfj 11/80 X if(procclass != CLBLOCK) X fprintf(asmfile, "~~%s = _%s\n", s, s); X * This code equiv's a tilde name to the external name, which is normally X--- 281,287 ---- X return; X X /* X! * Remove weird symbol definition so f77 code may be overlayed. wfj 11/80 X if(procclass != CLBLOCK) X fprintf(asmfile, "~~%s = _%s\n", s, s); X * This code equiv's a tilde name to the external name, which is normally X*** ./usr/src/usr.bin/f77/defines.old Wed Jan 30 23:39:34 2002 X--- ./usr/src/usr.bin/f77/defines Wed Jul 29 20:51:41 2026 X*************** X*** 1,39 **** X! #define INTERDATA 2 X! #define GCOS 3 X! #define PDP11 4 X! #define IBM 5 X! #define CMACH 6 X! #define VAX 7 X X- #define DMR 2 X- #define SCJ 3 X- X- #define BINARY 2 X- #define ASCII 3 X- X- #define PREFIX 2 X- #define POSTFIX 3 X- X- #ifndef FAMILY X- FAMILY NOT DEFINED !!! X- Family = FAMILY X- #endif X- X- #ifndef HERE X- HERE NOT DEFINED !!!! X- Here = HERE X- #endif X- X- #ifndef OUTPUT X- OUTPUT NOT DEFINED!!!! X- Output = OUTPUT X- #endif X- X- #ifndef POLISH X- POLISH NOT DEFINED !!! X- Polish = POLISH X- #endif X- X #define M(x) (1< X--- 1,5 ---- X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)misc.c 2.1 (2.11BSD) 2026/6/29"; X #endif X X #include X*************** X*** 131,142 **** X for(i=0; i>= 1 ; ++k) X- ; X- return(k); X- } X- #endif X- X frrpl() X { X struct rplblock *rp; X--- 394,399 ---- X*************** X*** 530,536 **** X X if( p = calloc(1, (unsigned) n) ) X return(p); X- X error("out of memory",0,0,FATAL); X /* NOTREACHED */ X } X--- 502,507 ---- X*** ./usr/src/usr.bin/f77/proc.c.old Wed Jan 30 23:39:38 2002 X--- ./usr/src/usr.bin/f77/proc.c Fri Jul 31 07:03:12 2026 X*************** X*** 1,3 **** X--- 1,5 ---- X+ /* "@(#)proc.c 1.1 (2.11BSD) 2026/6/29"; */ X+ X #include "defs" X #include "string_defs" X X*************** X*** 15,22 **** X procclass = CLMAIN; /* default */ X } X X- X- X /* end of procedure. generate variables, epilogs, and prologs */ X X endproc() X--- 17,22 ---- X*************** X*** 36,50 **** X dobss(); X prdbginfo(); X X- #if FAMILY == SCJ X- putbracket(); X- #endif X- X procinit(); /* clean up for next procedure */ X } X X- X- X /* End of declaration section of procedure. Allocate storage. */ X X enddcl() X--- 36,44 ---- X*************** X*** 58,64 **** X for(p = entries ; p ; p = p->nextp) X doentry(p); X } X! X /* ROUTINES CALLED WHEN ENCOUNTERING ENTRY POINTS */ X X /* Main program or Block data */ X--- 52,58 ---- X for(p = entries ; p ; p = p->nextp) X doentry(p); X } X! X /* ROUTINES CALLED WHEN ENCOUNTERING ENTRY POINTS */ X X /* Main program or Block data */ X*************** X*** 113,119 **** X return(p); X } X X- X entrypt(class, type, length, entry, args) X int class, type; X ftnint length; X--- 107,112 ---- X*************** X*** 164,170 **** X if(parstate >= INDATA) X doentry(p); X } X! X /* generate epilogs */ X X LOCAL epicode() X--- 157,163 ---- X if(parstate >= INDATA) X doentry(p); X } X! X /* generate epilogs */ X X LOCAL epicode() X*************** X*** 206,212 **** X } X } X X- X /* generate code to return value of type t */ X X LOCAL retval(t) X--- 199,204 ---- X*************** X*** 244,250 **** X goret(t); X } X X- X /* Allocate extra argument array if needed. Generate prologs. */ X X LOCAL procode() X--- 236,241 ---- X*************** X*** 252,283 **** X register struct entrypoint *p; X struct addrblock *argvec; X X- #if TARGET==GCOS X- argvec = autovar(lastargslot/SZADDR, TYADDR, NULL); X- #else X if(lastargslot>0 && nentry>1) X argvec = autovar(lastargslot/SZADDR, TYADDR, NULL); X else X argvec = NULL; X- #endif X X- X- #if TARGET == PDP11 X /* for the optimizer */ X if(fudgelabel) X putlabel(fudgelabel); X- #endif X X for(p = entries ; p ; p = p->nextp) X prolog(p, argvec); X X- #if FAMILY == SCJ X- putrbrack(procno); X- #endif X- X prendproc(); X } X! X /* X manipulate argument lists (allocate argument slot positions) X * keep track of return types and labels X--- 243,263 ---- X register struct entrypoint *p; X struct addrblock *argvec; X X if(lastargslot>0 && nentry>1) X argvec = autovar(lastargslot/SZADDR, TYADDR, NULL); X else X argvec = NULL; X X /* for the optimizer */ X if(fudgelabel) X putlabel(fudgelabel); X X for(p = entries ; p ; p = p->nextp) X prolog(p, argvec); X X prendproc(); X } X! X /* X manipulate argument lists (allocate argument slot positions) X * keep track of return types and labels X*************** X*** 371,378 **** X putlabel(ep->entrylabel); X } X X- X- X LOCAL nextarg(type) X int type; X { X--- 351,356 ---- X*************** X*** 381,387 **** X lastargslot += typesize[type]; X return(k); X } X! X /* generate variable references */ X X LOCAL dobss() X--- 359,365 ---- X lastargslot += typesize[type]; X return(k); X } X! X /* generate variable references */ X X LOCAL dobss() X*************** X*** 394,400 **** X struct extsym *mkext(); X char *memname(); X X! pruse(asmfile, USEBSS); X X for(p = hashtab ; pvarp) X--- 372,378 ---- X struct extsym *mkext(); X char *memname(); X X! fprintf(asmfile, "%s\n", USEBSS); X X for(p = hashtab ; pvarp) X*************** X*** 435,443 **** X } X } X X- X- X- X doext() X { X struct extsym *p; X--- 413,418 ---- X*************** X*** 446,454 **** X prext( varstr(XL, p->extname), p->maxleng, p->extinit); X } X X- X- X- X ftnint iarrlen(q) X register struct nameblock *q; X { X--- 421,426 ---- X*************** X*** 467,473 **** X else return(-1); X return(leng); X } X! X LOCAL docommon() X { X register struct extsym *p; X--- 439,445 ---- X else return(-1); X return(leng); X } X! X LOCAL docommon() X { X register struct extsym *p; X*************** X*** 509,518 **** X } X } X X- X- X- X- X LOCAL docomleng() X { X register struct extsym *p; X--- 481,486 ---- X*************** X*** 530,538 **** X } X } X X- X- X- X /* ROUTINES DEALING WITH AUTOMATIC AND TEMPORARY STORAGE */ X X frtemp(p) X--- 498,503 ---- X*************** X*** 541,549 **** X holdtemps = mkchain(p, holdtemps); X } X X- X- X- X /* allocate an automatic variable slot */ X X struct addrblock *autovar(nelt, t, lengp) X--- 506,511 ---- X*************** X*** 570,588 **** X q->vleng = ICON(leng); X q->vstg = STGAUTO; X q->ntempelt = nelt; X- #if TARGET==PDP11 || TARGET==VAX X /* stack grows downward */ X autoleng += nelt*leng; X q->memoffset = ICON( - autoleng ); X- #else X- q->memoffset = ICON( autoleng ); X- autoleng += nelt*leng; X- #endif X X return(q); X } X X- X struct addrblock *mktmpn(nelt, type, lengp) X int nelt; X register int type; X--- 532,544 ---- X*************** X*** 618,633 **** X return(q); X } X X! X! X! X! struct addrblock *mktemp(type, lengp) X int type; X expptr lengp; X { X return( mktmpn(1,type,lengp) ); X } X! X /* VARIOUS ROUTINES FOR PROCESSING DECLARATIONS */ X X struct extsym *comblock(len, s) X--- 574,586 ---- X return(q); X } X X! struct addrblock *mktmp(type, lengp) X int type; X expptr lengp; X { X return( mktmpn(1,type,lengp) ); X } X! X /* VARIOUS ROUTINES FOR PROCESSING DECLARATIONS */ X X struct extsym *comblock(len, s) X*************** X*** 653,659 **** X return( p ); X } X X- X incomm(c, v) X struct extsym *c; X struct nameblock *v; X--- 606,611 ---- X*************** X*** 700,709 **** X /*! added "or duplicate" to error message PLWard 10/80 */ X } X X- X- X- X- X lengtype(type, length) X register int type; X register int length; X--- 652,657 ---- X*************** X*** 757,766 **** X return(type); X } X X- X- X- X- X setintr(v) X register struct nameblock * v; X { X--- 705,710 ---- X*************** X*** 782,789 **** X error("unknown intrinsic function", v, 0, DCLERR); X } X X- X- X setext(v) X register struct nameblock * v; X { X--- 726,731 ---- X*************** X*** 797,805 **** X else if(v->vprocclass != PEXTERNAL) X error("invalid external declaration", v, 0, DCLERR); X } X- X- X- X X /* create dimensions block for array variable */ X X--- 739,744 ---- X*** ./usr/src/usr.bin/f77/expr.c.old Wed Jan 30 23:39:37 2002 X--- ./usr/src/usr.bin/f77/expr.c Fri Jul 31 06:56:43 2026 X*************** X*** 1,3 **** X--- 1,5 ---- X+ /* "@(#)expr.c 1.1 (2.11BSD) 2026/6/28"; */ X+ X #include "defs" X #include "string_defs" X X*************** X*** 14,20 **** X return(p); X } X X- X struct constblock *mklogcon(l) X register int l; X { X--- 16,21 ---- X*************** X*** 25,32 **** X return(p); X } X X- X- X struct constblock *mkintcon(l) X ftnint l; X { X--- 26,31 ---- X*************** X*** 41,48 **** X return(p); X } X X- X- X struct constblock *mkaddcon(l) X register int l; X { X--- 40,45 ---- X*************** X*** 53,60 **** X return(p); X } X X- X- X struct constblock *mkrealcon(t, d) X register int t; X double d; X--- 50,55 ---- X*************** X*** 66,76 **** X return(p); X } X X- X struct constblock *mkbitcon(shift, leng, s) X int shift; X int leng; X! char *s; X { X register struct constblock *p; X X--- 61,70 ---- X return(p); X } X X struct constblock *mkbitcon(shift, leng, s) X int shift; X int leng; X! register char *s; X { X register struct constblock *p; X X*************** X*** 82,91 **** X return(p); X } X X- X- X- X- X struct constblock *mkstrcon(l,v) X int l; X register char *v; X--- 76,81 ---- X*************** X*** 101,107 **** X return(p); X } X X- X struct constblock *mkcxcon(realp,imagp) X register expptr realp, imagp; X { X--- 91,96 ---- X*************** X*** 132,141 **** X return(p); X } X X- X struct errorblock *errnode() X { X! struct errorblock *p; X p = ALLOC(errorblock); X p->tag = TERROR; X p->vtype = TYERROR; X--- 121,130 ---- X return(p); X } X X struct errorblock *errnode() X { X! register struct errorblock *p; X! X p = ALLOC(errorblock); X p->tag = TERROR; X p->vtype = TYERROR; X*************** X*** 142,157 **** X return(p); X } X X- X- X- X- X expptr mkconv(t, p) X register int t; X register expptr p; X { X register expptr q; X! register int pt; X expptr opconv(); X X if(t==TYUNKNOWN || t==TYERROR) X--- 131,142 ---- X return(p); X } X X expptr mkconv(t, p) X register int t; X register expptr p; X { X register expptr q; X! int pt; X expptr opconv(); X X if(t==TYUNKNOWN || t==TYERROR) X*************** X*** 166,172 **** X consconv(t, &(q->xconst), p->vtype, &(p->xconst)); X frexpr(p); X } X- #if TARGET == PDP11 X else if(ISINT(t) && pt==TYCHAR) X { X q = mkexpr(OPBITAND, opconv(p,TYSHORT), ICON(255)); X--- 151,156 ---- X*************** X*** 173,179 **** X if(t == TYLONG) X q = opconv(q, TYLONG); X } X- #endif X else X q = opconv(p, t); X X--- 157,162 ---- X*************** X*** 182,189 **** X return(q); X } X X- X- X expptr opconv(p, t) X expptr p; X int t; X--- 165,170 ---- X*************** X*** 195,202 **** X return(q); X } X X- X- X struct exprblock *addrof(p) X expptr p; X { X--- 176,181 ---- X*************** X*** 203,210 **** X return( mkexpr(OPADDR, p, NULL) ); X } X X- X- X tagptr cpexpr(p) X register tagptr p; X { X--- 182,187 ---- X*************** X*** 275,281 **** X X return(e); X } X! X frexpr(p) X register tagptr p; X { X--- 252,258 ---- X X return(e); X } X! X frexpr(p) X register tagptr p; X { X*************** X*** 334,340 **** X X free(p); X } X! X /* fix up types in expression; replace subtrees and convert X names to address blocks */ X X--- 311,317 ---- X X free(p); X } X! X /* fix up types in expression; replace subtrees and convert X names to address blocks */ X X*************** X*** 375,384 **** X } X } X X- X- X- X- X /* special case tree transformations and cleanups of expression trees */ X X expptr fixexpr(p) X--- 352,357 ---- X*************** X*** 448,458 **** X if( ISCOMPLEX(ltype) || ISCOMPLEX(rtype) ) X break; X if( ONEOF(ltype, MSKADDR|MSKINT) && ONEOF(rtype, MSKADDR|MSKINT) X- #if FAMILY==SCJ X- && typesize[ltype]>=typesize[rtype] ) X- #else X && typesize[ltype]==typesize[rtype] ) X- #endif X break; X p->rightp = fixtype( mkconv(ptype, rp) ); X break; X--- 421,427 ---- X*************** X*** 535,541 **** X p->vtype = ptype; X return(p); X } X! X #if SZINT < SZLONG X /* X for efficient subscripting, replace long ints by shorts X--- 504,510 ---- X p->vtype = ptype; X return(p); X } X! X #if SZINT < SZLONG X /* X for efficient subscripting, replace long ints by shorts X*************** X*** 604,610 **** X return(p); X } X #endif X! X fixargs(doput, p0) X int doput; X struct listblock *p0; X--- 573,579 ---- X return(p); X } X #endif X! X fixargs(doput, p0) X int doput; X struct listblock *p0; X*************** X*** 643,649 **** X return(nargs); X } X X- X mkscalar(np) X register struct nameblock *np; X { X--- 612,617 ---- X*************** X*** 653,678 **** X vardcl(np); X ap = mkaddr(np); X X- #if TARGET == VAX X- /* on the VAX, prolog causes array arguments X- to point at the (0,...,0) element, except when X- subscript checking is on X- */ X- if( !checksubs && np->vstg==STGARG) X- { X- dp = np->vdim; X- frexpr(ap->memoffset); X- ap->memoffset = mkexpr(OPSTAR, ICON(typesize[np->vtype]), X- cpexpr(dp->baseoffset) ); X- } X- #endif X return(ap); X } X X- X- X- X- X expptr mkfunct(p) X register struct primblock * p; X { X--- 621,629 ---- X*************** X*** 766,773 **** X return( errnode() ); X } X X- X- X LOCAL struct exprblock *stfcall(np, actlist) X struct nameblock *np; X struct listblock *actlist; X--- 717,722 ---- X*************** X*** 810,816 **** X rp->rpltag = ap->tag; X } X else { X! rp->rplvp = mktemp(q->vtype, q->vleng); X rp->rplxp = fixtype( mkexpr(OPASSIGN, cpexpr(rp->rplvp), ap) ); X if( (rp->rpltag = rp->rplxp->tag) == TERROR) X error("disagreement of argument types in statement function call",0,0,ERR); X--- 759,765 ---- X rp->rpltag = ap->tag; X } X else { X! rp->rplvp = mktmp(q->vtype, q->vleng); X rp->rplxp = fixtype( mkexpr(OPASSIGN, cpexpr(rp->rplvp), ap) ); X if( (rp->rpltag = rp->rplxp->tag) == TERROR) X error("disagreement of argument types in statement function call",0,0,ERR); X*************** X*** 847,855 **** X return(q); X } X X- X- X- X struct addrblock *mklhs(p) X register struct primblock * p; X { X--- 796,801 ---- X*************** X*** 937,951 **** X if(nregvar>0 && regnamep[nregvar-1]==np) X { X --nregvar; X- #if FAMILY == DMR X putnreg(); X- #endif X } X } X X- X- X- X struct addrblock *memversion(np) X register struct nameblock *np; X { X--- 883,892 ---- X*************** X*** 972,980 **** X return(-1); X } X X- X- X- X enregister(np) X struct nameblock *np; X { X--- 913,918 ---- X*************** X*** 988,996 **** X regnamep[nregvar++] = np; X if(nregvar > highregvar) X highregvar = nregvar; X- #if FAMILY == DMR X putnreg(); X- #endif X return(YES); X } X else X--- 926,932 ---- X*************** X*** 997,1005 **** X return(NO); X } X X- X- X- X expptr suboffset(p) X register struct primblock *p; X { X--- 933,938 ---- X*************** X*** 1037,1048 **** X while( --n >= 0) X prod = mkexpr(OPPLUS, sub[n], X mkexpr(OPSTAR, prod, cpexpr(dimp->dims[n].dimsize)) ); X- #if TARGET == VAX X- if(checksubs || np->vstg!=STGARG) X- prod = mkexpr(OPMINUS, prod, cpexpr(dimp->baseoffset)); X- #else X prod = mkexpr(OPMINUS, prod, cpexpr(dimp->baseoffset)); X- #endif X if(checksubs) X prod = subcheck(np, prod); X if(np->vtype == TYCHAR) X--- 970,976 ---- X*************** X*** 1058,1066 **** X return(offp); X } X X- X- X- X expptr subcheck(np, p) X struct nameblock *np; X register expptr p; X--- 986,991 ---- X*************** X*** 1089,1095 **** X t = p; X } X else { X! checkvar = mktemp(p->vtype, NULL); X t = mkexpr(OPASSIGN, cpexpr(checkvar), p); X } X checkcond = mkexpr(OPLT, t, cpexpr(dimp->nelt) ); X--- 1014,1020 ---- X t = p; X } X else { X! checkvar = mktmp(p->vtype, NULL); X t = mkexpr(OPASSIGN, cpexpr(checkvar), p); X } X checkcond = mkexpr(OPLT, t, cpexpr(dimp->nelt) ); X*************** X*** 1112,1120 **** X return ( ICON(0) ); X } X X- X- X- X struct addrblock *mkaddr(p) X register struct nameblock *p; X { X--- 1037,1042 ---- X*************** X*** 1164,1172 **** X /* NOTREACHED */ X } X X- X- X- X mkarg(type, argno) X int type, argno; X { X--- 1086,1091 ---- X*************** X*** 1181,1189 **** X return(p); X } X X- X- X- X tagptr mkprim(v, args, lstr, rstr) X register union { struct paramblock; struct nameblock; } *v; X struct listblock *args; X--- 1100,1105 ---- X*************** X*** 1215,1222 **** X return(p); X } X X- X- X vardcl(v) X register struct nameblock *v; X { X--- 1131,1136 ---- X*************** X*** 1264,1272 **** X v->vdcldone = YES; X } X X- X- X- X impldcl(p) X register struct nameblock *p; X { X--- 1178,1183 ---- X*************** X*** 1302,1312 **** X c = tolower(c); X return(c - 'a'); X } X! X #define ICONEQ(z, c) (ISICON(z) && z->xconst.ci==c) X #define COMMUTE { e = lp; lp = rp; rp = e; } X X- X expptr mkexpr(opcode, lp, rp) X int opcode; X register expptr lp, rp; X--- 1213,1222 ---- X c = tolower(c); X return(c - 'a'); X } X! X #define ICONEQ(z, c) (ISICON(z) && z->xconst.ci==c) X #define COMMUTE { e = lp; lp = rp; rp = e; } X X expptr mkexpr(opcode, lp, rp) X int opcode; X register expptr lp, rp; X*************** X*** 1530,1536 **** X frexpr(rp); X return( errnode() ); X } X- X X cktype(op, lt, rt) X register int op, lt, rt; X--- 1440,1445 ---- X*************** X*** 1649,1664 **** X } X err1: return(TYERROR); X } X! X LOCAL expptr fold(e) X register struct exprblock *e; X { X struct constblock *p; X- #ifdef VERSION6 X- expptr lp, rp; X- #else X register expptr lp, rp; X- #endif X int etype, mtype, ltype, rtype, opcode; X int i, ll, lr; X char *q, *s; X--- 1558,1569 ---- X } X err1: return(TYERROR); X } X! X LOCAL expptr fold(e) X register struct exprblock *e; X { X struct constblock *p; X register expptr lp, rp; X int etype, mtype, ltype, rtype, opcode; X int i, ll, lr; X char *q, *s; X*************** X*** 1786,1793 **** X return(p); X } X X- X- X /* assign constant l = r , doing coercion */ X X consconv(lt, lv, rt, rv) X--- 1691,1696 ---- X*************** X*** 1839,1846 **** X } X } X X- X- X consnegop(p) X register struct constblock *p; X { X--- 1742,1747 ---- X*************** X*** 1864,1871 **** X } X } X X- X- X LOCAL conspower(powp, ap, n) X register union constant *powp; X struct constblock *ap; X--- 1765,1770 ---- X*************** X*** 1917,1927 **** X } X } X X- X- X /* do constant operation cp = a op b */ X X- X LOCAL consbinop(opcode, type, cp, ap, bp) X int opcode, type; X register union constant *ap, *bp, *cp; X--- 1816,1823 ---- X*************** X*** 2066,2074 **** X } X } X X- X- X- X conssgn(p) X register expptr p; X { X--- 1962,1967 ---- X*************** X*** 2098,2107 **** X } X /* NOTREACHED */ X } X! X char *powint[ ] = { "pow_ii", "pow_ri", "pow_di", "pow_ci", "pow_zi" }; X X- X LOCAL expptr mkpower(p) X register struct exprblock *p; X { X--- 1991,1999 ---- X } X /* NOTREACHED */ X } X! X char *powint[ ] = { "pow_ii", "pow_ri", "pow_di", "pow_ci", "pow_zi" }; X X LOCAL expptr mkpower(p) X register struct exprblock *p; X { X*************** X*** 2172,2185 **** X free(p); X return(q); X } X- X X- X /* Complex Division. Same code as in Runtime Library X */ X X struct dcomplex { double dreal, dimag; }; X- X X LOCAL zdiv(c, a, b) X register struct dcomplex *a, *b, *c; X--- 2064,2074 ---- X*** ./usr/src/usr.bin/f77/main.c.old Mon Feb 16 19:57:39 1987 X--- ./usr/src/usr.bin/f77/main.c Sun Aug 9 16:59:00 2026 X*************** X*** 1,9 **** X! char *xxxvers[] = "\nFORTRAN 77 PASS 1, VERSION 1.21, 20 APRIL 1979\n"; X X #include "defs" X #include "string_defs" X X- X main(argc, argv) X int argc; X char **argv; X--- 1,10 ---- X! /* X! * static char xxxvers[] = "f77 pass1 version 1.22 2026/6/29\n"; X! */ X X #include "defs" X #include "string_defs" X X main(argc, argv) X int argc; X char **argv; X*************** X*** 10,16 **** X { X char *s; X int k, retcode; X! FILEP opf(); X X #define DONE(c) { retcode = c; goto finis; } X X--- 11,17 ---- X { X char *s; X int k, retcode; X! FILE *opf(); X X #define DONE(c) { retcode = c; goto finis; } X X*************** X*** 71,92 **** X break; X X case 'I': X! if(*++s == '2') X tyint = TYSHORT; X! else if(*s == '4') X! { X! shortsubs = NO; X tyint = TYLONG; X- } X- else if(*s == 's') X- shortsubs = YES; X else X! error("invalid flag -I%c\n", *s,0,FATAL1); X! tylogical = tyint; X break; X X default: X! error("invalid flag %c\n", *s,0,FATAL1); X } X --argc; X ++argv; X--- 72,93 ---- X break; X X case 'I': X! if (*++s == '2') X tyint = TYSHORT; X! else if (*s == '4') X tyint = TYLONG; X else X! error("invalid flag -I%c", *s,0,FATAL1); X! /* X! * DON'T do this! Uncommenting the next line brings back, with use of -I4, X! * the breakage described in src/usr.bin/f77/BUG? and fixed in patch #500. X! * A caveat regarding the use of -I2 has been added to the f77 manpage. X! */ X! // tylogical = tyint; X break; X X default: X! error("invalid flag %c", *s,0,FATAL1); X } X --argc; X ++argv; X*************** X*** 99,105 **** X textfile = opf(argv[3]); X X initkey(); X! if(inilex( copys(argv[0]) )) X DONE(1); X fprintf(diagfile, "%s:\n", argv[0]); X fileinit(); X--- 100,106 ---- X textfile = opf(argv[3]); X X initkey(); X! if(inilex(strdup(argv[0]))) X DONE(1); X fprintf(diagfile, "%s:\n", argv[0]); X fileinit(); X*************** X*** 119,127 **** X doext(); X preven(ALIDOUBLE); X prtail(); X- #if FAMILY==SCJ X- puteof(); X- #endif X DONE(0); X X X--- 120,125 ---- X*************** X*** 130,137 **** X return(retcode); X } X X- X- X done(k) X int k; X { X--- 128,133 ---- X*************** X*** 145,155 **** X exit(k); X } X X! X! LOCAL FILEP opf(fn) X char *fn; X { X! FILEP fp; X if( fp = fopen(fn, "w") ) X return(fp); X X--- 141,150 ---- X exit(k); X } X X! LOCAL FILE *opf(fn) X char *fn; X { X! FILE *fp; X if( fp = fopen(fn, "w") ) X return(fp); X X*************** X*** 157,164 **** X /* NOTREACHED */ X } X X- X- X LOCAL clfiles() X { X clf(&textfile); X--- 152,157 ---- X*************** X*** 166,174 **** X clf(&initfile); X } X X- X clf(p) X! FILEP *p; X { X if(p!=NULL && *p!=NULL && *p!=stdout) X { X--- 159,166 ---- X clf(&initfile); X } X X clf(p) X! register FILE **p; X { X if(p!=NULL && *p!=NULL && *p!=stdout) X { X*************** X*** 178,181 **** X } X *p = NULL; X } X- X--- 170,172 ---- X*** ./usr/src/usr.bin/f77/lex.c.old Mon Feb 16 19:57:39 1987 X--- ./usr/src/usr.bin/f77/lex.c Mon Jun 29 16:55:41 2026 X*************** X*** 1,3 **** X--- 1,5 ---- X+ /* "@(#)lex.c 1.1 (2.11BSD) 2026/6/28"; */ X+ X #include "defs" X #include "string_defs" X #include "tokdefs" X*************** X*** 43,49 **** X struct inclfile X { X struct inclfile *inclnext; X! FILEP inclfp; X char *inclname; X int incllno; X char *incllinp; X--- 45,51 ---- X struct inclfile X { X struct inclfile *inclnext; X! FILE *inclfp; X char *inclname; X int incllno; X char *incllinp; X*************** X*** 96,102 **** X doinclude(name) X char *name; X { X! FILEP fp; X struct inclfile *t; X X if(inclp) X--- 98,104 ---- X doinclude(name) X char *name; X { X! FILE *fp; X struct inclfile *t; X X if(inclp) X*** ./usr/src/usr.bin/f77/error.c.old Sat Feb 8 19:06:29 2020 X--- ./usr/src/usr.bin/f77/error.c Mon Jul 13 06:05:29 2026 X*************** X*** 1,11 **** X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)error.c 2.0 (2.11BSD) 2020/2/8"; X #endif X X #include "defs" X #include "string_defs" X X- #ifdef C_OVERLAY X char efilname[] = "/usr/share/misc/f77_strings"; X int efil = -1; X X--- 1,10 ---- X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)error.c 2.0 (2.11BSD) 2026/7/12"; X #endif X X #include "defs" X #include "string_defs" X X char efilname[] = "/usr/share/misc/f77_strings"; X int efil = -1; X X*************** X*** 15,21 **** X register int type; X { X char buf[100]; X- long lseek(); X X if (efil < 0) { X efil = open(efilname, 0); X--- 14,19 ---- X*************** X*** 25,31 **** X exit(1); X } X } X! if (lseek(efil, (long) index, 0) < 0 || read(efil, buf, sizeof(buf)) <= 0) X goto oops; X switch (type) { X case WARN1: X--- 23,29 ---- X exit(1); X } X } X! if (lseek(efil, (off_t)index, 0) < 0 || read(efil, buf, sizeof(buf)) <= 0) X goto oops; X switch (type) { X case WARN1: X*************** X*** 65,134 **** X else X fprintf(diagfile,"Declaration error %s\n", buf); X return; X- X default: X fprintf(diagfile,"unrecognizable error switch\n"); X exit(1); X- /*NOTREACHED*/ X } X fprintf(diagfile,buf,t,u); X! fprintf(diagfile,"\n"); X } X- X- #else C_OVERLAY X- X- error(str,t,u,type) X- char *str, *t, *u; X- register int type; X- { X- switch (type) { X- case WARN1: X- case WARN: X- if(nowarnflag) X- return; X- fprintf(diagfile, "Warning on line %d of %s: ", lineno, infname); X- ++nwarn; X- break; X- X- case YYERR: X- case ERR2: X- case ERR1: X- case ERR: X- fprintf(diagfile, "Error on line %d of %s: ", lineno, infname); X- ++nerr; X- break; X- X- case FATAL1: X- case FATAL: X- if (str != NULL) { X- fprintf(diagfile, str, t, u); X- fprintf(diagfile, "\n"); X- } X- fprintf(diagfile,"f77 compiler error line %d of %s: ", lineno, infname); X- if(debugflag) X- abort(); X- done(3); X- exit(3); X- case EXECERR: X- fprintf(diagfile, "Error on line %d of %s: ", lineno, infname); X- fprintf(diagfile, "Execution error %s"); X- ++nerr; X- break; X- case DCLERR: X- if(t) X- fprintf(diagfile,"Declaration error for %s: %s\n", X- varstr(VL, (struct nameblock *)t->varname), str); X- else X- fprintf(diagfile,"Declaration error %s\n", str); X- return; X- X- default: X- fprintf(diagfile,"unrecognizable error switch\n"); X- exit(1); X- /*NOTREACHED*/ X- } X- fprintf(diagfile,str,t,u); X- fprintf(diagfile,"\n"); X- } X- X- #endif C_OVERLAY X--- 63,72 ---- X else X fprintf(diagfile,"Declaration error %s\n", buf); X return; X default: X fprintf(diagfile,"unrecognizable error switch\n"); X exit(1); X } X fprintf(diagfile,buf,t,u); X! fputc('\n', diagfile); X } X*** ./usr/src/usr.bin/f77/gram.head.old Thu Apr 30 18:30:06 1987 X--- ./usr/src/usr.bin/f77/gram.head Thu Aug 13 07:53:14 2026 X*************** X*** 1,12 **** X %{ X #include "defs" X #include "string_defs" X X- #ifdef C_OVERLAY X #define yyerror(x) {fprintf(diagfile, "Error on line %d of %s: %s\n", lineno, infname, x); nerr++;} X- #else X- #define yyerror(x) error(x, 0, 0, YYERR) X- #endif X X static int nstars; X static int ndim; X--- 1,12 ---- X+ /* X+ * static char sccsid[] = "@(#)gram.head 1.2 (2.11BSD) 2026/7/13"; X+ */ X+ X %{ X #include "defs" X #include "string_defs" X X #define yyerror(x) {fprintf(diagfile, "Error on line %d of %s: %s\n", lineno, infname, x); nerr++;} X X static int nstars; X static int ndim; X*************** X*** 18,23 **** X--- 18,24 ---- X static int thiswasbranch = NO; X extern ftnint yystno; X extern flag intonly; X+ static chainp datastack; X X ftnint convci(); X double convcd(); X*************** X*** 28,33 **** X--- 29,44 ---- X struct listblock *mklist(); X struct impldoblock *mkiodo(); X struct extsym *comblock(); X+ X+ static void X+ pop_datastack(Void) { X+ chainp d0 = datastack; X+ if (d0->datap) X+ curdtp = (chainp)d0->datap; X+ datastack = d0->nextp; X+ d0->nextp = 0; X+ frchain(&d0); X+ } X X %} X X*** ./usr/src/usr.bin/f77/put.c.old Wed Jan 30 23:39:38 2002 X--- ./usr/src/usr.bin/f77/put.c Wed Jul 29 20:43:36 2026 X*************** X*** 1,4 **** X--- 1,6 ---- X /* X+ * "@(#)put.c 1.1 (2.11BSD) 2026/6/28" X+ * X * INTERMEDIATE CODE GENERATION PROCEDURES COMMON TO BOTH X * JOHNSON AND RITCHIE FAMILIES OF SECOND PASSES X */ X*************** X*** 6,16 **** X #include "defs" X #include "string_defs" X X! #if FAMILY == SCJ X! # include "scjdefs" X! #else X! # include "dmrdefs" X! #endif X X /* X char *ops [ ] = X--- 8,14 ---- X #include "defs" X #include "string_defs" X X! #include "dmrdefs" X X /* X char *ops [ ] = X*************** X*** 42,52 **** X int types2 [ ] = X { X P2BAD, P2INT|P2PTR, P2SHORT, P2LONG, P2REAL, P2DREAL, X- #if TARGET == INTERDATA X- P2BAD, P2BAD, P2LONG, P2CHAR, P2INT, P2BAD X- #else X P2REAL, P2DREAL, P2LONG, P2CHAR, P2INT, P2BAD X- #endif X }; X X X--- 40,46 ---- X*************** X*** 55,61 **** X types2[TYLOGICAL] = types2[tylogical]; X } X X- X putex1(p) X expptr p; X { X--- 49,54 ---- X*************** X*** 64,73 **** X holdtemps = NULL; X } X X- X- X- X- X putassign(lp, rp) X expptr lp, rp; X { X--- 57,62 ---- X*************** X*** 74,82 **** X putx( fixexpr( mkexpr(OPASSIGN, lp, rp) )); X } X X- X- X- X puteq(lp, rp) X expptr lp, rp; X { X--- 63,68 ---- X*************** X*** 83,91 **** X putexpr( mkexpr(OPASSIGN, lp, rp) ); X } X X- X- X- X /* put code for a *= b */ X X putsteq(a, b) X--- 69,74 ---- X*************** X*** 94,103 **** X putx( fixexpr( mkexpr(OPSTAREQ, cpexpr(a), cpexpr(b)) )); X } X X- X- X- X- X struct addrblock *realpart(p) X register struct addrblock *p; X { X--- 77,82 ---- X*************** X*** 109,117 **** X return(q); X } X X- X- X- X struct addrblock *imagpart(p) X register struct addrblock *p; X { X--- 88,93 ---- X*************** X*** 128,134 **** X q = mkrealcon( ISINT(p->vtype) ? TYDREAL : p->vtype , 0.0); X return(q); X } X! X struct addrblock *putconst(p) X register struct constblock *p; X { X--- 104,110 ---- X q = mkrealcon( ISINT(p->vtype) ? TYDREAL : p->vtype , 0.0); X return(q); X } X! X struct addrblock *putconst(p) X register struct constblock *p; X { X*************** X*** 267,273 **** X frexpr(p); X return( q ); X } X! X /* X * put out a character string constant. begin every one on X * a long integer boundary, and pad with nulls X--- 243,249 ---- X frexpr(p); X return( q ); X } X! X /* X * put out a character string constant. begin every one on X * a long integer boundary, and pad with nulls X*************** X*** 278,284 **** X ftnint n; X { X int b[SZSHORT]; X! int i; X X i = 0; X while(--n >= 0) X--- 254,260 ---- X ftnint n; X { X int b[SZSHORT]; X! register int i; X X i = 0; X while(--n >= 0) X*** ./usr/src/usr.bin/f77/pdp11defs.old Mon Feb 16 19:57:39 1987 X--- ./usr/src/usr.bin/f77/pdp11defs Wed Jul 29 21:14:00 2026 X*************** X*** 1,16 **** X! #ifndef TARGET X! TARGET NOT DEFINED !!! X! #endif X! #if TARGET!=PDP11 X! Target= TARGET OUT OF RANGE!! X! #endif X! X! #ifndef FAMILY X! FAMILY NOT DEFINED!!! X! #endif X! #if FAMILY!=SCJ && FAMILY!=DMR X! Family = FAMILY OUT OF RANGE X! #endif X X #define TYLENG TYLONG X X--- 1,4 ---- X! /* "@(#)pdp11defs 1.1 (2.11BSD) 2026/6/28"; */ X X #define TYLENG TYLONG X X*** ./usr/src/usr.bin/f77/dmrdefs.old Thu Nov 12 23:46:44 1992 X--- ./usr/src/usr.bin/f77/dmrdefs Wed Jul 29 21:19:55 2026 X*************** X*** 1,3 **** X--- 1,5 ---- X+ /* "@(#)dmrdefs 1.1 (2.11BSD) 2026/6/28"; */ X+ X #define P2BAD -1 X #define P2NAME 20 X #define P2ICON 21 X*************** X*** 59,73 **** X X #define P2CHAR 1 X X! #if TARGET==PDP11 X! # define P2SHORT 0 X! # define P2INT 0 X! # define P2LONG 6 X! #else X! # define P2SHORT 0 X! # define P2INT 6 X! # define P2LONG 6 X! #endif X X #define P2REAL 2 X #define P2DREAL 3 X--- 61,69 ---- X X #define P2CHAR 1 X X! #define P2SHORT 0 X! #define P2INT 0 X! #define P2LONG 6 X X #define P2REAL 2 X #define P2DREAL 3 X*** ./usr/src/usr.bin/f77/exec.c.old Wed Jan 30 23:39:35 2002 X--- ./usr/src/usr.bin/f77/exec.c Fri Jul 31 06:53:58 2026 X*************** X*** 1,10 **** X #include "defs" X #include "string_defs" X X! /* Logical IF codes X! */ X X- X exif(p) X expptr p; X { X--- 1,10 ---- X+ /* "@(#)exec.c 1.1 (2.11BSD) 2026/6/28"; */ X+ X #include "defs" X #include "string_defs" X X! /* Logical IF codes */ X X exif(p) X expptr p; X { X*************** X*** 13,20 **** X putif(p, ctlstack->elselabel); X } X X- X- X exelif(p) X expptr p; X { X--- 13,18 ---- X*************** X*** 31,40 **** X else error("elseif out of place", 0,0,EXECERR); X } X X- X- X- X- X exelse() X { X if(ctlstack->ctltype==CTLIF) X--- 29,34 ---- X*************** X*** 49,55 **** X else error("else out of place", 0,0,EXECERR); X } X X- X exendif() X { X if(ctlstack->ctltype == CTLIF) X--- 43,48 ---- X*************** X*** 69,76 **** X error("endif out of place", 0,0,EXECERR); X } X X- X- X LOCAL pushctl(code) X int code; X { X--- 62,67 ---- X*************** X*** 84,90 **** X ++blklevel; X } X X- X LOCAL popctl() X { X if( ctlstack-- < ctls ) X--- 75,80 ---- X*************** X*** 92,99 **** X --blklevel; X } X X- X- X LOCAL poplab() X { X register struct labelblock *lp; X--- 82,87 ---- X*************** X*** 111,122 **** X lp->blklevel = blklevel; X } X } X- X X X- /* BRANCHING CODE X- */ X- X exgoto(lab) X struct labelblock *lab; X { X--- 99,107 ---- X lp->blklevel = blklevel; X } X } X X+ /* BRANCHING CODE */ X X exgoto(lab) X struct labelblock *lab; X { X*************** X*** 123,134 **** X putgoto(lab->labelno); X } X X- X- X- X- X- X- X exequals(lp, rp) X register struct primblock *lp; X register expptr rp; X--- 108,113 ---- X*************** X*** 154,161 **** X } X } X X- X- X mkstfunct(lp, rp) X struct primblock *lp; X expptr rp; X--- 133,138 ---- X*************** X*** 189,196 **** X } X } X X- X- X excall(name, args, nstars, labels) X struct hashentry *name; X struct listblock *args; X--- 166,171 ---- X*************** X*** 207,214 **** X else putexpr(p); X } X X- X- X exstop(stop, p) X int stop; X register expptr p; X--- 182,187 ---- X*************** X*** 249,255 **** X X putexpr( call1(TYSUBR, (stop ? "s_stop" : "s_paus"), p) ); X } X! X /* DO LOOP CODE */ X X #define DOINIT par[0] X--- 222,228 ---- X X putexpr( call1(TYSUBR, (stop ? "s_stop" : "s_paus"), p) ); X } X! X /* DO LOOP CODE */ X X #define DOINIT par[0] X*************** X*** 260,266 **** X #define POSSTEP 1 X #define NEGSTEP 2 X X- X exdo(range, spec) X int range; X chainp spec; X--- 233,238 ---- X*************** X*** 339,345 **** X if( ISCONST(DOLIMIT) ) X ctlstack->domax = mkconv(dotype, DOLIMIT); X else X! ctlstack->domax = mktemp(dotype, NULL); X X if( ISCONST(DOINCR) ) X { X--- 311,317 ---- X if( ISCONST(DOLIMIT) ) X ctlstack->domax = mkconv(dotype, DOLIMIT); X else X! ctlstack->domax = mktmp(dotype, NULL); X X if( ISCONST(DOINCR) ) X { X*************** X*** 350,356 **** X } X else X { X! ctlstack->dostep = mktemp(dotype, NULL); X ctlstack->dostepsign = VARSTEP; X ctlstack->doposlabel = newlabel(); X ctlstack->doneglabel = newlabel(); X--- 322,328 ---- X } X else X { X! ctlstack->dostep = mktmp(dotype, NULL); X ctlstack->dostepsign = VARSTEP; X ctlstack->doposlabel = newlabel(); X ctlstack->doneglabel = newlabel(); X*************** X*** 416,423 **** X frexpr(dovarp); X } X X- X- X enddo(here) X int here; X { X--- 388,393 ---- X*************** X*** 465,471 **** X } X } X } X! X exassign(vname, labelval) X struct nameblock *vname; X struct labelblock *labelval; X--- 435,441 ---- X } X } X } X! X exassign(vname, labelval) X struct nameblock *vname; X struct labelblock *labelval; X*************** X*** 511,518 **** X } X } X X- X- X LOCAL exar2(op, e, l1, l2) X int op; X expptr e; X--- 481,486 ---- X*************** X*** 522,528 **** X putgoto(l1); X } X X- X exreturn(p) X register expptr p; X { X--- 490,495 ---- X*************** X*** 542,549 **** X else X putgoto(proctype==TYSUBR ? ret0label : retlabel); X } X- X- X X exasgoto(labvar) X struct hashentry *labvar; X--- 509,514 ---- X*** ./usr/src/usr.bin/f77/gram.dcl.old Wed Jan 30 23:39:37 2002 X--- ./usr/src/usr.bin/f77/gram.dcl Thu Aug 13 07:53:14 2026 X*************** X*** 13,24 **** X | SPARAM in_dcl SLPAR paramlist SRPAR X ; X X! dcl: type name in_dcl lengspec dims X! { settype($2, $1, $4); X if(ndim>0) setbound($2,ndim,dims); X } X! | dcl SCOMMA name lengspec dims X! { settype($3, $1, $4); X if(ndim>0) setbound($3,ndim,dims); X } X ; X--- 13,24 ---- X | SPARAM in_dcl SLPAR paramlist SRPAR X ; X X! dcl: type name in_dcl dims lengspec X! { settype($2, $1, $5); X if(ndim>0) setbound($2,ndim,dims); X } X! | dcl SCOMMA name dims lengspec X! { settype($3, $1, $5); X if(ndim>0) setbound($3,ndim,dims); X } X ; X*************** X*** 128,134 **** X } X ; X X! datalist: datavarlist SSLASH vallist SSLASH X { ftnint junk; X if(nextdata(&junk,&junk) != NULL) X { X--- 128,134 ---- X } X ; X X! datalist: datainit datavarlist SSLASH datapop vallist SSLASH X { ftnint junk; X if(nextdata(&junk,&junk) != NULL) X { X*************** X*** 135,145 **** X error("too few initializers",0,0,ERR); X curdtp = NULL; X } X! frdata($1); X frrpl(); X } X ; X X vallist: { toomanyinit = NO; } val X | vallist SCOMMA val X ; X--- 135,151 ---- X error("too few initializers",0,0,ERR); X curdtp = NULL; X } X! frdata($2); X frrpl(); X } X ; X X+ datainit: /* nothing */ { frchain(&datastack); curdtp = 0; } X+ ; X+ X+ datapop: /* nothing */ { pop_datastack(); } X+ ; X+ X vallist: { toomanyinit = NO; } val X | vallist SCOMMA val X ; X*************** X*** 207,212 **** X--- 213,219 ---- X } X | SLPAR datavarlist SCOMMA dospec SRPAR X { chainp p; struct impldoblock *q; X+ pop_datastack(); X q = ALLOC(impldoblock); X q->tag = TIMPLDO; X q->varnp = $4->datap; X*************** X*** 221,227 **** X ; X X datavarlist: datavar X! { curdtp = $1; curdtelt = 0; } X | datavarlist SCOMMA datavar X { $$ = hookup($1, $3); } X ; X--- 228,238 ---- X ; X X datavarlist: datavar X! { if (!datastack) X! curdtp = 0; X! datastack = mkchain((char *)curdtp, datastack); X! curdtp = $1; curdtelt = 0; X! } X | datavarlist SCOMMA datavar X { $$ = hookup($1, $3); } X ; X*** ./usr/src/usr.bin/f77/gram.exec.old Mon Feb 16 19:57:38 1987 X--- ./usr/src/usr.bin/f77/gram.exec Mon Aug 10 15:22:58 2026 X*************** X*** 1,10 **** X exec: iffable X! | SDO end_spec intonlyon label intonlyoff dospec X { X if($4->labdefined) X error("no backward DO loops",0,0,EXECERR); X $4->blklevel = blklevel+1; X! exdo($4->labelno, $6); X } X | logif iffable X { exendif(); thiswasbranch = NO; } X--- 1,10 ---- X exec: iffable X! | SDO end_spec intonlyon label intonlyoff opt_comma dospec X { X if($4->labdefined) X error("no backward DO loops",0,0,EXECERR); X $4->blklevel = blklevel+1; X! exdo($4->labelno, $7); X } X | logif iffable X { exendif(); thiswasbranch = NO; } X*** ./usr/src/usr.bin/f77/gram.io.old Mon Feb 16 19:57:38 1987 X--- ./usr/src/usr.bin/f77/gram.io Wed Aug 19 21:34:55 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ /* X+ * static char sccsid[] = "@(#)gram.io 1.1 (2.11BSD) 2026/8/11"; X+ */ X+ X /* Input/Output Statements */ X X io: io1 X*************** X*** 74,80 **** X { endioctl(); } X ; X X! ctllist: ioclause SCOMMA ioclause X | ctllist SCOMMA ioclause X ; X X--- 78,84 ---- X { endioctl(); } X ; X X! ctllist: ioclause X | ctllist SCOMMA ioclause X ; X X*** ./usr/src/usr.bin/f77/init.c.old Sun Jun 12 18:24:58 1988 X--- ./usr/src/usr.bin/f77/init.c Sun Aug 9 16:48:58 2026 X*************** X*** 1,13 **** X #include "defs" X #include "string_defs" X X X! FILEP infile = { stdin }; X! FILEP diagfile = { stderr }; X X! FILEP textfile; X! FILEP asmfile; X! FILEP initfile; X long int headoffset; X X char token[200]; X--- 1,15 ---- X+ /* "@(#)init.c 1.1 (2.11BSD) 2026/6/28"; */ X+ X #include "defs" X #include "string_defs" X X X! FILE *infile = { stdin }; X! FILE *diagfile = { stderr }; X X! FILE *textfile; X! FILE *asmfile; X! FILE *initfile; X long int headoffset; X X char token[200]; X*************** X*** 22,28 **** X flag optimflag = NO; X flag shiftcase = YES; X flag undeftype = NO; X- flag shortsubs = YES; X flag onetripflag = NO; X flag checksubs = NO; X flag debugflag = NO; X--- 24,29 ---- X*************** X*** 39,46 **** X int implleng[26]; X int implstg[26]; X X! int tyint = TYLONG ; /* Changed from TYSHORT CFS 7/83 */ X! int tylogical = TYLONG; X ftnint typesize[NTYPES] X = { 1, SZADDR, SZSHORT, SZLONG, SZLONG, 2*SZLONG, X 2*SZLONG, 4*SZLONG, SZLONG, 1, 1, 1}; X--- 40,51 ---- X int implleng[26]; X int implstg[26]; X X! int tyint = TYLONG; /* Changed from TYSHORT CFS 7/83 */ X! /* X! * See patch #500 for the reason tylogical was changed from TYLONG to TYSHORT X! * and typesize[TYLOGICAL] remains SZLONG. X! */ X! int tylogical = TYSHORT; /* Changed from TYLONG sms 2026/7/30 */ X ftnint typesize[NTYPES] X = { 1, SZADDR, SZSHORT, SZLONG, SZLONG, 2*SZLONG, X 2*SZLONG, 4*SZLONG, SZLONG, 1, 1, 1}; X*************** X*** 110,117 **** X struct literal litpool[MAXLITERALS]; X int nliterals; X X- X- X fileinit() X { X procno = 0; X--- 115,120 ---- X*************** X*** 123,145 **** X ndata = 0; X } X X- X- X- X- X procinit() X { X register struct nameblock *p; X register struct dimblock *q; X register struct hashentry *hp; X! register struct labelblock *lp; X chainp cp; X int i; X X! pruse(asmfile, USECONST); X! #if FAMILY == SCJ X! p2pass(USETEXT); X! #endif X parstate = OUTSIDE; X headerdone = NO; X blklevel = 1; X--- 126,141 ---- X ndata = 0; X } X X procinit() X { X register struct nameblock *p; X register struct dimblock *q; X register struct hashentry *hp; X! struct labelblock *lp; X chainp cp; X int i; X X! fprintf(asmfile, "%s\n", USECONST); X parstate = OUTSIDE; X headerdone = NO; X blklevel = 1; X*************** X*** 163,173 **** X procleng = 0; X blklevel = 1; X lastargslot = 0; X! #if TARGET==PDP11 X! autoleng = 6; X! #else X! autoleng = 0; X! #endif X X for(lp = labeltab ; lp < labtabend ; ++lp) X lp->stateno = 0; X--- 159,165 ---- X procleng = 0; X blklevel = 1; X lastargslot = 0; X! autoleng = 6; X X for(lp = labeltab ; lp < labtabend ; ++lp) X lp->stateno = 0; X*************** X*** 223,237 **** X setlog(); X } X X- X- X- X setimpl(type, length, c1, c2) X int type; X ftnint length; X int c1, c2; X { X! int i; X char buff[100]; X X if(c1==0 || c2==0) X--- 215,226 ---- X setlog(); X } X X setimpl(type, length, c1, c2) X int type; X ftnint length; X int c1, c2; X { X! register int i; X char buff[100]; X X if(c1==0 || c2==0) X*** ./usr/src/usr.bin/f77/intr.c.old Thu Mar 5 17:19:26 1992 X--- ./usr/src/usr.bin/f77/intr.c Sat Aug 8 00:37:16 2026 X*************** X*** 1,3 **** X--- 1,5 ---- X+ /* "@(#)intr.c 1.1 (2.11BSD) 2026/7/4"; */ X+ X #include "defs" X #include "string_defs" X X*************** X*** 35,41 **** X X #define BITFUNC X X- X union X { X int ijunk; X--- 37,42 ---- X*************** X*** 190,197 **** X "llt", { INTRSPEC, TYLOGICAL, 79}, X X #ifdef BITFUNC X! X! "igetbt", { INTRGEN,2, 81}, X "iand", { INTRGEN, 2, 83}, X "ieor", { INTRGEN, 2, 85}, X "inot", { INTRGEN, 2, 87}, X--- 191,197 ---- X "llt", { INTRSPEC, TYLOGICAL, 79}, X X #ifdef BITFUNC X! "igetbt", { INTRGEN, 2, 81}, X "iand", { INTRGEN, 2, 83}, X "ieor", { INTRGEN, 2, 85}, X "inot", { INTRGEN, 2, 87}, X*************** X*** 198,209 **** X "ior", { INTRGEN, 2, 89}, X "ishft", { INTRGEN, 2, 91}, X "iputbt", { INTRGEN, 2, 93}, X- X #endif X X "" }; X- X X LOCAL struct specblock X { X char atype; X--- 198,222 ---- X "ior", { INTRGEN, 2, 89}, X "ishft", { INTRGEN, 2, 91}, X "iputbt", { INTRGEN, 2, 93}, X #endif X X "" }; X X+ /* X+ * Read carefully the block of comments at the beginning of the file! X+ * X+ * DO NOT remove/reorder entries in spectab[] without updating intrtab[] X+ * X+ * Entries without an entry in the intrno comment column have no matching X+ * entry in intrtab[]. The comments say the scan starts at f2 for f3 entries. X+ * X+ * NOTE: rtype='TYSHORT' entry must preceed rtype='TYLONG' entry in order for X+ X+ * if (tyint==TYLONG && sp->rtype==TYSHORT) X+ * ++sp; X+ * X+ * in intrcall() to work. X+ */ X LOCAL struct specblock X { X char atype; X*************** X*** 212,356 **** X char spxname[XL]; X char othername; /* index into callbyvalue table */ X } spectab[ ] = X! { X! { TYREAL,TYREAL,1,"r_int" }, X! { TYDREAL,TYDREAL,1,"d_int" }, X X! { TYREAL,TYREAL,1,"r_nint" }, X! { TYDREAL,TYDREAL,1,"d_nint" }, X X! { TYREAL,TYSHORT,1,"h_nint" }, X { TYREAL,TYLONG,1,"i_nint" }, X X! { TYDREAL,TYSHORT,1,"h_dnnt" }, X { TYDREAL,TYLONG,1,"i_dnnt" }, X X! { TYREAL,TYREAL,1,"r_abs" }, X! { TYSHORT,TYSHORT,1,"h_abs" }, X { TYLONG,TYLONG,1,"i_abs" }, X! { TYDREAL,TYDREAL,1,"d_abs" }, X! { TYCOMPLEX,TYREAL,1,"c_abs" }, X! { TYDCOMPLEX,TYDREAL,1,"z_abs" }, X X! { TYSHORT,TYSHORT,2,"h_mod" }, X { TYLONG,TYLONG,2,"i_mod" }, X! { TYREAL,TYREAL,2,"r_mod" }, X! { TYDREAL,TYDREAL,2,"d_mod" }, X X! { TYREAL,TYREAL,2,"r_sign" }, X! { TYSHORT,TYSHORT,2,"h_sign" }, X { TYLONG,TYLONG,2,"i_sign" }, X! { TYDREAL,TYDREAL,2,"d_sign" }, X X! { TYREAL,TYREAL,2,"r_dim" }, X! { TYSHORT,TYSHORT,2,"h_dim" }, X { TYLONG,TYLONG,2,"i_dim" }, X! { TYDREAL,TYDREAL,2,"d_dim" }, X X! { TYREAL,TYDREAL,2,"d_prod" }, X X! { TYCHAR,TYSHORT,1,"h_len" }, X { TYCHAR,TYLONG,1,"i_len" }, X X! { TYCHAR,TYSHORT,2,"h_indx" }, X { TYCHAR,TYLONG,2,"i_indx" }, X X! { TYCOMPLEX,TYREAL,1,"r_imag" }, X! { TYDCOMPLEX,TYDREAL,1,"d_imag" }, X! { TYCOMPLEX,TYCOMPLEX,1,"r_cnjg" }, X! { TYDCOMPLEX,TYDCOMPLEX,1,"d_cnjg" }, X X! { TYREAL,TYREAL,1,"r_sqrt", 1 }, X! { TYDREAL,TYDREAL,1,"d_sqrt", 1 }, X! { TYCOMPLEX,TYCOMPLEX,1,"c_sqrt" }, X! { TYDCOMPLEX,TYDCOMPLEX,1,"z_sqrt" }, X X! { TYREAL,TYREAL,1,"r_exp", 2 }, X! { TYDREAL,TYDREAL,1,"d_exp", 2 }, X! { TYCOMPLEX,TYCOMPLEX,1,"c_exp" }, X! { TYDCOMPLEX,TYDCOMPLEX,1,"z_exp" }, X X! { TYREAL,TYREAL,1,"r_log", 3 }, X! { TYDREAL,TYDREAL,1,"d_log", 3 }, X! { TYCOMPLEX,TYCOMPLEX,1,"c_log" }, X! { TYDCOMPLEX,TYDCOMPLEX,1,"z_log" }, X X! { TYREAL,TYREAL,1,"r_lg10" }, X! { TYDREAL,TYDREAL,1,"d_lg10" }, X X! { TYREAL,TYREAL,1,"r_sin", 4 }, X! { TYDREAL,TYDREAL,1,"d_sin", 4 }, X! { TYCOMPLEX,TYCOMPLEX,1,"c_sin" }, X! { TYDCOMPLEX,TYDCOMPLEX,1,"z_sin" }, X X! { TYREAL,TYREAL,1,"r_cos", 5 }, X! { TYDREAL,TYDREAL,1,"d_cos", 5 }, X! { TYCOMPLEX,TYCOMPLEX,1,"c_cos" }, X! { TYDCOMPLEX,TYDCOMPLEX,1,"z_cos" }, X X! { TYREAL,TYREAL,1,"r_tan", 6 }, X! { TYDREAL,TYDREAL,1,"d_tan", 6 }, X X! { TYREAL,TYREAL,1,"r_asin", 7 }, X! { TYDREAL,TYDREAL,1,"d_asin", 7 }, X X! { TYREAL,TYREAL,1,"r_acos", 8 }, X! { TYDREAL,TYDREAL,1,"d_acos", 8 }, X X! { TYREAL,TYREAL,1,"r_atan", 9 }, X! { TYDREAL,TYDREAL,1,"d_atan", 9 }, X X! { TYREAL,TYREAL,2,"r_atn2", 10 }, X! { TYDREAL,TYDREAL,2,"d_atn2", 10 }, X X! { TYREAL,TYREAL,1,"r_sinh", 11 }, X! { TYDREAL,TYDREAL,1,"d_sinh", 11 }, X X! { TYREAL,TYREAL,1,"r_cosh", 12 }, X! { TYDREAL,TYDREAL,1,"d_cosh", 12 }, X X! { TYREAL,TYREAL,1,"r_tanh", 13 }, X! { TYDREAL,TYDREAL,1,"d_tanh", 13 }, X X! { TYCHAR,TYLOGICAL,2,"hl_ge" }, X { TYCHAR,TYLOGICAL,2,"l_ge" }, X X! { TYCHAR,TYLOGICAL,2,"hl_gt" }, X { TYCHAR,TYLOGICAL,2,"l_gt" }, X X! { TYCHAR,TYLOGICAL,2,"hl_le" }, X { TYCHAR,TYLOGICAL,2,"l_le" }, X X! { TYCHAR,TYLOGICAL,2,"hl_lt" }, X { TYCHAR,TYLOGICAL,2,"l_lt" } X- X #ifdef BITFUNC X , X! X! { TYSHORT,TYSHORT,3,"h_getbit" }, X { TYLONG,TYLONG,3,"i_getbit" }, X! { TYSHORT,TYSHORT,2,"h_iand" }, X { TYLONG,TYLONG,2,"i_iand" }, X! { TYSHORT,TYSHORT,2,"h_ieor" }, X { TYLONG,TYLONG,2,"i_ieor" }, X! { TYSHORT,TYSHORT,1,"h_not" }, X { TYLONG,TYLONG,1,"i_not" }, X! { TYSHORT,TYSHORT,2,"h_ior" }, X { TYLONG,TYLONG,2,"i_ior" }, X! { TYSHORT,TYSHORT,2,"h_ishft" }, X { TYLONG,TYLONG,2,"i_ishft" }, X- { TYSHORT,TYSHORT,4,"h_putbit" }, X- { TYLONG,TYLONG,4,"i_putbit" } X X #endif X- X } ; X X- X- X- X- X- X char callbyvalue[ ][XL] = X { X "sqrt", X--- 225,369 ---- X char spxname[XL]; X char othername; /* index into callbyvalue table */ X } spectab[ ] = X! { /* intrno */ X! { TYREAL,TYREAL,1,"r_int" }, /* 0 */ X X! { TYDREAL,TYDREAL,1,"d_int" }, /* 1 */ X X! { TYREAL,TYREAL,1,"r_nint" }, /* 2 */ X! X! { TYDREAL,TYDREAL,1,"d_nint" }, /* 3 */ X! X! { TYREAL,TYSHORT,1,"h_nint" }, /* 4 */ X { TYREAL,TYLONG,1,"i_nint" }, X X! { TYDREAL,TYSHORT,1,"h_dnnt" }, /* 6 */ X { TYDREAL,TYLONG,1,"i_dnnt" }, X X! { TYREAL,TYREAL,1,"r_abs" }, /* 8 */ X! { TYSHORT,TYSHORT,1,"h_abs" }, /* 9 */ X { TYLONG,TYLONG,1,"i_abs" }, X! { TYDREAL,TYDREAL,1,"d_abs" }, /* 11 */ X! { TYCOMPLEX,TYREAL,1,"c_abs" }, /* 12 */ X! { TYDCOMPLEX,TYDREAL,1,"z_abs" }, /* 13 */ X X! { TYSHORT,TYSHORT,2,"h_mod" }, /* 14 */ X { TYLONG,TYLONG,2,"i_mod" }, X! { TYREAL,TYREAL,2,"r_mod" }, /* 16 */ X! { TYDREAL,TYDREAL,2,"d_mod" }, /* 17 */ X X! { TYREAL,TYREAL,2,"r_sign" }, /* 18 */ X! { TYSHORT,TYSHORT,2,"h_sign" }, /* 19 */ X { TYLONG,TYLONG,2,"i_sign" }, X! { TYDREAL,TYDREAL,2,"d_sign" }, /* 21 */ X X! { TYREAL,TYREAL,2,"r_dim" }, /* 22 */ X! { TYSHORT,TYSHORT,2,"h_dim" }, /* 23 */ X { TYLONG,TYLONG,2,"i_dim" }, X! { TYDREAL,TYDREAL,2,"d_dim" }, /* 25 */ X X! { TYREAL,TYDREAL,2,"d_prod" }, /* 26 */ X X! { TYCHAR,TYSHORT,1,"h_len" }, /* 27 */ X { TYCHAR,TYLONG,1,"i_len" }, X X! { TYCHAR,TYSHORT,2,"h_indx" }, /* 29 */ X { TYCHAR,TYLONG,2,"i_indx" }, X X! { TYCOMPLEX,TYREAL,1,"r_imag" }, /* 31 */ X! { TYDCOMPLEX,TYDREAL,1,"d_imag" }, /* 32 */ X X! { TYCOMPLEX,TYCOMPLEX,1,"r_cnjg" }, /* 33 */ X! { TYDCOMPLEX,TYDCOMPLEX,1,"d_cnjg" }, /* 34 */ X X! { TYREAL,TYREAL,1,"r_sqrt", 1 }, /* 35 */ X! { TYDREAL,TYDREAL,1,"d_sqrt", 1 }, /* 36 */ X! { TYCOMPLEX,TYCOMPLEX,1,"c_sqrt" }, /* 37 */ X! { TYDCOMPLEX,TYDCOMPLEX,1,"z_sqrt" }, /* 38 */ X X! { TYREAL,TYREAL,1,"r_exp", 2 }, /* 39 */ X! { TYDREAL,TYDREAL,1,"d_exp", 2 }, /* 40 */ X! { TYCOMPLEX,TYCOMPLEX,1,"c_exp" }, /* 41 */ X! { TYDCOMPLEX,TYDCOMPLEX,1,"z_exp" }, /* 42 */ X X! { TYREAL,TYREAL,1,"r_log", 3 }, /* 43 */ X! { TYDREAL,TYDREAL,1,"d_log", 3 }, /* 44 */ X! { TYCOMPLEX,TYCOMPLEX,1,"c_log" }, /* 45 */ X! { TYDCOMPLEX,TYDCOMPLEX,1,"z_log" }, /* 46 */ X X! { TYREAL,TYREAL,1,"r_lg10" }, /* 47 */ X! { TYDREAL,TYDREAL,1,"d_lg10" }, /* 48 */ X X! { TYREAL,TYREAL,1,"r_sin", 4 }, /* 49 */ X! { TYDREAL,TYDREAL,1,"d_sin", 4 }, /* 50 */ X! { TYCOMPLEX,TYCOMPLEX,1,"c_sin" }, /* 51 */ X! { TYDCOMPLEX,TYDCOMPLEX,1,"z_sin" }, /* 52 */ X X! { TYREAL,TYREAL,1,"r_cos", 5 }, /* 53 */ X! { TYDREAL,TYDREAL,1,"d_cos", 5 }, /* 54 */ X! { TYCOMPLEX,TYCOMPLEX,1,"c_cos" }, /* 55 */ X! { TYDCOMPLEX,TYDCOMPLEX,1,"z_cos" }, /* 56 */ X X! { TYREAL,TYREAL,1,"r_tan", 6 }, /* 57 */ X! { TYDREAL,TYDREAL,1,"d_tan", 6 }, /* 58 */ X X! { TYREAL,TYREAL,1,"r_asin", 7 }, /* 59 */ X! { TYDREAL,TYDREAL,1,"d_asin", 7 }, /* 60 */ X X! { TYREAL,TYREAL,1,"r_acos", 8 }, /* 61 */ X! { TYDREAL,TYDREAL,1,"d_acos", 8 }, /* 62 */ X X! { TYREAL,TYREAL,1,"r_atan", 9 }, /* 63 */ X! { TYDREAL,TYDREAL,1,"d_atan", 9 }, /* 64 */ X X! { TYREAL,TYREAL,2,"r_atn2", 10 }, /* 65 */ X! { TYDREAL,TYDREAL,2,"d_atn2", 10 }, /* 66 */ X X! { TYREAL,TYREAL,1,"r_sinh", 11 }, /* 67 */ X! { TYDREAL,TYDREAL,1,"d_sinh", 11 }, /* 68 */ X X! { TYREAL,TYREAL,1,"r_cosh", 12 }, /* 69 */ X! { TYDREAL,TYDREAL,1,"d_cosh", 12 }, /* 70 */ X X! { TYREAL,TYREAL,1,"r_tanh", 13 }, /* 71 */ X! { TYDREAL,TYDREAL,1,"d_tanh", 13 }, /* 72 */ X! X! { TYCHAR,TYLOGICAL,2,"hl_ge" }, /* 73 */ X { TYCHAR,TYLOGICAL,2,"l_ge" }, X X! { TYCHAR,TYLOGICAL,2,"hl_gt" }, /* 75 */ X { TYCHAR,TYLOGICAL,2,"l_gt" }, X X! { TYCHAR,TYLOGICAL,2,"hl_le" }, /* 77 */ X { TYCHAR,TYLOGICAL,2,"l_le" }, X X! { TYCHAR,TYLOGICAL,2,"hl_lt" }, /* 79 */ X { TYCHAR,TYLOGICAL,2,"l_lt" } X #ifdef BITFUNC X , X! { TYSHORT,TYSHORT,3,"h_getbit" }, /* 81 */ X { TYLONG,TYLONG,3,"i_getbit" }, X! X! { TYSHORT,TYSHORT,2,"h_iand" }, /* 83 */ X { TYLONG,TYLONG,2,"i_iand" }, X! X! { TYSHORT,TYSHORT,2,"h_ieor" }, /* 85 */ X { TYLONG,TYLONG,2,"i_ieor" }, X! X! { TYSHORT,TYSHORT,1,"h_not" }, /* 87 */ X { TYLONG,TYLONG,1,"i_not" }, X! X! { TYSHORT,TYSHORT,2,"h_ior" }, /* 89 */ X { TYLONG,TYLONG,2,"i_ior" }, X! X! { TYSHORT,TYSHORT,2,"h_ishft" }, /* 91 */ X { TYLONG,TYLONG,2,"i_ishft" }, X X+ { TYSHORT,TYSHORT,4,"h_putbit" }, /* 93 */ X+ { TYLONG,TYLONG,4,"i_putbit" } X #endif X } ; X X char callbyvalue[ ][XL] = X { X "sqrt", X*************** X*** 367,373 **** X "cosh", X "tanh" X }; X! X struct exprblock *intrcall(np, argsp, nargs) X struct nameblock *np; X struct listblock *argsp; X--- 380,386 ---- X "cosh", X "tanh" X }; X! X struct exprblock *intrcall(np, argsp, nargs) X struct nameblock *np; X struct listblock *argsp; X*************** X*** 447,453 **** X--- 460,470 ---- X sp = spectab + packed.bits.f3; X for(i=0; iatype == mtype) X+ { X+ if (tyint==TYLONG && sp->rtype==TYSHORT) X+ sp++; X goto specfunct; X+ } X else X ++sp; X goto badtype; X*************** X*** 514,522 **** X return( errnode() ); X } X X- X- X- X intrfunct(s) X char s[VL]; X { X--- 531,536 ---- X*************** X*** 541,550 **** X return(0); X } X X- X- X- X- X struct addrblock *intraddr(np) X struct nameblock *np; X { X--- 555,560 ---- X*************** X*** 578,591 **** X varstr(VL,np->varname),0,ERR1); X return( errnode() ); X } X! error("intraddr: impossible f1=%d\n", packed.bits.f1,0,FATAL1); X /* NOTREACHED */ X } X X- X- X- X- X struct exprblock *inline(fno, type, args) X int fno; X int type; X--- 588,597 ---- X varstr(VL,np->varname),0,ERR1); X return( errnode() ); X } X! error("intraddr: impossible f1=%d", packed.bits.f1,0,FATAL1); X /* NOTREACHED */ X } X X struct exprblock *inline(fno, type, args) X int fno; X int type; X*************** X*** 605,611 **** X q = NULL; X } X else X! t = mktemp(type); X t1 = mkexpr(OPQUEST, mkexpr(OPLE, mkconv(type,ICON(0)), cpexpr(t)), X mkexpr(OPCOLON, cpexpr(t), X mkexpr(OPNEG, cpexpr(t), NULL) )); X--- 611,617 ---- X q = NULL; X } X else X! t = mktmp(type); X t1 = mkexpr(OPQUEST, mkexpr(OPLE, mkconv(type,ICON(0)), cpexpr(t)), X mkexpr(OPCOLON, cpexpr(t), X mkexpr(OPNEG, cpexpr(t), NULL) )); X*** ./usr/src/usr.bin/f77/putdmr.c.old Sat Feb 8 11:35:28 2020 X--- ./usr/src/usr.bin/f77/putdmr.c Tue Aug 11 14:26:50 2026 X*************** X*** 1,5 **** X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)putdmr.c 2.0 (2.11BSD) 2020/2/8"; X #endif X X /* INTERMEDIATE CODE GENERATION FOR D. M. RITCHIE C COMPILERS */ X--- 1,5 ---- X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)putdmr.c 2.1 (2.11BSD) 2026/7/29"; X #endif X X /* INTERMEDIATE CODE GENERATION FOR D. M. RITCHIE C COMPILERS */ X*************** X*** 8,17 **** X #include "string_defs" X #include "dmrdefs" X X- #if FAMILY != DMR X- WRONG put FILE !!!! X- #endif X- X extern int ops2[]; X extern int types2[]; X X--- 8,13 ---- X*************** X*** 40,50 **** X /* end 11/12/92 change */ X X headerdone = YES; X- #if TARGET == PDP11 X /* fake jump to start the optimizer */ X if(class != CLBLOCK) X putgoto( fudgelabel = newlabel() ); X- #endif X } X } X X--- 36,44 ---- X*************** X*** 160,166 **** X p2i(0); X putlabel(skiplabel); X } X! X putx(p) X register expptr p; X { X--- 154,160 ---- X p2i(0); X putlabel(skiplabel); X } X! X putx(p) X register expptr p; X { X*************** X*** 412,418 **** X lp = p->leftp; X if(lp->tag != TADDR) X { X! tp = mktemp(lp->vtype, lp->vleng); X putx( mkexpr(OPASSIGN, cpexpr(tp), lp) ); X ncomma = 1; X lp = tp; X--- 406,412 ---- X lp = p->leftp; X if(lp->tag != TADDR) X { X! tp = mktmp(lp->vtype, lp->vleng); X putx( mkexpr(OPASSIGN, cpexpr(tp), lp) ); X ncomma = 1; X lp = tp; X*************** X*** 445,451 **** X frexpr(p->vleng); X free(p); X } X! X putforce(t, p) X int t; X expptr p; X--- 439,445 ---- X frexpr(p->vleng); X free(p); X } X! X putforce(t, p) X int t; X expptr p; X*************** X*** 469,475 **** X error("putpower: bad call",0,0,FATAL); X base = p->leftp; X type = base->vtype; X! t1 = mktemp(type, NULL); X t2 = NULL; X ncomma = 1; X putassign(cpexpr(t1), cpexpr(base) ); X--- 463,469 ---- X error("putpower: bad call",0,0,FATAL); X base = p->leftp; X type = base->vtype; X! t1 = mktmp(type, NULL); X t2 = NULL; X ncomma = 1; X putassign(cpexpr(t1), cpexpr(base) ); X*************** X*** 484,490 **** X putx( mkexpr(OPSTAR, cpexpr(t1), cpexpr(t1)) ); X else X { X! t2 = mktemp(type, NULL); X ++ncomma; X putassign(cpexpr(t2), cpexpr(t1)); X X--- 478,484 ---- X putx( mkexpr(OPSTAR, cpexpr(t1), cpexpr(t1)) ); X else X { X! t2 = mktmp(type, NULL); X ++ncomma; X putassign(cpexpr(t2), cpexpr(t1)); X X*************** X*** 514,520 **** X { X register struct addrblock *t; X X! t = mktemp(TYDREAL, NULL); X ++*ncommap; X putassign(cpexpr(t), p); X return(t); X--- 508,514 ---- X { X register struct addrblock *t; X X! t = mktmp(TYDREAL, NULL); X ++*ncommap; X putassign(cpexpr(t), p); X return(t); X*************** X*** 575,581 **** X if( ! addressable(p) ) X { X ++*ncommap; X! resp = mktemp(tyint, NULL); X putassign( cpexpr(resp), p->memoffset ); X p->memoffset = resp; X } X--- 569,575 ---- X if( ! addressable(p) ) X { X ++*ncommap; X! resp = mktmp(tyint, NULL); X putassign( cpexpr(resp), p->memoffset ); X p->memoffset = resp; X } X*************** X*** 585,591 **** X if( ISCOMPLEX(p->vtype) ) X break; X ++*ncommap; X! resp = mktemp(TYDREAL, NO); X putassign( cpexpr(resp), p); X return(resp); X X--- 579,585 ---- X if( ISCOMPLEX(p->vtype) ) X break; X ++*ncommap; X! resp = mktmp(TYDREAL, NO); X putassign( cpexpr(resp), p); X return(resp); X X*************** X*** 604,610 **** X ++*ncommap; X return( putcxeq(p) ); X } X! resp = mktemp(p->vtype, NULL); X if(lp = putcx1(p->leftp, ncommap) ) X ltype = lp->vtype; X if(rp = putcx1(p->rightp, ncommap) ) X--- 598,604 ---- X ++*ncommap; X return( putcxeq(p) ); X } X! resp = mktmp(p->vtype, NULL); X if(lp = putcx1(p->leftp, ncommap) ) X ltype = lp->vtype; X if(rp = putcx1(p->rightp, ncommap) ) X*************** X*** 723,735 **** X free(rp); X free(p); X } X! X LOCAL struct addrblock *putch1(p, ncommap) X register expptr p; X int * ncommap; X { X register struct addrblock *t; X- struct addrblock *mktemp(), *putconst(); X X switch(p->tag) X { X--- 717,728 ---- X free(rp); X free(p); X } X! X LOCAL struct addrblock *putch1(p, ncommap) X register expptr p; X int * ncommap; X { X register struct addrblock *t; X X switch(p->tag) X { X*************** X*** 750,756 **** X break; X X case OPCONCAT: X! t = mktemp(TYCHAR, cpexpr(p->vleng) ); X putcat( cpexpr(t), p ); X break; X X--- 743,749 ---- X break; X X case OPCONCAT: X! t = mktmp(TYCHAR, cpexpr(p->vleng) ); X putcat( cpexpr(t), p ); X break; X X*************** X*** 758,764 **** X if(!ISICON(p->vleng) || p->vleng->xconst.ci!=1 X || ! INT(p->leftp->vtype) ) X error("putch1: bad character conversion",0,0,FATAL); X! t = mktemp(TYCHAR, ICON(1) ); X putop( mkexpr(OPASSIGN, cpexpr(t), p) ); X break; X default: X--- 751,757 ---- X if(!ISICON(p->vleng) || p->vleng->xconst.ci!=1 X || ! INT(p->leftp->vtype) ) X error("putch1: bad character conversion",0,0,FATAL); X! t = mktmp(TYCHAR, ICON(1) ); X putop( mkexpr(OPASSIGN, cpexpr(t), p) ); X break; X default: X*************** X*** 769,777 **** X default: X error("putch1: bad tag %d", p->tag,0,FATAL1); X } X- /* NOTREACHED */ X } X! X LOCAL putchop(p) X expptr p; X { X--- 762,769 ---- X default: X error("putch1: bad tag %d", p->tag,0,FATAL1); X } X } X! X LOCAL putchop(p) X expptr p; X { X*************** X*** 882,888 **** X *ncommap += 2; X } X } X! X LOCAL putaddr(p, indir) X register struct addrblock *p; X int indir; X--- 874,880 ---- X *ncommap += 2; X } X } X! X LOCAL putaddr(p, indir) X register struct addrblock *p; X int indir; X*************** X*** 964,970 **** X frexpr(p); X } X X- X LOCAL struct addrblock *putcall(p) X register struct exprblock *p; X { X--- 956,961 ---- X*************** X*** 1008,1014 **** X if(type == TYCHAR) X { X if( ISICON(p->vleng) ) X! fval = mktemp(TYCHAR, p->vleng); X else { X error("adjustable character function",0,0,ERR); X return(NULL); X--- 999,1005 ---- X if(type == TYCHAR) X { X if( ISICON(p->vleng) ) X! fval = mktmp(TYCHAR, p->vleng); X else { X error("adjustable character function",0,0,ERR); X return(NULL); X*************** X*** 1015,1021 **** X } X } X else if( ISCOMPLEX(type) ) X! fval = mktemp(type, NULL); X else X fval = NULL; X X--- 1006,1012 ---- X } X } X else if( ISCOMPLEX(type) ) X! fval = mktmp(type, NULL); X else X fval = NULL; X X*************** X*** 1047,1056 **** X if(indir) X putx(q); X else { X! t = mktemp(q->vtype, q->vleng); X putassign( cpexpr(t), q ); X putaddr(t, NO); X! putcomma(1, q->vtype, YES); X } X } X if(first) X--- 1038,1048 ---- X if(indir) X putx(q); X else { X! type = q->vtype; X! t = mktmp(q->vtype, q->vleng); X putassign( cpexpr(t), q ); X putaddr(t, NO); X! putcomma(1, type, YES); X } X } X if(first) X*************** X*** 1093,1100 **** X free(p->leftp); X free(p); X X! sp = mktemp(type, NULL); X! tp = mktemp(type, NULL); X qp = mkexpr(OPCOLON, cpexpr(tp), cpexpr(sp)); X qp = mkexpr(OPQUEST, mkexpr(op, cpexpr(tp),cpexpr(sp)), qp); X qp = fixexpr(qp); X--- 1085,1092 ---- X free(p->leftp); X free(p); X X! sp = mktmp(type, NULL); X! tp = mktmp(type, NULL); X qp = mkexpr(OPCOLON, cpexpr(tp), cpexpr(sp)); X qp = mkexpr(OPQUEST, mkexpr(op, cpexpr(tp),cpexpr(sp)), qp); X qp = fixexpr(qp); X*************** X*** 1129,1135 **** X while(--n >= 0) X p2op2(P2COMOP, type); X } X! X /* X * routines that put bytes on the pass2 input stream X */ X--- 1121,1127 ---- X while(--n >= 0) X p2op2(P2COMOP, type); X } X! X /* X * routines that put bytes on the pass2 input stream X */ X*************** X*** 1199,1206 **** X * It is unclear whether this works. X * wfj note 10/80 X */ X! if(shortsubs) X! offp = shorten(offp); X #endif X if(offp->vtype != TYLONG) X offp = mkconv(TYINT, offp); X--- 1191,1197 ---- X * It is unclear whether this works. X * wfj note 10/80 X */ X! offp = shorten(offp); X #endif X if(offp->vtype != TYLONG) X offp = mkconv(TYINT, offp); X*** ./usr/src/usr.bin/m4/eval.c.old Tue Apr 5 17:40:11 1994 X--- ./usr/src/usr.bin/m4/eval.c Thu Sep 24 06:43:31 2026 X*************** X*** 35,41 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)eval.c 8.1 (Berkeley) 6/6/93"; X #endif X X /* X--- 35,41 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)eval.c 8.2 (2.11BSD) 2026/9/24"; X #endif X X /* X*************** X*** 51,57 **** X #include "mdef.h" X #include "stdd.h" X #include "extern.h" X- #include "pathnames.h" X X /* X * eval - evaluate built-in macros. X--- 51,56 ---- X*** ./usr/src/usr.bin/m4/main.c.old Tue Apr 5 17:40:30 1994 X--- ./usr/src/usr.bin/m4/main.c Thu Sep 24 06:43:54 2026 X*************** X*** 39,45 **** X "@(#) Copyright (c) 1989, 1993\n\ X The Regents of the University of California. All rights reserved.\n"; X X! static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93"; X #endif X X /* X--- 39,45 ---- X "@(#) Copyright (c) 1989, 1993\n\ X The Regents of the University of California. All rights reserved.\n"; X X! static char sccsid[] = "@(#)main.c 8.2 (2.11BSD) 2026/9/16"; X #endif X X /* X*************** X*** 54,63 **** X #include X #include X #include X #include "mdef.h" X #include "stdd.h" X #include "extern.h" X- #include "pathnames.h" X X ndptr hashtab[HASHSIZE]; /* hash table for macros etc. */ X char buf[BUFSIZE]; /* push-back buffer */ X--- 54,63 ---- X #include X #include X #include X+ #include X #include "mdef.h" X #include "stdd.h" X #include "extern.h" X X ndptr hashtab[HASHSIZE]; /* hash table for macros etc. */ X char buf[BUFSIZE]; /* push-back buffer */ X*************** X*** 133,144 **** X X #define MAXKEYS (sizeof(keywrds)/sizeof(struct keyblk)) X X- extern int optind; X- extern char *optarg; X- X void macro(); X void initkwds(); X- extern int getopt(); X X int X main(argc,argv) X--- 133,140 ---- X*** ./usr/src/usr.bin/m4/Makefile.old Tue Dec 9 09:38:03 2025 X--- ./usr/src/usr.bin/m4/Makefile Sat Sep 19 17:53:48 2026 X*************** X*** 1,4 **** X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X X DEFS= -DEXTENDED -I. X CFLAGS= -O ${DEFS} X--- 1,4 ---- X! # @(#)Makefile 1.2 (2.11BSD) 2026/9/19 X X DEFS= -DEXTENDED -I. X CFLAGS= -O ${DEFS} X*************** X*** 6,12 **** X SRCS= eval.c expr.c look.c main.c misc.c X OBJS= eval.o expr.o look.o main.o misc.o X X! all: m4 tags X X m4: ${OBJS} X cc ${LDFLAGS} -o m4 ${OBJS} X--- 6,12 ---- X SRCS= eval.c expr.c look.c main.c misc.c X OBJS= eval.o expr.o look.o main.o misc.o X X! all: m4 X X m4: ${OBJS} X cc ${LDFLAGS} -o m4 ${OBJS} X*************** X*** 13,24 **** X X install: all X install -c -s -m 755 m4 /usr/bin/m4 X- X- lint: X- lint -hax ${DEFS} ${SRCS} X- X- tags: X- ctags -t *.h ${SRCS} X X clean: X -rm -f *.o m4 core X--- 13,18 ---- X*** ./usr/src/usr.bin/m4/mdef.h.old Sun Jun 6 17:04:51 1993 X--- ./usr/src/usr.bin/m4/mdef.h Thu Sep 24 06:44:19 2026 X*************** X*** 33,40 **** X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X! * @(#)mdef.h 8.1 (Berkeley) 6/6/93 X */ X X #define MACRTYPE 1 X #define DEFITYPE 2 X--- 33,43 ---- X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X! * @(#)mdef.h 8.2 (2.11BSD) 2026/9/24 X */ X+ X+ #define _PATH_DIVNAME "/tmp/m4.0XXXXXX" /* unix diversion files */ X+ #define UNIQUE 8 /* unique char location */ X X #define MACRTYPE 1 X #define DEFITYPE 2 X*** ./usr/src/usr.bin/m4/extern.h.old Tue Apr 5 17:42:38 1994 X--- ./usr/src/usr.bin/m4/extern.h Mon Sep 21 23:44:13 2026 X*************** X*** 33,39 **** X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X! * @(#)extern.h 8.1 (Berkeley) 6/6/93 X */ X X char *basename __P((char *)); X--- 33,39 ---- X * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X * SUCH DAMAGE. X * X! * @(#)extern.h 8.2 (2.11BSD) 2026/9/16 X */ X X char *basename __P((char *)); X*************** X*** 61,67 **** X int indx __P((char *, char *)); X ndptr lookup __P((char *)); X void map __P((char *, char *, char *, char *)); X! int onintr __P((int)); X void oops __P((const char *, ...)); X void pbnum __P((int)); X void pbstr __P((char *)); X--- 61,67 ---- X int indx __P((char *, char *)); X ndptr lookup __P((char *)); X void map __P((char *, char *, char *, char *)); X! void onintr __P((int)); X void oops __P((const char *, ...)); X void pbnum __P((int)); X void pbstr __P((char *)); X*************** X*** 93,98 **** X extern char *progname; /* program name */ X extern char rquote; /* right quote character (') */ X extern char scommt; /* start character for comment */ X- X- extern char *mktemp(); X- extern char *malloc(); X--- 93,95 ---- X*** ./usr/src/usr.bin/m4/misc.c.old Tue Apr 5 17:43:59 1994 X--- ./usr/src/usr.bin/m4/misc.c Thu Sep 24 06:44:40 2026 X*************** X*** 35,41 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 6/6/93"; X #endif X X #include X--- 35,41 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)misc.c 8.2 (2.11BSD) 2026/9/16"; X #endif X X #include X*************** X*** 42,51 **** X #include X #include X #include X #include "mdef.h" X #include "stdd.h" X #include "extern.h" X- #include "pathnames.h" X X /* X * find the index of second str in the first str. X--- 42,51 ---- X #include X #include X #include X+ #include X #include "mdef.h" X #include "stdd.h" X #include "extern.h" X X /* X * find the index of second str in the first str. X*************** X*** 166,172 **** X oops("%s: cannot unlink.", m4temp); X } X X! int X onintr() X { X oops("interrupted."); X--- 166,172 ---- X oops("%s: cannot unlink.", m4temp); X } X X! void X onintr() X { X oops("interrupted."); X*** ./usr/src/usr.bin/diction/abbrev.c.old Mon Feb 16 19:22:15 1987 X--- ./usr/src/usr.bin/diction/abbrev.c Fri May 8 19:17:38 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char abbrev_sccsid[] = "@(#)abbrev.c 4.2 (Berkeley) 82/11/06"; X! #endif not lint X X struct dict abbrev_d[] = { X "St",'N', X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char abbrev_sccsid[] = "@(#)abbrev.c 4.3 (2.11BSD) 2026/5/8"; X! #endif X X struct dict abbrev_d[] = { X "St",'N', X*** ./usr/src/usr.bin/diction/dict.c.old Mon Feb 16 19:22:14 1987 X--- ./usr/src/usr.bin/diction/dict.c Fri May 8 19:18:10 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char dict_sccsid[] = "@(#)dict.c 4.2 (Berkeley) 82/11/06"; X! #endif not lint X X struct dict dict[] = { X "a",'A', X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char dict_sccsid[] = "@(#)dict.c 4.3 (2.11BSD) 2026/5/8"; X! #endif X X struct dict dict[] = { X "a",'A', X*** ./usr/src/usr.bin/diction/edict.c.old Mon Feb 16 19:22:15 1987 X--- ./usr/src/usr.bin/diction/edict.c Fri May 8 19:18:42 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char edict_sccsid[] = "@(#)edict.c 4.2 (Berkeley) 82/11/06"; X! #endif not lint X X struct dict able_d[] = { X "noihsaf",'Y', X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char edict_sccsid[] = "@(#)edict.c 4.3 (2.11BSD) 2026/5/8"; X! #endif X X struct dict able_d[] = { X "noihsaf",'Y', X*** ./usr/src/usr.bin/diction/ehash.c.old Mon Feb 16 19:22:15 1987 X--- ./usr/src/usr.bin/diction/ehash.c Fri May 8 19:19:12 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char ehash_sccsid[] = "@(#)ehash.c 4.2 (Berkeley) 82/11/06"; X! #endif not lint X X # X struct hnode { X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char ehash_sccsid[] = "@(#)ehash.c 4.3 (2.11BSD) 2026/5/8"; X! #endif X X # X struct hnode { X*** ./usr/src/usr.bin/diction/end.l.old Mon Feb 16 19:22:15 1987 X--- ./usr/src/usr.bin/diction/end.l Fri May 8 19:19:41 2026 X*************** X*** 1,7 **** X %{ X! #ifndef lint X! static char sccsid[] = "@(#)end.l 4.2 (Berkeley) 82/11/06"; X! #endif not lint X X #include X #include X--- 1,7 ---- X %{ X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)end.l 4.3 (2.11BSD) 2026/5/8"; X! #endif X X #include X #include X*** ./usr/src/usr.bin/diction/nhash.c.old Mon Feb 16 19:22:14 1987 X--- ./usr/src/usr.bin/diction/nhash.c Fri May 8 19:20:12 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char nhash_sccsid[] = "@(#)nhash.c 4.2 (Berkeley) 82/11/06"; X! #endif not lint X X struct dict { X char *entry; X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char nhash_sccsid[] = "@(#)nhash.c 4.3 (2.11BSD) 2026/5/8"; X! #endif X X struct dict { X char *entry; X*** ./usr/src/usr.bin/diction/nwords.l.old Mon Feb 16 19:44:17 1987 X--- ./usr/src/usr.bin/diction/nwords.l Fri May 8 19:20:44 2026 X*************** X*** 1,9 **** X %{ X /* break out words, output cap + word(inverted) */ X X! #ifndef lint X! static char sccsid[] = "@(#)nwords.l 4.2 (Berkeley) 82/11/06"; X! #endif not lint X X #include X #include X--- 1,9 ---- X %{ X /* break out words, output cap + word(inverted) */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)nwords.l 4.3 (2.11BSD) 2026/5/8"; X! #endif X X #include X #include X*** ./usr/src/usr.bin/diction/outp.c.old Mon Feb 16 19:22:16 1987 X--- ./usr/src/usr.bin/diction/outp.c Fri May 8 19:21:08 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)outp.c 4.2 (Berkeley) 82/11/06"; X! #endif not lint X X #include X #include X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)outp.c 4.3 (2.11BSD) 2026/5/8"; X! #endif X X #include X #include X*** ./usr/src/usr.bin/diction/part.l.old Mon Feb 16 19:22:15 1987 X--- ./usr/src/usr.bin/diction/part.l Fri May 8 19:21:35 2026 X*************** X*** 1,8 **** X %{ X X! #ifndef lint X! static char sccsid[] = "@(#)part.l 4.2 (Berkeley) 82/11/06"; X! #endif not lint X X #include "style.h" X #include "names.h" X--- 1,8 ---- X %{ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)part.l 4.3 (2.11BSD) 2026/5/8"; X! #endif X X #include "style.h" X #include "names.h" X*** ./usr/src/usr.bin/diction/pscan.c.old Mon Feb 16 19:22:16 1987 X--- ./usr/src/usr.bin/diction/pscan.c Fri May 8 19:22:00 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)pscan.c 4.2 (Berkeley) 82/11/06"; X! #endif not lint X X #include "names.h" X #include "conp.h" X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)pscan.c 4.3 (2.11BSD) 2026/5/8"; X! #endif X X #include "names.h" X #include "conp.h" X*** ./usr/src/usr.bin/diction/ydict.c.old Mon Feb 16 19:22:14 1987 X--- ./usr/src/usr.bin/diction/ydict.c Fri May 8 19:22:25 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char ydict_sccsid[] = "@(#)ydict.c 4.2 (Berkeley) 82/11/06"; X! #endif not lint X X struct dict ary_d[] = { X "auxili",'Y', X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char ydict_sccsid[] = "@(#)ydict.c 4.3 (2.11BSD) 2026/5/8"; X! #endif X X struct dict ary_d[] = { X "auxili",'Y', X*** ./usr/src/usr.bin/find/find.c.old Fri Nov 1 22:30:08 1996 X--- ./usr/src/usr.bin/find/find.c Sat Feb 28 17:58:36 2026 X*************** X*** 1,5 **** X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)find.c 4.17.3 (2.11BSD GTE) 1996/10/23"; X #endif X X #include X--- 1,5 ---- X #if defined(DOSCCS) && !defined(lint) X! static char *sccsid = "@(#)find.c 4.17.4 (2.11BSD) 2026/1/28"; X #endif X X #include X*************** X*** 7,12 **** X--- 7,15 ---- X #include X #include X #include X+ #include X+ #include X+ #include X X #define A_DAY 86400L /* a day full of seconds */ X #define EQ(x, y) (strcmp(x, y)==0) X*************** X*** 48,55 **** X char *nxtarg(); X int Home; X long Blocks; X- char *rindex(); X- char *sbrk(); X X /* X * SEE ALSO: updatedb, bigram.c, code.c X--- 51,56 ---- X*************** X*** 70,76 **** X * X * 1/83 incorporate glob-style matching -- jaw X */ X- #define AMES 1 X X main(argc, argv) X int argc; X--- 71,76 ---- X*************** X*** 79,89 **** X struct anode *exlist; X int paths; X register char *cp, *sp = 0; X- #ifdef SUID_PWD X- FILE *pwd, *popen(); X- #endif X X- #ifdef AMES X if (argc < 2) { X fprintf(stderr, X "Usage: find name, or find path-list predicate-list\n"); X--- 79,85 ---- X*************** X*** 93,99 **** X fastfind(argv[1]); X exit(0); X } X! #endif X time(&Now); X Home = open(".", O_RDONLY); X if (Home < 0) { X--- 89,95 ---- X fastfind(argv[1]); X exit(0); X } X! X time(&Now); X Home = open(".", O_RDONLY); X if (Home < 0) { X*************** X*** 125,137 **** X if(cp = rindex(Pathname, '/')) { X sp = cp + 1; X *cp = '\0'; X! if(chdir(*Pathname? Pathname: "/") == -1) { X fprintf(stderr, "find: bad starting directory\n"); X exit(2); X } X *cp = '/'; X } X! Fname = sp? sp: Pathname; X if (!Xdev) X stat(Pathname, &Devstat); X descend(Pathname, Fname, exlist); /* to find files that match */ X--- 121,133 ---- X if(cp = rindex(Pathname, '/')) { X sp = cp + 1; X *cp = '\0'; X! if(chdir(*Pathname ? Pathname : "/") == -1) { X fprintf(stderr, "find: bad starting directory\n"); X exit(2); X } X *cp = '/'; X } X! Fname = sp ? sp : Pathname; X if (!Xdev) X stat(Pathname, &Devstat); X descend(Pathname, Fname, exlist); /* to find files that match */ X*************** X*** 233,239 **** X else if(EQ(a, "-atime")) X return(mk(atime, (struct anode *)atoi(b), (struct anode *)s)); X else if(EQ(a, "-user")) { X! if((i=getuid(b)) == -1) { X if(gmatch(b, "[0-9]*")) X return mk(user, (struct anode *)atoi(b), (struct anode *)s); X fprintf(stderr, "find: cannot find -user name\n"); X--- 229,235 ---- X else if(EQ(a, "-atime")) X return(mk(atime, (struct anode *)atoi(b), (struct anode *)s)); X else if(EQ(a, "-user")) { X! if((i=xgetuid(b)) == -1) { X if(gmatch(b, "[0-9]*")) X return mk(user, (struct anode *)atoi(b), (struct anode *)s); X fprintf(stderr, "find: cannot find -user name\n"); X*************** X*** 244,250 **** X else if(EQ(a, "-inum")) X return(mk(ino, (struct anode *)atoi(b), (struct anode *)s)); X else if(EQ(a, "-group")) { X! if((i=getgid(b)) == -1) { X if(gmatch(b, "[0-9]*")) X return mk(group, (struct anode *)atoi(b), (struct anode *)s); X fprintf(stderr, "find: cannot find -group name\n"); X--- 240,246 ---- X else if(EQ(a, "-inum")) X return(mk(ino, (struct anode *)atoi(b), (struct anode *)s)); X else if(EQ(a, "-group")) { X! if((i=xgetgid(b)) == -1) { X if(gmatch(b, "[0-9]*")) X return mk(group, (struct anode *)atoi(b), (struct anode *)s); X fprintf(stderr, "find: cannot find -group name\n"); X*************** X*** 567,573 **** X X case 0: X fchdir(Home); X! execvp(nargv[0], nargv, np); X write(2, "find: Can't execute ", 20); X perror(nargv[0]); X /* X--- 563,569 ---- X X case 0: X fchdir(Home); X! execvp(nargv[0], nargv); X write(2, "find: Can't execute ", 20); X perror(nargv[0]); X /* X*************** X*** 631,637 **** X char *endofname; X X if (lstat(fname, &Statb)<0) { X! fprintf(stderr, "find: bad status < %s >\n", name); X return(0); X } X (*exlist->F)(exlist); X--- 627,633 ---- X char *endofname; X X if (lstat(fname, &Statb)<0) { X! fprintf(stderr, "find: bad status (%d) <%s>\n", errno, name); X return(0); X } X (*exlist->F)(exlist); X*************** X*** 644,654 **** X --c1; X endofname = c1; X X if (chdir(fname) == -1) X! return(0); X if ((dir = opendir(".")) == NULL) { X fprintf(stderr, "find: cannot open < %s >\n", name); X- rv = 0; X goto ret; X } X for (dp = readdir(dir); dp != NULL; dp = readdir(dir)) { X--- 640,666 ---- X --c1; X endofname = c1; X X+ /* X+ * If the directory can not be entered (chdir fails) then the recursion X+ * can not continue but the current directory has not changed. return(1) X+ * so the caller will continue the readdir() loop without doing an X+ * unnecessary fchdir/chdir. X+ */ X if (chdir(fname) == -1) X! return(1); X! /* X! * If the directory is public 'x' (711 for example) it is possible to chdir X! * but not open for reading. If read access is denied then quietly back up X! * and return without printing an ominous looking message. X! */ X! if (access(".", R_OK) == -1) X! goto ret; X! X! /* X! * opendir can fail for other reasons than access denied. X! */ X if ((dir = opendir(".")) == NULL) { X fprintf(stderr, "find: cannot open < %s >\n", name); X goto ret; X } X for (dp = readdir(dir); dp != NULL; dp = readdir(dir)) { X*************** X*** 662,668 **** X if(!descend(name, Fname, exlist)) { X *endofname = '\0'; X fchdir(Home); X! if(chdir(Pathname) == -1) { X fprintf(stderr, "find: bad directory tree\n"); X exit(1); X } X--- 674,687 ---- X if(!descend(name, Fname, exlist)) { X *endofname = '\0'; X fchdir(Home); X! /* X! * If Pathname was "/" before the "*endofname = '\0'" above then Pathname is X! * now "". chdir("") will do nothing so find's home directory remains "." X! * from the fchdir(Home). That is wrong. If Pathname is now "" do chdir("/"). X! * This could happen for example if the chdir(fname) succeeds but the X! * opendir(".") fails. X! */ X! if (chdir(Pathname[0] ? Pathname : "/") == -1) { X fprintf(stderr, "find: bad directory tree\n"); X exit(1); X } X*************** X*** 792,798 **** X return f; X } X X- #ifdef AMES X /* X * 'fastfind' scans a file list for the full pathname of a file X * given only a piece of the name. The list has been processed with X--- 811,816 ---- X*************** X*** 924,930 **** X *subp = '\0'; X return ( --subp ); X } X- #endif X X /* rest should be done with nameserver or database */ X X--- 942,947 ---- X*************** X*** 1027,1033 **** X } X X int X! getuid(username) X char *username; X { X register struct passwd *pw; X--- 1044,1050 ---- X } X X int X! xgetuid(username) X char *username; X { X register struct passwd *pw; X*************** X*** 1045,1051 **** X } X X int X! getgid(groupname) X char *groupname; X { X register struct group *gr; X--- 1062,1068 ---- X } X X int X! xgetgid(groupname) X char *groupname; X { X register struct group *gr; X*************** X*** 1181,1191 **** X else X sprintf(ftime, "%-12.12s", cp + 4); X X- #ifdef pdp11 X printf("%5u %4ld %s %2d %s%s%s %s %s%s%s\n", X- #else X- printf("%5lu %4ld %s %2d %s%s%s %s %s%s%s\n", X- #endif X stp->st_ino, /* inode # */ X #ifdef S_IFSOCK X (long) kbytes(dbtob(stp->st_blocks)), /* kbytes */ X--- 1198,1204 ---- X*** ./usr/src/usr.bin/find/updatedb.csh.old Wed Oct 23 22:33:33 1996 X--- ./usr/src/usr.bin/find/updatedb.csh Mon Apr 27 21:07:54 2026 X*************** X*** 1,6 **** X #!/bin/csh -f X # X! # @(#)updatedb.csh 4.6.1 (2.11BSD) 1996/10/23 X # X set SRCHPATHS = "/" # directories to be put in the database X set LIBDIR = /usr/libexec/find # for subprograms X--- 1,6 ---- X #!/bin/csh -f X # X! # @(#)updatedb.csh 4.6.2 (2.11BSD) 2026/4/27 X # X set SRCHPATHS = "/" # directories to be put in the database X set LIBDIR = /usr/libexec/find # for subprograms X*************** X*** 23,28 **** X--- 23,40 ---- X find ${SRCHPATHS} -print | tr '/' '\001' | \ X (sort -f; echo $status > $errs) | \ X tr '\001' '/' >$filelist X+ X+ # The last file in $filelist is not processed into $FCODES. X+ # X+ # This was noticed when both /VERSION and /VERSION.old were present and last X+ # after 'sort -f' above) but "find VERSION" would not display VERSION.old! X+ # X+ # Append a dummy/junk line to $filelist before processing with 'bigram'. The X+ # dummy name will not appear in find.codes. X+ X+ set fake=`tail -1 $filelist`.xxx X+ echo $fake >> $filelist X+ X $LIBDIR/bigram <$filelist | \ X (sort; echo $status >> $errs) | uniq -c | sort -nr | \ X awk '{ if (NR <= 128) print $2 }' | tr -d '\012' > $bigrams X*** ./usr/src/usr.bin/struct/0.alloc.c.old Mon Jan 18 12:36:54 1993 X--- ./usr/src/usr.bin/struct/0.alloc.c Sat May 9 06:51:15 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)0.alloc.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X #include "def.h" X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)0.alloc.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include "def.h" X*** ./usr/src/usr.bin/struct/0.args.c.old Mon Feb 16 19:21:15 1987 X--- ./usr/src/usr.bin/struct/0.args.c Sat May 9 06:51:38 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)0.args.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X # X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)0.args.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X # X*** ./usr/src/usr.bin/struct/0.def.c.old Mon Feb 16 19:21:15 1987 X--- ./usr/src/usr.bin/struct/0.def.c Sat May 9 06:51:59 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)0.def.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X #include "def.h" X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)0.def.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include "def.h" X*** ./usr/src/usr.bin/struct/0.extr.c.old Mon Feb 16 19:21:15 1987 X--- ./usr/src/usr.bin/struct/0.extr.c Sat May 9 06:52:17 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)0.extr.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X #include "def.h" X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)0.extr.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include "def.h" X*** ./usr/src/usr.bin/struct/0.graph.c.old Mon Feb 16 19:21:15 1987 X--- ./usr/src/usr.bin/struct/0.graph.c Sat May 9 06:52:35 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)0.graph.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X #include "def.h" X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)0.graph.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include "def.h" X*** ./usr/src/usr.bin/struct/0.list.c.old Mon Jan 18 12:36:55 1993 X--- ./usr/src/usr.bin/struct/0.list.c Sat May 9 06:53:01 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)0.list.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X #include "def.h" X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)0.list.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include "def.h" X*** ./usr/src/usr.bin/struct/0.parts.c.old Mon Jan 18 12:36:56 1993 X--- ./usr/src/usr.bin/struct/0.parts.c Sat May 9 06:53:22 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)0.parts.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X #include "def.h" X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)0.parts.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include "def.h" X*** ./usr/src/usr.bin/struct/0.string.c.old Mon Jan 18 12:36:58 1993 X--- ./usr/src/usr.bin/struct/0.string.c Sat May 9 06:54:18 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)0.string.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X #include "def.h" X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)0.string.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include "def.h" X*************** X*** 9,15 **** X str_copy(s,ptr,length) /* copy s at ptr, return length of s */ X char *s, *ptr; X int length; X! {int i; X for (i = 0; i < length; i++) X { X ptr[i] = s[i]; X--- 9,15 ---- X str_copy(s,ptr,length) /* copy s at ptr, return length of s */ X char *s, *ptr; X int length; X! {register int i; X for (i = 0; i < length; i++) X { X ptr[i] = s[i]; X*************** X*** 24,30 **** X char *s,*ar[]; X int size; X { X! int i; X for (i=0; i < size; i++) X {if (str_eq(s, ar[i])) return(i);} X return(-1); X--- 24,30 ---- X char *s,*ar[]; X int size; X { X! register int i; X for (i=0; i < size; i++) X {if (str_eq(s, ar[i])) return(i);} X return(-1); X*************** X*** 33,39 **** X X str_eq(s,t) X char s[],t[]; X! {int j; X for (j = 0; s[j] == t[j]; j++) X {if (s[j] == '\0') return(1);} X return(0); X--- 33,39 ---- X X str_eq(s,t) X char s[],t[]; X! {register int j; X for (j = 0; s[j] == t[j]; j++) X {if (s[j] == '\0') return(1);} X return(0); X*** ./usr/src/usr.bin/struct/1.finish.c.old Mon Feb 16 19:21:16 1987 X--- ./usr/src/usr.bin/struct/1.finish.c Sat May 9 06:54:39 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)1.finish.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X #include "def.h" X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)1.finish.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include "def.h" X*** ./usr/src/usr.bin/struct/1.form.c.old Mon Feb 16 19:21:16 1987 X--- ./usr/src/usr.bin/struct/1.form.c Sat May 9 06:55:34 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)1.form.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X #include "1.defs.h" X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)1.form.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include "1.defs.h" X*************** X*** 22,28 **** X rdfree(func) X int (*func)(); X { X! int c; X while ( (c = (*input)()) != '\n') X { X (*func)(c); X--- 22,28 ---- X rdfree(func) X int (*func)(); X { X! register int c; X while ( (c = (*input)()) != '\n') X { X (*func)(c); X*************** X*** 32,38 **** X rdstand(func) X int (*func)(); X { X! int c; X while ( (c=(*input)()) != '\n') X { X (*func)(c); X--- 32,38 ---- X rdstand(func) X int (*func)(); X { X! register int c; X while ( (c=(*input)()) != '\n') X { X (*func)(c); X*************** X*** 42,48 **** X labfree(func) /* labels in freeform input */ X int (*func)(); X { X! int c; X int temp[6]; X int j; X for (j = 0; j < 5; ++j) X--- 42,48 ---- X labfree(func) /* labels in freeform input */ X int (*func)(); X { X! register int c; X int temp[6]; X int j; X for (j = 0; j < 5; ++j) X*** ./usr/src/usr.bin/struct/1.fort.c.old Mon Jan 18 12:36:59 1993 X--- ./usr/src/usr.bin/struct/1.fort.c Sat May 9 06:55:51 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)1.fort.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X #include "1.incl.h" X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)1.fort.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include "1.incl.h" X*** ./usr/src/usr.bin/struct/1.hash.c.old Mon Jan 18 12:37:01 1993 X--- ./usr/src/usr.bin/struct/1.hash.c Sat May 9 06:56:09 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)1.hash.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X #include "1.incl.h" X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)1.hash.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include "1.incl.h" X*** ./usr/src/usr.bin/struct/1.init.c.old Mon Jan 18 12:37:02 1993 X--- ./usr/src/usr.bin/struct/1.init.c Sat May 9 06:56:28 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)1.init.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X #include "1.defs.h" X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)1.init.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include "1.defs.h" X*** ./usr/src/usr.bin/struct/1.line.c.old Mon Feb 16 19:21:16 1987 X--- ./usr/src/usr.bin/struct/1.line.c Sat May 9 06:57:06 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)1.line.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X # X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)1.line.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X # X*************** X*** 12,18 **** X long stchars; /* counts number of chars at most recent \n read */ X #ifndef unix X long ostchars; X- extern long ftell(); X #endif X int newline; /* counts number of lines read so far in file */ X extern int rdfree(), comfree(),labfree(), contfree(); X--- 12,17 ---- X*** ./usr/src/usr.bin/struct/1.main.c.old Mon Feb 16 19:21:16 1987 X--- ./usr/src/usr.bin/struct/1.main.c Sat May 9 06:57:23 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)1.main.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X #include "def.h" X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)1.main.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include "def.h" X*** ./usr/src/usr.bin/struct/1.node.c.old Mon Feb 16 19:21:16 1987 X--- ./usr/src/usr.bin/struct/1.node.c Sat May 9 06:57:59 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)1.node.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X #include "def.h" X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)1.node.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include "def.h" X*************** X*** 11,17 **** X int type, arctype[], arcnum; X long arclab[], labe; X { X! int i; X VERT num; X X ASSERT(arcsper[type] < 0 || arcnum == arcsper[type], makenode); X--- 11,17 ---- X int type, arctype[], arcnum; X long arclab[], labe; X { X! register int i; X VERT num; X X ASSERT(arcsper[type] < 0 || arcnum == arcsper[type], makenode); X*** ./usr/src/usr.bin/struct/1.recog.c.old Mon Jan 18 12:37:04 1993 X--- ./usr/src/usr.bin/struct/1.recog.c Sat May 9 06:58:31 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)1.recog.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X #include "1.incl.h" X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)1.recog.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include "1.incl.h" X*** ./usr/src/usr.bin/struct/1.tables.c.old Mon Feb 16 19:21:17 1987 X--- ./usr/src/usr.bin/struct/1.tables.c Sat May 9 06:58:52 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)1.tables.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)1.tables.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X X*** ./usr/src/usr.bin/struct/2.dfs.c.old Mon Jan 18 12:37:06 1993 X--- ./usr/src/usr.bin/struct/2.dfs.c Sat May 9 06:59:12 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)2.dfs.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X # X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)2.dfs.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X # X*** ./usr/src/usr.bin/struct/2.dom.c.old Mon Feb 16 19:21:17 1987 X--- ./usr/src/usr.bin/struct/2.dom.c Sat May 9 06:59:59 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)2.dom.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X # X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)2.dom.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X # X*************** X*** 20,27 **** X VERT *dom; X { X VERT v; X! int i; X! struct list *ls; X for (v = 0; v < nodenum; ++v) X dom[v] = UNDEFINED; X for (i = 1; i < accessnum; ++i) X--- 20,28 ---- X VERT *dom; X { X VERT v; X! register int i; X! register struct list *ls; X! X for (v = 0; v < nodenum; ++v) X dom[v] = UNDEFINED; X for (i = 1; i < accessnum; ++i) X*** ./usr/src/usr.bin/struct/2.head.c.old Mon Feb 16 19:21:17 1987 X--- ./usr/src/usr.bin/struct/2.head.c Sat May 9 07:00:36 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)2.head.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X # X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)2.head.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X # X*** ./usr/src/usr.bin/struct/2.inarc.c.old Mon Jan 18 12:37:07 1993 X--- ./usr/src/usr.bin/struct/2.inarc.c Sat May 9 07:01:22 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)2.inarc.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X # X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)2.inarc.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X # X*************** X*** 15,21 **** X VERT *head; X { X VERT v,adj,x; X! int i, j; X X for (v=0; v < nodenum; ++v) inarc[v] = 0; X X--- 15,21 ---- X VERT *head; X { X VERT v,adj,x; X! register int i, j; X X for (v=0; v < nodenum; ++v) inarc[v] = 0; X X*** ./usr/src/usr.bin/struct/2.main.c.old Mon Jan 18 12:37:08 1993 X--- ./usr/src/usr.bin/struct/2.main.c Sat May 9 07:01:42 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)2.main.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X #include "def.h" X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)2.main.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include "def.h" X*** ./usr/src/usr.bin/struct/2.tree.c.old Mon Feb 16 19:21:17 1987 X--- ./usr/src/usr.bin/struct/2.tree.c Sat May 9 07:02:00 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)2.tree.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X # X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)2.tree.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X # X*** ./usr/src/usr.bin/struct/3.branch.c.old Mon Feb 16 19:21:18 1987 X--- ./usr/src/usr.bin/struct/3.branch.c Sat May 9 07:02:32 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)3.branch.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X #include "def.h" X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)3.branch.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include "def.h" X*************** X*** 24,30 **** X VERT v,*head; X { X VERT w; X! int i; X switch(NTYPE(v)) X { X case GOVX: X--- 24,31 ---- X VERT v,*head; X { X VERT w; X! register int i; X! X switch(NTYPE(v)) X { X case GOVX: X*** ./usr/src/usr.bin/struct/3.flow.c.old Mon Feb 16 19:21:18 1987 X--- ./usr/src/usr.bin/struct/3.flow.c Sat May 9 07:03:12 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)3.flow.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X # X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)3.flow.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X # X*************** X*** 27,33 **** X VERT autolex; /* lexical successor of v */ X { X VERT lex,chlex,z,x,w; X! int i; X lex = lexval(v,autolex); X if (HASLEX(NTYPE(v)) && NTYPE(v) != ICASVX) X if (DEFINED(REACH(v)) && REACH(v) != lex) X--- 27,34 ---- X VERT autolex; /* lexical successor of v */ X { X VERT lex,chlex,z,x,w; X! register int i; X! X lex = lexval(v,autolex); X if (HASLEX(NTYPE(v)) && NTYPE(v) != ICASVX) X if (DEFINED(REACH(v)) && REACH(v) != lex) X*** ./usr/src/usr.bin/struct/3.loop.c.old Mon Feb 16 19:21:18 1987 X--- ./usr/src/usr.bin/struct/3.loop.c Sat May 9 07:03:30 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)3.loop.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X #include "def.h" X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)3.loop.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include "def.h" X*** ./usr/src/usr.bin/struct/3.main.c.old Mon Jan 18 12:37:09 1993 X--- ./usr/src/usr.bin/struct/3.main.c Sat May 9 07:03:51 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)3.main.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X #include "def.h" X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)3.main.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include "def.h" X*** ./usr/src/usr.bin/struct/3.reach.c.old Mon Jan 18 12:37:10 1993 X--- ./usr/src/usr.bin/struct/3.reach.c Sat May 9 07:04:09 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)3.reach.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X # X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)3.reach.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X # X*** ./usr/src/usr.bin/struct/3.then.c.old Mon Feb 16 19:21:18 1987 X--- ./usr/src/usr.bin/struct/3.then.c Sat May 9 07:04:30 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)3.then.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X #include "def.h" X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)3.then.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include "def.h" X*** ./usr/src/usr.bin/struct/4.brace.c.old Mon Feb 16 19:21:18 1987 X--- ./usr/src/usr.bin/struct/4.brace.c Sat May 9 07:04:58 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)4.brace.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X #include "def.h" X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)4.brace.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include "def.h" X*** ./usr/src/usr.bin/struct/4.form.c.old Mon Feb 16 19:21:18 1987 X--- ./usr/src/usr.bin/struct/4.form.c Sat May 9 07:05:24 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)4.form.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X # X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)4.form.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X # X*** ./usr/src/usr.bin/struct/4.main.c.old Mon Jan 18 12:37:11 1993 X--- ./usr/src/usr.bin/struct/4.main.c Sat May 9 07:05:46 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)4.main.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X #include "def.h" X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)4.main.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include "def.h" X*** ./usr/src/usr.bin/struct/4.out.c.old Mon Feb 16 19:21:19 1987 X--- ./usr/src/usr.bin/struct/4.out.c Sat May 9 07:06:07 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)4.out.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X #include "def.h" X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)4.out.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include "def.h" X*** ./usr/src/usr.bin/struct/bdef.c.old Mon Feb 16 19:21:19 1987 X--- ./usr/src/usr.bin/struct/bdef.c Sat May 9 07:06:29 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)bdef.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #define xxtop 100 /* max size of xxstack */ X int xxindent, xxval, newflag, xxmaxchars, xxbpertab; X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)bdef.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #define xxtop 100 /* max size of xxstack */ X int xxindent, xxval, newflag, xxmaxchars, xxbpertab; X*** ./usr/src/usr.bin/struct/main.c.old Mon Feb 16 19:21:19 1987 X--- ./usr/src/usr.bin/struct/main.c Mon Sep 21 23:52:28 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)main.c 4.1 (Berkeley) 2/11/83"; X! #endif not lint X X #include X #include X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)main.c 4.2 (2.11BSD) 2026/5/9"; X! #endif X X #include X #include X*************** X*** 7,26 **** X #include "1.defs.h" X #include "def.h" X X- X char (*input)(), (*unput)(); X FILE *outfd = stdout; X X- X- X main(argc,argv) X int argc; X char *argv[]; X { X int anyoutput; X! int dexit(); X char *getargs(); X char input1(), unput1(), input2(), unput2(); X anyoutput = FALSE; X getargs(argc,argv); X if (debug == 2) debfd = stderr; X--- 7,24 ---- X #include "1.defs.h" X #include "def.h" X X char (*input)(), (*unput)(); X FILE *outfd = stdout; X X main(argc,argv) X int argc; X char *argv[]; X { X int anyoutput; X! void dexit(); X char *getargs(); X char input1(), unput1(), input2(), unput2(); X+ X anyoutput = FALSE; X getargs(argc,argv); X if (debug == 2) debfd = stderr; X*************** X*** 66,72 **** X exit(1); X } X X! X dexit() X { X exit(1); X--- 64,70 ---- X exit(1); X } X X! void X dexit() X { X exit(1); X*** ./usr/src/usr.bin/struct/beauty.y.old Sun Sep 25 21:47:56 2022 X--- ./usr/src/usr.bin/struct/beauty.y Mon Sep 21 23:53:43 2026 X*************** X*** 262,268 **** X { X int exit(); X if ( signal(SIGINT, SIG_IGN) != SIG_IGN) X! signal(SIGINT, exit); X yyinit(); X yyparse(); X } X--- 262,268 ---- X { X int exit(); X if ( signal(SIGINT, SIG_IGN) != SIG_IGN) X! signal(SIGINT, (sig_t)exit); X yyinit(); X yyparse(); X } X*** ./usr/src/usr.bin/spell/spellin.c.old Sun Mar 15 05:18:30 1987 X--- ./usr/src/usr.bin/spell/spellin.c Fri May 8 21:23:22 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)spellin.c 4.1 12/18/82"; X #endif X X #include "spell.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)spellin.c 4.2 (2.11BSD) 2026/5/8"; X #endif X X #include "spell.h" X*************** X*** 32,40 **** X set(h); X } X } X- #ifdef gcos X- freopen((char *)NULL, "wi", stdout); X- #endif X if (fwrite((char *)tab, sizeof(*tab), TABSIZE, stdout) != TABSIZE) { X fprintf(stderr, X "spellin: trouble writing hash table\n"); X--- 32,37 ---- X*** ./usr/src/usr.bin/spell/spellout.c.old Mon Feb 16 19:22:24 1987 X--- ./usr/src/usr.bin/spell/spellout.c Fri May 8 21:24:40 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)spellout.c 4.1 12/18/82"; X #endif X X #include "spell.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)spellout.c 4.2 (2.11BSD) 2026/5/8"; X #endif X X #include "spell.h" X*************** X*** 7,18 **** X main(argc, argv) X char **argv; X { X! register i, j; X long h; X register long *lp; X char word[NW]; X int dflag = 0; X! int indict; X register char *wp; X X if (argc>1 && argv[1][0]=='-' && argv[1][1]=='d') { X--- 7,18 ---- X main(argc, argv) X char **argv; X { X! register int i; X long h; X register long *lp; X char word[NW]; X int dflag = 0; X! int indict, j; X register char *wp; X X if (argc>1 && argv[1][0]=='-' && argv[1][1]=='d') { X*** ./usr/src/usr.bin/at/atq.c.old Sun Sep 19 19:37:59 2021 X--- ./usr/src/usr.bin/at/atq.c Thu Sep 17 10:01:52 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)atq.c 5.3 (2.11BSD) 9/18/2021"; X #endif X X /* X--- 9,15 ---- X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)atq.c 5.4 (2.11BSD) 2026/9/17"; X #endif X X /* X*************** X*** 329,335 **** X struct timeval now; /* time it is right now */ X struct timezone zone; /* NOT USED */ X struct tm *loc; /* detail of time it is right */ X! u_long lasttime; /* last update time in seconds X since 1/1/70 */ X FILE *last; /* file where last update hour X is stored */ X--- 329,335 ---- X struct timeval now; /* time it is right now */ X struct timezone zone; /* NOT USED */ X struct tm *loc; /* detail of time it is right */ X! time_t lasttime; /* last update time in seconds X since 1/1/70 */ X FILE *last; /* file where last update hour X is stored */ X*** ./usr/src/usr.bin/xinstall/xinstall.c.old Wed Feb 21 13:21:26 1996 X--- ./usr/src/usr.bin/xinstall/xinstall.c Thu Sep 24 06:49:34 2026 X*************** X*** 36,43 **** X "@(#) Copyright (c) 1987, 1993\n\ X The Regents of the University of California. All rights reserved.\n"; X X! static char sccsid[] = "@(#)xinstall.c 8.1.1 (2.11BSD) 1996/2/21"; X! #endif /* not lint */ X X #include X #include X--- 36,43 ---- X "@(#) Copyright (c) 1987, 1993\n\ X The Regents of the University of California. All rights reserved.\n"; X X! static char sccsid[] = "@(#)xinstall.c 8.1.2 (2.11BSD) 2026/1/13"; X! #endif X X #include X #include X*************** X*** 53,60 **** X #include X #include X #include X X! #include "pathnames.h" X X struct passwd *pp; X struct group *gp; X--- 53,61 ---- X #include X #include X #include X+ #include X X! #define _PATH_STRIP "/bin/strip" X X struct passwd *pp; X struct group *gp; X*************** X*** 312,342 **** X exit(1); X } X X- #if __STDC__ X- #include X- #else X- #include X- #endif X- X void X- #if __STDC__ X err(const char *fmt, ...) X- #else X- err(fmt, va_alist) X- char *fmt; X- va_dcl X- #endif X { X va_list ap; X- #if __STDC__ X va_start(ap, fmt); X- #else X- va_start(ap); X- #endif X (void)fprintf(stderr, "install: "); X (void)vfprintf(stderr, fmt, ap); X va_end(ap); X (void)fprintf(stderr, "\n"); X exit(1); X- /* NOTREACHED */ X } X--- 313,326 ---- X*** ./usr/src/usr.bin/cal.c.old Mon Feb 16 19:22:29 1987 X--- ./usr/src/usr.bin/cal.c Fri May 8 18:40:08 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)cal.c 4.3 (Berkeley) 83/08/11"; X #endif X X char dayw[] = { X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cal.c 4.4 (2.11BSD) 2026/5/8"; X #endif X X char dayw[] = { X*** ./usr/src/usr.bin/efl/defs.old Tue Jan 22 19:25:30 1985 X--- ./usr/src/usr.bin/efl/defs Wed Jul 15 18:04:08 2026 X*************** X*** 1,5 **** X! #include "stdio.h" X X #define NO 0 X #define YES 1 X X--- 1,9 ---- X! /* X! * "@(#)defs 2.0 (2.11BSD) 2026/7/15"; X! */ X X+ #include X+ X #define NO 0 X #define YES 1 X X*************** X*** 56,65 **** X extern char msg[]; X X #define UNIX 1 X- #define GCOS 2 X- #define GCOSBCD 3 X- #define CRAY 4 X- #define IBM 5 X X #define FIELDMAX 32768. X X--- 60,65 ---- X*** ./usr/src/usr.bin/efl/lex.l.old Tue Jun 8 23:05:53 1982 X--- ./usr/src/usr.bin/efl/lex.l Wed Jul 15 18:22:20 2026 X*************** X*** 1,5 **** X--- 1,9 ---- X %Start DOTSON X %{ X+ /* X+ * @(#)lex.l 2.0 (2.11BSD) 2026/7/15"; X+ */ X+ X #include X #include "defs" X #include "tokdefs" X*************** X*** 327,338 **** X FILE *opincl(namep) X char **namep; X { X- #ifndef unix X- return( fopen(*namep, "r") ); X- #else X- X- /* On Unix, follow the C include conventions */ X- X register char *s, *lastslash; X char *dir, *name, temp[100]; X int i; X--- 331,336 ---- X*************** X*** 372,378 **** X *namep = temp; X } X return(fp); X- X- #endif X } X X--- 370,374 ---- X*** ./usr/src/usr.bin/efl/Makefile.old Thu Dec 25 08:52:51 2025 X--- ./usr/src/usr.bin/efl/Makefile Wed Jul 15 17:44:35 2026 X*************** X*** 1,4 **** X! # Makefile 2.0 (2.11BSD) 2025/11/27 X X ################################################################################ X # A horrid Makefile for EFL, a language even more dead than Latin X--- 1,4 ---- X! # Makefile 2.1 (2.11BSD) 2026/6/29 X X ################################################################################ X # A horrid Makefile for EFL, a language even more dead than Latin X*************** X*** 14,20 **** X ################################################################################ X PROGRAM= efl X CFLAGS = -O -w X- # Implement split I&D. EFL just barely fits. X LDFLAGS = -i X EFLSHAREDIR = /usr/share/efl X X--- 14,19 ---- X*************** X*** 26,40 **** X pass2.c icfile.c free.c dclgen.c namgen.c X FILES = $(FILES1) $(FILES2) X X! # libstubs is the interface to the external implmentation of ctime(3) present X! # in /usr/libexec/ctimed. Only the metering code in main.c uses ctime. Since X! # the meter files(s) do not exist no metering is done. Not having ctime linked X! # in saves .75KB of I space and 1.7KB of D space X! LIBS=-lstubs X X- # The ANSI stdio package only uses a few hundred bytes of additional text X- # but that was enough to force the use of overlays. X- X BASE= addr.o alloc.o blklab.o dcl.o dclgen.o error.o exec.o \ X field.o free.o gram.o icfile.o init.o lex.o main.o \ X mk.o misc.o pass2.o print.o struct.o \ X--- 25,32 ---- X pass2.c icfile.c free.c dclgen.c namgen.c X FILES = $(FILES1) $(FILES2) X X! LIBS= X X BASE= addr.o alloc.o blklab.o dcl.o dclgen.o error.o exec.o \ X field.o free.o gram.o icfile.o init.o lex.o main.o \ X mk.o misc.o pass2.o print.o struct.o \ X*************** X*** 43,65 **** X OV1= namgen.o io.o X OV2= simple.o X X! OBJECTS = $(BASE) ${OV1} ${OV2} ${OV3} X X $(PROGRAM): ${OBJECTS} X! /bin/ld $(LDFLAGS) -X -o $(PROGRAM) /lib/crt0.o \ X! -Z ${OV1} -Z ${OV2} -Y ${BASE} $(LIBS) -lc X size $(PROGRAM) X ./catastrophe $(PROGRAM) X X! # Problem: there is still not enough memory for a stack segment. X! # Solution: extract all the error strings from the source, stuff them X! # into an indexed file, and change the error printing routines to extract X! # the strings from that file. X! X! # I decided to use the mkstr program to accomplish this. Unfortunately, X! # that program will rewrite only calls to a subroutine called error(). X! # The solution is to map calls of dclerr(), exprerr(), execerr(), and X! # laberr() to error via some C macros. X ERRDEFS = -D'dclerr(a, b)=error(a,b,DCLERR)'\ X -D'exprerr(a,b)=error(a,b,EXPERR)'\ X -D'execerr(a,b)=error(a,b,EXECERR)'\ X--- 35,56 ---- X OV1= namgen.o io.o X OV2= simple.o X X! OBJECTS = $(BASE) ${OV1} ${OV2} X X+ # Removal of the unusable/incomplete meter() code removed enough code that X+ # an overlay scheme is not needed. Keep the commented overlay layout in X+ # case it's needed in the future. X+ X $(PROGRAM): ${OBJECTS} X! # /bin/ld $(LDFLAGS) -X -o $(PROGRAM) /lib/crt0.o \ X! # -Z ${OV1} -Z ${OV2} -Y ${BASE} -lc X! /bin/ld $(LDFLAGS) -X -o $(PROGRAM) /lib/crt0.o ${OV1} ${OV2} ${BASE} -lc X size $(PROGRAM) X ./catastrophe $(PROGRAM) X X! # Extract strings to a file using mkstr. Unfortunately, that program will X! # rewrite only calls to a subroutine called error(). map calls of dclerr(), X! # exprerr(), execerr(), and laberr() to error via some C macros. X ERRDEFS = -D'dclerr(a, b)=error(a,b,DCLERR)'\ X -D'exprerr(a,b)=error(a,b,EXPERR)'\ X -D'execerr(a,b)=error(a,b,EXECERR)'\ X*************** X*** 86,104 **** X X lex.o init.o : tokdefs X X- X- # Another problem now rears its ugly head: yacc may not be able to X- # process the grammar. X- # Assertion from the orginal Makefile: X- # gram.c can no longer be made on a pdp11 because of yacc limits X- # -- anonymous X- # Rebuttal: X- # It *can* be made on a pdp11 if you make the #define MEMSIZE 5400 in the X- # yacc source instead of 5200. X- # Hint: it is in the file "dextern." There is enough memory X- # available in the yacc binary expand the table. X- # It only took me 35 years to figure that out! X- # X gram.c: gram.head gram.dcl gram.expr gram.exec tokdefs X ( sed gram.in X--- 77,82 ---- X*************** X*** 138,151 **** X # it fails with exactly the same error messages, so I assume that this X # means EFL works on 2.11BSD. ;-) X test: $(PROGRAM) X! $(PROGRAM) "system=gcos" efltest/george.e >z1 2>z2 X cmp z1 efltest/george.out X! $(PROGRAM) "system=gcos" efltest/select.e >z1 2>z2 X cmp z1 efltest/select.out X! $(PROGRAM) "system=gcos" efltest/matmul.e >z1 2>z2 X cmp z1 efltest/matmul.out X # This one fails on 4.3BSD as well, so we will just ignore it for now. X! -$(PROGRAM) "system=gcos" efltest/walk.e >z1 2>z2 X cmp z1 efltest/walk.out X rm -f z1 z2 X @echo TEST OK X--- 116,129 ---- X # it fails with exactly the same error messages, so I assume that this X # means EFL works on 2.11BSD. ;-) X test: $(PROGRAM) X! $(PROGRAM) "system=unix" efltest/george.e >z1 2>z2 X cmp z1 efltest/george.out X! $(PROGRAM) "system=unix" efltest/select.e >z1 2>z2 X cmp z1 efltest/select.out X! $(PROGRAM) "system=unix" efltest/matmul.e >z1 2>z2 X cmp z1 efltest/matmul.out X # This one fails on 4.3BSD as well, so we will just ignore it for now. X! -$(PROGRAM) "system=unix" efltest/walk.e >z1 2>z2 X cmp z1 efltest/walk.out X rm -f z1 z2 X @echo TEST OK X*** ./usr/src/usr.bin/efl/main.c.old Tue Jun 8 23:05:54 1982 X--- ./usr/src/usr.bin/efl/main.c Wed Jul 15 18:09:53 2026 X*************** X*** 1,4 **** X! static char xxxvers[ ] = "\n@(#)EFL VERSION 1.14, 19 AUGUST 1980"; X X /* Compiler for the EFL Programming Language. Written by: X Stuart I. Feldman X--- 1,6 ---- X! /* X! * static char xxxvers[ ] = "@(#)efl 1.15 (2.11BSD) 2026/7/15"; X! */ X X /* Compiler for the EFL Programming Language. Written by: X Stuart I. Feldman X*************** X*** 6,12 **** X Murray Hill, New Jersey X */ X X- X /* Flags: X -d EFL debugging output X -v verbose (print out Pass numbers and memory limits) X--- 8,13 ---- X*************** X*** 17,27 **** X -# do not pass comments through to output X */ X X- X #include "defs" X X! int sysflag; X! X int nerrs = 0; X int nbad = 0; X int nwarns = 0; X--- 18,27 ---- X -# do not pass comments through to output X */ X X #include "defs" X+ #include X X! int sysflag = UNIX; X int nerrs = 0; X int nbad = 0; X int nwarns = 0; X*************** X*** 117,126 **** X { X { "portable", 0, 1, 10, 7, 15}, X { "unix", UNIX, 4, 10, 7, 15 }, X- { "gcos", GCOS, 4, 10, 7, 15 }, X- { "gcosbcd", GCOSBCD, 6, 10, 7, 15}, X- { "cray", CRAY, 8, 10, 7, 15}, X- { "ibm", IBM, 4, 10, 7, 15 }, X { NULL } X }; X X--- 117,122 ---- X*************** X*** 137,154 **** X int nxtindif; X int afterif = 0; X X! #ifdef gcos X! # define BIT(n) (1 << (36 - 1 - n) ) X! # define FORTRAN BIT(1) X! # define FDS BIT(4) X! # define EXEC BIT(5) X! # define FORM BIT(14) X! # define LNO BIT(15) X! # define BCD BIT(16) X! # define OPTZ BIT(17) X! int compile = FORTRAN | FDS; X! #endif X! X X main(argc,argv) X register int argc; X--- 133,142 ---- X int nxtindif; X int afterif = 0; X X! void intrupt() X! { X! done(0); X! } X X main(argc,argv) X register int argc; X*************** X*** 158,182 **** X register char *p; X int neflnm0; X X! #ifdef unix X! int intrupt(); X! sysflag = UNIX; X X- /* X- meter(); X- */ X- if( (signal(2,1) & 01) == 0) X- signal(2, intrupt); X- #endif X- X- #ifdef gcos X- /* X- meter(); X- */ X- sysflag = (intss() ? GCOS : GCOSBCD); X- #endif X- X- X crii(); X --argc; X ++argv; X--- 146,154 ---- X register char *p; X int neflnm0; X X! if (signal(SIGINT, SIG_IGN) != SIG_IGN) X! signal(SIGINT, intrupt); X X crii(); X --argc; X ++argv; X*************** X*** 237,254 **** X nocommentflag = NO; X break; X X- #ifdef gcos X- case 'O': X- case 'o': X- compile |= OPTZ; X- break; X- X- case 'E': X- case 'e': X- compile = 0; X- break; X- #endif X- X default: X fprintf(diagfile, "Illegal EFL flag %c\n", *p); X exit(1); X--- 209,214 ---- X*************** X*** 264,278 **** X implinit(); X neflnm0 = neflnames; X X- #ifdef gcos X- if( intss() ) X- compile = 0; X- else X- gcoutf(); X- #endif X- X- /* fprintf(diagfile, "EFL 1.10\n"); */ X- X if(argc==0) X { X filenames[0] = "-"; X--- 224,229 ---- X*************** X*** 323,336 **** X /* */ X rmiis(); X X- #ifdef gcos X- gccomp(); X- #endif X- X done(nbad); X } X X- X dofile(fd) X FILE *fd; X { X--- 274,282 ---- X*************** X*** 338,348 **** X X fprintf(diagfile, "File %s:\n", filenames[0]); X X- #ifdef gcos X- if( fd==stdin && intss() && inquire(stdin, _TTY) ) X- freopen("*src", "rt", stdin); X- #endif X- X yyin = fileptrs[0] = fd; X yylineno = filelines[0] = 1; X filedepth = 0; X--- 284,289 ---- X*************** X*** 409,415 **** X X } while(graal!=PARSEOF && !ateof); X } X! X ptr bgnproc() X { X ptr bgnexec(); X--- 350,356 ---- X X } while(graal!=PARSEOF && !ateof); X } X! X ptr bgnproc() X { X ptr bgnexec(); X*************** X*** 516,573 **** X eflftn[TYLCOMPLEX] = FTNDOUBLE; X } X X- X- X- X- #ifdef gcos X- meter() X- { X- FILE *mout; X- char *cuserid(), *datime(), *s; X- if(equals(s = cuserid(), "efl")) return; X- mout = fopen("efl/eflmeter", "a"); X- if(mout == NULL) X- fprintf(diagfile,"cannot open meter file"); X- X- else { X- fprintf(mout, "%s user %s at %s\n", X- ( rutss()? "tss " : "batch"), s, datime() ); X- fclose(mout); X- } X- } X- #endif X- X- X- X- #ifdef unix X- meter() /* temporary metering of non-SIF usage */ X- { X- FILE *mout; X- int tvec[2]; X- int uid; X- char *ctime(), *p; X- X- uid = getuid() & 0377; X- if(uid == 91) return; /* ignore sif uses */ X- mout = fopen("/usr/sif/efl/Meter", "a"); X- if(mout == NULL) X- fprintf(diagfile, "cannot open meter file"); X- else { X- time(tvec); X- p = ctime(tvec); X- p[16] = '\0'; X- fprintf(mout,"User %d, %s\n", uid, p+4); X- fclose(mout); X- } X- } X- X- intrupt() X- { X- done(0); X- } X- #endif X- X- X done(k) X int k; X { X--- 457,462 ---- X*************** X*** 576,584 **** X } X X X- X- X- X /* if string has an embedded equal sign, set option with it*/ X eqlstrng(s) X char *s; X--- 465,470 ---- X*************** X*** 597,662 **** X X return(NO); X } X- X- #ifdef gcos X- X- /* redirect output unit */ X- X- gcoutf() X- { X- if (!intss()) X- { X- fputs("\t\t Version 2.10 : read INFO/EFL (03/27/80)\n", stderr); X- if (compile) X- { X- static char name[80] = "s*", opts[20] = "yw"; X- char *opt = (char *)inquire(stdout, _OPTIONS); X- if (!strchr(opt, 't')) X- { /* if stdout is diverted */ X- sprintf(name, "%s\"s*\"", X- (char *)inquire(stdout, _FILENAME)); X- strcpy(&opts[1], opt); X- } X- if (freopen(name, opts, stdout) == NULL) X- cant(name); X- } X- } X- } X- X- X- X- /* call in fortran compiler if necessary */ X- X- gccomp() X- { X- if (compile) X- { X- if (nbad > 0) /* abort */ X- cretsw(EXEC); X- X- else { /* good: call forty */ X- FILE *dstar; /* to intercept "gosys" action */ X- X- if ((dstar = fopen("d*", "wv")) == NULL) X- cant("d*"); X- fputs("$\tforty\tascii", dstar); X- if (fopen("*1", "o") == NULL) X- cant("*1"); X- fclose(stdout, "rl"); X- cretsw(FORM | LNO | BCD); X- if (! tailor.ftncontnu) X- compile |= FORM; X- csetsw(compile); X- gosys("forty"); X- } X- } X- } X- X- X- cant(s) X- char *s; X- { X- ffiler(s); X- done(1); X- } X- #endif X--- 483,485 ---- X*** ./usr/src/usr.bin/efl/icfile.c.old Tue Jun 8 23:05:52 1982 X--- ./usr/src/usr.bin/efl/icfile.c Wed Jul 15 18:06:32 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ /* X+ * "@(#)icfile.c 2.0 (2.11BSD) 2026/7/15"; X+ */ X+ X #include "defs" X X struct { char chars[ 10 ]; }; X*************** X*** 6,26 **** X crii() /* create names for intermediate files */ X { X X- #ifdef unix X sprintf(icfile->filename, "eflc.%d", getpid()); X sprintf(idfile->filename, "efld.%d", getpid()); X sprintf(iefile->filename, "efle.%d", getpid()); X- #endif X- X- #ifdef gcos X- sprintf(icfile->filename, "code.efl"); X- sprintf(idfile->filename, "data.efl"); X- sprintf(iefile->filename, "equv.efl"); X- #endif X } X X- X- X rmiis() X { X rmii(icfile); X--- 10,20 ---- X*************** X*** 28,54 **** X rmii(iefile); X } X X- X- X- X rmii(p) /* discard the intermediate file */ X struct fileblock *p; X { X- #ifdef unix X if(p) X { X fclose(p->fileptr); X unlink(p->filename); X } X- #endif X- X- #ifdef gcos X- if(p) X- fclose(p->fileptr, "d"); X- #endif X } X X- X opiis() X { X opii(icfile); X--- 22,37 ---- X*************** X*** 56,82 **** X opii(iefile); X } X X- X- X- X opii(p) /* open the intermediate file for writing */ X struct fileblock *p; X { X X- #ifdef unix X if( (p->fileptr = fopen(p->filename, "w")) == NULL) X fatal("cannot open intermediate file"); X- #endif X- X- #ifdef gcos X- if( (p->fileptr = fopen(p->filename, "wi")) == NULL) X- fatal("cannot open intermediate file"); X- #endif X- X } X X- X- X swii(p) X struct fileblock *p; X { X--- 39,52 ---- X*************** X*** 83,90 **** X iifilep = p; X } X X- X- X putii(w,n) X int *w, n; X { X--- 53,58 ---- X*************** X*** 92,99 **** X fatal("write error"); X } X X- X- X getii(w, n) X int *w, n; X { X--- 60,65 ---- X*************** X*** 101,109 **** X fatal("read error"); X } X X- X- X- X cliis() X { X clii(icfile); X--- 67,72 ---- X*************** X*** 111,133 **** X clii(iefile); X } X X- X- X- X clii(p) /* close the intermediate file */ X struct fileblock *p; X { X- #ifdef unix X fclose(p->fileptr); X- #endif X- X- #ifdef gcos X- fclose(p->fileptr, "rl"); X- #endif X } X X- X- X rewii(p) /* close and rewind the intermediate file for reading */ X struct fileblock *p; X { X--- 74,85 ---- X*************** X*** 135,153 **** X putic(ICEOF,0); X clii(p); X X- #ifdef unix X if( (p->fileptr = fopen(p->filename, "r")) == NULL) X fatal("cannot open intermediate file"); X- #endif X- X- #ifdef gcos X- if( (p->fileptr = fopen(p->filename, "ri")) == NULL) X- fatal("cannot open intermediate file"); X- #endif X } X X- X- X putic(c,p) X int c; X int p; X--- 87,96 ---- X*************** X*** 159,165 **** X putii(w,2); X } X X- X getic(p) X int *p; X { X--- 102,107 ---- X*************** X*** 170,177 **** X return( w[0] ); X } X X- X- X putsii(l, p) X int l; X char *p; X--- 112,117 ---- X*************** X*** 196,204 **** X putii(&word,1); X } X } X- X- X- X X ptr getsii(n) X int n; X--- 136,141 ---- X*** ./usr/src/usr.bin/efl/dclgen.c.old Tue Jun 8 23:05:46 1982 X--- ./usr/src/usr.bin/efl/dclgen.c Wed Jul 15 09:12:30 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ /* X+ * = "@(#)dclgen.c 2.0 (2.11BSD) 2026/7/15"; X+ */ X+ X #include "defs" X X #define DOCOMMON 1 X*************** X*** 47,57 **** X } X else { X p2str("c main program"); X- if(tailor.ftnsys == CRAY) X- { X- p2stmt(0); X- p2key(FPROGRAM); X- } X } X X if(thisargs) X--- 51,56 ---- X*** ./usr/src/usr.bin/efl/pass2.c.old Tue Jun 8 23:05:56 1982 X--- ./usr/src/usr.bin/efl/pass2.c Wed Jul 15 09:22:19 2026 X*************** X*** 1,3 **** X--- 1,7 ---- X+ /* X+ * = "@(#)pass2.c 2.0 (2.11BSD) 2026/7/15"; X+ */ X+ X #include "defs" X #include X X*************** X*** 319,325 **** X nftncont = 0; X } X X- X p2com(n) /* copy a comment */ X int n; X { X--- 323,328 ---- X*************** X*** 329,337 **** X q = getsii(n); X if(q[0] == '%') /* a literal escape line */ X { X! putc('\n', codefile); X while(--n > 0) X! putc(*++q, codefile); X } X else /* actually a comment line */ X { X--- 332,340 ---- X q = getsii(n); X if(q[0] == '%') /* a literal escape line */ X { X! fputc('\n', codefile); X while(--n > 0) X! fputc(*++q, codefile); X } X else /* actually a comment line */ X { X*************** X*** 341,349 **** X do { X k = (n>71 ? 71 : n); X fprintf(codefile, "\n"); X! putc( tailor.ftnsys==CRAY ? 'C' : 'c' , codefile); X while(k-- > 0) X! putc(*q++, codefile); X n -= 71; X } X while(n > 0); X--- 344,352 ---- X do { X k = (n>71 ? 71 : n); X fprintf(codefile, "\n"); X! fputc('c' , codefile); X while(k-- > 0) X! fputc(*q++, codefile); X n -= 71; X } X while(n > 0); X*************** X*** 350,358 **** X } X } X X- X- X- X p2flush() X { X if(nftnch > 0) X--- 353,358 ---- X*************** X*** 362,384 **** X } X } X X- X- X- X p2putc(c) X char c; X { X if(nftnch >= LINESPACES) /* end of line */ X p2line(0); X! if(tailor.ftnsys == CRAY) X! putc( islower(c) ? toupper(c) : c , codefile); X! else X! putc(c, codefile); X ++nftnch; X } X X- X- X p2line(in) X int in; X { X--- 362,376 ---- X } X } X X p2putc(c) X char c; X { X if(nftnch >= LINESPACES) /* end of line */ X p2line(0); X! fputc(c, codefile); X ++nftnch; X } X X p2line(in) X int in; X { X*************** X*** 401,408 **** X if(in > 0) X p2indent(in); X } X- X- X X p2indent(n) X register int n; X--- 393,398 ---- X*** ./usr/src/usr.bin/ranlib/misc.c.old Tue Sep 28 12:47:40 1993 X--- ./usr/src/usr.bin/ranlib/misc.c Thu Sep 24 06:47:40 2026 X*************** X*** 35,52 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)misc.c 5.2 (Berkeley) 2/26/91"; X #endif X X #include X! #include X #include X #include X #include X! #include "pathnames.h" X X! extern int errno; X! extern char *archive, *malloc(); /* archive name */ X void error(); X char *tname = "temporary file"; /* temporary file "name" */ X X--- 35,53 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)misc.c 5.3 (2.11BSD) 2026/9/21"; X #endif X X #include X! #include X #include X #include X #include X! #include X X! #define _PATH_RANTMP "/tmp/ranlib.XXXXXX" X! X! extern char *archive; X void error(); X char *tname = "temporary file"; /* temporary file "name" */ X X*** ./usr/src/usr.bin/printf/printf.c.old Sun Apr 2 22:41:46 1995 X--- ./usr/src/usr.bin/printf/printf.c Fri May 8 20:25:31 2026 X*************** X*** 31,57 **** X * SUCH DAMAGE. X */ X X! #if !defined(BUILTIN) && !defined(SHELL) && !defined(lint) && defined(DOSCCS) X static char copyright[] = X "@(#) Copyright (c) 1989, 1993\n\ X The Regents of the University of California. All rights reserved.\n"; X X! static char sccsid[] = "@(#)printf.c 8.1 (Berkeley) 7/20/93"; X! #endif /* not lint */ X X! #include X! X #include X- #ifdef SHELL X- #define EOF -1 X- #else X #include X- #endif X #include X! X! extern double atof(); X! extern long strtol(); X! extern int errno; X X /* X * XXX X--- 31,49 ---- X * SUCH DAMAGE. X */ X X! #if !defined(lint) && defined(DOSCCS) X static char copyright[] = X "@(#) Copyright (c) 1989, 1993\n\ X The Regents of the University of California. All rights reserved.\n"; X X! static char sccsid[] = "@(#)printf.c 8.2 (2.11BSD) 2026/5/8"; X! #endif X X! #include X #include X #include X #include X! #include X X /* X * XXX X*** ./usr/src/usr.bin/uname/uname.c.old Sun Feb 5 02:24:13 1995 X--- ./usr/src/usr.bin/uname/uname.c Thu Sep 24 21:05:14 2026 X*************** X*** 36,51 **** X "@(#) Copyright (c) 1993\n\ X The Regents of the University of California. All rights reserved.\n"; X X! static char sccsid[] = "@(#)uname.c 8.1.1 (2.11BSD GTE) 2/4/95"; X! #endif /* not lint */ X X #include X #include X- X #include X X- extern int optind; X- X void usage(); X X int X--- 36,50 ---- X "@(#) Copyright (c) 1993\n\ X The Regents of the University of California. All rights reserved.\n"; X X! static char sccsid[] = "@(#)uname.c 8.1.2 (2.11BSD) 2026/9/24"; X! #endif X X #include X #include X #include X+ #include X+ #include X X void usage(); X X int X*************** X*** 156,161 **** X void X usage() X { X! (void)fprintf(stderr, "usage: uname [-amnrsv]\n"); X! exit(1); X } X--- 155,159 ---- X void X usage() X { X! errx(1, "usage: uname [-amnrsv]"); X } X*** ./usr/src/usr.bin/mkerrlst/Makefile.old Tue Dec 9 09:38:15 2025 X--- ./usr/src/usr.bin/mkerrlst/Makefile Sun Apr 5 17:33:15 2026 X*************** X*** 1,7 **** X # X # Public Domain. 1996/3/14 - Steven Schultz X # X! # @(#)Makefile 1.1 (2.11BSD) 2025/11/27 X # X CFLAGS= -O X LDFLAGS= -i X--- 1,7 ---- X # X # Public Domain. 1996/3/14 - Steven Schultz X # X! # @(#)Makefile 1.2 (2.11BSD) 2026/4/5 X # X CFLAGS= -O X LDFLAGS= -i X*************** X*** 27,32 **** X--- 27,33 ---- X install: mkerrlst X install -c -o root -g staff -m 444 ${MAN} /usr/man/cat1 X install -c -s -o root -g staff -m 755 mkerrlst /usr/bin/mkerrlst X+ /usr/bin/mkerrlst X X lint: ${SRCS} X lint -hax ${SRCS} X*** ./usr/src/usr.bin/mkerrlst/mkerrlst.c.old Fri Mar 15 12:26:38 1996 X--- ./usr/src/usr.bin/mkerrlst/mkerrlst.c Sun Sep 20 18:26:37 2026 X*************** X*** 1,6 **** X /* X * Program Name: mkerrlst.c X! * Date: March 5, 1996 X * Author: S.M. Schultz X * X * ----------------- Modification History --------------- X--- 1,6 ---- X /* X * Program Name: mkerrlst.c X! * Date: September 16, 2026 X * Author: S.M. Schultz X * X * ----------------- Modification History --------------- X*************** X*** 8,13 **** X--- 8,15 ---- X * 1.0 05Mar96 1. Initial release into the public domain. X * 1.1 14Mar96 2. Add ability to take messages from a file X * in place of a fixed array. X+ * 1.2 16Sep2026 3. stdlib has getopt prototype so argc X+ * and argv need to be specified correctly. X */ X X /* X*************** X*** 25,32 **** X X #include X #include X! #include X! #include X #include X #include X #include X--- 27,33 ---- X X #include X #include X! #include X #include X #include X #include X*************** X*** 43,48 **** X--- 44,51 ---- X extern int sys_nerr; X X main(argc,argv) X+ int argc; X+ char **argv; X { X register int c; X int len, maxlen = -1; X*** ./usr/src/usr.bin/xargs/xargs.c.old Fri Jun 23 22:40:27 1995 X--- ./usr/src/usr.bin/xargs/xargs.c Thu Sep 24 08:13:53 2026 X*************** X*** 38,47 **** X static char copyright[] = X "@(#) Copyright (c) 1990, 1993\n\ X The Regents of the University of California. All rights reserved.\n"; X- #endif X X! #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)xargs.c 8.1 (Berkeley) 6/6/93"; X #endif X X #include X--- 38,45 ---- X static char copyright[] = X "@(#) Copyright (c) 1990, 1993\n\ X The Regents of the University of California. All rights reserved.\n"; X X! static char sccsid[] = "@(#)xargs.c 8.2 (2.11BSD) 2026/9/24"; X #endif X X #include X*************** X*** 49,59 **** X #include X #include X #include X! #include "pathnames.h" X X! extern int errno; X! extern char *optarg; X! extern int optind; X X /* X * This is defined for pdp11s. ARG_MAX is usually defined in X--- 47,56 ---- X #include X #include X #include X! #include X! #include X X! #define _PATH_ECHO "/bin/echo" X X /* X * This is defined for pdp11s. ARG_MAX is usually defined in X*************** X*** 68,74 **** X X int tflag, rval; X X! void err(); X void run(); X void usage(); X X--- 65,72 ---- X X int tflag, rval; X X! static char insufficient[] = "insufficient space for argument(s)"; X! X void run(); X void usage(); X X*************** X*** 102,108 **** X case 'n': X nflag = 1; X if ((nargs = atoi(optarg)) <= 0) X! err("illegal argument count"); X break; X case 's': X nline = atoi(optarg); X--- 100,106 ---- X case 'n': X nflag = 1; X if ((nargs = atoi(optarg)) <= 0) X! errx(1, "illegal argument count %d", nargs); X break; X case 's': X nline = atoi(optarg); X*************** X*** 128,136 **** X * the maximum arguments to be read from stdin and the trailing X * NULL. X */ X! if (!(av = bxp = X! (char **)malloc((u_int)(1 + argc + nargs + 1) * sizeof(char **)))) X! err("%s", strerror(errno)); X X /* X * Use the user's name for the utility as argv[0], just like the X--- 126,134 ---- X * the maximum arguments to be read from stdin and the trailing X * NULL. X */ X! cnt = (1 + argc + nargs + 1) * sizeof(char **); X! if (!(av = bxp = (char **)malloc(cnt))) X! errx(1, "malloc(%d)", cnt); X X /* X * Use the user's name for the utility as argv[0], just like the X*************** X*** 163,172 **** X */ X nline -= cnt; X if (nline <= 0) X! err("insufficient space for command"); X X! if (!(bbp = (char *)malloc((u_int)nline + 1))) X! err("%s", strerror(errno)); X ebp = (argp = p = bbp) + nline - 1; X X for (insingle = indouble = 0;;) X--- 161,170 ---- X */ X nline -= cnt; X if (nline <= 0) X! errx(1, "insufficient space for command"); X X! if (!(bbp = (char *)malloc(nline + 1))) X! errx(1, "malloc(%d)", nline + 1); X ebp = (argp = p = bbp) + nline - 1; X X for (insingle = indouble = 0;;) X*************** X*** 196,202 **** X X /* Quotes do not escape newlines. */ X arg1: if (insingle || indouble) X! err("unterminated quote"); X X arg2: *p = '\0'; X *xp++ = argp; X--- 194,200 ---- X X /* Quotes do not escape newlines. */ X arg1: if (insingle || indouble) X! errx(1, "unterminated quote"); X X arg2: *p = '\0'; X *xp++ = argp; X*************** X*** 208,214 **** X */ X if (xp == exp || p == ebp || ch == EOF) { X if (xflag && xp != exp && p == ebp) X! err("insufficient space for arguments"); X *xp = NULL; X run(av); X if (ch == EOF) X--- 206,212 ---- X */ X if (xp == exp || p == ebp || ch == EOF) { X if (xflag && xp != exp && p == ebp) X! errx(1, insufficient); X *xp = NULL; X run(av); X if (ch == EOF) X*************** X*** 232,238 **** X case '\\': X /* Backslash escapes anything, is escaped by quotes. */ X if (!insingle && !indouble && (ch = getchar()) == EOF) X! err("backslash at EOF"); X /* FALLTHROUGH */ X default: X addch: if (p < ebp) { X--- 230,236 ---- X case '\\': X /* Backslash escapes anything, is escaped by quotes. */ X if (!insingle && !indouble && (ch = getchar()) == EOF) X! errx(1, "backslash at EOF"); X /* FALLTHROUGH */ X default: X addch: if (p < ebp) { X*************** X*** 242,251 **** X X /* If only one argument, not enough buffer space. */ X if (bxp == xp) X! err("insufficient space for argument"); X /* Didn't hit argument limit, so if xflag object. */ X if (xflag) X! err("insufficient space for arguments"); X X *xp = NULL; X run(av); X--- 240,249 ---- X X /* If only one argument, not enough buffer space. */ X if (bxp == xp) X! errx(1, insufficient); X /* Didn't hit argument limit, so if xflag object. */ X if (xflag) X! errx(1, insufficient); X X *xp = NULL; X run(av); X*************** X*** 278,284 **** X noinvoke = 0; X switch(pid = vfork()) { X case -1: X! err("vfork: %s", strerror(errno)); X case 0: X execvp(argv[0], argv); X (void)fprintf(stderr, X--- 276,282 ---- X noinvoke = 0; X switch(pid = vfork()) { X case -1: X! err(1, "vfork"); X case 0: X execvp(argv[0], argv); X (void)fprintf(stderr, X*************** X*** 288,294 **** X } X pid = waitpid(pid, &status, 0); X if (pid == -1) X! err("waitpid: %s", strerror(errno)); X /* If we couldn't invoke the utility, exit 127. */ X if (noinvoke) X exit(127); X--- 286,292 ---- X } X pid = waitpid(pid, &status, 0); X if (pid == -1) X! err(1, "waitpid"); X /* If we couldn't invoke the utility, exit 127. */ X if (noinvoke) X exit(127); X*************** X*** 302,337 **** X void X usage() X { X! (void)fprintf(stderr, X! "usage: xargs [-t] [-n number [-x]] [-s size] [utility [argument ...]]\n"); X! exit(1); X! } X! X! #if __STDC__ X! #include X! #else X! #include X! #endif X! X! void X! #if __STDC__ X! err(const char *fmt, ...) X! #else X! err(fmt, va_alist) X! char *fmt; X! va_dcl X! #endif X! { X! va_list ap; X! #if __STDC__ X! va_start(ap, fmt); X! #else X! va_start(ap); X! #endif X! (void)fprintf(stderr, "xargs: "); X! (void)vfprintf(stderr, fmt, ap); X! va_end(ap); X! (void)fprintf(stderr, "\n"); X! exit(1); X! /* NOTREACHED */ X } X--- 300,305 ---- X void X usage() X { X! errx(1, X! "usage: xargs [-t] [-n number [-x]] [-s size] [utility [argument ...]]"); X } X*** ./usr/src/usr.bin/patch/pch.c.old Thu Jun 23 14:10:36 1988 X--- ./usr/src/usr.bin/patch/pch.c Mon Jun 22 07:29:29 2026 X*************** X*** 1,5 **** X! /* $Header: pch.c,v 2.0.1.7 88/06/03 15:13:28 lwall Locked $ X! * X * $Log: pch.c,v $ X * Revision 2.0.1.7 88/06/03 15:13:28 lwall X * patch10: Can now find patches in shar scripts. X--- 1,8 ---- X! #if !defined(lint) && defined(DOSCCS) X! char rcsid[] = "pch.c 2.1 (2.11BSD) 2026/6/21"; X! #endif X! X! /* X * $Log: pch.c,v $ X * Revision 2.0.1.7 88/06/03 15:13:28 lwall X * patch10: Can now find patches in shar scripts. X*************** X*** 82,97 **** X if (filename == Nullch || !*filename || strEQ(filename, "-")) { X pfp = fopen(TMPPATNAME, "w"); X if (pfp == Nullfp) X! fatal2("patch: can't create %s.\n", TMPPATNAME); X while (fgets(buf, sizeof buf, stdin) != Nullch) X fputs(buf, pfp); X! Fclose(pfp); X filename = TMPPATNAME; X } X pfp = fopen(filename, "r"); X if (pfp == Nullfp) X! fatal2("patch file %s not found\n", filename); X! Fstat(fileno(pfp), &filestat); X p_filesize = filestat.st_size; X next_intuit_at(0L,1L); /* start at the beginning */ X set_hunkmax(); X--- 85,100 ---- X if (filename == Nullch || !*filename || strEQ(filename, "-")) { X pfp = fopen(TMPPATNAME, "w"); X if (pfp == Nullfp) X! fatal("patch: can't create %s\n", TMPPATNAME); X while (fgets(buf, sizeof buf, stdin) != Nullch) X fputs(buf, pfp); X! fclose(pfp); X filename = TMPPATNAME; X } X pfp = fopen(filename, "r"); X if (pfp == Nullfp) X! fatal("patch file %s not found\n", filename); X! fstat(fileno(pfp), &filestat); X p_filesize = filestat.st_size; X next_intuit_at(0L,1L); /* start at the beginning */ X set_hunkmax(); X*************** X*** 102,113 **** X void X set_hunkmax() X { X- #ifndef lint X if (p_line == Null(char**)) X p_line = (char**) malloc((MEM)hunkmax * sizeof(char *)); X if (p_len == Null(short*)) X p_len = (short*) malloc((MEM)hunkmax * sizeof(short)); X- #endif X if (p_char == Nullch) X p_char = (char*) malloc((MEM)hunkmax * sizeof(char)); X } X--- 105,114 ---- X*************** X*** 124,138 **** X * p_len's old space. Not on PDP-11's however. But it doesn't matter. X */ X assert(p_line != Null(char**) && p_len != Null(short*) && p_char != Nullch); X- #ifndef lint X p_line = (char**) realloc((char*)p_line, (MEM)hunkmax * sizeof(char *)); X p_len = (short*) realloc((char*)p_len, (MEM)hunkmax * sizeof(short)); X p_char = (char*) realloc((char*)p_char, (MEM)hunkmax * sizeof(char)); X- #endif X if (p_line != Null(char**) && p_len != Null(short*) && p_char != Nullch) X return; X if (!using_plan_a) X! fatal1("patch: out of memory (grow_hunkmax)\n"); X out_of_mem = TRUE; /* whatever is null will be allocated again */ X /* from within plan_a(), of all places */ X } X--- 125,137 ---- X * p_len's old space. Not on PDP-11's however. But it doesn't matter. X */ X assert(p_line != Null(char**) && p_len != Null(short*) && p_char != Nullch); X p_line = (char**) realloc((char*)p_line, (MEM)hunkmax * sizeof(char *)); X p_len = (short*) realloc((char*)p_len, (MEM)hunkmax * sizeof(short)); X p_char = (char*) realloc((char*)p_char, (MEM)hunkmax * sizeof(char)); X if (p_line != Null(char**) && p_len != Null(short*) && p_char != Nullch) X return; X if (!using_plan_a) X! fatal("patch: out of memory (grow_hunkmax)\n"); X out_of_mem = TRUE; /* whatever is null will be allocated again */ X /* from within plan_a(), of all places */ X } X*************** X*** 144,166 **** X { X if (p_base != 0L && p_base >= p_filesize) { X if (verbose) X! say1("done\n"); X return FALSE; X } X if (verbose) X! say1("Hmm..."); X diff_type = intuit_diff_type(); X if (!diff_type) { X if (p_base != 0L) { X if (verbose) X! say1(" Ignoring the trailing garbage.\ndone\n"); X } X else X! say1(" I can't seem to find a patch in there anywhere.\n"); X return FALSE; X } X if (verbose) X! say3(" %sooks like %s to me...\n", X (p_base == 0L ? "L" : "The next patch l"), X diff_type == CONTEXT_DIFF ? "a context diff" : X diff_type == NEW_CONTEXT_DIFF ? "a new-style context diff" : X--- 143,165 ---- X { X if (p_base != 0L && p_base >= p_filesize) { X if (verbose) X! fputs("done\n", stderr); X return FALSE; X } X if (verbose) X! fputs("Hmm...", stderr); X diff_type = intuit_diff_type(); X if (!diff_type) { X if (p_base != 0L) { X if (verbose) X! fputs(" Ignoring the trailing garbage\ndone\n", stderr); X } X else X! fputs(" I can't seem to find a patch in there anywhere\n", stderr); X return FALSE; X } X if (verbose) X! fprintf(stderr, " %sooks like %s to me...\n", X (p_base == 0L ? "L" : "The next patch l"), X diff_type == CONTEXT_DIFF ? "a context diff" : X diff_type == NEW_CONTEXT_DIFF ? "a new-style context diff" : X*************** X*** 167,181 **** X diff_type == NORMAL_DIFF ? "a normal diff" : X "an ed script" ); X if (p_indent && verbose) X! say3("(Patch is indented %d space%s.)\n", p_indent, p_indent==1?"":"s"); X skip_to(p_start,p_sline); X while (filearg[0] == Nullch) { X if (force) { X! say1("No file to patch. Skipping...\n"); X filearg[0] = savestr(bestguess); X return TRUE; X } X! ask1("File to patch: "); X if (*buf != '\n') { X if (bestguess) X free(bestguess); X--- 166,180 ---- X diff_type == NORMAL_DIFF ? "a normal diff" : X "an ed script" ); X if (p_indent && verbose) X! fprintf(stderr, "(Patch is indented %d space%s)\n", p_indent, p_indent==1?"":"s"); X skip_to(p_start,p_sline); X while (filearg[0] == Nullch) { X if (force) { X! fputs("No file to patch. Skipping...\n", stderr); X filearg[0] = savestr(bestguess); X return TRUE; X } X! ask("File to patch: "); X if (*buf != '\n') { X if (bestguess) X free(bestguess); X*************** X*** 183,194 **** X filearg[0] = fetchname(buf, 0, FALSE); X } X if (filearg[0] == Nullch) { X! ask1("No file found--skip this patch? [n] "); X if (*buf != 'y') { X continue; X } X if (verbose) X! say1("Skipping patch...\n"); X filearg[0] = fetchname(bestguess, 0, TRUE); X skip_rest_of_patch = TRUE; X return TRUE; X--- 182,193 ---- X filearg[0] = fetchname(buf, 0, FALSE); X } X if (filearg[0] == Nullch) { X! ask("No file found--skip this patch? [n] "); X if (*buf != 'y') { X continue; X } X if (verbose) X! fputs("Skipping patch...\n", stderr); X filearg[0] = fetchname(bestguess, 0, TRUE); X skip_rest_of_patch = TRUE; X return TRUE; X*************** X*** 202,218 **** X int X intuit_diff_type() X { X! Reg4 long this_line = 0; X! Reg5 long previous_line; X! Reg6 long first_command_line = -1; X long fcl_line; X! Reg7 bool last_line_was_command = FALSE; X! Reg8 bool this_is_a_command = FALSE; X! Reg9 bool stars_last_line = FALSE; X! Reg10 bool stars_this_line = FALSE; X! Reg3 int indent; X! Reg1 char *s; X! Reg2 char *t; X char *indtmp = Nullch; X char *oldtmp = Nullch; X char *newtmp = Nullch; X--- 201,217 ---- X int X intuit_diff_type() X { X! long this_line = 0; X! long previous_line; X! long first_command_line = -1; X long fcl_line; X! bool last_line_was_command = FALSE; X! bool this_is_a_command = FALSE; X! bool stars_last_line = FALSE; X! bool stars_this_line = FALSE; X! register int indent; X! register char *s; X! register char *t; X char *indtmp = Nullch; X char *oldtmp = Nullch; X char *newtmp = Nullch; X*************** X*** 219,229 **** X char *indname = Nullch; X char *oldname = Nullch; X char *newname = Nullch; X! Reg11 int retval; X bool no_filearg = (filearg[0] == Nullch); X X ok_to_create_file = FALSE; X! Fseek(pfp, p_base, 0); X p_input_line = p_bline - 1; X for (;;) { X previous_line = this_line; X--- 218,228 ---- X char *indname = Nullch; X char *oldname = Nullch; X char *newname = Nullch; X! int retval; X bool no_filearg = (filearg[0] == Nullch); X X ok_to_create_file = FALSE; X! fseek(pfp, p_base, 0); X p_input_line = p_bline - 1; X for (;;) { X previous_line = this_line; X*************** X*** 393,409 **** X X assert(p_base <= file_pos); X if (verbose && p_base < file_pos) { X! Fseek(pfp, p_base, 0); X! say1("The text leading up to this was:\n--------------------------\n"); X while (ftell(pfp) < file_pos) { X ret = fgets(buf, sizeof buf, pfp); X assert(ret != Nullch); X! say2("|%s", buf); X } X! say1("--------------------------\n"); X } X else X! Fseek(pfp, file_pos, 0); X p_input_line = file_line - 1; X } X X--- 392,408 ---- X X assert(p_base <= file_pos); X if (verbose && p_base < file_pos) { X! fseek(pfp, p_base, 0); X! fputs("The text leading up to this was:\n--------------------------\n", stderr); X while (ftell(pfp) < file_pos) { X ret = fgets(buf, sizeof buf, pfp); X assert(ret != Nullch); X! fprintf(stderr, "|%s", buf); X } X! fputs("--------------------------\n", stderr); X } X else X! fseek(pfp, file_pos, 0); X p_input_line = file_line - 1; X } X X*************** X*** 412,420 **** X bool X another_hunk() X { X! Reg1 char *s; X! Reg8 char *ret; X! Reg2 int context = 0; X X while (p_end >= 0) { X if (p_end == p_efake) X--- 411,419 ---- X bool X another_hunk() X { X! register char *s; X! char *ret; X! register int context = 0; X X while (p_end >= 0) { X if (p_end == p_efake) X*************** X*** 431,447 **** X long line_beginning = ftell(pfp); X /* file pos of the current line */ X LINENUM repl_beginning = 0; /* index of --- line */ X! Reg4 LINENUM fillcnt = 0; /* #lines of missing ptrn or repl */ X! Reg5 LINENUM fillsrc; /* index of first line to copy */ X! Reg6 LINENUM filldst; /* index of first missing line */ X bool ptrn_spaces_eaten = FALSE; /* ptrn was slightly misformed */ X! Reg9 bool repl_could_be_missing = TRUE; X /* no + or ! lines in this hunk */ X bool repl_missing = FALSE; /* we are now backtracking */ X long repl_backtrack_position = 0; X /* file pos of first repl line */ X LINENUM repl_patch_line; /* input line number for same */ X! Reg7 LINENUM ptrn_copiable = 0; X /* # of copiable lines in ptrn */ X X ret = pgets(buf, sizeof buf, pfp); X--- 430,446 ---- X long line_beginning = ftell(pfp); X /* file pos of the current line */ X LINENUM repl_beginning = 0; /* index of --- line */ X! LINENUM fillcnt = 0; /* #lines of missing ptrn or repl */ X! LINENUM fillsrc; /* index of first line to copy */ X! LINENUM filldst; /* index of first missing line */ X bool ptrn_spaces_eaten = FALSE; /* ptrn was slightly misformed */ X! bool repl_could_be_missing = TRUE; X /* no + or ! lines in this hunk */ X bool repl_missing = FALSE; /* we are now backtracking */ X long repl_backtrack_position = 0; X /* file pos of first repl line */ X LINENUM repl_patch_line; /* input line number for same */ X! LINENUM ptrn_copiable = 0; X /* # of copiable lines in ptrn */ X X ret = pgets(buf, sizeof buf, pfp); X*************** X*** 458,480 **** X p_input_line++; X if (ret == Nullch) { X if (p_max - p_end < 4) X! Strcpy(buf, " \n"); /* assume blank lines got chopped */ X else { X if (repl_beginning && repl_could_be_missing) { X repl_missing = TRUE; X goto hunk_done; X } X! fatal1("Unexpected end of file in patch.\n"); X } X } X p_end++; X assert(p_end < hunkmax); X p_char[p_end] = *buf; X- #ifdef zilog X- p_line[(short)p_end] = Nullch; X- #else X p_line[p_end] = Nullch; X- #endif X switch (*buf) { X case '*': X if (strnEQ(buf, "********", 8)) { X--- 457,475 ---- X p_input_line++; X if (ret == Nullch) { X if (p_max - p_end < 4) X! strcpy(buf, " \n"); /* assume blank lines got chopped */ X else { X if (repl_beginning && repl_could_be_missing) { X repl_missing = TRUE; X goto hunk_done; X } X! fatal("Unexpected end of file in patch\n"); X } X } X p_end++; X assert(p_end < hunkmax); X p_char[p_end] = *buf; X p_line[p_end] = Nullch; X switch (*buf) { X case '*': X if (strnEQ(buf, "********", 8)) { X*************** X*** 483,489 **** X goto hunk_done; X } X else X! fatal2("Unexpected end of hunk at line %ld.\n", X p_input_line); X } X if (p_end != 0) { X--- 478,484 ---- X goto hunk_done; X } X else X! fatal("Unexpected end of hunk at line %ld.\n", X p_input_line); X } X if (p_end != 0) { X*************** X*** 491,497 **** X repl_missing = TRUE; X goto hunk_done; X } X! fatal3("Unexpected *** at line %ld: %s", p_input_line, buf); X } X context = 0; X p_line[p_end] = savestr(buf); X--- 486,492 ---- X repl_missing = TRUE; X goto hunk_done; X } X! fatal("Unexpected *** at line %ld: %s", p_input_line, buf); X } X context = 0; X p_line[p_end] = savestr(buf); X*************** X*** 542,553 **** X repl_missing = TRUE; X goto hunk_done; X } X! fatal3( X "Duplicate \"---\" at line %ld--check line numbers at line %ld.\n", X p_input_line, p_hunk_beg + repl_beginning); X } X else { X! fatal4( X "%s \"---\" at line %ld--check line numbers at line %ld.\n", X (p_end <= p_ptrn_lines X ? "Premature" X--- 537,548 ---- X repl_missing = TRUE; X goto hunk_done; X } X! fatal( X "Duplicate \"---\" at line %ld--check line numbers at line %ld.\n", X p_input_line, p_hunk_beg + repl_beginning); X } X else { X! fatal( X "%s \"---\" at line %ld--check line numbers at line %ld.\n", X (p_end <= p_ptrn_lines X ? "Premature" X*************** X*** 584,590 **** X } X p_max = p_repl_lines + p_end; X if (p_max > MAXHUNKSIZE) X! fatal4("Hunk too large (%ld lines) at line %ld: %s", X p_max, p_input_line, buf); X while (p_max >= hunkmax) X grow_hunkmax(); X--- 579,585 ---- X } X p_max = p_repl_lines + p_end; X if (p_max > MAXHUNKSIZE) X! fatal("Hunk too large (%ld lines) at line %ld: %s", X p_max, p_input_line, buf); X while (p_max >= hunkmax) X grow_hunkmax(); X*************** X*** 665,671 **** X X hunk_done: X if (p_end >=0 && !repl_beginning) X! fatal2("No --- found in patch at line %ld\n", pch_hunk_beg()); X X if (repl_missing) { X X--- 660,666 ---- X X hunk_done: X if (p_end >=0 && !repl_beginning) X! fatal("No --- found in patch at line %ld\n", pch_hunk_beg()); X X if (repl_missing) { X X*************** X*** 673,679 **** X p_input_line = repl_patch_line; X for (p_end--; p_end > repl_beginning; p_end--) X free(p_line[p_end]); X! Fseek(pfp, repl_backtrack_position, 0); X X /* redundant 'new' context lines were omitted - set */ X /* up to fill them in from the old file context */ X--- 668,674 ---- X p_input_line = repl_patch_line; X for (p_end--; p_end > repl_beginning; p_end--) X free(p_line[p_end]); X! fseek(pfp, repl_backtrack_position, 0); X X /* redundant 'new' context lines were omitted - set */ X /* up to fill them in from the old file context */ X*************** X*** 686,692 **** X if (diff_type == CONTEXT_DIFF && X (fillcnt || (p_first > 1 && ptrn_copiable > 2*p_context)) ) { X if (verbose) X! say4("%s\n%s\n%s\n", X "(Fascinating--this is really a new-style context diff but without", X "the telltale extra asterisks on the *** line that usually indicate", X "the new style...)"); X--- 681,687 ---- X if (diff_type == CONTEXT_DIFF && X (fillcnt || (p_first > 1 && ptrn_copiable > 2*p_context)) ) { X if (verbose) X! fprintf(stderr, "%s\n%s\n%s\n", X "(Fascinating--this is really a new-style context diff but without", X "the telltale extra asterisks on the *** line that usually indicate", X "the new style...)"); X*************** X*** 701,707 **** X while (fillsrc <= p_end && p_char[fillsrc] != ' ') X fillsrc++; X if (fillsrc > p_end) X! fatal2("Replacement text or line numbers mangled in hunk at line %ld\n", X p_hunk_beg); X p_line[filldst] = p_line[fillsrc]; X p_char[filldst] = p_char[fillsrc]; X--- 696,702 ---- X while (fillsrc <= p_end && p_char[fillsrc] != ' ') X fillsrc++; X if (fillsrc > p_end) X! fatal("Replacement text or line numbers mangled in hunk at line %ld\n", X p_hunk_beg); X p_line[filldst] = p_line[fillsrc]; X p_char[filldst] = p_char[fillsrc]; X*************** X*** 722,728 **** X } X else { /* normal diff--fake it up */ X char hunk_type; X! Reg3 int i; X LINENUM min, max; X long line_beginning = ftell(pfp); X X--- 717,723 ---- X } X else { /* normal diff--fake it up */ X char hunk_type; X! register int i; X LINENUM min, max; X long line_beginning = ftell(pfp); X X*************** X*** 754,766 **** X min++; X p_end = p_ptrn_lines + 1 + max - min + 1; X if (p_end > MAXHUNKSIZE) X! fatal4("Hunk too large (%ld lines) at line %ld: %s", X p_end, p_input_line, buf); X while (p_end >= hunkmax) X grow_hunkmax(); X p_newfirst = min; X p_repl_lines = max - min + 1; X! Sprintf(buf, "*** %ld,%ld\n", p_first, p_first + p_ptrn_lines - 1); X p_line[0] = savestr(buf); X if (out_of_mem) { X p_end = -1; X--- 749,761 ---- X min++; X p_end = p_ptrn_lines + 1 + max - min + 1; X if (p_end > MAXHUNKSIZE) X! fatal("Hunk too large (%ld lines) at line %ld: %s", X p_end, p_input_line, buf); X while (p_end >= hunkmax) X grow_hunkmax(); X p_newfirst = min; X p_repl_lines = max - min + 1; X! sprintf(buf, "*** %ld,%ld\n", p_first, p_first + p_ptrn_lines - 1); X p_line[0] = savestr(buf); X if (out_of_mem) { X p_end = -1; X*************** X*** 771,780 **** X ret = pgets(buf, sizeof buf, pfp); X p_input_line++; X if (ret == Nullch) X! fatal2("Unexpected end of file in patch at line %ld.\n", X p_input_line); X if (*buf != '<') X! fatal2("< expected at line %ld of patch.\n", p_input_line); X p_line[i] = savestr(buf+2); X if (out_of_mem) { X p_end = i-1; X--- 766,775 ---- X ret = pgets(buf, sizeof buf, pfp); X p_input_line++; X if (ret == Nullch) X! fatal("Unexpected end of file in patch at line %ld\n", X p_input_line); X if (*buf != '<') X! fatal("< expected at line %ld of patch\n", p_input_line); X p_line[i] = savestr(buf+2); X if (out_of_mem) { X p_end = i-1; X*************** X*** 787,798 **** X ret = pgets(buf, sizeof buf, pfp); X p_input_line++; X if (ret == Nullch) X! fatal2("Unexpected end of file in patch at line %ld.\n", X p_input_line); X if (*buf != '-') X! fatal2("--- expected at line %ld of patch.\n", p_input_line); X } X! Sprintf(buf, "--- %ld,%ld\n", min, max); X p_line[i] = savestr(buf); X if (out_of_mem) { X p_end = i-1; X--- 782,793 ---- X ret = pgets(buf, sizeof buf, pfp); X p_input_line++; X if (ret == Nullch) X! fatal("Unexpected end of file in patch at line %ld\n", X p_input_line); X if (*buf != '-') X! fatal("--- expected at line %ld of patch\n", p_input_line); X } X! sprintf(buf, "--- %ld,%ld\n", min, max); X p_line[i] = savestr(buf); X if (out_of_mem) { X p_end = i-1; X*************** X*** 803,812 **** X ret = pgets(buf, sizeof buf, pfp); X p_input_line++; X if (ret == Nullch) X! fatal2("Unexpected end of file in patch at line %ld.\n", X p_input_line); X if (*buf != '>') X! fatal2("> expected at line %ld of patch.\n", p_input_line); X p_line[i] = savestr(buf+2); X if (out_of_mem) { X p_end = i-1; X--- 798,807 ---- X ret = pgets(buf, sizeof buf, pfp); X p_input_line++; X if (ret == Nullch) X! fatal("Unexpected end of file in patch at line %ld\n", X p_input_line); X if (*buf != '>') X! fatal("> expected at line %ld of patch\n", p_input_line); X p_line[i] = savestr(buf+2); X if (out_of_mem) { X p_end = i-1; X*************** X*** 818,824 **** X } X if (reverse) /* backwards patch? */ X if (!pch_swap()) X! say1("Not enough memory to swap next hunk!\n"); X #ifdef DEBUGGING X if (debug & 2) { X int i; X--- 813,819 ---- X } X if (reverse) /* backwards patch? */ X if (!pch_swap()) X! fputs("Not enough memory to swap next hunk!\n", stderr); X #ifdef DEBUGGING X if (debug & 2) { X int i; X*************** X*** 830,836 **** X else X special = ' '; X fprintf(stderr, "%3d %c %c %s", i, p_char[i], special, p_line[i]); X! Fflush(stderr); X } X } X #endif X--- 825,831 ---- X else X special = ' '; X fprintf(stderr, "%3d %c %c %s", i, p_char[i], special, p_line[i]); X! fflush(stderr); X } X } X #endif X*************** X*** 839,847 **** X return TRUE; X X malformed: X! fatal3("Malformed patch at line %ld: %s", p_input_line, buf); X /* about as informative as "Syntax error" in C */ X- return FALSE; /* for lint */ X } X X /* Input a line from the patch file, worrying about indentation. */ X--- 834,841 ---- X return TRUE; X X malformed: X! fatal("Malformed patch at line %ld: %s", p_input_line, buf); X /* about as informative as "Syntax error" in C */ X } X X /* Input a line from the patch file, worrying about indentation. */ X*************** X*** 853,860 **** X FILE *fp; X { X char *ret = fgets(bf, sz, fp); X! Reg1 char *s; X! Reg2 int indent = 0; X X if (p_indent && ret != Nullch) { X for (s=buf; X--- 847,854 ---- X FILE *fp; X { X char *ret = fgets(bf, sz, fp); X! register char *s; X! register int indent = 0; X X if (p_indent && ret != Nullch) { X for (s=buf; X*************** X*** 865,871 **** X indent++; X } X if (buf != s) X! Strcpy(buf, s); X } X return ret; X } X--- 859,865 ---- X indent++; X } X if (buf != s) X! strcpy(buf, s); X } X return ret; X } X*************** X*** 878,887 **** X char **tp_line; /* the text of the hunk */ X short *tp_len; /* length of each line */ X char *tp_char; /* +, -, and ! */ X! Reg1 LINENUM i; X! Reg2 LINENUM n; X bool blankline = FALSE; X! Reg3 char *s; X X i = p_first; X p_first = p_newfirst; X--- 872,881 ---- X char **tp_line; /* the text of the hunk */ X short *tp_len; /* length of each line */ X char *tp_char; /* +, -, and ! */ X! register LINENUM i; X! register LINENUM n; X bool blankline = FALSE; X! register char *s; X X i = p_first; X p_first = p_newfirst; X*************** X*** 897,903 **** X p_char = Nullch; X set_hunkmax(); X if (p_line == Null(char**) || p_len == Null(short*) || p_char == Nullch) { X- #ifndef lint X if (p_line == Null(char**)) X free((char*)p_line); X p_line = tp_line; X--- 891,896 ---- X*************** X*** 904,910 **** X if (p_len == Null(short*)) X free((char*)p_len); X p_len = tp_len; X- #endif X if (p_char == Nullch) X free((char*)p_char); X p_char = tp_char; X--- 897,902 ---- X*************** X*** 964,975 **** X i = p_ptrn_lines; X p_ptrn_lines = p_repl_lines; X p_repl_lines = i; X- #ifndef lint X if (tp_line == Null(char**)) X free((char*)tp_line); X if (tp_len == Null(short*)) X free((char*)tp_len); X- #endif X if (tp_char == Nullch) X free((char*)tp_char); X return TRUE; X--- 956,965 ---- X*************** X*** 1063,1081 **** X void X do_ed_script() X { X! Reg1 char *t; X! Reg2 long beginning_of_this_line; X! Reg3 bool this_line_is_command = FALSE; X! Reg4 FILE *pipefp; X! FILE *popen(); X X if (!skip_rest_of_patch) { X! Unlink(TMPOUTNAME); X copy_file(filearg[0], TMPOUTNAME); X if (verbose) X! Sprintf(buf, "/bin/ed %s", TMPOUTNAME); X else X! Sprintf(buf, "/bin/ed - %s", TMPOUTNAME); X pipefp = popen(buf, "w"); X } X for (;;) { X--- 1053,1070 ---- X void X do_ed_script() X { X! register char *t; X! register long beginning_of_this_line; X! register bool this_line_is_command = FALSE; X! FILE *pipefp; X X if (!skip_rest_of_patch) { X! unlink(TMPOUTNAME); X copy_file(filearg[0], TMPOUTNAME); X if (verbose) X! sprintf(buf, "/bin/ed %s", TMPOUTNAME); X else X! sprintf(buf, "/bin/ed - %s", TMPOUTNAME); X pipefp = popen(buf, "w"); X } X for (;;) { X*************** X*** 1110,1117 **** X return; X fprintf(pipefp, "w\n"); X fprintf(pipefp, "q\n"); X! Fflush(pipefp); X! Pclose(pipefp); X ignore_signals(); X if (move_file(TMPOUTNAME, outname) < 0) { X toutkeep = TRUE; X--- 1099,1106 ---- X return; X fprintf(pipefp, "w\n"); X fprintf(pipefp, "q\n"); X! fflush(pipefp); X! pclose(pipefp); X ignore_signals(); X if (move_file(TMPOUTNAME, outname) < 0) { X toutkeep = TRUE; X*** ./usr/src/usr.bin/patch/inp.c.old Sun Dec 8 01:22:40 1996 X--- ./usr/src/usr.bin/patch/inp.c Mon Jun 22 07:20:39 2026 X*************** X*** 1,5 **** X! /* $Header: inp.c,v 2.0.1.2 96/12/7 22:15:00 sms $ X! * X * $Log: inp.c,v $ X * Revision 2.0.1.2 96/12/7 22:15:00 sms X * Files right up against 64kb in size caused patch to core dump because X--- 1,8 ---- X! #if !defined(lint) && defined(DOSCCS) X! char rcsid[] = "inp.c 2.1 (2.11BSD) 2026/6/18"; X! #endif X! X! /* X * $Log: inp.c,v $ X * Revision 2.0.1.2 96/12/7 22:15:00 sms X * Files right up against 64kb in size caused patch to core dump because X*************** X*** 11,17 **** X * X * Revision 2.0 86/09/17 15:37:02 lwall X * Baseline for netwide release. X- * X */ X X #include "EXTERN.h" X--- 14,19 ---- X*************** X*** 33,38 **** X--- 35,44 ---- X static LINENUM lines_per_buf; /* how many lines per buffer */ X static int tireclen; /* length of records in tmp file */ X X+ static char cwtf[] = "can't write temp file\n"; X+ static char doesnt[] = "Warning: this file doesn't appear to be the %s version--patching anyway.\n"; X+ static char appear[] = "This file doesn't appear to be the %s version--patch anyway? [n] "; X+ X /* New patch--prepare to edit another file. */ X X void X*************** X*** 40,49 **** X { X if (using_plan_a) { X i_size = 0; X- #ifndef lint X if (i_ptr != Null(char**)) X free((char *)i_ptr); X- #endif X if (i_womp != Nullch) X free(i_womp); X i_womp = Nullch; X--- 46,53 ---- X*************** X*** 51,57 **** X } X else { X using_plan_a = TRUE; /* maybe the next one is smaller */ X! Close(tifd); X tifd = -1; X free(tibuf[0]); X free(tibuf[1]); X--- 55,61 ---- X } X else { X using_plan_a = TRUE; /* maybe the next one is smaller */ X! close(tifd); X tifd = -1; X free(tibuf[0]); X free(tibuf[1]); X*************** X*** 70,76 **** X if (!plan_a(filename)) X plan_b(filename); X if (verbose) { X! say3("Patching file %s using Plan %s...\n", filename, X (using_plan_a ? "A" : "B") ); X } X } X--- 74,80 ---- X if (!plan_a(filename)) X plan_b(filename); X if (verbose) { X! fprintf(stderr, "Patching file %s using Plan %s...\n", filename, X (using_plan_a ? "A" : "B") ); X } X } X*************** X*** 82,124 **** X char *filename; X { X int ifd; X! Reg1 char *s; X! Reg2 LINENUM iline; X X if (ok_to_create_file && stat(filename, &filestat) < 0) { X if (verbose) X! say2("(Creating file %s...)\n",filename); X makedirs(filename, TRUE); X close(creat(filename, 0666)); X } X! if (stat(filename, &filestat) < 0) { X! Sprintf(buf, "RCS/%s%s", filename, RCSSUFFIX); X! if (stat(buf, &filestat) >= 0 || stat(buf+4, &filestat) >= 0) { X! Sprintf(buf, CHECKOUT, filename); X! if (verbose) X! say2("Can't find %s--attempting to check it out from RCS.\n", X! filename); X! if (system(buf) || stat(filename, &filestat)) X! fatal2("Can't check out %s.\n", filename); X! } X! else { X! Sprintf(buf+20, "SCCS/%s%s", SCCSPREFIX, filename); X! if (stat(s=buf+20, &filestat) >= 0 || X! stat(s=buf+25, &filestat) >= 0) { X! Sprintf(buf, GET, s); X! if (verbose) X! say2("Can't find %s--attempting to get it from SCCS.\n", X! filename); X! if (system(buf) || stat(filename, &filestat)) X! fatal2("Can't get %s.\n", filename); X! } X! else X! fatal2("Can't find %s.\n", filename); X! } X! } X filemode = filestat.st_mode; X if ((filemode & S_IFMT) & ~S_IFREG) X! fatal2("%s is not a normal file--can't patch.\n", filename); X i_size = filestat.st_size; X #ifdef pdp11 X /* X--- 86,107 ---- X char *filename; X { X int ifd; X! register char *s; X! register LINENUM iline; X X if (ok_to_create_file && stat(filename, &filestat) < 0) { X if (verbose) X! fprintf(stderr, "(Creating file %s...)\n",filename); X makedirs(filename, TRUE); X close(creat(filename, 0666)); X } X! X! if (stat(filename, &filestat) < 0) X! fatal("Can't find %s\n", filename); X! X filemode = filestat.st_mode; X if ((filemode & S_IFMT) & ~S_IFREG) X! fatal("%s is not a normal file--can't patch.\n", filename); X i_size = filestat.st_size; X #ifdef pdp11 X /* X*************** X*** 133,156 **** X out_of_mem = FALSE; X return FALSE; /* force plan b because plan a bombed */ X } X! #ifdef lint X! i_womp = Nullch; X! #else X! i_womp = malloc((MEM)(i_size+2)); /* lint says this may alloc less than */ X! /* i_size, but that's okay, I think. */ X! #endif X if (i_womp == Nullch) X return FALSE; X if ((ifd = open(filename, 0)) < 0) X! fatal2("Can't open file %s\n", filename); X! #ifndef lint X if (read(ifd, i_womp, (int)i_size) != i_size) { X! Close(ifd); /* probably means i_size > 15 or 16 bits worth */ X! free(i_womp); /* at this point it doesn't matter if i_womp was */ X! return FALSE; /* undersized. */ X } X! #endif X! Close(ifd); X if (i_size && i_womp[i_size-1] != '\n') X i_womp[i_size++] = '\n'; X i_womp[i_size] = '\0'; X--- 116,132 ---- X out_of_mem = FALSE; X return FALSE; /* force plan b because plan a bombed */ X } X! i_womp = malloc((MEM)(i_size+2)); X if (i_womp == Nullch) X return FALSE; X if ((ifd = open(filename, 0)) < 0) X! fatal("Can't open file %s\n", filename); X if (read(ifd, i_womp, (int)i_size) != i_size) { X! close(ifd); /* probably means i_size > 15 or 16 bits worth */ X! free(i_womp); X! return FALSE; X } X! close(ifd); X if (i_size && i_womp[i_size-1] != '\n') X i_womp[i_size++] = '\n'; X i_womp[i_size] = '\0'; X*************** X*** 162,172 **** X if (*s == '\n') X iline++; X } X- #ifdef lint X- i_ptr = Null(char**); X- #else X i_ptr = (char **)malloc((MEM)((iline + 2) * sizeof(char *))); X- #endif X if (i_ptr == Null(char **)) { /* shucks, it was a near thing */ X free((char *)i_womp); X return FALSE; X--- 138,144 ---- X*************** X*** 188,207 **** X if (!rev_in_string(i_womp)) { X if (force) { X if (verbose) X! say2( X! "Warning: this file doesn't appear to be the %s version--patching anyway.\n", X! revision); X } X else { X! ask2( X! "This file doesn't appear to be the %s version--patch anyway? [n] ", X! revision); X if (*buf != 'y') X! fatal1("Aborted.\n"); X } X } X else if (verbose) X! say2("Good. This file appears to be the %s version.\n", X revision); X } X return TRUE; /* plan a will work */ X--- 160,176 ---- X if (!rev_in_string(i_womp)) { X if (force) { X if (verbose) X! fprintf(stderr, doesnt, revision); X } X else { X! sprintf(buf, appear, revision); X! ask(buf); X if (*buf != 'y') X! fatal("Aborted.\n"); X } X } X else if (verbose) X! fprintf(stderr, "Good. This file appears to be the %s version.\n", X revision); X } X return TRUE; /* plan a will work */ X*************** X*** 213,228 **** X plan_b(filename) X char *filename; X { X! Reg3 FILE *ifp; X! Reg1 int i = 0; X! Reg2 int maxlen = 1; X! Reg4 bool found_revision = (revision == Nullch); X X using_plan_a = FALSE; X if ((ifp = fopen(filename, "r")) == Nullfp) X! fatal2("Can't open file %s\n", filename); X if ((tifd = creat(TMPINNAME, 0666)) < 0) X! fatal2("Can't open file %s\n", TMPINNAME); X while (fgets(buf, sizeof buf, ifp) != Nullch) { X if (revision != Nullch && !found_revision && rev_in_string(buf)) X found_revision = TRUE; X--- 182,197 ---- X plan_b(filename) X char *filename; X { X! register FILE *ifp; X! register int i = 0; X! register int maxlen = 1; X! bool found_revision = (revision == Nullch); X X using_plan_a = FALSE; X if ((ifp = fopen(filename, "r")) == Nullfp) X! fatal("Can't open file %s\n", filename); X if ((tifd = creat(TMPINNAME, 0666)) < 0) X! fatal("Can't open file %s\n", TMPINNAME); X while (fgets(buf, sizeof buf, ifp) != Nullch) { X if (revision != Nullch && !found_revision && rev_in_string(buf)) X found_revision = TRUE; X*************** X*** 233,278 **** X if (!found_revision) { X if (force) { X if (verbose) X! say2( X! "Warning: this file doesn't appear to be the %s version--patching anyway.\n", X! revision); X } X else { X! ask2( X! "This file doesn't appear to be the %s version--patch anyway? [n] ", X! revision); X if (*buf != 'y') X! fatal1("Aborted.\n"); X } X } X else if (verbose) X! say2("Good. This file appears to be the %s version.\n", X revision); X } X! Fseek(ifp, 0L, 0); /* rewind file */ X lines_per_buf = BUFFERSIZE / maxlen; X tireclen = maxlen; X tibuf[0] = malloc((MEM)(BUFFERSIZE + 1)); X tibuf[1] = malloc((MEM)(BUFFERSIZE + 1)); X if (tibuf[1] == Nullch) X! fatal1("Can't seem to get enough memory.\n"); X for (i=1; ; i++) { X if (! (i % lines_per_buf)) /* new block */ X if (write(tifd, tibuf[0], BUFFERSIZE) < BUFFERSIZE) X! fatal1("patch: can't write temp file.\n"); X if (fgets(tibuf[0] + maxlen * (i%lines_per_buf), maxlen + 1, ifp) X == Nullch) { X input_lines = i - 1; X if (i % lines_per_buf) X if (write(tifd, tibuf[0], BUFFERSIZE) < BUFFERSIZE) X! fatal1("patch: can't write temp file.\n"); X break; X } X } X! Fclose(ifp); X! Close(tifd); X if ((tifd = open(TMPINNAME, 0)) < 0) { X! fatal2("Can't reopen file %s\n", TMPINNAME); X } X } X X--- 202,244 ---- X if (!found_revision) { X if (force) { X if (verbose) X! fprintf(stderr, doesnt, revision); X } X else { X! sprintf(buf, appear, revision); X! ask(buf); X if (*buf != 'y') X! fatal("Aborted.\n"); X } X } X else if (verbose) X! fprintf(stderr, "Good. This file appears to be the %s version.\n", X revision); X } X! rewind(ifp); X lines_per_buf = BUFFERSIZE / maxlen; X tireclen = maxlen; X tibuf[0] = malloc((MEM)(BUFFERSIZE + 1)); X tibuf[1] = malloc((MEM)(BUFFERSIZE + 1)); X if (tibuf[1] == Nullch) X! fatal("Can't seem to get enough memory.\n"); X for (i=1; ; i++) { X if (! (i % lines_per_buf)) /* new block */ X if (write(tifd, tibuf[0], BUFFERSIZE) < BUFFERSIZE) X! fatal(cwtf); X if (fgets(tibuf[0] + maxlen * (i%lines_per_buf), maxlen + 1, ifp) X == Nullch) { X input_lines = i - 1; X if (i % lines_per_buf) X if (write(tifd, tibuf[0], BUFFERSIZE) < BUFFERSIZE) X! fatal(cwtf); X break; X } X } X! fclose(ifp); X! close(tifd); X if ((tifd = open(TMPINNAME, 0)) < 0) { X! fatal("Can't reopen file %s\n", TMPINNAME); X } X } X X*************** X*** 280,286 **** X X char * X ifetch(line,whichbuf) X! Reg1 LINENUM line; X int whichbuf; /* ignored when file in memory */ X { X if (line < 1 || line > input_lines) X--- 246,252 ---- X X char * X ifetch(line,whichbuf) X! register LINENUM line; X int whichbuf; /* ignored when file in memory */ X { X if (line < 1 || line > input_lines) X*************** X*** 297,307 **** X whichbuf = 1; X else { X tiline[whichbuf] = baseline; X! #ifndef lint /* complains of long accuracy */ X! Lseek(tifd, (long)baseline / lines_per_buf * BUFFERSIZE, 0); X! #endif X if (read(tifd, tibuf[whichbuf], BUFFERSIZE) < 0) X! fatal2("Error reading tmp file %s.\n", TMPINNAME); X } X return tibuf[whichbuf] + (tireclen*offline); X } X--- 263,271 ---- X whichbuf = 1; X else { X tiline[whichbuf] = baseline; X! (void)lseek(tifd, (long)baseline / lines_per_buf * BUFFERSIZE, 0); X if (read(tifd, tibuf[whichbuf], BUFFERSIZE) < 0) X! fatal("Error reading tmp file %s.\n", TMPINNAME); X } X return tibuf[whichbuf] + (tireclen*offline); X } X*************** X*** 313,320 **** X rev_in_string(string) X char *string; X { X! Reg1 char *s; X! Reg2 int patlen; X X if (revision == Nullch) X return TRUE; X--- 277,284 ---- X rev_in_string(string) X char *string; X { X! register char *s; X! register int patlen; X X if (revision == Nullch) X return TRUE; X*** ./usr/src/usr.bin/patch/patch.man.old Fri Jan 2 21:31:27 2026 X--- ./usr/src/usr.bin/patch/patch.man Thu Jun 18 21:35:26 2026 X*************** X*** 1,5 **** X .rn '' }` X! ''' $Header: patch.man,v 2.0.1.3 (2.11BSD) 2025/12/26 20:47:18 sms $ X ''' X ''' $Log: patch.man,v $ X ''' Revision 2.0.1.2 88/06/22 20:47:18 lwall X--- 1,5 ---- X .rn '' }` X! ''' $Header: patch.man,v 2.1 (2.11BSD) 2026/6/18 20:47:18 sms $ X ''' X ''' $Log: patch.man,v $ X ''' Revision 2.0.1.2 88/06/22 20:47:18 lwall X*************** X*** 67,73 **** X .ds L' ` X .ds R' ' X 'br\} X! .TH PATCH 1 LOCAL X .SH NAME X patch - a program for applying a diff file to an original X .SH SYNOPSIS X--- 67,73 ---- X .ds L' ` X .ds R' ' X 'br\} X! .TH PATCH 1 "June 18, 2026" X .SH NAME X patch - a program for applying a diff file to an original X .SH SYNOPSIS X*************** X*** 178,188 **** X If no filename can be intuited from the leading garbage, you will be asked X for the name of the file to patch. X .PP X- (If the original file cannot be found, but a suitable SCCS or RCS file is X- handy, X- .I patch X- will attempt to get or check out the file.) X- .PP X Additionally, if the leading garbage contains a \*(L"Prereq: \*(R" line, X .I patch X will take the first word from the prerequisites line (normally a version X--- 178,183 ---- X*************** X*** 191,204 **** X .I patch X will ask for confirmation before proceeding. X .PP X- The upshot of all this is that you should be able to say, while in a news X- interface, the following: X- .Sp X- | patch -d /usr/src/local/blurfl X- .Sp X- and patch a file in the blurfl directory directly from the article containing X- the patch. X- .PP X If the patch file contains more than one patch, X .I patch X will try to apply each of them as if they came from separate patch files. X--- 186,191 ---- X*************** X*** 392,398 **** X .SH FILES X /tmp/patch* X .SH SEE ALSO X! diff(1) X .SH NOTES FOR PATCH SENDERS X There are several things you should bear in mind if you are going to X be sending out patches. X--- 379,385 ---- X .SH FILES X /tmp/patch* X .SH SEE ALSO X! diff(1), ed(1) X .SH NOTES FOR PATCH SENDERS X There are several things you should bear in mind if you are going to X be sending out patches. X*** ./usr/src/usr.bin/patch/common.h.old Wed Jun 29 21:28:38 1988 X--- ./usr/src/usr.bin/patch/common.h Sun Jun 21 18:30:56 2026 X*************** X*** 1,4 **** X! /* $Header: common.h,v 2.0.1.2 88/06/22 20:44:53 lwall Locked $ X * X * $Log: common.h,v $ X * Revision 2.0.1.2 88/06/22 20:44:53 lwall X--- 1,4 ---- X! /* $Header: common.h 2.1 (2.11BSD) 2026/6/18 20:47:18 sms $ X * X * $Log: common.h,v $ X * Revision 2.0.1.2 88/06/22 20:44:53 lwall X*************** X*** 9,37 **** X * X * Revision 2.0 86/09/17 15:36:39 lwall X * Baseline for netwide release. X- * X */ X X #define DEBUGGING X X- #include "config.h" X- X- /* shut lint up about the following when return value ignored */ X- X- #define Signal (void)signal X- #define Unlink (void)unlink X- #define Lseek (void)lseek X- #define Fseek (void)fseek X- #define Fstat (void)fstat X- #define Pclose (void)pclose X- #define Close (void)close X- #define Fclose (void)fclose X- #define Fflush (void)fflush X- #define Sprintf (void)sprintf X- #define Mktemp (void)mktemp X- #define Strcpy (void)strcpy X- #define Strcat (void)strcat X- X #include X #include X #include X--- 9,18 ---- X*************** X*** 38,46 **** X #include X #include X #include X X- /* constants */ X- X #define TRUE (1) X #define FALSE (0) X X--- 19,27 ---- X #include X #include X #include X+ #include X+ #include X X #define TRUE (1) X #define FALSE (0) X X*************** X*** 48,57 **** X #define INITHUNKMAX 125 /* initial dynamic allocation size */ X #define MAXLINELEN 1024 X #define BUFFERSIZE 1024 X- #define SCCSPREFIX "s." X- #define GET "get -e %s" X- #define RCSSUFFIX ",v" X- #define CHECKOUT "co -l %s" X X #ifdef FLEXFILENAMES X #define ORIGEXT ".orig" X--- 29,34 ---- X*************** X*** 143,158 **** X EXT char end_defined[128]; /* #endif xyzzy */ X X EXT char *revision INIT(Nullch); /* prerequisite revision, if any */ X- X- char *malloc(); X- char *realloc(); X- char *strcpy(); X- char *strcat(); X- long atol(); X- long lseek(); X- char *mktemp(); X- #ifdef CHARSPRINTF X- char *sprintf(); X- #else X- int sprintf(); X- #endif X--- 120,122 ---- X*** ./usr/src/usr.bin/patch/util.c.old Wed Jun 29 21:28:42 1988 X--- ./usr/src/usr.bin/patch/util.c Tue Sep 22 00:00:01 2026 X*************** X*** 1,8 **** X--- 1,15 ---- X+ #if !defined(lint) && defined(DOSCCS) X+ char rcsid[] = "util.c 2.1 (2.11BSD) 2026/6/21"; X+ #endif X+ X #include "EXTERN.h" X #include "common.h" X #include "INTERN.h" X #include "util.h" X X+ void my_exit(); X+ static char internalerr[] = "patch: internal error, can't reopen %s\n"; X+ X /* Rename a file, copying it if necessary. */ X X int X*************** X*** 10,18 **** X char *from, *to; X { X char bakname[512]; X! Reg1 char *s; X! Reg2 int i; X! Reg3 int fromfd; X X /* to stdout? */ X X--- 17,25 ---- X char *from, *to; X { X char bakname[512]; X! register char *s; X! register int i; X! register int fromfd; X X /* to stdout? */ X X*************** X*** 19,42 **** X if (strEQ(to, "-")) { X #ifdef DEBUGGING X if (debug & 4) X! say2("Moving %s to stdout.\n", from); X #endif X fromfd = open(from, 0); X if (fromfd < 0) X! fatal2("patch: internal error, can't reopen %s\n", from); X while ((i=read(fromfd, buf, sizeof buf)) > 0) X if (write(1, buf, i) != 1) X! fatal1("patch: write failed\n"); X! Close(fromfd); X return 0; X } X X if (origprae) { X! Strcpy (bakname, origprae); X! Strcat(bakname, to); X } else { X! Strcpy(bakname, to); X! Strcat(bakname, origext?origext:ORIGEXT); X } X if (stat(to, &filestat) >= 0) { /* output file exists */ X dev_t to_device = filestat.st_dev; X--- 26,49 ---- X if (strEQ(to, "-")) { X #ifdef DEBUGGING X if (debug & 4) X! fprintf(stderr, "Moving %s to stdout\n", from); X #endif X fromfd = open(from, 0); X if (fromfd < 0) X! fatal(internalerr, from); X while ((i=read(fromfd, buf, sizeof buf)) > 0) X if (write(1, buf, i) != 1) X! fatal("patch: write failed\n"); X! close(fromfd); X return 0; X } X X if (origprae) { X! strcpy (bakname, origprae); X! strcat(bakname, to); X } else { X! strcpy(bakname, to); X! strcat(bakname, origext?origext:ORIGEXT); X } X if (stat(to, &filestat) >= 0) { /* output file exists */ X dev_t to_device = filestat.st_dev; X*************** X*** 54,68 **** X if (*s) X *s = toupper(*s); X else X! Strcpy(simplename, simplename+1); X } X while (unlink(bakname) >= 0) ; /* while() is for benefit of Eunice */ X #ifdef DEBUGGING X if (debug & 4) X! say3("Moving %s to %s.\n", to, bakname); X #endif X if (link(to, bakname) < 0) { X! say3("patch: can't backup %s, output is in %s\n", X to, from); X return -1; X } X--- 61,75 ---- X if (*s) X *s = toupper(*s); X else X! strcpy(simplename, simplename+1); X } X while (unlink(bakname) >= 0) ; /* while() is for benefit of Eunice */ X #ifdef DEBUGGING X if (debug & 4) X! fprintf(stderr, "Moving %s to %s\n", to, bakname); X #endif X if (link(to, bakname) < 0) { X! fprintf(stderr, "patch: can't backup %s, output is in %s\n", X to, from); X return -1; X } X*************** X*** 70,96 **** X } X #ifdef DEBUGGING X if (debug & 4) X! say3("Moving %s to %s.\n", from, to); X #endif X if (link(from, to) < 0) { /* different file system? */ X! Reg4 int tofd; X X tofd = creat(to, 0666); X if (tofd < 0) { X! say3("patch: can't create %s, output is in %s.\n", X to, from); X return -1; X } X fromfd = open(from, 0); X if (fromfd < 0) X! fatal2("patch: internal error, can't reopen %s\n", from); X while ((i=read(fromfd, buf, sizeof buf)) > 0) X if (write(tofd, buf, i) != i) X! fatal1("patch: write failed\n"); X! Close(fromfd); X! Close(tofd); X } X! Unlink(from); X return 0; X } X X--- 77,103 ---- X } X #ifdef DEBUGGING X if (debug & 4) X! fprintf(stderr, "Moving %s to %s\n", from, to); X #endif X if (link(from, to) < 0) { /* different file system? */ X! int tofd; X X tofd = creat(to, 0666); X if (tofd < 0) { X! fprintf(stderr, "patch: can't create %s, output is in %s\n", X to, from); X return -1; X } X fromfd = open(from, 0); X if (fromfd < 0) X! fatal(internalerr, from); X while ((i=read(fromfd, buf, sizeof buf)) > 0) X if (write(tofd, buf, i) != i) X! fatal("patch: write failed\n"); X! close(fromfd); X! close(tofd); X } X! unlink(from); X return 0; X } X X*************** X*** 100,120 **** X copy_file(from,to) X char *from, *to; X { X! Reg3 int tofd; X! Reg2 int fromfd; X! Reg1 int i; X X tofd = creat(to, 0666); X if (tofd < 0) X! fatal2("patch: can't create %s.\n", to); X fromfd = open(from, 0); X if (fromfd < 0) X! fatal2("patch: internal error, can't reopen %s\n", from); X while ((i=read(fromfd, buf, sizeof buf)) > 0) X if (write(tofd, buf, i) != i) X! fatal2("patch: write (%s) failed\n", to); X! Close(fromfd); X! Close(tofd); X } X X /* Allocate a unique area for a string. */ X--- 107,127 ---- X copy_file(from,to) X char *from, *to; X { X! register int tofd; X! register int fromfd; X! register int i; X X tofd = creat(to, 0666); X if (tofd < 0) X! fatal("patch: can't create %s\n", to); X fromfd = open(from, 0); X if (fromfd < 0) X! fatal(internalerr, from); X while ((i=read(fromfd, buf, sizeof buf)) > 0) X if (write(tofd, buf, i) != i) X! fatal("patch: write (%s) failed\n", to); X! close(fromfd); X! close(tofd); X } X X /* Allocate a unique area for a string. */ X*************** X*** 121,130 **** X X char * X savestr(s) X! Reg1 char *s; X { X! Reg3 char *rv; X! Reg2 char *t; X X if (!s) X s = "Oops"; X--- 128,137 ---- X X char * X savestr(s) X! register char *s; X { X! register char *rv; X! register char *t; X X if (!s) X s = "Oops"; X*************** X*** 135,141 **** X if (using_plan_a) X out_of_mem = TRUE; X else X! fatal1("patch: out of memory (savestr)\n"); X } X else { X t = rv; X--- 142,148 ---- X if (using_plan_a) X out_of_mem = TRUE; X else X! fatal("patch: out of memory (savestr)\n"); X } X else { X t = rv; X*************** X*** 144,233 **** X return rv; X } X X- #if defined(lint) && defined(CANVARARG) X- X- /*VARARGS ARGSUSED*/ X- say(pat) char *pat; { ; } X- /*VARARGS ARGSUSED*/ X- fatal(pat) char *pat; { ; } X- /*VARARGS ARGSUSED*/ X- ask(pat) char *pat; { ; } X- X- #else X- X- /* Vanilla terminal output (buffered). */ X- X void X! say(pat,arg1,arg2,arg3) X! char *pat; X! long arg1,arg2,arg3; X { X! fprintf(stderr, pat, arg1, arg2, arg3); X! Fflush(stderr); X! } X X! /* Terminal output, pun intended. */ X! X! void /* very void */ X! fatal(pat,arg1,arg2,arg3) X! char *pat; X! long arg1,arg2,arg3; X! { X! #ifdef VOIDSIG X! void my_exit(); X! #else X! int my_exit(); X! #endif X! X! say(pat, arg1, arg2, arg3); X my_exit(1); X } X X! /* Get a response from the user, somehow or other. */ X X void X! ask(pat,arg1,arg2,arg3) X! char *pat; X! long arg1,arg2,arg3; X { X int ttyfd; X int r; X- bool tty2 = isatty(2); X X! Sprintf(buf, pat, arg1, arg2, arg3); X! Fflush(stderr); X! write(2, buf, strlen(buf)); X! if (tty2) { /* might be redirected to a file */ X! r = read(2, buf, sizeof buf); X! } X! else if (isatty(1)) { /* this may be new file output */ X! Fflush(stdout); X! write(1, buf, strlen(buf)); X! r = read(1, buf, sizeof buf); X! } X! else if ((ttyfd = open("/dev/tty", 2)) >= 0 && isatty(ttyfd)) { X! /* might be deleted or unwriteable */ X! write(ttyfd, buf, strlen(buf)); X r = read(ttyfd, buf, sizeof buf); X! Close(ttyfd); X! } X! else if (isatty(0)) { /* this is probably patch input */ X! Fflush(stdin); X! write(0, buf, strlen(buf)); X! r = read(0, buf, sizeof buf); X! } X! else { /* no terminal at all--default it */ X buf[0] = '\n'; X r = 1; X! } X! if (r <= 0) X buf[0] = 0; X else X buf[r] = '\0'; X- if (!tty2) X- say1(buf); X } X- #endif /* lint */ X X /* How to handle certain events when not in a critical region. */ X X--- 151,199 ---- X return rv; X } X X void X! fatal(char *fmt, ...) X { X! va_list ap; X X! va_start(ap, fmt); X! vfprintf(stderr, fmt, ap); X my_exit(1); X } X X! /* X! * Get a response from the user. X! * X! * stdin (0) is almost always patch input X! * stdout (1) is often new file output X! * stderr (2) can be redirected to a file X! * X! * open /dev/tty to get a terminal to prompt and read response X! */ X X void X! ask(prompt) X! char *prompt; X { X int ttyfd; X int r; X X! if ((ttyfd = open("/dev/tty", 2)) >= 0) X! { X! write(ttyfd, prompt, strlen(prompt)); X r = read(ttyfd, buf, sizeof buf); X! close(ttyfd); X! } X! else X! { /* no terminal - can't happen */ X buf[0] = '\n'; X r = 1; X! } X! if (r <= 0) X buf[0] = 0; X else X buf[r] = '\0'; X } X X /* How to handle certain events when not in a critical region. */ X X*************** X*** 235,268 **** X set_signals(reset) X int reset; X { X! #ifndef lint X! #ifdef VOIDSIG X! void my_exit(); X! static void (*hupval)(),(*intval)(); X! #else X! int my_exit(); X! static int (*hupval)(),(*intval)(); X! #endif X X if (!reset) { X hupval = signal(SIGHUP, SIG_IGN); X if (hupval != SIG_IGN) X- #ifdef VOIDSIG X hupval = my_exit; X- #else X- hupval = (int(*)())my_exit; X- #endif X intval = signal(SIGINT, SIG_IGN); X if (intval != SIG_IGN) X- #ifdef VOIDSIG X intval = my_exit; X- #else X- intval = (int(*)())my_exit; X- #endif X } X! Signal(SIGHUP, hupval); X! Signal(SIGINT, intval); X! #endif X } X X /* How to handle certain events when in a critical region. */ X--- 201,218 ---- X set_signals(reset) X int reset; X { X! static sig_t hupval, intval; X X if (!reset) { X hupval = signal(SIGHUP, SIG_IGN); X if (hupval != SIG_IGN) X hupval = my_exit; X intval = signal(SIGINT, SIG_IGN); X if (intval != SIG_IGN) X intval = my_exit; X } X! signal(SIGHUP, hupval); X! signal(SIGINT, intval); X } X X /* How to handle certain events when in a critical region. */ X*************** X*** 270,279 **** X void X ignore_signals() X { X! #ifndef lint X! Signal(SIGHUP, SIG_IGN); X! Signal(SIGINT, SIG_IGN); X! #endif X } X X /* Make sure we'll have the directories to create a file. */ X--- 220,227 ---- X void X ignore_signals() X { X! signal(SIGHUP, SIG_IGN); X! signal(SIGINT, SIG_IGN); X } X X /* Make sure we'll have the directories to create a file. */ X*************** X*** 280,293 **** X X void X makedirs(filename,striplast) X! Reg1 char *filename; X bool striplast; X { X char tmpbuf[256]; X! Reg2 char *s = tmpbuf; X char *dirv[20]; X! Reg3 int i; X! Reg4 int dirvp = 0; X X while (*filename) { X if (*filename == '/') { X--- 228,241 ---- X X void X makedirs(filename,striplast) X! register char *filename; X bool striplast; X { X char tmpbuf[256]; X! register char *s = tmpbuf; X char *dirv[20]; X! register int i; X! int dirvp = 0; X X while (*filename) { X if (*filename == '/') { X*************** X*** 326,332 **** X { X char *s; X char *name; X! Reg1 char *t; X char tmpbuf[200]; X X if (!at) X--- 274,280 ---- X { X char *s; X char *name; X! register char *t; X char tmpbuf[200]; X X if (!at) X*************** X*** 336,342 **** X name = t; X #ifdef DEBUGGING X if (debug & 128) X! say4("fetchname %s %d %d\n",name,strip_leading,assume_exists); X #endif X if (strnEQ(name, "/dev/null", 9)) /* so files can be created by diffing */ X return Nullch; /* against /dev/null. */ X--- 284,290 ---- X name = t; X #ifdef DEBUGGING X if (debug & 128) X! fprintf(stderr, "fetchname %s %d %d\n",name,strip_leading,assume_exists); X #endif X if (strnEQ(name, "/dev/null", 9)) /* so files can be created by diffing */ X return Nullch; /* against /dev/null. */ X*************** X*** 353,369 **** X } X } X name = savestr(name); X- Sprintf(tmpbuf, "RCS/%s", name); X free(s); X if (stat(name, &filestat) < 0 && !assume_exists) { X! Strcat(tmpbuf, RCSSUFFIX); X! if (stat(tmpbuf, &filestat) < 0 && stat(tmpbuf+4, &filestat) < 0) { X! Sprintf(tmpbuf, "SCCS/%s%s", SCCSPREFIX, name); X! if (stat(tmpbuf, &filestat) < 0 && stat(tmpbuf+5, &filestat) < 0) { X! free(name); X! name = Nullch; X! } X! } X! } X return name; X } X--- 301,310 ---- X } X } X name = savestr(name); X free(s); X if (stat(name, &filestat) < 0 && !assume_exists) { X! free(name); X! name = Nullch; X! } X return name; X } X*** ./usr/src/usr.bin/patch/README.old Fri Jan 2 21:31:27 2026 X--- ./usr/src/usr.bin/patch/README Thu Jun 18 18:05:46 2026 X*************** X*** 1,4 **** X! Patch Kit (2.11BSD) Version 2.1 2025/12/26 X X Copyright (c) 1988, Larry Wall X X--- 1,4 ---- X! Patch Kit (2.11BSD) Version 2.2 2026/6/18 X X Copyright (c) 1988, Larry Wall X X*************** X*** 40,42 **** X--- 40,43 ---- X Uses a Configure script for greater portability. X You are now asked if you want to apply a reversed patch. X No limit (apart from memory) on the size of hunks. X+ Remove SCCS and RCS support. SCCS never existed on 2.11 anyhow. X*** ./usr/src/usr.bin/patch/patch.c.old Fri Jan 2 21:31:27 2026 X--- ./usr/src/usr.bin/patch/patch.c Mon Sep 28 18:18:43 2026 X*************** X*** 1,10 **** X! /* X! * Can't ifdef this out because version.c (-v) uses this string. X! */ X! char rcsid[] = "patch.c 2.0.1.7 (2.11BSD) 2025/12/26"; X X! /* patch - a program to apply diffs to original files X! * X * Copyright 1986, Larry Wall X * X * This program may be copied as long as you don't try to make any X--- 1,8 ---- X! #if !defined(lint) && defined(DOSCCS) X! char rcsid[] = "patch.c 2.1 (2.11BSD) 2026/6/18"; X! #endif X X! /* X * Copyright 1986, Larry Wall X * X * This program may be copied as long as you don't try to make any X*************** X*** 86,102 **** X * X * Revision 1.1 84/11/09 17:03:58 lwall X * Initial revision X- * X */ X X #include "INTERN.h" X #include "common.h" X #include "EXTERN.h" X- #include "version.h" X #include "util.h" X #include "pch.h" X #include "inp.h" X X /* procedures */ X X void reinitialize_almost_everything(); X--- 84,100 ---- X * X * Revision 1.1 84/11/09 17:03:58 lwall X * Initial revision X */ X X #include "INTERN.h" X #include "common.h" X #include "EXTERN.h" X #include "util.h" X #include "pch.h" X #include "inp.h" X X+ static char losthunk[] = "Lost hunk on alloc error!\n"; X+ X /* procedures */ X X void reinitialize_almost_everything(); X*************** X*** 112,118 **** X bool patch_match(); X bool similar(); X void re_input(); X- void my_exit(); X X /* Apply a set of diffs as appropriate. */ X X--- 110,115 ---- X*************** X*** 129,141 **** X int failtotal = 0; X int i; X X! setbuf(stderr, serrbuf); X for (i = 0; i= 2) X! fatal1("You may not change to a different patch file.\n"); X } X X /* Process switches and filenames up to next '+' or end of list. */ X--- 340,350 ---- X X get_some_switches(); X X! /* X! * if plan A fails we want to use the same patch file if one was specified X! */ X! if (!using_plan_a && filec >= 2) X! fatal("You may not change to a different patch file.\n"); X } X X /* Process switches and filenames up to next '+' or end of list. */ X*************** X*** 354,360 **** X void X get_some_switches() X { X! Reg1 char *s; X X rejname[0] = '\0'; X Argc_last = Argc; X--- 352,358 ---- X void X get_some_switches() X { X! register char *s; X X rejname[0] = '\0'; X Argc_last = Argc; X*************** X*** 368,374 **** X } X if (*s != '-' || !s[1]) { X if (filec == MAXFILEC) X! fatal1("Too many file arguments.\n"); X filearg[filec++] = savestr(s); X } X else { X--- 366,372 ---- X } X if (*s != '-' || !s[1]) { X if (filec == MAXFILEC) X! fatal("Too many file arguments.\n"); X filearg[filec++] = savestr(s); X } X else { X*************** X*** 390,396 **** X s = Argv[0]; X } X if (chdir(s) < 0) X! fatal2("Can't cd to %s.\n", s); X break; X case 'D': X do_defines = TRUE; X--- 388,394 ---- X s = Argv[0]; X } X if (chdir(s) < 0) X! fatal("Can't cd to %s\n", s); X break; X case 'D': X do_defines = TRUE; X*************** X*** 399,408 **** X s = Argv[0]; X } X if (!isalpha(*s)) X! fatal1("Argument to -D not an identifier.\n"); X! Sprintf(if_defined, "#ifdef %s\n", s); X! Sprintf(not_defined, "#ifndef %s\n", s); X! Sprintf(end_defined, "#endif /* %s */\n", s); X break; X case 'e': X diff_type = ED_DIFF; X--- 397,406 ---- X s = Argv[0]; X } X if (!isalpha(*s)) X! fatal("Argument to -D not an identifier.\n"); X! sprintf(if_defined, "#ifdef %s\n", s); X! sprintf(not_defined, "#ifndef %s\n", s); X! sprintf(end_defined, "#endif /* %s */\n", s); X break; X case 'e': X diff_type = ED_DIFF; X*************** X*** 434,440 **** X strippath = atoi(s); X break; X case 'r': X! Strcpy(rejname, Argv[1]); X Argc--,Argv++; X break; X case 'R': X--- 432,438 ---- X strippath = atoi(s); X break; X case 'r': X! strcpy(rejname, Argv[1]); X Argc--,Argv++; X break; X case 'R': X*************** X*** 455,461 **** X break; X #endif X default: X! fatal2("Unrecognized switch: %s\n", Argv[0]); X } X } X } X--- 453,459 ---- X break; X #endif X default: X! fatal("Unrecognized switch: %s\n", Argv[0]); X } X } X } X*************** X*** 467,478 **** X locate_hunk(fuzz) X LINENUM fuzz; X { X! Reg1 LINENUM first_guess = pch_first() + last_offset; X! Reg2 LINENUM offset; X LINENUM pat_lines = pch_ptrn_lines(); X! Reg3 LINENUM max_pos_offset = input_lines - first_guess X - pat_lines + 1; X! Reg4 LINENUM max_neg_offset = first_guess - last_frozen_line - 1 X + pch_context(); X X if (!pat_lines) /* null range matches always */ X--- 465,476 ---- X locate_hunk(fuzz) X LINENUM fuzz; X { X! register LINENUM first_guess = pch_first() + last_offset; X! register LINENUM offset; X LINENUM pat_lines = pch_ptrn_lines(); X! register LINENUM max_pos_offset = input_lines - first_guess X - pat_lines + 1; X! LINENUM max_neg_offset = first_guess - last_frozen_line - 1 X + pch_context(); X X if (!pat_lines) /* null range matches always */ X*************** X*** 482,494 **** X if (first_guess <= input_lines && patch_match(first_guess, Nulline, fuzz)) X return first_guess; X for (offset = 1; ; offset++) { X! Reg5 bool check_after = (offset <= max_pos_offset); X! Reg6 bool check_before = (offset <= max_neg_offset); X X if (check_after && patch_match(first_guess, offset, fuzz)) { X #ifdef DEBUGGING X if (debug & 1) X! say3("Offset changing from %ld to %ld\n", last_offset, offset); X #endif X last_offset = offset; X return first_guess+offset; X--- 480,492 ---- X if (first_guess <= input_lines && patch_match(first_guess, Nulline, fuzz)) X return first_guess; X for (offset = 1; ; offset++) { X! bool check_after = (offset <= max_pos_offset); X! bool check_before = (offset <= max_neg_offset); X X if (check_after && patch_match(first_guess, offset, fuzz)) { X #ifdef DEBUGGING X if (debug & 1) X! fprintf(stderr, "Offset changing from %ld to %ld\n", last_offset, offset); X #endif X last_offset = offset; X return first_guess+offset; X*************** X*** 496,502 **** X else if (check_before && patch_match(first_guess, -offset, fuzz)) { X #ifdef DEBUGGING X if (debug & 1) X! say3("Offset changing from %ld to %ld\n", last_offset, -offset); X #endif X last_offset = -offset; X return first_guess-offset; X--- 494,500 ---- X else if (check_before && patch_match(first_guess, -offset, fuzz)) { X #ifdef DEBUGGING X if (debug & 1) X! fprintf(stderr, "Offset changing from %ld to %ld\n", last_offset, -offset); X #endif X last_offset = -offset; X return first_guess-offset; X*************** X*** 511,518 **** X void X abort_hunk() X { X! Reg1 LINENUM i; X! Reg2 LINENUM pat_end = pch_end(); X /* add in last_offset to guess the same as the previous successful hunk */ X LINENUM oldfirst = pch_first() + last_offset; X LINENUM newfirst = pch_newfirst() + last_offset; X--- 509,517 ---- X void X abort_hunk() X { X! register LINENUM i; X! register LINENUM pat_end = pch_end(); X! X /* add in last_offset to guess the same as the previous successful hunk */ X LINENUM oldfirst = pch_first() + last_offset; X LINENUM newfirst = pch_newfirst() + last_offset; X*************** X*** 547,553 **** X fprintf(rejfp, "%c %s", pch_char(i), pfetch(i)); X break; X default: X! say1("Fatal internal error in abort_hunk().\n"); X abort(); X } X } X--- 546,552 ---- X fprintf(rejfp, "%c %s", pch_char(i), pfetch(i)); X break; X default: X! fputs("Fatal internal error in abort_hunk().\n", stderr); X abort(); X } X } X*************** X*** 559,574 **** X apply_hunk(where) X LINENUM where; X { X! Reg1 LINENUM old = 1; X! Reg2 LINENUM lastline = pch_ptrn_lines(); X! Reg3 LINENUM new = lastline+1; X #define OUTSIDE 0 X #define IN_IFNDEF 1 X #define IN_IFDEF 2 X #define IN_ELSE 3 X! Reg4 int def_state = OUTSIDE; X! Reg5 bool R_do_defines = do_defines; X! Reg6 LINENUM pat_end = pch_end(); X X where--; X while (pch_char(new) == '=' || pch_char(new) == '\n') X--- 558,573 ---- X apply_hunk(where) X LINENUM where; X { X! register LINENUM old = 1; X! register LINENUM lastline = pch_ptrn_lines(); X! register LINENUM new = lastline+1; X #define OUTSIDE 0 X #define IN_IFNDEF 1 X #define IN_IFDEF 2 X #define IN_ELSE 3 X! int def_state = OUTSIDE; X! bool R_do_defines = do_defines; X! LINENUM pat_end = pch_end(); X X where--; X while (pch_char(new) == '=' || pch_char(new) == '\n') X*************** X*** 610,620 **** X } X else { X if (pch_char(new) != pch_char(old)) { X! say3("Out-of-sync patch, lines %ld,%ld--mangled text or line numbers, maybe?\n", X pch_hunk_beg() + old, X pch_hunk_beg() + new); X #ifdef DEBUGGING X! say3("oldchar = '%c', newchar = '%c'\n", X pch_char(old), pch_char(new)); X #endif X my_exit(1); X--- 609,619 ---- X } X else { X if (pch_char(new) != pch_char(old)) { X! fprintf(stderr, "Out-of-sync patch, lines %ld,%ld--mangled text or line numbers, maybe?\n", X pch_hunk_beg() + old, X pch_hunk_beg() + new); X #ifdef DEBUGGING X! fprintf(stderr, "oldchar = '%c', newchar = '%c'\n", X pch_char(old), pch_char(new)); X #endif X my_exit(1); X*************** X*** 682,688 **** X { X ofp = fopen(name, "w"); X if (ofp == Nullfp) X! fatal2("patch: can't create %s.\n", name); X } X X /* Open a file to put hunks we can't locate. */ X--- 681,687 ---- X { X ofp = fopen(name, "w"); X if (ofp == Nullfp) X! fatal("patch: can't create %s.\n", name); X } X X /* Open a file to put hunks we can't locate. */ X*************** X*** 693,699 **** X { X rejfp = fopen(name, "w"); X if (rejfp == Nullfp) X! fatal2("patch: can't create %s.\n", name); X } X X /* Copy input file to output, up to wherever hunk is to be applied. */ X--- 692,698 ---- X { X rejfp = fopen(name, "w"); X if (rejfp == Nullfp) X! fatal("patch: can't create %s\n", name); X } X X /* Copy input file to output, up to wherever hunk is to be applied. */ X*************** X*** 700,711 **** X X void X copy_till(lastline) X! Reg1 LINENUM lastline; X { X! Reg2 LINENUM R_last_frozen_line = last_frozen_line; X X if (R_last_frozen_line > lastline) X! say1("patch: misordered hunks! output will be garbled.\n"); X while (R_last_frozen_line < lastline) { X dump_line(++R_last_frozen_line); X } X--- 699,710 ---- X X void X copy_till(lastline) X! register LINENUM lastline; X { X! register LINENUM R_last_frozen_line = last_frozen_line; X X if (R_last_frozen_line > lastline) X! fputs("patch: misordered hunks! output will be garbled.\n", stderr); X while (R_last_frozen_line < lastline) { X dump_line(++R_last_frozen_line); X } X*************** X*** 719,729 **** X { X #ifdef DEBUGGING X if (debug & 256) X! say3("il=%ld lfl=%ld\n",input_lines,last_frozen_line); X #endif X if (input_lines) X copy_till(input_lines); /* dump remainder of file */ X! Fclose(ofp); X ofp = Nullfp; X } X X--- 718,728 ---- X { X #ifdef DEBUGGING X if (debug & 256) X! fprintf(stderr, "il=%ld lfl=%ld\n",input_lines,last_frozen_line); X #endif X if (input_lines) X copy_till(input_lines); /* dump remainder of file */ X! fclose(ofp); X ofp = Nullfp; X } X X*************** X*** 733,740 **** X dump_line(line) X LINENUM line; X { X! Reg1 char *s; X! Reg2 char R_newline = '\n'; X X /* Note: string is not null terminated. */ X for (s=ifetch(line, 0); putc(*s, ofp) != R_newline; s++) ; X--- 732,739 ---- X dump_line(line) X LINENUM line; X { X! register char *s; X! register char R_newline = '\n'; X X /* Note: string is not null terminated. */ X for (s=ifetch(line, 0); putc(*s, ofp) != R_newline; s++) ; X*************** X*** 748,756 **** X LINENUM offset; X LINENUM fuzz; X { X! Reg1 LINENUM pline = 1 + fuzz; X! Reg2 LINENUM iline; X! Reg3 LINENUM pat_lines = pch_ptrn_lines() - fuzz; X X for (iline=base+offset+fuzz; pline <= pat_lines; pline++,iline++) { X if (canonicalize) { X--- 747,755 ---- X LINENUM offset; X LINENUM fuzz; X { X! register LINENUM pline = 1 + fuzz; X! register LINENUM iline; X! register LINENUM pat_lines = pch_ptrn_lines() - fuzz; X X for (iline=base+offset+fuzz; pline <= pat_lines; pline++,iline++) { X if (canonicalize) { X*************** X*** 771,779 **** X X bool X similar(a,b,len) X! Reg1 char *a; X! Reg2 char *b; X! Reg3 int len; X { X while (len) { X if (isspace(*b)) { /* whitespace (or \n) to match? */ X--- 770,778 ---- X X bool X similar(a,b,len) X! register char *a; X! register char *b; X! register int len; X { X while (len) { X if (isspace(*b)) { /* whitespace (or \n) to match? */ X*************** X*** 801,813 **** X my_exit(status) X int status; X { X! Unlink(TMPINNAME); X if (!toutkeep) { X! Unlink(TMPOUTNAME); X } X if (!trejkeep) { X! Unlink(TMPREJNAME); X } X! Unlink(TMPPATNAME); X exit(status); X } X--- 800,812 ---- X my_exit(status) X int status; X { X! unlink(TMPINNAME); X if (!toutkeep) { X! unlink(TMPOUTNAME); X } X if (!trejkeep) { X! unlink(TMPREJNAME); X } X! unlink(TMPPATNAME); X exit(status); X } X*** ./usr/src/usr.bin/patch/version.c.old Fri Jan 2 21:31:27 2026 X--- ./usr/src/usr.bin/patch/version.c Mon Jun 22 07:34:17 2026 X*************** X*** 1,20 **** X /* X! * version.c 2.0 (2.11BSD) 2025/12/26 X */ X X! #include "EXTERN.h" X! #include "common.h" X! #include "util.h" X! #include "INTERN.h" X! #include "patchlevel.h" X! #include "version.h" X X! /* Print out the version number and die. */ X X void X version() X { X- extern char rcsid[]; X X! fatal3("%s\nPatch level: %d\n", rcsid, PATCHLEVEL); X } X--- 1,20 ---- X /* X! * version.c 2.1 (2.11BSD) 2026/6/18 X */ X X! /* X! * Print out the version number and die. Skip the global rcsid, etc and X! * just print a pretty version string X! */ X X! #include X X+ extern char *__progname; X+ X void X version() X { X X! fprintf(stderr, "%s 2.1 (2.11BSD) 2026/6/18 pl: 14\n", __progname); X! exit(0); X } X*** ./usr/src/usr.bin/patch/Makefile.old Fri Jan 2 21:31:27 2026 X--- ./usr/src/usr.bin/patch/Makefile Mon Sep 28 17:40:21 2026 X*************** X*** 1,11 **** X! # Makefile 2.0 (2.11BSD) 2025/11/25 X X DEFS= X CFLAGS= -O ${DEFS} X LDFLAGS=-i X X! HDRS= EXTERN.h INTERN.h common.h config.h inp.h patchlevel.h pch.h \ X! util.h version.h X SRCS= patch.c pch.c inp.c util.c version.c X OBJS= patch.o pch.o inp.o util.o version.o X X--- 1,10 ---- X! # Makefile 2.1 (2.11BSD) 2026/6/21 X X DEFS= X CFLAGS= -O ${DEFS} X LDFLAGS=-i X X! HDRS= EXTERN.h INTERN.h common.h inp.h pch.h util.h X SRCS= patch.c pch.c inp.c util.c version.c X OBJS= patch.o pch.o inp.o util.o version.o X X*************** X*** 19,25 **** X X install: patch patch.0 X install patch /usr/bin X! install -m 444 -o root -g staff patch.0 /usr/man/cat1 X X clean: X rm -f *.o *.orig core tags patch *.0 X--- 18,24 ---- X X install: patch patch.0 X install patch /usr/bin X! install -c -s -m 444 -o root -g staff patch.0 /usr/man/cat1 X X clean: X rm -f *.o *.orig core tags patch *.0 X*** ./usr/src/usr.bin/patch/util.h.old Thu Jun 23 13:37:50 1988 X--- ./usr/src/usr.bin/patch/util.h Mon Jun 22 17:48:20 2026 X*************** X*** 1,73 **** X! /* $Header: util.h,v 2.0 86/09/17 15:40:06 lwall Exp $ X! * X * $Log: util.h,v $ X * Revision 2.0 86/09/17 15:40:06 lwall X * Baseline for netwide release. X- * X */ X X! /* and for those machine that can't handle a variable argument list */ X X! #ifdef CANVARARG X X- #define say1 say X- #define say2 say X- #define say3 say X- #define say4 say X- #define ask1 ask X- #define ask2 ask X- #define ask3 ask X- #define ask4 ask X- #define fatal1 fatal X- #define fatal2 fatal X- #define fatal3 fatal X- #define fatal4 fatal X- X- #else /* hope they allow multi-line macro actual arguments */ X- X- #ifdef lint X- X- #define say1(a) say(a, 0, 0, 0) X- #define say2(a,b) say(a, (b)==(b), 0, 0) X- #define say3(a,b,c) say(a, (b)==(b), (c)==(c), 0) X- #define say4(a,b,c,d) say(a, (b)==(b), (c)==(c), (d)==(d)) X- #define ask1(a) ask(a, 0, 0, 0) X- #define ask2(a,b) ask(a, (b)==(b), 0, 0) X- #define ask3(a,b,c) ask(a, (b)==(b), (c)==(c), 0) X- #define ask4(a,b,c,d) ask(a, (b)==(b), (c)==(c), (d)==(d)) X- #define fatal1(a) fatal(a, 0, 0, 0) X- #define fatal2(a,b) fatal(a, (b)==(b), 0, 0) X- #define fatal3(a,b,c) fatal(a, (b)==(b), (c)==(c), 0) X- #define fatal4(a,b,c,d) fatal(a, (b)==(b), (c)==(c), (d)==(d)) X- X- #else /* lint */ X- /* if this doesn't work, try defining CANVARARG above */ X- #define say1(a) say(a, Nullch, Nullch, Nullch) X- #define say2(a,b) say(a, b, Nullch, Nullch) X- #define say3(a,b,c) say(a, b, c, Nullch) X- #define say4 say X- #define ask1(a) ask(a, Nullch, Nullch, Nullch) X- #define ask2(a,b) ask(a, b, Nullch, Nullch) X- #define ask3(a,b,c) ask(a, b, c, Nullch) X- #define ask4 ask X- #define fatal1(a) fatal(a, Nullch, Nullch, Nullch) X- #define fatal2(a,b) fatal(a, b, Nullch, Nullch) X- #define fatal3(a,b,c) fatal(a, b, c, Nullch) X- #define fatal4 fatal X- X- #endif /* lint */ X- X- /* if neither of the above work, join all multi-line macro calls. */ X- #endif X- X- EXT char serrbuf[BUFSIZ]; /* buffer for stderr */ X- X char *fetchname(); X int move_file(); X void copy_file(); X- void say(); X- void fatal(); X- void ask(); X char *savestr(); X void set_signals(); X void ignore_signals(); X--- 1,24 ---- X! #if !defined(lint) && defined(DOSCCS) X! char rcsid[] = "util.h 2.1 (2.11BSD) 2026/6/21"; X! #endif X! /* X * $Log: util.h,v $ X * Revision 2.0 86/09/17 15:40:06 lwall X * Baseline for netwide release. X */ X X! /* X! * say?() was inlined as "fprintf(stderr)" and ask?() not being as frequently X! * used was done as "sprintf() + ask(prompt)". fatal?() was converted to X! * use stdargs to avoid extra { ... } blocks. X! */ X! #include X X! void fatal(char *fmt, ...); X X char *fetchname(); X int move_file(); X void copy_file(); X char *savestr(); X void set_signals(); X void ignore_signals(); X*** ./usr/src/usr.bin/patch/EXTERN.h.old Thu Jun 23 13:37:51 1988 X--- ./usr/src/usr.bin/patch/EXTERN.h Mon Jun 22 08:02:25 2026 X*************** X*** 1,9 **** X! /* $Header: EXTERN.h,v 2.0 86/09/17 15:35:37 lwall Exp $ X * X * $Log: EXTERN.h,v $ X * Revision 2.0 86/09/17 15:35:37 lwall X * Baseline for netwide release. X- * X */ X X #undef EXT X--- 1,8 ---- X! /* $Header: EXTERN.h 2.1 (2.11BSD) 2026/6/18 20:47:18 sms $ X * X * $Log: EXTERN.h,v $ X * Revision 2.0 86/09/17 15:35:37 lwall X * Baseline for netwide release. X */ X X #undef EXT X*************** X*** 11,15 **** X X #undef INIT X #define INIT(x) X- X- #undef DOINIT X--- 10,12 ---- X*** ./usr/src/usr.bin/patch/INTERN.h.old Thu Jun 23 13:39:18 1988 X--- ./usr/src/usr.bin/patch/INTERN.h Mon Jun 22 08:02:18 2026 X*************** X*** 1,9 **** X! /* $Header: INTERN.h,v 2.0 86/09/17 15:35:58 lwall Exp $ X * X * $Log: INTERN.h,v $ X * Revision 2.0 86/09/17 15:35:58 lwall X * Baseline for netwide release. X- * X */ X X #undef EXT X--- 1,8 ---- X! /* $Header: INTERN.h 2.1 (2.11BSD) 2026/6/18 20:47:18 sms $ X * X * $Log: INTERN.h,v $ X * Revision 2.0 86/09/17 15:35:58 lwall X * Baseline for netwide release. X */ X X #undef EXT X*************** X*** 11,15 **** X X #undef INIT X #define INIT(x) = x X- X- #define DOINIT X--- 10,12 ---- X*** ./usr/src/usr.bin/shar/traverse.c.old Tue Mar 18 04:26:12 1986 X--- ./usr/src/usr.bin/shar/traverse.c Tue Feb 3 13:56:14 2026 X*************** X*** 1,49 **** X! /*LINTLIBRARY*/ X! #ifndef lint X! static char sccsid[] = "@(#)traverse.c 1.0 (WangInst) 12/23/84"; X #endif X X #include X #include X #include X X! #ifdef MAXNAMLEN X! X! #define namedir(entry) (entry->d_name) X! #define MAXNAME 256 X! X! #else X! X! #define DIR FILE X! #define MAXNAME (DIRSIZ+2) X! #define opendir(path) fopen (path, "r") X! #define closedir(dirp) fclose (dirp) X! struct direct * X! readdir (dirp) X! DIR *dirp; X { X! static struct direct entry; X! if (dirp == NULL) return (NULL); X! for (;;) X! { X! if (fread (&entry, sizeof (struct direct), 1, dirp) == 0) return (NULL); X! if (entry.d_ino) return (&entry); X! } X } X- char *strncpy (); X- char * X- namedir (entry) X- struct direct *entry; X- { X- static char name[MAXNAME]; X- return (strncpy (name, entry->d_name, DIRSIZ)); X- } X X- #endif X- X- #include X- #define isdir(path) (stat(path, &buf) ? 0 : (buf.st_mode&S_IFMT)==S_IFDIR) X- X traverse (path, func) X char *path; X int (*func) (); X--- 1,19 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)traverse.c 1.1 (2.11BSD) 2026/1/30"; X #endif X X #include X #include X #include X+ #include X X! int isdir(char *path) X { X! struct stat buf; X! X! return((stat(path, &buf) ? 0 : (buf.st_mode&S_IFMT)==S_IFDIR)); X } X X traverse (path, func) X char *path; X int (*func) (); X*************** X*** 50,74 **** X { X DIR *dirp; X struct direct *entry; X! struct stat buf; X! int filetype = isdir (path) ? 'd' : 'f'; X (*func) (path, filetype, 0); X if (filetype == 'd') X { X! if (chdir (path) == 0) X { X! if (dirp = opendir (".")) X { X! while (entry = readdir (dirp)) X { X! char name[MAXNAME]; X! (void) strcpy (name, namedir (entry)); X if (strcmp(name, ".") && strcmp(name, "..")) X! traverse (name, func); X } X (void) closedir(dirp); X } X! (void) chdir (".."); X } X } X (*func) (path, filetype, 1); X--- 20,44 ---- X { X DIR *dirp; X struct direct *entry; X! int filetype = isdir(path) ? 'd' : 'f'; X! X (*func) (path, filetype, 0); X if (filetype == 'd') X { X! if (chdir(path) == 0) X { X! if (dirp = opendir(".")) X { X! while (entry = readdir(dirp)) X { X! char name[MAXNAMLEN]; X! (void) strcpy(name, entry->d_name); X if (strcmp(name, ".") && strcmp(name, "..")) X! traverse(name, func); X } X (void) closedir(dirp); X } X! (void)chdir (".."); X } X } X (*func) (path, filetype, 1); X*************** X*** 77,86 **** X #ifdef STANDALONE X X static Indent = 0; X tryverse (file, type, pos) X char *file; X { X! int in; X if (pos == 0) X { X for (in = 0; in < Indent; in++) putchar ('\t'); X--- 47,57 ---- X #ifdef STANDALONE X X static Indent = 0; X+ X tryverse (file, type, pos) X char *file; X { X! register int in; X if (pos == 0) X { X for (in = 0; in < Indent; in++) putchar ('\t'); X*************** X*** 96,103 **** X X main (argc, argv) char **argv; X { X- int tryverse (); X char *root = argc > 1 ? argv[1] : "."; X! traverse (root, tryverse); X } X #endif X--- 67,74 ---- X X main (argc, argv) char **argv; X { X char *root = argc > 1 ? argv[1] : "."; X! X! traverse(root, tryverse); X } X #endif X*** ./usr/src/usr.bin/shar/shar.c.old Tue Mar 18 05:13:46 1986 X--- ./usr/src/usr.bin/shar/shar.c Tue Feb 3 20:06:35 2026 X*************** X*** 7,28 **** X #include X #include X #include X X! #ifndef lint X! static char sccsid[] = "@(#)shar.c 2.0 (Usenet) 3/11/86"; X #endif X X- typedef int Boole; X- #define TRUE ((Boole) 1) X- #define FALSE ((Boole) 0) X- typedef int Status; X- #define SUCCESS 0 X- #define FAILURE 1 X- X /* GLOBALS */ X int Lastchar; /* the last character printed */ X int Ctrlcount; /* how many bad control characters are in file */ X X /* COMMANDS */ X #define EXTRACT "#! /bin/sh" /* magic exec string at shar file start */ X #define PATH "/bin:/usr/bin:$PATH" /* search path for programs */ X--- 7,27 ---- X #include X #include X #include X+ #include X+ #include X+ #include X+ #include X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)shar.c 2.1 (2.11BSD) 2026/1/29"; X #endif X X /* GLOBALS */ X int Lastchar; /* the last character printed */ X int Ctrlcount; /* how many bad control characters are in file */ X X+ extern int isdir(char *); X+ X /* COMMANDS */ X #define EXTRACT "#! /bin/sh" /* magic exec string at shar file start */ X #define PATH "/bin:/usr/bin:$PATH" /* search path for programs */ X*************** X*** 36,71 **** X #define ECHO "echo shar:" /* echo a message to extractor */ X #define DECODE "uudecode" /* used to decode uuencoded files */ X X! /*FUNCTION main: traverse files to make archive to standard output */ X! main (argc, argv) char **argv; X { X! int shar (); X! int optind; X X! if ((optind = initial (argc, argv)) < 0) X! exit (FAILURE); X X! if (header (argc, argv, optind)) X! exit (FAILURE); X X! while (optind < argc) X! traverse (argv[optind++], shar); X X! footer (); X X! exit (SUCCESS); X } X X! /* OPTIONS */ X! Boole Verbose = FALSE; /* provide append/extract feedback */ X! Boole Basename = FALSE; /* extract into basenames */ X! Boole Count = FALSE; /* count characters to check transfer */ X! Boole Overcheck = TRUE; /* check overwriting */ X! Boole Uucode = FALSE; /* uuencode the file */ X char *Delim = "SHAR_EOF"; /* put after each file */ X char Filter[100] = CAT; /* used to extract archived files */ X char *Prefix = NULL; /* line prefix to avoid funny chars */ X! Boole Modeset = FALSE; /* set exact modes on extraction */ X X /*FUNCTION: initial: do option parsing and any setup */ X int /* returns the index of the first operand file */ X--- 35,92 ---- X #define ECHO "echo shar:" /* echo a message to extractor */ X #define DECODE "uudecode" /* used to decode uuencoded files */ X X! /*FUNCTION main: traverse files to make archive to standard output */ X! main(argc, argv) char **argv; X { X! int shar(); X! int home; X X! home = open(".", O_RDONLY); X! if (home < 0) X! { X! fprintf(stderr, "open(.) error: %s\n", strerror(errno)); X! exit(1); X! } X X! if ((optind = initial(argc, argv)) < 0) X! exit(1); X X! if (header(argc, argv, optind)) X! exit(1); X X! for (; optind < argc; optind++) X! { X! traverse(argv[optind], shar); X! fchdir(home); X! /* X! * after processing a relative path (./a/b/c/d) it is necessary to go back X! * to the "home directory" because sh will have done "cd .." back to X! * next to last component (c). Any future relative files will be looked for X! * in 'c' and not from the starting directory. System patches are usually X! * generated relative to /. Installing ./usr/src/bin/mkdir via a shar file X! * would leave 'sh' in ./usr/src/bin instead of / X! * X! * We do not check if the argument is relative or not. This may cause an X! * extra but harmless "chdir $STARTDIR" to be output. X! */ X! if (isdir(argv[optind])) X! printf("%s $STARTDIR\n", CHDIR); X! } X X! footer(); X! exit(0); X } X X! /* OPTIONS */ X! int Verbose = 0; /* provide append/extract feedback */ X! int Basename = 0; /* extract into basenames */ X! int Count = 0; /* count characters to check transfer */ X! int Overcheck = 1; /* check overwriting */ X! int Uucode = 0; /* uuencode the file */ X char *Delim = "SHAR_EOF"; /* put after each file */ X char Filter[100] = CAT; /* used to extract archived files */ X char *Prefix = NULL; /* line prefix to avoid funny chars */ X! int Modeset = 0; /* set exact modes on extraction */ X X /*FUNCTION: initial: do option parsing and any setup */ X int /* returns the index of the first operand file */ X*************** X*** 81,106 **** X while ((C = getopt (argc, argv, optstring)) != EOF) X switch (C) X { X! case 'u': Uucode = TRUE; break; X! case 'b': Basename = TRUE; break; X! case 'c': Count = TRUE; break; X case 'd': Delim = optarg; break; X! case 'm': Modeset = TRUE; break; X case 's': /* silent running */ X! Overcheck = FALSE; X! Verbose = FALSE; X! Count = FALSE; X Prefix = NULL; X break; X case 'a': /* all the options */ X! Verbose = TRUE; X! Count = TRUE; X! Basename = TRUE; X /* fall through to set prefix */ X optarg = " X"; X /* FALLTHROUGH */ X case 'p': (void) sprintf (Filter, SED, Prefix = optarg); break; X! case 'v': Verbose = TRUE; break; X default: errflg++; X } X X--- 102,127 ---- X while ((C = getopt (argc, argv, optstring)) != EOF) X switch (C) X { X! case 'u': Uucode = 1; break; X! case 'b': Basename = 1; break; X! case 'c': Count = 1; break; X case 'd': Delim = optarg; break; X! case 'm': Modeset = 1; break; X case 's': /* silent running */ X! Overcheck = 0; X! Verbose = 0; X! Count = 0; X Prefix = NULL; X break; X case 'a': /* all the options */ X! Verbose = 1; X! Count = 1; X! Basename = 1; X /* fall through to set prefix */ X optarg = " X"; X /* FALLTHROUGH */ X case 'p': (void) sprintf (Filter, SED, Prefix = optarg); break; X! case 'v': Verbose = 1; break; X default: errflg++; X } X X*************** X*** 115,129 **** X return (optind); X } X X! /*FUNCTION header: print header for archive */ X header (argc, argv, optind) X char **argv; X { X int i; X! Boole problems = FALSE; X long clock; X- char *ctime (); X- char *getenv (); X char *NAME = getenv ("NAME"); X char *ORG = getenv ("ORGANIZATION"); X X--- 136,148 ---- X return (optind); X } X X! /*FUNCTION header: print header for archive */ X header (argc, argv, optind) X char **argv; X { X int i; X! int problems = 0; X long clock; X char *NAME = getenv ("NAME"); X char *ORG = getenv ("ORGANIZATION"); X X*************** X*** 135,141 **** X } X X if (problems) X! return (FAILURE); X X printf ("%s\n", EXTRACT); X printf ("# This is a shell archive, meaning:\n"); X--- 154,160 ---- X } X X if (problems) X! return(1); X X printf ("%s\n", EXTRACT); X printf ("# This is a shell archive, meaning:\n"); X*************** X*** 149,155 **** X if (NAME) X printf ("# By:\t%s (%s)\n", NAME, ORG ? ORG : ""); X printf ("export PATH; PATH=%s\n", PATH); X! return (SUCCESS); X } X X /*FUNCTION footer: print end of shell archive */ X--- 168,175 ---- X if (NAME) X printf ("# By:\t%s (%s)\n", NAME, ORG ? ORG : ""); X printf ("export PATH; PATH=%s\n", PATH); X! printf ("export STARTDIR; STARTDIR=`pwd`\n"); X! return(0); X } X X /*FUNCTION footer: print end of shell archive */ X*************** X*** 159,165 **** X printf ("#\tEnd of shell archive\n"); X } X X! /* uuencode options available to send cntrl and non-ascii chars */ X /* really, this is getting to be too much like cpio or tar */ X X /* ENC is the basic 1 character encoding function to make a char printing */ X--- 179,185 ---- X printf ("#\tEnd of shell archive\n"); X } X X! /* uuencode options available to send cntrl and non-ascii chars */ X /* really, this is getting to be too much like cpio or tar */ X X /* ENC is the basic 1 character encoding function to make a char printing */ X*************** X*** 166,176 **** X #define ENC(c) (((c) & 077) + ' ') X X /*FUNCTION uuarchive: simulate uuencode to send files */ X! Status X uuarchive (input, protection, output) X! char *input; X! int protection; X! char *output; X { X FILE *in; X if (in = fopen (input, "r")) X--- 186,196 ---- X #define ENC(c) (((c) & 077) + ' ') X X /*FUNCTION uuarchive: simulate uuencode to send files */ X! int X uuarchive (input, protection, output) X! char *input; X! int protection; X! char *output; X { X FILE *in; X if (in = fopen (input, "r")) X*************** X*** 180,188 **** X uuencode (in, stdout); X printf ("end\n"); X fclose (in); X! return (SUCCESS); X } X! return (FAILURE); X } X X uuencode (in, out) X--- 200,208 ---- X uuencode (in, stdout); X printf ("end\n"); X fclose (in); X! return(0); X } X! return(1); X } X X uuencode (in, out) X*************** X*** 218,224 **** X putc (ENC(c4), ioptr); X } X X! /*FUNCTION archive: make archive of input file to be extracted to output */ X archive (input, output) X char *input, *output; X { X--- 238,244 ---- X putc (ENC(c4), ioptr); X } X X! /*FUNCTION archive: make archive of input file to be extracted to output */ X archive (input, output) X char *input, *output; X { X*************** X*** 245,267 **** X if (Lastchar != '\n') /* incomplete last line */ X putchar ('\n'); /* Delim MUST begin new line! */ X X! if (Count == TRUE && Lastchar != '\n') X printf ("%s \"a missing newline was added to '%s'\"\n", ECHO, input); X! if (Count == TRUE && Ctrlcount) X printf ("%s \"%d control character%s may be missing from '%s'\"\n", X ECHO, Ctrlcount, Ctrlcount > 1 ? "s" : "", input); X X (void) fclose (ioptr); X! return (SUCCESS); X } X else X { X fprintf (stderr, "shar: Can't open '%s'\n", input); X! return (FAILURE); X } X } X X! /*FUNCTION copyout: copy ioptr to stdout */ X /* X Copyout copies its ioptr almost as fast as possible X except that it has to keep track of the last character X--- 265,287 ---- X if (Lastchar != '\n') /* incomplete last line */ X putchar ('\n'); /* Delim MUST begin new line! */ X X! if (Count == 1 && Lastchar != '\n') X printf ("%s \"a missing newline was added to '%s'\"\n", ECHO, input); X! if (Count == 1 && Ctrlcount) X printf ("%s \"%d control character%s may be missing from '%s'\"\n", X ECHO, Ctrlcount, Ctrlcount > 1 ? "s" : "", input); X X (void) fclose (ioptr); X! return(0); X } X else X { X fprintf (stderr, "shar: Can't open '%s'\n", input); X! return(1); X } X } X X! /*FUNCTION copyout: copy ioptr to stdout */ X /* X Copyout copies its ioptr almost as fast as possible X except that it has to keep track of the last character X*************** X*** 283,289 **** X X while ((C = getc (ioptr)) != EOF) X { X! if (count == TRUE && badctrl (C)) X Ctrlcount++; X L = putchar (C); X } X--- 303,309 ---- X X while ((C = getc (ioptr)) != EOF) X { X! if (count == 1 && badctrl (C)) X Ctrlcount++; X L = putchar (C); X } X*************** X*** 299,305 **** X { X while (*s) X { X! if (Count == TRUE && badctrl (*s)) Ctrlcount++; X putchar (*s++); X } X Lastchar = *(s-1); X--- 319,325 ---- X { X while (*s) X { X! if (Count == 1 && badctrl (*s)) Ctrlcount++; X putchar (*s++); X } X Lastchar = *(s-1); X*************** X*** 306,312 **** X } X } X X! /*FUNCTION shar: main archiving routine passed to directory traverser */ X shar (file, type, pos) X char *file; /* file or directory to be processed */ X int type; /* either 'f' for file or 'd' for directory */ X--- 326,332 ---- X } X } X X! /*FUNCTION shar: main archiving routine passed to directory traverser */ X shar (file, type, pos) X char *file; /* file or directory to be processed */ X int type; /* either 'f' for file or 'd' for directory */ X*************** X*** 324,330 **** X else X protection = statbuf.st_mode & 07777; X X! if (Basename == TRUE) X { X while (*basefile) basefile++; /* go to end of name */ X while (basefile > file && *(basefile-1) != '/') X--- 344,350 ---- X else X protection = statbuf.st_mode & 07777; X X! if (Basename == 1) X { X while (*basefile) basefile++; /* go to end of name */ X while (basefile > file && *(basefile-1) != '/') X*************** X*** 338,349 **** X { X if (Uucode) X { X! if (uuarchive (file, protection, basefile) != SUCCESS) X! exit (FAILURE); X } X else X! if (archive (file, basefile) != SUCCESS) X! exit (FAILURE); X } X } X else /* pos == 1, after the file is archived */ X--- 358,369 ---- X { X if (Uucode) X { X! if (uuarchive (file, protection, basefile) != 0) X! exit(1); X } X else X! if (archive (file, basefile) != 0) X! exit(1); X } X } X else /* pos == 1, after the file is archived */ X*************** X*** 350,356 **** X endfile (basefile, type, statbuf.st_size, protection); X } X X! /*FUNCTION beginfile: do activities before packing up a file */ X beginfile (basefile, type, size, protection) X char *basefile; /* name of the target file */ X int type; /* either 'd' for directory, or 'f' for file */ X--- 370,376 ---- X endfile (basefile, type, statbuf.st_size, protection); X } X X! /*FUNCTION beginfile: do activities before packing up a file */ X beginfile (basefile, type, size, protection) X char *basefile; /* name of the target file */ X int type; /* either 'd' for directory, or 'f' for file */ X*************** X*** 361,381 **** X { X printf ("if %s ! -d '%s'\n", TEST, basefile); X printf ("then\n"); X! if (Verbose == TRUE) X printf (" %s \"creating directory '%s'\"\n", ECHO, basefile); X printf (" %s '%s'\n", MKDIR, basefile); X printf ("fi\n"); X! if (Verbose == TRUE) X printf ("%s \"entering directory '%s'\"\n", ECHO, basefile); X printf ("%s '%s'\n", CHDIR, basefile); X } X else /* type == 'f' */ X { X! if (Verbose == TRUE) X printf ("%s \"extracting '%s'\" '(%ld character%s)'\n", X ECHO, basefile, size, size == 1 ? "" : "s"); X X! if (Overcheck == TRUE) X { X printf ("if %s -f '%s'\n", TEST, basefile); X printf ("then\n"); X--- 381,401 ---- X { X printf ("if %s ! -d '%s'\n", TEST, basefile); X printf ("then\n"); X! if (Verbose == 1) X printf (" %s \"creating directory '%s'\"\n", ECHO, basefile); X printf (" %s '%s'\n", MKDIR, basefile); X printf ("fi\n"); X! if (Verbose == 1) X printf ("%s \"entering directory '%s'\"\n", ECHO, basefile); X printf ("%s '%s'\n", CHDIR, basefile); X } X else /* type == 'f' */ X { X! if (Verbose == 1) X printf ("%s \"extracting '%s'\" '(%ld character%s)'\n", X ECHO, basefile, size, size == 1 ? "" : "s"); X X! if (Overcheck == 1) X { X printf ("if %s -f '%s'\n", TEST, basefile); X printf ("then\n"); X*************** X*** 387,393 **** X } X } X X! /*FUNCTION endfile: do activities after packing up a file */ X endfile (basefile, type, size, protection) X char *basefile; /* name of the target file */ X int type; /* either 'd' for directory, or 'f' for file */ X--- 407,413 ---- X } X } X X! /*FUNCTION endfile: do activities after packing up a file */ X endfile (basefile, type, size, protection) X char *basefile; /* name of the target file */ X int type; /* either 'd' for directory, or 'f' for file */ X*************** X*** 396,404 **** X { X if (type == 'd') X { X! if (Modeset == TRUE) X printf ("%s %o .\n", CHMOD, protection); X! if (Verbose == TRUE) X printf ("%s \"done with directory '%s'\"\n", ECHO, basefile); X printf ("%s ..\n", CHDIR); X } X--- 416,424 ---- X { X if (type == 'd') X { X! if (Modeset == 1) X printf ("%s %o .\n", CHMOD, protection); X! if (Verbose == 1) X printf ("%s \"done with directory '%s'\"\n", ECHO, basefile); X printf ("%s ..\n", CHDIR); X } X*************** X*** 405,411 **** X else /* type == 'f' (plain file) */ X { X printf ("%s\n", Delim); X! if (Count == TRUE) X { X printf ("if %s %ld -ne \"`%s '%s'`\"\n", TEST, size, WC_C, basefile); X printf ("then\n"); X--- 425,431 ---- X else /* type == 'f' (plain file) */ X { X printf ("%s\n", Delim); X! if (Count == 1) X { X printf ("if %s %ld -ne \"`%s '%s'`\"\n", TEST, size, WC_C, basefile); X printf ("then\n"); X*************** X*** 414,428 **** X size, size == 1 ? "" : "s"); X printf ("fi\n"); X } X! if (Uucode == FALSE) /* might have to chmod by hand */ X { X! if (Modeset == TRUE) /* set all protection bits (W McKeeman) */ X printf ("%s %o '%s'\n", X CHMOD, protection, basefile); X else if (protection & 0111) /* executable -> chmod +x */ X printf ("%s +x '%s'\n", CHMOD, basefile); X } X! if (Overcheck == TRUE) X printf ("fi\n"); X } X } X--- 434,448 ---- X size, size == 1 ? "" : "s"); X printf ("fi\n"); X } X! if (Uucode == 0) /* might have to chmod by hand */ X { X! if (Modeset == 1) /* set all protection bits (W McKeeman) */ X printf ("%s %o '%s'\n", X CHMOD, protection, basefile); X else if (protection & 0111) /* executable -> chmod +x */ X printf ("%s +x '%s'\n", CHMOD, basefile); X } X! if (Overcheck == 1) X printf ("fi\n"); X } X } X*** ./usr/src/usr.bin/shar/Makefile.old Tue Dec 23 20:14:19 2025 X--- ./usr/src/usr.bin/shar/Makefile Fri Jan 30 06:37:15 2026 X*************** X*** 1,4 **** X! # Makefile 2.0 (2.11BSD) 2025/11/25 X CFLAGS= -O X LDFLAGS=-i X X--- 1,4 ---- X! # Makefile 2.1 (2.11BSD) 2026/1/30 X CFLAGS= -O X LDFLAGS=-i X X*************** X*** 5,18 **** X SRCS= shar.c traverse.c X OBJS= shar.o traverse.o X X! .SUFFIXES: .3 .1 .0 X X .1.0: X /usr/man/manroff $*.1 > $*.0 X X- .3.0: X- /usr/man/manroff $*.3 > $*.0 X- X all: shar traverse shar.0 traverse.0 X X shar: ${OBJS} X--- 5,15 ---- X SRCS= shar.c traverse.c X OBJS= shar.o traverse.o X X! .SUFFIXES: .1 .0 X X .1.0: X /usr/man/manroff $*.1 > $*.0 X X all: shar traverse shar.0 traverse.0 X X shar: ${OBJS} X*************** X*** 19,25 **** X cc ${LDFLAGS} -o shar ${OBJS} X X traverse: traverse.c X! cc ${CFLAGS} -o traverse -DSTANDALONE traverse.c X X lint: X lint -h ${SRCS} X--- 16,22 ---- X cc ${LDFLAGS} -o shar ${OBJS} X X traverse: traverse.c X! cc ${CFLAGS} ${LDFLAGS} -o traverse -DSTANDALONE traverse.c X X lint: X lint -h ${SRCS} X*************** X*** 28,34 **** X install -c -s -m 755 -o root shar /usr/bin/shar X install -c -s -m 755 -o root traverse /usr/bin/traverse X install -c -m 444 -o root -g staff shar.0 /usr/man/cat1 X! install -c -m 444 -o root -g staff traverse.0 /usr/man/cat3 X X tags: ${SRCS} X ctags $< X--- 25,31 ---- X install -c -s -m 755 -o root shar /usr/bin/shar X install -c -s -m 755 -o root traverse /usr/bin/traverse X install -c -m 444 -o root -g staff shar.0 /usr/man/cat1 X! install -c -m 444 -o root -g staff traverse.0 /usr/man/cat1 X X tags: ${SRCS} X ctags $< X*** ./usr/src/usr.bin/fstat/fstat.c.old Fri Sep 20 14:10:37 2024 X--- ./usr/src/usr.bin/fstat/fstat.c Wed Jun 17 09:27:08 2026 X*************** X*** 15,26 **** X "@(#) Copyright (c) 1987 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)fstat.c 5.12 (2.11BSD) 2024/9/20"; X #endif X X- /* X- * fstat X- */ X #include X #include X #include X--- 15,23 ---- X "@(#) Copyright (c) 1987 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)fstat.c 5.13 (2.11BSD) 2026/5/21"; X #endif X X #include X #include X #include X*************** X*** 40,62 **** X #include X #include X #include X- #include X #include X #include X X- #ifdef ULTRIX X- /* UFS -> GFS */ X- # define inode gnode X- # define x_iptr x_gptr X- # define i_dev g_dev X- # define i_number g_number X- # define i_mode g_mode X- # define i_size g_size X- #endif X- X #define N_KMEM "/dev/kmem" X #define N_MEM "/dev/mem" X- #define N_SWAP "/dev/swap" X #define N_UNIX "/unix" X X #define TEXT -2 X--- 37,49 ---- X #include X #include X #include X #include X #include X+ #include X+ #include X X #define N_KMEM "/dev/kmem" X #define N_MEM "/dev/mem" X #define N_UNIX "/unix" X X #define TEXT -2 X*************** X*** 70,76 **** X } DEVS; X DEVS *devs; X X- #ifdef pdp11 X static struct nlist nl[] = { X { "_proc" }, X #define X_PROC 0 X--- 57,62 ---- X*************** X*** 80,136 **** X #define X_NETDATA 2 X { "" }, X }; X- #else X- static struct nlist nl[] = { X- { "_proc" }, X- #define X_PROC 0 X- { "_Usrptmap" }, X- #define X_USRPTMA 1 X- { "_nproc" }, X- #define X_NPROC 2 X- { "_usrpt" }, X- #define X_USRPT 3 X- { "" }, X- }; X- #endif X X struct proc *mproc; X- #ifndef pdp11 X- struct pte *Usrptma, *usrpt; X- #endif X X union { X struct user user; X- #ifdef pdp11 X char upages[ctob(USIZE)]; X- #else X- char upages[UPAGES][NBPG]; X- #endif X } user; X X- extern int errno; X static int fflg, vflg; X static int kmem, mem, nproc, swap; X static char *uname; X- #ifdef pdp11 X static off_t netdata; X long lgetw(); X- #endif X X- off_t lseek(); X- X main(argc, argv) X int argc; X char **argv; X { X- extern char *optarg; X- extern int optind; X register struct passwd *passwd; X register int pflg, pid, uflg, uid; X int ch, size; X- struct passwd *getpwnam(), *getpwuid(); X- long lgetw(); X- char *malloc(); X X pflg = uflg = 0; X while ((ch = getopt(argc, argv, "p:u:v")) != EOF) X--- 66,92 ---- X*************** X*** 177,198 **** X fprintf(stderr, "%s: No namelist\n", N_UNIX); X exit(1); X } X! #ifdef pdp11 X if (nl[X_NETDATA].n_type) { X netdata = lgetw((off_t)nl[X_NETDATA].n_value); X netdata = ctob(netdata); X } X! #else X! Usrptma = (struct pte *)nl[X_USRPTMA].n_value; X! usrpt = (struct pte *) nl[X_USRPT].n_value; X! #endif X nproc = (int)lgetw((off_t)nl[X_NPROC].n_value); X X- #ifdef pdp11 X (void)lseek(kmem, (off_t)nl[X_PROC].n_value, L_SET); X- #else X- (void)lseek(kmem, lgetw((off_t)nl[X_PROC].n_value), L_SET); X- #endif X size = nproc * sizeof(struct proc); X if ((mproc = (struct proc *)malloc((u_int)size)) == NULL) { X fprintf(stderr, "fstat: out of space.\n"); X--- 133,147 ---- X fprintf(stderr, "%s: No namelist\n", N_UNIX); X exit(1); X } X! X if (nl[X_NETDATA].n_type) { X netdata = lgetw((off_t)nl[X_NETDATA].n_value); X netdata = ctob(netdata); X } X! X nproc = (int)lgetw((off_t)nl[X_NPROC].n_value); X X (void)lseek(kmem, (off_t)nl[X_PROC].n_value, L_SET); X size = nproc * sizeof(struct proc); X if ((mproc = (struct proc *)malloc((u_int)size)) == NULL) { X fprintf(stderr, "fstat: out of space.\n"); X*************** X*** 223,283 **** X exit(0); X } X X- #ifndef pdp11 X static X getu() X { X- struct pte *pteaddr, apte; X- struct pte arguutl[UPAGES+CLSIZE]; X- register int i; X- int ncl; X X if ((mproc->p_flag & SLOAD) == 0) { X if (swap < 0) X return(0); X- (void)lseek(swap, (off_t)dtob(mproc->p_swaddr), L_SET); X- if (read(swap, (char *)&user.user, sizeof(struct user)) X- != sizeof(struct user)) { X- fprintf(stderr, "fstat: can't read u for pid %d from %s\n", mproc->p_pid, N_SWAP); X- return(0); X- } X- return(1); X- } X- pteaddr = &Usrptma[btokmx(mproc->p_p0br) + mproc->p_szpt - 1]; X- (void)lseek(kmem, (off_t)pteaddr, L_SET); X- if (read(kmem, (char *)&apte, sizeof(apte)) != sizeof(apte)) { X- printf("fstat: can't read indir pte to get u for pid %d from %s\n", mproc->p_pid, N_SWAP); X- return(0); X- } X- (void)lseek(mem, (off_t)ctob(apte.pg_pfnum+1) - (UPAGES+CLSIZE) X- * sizeof(struct pte), L_SET); X- if (read(mem, (char *)arguutl, sizeof(arguutl)) != sizeof(arguutl)) { X- printf("fstat: can't read page table for u of pid %d from %s\n", mproc->p_pid, N_KMEM); X- return(0); X- } X- ncl = (sizeof(struct user) + NBPG*CLSIZE - 1) / (NBPG*CLSIZE); X- while (--ncl >= 0) { X- i = ncl * CLSIZE; X- (void)lseek(mem, (off_t)ctob(arguutl[CLSIZE+i].pg_pfnum), L_SET); X- if (read(mem, user.upages[i], CLSIZE*NBPG) != CLSIZE*NBPG) { X- printf("fstat: can't read page %u of u of pid %d from %s\n", arguutl[CLSIZE+i].pg_pfnum, mproc->p_pid, N_MEM); X- return(0); X- } X- } X- return(1); X- } X- #else X- static X- getu() X- { X- X- if ((mproc->p_flag & SLOAD) == 0) { X- if (swap < 0) X- return(0); X (void)lseek(swap, (off_t)(mproc->p_addr)<<9, L_SET); X if (read(swap, (char *)&user.user, sizeof(struct user)) X != sizeof(struct user)) { X! fprintf(stderr, "fstat: can't read u for pid %d from %s\n", mproc->p_pid, N_SWAP); X return(0); X } X return(1); X--- 172,188 ---- X exit(0); X } X X static X getu() X { X X if ((mproc->p_flag & SLOAD) == 0) { X if (swap < 0) X return(0); X (void)lseek(swap, (off_t)(mproc->p_addr)<<9, L_SET); X if (read(swap, (char *)&user.user, sizeof(struct user)) X != sizeof(struct user)) { X! fprintf(stderr, "fstat: can't read u for pid %d from swap\n", mproc->p_pid); X return(0); X } X return(1); X*************** X*** 289,295 **** X } X return(1); X } X- #endif X X static X dotext() X--- 194,199 ---- X*************** X*** 296,305 **** X { X struct text text; X X- #ifdef pdp11 X if (!mproc->p_textp) X return; X- #endif X (void)lseek(kmem, (off_t)mproc->p_textp, L_SET); X if (read(kmem, (char *) &text, sizeof(text)) != sizeof(text)) { X rerr1("text table", N_KMEM); X--- 200,207 ---- X*************** X*** 331,340 **** X } X if (mproc->p_pid == 0) X comm = "swapper"; X- #ifndef pdp11 X- else if (mproc->p_pid == 2) X- comm = "pagedaemon"; X- #endif X else X comm = user.user.u_comm; X printf("%-8.8s %-10.10s %5d ", uname, comm, mproc->p_pid); X--- 233,238 ---- X*************** X*** 355,369 **** X X switch(ftype) { X case DTYPE_INODE: X- #ifdef pdp11 X case DTYPE_PIPE: X- #endif X printf("\t%2d, %2d\t%5lu\t%6ld\t%3s %s\n", major(inode.i_dev), X minor(inode.i_dev), (long)inode.i_number, X inode.i_mode == IFSOCK ? 0L : inode.i_size, X- #ifdef pdp11 X ftype == DTYPE_PIPE ? "pip" : X- #endif X itype(inode.i_mode), name ? name : ""); X break; X case DTYPE_SOCKET: X--- 253,263 ---- X*************** X*** 421,436 **** X struct inpcb inpcb; X struct unpcb unpcb; X int len; X! char dname[32], *strcpy(); X X /* fill in socket */ X- #ifdef pdp11 X (void)lseek(mem, (off_t)sock + netdata, L_SET); X if (read(mem, (char *)&so, sizeof(struct socket)) X- #else X- (void)lseek(kmem, (off_t)sock, L_SET); X- if (read(kmem, (char *)&so, sizeof(struct socket)) X- #endif X != sizeof(struct socket)) { X rerr2(errno, (int)sock, "socket"); X return; X--- 315,325 ---- X struct inpcb inpcb; X struct unpcb unpcb; X int len; X! char dname[32]; X X /* fill in socket */ X (void)lseek(mem, (off_t)sock + netdata, L_SET); X if (read(mem, (char *)&so, sizeof(struct socket)) X != sizeof(struct socket)) { X rerr2(errno, (int)sock, "socket"); X return; X*************** X*** 437,449 **** X } X X /* fill in protosw entry */ X- #ifdef pdp11 X (void)lseek(mem, (off_t)so.so_proto + netdata, L_SET); X if (read(mem, (char *)&proto, sizeof(struct protosw)) X- #else X- (void)lseek(kmem, (off_t)so.so_proto, L_SET); X- if (read(kmem, (char *)&proto, sizeof(struct protosw)) X- #endif X != sizeof(struct protosw)) { X rerr2(errno, (int)so.so_proto, "protosw"); X return; X--- 326,333 ---- X*************** X*** 450,462 **** X } X X /* fill in domain */ X- #ifdef pdp11 X (void)lseek(mem, (off_t)proto.pr_domain + netdata, L_SET); X if (read(mem, (char *)&dom, sizeof(struct domain)) X- #else X- (void)lseek(kmem, (off_t)proto.pr_domain, L_SET); X- if (read(kmem, (char *)&dom, sizeof(struct domain)) X- #endif X != sizeof(struct domain)) { X rerr2(errno, (int)proto.pr_domain, "domain"); X return; X--- 334,341 ---- X*************** X*** 469,481 **** X if (dom.dom_family == AF_INET) X (void)strcpy(dname, "inet"); X else { X- #ifdef pdp11 X (void)lseek(mem, (off_t)dom.dom_name + netdata, L_SET); X if ((len = read(mem, dname, sizeof(dname) - 1)) < 0) { X- #else X- (void)lseek(kmem, (off_t)dom.dom_name, L_SET); X- if ((len = read(kmem, dname, sizeof(dname) - 1)) < 0) { X- #endif X rerr2(errno, (int)dom.dom_name, "char"); X dname[0] = '\0'; X } X--- 348,355 ---- X*************** X*** 505,517 **** X getinetproto(proto.pr_protocol); X if (proto.pr_protocol == IPPROTO_TCP ) { X if (so.so_pcb) { X- #ifdef pdp11 X (void)lseek(mem,(off_t)so.so_pcb+netdata,L_SET); X if (read(mem, &inpcb, sizeof(struct inpcb)) X- #else X- (void)lseek(kmem, (off_t)so.so_pcb, L_SET); X- if (read(kmem, (char *)&inpcb, sizeof(struct inpcb)) X- #endif X != sizeof(struct inpcb)){ X rerr2(errno, (int)so.so_pcb, "inpcb"); X return; X--- 379,386 ---- X*************** X*** 526,538 **** X /* print address of pcb and connected pcb */ X if (so.so_pcb) { X printf(" %x", (int)so.so_pcb); X- #ifdef pdp11 X (void)lseek(mem, (off_t)so.so_pcb + netdata, L_SET); X if (read(mem, (char *)&unpcb, sizeof(struct unpcb)) X- #else X- (void)lseek(kmem, (off_t)so.so_pcb, L_SET); X- if (read(kmem, (char *)&unpcb, sizeof(struct unpcb)) X- #endif X != sizeof(struct unpcb)){ X rerr2(errno, (int)so.so_pcb, "unpcb"); X return; X--- 395,402 ---- X*************** X*** 636,642 **** X { X struct stat statbuf; X DEVS *cur; X- char *malloc(); X X if (stat(filename, &statbuf)) { X perror(filename); X--- 500,505 ---- X*************** X*** 665,670 **** X--- 528,535 ---- X static X openfiles() X { X+ char buff[32]; X+ X if ((kmem = open(N_KMEM, O_RDONLY, 0)) < 0) { X perror(N_KMEM); X exit(1); X*************** X*** 673,680 **** X perror(N_MEM); X exit(1); X } X! if ((swap = open(N_SWAP, O_RDONLY, 0)) < 0) { X! perror(N_SWAP); X exit(1); X } X } X--- 538,547 ---- X perror(N_MEM); X exit(1); X } X! X! swapdevname(buff, sizeof (buff)); X! if ((swap = open(buff, O_RDONLY, 0)) < 0) { X! perror(buff); X exit(1); X } X } X*************** X*** 700,710 **** X lgetw(loc) X off_t loc; X { X- #ifdef pdp11 X u_short word; X- #else X- long word; X- #endif X X (void)lseek(kmem, (off_t)loc, L_SET); X if (read(kmem, (char *)&word, sizeof(word)) != sizeof(word)) X--- 567,573 ---- X*** ./usr/src/usr.bin/whereis/whereis.c.old Thu Nov 28 00:43:36 1996 X--- ./usr/src/usr.bin/whereis/whereis.c Tue Sep 15 15:44:41 2026 X*************** X*** 36,42 **** X "@(#) Copyright (c) 1993\n\ X The Regents of the University of California. All rights reserved.\n"; X X! static char sccsid[] = "@(#)whereis.c 8.1.1 (2.11BSD) 1996"; X #endif X X #include X--- 36,42 ---- X "@(#) Copyright (c) 1993\n\ X The Regents of the University of California. All rights reserved.\n"; X X! static char sccsid[] = "@(#)whereis.c 8.1.2 (2.11BSD) 2026/9/15"; X #endif X X #include X*************** X*** 48,54 **** X #include X #include X X! void usage(); X X int X main(argc, argv) X--- 48,58 ---- X #include X #include X X! void X! usage() X! { X! errx(1, "program ..."); X! } X X int X main(argc, argv) X*************** X*** 57,70 **** X { X struct stat sb; X size_t len; X! int ch, sverrno, mib[2]; X char *p, *t, *std, path[MAXPATHLEN]; X X! while ((ch = getopt(argc, argv, "")) != EOF) X! switch (ch) { X! case '?': X! default: X! usage(); X } X argc -= optind; X argv += optind; X--- 61,77 ---- X { X struct stat sb; X size_t len; X! int ch, mib[2]; X char *p, *t, *std, path[MAXPATHLEN]; X X! while ((ch = getopt(argc, argv, "")) != EOF) X! { X! switch (ch) X! { X! case '?': X! default: X! usage(); X! } X } X argc -= optind; X argv += optind; X*************** X*** 73,95 **** X mib[0] = CTL_USER; X mib[1] = USER_CS_PATH; X if (sysctl(mib, 2, NULL, &len, NULL, 0) == -1) X! return (-1); X! if (len == 0) { X! err(1, "user_cs_path: sysctl: zero length\n"); X! /* NOTREACHED */ X! } X! if ((std = (char *)malloc(len)) == NULL) { X! err(1, NULL); X! /* NOTREACHED */ X! } X! if (sysctl(mib, 2, std, &len, NULL, 0) == -1) { X! sverrno = errno; X! free(std); X! errno = sverrno; X! err(1, "sysctl: user_cs_path"); X! /* NOTREACHED */ X! } X X /* For each path, for each program... */ X for (; *argv; ++argv) X for (p = std;; *p++ = ':') { X--- 80,96 ---- X mib[0] = CTL_USER; X mib[1] = USER_CS_PATH; X if (sysctl(mib, 2, NULL, &len, NULL, 0) == -1) X! err(1, "sysctl user_cs_path len"); X X+ if (len == 0) X+ errx(1, "user_cs_path zero length"); X+ X+ if ((std = (char *)malloc(len)) == NULL) X+ errx(1, "malloc(%d) failed", len); X+ X+ if (sysctl(mib, 2, std, &len, NULL, 0) == -1) X+ err(1, "sysctl user_cs_path"); X+ X /* For each path, for each program... */ X for (; *argv; ++argv) X for (p = std;; *p++ = ':') { X*************** X*** 107,117 **** X if (p == NULL) X break; X } X! } X! X! void X! usage() X! { X! (void)fprintf(stderr, "whereis: program ...\n"); X! exit (1); X } X--- 108,112 ---- X if (p == NULL) X break; X } X! exit(0); X } X*** ./usr/src/usr.bin/whereis/whereis.1.old Thu Nov 28 00:48:47 1996 X--- ./usr/src/usr.bin/whereis/whereis.1 Tue Sep 15 15:57:44 2026 X*************** X*** 29,61 **** X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)whereis.1 8.2.1 (2.11BSD) 1996/11/27 X .\" X .TH WHEREIS 1 "November 27, 1996" X .UC 3 X .SH NAME X! whereis \- locate programs X .SH SYNOPSIS X .B whereis X! program ... X .SH DESCRIPTION X The X! .I whereis X! utility checks the standard binary directories for the specified programs, X! printing out the paths of any it finds. X .PP X! The path searched is the string returned by the X! .IR sysctl (8) X! utility for the X! ``user.cs_path'' X! string. X .SH SEE ALSO X! .IR sysctl (8), X .SH COMPATIBILITY X The historic flags and arguments for the X! .I whereis X utility are no longer available in this version. X .SH HISTORY X The X! .I whereis X command appeared in 3.0BSD. X--- 29,61 ---- X .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF X .\" SUCH DAMAGE. X .\" X! .\" @(#)whereis.1 8.2.2 (2.11BSD) 2026/9/15 X .\" X .TH WHEREIS 1 "November 27, 1996" X .UC 3 X .SH NAME X! whereis \- programs X .SH SYNOPSIS X .B whereis X! \fIprograms\fP X .SH DESCRIPTION X The X! .B whereis X! utility searches the standard binary directories for \fIprograms\fP X! printing out the paths of \fIprograms\fP that are found. X .PP X! The path searched is the string returned by X! .IR sysctl (3) X! for the MIB 'user.cs_path' X! .SH NOTES X! It is not an error if \fIprograms\fP are not found. X .SH SEE ALSO X! .IR sysctl (3), X .SH COMPATIBILITY X The historic flags and arguments for the X! .B whereis X utility are no longer available in this version. X .SH HISTORY X The X! .B whereis X command appeared in 3.0BSD. X*** ./usr/src/usr.bin/Makefile.old Wed Dec 24 19:17:39 2025 X--- ./usr/src/usr.bin/Makefile Fri Jan 23 07:18:40 2026 X*************** X*** 1,4 **** X! # Makefile 2.0 (2.11BSD) 2025/11/25 X # X CFLAGS= -O X LDFLAGS= -i X--- 1,4 ---- X! # Makefile 2.1 (2.11BSD) 2026/1/23 X # X CFLAGS= -O X LDFLAGS= -i X*************** X*** 10,16 **** X lex \ X m4 neqn plot printf prof ranlib ratfor refer roff spell struct tbl \ X mkerrlst patch \ X! renice shar tip uucp uname whereis yacc xargs xinstall X X # Shell scripts that need only be installed and are never removed. X # X--- 10,16 ---- X lex \ X m4 neqn plot printf prof ranlib ratfor refer roff spell struct tbl \ X mkerrlst patch \ X! renice shar tip touch uucp uname whereis yacc xargs xinstall X X # Shell scripts that need only be installed and are never removed. X # X*************** X*** 21,33 **** X SRCS= basename.c cal.c cb.c checkeq.c col.c comm.c crypt.c deroff.c \ X fgrep.c file.c iostat.c join.c look.c mesg.c ptx.c \ X rev.c sleep.c sort.c spline.c split.c sum.c tabs.c \ X! tc.c tk.c touch.c tr.c tsort.c tty.c uniq.c units.c X X # C programs that live in the current directory and do not need X # explicit make lines. X # X STD= basename cal cb checkeq col comm crypt deroff fgrep file join look \ X! mesg ptx rev sleep sort spline split sum tabs tc tk touch tr \ X tsort tty uniq units X X # C programs that live in the current directory and need explicit make lines. X--- 21,33 ---- X SRCS= basename.c cal.c cb.c checkeq.c col.c comm.c crypt.c deroff.c \ X fgrep.c file.c iostat.c join.c look.c mesg.c ptx.c \ X rev.c sleep.c sort.c spline.c split.c sum.c tabs.c \ X! tc.c tk.c tr.c tsort.c tty.c uniq.c units.c X X # C programs that live in the current directory and do not need X # explicit make lines. X # X STD= basename cal cb checkeq col comm crypt deroff fgrep file join look \ X! mesg ptx rev sleep sort spline split sum tabs tc tk tr \ X tsort tty uniq units X X # C programs that live in the current directory and need explicit make lines. X*** ./usr/src/usr.bin/col.c.old Mon Feb 16 19:22:28 1987 X--- ./usr/src/usr.bin/col.c Fri May 8 18:43:49 2026 X*************** X*** 1,5 **** X! static char *sccsid = "@(#)col.c 4.2 (Berkeley) 5/15/84"; X! # include X # define PL 256 X # define ESC '\033' X # define RLF '\013' X--- 1,11 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)col.c 4.3 (2.11BSD) 2026/5/8"; X! #endif X! X! #include X! #include X! #include X! X # define PL 256 X # define ESC '\033' X # define RLF '\013' X*************** X*** 15,23 **** X int cp, lp; X int ll, llh, mustwr; X int pcp = 0; X- char *pgmname; X- char *strcpy(); X X main (argc, argv) X int argc; char **argv; X { X--- 21,29 ---- X int cp, lp; X int ll, llh, mustwr; X int pcp = 0; X X+ extern char *__progname; X+ X main (argc, argv) X int argc; char **argv; X { X*************** X*** 25,37 **** X int greek; X register int c; X X- pgmname = argv[0]; X- X for (i = 1; i < argc; i++) { X register char *p; X if (*argv[i] != '-') { X fprintf (stderr, "%s: bad option %s\n", X! pgmname, argv[i]); X exit (2); X } X for (p = argv[i]+1; *p; p++) { X--- 31,41 ---- X int greek; X register int c; X X for (i = 1; i < argc; i++) { X register char *p; X if (*argv[i] != '-') { X fprintf (stderr, "%s: bad option %s\n", X! __progname, argv[i]); X exit (2); X } X for (p = argv[i]+1; *p; p++) { X*************** X*** 50,56 **** X X default: X fprintf (stderr, "%s: bad option letter %c\n", X! pgmname, *p); X exit (2); X } X } X--- 54,60 ---- X X default: X fprintf (stderr, "%s: bad option letter %c\n", X! __progname, *p); X exit (2); X } X } X*************** X*** 205,211 **** X X store (lno) X { X- char *malloc(); X X lno %= PL; X if (page[lno] != 0) X--- 209,214 ---- X*************** X*** 212,218 **** X free (page[lno]); X page[lno] = malloc((unsigned)strlen(lbuff) + 2); X if (page[lno] == 0) { X! fprintf (stderr, "%s: no storage\n", pgmname); X exit (2); X } X strcpy (page[lno],lbuff); X--- 215,221 ---- X free (page[lno]); X page[lno] = malloc((unsigned)strlen(lbuff) + 2); X if (page[lno] == 0) { X! fprintf (stderr, "%s: no storage\n", __progname); X exit (2); X } X strcpy (page[lno],lbuff); X*** ./usr/src/usr.bin/checkeq.c.old Mon Feb 16 19:22:28 1987 X--- ./usr/src/usr.bin/checkeq.c Fri May 8 18:41:13 2026 X*************** X*** 1,5 **** X! static char *sccsid = "@(#)checkeq.c 4.2 (Berkeley) 4/29/83"; X #include X FILE *fin; X int delim = '$'; X X--- 1,9 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)checkeq.c 4.3 (2.11BSD) 2026/5/8"; X! #endif X! X #include X+ X FILE *fin; X int delim = '$'; X X*** ./usr/src/usr.bin/comm.c.old Mon Feb 16 19:22:28 1987 X--- ./usr/src/usr.bin/comm.c Fri May 8 18:44:55 2026 X*************** X*** 1,5 **** X! static char *sccsid = "@(#)comm.c 4.2 (Berkeley) 4/29/83"; X #include X #define LB 256 X int one; X int two; X--- 1,9 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)comm.c 4.3 (2.11BSD) 2026/5/8"; X! #endif X! X #include X+ X #define LB 256 X int one; X int two; X*************** X*** 10,15 **** X--- 14,20 ---- X FILE *ib1; X FILE *ib2; X FILE *openfil(); X+ X main(argc,argv) X char *argv[]; X { X*** ./usr/src/usr.bin/join.c.old Mon Feb 16 19:22:28 1987 X--- ./usr/src/usr.bin/join.c Fri May 8 18:46:05 2026 X*************** X*** 1,7 **** X! static char *sccsid = "@(#)join.c 4.2 (Berkeley) 6/30/83"; X /* join F1 F2 on stuff */ X X #include X #define F1 0 X #define F2 1 X #define NFLD 20 /* max field per line */ X--- 1,11 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)join.c 4.3 (2.11BSD) 2026/5/8"; X! #endif X! X /* join F1 F2 on stuff */ X X #include X+ X #define F1 0 X #define F2 1 X #define NFLD 20 /* max field per line */ X*************** X*** 29,35 **** X int i; X int n1, n2; X long top2, bot2; X- long ftell(); X X while (argc > 1 && argv[1][0] == '-') { X if (argv[1][1] == '\0') X--- 33,38 ---- X*** ./usr/src/usr.bin/mesg.c.old Mon Feb 16 19:22:31 1987 X--- ./usr/src/usr.bin/mesg.c Fri May 8 18:47:55 2026 X*************** X*** 1,4 **** X! static char *sccsid = "@(#)mesg.c 4.3 (Berkeley) 3/13/86"; X /* X * mesg -- set current tty to accept or X * forbid write permission. X--- 1,7 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)mesg.c 4.4 (2.11BSD) 2026/5/8"; X! #endif X! X /* X * mesg -- set current tty to accept or X * forbid write permission. X*************** X*** 9,21 **** X */ X X #include X! #include X #include X X struct stat sbuf; X X char *tty; X- char *ttyname(); X X main(argc, argv) X char *argv[]; X--- 12,23 ---- X */ X X #include X! #include X #include X X struct stat sbuf; X X char *tty; X X main(argc, argv) X char *argv[]; X*** ./usr/src/usr.bin/rev.c.old Mon Feb 16 19:22:26 1987 X--- ./usr/src/usr.bin/rev.c Fri May 8 18:49:08 2026 X*************** X*** 1,4 **** X! static char *sccsid = "@(#)rev.c 4.1 (Berkeley) 10/1/80"; X #include X X /* reverse lines of a file */ X--- 1,7 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)rev.c 4.2 (2.11BSD) 2026/5/8"; X! #endif X! X #include X X /* reverse lines of a file */ X*** ./usr/src/usr.bin/sleep.c.old Mon Feb 16 19:22:29 1987 X--- ./usr/src/usr.bin/sleep.c Fri May 8 18:50:01 2026 X*************** X*** 1,9 **** X! static char *sccsid = "@(#)sleep.c 4.1 (Berkeley) 10/1/80"; X main(argc, argv) X char **argv; X { X! int c, n; X! char *s; X X n = 0; X if(argc < 2) { X--- 1,12 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)sleep.c 4.2 (2.11BSD) 2026/5/8"; X! #endif X! X main(argc, argv) X char **argv; X { X! register int c, n; X! register char *s; X X n = 0; X if(argc < 2) { X*** ./usr/src/usr.bin/sort.c.old Mon Feb 16 19:22:27 1987 X--- ./usr/src/usr.bin/sort.c Tue Sep 22 00:39:08 2026 X*************** X*** 1,4 **** X! static char *sccsid = "@(#)sort.c 4.11 (Berkeley) 6/3/86"; X #include X #include X #include X--- 1,7 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)sort.c 4.12 (2.11BSD) 2026/5/8"; X! #endif X! X #include X #include X #include X*************** X*** 8,18 **** X #define L 1024 X #define N 7 X #define C 20 X- #ifndef pdp11 X- #define MEM (128*2048) X- #else X #define MEM (16*2048) X- #endif X #define NF 10 X X #define rline(mp) (fgets((mp)->l, L, (mp)->b) == NULL) X--- 11,17 ---- X*************** X*** 31,37 **** X int cmp(), cmpa(); X int (*compare)() = cmpa; X char *eol(); X! int term(); X int mflg; X int cflg; X int uflg; X--- 30,36 ---- X int cmp(), cmpa(); X int (*compare)() = cmpa; X char *eol(); X! void term(); X int mflg; X int cflg; X int uflg; X*************** X*** 248,256 **** X lspace = (int *)sbrk(0); X while((int)brk(ep) == -1) X ep -= 512; X- #ifndef vax X brk(ep -= 512); /* for recursion */ X! #endif X a = ep - (char*)lspace; X nlines = (a-L); X nlines /= (5*(sizeof(char *)/sizeof(char))); X--- 247,254 ---- X lspace = (int *)sbrk(0); X while((int)brk(ep) == -1) X ep -= 512; X brk(ep -= 512); /* for recursion */ X! X a = ep - (char*)lspace; X nlines = (a-L); X nlines /= (5*(sizeof(char *)/sizeof(char))); X*************** X*** 559,564 **** X--- 557,563 ---- X fputs("\n",stderr); X } X X+ void X term() X { X register i; X*** ./usr/src/usr.bin/spline.c.old Mon Feb 16 19:22:29 1987 X--- ./usr/src/usr.bin/spline.c Fri May 8 18:52:14 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *sccsid = "@(#)spline.c 4.3 (Berkeley) 9/21/85"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)spline.c 4.4 (2.11BSD) 2026/5/8"; X #endif X X #include X*** ./usr/src/usr.bin/split.c.old Mon Feb 16 19:22:29 1987 X--- ./usr/src/usr.bin/split.c Fri May 8 18:52:51 2026 X*************** X*** 1,4 **** X! static char *sccsid = "@(#)split.c 4.2 (Berkeley) 4/29/83"; X #include X X unsigned count = 1000; X--- 1,7 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)split.c 4.3 (2.11BSD) 2026/5/8"; X! #endif X! X #include X X unsigned count = 1000; X*** ./usr/src/usr.bin/sum.c.old Mon Feb 16 19:22:29 1987 X--- ./usr/src/usr.bin/sum.c Fri May 8 18:53:39 2026 X*************** X*** 1,4 **** X! static char *sccsid = "@(#)sum.c 4.1 (Berkeley) 10/1/80"; X /* X * Sum bytes in file mod 2^16 X */ X--- 1,7 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)sum.c 4.2 (2.11BSD) 2026/5/8"; X! #endif X! X /* X * Sum bytes in file mod 2^16 X */ X*************** X*** 11,17 **** X register unsigned sum; X register i, c; X register FILE *f; X! register long nbytes; X int errflg = 0; X X i = 1; X--- 14,20 ---- X register unsigned sum; X register i, c; X register FILE *f; X! long nbytes; X int errflg = 0; X X i = 1; X*** ./usr/src/usr.bin/tc.c.old Mon Feb 16 19:22:30 1987 X--- ./usr/src/usr.bin/tc.c Tue Sep 22 00:41:29 2026 X*************** X*** 1,4 **** X! static char *sccsid = "@(#)tc.c 4.2 (Berkeley) 7/6/81"; X /* X * Simulate typesetter on 4014 X */ X--- 1,7 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)tc.c 4.3 (2.11BSD) 2026/5/8"; X! #endif X! X /* X * Simulate typesetter on 4014 X */ X*************** X*** 52,59 **** X extern char *asctab[128]; X extern char *spectab[128]; X int erase = 1; X! int (*sigint)(); X! int (*sigquit)(); X X main(argc,argv) X int argc; X--- 55,61 ---- X extern char *asctab[128]; X extern char *spectab[128]; X int erase = 1; X! sig_t sigint, sigquit; X X main(argc,argv) X int argc; X*************** X*** 61,67 **** X { X register i, j; X register char *k; X! extern ex(); X X while((--argc > 0) && ((++argv)[0][0]=='-')){ X switch(argv[0][1]){ X--- 63,69 ---- X { X register i, j; X register char *k; X! extern void ex(); X X while((--argc > 0) && ((++argv)[0][0]=='-')){ X switch(argv[0][1]){ X*************** X*** 261,266 **** X--- 263,270 ---- X skip = 0; X sendpt(); X } X+ X+ void X ex(){ X yy = MAXY; X xx = 0; X*** ./usr/src/usr.bin/tk.c.old Mon Feb 16 19:22:27 1987 X--- ./usr/src/usr.bin/tk.c Tue Sep 22 00:42:50 2026 X*************** X*** 1,4 **** X! static char *sccsid = "@(#)tk.c 4.2 (Berkeley) 5/15/84"; X /* X * optimize output for Tek 4014 X */ X--- 1,7 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)tk.c 4.3 (2.11BSD) 2026/5/8"; X! #endif X! X /* X * optimize output for Tek 4014 X */ X*************** X*** 39,45 **** X char **argv; X { X register i, j; X! extern ex(); X X while (--argc > 0 && (++argv)[0][0]=='-') X switch(argv[0][1]) { X--- 42,48 ---- X char **argv; X { X register i, j; X! extern void ex(); X X while (--argc > 0 && (++argv)[0][0]=='-') X switch(argv[0][1]) { X*************** X*** 197,203 **** X X execom() X { X! int (*si)(), (*sq)(); X X if (fork() != 0) { X si = signal(SIGINT, SIG_IGN); X--- 200,206 ---- X X execom() X { X! sig_t si, sq; X X if (fork() != 0) { X si = signal(SIGINT, SIG_IGN); X*** ./usr/src/usr.bin/tr.c.old Mon Feb 16 19:22:30 1987 X--- ./usr/src/usr.bin/tr.c Fri May 8 18:55:47 2026 X*************** X*** 1,4 **** X! static char *sccsid = "@(#)tr.c 4.2 (Berkeley) 4/22/85"; X #include X X /* tr - transliterate data stream */ X--- 1,7 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)tr.c 4.3 (2.11BSD) 2026/5/8"; X! #endif X! X #include X X /* tr - transliterate data stream */ X*** ./usr/src/usr.bin/tty.c.old Mon Feb 16 19:22:28 1987 X--- ./usr/src/usr.bin/tty.c Fri May 8 18:56:48 2026 X*************** X*** 1,9 **** X! static char *sccsid = "@(#)tty.c 4.1 (Berkeley) 10/1/80"; X /* X * Type tty name X */ X- X- char *ttyname(); X X main(argc, argv) X char **argv; X--- 1,12 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)tty.c 4.2 (2.11BSD) 2026/5/8"; X! #endif X! X! #include X! X /* X * Type tty name X */ X X main(argc, argv) X char **argv; X*** ./usr/src/usr.bin/uniq.c.old Mon Feb 16 19:22:30 1987 X--- ./usr/src/usr.bin/uniq.c Fri May 8 18:57:41 2026 X*************** X*** 1,9 **** X! static char *sccsid = "@(#)uniq.c 4.1 (Berkeley) 10/1/80"; X /* X * Deal with duplicated lines in a file X */ X #include X #include X int fields; X int letters; X int linec; X--- 1,13 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)uniq.c 4.2 (2.11BSD) 2026/5/8"; X! #endif X! X /* X * Deal with duplicated lines in a file X */ X #include X #include X+ X int fields; X int letters; X int linec; X*** ./usr/src/usr.bin/units.c.old Thu Oct 24 00:20:35 1996 X--- ./usr/src/usr.bin/units.c Fri May 8 18:58:23 2026 X*************** X*** 1,5 **** X! #if !defined(lint) X! static char *sccsid = "@(#)units.c 4.1.1 (2.11BSD) 1996/10/23"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)units.c 4.1.2 (2.11BSD) 2026/5/8"; X #endif X X #include X*** ./usr/src/usr.bin/ptx.c.old Wed Oct 23 23:20:45 1996 X--- ./usr/src/usr.bin/ptx.c Tue Sep 22 00:38:19 2026 X*************** X*** 76,82 **** X register char *bufp; X int pid; X char *pend; X! extern onintr(); X X char *xfile; X FILE *xptr; X--- 76,82 ---- X register char *bufp; X int pid; X char *pend; X! extern void onintr(); X X char *xfile; X FILE *xptr; X*************** X*** 498,503 **** X--- 498,504 ---- X } X } X X+ void X onintr() X { X X*** ./usr/src/usr.bin/iostat.c.old Fri Sep 20 14:12:00 2024 X--- ./usr/src/usr.bin/iostat.c Tue Sep 22 00:44:18 2026 X*************** X*** 1,5 **** X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)iostat.c 4.17 (2.11BSD) 2024/9/20"; X #endif X X /* X--- 1,5 ---- X #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)iostat.c 4.18 (2.11BSD) 2026/9/21"; X #endif X X /* X*************** X*** 70,76 **** X int hz; X double etime; X int tohdr = 1; X! int printhdr(); X X main(argc, argv) X char *argv[]; X--- 70,76 ---- X int hz; X double etime; X int tohdr = 1; X! void printhdr(); X X main(argc, argv) X char *argv[]; X*************** X*** 221,226 **** X--- 221,227 ---- X } X } X X+ void X printhdr() X { X register int i; X*** ./usr/src/usr.lib/libcurses/initscr.c.old Sat Jul 25 18:08:19 1987 X--- ./usr/src/usr.lib/libcurses/initscr.c Tue Sep 22 01:37:55 2026 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && !defined(NOSCCS) X! static char sccsid[] = "@(#)initscr.c 5.1 (Berkeley) 6/7/85"; X #endif X X # include "curses.ext" X--- 5,11 ---- X */ X X #if !defined(lint) && !defined(NOSCCS) X! static char sccsid[] = "@(#)initscr.c 5.2 (2.11BSD) 2026/9/22"; X #endif X X # include "curses.ext" X*************** X*** 21,27 **** X initscr() { X X reg char *sp; X! int tstp(); X int nfd; X X # ifdef DEBUG X--- 21,27 ---- X initscr() { X X reg char *sp; X! void tstp(); X int nfd; X X # ifdef DEBUG X*** ./usr/src/usr.lib/libcurses/tstp.c.old Sun Feb 13 13:45:42 2000 X--- ./usr/src/usr.lib/libcurses/tstp.c Tue Sep 22 01:38:42 2026 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && !defined(NOSCCS) X! static char sccsid[] = "@(#)tstp.c 5.1.1 (2.11BSD) 1999/10/24"; X #endif X X #include X--- 5,11 ---- X */ X X #if !defined(lint) && !defined(NOSCCS) X! static char sccsid[] = "@(#)tstp.c 5.1.2 (2.11BSD) 2026/9/22"; X #endif X X #include X*************** X*** 14,19 **** X--- 14,20 ---- X /* X * handle stop and start signals X */ X+ void X tstp() { X SGTTY tty; X sigset_t oset, set; X*** ./usr/src/usr.lib/libF77/main.c.old Mon Dec 26 02:43:05 1988 X--- ./usr/src/usr.lib/libF77/main.c Mon Sep 21 21:06:41 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)main.c 5.2 6/26/85 X */ X #include X #include X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)main.c 5.3 (2.11BSD) 2026/9/21 X */ X #include X #include X*************** X*** 17,24 **** X char **argv; X char **arge; X { X! int sigdie(); X! int (*sigf)(); X int signum; X X xargc = argc; X--- 17,24 ---- X char **argv; X char **arge; X { X! void sigdie(); X! sig_t sigf; X int signum; X X xargc = argc; X*************** X*** 29,37 **** X if((sigf=signal(signum, sigdie)) != SIG_DFL) signal(signum, sigf); X } X X- #ifdef pdp11 X ldfps(01200); /* detect overflow as an exception */ X- #endif X X f_init(); X MAIN_(); X--- 29,35 ---- X*************** X*** 80,85 **** X--- 78,84 ---- X {"operand", 0}, X }; X X+ void X sigdie(s, t, sc) X int s; int t; struct sigcontext *sc; X { X*** ./usr/src/usr.lib/libI77/f77_abort.c.old Sun Feb 13 13:45:41 2000 X--- ./usr/src/usr.lib/libI77/f77_abort.c Mon Sep 21 21:07:23 2026 X*************** X*** 3,67 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)f77_abort.c 5.2.1 (2.11BSD) 1999/10/24 X * X * all f77 aborts eventually call f77_abort. X- * f77_abort cleans up open files and terminates with a dump if needed, X- * with a message otherwise. X * X */ X X #include X #include "fio.h" X X! #ifndef pdp11 X! char *getenv(); X! int _lg_flag; /* _lg_flag is non-zero if -lg was specified to ld */ X! #endif X! X! f77_abort( nargs, err_val, act_core ) X { X int core_dump; X- sigset_t set; X- #ifndef pdp11 X- /* X- * The f77_dump_flag is really unnecessary to begin with and not X- * implementing it on the PDP-11 saves a little space ... X- */ X- char first_char, *env_var; X X- env_var = getenv("f77_dump_flag"); X- first_char = (env_var == NULL) ? 0 : *env_var; X- #endif X- X signal(SIGILL, SIG_DFL); X! (void)sigemptyset(&set); X! (void)sigaddset(&set, SIGILL); X! (void)sigprocmask(SIG_UNBLOCK, &set, NULL); /* don't block */ X X- #ifdef pdp11 X /* X! * See if we want a core dump: don't dump for signals like hangup. X! */ X! core_dump = (nargs != 2) || act_core; X! #else X! /* see if we want a core dump: X! first line checks for signals like hangup - don't dump then. X! second line checks if -lg specified to ld (e.g. by saying X! -g to f77) and checks the f77_dump_flag var. */ X! core_dump = ((nargs != 2) || act_core) && X! ( (_lg_flag && (first_char != 'n')) || first_char == 'y'); X! #endif X X! if( !core_dump ) X fprintf(units[STDERR].ufd,"*** Execution terminated\n"); X X f_exit(); X! _cleanup(); X! if( nargs ) errno = err_val; X! else errno = -2; /* prior value will be meaningless, X! so set it to undefined value */ X! X! if( core_dump ) abort(); X! else exit( errno ); X } X--- 3,59 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)f77_abort.c 5.2.2 (2.11BSD) 2026/7/30 X * X * all f77 aborts eventually call f77_abort. X * X+ * f77_abort prints a message and if a coredump is NOT requested cleans X+ * up open files. X */ X X #include X #include "fio.h" X X! f77_abort(nargs, err_val, act_core) X { X int core_dump; X X signal(SIGILL, SIG_DFL); X! (void)sigsetmask(0L); /* don't block */ X X /* X! * See if we want a core dump. The line previously read X! * core_dump = (nargs != 2) || act_core; X! * which is wrong. Only signal related aborts use nargs of 2 with X! * act_core present. X! */ X X! core_dump = (nargs == 2) && act_core; X! X! if (!core_dump) X fprintf(units[STDERR].ufd,"*** Execution terminated\n"); X X+ /* X+ * Don't call f_exit() here because abort() wants to print messages X+ * to stderr from the signal handler sigdie(). f_exit() reinits X+ * the units[] table and fprintf would use a NULL file pointer causing X+ * another signal which would reference the NULL stderr pointer and X+ * trigger another signal, ad nauseum. X+ */ X+ if (nargs) /* nargs == 1 err_val is the error code. X+ * nargs == 2 err_val is the signal number. X+ */ X+ errno = err_val; X+ else X+ errno = -2; /* nargs == 0 prior errno is meaningless, X+ * set errno to undefined value. X+ */ X+ /* X+ * Don't need to call _cleanup() because exit() will do that for us X+ * and if we're dumping core we don't care. X+ */ X+ if (core_dump) X+ abort(); X f_exit(); X! exit(errno); X } X*** ./usr/src/usr.lib/libI77/lread.c.old Wed Feb 18 04:09:41 1987 X--- ./usr/src/usr.lib/libI77/lread.c Sun Aug 2 21:54:47 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)lread.c 5.2 7/30/85 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)lread.c 5.3 (2.11BSD) 2026/8/1 X */ X X /* X*************** X*** 138,147 **** X--- 138,151 ---- X ptr->flshort=lx; X break; X case TYLOGICAL: X+ #ifdef SHORT_LOGICAL X+ ptr->flshort = lx; X+ #else X if(len == sizeof(short)) X ptr->flshort = lx; X else X ptr->flint = lx; X+ #endif X break; X case TYLONG: X ptr->flint=lx; X*** ./usr/src/usr.lib/libI77/rsnmle.c.old Tue Jan 11 02:02:56 1994 X--- ./usr/src/usr.lib/libI77/rsnmle.c Sun Aug 2 21:55:04 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)rsnmle.c 5.3.1 1/1/94 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)rsnmle.c 5.3.2 (2.11BSD) 2026/8/1 X */ X X /* X*************** X*** 367,376 **** X--- 367,380 ---- X ptr->flshort=lx; X break; X case TYLOGICAL: X+ #ifdef SHORT_LOGICAL X+ ptr->flshort = lx; X+ #else X if(len == sizeof(short)) X ptr->flshort = lx; X else X ptr->flint = lx; X+ #endif X break; X case TYLONG: X ptr->flint=lx; X*** ./usr/src/usr.lib/libI77/fiodefs.h.old Wed Feb 18 04:09:41 1987 X--- ./usr/src/usr.lib/libI77/fiodefs.h Tue Aug 4 21:20:17 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)fiodefs.h 5.2 (Berkeley) 7/30/85 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)fiodefs.h 5.3 (2.11BSD) 2026/8/2 X */ X X /* X*************** X*** 11,18 **** X--- 11,25 ---- X */ X X #include X+ #include X #include "f_errno.h" X X+ /* X+ * If 'tylogical' in f77/init.c is set to TYSHORT and the memory size of a X+ * logical is SZLONG then this define must be set. X+ */ X+ #define SHORT_LOGICAL X+ X /* Logical Unit Table Size */ X #define MXUNIT 100 X X*************** X*** 89,103 **** X typedef struct /*units*/ X { FILE *ufd; /*0=unconnected*/ X char *ufnm; X! long uinode; X int url; /*0=sequential*/ X! flag useek; /*true=can backspace, use dir, ...*/ X! flag ufmt; X! flag uprnt; X! flag ublnk; X! flag uend; X! flag uwrt; /*last io was write*/ X! flag uscrtch; X } unit; X X typedef struct /* inquire */ X--- 96,111 ---- X typedef struct /*units*/ X { FILE *ufd; /*0=unconnected*/ X char *ufnm; X! ino_t uinode; X int url; /*0=sequential*/ X! char useek; /*true=can backspace, use dir, ...*/ X! char ufmt; X! char uprnt; X! char ublnk; X! char uend; X! char uwrt; /*last io was write*/ X! char uscrtch; X! char uapnd; /* 1 if access=sequential and opneof set */ X } unit; X X typedef struct /* inquire */ X*************** X*** 105,114 **** X ftnint inunit; X char *infile; X ftnlen infilen; X! ftnint *inex; /*parameters in standard's order*/ X ftnint *inopen; X ftnint *innum; X ftnint *innamed; X char *inname; X ftnlen innamlen; X char *inacc; X--- 113,131 ---- X ftnint inunit; X char *infile; X ftnlen infilen; X! #ifdef SHORT_LOGICAL X! short *inex; /* parameters in standard's (and compiler's) order */ X! short *inopen; X! #else X! ftnint *inex; X ftnint *inopen; X+ #endif X ftnint *innum; X+ #ifdef SHORT_LOGICAL X+ short *innamed; X+ #else X ftnint *innamed; X+ #endif X char *inname; X ftnlen innamlen; X char *inacc; X*** ./usr/src/usr.lib/libI77/close.c.old Wed Feb 18 04:09:40 1987 X--- ./usr/src/usr.lib/libI77/close.c Tue Aug 4 17:21:23 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)close.c 5.2 7/30/85 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)close.c 5.3 (2.11BSD) 2026/8/4 X */ X X /* X*************** X*** 13,18 **** X--- 13,19 ---- X */ X X #include "fio.h" X+ #include X X static char FROM_OPEN[] = "\2"; X static char clse[] = "close"; X*************** X*** 32,38 **** X b= &units[lunit]; X if(!b->ufd) return(OK); X if(a->csta && *a->csta != FROM_OPEN[0]) X! switch(lcase(*a->csta)) X { X delete: X case 'd': X--- 33,39 ---- X b= &units[lunit]; X if(!b->ufd) return(OK); X if(a->csta && *a->csta != FROM_OPEN[0]) X! switch(tolower(*a->csta)) X { X delete: X case 'd': X*** ./usr/src/usr.lib/libI77/wrtfmt.c.old Sun Jun 12 19:32:20 1988 X--- ./usr/src/usr.lib/libI77/wrtfmt.c Thu Aug 13 21:00:00 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)wrtfmt.c 5.1 6/7/85 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)wrtfmt.c 5.2 (2.11BSD) 2026/8/6 X */ X X /* X*************** X*** 33,45 **** X case AW: X return(wrt_AW(ptr,p->p1,len)); X case D: X! return(wrt_E(ptr,p->p1,p->p2,2,len,'d')); X case DE: X! return(wrt_E(ptr,p->p1,(p->p2)&0xff,((p->p2)>>8)&0xff,len,'d')); X case E: X! return(wrt_E(ptr,p->p1,p->p2,2,len,'e')); X case EE: X! return(wrt_E(ptr,p->p1,(p->p2)&0xff,((p->p2)>>8)&0xff,len,'e')); X case G: X return(wrt_G(ptr,p->p1,p->p2,2,len)); X case GE: X--- 33,45 ---- X case AW: X return(wrt_AW(ptr,p->p1,len)); X case D: X! return(wrt_E(ptr,p->p1,p->p2,2,len,'D')); X case DE: X! return(wrt_E(ptr,p->p1,(p->p2)&0xff,((p->p2)>>8)&0xff,len,'D')); X case E: X! return(wrt_E(ptr,p->p1,p->p2,2,len,'E')); X case EE: X! return(wrt_E(ptr,p->p1,(p->p2)&0xff,((p->p2)>>8)&0xff,len,'E')); X case G: X return(wrt_G(ptr,p->p1,p->p2,2,len)); X case GE: X*************** X*** 148,164 **** X return(OK); X } X X! wrt_L(l,width,len) uint *l; ftnlen len; X! { int i,n; X! for(i=0;iis; X else X i = l->il; X! if(i) PUT('t') X! else PUT('f') X return(OK); X! } X X LOCAL X wrt_AW(p,w,len) char * p; ftnlen len; X--- 148,178 ---- X return(OK); X } X X! wrt_L(l,width,len) uint *l; int width; ftnlen len; X! { X! int i,n; X! X! for (i=0; i < width-1; i++) PUT(' ') X! X! // logicals on a pdp11 are 'long' (two shorts) with the true/false status X! // in the first (low) short. The order is correct in DATA statements but X! // reversed when generating I/O calls. Until the bug is fixed use entire long. X! X! #ifdef SHORT_LOGICAL X! // i = l->is; X! i = l->il ? 1: 0; X! #else X! if (len == sizeof (short)) X i = l->is; X else X i = l->il; X! #endif X! if (i) X! PUT('T') X! else X! PUT('F') X return(OK); X! } X X LOCAL X wrt_AW(p,w,len) char * p; ftnlen len; X*************** X*** 266,272 **** X } X /* falling off the bottom implies E format */ X } X! return(wrt_E(p,w,d,e,len,'e')); X } X X wrt_F(p,w,d,len) ufloat *p; ftnlen len; X--- 280,286 ---- X } X /* falling off the bottom implies E format */ X } X! return(wrt_E(p,w,d,e,len,'E')); X } X X wrt_F(p,w,d,len) ufloat *p; ftnlen len; X*** ./usr/src/usr.lib/libI77/inquire.c.old Wed Feb 18 04:09:42 1987 X--- ./usr/src/usr.lib/libI77/inquire.c Thu Aug 6 13:09:04 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)inquire.c 5.2 7/30/85 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)inquire.c 5.3 (2.11BSD) 2026/8/6 X */ X X /* X*************** X*** 10,15 **** X--- 10,19 ---- X * inquire.c - f77 i/o inquire statement routine X */ X X+ static char unknown[] = "UNKNOWN"; X+ static char yes[] = "YES"; X+ static char no[] = "NO"; X+ X #include "fio.h" X X f_inqu(a) inlist *a; X*************** X*** 67,87 **** X } X if(a->inacc) X { X! if(!p) s = "unknown"; X! else if(p->url) s = "direct"; X! else s = "sequential"; X b_char(s,a->inacc,a->inacclen); X } X if(a->inseq) X { X! if(!p) s = "unknown"; X! else s = (p && !p->url)? "yes" : "no"; X b_char(s,a->inseq,a->inseqlen); X } X if(a->indir) X { X! if(!p) s = "unknown"; X! else s = (p && p->useek && p->url)? "yes" : "no"; X b_char(s,a->indir,a->indirlen); X } X if(a->inform) X--- 71,91 ---- X } X if(a->inacc) X { X! if(!p) s = unknown; X! else if(p->url) s = "DIRECT"; X! else s = "SEQUENTIAL"; X b_char(s,a->inacc,a->inacclen); X } X if(a->inseq) X { X! if(!p) s = unknown; X! else s = (p && !p->url)? yes : no; X b_char(s,a->inseq,a->inseqlen); X } X if(a->indir) X { X! if(!p) s = unknown; X! else s = (p && p->useek && p->url)? yes : no; X b_char(s,a->indir,a->indirlen); X } X if(a->inform) X*************** X*** 91,111 **** X if(p->uprnt) s = "print"; /*** NOT STANDARD FORTRAN ***/ X else X #endif X! s = p->ufmt?"formatted":"unformatted"; X } X! else s = "unknown"; X b_char(s,a->inform,a->informlen); X } X if(a->infmt) X { X! if (p) s= p->ufmt? "yes" : "no"; X! else s= "unknown"; X b_char(s,a->infmt,a->infmtlen); X } X if(a->inunf) X { X! if (p) s= p->ufmt? "no" : "yes"; X! else s= "unknown"; X b_char(s,a->inunf,a->inunflen); X } X if(a->inrecl) *a->inrecl = p ? p->url : -1; X--- 95,115 ---- X if(p->uprnt) s = "print"; /*** NOT STANDARD FORTRAN ***/ X else X #endif X! s = p->ufmt?"FORMATTED":"UNFORMATTED"; X } X! else s = unknown; X b_char(s,a->inform,a->informlen); X } X if(a->infmt) X { X! if (p) s= p->ufmt? yes : no; X! else s= unknown; X b_char(s,a->infmt,a->infmtlen); X } X if(a->inunf) X { X! if (p) s= p->ufmt? no : yes; X! else s= unknown; X b_char(s,a->inunf,a->inunflen); X } X if(a->inrecl) *a->inrecl = p ? p->url : -1; X*************** X*** 118,126 **** X if(a->inblank) X { X if( p && p->ufmt) X! s = p->ublnk ? "zero" : "null" ; X else X! s = "unknown"; X b_char(s,a->inblank,a->inblanklen); X } X return(OK); X--- 122,130 ---- X if(a->inblank) X { X if( p && p->ufmt) X! s = p->ublnk ? "ZERO" : "NULL" ; X else X! s = unknown; X b_char(s,a->inblank,a->inblanklen); X } X return(OK); X*** ./usr/src/usr.lib/libI77/util.c.old Wed Feb 18 04:09:47 1987 X--- ./usr/src/usr.lib/libI77/util.c Wed Aug 5 01:20:29 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)util.c 5.1 6/7/85 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)util.c 5.2 (2.11BSD) 2026/8/4 X */ X X /* X*************** X*** 12,53 **** X X #include "fio.h" X X- extern short ccntrl_, blzero_; X- X nowreading(x) unit *x; X! { X! return(now_acc(x,"r")); X! } X X nowwriting(x) unit *x; X! { X! return(now_acc(x,"a")); X! } X X! LOCAL now_acc(x,mode) X! unit *x; char *mode; X! { X long loc; X X! if (!x->ufnm) X! { X errno = EBADF; X return(NO); X! } X! if (x->useek) X loc=ftell(x->ufd); X! if (freopen(x->ufnm,mode,x->ufd)) X! { X! if (x->useek) X! fseek(x->ufd,loc,0); X! x->uwrt = (*mode=='a'); X return(YES); X! } X! if (x->ufd = fopen(x->ufnm, (*mode=='a')? "r":"a")) X! if (x->useek) X! fseek(x->ufd,loc,0); X return(NO); X! } X X g_char(a,alen,b) char *a,*b; ftnlen alen; X { char *x=a+alen-1, *y=b+alen-1; X--- 12,60 ---- X X #include "fio.h" X X nowreading(x) unit *x; X! { X! return(now_acc(x,"r",0)); X! } X X nowwriting(x) unit *x; X! { X! return(now_acc(x, x->uapnd ? "a" : "r+", 1)); X! } X X! LOCAL now_acc(x,mode, uwrt) X! unit *x; char *mode; X! int uwrt; X! { X long loc; X X! if (!x->ufnm) X! { X errno = EBADF; X return(NO); X! } X! if (x->useek) X loc=ftell(x->ufd); X! if (freopen(x->ufnm, mode, x->ufd)) X! { X! if (x->useek) X! fseek(x->ufd, loc, SEEK_SET); X! x->uwrt = uwrt; X return(YES); X! } X! /* X! * All the callers of nowreading() and nowwriting() check the return value X! * and if NO call err() to announce the failure. Trying to reopen the X! * file in its previous mode after freopen failed (and closed the file) X! * seems pointless! Code will need to be updated if enabled. X! */ X! #ifdef whybother X! if (x->ufd = fopen(x->ufnm, (*mode=='a')? "r":"a")) X! if (x->useek) X! fseek(x->ufd,loc, SEEK_SET); X! #endif X return(NO); X! } X X g_char(a,alen,b) char *a,*b; ftnlen alen; X { char *x=a+alen-1, *y=b+alen-1; X*************** X*** 69,75 **** X char X last_char(f) FILE *f; X { X! fseek(f,-2L,1); X if(ftell(f)) return(getc(f)); X else return('\n'); X } X--- 76,82 ---- X char X last_char(f) FILE *f; X { X! fseek(f,-2L, SEEK_CUR); X if(ftell(f)) return(getc(f)); X else return('\n'); X } X*** ./usr/src/usr.lib/libI77/lwrite.c.old Wed Feb 18 04:09:46 1987 X--- ./usr/src/usr.lib/libI77/lwrite.c Fri Aug 14 19:09:31 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)lwrite.c 5.2 7/30/85 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)lwrite.c 5.3 (2.11BSD) 2026/8/10 X */ X X /* X*************** X*** 86,96 **** X ERRCHK(lwrt_DC(yd,zd)); X break; X case TYLOGICAL: X if(len == sizeof(short)) X x = ptr->flshort; X else X x = ptr->flint; X! ERRCHK(lwrt_L(x)); X break; X case TYCHAR: X ERRCHK(lwrt_A((char *)ptr,len)); X--- 86,108 ---- X ERRCHK(lwrt_DC(yd,zd)); X break; X case TYLOGICAL: X+ /* X+ * f77 allocates a short in the call frame (but sets 'len' to 4) for X+ * .TRUE. and .FALSE. in WRITE(x,*) and passes a 'short *' to do_lio(). X+ * Logical data/variables are handled as longs (with 'len' set to 4) and X+ * a 'long *' passed to do_lio(). There is no way to know what 'ptr' is X+ * pointing to since 'len' is the same. Therefore use 'ptr' only as a X+ * 'short *'. X+ */ X+ #ifdef SHORT_LOGICAL X+ x = ptr->flshort; X+ #else X if(len == sizeof(short)) X x = ptr->flshort; X else X x = ptr->flint; X! #endif X! ERRCHK(lwrt_L(x, len)); X break; X case TYCHAR: X ERRCHK(lwrt_A((char *)ptr,len)); X*************** X*** 109,116 **** X X LOCAL X lwrt_I(in) ftnint in; X! { int n; X char buf[16],*p; X sprintf(buf," %ld",(long)in); X chk_len(LINTW); X for(p=buf;*p;) PUT(*p++) X--- 121,130 ---- X X LOCAL X lwrt_I(in) ftnint in; X! { X! register int n; X char buf[16],*p; X+ X sprintf(buf," %ld",(long)in); X chk_len(LINTW); X for(p=buf;*p;) PUT(*p++) X*************** X*** 118,132 **** X } X X LOCAL X! lwrt_L(ln) ftnint ln; X! { int n; X chk_len(LLOGW); X! return(wrt_L(&ln,LLOGW)); X } X X LOCAL X lwrt_A(p,len) char *p; ftnlen len; X! { int i,n; X chk_len(LSTRW); X if(formatted == LISTDIRECTED) X { X--- 132,149 ---- X } X X LOCAL X! lwrt_L(ln, len) ftnint ln; ftnlen len; X! { X! register int n; X! X chk_len(LLOGW); X! return(wrt_L(&ln,LLOGW, len)); X } X X LOCAL X lwrt_A(p,len) char *p; ftnlen len; X! { X! register int i,n; X chk_len(LSTRW); X if(formatted == LISTDIRECTED) X { X*************** X*** 159,165 **** X else X { X scale = 1; X! return(wrt_E(&f,LEW,LED-scale,LEE,(ftnlen)sizeof(float),'e')); X } X } X X--- 176,182 ---- X else X { X scale = 1; X! return(wrt_E(&f,LEW,LED-scale,LEE,(ftnlen)sizeof(float),'E')); X } X } X X*************** X*** 179,185 **** X else X { X scale = 1; X! return(wrt_E(&f,LDEW,LDED-scale,LDEE,(ftnlen)sizeof(double),'d')); X } X } X X--- 196,202 ---- X else X { X scale = 1; X! return(wrt_E(&f,LDEW,LDED-scale,LDEE,(ftnlen)sizeof(double),'D')); X } X } X X*** ./usr/src/usr.lib/libI77/open.c.old Wed Feb 18 04:09:41 1987 X--- ./usr/src/usr.lib/libI77/open.c Thu Aug 6 19:14:22 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)open.c 5.2 1/8/86 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)open.c 5.3 (2.11BSD) 2026/8/4 X */ X X /* X*************** X*** 10,15 **** X--- 10,16 ---- X * open.c - f77 file open and I/O library initialization routines X */ X X+ #include X #include X #include X #include X*************** X*** 22,32 **** X #define FROM_OPEN "\2" /* for use in f_clos() */ X #define BUF_LEN 256 X X LOCAL char *tmplate = "tmp.FXXXXXX"; /* scratch file template */ X LOCAL char *fortfile = "fort.%d"; /* default file template */ X X- char *getenv(); X- X f_open(a) olist *a; X { unit *b; X int n,exists; X--- 23,33 ---- X #define FROM_OPEN "\2" /* for use in f_clos() */ X #define BUF_LEN 256 X X+ static char xopen[] = "open"; X+ X LOCAL char *tmplate = "tmp.FXXXXXX"; /* scratch file template */ X LOCAL char *fortfile = "fort.%d"; /* default file template */ X X f_open(a) olist *a; X { unit *b; X int n,exists; X*************** X*** 39,53 **** X external = YES; /* for err */ X errflag = a->oerr; X lunit = a->ounit; X! if(not_legal(lunit)) err(errflag,F_ERUNIT,"open") X b= &units[lunit]; X! if(a->osta) st = lcase(*a->osta); X else st = 'u'; X if(SCRATCH) X { strcpy(buf,tmplate); X /* make a new temp file name, err if mktemp fails */ X if( strcmp( mktemp(buf), "/" ) == 0 ) X! err(errflag, F_ERSYS, "open") X } X else X { X--- 40,54 ---- X external = YES; /* for err */ X errflag = a->oerr; X lunit = a->ounit; X! if(not_legal(lunit)) err(errflag,F_ERUNIT, xopen) X b= &units[lunit]; X! if(a->osta) st = tolower(*a->osta); X else st = 'u'; X if(SCRATCH) X { strcpy(buf,tmplate); X /* make a new temp file name, err if mktemp fails */ X if( strcmp( mktemp(buf), "/" ) == 0 ) X! err(errflag, F_ERSYS, xopen) X } X else X { X*************** X*** 67,73 **** X *p2 = '\0'; X if( (env_val = getenv( env_name )) != NULL ) { X if(strlen(env_val) >= BUF_LEN-1 ) X! err(errflag,F_ERSTAT,"open: file name too long"); X strcpy(buf, env_val); X } X } X--- 68,74 ---- X *p2 = '\0'; X if( (env_val = getenv( env_name )) != NULL ) { X if(strlen(env_val) >= BUF_LEN-1 ) X! err(errflag,F_ERSTAT, "open: name too long"); X strcpy(buf, env_val); X } X } X*************** X*** 77,85 **** X { X if(!a->ofnm || inode(buf)==b->uinode) X { X! if(a->oblnk) b->ublnk= (lcase(*a->oblnk)== 'z'); X #ifndef KOSHER X! if(a->ofm && b->ufmt) b->uprnt = (lcase(*a->ofm)== 'p'); X #endif X return(OK); X } X--- 78,86 ---- X { X if(!a->ofnm || inode(buf)==b->uinode) X { X! if(a->oblnk) b->ublnk= (tolower(*a->oblnk)== 'z'); X #ifndef KOSHER X! if(a->ofm && b->ufmt) b->uprnt = (tolower(*a->ofm)== 'p'); X #endif X return(OK); X } X*************** X*** 89,97 **** X if(n=f_clos(&x)) return(n); X } X exists = (access(buf,0)==NULL); X! if(!exists && OLD) err(errflag,F_EROLDF,"open"); X! if( exists && NEW) err(errflag,F_ERNEWF,"open"); X errno = F_ERSYS; X if(isdev(buf)) X { if((b->ufd = fopen(buf,"r")) != NULL) b->uwrt = NO; X else err(errflag,errno,buf) X--- 90,110 ---- X if(n=f_clos(&x)) return(n); X } X exists = (access(buf,0)==NULL); X! if(!exists && OLD) err(errflag,F_EROLDF, xopen); X! if( exists && NEW) err(errflag,F_ERNEWF, xopen); X errno = F_ERSYS; X+ X+ if (a->oacc == NULL) X+ a->oacc = "seq"; X+ X+ /* X+ * If ACCESS='sequential' AND opneof (apnd=.TRUE. from "ioinit(cctl, bzro, X+ * apnd, prefix, vrbose)" set b->uapnd. This flag is used in util.c by X+ * the functions nowreading() and nowwriting(). append mode makes no sense X+ * with ACCESS='direct' files as a record number is used for each read/write X+ */ X+ b->uapnd = (opneof && (tolower(a->oacc) == 's')) ? 1 : 0; X+ X if(isdev(buf)) X { if((b->ufd = fopen(buf,"r")) != NULL) b->uwrt = NO; X else err(errflag,errno,buf) X*************** X*** 99,141 **** X else X { X errno = F_ERSYS; X! if((b->ufd = fopen(buf, "a")) != NULL) X! { if(!opneof) X! { if(freopen(buf, "r", b->ufd) != NULL) X! b->uwrt = NO; X! else X! err(errflag, errno, buf) X! } X! else X b->uwrt = YES; X! } X! else if((b->ufd = fopen(buf, "r")) != NULL) X! { if (opneof) X! fseek(b->ufd, 0L, 2); X b->uwrt = NO; X! } X! else err(errflag, errno, buf) X } X! if((b->uinode=finode(b->ufd))==-1) err(errflag,F_ERSTAT,"open") X b->ufnm = (char *) calloc(strlen(buf)+1,sizeof(char)); X! if(b->ufnm==NULL) err(errflag,F_ERSPACE,"open") X strcpy(b->ufnm,buf); X b->uscrtch = SCRATCH; X b->uend = NO; X b->useek = canseek(b->ufd); X! if (a->oacc == NULL) X! a->oacc = "seq"; X! if (lcase(*a->oacc)=='s' && a->orl > 0) X { X! fputs("Warning: open: record length ignored on sequential access\n", units[0].ufd); X b->url = 0; X } X! else if (a->orl < 0 || (lcase(*a->oacc)=='d' && a->orl == 0)) X! err(errflag,F_ERARG,"recl on open") X else X b->url = a->orl; X if (a->oblnk) X! b->ublnk = (lcase(*a->oblnk)=='z'); X else if (lunit == STDERR) X b->ublnk = NO; X else X--- 112,155 ---- X else X { X errno = F_ERSYS; X! /* X! * fopen("a") will create but not truncate the file if it exists. If that X! * succeeds then reopen the file and if uapnd is false use r+ instead of "a". X! * Set the uwrt state to YES. The double open looks weird but is necessary X! * since we can't use "w" on the first open. If a read is done the runtime X! * will call nowreading() in util.c. If fopen("a") fails then open the file X! * readonly and set uwrt to NO (write operations will fail/error). X! */ X! if (b->ufd = fopen(buf, "a")) X! { X! if (freopen(buf, b->uapnd ? "a" : "r+", b->ufd)) X b->uwrt = YES; X! else X! err(errflag, errno, buf) X! } X! else if (b->ufd = fopen(buf, "r")) X b->uwrt = NO; X! else X! err(errflag, errno, buf) X } X! if((b->uinode=finode(b->ufd))==-1) err(errflag,F_ERSTAT, xopen) X b->ufnm = (char *) calloc(strlen(buf)+1,sizeof(char)); X! if(b->ufnm==NULL) err(errflag,F_ERSPACE, xopen) X strcpy(b->ufnm,buf); X b->uscrtch = SCRATCH; X b->uend = NO; X b->useek = canseek(b->ufd); X! if (tolower(*a->oacc)=='s' && a->orl > 0) X { X! fputs("Warn: open: rec len ignored,seq acc\n", units[0].ufd); X b->url = 0; X } X! else if (a->orl < 0 || (tolower(*a->oacc)=='d' && a->orl == 0)) X! err(errflag,F_ERARG,"recl open") X else X b->url = a->orl; X if (a->oblnk) X! b->ublnk = (tolower(*a->oblnk)=='z'); X else if (lunit == STDERR) X b->ublnk = NO; X else X*************** X*** 142,148 **** X b->ublnk = blzero; X if (a->ofm) X { X! switch(lcase(*a->ofm)) X { X case 'f': X b->ufmt = YES; X--- 156,162 ---- X b->ublnk = blzero; X if (a->ofm) X { X! switch(tolower(*a->ofm)) X { X case 'f': X b->ufmt = YES; X*** ./usr/src/usr.lib/libI77/fio.h.old Sun Feb 13 13:45:41 2000 X--- ./usr/src/usr.lib/libI77/fio.h Tue Aug 4 17:24:20 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)fio.h 5.1.1 (2.11BSD) 1999/10/24 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)fio.h 5.1.2 (2.11BSD) 2026/8/4 X */ X X /* X*************** X*** 18,24 **** X #define GET(x) if((x=(*getn)())<0) return(x) X #define VAL(x) (x!='\n'?x:' ') X #define PUT(x) {if(n=(*putn)(x)) return(n);} X- #define lcase(s) ((s >= 'A') && (s <= 'Z') ? s+('a'-'A') : s) X X #define MAXINTLENGTH 32 /* to accomodate binary format */ X X--- 18,23 ---- X*** ./usr/src/usr.lib/libI77/rdfmt.c.old Sun Jun 12 19:32:00 1988 X--- ./usr/src/usr.lib/libI77/rdfmt.c Thu Aug 6 09:52:09 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)rdfmt.c 5.1 6/7/85 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)rdfmt.c 5.2 (2.11BSD) 2026/8/6 X */ X X /* X*************** X*** 156,163 **** X--- 156,167 ---- X else if(v==-1) return(errno=F_ERLOGIF); X } X if(v==-1) return(errno=F_ERLOGIF); X+ #ifdef SHORT_LOGICAL X+ n->is = v; X+ #else X if(len==sizeof(short)) n->is=v; X else n->il=v; X+ #endif X return(OK); X } X X*** ./usr/src/usr.lib/libmp/gcd.c.old Wed Feb 18 04:10:02 1987 X--- ./usr/src/usr.lib/libmp/gcd.c Mon May 11 14:26:15 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)gcd.c 5.2 (Berkeley) 3/13/86"; X! #endif not lint X X #include X gcd(a,b,c) MINT *a,*b,*c; X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)gcd.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X #include X gcd(a,b,c) MINT *a,*b,*c; X*** ./usr/src/usr.lib/libmp/madd.c.old Wed Feb 18 04:10:03 1987 X--- ./usr/src/usr.lib/libmp/madd.c Mon May 11 14:25:54 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)madd.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X #include X m_add(a,b,c) struct mint *a,*b,*c; X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)madd.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include X m_add(a,b,c) struct mint *a,*b,*c; X*** ./usr/src/usr.lib/libmp/mdiv.c.old Wed Feb 18 04:10:03 1987 X--- ./usr/src/usr.lib/libmp/mdiv.c Mon May 11 14:25:54 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)mdiv.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X #include X mdiv(a,b,q,r) MINT *a,*b,*q,*r; X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)mdiv.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include X mdiv(a,b,q,r) MINT *a,*b,*q,*r; X*** ./usr/src/usr.lib/libmp/mout.c.old Wed Feb 18 04:10:03 1987 X--- ./usr/src/usr.lib/libmp/mout.c Mon May 11 14:42:53 2026 X*************** X*** 4,15 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)mout.c 5.2 (Berkeley) 3/13/86"; X! #endif not lint X X #include X #include X m_in(a,b,f) MINT *a; FILE *f; X { MINT x,y,ten; X int sign,c; X--- 4,17 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)mout.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X #include X #include X+ #include X+ X m_in(a,b,f) MINT *a; FILE *f; X { MINT x,y,ten; X int sign,c; X*************** X*** 54,60 **** X { int sign,xlen,i; X short r; X MINT x; X! char *obuf, *malloc(); X register char *bp; X sign=1; X xlen=a->len; X--- 56,62 ---- X { int sign,xlen,i; X short r; X MINT x; X! char *obuf; X register char *bp; X sign=1; X xlen=a->len; X*** ./usr/src/usr.lib/libmp/msqrt.c.old Wed Feb 18 04:10:03 1987 X--- ./usr/src/usr.lib/libmp/msqrt.c Mon May 11 14:25:55 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)msqrt.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X #include X msqrt(a,b,r) MINT *a,*b,*r; X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)msqrt.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include X msqrt(a,b,r) MINT *a,*b,*r; X*** ./usr/src/usr.lib/libmp/mult.c.old Wed Feb 18 04:10:03 1987 X--- ./usr/src/usr.lib/libmp/mult.c Mon May 11 14:25:55 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)mult.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X #include X mult(a,b,c) struct mint *a,*b,*c; X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)mult.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include X mult(a,b,c) struct mint *a,*b,*c; X*** ./usr/src/usr.lib/libmp/pow.c.old Wed Feb 18 04:10:03 1987 X--- ./usr/src/usr.lib/libmp/pow.c Mon May 11 14:25:55 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)pow.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X #include X pow(a,b,c,d) MINT *a,*b,*c,*d; X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)pow.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include X pow(a,b,c,d) MINT *a,*b,*c,*d; X*** ./usr/src/usr.lib/libmp/util.c.old Wed Feb 18 04:10:03 1987 X--- ./usr/src/usr.lib/libmp/util.c Mon May 11 14:43:24 2026 X*************** X*** 4,19 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)util.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X! X! char *malloc(); X! #ifdef lint X! int xv_oid; X #endif X #include X #include X move(a,b) MINT *a,*b; X { int i,j; X xfree(b); X--- 4,17 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)util.c 5.2 (2.11BSD) 2026/5/11"; X #endif X+ X #include X #include X+ #include X+ X move(a,b) MINT *a,*b; X { int i,j; X xfree(b); X*** ./usr/src/usr.lib/libplot/gigi/arc.c.old Wed Feb 18 04:10:04 1987 X--- ./usr/src/usr.lib/libplot/gigi/arc.c Mon May 11 13:47:49 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)arc.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "gigi.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)arc.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "gigi.h" X X*** ./usr/src/usr.lib/libplot/gigi/box.c.old Wed Feb 18 04:10:04 1987 X--- ./usr/src/usr.lib/libplot/gigi/box.c Mon May 11 13:47:49 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)box.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X box(x0, y0, x1, y1) X { X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)box.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X box(x0, y0, x1, y1) X { X*** ./usr/src/usr.lib/libplot/gigi/circle.c.old Wed Feb 18 04:10:04 1987 X--- ./usr/src/usr.lib/libplot/gigi/circle.c Mon May 11 13:47:49 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)circle.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "gigi.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)circle.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "gigi.h" X X*** ./usr/src/usr.lib/libplot/gigi/close.c.old Wed Feb 18 04:10:04 1987 X--- ./usr/src/usr.lib/libplot/gigi/close.c Mon Sep 21 21:11:15 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)close.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include X #include "gigi.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)close.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include X #include "gigi.h" X*** ./usr/src/usr.lib/libplot/gigi/cont.c.old Wed Feb 18 04:10:04 1987 X--- ./usr/src/usr.lib/libplot/gigi/cont.c Mon May 11 13:47:49 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)cont.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "gigi.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cont.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "gigi.h" X X*** ./usr/src/usr.lib/libplot/gigi/dot.c.old Wed Feb 18 04:10:05 1987 X--- ./usr/src/usr.lib/libplot/gigi/dot.c Mon May 11 13:47:49 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)dot.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X dot(){ X } X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dot.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X dot(){ X } X*** ./usr/src/usr.lib/libplot/gigi/erase.c.old Wed Feb 18 04:10:05 1987 X--- ./usr/src/usr.lib/libplot/gigi/erase.c Mon May 11 13:47:49 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)erase.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "gigi.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)erase.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "gigi.h" X X*** ./usr/src/usr.lib/libplot/gigi/label.c.old Wed Feb 18 04:10:05 1987 X--- ./usr/src/usr.lib/libplot/gigi/label.c Mon May 11 13:47:49 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)label.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "gigi.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)label.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "gigi.h" X X*** ./usr/src/usr.lib/libplot/gigi/line.c.old Wed Feb 18 04:10:05 1987 X--- ./usr/src/usr.lib/libplot/gigi/line.c Mon May 11 13:47:49 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)line.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "gigi.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)line.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "gigi.h" X X*** ./usr/src/usr.lib/libplot/gigi/linemod.c.old Wed Feb 18 04:10:05 1987 X--- ./usr/src/usr.lib/libplot/gigi/linemod.c Mon May 11 13:47:49 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)linemod.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "gigi.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)linemod.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "gigi.h" X X*** ./usr/src/usr.lib/libplot/gigi/move.c.old Wed Feb 18 04:10:05 1987 X--- ./usr/src/usr.lib/libplot/gigi/move.c Mon May 11 13:47:49 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)move.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "gigi.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)move.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "gigi.h" X X*** ./usr/src/usr.lib/libplot/gigi/open.c.old Wed Feb 18 04:10:05 1987 X--- ./usr/src/usr.lib/libplot/gigi/open.c Mon Sep 21 17:05:47 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)open.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X /* X * Displays plot files on a gigi "graphics" terminal. X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)open.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * Displays plot files on a gigi "graphics" terminal. X*************** X*** 24,30 **** X X openpl() X { X! int closepl(); X X /* catch interupts */ X signal(SIGINT, closepl); X--- 24,30 ---- X X openpl() X { X! sig_t closepl; X X /* catch interupts */ X signal(SIGINT, closepl); X*** ./usr/src/usr.lib/libplot/gigi/point.c.old Wed Feb 18 04:10:05 1987 X--- ./usr/src/usr.lib/libplot/gigi/point.c Mon May 11 13:47:50 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)point.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "gigi.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)point.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "gigi.h" X X*** ./usr/src/usr.lib/libplot/gigi/space.c.old Wed Feb 18 04:10:06 1987 X--- ./usr/src/usr.lib/libplot/gigi/space.c Mon May 11 13:47:50 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)space.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "gigi.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)space.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "gigi.h" X X*** ./usr/src/usr.lib/libplot/plot/arc.c.old Wed Feb 18 04:10:06 1987 X--- ./usr/src/usr.lib/libplot/plot/arc.c Mon May 11 14:04:24 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)arc.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)arc.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include X*** ./usr/src/usr.lib/libplot/plot/box.c.old Wed Feb 18 04:10:06 1987 X--- ./usr/src/usr.lib/libplot/plot/box.c Mon May 11 14:04:24 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)box.c 4.1 (Berkeley) 6/27/83"; X #endif X X box(x0, y0, x1, y1) X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)box.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X box(x0, y0, x1, y1) X*** ./usr/src/usr.lib/libplot/plot/circle.c.old Wed Feb 18 04:10:06 1987 X--- ./usr/src/usr.lib/libplot/plot/circle.c Mon May 11 14:04:24 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)circle.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)circle.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include X*** ./usr/src/usr.lib/libplot/plot/close.c.old Wed Feb 18 04:10:06 1987 X--- ./usr/src/usr.lib/libplot/plot/close.c Mon May 11 14:04:24 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)close.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)close.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include X*** ./usr/src/usr.lib/libplot/plot/cont.c.old Wed Feb 18 04:10:06 1987 X--- ./usr/src/usr.lib/libplot/plot/cont.c Mon May 11 14:04:24 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)cont.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cont.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include X*** ./usr/src/usr.lib/libplot/plot/dot.c.old Wed Feb 18 04:10:07 1987 X--- ./usr/src/usr.lib/libplot/plot/dot.c Mon May 11 14:04:24 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)dot.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dot.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include X*** ./usr/src/usr.lib/libplot/plot/erase.c.old Wed Feb 18 04:10:07 1987 X--- ./usr/src/usr.lib/libplot/plot/erase.c Mon May 11 14:04:24 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)erase.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)erase.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include X*** ./usr/src/usr.lib/libplot/plot/label.c.old Wed Feb 18 04:10:07 1987 X--- ./usr/src/usr.lib/libplot/plot/label.c Mon May 11 14:04:24 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)label.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)label.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include X*** ./usr/src/usr.lib/libplot/plot/line.c.old Wed Feb 18 04:10:07 1987 X--- ./usr/src/usr.lib/libplot/plot/line.c Mon May 11 14:04:24 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)line.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)line.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include X*** ./usr/src/usr.lib/libplot/plot/linmod.c.old Wed Feb 18 04:10:07 1987 X--- ./usr/src/usr.lib/libplot/plot/linmod.c Mon May 11 14:04:24 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)linmod.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)linmod.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include X*** ./usr/src/usr.lib/libplot/plot/move.c.old Wed Feb 18 04:10:07 1987 X--- ./usr/src/usr.lib/libplot/plot/move.c Mon May 11 14:04:24 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)move.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)move.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include X*** ./usr/src/usr.lib/libplot/plot/open.c.old Wed Feb 18 04:10:07 1987 X--- ./usr/src/usr.lib/libplot/plot/open.c Mon May 11 14:04:24 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)open.c 4.1 (Berkeley) 6/27/83"; X #endif X X openvt(){ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)open.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X openvt(){ X*** ./usr/src/usr.lib/libplot/plot/point.c.old Wed Feb 18 04:10:07 1987 X--- ./usr/src/usr.lib/libplot/plot/point.c Mon May 11 14:04:25 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)point.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)point.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include X*** ./usr/src/usr.lib/libplot/plot/putsi.c.old Wed Feb 18 04:10:07 1987 X--- ./usr/src/usr.lib/libplot/plot/putsi.c Mon May 11 14:04:25 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)putsi.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)putsi.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include X*** ./usr/src/usr.lib/libplot/plot/space.c.old Wed Feb 18 04:10:08 1987 X--- ./usr/src/usr.lib/libplot/plot/space.c Mon May 11 14:04:25 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)space.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)space.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include X*** ./usr/src/usr.lib/libplot/aed/arc.c.old Wed Feb 18 04:10:08 1987 X--- ./usr/src/usr.lib/libplot/aed/arc.c Mon May 11 13:33:26 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)arc.c 5.2 (Berkeley) 4/30/85"; X! #endif not lint X X X arc(){ X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)arc.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X X arc(){ X*** ./usr/src/usr.lib/libplot/aed/box.c.old Wed Feb 18 04:10:08 1987 X--- ./usr/src/usr.lib/libplot/aed/box.c Mon May 11 13:33:50 2026 X*************** X*** 4,13 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)box.c 5.3 (Berkeley) 6/5/85"; X! #endif not lint X! X X box(x0, y0, x1, y1) X { X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)box.c 5.4 (2.11BSD) 2026/5/11"; X! #endif X X box(x0, y0, x1, y1) X { X*** ./usr/src/usr.lib/libplot/aed/circle.c.old Wed Feb 18 04:10:08 1987 X--- ./usr/src/usr.lib/libplot/aed/circle.c Mon May 11 13:33:26 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)circle.c 5.2 (Berkeley) 4/30/85"; X! #endif not lint X X X #include "aed.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)circle.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X X #include "aed.h" X*** ./usr/src/usr.lib/libplot/aed/close.c.old Wed Feb 18 04:10:08 1987 X--- ./usr/src/usr.lib/libplot/aed/close.c Mon May 11 13:33:26 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)close.c 5.2 (Berkeley) 4/30/85"; X! #endif not lint X X X #include "aed.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)close.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X X #include "aed.h" X*** ./usr/src/usr.lib/libplot/aed/cont.c.old Wed Feb 18 04:10:08 1987 X--- ./usr/src/usr.lib/libplot/aed/cont.c Mon May 11 13:33:56 2026 X*************** X*** 4,13 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)cont.c 5.3 (Berkeley) 4/30/85"; X! #endif not lint X! X X #include "aed.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cont.c 5.4 (2.11BSD) 2026/5/11"; X! #endif X X #include "aed.h" X X*** ./usr/src/usr.lib/libplot/aed/dot.c.old Wed Feb 18 04:10:09 1987 X--- ./usr/src/usr.lib/libplot/aed/dot.c Mon May 11 13:34:02 2026 X*************** X*** 4,13 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)dot.c 5.3 (Berkeley) 4/30/85"; X! #endif not lint X! X X dot(){ X } X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dot.c 5.4 (2.11BSD) 2026/5/11"; X! #endif X X dot(){ X } X*** ./usr/src/usr.lib/libplot/aed/erase.c.old Wed Feb 18 04:10:09 1987 X--- ./usr/src/usr.lib/libplot/aed/erase.c Mon May 11 13:33:26 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)erase.c 5.2 (Berkeley) 4/30/85"; X! #endif not lint X X X #include "aed.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)erase.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X X #include "aed.h" X*** ./usr/src/usr.lib/libplot/aed/label.c.old Wed Feb 18 04:10:09 1987 X--- ./usr/src/usr.lib/libplot/aed/label.c Mon May 11 13:33:26 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)label.c 5.2 (Berkeley) 4/30/85"; X! #endif not lint X X X #include "aed.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)label.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X X #include "aed.h" X*** ./usr/src/usr.lib/libplot/aed/line.c.old Wed Feb 18 04:10:09 1987 X--- ./usr/src/usr.lib/libplot/aed/line.c Mon May 11 13:33:26 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char sccsid[] = "@(#)line.c 5.2 (Berkeley) 6/6/85"; X! #endif not lint X X #include "aed.h" X X--- 1,12 ---- X! /* X! * Copyright (c) 1980 Regents of the University of California. X! * All rights reserved. The Berkeley software License Agreement X! * specifies the terms and conditions for redistribution. X! */ X! X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)line.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X #include "aed.h" X X*** ./usr/src/usr.lib/libplot/aed/linemod.c.old Wed Feb 18 04:10:09 1987 X--- ./usr/src/usr.lib/libplot/aed/linemod.c Mon May 11 13:33:26 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)linemod.c 5.2 (Berkeley) 4/30/85"; X! #endif not lint X X X #include "aed.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)linemod.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X X #include "aed.h" X*** ./usr/src/usr.lib/libplot/aed/move.c.old Wed Feb 18 04:10:09 1987 X--- ./usr/src/usr.lib/libplot/aed/move.c Mon May 11 13:33:26 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)move.c 5.2 (Berkeley) 4/30/85"; X! #endif not lint X X X #include "aed.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)move.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X X #include "aed.h" X*** ./usr/src/usr.lib/libplot/aed/open.c.old Sun Mar 8 22:50:29 1987 X--- ./usr/src/usr.lib/libplot/aed/open.c Mon May 11 13:33:26 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)open.c 5.2 (Berkeley) 4/30/85"; X! #endif not lint X X X /* X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)open.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X X /* X*** ./usr/src/usr.lib/libplot/aed/point.c.old Wed Feb 18 04:10:09 1987 X--- ./usr/src/usr.lib/libplot/aed/point.c Mon May 11 13:33:27 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)point.c 5.2 (Berkeley) 4/30/85"; X! #endif not lint X X X #include "aed.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)point.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X X #include "aed.h" X*** ./usr/src/usr.lib/libplot/aed/space.c.old Wed Feb 18 04:10:09 1987 X--- ./usr/src/usr.lib/libplot/aed/space.c Mon May 11 13:33:27 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)space.c 5.2 (Berkeley) 4/30/85"; X! #endif not lint X X X #include "aed.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)space.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X X #include "aed.h" X*** ./usr/src/usr.lib/libplot/aed/subr.c.old Wed Feb 18 04:10:09 1987 X--- ./usr/src/usr.lib/libplot/aed/subr.c Mon May 11 13:33:27 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)subr.c 5.2 (Berkeley) 4/30/85"; X! #endif not lint X X X #include "aed.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)subr.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X X #include "aed.h" X*** ./usr/src/usr.lib/libplot/t4013/arc.c.old Wed Feb 18 04:10:10 1987 X--- ./usr/src/usr.lib/libplot/t4013/arc.c Mon May 11 14:13:10 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)arc.c 5.2 (Berkeley) 6/23/85"; X! #endif not lint X X int del = 20; X step(d){ X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)arc.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X int del = 20; X step(d){ X*** ./usr/src/usr.lib/libplot/t4013/box.c.old Wed Feb 18 04:10:10 1987 X--- ./usr/src/usr.lib/libplot/t4013/box.c Mon May 11 14:12:22 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)box.c 5.1 (Berkeley) 6/7/85"; X! #endif not lint X X box(x0, y0, x1, y1) X { X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)box.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X box(x0, y0, x1, y1) X { X*** ./usr/src/usr.lib/libplot/t4013/circle.c.old Wed Feb 18 04:10:10 1987 X--- ./usr/src/usr.lib/libplot/t4013/circle.c Mon May 11 14:12:22 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)circle.c 5.1 (Berkeley) 6/7/85"; X! #endif not lint X X circle(x,y,r){ X arc(x,y,x+r,y,x+r,y); X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)circle.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X circle(x,y,r){ X arc(x,y,x+r,y,x+r,y); X*** ./usr/src/usr.lib/libplot/t4013/close.c.old Wed Feb 18 04:10:10 1987 X--- ./usr/src/usr.lib/libplot/t4013/close.c Mon May 11 14:12:22 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)close.c 5.1 (Berkeley) 6/7/85"; X! #endif not lint X X #include X closevt(){ X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)close.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include X closevt(){ X*** ./usr/src/usr.lib/libplot/t4013/dot.c.old Wed Feb 18 04:10:11 1987 X--- ./usr/src/usr.lib/libplot/t4013/dot.c Mon May 11 14:12:22 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)dot.c 5.1 (Berkeley) 6/7/85"; X! #endif not lint X X dot(){ X } X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dot.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X dot(){ X } X*** ./usr/src/usr.lib/libplot/t4013/erase.c.old Wed Feb 18 04:10:11 1987 X--- ./usr/src/usr.lib/libplot/t4013/erase.c Mon May 11 14:12:23 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)erase.c 5.1 (Berkeley) 6/7/85"; X! #endif not lint X X extern int ohiy; X extern int ohix; X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)erase.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X extern int ohiy; X extern int ohix; X*** ./usr/src/usr.lib/libplot/t4013/label.c.old Wed Feb 18 04:10:11 1987 X--- ./usr/src/usr.lib/libplot/t4013/label.c Mon May 11 14:12:23 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)label.c 5.1 (Berkeley) 6/7/85"; X! #endif not lint X X label(s) X char *s; X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)label.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X label(s) X char *s; X*** ./usr/src/usr.lib/libplot/t4013/line.c.old Wed Feb 18 04:10:11 1987 X--- ./usr/src/usr.lib/libplot/t4013/line.c Mon May 11 14:12:23 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)line.c 5.1 (Berkeley) 6/7/85"; X! #endif not lint X X line(x0,y0,x1,y1){ X move(x0,y0); X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)line.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X line(x0,y0,x1,y1){ X move(x0,y0); X*** ./usr/src/usr.lib/libplot/t4013/linemod.c.old Wed Feb 18 04:10:11 1987 X--- ./usr/src/usr.lib/libplot/t4013/linemod.c Mon May 11 14:12:23 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)linemod.c 5.1 (Berkeley) 6/7/85"; X! #endif not lint X X linemod(s) X char *s; X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)linemod.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X linemod(s) X char *s; X*** ./usr/src/usr.lib/libplot/t4013/move.c.old Wed Feb 18 04:10:11 1987 X--- ./usr/src/usr.lib/libplot/t4013/move.c Mon May 11 14:12:23 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)move.c 5.1 (Berkeley) 6/7/85"; X! #endif not lint X X move(xi,yi){ X putch(035); X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)move.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X move(xi,yi){ X putch(035); X*** ./usr/src/usr.lib/libplot/t4013/open.c.old Wed Feb 18 04:10:11 1987 X--- ./usr/src/usr.lib/libplot/t4013/open.c Mon May 11 14:12:23 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)open.c 5.1 (Berkeley) 6/7/85"; X! #endif not lint X X openvt () X { X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)open.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X openvt () X { X*** ./usr/src/usr.lib/libplot/t4013/point.c.old Wed Feb 18 04:10:11 1987 X--- ./usr/src/usr.lib/libplot/t4013/point.c Mon May 11 14:12:23 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)point.c 5.1 (Berkeley) 6/7/85"; X! #endif not lint X X point(xi,yi){ X move(xi,yi); X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)point.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X point(xi,yi){ X move(xi,yi); X*** ./usr/src/usr.lib/libplot/t4013/scale.c.old Wed Feb 18 04:10:12 1987 X--- ./usr/src/usr.lib/libplot/t4013/scale.c Mon May 11 14:12:23 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)scale.c 5.1 (Berkeley) 6/7/85"; X! #endif not lint X X extern float scalex; X extern float scaley; X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)scale.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X extern float scalex; X extern float scaley; X*** ./usr/src/usr.lib/libplot/t4013/space.c.old Wed Feb 18 04:10:12 1987 X--- ./usr/src/usr.lib/libplot/t4013/space.c Mon May 11 14:12:23 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)space.c 5.1 (Berkeley) 6/7/85"; X! #endif not lint X X extern float botx; X extern float boty; X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)space.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X extern float botx; X extern float boty; X*** ./usr/src/usr.lib/libplot/t4013/subr.c.old Wed Feb 18 04:10:10 1987 X--- ./usr/src/usr.lib/libplot/t4013/subr.c Mon May 11 14:12:23 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)subr.c 5.1 (Berkeley) 6/7/85"; X! #endif not lint X X #include X float obotx = 0.; X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)subr.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include X float obotx = 0.; X*** ./usr/src/usr.lib/libplot/tf77/arc.c.old Wed Feb 18 04:10:12 1987 X--- ./usr/src/usr.lib/libplot/tf77/arc.c Mon May 11 14:20:28 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)arc.c 5.1 (Berkeley) 6/7/85"; X! #endif not lint X X arc_(x,y,x0,y0,x1,y1) X int *x, *y, *x0, *y0, *x1, *y1; X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)arc.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X arc_(x,y,x0,y0,x1,y1) X int *x, *y, *x0, *y0, *x1, *y1; X*** ./usr/src/usr.lib/libplot/tf77/box.c.old Wed Feb 18 04:10:12 1987 X--- ./usr/src/usr.lib/libplot/tf77/box.c Mon May 11 14:20:45 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)box.c 5.2 (Berkeley) 6/8/85"; X! #endif not lint X X box_(x0, y0, x1, y1) X int *x0, *y0, *x1, *y1; X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)box.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X box_(x0, y0, x1, y1) X int *x0, *y0, *x1, *y1; X*** ./usr/src/usr.lib/libplot/tf77/circle.c.old Wed Feb 18 04:10:12 1987 X--- ./usr/src/usr.lib/libplot/tf77/circle.c Mon May 11 14:20:29 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)circle.c 5.1 (Berkeley) 6/7/85"; X! #endif not lint X X circle_(x,y,r) X int *x, *y, *r; X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)circle.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X circle_(x,y,r) X int *x, *y, *r; X*** ./usr/src/usr.lib/libplot/tf77/clospl.c.old Wed Feb 18 04:10:16 1987 X--- ./usr/src/usr.lib/libplot/tf77/clospl.c Mon May 11 14:20:49 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)clospl.c 5.2 (Berkeley) 6/8/85"; X! #endif not lint X X clospl_(){ X closepl(); X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)clospl.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X clospl_(){ X closepl(); X*** ./usr/src/usr.lib/libplot/tf77/cont.c.old Wed Feb 18 04:10:17 1987 X--- ./usr/src/usr.lib/libplot/tf77/cont.c Mon May 11 14:20:29 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)cont.c 5.1 (Berkeley) 6/7/85"; X! #endif not lint X X cont_(x,y) X int *x, *y; X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cont.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X cont_(x,y) X int *x, *y; X*** ./usr/src/usr.lib/libplot/tf77/dot.c.old Wed Feb 18 04:10:17 1987 X--- ./usr/src/usr.lib/libplot/tf77/dot.c Mon May 11 14:20:29 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)dot.c 5.1 (Berkeley) 6/7/85"; X! #endif not lint X X dot_(xi, yi, dx, n, pat) X int *xi, *yi, *dx, *n, *pat; X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dot.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X dot_(xi, yi, dx, n, pat) X int *xi, *yi, *dx, *n, *pat; X*** ./usr/src/usr.lib/libplot/tf77/erase.c.old Wed Feb 18 04:10:17 1987 X--- ./usr/src/usr.lib/libplot/tf77/erase.c Mon May 11 14:20:29 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)erase.c 5.1 (Berkeley) 6/7/85"; X! #endif not lint X X erase_() X { X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)erase.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X erase_() X { X*** ./usr/src/usr.lib/libplot/tf77/label.c.old Wed Feb 18 04:10:17 1987 X--- ./usr/src/usr.lib/libplot/tf77/label.c Mon May 11 14:20:29 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)label.c 5.1 (Berkeley) 6/7/85"; X! #endif not lint X X label_(s, len) X register char *s; X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)label.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X label_(s, len) X register char *s; X*** ./usr/src/usr.lib/libplot/tf77/line.c.old Wed Feb 18 04:10:17 1987 X--- ./usr/src/usr.lib/libplot/tf77/line.c Mon May 11 14:20:29 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)line.c 5.1 (Berkeley) 6/7/85"; X! #endif not lint X X line_(x0,y0,x1,y1) X int *x0, *y0, *x1, *y1; X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)line.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X line_(x0,y0,x1,y1) X int *x0, *y0, *x1, *y1; X*** ./usr/src/usr.lib/libplot/tf77/linemd.c.old Wed Feb 18 04:10:17 1987 X--- ./usr/src/usr.lib/libplot/tf77/linemd.c Mon May 11 14:20:29 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)linemd.c 5.1 (Berkeley) 6/7/85"; X! #endif not lint X X linemd_(s, len) X register char *s; X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)linemd.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X linemd_(s, len) X register char *s; X*** ./usr/src/usr.lib/libplot/tf77/move.c.old Wed Feb 18 04:10:18 1987 X--- ./usr/src/usr.lib/libplot/tf77/move.c Mon May 11 14:20:29 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)move.c 5.1 (Berkeley) 6/7/85"; X! #endif not lint X X move_(xi,yi) X int *xi, *yi; X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)move.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X move_(xi,yi) X int *xi, *yi; X*** ./usr/src/usr.lib/libplot/tf77/open.c.old Wed Feb 18 04:10:18 1987 X--- ./usr/src/usr.lib/libplot/tf77/open.c Mon May 11 14:20:54 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)open.c 5.2 (Berkeley) 6/8/85"; X! #endif not lint X X openpl_() X { X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)open.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X openpl_() X { X*** ./usr/src/usr.lib/libplot/tf77/point.c.old Wed Feb 18 04:10:18 1987 X--- ./usr/src/usr.lib/libplot/tf77/point.c Mon May 11 14:20:29 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)point.c 5.1 (Berkeley) 6/7/85"; X! #endif not lint X X point_(xi,yi) X int *xi, *yi; X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)point.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X point_(xi,yi) X int *xi, *yi; X*** ./usr/src/usr.lib/libplot/tf77/space.c.old Wed Feb 18 04:10:18 1987 X--- ./usr/src/usr.lib/libplot/tf77/space.c Mon May 11 14:20:29 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)space.c 5.1 (Berkeley) 6/7/85"; X! #endif not lint X X space_(x0,y0,x1,y1) X int *x0, *y0, *x1, *y1; X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)space.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X space_(x0,y0,x1,y1) X int *x0, *y0, *x1, *y1; X*** ./usr/src/usr.lib/libplot/t300/arc.c.old Wed Feb 18 04:10:18 1987 X--- ./usr/src/usr.lib/libplot/t300/arc.c Mon May 11 14:06:55 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)arc.c 4.1 (Berkeley) 6/27/83"; X #endif X X arc(){ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)arc.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X arc(){ X*** ./usr/src/usr.lib/libplot/t300/box.c.old Wed Feb 18 04:10:19 1987 X--- ./usr/src/usr.lib/libplot/t300/box.c Mon May 11 14:06:55 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)box.c 4.1 (Berkeley) 6/27/83"; X #endif X X box(x0, y0, x1, y1) X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)box.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X box(x0, y0, x1, y1) X*** ./usr/src/usr.lib/libplot/t300/circle.c.old Wed Feb 18 04:10:19 1987 X--- ./usr/src/usr.lib/libplot/t300/circle.c Mon May 11 14:06:55 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)circle.c 4.1 (Berkeley) 6/27/83"; X #endif X X circle(){ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)circle.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X circle(){ X*** ./usr/src/usr.lib/libplot/t300/close.c.old Wed Feb 18 04:10:19 1987 X--- ./usr/src/usr.lib/libplot/t300/close.c Mon May 11 14:06:55 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)close.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)close.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include X*** ./usr/src/usr.lib/libplot/t300/dot.c.old Wed Feb 18 04:10:19 1987 X--- ./usr/src/usr.lib/libplot/t300/dot.c Mon May 11 14:06:56 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)dot.c 4.1 (Berkeley) 6/27/83"; X #endif X X dot(){ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dot.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X dot(){ X*** ./usr/src/usr.lib/libplot/t300/erase.c.old Wed Feb 18 04:10:19 1987 X--- ./usr/src/usr.lib/libplot/t300/erase.c Mon May 11 14:06:56 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)erase.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include "con.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)erase.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include "con.h" X*** ./usr/src/usr.lib/libplot/t300/label.c.old Wed Feb 18 04:10:19 1987 X--- ./usr/src/usr.lib/libplot/t300/label.c Mon May 11 14:06:56 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)label.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include "con.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)label.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include "con.h" X*** ./usr/src/usr.lib/libplot/t300/line.c.old Wed Feb 18 04:10:19 1987 X--- ./usr/src/usr.lib/libplot/t300/line.c Mon May 11 14:06:56 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)line.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include "con.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)line.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include "con.h" X*** ./usr/src/usr.lib/libplot/t300/linmod.c.old Wed Feb 18 04:10:19 1987 X--- ./usr/src/usr.lib/libplot/t300/linmod.c Mon May 11 14:06:56 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)linmod.c 4.1 (Berkeley) 6/27/83"; X #endif X X linemod(){ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)linmod.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X linemod(){ X*** ./usr/src/usr.lib/libplot/t300/move.c.old Wed Feb 18 04:10:20 1987 X--- ./usr/src/usr.lib/libplot/t300/move.c Mon May 11 14:06:56 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)move.c 4.1 (Berkeley) 6/27/83"; X #endif X X move(xi,yi){ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)move.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X move(xi,yi){ X*** ./usr/src/usr.lib/libplot/t300/open.c.old Wed Feb 18 04:10:20 1987 X--- ./usr/src/usr.lib/libplot/t300/open.c Mon May 11 14:06:56 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)open.c 4.1 (Berkeley) 6/27/83"; X #endif X X # X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)open.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X # X*** ./usr/src/usr.lib/libplot/t300/point.c.old Wed Feb 18 04:10:20 1987 X--- ./usr/src/usr.lib/libplot/t300/point.c Mon May 11 14:06:56 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)point.c 4.1 (Berkeley) 6/27/83"; X #endif X X point(xi,yi){ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)point.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X point(xi,yi){ X*** ./usr/src/usr.lib/libplot/t300/space.c.old Wed Feb 18 04:10:20 1987 X--- ./usr/src/usr.lib/libplot/t300/space.c Mon May 11 14:06:56 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)space.c 4.1 (Berkeley) 6/27/83"; X #endif X X # include "con.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)space.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X # include "con.h" X*** ./usr/src/usr.lib/libplot/t300/subr.c.old Wed Feb 18 04:10:20 1987 X--- ./usr/src/usr.lib/libplot/t300/subr.c Mon May 11 14:06:56 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)subr.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)subr.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include X*** ./usr/src/usr.lib/libplot/t300s/arc.c.old Wed Feb 18 04:10:21 1987 X--- ./usr/src/usr.lib/libplot/t300s/arc.c Mon May 11 14:09:59 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)arc.c 4.1 (Berkeley) 6/27/83"; X #endif X X arc(){ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)arc.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X arc(){ X*** ./usr/src/usr.lib/libplot/t300s/box.c.old Wed Feb 18 04:10:21 1987 X--- ./usr/src/usr.lib/libplot/t300s/box.c Mon May 11 14:09:59 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)box.c 4.1 (Berkeley) 6/27/83"; X #endif X X box(x0, y0, x1, y1) X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)box.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X box(x0, y0, x1, y1) X*** ./usr/src/usr.lib/libplot/t300s/circle.c.old Wed Feb 18 04:10:21 1987 X--- ./usr/src/usr.lib/libplot/t300s/circle.c Mon May 11 14:09:59 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)circle.c 4.1 (Berkeley) 6/27/83"; X #endif X X circle(){ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)circle.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X circle(){ X*** ./usr/src/usr.lib/libplot/t300s/close.c.old Wed Feb 18 04:10:21 1987 X--- ./usr/src/usr.lib/libplot/t300s/close.c Mon May 11 14:09:59 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)close.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)close.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include X*** ./usr/src/usr.lib/libplot/t300s/dot.c.old Wed Feb 18 04:10:21 1987 X--- ./usr/src/usr.lib/libplot/t300s/dot.c Mon May 11 14:09:59 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)dot.c 4.1 (Berkeley) 6/27/83"; X #endif X X dot(){ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dot.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X dot(){ X*** ./usr/src/usr.lib/libplot/t300s/erase.c.old Wed Feb 18 04:10:21 1987 X--- ./usr/src/usr.lib/libplot/t300s/erase.c Mon May 11 14:09:59 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)erase.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include "con.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)erase.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include "con.h" X*** ./usr/src/usr.lib/libplot/t300s/label.c.old Wed Feb 18 04:10:21 1987 X--- ./usr/src/usr.lib/libplot/t300s/label.c Mon May 11 14:09:59 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)label.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include "con.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)label.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include "con.h" X*** ./usr/src/usr.lib/libplot/t300s/line.c.old Wed Feb 18 04:10:21 1987 X--- ./usr/src/usr.lib/libplot/t300s/line.c Mon May 11 14:09:59 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)line.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include "con.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)line.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include "con.h" X*** ./usr/src/usr.lib/libplot/t300s/linmod.c.old Wed Feb 18 04:10:22 1987 X--- ./usr/src/usr.lib/libplot/t300s/linmod.c Mon May 11 14:10:00 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)linmod.c 4.1 (Berkeley) 6/27/83"; X #endif X X linemod(){ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)linmod.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X linemod(){ X*** ./usr/src/usr.lib/libplot/t300s/move.c.old Wed Feb 18 04:10:22 1987 X--- ./usr/src/usr.lib/libplot/t300s/move.c Mon May 11 14:10:00 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)move.c 4.1 (Berkeley) 6/27/83"; X #endif X X move(xi,yi){ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)move.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X move(xi,yi){ X*** ./usr/src/usr.lib/libplot/t300s/open.c.old Wed Feb 18 04:10:22 1987 X--- ./usr/src/usr.lib/libplot/t300s/open.c Mon May 11 14:10:00 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)open.c 4.1 (Berkeley) 6/27/83"; X #endif X X # X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)open.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X # X*** ./usr/src/usr.lib/libplot/t300s/point.c.old Wed Feb 18 04:10:22 1987 X--- ./usr/src/usr.lib/libplot/t300s/point.c Mon May 11 14:10:00 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)point.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include "con.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)point.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include "con.h" X*** ./usr/src/usr.lib/libplot/t300s/space.c.old Wed Feb 18 04:10:22 1987 X--- ./usr/src/usr.lib/libplot/t300s/space.c Mon May 11 14:10:00 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)space.c 4.1 (Berkeley) 6/27/83"; X #endif X X # include "con.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)space.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X # include "con.h" X*** ./usr/src/usr.lib/libplot/t300s/subr.c.old Wed Feb 18 04:10:22 1987 X--- ./usr/src/usr.lib/libplot/t300s/subr.c Mon May 11 14:10:00 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)subr.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)subr.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include X*** ./usr/src/usr.lib/libplot/t4014/arc.c.old Wed Feb 18 04:10:23 1987 X--- ./usr/src/usr.lib/libplot/t4014/arc.c Mon May 11 14:16:17 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)arc.c 4.3 (Berkeley) 6/23/85"; X #endif X X int del = 20; X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)arc.c 4.4 (2.11BSD) 2026/5/11"; X #endif X X int del = 20; X*** ./usr/src/usr.lib/libplot/t4014/box.c.old Wed Feb 18 04:10:23 1987 X--- ./usr/src/usr.lib/libplot/t4014/box.c Mon May 11 14:15:58 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)box.c 4.1 (Berkeley) 6/27/83"; X #endif X X box(x0, y0, x1, y1) X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)box.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X box(x0, y0, x1, y1) X*** ./usr/src/usr.lib/libplot/t4014/circle.c.old Wed Feb 18 04:10:23 1987 X--- ./usr/src/usr.lib/libplot/t4014/circle.c Mon May 11 14:15:58 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)circle.c 4.1 (Berkeley) 6/27/83"; X #endif X X circle(x,y,r){ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)circle.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X circle(x,y,r){ X*** ./usr/src/usr.lib/libplot/t4014/close.c.old Wed Feb 18 04:10:23 1987 X--- ./usr/src/usr.lib/libplot/t4014/close.c Mon May 11 14:15:58 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)close.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)close.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include X*** ./usr/src/usr.lib/libplot/t4014/dot.c.old Wed Feb 18 04:10:23 1987 X--- ./usr/src/usr.lib/libplot/t4014/dot.c Mon May 11 14:15:58 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)dot.c 4.1 (Berkeley) 6/27/83"; X #endif X X dot(){ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dot.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X dot(){ X*** ./usr/src/usr.lib/libplot/t4014/erase.c.old Wed Feb 18 04:10:23 1987 X--- ./usr/src/usr.lib/libplot/t4014/erase.c Mon May 11 14:16:25 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)erase.c 4.2 (Berkeley) 1/2/85"; X #endif X X extern int ohiy; X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)erase.c 4.3 (2.11BSD) 2026/5/11"; X #endif X X extern int ohiy; X*** ./usr/src/usr.lib/libplot/t4014/label.c.old Wed Feb 18 04:10:23 1987 X--- ./usr/src/usr.lib/libplot/t4014/label.c Mon May 11 14:15:58 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)label.c 4.1 (Berkeley) 6/27/83"; X #endif X X #define N 0104 X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)label.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #define N 0104 X*** ./usr/src/usr.lib/libplot/t4014/line.c.old Wed Feb 18 04:10:23 1987 X--- ./usr/src/usr.lib/libplot/t4014/line.c Mon May 11 14:15:58 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)line.c 4.1 (Berkeley) 6/27/83"; X #endif X X line(x0,y0,x1,y1){ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)line.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X line(x0,y0,x1,y1){ X*** ./usr/src/usr.lib/libplot/t4014/linemod.c.old Wed Feb 18 04:10:23 1987 X--- ./usr/src/usr.lib/libplot/t4014/linemod.c Mon May 11 14:15:58 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)linemod.c 4.1 (Berkeley) 6/27/83"; X #endif X X linemod(s) X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)linemod.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X linemod(s) X*** ./usr/src/usr.lib/libplot/t4014/move.c.old Wed Feb 18 04:10:24 1987 X--- ./usr/src/usr.lib/libplot/t4014/move.c Mon May 11 14:15:58 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)move.c 4.1 (Berkeley) 6/27/83"; X #endif X X move(xi,yi){ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)move.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X move(xi,yi){ X*** ./usr/src/usr.lib/libplot/t4014/open.c.old Wed Feb 18 04:10:24 1987 X--- ./usr/src/usr.lib/libplot/t4014/open.c Mon May 11 14:15:58 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)open.c 4.1 (Berkeley) 6/27/83"; X #endif X X openvt () X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)open.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X openvt () X*** ./usr/src/usr.lib/libplot/t4014/point.c.old Wed Feb 18 04:10:24 1987 X--- ./usr/src/usr.lib/libplot/t4014/point.c Mon May 11 14:15:58 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)point.c 4.1 (Berkeley) 6/27/83"; X #endif X X point(xi,yi){ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)point.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X point(xi,yi){ X*** ./usr/src/usr.lib/libplot/t4014/scale.c.old Wed Feb 18 04:10:24 1987 X--- ./usr/src/usr.lib/libplot/t4014/scale.c Mon May 11 14:15:58 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)scale.c 4.1 (Berkeley) 6/27/83"; X #endif X X extern float scalex; X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)scale.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X extern float scalex; X*** ./usr/src/usr.lib/libplot/t4014/space.c.old Wed Feb 18 04:10:24 1987 X--- ./usr/src/usr.lib/libplot/t4014/space.c Mon May 11 14:15:58 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)space.c 4.1 (Berkeley) 6/27/83"; X #endif X X extern float botx; X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)space.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X extern float botx; X*** ./usr/src/usr.lib/libplot/t4014/subr.c.old Wed Feb 18 04:10:24 1987 X--- ./usr/src/usr.lib/libplot/t4014/subr.c Mon May 11 14:15:59 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)subr.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)subr.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include X*** ./usr/src/usr.lib/libplot/t450/arc.c.old Wed Feb 18 04:10:25 1987 X--- ./usr/src/usr.lib/libplot/t450/arc.c Mon May 11 14:17:54 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)arc.c 4.1 (Berkeley) 6/27/83"; X #endif X X arc(){ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)arc.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X arc(){ X*** ./usr/src/usr.lib/libplot/t450/box.c.old Wed Feb 18 04:10:25 1987 X--- ./usr/src/usr.lib/libplot/t450/box.c Mon May 11 14:17:54 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)box.c 4.1 (Berkeley) 6/27/83"; X #endif X X box(x0, y0, x1, y1) X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)box.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X box(x0, y0, x1, y1) X*** ./usr/src/usr.lib/libplot/t450/circle.c.old Wed Feb 18 04:10:25 1987 X--- ./usr/src/usr.lib/libplot/t450/circle.c Mon May 11 14:17:54 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)circle.c 4.1 (Berkeley) 6/27/83"; X #endif X X circle(){ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)circle.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X circle(){ X*** ./usr/src/usr.lib/libplot/t450/close.c.old Wed Feb 18 04:10:25 1987 X--- ./usr/src/usr.lib/libplot/t450/close.c Mon May 11 14:17:54 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)close.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)close.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include X*** ./usr/src/usr.lib/libplot/t450/dot.c.old Wed Feb 18 04:10:25 1987 X--- ./usr/src/usr.lib/libplot/t450/dot.c Mon May 11 14:17:54 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)dot.c 4.1 (Berkeley) 6/27/83"; X #endif X X dot(){ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dot.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X dot(){ X*** ./usr/src/usr.lib/libplot/t450/erase.c.old Wed Feb 18 04:10:25 1987 X--- ./usr/src/usr.lib/libplot/t450/erase.c Mon May 11 14:17:54 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)erase.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include "con.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)erase.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include "con.h" X*** ./usr/src/usr.lib/libplot/t450/label.c.old Wed Feb 18 04:10:25 1987 X--- ./usr/src/usr.lib/libplot/t450/label.c Mon May 11 14:17:54 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)label.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include "con.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)label.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include "con.h" X*** ./usr/src/usr.lib/libplot/t450/line.c.old Wed Feb 18 04:10:25 1987 X--- ./usr/src/usr.lib/libplot/t450/line.c Mon May 11 14:17:54 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)line.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include "con.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)line.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include "con.h" X*** ./usr/src/usr.lib/libplot/t450/linmod.c.old Wed Feb 18 04:10:25 1987 X--- ./usr/src/usr.lib/libplot/t450/linmod.c Mon May 11 14:17:54 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)linmod.c 4.1 (Berkeley) 6/27/83"; X #endif X X linemod(){ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)linmod.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X linemod(){ X*** ./usr/src/usr.lib/libplot/t450/move.c.old Wed Feb 18 04:10:26 1987 X--- ./usr/src/usr.lib/libplot/t450/move.c Mon May 11 14:17:54 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)move.c 4.1 (Berkeley) 6/27/83"; X #endif X X move(xi,yi){ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)move.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X move(xi,yi){ X*** ./usr/src/usr.lib/libplot/t450/open.c.old Wed Feb 18 04:10:26 1987 X--- ./usr/src/usr.lib/libplot/t450/open.c Mon May 11 14:17:54 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)open.c 4.1 (Berkeley) 6/27/83"; X #endif X X # X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)open.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X # X*** ./usr/src/usr.lib/libplot/t450/point.c.old Wed Feb 18 04:10:26 1987 X--- ./usr/src/usr.lib/libplot/t450/point.c Mon May 11 14:17:54 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)point.c 4.1 (Berkeley) 6/27/83"; X #endif X X point(xi,yi){ X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)point.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X point(xi,yi){ X*** ./usr/src/usr.lib/libplot/t450/space.c.old Wed Feb 18 04:10:26 1987 X--- ./usr/src/usr.lib/libplot/t450/space.c Mon May 11 14:17:54 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)space.c 4.1 (Berkeley) 6/27/83"; X #endif X X # include "con.h" X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)space.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X # include "con.h" X*** ./usr/src/usr.lib/libplot/t450/subr.c.old Wed Feb 18 04:10:26 1987 X--- ./usr/src/usr.lib/libplot/t450/subr.c Mon May 11 14:17:55 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)subr.c 4.1 (Berkeley) 6/27/83"; X #endif X X #include X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)subr.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X #include X*** ./usr/src/usr.lib/libplot/hp2648/arc.c.old Wed Feb 18 04:10:26 1987 X--- ./usr/src/usr.lib/libplot/hp2648/arc.c Mon May 11 13:50:41 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)arc.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "hp2648.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)arc.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "hp2648.h" X X*** ./usr/src/usr.lib/libplot/hp2648/box.c.old Wed Feb 18 04:10:26 1987 X--- ./usr/src/usr.lib/libplot/hp2648/box.c Mon May 11 13:50:41 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)box.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X box(x0, y0, x1, y1) X { X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)box.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X box(x0, y0, x1, y1) X { X*** ./usr/src/usr.lib/libplot/hp2648/circle.c.old Wed Feb 18 04:10:27 1987 X--- ./usr/src/usr.lib/libplot/hp2648/circle.c Mon May 11 13:50:41 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)circle.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "hp2648.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)circle.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "hp2648.h" X X*** ./usr/src/usr.lib/libplot/hp2648/close.c.old Wed Feb 18 04:10:27 1987 X--- ./usr/src/usr.lib/libplot/hp2648/close.c Mon May 11 13:50:41 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)close.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "hp2648.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)close.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "hp2648.h" X X*** ./usr/src/usr.lib/libplot/hp2648/cont.c.old Wed Feb 18 04:10:27 1987 X--- ./usr/src/usr.lib/libplot/hp2648/cont.c Mon May 11 13:50:41 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)cont.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "hp2648.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cont.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "hp2648.h" X X*** ./usr/src/usr.lib/libplot/hp2648/dot.c.old Wed Feb 18 04:10:27 1987 X--- ./usr/src/usr.lib/libplot/hp2648/dot.c Mon May 11 13:50:41 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)dot.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X dot(){ X } X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dot.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X dot(){ X } X*** ./usr/src/usr.lib/libplot/hp2648/erase.c.old Wed Feb 18 04:10:27 1987 X--- ./usr/src/usr.lib/libplot/hp2648/erase.c Mon May 11 13:50:41 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)erase.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "hp2648.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)erase.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "hp2648.h" X X*** ./usr/src/usr.lib/libplot/hp2648/label.c.old Wed Feb 18 04:10:27 1987 X--- ./usr/src/usr.lib/libplot/hp2648/label.c Mon May 11 13:50:41 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)label.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "hp2648.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)label.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "hp2648.h" X X*** ./usr/src/usr.lib/libplot/hp2648/line.c.old Wed Feb 18 04:10:27 1987 X--- ./usr/src/usr.lib/libplot/hp2648/line.c Mon May 11 13:50:41 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)line.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "hp2648.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)line.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "hp2648.h" X X*** ./usr/src/usr.lib/libplot/hp2648/linemod.c.old Wed Feb 18 04:10:27 1987 X--- ./usr/src/usr.lib/libplot/hp2648/linemod.c Mon May 11 13:50:41 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)linemod.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "hp2648.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)linemod.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "hp2648.h" X X*** ./usr/src/usr.lib/libplot/hp2648/move.c.old Wed Feb 18 04:10:28 1987 X--- ./usr/src/usr.lib/libplot/hp2648/move.c Mon May 11 13:50:41 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)move.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "hp2648.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)move.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "hp2648.h" X X*** ./usr/src/usr.lib/libplot/hp2648/open.c.old Wed Feb 18 04:10:28 1987 X--- ./usr/src/usr.lib/libplot/hp2648/open.c Mon May 11 13:50:41 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)open.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include X #include "hp2648.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)open.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include X #include "hp2648.h" X*** ./usr/src/usr.lib/libplot/hp2648/point.c.old Wed Feb 18 04:10:28 1987 X--- ./usr/src/usr.lib/libplot/hp2648/point.c Mon May 11 13:50:41 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)point.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "hp2648.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)point.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "hp2648.h" X X*** ./usr/src/usr.lib/libplot/hp2648/space.c.old Wed Feb 18 04:10:28 1987 X--- ./usr/src/usr.lib/libplot/hp2648/space.c Mon May 11 13:50:42 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)space.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "hp2648.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)space.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "hp2648.h" X X*** ./usr/src/usr.lib/libplot/hp2648/subr.c.old Wed Feb 18 04:10:28 1987 X--- ./usr/src/usr.lib/libplot/hp2648/subr.c Mon May 11 13:50:42 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)subr.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include X #include "hp2648.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)subr.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include X #include "hp2648.h" X*** ./usr/src/usr.lib/libplot/vt0/arc.c.old Wed Feb 18 04:10:28 1987 X--- ./usr/src/usr.lib/libplot/vt0/arc.c Mon May 11 14:22:49 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)arc.c 4.1 (Berkeley) 6/27/83"; X #endif X X extern vti; X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)arc.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X extern vti; X*** ./usr/src/usr.lib/libplot/vt0/box.c.old Wed Feb 18 04:10:29 1987 X--- ./usr/src/usr.lib/libplot/vt0/box.c Mon May 11 14:22:49 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)box.c 4.1 (Berkeley) 6/27/83"; X #endif X X box(x0, y0, x1, y1) X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)box.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X box(x0, y0, x1, y1) X*** ./usr/src/usr.lib/libplot/vt0/circle.c.old Wed Feb 18 04:10:29 1987 X--- ./usr/src/usr.lib/libplot/vt0/circle.c Mon May 11 14:22:50 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)circle.c 4.1 (Berkeley) 6/27/83"; X #endif X X extern vti; X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)circle.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X extern vti; X*** ./usr/src/usr.lib/libplot/vt0/close.c.old Wed Feb 18 04:10:29 1987 X--- ./usr/src/usr.lib/libplot/vt0/close.c Mon May 11 14:22:50 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)close.c 4.1 (Berkeley) 6/27/83"; X #endif X X extern vti; X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)close.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X extern vti; X*** ./usr/src/usr.lib/libplot/vt0/dot.c.old Wed Feb 18 04:10:29 1987 X--- ./usr/src/usr.lib/libplot/vt0/dot.c Mon May 11 14:22:50 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)dot.c 4.1 (Berkeley) 6/27/83"; X #endif X X extern vti; X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dot.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X extern vti; X*** ./usr/src/usr.lib/libplot/vt0/erase.c.old Wed Feb 18 04:10:29 1987 X--- ./usr/src/usr.lib/libplot/vt0/erase.c Mon May 11 14:22:50 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)erase.c 4.1 (Berkeley) 6/27/83"; X #endif X X extern vti; X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)erase.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X extern vti; X*** ./usr/src/usr.lib/libplot/vt0/frame.c.old Wed Feb 18 04:10:29 1987 X--- ./usr/src/usr.lib/libplot/vt0/frame.c Mon May 11 14:22:50 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)frame.c 4.1 (Berkeley) 6/27/83"; X #endif X X frame(n) X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)frame.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X frame(n) X*** ./usr/src/usr.lib/libplot/vt0/label.c.old Wed Feb 18 04:10:29 1987 X--- ./usr/src/usr.lib/libplot/vt0/label.c Mon May 11 14:22:50 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)label.c 4.1 (Berkeley) 6/27/83"; X #endif X X extern vti; X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)label.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X extern vti; X*** ./usr/src/usr.lib/libplot/vt0/line.c.old Wed Feb 18 04:10:29 1987 X--- ./usr/src/usr.lib/libplot/vt0/line.c Mon May 11 14:22:50 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)line.c 4.1 (Berkeley) 6/27/83"; X #endif X X extern vti; X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)line.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X extern vti; X*** ./usr/src/usr.lib/libplot/vt0/linmod.c.old Wed Feb 18 04:10:30 1987 X--- ./usr/src/usr.lib/libplot/vt0/linmod.c Mon May 11 14:22:50 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)linmod.c 4.1 (Berkeley) 6/27/83"; X #endif X X linemod(s) X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)linmod.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X linemod(s) X*** ./usr/src/usr.lib/libplot/vt0/move.c.old Wed Feb 18 04:10:30 1987 X--- ./usr/src/usr.lib/libplot/vt0/move.c Mon May 11 14:22:50 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)move.c 4.1 (Berkeley) 6/27/83"; X #endif X X extern vti; X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)move.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X extern vti; X*** ./usr/src/usr.lib/libplot/vt0/open.c.old Wed Feb 18 04:10:29 1987 X--- ./usr/src/usr.lib/libplot/vt0/open.c Mon May 11 14:22:50 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)open.c 4.2 (Berkeley) 11/10/83"; X #endif X X int xnow; X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)open.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X int xnow; X*** ./usr/src/usr.lib/libplot/vt0/point.c.old Wed Feb 18 04:10:30 1987 X--- ./usr/src/usr.lib/libplot/vt0/point.c Mon May 11 14:22:50 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)point.c 4.1 (Berkeley) 6/27/83"; X #endif X X extern vti; X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)point.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X extern vti; X*** ./usr/src/usr.lib/libplot/vt0/space.c.old Wed Feb 18 04:10:29 1987 X--- ./usr/src/usr.lib/libplot/vt0/space.c Mon May 11 14:22:57 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)space.c 4.2 (Berkeley) 11/10/83"; X #endif X X extern float boty; X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)space.c 4.3 (2.11BSD) 2026/5/11"; X #endif X X extern float boty; X*** ./usr/src/usr.lib/libplot/vt0/subr.c.old Wed Feb 18 04:10:30 1987 X--- ./usr/src/usr.lib/libplot/vt0/subr.c Mon May 11 14:22:50 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char sccsid[] = "@(#)subr.c 4.1 (Berkeley) 6/27/83"; X #endif X X extern float obotx; X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)subr.c 4.2 (2.11BSD) 2026/5/11"; X #endif X X extern float obotx; X*** ./usr/src/usr.lib/libplot/hp7221/arc.c.old Wed Feb 18 04:10:30 1987 X--- ./usr/src/usr.lib/libplot/hp7221/arc.c Mon May 11 13:55:00 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)arc.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "hp7221.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)arc.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "hp7221.h" X X*** ./usr/src/usr.lib/libplot/hp7221/box.c.old Wed Feb 18 04:10:30 1987 X--- ./usr/src/usr.lib/libplot/hp7221/box.c Mon May 11 13:55:00 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)box.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X box(x0, y0, x1, y1) X { X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)box.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X box(x0, y0, x1, y1) X { X*** ./usr/src/usr.lib/libplot/hp7221/circle.c.old Wed Feb 18 04:10:31 1987 X--- ./usr/src/usr.lib/libplot/hp7221/circle.c Mon May 11 13:55:00 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)circle.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "hp7221.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)circle.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "hp7221.h" X X*** ./usr/src/usr.lib/libplot/hp7221/close.c.old Wed Feb 18 04:10:31 1987 X--- ./usr/src/usr.lib/libplot/hp7221/close.c Mon Sep 21 21:11:59 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)close.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include X #include "hp7221.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)close.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include X #include "hp7221.h" X*** ./usr/src/usr.lib/libplot/hp7221/cont.c.old Wed Feb 18 04:10:31 1987 X--- ./usr/src/usr.lib/libplot/hp7221/cont.c Mon May 11 13:55:00 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)cont.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "hp7221.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cont.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "hp7221.h" X X*** ./usr/src/usr.lib/libplot/hp7221/dot.c.old Wed Feb 18 04:10:31 1987 X--- ./usr/src/usr.lib/libplot/hp7221/dot.c Mon May 11 13:55:00 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)dot.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X dot(){ X } X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dot.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X dot(){ X } X*** ./usr/src/usr.lib/libplot/hp7221/erase.c.old Wed Feb 18 04:10:31 1987 X--- ./usr/src/usr.lib/libplot/hp7221/erase.c Mon May 11 13:55:00 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)erase.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X erase(){ X } X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)erase.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X erase(){ X } X*** ./usr/src/usr.lib/libplot/hp7221/label.c.old Wed Feb 18 04:10:31 1987 X--- ./usr/src/usr.lib/libplot/hp7221/label.c Mon May 11 13:55:00 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)label.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "hp7221.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)label.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "hp7221.h" X X*** ./usr/src/usr.lib/libplot/hp7221/line.c.old Wed Feb 18 04:10:31 1987 X--- ./usr/src/usr.lib/libplot/hp7221/line.c Mon May 11 13:55:00 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)line.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "hp7221.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)line.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "hp7221.h" X X*** ./usr/src/usr.lib/libplot/hp7221/linemod.c.old Wed Feb 18 04:10:31 1987 X--- ./usr/src/usr.lib/libplot/hp7221/linemod.c Mon May 11 13:55:00 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)linemod.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "hp7221.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)linemod.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "hp7221.h" X X*** ./usr/src/usr.lib/libplot/hp7221/move.c.old Wed Feb 18 04:10:32 1987 X--- ./usr/src/usr.lib/libplot/hp7221/move.c Mon May 11 13:55:00 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)move.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "hp7221.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)move.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "hp7221.h" X X*** ./usr/src/usr.lib/libplot/hp7221/open.c.old Wed Feb 18 04:10:32 1987 X--- ./usr/src/usr.lib/libplot/hp7221/open.c Mon Sep 21 17:06:31 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)open.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X /* X * Displays plot files on an HP7221 plotter. X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)open.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * Displays plot files on an HP7221 plotter. X*************** X*** 27,33 **** X X openpl() X { X! int closepl(); X X /* catch interupts */ X signal(SIGINT, closepl); X--- 27,33 ---- X X openpl() X { X! sig_t closepl; X X /* catch interupts */ X signal(SIGINT, closepl); X*** ./usr/src/usr.lib/libplot/hp7221/point.c.old Wed Feb 18 04:10:32 1987 X--- ./usr/src/usr.lib/libplot/hp7221/point.c Mon May 11 13:55:01 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)point.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "hp7221.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)point.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "hp7221.h" X X*** ./usr/src/usr.lib/libplot/hp7221/space.c.old Wed Feb 18 04:10:32 1987 X--- ./usr/src/usr.lib/libplot/hp7221/space.c Mon May 11 13:55:01 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)space.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "hp7221.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)space.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "hp7221.h" X X*** ./usr/src/usr.lib/libplot/hp7221/subr.c.old Wed Feb 18 04:10:32 1987 X--- ./usr/src/usr.lib/libplot/hp7221/subr.c Mon May 11 13:55:01 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)subr.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "hp7221.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)subr.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "hp7221.h" X X*** ./usr/src/usr.lib/libplot/dumb/arc.c.old Wed Feb 18 04:10:32 1987 X--- ./usr/src/usr.lib/libplot/dumb/arc.c Mon May 11 13:42:32 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)arc.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "dumb.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)arc.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "dumb.h" X X*** ./usr/src/usr.lib/libplot/dumb/box.c.old Wed Feb 18 04:10:32 1987 X--- ./usr/src/usr.lib/libplot/dumb/box.c Mon May 11 13:42:32 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)box.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X box(x0, y0, x1, y1) X { X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)box.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X box(x0, y0, x1, y1) X { X*** ./usr/src/usr.lib/libplot/dumb/circle.c.old Wed Feb 18 04:10:33 1987 X--- ./usr/src/usr.lib/libplot/dumb/circle.c Mon May 11 13:42:32 2026 X*************** X*** 4,11 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)circle.c 5.1 (Berkeley) 5/7/85"; X #endif X X circle(){ X--- 4,11 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)circle.c 5.2 (2.11BSD) 2026/5/11"; X #endif X X circle(){ X*** ./usr/src/usr.lib/libplot/dumb/close.c.old Wed Feb 18 04:10:33 1987 X--- ./usr/src/usr.lib/libplot/dumb/close.c Mon Sep 21 21:10:42 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)close.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include X #include "dumb.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)close.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include X #include "dumb.h" X*** ./usr/src/usr.lib/libplot/dumb/cont.c.old Wed Feb 18 04:10:33 1987 X--- ./usr/src/usr.lib/libplot/dumb/cont.c Mon May 11 13:42:32 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)cont.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "dumb.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cont.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "dumb.h" X X*** ./usr/src/usr.lib/libplot/dumb/dot.c.old Wed Feb 18 04:10:33 1987 X--- ./usr/src/usr.lib/libplot/dumb/dot.c Mon May 11 13:42:32 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)dot.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X dot(){ X } X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dot.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X dot(){ X } X*** ./usr/src/usr.lib/libplot/dumb/erase.c.old Wed Feb 18 04:10:33 1987 X--- ./usr/src/usr.lib/libplot/dumb/erase.c Mon May 11 13:42:32 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)erase.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "dumb.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)erase.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "dumb.h" X X*** ./usr/src/usr.lib/libplot/dumb/label.c.old Wed Feb 18 04:10:33 1987 X--- ./usr/src/usr.lib/libplot/dumb/label.c Mon May 11 13:42:32 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)label.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "dumb.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)label.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "dumb.h" X X*** ./usr/src/usr.lib/libplot/dumb/line.c.old Wed Feb 18 04:10:33 1987 X--- ./usr/src/usr.lib/libplot/dumb/line.c Mon May 11 13:42:32 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)line.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "dumb.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)line.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "dumb.h" X X*** ./usr/src/usr.lib/libplot/dumb/linemod.c.old Wed Feb 18 04:10:33 1987 X--- ./usr/src/usr.lib/libplot/dumb/linemod.c Mon May 11 13:42:32 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)linemod.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X linemod(s) X char *s; X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)linemod.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X linemod(s) X char *s; X*** ./usr/src/usr.lib/libplot/dumb/move.c.old Wed Feb 18 04:10:33 1987 X--- ./usr/src/usr.lib/libplot/dumb/move.c Mon May 11 13:42:32 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)move.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "dumb.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)move.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "dumb.h" X X*** ./usr/src/usr.lib/libplot/dumb/open.c.old Wed Feb 18 04:10:34 1987 X--- ./usr/src/usr.lib/libplot/dumb/open.c Mon Sep 21 17:04:32 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)open.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X /* X * This accepts plot file formats and produces the appropriate plots X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)open.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * This accepts plot file formats and produces the appropriate plots X*************** X*** 18,23 **** X--- 18,24 ---- X X #include X #include "dumb.h" X+ #include X X int minX, rangeX; /* min and range of x */ X int minY, rangeY; /* min and range of y */ X*************** X*** 29,37 **** X X openpl() X { X! int closepl(); X int i, j; X! char *term, *getenv(); X char bp[1024]; X X term = getenv("TERM"); X--- 30,38 ---- X X openpl() X { X! sig_t closepl; X int i, j; X! char *term; X char bp[1024]; X X term = getenv("TERM"); X*** ./usr/src/usr.lib/libplot/dumb/point.c.old Wed Feb 18 04:10:34 1987 X--- ./usr/src/usr.lib/libplot/dumb/point.c Mon May 11 13:42:33 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)point.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "dumb.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)point.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "dumb.h" X X*** ./usr/src/usr.lib/libplot/dumb/space.c.old Wed Feb 18 04:10:34 1987 X--- ./usr/src/usr.lib/libplot/dumb/space.c Mon May 11 13:42:33 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)space.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "dumb.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)space.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "dumb.h" X X*** ./usr/src/usr.lib/libplot/dumb/subr.c.old Wed Feb 18 04:10:34 1987 X--- ./usr/src/usr.lib/libplot/dumb/subr.c Mon May 11 13:42:33 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)subr.c 5.1 (Berkeley) 5/7/85"; X! #endif not lint X X #include "dumb.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)subr.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "dumb.h" X X*** ./usr/src/usr.lib/libplot/bitgraph/arc.c.old Tue Jan 11 02:03:56 1994 X--- ./usr/src/usr.lib/libplot/bitgraph/arc.c Mon May 11 13:39:34 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)arc.c 5.2.1 (2.11BSD GTE) 1/1/94"; X! #endif not lint X X X #include "bg.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)arc.c 5.2.2 (2.11BSD) 2026/5/11"; X! #endif X X X #include "bg.h" X*** ./usr/src/usr.lib/libplot/bitgraph/box.c.old Wed Feb 18 04:10:34 1987 X--- ./usr/src/usr.lib/libplot/bitgraph/box.c Mon May 11 13:39:10 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)box.c 5.2 (Berkeley) 4/30/85"; X! #endif not lint X X X box(x0, y0, x1, y1) X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)box.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X X box(x0, y0, x1, y1) X*** ./usr/src/usr.lib/libplot/bitgraph/circle.c.old Wed Feb 18 04:10:35 1987 X--- ./usr/src/usr.lib/libplot/bitgraph/circle.c Mon May 11 13:39:10 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)circle.c 5.2 (Berkeley) 4/30/85"; X! #endif not lint X X X circle (xc,yc,r) X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)circle.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X X circle (xc,yc,r) X*** ./usr/src/usr.lib/libplot/bitgraph/close.c.old Wed Feb 18 04:10:35 1987 X--- ./usr/src/usr.lib/libplot/bitgraph/close.c Mon Sep 21 21:09:42 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)close.c 5.2 (Berkeley) 4/30/85"; X! #endif not lint X X X #include X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)close.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X X #include X*** ./usr/src/usr.lib/libplot/bitgraph/cont.c.old Wed Feb 18 04:10:35 1987 X--- ./usr/src/usr.lib/libplot/bitgraph/cont.c Mon May 11 13:39:10 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)cont.c 5.2 (Berkeley) 4/30/85"; X! #endif not lint X X X #include "bg.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cont.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X X #include "bg.h" X*** ./usr/src/usr.lib/libplot/bitgraph/dot.c.old Sat Jan 16 16:48:20 1988 X--- ./usr/src/usr.lib/libplot/bitgraph/dot.c Mon May 11 13:39:10 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)dot.c 5.2 (Berkeley) 4/30/85"; X! #endif not lint X X X dot(){ X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dot.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X X dot(){ X*** ./usr/src/usr.lib/libplot/bitgraph/erase.c.old Wed Feb 18 04:10:35 1987 X--- ./usr/src/usr.lib/libplot/bitgraph/erase.c Mon May 11 13:39:10 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)erase.c 5.2 (Berkeley) 4/30/85"; X! #endif not lint X X X #include "bg.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)erase.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X X #include "bg.h" X*** ./usr/src/usr.lib/libplot/bitgraph/label.c.old Wed Feb 18 04:10:35 1987 X--- ./usr/src/usr.lib/libplot/bitgraph/label.c Mon May 11 13:39:10 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)label.c 5.2 (Berkeley) 4/30/85"; X! #endif not lint X X X label(s) X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)label.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X X label(s) X*** ./usr/src/usr.lib/libplot/bitgraph/line.c.old Wed Feb 18 04:10:35 1987 X--- ./usr/src/usr.lib/libplot/bitgraph/line.c Mon May 11 13:39:11 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)line.c 5.2 (Berkeley) 4/30/85"; X! #endif not lint X X X #include "bg.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)line.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X X #include "bg.h" X*** ./usr/src/usr.lib/libplot/bitgraph/linemod.c.old Wed Feb 18 04:10:35 1987 X--- ./usr/src/usr.lib/libplot/bitgraph/linemod.c Mon May 11 13:39:11 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)linemod.c 5.2 (Berkeley) 4/30/85"; X! #endif not lint X X X linemod(){ X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)linemod.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X X linemod(){ X*** ./usr/src/usr.lib/libplot/bitgraph/move.c.old Wed Feb 18 04:10:36 1987 X--- ./usr/src/usr.lib/libplot/bitgraph/move.c Mon May 11 13:39:11 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)move.c 5.2 (Berkeley) 4/30/85"; X! #endif not lint X X X #include "bg.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)move.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X X #include "bg.h" X*** ./usr/src/usr.lib/libplot/bitgraph/open.c.old Wed Feb 18 04:10:36 1987 X--- ./usr/src/usr.lib/libplot/bitgraph/open.c Mon Sep 21 17:02:35 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)open.c 5.2 (Berkeley) 4/30/85"; X! #endif not lint X X X /* X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)open.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X X /* X*************** X*** 24,30 **** X X openpl() X { X! int closepl(); X X /* catch interupts */ X signal(SIGINT, closepl); X--- 24,30 ---- X X openpl() X { X! sig_t closepl; X X /* catch interupts */ X signal(SIGINT, closepl); X*** ./usr/src/usr.lib/libplot/bitgraph/point.c.old Wed Feb 18 04:10:36 1987 X--- ./usr/src/usr.lib/libplot/bitgraph/point.c Mon May 11 13:39:11 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)point.c 5.2 (Berkeley) 4/30/85"; X! #endif not lint X X X point(xi, yi) X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)point.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X X point(xi, yi) X*** ./usr/src/usr.lib/libplot/bitgraph/space.c.old Wed Feb 18 04:10:36 1987 X--- ./usr/src/usr.lib/libplot/bitgraph/space.c Mon May 11 13:39:11 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)space.c 5.2 (Berkeley) 4/30/85"; X! #endif not lint X X X #include "bg.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)space.c 5.3 (2.11BSD) 2026/5/11"; X! #endif X X X #include "bg.h" X*** ./usr/src/usr.lib/libplot/imagen/arc.c.old Wed Feb 18 04:10:37 1987 X--- ./usr/src/usr.lib/libplot/imagen/arc.c Mon May 11 14:01:39 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)arc.c 5.1 (Berkeley) 9/21/85"; X! #endif not lint X X int del = 20; X step(d){ X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)arc.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X int del = 20; X step(d){ X*** ./usr/src/usr.lib/libplot/imagen/box.c.old Wed Feb 18 04:10:37 1987 X--- ./usr/src/usr.lib/libplot/imagen/box.c Mon May 11 14:01:39 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)box.c 5.1 (Berkeley) 9/21/85"; X! #endif not lint X X box(x0, y0, x1, y1) X { X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)box.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X box(x0, y0, x1, y1) X { X*** ./usr/src/usr.lib/libplot/imagen/charset.c.old Wed Feb 18 04:10:37 1987 X--- ./usr/src/usr.lib/libplot/imagen/charset.c Mon May 11 14:01:39 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)charset.c 1.1 (Berkeley) 9/21/85"; X! #endif not lint X X #include "imp.h" X char *imP_charset = "cour07"; X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)charset.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "imp.h" X char *imP_charset = "cour07"; X*** ./usr/src/usr.lib/libplot/imagen/circle.c.old Wed Feb 18 04:10:37 1987 X--- ./usr/src/usr.lib/libplot/imagen/circle.c Mon May 11 14:01:39 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)circle.c 5.1 (Berkeley) 9/21/85"; X! #endif not lint X X circle(x,y,r){ X arc(x,y,x+r,y,x+r,y); X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)circle.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X circle(x,y,r){ X arc(x,y,x+r,y,x+r,y); X*** ./usr/src/usr.lib/libplot/imagen/close.c.old Wed Feb 18 04:10:37 1987 X--- ./usr/src/usr.lib/libplot/imagen/close.c Mon May 11 14:01:40 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)close.c 5.1 (Berkeley) 9/21/85"; X! #endif not lint X X #include "imp.h" X #include "imPcodes.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)close.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "imp.h" X #include "imPcodes.h" X*** ./usr/src/usr.lib/libplot/imagen/cont.c.old Wed Feb 18 04:10:37 1987 X--- ./usr/src/usr.lib/libplot/imagen/cont.c Mon May 11 14:01:40 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)cont.c 5.1 (Berkeley) 9/21/85"; X! #endif not lint X X #include X #include "imp.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cont.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include X #include "imp.h" X*** ./usr/src/usr.lib/libplot/imagen/dot.c.old Wed Feb 18 04:10:37 1987 X--- ./usr/src/usr.lib/libplot/imagen/dot.c Mon May 11 14:01:40 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)dot.c 5.1 (Berkeley) 9/21/85"; X! #endif not lint X X dot(){ X } X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dot.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X dot(){ X } X*** ./usr/src/usr.lib/libplot/imagen/erase.c.old Wed Feb 18 04:10:38 1987 X--- ./usr/src/usr.lib/libplot/imagen/erase.c Mon May 11 14:01:40 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)erase.c 5.1 (Berkeley) 9/21/85"; X! #endif not lint X X #include "imPcodes.h" X #include "imp.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)erase.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "imPcodes.h" X #include "imp.h" X*** ./usr/src/usr.lib/libplot/imagen/label.c.old Wed Feb 18 04:10:38 1987 X--- ./usr/src/usr.lib/libplot/imagen/label.c Mon May 11 14:01:40 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)label.c 5.1 (Berkeley) 9/21/85"; X! #endif not lint X X #include "imPcodes.h" X #include "imp.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)label.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "imPcodes.h" X #include "imp.h" X*** ./usr/src/usr.lib/libplot/imagen/line.c.old Wed Feb 18 04:10:36 1987 X--- ./usr/src/usr.lib/libplot/imagen/line.c Mon May 11 14:01:40 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)line.c 5.2 (Berkeley) 9/21/85"; X! #endif not lint X X #include "imp.h" X #include "imPcodes.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)line.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "imp.h" X #include "imPcodes.h" X*** ./usr/src/usr.lib/libplot/imagen/linemod.c.old Wed Feb 18 04:10:37 1987 X--- ./usr/src/usr.lib/libplot/imagen/linemod.c Mon May 11 14:01:40 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)linemod.c 5.3 (Berkeley) 9/21/85"; X! #endif not lint X X #include "imp.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)linemod.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "imp.h" X X*** ./usr/src/usr.lib/libplot/imagen/move.c.old Wed Feb 18 04:10:38 1987 X--- ./usr/src/usr.lib/libplot/imagen/move.c Mon May 11 14:01:40 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)move.c 5.1 (Berkeley) 9/21/85"; X! #endif not lint X X #include "imp.h" X move(xi,yi){ X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)move.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "imp.h" X move(xi,yi){ X*** ./usr/src/usr.lib/libplot/imagen/open.c.old Wed Feb 18 04:10:37 1987 X--- ./usr/src/usr.lib/libplot/imagen/open.c Mon May 11 14:01:40 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)open.c 5.2 (Berkeley) 9/21/85"; X! #endif not lint X X #include "imPcodes.h" X #include "imp.h" X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)open.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "imPcodes.h" X #include "imp.h" X*** ./usr/src/usr.lib/libplot/imagen/point.c.old Wed Feb 18 04:10:38 1987 X--- ./usr/src/usr.lib/libplot/imagen/point.c Mon May 11 14:01:40 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)point.c 5.1 (Berkeley) 9/21/85"; X! #endif not lint X X point(xi,yi){ X line(xi,yi,xi,yi); X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)point.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X point(xi,yi){ X line(xi,yi,xi,yi); X*** ./usr/src/usr.lib/libplot/imagen/scale.c.old Wed Feb 18 04:10:38 1987 X--- ./usr/src/usr.lib/libplot/imagen/scale.c Mon May 11 14:01:40 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)scale.c 5.1 (Berkeley) 9/21/85"; X! #endif not lint X X extern float scalex; X extern float scaley; X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)scale.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X extern float scalex; X extern float scaley; X*** ./usr/src/usr.lib/libplot/imagen/space.c.old Wed Feb 18 04:10:37 1987 X--- ./usr/src/usr.lib/libplot/imagen/space.c Mon May 11 14:01:40 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)space.c 5.2 (Berkeley) 9/21/85"; X! #endif not lint X X extern float botx; X extern float boty; X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)space.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X extern float botx; X extern float boty; X*** ./usr/src/usr.lib/libident/id_query.c.old Thu Nov 23 17:35:01 1995 X--- ./usr/src/usr.lib/libident/id_query.c Mon Sep 21 21:08:44 2026 X*************** X*** 1,13 **** X /* X! ** id_query.c Transmit a query to an IDENT server X! ** X! ** Author: Peter Eriksson X */ X X- #ifdef NeXT3 X- # include X- #endif X- X #include X #include X #include X--- 1,11 ---- X /* X! * @(#)id_query.c 2.0 (2.11BSD) 2026/9/21 X! * X! * id_query.c Transmit a query to an IDENT server X! * X! * Author: Peter Eriksson X */ X X #include X #include X #include X*************** X*** 22,37 **** X #include X #include X X- #ifdef _AIX X- # include X- #endif X- X- #ifdef _AIX X- # include X- #endif X- #ifdef VMS X- # include /* for fd_set */ X- #endif X #define IN_LIBIDENT_SRC X #include "ident.h" X X--- 20,25 ---- X*************** X*** 41,51 **** X int, fport, X struct timeval *, timeout) X { X! #ifdef SIGRETURNTYPE X! SIGRETURNTYPE (*old_sig)(); X! #else X! void (*old_sig) __P((int)); X! #endif X int res; X char buf[80]; X fd_set ws; X--- 29,35 ---- X int, fport, X struct timeval *, timeout) X { X! sig_t old_sig; X int res; X char buf[80]; X fd_set ws; X*************** X*** 57,67 **** X FD_ZERO(&ws); X FD_SET(id->fd, &ws); X X- #ifdef __hpux X- if ((res = select(FD_SETSIZE, (int *)0, (int *)&ws, (int *)0, timeout)) < 0) X- #else X if ((res = select(FD_SETSIZE, (fd_set *)0, &ws, (fd_set *)0, timeout)) < 0) X- #endif X return -1; X X if (res == 0) X--- 41,47 ---- X*** ./usr/src/usr.lib/lib2648/agoto.c.old Sat Feb 21 21:27:24 1987 X--- ./usr/src/usr.lib/lib2648/agoto.c Mon May 11 13:14:51 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)agoto.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X /* X * position the alphanumeric cursor to (x, y). X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)agoto.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * position the alphanumeric cursor to (x, y). X*** ./usr/src/usr.lib/lib2648/aminmax.c.old Sat Feb 21 21:27:24 1987 X--- ./usr/src/usr.lib/lib2648/aminmax.c Mon May 11 13:14:52 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)aminmax.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X /* X * aminmax: find the 4 edges of the glyph within a window. X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)aminmax.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * aminmax: find the 4 edges of the glyph within a window. X*** ./usr/src/usr.lib/lib2648/aon.c.old Sat Feb 21 21:27:25 1987 X--- ./usr/src/usr.lib/lib2648/aon.c Mon May 11 13:14:52 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)aon.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X #include "2648.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)aon.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "2648.h" X X*** ./usr/src/usr.lib/lib2648/areaclear.c.old Sat Feb 21 21:27:25 1987 X--- ./usr/src/usr.lib/lib2648/areaclear.c Mon May 11 13:14:52 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)areaclear.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X #include "2648.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)areaclear.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "2648.h" X X*** ./usr/src/usr.lib/lib2648/beep.c.old Sat Feb 21 21:27:25 1987 X--- ./usr/src/usr.lib/lib2648/beep.c Mon May 11 13:14:52 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)beep.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X #include "2648.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)beep.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "2648.h" X X*** ./usr/src/usr.lib/lib2648/bitcopy.c.old Sat Feb 21 21:27:25 1987 X--- ./usr/src/usr.lib/lib2648/bitcopy.c Mon May 11 13:14:52 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)bitcopy.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X /* X * Copy from msrc to mdest. X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)bitcopy.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * Copy from msrc to mdest. X*** ./usr/src/usr.lib/lib2648/cleara.c.old Sat Feb 21 21:27:25 1987 X--- ./usr/src/usr.lib/lib2648/cleara.c Mon May 11 13:14:52 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)cleara.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X #include "2648.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cleara.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "2648.h" X X*** ./usr/src/usr.lib/lib2648/clearg.c.old Sat Feb 21 21:27:25 1987 X--- ./usr/src/usr.lib/lib2648/clearg.c Mon May 11 13:14:52 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)clearg.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X #include "2648.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)clearg.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "2648.h" X X*** ./usr/src/usr.lib/lib2648/curon.c.old Sat Feb 21 21:27:25 1987 X--- ./usr/src/usr.lib/lib2648/curon.c Mon May 11 13:14:52 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)curon.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X #include "2648.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)curon.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "2648.h" X X*** ./usr/src/usr.lib/lib2648/dispmsg.c.old Sat Feb 21 21:27:25 1987 X--- ./usr/src/usr.lib/lib2648/dispmsg.c Mon May 11 13:14:52 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)dispmsg.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X /* X * display a message, str, starting at (x, y). X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dispmsg.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * display a message, str, starting at (x, y). X*** ./usr/src/usr.lib/lib2648/draw.c.old Sat Feb 21 21:27:25 1987 X--- ./usr/src/usr.lib/lib2648/draw.c Mon May 11 13:14:52 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)draw.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X /* X * draw a line from the current place to (x,y). Such lines are X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)draw.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * draw a line from the current place to (x,y). Such lines are X*** ./usr/src/usr.lib/lib2648/drawbox.c.old Sat Feb 21 21:27:26 1987 X--- ./usr/src/usr.lib/lib2648/drawbox.c Mon May 11 13:14:52 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)drawbox.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X /* X * Draw a box around a window. The lower left corner of the box is at (r, c). X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)drawbox.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * Draw a box around a window. The lower left corner of the box is at (r, c). X*** ./usr/src/usr.lib/lib2648/dumpmat.c.old Sat Feb 21 21:27:26 1987 X--- ./usr/src/usr.lib/lib2648/dumpmat.c Mon May 11 13:14:52 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)dumpmat.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X #include "bit.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)dumpmat.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "bit.h" X X*** ./usr/src/usr.lib/lib2648/emptyrow.c.old Sat Feb 21 21:27:26 1987 X--- ./usr/src/usr.lib/lib2648/emptyrow.c Mon May 11 13:14:52 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)emptyrow.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X /* X * emptyrow: returns true if row r of m is all zeros. X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)emptyrow.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * emptyrow: returns true if row r of m is all zeros. X*** ./usr/src/usr.lib/lib2648/error.c.old Sat Feb 21 21:27:26 1987 X--- ./usr/src/usr.lib/lib2648/error.c Mon May 11 13:14:52 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)error.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X /* X * error: default handling of errors. X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)error.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * error: default handling of errors. X*** ./usr/src/usr.lib/lib2648/escseq.c.old Sat Feb 21 21:27:26 1987 X--- ./usr/src/usr.lib/lib2648/escseq.c Mon May 11 13:14:52 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)escseq.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X /* X * escseq: get us out of any escape sequence we are in the middle of X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)escseq.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * escseq: get us out of any escape sequence we are in the middle of X*** ./usr/src/usr.lib/lib2648/gdefault.c.old Sat Feb 21 21:27:26 1987 X--- ./usr/src/usr.lib/lib2648/gdefault.c Mon May 11 13:14:53 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)gdefault.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X /* X * reset terminal to default graphics state X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)gdefault.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * reset terminal to default graphics state X*** ./usr/src/usr.lib/lib2648/gon.c.old Sat Feb 21 21:27:26 1987 X--- ./usr/src/usr.lib/lib2648/gon.c Mon May 11 13:14:53 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)gon.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X #include "2648.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)gon.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "2648.h" X X*** ./usr/src/usr.lib/lib2648/kon.c.old Sat Feb 21 21:27:26 1987 X--- ./usr/src/usr.lib/lib2648/kon.c Mon May 11 13:14:53 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)kon.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X /* X * Turn on keypad, so it sends codes instead of doing them in local. X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)kon.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * Turn on keypad, so it sends codes instead of doing them in local. X*** ./usr/src/usr.lib/lib2648/line.c.old Sat Feb 21 21:27:26 1987 X--- ./usr/src/usr.lib/lib2648/line.c Mon May 11 13:14:53 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)line.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X /* X * line: draw a line from point 1 to point 2. X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)line.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * line: draw a line from point 1 to point 2. X*** ./usr/src/usr.lib/lib2648/mat.c.old Sat Feb 21 21:27:27 1987 X--- ./usr/src/usr.lib/lib2648/mat.c Mon May 11 13:14:53 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)mat.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X /* X * mat: retrieve the value in m[r, c]. X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)mat.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * mat: retrieve the value in m[r, c]. X*** ./usr/src/usr.lib/lib2648/message.c.old Sat Feb 21 21:27:27 1987 X--- ./usr/src/usr.lib/lib2648/message.c Mon May 11 13:14:53 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)message.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X /* X * message: print str on the screen in the message area. X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)message.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * message: print str on the screen in the message area. X*** ./usr/src/usr.lib/lib2648/minmax.c.old Sat Feb 21 21:27:27 1987 X--- ./usr/src/usr.lib/lib2648/minmax.c Mon May 11 13:14:53 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)minmax.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X /* X * minmax: find the 4 edges of the glyph within a window. X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)minmax.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * minmax: find the 4 edges of the glyph within a window. X*** ./usr/src/usr.lib/lib2648/motion.c.old Sat Feb 21 21:27:27 1987 X--- ./usr/src/usr.lib/lib2648/motion.c Mon May 11 13:14:53 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)motion.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X /* X * Move the pen to x, y. We assume we are already in ESCP mode. X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)motion.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * Move the pen to x, y. We assume we are already in ESCP mode. X*** ./usr/src/usr.lib/lib2648/move.c.old Sat Feb 21 21:27:27 1987 X--- ./usr/src/usr.lib/lib2648/move.c Mon May 11 13:14:53 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)move.c 5.1 (Berkeley) 4/30/85"; X! #endif not lint X X /* X * move to (x, y). Both the _pen and cursor are supposed to be moved. X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)move.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * move to (x, y). Both the _pen and cursor are supposed to be moved. X*** ./usr/src/usr.lib/lib2648/movecurs.c.old Sat Feb 21 21:27:27 1987 X--- ./usr/src/usr.lib/lib2648/movecurs.c Mon May 11 13:14:53 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)movecurs.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X #include "2648.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)movecurs.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "2648.h" X X*** ./usr/src/usr.lib/lib2648/newmat.c.old Sat Feb 21 21:27:27 1987 X--- ./usr/src/usr.lib/lib2648/newmat.c Mon May 11 13:14:53 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)newmat.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X /* X * newmat: return a brand new bitmat with the proper size. X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)newmat.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * newmat: return a brand new bitmat with the proper size. X*** ./usr/src/usr.lib/lib2648/outchar.c.old Sat Feb 21 21:27:27 1987 X--- ./usr/src/usr.lib/lib2648/outchar.c Mon May 11 13:14:53 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)outchar.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X #include "2648.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)outchar.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "2648.h" X X*** ./usr/src/usr.lib/lib2648/outstr.c.old Sat Feb 21 21:27:28 1987 X--- ./usr/src/usr.lib/lib2648/outstr.c Mon May 11 13:14:53 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)outstr.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X /* X * Low level output routines X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)outstr.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * Low level output routines X*** ./usr/src/usr.lib/lib2648/printg.c.old Sat Feb 21 21:27:28 1987 X--- ./usr/src/usr.lib/lib2648/printg.c Mon May 11 13:14:53 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)printg.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X #include "2648.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)printg.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "2648.h" X X*** ./usr/src/usr.lib/lib2648/rawchar.c.old Sat Feb 21 21:27:28 1987 X--- ./usr/src/usr.lib/lib2648/rawchar.c Mon May 11 13:14:54 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)rawchar.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X /* X * get a character from the terminal, with no line buffering. X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)rawchar.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * get a character from the terminal, with no line buffering. X*** ./usr/src/usr.lib/lib2648/rbon.c.old Sat Feb 21 21:27:28 1987 X--- ./usr/src/usr.lib/lib2648/rbon.c Mon May 11 13:14:54 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)rbon.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X #include "2648.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)rbon.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "2648.h" X X*** ./usr/src/usr.lib/lib2648/rdchar.c.old Sat Feb 21 21:27:28 1987 X--- ./usr/src/usr.lib/lib2648/rdchar.c Mon May 11 13:14:54 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)rdchar.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X /* X * rdchar: returns a readable representation of an ASCII char, using ^ notation. X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)rdchar.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * rdchar: returns a readable representation of an ASCII char, using ^ notation. X*** ./usr/src/usr.lib/lib2648/readline.c.old Sat Feb 21 21:27:28 1987 X--- ./usr/src/usr.lib/lib2648/readline.c Mon May 11 13:14:54 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)readline.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X /* X * Read a line from the keyboard in the message line. The line X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)readline.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * Read a line from the keyboard in the message line. The line X*** ./usr/src/usr.lib/lib2648/set.c.old Sat Feb 21 21:27:28 1987 X--- ./usr/src/usr.lib/lib2648/set.c Mon May 11 13:14:54 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)set.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X /* X * Routines to set line type. X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)set.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * Routines to set line type. X*** ./usr/src/usr.lib/lib2648/setmat.c.old Sat Feb 21 21:27:28 1987 X--- ./usr/src/usr.lib/lib2648/setmat.c Mon May 11 13:14:54 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)setmat.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X /* X * setmat: set the value in m[r, c] to nval. X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)setmat.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * setmat: set the value in m[r, c] to nval. X*** ./usr/src/usr.lib/lib2648/sync.c.old Sat Feb 21 21:27:28 1987 X--- ./usr/src/usr.lib/lib2648/sync.c Mon May 11 13:14:54 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)sync.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X /* X * Make the screen & screen mode look like what it's supposed to. X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)sync.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * Make the screen & screen mode look like what it's supposed to. X*** ./usr/src/usr.lib/lib2648/texton.c.old Sat Feb 21 21:27:29 1987 X--- ./usr/src/usr.lib/lib2648/texton.c Mon May 11 13:14:54 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)texton.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X #include "2648.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)texton.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "2648.h" X X*** ./usr/src/usr.lib/lib2648/ttyinit.c.old Sat Feb 21 21:27:29 1987 X--- ./usr/src/usr.lib/lib2648/ttyinit.c Mon May 11 13:14:54 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)ttyinit.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X /* X * sgtty stuff X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ttyinit.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * sgtty stuff X*** ./usr/src/usr.lib/lib2648/update.c.old Sat Feb 21 21:27:29 1987 X--- ./usr/src/usr.lib/lib2648/update.c Mon May 11 13:14:54 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)update.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X /* X * update: the key output optimization routine of the whole editor. X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)update.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * update: the key output optimization routine of the whole editor. X*** ./usr/src/usr.lib/lib2648/video.c.old Sat Feb 21 21:27:29 1987 X--- ./usr/src/usr.lib/lib2648/video.c Mon May 11 13:14:54 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)video.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X #include "2648.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)video.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "2648.h" X X*** ./usr/src/usr.lib/lib2648/zermat.c.old Sat Feb 21 21:27:29 1987 X--- ./usr/src/usr.lib/lib2648/zermat.c Mon May 11 13:14:54 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)zermat.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X /* X * zermat: set a matrix to all zeros X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)zermat.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * zermat: set a matrix to all zeros X*** ./usr/src/usr.lib/lib2648/zoomn.c.old Sat Feb 21 21:27:29 1987 X--- ./usr/src/usr.lib/lib2648/zoomn.c Mon May 11 13:14:54 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)zoomn.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X #include "2648.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)zoomn.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "2648.h" X X*** ./usr/src/usr.lib/lib2648/zoomon.c.old Sat Feb 21 21:27:29 1987 X--- ./usr/src/usr.lib/lib2648/zoomon.c Mon May 11 13:14:54 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)zoomon.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X #include "2648.h" X X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)zoomon.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X #include "2648.h" X X*** ./usr/src/usr.lib/lib2648/zoomout.c.old Sat Feb 21 21:27:29 1987 X--- ./usr/src/usr.lib/lib2648/zoomout.c Mon May 11 13:14:55 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)zoomout.c 5.1 (Berkeley) 4/26/85"; X! #endif not lint X X /* X * zoomout: zoom to level 1. X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)zoomout.c 5.2 (2.11BSD) 2026/5/11"; X! #endif X X /* X * zoomout: zoom to level 1. X*** ./usr/src/usr.lib/liby/libmai.c.old Sat Feb 21 21:27:46 1987 X--- ./usr/src/usr.lib/liby/libmai.c Sun May 10 17:09:55 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)libmai.c 5.1 (Berkeley) 8/9/85"; X! #endif not lint X X main() X { X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)libmai.c 5.2 (2.11BSD) 2026/5/10"; X! #endif X X main() X { X*** ./usr/src/usr.lib/liby/libzer.c.old Sat Feb 21 21:27:46 1987 X--- ./usr/src/usr.lib/liby/libzer.c Sun May 10 17:10:18 2026 X*************** X*** 4,14 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)libzer.c 5.1 (Berkeley) 8/9/85"; X! #endif not lint X X! # include X X yyerror(s) X char *s; X--- 4,14 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)libzer.c 5.2 (2.11BSD) 2026/5/10"; X! #endif X X! #include X X yyerror(s) X char *s; X*** ./usr/src/usr.lib/libU77/itime_.c.old Wed Feb 18 04:09:54 1987 X--- ./usr/src/usr.lib/libU77/itime_.c Tue Jul 21 20:28:25 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)itime_.c 5.1 6/7/85 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)itime_.c 5.2 (2.11BSD) 2026/7/21 X */ X X /* X*************** X*** 16,29 **** X * iarray will receive the current time; hour, min, sec. X */ X X! #include X #include X X itime_(iar) X struct { long ihr; long imin; long isec; } *iar; X { X! struct tm *localtime(), *lclt; X! long int time(), t; X X t = time(0); X lclt = localtime(&t); X--- 16,29 ---- X * iarray will receive the current time; hour, min, sec. X */ X X! #include X #include X X itime_(iar) X struct { long ihr; long imin; long isec; } *iar; X { X! struct tm *lclt; X! time_t t; X X t = time(0); X lclt = localtime(&t); X*** ./usr/src/usr.lib/libU77/idate_.c.old Wed Feb 18 04:09:54 1987 X--- ./usr/src/usr.lib/libU77/idate_.c Thu Jul 30 21:04:45 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)idate_.c 5.1 6/7/85 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)idate_.c 5.2 (2.11BSD) 2026/7/21 X */ X X /* X*************** X*** 16,31 **** X * iarray will receive the current date; day, mon, year. X */ X X! #include X #include X X idate_(iar) X struct { long iday; long imon; long iyer; } *iar; X { X! struct tm *localtime(), *lclt; X! long int time(), t; X X! t = time(0); X lclt = localtime(&t); X iar->iday = lclt->tm_mday; X iar->imon = lclt->tm_mon + 1; X--- 16,31 ---- X * iarray will receive the current date; day, mon, year. X */ X X! #include X #include X X idate_(iar) X struct { long iday; long imon; long iyer; } *iar; X { X! struct tm *lclt; X! time_t t; X X! t = time((time_t *)0); X lclt = localtime(&t); X iar->iday = lclt->tm_mday; X iar->imon = lclt->tm_mon + 1; X*** ./usr/src/usr.lib/libU77/time_.c.old Wed Feb 18 04:09:58 1987 X--- ./usr/src/usr.lib/libU77/time_.c Thu Jul 30 21:03:59 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)time_.c 5.1 6/7/85 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)time_.c 5.2 (2.11BSD) 2026/7/21 X */ X X /* X*************** X*** 16,24 **** X * i will receive the current GMT in seconds. X */ X X! long time(); X X! long time_() X { X! return(time(0)); X } X--- 16,24 ---- X * i will receive the current GMT in seconds. X */ X X! #include X X! time_t time_() X { X! return(time((time_t *)0)); X } X*** ./usr/src/usr.lib/libU77/fdate_.c.old Wed Feb 18 04:09:55 1987 X--- ./usr/src/usr.lib/libU77/fdate_.c Thu Jul 30 20:57:22 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)fdate_.c 5.1 6/7/85 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)fdate_.c 5.2 (2.11BSD) 2026/7/30 X */ X X /* X*************** X*** 18,28 **** X * No 'newline' or NULL will be included. X */ X X fdate_(s, strlen) X char *s; long strlen; X { X! char *ctime(), *c; X! long time(), t; X X t = time(0); X c = ctime(&t); X--- 18,30 ---- X * No 'newline' or NULL will be included. X */ X X+ #include X+ X fdate_(s, strlen) X char *s; long strlen; X { X! char *c; X! time_t t; X X t = time(0); X c = ctime(&t); X*** ./usr/src/usr.lib/libU77/ltime_.c.old Wed Feb 18 04:09:58 1987 X--- ./usr/src/usr.lib/libU77/ltime_.c Thu Jul 30 21:06:55 2026 X*************** X*** 3,11 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)ltime_.c 5.1 6/7/85 X */ X X /* X * return broken down time X * X--- 3,13 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)ltime_.c 5.2 (2.11BSD) 2026/7/30 X */ X X+ #include X+ X /* X * return broken down time X * X*************** X*** 18,32 **** X * (see ctime(3)) X */ X X- int *localtime(); X- X ltime_(clock, t) X! long *clock; long *t; X { X! int i; X! int *l; X X! l = localtime(clock); X for (i=0; i<9; i++) X *t++ = *l++; X } X--- 20,32 ---- X * (see ctime(3)) X */ X X ltime_(clock, t) X! time_t *clock, *t; X { X! register int i; X! register int *l; X X! l = (int *)localtime(clock); X for (i=0; i<9; i++) X *t++ = *l++; X } X*** ./usr/src/usr.lib/libU77/sleep_.c.old Wed Feb 18 04:09:55 1987 X--- ./usr/src/usr.lib/libU77/sleep_.c Sat Sep 19 13:14:41 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)sleep_.c 5.1 6/7/85 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)sleep_.c 5.2 (2.11BSD) 2026/9/19 X */ X X /* X*************** X*** 18,22 **** X sleep_(sec) X long *sec; X { X! sleep((unsigned int)*sec); X } X--- 18,22 ---- X sleep_(sec) X long *sec; X { X! sleep((int)*sec); X } X*** ./usr/src/usr.lib/libU77/alarm_.c.old Wed Feb 18 04:09:54 1987 X--- ./usr/src/usr.lib/libU77/alarm_.c Tue Sep 22 01:26:07 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)alarm_.c 5.1 6/7/85 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)alarm_.c 5.2 (2.11BSD) 2026/9/22 X */ X X /* X*************** X*** 24,30 **** X X long alarm_(sec, proc) X long *sec; X! int (* proc)(); X { X register long lt; X X--- 24,30 ---- X X long alarm_(sec, proc) X long *sec; X! sig_t proc; X { X register long lt; X X*** ./usr/src/usr.lib/libU77/system_.c.old Wed Feb 18 04:09:54 1987 X--- ./usr/src/usr.lib/libU77/system_.c Mon Sep 21 21:08:06 2026 X*************** X*** 3,9 **** X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)system_.c 5.1 6/7/85 X */ X X /* X--- 3,9 ---- X * All rights reserved. The Berkeley software License Agreement X * specifies the terms and conditions for redistribution. X * X! * @(#)system_.c 5.2 (2.11BSD) 2026/9/21 X */ X X /* X*************** X*** 18,23 **** X--- 18,25 ---- X X #include "../libI77/fiodefs.h" X #include "../libI77/f_errno.h" X+ #include X+ #include X #include X #ifndef NCARGS X #define NCARGS 256 X*************** X*** 45,59 **** X X #include X X- char *getenv(); X- char *rindex(); X- X system(s) X char *s; X { X! register int (*istat)(), (*qstat)(); X int status, pid, w; X! char *shname, *shell; X X if ((shell = getenv("SHELL")) == NULL) X shell = "/bin/sh"; X--- 47,58 ---- X X #include X X system(s) X char *s; X { X! sig_t istat, qstat; X int status, pid, w; X! register char *shname, *shell; X X if ((shell = getenv("SHELL")) == NULL) X shell = "/bin/sh"; X*** ./usr/src/usr.lib/libutil/logout.c.old Tue Sep 19 19:00:25 1989 X--- ./usr/src/usr.lib/libutil/logout.c Sat May 30 16:50:14 2026 X*************** X*** 16,28 **** X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "%W% (Berkeley) %G%"; X! #endif /* LIBC_SCCS and not lint */ X X #include X #include X #include X #include X X typedef struct utmp UTMP; X X--- 16,29 ---- X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)logout.c 5.3 (2.11BSD) 2026/5/30"; X! #endif X X #include X #include X #include X #include X+ #include X X typedef struct utmp UTMP; X X*************** X*** 32,39 **** X register int fd; X UTMP ut; X int rval; X- off_t lseek(); X- time_t time(); X X if ((fd = open(_PATH_UTMP, O_RDWR)) < 0) X return(0); X--- 33,38 ---- X*** ./usr/src/usr.lib/libutil/login.c.old Tue Sep 19 11:45:40 1989 X--- ./usr/src/usr.lib/libutil/login.c Sat May 30 16:45:50 2026 X*************** X*** 16,29 **** X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)login.c 5.2 (Berkeley) 4/18/89"; X! #endif /* LIBC_SCCS and not lint */ X X #include X #include X #include X #include X! #include "pathnames.h" X X void X login(ut) X--- 16,29 ---- X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)login.c 5.3 (2.11BSD) 2026/5/30"; X! #endif X X #include X #include X #include X #include X! #include X X void X login(ut) X*************** X*** 31,37 **** X { X register int fd; X int tty; X- off_t lseek(); X X tty = ttyslot(); X if (tty > 0 && (fd = open(_PATH_UTMP, O_WRONLY, 0)) >= 0) { X--- 31,36 ---- X*** ./usr/src/usr.lib/libutil/logwtmp.c.old Tue Sep 19 11:45:50 1989 X--- ./usr/src/usr.lib/libutil/logwtmp.c Sat May 30 16:48:17 2026 X*************** X*** 16,30 **** X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)logwtmp.c 5.3 (Berkeley) 4/2/89"; X! #endif /* LIBC_SCCS and not lint */ X X #include X #include X #include X #include X #include X- #include "pathnames.h" X X logwtmp(line, name, host) X char *line, *name, *host; X--- 16,30 ---- X */ X X #if defined(LIBC_SCCS) && !defined(lint) X! static char sccsid[] = "@(#)logwtmp.c 5.4 (2.11BSD) 2026/5/30"; X! #endif X X #include X #include X #include X #include X+ #include X #include X X logwtmp(line, name, host) X char *line, *name, *host; X*************** X*** 32,39 **** X struct utmp ut; X struct stat buf; X int fd; X- time_t time(); X- char *strncpy(); X X if ((fd = open(_PATH_WTMP, O_WRONLY|O_APPEND, 0)) < 0) X return; X--- 32,37 ---- X*** ./usr/src/usr.sbin/lpr/filters/chrtab.c.old Wed Feb 18 04:10:39 1987 X--- ./usr/src/usr.sbin/lpr/filters/chrtab.c Sun May 10 14:54:17 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)chrtab.c 5.1 (Berkeley) 5/15/85"; X! #endif not lint X X char chrtab[][16] = { X 0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000, /*, sp, */ X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)chrtab.c 5.2 (2.11BSD) 2026/5/10"; X! #endif X X char chrtab[][16] = { X 0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000,0000, /*, sp, */ X*** ./usr/src/usr.sbin/lpr/filters/fcvt.c.old Wed Feb 18 04:10:39 1987 X--- ./usr/src/usr.sbin/lpr/filters/fcvt.c Sun May 10 14:54:45 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)fcvt.c 5.1 (Berkeley) 5/15/85"; X! #endif not lint X X /* X * Convert from the SAIL font format to the Unix font format. X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)fcvt.c 5.2 (2.11BSD) 2026/5/10"; X! #endif X X /* X * Convert from the SAIL font format to the Unix font format. X*** ./usr/src/usr.sbin/lpr/filters/lpf.c.old Wed Feb 18 04:10:39 1987 X--- ./usr/src/usr.sbin/lpr/filters/lpf.c Sun May 10 14:55:09 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)lpf.c 5.1 (Berkeley) 5/15/85"; X! #endif not lint X X /* X * filter which reads the output of nroff and converts lines X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)lpf.c 5.2 (2.11BSD) 2026/5/10"; X! #endif X X /* X * filter which reads the output of nroff and converts lines X*** ./usr/src/usr.sbin/lpr/filters/rotate.c.old Sat Jan 21 20:49:09 1995 X--- ./usr/src/usr.sbin/lpr/filters/rotate.c Sun May 10 14:56:27 2026 X*************** X*** 5,12 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)rotate.c 5.1.1 (2.11BSD GTE) 1/21/95"; X! #endif not lint X X /* X * Rotate a Varian/Versatec font. X--- 5,12 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)rotate.c 5.1.2 (2.11BSD) 2026/5/10"; X! #endif X X /* X * Rotate a Varian/Versatec font. X*************** X*** 16,24 **** X #include X #include X #include X X char *chp; X- char *sbrk(); X X main(argc,argv) X char **argv; X--- 16,24 ---- X #include X #include X #include X+ #include X X char *chp; X X main(argc,argv) X char **argv; X*************** X*** 26,32 **** X struct header h; X struct dispatch d[256], nd; X struct stat stb; X- off_t lseek(); X int i,size; X int beg; X char scr[2048]; X--- 26,31 ---- X*** ./usr/src/usr.sbin/lpr/filters/rotprt.c.old Sat Jan 21 20:50:25 1995 X--- ./usr/src/usr.sbin/lpr/filters/rotprt.c Sun May 10 14:57:35 2026 X*************** X*** 5,12 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)rotprt.c 5.1.1 (2.11BSD GTE) 1/21/95"; X! #endif not lint X X /* X * Print a rotated font. X--- 5,12 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)rotprt.c 5.1.2 (2.11BSD) 2026/5/10"; X! #endif X X /* X * Print a rotated font. X*************** X*** 16,24 **** X #include X #include X #include X X char *chp; X- char *sbrk(); X X main(argc,argv) X char **argv; X--- 16,24 ---- X #include X #include X #include X+ #include X X char *chp; X X main(argc,argv) X char **argv; X*************** X*** 26,32 **** X struct header h; X struct dispatch d[256]; X struct stat stb; X- off_t lseek(); X int i,size; X X argc--, argv++; X--- 26,31 ---- X*************** X*** 52,58 **** X } X X rprt(i, dp, cp) X! int i; X struct dispatch *dp; X char *cp; X { X--- 51,57 ---- X } X X rprt(i, dp, cp) X! register int i; X struct dispatch *dp; X char *cp; X { X*** ./usr/src/usr.sbin/lpr/filters/vdmp.c.old Wed Feb 18 04:10:40 1987 X--- ./usr/src/usr.sbin/lpr/filters/vdmp.c Sun May 10 14:58:00 2026 X*************** X*** 4,11 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)vdmp.c 5.1 (Berkeley) 5/15/85"; X #endif not lint X X /* X--- 4,11 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)vdmp.c 5.2 (2.11BSD) 2026/5/10"; X #endif not lint X X /* X*** ./usr/src/usr.sbin/lpr/filters/vfw.c.old Wed Feb 18 04:10:40 1987 X--- ./usr/src/usr.sbin/lpr/filters/vfw.c Sun May 10 14:58:22 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)vfw.c 5.1 (Berkeley) 5/15/85"; X! #endif not lint X X /* X * Quick hack to see the values in a troff width table. X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)vfw.c 5.2 (2.11BSD) 2026/5/10"; X! #endif X X /* X * Quick hack to see the values in a troff width table. X*** ./usr/src/usr.sbin/lpr/filters/vpf.c.old Wed Feb 18 04:10:40 1987 X--- ./usr/src/usr.sbin/lpr/filters/vpf.c Sun May 10 14:58:46 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)vpf.c 5.1 (Berkeley) 5/15/85"; X! #endif not lint X X /* X * Varian/Versatec printer filter X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)vpf.c 5.2 (2.11BSD) 2026/5/10"; X! #endif X X /* X * Varian/Versatec printer filter X*** ./usr/src/usr.sbin/lpr/filters/vpltdmp.c.old Wed Feb 18 04:10:41 1987 X--- ./usr/src/usr.sbin/lpr/filters/vpltdmp.c Sun May 10 14:59:07 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)vpltdmp.c 5.1 (Berkeley) 5/15/85"; X! #endif not lint X X /* X * Copyright (C) 1981, Regents of the University of California X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)vpltdmp.c 5.2 (2.11BSD) 2026/5/10"; X! #endif X X /* X * Copyright (C) 1981, Regents of the University of California X*** ./usr/src/usr.sbin/lpr/filters/vpsf.c.old Wed Feb 18 04:10:41 1987 X--- ./usr/src/usr.sbin/lpr/filters/vpsf.c Sun May 10 14:59:31 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)vpsf.c 5.1 (Berkeley) 5/15/85"; X! #endif not lint X X /* X * Versatec printer filter X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)vpsf.c 5.2 (2.11BSD) 2026/5/10"; X! #endif X X /* X * Versatec printer filter X*** ./usr/src/usr.sbin/lpr/filters/vwidth.c.old Wed Feb 18 04:10:41 1987 X--- ./usr/src/usr.sbin/lpr/filters/vwidth.c Sun May 10 14:59:55 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)vwidth.c 5.1 (Berkeley) 5/15/85"; X! #endif not lint X X /* X * Creates a width table for troff from a versatec font for a X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)vwidth.c 5.2 (2.11BSD) 2026/5/10"; X! #endif X X /* X * Creates a width table for troff from a versatec font for a X*** ./usr/src/usr.sbin/lpr/filters/vsort.c.old Fri Dec 26 18:42:06 2025 X--- ./usr/src/usr.sbin/lpr/filters/vsort.c Wed Aug 19 16:24:03 2026 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)vsort.c 5.2 (2.11BSD) 2025/12/26"; X #endif X X /* X--- 5,11 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)vsort.c 5.3 (2.11BSD) 2026/8/19"; X #endif X X /* X*************** X*** 14,24 **** X X #include X #include X X #define NULL 0 X X- char *calloc(); X- X FILE *in,*out; X X int skipfirst = 1; /* skip the first leading so start at top of page */ X--- 14,23 ---- X X #include X #include X+ #include X X #define NULL 0 X X FILE *in,*out; X X int skipfirst = 1; /* skip the first leading so start at top of page */ X*************** X*** 515,522 **** X oback = linep->end.back; X head = linep->nextp; X X! cfree(linep->codep); X! cfree(linep); X if(head == NULL) X tail = NULL; X else X--- 514,521 ---- X oback = linep->end.back; X head = linep->nextp; X X! free(linep->codep); X! free(linep); X if(head == NULL) X tail = NULL; X else X*** ./usr/src/usr.sbin/lpr/lpc.c.old Tue Jan 11 02:08:26 1994 X--- ./usr/src/usr.sbin/lpr/lpc.c Tue Sep 22 00:54:42 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)lpc.c 5.2.1 (2.11BSD GTE) 1/1/94"; X #endif X X /* X--- 9,15 ---- X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)lpc.c 5.2.2 (2.11BSD) 2026/1/27"; X #endif X X /* X*************** X*** 20,25 **** X--- 20,26 ---- X #include X #include X #include X+ #include X X #include "lpc.h" X X*************** X*** 29,35 **** X int margc; X char *margv[20]; X int top; X! int intr(); X struct cmd *getcmd(); X X jmp_buf toplevel; X--- 30,36 ---- X int margc; X char *margv[20]; X int top; X! void intr(); X struct cmd *getcmd(); X X jmp_buf toplevel; X*************** X*** 70,75 **** X--- 71,77 ---- X } X } X X+ void X intr() X { X if (!fromatty) X*************** X*** 86,93 **** X int top; X { X register struct cmd *c; X! extern struct cmd cmdtab[]; X! extern int help(); X X if (!top) X putchar('\n'); X--- 88,94 ---- X int top; X { X register struct cmd *c; X! register char *cp; X X if (!top) X putchar('\n'); X*************** X*** 96,103 **** X printf("lpc> "); X fflush(stdout); X } X! if (gets(cmdline) == 0) X quit(); X if (cmdline[0] == 0) X break; X makeargv(); X--- 97,107 ---- X printf("lpc> "); X fflush(stdout); X } X! if (fgets(cmdline, sizeof(cmdline), stdin) == 0) X quit(); X+ cp = index(cmdline, '\n'); X+ if (cp) *cp = '\0'; X+ X if (cmdline[0] == 0) X break; X makeargv(); X*** ./usr/src/usr.sbin/lpr/displayq.c.old Mon Dec 26 02:51:13 1988 X--- ./usr/src/usr.sbin/lpr/displayq.c Sun May 10 15:00:14 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)displayq.c 5.1 (Berkeley) 6/6/85"; X! #endif not lint X X /* X * Routines to display the state of the queue. X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)displayq.c 5.2 (2.11BSD) 2026/5/10"; X! #endif X X /* X * Routines to display the state of the queue. X*** ./usr/src/usr.sbin/lpr/lpdchar.c.old Wed Feb 18 04:10:43 1987 X--- ./usr/src/usr.sbin/lpr/lpdchar.c Sun May 10 15:00:32 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)lpdchar.c 5.1 (Berkeley) 6/6/85"; X! #endif not lint X X /* X * Character set for line printer daemon X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)lpdchar.c 5.2 (2.11BSD) 2026/5/10"; X! #endif X X /* X * Character set for line printer daemon X*** ./usr/src/usr.sbin/lpr/common.c.old Wed Feb 18 04:10:47 1987 X--- ./usr/src/usr.sbin/lpr/common.c Sun May 10 15:01:00 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)common.c 5.2 (Berkeley) 5/6/86"; X! #endif not lint X X /* X * Routines and data common to all the line printer functions. X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)common.c 5.3 (2.11BSD) 2026/5/10"; X! #endif X X /* X * Routines and data common to all the line printer functions. X*** ./usr/src/usr.sbin/lpr/lpq.c.old Wed Feb 18 04:10:47 1987 X--- ./usr/src/usr.sbin/lpr/lpq.c Sun May 10 15:01:36 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)lpq.c 5.2 (Berkeley) 11/17/85"; X! #endif not lint X X /* X * Spool Queue examination program X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)lpq.c 5.3 (2.11BSD) 2026/5/10"; X! #endif X X /* X * Spool Queue examination program X*** ./usr/src/usr.sbin/lpr/lprm.c.old Wed Feb 18 04:10:47 1987 X--- ./usr/src/usr.sbin/lpr/lprm.c Sun May 10 15:30:43 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)lprm.c 5.2 (Berkeley) 11/17/85"; X! #endif not lint X X /* X * lprm - remove the current user's spool entry X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)lprm.c 5.3 (2.11BSD) 2026/5/10"; X! #endif X X /* X * lprm - remove the current user's spool entry X*************** X*** 37,44 **** X char *person; /* name of person doing lprm */ X X static char luser[16]; /* buffer for person */ X- X- struct passwd *getpwuid(); X X main(argc, argv) X char *argv[]; X--- 35,40 ---- X*** ./usr/src/usr.sbin/lpr/pac.c.old Wed Feb 18 04:10:47 1987 X--- ./usr/src/usr.sbin/lpr/pac.c Sun May 10 15:04:13 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)pac.c 5.2 (Berkeley) 10/30/85"; X! #endif not lint X X /* X * Do Printer accounting summary. X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)pac.c 5.3 (2.11BSD) 2026/5/10"; X! #endif X X /* X * Do Printer accounting summary. X*************** X*** 23,28 **** X--- 21,29 ---- X X #include X #include "lp.local.h" X+ #include X+ #include X+ #include X X char *printer; /* printer name */ X char *acctfile; /* accounting file (input data) */ X*************** X*** 37,43 **** X int mflag = 0; /* disregard machine names */ X int pflag = 0; /* 1 if -p on cmd line */ X int price100; /* per-page cost in 100th of a cent */ X- char *index(); X int pgetnum(); X X /* X--- 38,43 ---- X*************** X*** 61,69 **** X X #define NIL ((struct hent *) 0) /* The big zero */ X X! double atof(); X! char *getenv(); X! char *pgetstr(); X X main(argc, argv) X char **argv; X--- 61,67 ---- X X #define NIL ((struct hent *) 0) /* The big zero */ X X! extern char *pgetstr(); X X main(argc, argv) X char **argv; X*** ./usr/src/usr.sbin/lpr/printcap.c.old Wed Feb 18 04:10:48 1987 X--- ./usr/src/usr.sbin/lpr/printcap.c Sun May 10 15:05:06 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)printcap.c 5.1 (Berkeley) 6/6/85"; X! #endif not lint X X #define BUFSIZ 1024 X #define MAXHOP 32 /* max number of tc= indirections */ X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)printcap.c 5.2 (2.11BSD) 2026/5/10"; X! #endif X X #define BUFSIZ 1024 X #define MAXHOP 32 /* max number of tc= indirections */ X*************** X*** 13,18 **** X--- 13,20 ---- X X #include X #include X+ #include X+ X /* X * termcap - routines for dealing with the terminal capability data base X * X*************** X*** 50,56 **** X char *tskip(); X char *tgetstr(); X char *tdecode(); X- char *getenv(); X X /* X * Similar to tgetent except it returns the next enrty instead of X--- 52,57 ---- X*** ./usr/src/usr.sbin/lpr/rmjob.c.old Wed Feb 18 04:10:48 1987 X--- ./usr/src/usr.sbin/lpr/rmjob.c Sun May 10 15:05:36 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)rmjob.c 5.1 (Berkeley) 6/6/85"; X! #endif not lint X X /* X * rmjob - remove the specified jobs from the queue. X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)rmjob.c 5.2 (2.11BSD) 2026/5/10"; X! #endif X X /* X * rmjob - remove the specified jobs from the queue. X*** ./usr/src/usr.sbin/lpr/lptest.c.old Wed Feb 18 04:10:48 1987 X--- ./usr/src/usr.sbin/lpr/lptest.c Sun May 10 15:06:16 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)lptest.c 5.1 (Berkeley) 6/6/85"; X! #endif not lint X X /* X * lptest -- line printer test program (and other devices). X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)lptest.c 5.2 (2.11BSD) 2026/5/10"; X! #endif X X /* X * lptest -- line printer test program (and other devices). X*** ./usr/src/usr.sbin/lpr/recvjob.c.old Tue Jan 11 02:09:10 1994 X--- ./usr/src/usr.sbin/lpr/recvjob.c Tue Sep 22 09:22:16 2026 X*************** X*** 5,11 **** X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)recvjob.c 5.4.1 (2.11BSD GTE) 1/1/94"; X #endif X X /* X--- 5,11 ---- X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)recvjob.c 5.4.2 (2.11BSD) 2026/9/13"; X #endif X X /* X*************** X*** 26,38 **** X int dfd; /* file system device descriptor */ X X char *find_dev(); X! long read_number(), atol(); X X recvjob() X { X struct stat stb; X char *bp = pbuf; X! int status, rcleanup(); X X /* X * Perform lookup for printer name or abbreviation X--- 26,39 ---- X int dfd; /* file system device descriptor */ X X char *find_dev(); X! long read_number(); X X recvjob() X { X struct stat stb; X char *bp = pbuf; X! int status; X! void rcleanup(); X X /* X * Perform lookup for printer name or abbreviation X*************** X*** 260,272 **** X return(1); X if (read(dfd, (char *)&fs, sizeof fs) != sizeof fs) X return(1); X- #ifdef pdp11 X spacefree = fs.fs_tfree; X- #else X- spacefree = (fs.fs_cstotal.cs_nbfree * fs.fs_frag + X- fs.fs_cstotal.cs_nffree - fs.fs_dsize * fs.fs_minfree / 100) * X- fs.fs_fsize / 1024; X- #endif X size = (size + 1023) / 1024; X if (minfree + size > spacefree) X return(0); X--- 261,267 ---- X*************** X*** 293,298 **** X--- 288,294 ---- X /* X * Remove all the files associated with the current job being transfered. X */ X+ void X rcleanup() X { X X*** ./usr/src/usr.sbin/lpr/lp.h.old Wed Feb 18 04:10:42 1987 X--- ./usr/src/usr.sbin/lpr/lp.h Sun Sep 13 22:03:20 2026 X*************** X*** 26,31 **** X--- 26,33 ---- X #include X #include X #include X+ #include X+ #include X #include "lp.local.h" X X extern int DU; /* daeomon user-id */ X*************** X*** 86,92 **** X }; X X char *pgetstr(); X- char *malloc(); X- char *getenv(); X- char *index(); X- char *rindex(); X--- 88,90 ---- X*** ./usr/src/usr.sbin/lpr/printjob.c.old Fri Dec 26 18:44:28 2025 X--- ./usr/src/usr.sbin/lpr/printjob.c Tue Sep 22 09:23:05 2026 X*************** X*** 5,11 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)printjob.c 5.2.4 (2.11BSD) 2025/12/26"; X #endif X X /* X--- 5,11 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)printjob.c 5.2.5 (2.11BSD) 2026/9/16"; X #endif X X /* X*************** X*** 65,71 **** X register int i, nitems; X long pidoff; X int count = 0; X! extern int abortpr(); X X init(); /* set up capabilities */ X (void) write(1, "", 1); /* ack that daemon is started */ X--- 65,71 ---- X register int i, nitems; X long pidoff; X int count = 0; X! extern void abortpr(); X X init(); /* set up capabilities */ X (void) write(1, "", 1); /* ack that daemon is started */ X*************** X*** 968,974 **** X X for (i = 0; i < 20; i++) { X if ((pid = fork()) < 0) { X! sleep((unsigned)(i*i)); X continue; X } X /* X--- 968,974 ---- X X for (i = 0; i < 20; i++) { X if ((pid = fork()) < 0) { X! sleep(i*i); X continue; X } X /* X*************** X*** 995,1000 **** X--- 995,1001 ---- X /* X * Kill child processes to abort current job. X */ X+ void X abortpr() X { X (void) unlink(ptmpfile); X*** ./usr/src/usr.sbin/lpr/startdaemon.c.old Sat Mar 23 00:35:57 1996 X--- ./usr/src/usr.sbin/lpr/startdaemon.c Mon Sep 21 07:06:16 2026 X*************** X*** 5,11 **** X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)startdaemon.c 5.1.2 (2.11BSD GTE) 1996/3/22"; X #endif X X /* X--- 5,11 ---- X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)startdaemon.c 5.1.3 (2.11BSD) 2026/9/21"; X #endif X X /* X*************** X*** 13,23 **** X */ X X #include X- #include X- #include X #include X #include X #include X #include "lp.local.h" X X startdaemon(printer) X--- 13,23 ---- X */ X X #include X #include X #include X #include X+ #include X+ #include X #include "lp.local.h" X X startdaemon(printer) X*** ./usr/src/usr.sbin/lpr/lpr.c.old Tue Jan 11 02:06:27 1994 X--- ./usr/src/usr.sbin/lpr/lpr.c Tue Sep 22 00:53:58 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)lpr.c 5.2.1 (2.11BSD GTE) 12/31/93"; X #endif X X /* X--- 9,15 ---- X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)lpr.c 5.2.2 (2.11BSD) 2026/9/22"; X #endif X X /* X*************** X*** 69,75 **** X char *getenv(); X char *rindex(); X char *linked(); X! int cleanup(); X X /*ARGSUSED*/ X main(argc, argv) X--- 69,75 ---- X char *getenv(); X char *rindex(); X char *linked(); X! void cleanup(); X X /*ARGSUSED*/ X main(argc, argv) X*************** X*** 467,472 **** X--- 467,473 ---- X /* X * Cleanup after interrupts and errors. X */ X+ void X cleanup() X { X register i; X*** ./usr/src/usr.sbin/lpr/cmds.c.old Tue Jan 11 02:06:47 1994 X--- ./usr/src/usr.sbin/lpr/cmds.c Sun Sep 13 22:01:42 2026 X*************** X*** 5,12 **** X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)cmds.c 5.2.1 (2.11BSD GTE) 1/1/94"; X! #endif not lint X X /* X * lpc -- line printer control program -- commands: X--- 5,12 ---- X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)cmds.c 5.2.2 (2.11BSD) 2026/9/13"; X! #endif X X /* X * lpc -- line printer control program -- commands: X*************** X*** 18,24 **** X /* X * kill an existing daemon and disable printing. X */ X! abort(argc, argv) X char *argv[]; X { X register int c, status; X--- 18,24 ---- X /* X * kill an existing daemon and disable printing. X */ X! xabort(argc, argv) X char *argv[]; X { X register int c, status; X*** ./usr/src/usr.sbin/lpr/cmdtab.c.old Tue Jan 11 02:07:06 1994 X--- ./usr/src/usr.sbin/lpr/cmdtab.c Mon Sep 14 15:16:06 2026 X*************** X*** 5,12 **** X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)cmdtab.c 5.1.1 (2.11BSD GTE) 1/1/94"; X! #endif not lint X X /* X * lpc -- command tables X--- 5,12 ---- X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)cmdtab.c 5.1.2 (2.11BSD) 2026/9/14"; X! #endif X X /* X * lpc -- command tables X*************** X*** 14,20 **** X X #include "lpc.h" X X! int abort(), clean(), enable(), disable(), down(), help(); X int quit(), restart(), start(), status(), stop(), topq(), up(); X X char aborthelp[] = "terminate a spooling daemon immediately and disable printing"; X--- 14,20 ---- X X #include "lpc.h" X X! int xabort(), clean(), enable(), disable(), down(), help(); X int quit(), restart(), start(), status(), stop(), topq(), up(); X X char aborthelp[] = "terminate a spooling daemon immediately and disable printing"; X*************** X*** 32,38 **** X char uphelp[] = "enable everything and restart spooling daemon"; X X struct cmd cmdtab[] = { X! { "abort", aborthelp, abort, 1 }, X { "clean", cleanhelp, clean, 1 }, X { "enable", enablehelp, enable, 1 }, X { "exit", quithelp, quit, 0 }, X--- 32,38 ---- X char uphelp[] = "enable everything and restart spooling daemon"; X X struct cmd cmdtab[] = { X! { "abort", aborthelp, xabort, 1 }, X { "clean", cleanhelp, clean, 1 }, X { "enable", enablehelp, enable, 1 }, X { "exit", quithelp, quit, 0 }, X*** ./usr/src/usr.sbin/lpr/lpd.c.old Tue Jan 11 02:07:32 1994 X--- ./usr/src/usr.sbin/lpr/lpd.c Tue Sep 22 09:25:00 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)lpd.c 5.4.1 (2.11BSD GTE) 1/1/94"; X #endif X X /* X--- 9,15 ---- X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)lpd.c 5.4.2 (2.11BSD) 2026/9/22"; X #endif X X /* X*************** X*** 45,53 **** X X int lflag; /* log requests flag */ X X! int reapchild(); X! int mcleanup(); X! int unblock, unpause(); X X main(argc, argv) X int argc; X--- 45,53 ---- X X int lflag; /* log requests flag */ X X! void reapchild(); X! void mcleanup(), unpause(); X! int unblock; X X main(argc, argv) X int argc; X*************** X*** 221,226 **** X--- 221,227 ---- X } X } X X+ void X reapchild() X { X union wait status; X*************** X*** 229,234 **** X--- 230,236 ---- X ; X } X X+ void X mcleanup() X { X if (lflag) X*************** X*** 237,242 **** X--- 239,245 ---- X exit(0); X } X X+ void X unpause() X { X unblock++; X*** ./usr/src/usr.sbin/sendmail/src/mkstrcc.old Fri Jul 15 15:46:39 1994 X--- ./usr/src/usr.sbin/sendmail/src/mkstrcc Fri May 1 21:35:18 2026 X*************** X*** 1,6 **** X--- 1,10 ---- X #! /bin/sh X+ X+ # @(#)mkstrcc 1.1 (2.11BSD) 2026/5/1 X+ X # Special cc preprocessor for using mkstr(1) to extract strings from the X # sendmail source. X+ X STRINGS=sendmail.sr X X # Get filename and arguments. X*** ./usr/src/usr.sbin/sendmail/src/deliver.c.old Tue Mar 7 01:09:12 1995 X--- ./usr/src/usr.sbin/sendmail/src/deliver.c Sat Sep 19 15:04:15 2026 X*************** X*** 9,15 **** X */ X X #if !defined(lint) && !defined(NOSCCS) X! static char SccsId[] = "@(#)deliver.c 5.10.1 (2.11BSD GTE) 3/6/95"; X #endif X X # include X--- 9,15 ---- X */ X X #if !defined(lint) && !defined(NOSCCS) X! static char SccsId[] = "@(#)deliver.c 5.10.2 (2.11BSD) 2026/9/19"; X #endif X X # include X*************** X*** 507,513 **** X if (pid >= 0)\ X break;\ X if (i > 0)\ X! sleep((unsigned) NFORKTRIES - i);\ X }\ X } X /* X--- 507,513 ---- X if (pid >= 0)\ X break;\ X if (i > 0)\ X! xsleep(NFORKTRIES - i);\ X }\ X } X /* X*** ./usr/src/usr.sbin/sendmail/src/util.c.old Fri Oct 3 03:06:51 1997 X--- ./usr/src/usr.sbin/sendmail/src/util.c Sat Sep 19 15:05:53 2026 X*************** X*** 9,15 **** X */ X X #if !defined(lint) && !defined(NOSCCS) X! static char SccsId[] = "@(#)util.c 5.8.3 (2.11BSD GTE) 1997/10/3"; X #endif X X # include X--- 9,15 ---- X */ X X #if !defined(lint) && !defined(NOSCCS) X! static char SccsId[] = "@(#)util.c 5.8.4 (2.11BSD) 2026/9/19"; X #endif X X # include X*************** X*** 58,64 **** X } X *q = '\0'; X } X! /* X ** QSTRLEN -- give me the string length assuming 0200 bits add a char X ** X ** Parameters: X--- 58,65 ---- X } X *q = '\0'; X } X! X! /* X ** QSTRLEN -- give me the string length assuming 0200 bits add a char X ** X ** Parameters: X*************** X*** 85,91 **** X } X return (l); X } X! /* X ** CAPITALIZE -- return a copy of a string, properly capitalized. X ** X ** Parameters: X--- 86,93 ---- X } X return (l); X } X! X! /* X ** CAPITALIZE -- return a copy of a string, properly capitalized. X ** X ** Parameters: X*************** X*** 121,127 **** X *p = '\0'; X return (buf); X } X! /* X ** XALLOC -- Allocate memory and bitch wildly on failure. X ** X ** THIS IS A CLUDGE. This should be made to give a proper X--- 123,130 ---- X *p = '\0'; X return (buf); X } X! X! /* X ** XALLOC -- Allocate memory and bitch wildly on failure. X ** X ** THIS IS A CLUDGE. This should be made to give a proper X*************** X*** 152,158 **** X } X return (p); X } X! /* X ** COPYPLIST -- copy list of pointers. X ** X ** This routine is the equivalent of newstr for lists of X--- 155,162 ---- X } X return (p); X } X! X! /* X ** COPYPLIST -- copy list of pointers. X ** X ** This routine is the equivalent of newstr for lists of X*************** X*** 195,201 **** X X return (newvp); X } X! /* X ** PRINTAV -- print argument vector. X ** X ** Parameters: X--- 199,206 ---- X X return (newvp); X } X! X! /* X ** PRINTAV -- print argument vector. X ** X ** Parameters: X*************** X*** 221,227 **** X } X (void) putchar('\n'); X } X! /* X ** LOWER -- turn letter into lower case. X ** X ** Parameters: X--- 226,233 ---- X } X (void) putchar('\n'); X } X! X! /* X ** LOWER -- turn letter into lower case. X ** X ** Parameters: X*************** X*** 242,248 **** X c = c - 'A' + 'a'; X return (c); X } X! /* X ** XPUTS -- put string doing control escapes. X ** X ** Parameters: X--- 248,255 ---- X c = c - 'A' + 'a'; X return (c); X } X! X! /* X ** XPUTS -- put string doing control escapes. X ** X ** Parameters: X*************** X*** 283,289 **** X (void) putchar('"'); X (void) fflush(stdout); X } X! /* X ** MAKELOWER -- Translate a line into lower case X ** X ** Parameters: X--- 290,297 ---- X (void) putchar('"'); X (void) fflush(stdout); X } X! X! /* X ** MAKELOWER -- Translate a line into lower case X ** X ** Parameters: X*************** X*** 311,317 **** X if (isascii(c) && isupper(c)) X *p = c - 'A' + 'a'; X } X! /* X ** SAMEWORD -- return TRUE if the words are the same X ** X ** Ignores case. X--- 319,326 ---- X if (isascii(c) && isupper(c)) X *p = c - 'A' + 'a'; X } X! X! /* X ** SAMEWORD -- return TRUE if the words are the same X ** X ** Ignores case. X*************** X*** 344,350 **** X } while (ca != '\0' && ca == cb); X return (ca == cb); X } X! /* X ** BUILDFNAME -- build full name from gecos style entry. X ** X ** This routine interprets the strange entry that would appear X--- 353,360 ---- X } while (ca != '\0' && ca == cb); X return (ca == cb); X } X! X! /* X ** BUILDFNAME -- build full name from gecos style entry. X ** X ** This routine interprets the strange entry that would appear X*************** X*** 386,392 **** X } X *bp = '\0'; X } X! /* X ** SAFEFILE -- return true if a file exists and is safe for a user. X ** X ** Parameters: X--- 396,403 ---- X } X *bp = '\0'; X } X! X! /* X ** SAFEFILE -- return true if a file exists and is safe for a user. X ** X ** Parameters: X*************** X*** 416,422 **** X errno = 0; X return (FALSE); X } X! /* X ** FIXCRLF -- fix in line. X ** X ** Looks for the combination and turns it into the X--- 427,434 ---- X errno = 0; X return (FALSE); X } X! X! /* X ** FIXCRLF -- fix in line. X ** X ** Looks for the combination and turns it into the X*************** X*** 450,456 **** X *p++ = '\n'; X *p = '\0'; X } X! /* X ** DFOPEN -- determined file open X ** X ** This routine has the semantics of fopen, except that it will X--- 462,469 ---- X *p++ = '\n'; X *p = '\0'; X } X! X! /* X ** DFOPEN -- determined file open X ** X ** This routine has the semantics of fopen, except that it will X*************** X*** 469,475 **** X X for (tries = 0; tries < 10; tries++) X { X! sleep((unsigned) (10 * tries)); X errno = 0; X fp = fopen(filename, mode); X if (fp != NULL) X--- 482,488 ---- X X for (tries = 0; tries < 10; tries++) X { X! xsleep(10 * tries); X errno = 0; X fp = fopen(filename, mode); X if (fp != NULL) X*************** X*** 480,486 **** X errno = 0; X return (fp); X } X! /* X ** PUTLINE -- put a line like fputs obeying SMTP conventions X ** X ** This routine always guarantees outputing a newline (or CRLF, X--- 493,500 ---- X errno = 0; X return (fp); X } X! X! /* X ** PUTLINE -- put a line like fputs obeying SMTP conventions X ** X ** This routine always guarantees outputing a newline (or CRLF, X*************** X*** 552,558 **** X l++; X } while (l[0] != '\0'); X } X! /* X ** XUNLINK -- unlink a file, doing logging as appropriate. X ** X ** Parameters: X--- 566,573 ---- X l++; X } while (l[0] != '\0'); X } X! X! /* X ** XUNLINK -- unlink a file, doing logging as appropriate. X ** X ** Parameters: X*************** X*** 581,587 **** X syslog(LOG_DEBUG, "%s: unlink-fail %d", f, errno); X # endif LOG X } X! /* X ** SFGETS -- "safe" fgets -- times out and ignores random interrupts. X ** X ** Parameters: X--- 596,603 ---- X syslog(LOG_DEBUG, "%s: unlink-fail %d", f, errno); X # endif LOG X } X! X! /* X ** SFGETS -- "safe" fgets -- times out and ignores random interrupts. X ** X ** Parameters: X*************** X*** 656,662 **** X { X longjmp(CtxReadTimeout, 1); X } X! /* X ** FGETFOLDED -- like fgets, but know about folded lines. X ** X ** Parameters: X--- 672,679 ---- X { X longjmp(CtxReadTimeout, 1); X } X! X! /* X ** FGETFOLDED -- like fgets, but know about folded lines. X ** X ** Parameters: X*************** X*** 712,718 **** X } X return (NULL); X } X! /* X ** CURTIME -- return current time. X ** X ** Parameters: X--- 729,736 ---- X } X return (NULL); X } X! X! /* X ** CURTIME -- return current time. X ** X ** Parameters: X*************** X*** 733,739 **** X (void) time(&t); X return (t); X } X! /* X ** ATOBOOL -- convert a string representation to boolean. X ** X ** Defaults to "TRUE" X--- 751,758 ---- X (void) time(&t); X return (t); X } X! X! /* X ** ATOBOOL -- convert a string representation to boolean. X ** X ** Defaults to "TRUE" X*************** X*** 757,763 **** X return (TRUE); X return (FALSE); X } X! /* X ** ATOOCT -- convert a string representation to octal. X ** X ** Parameters: X--- 776,783 ---- X return (TRUE); X return (FALSE); X } X! X! /* X ** ATOOCT -- convert a string representation to octal. X ** X ** Parameters: X*************** X*** 780,786 **** X i = (i << 3) | (*s++ - '0'); X return (i); X } X! /* X ** WAITFOR -- wait for a particular process id. X ** X ** Parameters: X--- 800,807 ---- X i = (i << 3) | (*s++ - '0'); X return (i); X } X! X! /* X ** WAITFOR -- wait for a particular process id. X ** X ** Parameters: X*************** X*** 809,815 **** X st = -1; X return (st); X } X! /* X ** BITINTERSECT -- tell if two bitmaps intersect X ** X ** Parameters: X--- 830,837 ---- X st = -1; X return (st); X } X! X! /* X ** BITINTERSECT -- tell if two bitmaps intersect X ** X ** Parameters: X*************** X*** 835,841 **** X return (TRUE); X return (FALSE); X } X! /* X ** BITZEROP -- tell if a bitmap is all zero X ** X ** Parameters: X--- 857,864 ---- X return (TRUE); X return (FALSE); X } X! X! /* X ** BITZEROP -- tell if a bitmap is all zero X ** X ** Parameters: X*************** X*** 860,866 **** X return (FALSE); X return (TRUE); X } X! /* X ** CLEANSTRCPY -- copy string keeping out bogus characters X ** X ** Parameters: X--- 883,890 ---- X return (FALSE); X return (TRUE); X } X! X! /* X ** CLEANSTRCPY -- copy string keeping out bogus characters X ** X ** Parameters: X*************** X*** 896,902 **** X } X *t = '\0'; X } X! /* X ** DENLSTRING -- convert newlines in a string to spaces X ** X ** Parameters: X--- 920,927 ---- X } X *t = '\0'; X } X! X! /* X ** DENLSTRING -- convert newlines in a string to spaces X ** X ** Parameters: X*** ./usr/src/usr.sbin/sendmail/src/daemon.c.old Fri Oct 3 02:49:06 1997 X--- ./usr/src/usr.sbin/sendmail/src/daemon.c Tue Sep 22 01:10:27 2026 X*************** X*** 14,30 **** X X # ifndef DAEMON X #if !defined(lint) && !defined(NOSCCS) X! static char SccsId[] = "@(#)daemon.c 5.21 (2.11BSD) 1997/10/3 (w/o daemon mode)"; X # endif X # else X X # include X! # include X # include X # include X X #if !defined(lint) && !defined(NOSCCS) X! static char SccsId[] = "@(#)daemon.c 5.21 (2.11BSD) 1997/10/3 (with daemon mode)"; X # endif X X /* X--- 14,30 ---- X X # ifndef DAEMON X #if !defined(lint) && !defined(NOSCCS) X! static char SccsId[] = "@(#)daemon.c 5.22 (2.11BSD) 2026/9/19 (w/o daemon mode)"; X # endif X # else X X # include X! # include X # include X # include X X #if !defined(lint) && !defined(NOSCCS) X! static char SccsId[] = "@(#)daemon.c 5.22 (2.11BSD) 2026/9/19 (with daemon mode)"; X # endif X X /* X*************** X*** 85,91 **** X int t; X register struct servent *sp; X int on = 1; X! extern reapchild(); X X /* X ** Set up the address for the mailer. X--- 85,91 ---- X int t; X register struct servent *sp; X int on = 1; X! extern void reapchild(); X X /* X ** Set up the address for the mailer. X*************** X*** 162,168 **** X X /* see if we are rejecting connections */ X while (getla() > RefuseLA) X! sleep(5); X X /* wait for a connection */ X do X--- 162,168 ---- X X /* see if we are rejecting connections */ X while (getla() > RefuseLA) X! xsleep(5); X X /* wait for a connection */ X do X*************** X*** 174,180 **** X if (t < 0) X { X syserr("getrequests: accept"); X! sleep(5); X continue; X } X X--- 174,180 ---- X if (t < 0) X { X syserr("getrequests: accept"); X! xsleep(5); X continue; X } X X*************** X*** 191,197 **** X if (pid < 0) X { X syserr("daemon: cannot fork"); X! sleep(10); X (void) close(t); X continue; X } X--- 191,197 ---- X if (pid < 0) X { X syserr("daemon: cannot fork"); X! xsleep(10); X (void) close(t); X continue; X } X*** ./usr/src/usr.sbin/sendmail/src/main.c.old Thu Oct 24 23:10:16 1996 X--- ./usr/src/usr.sbin/sendmail/src/main.c Tue Sep 22 01:08:32 2026 X*************** X*** 13,19 **** X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char SccsId[] = "@(#)main.c 5.11.3 (2.11BSD GTE) 1996/10/24"; X #endif X X # define _DEFINE X--- 13,19 ---- X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char SccsId[] = "@(#)main.c 5.11.4 (2.11BSD) 2026/9/22"; X #endif X X # define _DEFINE X*************** X*** 111,117 **** X extern time_t convtime(); X extern putheader(), putbody(); X extern ENVELOPE *newenvelope(); X! extern intsig(); X extern char **myhostname(); X extern char *arpadate(); X extern char **environ; X--- 111,117 ---- X extern time_t convtime(); X extern putheader(), putbody(); X extern ENVELOPE *newenvelope(); X! extern void intsig(); X extern char **myhostname(); X extern char *arpadate(); X extern char **environ; X*************** X*** 773,778 **** X--- 773,779 ---- X ** Unlocks the current job. X */ X X+ void X intsig() X { X FileName = NULL; X*** ./usr/src/usr.sbin/sendmail/src/queue.c.old Fri Oct 3 14:13:07 1997 X--- ./usr/src/usr.sbin/sendmail/src/queue.c Tue Sep 22 09:20:42 2026 X*************** X*** 285,291 **** X pid = dofork(); X if (pid != 0) X { X! extern reapchild(); X X /* parent -- pick up intermediate zombie */ X #ifndef SIGCHLD X--- 285,291 ---- X pid = dofork(); X if (pid != 0) X { X! extern void reapchild(); X X /* parent -- pick up intermediate zombie */ X #ifndef SIGCHLD X*** ./usr/src/usr.sbin/sendmail/src/clock.c.old Fri Oct 3 03:14:28 1997 X--- ./usr/src/usr.sbin/sendmail/src/clock.c Tue Sep 22 01:11:46 2026 X*************** X*** 9,15 **** X */ X X #if !defined(lint) && !defined(NOSCCS) X! static char SccsId[] = "@(#)clock.c 5.4.2 (2.11BSD) 1997/10/3"; X #endif X X # include "sendmail.h" X--- 9,15 ---- X */ X X #if !defined(lint) && !defined(NOSCCS) X! static char SccsId[] = "@(#)clock.c 5.4.3 (2.11BSD) 2026/9/19"; X #endif X X # include "sendmail.h" X*************** X*** 42,48 **** X register EVENT **evp; X register EVENT *ev; X auto time_t now; X! extern tick(); X X # ifdef DEBUG X if (intvl <= 0) X--- 42,48 ---- X register EVENT **evp; X register EVENT *ev; X auto time_t now; X! extern void tick(); X X # ifdef DEBUG X if (intvl <= 0) X*************** X*** 79,85 **** X tick(); X return (ev); X } X! /* X ** CLREVENT -- remove an event from the event queue. X ** X ** Parameters: X--- 79,86 ---- X tick(); X return (ev); X } X! X! /* X ** CLREVENT -- remove an event from the event queue. X ** X ** Parameters: X*************** X*** 122,128 **** X /* restore clocks and pick up anything spare */ X tick(); X } X! /* X ** TICK -- take a clock tick X ** X ** Called by the alarm clock. This routine runs events as needed. X--- 123,130 ---- X /* restore clocks and pick up anything spare */ X tick(); X } X! X! /* X ** TICK -- take a clock tick X ** X ** Called by the alarm clock. This routine runs events as needed. X*************** X*** 137,142 **** X--- 139,145 ---- X ** calls the next function in EventQueue. X */ X X+ void X tick() X { X register time_t now; X*************** X*** 196,226 **** X if (EventQueue != NULL) X (void) alarm((unsigned) (EventQueue->ev_time - now)); X } X! /* X! ** SLEEP -- a version of sleep that works with this stuff X! ** X! ** Because sleep uses the alarm facility, I must reimplement X! ** it here. X! ** X! ** Parameters: X! ** intvl -- time to sleep. X! ** X! ** Returns: X! ** none. X! ** X! ** Side Effects: X! ** waits for intvl time. However, other events can X! ** be run during that interval. X */ X X static bool SleepDone; X X! unsigned int X! sleep(intvl) X! unsigned int intvl; X { X! extern endsleep(); X X if (intvl == 0) X return; X SleepDone = FALSE; X--- 199,238 ---- X if (EventQueue != NULL) X (void) alarm((unsigned) (EventQueue->ev_time - now)); X } X! X! /* X! * XSLEEP -- a version of sleep that works with this stuff X! * X! * Because sleep uses the alarm facility, I must reimplement X! * it here. X! * X! * Eric should have known that the same name as a system library X! * function is BAD coding practice. The function is renamed to X! * xsleep() to avoid conflict with unistd.h X! * X! * Parameters: X! * intvl -- time to sleep. X! * X! * Returns: X! * Unlike the system sleep this function does not return the X! * unslept time. X! * X! * Side Effects: X! * waits for intvl time. However, other events can X! * be run during that interval. X */ X X static bool SleepDone; X X! endsleep() X { X! SleepDone = TRUE; X! } X X+ void X+ xsleep(intvl) X+ int intvl; X+ { X if (intvl == 0) X return; X SleepDone = FALSE; X*************** X*** 227,235 **** X (void) setevent((time_t) intvl, endsleep, 0); X while (!SleepDone) X pause(); X- } X- X- endsleep() X- { X- SleepDone = TRUE; X } X--- 239,242 ---- X*** ./usr/src/usr.sbin/sendmail/src/alias.c.old Thu Aug 22 15:28:10 1991 X--- ./usr/src/usr.sbin/sendmail/src/alias.c Tue Sep 22 01:09:23 2026 X*************** X*** 20,28 **** X X #if !defined(lint) && !defined(NOSCCS) X # ifdef DBM X! static char SccsId[] = "@(#)alias.c 5.13 (Berkeley) 4/17/86 (with DBM)"; X # else DBM X! static char SccsId[] = "@(#)alias.c 5.13 (Berkeley) 4/17/86 (without DBM)"; X # endif DBM X #endif X X--- 20,28 ---- X X #if !defined(lint) && !defined(NOSCCS) X # ifdef DBM X! static char SccsId[] = "@(#)alias.c 5.14 (2.11BSD) 2026/9/19 (with DBM)"; X # else DBM X! static char SccsId[] = "@(#)alias.c 5.14 (2.11BSD) 2026/9/19 (without DBM)"; X # endif DBM X #endif X X*************** X*** 213,222 **** X ** Only works with new DBM -- old one will X ** just consume file descriptors forever. X ** If you have a dbmclose() it can be X! ** added before the sleep(30). X */ X X! sleep(30); X # ifdef NDBM X dbminit(aliasfile); X # endif NDBM X--- 213,222 ---- X ** Only works with new DBM -- old one will X ** just consume file descriptors forever. X ** If you have a dbmclose() it can be X! ** added before the xsleep(30). X */ X X! xsleep(30); X # ifdef NDBM X dbminit(aliasfile); X # endif NDBM X*************** X*** 314,320 **** X int naliases, longest; X long bytes; X FILE *af; X! int (*oldsigint)(); X ADDRESS al, bl; X register STAB *s; X char line[BUFSIZ]; X--- 314,320 ---- X int naliases, longest; X long bytes; X FILE *af; X! sig_t oldsigint; X ADDRESS al, bl; X register STAB *s; X char line[BUFSIZ]; X*** ./usr/src/usr.sbin/sendmail/lib/Makefile.m4.old Wed Feb 18 04:11:07 1987 X--- ./usr/src/usr.sbin/sendmail/lib/Makefile.m4 Fri May 1 17:42:17 2026 X*************** X*** 7,27 **** X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile.m4 5.1 (Berkeley) 6/7/85 X # X- # X- # Makefile for Sendmail library X- # X X ALL= sendmail.hf X SRCS= sendmail.hf X X! GET= sccs get X X! all: $(ALL) X X! sources: $(SRCS) X! X! $(SRCS): X! $(GET) $(REL) SCCS/s.$@ X! X--- 7,23 ---- X # All rights reserved. The Berkeley software License Agreement X # specifies the terms and conditions for redistribution. X # X! # @(#)Makefile.m4 5.2 (2.11BSD) 2026/5/1 X # X X ALL= sendmail.hf X SRCS= sendmail.hf X X! all: FRC X! clean: FRC X! depend: FRC X X! install: sendmail.hf X! install -c -o root -m 444 sendmail.hf /usr/share/misc/sendmail.hf X X! FRC: X*** ./usr/src/usr.sbin/sendmail/Makefile.old Fri Dec 26 02:08:54 2025 X--- ./usr/src/usr.sbin/sendmail/Makefile Fri May 1 17:38:17 2026 X*************** X*** 1,13 **** X # X # Makefile for sendmail base directory X # X! # @(#)Makefile 4.9.3 (2.11BSD) 2025/11/25 X # X X ALL= src/sendmail X DIRS= /usr/spool/mqueue X # X- ALLDIRS=include adm src aux md lib doc adb test X SENDMAIL=/usr/sbin/sendmail X SYSLOG= /usr/spool/mqueue/syslog X HELPFILE=/usr/share/misc/sendmail.hf X--- 1,12 ---- X # X # Makefile for sendmail base directory X # X! # @(#)Makefile 4.9.4 (2.11BSD) 2026/5/1 X # X X ALL= src/sendmail X DIRS= /usr/spool/mqueue X # X SENDMAIL=/usr/sbin/sendmail X SYSLOG= /usr/spool/mqueue/syslog X HELPFILE=/usr/share/misc/sendmail.hf X*************** X*** 18,33 **** X LN= ln -s X X all: X! cd lib; make ${MFLAGS} X cd src; m4 Makefile.m4 > Makefile; make ${MFLAGS} all X- -cd aux; m4 Makefile.m4 > Makefile; make ${MFLAGS} X X install: $(ALL) $(DIRS) X install -c -s -o root -m 4755 src/sendmail $(SENDMAIL) X install -c -o root -m 644 src/sendmail.sr $(STRINGFILE) X- install -c -o root -m 644 lib/sendmail.hf $(HELPFILE) X install -c -o root -m 666 /dev/null $(STATUSFILE) X install -c -o root -m 644 /dev/null $(FROZENFILE) X rm -f /usr/bin/newaliases X $(LN) ../sbin/sendmail /usr/bin/newaliases X rm -f /usr/bin/mailq X--- 17,31 ---- X LN= ln -s X X all: X! cd lib; m4 Makefile.m4 > Makefile; make ${MFLAGS} X cd src; m4 Makefile.m4 > Makefile; make ${MFLAGS} all X X install: $(ALL) $(DIRS) X install -c -s -o root -m 4755 src/sendmail $(SENDMAIL) X install -c -o root -m 644 src/sendmail.sr $(STRINGFILE) X install -c -o root -m 666 /dev/null $(STATUSFILE) X install -c -o root -m 644 /dev/null $(FROZENFILE) X+ cd lib; make install X rm -f /usr/bin/newaliases X $(LN) ../sbin/sendmail /usr/bin/newaliases X rm -f /usr/bin/mailq X*************** X*** 36,44 **** X src/sendmail: X cd src; make ${MFLAGS} sendmail X X- aux/syslog: X- -cd aux; make ${MFLAGS} syslog X- X /usr/spool/mqueue: X -mkdir /usr/spool/mqueue X -chmod 777 /usr/spool/mqueue X--- 34,39 ---- X*************** X*** 46,51 **** X clean: X -cd src; make ${MFLAGS} clean X -cd cf; make ${MFLAGS} clean X- -cd aux; make ${MFLAGS} clean X -cd lib; make ${MFLAGS} clean X -cd doc; make ${MFLAGS} clean X--- 41,45 ---- X*** ./usr/src/usr.sbin/sendmail/READ_ME.old Wed Feb 18 04:11:25 1987 X--- ./usr/src/usr.sbin/sendmail/READ_ME Fri May 1 20:59:42 2026 X*************** X*** 18,26 **** X adb A set of adb(1) scripts for printing out certain X sendmail data structures. X adm Administrativia. X- aux Files that represent programs that are not really X- "part" of sendmail, or old versions of some files X- in src for use by people on other system types. X cf The configuration files for Berkeley, plus a few X prototype configurations for basic installation X types. X--- 18,23 ---- X*************** X*** 32,39 **** X for libc.a. X md Some m4 files used to isolate machine dependencies. X src The source for the sendmail program itself. X- test Some files used for testing -- mostly these are X- shell files intended as the targets for aliasing. X X The following are the known major problems and their Problem Report X number: X--- 29,34 ---- X*************** X*** 61,64 **** X Eric Allman X Britton-Lee, Inc. X X! @(#)READ_ME 4.1 7/25/83 X--- 56,59 ---- X Eric Allman X Britton-Lee, Inc. X X! @(#)READ_ME 4.2 (2.11BSD) 2026/5/1 X*** ./usr/src/usr.sbin/sendmail.MX/src/Makefile.old Mon Dec 8 15:33:56 2025 X--- ./usr/src/usr.sbin/sendmail.MX/src/Makefile Tue Sep 22 09:26:31 2026 X*************** X*** 9,18 **** X # software without specific prior written permission. This software X # is provided ``as is'' without express or implied warranty. X # X! # @(#)Makefile 2.0 (2.11BSD) 2025/11/28 X # X # Uncomment these two lines to enable string extractions X CC= ./mkstrcc X EXTRACT=extract.o X X SRCS= alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \ X--- 9,19 ---- X # software without specific prior written permission. This software X # is provided ``as is'' without express or implied warranty. X # X! # @(#)Makefile 2.1 (2.11BSD) 2026/5/1 X # X # Uncomment these two lines to enable string extractions X CC= ./mkstrcc X+ XSTR= /usr/ucb/xstr X EXTRACT=extract.o X X SRCS= alias.c arpadate.c clock.c collect.c conf.c convtime.c daemon.c \ X*************** X*** 21,27 **** X stab.c stats.c sysexits.c trace.c usersmtp.c util.c Version.c X BASE= clock.o conf.o daemon.o envelope.o macro.o main.o queue.o \ X parseaddr.o recipient.o savemail.o stab.o srvrsmtp.o \ X! trace.o util.o $(EXTRACT) X OVLY1= sysexits.o arpadate.o convtime.o readcf.o headers.o X OVLY2= collect.o deliver.o X OVLY3= alias.o err.o domain.o stats.o usersmtp.o X--- 22,28 ---- X stab.c stats.c sysexits.c trace.c usersmtp.c util.c Version.c X BASE= clock.o conf.o daemon.o envelope.o macro.o main.o queue.o \ X parseaddr.o recipient.o savemail.o stab.o srvrsmtp.o \ X! trace.o util.o $(EXTRACT) str.o X OVLY1= sysexits.o arpadate.o convtime.o readcf.o headers.o X OVLY2= collect.o deliver.o X OVLY3= alias.o err.o domain.o stats.o usersmtp.o X*************** X*** 29,41 **** X X CFLAGS= -O -I. -I../include -DVMUNIX -DMXDOMAIN -DNOSCCS X LDFLAGS=-i X- ASMSED= ../include/asm.sed X X .c.o: X! $(CC) -S ${CFLAGS} $*.c X! sed -f $(ASMSED) $*.s >_xx.s X! as -V - -o $*.o _xx.s X! rm -f $*.s _xx.s X X sendmail: ${OBJS} Version.o X cc ${LDFLAGS} ${COPTS} -o sendmail Version.o ${BASE} \ X--- 30,38 ---- X X CFLAGS= -O -I. -I../include -DVMUNIX -DMXDOMAIN -DNOSCCS X LDFLAGS=-i X X .c.o: X! $(CC) ${CFLAGS} -c $*.c X X sendmail: ${OBJS} Version.o X cc ${LDFLAGS} ${COPTS} -o sendmail Version.o ${BASE} \ X*************** X*** 75,85 **** X @echo "# endif COMMENT" >> Version.c X X clean: FRC X! rm -f ${OBJS} core sendmail a.out Version.o sendmail.sr mk.c xxmk.c X X depend: FRC X mkdep ${CFLAGS} ${SRCS} X X lint: FRC X lint -chapbx ${CCONFIG} ${SRCS} X X--- 72,88 ---- X @echo "# endif COMMENT" >> Version.c X X clean: FRC X! rm -f ${OBJS} core sendmail a.out Version.o sendmail.sr mk.c xxmk.c strings X X depend: FRC X mkdep ${CFLAGS} ${SRCS} X X+ str.o: strings X+ ${XSTR} X+ cc -c xs.c X+ mv xs.o str.o X+ rm -f xs.c X+ X lint: FRC X lint -chapbx ${CCONFIG} ${SRCS} X X*************** X*** 87,323 **** X ctags ${SRCS} X X FRC: X- X- # DO NOT DELETE THIS LINE -- mkdep uses it. X- # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. X- X- alias.o: alias.c /usr/include/pwd.h /usr/include/sys/types.h X- alias.o: /usr/include/sys/stat.h /usr/include/signal.h /usr/include/errno.h X- alias.o: sendmail.h /usr/include/stdio.h /usr/include/ctype.h X- alias.o: /usr/include/setjmp.h conf.h ../include/useful.h /usr/include/errno.h X- alias.o: /usr/include/stdlib.h /usr/include/string.h /usr/include/sys/types.h X- alias.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/sys/types.h X- alias.o: /usr/include/unistd.h /usr/include/sys/types.h X- alias.o: /usr/include/sys/syslog.h /usr/include/sys/socket.h X- alias.o: /usr/include/netinet/in.h /usr/include/arpa/inet.h X- alias.o: /usr/include/sysexits.h /usr/include/sys/file.h /usr/include/fcntl.h X- alias.o: /usr/include/sys/types.h X- arpadate.o: arpadate.c sendmail.h /usr/include/stdio.h /usr/include/ctype.h X- arpadate.o: /usr/include/setjmp.h conf.h ../include/useful.h X- arpadate.o: /usr/include/sys/types.h /usr/include/errno.h /usr/include/stdlib.h X- arpadate.o: /usr/include/string.h /usr/include/sys/types.h X- arpadate.o: /usr/include/sys/time.h /usr/include/time.h X- arpadate.o: /usr/include/sys/types.h /usr/include/unistd.h X- arpadate.o: /usr/include/sys/types.h /usr/include/sys/syslog.h X- arpadate.o: /usr/include/sys/socket.h /usr/include/netinet/in.h X- arpadate.o: /usr/include/arpa/inet.h /usr/include/sysexits.h X- clock.o: clock.c sendmail.h /usr/include/stdio.h /usr/include/ctype.h X- clock.o: /usr/include/setjmp.h conf.h ../include/useful.h X- clock.o: /usr/include/sys/types.h /usr/include/errno.h /usr/include/stdlib.h X- clock.o: /usr/include/string.h /usr/include/sys/types.h /usr/include/sys/time.h X- clock.o: /usr/include/time.h /usr/include/sys/types.h /usr/include/unistd.h X- clock.o: /usr/include/sys/types.h /usr/include/sys/syslog.h X- clock.o: /usr/include/sys/socket.h /usr/include/netinet/in.h X- clock.o: /usr/include/arpa/inet.h /usr/include/sysexits.h /usr/include/signal.h X- collect.o: collect.c /usr/include/errno.h sendmail.h /usr/include/stdio.h X- collect.o: /usr/include/ctype.h /usr/include/setjmp.h conf.h X- collect.o: ../include/useful.h /usr/include/sys/types.h /usr/include/errno.h X- collect.o: /usr/include/stdlib.h /usr/include/string.h /usr/include/sys/types.h X- collect.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/sys/types.h X- collect.o: /usr/include/unistd.h /usr/include/sys/types.h X- collect.o: /usr/include/sys/syslog.h /usr/include/sys/socket.h X- collect.o: /usr/include/netinet/in.h /usr/include/arpa/inet.h X- collect.o: /usr/include/sysexits.h X- conf.o: conf.c /usr/include/pwd.h /usr/include/sys/ioctl.h X- conf.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h sendmail.h X- conf.o: /usr/include/stdio.h /usr/include/ctype.h /usr/include/setjmp.h conf.h X- conf.o: ../include/useful.h /usr/include/sys/types.h /usr/include/errno.h X- conf.o: /usr/include/stdlib.h /usr/include/string.h /usr/include/sys/types.h X- conf.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/sys/types.h X- conf.o: /usr/include/unistd.h /usr/include/sys/types.h X- conf.o: /usr/include/sys/syslog.h /usr/include/sys/socket.h X- conf.o: /usr/include/netinet/in.h /usr/include/arpa/inet.h X- conf.o: /usr/include/sysexits.h /usr/include/sys/stat.h /usr/include/sys/wait.h X- convtime.o: convtime.c /usr/include/ctype.h ../include/useful.h X- convtime.o: /usr/include/sys/types.h X- daemon.o: daemon.c /usr/include/errno.h sendmail.h /usr/include/stdio.h X- daemon.o: /usr/include/ctype.h /usr/include/setjmp.h conf.h ../include/useful.h X- daemon.o: /usr/include/sys/types.h /usr/include/errno.h /usr/include/stdlib.h X- daemon.o: /usr/include/string.h /usr/include/sys/types.h X- daemon.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/sys/types.h X- daemon.o: /usr/include/unistd.h /usr/include/sys/types.h X- daemon.o: /usr/include/sys/syslog.h /usr/include/sys/socket.h X- daemon.o: /usr/include/netinet/in.h /usr/include/arpa/inet.h X- daemon.o: /usr/include/sysexits.h /usr/include/netdb.h X- daemon.o: /usr/include/sys/signal.h /usr/include/sys/wait.h X- daemon.o: /usr/include/sys/resource.h X- deliver.o: deliver.c sendmail.h /usr/include/stdio.h /usr/include/ctype.h X- deliver.o: /usr/include/setjmp.h conf.h ../include/useful.h X- deliver.o: /usr/include/sys/types.h /usr/include/errno.h /usr/include/stdlib.h X- deliver.o: /usr/include/string.h /usr/include/sys/types.h X- deliver.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/sys/types.h X- deliver.o: /usr/include/unistd.h /usr/include/sys/types.h X- deliver.o: /usr/include/sys/syslog.h /usr/include/sys/socket.h X- deliver.o: /usr/include/netinet/in.h /usr/include/arpa/inet.h X- deliver.o: /usr/include/sysexits.h /usr/include/sys/signal.h X- deliver.o: /usr/include/sys/stat.h /usr/include/sys/ioctl.h X- deliver.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- deliver.o: /usr/include/netdb.h /usr/include/errno.h X- deliver.o: /usr/include/arpa/nameser.h /usr/include/resolv.h X- domain.o: domain.c sendmail.h /usr/include/stdio.h /usr/include/ctype.h X- domain.o: /usr/include/setjmp.h conf.h ../include/useful.h X- domain.o: /usr/include/sys/types.h /usr/include/errno.h /usr/include/stdlib.h X- domain.o: /usr/include/string.h /usr/include/sys/types.h X- domain.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/sys/types.h X- domain.o: /usr/include/unistd.h /usr/include/sys/types.h X- domain.o: /usr/include/sys/syslog.h /usr/include/sys/socket.h X- domain.o: /usr/include/netinet/in.h /usr/include/arpa/inet.h X- domain.o: /usr/include/sysexits.h /usr/include/sys/param.h X- domain.o: /usr/include/sys/localopts.h /usr/include/sys/stddef.h X- domain.o: /usr/include/machine/machparam.h /usr/include/sys/types.h X- domain.o: /usr/include/signal.h /usr/include/sys/types.h X- domain.o: /usr/include/arpa/nameser.h /usr/include/resolv.h X- domain.o: /usr/include/netdb.h X- envelope.o: envelope.c /usr/include/pwd.h /usr/include/sys/time.h X- envelope.o: /usr/include/time.h /usr/include/sys/types.h sendmail.h X- envelope.o: /usr/include/stdio.h /usr/include/ctype.h /usr/include/setjmp.h X- envelope.o: conf.h ../include/useful.h /usr/include/errno.h X- envelope.o: /usr/include/stdlib.h /usr/include/string.h X- envelope.o: /usr/include/sys/types.h /usr/include/sys/time.h X- envelope.o: /usr/include/unistd.h /usr/include/sys/types.h X- envelope.o: /usr/include/sys/syslog.h /usr/include/sys/socket.h X- envelope.o: /usr/include/netinet/in.h /usr/include/arpa/inet.h X- envelope.o: /usr/include/sysexits.h /usr/include/sys/stat.h X- err.o: err.c sendmail.h /usr/include/stdio.h /usr/include/ctype.h X- err.o: /usr/include/setjmp.h conf.h ../include/useful.h X- err.o: /usr/include/sys/types.h /usr/include/errno.h /usr/include/stdlib.h X- err.o: /usr/include/string.h /usr/include/sys/types.h /usr/include/sys/time.h X- err.o: /usr/include/time.h /usr/include/sys/types.h /usr/include/unistd.h X- err.o: /usr/include/sys/types.h /usr/include/sys/syslog.h X- err.o: /usr/include/sys/socket.h /usr/include/netinet/in.h X- err.o: /usr/include/arpa/inet.h /usr/include/sysexits.h /usr/include/errno.h X- err.o: /usr/include/netdb.h X- headers.o: headers.c /usr/include/errno.h sendmail.h /usr/include/stdio.h X- headers.o: /usr/include/ctype.h /usr/include/setjmp.h conf.h X- headers.o: ../include/useful.h /usr/include/sys/types.h /usr/include/errno.h X- headers.o: /usr/include/stdlib.h /usr/include/string.h /usr/include/sys/types.h X- headers.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/sys/types.h X- headers.o: /usr/include/unistd.h /usr/include/sys/types.h X- headers.o: /usr/include/sys/syslog.h /usr/include/sys/socket.h X- headers.o: /usr/include/netinet/in.h /usr/include/arpa/inet.h X- headers.o: /usr/include/sysexits.h X- macro.o: macro.c sendmail.h /usr/include/stdio.h /usr/include/ctype.h X- macro.o: /usr/include/setjmp.h conf.h ../include/useful.h X- macro.o: /usr/include/sys/types.h /usr/include/errno.h /usr/include/stdlib.h X- macro.o: /usr/include/string.h /usr/include/sys/types.h /usr/include/sys/time.h X- macro.o: /usr/include/time.h /usr/include/sys/types.h /usr/include/unistd.h X- macro.o: /usr/include/sys/types.h /usr/include/sys/syslog.h X- macro.o: /usr/include/sys/socket.h /usr/include/netinet/in.h X- macro.o: /usr/include/arpa/inet.h /usr/include/sysexits.h X- main.o: main.c /usr/include/signal.h /usr/include/sgtty.h X- main.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h X- main.o: /usr/include/sys/ttydev.h sendmail.h /usr/include/stdio.h X- main.o: /usr/include/ctype.h /usr/include/setjmp.h conf.h ../include/useful.h X- main.o: /usr/include/sys/types.h /usr/include/errno.h /usr/include/stdlib.h X- main.o: /usr/include/string.h /usr/include/sys/types.h /usr/include/sys/time.h X- main.o: /usr/include/time.h /usr/include/sys/types.h /usr/include/unistd.h X- main.o: /usr/include/sys/types.h /usr/include/sys/syslog.h X- main.o: /usr/include/sys/socket.h /usr/include/netinet/in.h X- main.o: /usr/include/arpa/inet.h /usr/include/sysexits.h X- main.o: /usr/include/arpa/nameser.h /usr/include/resolv.h X- parseaddr.o: parseaddr.c sendmail.h /usr/include/stdio.h /usr/include/ctype.h X- parseaddr.o: /usr/include/setjmp.h conf.h ../include/useful.h X- parseaddr.o: /usr/include/sys/types.h /usr/include/errno.h X- parseaddr.o: /usr/include/stdlib.h /usr/include/string.h X- parseaddr.o: /usr/include/sys/types.h /usr/include/sys/time.h X- parseaddr.o: /usr/include/time.h /usr/include/sys/types.h /usr/include/unistd.h X- parseaddr.o: /usr/include/sys/types.h /usr/include/sys/syslog.h X- parseaddr.o: /usr/include/sys/socket.h /usr/include/netinet/in.h X- parseaddr.o: /usr/include/arpa/inet.h /usr/include/sysexits.h X- queue.o: queue.c sendmail.h /usr/include/stdio.h /usr/include/ctype.h X- queue.o: /usr/include/setjmp.h conf.h ../include/useful.h X- queue.o: /usr/include/sys/types.h /usr/include/errno.h /usr/include/stdlib.h X- queue.o: /usr/include/string.h /usr/include/sys/types.h /usr/include/sys/time.h X- queue.o: /usr/include/time.h /usr/include/sys/types.h /usr/include/unistd.h X- queue.o: /usr/include/sys/types.h /usr/include/sys/syslog.h X- queue.o: /usr/include/sys/socket.h /usr/include/netinet/in.h X- queue.o: /usr/include/arpa/inet.h /usr/include/sysexits.h X- queue.o: /usr/include/sys/stat.h /usr/include/sys/dir.h /usr/include/signal.h X- queue.o: /usr/include/errno.h X- recipient.o: recipient.c /usr/include/pwd.h sendmail.h /usr/include/stdio.h X- recipient.o: /usr/include/ctype.h /usr/include/setjmp.h conf.h X- recipient.o: ../include/useful.h /usr/include/sys/types.h /usr/include/errno.h X- recipient.o: /usr/include/stdlib.h /usr/include/string.h X- recipient.o: /usr/include/sys/types.h /usr/include/sys/time.h X- recipient.o: /usr/include/time.h /usr/include/sys/types.h /usr/include/unistd.h X- recipient.o: /usr/include/sys/types.h /usr/include/sys/syslog.h X- recipient.o: /usr/include/sys/socket.h /usr/include/netinet/in.h X- recipient.o: /usr/include/arpa/inet.h /usr/include/sysexits.h X- recipient.o: /usr/include/sys/stat.h X- savemail.o: savemail.c /usr/include/pwd.h sendmail.h /usr/include/stdio.h X- savemail.o: /usr/include/ctype.h /usr/include/setjmp.h conf.h X- savemail.o: ../include/useful.h /usr/include/sys/types.h /usr/include/errno.h X- savemail.o: /usr/include/stdlib.h /usr/include/string.h X- savemail.o: /usr/include/sys/types.h /usr/include/sys/time.h X- savemail.o: /usr/include/time.h /usr/include/sys/types.h /usr/include/unistd.h X- savemail.o: /usr/include/sys/types.h /usr/include/sys/syslog.h X- savemail.o: /usr/include/sys/socket.h /usr/include/netinet/in.h X- savemail.o: /usr/include/arpa/inet.h /usr/include/sysexits.h X- srvrsmtp.o: srvrsmtp.c sendmail.h /usr/include/stdio.h /usr/include/ctype.h X- srvrsmtp.o: /usr/include/setjmp.h conf.h ../include/useful.h X- srvrsmtp.o: /usr/include/sys/types.h /usr/include/errno.h /usr/include/stdlib.h X- srvrsmtp.o: /usr/include/string.h /usr/include/sys/types.h X- srvrsmtp.o: /usr/include/sys/time.h /usr/include/time.h X- srvrsmtp.o: /usr/include/sys/types.h /usr/include/unistd.h X- srvrsmtp.o: /usr/include/sys/types.h /usr/include/sys/syslog.h X- srvrsmtp.o: /usr/include/sys/socket.h /usr/include/netinet/in.h X- srvrsmtp.o: /usr/include/arpa/inet.h /usr/include/sysexits.h X- srvrsmtp.o: /usr/include/errno.h /usr/include/signal.h X- stab.o: stab.c sendmail.h /usr/include/stdio.h /usr/include/ctype.h X- stab.o: /usr/include/setjmp.h conf.h ../include/useful.h X- stab.o: /usr/include/sys/types.h /usr/include/errno.h /usr/include/stdlib.h X- stab.o: /usr/include/string.h /usr/include/sys/types.h /usr/include/sys/time.h X- stab.o: /usr/include/time.h /usr/include/sys/types.h /usr/include/unistd.h X- stab.o: /usr/include/sys/types.h /usr/include/sys/syslog.h X- stab.o: /usr/include/sys/socket.h /usr/include/netinet/in.h X- stab.o: /usr/include/arpa/inet.h /usr/include/sysexits.h X- stats.o: stats.c sendmail.h /usr/include/stdio.h /usr/include/ctype.h X- stats.o: /usr/include/setjmp.h conf.h ../include/useful.h X- stats.o: /usr/include/sys/types.h /usr/include/errno.h /usr/include/stdlib.h X- stats.o: /usr/include/string.h /usr/include/sys/types.h /usr/include/sys/time.h X- stats.o: /usr/include/time.h /usr/include/sys/types.h /usr/include/unistd.h X- stats.o: /usr/include/sys/types.h /usr/include/sys/syslog.h X- stats.o: /usr/include/sys/socket.h /usr/include/netinet/in.h X- stats.o: /usr/include/arpa/inet.h /usr/include/sysexits.h mailstats.h X- sysexits.o: sysexits.c /usr/include/sysexits.h X- trace.o: trace.c sendmail.h /usr/include/stdio.h /usr/include/ctype.h X- trace.o: /usr/include/setjmp.h conf.h ../include/useful.h X- trace.o: /usr/include/sys/types.h /usr/include/errno.h /usr/include/stdlib.h X- trace.o: /usr/include/string.h /usr/include/sys/types.h /usr/include/sys/time.h X- trace.o: /usr/include/time.h /usr/include/sys/types.h /usr/include/unistd.h X- trace.o: /usr/include/sys/types.h /usr/include/sys/syslog.h X- trace.o: /usr/include/sys/socket.h /usr/include/netinet/in.h X- trace.o: /usr/include/arpa/inet.h /usr/include/sysexits.h X- usersmtp.o: usersmtp.c sendmail.h /usr/include/stdio.h /usr/include/ctype.h X- usersmtp.o: /usr/include/setjmp.h conf.h ../include/useful.h X- usersmtp.o: /usr/include/sys/types.h /usr/include/errno.h /usr/include/stdlib.h X- usersmtp.o: /usr/include/string.h /usr/include/sys/types.h X- usersmtp.o: /usr/include/sys/time.h /usr/include/time.h X- usersmtp.o: /usr/include/sys/types.h /usr/include/unistd.h X- usersmtp.o: /usr/include/sys/types.h /usr/include/sys/syslog.h X- usersmtp.o: /usr/include/sys/socket.h /usr/include/netinet/in.h X- usersmtp.o: /usr/include/arpa/inet.h /usr/include/sysexits.h X- usersmtp.o: /usr/include/sysexits.h /usr/include/errno.h X- util.o: util.c /usr/include/stdio.h /usr/include/sys/types.h X- util.o: /usr/include/sys/stat.h /usr/include/sysexits.h /usr/include/ctype.h X- util.o: sendmail.h /usr/include/stdio.h /usr/include/ctype.h X- util.o: /usr/include/setjmp.h conf.h ../include/useful.h /usr/include/errno.h X- util.o: /usr/include/stdlib.h /usr/include/string.h /usr/include/sys/types.h X- util.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/sys/types.h X- util.o: /usr/include/unistd.h /usr/include/sys/types.h X- util.o: /usr/include/sys/syslog.h /usr/include/sys/socket.h X- util.o: /usr/include/netinet/in.h /usr/include/arpa/inet.h X- util.o: /usr/include/sysexits.h X- Version.o: Version.c X- X- # IF YOU PUT ANYTHING HERE IT WILL GO AWAY X--- 90,92 ---- X*** ./usr/src/usr.sbin/sendmail.MX/src/mkstrcc.old Wed Sep 14 22:56:44 1988 X--- ./usr/src/usr.sbin/sendmail.MX/src/mkstrcc Fri May 1 21:35:52 2026 X*************** X*** 1,6 **** X--- 1,10 ---- X #! /bin/sh X+ X+ # @(#)mkstrcc 1.1 (2.11BSD) 2026/5/1 X+ X # Special cc preprocessor for using mkstr(1) to extract strings from the X # sendmail source. X+ X STRINGS=sendmail.sr X X # Get filename and arguments. X*************** X*** 33,53 **** X X # String extractions X echo Extracting strings from ${csrc}... X! cc -E $args $csrc > xxmk.c X! sed -e 's/ferror(/strferrorf(/' \ X -e 's/sprintf(\([^,][^,]*\),[ ]*\("[^"]*"\)\([,)]\)/strsrerror(\2, \1\3/' \ X -e 's/fprintf(\([^,][^,]*\),[ ]*\("[^"]*"\)\([,)]\)/strfrerror(\2, \1\3/' \ X -e 's/printf("/strprerror("/' \ X -e 's/syslog(\([^,][^,]*\),[ ]*\("[^"]*"\)\([,)]\)/slogerror(\2, \1\3/' \ X -e 's/syserr(\(".*"\)\([,)]\)/syserror(\1\2/' \ X -e 's/usrerr(\(".*"\)\([,)]\)/usrerror(\1\2/' \ X -e 's/nmessage(\([^,][^,]*\),[ ]*\("[^"]*"\)\([,)]\)/nmesserror(\2, \1\3/' \ X -e 's/message(\([^,][^,]*\),[ ]*\("[^"]*"\)\([,)]\)/messerror(\2, \1\3/' \ X! xxmk.c > mk.c X mkstr - $STRINGS xx mk.c X! sed -e 's/^# \([0-9]\)/#line \1/' xxmk.c > mk.c X echo Compiling... X! cc -Dstrferrorf=ferror -Dstrprnf=fprintf -Dstrsprnf=sprintf \ X! -Dstrnmessagef=nmessage $args mk.c X! mv mk.s `basename $csrc .c`.s X! rm -f mk.c xxmk.c X--- 37,59 ---- X X # String extractions X echo Extracting strings from ${csrc}... X! cc -E $args $csrc | \ X! sed -e 's/ferror(/ferror_(/' \ X! -e 's/smtpmessage(/smtpmessage_(/' \ X -e 's/sprintf(\([^,][^,]*\),[ ]*\("[^"]*"\)\([,)]\)/strsrerror(\2, \1\3/' \ X -e 's/fprintf(\([^,][^,]*\),[ ]*\("[^"]*"\)\([,)]\)/strfrerror(\2, \1\3/' \ X -e 's/printf("/strprerror("/' \ X+ -e 's/putline("/strputlinerror("/' \ X -e 's/syslog(\([^,][^,]*\),[ ]*\("[^"]*"\)\([,)]\)/slogerror(\2, \1\3/' \ X -e 's/syserr(\(".*"\)\([,)]\)/syserror(\1\2/' \ X -e 's/usrerr(\(".*"\)\([,)]\)/usrerror(\1\2/' \ X -e 's/nmessage(\([^,][^,]*\),[ ]*\("[^"]*"\)\([,)]\)/nmesserror(\2, \1\3/' \ X -e 's/message(\([^,][^,]*\),[ ]*\("[^"]*"\)\([,)]\)/messerror(\2, \1\3/' \ X! -e 's/^# \([0-9]\)/#line \1/' > mk.c X mkstr - $STRINGS xx mk.c X! echo Doing shared strings... X! cc -E -Dferror=ferror_ -Dsmtpmessage=smtpmessage_ $args xxmk.c | xstr -c - X echo Compiling... X! cc $args -c x.c X! mv x.o `basename $csrc .c`.o X! rm -f x.c mk.c xxmk.c X*** ./usr/src/usr.sbin/sendmail.MX/src/extract.c.old Thu Oct 24 22:28:36 1996 X--- ./usr/src/usr.sbin/sendmail.MX/src/extract.c Sat Dec 27 10:06:12 2025 X*************** X*** 1,10 **** X! /* string extraction/restoration routines */ X X #define BUFLEN 256 X #include "sendmail.h" X- #include X X! char *StringFile = "/usr/share/misc/sendmail.sr"; /* extracted string storage */ X static int strfile = -1, ourpid = 0; X X errprep(offset, buf) X--- 1,11 ---- X! #if !defined(lint) && !defined(NOSCCS) X! static char SccsId[] = "@(#)extract.c 5.7.2 (2.11BSD) 2025/12/26"; X! #endif X X #define BUFLEN 256 X #include "sendmail.h" X X! char *StringFile = "/usr/share/misc/sendmail.sr"; X static int strfile = -1, ourpid = 0; X X errprep(offset, buf) X*************** X*** 35,49 **** X X /* extracted string front end for printf() */ X /*VARARGS1*/ X! strprerror(fmt, va_alist) X! int fmt; X! va_dcl X { X va_list ap; X char buf[BUFLEN]; X X errprep(fmt, buf); X! va_start(ap); X vprintf(buf, ap); X va_end(ap); X } X--- 36,48 ---- X X /* extracted string front end for printf() */ X /*VARARGS1*/ X! strprerror(int fmt, ...) X { X va_list ap; X char buf[BUFLEN]; X X errprep(fmt, buf); X! va_start(ap, fmt); X vprintf(buf, ap); X va_end(ap); X } X*************** X*** 50,65 **** X X /* extracted string front end for sprintf() */ X /*VARARGS1*/ X! strsrerror(fmt, obuf, va_alist) X! int fmt; X! char *obuf; X! va_dcl X { X char buf[BUFLEN]; X va_list ap; X X errprep(fmt, buf); X! va_start(ap); X vsprintf(obuf, buf, ap); X va_end(ap); X } X--- 49,61 ---- X X /* extracted string front end for sprintf() */ X /*VARARGS1*/ X! strsrerror(int fmt, char *obuf, ...) X { X char buf[BUFLEN]; X va_list ap; X X errprep(fmt, buf); X! va_start(ap, obuf); X vsprintf(obuf, buf, ap); X va_end(ap); X } X*************** X*** 66,80 **** X X /* extracted string front end for fprintf() */ X /*VARARGS1*/ X! strfrerror(fmt, fd, va_alist) X! int fmt, fd; X! va_dcl X { X va_list ap; X char buf[BUFLEN]; X X errprep(fmt, buf); X! va_start(ap); X vfprintf(fd, buf, ap); X va_end(ap); X } X--- 62,74 ---- X X /* extracted string front end for fprintf() */ X /*VARARGS1*/ X! strfrerror(int fmt, FILE *fd, ...) X { X va_list ap; X char buf[BUFLEN]; X X errprep(fmt, buf); X! va_start(ap, fd); X vfprintf(fd, buf, ap); X va_end(ap); X } X*************** X*** 140,142 **** X--- 134,147 ---- X errprep(fmt, buf); X message(num, buf, a, b, c, d, e); X } X+ X+ strputlinerror(str, fp, m) X+ int str; X+ FILE *fp; X+ struct mailer *m; X+ { X+ char buf[BUFLEN]; X+ X+ errprep(str, buf); X+ putline(buf, fp, m); X+ } X*** ./usr/src/usr.sbin/sendmail.MX/src/deliver.c.old Sun Jan 31 18:01:22 1993 X--- ./usr/src/usr.sbin/sendmail.MX/src/deliver.c Mon Sep 21 07:10:38 2026 X*************** X*** 20,34 **** X */ X X #if !defined(lint) && !defined(NOSCCS) X! static char sccsid[] = "@(#)deliver.c 5.21 (Berkeley) 5/5/88"; X #endif /* not lint */ X X #include X- #include X #include X #include X #include X #include X #include X #include X X--- 20,34 ---- X */ X X #if !defined(lint) && !defined(NOSCCS) X! static char sccsid[] = "@(#)deliver.c 5.22 (2.11BSD) 2026/9/19"; X #endif /* not lint */ X X #include X #include X #include X #include X #include X+ #include X #include X #include X X*************** X*** 565,571 **** X if (pid >= 0)\ X break;\ X if (i > 0)\ X! sleep((unsigned) NFORKTRIES - i);\ X }\ X } X /* X--- 565,571 ---- X if (pid >= 0)\ X break;\ X if (i > 0)\ X! xsleep(NFORKTRIES - i);\ X }\ X } X /* X*** ./usr/src/usr.sbin/sendmail.MX/src/util.c.old Fri Oct 3 03:06:51 1997 X--- ./usr/src/usr.sbin/sendmail.MX/src/util.c Sat Sep 19 15:05:53 2026 X*************** X*** 9,15 **** X */ X X #if !defined(lint) && !defined(NOSCCS) X! static char SccsId[] = "@(#)util.c 5.8.3 (2.11BSD GTE) 1997/10/3"; X #endif X X # include X--- 9,15 ---- X */ X X #if !defined(lint) && !defined(NOSCCS) X! static char SccsId[] = "@(#)util.c 5.8.4 (2.11BSD) 2026/9/19"; X #endif X X # include X*************** X*** 58,64 **** X } X *q = '\0'; X } X! /* X ** QSTRLEN -- give me the string length assuming 0200 bits add a char X ** X ** Parameters: X--- 58,65 ---- X } X *q = '\0'; X } X! X! /* X ** QSTRLEN -- give me the string length assuming 0200 bits add a char X ** X ** Parameters: X*************** X*** 85,91 **** X } X return (l); X } X! /* X ** CAPITALIZE -- return a copy of a string, properly capitalized. X ** X ** Parameters: X--- 86,93 ---- X } X return (l); X } X! X! /* X ** CAPITALIZE -- return a copy of a string, properly capitalized. X ** X ** Parameters: X*************** X*** 121,127 **** X *p = '\0'; X return (buf); X } X! /* X ** XALLOC -- Allocate memory and bitch wildly on failure. X ** X ** THIS IS A CLUDGE. This should be made to give a proper X--- 123,130 ---- X *p = '\0'; X return (buf); X } X! X! /* X ** XALLOC -- Allocate memory and bitch wildly on failure. X ** X ** THIS IS A CLUDGE. This should be made to give a proper X*************** X*** 152,158 **** X } X return (p); X } X! /* X ** COPYPLIST -- copy list of pointers. X ** X ** This routine is the equivalent of newstr for lists of X--- 155,162 ---- X } X return (p); X } X! X! /* X ** COPYPLIST -- copy list of pointers. X ** X ** This routine is the equivalent of newstr for lists of X*************** X*** 195,201 **** X X return (newvp); X } X! /* X ** PRINTAV -- print argument vector. X ** X ** Parameters: X--- 199,206 ---- X X return (newvp); X } X! X! /* X ** PRINTAV -- print argument vector. X ** X ** Parameters: X*************** X*** 221,227 **** X } X (void) putchar('\n'); X } X! /* X ** LOWER -- turn letter into lower case. X ** X ** Parameters: X--- 226,233 ---- X } X (void) putchar('\n'); X } X! X! /* X ** LOWER -- turn letter into lower case. X ** X ** Parameters: X*************** X*** 242,248 **** X c = c - 'A' + 'a'; X return (c); X } X! /* X ** XPUTS -- put string doing control escapes. X ** X ** Parameters: X--- 248,255 ---- X c = c - 'A' + 'a'; X return (c); X } X! X! /* X ** XPUTS -- put string doing control escapes. X ** X ** Parameters: X*************** X*** 283,289 **** X (void) putchar('"'); X (void) fflush(stdout); X } X! /* X ** MAKELOWER -- Translate a line into lower case X ** X ** Parameters: X--- 290,297 ---- X (void) putchar('"'); X (void) fflush(stdout); X } X! X! /* X ** MAKELOWER -- Translate a line into lower case X ** X ** Parameters: X*************** X*** 311,317 **** X if (isascii(c) && isupper(c)) X *p = c - 'A' + 'a'; X } X! /* X ** SAMEWORD -- return TRUE if the words are the same X ** X ** Ignores case. X--- 319,326 ---- X if (isascii(c) && isupper(c)) X *p = c - 'A' + 'a'; X } X! X! /* X ** SAMEWORD -- return TRUE if the words are the same X ** X ** Ignores case. X*************** X*** 344,350 **** X } while (ca != '\0' && ca == cb); X return (ca == cb); X } X! /* X ** BUILDFNAME -- build full name from gecos style entry. X ** X ** This routine interprets the strange entry that would appear X--- 353,360 ---- X } while (ca != '\0' && ca == cb); X return (ca == cb); X } X! X! /* X ** BUILDFNAME -- build full name from gecos style entry. X ** X ** This routine interprets the strange entry that would appear X*************** X*** 386,392 **** X } X *bp = '\0'; X } X! /* X ** SAFEFILE -- return true if a file exists and is safe for a user. X ** X ** Parameters: X--- 396,403 ---- X } X *bp = '\0'; X } X! X! /* X ** SAFEFILE -- return true if a file exists and is safe for a user. X ** X ** Parameters: X*************** X*** 416,422 **** X errno = 0; X return (FALSE); X } X! /* X ** FIXCRLF -- fix in line. X ** X ** Looks for the combination and turns it into the X--- 427,434 ---- X errno = 0; X return (FALSE); X } X! X! /* X ** FIXCRLF -- fix in line. X ** X ** Looks for the combination and turns it into the X*************** X*** 450,456 **** X *p++ = '\n'; X *p = '\0'; X } X! /* X ** DFOPEN -- determined file open X ** X ** This routine has the semantics of fopen, except that it will X--- 462,469 ---- X *p++ = '\n'; X *p = '\0'; X } X! X! /* X ** DFOPEN -- determined file open X ** X ** This routine has the semantics of fopen, except that it will X*************** X*** 469,475 **** X X for (tries = 0; tries < 10; tries++) X { X! sleep((unsigned) (10 * tries)); X errno = 0; X fp = fopen(filename, mode); X if (fp != NULL) X--- 482,488 ---- X X for (tries = 0; tries < 10; tries++) X { X! xsleep(10 * tries); X errno = 0; X fp = fopen(filename, mode); X if (fp != NULL) X*************** X*** 480,486 **** X errno = 0; X return (fp); X } X! /* X ** PUTLINE -- put a line like fputs obeying SMTP conventions X ** X ** This routine always guarantees outputing a newline (or CRLF, X--- 493,500 ---- X errno = 0; X return (fp); X } X! X! /* X ** PUTLINE -- put a line like fputs obeying SMTP conventions X ** X ** This routine always guarantees outputing a newline (or CRLF, X*************** X*** 552,558 **** X l++; X } while (l[0] != '\0'); X } X! /* X ** XUNLINK -- unlink a file, doing logging as appropriate. X ** X ** Parameters: X--- 566,573 ---- X l++; X } while (l[0] != '\0'); X } X! X! /* X ** XUNLINK -- unlink a file, doing logging as appropriate. X ** X ** Parameters: X*************** X*** 581,587 **** X syslog(LOG_DEBUG, "%s: unlink-fail %d", f, errno); X # endif LOG X } X! /* X ** SFGETS -- "safe" fgets -- times out and ignores random interrupts. X ** X ** Parameters: X--- 596,603 ---- X syslog(LOG_DEBUG, "%s: unlink-fail %d", f, errno); X # endif LOG X } X! X! /* X ** SFGETS -- "safe" fgets -- times out and ignores random interrupts. X ** X ** Parameters: X*************** X*** 656,662 **** X { X longjmp(CtxReadTimeout, 1); X } X! /* X ** FGETFOLDED -- like fgets, but know about folded lines. X ** X ** Parameters: X--- 672,679 ---- X { X longjmp(CtxReadTimeout, 1); X } X! X! /* X ** FGETFOLDED -- like fgets, but know about folded lines. X ** X ** Parameters: X*************** X*** 712,718 **** X } X return (NULL); X } X! /* X ** CURTIME -- return current time. X ** X ** Parameters: X--- 729,736 ---- X } X return (NULL); X } X! X! /* X ** CURTIME -- return current time. X ** X ** Parameters: X*************** X*** 733,739 **** X (void) time(&t); X return (t); X } X! /* X ** ATOBOOL -- convert a string representation to boolean. X ** X ** Defaults to "TRUE" X--- 751,758 ---- X (void) time(&t); X return (t); X } X! X! /* X ** ATOBOOL -- convert a string representation to boolean. X ** X ** Defaults to "TRUE" X*************** X*** 757,763 **** X return (TRUE); X return (FALSE); X } X! /* X ** ATOOCT -- convert a string representation to octal. X ** X ** Parameters: X--- 776,783 ---- X return (TRUE); X return (FALSE); X } X! X! /* X ** ATOOCT -- convert a string representation to octal. X ** X ** Parameters: X*************** X*** 780,786 **** X i = (i << 3) | (*s++ - '0'); X return (i); X } X! /* X ** WAITFOR -- wait for a particular process id. X ** X ** Parameters: X--- 800,807 ---- X i = (i << 3) | (*s++ - '0'); X return (i); X } X! X! /* X ** WAITFOR -- wait for a particular process id. X ** X ** Parameters: X*************** X*** 809,815 **** X st = -1; X return (st); X } X! /* X ** BITINTERSECT -- tell if two bitmaps intersect X ** X ** Parameters: X--- 830,837 ---- X st = -1; X return (st); X } X! X! /* X ** BITINTERSECT -- tell if two bitmaps intersect X ** X ** Parameters: X*************** X*** 835,841 **** X return (TRUE); X return (FALSE); X } X! /* X ** BITZEROP -- tell if a bitmap is all zero X ** X ** Parameters: X--- 857,864 ---- X return (TRUE); X return (FALSE); X } X! X! /* X ** BITZEROP -- tell if a bitmap is all zero X ** X ** Parameters: X*************** X*** 860,866 **** X return (FALSE); X return (TRUE); X } X! /* X ** CLEANSTRCPY -- copy string keeping out bogus characters X ** X ** Parameters: X--- 883,890 ---- X return (FALSE); X return (TRUE); X } X! X! /* X ** CLEANSTRCPY -- copy string keeping out bogus characters X ** X ** Parameters: X*************** X*** 896,902 **** X } X *t = '\0'; X } X! /* X ** DENLSTRING -- convert newlines in a string to spaces X ** X ** Parameters: X--- 920,927 ---- X } X *t = '\0'; X } X! X! /* X ** DENLSTRING -- convert newlines in a string to spaces X ** X ** Parameters: X*** ./usr/src/usr.sbin/sendmail.MX/src/clock.c.old Fri Oct 3 03:14:28 1997 X--- ./usr/src/usr.sbin/sendmail.MX/src/clock.c Tue Sep 22 09:26:01 2026 X*************** X*** 9,15 **** X */ X X #if !defined(lint) && !defined(NOSCCS) X! static char SccsId[] = "@(#)clock.c 5.4.2 (2.11BSD) 1997/10/3"; X #endif X X # include "sendmail.h" X--- 9,15 ---- X */ X X #if !defined(lint) && !defined(NOSCCS) X! static char SccsId[] = "@(#)clock.c 5.4.3 (2.11BSD) 2026/9/19"; X #endif X X # include "sendmail.h" X*************** X*** 79,85 **** X tick(); X return (ev); X } X! /* X ** CLREVENT -- remove an event from the event queue. X ** X ** Parameters: X--- 79,86 ---- X tick(); X return (ev); X } X! X! /* X ** CLREVENT -- remove an event from the event queue. X ** X ** Parameters: X*************** X*** 122,128 **** X /* restore clocks and pick up anything spare */ X tick(); X } X! /* X ** TICK -- take a clock tick X ** X ** Called by the alarm clock. This routine runs events as needed. X--- 123,130 ---- X /* restore clocks and pick up anything spare */ X tick(); X } X! X! /* X ** TICK -- take a clock tick X ** X ** Called by the alarm clock. This routine runs events as needed. X*************** X*** 137,142 **** X--- 139,145 ---- X ** calls the next function in EventQueue. X */ X X+ void X tick() X { X register time_t now; X*************** X*** 196,226 **** X if (EventQueue != NULL) X (void) alarm((unsigned) (EventQueue->ev_time - now)); X } X! /* X! ** SLEEP -- a version of sleep that works with this stuff X! ** X! ** Because sleep uses the alarm facility, I must reimplement X! ** it here. X! ** X! ** Parameters: X! ** intvl -- time to sleep. X! ** X! ** Returns: X! ** none. X! ** X! ** Side Effects: X! ** waits for intvl time. However, other events can X! ** be run during that interval. X */ X X static bool SleepDone; X X! unsigned int X! sleep(intvl) X! unsigned int intvl; X { X! extern endsleep(); X X if (intvl == 0) X return; X SleepDone = FALSE; X--- 199,238 ---- X if (EventQueue != NULL) X (void) alarm((unsigned) (EventQueue->ev_time - now)); X } X! X! /* X! * XSLEEP -- a version of sleep that works with this stuff X! * X! * Because sleep uses the alarm facility, I must reimplement X! * it here. X! * X! * Eric should have known that the same name as a system library X! * function is BAD coding practice. The function is renamed to X! * xsleep() to avoid conflict with unistd.h X! * X! * Parameters: X! * intvl -- time to sleep. X! * X! * Returns: X! * Unlike the system sleep this function does not return the X! * unslept time. X! * X! * Side Effects: X! * waits for intvl time. However, other events can X! * be run during that interval. X */ X X static bool SleepDone; X X! endsleep() X { X! SleepDone = TRUE; X! } X X+ void X+ xsleep(intvl) X+ int intvl; X+ { X if (intvl == 0) X return; X SleepDone = FALSE; X*************** X*** 227,235 **** X (void) setevent((time_t) intvl, endsleep, 0); X while (!SleepDone) X pause(); X- } X- X- endsleep() X- { X- SleepDone = TRUE; X } X--- 239,242 ---- X*** ./usr/src/usr.sbin/sendmail.MX/src/alias.c.old Wed Sep 14 12:11:18 1988 X--- ./usr/src/usr.sbin/sendmail.MX/src/alias.c Tue Sep 22 09:31:22 2026 X*************** X*** 16,24 **** X X #if !defined(lint) && !defined(NOSCCS) X #ifdef DBM X! static char sccsid[] = "@(#)alias.c 5.15 (Berkeley) 4/1/88 (with DBM)"; X #else X! static char sccsid[] = "@(#)alias.c 5.15 (Berkeley) 4/1/88 (without DBM)"; X #endif X #endif /* not lint */ X X--- 16,24 ---- X X #if !defined(lint) && !defined(NOSCCS) X #ifdef DBM X! static char sccsid[] = "@(#)alias.c 5.16 (2.11BSD) 2026/9/19 (with DBM)"; X #else X! static char sccsid[] = "@(#)alias.c 5.16 (2.11BSD) 2026/9/19 (without DBM)"; X #endif X #endif /* not lint */ X X*************** X*** 216,225 **** X ** Only works with new DBM -- old one will X ** just consume file descriptors forever. X ** If you have a dbmclose() it can be X! ** added before the sleep(30). X */ X X! sleep(30); X # ifdef NDBM X dbminit(aliasfile); X # endif NDBM X--- 216,225 ---- X ** Only works with new DBM -- old one will X ** just consume file descriptors forever. X ** If you have a dbmclose() it can be X! ** added before the xsleep(30). X */ X X! xsleep(30); X # ifdef NDBM X dbminit(aliasfile); X # endif NDBM X*************** X*** 316,322 **** X bool skipping; X int naliases, bytes, longest; X FILE *af; X! int (*oldsigint)(); X ADDRESS al, bl; X register STAB *s; X char line[BUFSIZ]; X--- 316,322 ---- X bool skipping; X int naliases, bytes, longest; X FILE *af; X! sig_t oldsigint; X ADDRESS al, bl; X register STAB *s; X char line[BUFSIZ]; X*** ./usr/src/usr.sbin/sendmail.MX/src/daemon.c.old Fri Oct 3 02:49:06 1997 X--- ./usr/src/usr.sbin/sendmail.MX/src/daemon.c Tue Sep 22 09:27:12 2026 X*************** X*** 14,30 **** X X # ifndef DAEMON X #if !defined(lint) && !defined(NOSCCS) X! static char SccsId[] = "@(#)daemon.c 5.21 (2.11BSD) 1997/10/3 (w/o daemon mode)"; X # endif X # else X X # include X! # include X # include X # include X X #if !defined(lint) && !defined(NOSCCS) X! static char SccsId[] = "@(#)daemon.c 5.21 (2.11BSD) 1997/10/3 (with daemon mode)"; X # endif X X /* X--- 14,30 ---- X X # ifndef DAEMON X #if !defined(lint) && !defined(NOSCCS) X! static char SccsId[] = "@(#)daemon.c 5.22 (2.11BSD) 2026/9/19 (w/o daemon mode)"; X # endif X # else X X # include X! # include X # include X # include X X #if !defined(lint) && !defined(NOSCCS) X! static char SccsId[] = "@(#)daemon.c 5.22 (2.11BSD) 2026/9/19 (with daemon mode)"; X # endif X X /* X*************** X*** 85,91 **** X int t; X register struct servent *sp; X int on = 1; X! extern reapchild(); X X /* X ** Set up the address for the mailer. X--- 85,91 ---- X int t; X register struct servent *sp; X int on = 1; X! extern void reapchild(); X X /* X ** Set up the address for the mailer. X*************** X*** 162,168 **** X X /* see if we are rejecting connections */ X while (getla() > RefuseLA) X! sleep(5); X X /* wait for a connection */ X do X--- 162,168 ---- X X /* see if we are rejecting connections */ X while (getla() > RefuseLA) X! xsleep(5); X X /* wait for a connection */ X do X*************** X*** 174,180 **** X if (t < 0) X { X syserr("getrequests: accept"); X! sleep(5); X continue; X } X X--- 174,180 ---- X if (t < 0) X { X syserr("getrequests: accept"); X! xsleep(5); X continue; X } X X*************** X*** 191,197 **** X if (pid < 0) X { X syserr("daemon: cannot fork"); X! sleep(10); X (void) close(t); X continue; X } X--- 191,197 ---- X if (pid < 0) X { X syserr("daemon: cannot fork"); X! xsleep(10); X (void) close(t); X continue; X } X*** ./usr/src/usr.sbin/sendmail.MX/src/main.c.old Fri Oct 3 12:24:45 1997 X--- ./usr/src/usr.sbin/sendmail.MX/src/main.c Tue Sep 22 09:28:02 2026 X*************** X*** 19,25 **** X "@(#) Copyright (c) 1988 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)main.c 5.17.2 (2.11BSD) 1997/10/3"; X #endif X X #define _DEFINE X--- 19,25 ---- X "@(#) Copyright (c) 1988 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)main.c 5.17.3 (2.11BSD) 2026/9/22"; X #endif X X #define _DEFINE X*************** X*** 112,118 **** X extern time_t convtime(); X extern putheader(), putbody(); X extern ENVELOPE *newenvelope(); X! extern intsig(); X extern char **myhostname(); X extern char *arpadate(); X extern char **environ; X--- 112,118 ---- X extern time_t convtime(); X extern putheader(), putbody(); X extern ENVELOPE *newenvelope(); X! extern void intsig(); X extern char **myhostname(); X extern char *arpadate(); X extern char **environ; X*** ./usr/src/usr.sbin/sendmail.MX/src/queue.c.old Wed Sep 14 17:20:48 1988 X--- ./usr/src/usr.sbin/sendmail.MX/src/queue.c Tue Sep 22 09:29:17 2026 X*************** X*** 18,26 **** X X #if !defined(lint) && !defined(NOSCCS) X #ifdef QUEUE X! static char sccsid[] = "@(#)queue.c 5.23 (Berkeley) 3/13/88 (with queueing)"; X #else X! static char sccsid[] = "@(#)queue.c 5.23 (Berkeley) 3/13/88 (without queueing)"; X #endif X #endif /* not lint */ X X--- 18,26 ---- X X #if !defined(lint) && !defined(NOSCCS) X #ifdef QUEUE X! static char sccsid[] = "@(#)queue.c 5.24 (2.11BSD) 2026/9/22 (with queueing)"; X #else X! static char sccsid[] = "@(#)queue.c 5.24 (2.11BSD) 2026/9/22(without queueing)"; X #endif X #endif /* not lint */ X X*************** X*** 296,302 **** X pid = dofork(); X if (pid != 0) X { X! extern reapchild(); X X /* parent -- pick up intermediate zombie */ X #ifndef SIGCHLD X--- 296,302 ---- X pid = dofork(); X if (pid != 0) X { X! extern void reapchild(); X X /* parent -- pick up intermediate zombie */ X #ifndef SIGCHLD X*** ./usr/src/usr.sbin/sendmail.MX/src/Version.c.old Wed Sep 14 10:21:03 1988 X--- ./usr/src/usr.sbin/sendmail.MX/src/Version.c Fri May 1 17:57:44 2026 X*************** X*** 16,24 **** X X #if !defined(lint) && !defined(NOSCCS) X static char sccsid[] = "@(#)version.c 5.59 (Berkeley) 3/13/88"; X! #endif /* not lint */ X X! char Version[] = "5.59"; X X # ifdef COMMENT X X--- 16,24 ---- X X #if !defined(lint) && !defined(NOSCCS) X static char sccsid[] = "@(#)version.c 5.59 (Berkeley) 3/13/88"; X! #endif X X! char *Version = "5.59"; X X # ifdef COMMENT X X*** ./usr/src/usr.sbin/sendmail.MX/src/usersmtp.c.old Fri Oct 3 12:52:17 1997 X--- ./usr/src/usr.sbin/sendmail.MX/src/usersmtp.c Fri May 1 17:59:49 2026 X*************** X*** 41,47 **** X X char SmtpMsgBuffer[MAXLINE]; /* buffer for commands */ X char SmtpReplyBuffer[MAXLINE]; /* buffer for replies */ X! char SmtpError[MAXLINE] = ""; /* save failure error messages */ X FILE *SmtpOut; /* output file */ X FILE *SmtpIn; /* input file */ X int SmtpPid; /* pid of mailer */ X--- 41,47 ---- X X char SmtpMsgBuffer[MAXLINE]; /* buffer for commands */ X char SmtpReplyBuffer[MAXLINE]; /* buffer for replies */ X! char SmtpError[MAXLINE]; /* save failure error messages */ X FILE *SmtpOut; /* output file */ X FILE *SmtpIn; /* input file */ X int SmtpPid; /* pid of mailer */ X*** ./usr/src/usr.sbin/sendmail.MX/Makefile.old Fri Nov 28 21:16:13 2025 X--- ./usr/src/usr.sbin/sendmail.MX/Makefile Fri May 1 17:29:54 2026 X*************** X*** 9,17 **** X # software without specific prior written permission. This software X # is provided ``as is'' without express or implied warranty. X # X! # @(#)Makefile 4.14 (2.11BSD) 2025/11/28 X # X! SUBDIR= lib src aux X X all: ${SUBDIR} X X--- 9,17 ---- X # software without specific prior written permission. This software X # is provided ``as is'' without express or implied warranty. X # X! # @(#)Makefile 4.15 (2.11BSD) 2026/5/1 X # X! SUBDIR= lib src X X all: ${SUBDIR} X X*** ./usr/src/usr.sbin/sendmail.MX/READ_ME.old Thu May 5 16:23:19 1988 X--- ./usr/src/usr.sbin/sendmail.MX/READ_ME Fri May 1 20:59:58 2026 X*************** X*** 18,26 **** X adb A set of adb(1) scripts for printing out certain X sendmail data structures. X adm Administrativia. X- aux Files that represent programs that are not really X- "part" of sendmail, or old versions of some files X- in src for use by people on other system types. X cf The configuration files for Berkeley, plus a few X prototype configurations for basic installation X types. X--- 18,23 ---- X*************** X*** 32,39 **** X for libc.a. X md Some m4 files used to isolate machine dependencies. X src The source for the sendmail program itself. X- test Some files used for testing -- mostly these are X- shell files intended as the targets for aliasing. X X The following are the known major problems and their Problem Report X number: X--- 29,34 ---- X*************** X*** 61,64 **** X Eric Allman X Britton-Lee, Inc. X X! @(#)READ_ME 4.1 7/25/83 X--- 56,59 ---- X Eric Allman X Britton-Lee, Inc. X X! @(#)READ_ME 4.2 (2.11BSD) 7/25/83 X*** ./usr/src/usr.sbin/inetd/inetd.c.old Sun Sep 25 21:49:02 2022 X--- ./usr/src/usr.sbin/inetd/inetd.c Thu Sep 24 08:20:03 2026 X*************** X*** 36,42 **** X "@(#) Copyright (c) 1983, 1991, 1993, 1994\n\ X The Regents of the University of California. All rights reserved.\n"; X X! static char sccsid[] = "@(#)inetd.c 8.4.2 (2.11BSD) 2022/9/17"; X #endif X X /* X--- 36,42 ---- X "@(#) Copyright (c) 1983, 1991, 1993, 1994\n\ X The Regents of the University of California. All rights reserved.\n"; X X! static char sccsid[] = "@(#)inetd.c 8.4.3 (2.11BSD) 2026/9/13"; X #endif X X /* X*************** X*** 110,116 **** X #include X #include X X! #include "pathnames.h" X X #define TOOMANY 40 /* don't start more than TOOMANY */ X #define CNT_INTVL 60 /* servers in CNT_INTVL sec. */ X--- 110,116 ---- X #include X #include X X! #define _PATH_INETDCONF "/etc/inetd.conf" X X #define TOOMANY 40 /* don't start more than TOOMANY */ X #define CNT_INTVL 60 /* servers in CNT_INTVL sec. */ X*************** X*** 166,172 **** X void chargen_dg __P((int, struct servtab *)); X void chargen_stream __P((int, struct servtab *)); X void close_sep __P((struct servtab *)); X! int config __P((int)); X void daytime_dg __P((int, struct servtab *)); X void daytime_stream __P((int, struct servtab *)); X void discard_dg __P((int, struct servtab *)); X--- 166,172 ---- X void chargen_dg __P((int, struct servtab *)); X void chargen_stream __P((int, struct servtab *)); X void close_sep __P((struct servtab *)); X! void config __P((int)); X void daytime_dg __P((int, struct servtab *)); X void daytime_stream __P((int, struct servtab *)); X void discard_dg __P((int, struct servtab *)); X*************** X*** 182,189 **** X char *newstr __P((char *)); X char *nextline __P((FILE *)); X void print_service __P((char *, struct servtab *)); X! int reapchild __P((int)); X! int retry __P((int)); X int setconfig __P((void)); X void setup __P((struct servtab *)); X char *sskip __P((char **)); X--- 182,189 ---- X char *newstr __P((char *)); X char *nextline __P((FILE *)); X void print_service __P((char *, struct servtab *)); X! void reapchild __P((int)); X! void retry __P((int)); X int setconfig __P((void)); X void setup __P((struct servtab *)); X char *sskip __P((char **)); X*************** X*** 398,407 **** X } X sigsetmask(0L); X if (pid == 0) { X- #ifndef pdp11 X- if (debug && dofork) X- setsid(); X- #endif X if (dofork) { X if (debug) X fprintf(stderr, "+ Closing from %d\n", X--- 398,403 ---- X*************** X*** 459,465 **** X } X } X X! int X reapchild(signo) X int signo; X { X--- 455,461 ---- X } X } X X! void X reapchild(signo) X int signo; X { X*************** X*** 490,496 **** X } X } X X! int X config(signo) X int signo; X { X--- 486,492 ---- X } X } X X! void X config(signo) X int signo; X { X*************** X*** 587,593 **** X (void) sigsetmask(omask); X } X X! int X retry(signo) X int signo; X { X--- 583,589 ---- X (void) sigsetmask(omask); X } X X! void X retry(signo) X int signo; X { X*************** X*** 703,709 **** X X if (fconfig != NULL) { X fseek(fconfig, 0L, SEEK_SET); X! return (1); X } X fconfig = fopen(CONFIG, "r"); X return (fconfig != NULL); X--- 699,705 ---- X X if (fconfig != NULL) { X fseek(fconfig, 0L, SEEK_SET); X! return(1); X } X fconfig = fopen(CONFIG, "r"); X return (fconfig != NULL); X*** ./usr/src/usr.sbin/makewhatis/Makefile.old Tue Nov 25 18:45:45 2025 X--- ./usr/src/usr.sbin/makewhatis/Makefile Wed Sep 16 10:25:21 2026 X*************** X*** 4,18 **** X # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X X! all: X X clean: X X! depend: X! X! install: X! install -c -o root -m 755 makewhatis.sh /usr/sbin/makewhatis X! X! lint: X! X! tags: X--- 4,17 ---- X # @(#)Makefile 1.1 (2.11BSD) 2025/11/25 X # X X! makewhatis.0: makewhatis.8 X! /usr/man/manroff makewhatis.8 > makewhatis.0 X X+ all: makewhatis.0 X+ X clean: X+ rm -f makewhatis.0 X X! install: makewhatis.0 X! install -c -o root -g staff -m 755 makewhatis.sh /usr/sbin/makewhatis X! install -c -m 444 -o root -g staff makewhatis.0 /usr/man/cat8 X*** ./usr/src/usr.sbin/quotaon/quotaon.c.old Sun Jan 21 18:58:59 1996 X--- ./usr/src/usr.sbin/quotaon/quotaon.c Wed Sep 16 06:38:17 2026 X*************** X*** 39,46 **** X "@(#) Copyright (c) 1980, 1990, 1993\n\ X The Regents of the University of California. All rights reserved.\n"; X X! static char sccsid[] = "@(#)quotaon.c 8.1.1 (2.11BSD) 1996/1/21"; X! #endif /* not lint */ X X /* X * Turn quota on/off for a filesystem. X--- 39,46 ---- X "@(#) Copyright (c) 1980, 1990, 1993\n\ X The Regents of the University of California. All rights reserved.\n"; X X! static char sccsid[] = "@(#)quotaon.c 8.1.2 (2.11BSD) 2026/9/16"; X! #endif X X /* X * Turn quota on/off for a filesystem. X*************** X*** 53,82 **** X #include X #include X X char *qfname = "quotas"; X X int aflag; /* all file systems */ X int vflag; /* verbose */ X X main(argc, argv) X int argc; X char **argv; X { X register struct fstab *fs; X! char ch, *qfnp, *whoami; X long done = 0; X int i, argnum, offmode = 0, errs = 0; X X! whoami = rindex(*argv, '/') + 1; X! if (whoami == (char *)1) X! whoami = *argv; X! if (strcmp(whoami, "quotaoff") == 0) X offmode++; X! else if (strcmp(whoami, "quotaon") != 0) { X! fprintf(stderr, "Name must be quotaon or quotaoff not %s\n", X! whoami); X! exit(1); X! } X while ((ch = getopt(argc, argv, "avug")) != EOF) { X switch(ch) { X case 'a': X--- 53,86 ---- X #include X #include X X+ extern char *__progname; X+ X char *qfname = "quotas"; X X int aflag; /* all file systems */ X int vflag; /* verbose */ X X+ void X+ usage() X+ { X+ X+ errx(1, "[-v] -a\n\t [-v] filesys ..."); X+ } X+ X main(argc, argv) X int argc; X char **argv; X { X register struct fstab *fs; X! char ch, *qfnp; X long done = 0; X int i, argnum, offmode = 0, errs = 0; X X! if (strcmp(__progname, "quotaoff") == 0) X offmode++; X! else if (strcmp(__progname, "quotaon") != 0) X! errx(1, "Name must be quotaon or quotaoff not %s", __progname); X! X while ((ch = getopt(argc, argv, "avug")) != EOF) { X switch(ch) { X case 'a': X*************** X*** 86,98 **** X vflag++; X break; X default: X! usage(whoami); X } X } X argc -= optind; X argv += optind; X if (argc <= 0 && !aflag) X! usage(whoami); X setfsent(); X while ((fs = getfsent()) != NULL) { X if (strcmp(fs->fs_type, FSTAB_RQ) == 0) /* XXX compatibility */ X--- 90,103 ---- X vflag++; X break; X default: X! usage(); X } X } X argc -= optind; X argv += optind; X if (argc <= 0 && !aflag) X! usage(); X! X setfsent(); X while ((fs = getfsent()) != NULL) { X if (strcmp(fs->fs_type, FSTAB_RQ) == 0) /* XXX compatibility */ X*************** X*** 118,132 **** X fprintf(stderr, "%s not found in fstab\n", X argv[i]); X exit(errs); X- } X- X- usage(whoami) X- char *whoami; X- { X- X- fprintf(stderr, "Usage:\n\t%s [-v] -a\n", whoami); X- fprintf(stderr, "\t%s [-v] filesys ...\n", whoami); X- exit(1); X } X X quotaonoff(fs, offmode, qfpathname) X--- 123,128 ---- X*** ./usr/src/usr.sbin/syslogd/syslogd.c.old Sat Sep 28 08:11:17 2024 X--- ./usr/src/usr.sbin/syslogd/syslogd.c Tue Sep 22 01:16:21 2026 X*************** X*** 157,163 **** X sigset_t oset; X struct sigaction sigact; X char line[MSG_BSIZE + 1]; X! extern int die(), domark(), reapchild(), init(); X X while (--argc > 0) { X p = *++argv; X--- 157,163 ---- X sigset_t oset; X struct sigaction sigact; X char line[MSG_BSIZE + 1]; X! extern void die(), domark(), reapchild(), init(); X X while (--argc > 0) { X p = *++argv; X*************** X*** 709,714 **** X--- 709,715 ---- X reenter = 0; X } X X+ void X reapchild() X { X union wait status; X*************** X*** 745,750 **** X--- 746,752 ---- X return (hp->h_name); X } X X+ void X domark() X { X X*************** X*** 782,787 **** X--- 784,790 ---- X logmsg(LOG_SYSLOG|LOG_ERR, buf, LocalHostName, ADDDATE); X } X X+ void X die(sig) X { X char buf[100]; X*************** X*** 801,806 **** X--- 804,810 ---- X */ X X /* ARGSUSED */ X+ void X init(sig) X int sig; /* signal number */ X { X*** ./usr/src/usr.sbin/update/update.8.old Mon Nov 18 00:18:39 1996 X--- ./usr/src/usr.sbin/update/update.8 Sat Sep 19 16:53:01 2026 X*************** X*** 1,4 **** X! .\" @(#)update.8 6.1.1 (2.11BSD) 1996/11/17 X .\" X .TH UPDATE 8 "November 17, 1996" X .AT 3 X--- 1,4 ---- X! .\" @(#)update.8 6.1.2 (2.11BSD) 2026/9/19 X .\" X .TH UPDATE 8 "November 17, 1996" X .AT 3 X*************** X*** 7,13 **** X .SH SYNOPSIS X .B update X .SH DESCRIPTION X! .I Update X is a program that executes X the X .IR sync (2) X--- 7,13 ---- X .SH SYNOPSIS X .B update X .SH DESCRIPTION X! .B update X is a program that executes X the X .IR sync (2) X*************** X*** 21,27 **** X sync(2), sync(8), init(8), rc(8) X .SH BUGS X With X! .I update X running, X if the CPU is X halted just as X--- 21,27 ---- X sync(2), sync(8), init(8), rc(8) X .SH BUGS X With X! .B update X running, X if the CPU is X halted just as X*************** X*** 31,39 **** X a file system can be damaged. X This is partially due to DEC hardware that X writes zeros when NPR requests fail. X- A fix would be to have X- .IR sync (8) X- temporarily increment the system time by at X- least 30 seconds to trigger the execution of X- .I update. X- This would give 30 seconds grace to halt the CPU. X--- 31,33 ---- X*** ./usr/src/usr.sbin/cron/compat.c.old Tue Aug 17 01:25:49 1999 X--- ./usr/src/usr.sbin/cron/compat.c Sun May 10 15:43:53 2026 X*************** X*** 15,22 **** X * Paul Vixie uunet!decwrl!vixie!paul X */ X X! #if !defined(lint) && !defined(LINT) X! static char rcsid[] = "$Id: compat.c,v 1.6 1994/01/15 20:43:43 vixie Exp $"; X #endif X X /* vix 30dec93 [broke this out of misc.c - see RCS log for history] X--- 15,22 ---- X * Paul Vixie uunet!decwrl!vixie!paul X */ X X! #if !defined(lint) && defined(DOSCCS) X! char sccsid[] = "@(#)compat.c 1.7 (2.11BSD) 2026/5/10" X #endif X X /* vix 30dec93 [broke this out of misc.c - see RCS log for history] X*** ./usr/src/usr.sbin/cron/database.c.old Tue Aug 17 01:26:19 1999 X--- ./usr/src/usr.sbin/cron/database.c Sun May 10 15:41:50 2026 X*************** X*** 15,41 **** X * Paul Vixie uunet!decwrl!vixie!paul X */ X X! #if !defined(lint) && !defined(LINT) X! static char rcsid[] = "$Id: database.c,v 2.8 1994/01/15 20:43:43 vixie Exp $"; X #endif X X /* vix 26jan87 [RCS has the log] X */ X X- X #include "cron.h" X #include X #include X #include X X- X #define TMAX(a,b) ((a)>(b)?(a):(b)) X X- X static void process_crontab __P((char *, char *, char *, X struct stat *, X cron_db *, cron_db *)); X- X X void X load_database(old_db) X--- 15,37 ---- X * Paul Vixie uunet!decwrl!vixie!paul X */ X X! #if !defined(lint) && defined(DOSCCS) X! char sccsid[] = "@(#)database.c 2.9 (2.11BSD) 2026/5/10" X #endif X X /* vix 26jan87 [RCS has the log] X */ X X #include "cron.h" X #include X #include X #include X X #define TMAX(a,b) ((a)>(b)?(a):(b)) X X static void process_crontab __P((char *, char *, char *, X struct stat *, X cron_db *, cron_db *)); X X void X load_database(old_db) X*** ./usr/src/usr.sbin/cron/env.c.old Tue Aug 17 01:26:31 1999 X--- ./usr/src/usr.sbin/cron/env.c Sun May 10 15:42:34 2026 X*************** X*** 15,28 **** X * Paul Vixie uunet!decwrl!vixie!paul X */ X X! #if !defined(lint) && !defined(LINT) X! static char rcsid[] = "$Id: env.c,v 2.7 1994/01/26 02:25:50 vixie Exp vixie $"; X #endif X X- X #include "cron.h" X X- X char ** X env_init() X { X--- 15,26 ---- X * Paul Vixie uunet!decwrl!vixie!paul X */ X X! #if !defined(lint) && defined(DOSCCS) X! char sccsid[] = "@(#)env.c 2.8 (2.11BSD) 2026/5/10" X #endif X X #include "cron.h" X X char ** X env_init() X { X*************** X*** 32,38 **** X return (p); X } X X- X void X env_free(envp) X char **envp; X--- 30,35 ---- X*************** X*** 44,50 **** X free(envp); X } X X- X char ** X env_copy(envp) X char **envp; X--- 41,46 ---- X*************** X*** 61,67 **** X return (p); X } X X- X char ** X env_set(envp, envstr) X char **envp; X--- 57,62 ---- X*************** X*** 103,109 **** X return (p); X } X X- X /* return ERR = end of file X * FALSE = not an env setting (file was repositioned) X * TRUE = was an env setting X--- 98,103 ---- X*************** X*** 158,164 **** X Debug(DPARS, ("load_env, <%s> <%s> -> <%s>\n", name, val, envstr)) X return (TRUE); X } X- X X char * X env_get(name, envp) X--- 152,157 ---- X*** ./usr/src/usr.sbin/cron/do_command.c.old Tue Aug 17 01:26:24 1999 X--- ./usr/src/usr.sbin/cron/do_command.c Mon Sep 21 07:03:31 2026 X*************** X*** 15,26 **** X * Paul Vixie uunet!decwrl!vixie!paul X */ X X! #if !defined(lint) && !defined(LINT) X! static char rcsid[] = "$Id: do_command.c,v 2.12 1994/01/15 20:43:43 vixie Exp $"; X #endif X X #include "cron.h" X! #include X #if defined(SYSLOG) X # include X #endif X--- 15,26 ---- X * Paul Vixie uunet!decwrl!vixie!paul X */ X X! #if !defined(lint) && defined(DOSCCS) X! char sccsid[] = "@(#)do_command.c 2.13 (2.11BSD) 2026/5/10" X #endif X X #include "cron.h" X! #include X #if defined(SYSLOG) X # include X #endif X*** ./usr/src/usr.sbin/cron/job.c.old Tue Aug 17 01:26:33 1999 X--- ./usr/src/usr.sbin/cron/job.c Sun May 10 15:42:46 2026 X*************** X*** 15,25 **** X * Paul Vixie uunet!decwrl!vixie!paul X */ X X! #if !defined(lint) && !defined(LINT) X! static char rcsid[] = "$Id: job.c,v 1.6 1994/01/15 20:43:43 vixie Exp $"; X #endif X X- X #include "cron.h" X X X--- 15,24 ---- X * Paul Vixie uunet!decwrl!vixie!paul X */ X X! #if !defined(lint) && defined(DOSCCS) X! char sccsid[] = "@(#)job.c 1.7 (2.11BSD) 2026/5/10" X #endif X X #include "cron.h" X X X*************** X*** 29,38 **** X user *u; X } job; X X- X static job *jhead = NULL, *jtail = NULL; X X- X void X job_add(e, u) X register entry *e; X--- 28,35 ---- X*************** X*** 55,61 **** X else { jtail->next=j; } X jtail = j; X } X- X X int X job_runqueue() X--- 52,57 ---- X*** ./usr/src/usr.sbin/cron/misc.c.old Tue Aug 17 01:26:38 1999 X--- ./usr/src/usr.sbin/cron/misc.c Sun May 10 15:42:55 2026 X*************** X*** 15,22 **** X * Paul Vixie uunet!decwrl!vixie!paul X */ X X! #if !defined(lint) && !defined(LINT) X! static char rcsid[] = "$Id: misc.c,v 2.9 1994/01/15 20:43:43 vixie Exp $"; X #endif X X /* vix 26jan87 [RCS has the rest of the log] X--- 15,22 ---- X * Paul Vixie uunet!decwrl!vixie!paul X */ X X! #if !defined(lint) && defined(DOSCCS) X! char sccsid[] = "@(#)misc.c 2.10 (2.11BSD) 2026/5/10" X #endif X X /* vix 26jan87 [RCS has the rest of the log] X*************** X*** 23,29 **** X * vix 30dec86 [written] X */ X X- X #include "cron.h" X #include X #include X--- 23,28 ---- X*************** X*** 34,40 **** X #if defined(SYSLOG) X # include X #endif X- X X #if defined(LOG_DAEMON) && !defined(LOG_CRON) X #define LOG_CRON LOG_DAEMON X--- 33,38 ---- X*** ./usr/src/usr.sbin/cron/user.c.old Tue Aug 17 01:26:44 1999 X--- ./usr/src/usr.sbin/cron/user.c Sun May 10 15:43:01 2026 X*************** X*** 15,31 **** X * Paul Vixie uunet!decwrl!vixie!paul X */ X X! #if !defined(lint) && !defined(LINT) X! static char rcsid[] = "$Id: user.c,v 2.8 1994/01/15 20:43:43 vixie Exp $"; X #endif X X /* vix 26jan87 [log is in RCS file] X */ X X- X #include "cron.h" X X- X void X free_user(u) X user *u; X--- 15,29 ---- X * Paul Vixie uunet!decwrl!vixie!paul X */ X X! #if !defined(lint) && defined(DOSCCS) X! char sccsid[] = "@(#)user.c 2.9 (2.11BSD) 2026/5/10" X #endif X X /* vix 26jan87 [log is in RCS file] X */ X X #include "cron.h" X X void X free_user(u) X user *u; X*************** X*** 39,45 **** X } X free(u); X } X- X X user * X load_user(crontab_fd, pw, name) X--- 37,42 ---- X*** ./usr/src/usr.sbin/cron/cron.h.old Tue Aug 17 01:26:06 1999 X--- ./usr/src/usr.sbin/cron/cron.h Sun May 10 15:40:10 2026 X*************** X*** 232,243 **** X */ X X #ifdef MAIN_PROGRAM X! # if !defined(LINT) && !defined(lint) X char *copyright[] = { X "@(#) Copyright 1988,1989,1990,1993,1994 by Paul Vixie", X "@(#) All rights reserved" X }; X! # endif X X char *MonthNames[] = { X "Jan", "Feb", "Mar", "Apr", "May", "Jun", X--- 232,243 ---- X */ X X #ifdef MAIN_PROGRAM X! #if !defined(lint) && defined(DOSCCS) X char *copyright[] = { X "@(#) Copyright 1988,1989,1990,1993,1994 by Paul Vixie", X "@(#) All rights reserved" X }; X! #endif X X char *MonthNames[] = { X "Jan", "Feb", "Mar", "Apr", "May", "Jun", X*************** X*** 262,269 **** X }; X # endif /* DEBUGGING */ X #else /*MAIN_PROGRAM*/ X! extern char *copyright[], X! *MonthNames[], X *DowNames[], X *ProgramName; X extern int LineNumber; X--- 262,268 ---- X }; X # endif /* DEBUGGING */ X #else /*MAIN_PROGRAM*/ X! extern char *MonthNames[], X *DowNames[], X *ProgramName; X extern int LineNumber; X*** ./usr/src/usr.sbin/cron/pathnames.h.old Tue Aug 17 01:26:40 1999 X--- ./usr/src/usr.sbin/cron/pathnames.h Sun May 31 10:15:12 2026 X*************** X*** 16,22 **** X */ X X /* X! * $Id: pathnames.h,v 1.3 1994/01/15 20:43:43 vixie Exp $ X */ X X #include X--- 16,22 ---- X */ X X /* X! * $Id: pathnames.h,v 1.4 2026/5/31 20:43:43 (2.11BSD) Exp $ X */ X X #include X*************** X*** 68,77 **** X # define EDITOR _PATH_VI X #else X # define EDITOR "/usr/ucb/vi" X- #endif X- X- #ifndef _PATH_BSHELL X- # define _PATH_BSHELL "/bin/sh" X #endif X X #ifndef _PATH_DEFPATH X--- 68,73 ---- X*** ./usr/src/usr.sbin/cron/cron.c.old Tue Aug 17 01:37:02 1999 X--- ./usr/src/usr.sbin/cron/cron.c Mon Sep 21 06:59:48 2026 X*************** X*** 16,28 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cron.c 2.11.1 (2.11BSD) 1999/08/05"; X #endif X X #define MAIN_PROGRAM X X #include "cron.h" X! #include X #include X X static void usage __P((void)), X--- 16,28 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cron.c 2.11.2 (2.11BSD) 2026/9/19"; X #endif X X #define MAIN_PROGRAM X X #include "cron.h" X! #include X #include X X static void usage __P((void)), X*************** X*** 222,228 **** X while (seconds_to_wait > 0) { X Debug(DSCH, ("[%d] sleeping for %d seconds\n", X getpid(), seconds_to_wait)) X! seconds_to_wait = (int) sleep((unsigned int) seconds_to_wait); X } X } X X--- 222,228 ---- X while (seconds_to_wait > 0) { X Debug(DSCH, ("[%d] sleeping for %d seconds\n", X getpid(), seconds_to_wait)) X! seconds_to_wait = sleep(seconds_to_wait); X } X } X X*** ./usr/src/usr.sbin/cron/popen.c.old Tue Aug 17 01:37:07 1999 X--- ./usr/src/usr.sbin/cron/popen.c Mon Sep 21 06:59:03 2026 X*************** X*** 24,35 **** X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)popen.c 5.7.2 (2.11BSD) 1999/08/05"; X #endif X X #include "cron.h" X #include X! #include X X #define WANT_GLOBBING 0 X X--- 24,35 ---- X */ X X #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)popen.c 5.7.3 (2.11BSD) 2026/9/21"; X #endif X X #include "cron.h" X #include X! #include X X #define WANT_GLOBBING 0 X X*** ./usr/src/usr.sbin/named/tools/nslookup/Makefile.old Tue Dec 9 14:55:44 2025 X--- ./usr/src/usr.sbin/named/tools/nslookup/Makefile Thu Sep 17 20:05:56 2026 X*************** X*** 14,20 **** X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.20.3 (2.11BSD) 2025/11/28 X # X CFLAGS= -O X LIBS= -ll X--- 14,20 ---- X # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED X # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X # X! # @(#)Makefile 5.20.4 (2.11BSD) 2026/9/17 X # X CFLAGS= -O X LIBS= -ll X*************** X*** 23,29 **** X OBJS= main.o getinfo.o debug.o send.o skip.o list.o subr.o commands.o \ X res_debug.o X X! all: nslookup nslookup.0 X X nslookup: ${OBJS} X ${CC} -i -o $@ ${OBJS} ${LIBS} X--- 23,29 ---- X OBJS= main.o getinfo.o debug.o send.o skip.o list.o subr.o commands.o \ X res_debug.o X X! all: nslookup X X nslookup: ${OBJS} X ${CC} -i -o $@ ${OBJS} ${LIBS} X*************** X*** 31,52 **** X clean: X rm -f ${OBJS} core nslookup nslookup.0 commands.c lex.yy.c lex.yy.o X X- cleandir: clean X- rm -f tags .depend X- X depend: ${SRCS} X mkdep ${CFLAGS} ${SRCS} X X! install: nslookup nslookup.0 X install -c -s -o root -g staff -m 755 nslookup /usr/bin/nslookup X install -c -o root -g staff -m 444 nslookup.help /usr/share/misc/nslookup.help X- install -c -o root -g staff -m 444 nslookup.0 /usr/man/cat1/nslookup.0 X- X- nslookup.0: nslookup.8 X- /usr/man/manroff nslookup.8 > nslookup.0 X- X- lint: ${SRCS} X- lint -ax ${SRCS} X- X- tags: ${CSRCS} X- ctags ${CSRCS} X--- 31,39 ---- X clean: X rm -f ${OBJS} core nslookup nslookup.0 commands.c lex.yy.c lex.yy.o X X depend: ${SRCS} X mkdep ${CFLAGS} ${SRCS} X X! install: nslookup X install -c -s -o root -g staff -m 755 nslookup /usr/bin/nslookup X install -c -o root -g staff -m 444 nslookup.help /usr/share/misc/nslookup.help X*** ./usr/src/usr.sbin/named/tools/nslookup/main.c.old Mon Apr 26 10:52:28 1993 X--- ./usr/src/usr.sbin/named/tools/nslookup/main.c Thu Sep 24 08:23:34 2026 X*************** X*** 22,28 **** X "@(#) Copyright (c) 1985,1989 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)main.c 5.39 (Berkeley) 6/24/90"; X #endif X X /* X--- 22,28 ---- X "@(#) Copyright (c) 1985,1989 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)main.c 5.40 (2.11BSD) 2026/9/22"; X #endif X X /* X*************** X*** 53,60 **** X #include X #include X #include "res.h" X- #include "pathnames.h" X X /* X * Default Internet address of the current host. X */ X--- 53,61 ---- X #include X #include X #include "res.h" X X+ #define _PATH_HELPFILE "/usr/share/misc/nslookup.help" X+ X /* X * Default Internet address of the current host. X */ X*************** X*** 110,120 **** X * Stuff for Interrupt (control-C) signal handler. X */ X X- #ifdef SVR3 X extern void IntrHandler(); X- #else X- extern int IntrHandler(); X- #endif X FILE *filePtr; X jmp_buf env; X X--- 111,117 ---- X*** ./usr/src/usr.sbin/named/tools/nstest.c.old Mon Apr 26 12:19:05 1993 X--- ./usr/src/usr.sbin/named/tools/nstest.c Tue Jan 27 20:33:37 2026 X*************** X*** 30,38 **** X #include X #include X #include X #include X X- extern char *inet_ntoa(); X char *progname; X FILE *log; X #define MAXDATA 256 /* really should get definition from named/db.h */ X--- 30,39 ---- X #include X #include X #include X+ #include X #include X+ #include X X char *progname; X FILE *log; X #define MAXDATA 256 /* really should get definition from named/db.h */ X*************** X*** 99,105 **** X for (;;) { X printf("> "); X fflush(stdout); X! if ((cp = (char *)gets(buf)) == NULL) X break; X switch (*cp++) { X case 'a': X--- 100,106 ---- X for (;;) { X printf("> "); X fflush(stdout); X! if ((cp = fgets(buf, sizeof buf, stdin)) == NULL) X break; X switch (*cp++) { X case 'a': X*************** X*** 223,233 **** X int Type, oldnbytes, nbytes, i; X #ifdef ALLOW_T_UNSPEC X printf("Data type (a = T_A, u = T_UNSPEC): "); X! gets(IType); X if (IType[0] == 'u') { X Type = T_UNSPEC; X printf("How many data bytes? "); X! gets(TempStr); /* Throw away CR */ X sscanf(TempStr, "%d", &nbytes); X for (i = 0; i < nbytes; i++) { X (NewRR.r_data)[i] = (char) i; X--- 224,234 ---- X int Type, oldnbytes, nbytes, i; X #ifdef ALLOW_T_UNSPEC X printf("Data type (a = T_A, u = T_UNSPEC): "); X! fgets(IType, sizeof IType, stdin); X if (IType[0] == 'u') { X Type = T_UNSPEC; X printf("How many data bytes? "); X! fgets(TempStr, sizeof TempStr, stdin); X sscanf(TempStr, "%d", &nbytes); X for (i = 0; i < nbytes; i++) { X (NewRR.r_data)[i] = (char) i; X*************** X*** 237,243 **** X Type = T_A; X nbytes = sizeof(u_long); X printf("Inet addr for new dname (e.g., 192.4.3.2): "); X! gets(TempStr); X putlong(ntohl(inet_addr(TempStr)), NewRR.r_data); X #ifdef ALLOW_T_UNSPEC X } X--- 238,244 ---- X Type = T_A; X nbytes = sizeof(u_long); X printf("Inet addr for new dname (e.g., 192.4.3.2): "); X! fgets(TempStr, sizeof TempStr, stdin); X putlong(ntohl(inet_addr(TempStr)), NewRR.r_data); X #ifdef ALLOW_T_UNSPEC X } X*************** X*** 247,253 **** X NewRR.r_size = nbytes; X NewRR.r_ttl = 99999999; X printf("Add, modify, or modify all (a/m/M)? "); X! gets(TempStr); X if (TempStr[0] == 'a') { X n = res_mkquery(UPDATEA, cp, C_IN, Type, X OldRRData, nbytes, X--- 248,254 ---- X NewRR.r_size = nbytes; X NewRR.r_ttl = 99999999; X printf("Add, modify, or modify all (a/m/M)? "); X! fgets(TempStr, sizeof TempStr, stdin); X if (TempStr[0] == 'a') { X n = res_mkquery(UPDATEA, cp, C_IN, Type, X OldRRData, nbytes, X*************** X*** 256,262 **** X } else { X if (TempStr[0] == 'm') { X printf("How many data bytes in old RR? "); X! gets(TempStr); /* Throw away CR */ X sscanf(TempStr, "%d", &oldnbytes); X for (i = 0; i < oldnbytes; i++) { X OldRRData[i] = (char) i; X--- 257,263 ---- X } else { X if (TempStr[0] == 'm') { X printf("How many data bytes in old RR? "); X! fgets(TempStr, sizeof TempStr, stdin); X sscanf(TempStr, "%d", &oldnbytes); X for (i = 0; i < oldnbytes; i++) { X OldRRData[i] = (char) i; X*************** X*** 287,293 **** X char TempStr[100]; X int nbytes, i; X printf("How many data bytes in oldrr data? "); X! gets(TempStr); /* Throw away CR */ X sscanf(TempStr, "%d", &nbytes); X for (i = 0; i < nbytes; i++) { X OldRRData[i] = (char) i; X--- 288,294 ---- X char TempStr[100]; X int nbytes, i; X printf("How many data bytes in oldrr data? "); X! fgets(TempStr, sizeof TempStr, stdin); X sscanf(TempStr, "%d", &nbytes); X for (i = 0; i < nbytes; i++) { X OldRRData[i] = (char) i; X*** ./usr/src/usr.sbin/named/named/Version.c.old Mon Mar 28 15:57:28 1988 X--- ./usr/src/usr.sbin/named/named/Version.c Sun May 10 15:55:23 2026 X*************** X*** 8,22 **** X * may not be used to endorse or promote products derived from this X * software without specific prior written permission. This software X * is provided ``as is'' without express or implied warranty. X- * X- * @(#)Version.c 4.8 (Berkeley) 3/28/88 X */ X X! #ifndef lint X char sccsid[] = "@(#)named 4.8 %VERSION% %WHOANDWHERE%\n"; X- #endif /* not lint */ X X char Version[] = "named 4.8 %VERSION%\n\t%WHOANDWHERE%\n"; X X #ifdef COMMENT X X--- 8,20 ---- X * may not be used to endorse or promote products derived from this X * software without specific prior written permission. This software X * is provided ``as is'' without express or implied warranty. X */ X X! #if !defined(lint) && defined(DOSCCS) X char sccsid[] = "@(#)named 4.8 %VERSION% %WHOANDWHERE%\n"; X X char Version[] = "named 4.8 %VERSION%\n\t%WHOANDWHERE%\n"; X+ #endif X X #ifdef COMMENT X X*** ./usr/src/usr.sbin/named/named/db_dump.c.old Fri Sep 9 03:49:49 1988 X--- ./usr/src/usr.sbin/named/named/db_dump.c Sun May 10 15:55:49 2026 X*************** X*** 10,18 **** X * is provided ``as is'' without express or implied warranty. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)db_dump.c 4.20 (Berkeley) 2/17/88"; X! #endif /* not lint */ X X #include X #include X--- 10,18 ---- X * is provided ``as is'' without express or implied warranty. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)db_dump.c 4.21 (2.11BSD) 2026/5/10"; X! #endif X X #include X #include X*** ./usr/src/usr.sbin/named/named/db_load.c.old Sat Sep 10 02:21:54 1988 X--- ./usr/src/usr.sbin/named/named/db_load.c Sun May 10 15:56:29 2026 X*************** X*** 10,18 **** X * is provided ``as is'' without express or implied warranty. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)db_load.c 4.26 (Berkeley) 2/28/88"; X! #endif /* not lint */ X X /* X * Load data base from ascii backupfile. Format similar to RFC 883. X--- 10,18 ---- X * is provided ``as is'' without express or implied warranty. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)db_load.c 4.27 (2.11BSD) 2026/5/10"; X! #endif X X /* X * Load data base from ascii backupfile. Format similar to RFC 883. X*************** X*** 23,28 **** X--- 23,29 ---- X #include X #include X #include X+ #include X #include X #include X #include X*************** X*** 30,36 **** X #include "ns.h" X #include "db.h" X X- extern char *index(); X u_long getnum(); X extern u_long net_mask(); X extern u_long max_cache_ttl; X--- 31,36 ---- X*** ./usr/src/usr.sbin/named/named/db_reload.c.old Mon Feb 29 02:29:35 1988 X--- ./usr/src/usr.sbin/named/named/db_reload.c Sun May 10 15:56:59 2026 X*************** X*** 10,18 **** X * is provided ``as is'' without express or implied warranty. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)db_reload.c 4.15 (Berkeley) 2/28/88"; X! #endif /* not lint */ X X #include X #include X--- 10,18 ---- X * is provided ``as is'' without express or implied warranty. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)db_reload.c 4.16 (2.11BSD) 2026/5/10"; X! #endif X X #include X #include X*** ./usr/src/usr.sbin/named/named/db_update.c.old Wed Sep 7 23:46:23 1988 X--- ./usr/src/usr.sbin/named/named/db_update.c Sun May 10 15:57:23 2026 X*************** X*** 10,18 **** X * is provided ``as is'' without express or implied warranty. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)db_update.c 4.16 (Berkeley) 2/28/88"; X! #endif /* not lint */ X X #include X #include X--- 10,18 ---- X * is provided ``as is'' without express or implied warranty. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)db_update.c 4.17 (2.11BSD) 2026/5/10"; X! #endif X X #include X #include X*** ./usr/src/usr.sbin/named/named/ns_forw.c.old Mon Sep 12 06:45:17 1988 X--- ./usr/src/usr.sbin/named/named/ns_forw.c Sun May 10 15:58:32 2026 X*************** X*** 10,18 **** X * is provided ``as is'' without express or implied warranty. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)ns_forw.c 4.26 (Berkeley) 3/28/88"; X! #endif /* not lint */ X X #include X #include X--- 10,18 ---- X * is provided ``as is'' without express or implied warranty. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ns_forw.c 4.27 (2.11BSD) 2026/5/10"; X! #endif X X #include X #include X*************** X*** 20,25 **** X--- 20,27 ---- X #include X #include X #include X+ #include X+ #include X #include X #include "ns.h" X #include "db.h" X*************** X*** 30,36 **** X X int nsid; /* next forwarded query id */ X extern int forward_only; /* you are only a slave */ X- extern int errno; X extern short ns_port; X X time_t retrytime(); X--- 32,37 ---- X*************** X*** 55,61 **** X register struct qinfo *qp; X HEADER *hp; X u_short id; X- extern char *calloc(); X X #ifdef DEBUG X if (debug >= 3) X--- 56,61 ---- X*** ./usr/src/usr.sbin/named/named/ns_init.c.old Mon Sep 5 06:11:29 1988 X--- ./usr/src/usr.sbin/named/named/ns_init.c Sun May 10 15:59:02 2026 X*************** X*** 10,18 **** X * is provided ``as is'' without express or implied warranty. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)ns_init.c 4.23 (Berkeley) 2/28/88"; X! #endif /* not lint */ X X #include X #include X--- 10,18 ---- X * is provided ``as is'' without express or implied warranty. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ns_init.c 4.24 (2.11BSD) 2026/5/10"; X! #endif X X #include X #include X*** ./usr/src/usr.sbin/named/named/ns_maint.c.old Mon Sep 5 06:08:13 1988 X--- ./usr/src/usr.sbin/named/named/ns_maint.c Tue Sep 22 00:59:35 2026 X*************** X*** 10,18 **** X * is provided ``as is'' without express or implied warranty. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)ns_maint.c 4.23 (Berkeley) 2/28/88"; X! #endif /* not lint */ X X #include X #include X--- 10,18 ---- X * is provided ``as is'' without express or implied warranty. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ns_maint.c 4.24 (2.11BSD) 2026/5/10"; X! #endif X X #include X #include X*************** X*** 29,35 **** X #include "ns.h" X #include "db.h" X X- extern int errno; X extern u_long maint_interval; X X X--- 29,34 ---- X*************** X*** 129,135 **** X extern struct sockaddr_in nsaddr; X extern int errno; X extern int read_interrupted; X! extern int read_alarm(); X struct sigvec sv, osv; X X #ifdef DEBUG X--- 128,134 ---- X extern struct sockaddr_in nsaddr; X extern int errno; X extern int read_interrupted; X! extern void read_alarm(); X struct sigvec sv, osv; X X #ifdef DEBUG X*** ./usr/src/usr.sbin/named/named/ns_req.c.old Mon Sep 5 06:46:48 1988 X--- ./usr/src/usr.sbin/named/named/ns_req.c Sun May 10 16:00:08 2026 X*************** X*** 10,18 **** X * is provided ``as is'' without express or implied warranty. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)ns_req.c 4.32 (Berkeley) 3/31/88"; X! #endif /* not lint */ X X #include X #include X--- 10,18 ---- X * is provided ``as is'' without express or implied warranty. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ns_req.c 4.33 (2.11BSD) 2026/5/10"; X! #endif X X #include X #include X*************** X*** 22,27 **** X--- 22,28 ---- X #include X #include X #include X+ #include X #include X #include "ns.h" X #include "db.h" X*************** X*** 46,52 **** X extern time_t retrytime(); X extern struct qinfo *sysquery(); X extern char *localdomain; /* XXX */ X! extern int errno; X /* X * Process request using database; assemble and send response. X */ X--- 47,53 ---- X extern time_t retrytime(); X extern struct qinfo *sysquery(); X extern char *localdomain; /* XXX */ X! X /* X * Process request using database; assemble and send response. X */ X*** ./usr/src/usr.sbin/named/named/ns_resp.c.old Fri Oct 21 23:37:45 1988 X--- ./usr/src/usr.sbin/named/named/ns_resp.c Sun May 10 16:04:45 2026 X*************** X*** 10,18 **** X * is provided ``as is'' without express or implied warranty. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)ns_resp.c 4.50 (Berkeley) 4/7/88"; X! #endif /* not lint */ X X #include X #include X--- 10,18 ---- X * is provided ``as is'' without express or implied warranty. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ns_resp.c 4.51 (2.11BSD) 2026/5/10"; X! #endif X X #include X #include X*************** X*** 20,26 **** X--- 20,28 ---- X #include X #include X #include X+ #include X #include X+ #include X #include X #include "ns.h" X #include "db.h" X*************** X*** 27,33 **** X X extern int debug; X extern FILE *ddt; X- extern int errno; X extern u_char *dnptrs[]; X extern time_t retrytime(); X extern struct fwdinfo *fwdtab; X--- 29,34 ---- X*** ./usr/src/usr.sbin/named/named/ns_sort.c.old Mon Sep 5 07:19:31 1988 X--- ./usr/src/usr.sbin/named/named/ns_sort.c Sun May 10 16:01:14 2026 X*************** X*** 10,18 **** X * is provided ``as is'' without express or implied warranty. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)ns_sort.c 4.3 (Berkeley) 2/17/88"; X! #endif /* not lint */ X X #include X #include X--- 10,18 ---- X * is provided ``as is'' without express or implied warranty. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ns_sort.c 4.4 (2.11BSD) 2026/5/10"; X! #endif X X #include X #include X*** ./usr/src/usr.sbin/named/named/ns_stats.c.old Fri Sep 9 03:42:42 1988 X--- ./usr/src/usr.sbin/named/named/ns_stats.c Sun May 10 16:01:42 2026 X*************** X*** 10,23 **** X * is provided ``as is'' without express or implied warranty. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)ns_stats.c 4.3 (Berkeley) 2/17/88"; X! #endif /* not lint */ X X /**************************************************************************/ X /* simple monitoring of named behavior */ X /* dumps a bunch of values into a well-know file */ X- /* */ X /**************************************************************************/ X X #ifdef STATS X--- 10,22 ---- X * is provided ``as is'' without express or implied warranty. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ns_stats.c 4.4 (2.11BSD) 2026/5/10"; X! #endif X X /**************************************************************************/ X /* simple monitoring of named behavior */ X /* dumps a bunch of values into a well-know file */ X /**************************************************************************/ X X #ifdef STATS X*** ./usr/src/usr.sbin/named/named/storage.c.old Sat Jan 1 03:35:03 1994 X--- ./usr/src/usr.sbin/named/named/storage.c Thu Aug 20 06:25:18 2026 X*************** X*** 7,13 **** X * rt_malloc Allocate storage, with visibility & checking X * rt_free Similarly, free storage X * rt_prmem When debugging, print memory map X! * calloc, cfree Which call rt_malloc, rt_free X * X * Author - X * Michael John Muuss X--- 7,13 ---- X * rt_malloc Allocate storage, with visibility & checking X * rt_free Similarly, free storage X * rt_prmem When debugging, print memory map X! * calloc calls rt_malloc X * X * Author - X * Michael John Muuss X*************** X*** 22,28 **** X * All rights reserved. X */ X #if defined(DOSCCS) && !defined(lint) X! static char RCSstorage[] = "@(#)$Header: /us1/cr/work/named/named/RCS/storage.c,v 1.1 94/01/01 03:13:33 cr Exp Locker: cr $"; X #endif X X #include X--- 22,28 ---- X * All rights reserved. X */ X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)storage.c 1.2 (2.11BSD) 2026/8/20"; X #endif X X #include X*************** X*** 143,156 **** X if (p = rt_malloc(size)) X bzero(p, size); X return (p); X- } X- X- cfree(p, num, size) X- char *p; X- unsigned num; X- unsigned size; X- { X- rt_free(p); X } X X #if BSD < 43 X--- 143,148 ---- X*** ./usr/src/usr.sbin/named/named/db_save.c.old Tue Jan 11 00:47:59 1994 X--- ./usr/src/usr.sbin/named/named/db_save.c Thu Sep 17 15:47:16 2026 X*************** X*** 11,17 **** X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)db_save.c 4.13.1 (2.11BSD GTE) 1/1/94"; X #endif X X /* X--- 11,17 ---- X */ X X #if defined(DOSCCS) && !defined(lint) X! static char sccsid[] = "@(#)db_save.c 4.13.2 (2.11BSD) 2026/9/17"; X #endif X X /* X*************** X*** 21,26 **** X--- 21,27 ---- X #include X #include X #include X+ #include X #include X #include "db.h" X X*** ./usr/src/usr.sbin/named/named/db.h.old Wed Feb 17 18:19:06 1988 X--- ./usr/src/usr.sbin/named/named/db.h Sun May 10 16:03:29 2026 X*************** X*** 9,15 **** X * software without specific prior written permission. This software X * is provided ``as is'' without express or implied warranty. X * X! * @(#)db.h 4.13 (Berkeley) 2/17/88 X */ X X /* X--- 9,15 ---- X * software without specific prior written permission. This software X * is provided ``as is'' without express or implied warranty. X * X! * @(#)db.h 4.14 (2.11BSD) 2026/5/10 X */ X X /* X*************** X*** 106,109 **** X extern struct hashbuf *savehash(); X extern struct invbuf *saveinv(); X extern char *savestr(); X- extern char *malloc(), *realloc(), *calloc(); X--- 106,108 ---- X*** ./usr/src/usr.sbin/named/named/ns_main.c.old Sat Nov 16 19:16:33 1996 X--- ./usr/src/usr.sbin/named/named/ns_main.c Tue Sep 22 00:58:15 2026 X*************** X*** 15,21 **** X "@(#) Copyright (c) 1986 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)ns_main.c 4.30.1 (2.11BSD) 1996/11/16"; X #endif /* not lint */ X X /* X--- 15,21 ---- X "@(#) Copyright (c) 1986 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)ns_main.c 4.30.2 (2.11BSD) 2026/5/10"; X #endif /* not lint */ X X /* X*************** X*** 38,43 **** X--- 38,44 ---- X #include X #include X #include X+ #include X #include X #include X #include X*************** X*** 156,164 **** X struct netinfo *ntip; X struct netinfo *ontp; X struct netinfo *ontip; X! extern int onintr(), maint_alarm(), reapchild(), setdumpflg(), onhup(); X! extern int setIncrDbgFlg(), setNoDbgFlg(), sigprof(); X! extern int setchkptflg(), setstatsflg(); X extern struct qstream *sqadd(); X extern struct qinfo *qhead; X extern char Version[]; X--- 157,165 ---- X struct netinfo *ntip; X struct netinfo *ontp; X struct netinfo *ontip; X! extern void onintr(), maint_alarm(), reapchild(), setdumpflg(), onhup(); X! extern void setIncrDbgFlg(), setNoDbgFlg(), sigprof(); X! extern void setchkptflg(), setstatsflg(); X extern struct qstream *sqadd(); X extern struct qinfo *qhead; X extern char Version[]; X*************** X*** 902,907 **** X--- 903,909 ---- X * Signal handler to schedule shutdown. Just set flag, to ensure a consistent X * state during dump. X */ X+ void X onintr() X { X needToExit = 1; X*************** X*** 1029,1035 **** X needStatsDump = 1; X } X X! int setchkptflg() X { X #if defined(SYSV) X (void)signal(SIGQUIT, setchkptflg); X--- 1031,1037 ---- X needStatsDump = 1; X } X X! void setchkptflg() X { X #if defined(SYSV) X (void)signal(SIGQUIT, setchkptflg); X*************** X*** 1044,1049 **** X--- 1046,1052 ---- X ** and keep the server running X */ X X+ void X sigprof() X { X #if defined(SYSV) X*** ./usr/src/usr.sbin/chroot/chroot.c.old Mon May 1 10:53:59 1989 X--- ./usr/src/usr.sbin/chroot/chroot.c Sun May 31 10:16:25 2026 X*************** X*** 15,39 **** X * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1988 The Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif /* not lint */ X X! #ifndef lint X! static char sccsid[] = "@(#)chroot.c 5.4 (Berkeley) 3/5/89"; X! #endif /* not lint */ X X #include X! #include "pathnames.h" X X main(argc, argv) X int argc; X char **argv; X { X! extern int errno; X! char *shell, *getenv(), *strerror(); X X if (argc < 2) { X fprintf(stderr, "usage: chroot newroot [command]\n"); X--- 15,39 ---- X * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1988 The Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)chroot.c 5.5 (2.11BSD) 2026/5/10"; X! #endif X X #include X! #include X! #include X! #include X! #include X X main(argc, argv) X int argc; X char **argv; X { X! register char *shell; X X if (argc < 2) { X fprintf(stderr, "usage: chroot newroot [command]\n"); X*************** X*** 57,63 **** X fatal(msg) X char *msg; X { X- extern int errno; X X fprintf(stderr, "chroot: %s: %s\n", msg, strerror(errno)); X exit(1); X--- 57,62 ---- X*** ./usr/src/usr.sbin/Makefile.old Mon Dec 8 19:50:31 2025 X--- ./usr/src/usr.sbin/Makefile Wed Sep 16 09:22:33 2026 X*************** X*** 1,13 **** X # X # Public domain - 1996/10/24 - sms X # X! # @(#)Makefile 1.5 (2.11BSD) 2025/11/25 X X! SUBDIR= ac accton arp bad144 catman chown chroot cron dev_mkdb \ X edquota inetd \ X! lpr makewhatis mkhosts mklost+found mkproto named nc ntp pstat quot \ X quotaon repquota rmt rwhod rxformat sa sendmail sysgen syslogd timed \ X! traceroute trpt trsp update vipw X X all: ${SUBDIR} X X--- 1,13 ---- X # X # Public domain - 1996/10/24 - sms X # X! # @(#)Makefile 1.6 (2.11BSD) 2026/5/13 X X! SUBDIR= ac accton arp bad144 chown chroot cron dev_mkdb \ X edquota inetd \ X! lpr makewhatis mkhosts named nc ntp pstat quot \ X quotaon repquota rmt rwhod rxformat sa sendmail sysgen syslogd timed \ X! tracebuf traceroute trpt trsp update vipw X X all: ${SUBDIR} X X*** ./usr/src/usr.sbin/rwhod/rwhod.c.old Sat Nov 23 13:38:38 2019 X--- ./usr/src/usr.sbin/rwhod/rwhod.c Tue Sep 22 01:06:30 2026 X*************** X*** 9,15 **** X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)rwhod.c 5.9.4 (2.11BSD) 2019/11/21"; X #endif X X #include X--- 9,15 ---- X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)rwhod.c 5.9.5 (2.11BSD) 2026/9/22"; X #endif X X #include X*************** X*** 66,72 **** X #define WHDRSIZE (sizeof (mywd) - sizeof (mywd.wd_we)) X #define RWHODIR "/usr/spool/rwho" X X! int onalrm(), getboottime(); X char *Utmp = _PATH_UTMP; X X main() X--- 66,72 ---- X #define WHDRSIZE (sizeof (mywd) - sizeof (mywd.wd_we)) X #define RWHODIR "/usr/spool/rwho" X X! void onalrm(), getboottime(); X char *Utmp = _PATH_UTMP; X X main() X*************** X*** 234,239 **** X--- 234,240 ---- X struct utmp *utmp; X int alarmcount=9; X X+ void X onalrm() X { X register int i; X*************** X*** 317,322 **** X--- 318,324 ---- X (void) alarm(AL_INTERVAL); X } X X+ void X getboottime(signo) X int signo; X { X*** ./usr/src/usr.sbin/rwhod/rwhod.8.old Fri Sep 20 14:12:31 2024 X--- ./usr/src/usr.sbin/rwhod/rwhod.8 Mon Oct 26 20:45:56 2026 X*************** X*** 2,8 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)rwhod.8 6.3 (2.11BSD) 2024/9/20 X .\" X .TH RWHOD 8 "Sep 20, 2024" X .UC 5 X--- 2,8 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)rwhod.8 6.4 (2.11BSD) 2026/10/26 X .\" X .TH RWHOD 8 "Sep 20, 2024" X .UC 5 X*************** X*** 11,32 **** X .SH SYNOPSIS X .B /usr/sbin/rwhod X .SH DESCRIPTION X! .I Rwhod X is the server which maintains the database used by the X! .IR rwho (1) X and X! .IR ruptime (1) X programs. Its operation is predicated on the ability to X .I broadcast X messages on a network. X .PP X! .I Rwhod X operates as both a producer and consumer of status information. X As a producer of information it periodically X queries the state of the system and constructs X status messages which are broadcast on a network. X As a consumer of information, it listens for other X! .I rwhod X servers' status messages, validating them, then recording X them in a collection of files located in the directory X .IR /usr/spool/rwho . X--- 11,32 ---- X .SH SYNOPSIS X .B /usr/sbin/rwhod X .SH DESCRIPTION X! .B rwhod X is the server which maintains the database used by the X! .BR rwho (1) X and X! .BR ruptime (1) X programs. Its operation is predicated on the ability to X .I broadcast X messages on a network. X .PP X! .B rwhod X operates as both a producer and consumer of status information. X As a producer of information it periodically X queries the state of the system and constructs X status messages which are broadcast on a network. X As a consumer of information, it listens for other X! .B rwhod X servers' status messages, validating them, then recording X them in a collection of files located in the directory X .IR /usr/spool/rwho . X*************** X*** 33,39 **** X .PP X The server transmits and receives messages at the port indicated X in the ``rwho'' service specification; see X! .IR services (5). X The messages sent and received, are of the form: X .PP X .nf X--- 33,39 ---- X .PP X The server transmits and receives messages at the port indicated X in the ``rwho'' service specification; see X! .BR services (5). X The messages sent and received, are of the form: X .PP X .nf X*************** X*** 62,89 **** X .PP X All fields are converted to network byte order prior to X transmission. The load averages are as calculated by the X! .IR w (1) X program, and represent load averages over the 5, 10, and 15 minute X intervals prior to a server's transmission; they are multiplied by 100 X for representation in an integer. The host name X included is that returned by the X! .IR gethostname (2) X system call, with any trailing domain name omitted. X The array at the end of the message contains information about X the users logged in to the sending machine. This information X includes the contents of the X! .IR utmp (5) X entry for each non-idle terminal line and a value indicating the X time in seconds since a character was last received on the terminal line. X .PP X Messages received by the X! .I rwho X server are discarded unless they originated at an X! .I rwho X server's port. In addition, if the host's name, as specified X in the message, contains any unprintable ASCII characters, the X message is discarded. Valid messages received by X! .I rwhod X are placed in files named X .IR whod . hostname X in the directory X--- 62,89 ---- X .PP X All fields are converted to network byte order prior to X transmission. The load averages are as calculated by the X! .BR w (1) X program, and represent load averages over the 5, 10, and 15 minute X intervals prior to a server's transmission; they are multiplied by 100 X for representation in an integer. The host name X included is that returned by the X! .BR gethostname (2) X system call, with any trailing domain name omitted. X The array at the end of the message contains information about X the users logged in to the sending machine. This information X includes the contents of the X! .BR utmp (5) X entry for each non-idle terminal line and a value indicating the X time in seconds since a character was last received on the terminal line. X .PP X Messages received by the X! .B rwho X server are discarded unless they originated at an X! .B rwho X server's port. In addition, if the host's name, as specified X in the message, contains any unprintable ASCII characters, the X message is discarded. Valid messages received by X! .B rwhod X are placed in files named X .IR whod . hostname X in the directory X*** ./usr/src/usr.sbin/timed/pdp/cksum.c.old Thu Jul 30 07:19:41 1987 X--- ./usr/src/usr.sbin/timed/pdp/cksum.c Sun May 10 15:15:34 2026 X*************** X*** 5,13 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)cksum.c 2.1 (Berkeley) 6/6/86"; X! #endif not lint X X #include "../globals.h" X #include X--- 5,13 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)cksum.c 2.2 (2.11BSD) 2026/5/10"; X! #endif X X #include "../globals.h" X #include X*** ./usr/src/usr.sbin/timed/timedc.c.old Thu Jul 30 07:35:20 1987 X--- ./usr/src/usr.sbin/timed/timedc.c Tue Sep 22 01:17:45 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)timedc.c 2.3 (Berkeley) 6/5/86"; X! #endif not lint X X #include "timedc.h" X #include X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1983 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)timedc.c 2.4 (Berkeley) 2026/1/28"; X! #endif X X #include "timedc.h" X #include X*************** X*** 19,24 **** X--- 17,23 ---- X #include X #include X #include X+ #include X X int top; X int margc; X*************** X*** 26,32 **** X char *margv[20]; X char cmdline[200]; X jmp_buf toplevel; X! int intr(); X int priv_resources(); X struct cmd *getcmd(); X X--- 25,31 ---- X char *margv[20]; X char cmdline[200]; X jmp_buf toplevel; X! void intr(); X int priv_resources(); X struct cmd *getcmd(); X X*************** X*** 74,79 **** X--- 73,79 ---- X } X } X X+ void X intr() X { X if (!fromatty) X*************** X*** 90,105 **** X int top; X { X register struct cmd *c; X X if (!top) X putchar('\n'); X for (;;) { X! if (fromatty) { X printf("timedc> "); X! (void) fflush(stdout); X! } X! if (gets(cmdline) == 0) X quit(); X if (cmdline[0] == 0) X break; X makeargv(); X--- 90,107 ---- X int top; X { X register struct cmd *c; X+ register char *cp; X X if (!top) X putchar('\n'); X for (;;) { X! if (fromatty) X printf("timedc> "); X! if (fgets(cmdline, sizeof cmdline, stdin) == 0) X quit(); X+ cp = index(cmdline, '\n'); X+ if (cp) *cp = '\0'; X+ X if (cmdline[0] == 0) X break; X makeargv(); X*** ./usr/src/usr.sbin/timed/acksend.c.old Tue May 27 17:58:36 1986 X--- ./usr/src/usr.sbin/timed/acksend.c Sun May 10 15:11:41 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)acksend.c 2.4 (Berkeley) 5/27/86"; X! #endif not lint X X #include "globals.h" X #include X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)acksend.c 2.5 (2.11BSD) 2026/5/10"; X! #endif X X #include "globals.h" X #include X*** ./usr/src/usr.sbin/timed/byteorder.c.old Tue May 20 14:09:20 1986 X--- ./usr/src/usr.sbin/timed/byteorder.c Sun May 10 15:12:14 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)byteorder.c 2.4 (Berkeley) 5/20/86"; X! #endif not lint X X #include "globals.h" X #include X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)byteorder.c 2.5 (2.11BSD) 2026/5/10"; X! #endif X X #include "globals.h" X #include X*** ./usr/src/usr.sbin/timed/candidate.c.old Mon Apr 21 18:52:11 1986 X--- ./usr/src/usr.sbin/timed/candidate.c Sun May 10 15:12:42 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)candidate.c 2.3 (Berkeley) 4/21/86"; X! #endif not lint X X #include "globals.h" X #include X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)candidate.c 2.4 (2.11BSD) 2026/5/10"; X! #endif X X #include "globals.h" X #include X*** ./usr/src/usr.sbin/timed/correct.c.old Sun Dec 25 02:16:22 1988 X--- ./usr/src/usr.sbin/timed/correct.c Sun May 10 15:13:04 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)correct.c 2.3 (Berkeley) 5/28/86"; X! #endif not lint X X #include "globals.h" X #include X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)correct.c 2.4 (2.11BSD) 2026/5/10"; X! #endif X X #include "globals.h" X #include X*** ./usr/src/usr.sbin/timed/master.c.old Sun Dec 25 02:16:22 1988 X--- ./usr/src/usr.sbin/timed/master.c Sun May 10 15:13:30 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)master.c 2.14 (Berkeley) 6/5/86"; X! #endif not lint X X #include "globals.h" X #include X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)master.c 2.15 (2.11BSD) 2026/5/10"; X! #endif X X #include "globals.h" X #include X*** ./usr/src/usr.sbin/timed/measure.c.old Sat Aug 29 18:31:16 1987 X--- ./usr/src/usr.sbin/timed/measure.c Sun May 10 15:13:56 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)measure.c 2.4 (Berkeley) 5/28/86"; X! #endif not lint X X #include "globals.h" X #include X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)measure.c 2.5 (2.11BS) 2026/5/10"; X! #endif X X #include "globals.h" X #include X*** ./usr/src/usr.sbin/timed/readmsg.c.old Sun Dec 25 02:16:21 1988 X--- ./usr/src/usr.sbin/timed/readmsg.c Sun May 10 15:14:26 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)readmsg.c 2.9 (Berkeley) 6/5/86"; X! #endif not lint X X #include "globals.h" X #include X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)readmsg.c 2.10 (2.11BSD) 2026/5/10"; X! #endif X X #include "globals.h" X #include X*** ./usr/src/usr.sbin/timed/networkdelta.c.old Tue Dec 10 16:08:12 1985 X--- ./usr/src/usr.sbin/timed/networkdelta.c Sun May 10 15:14:49 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)networkdelta.c 2.1 (Berkeley) 12/10/85"; X! #endif not lint X X #include "globals.h" X #include X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)networkdelta.c 2.2 (2.11BSD) 2026/5/10"; X! #endif X X #include "globals.h" X #include X*** ./usr/src/usr.sbin/timed/slave.c.old Sat Aug 29 18:35:07 1987 X--- ./usr/src/usr.sbin/timed/slave.c Sun May 10 15:15:11 2026 X*************** X*** 4,12 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X! static char sccsid[] = "@(#)slave.c 2.16 (Berkeley) 6/5/86"; X! #endif not lint X X #include "globals.h" X #include X--- 4,12 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)slave.c 2.17 (2.11BSD) 2026/5/10"; X! #endif X X #include "globals.h" X #include X*** ./usr/src/usr.sbin/vipw/vipw.c.old Fri Jan 12 23:35:52 1996 X--- ./usr/src/usr.sbin/vipw/vipw.c Mon Sep 21 06:57:01 2026 X*************** X*** 20,36 **** X "@(#) Copyright (c) 1987 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)vipw.c 5.9.1 (2.11BSD) 1996/1/12"; X! #endif /* not lint */ X X #include X #include X- #include X #include X #include X #include X #include X #include X #include X #include X #include X--- 20,36 ---- X "@(#) Copyright (c) 1987 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)vipw.c 5.9.2 (2.11BSD) 2026/9/21"; X! #endif X X #include X #include X #include X #include X #include X #include X #include X+ #include X #include X #include X #include X*** ./usr/src/usr.sbin/chown/chown.c.old Sat Nov 5 01:14:17 1994 X--- ./usr/src/usr.sbin/chown/chown.c Fri May 15 21:14:14 2026 X*************** X*** 9,19 **** X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)chown.c 5.6.1 (2.11BSD GTE) 11/4/94"; X #endif X X /* X! * chown [-fR] uid[.gid] file ... X */ X X #include X--- 9,19 ---- X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)chown.c 5.6.2 (2.11BSD) 2026/2/1"; X #endif X X /* X! * chown [-fR] uid[:gid] file ... X */ X X #include X*************** X*** 38,47 **** X main(argc, argv) X char *argv[]; X { X! register int c; X! register gid_t gid; X register char *cp, *group; X! struct group *grp; X int fcurdir; X X argc--, argv++; X--- 38,47 ---- X main(argc, argv) X char *argv[]; X { X! int c; X! gid_t gid; X register char *cp, *group; X! register struct group *grp; X int fcurdir; X X argc--, argv++; X*************** X*** 65,72 **** X fprintf(stderr, "usage: chown [-fR] owner[.group] file ...\n"); X exit(-1); X } X gid = -1; X! group = index(argv[0], '.'); X if (group != NULL) { X *group++ = '\0'; X if (!isnumber(group)) { X--- 65,76 ---- X fprintf(stderr, "usage: chown [-fR] owner[.group] file ...\n"); X exit(-1); X } X+ X gid = -1; X! group = index(argv[0], ':'); X! if (group == NULL) X! group = index(argv[0], '.'); X! X if (group != NULL) { X *group++ = '\0'; X if (!isnumber(group)) { X*** ./usr/src/usr.sbin/chown/chown.8.old Sun Nov 17 21:18:08 1996 X--- ./usr/src/usr.sbin/chown/chown.8 Tue Mar 17 21:12:31 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)chown.8 6.2.1 (2.11BSD) 1996/11/17 X .\" X! .TH CHOWN 8 "May 22, 1986" X .UC 4 X .SH NAME X chown \- change owner X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)chown.8 6.2.2 (2.11BSD) 2026/2/1 X .\" X! .TH CHOWN 8 "February 2, 2026" X .UC 4 X .SH NAME X chown \- change owner X*************** X*** 14,22 **** X .B \-f X .B \-R X ] X! owner[.group] file ... X .SH DESCRIPTION X! .I Chown X changes the owner of the X .I files X to X--- 14,22 ---- X .B \-f X .B \-R X ] X! owner[:group] file ... X .SH DESCRIPTION X! .I chown X changes the owner of the X .I files X to X*************** X*** 27,34 **** X The group may be either a decimal GID or X a group name found in the group-ID file. X .PP X! Only the super-user can change owner, X! in order to simplify accounting procedures. X No errors are reported when the X .B \-f X (force) option is given. X--- 27,34 ---- X The group may be either a decimal GID or X a group name found in the group-ID file. X .PP X! Only the super-user can change owner. X! .sp X No errors are reported when the X .B \-f X (force) option is given. X*************** X*** 41,46 **** X--- 41,50 ---- X setting the specified owner. X When symbolic links are encountered, their ownership is changed, X but they are not traversed. X+ .PP X+ The old form "owner[.group] file ..." is supported for compatibility with X+ existing Makefiles and scripts. Allowing \fB.\fP to be used this way X+ precludes having \fB.\fP in a username. X .SH FILES X /etc/passwd X .SH "SEE ALSO" X*** ./usr/src/usr.sbin/pstat/pstat.8.old Tue Dec 16 12:59:14 2025 X--- ./usr/src/usr.sbin/pstat/pstat.8 Fri Jun 26 21:39:07 2026 X*************** X*** 2,43 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)pstat.8 6.5 (2.11BSD) 2025/12/16 X .\" X! .TH PSTAT 8 "September 28, 2024" X .UC 4 X .SH NAME X pstat \- print system facts X .SH SYNOPSIS X! .B /usr/sbin/pstat X! .B \-aixptufbcmsT X! [ X! .B suboptions X! ] [ X! .B system X! ] [ X! .B corefile X! ] X .SH DESCRIPTION X! .I Pstat X interprets the contents of certain system tables. X! If X! .I corefile X! is given, the tables are sought there, otherwise X! in X! .I /dev/kmem. X! The required namelist is taken from X! .I /unix X! unless X! .I system X! is specified. X Options are X .TP \w'WCHAN\ 'u X .B \-a X! Under X! .BR \-p , X describe all process slots rather than just active ones. X .TP X .B \-i X Print the inode table with the these headings: X .IP LOC X--- 2,31 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)pstat.8 6.6 (2.11BSD) 2026/6/14 X .\" X! .TH PSTAT 8 "June 14, 2026" X .UC 4 X .SH NAME X pstat \- print system facts X .SH SYNOPSIS X! .B pstat X! \fB-aixptfbcmsT\fP [\fB-u ubase\fP] [\fB-k kern:mem\fP] X .SH DESCRIPTION X! .B pstat X interprets the contents of certain system tables. X! .PP X Options are X .TP \w'WCHAN\ 'u X .B \-a X! With X! .BR \-p X describe all process slots rather than just active ones. X .TP X+ .B -k X+ files to use for the kernel symbols and the system tables. X+ Defaults are /unix and /dev/kmem. Used for postmortem system debugging. X+ .TP X .B \-i X Print the inode table with the these headings: X .IP LOC X*************** X*** 114,129 **** X locked X .IP w X wanted (L flag is on) X! .IP P X! resulted from demand-page-from-inode exec format (see X! .IR execve (2)) X .RE X .IP DADDR X Disk address in swap, measured in multiples of 512 bytes. X .IP CADDR X Head of a linked list of loaded processes using this text segment. X- .IP RSS X- Size of resident text, measured in multiples of 512 bytes. X .IP SIZE X Size of text segment, measured in multiples of 512 bytes. X .IP IPTR X--- 102,114 ---- X locked X .IP w X wanted (L flag is on) X! .IP u X! unused since swapped out for cache X .RE X .IP DADDR X Disk address in swap, measured in multiples of 512 bytes. X .IP CADDR X Head of a linked list of loaded processes using this text segment. X .IP SIZE X Size of text segment, measured in multiples of 512 bytes. X .IP IPTR X*************** X*** 214,230 **** X .IP PPID X The process ID of parent process. X .IP ADDR X! If in core, the page frame number of the first page of the `u-area' of X! the process. X If swapped out, the position in the swap area X measured in multiples of 512 bytes. X! .IP RSS X! Resident set size \- the number of physical page frames allocated X to this process. X! .IP SRSS X! RSS at last swap (0 if never swapped). X .IP SIZE X! Virtual size of process image (data+stack) in multiples of 512 bytes. X .IP WCHAN X Wait channel number of a waiting process. X .IP LINK X--- 199,214 ---- X .IP PPID X The process ID of parent process. X .IP ADDR X! If in core memory address of the `u-area' of the process. X If swapped out, the position in the swap area X measured in multiples of 512 bytes. X! .IP SADDR X! Address of stack area. X to this process. X! .IP DADDR X! Address of data area. X .IP SIZE X! Size of process image (data+stack) in multiples of 512 bytes. X .IP WCHAN X Wait channel number of a waiting process. X .IP LINK X*************** X*** 231,236 **** X--- 215,222 ---- X Link pointer in list of runnable processes. X .IP TEXTP X If text is pure, pointer to location of text table entry. X+ .IP SIGM X+ Signal mask. X .PD X .TP X .B \-t X*************** X*** 279,287 **** X .IP PGRP X Process group for which this is controlling terminal. X .IP DISC X! Line discipline; blank is old tty OTTYDISC or ``new tty'' for NTTYDISC X! or ``net'' for NETLDISC (see X! .IR bk (4)). X .PD X .TP X .B \-u X--- 265,271 ---- X .IP PGRP X Process group for which this is controlling terminal. X .IP DISC X! Line discipline; blank is old tty OTTYDISC or ``new tty'' for NTTYDISC. X .PD X .TP X .B \-u X*************** X*** 289,298 **** X the next argument is its address as given X by X .IR ps (1). X! The process must be in main memory, or the file used can X! be a core image and the address 0. X! Only the fields located in the first page cluster can be located X! succesfully if the process is in main memory. X .TP X .B \-f X Print the open file table with these headings: X--- 273,279 ---- X the next argument is its address as given X by X .IR ps (1). X! The process must be in main memory (not swapped out). X .TP X .B \-f X Print the open file table with these headings: X*** ./usr/src/usr.sbin/pstat/pstat.c.old Fri Dec 26 18:46:06 2025 X--- ./usr/src/usr.sbin/pstat/pstat.c Sun Jun 14 18:10:43 2026 X*************** X*** 10,16 **** X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)pstat.c 5.10 (2.11BSD) 2025/12/26"; X #endif X X /* X--- 10,16 ---- X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)pstat.c 5.11 (2.11BSD) 2026/1/27"; X #endif X X /* X*************** X*** 34,39 **** X--- 34,42 ---- X #include X #include X #include X+ #include X+ #include X+ #include X X char *fcore = "/dev/kmem"; X char *fmem = "/dev/mem"; X*************** X*** 109,212 **** X int ubmapf; X int totflg; X int allflg; X- int kflg; X u_short pgetw(); X X main(argc, argv) X char **argv; X { X register char *argp; X! int allflags; X X! argc--, argv++; X! while (argc > 0 && **argv == '-') { X! argp = *argv++; X! argp++; X! argc--; X! while (*argp++) X! switch (argp[-1]) { X! X! case 'T': X! totflg++; X! break; X! X! case 'a': X! allflg++; X! break; X! X! case 'i': X! inof++; X! break; X! X! case 'k': X! kflg++; X! fcore = fmem = "/core"; X! break; X! X! case 'x': X! txtf++; X! break; X! X! case 'p': X! prcf++; X! break; X! X! case 't': X! ttyf++; X! break; X! X! case 'u': X! if (argc == 0) X break; X! argc--; X! usrf++; X! sscanf( *argv++, "%lo", &ubase); X! break; X! X! case 'f': X! filf++; X! break; X! case 's': X! swpf++; X! break; X! break; X! case 'c': X! coref++; X! break; X! case 'm': X! ubmapf++; X! break; X! case 'b': X! buff++; X! break; X! default: X! usage(); X! exit(1); X } X! } X! if (argc>1) { X! fcore = fmem = argv[1]; X! kflg++; X! } X if ((fc = open(fcore, 0)) < 0) { X! printf("Can't find %s\n", fcore); X exit(1); X } X if ((fm = open(fmem, 0)) < 0) { X! printf("Can't find %s\n", fmem); X exit(1); X } X! if (argc>0) X! fnlist = argv[0]; X nlist(fnlist, nl); X if (nl[0].n_type == 0) { X! printf("no namelist, n_type: %d n_value: %o n_name: %s\n", nl[0].n_type, nl[0].n_value, nl[0].n_name); X exit(1); X } X allflags = filf | totflg | inof | prcf | txtf | ttyf | usrf | X swpf | coref | ubmapf | buff; X if (allflags == 0) { X! printf("pstat: one or more of -[aixptfscmbuT] is required\n"); X exit(1); X } X if (filf||totflg) X--- 112,217 ---- X int ubmapf; X int totflg; X int allflg; X u_short pgetw(); X X+ extern char *__progname; X+ X+ static void kflgeval(char *arg) X+ { X+ register char *ap; X+ X+ ap = strsep(&arg, ":"); X+ if (ap) X+ { X+ if (*ap != '\0') X+ fnlist = ap; X+ } X+ ap = strsep(&arg, ":"); X+ if (ap) X+ { X+ if (*ap != '\0') X+ { X+ fcore = ap; X+ fmem = ap; X+ } X+ } X+ } X+ X main(argc, argv) X char **argv; X { X register char *argp; X! int allflags, c; X X! while ((c = getopt(argc, argv, "Taik:xptu:fscmb")) != EOF) X! { X! switch (c) X! { X! case 'T': X! totflg++; X break; X! case 'a': X! allflg++; X! break; X! case 'i': X! inof++; X! break; X! case 'k': X! kflgeval(optarg); X! break; X! case 'x': X! txtf++; X! break; X! case 'p': X! prcf++; X! break; X! case 't': X! ttyf++; X! break; X! case 'u': X! usrf++; X! sscanf(optarg, "%lo", &ubase); X! break; X! case 'f': X! filf++; X! break; X! case 's': X! swpf++; X! break; X! break; X! case 'c': X! coref++; X! break; X! case 'm': X! ubmapf++; X! break; X! case 'b': X! buff++; X! break; X! default: X! fprintf(stderr, "usage: %s -[aixptfscmbT] [-u ubase] [-k kern:mem]\n", __progname); X! exit(EX_USAGE); X! } X } X! X if ((fc = open(fcore, 0)) < 0) { X! fprintf(stderr, "Can't open %s\n", fcore); X exit(1); X } X if ((fm = open(fmem, 0)) < 0) { X! fprintf(stderr, "Can't open %s\n", fmem); X exit(1); X } X! X nlist(fnlist, nl); X if (nl[0].n_type == 0) { X! fprintf(stderr, "%s: %s no namelist\n", __progname, fnlist); X exit(1); X } X allflags = filf | totflg | inof | prcf | txtf | ttyf | usrf | X swpf | coref | ubmapf | buff; X if (allflags == 0) { X! fprintf(stderr, "%s: one or more of -[aixptfscmbuT] required\n", __progname); X exit(1); X } X if (filf||totflg) X*************** X*** 233,244 **** X exit(0); X } X X- usage() X- { X- X- printf("usage: pstat -[aixptfscmbT] [-u [ubase]] [system] [core]\n"); X- } X- X doinode() X { X register struct inode *ip; X--- 238,243 ---- X*************** X*** 250,262 **** X ninode = pgetw((off_t)nl[SNINODE].n_value); X xinode = (struct inode *)calloc(ninode, sizeof (struct inode)); X ainode = nl[SINODE].n_value; X! if (ninode < 0 || ninode > 10000) { X! fprintf(stderr, "number of inodes is preposterous (%d)\n", X! ninode); X return; X } X if (xinode == NULL) { X! fprintf(stderr, "can't allocate memory for inode table\n"); X return; X } X lseek(fc, (off_t)ainode, 0); X--- 249,261 ---- X ninode = pgetw((off_t)nl[SNINODE].n_value); X xinode = (struct inode *)calloc(ninode, sizeof (struct inode)); X ainode = nl[SINODE].n_value; X! if (ninode < 0 || ninode > 1000) { X! fprintf(stderr, "%s: number of inodes preposterous (%d)\n", X! ninode, __progname); X return; X } X if (xinode == NULL) { X! fprintf(stderr, "%s: can't allocate inode memory\n", __progname); X return; X } X lseek(fc, (off_t)ainode, 0); X*************** X*** 269,279 **** X return; X } X printf("%d/%d active inodes\n", nin, ninode); X! printf(" LOC FLAGS CNT DEVICE RDC WRC INO MODE NLK UID SIZE/DEV FS\n"); X for (ip = xinode; ip < &xinode[ninode]; ip++) { X if (ip->i_count == 0) X continue; X! printf("%7.1o ", ainode + (ip - xinode)*sizeof (*ip)); X putf((long)ip->i_flag&ILOCKED, 'L'); X putf((long)ip->i_flag&IUPD, 'U'); X putf((long)ip->i_flag&IACC, 'A'); X--- 268,278 ---- X return; X } X printf("%d/%d active inodes\n", nin, ninode); X! printf(" LOC FLAGS CNT DEVICE RDC WRC INO MODE NLK UID SIZE/DEV FS\n"); X for (ip = xinode; ip < &xinode[ninode]; ip++) { X if (ip->i_count == 0) X continue; X! printf("%#7o ", ainode + (ip - xinode)*sizeof (*ip)); X putf((long)ip->i_flag&ILOCKED, 'L'); X putf((long)ip->i_flag&IUPD, 'U'); X putf((long)ip->i_flag&IACC, 'A'); X*************** X*** 293,299 **** X printf("%4d", ip->i_flag&IPIPE ? 0 : ip->i_shlockc); X printf("%4d", ip->i_flag&IPIPE ? 0 : ip->i_exlockc); X printf("%6u ", ip->i_number); X! printf("%7.1o", ip->i_mode); X printf("%4d", ip->i_nlink); X printf("%5u", ip->i_uid); X if ((ip->i_mode&IFMT)==IFBLK || (ip->i_mode&IFMT)==IFCHR) X--- 292,298 ---- X printf("%4d", ip->i_flag&IPIPE ? 0 : ip->i_shlockc); X printf("%4d", ip->i_flag&IPIPE ? 0 : ip->i_exlockc); X printf("%6u ", ip->i_number); X! printf("%#7o", ip->i_mode); X printf("%4d", ip->i_nlink); X printf("%5u", ip->i_uid); X if ((ip->i_mode&IFMT)==IFBLK || (ip->i_mode&IFMT)==IFCHR) X*************** X*** 300,306 **** X printf("%6d,%3d", major(ip->i_rdev), minor(ip->i_rdev)); X else X printf("%10ld", ip->i_size); X! printf(" %2d", ip->i_fs); X printf("\n"); X } X free(xinode); X--- 299,305 ---- X printf("%6d,%3d", major(ip->i_rdev), minor(ip->i_rdev)); X else X printf("%10ld", ip->i_size); X! printf(" %#7o", ip->i_fs); X printf("\n"); X } X free(xinode); X*************** X*** 338,350 **** X ntext = pgetw((off_t)nl[SNTEXT].n_value); X xtext = (struct text *)calloc(ntext, sizeof (struct text)); X atext = nl[STEXT].n_value; X! if (ntext < 0 || ntext > 10000) { X! fprintf(stderr, "number of texts is preposterous (%d)\n", X! ntext); X return; X } X if (xtext == NULL) { X! fprintf(stderr, "can't allocate memory for text table\n"); X return; X } X lseek(fc, (off_t)atext, 0); X--- 337,349 ---- X ntext = pgetw((off_t)nl[SNTEXT].n_value); X xtext = (struct text *)calloc(ntext, sizeof (struct text)); X atext = nl[STEXT].n_value; X! if (ntext < 0 || ntext > 1000) { X! fprintf(stderr, "%s: number of texts preposterous (%d)\n", X! __progname, ntext); X return; X } X if (xtext == NULL) { X! fprintf(stderr, "%s: can't allocate text table memory\n", __progname); X return; X } X lseek(fc, (off_t)atext, 0); X*************** X*** 361,372 **** X } X printf("%d/%d active texts, %d used\n", ntx, ntext, ntxca); X printf("\ X! LOC FLAGS DADDR CADDR SIZE IPTR CNT CCNT FORW BACK\n"); X for (xp = xtext; xp < &xtext[ntext]; xp++) { X if (xp->x_iptr == NULL) X continue; X! printf("%7.1o ", atext + (xp - xtext)*sizeof (*xp)); X! putf((long)xp->x_flag&XPAGI, 'P'); X putf((long)xp->x_flag&XTRC, 'T'); X putf((long)xp->x_flag&XWRIT, 'W'); X putf((long)xp->x_flag&XLOAD, 'L'); X--- 360,370 ---- X } X printf("%d/%d active texts, %d used\n", ntx, ntext, ntxca); X printf("\ X! LOC FLAGS DADDR CADDR SIZE IPTR CNT CCNT FORW BACK\n"); X for (xp = xtext; xp < &xtext[ntext]; xp++) { X if (xp->x_iptr == NULL) X continue; X! printf("%#7o ", atext + (xp - xtext)*sizeof (*xp)); X putf((long)xp->x_flag&XTRC, 'T'); X putf((long)xp->x_flag&XWRIT, 'W'); X putf((long)xp->x_flag&XLOAD, 'L'); X*************** X*** 373,386 **** X putf((long)xp->x_flag&XLOCK, 'K'); X putf((long)xp->x_flag&XWANT, 'w'); X putf((long)xp->x_flag&XUNUSED, 'u'); X! printf("%7.1o ", xp->x_daddr); X! printf("%7.1o ", xp->x_caddr); X! printf("%7.1o ", xp->x_size); X! printf("%7.1o", xp->x_iptr); X printf("%4u ", xp->x_count); X printf("%4u ", xp->x_ccount); X! printf("%7.1o ", xp->x_forw); X! printf("%7.1o\n", xp->x_back); X } X free(xtext); X } X--- 371,384 ---- X putf((long)xp->x_flag&XLOCK, 'K'); X putf((long)xp->x_flag&XWANT, 'w'); X putf((long)xp->x_flag&XUNUSED, 'u'); X! printf("%8.1d ", xp->x_daddr); X! printf("%#7o ", xp->x_caddr); X! printf("%7d ", xp->x_size); X! printf("%#7o", xp->x_iptr); X printf("%4u ", xp->x_count); X printf("%4u ", xp->x_ccount); X! printf("%#7o ", xp->x_forw); X! printf("%#7o\n", xp->x_back); X } X free(xtext); X } X*************** X*** 395,407 **** X nproc = pgetw((off_t)nl[SNPROC].n_value); X xproc = (struct proc *)calloc(nproc, sizeof (struct proc)); X aproc = nl[SPROC].n_value; X! if (nproc < 0 || nproc > 10000) { X! fprintf(stderr, "number of procs is preposterous (%d)\n", X! nproc); X return; X } X if (xproc == NULL) { X! fprintf(stderr, "can't allocate memory for proc table\n"); X return; X } X lseek(fc, (off_t)aproc, 0); X--- 393,405 ---- X nproc = pgetw((off_t)nl[SNPROC].n_value); X xproc = (struct proc *)calloc(nproc, sizeof (struct proc)); X aproc = nl[SPROC].n_value; X! if (nproc < 0 || nproc > 1000) { X! fprintf(stderr, "%s: number of procs preposterous (%d)\n", X! __progname, nproc); X return; X } X if (xproc == NULL) { X! fprintf(stderr, "%s: can't allocate proc table memory\n", __progname); X return; X } X lseek(fc, (off_t)aproc, 0); X*************** X*** 415,429 **** X return; X } X printf("%d/%d processes\n", np, nproc); X! printf(" LOC S F PRI SIG UID SLP TIM CPU NI PGRP PID PPID ADDR SADDR DADDR SIZE WCHAN LINK TEXTP SIGM\n"); X for (pp=xproc; pp<&xproc[nproc]; pp++) { X if (pp->p_stat==0 && allflg==0) X continue; X! printf("%7.1o", aproc + (pp - xproc)*sizeof (*pp)); X printf(" %2d", pp->p_stat); X! printf(" %7.1x", pp->p_flag); X printf(" %3d", pp->p_pri); X! printf(" %8.1lx", pp->p_sig); X printf(" %5u", pp->p_uid); X printf(" %3d", pp->p_slptime); X printf(" %3d", pp->p_time); X--- 413,427 ---- X return; X } X printf("%d/%d processes\n", np, nproc); X! printf(" LOC S F PRI SIG UID SLP TIM CPU NI PGRP PID PPID ADDR SADDR DADDR SIZE WCHAN LINK TEXTP SIGM\n"); X for (pp=xproc; pp<&xproc[nproc]; pp++) { X if (pp->p_stat==0 && allflg==0) X continue; X! printf("%#7o", aproc + (pp - xproc)*sizeof (*pp)); X printf(" %2d", pp->p_stat); X! printf(" %#7x", pp->p_flag); X printf(" %3d", pp->p_pri); X! printf(" %#8lx", pp->p_sig); X printf(" %5u", pp->p_uid); X printf(" %3d", pp->p_slptime); X printf(" %3d", pp->p_time); X*************** X*** 432,445 **** X printf(" %6d", pp->p_pgrp); X printf(" %6d", pp->p_pid); X printf(" %6d", pp->p_ppid); X! printf(" %7.1o", pp->p_addr); X! printf(" %7.1o", pp->p_saddr); X! printf(" %7.1o", pp->p_daddr); X! printf(" %7.1o", pp->p_dsize+pp->p_ssize); X! printf(" %7.1o", pp->p_wchan); X! printf(" %7.1o", pp->p_link); X! printf(" %7.1o", pp->p_textp); X! printf(" %8.1lx", pp->p_sigmask); X printf("\n"); X } X free(xproc); X--- 430,443 ---- X printf(" %6d", pp->p_pgrp); X printf(" %6d", pp->p_pid); X printf(" %6d", pp->p_ppid); X! printf(" %#7o", pp->p_addr); X! printf(" %#7o", pp->p_saddr); X! printf(" %#7o", pp->p_daddr); X! printf(" %7d", pp->p_dsize+pp->p_ssize); X! printf(" %#7o", pp->p_wchan); X! printf(" %#7o", pp->p_link); X! printf(" %#7o", pp->p_textp); X! printf(" %#8lx", pp->p_sigmask); X printf("\n"); X } X free(xproc); X*************** X*** 446,458 **** X } X X static char mesg[] = X! " # RAW CAN OUT MODE ADDR DEL COL STATE PGRP DISC\n"; X static int ttyspace = 64; X static struct tty *tty; X X dotty() X { X- extern char *malloc(); X X if ((tty = (struct tty *)malloc(ttyspace * sizeof(*tty))) == 0) { X printf("pstat: out of memory\n"); X--- 444,455 ---- X } X X static char mesg[] = X! " # RAW CAN OUT FLAGS ADDR DEL COL STATE PGRP DISC\n"; X static int ttyspace = 64; X static struct tty *tty; X X dotty() X { X X if ((tty = (struct tty *)malloc(ttyspace * sizeof(*tty))) == 0) { X printf("pstat: out of memory\n"); X*************** X*** 476,482 **** X { X int ntty; X register struct tty *tp; X- extern char *realloc(); X X lseek(fc, (long)nl[number].n_value, 0); X read(fc, &ntty, sizeof(ntty)); X--- 473,478 ---- X*************** X*** 504,510 **** X tp = atp; X X printf("%4d%4d", tp->t_rawq.c_cc, tp->t_canq.c_cc); X! printf("%4d %12.1lo %7.1o %4d %4d ", tp->t_outq.c_cc, tp->t_flags, X tp->t_addr, tp->t_delct, tp->t_col); X putf(tp->t_state&TS_TIMEOUT, 'T'); X putf(tp->t_state&TS_WOPEN, 'W'); X--- 500,506 ---- X tp = atp; X X printf("%4d%4d", tp->t_rawq.c_cc, tp->t_canq.c_cc); X! printf("%4d %#12lx %#7o %4d %4d ", tp->t_outq.c_cc, tp->t_flags, X tp->t_addr, tp->t_delct, tp->t_col); X putf(tp->t_state&TS_TIMEOUT, 'T'); X putf(tp->t_state&TS_WOPEN, 'W'); X*************** X*** 531,540 **** X printf(" ntty\n"); X break; X X- case NETLDISC: X- printf(" berknet\n"); X- break; X- X case TABLDISC: X printf(" tab\n"); X break; X--- 527,532 ---- X*************** X*** 733,745 **** X nf = 0; X nfile = pgetw((off_t)nl[SNFILE].n_value); X xfile = (struct file *)calloc(nfile, sizeof (struct file)); X! if (nfile < 0 || nfile > 10000) { X! fprintf(stderr, "number of files is preposterous (%d)\n", X! nfile); X return; X } X if (xfile == NULL) { X! fprintf(stderr, "can't allocate memory for file table\n"); X return; X } X afile = nl[SFIL].n_value; X--- 725,737 ---- X nf = 0; X nfile = pgetw((off_t)nl[SNFILE].n_value); X xfile = (struct file *)calloc(nfile, sizeof (struct file)); X! if (nfile < 0 || nfile > 1000) { X! fprintf(stderr, "%s: number of files preposterous (%d)\n", X! __progname, nfile); X return; X } X if (xfile == NULL) { X! fprintf(stderr, "%s: can't allocate file table memory\n", __progname); X return; X } X afile = nl[SFIL].n_value; X*************** X*** 753,765 **** X return; X } X printf("%d/%d open files\n", nf, nfile); X! printf(" LOC TYPE FLG CNT MSG DATA OFFSET\n"); X loc = afile; X for (fp=xfile; fp < &xfile[nfile]; fp++, loc += sizeof (*fp)) X { X if (fp->f_count==0) X continue; X! printf("%7.1o ", loc); X if (fp->f_type <= DTYPE_PIPE) X printf("%-8.8s", dtypes[fp->f_type]); X else X--- 745,757 ---- X return; X } X printf("%d/%d open files\n", nf, nfile); X! printf(" LOC TYPE FLG CNT MSG DATA OFFSET\n"); X loc = afile; X for (fp=xfile; fp < &xfile[nfile]; fp++, loc += sizeof (*fp)) X { X if (fp->f_count==0) X continue; X! printf("%#7o ", loc); X if (fp->f_type <= DTYPE_PIPE) X printf("%-8.8s", dtypes[fp->f_type]); X else X*************** X*** 775,785 **** X putf((long)fp->f_flag&FDEFER, 'd'); X printf(" %3d", fp->f_count); X printf(" %3d", fp->f_msgcount); X! printf(" %7.1o", fp->f_data); X! if (fp->f_offset < 0) X! printf(" 0%lo\n", fp->f_offset); X! else X! printf(" %ld\n", fp->f_offset); X } X free(xfile); X } X--- 767,774 ---- X putf((long)fp->f_flag&FDEFER, 'd'); X printf(" %3d", fp->f_count); X printf(" %3d", fp->f_msgcount); X! printf(" %#7o", fp->f_data); X! printf(" %#9lx\n", fp->f_offset); X } X free(xfile); X } X*************** X*** 806,812 **** X break; X case SCOREMAP: X name = "coremap"; X! mshift = -4; /* clocks -> kBytes */ X break; X case SUBMAP: X name = "ub_map"; X--- 795,801 ---- X break; X case SCOREMAP: X name = "coremap"; X! mshift = -4; /* clicks -> kBytes */ X break; X case SUBMAP: X name = "ub_map"; X*************** X*** 824,830 **** X num = (maphdr.m_limit - maphdr.m_map); X maptbl = (struct mapent *)calloc(num, sizeof (*maptbl)); X if (maptbl == NULL) { X! fprintf(stderr, "can't allocate memory for %s table\n", name); X return; X } X X--- 813,819 ---- X num = (maphdr.m_limit - maphdr.m_map); X maptbl = (struct mapent *)calloc(num, sizeof (*maptbl)); X if (maptbl == NULL) { X! fprintf(stderr, "%s: can't allocate memory for %s table\n", __progname, name); X return; X } X X*************** X*** 839,845 **** X freetot += size; X if (size>freemax) freemax = size; X if(flag) { X! printf("%7.1o %6u %6u\n", X maptbl[i].m_addr, size, size<freemax) freemax = size; X if(flag) { X! printf(nlind == SCOREMAP ? "%#7o %6u %6u\n" : "%7d %6u %6u\n", X maptbl[i].m_addr, size, size<= 2000) { X! fprintf(stderr, "number of buffers is preposterous (%d)\n", X! nbuf); X return; X } X X xbuf = (struct buf *) calloc(nbuf, sizeof (struct buf)); X if (xbuf == NULL) { X! fprintf(stderr, "can't allocate memory for buf table\n"); X return; X } X X--- 864,878 ---- X int i; X X nbuf = pgetw((off_t)nl[SNBUF].n_value); X! if (nbuf <= 0 || nbuf >= 500) { X! fprintf(stderr, "%s: number of buffers preposterous (%d)\n", X! __progname, nbuf); X return; X } X X xbuf = (struct buf *) calloc(nbuf, sizeof (struct buf)); X if (xbuf == NULL) { X! fprintf(stderr, "%s: can't allocate buf table memory\n", __progname); X return; X } X X*************** X*** 893,904 **** X abufe = abuf + nbuf * sizeof (struct buf); X X if (buff) { X! printf("IND LOC FLAGS "); X printf("FORW BACKW AFORW ABACKW DEVICE BLKNO\n"); X X for (bp=xbuf, i=0; bp<&xbuf[nbuf]; bp++, i++) { X printf("%3d ", i); X! printf("%7.1o ", abuf + (bp - xbuf)*sizeof(*bp)); X putf((long)bp->b_flags&B_READ, 'R'); X putf((long)bp->b_flags&B_DONE, 'D'); X putf((long)bp->b_flags&B_ERROR, 'E'); X--- 882,893 ---- X abufe = abuf + nbuf * sizeof (struct buf); X X if (buff) { X! printf("IND LOC FLAGS "); X printf("FORW BACKW AFORW ABACKW DEVICE BLKNO\n"); X X for (bp=xbuf, i=0; bp<&xbuf[nbuf]; bp++, i++) { X printf("%3d ", i); X! printf("%#7o ", abuf + (bp - xbuf)*sizeof(*bp)); X putf((long)bp->b_flags&B_READ, 'R'); X putf((long)bp->b_flags&B_DONE, 'D'); X putf((long)bp->b_flags&B_ERROR, 'E'); X*************** X*** 935,941 **** X if (bp >= abuf && bp < abufe) { X printf(" ->%3d ", ind); X } else { X! printf("%7.1o ", bp); X } X } X X--- 924,930 ---- X if (bp >= abuf && bp < abufe) { X printf(" ->%3d ", ind); X } else { X! printf("%#7o ", bp); X } X } X X*** ./usr/src/usr.sbin/rxformat/rxformat.c.old Sun Aug 23 09:27:21 1987 X--- ./usr/src/usr.sbin/rxformat/rxformat.c Sun May 10 06:09:08 2026 X*************** X*** 4,18 **** X * specifies the terms and conditions for redistribution. X */ X X! #ifndef lint X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X- #endif not lint X X! #ifndef lint X! static char sccsid[] = "@(#)rxformat.c 5.3 (Berkeley) 8/18/87"; X! #endif not lint X X #include X #include X--- 4,16 ---- X * specifies the terms and conditions for redistribution. X */ X X! #if !defined(lint) && defined(DOSCCS) X char copyright[] = X "@(#) Copyright (c) 1980 Regents of the University of California.\n\ X All rights reserved.\n"; X X! static char sccsid[] = "@(#)rxformat.c 5.4 (2.11BSD) 2026/5/10"; X! #endif X X #include X #include X*** ./usr/src/usr.sbin/traceroute/traceroute.c.old Tue May 23 23:45:52 1989 X--- ./usr/src/usr.sbin/traceroute/traceroute.c Sun May 10 06:07:36 2026 X*************** X*** 1,6 **** X! #ifndef lint X static char *rcsid = X! "@(#)$Header: traceroute.c,v 1.17 89/02/28 21:01:13 van Exp $ (LBL)"; X #endif X X /* X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X static char *rcsid = X! "@(#)$Header: traceroute.c,v 1.18 2026/5/10 06:06:13 sms Exp $ (2.11BSD)"; X #endif X X /* X*** ./usr/src/usr.sbin/quot/quot.c.old Fri Feb 20 17:10:57 1987 X--- ./usr/src/usr.sbin/quot/quot.c Thu Oct 1 18:30:05 2026 X*************** X*** 1,7 **** X--- 1,11 ---- X+ #if defined(DOSCCS) && !defined(lint) X+ static char *sccsid = "@(#)quot.c 1.1 (2.11BSD) 2026/5/26"; X+ #endif X X /* X * Disk usage by user X */ X+ X #include X #include X #include X*************** X*** 8,20 **** X #include X #include X #include X X char *dargv[] = { X! #ifndef MENLO X! "/dev/rrp3", X! #else X! "/dev/rrp0", /* /we -- pag 7/1/79 */ X! #endif X 0 X }; X X--- 12,24 ---- X #include X #include X #include X+ #include X+ #include X+ #include X X char *dargv[] = { X! "/dev/rxp0a", X! "/dev/rxp0h", X 0 X }; X X*************** X*** 26,35 **** X struct du X { X long blocks; X! long nfiles; X! int uid; X char *name; X } du[NUID]; X #define TSIZE 500 X int sizes[TSIZE]; X long overflow; X--- 30,40 ---- X struct du X { X long blocks; X! u_int nfiles; X! uid_t uid; X char *name; X } du[NUID]; X+ X #define TSIZE 500 X int sizes[TSIZE]; X long overflow; X*************** X*** 42,90 **** X unsigned ino; X unsigned nfiles; X X! struct passwd *getpwent(); X! char *malloc(); X! char *copy(); X X! main(argc, argv) X! char **argv; X! { X! register int n; X register struct passwd *lp; X- register char **p; X X! for(n=0; npw_uid; X! if (n>NUID) X continue; X! if(du[n].name) X! continue; X! du[n].name = copy(lp->pw_name); X! } X! if (argc == 1) { X! for (p = dargv; *p;) { X! check(*p++); X! report(); X } X- return(0); X } X! while (--argc) { X! argv++; X! if (argv[0][0]=='-') { X! if (argv[0][1]=='n') X nflg++; X! else if (argv[0][1]=='f') X fflg++; X! else if (argv[0][1]=='c') X cflg++; X! } else { X! check(*argv); X report(); X } X! } X! return(0); X } X X check(file) X--- 47,129 ---- X unsigned ino; X unsigned nfiles; X X! void usage(), xacct(); X! extern char *__progname; X X! /* X! * after processing a filesystem du[] is sorted by username not indexed by X! * userid. the memory allocated for names needs to be released and the X! * array reinitialized before the next filesystem is processed. easiest X! * way to initialize is read the passwd file again. X! */ X! init_du() X! { X! register int n, i; X register struct passwd *lp; X X! for (i = 0; i < NUID; i++) X! { X! if (du[i].name) X! free(du[i].name); X! } X! bzero(du, sizeof du); X! bzero(sizes, sizeof (sizes)); X! X! setpassent(1); X! while (lp=getpwent()) X! { X n = lp->pw_uid; X! if (n > NUID) X continue; X! du[n].name = strdup(lp->pw_name); X } X } X! X! main(argc, argv) X! char **argv; X! { X! register int n; X! register char **p; X! X! while ((n = getopt(argc, argv, "nfc")) != EOF) X! { X! switch (n) X! { X! case 'n': X nflg++; X! break; X! case 'f': X fflg++; X! break; X! case 'c': X cflg++; X! break; X! case '?': X! default: X! usage(); X! } X! } X! argc -= optind; X! argv += optind; X! X! if (argc == 0) X! { X! for (p = dargv; *p; p++) X! { X! init_du(); X! check(*p); X report(); X+ } X+ exit(0); X } X! X! for (; --argc >= 0; argv++) X! { X! init_du(); X! check(*argv); X! report(); X! } X! exit(0); X } X X check(file) X*************** X*** 113,124 **** X bread(i, (char *)itab, sizeof itab); X for (j=0; j= 2 && strcmp(argv[1], "-a") == 0) { X- #ifdef pdp11 X char *kernel = "/netnix", *mem = "/dev/mem"; X- #else X- char *kernel = "/unix", *mem = "/dev/kmem"; X- #endif X X if (argc >= 3) X kernel = argv[2]; X--- 24,30 ---- X*************** X*** 132,139 **** X ar.arp_flags &= ~ATF_PERM; X if (strncmp(argv[0], "pub", 3) == 0) X ar.arp_flags |= ATF_PUBL; X- if (strncmp(argv[0], "trail", 5) == 0) X- ar.arp_flags |= ATF_USETRAILERS; X argv++; X } X X--- 128,133 ---- X*************** X*** 199,205 **** X printf("(incomplete)"); X if (ar.arp_flags & ATF_PERM) printf(" permanent"); X if (ar.arp_flags & ATF_PUBL) printf(" published"); X- if (ar.arp_flags & ATF_USETRAILERS) printf(" trailers"); X printf("\n"); X } X X--- 193,198 ---- X*************** X*** 253,259 **** X { "" }, X }; X X- #ifdef pdp11 X char unix2_10[] = "/unix"; X u_int base2_10; X struct nlist kl[] = { X--- 246,251 ---- X*************** X*** 261,267 **** X { "_netdata" }, X { "" } X }; X- #endif X X /* X * Dump the entire arp table X--- 253,258 ---- X*************** X*** 277,289 **** X extern int h_errno; X X nlist(kernel, nl); X- #ifdef pdp11 X nlist(unix2_10, kl); X if(kl[X_NETDATA].n_type == 0) { X fprintf(stderr, "arp: %s: bad namelist\n", unix2_10); X exit(1); X } X- #endif X if(nl[X_ARPTAB_SIZE].n_type == 0) { X fprintf(stderr, "arp: %s: bad namelist\n", kernel); X exit(1); X--- 268,278 ---- X*************** X*** 293,305 **** X fprintf(stderr, "arp: cannot open %s\n", mem); X exit(1); X } X- #ifdef pdp11 X lseek(mf, (long)kl[X_NETDATA].n_value, 0); X read(mf, &base2_10, sizeof(base2_10)); X lseek(mf, (long)nl[X_ARPTAB_SIZE].n_value + ctob((long)base2_10), 0); X- #else X- lseek(mf, (long)nl[X_ARPTAB_SIZE].n_value, 0); X- #endif X read(mf, &arptab_size, sizeof arptab_size); X if (arptab_size <=0 || arptab_size > 1000) { X fprintf(stderr, "arp: %s: namelist wrong\n", kernel); X--- 282,290 ---- X*************** X*** 311,321 **** X fprintf(stderr, "arp: can't get memory for arptab\n"); X exit(1); X } X- #ifdef pdp11 X lseek(mf, (long)nl[X_ARPTAB].n_value + ctob((long)base2_10), 0); X- #else X- lseek(mf, (long)nl[X_ARPTAB].n_value, 0); X- #endif X if (read(mf, (char *)at, sz) != sz) { X perror("arp: error reading arptab"); X exit(1); X--- 296,302 ---- X*************** X*** 343,349 **** X printf("(incomplete)"); X if (at->at_flags & ATF_PERM) printf(" permanent"); X if (at->at_flags & ATF_PUBL) printf(" published"); X- if (at->at_flags & ATF_USETRAILERS) printf(" trailers"); X printf("\n"); X } X } X--- 324,329 ---- X*************** X*** 376,381 **** X printf("Usage: arp hostname\n"); X printf(" arp -a [/unix] [/dev/kmem]\n"); X printf(" arp -d hostname\n"); X! printf(" arp -s hostname ether_addr [temp] [pub] [trail]\n"); X printf(" arp -f filename\n"); X } X--- 356,361 ---- X printf("Usage: arp hostname\n"); X printf(" arp -a [/unix] [/dev/kmem]\n"); X printf(" arp -d hostname\n"); X! printf(" arp -s hostname ether_addr [temp] [pub]\n"); X printf(" arp -f filename\n"); X } X*** ./usr/src/usr.sbin/arp/arp.8.old Fri Sep 20 14:15:52 2024 X--- ./usr/src/usr.sbin/arp/arp.8 Sat Sep 26 20:13:50 2026 X*************** X*** 2,10 **** X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)arp.8c 6.3 (2.11BSD) 2024/9/20 X .\" X! .TH ARP 8C "Sep 20, 2024" X .UC 6 X .SH NAME X arp \- address resolution display and control X--- 2,10 ---- X .\" All rights reserved. The Berkeley software License Agreement X .\" specifies the terms and conditions for redistribution. X .\" X! .\" @(#)arp.8 6.3 (2.11BSD) 2026/9/26 X .\" X! .TH ARP 8 "September 26, 2026" X .UC 6 X .SH NAME X arp \- address resolution display and control X*************** X*** 11,17 **** X .SH SYNOPSIS X .B arp X .I hostname X! .br X .B arp -a X [ X .I unix X--- 11,17 ---- X .SH SYNOPSIS X .B arp X .I hostname X! .sp X .B arp -a X [ X .I unix X*************** X*** 18,27 **** X ] [ X .I kmem X ] X! .br X .B arp -d X .I hostname X! .br X .B arp -s X .I hostname ether_addr X [ X--- 18,27 ---- X ] [ X .I kmem X ] X! .sp X .B arp -d X .I hostname X! .sp X .B arp -s X .I hostname ether_addr X [ X*************** X*** 28,45 **** X .B temp X ] [ X .B pub X- ] [ X- .B trail X ] X! .br X .B arp -f X .I filename X .SH DESCRIPTION X The X! .I arp X program displays and modifies the Internet-to-Ethernet address translation X tables used by the address resolution protocol X! .RI ( arp (4p)). X .LP X With no flags, the program displays the current ARP entry for X .I hostname. X--- 28,43 ---- X .B temp X ] [ X .B pub X ] X! .sp X .B arp -f X .I filename X .SH DESCRIPTION X The X! .B arp X program displays and modifies the Internet-to-Ethernet address translation X tables used by the address resolution protocol X! .RB ( arp (4)). X .LP X With no flags, the program displays the current ARP entry for X .I hostname. X*************** X*** 76,84 **** X responding to requests for X .I hostname X even though the host address is not its own. X- The word X- .B trail X- indicates that trailer encapsulations may be sent to this host. X .LP X The X .B -f X--- 74,79 ---- X*************** X*** 92,99 **** X .B temp X ] [ X .B pub X- ] [ X- .B trail X ] X .LP X with argument meanings as given above. X--- 87,92 ---- X*** ./usr/src/usr.sbin/ntp/ntp.c.old Mon Jul 24 18:12:05 1989 X--- ./usr/src/usr.sbin/ntp/ntp.c Sun May 10 15:51:12 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char *rcsid = "$Source: /usr/users/louie/ntp/RCS/ntp.c,v $ $Revision: 3.4.1.6 $ $Date: 89/05/18 18:21:29 $"; X! #endif lint X X /* X * $Log: ntp.c,v $ X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ntp.c 2.4.1.7 (2.11BSD) 2026/5/10" X! #endif X X /* X * $Log: ntp.c,v $ X*************** X*** 99,104 **** X--- 99,105 ---- X #include X #include X #include X+ #include X #include "ntp.h" X X char *modename[8] = { X*************** X*** 120,129 **** X struct sockaddr_in dst = {AF_INET}; X struct servent *sp; X extern double ul_fixed_to_double(), s_fixed_to_double(); X- extern int errno; X int set, verbose, force; X int debug; X- extern int optind; X X main(argc, argv) X int argc; X--- 121,128 ---- X*** ./usr/src/usr.sbin/ntp/ntpsubs.c.old Tue Jul 25 12:22:58 1989 X--- ./usr/src/usr.sbin/ntp/ntpsubs.c Sun May 10 15:51:23 2026 X*************** X*** 1,6 **** X! #ifndef lint X! static char *RCSid = "$Source: /usr/users/louie/ntp/RCS/ntpsubs.c,v $ $Revision: 3.4.1.3 $ $Date: 89/05/18 18:33:50 $"; X! #endif lint X X /* X * $Log: ntpsubs.c,v $ X--- 1,6 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ntpsubs.c 3.4.1.4 (2.11BSD) 2026/5/10" X! #endif X X /* X * $Log: ntpsubs.c,v $ X*************** X*** 54,61 **** X #include X X #include "ntp.h" X- X- extern int errno; X X #define TRUE 1 X #define FALSE 0 X--- 54,59 ---- X*** ./usr/src/usr.sbin/ntp/ntp_sock.c.old Fri May 19 12:51:54 1989 X--- ./usr/src/usr.sbin/ntp/ntp_sock.c Sun May 10 15:51:16 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *RCSid = "$Source: /usr/users/louie/ntp/RCS/ntp_sock.c,v $ $Revision: 3.4.1.3 $ $Date: 89/05/18 18:28:20 $"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char sccsid[] = "@(#)ntp_sock.c 3.4.1.4 (2.11BSD) 2026/5/10" X #endif X X /* X*************** X*** 62,68 **** X int nintf; X X #ifdef TEST X- extern int errno; X X main() { X int i, cc, val; X--- 62,67 ---- X*** ./usr/src/usr.sbin/ntp/test.c.old Tue Jul 25 12:33:20 1989 X--- ./usr/src/usr.sbin/ntp/test.c Sun May 10 15:22:08 2026 X*************** X*** 1,5 **** X! #ifndef lint X! static char *RCSid = "$Source: /usr/users/louie/ntp/RCS/test.c,v $ $Revision: 3.4.1.4 $ $Date: 89/05/18 18:37:39 $"; X #endif X X /* X--- 1,5 ---- X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)test.c 3.4.1.5 (2.11BSD) 2026/5/10"; X #endif X X /* X*** ./usr/src/usr.sbin/ntp/read_psti.c.old Fri May 19 12:51:59 1989 X--- ./usr/src/usr.sbin/ntp/read_psti.c Tue Jun 16 20:49:54 2026 X*************** X*** 1,8 **** X #if defined(REFCLOCK) && defined(PSTI) X! #ifndef lint X! static char *rcsid = "$Header: /usr/users/louie/ntp/RCS/read_psti.c,v 3.4.1.1 89/05/18 18:36:45 louie Exp Locker: louie $"; X! static char *sccsid = "@(#)read_psti.c 1.1 MS/ACF 89/02/17"; X! #endif lint X X #define ERR_RATE 60 /* Repeat errors once an hour */ X X--- 1,7 ---- X #if defined(REFCLOCK) && defined(PSTI) X! #if !defined(lint) && defined(DOSCCS) X! static char *sccsid = "@(#)read_psti.c 1.2 (2.11BSD) 2026/6/13"; X! #endif X X #define ERR_RATE 60 /* Repeat errors once an hour */ X X*************** X*** 37,45 **** X #include X #include X #include X- #if defined(sun) X- #include X- #endif X X #ifdef DEBUG X extern int debug; X--- 36,41 ---- X*************** X*** 81,91 **** X char *timesource; X { X int cfd; X- #ifdef TCSETA X- struct termio tty; X- #else X struct sgttyb tty; X- #endif X X if ((cfd = open(timesource, 2)) < 0) { X #ifdef DEBUG X--- 77,83 ---- X*************** X*** 103,131 **** X return(-1); X } X X- #ifdef TCSETA X- if (ioctl(cfd, TCGETA, &tty) < 0) { X- #ifdef DEBUG X- if (debug) perror("ioctl on radioclock failed"); else X- #endif DEBUG X- syslog(LOG_ERR, "ioctl on %s failed: %m", timesource); X- return(-1); X- } X- tty.c_cflag = (B9600<<16)|B9600|CS8|CLOCAL|CREAD; X- tty.c_iflag = ICRNL; X- tty.c_oflag = 0; X- tty.c_lflag = 0; X- bzero((char *)tty.c_cc, sizeof tty.c_cc); X- tty.c_cc[VMIN] = MIN_READ; X- tty.c_cc[VTIME] = 0; X- if (ioctl(cfd, TCSETA, &tty) < 0) { X- #else TCSETA /* Use older Berkeley style IOCTL's */ X bzero((char *)&tty, sizeof tty); X tty.sg_ispeed = tty.sg_ospeed = B9600; X tty.sg_flags = ANYP|CRMOD; X tty.sg_erase = tty.sg_kill = '\0'; X if (ioctl(cfd, TIOCSETP, &tty) < 0) { X- #endif TCSETA X #ifdef DEBUG X if (debug) perror("ioctl on radioclock failed"); else X #endif DEBUG X--- 95,105 ---- X*************** X*** 160,169 **** X int stat1, stat2; X fd_set readfds; X char message[256]; X- #ifndef TCSETA X register char *cp; X int need; X- #endif TCSETA X X FD_ZERO(&readfds); X FD_SET(cfd, &readfds); X--- 134,141 ---- X*************** X*** 290,297 **** X diff = reltime(rtm, millis*1000) - reltime(mtm, mytime.tv_usec); X #ifdef DEBUG X if (debug > 1) X! printf("Clock time: 19%d day %03d %02d:%02d:%02d.%03d diff %.3f\n", X! rtm->tm_year, rtm->tm_yday, rtm->tm_hour, X rtm->tm_min, rtm->tm_sec, millis, diff); X #endif DEBUG X X--- 262,269 ---- X diff = reltime(rtm, millis*1000) - reltime(mtm, mytime.tv_usec); X #ifdef DEBUG X if (debug > 1) X! printf("Clock time: %d day %03d %02d:%02d:%02d.%03d diff %.3f\n", X! rtm->tm_year + 1900, rtm->tm_yday, rtm->tm_hour, X rtm->tm_min, rtm->tm_sec, millis, diff); X #endif DEBUG X X*************** X*** 298,311 **** X if (diff > (90*24*60*60.0) && (nerrors++%ERR_RATE)==0) { X #ifdef DEBUG X if (debug) X! printf("offset excessive (system 19%d/%d, clock 19%d/%d)\n", X! mtm->tm_year, mtm->tm_yday, X! rtm->tm_year, mtm->tm_yday); X else X #endif DEBUG X! syslog(LOG_ERR, "offset excessive (system 19%d/%d, clock 19%d/%d)\n", X! mtm->tm_year, mtm->tm_yday, X! rtm->tm_year, mtm->tm_yday); X return(1); X } X X--- 270,283 ---- X if (diff > (90*24*60*60.0) && (nerrors++%ERR_RATE)==0) { X #ifdef DEBUG X if (debug) X! printf("offset excessive (system %d/%d, clock %d/%d)\n", X! mtm->tm_year + 1900, mtm->tm_yday, X! rtm->tm_year + 1900, mtm->tm_yday); X else X #endif DEBUG X! syslog(LOG_ERR, "offset excessive (system %d/%d, clock %d/%d)\n", X! mtm->tm_year + 1900, mtm->tm_yday, X! rtm->tm_year + 1900, mtm->tm_yday); X return(1); X } X X*** ./usr/src/usr.sbin/ntp/Makefile.old Tue Nov 25 18:41:53 2025 X--- ./usr/src/usr.sbin/ntp/Makefile Tue Jun 16 20:58:28 2026 X*************** X*** 1,4 **** X! # @(#) Makefile 1.1 (2.11BSD) 2025/11/25 X # X # $Log: Makefile,v $ X # Revision 3.4.1.7 89/05/18 12:43:32 louie X--- 1,4 ---- X! # @(#) Makefile 1.2 (2.11BSD) 2026/6/16 X # X # $Log: Makefile,v $ X # Revision 3.4.1.7 89/05/18 12:43:32 louie X*************** X*** 83,89 **** X X # FEATURES= X FEATURES= -DDEBUG -DLOG_NTP=LOG_LOCAL3 X- #FEATURES= -DBROADCAST_NTP -DSETTICKADJ -DDEBUG -DLOG_NTP=LOG_LOCAL3 X X # for 2.11BSD X DEFINES= -DGENERIC_UNS_BUG -DSUN_FLT_BUG X--- 83,88 ---- X*************** X*** 91,110 **** X # for 4.3 BSD X #DEFINES= X X- # for Sun X- #DEFINES= -DSUN_FLT_BUG X- X- # for Ultrix 2.0/2.2 X- # don't forget to fix the broken definition of inet_addr in netdb.h X- # it should be declared as a u_long not a in_addr (the doc is wrong also) X- # VAX_COMPILER_FLT_BUG is defined for pcc which doesn't know how to X- # convert an unsigned long into a float/double X- #DEFINES= -DVAX_COMPILER_FLT_BUG -DNOSWAP X- X- # X- # for a NeXT system, define these pre-processor symbols. X- #DEFINES=-DSUN_FLT_BUG -DGENERIC_UNS_BUG X- X CFLAGS= -O ${DEFINES} ${FEATURES} X # X # Header files X--- 90,95 ---- X*************** X*** 170,251 **** X X # DO NOT DELETE THIS LINE -- mkdep uses it. X # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. X- X- ntp.o: ntp.c /usr/include/stdio.h /usr/include/sys/types.h X- ntp.o: /usr/include/sys/param.h /usr/include/sys/localopts.h X- ntp.o: /usr/include/machine/machparam.h /usr/include/sys/types.h X- ntp.o: /usr/include/signal.h /usr/include/sys/types.h /usr/include/sys/time.h X- ntp.o: /usr/include/time.h /usr/include/sys/uio.h /usr/include/sys/socket.h X- ntp.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h X- ntp.o: /usr/include/sys/ttydev.h /usr/include/netinet/in.h X- ntp.o: /usr/include/netinet/in_systm.h /usr/include/netinet/ip.h X- ntp.o: /usr/include/netinet/udp.h /usr/include/arpa/inet.h /usr/include/netdb.h X- ntp.o: /usr/include/strings.h /usr/include/errno.h ntp.h X- ntpdc.o: ntpdc.c /usr/include/sys/types.h /usr/include/sys/param.h X- ntpdc.o: /usr/include/sys/localopts.h /usr/include/machine/machparam.h X- ntpdc.o: /usr/include/sys/types.h /usr/include/signal.h X- ntpdc.o: /usr/include/sys/types.h /usr/include/signal.h /usr/include/sys/uio.h X- ntpdc.o: /usr/include/sys/socket.h /usr/include/sys/time.h /usr/include/time.h X- ntpdc.o: /usr/include/netinet/in.h /usr/include/netinet/udp.h X- ntpdc.o: /usr/include/errno.h /usr/include/stdio.h /usr/include/netdb.h X- ntpdc.o: /usr/include/strings.h /usr/include/arpa/inet.h ntp.h X- ntpd.o: ntpd.c /usr/include/stdio.h /usr/include/sys/types.h X- ntpd.o: /usr/include/sys/param.h /usr/include/sys/localopts.h X- ntpd.o: /usr/include/machine/machparam.h /usr/include/sys/types.h X- ntpd.o: /usr/include/signal.h /usr/include/sys/types.h /usr/include/sys/uio.h X- ntpd.o: /usr/include/sys/socket.h /usr/include/sys/time.h /usr/include/time.h X- ntpd.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h X- ntpd.o: /usr/include/sys/ttydev.h /usr/include/sys/resource.h X- ntpd.o: /usr/include/sys/file.h /usr/include/net/if.h /usr/include/net/if_arp.h X- ntpd.o: /usr/include/netinet/in.h /usr/include/netinet/in_systm.h X- ntpd.o: /usr/include/netinet/ip.h /usr/include/netinet/udp.h X- ntpd.o: /usr/include/arpa/inet.h /usr/include/netdb.h /usr/include/strings.h X- ntpd.o: /usr/include/errno.h /usr/include/syslog.h /usr/include/nlist.h X- ntpd.o: /usr/include/sys/types.h ntp.h patchlevel.h X- ntpsubs.o: ntpsubs.c /usr/include/stdio.h /usr/include/sys/types.h X- ntpsubs.o: /usr/include/sys/param.h /usr/include/sys/localopts.h X- ntpsubs.o: /usr/include/machine/machparam.h /usr/include/sys/types.h X- ntpsubs.o: /usr/include/signal.h /usr/include/sys/types.h X- ntpsubs.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/sys/uio.h X- ntpsubs.o: /usr/include/sys/socket.h /usr/include/netinet/in.h X- ntpsubs.o: /usr/include/arpa/inet.h /usr/include/errno.h /usr/include/syslog.h X- ntpsubs.o: ntp.h X- ntp_proto.o: ntp_proto.c /usr/include/stdio.h /usr/include/sys/types.h X- ntp_proto.o: /usr/include/sys/param.h /usr/include/sys/localopts.h X- ntp_proto.o: /usr/include/machine/machparam.h /usr/include/sys/types.h X- ntp_proto.o: /usr/include/signal.h /usr/include/sys/types.h X- ntp_proto.o: /usr/include/sys/uio.h /usr/include/sys/socket.h X- ntp_proto.o: /usr/include/sys/time.h /usr/include/time.h X- ntp_proto.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h X- ntp_proto.o: /usr/include/sys/ttydev.h /usr/include/sys/resource.h X- ntp_proto.o: /usr/include/net/if.h /usr/include/net/if_arp.h X- ntp_proto.o: /usr/include/netinet/in.h /usr/include/netinet/in_systm.h X- ntp_proto.o: /usr/include/netinet/ip.h /usr/include/netinet/udp.h X- ntp_proto.o: /usr/include/arpa/inet.h /usr/include/netdb.h X- ntp_proto.o: /usr/include/strings.h /usr/include/errno.h /usr/include/syslog.h X- ntp_proto.o: ntp.h X- ntp_sock.o: ntp_sock.c /usr/include/sys/types.h /usr/include/sys/param.h X- ntp_sock.o: /usr/include/sys/localopts.h /usr/include/machine/machparam.h X- ntp_sock.o: /usr/include/sys/types.h /usr/include/signal.h X- ntp_sock.o: /usr/include/sys/types.h /usr/include/sys/ioctl.h X- ntp_sock.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- ntp_sock.o: /usr/include/sys/file.h /usr/include/sys/socket.h X- ntp_sock.o: /usr/include/netinet/in.h /usr/include/net/if.h X- ntp_sock.o: /usr/include/net/if_arp.h /usr/include/errno.h X- ntp_sock.o: /usr/include/syslog.h /usr/include/stdio.h ntp.h X- ntp_adjust.o: ntp_adjust.c /usr/include/stdio.h /usr/include/sys/types.h X- ntp_adjust.o: /usr/include/sys/param.h /usr/include/sys/localopts.h X- ntp_adjust.o: /usr/include/machine/machparam.h /usr/include/sys/types.h X- ntp_adjust.o: /usr/include/signal.h /usr/include/sys/types.h X- ntp_adjust.o: /usr/include/sys/socket.h /usr/include/sys/time.h X- ntp_adjust.o: /usr/include/time.h /usr/include/sys/ioctl.h X- ntp_adjust.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h X- ntp_adjust.o: /usr/include/sys/resource.h /usr/include/netinet/in.h X- ntp_adjust.o: /usr/include/netinet/in_systm.h /usr/include/netinet/ip.h X- ntp_adjust.o: /usr/include/netinet/udp.h /usr/include/arpa/inet.h X- ntp_adjust.o: /usr/include/netdb.h /usr/include/strings.h /usr/include/errno.h X- ntp_adjust.o: /usr/include/syslog.h ntp.h X- read_local.o: read_local.c X- read_psti.o: read_psti.c X- X- # IF YOU PUT ANYTHING HERE IT WILL GO AWAY X--- 155,157 ---- X*** ./usr/src/usr.sbin/ntp/ntpdc.c.old Fri Jan 27 20:36:26 1995 X--- ./usr/src/usr.sbin/ntp/ntpdc.c Tue Sep 22 01:04:40 2026 X*************** X*** 1,8 **** X- #if !defined(lint) && defined(DOSCCS) X- static char *RCSid = "$Source: /usr/src/new/ntp/ntpdc.c,v $ $Revision: 3.4.1.8 $ $Date: 95/01/27 17:31:26 $"; X- #endif X- X /* X * $Log: ntpdc.c,v $ X * Revision 3.4.1.8 95/01/27 17:31:26 sms X * Fix name clockinfo name collision with sysctl.h X--- 1,7 ---- X /* X+ * @(#)ntpdc.c 3.4.1.9 (2.11BSD) 2026/9/22 X+ */ X+ /* X * $Log: ntpdc.c,v $ X * Revision 3.4.1.8 95/01/27 17:31:26 sms X * Fix name clockinfo name collision with sysctl.h X*************** X*** 98,104 **** X extern int errno; X int debug; X int s; X! int timedout, timeout(); X int nflag, vflag, tflag; X X struct sockaddr_in sin = {AF_INET}; X--- 97,104 ---- X extern int errno; X int debug; X int s; X! int timedout; X! void timeout(); X int nflag, vflag, tflag; X X struct sockaddr_in sin = {AF_INET}; X*************** X*** 297,302 **** X--- 297,303 ---- X return 1; X } X X+ void X timeout() X { X timedout = 1; X*** ./VERSION.old Fri Jan 2 17:53:14 2026 X--- ./VERSION Sun Oct 11 06:30:13 2026 X*************** X*** 1,8 **** X! Current Patch Level: 499 X! Date: January 2, 2026 X X 2.11 BSD X- ============ X NOTE -- X This would have been the third release of 2.10BSD; but since X the filesystem has changed and a coldstart is required X--- 1,24 ---- X! Current Patch Level: 500 X! Date: October 11, 2026 X X+ 2.11BSD 35th Anniversary Edition X+ X+ Many changes have been made since the 2.11BSD release announcement X+ by the CSRG was made in January 1991. X+ X+ Listing all the improvements, enhancements, fixes and contributors X+ is nigh unto impossible. Since patch #1 was posted May 4, 1991 X+ the patches have usually given credit to the contributor. If you're X+ wondering who has contributed (and what they submitted) download the X+ patches from these http and ftp sites: X+ X+ ftp://ftp.dfupdate.se/pub/pdp11/2.11BSD X+ https://www.tuhs.org/Archive/Distributions/UCB/2.11BSD/Patches X+ ftp://ftp.2bsd.com/2.11BSD X+ http://www.2bsd.com/2.11BSD X+ X+ ============== The original VERSION file from 1991================= X 2.11 BSD X NOTE -- X This would have been the third release of 2.10BSD; but since X the filesystem has changed and a coldstart is required SHAR_EOF chmod 644 '500.patch' fi exit 0 # End of shell archive